  /* Huge icon-only paste button (fallback when clipboard is empty) */
  .paste-screen-top {
    padding: 8px 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    min-height: calc(100vh - 80px);
    outline: none;
    border-radius: var(--r-lg);
    transition: background 0.15s ease;
  }
  .huge-paste {
    flex: 1 1 200px;
    width: 180px; height: 180px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    border-radius: 32px;
    border: 1px solid rgba(40,60,52,0.6);
    background: linear-gradient(180deg, #28604d 0%, #143b2c 100%);
    color: #d6e8df;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: background 0.12s ease, transform 0.06s ease, color 0.12s ease;
    text-align: center;
  }
  @media (hover: hover) {
    .huge-paste:hover { background: linear-gradient(180deg, #2f7058 0%, #194534 100%); color: #f1f7f3; }
  }
  .huge-paste:active { transform: translateY(1px); }
  .huge-paste svg { width: 56px; height: 56px; }
  .huge-paste-label { font-size: 12px; line-height: 1.3; }
  .huge-paste-hint { font-size: 11px; line-height: 1.3; opacity: 0.7; }

  /* Drop zone (right of paste button) */
  .drop-zone {
    flex: 1 1 200px;
    width: 180px; height: 180px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    border-radius: 32px;
    border: 2px dashed rgba(70,100,88,0.55);
    background: rgba(20,40,32,0.25);
    color: #93ada0;
    text-align: center;
    font-size: 13px; line-height: 1.3;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    user-select: none;
  }
  .drop-zone.drag {
    background: rgba(40,90,75,0.22);
    border-color: rgba(120,190,160,0.8);
    color: #e6f2ec;
  }
  .drop-zone svg { width: 56px; height: 56px; }
  .drop-zone-label { font-size: 12px; }

  /* "Создать сейчас" tile — new AI-engine entry point (Phase 0 · beta).
     Sits next to paste/drop tiles in paste-screen-top row. */
  .game-new-engine-tile {
    flex: 1 1 200px;
    height: 180px;
    min-width: 240px;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(110, 150, 135, 0.18), rgba(60, 90, 120, 0.10));
    border: 1px solid rgba(110, 150, 135, 0.35);
    border-radius: 32px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  }
  @media (hover: hover) {
    .game-new-engine-tile:hover {
      border-color: rgba(110, 150, 135, 0.7);
      background: linear-gradient(135deg, rgba(110, 150, 135, 0.26), rgba(60, 90, 120, 0.16));
    }
  }
  .game-new-engine-tile:active { transform: translateY(1px); }
  .game-new-engine-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(110, 150, 135, 0.22);
    border-radius: 8px;
    color: #b8e0c6;
    flex-shrink: 0;
  }
  .game-new-engine-icon svg { width: 24px; height: 24px; }
  .game-new-engine-text { flex: 1; min-width: 0; }
  .game-new-engine-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .game-new-engine-sub {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
  }

  /* "Создать проект" — vibe-coding folder. A cooler (blue/violet) accent so it
     reads as a distinct service next to the green engine tile. */
  .game-new-project-tile {
    background: linear-gradient(135deg, rgba(120, 130, 200, 0.18), rgba(90, 120, 160, 0.10));
    border-color: rgba(130, 140, 210, 0.4);
  }
  @media (hover: hover) {
    .game-new-project-tile:hover {
      border-color: rgba(140, 150, 220, 0.72);
      background: linear-gradient(135deg, rgba(120, 130, 200, 0.27), rgba(90, 120, 160, 0.16));
    }
  }
  .game-new-project-tile .game-new-engine-icon {
    background: rgba(130, 140, 210, 0.22);
    color: #cfd4ff;
  }

  /* Game preview frame after creation */
  .preview-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--r-md);
    border: 1px solid var(--border-2);
    background: #000;
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }
  .preview-frame iframe {
    width: 100%; height: 100%; border: 0; display: block;
  }
  .success-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
  }
  .success-head .check {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(180deg, #2e7e64, #1a4f3e);
    border: 1px solid rgba(70,110,95,0.55);
    display: grid; place-items: center;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
    color: #eaf3ee;
  }
  .success-head .ttl { font-weight: 700; font-size: 16px; }
  .success-head .sub { font-size: 12px; color: var(--muted); }

  /* New-project template picker modal (Batch 2, p.1). */
  .tpl-modal-back {
    position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center;
    background: rgba(0,0,0,0.55); padding: 20px;
  }
  .tpl-modal {
    width: min(620px, 100%); max-height: 86vh; overflow: auto;
    background: var(--surface, #1a1714); border: 1px solid var(--border-2);
    border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }
  .tpl-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--border-2);
    font-size: 14px; font-weight: 600; color: var(--text);
  }
  .tpl-modal-x {
    appearance: none; background: transparent; border: 0; cursor: pointer; color: var(--muted);
    display: inline-grid; place-items: center; padding: 4px; border-radius: 6px;
  }
  .tpl-modal-x svg { width: 16px; height: 16px; }
  .tpl-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px; padding: 16px;
  }
  .tpl-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 14px; text-align: left; cursor: pointer;
    background: var(--bg, #111); border: 1px solid var(--border-2); border-radius: 12px;
    transition: border-color 0.15s ease, transform 0.12s ease;
  }
  @media (hover: hover) {
    .tpl-card:hover { border-color: rgba(110,150,135,0.5); transform: translateY(-2px); }
    .tpl-modal-x:hover { color: var(--text); background: rgba(255,255,255,0.06); }
  }
  .tpl-card-ic { color: var(--muted); display: inline-grid; place-items: center; }
  .tpl-card-ic svg { width: 26px; height: 26px; }
  .tpl-card-title { font-size: 14px; font-weight: 600; color: var(--text); }
  .tpl-card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

  /* ── Mobile: 640px and below ─────────────────────────────────────────────── */
  @media (max-width: 640px) {
    .paste-screen-top {
      min-height: calc(100vh - 80px);
      min-height: 100dvh;
    }
    .huge-paste,
    .drop-zone {
      flex: 1 1 140px;
    }
    .game-new-engine-tile {
      min-width: 0;
      max-width: 100%;
      width: 100%;
    }
    .tpl-modal-x {
      min-width: 44px;
      min-height: 44px;
    }
    .tpl-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
  }

  /* ── Mobile narrow: 480px and below ─────────────────────────────────────── */
  @media (max-width: 480px) {
    .game-new-engine-tile {
      min-width: 0;
      width: 100%;
    }
  }

  /* ── Phone portrait: 380px and below ────────────────────────────────────── */
  @media (max-width: 380px) {
    .huge-paste,
    .drop-zone {
      flex: 1 1 100%;
      width: 100%;
    }
    .game-new-engine-tile {
      flex: 1 1 100%;
      width: 100%;
    }
  }
