@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Mukta:wght@400;500;700;800&display=swap');

  :root{
    --bg-deep:#05061a;
    --bg-mid:#0c0f33;
    --panel:#13174a;
    --panel-edge:#2a3380;
    --cyan:#6ee7f9;
    --coral:#ff6b6b;
    --gold:#ffd166;
    --green:#7CFFB2;
    --text:#f4f4f9;
    --text-dim:#9aa3d1;
  }

  *{ box-sizing:border-box; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
  html, body{ touch-action: pan-y; overscroll-behavior: none; }
  html,body{ margin:0; height:100%; }

  body{
    font-family:'Mukta', sans-serif;
    background: radial-gradient(ellipse at top, var(--bg-mid), var(--bg-deep) 70%);
    color: var(--text);
    overflow:hidden;
    height:100vh;
    height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .pixel{ font-family:'Press Start 2P', monospace; letter-spacing: 1px; }

  #game{
    width:100%;
    height:100%;
    height:100dvh;
    position:relative;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  @media (min-width:600px){
    #game{
      max-width:480px;
      max-height:900px;
    }
  }

  /* ---------- starfield ---------- */
  #theme-layer{ position:absolute; inset:0; z-index:0; }
  .star{
    position:absolute; background:#fff; border-radius:50%;
    animation: twinkle 3s ease-in-out infinite;
  }
  @keyframes twinkle{ 0%,100%{opacity:.25;} 50%{opacity:1;} }

  /* ---------- HUD ---------- */
  #hud{
    position:relative; z-index:5;
    flex-shrink:0;
    display:flex; justify-content:space-between; align-items:center;
    padding:14px 16px;
    font-size:11px;
  }
  #score{ color:var(--gold); }
  #hearts{ letter-spacing:4px; font-size:14px; }
  .heart{ color:var(--coral); }
  .heart.lost{ color:#3a3f6e; }

  #stats-bar{
    position:relative; z-index:5;
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:0 16px 10px;
    min-height:56px;
  }
  .progress-meter{
    position:relative;
    height:24px;
    overflow:hidden;
    border:1px solid rgba(110,231,249,0.28);
    border-radius:8px;
    background:rgba(19,23,74,0.72);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
  }
  .progress-meter-fill{
    position:absolute;
    inset:0 auto 0 0;
    width:0%;
    transition:width .25s ease;
  }
  .progress-meter.new .progress-meter-fill{
    background:linear-gradient(90deg, rgba(124,255,178,0.32), rgba(124,255,178,0.72));
  }
  .progress-meter.review .progress-meter-fill{
    background:linear-gradient(90deg, rgba(255,209,102,0.28), rgba(255,209,102,0.76));
  }
  .progress-meter-label{
    position:relative;
    z-index:1;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:0 9px;
    color:var(--text);
    font-size:8px;
    line-height:1;
    text-shadow:0 1px 3px rgba(0,0,0,0.7);
    white-space:nowrap;
  }

  /* ---------- scene ---------- */
  #scene{
    position:relative; z-index:2;
    flex:1;
    min-height:0;
    overflow:hidden;
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    padding:4px 20px;
    text-align:center;
  }

  #monitor-frame{
    position:relative;
    padding: clamp(10px, 4vw, 30px);
    border:1px solid rgba(110,231,249,0.22);
    border-radius:18px;
  }
  #monitor-frame::before, #monitor-frame::after{
    content:'';
    position:absolute; width:18px; height:18px;
  }
  #monitor-frame::before{
    top:-2px; left:-2px;
    border-top:2px solid var(--cyan); border-left:2px solid var(--cyan);
  }
  #monitor-frame::after{
    bottom:-2px; right:-2px;
    border-bottom:2px solid var(--cyan); border-right:2px solid var(--cyan);
  }

  #alert-label{
    margin-top: clamp(8px, 2vh, 16px);
    font-size:10px;
    color:var(--coral);
    letter-spacing:2px;
    animation: blinkAlert 1.2s steps(2,start) infinite;
  }
  @keyframes blinkAlert{ 50%{ opacity:0.25; } }

  #missile{
    position:absolute;
    top:0; left:50%;
    font-size:22px;
    opacity:0;
    transform: translateX(-50%) rotate(-45deg);
    pointer-events:none;
    z-index:6;
  }
  #missile.launch-correct{ animation: missileHit .5s ease-out forwards; }
  #missile.launch-wrong{ animation: missileMiss .55s ease-out forwards; }
  @keyframes missileHit{
    0%{ opacity:1; transform: translateX(-50%) translateY(0) rotate(-45deg) scale(1); }
    75%{ opacity:1; transform: translateX(-50%) translateY(-230px) rotate(-45deg) scale(0.9); }
    100%{ opacity:0; transform: translateX(-50%) translateY(-250px) rotate(-45deg) scale(0.7); }
  }
  @keyframes missileMiss{
    0%{ opacity:1; transform: translateX(-50%) translateY(0) rotate(-45deg) scale(1); }
    70%{ opacity:1; transform: translateX(-50%) translateY(-220px) translateX(34px) rotate(-25deg) scale(0.9); }
    100%{ opacity:0; transform: translateX(-50%) translateY(-300px) translateX(90px) rotate(-5deg) scale(0.6); }
  }

  #ship.dodge{ animation: dodgeJolt .35s ease; }
  @keyframes dodgeJolt{
    0%{ transform: translateX(0) rotate(0); }
    35%{ transform: translateX(-22px) rotate(-6deg); }
    65%{ transform: translateX(14px) rotate(4deg); }
    100%{ transform: translateX(0) rotate(0); }
  }

  #ship-wrap{
    position:relative;
    width: clamp(110px, 36vw, 200px);
    height: clamp(110px, 36vw, 200px);
    display:flex; align-items:center; justify-content:center;
    animation: float 4s ease-in-out infinite;
  }
  @keyframes float{ 0%,100%{ transform:translateY(0px);} 50%{ transform:translateY(-10px);} }

  #ship{
    position:relative;
    width: clamp(90px, 30vw, 160px);
    height: clamp(68px, 22vw, 120px);
    background: linear-gradient(160deg, #2c3380, #1a1f4d);
    border:2px solid var(--cyan);
    border-radius: 28px 28px 50% 50% / 28px 28px 60% 60%;
    box-shadow: 0 0 24px rgba(110,231,249,0.45), inset 0 0 18px rgba(110,231,249,0.15);
    display:flex; align-items:center; justify-content:center;
    transition: transform .5s ease, opacity .5s ease;
    overflow:hidden;
  }

  #ship-emoji{ font-size: clamp(28px, 9vw, 46px); filter: drop-shadow(0 0 6px rgba(255,255,255,.4)); }

  #scan-beam{
    position:absolute; top:0; bottom:0; left:-20%;
    width:40%;
    background: linear-gradient(90deg, transparent, rgba(110,231,249,0.55), transparent);
    pointer-events:none;
    opacity:0;
  }
  #scan-beam.active{
    animation: sweep 1.6s ease-in-out 2;
    opacity:1;
  }
  @keyframes sweep{
    0%{ left:-40%; }
    100%{ left:100%; }
  }

  #ship.blast{
    transform: scale(1.4) rotate(8deg);
    opacity:0;
    box-shadow: 0 0 60px rgba(255,209,102,0.9);
    border-color: var(--gold);
    transition: all .5s ease;
  }
  #ship.flee{
    transform: translateX(140%) translateY(-60px) rotate(-12deg) scale(.8);
    opacity:0;
    transition: all .55s cubic-bezier(.4,0,.7,1);
  }

  #burst{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-size:54px; opacity:0; pointer-events:none;
  }
  #burst.show{ animation: burstPop .6s ease forwards; }
  @keyframes burstPop{
    0%{ opacity:0; transform:scale(.3); }
    40%{ opacity:1; transform:scale(1.3); }
    100%{ opacity:0; transform:scale(1.8); }
  }

  #word-name{
    margin-top: clamp(6px, 2.5vh, 18px);
    font-size: clamp(18px, 5.5vw, 28px);
    font-weight:800;
    letter-spacing:1px;
    color:var(--text);
    text-shadow: 0 0 12px rgba(110,231,249,0.5);
    min-height:30px;
  }

  #status-line{
    margin-top: clamp(4px, 1.5vh, 10px);
    font-size:11px;
    color:var(--cyan);
    min-height:16px;
    letter-spacing:2px;
  }
  #status-line.danger{ color:var(--coral); }

  /* ---------- options ---------- */
  #options{
    position:relative; z-index:5;
    flex-shrink:0;
    display:flex; flex-direction:row; gap:10px;
    padding:0 16px 14px;
    min-height:84px;
    align-items:flex-end;
  }
  .opt-btn{
    flex:1;
    position:relative;
    background: var(--panel);
    border:2px solid var(--panel-edge);
    color:var(--text);
    font-family:'Mukta', sans-serif;
    font-weight:600;
    font-size: clamp(12px, 3.6vw, 15px);
    line-height:1.3;
    padding: clamp(14px, 4.5vh, 22px) 8px 12px;
    border-radius:10px;
    text-align:center;
    cursor:pointer;
    transition: transform .12s ease, border-color .15s ease, background .15s ease;
  }
  .opt-btn::before{
    content:'';
    position:absolute;
    top:-9px; left:50%;
    transform: translateX(-50%);
    width:0; height:0;
    border-left:10px solid transparent;
    border-right:10px solid transparent;
    border-bottom:10px solid var(--panel-edge);
  }
  .ammo-label{
    display:block;
    font-family:'Press Start 2P', monospace;
    font-size:9px;
    color:var(--text-dim);
    letter-spacing:1px;
    margin-bottom:6px;
  }
  .opt-btn:active{ transform: scale(0.97); }
  .opt-btn.correct{ background: rgba(124,255,178,0.18); border-color: var(--green); }
  .opt-btn.correct::before{ border-bottom-color: var(--green); }
  .opt-btn.wrong{ background: rgba(255,107,107,0.18); border-color: var(--coral); }
  .opt-btn.wrong::before{ border-bottom-color: var(--coral); }
  .opt-btn[disabled]{ pointer-events:none; }

  /* ---------- reveal panel ---------- */
  #reveal{
    position:absolute; left:0; right:0; bottom:0; z-index:10;
    background: linear-gradient(180deg, rgba(19,23,74,0.97), rgba(8,10,32,0.99));
    border-top:2px solid var(--panel-edge);
    border-radius: 22px 22px 0 0;
    padding:22px 22px 28px;
    transform: translateY(110%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
  }
  #reveal.show{ transform: translateY(0); }

  #reveal .tag{
    font-size:10px; color:var(--gold); margin-bottom:6px; letter-spacing:2px;
  }
  #reveal .headword{
    font-size:24px; font-weight:800; margin-bottom:2px;
  }
  #reveal .hindi-meaning{
    font-size:18px; color:var(--cyan); font-weight:700; margin-bottom:10px;
  }
  #reveal .explainer-block{
    margin-bottom:12px;
    padding:10px 12px;
    background: rgba(110,231,249,0.06);
    border-left:2px solid var(--cyan);
    border-radius:8px;
  }
  #reveal .explainer-en{ font-size:13px; color:var(--text); margin-bottom:3px; font-style:italic; }
  #reveal .explainer-hi{ font-size:13px; color:var(--text-dim); }
  #reveal .usage-block{ margin-bottom:6px; }
  #reveal .usage-en{ font-size:14px; color:var(--text); margin-bottom:4px; }
  #reveal .usage-hi{ font-size:14px; color:var(--text-dim); }
  #reveal .emoji-big{ font-size:34px; margin-bottom:8px; }
  #reveal .progress-note{
    margin-top:14px; padding-top:12px;
    border-top:1px solid var(--panel-edge);
    font-size:13px; color:var(--gold);
  }

  .stats-section-title{
    font-size:10px;
    color:var(--gold);
    margin:18px 0 10px;
  }
  .stats-meter{
    margin-bottom:9px;
  }
  .stats-meter-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:4px;
    color:var(--text);
    font-size:12px;
  }
  .stats-meter-top span:last-child{
    color:var(--text-dim);
    white-space:nowrap;
  }
  .stats-meter-track{
    height:13px;
    border-radius:8px;
    overflow:hidden;
    background:rgba(19,23,74,0.9);
    border:1px solid rgba(110,231,249,0.2);
  }
  .stats-meter-fill{
    height:100%;
    min-width:0;
    transition:width .3s ease;
  }
  .stats-meter-note{
    color:var(--text-dim);
    font-size:11px;
    margin-top:3px;
  }

  #next-btn{
    margin-top:18px; width:100%;
    background: var(--cyan); color:#05061a;
    border:none; border-radius:14px;
    padding:14px; font-size:14px; font-weight:800;
    letter-spacing:1px; cursor:pointer;
  }
  #next-btn:active{ transform: scale(0.98); }

  /* ---------- overlay screens ---------- */
  .overlay{
    position:absolute; inset:0; z-index:20;
    background: radial-gradient(ellipse at center, var(--bg-mid), var(--bg-deep) 80%);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; padding:30px;
    gap:14px;
  }
  .overlay.hidden{ display:none; }
  .overlay h1{
    font-size: clamp(18px, 5.5vw, 26px);
    margin:0;
    text-shadow: 0 0 14px rgba(110,231,249,0.5);
  }
  .overlay p{ color:var(--text-dim); font-size:14px; margin:0; line-height:1.6; }
  .overlay .big-emoji{ font-size:56px; }
  .start-btn{
    margin-top:8px;
    background: var(--gold); color:#05061a;
    border:none; border-radius:14px;
    padding:16px 34px; font-size:14px; font-weight:800;
    letter-spacing:1px; cursor:pointer;
    box-shadow: 0 0 24px rgba(255,209,102,0.4);
  }
  .start-btn:active{ transform: scale(0.97); }
  .start-btn[disabled]{ opacity:0.5; box-shadow:none; }
  .test-launch{
    margin-top:0;
    background:var(--cyan);
    box-shadow:0 0 24px rgba(110,231,249,0.32);
    line-height:1.25;
    white-space:normal;
  }
  .test-launch.hidden{ display:none; }

  /* ---------- test screen ---------- */
  .test-panel{
    position:relative;
    width:100%;
    max-width:420px;
    display:flex;
    flex-direction:column;
    gap:12px;
    text-align:left;
  }
  .test-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
  }
  .test-kicker{
    color:var(--gold);
    font-size:9px;
    text-transform:uppercase;
  }
  .test-meta{
    display:flex;
    align-items:center;
    gap:10px;
  }
  .test-timer{
    color:var(--gold);
    font-size:10px;
    white-space:nowrap;
  }
  .test-count{
    color:var(--cyan);
    font-size:10px;
    white-space:nowrap;
  }
  .test-progress-track{
    position:relative;
    min-height:74px;
    background:linear-gradient(180deg, rgba(19,23,74,0.98), rgba(5,6,26,0.88));
    border:1px solid rgba(110,231,249,0.42);
    border-radius:8px;
    overflow:hidden;
    box-shadow:inset 0 0 16px rgba(0,0,0,0.34), 0 0 14px rgba(110,231,249,0.12);
    touch-action:pan-x;
    cursor:grab;
  }
  .test-progress-track::before{
    content:'';
    position:absolute;
    inset:0;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px) 0 0 / 20% 100%,
      linear-gradient(180deg, rgba(255,255,255,0.12), transparent 45%, rgba(0,0,0,0.16));
    pointer-events:none;
    z-index:2;
  }
  #test-progress-fill{
    position:absolute;
    inset:0 auto 0 0;
    height:100%;
    width:0%;
    min-width:0;
    background:linear-gradient(90deg, rgba(124,255,178,0.18), rgba(110,231,249,0.22), rgba(255,209,102,0.24));
    transition:width .22s ease;
  }
  #test-progress-label{
    position:relative;
    z-index:4;
    min-height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:6px 10px 0;
    color:var(--text);
    font-size:8px;
    line-height:1.35;
    text-align:center;
    text-shadow:0 1px 4px rgba(0,0,0,0.78);
  }
  #test-progress-seeds{
    position:relative;
    z-index:4;
    display:flex;
    align-items:center;
    gap:5px;
    min-height:40px;
    padding:0 10px 8px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
    touch-action:pan-x;
    -webkit-overflow-scrolling:touch;
  }
  .test-progress-seed{
    flex:0 0 26px;
    height:34px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1px;
    border-radius:6px;
    color:var(--text-dim);
    line-height:1;
    background:rgba(5,6,26,0.36);
    border:1px solid rgba(154,163,209,0.16);
  }
  .test-progress-seed-num{
    font-size:7px;
    font-weight:700;
    opacity:0.85;
    letter-spacing:0.02em;
  }
  .test-progress-seed-icon{
    font-size:14px;
    line-height:1;
  }
  .test-progress-seed.answered{
    color:var(--green);
    border-color:rgba(124,255,178,0.38);
    background:rgba(124,255,178,0.12);
  }
  .test-progress-seed.visited{
    color:var(--cyan);
    border-color:rgba(110,231,249,0.34);
    background:rgba(110,231,249,0.1);
  }
  .test-progress-seed.current{
    border-color:var(--gold);
    box-shadow:0 0 10px rgba(255,209,102,0.35);
  }
  .test-review-toggle{
    width:100%;
    border:1px solid rgba(110,231,249,0.35);
    border-radius:8px;
    background:rgba(110,231,249,0.08);
    color:var(--cyan);
    padding:11px 12px;
    font-size:9px;
    cursor:pointer;
  }
  .test-review-panel{
    position:absolute;
    inset:14px;
    z-index:20;
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:14px;
    border:1px solid rgba(110,231,249,0.35);
    border-radius:8px;
    background:rgba(8,10,32,0.98);
    box-shadow:0 18px 40px rgba(0,0,0,0.45);
  }
  .test-review-panel.hidden{ display:none; }
  .test-review-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    color:var(--gold);
    font-size:10px;
  }
  .test-review-close{
    flex:0 0 auto;
    border:1px solid rgba(154,163,209,0.42);
    border-radius:8px;
    background:transparent;
    color:var(--text-dim);
    padding:9px 10px;
    font-size:8px;
    cursor:pointer;
  }
  .test-review-list{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    padding:2px 2px 4px;
  }
  .test-nav-button{
    display:flex;
    align-items:flex-start;
    gap:8px;
    width:100%;
    flex:0 0 auto;
    height:auto;
    min-height:48px;
    border:1px solid rgba(110,231,249,0.28);
    border-radius:8px;
    background:rgba(5,6,26,0.42);
    color:var(--text-dim);
    padding:10px 12px;
    font:700 14px/1.35 'Mukta', sans-serif;
    text-align:left;
    cursor:pointer;
  }
  .test-nav-num{
    flex:0 0 auto;
    opacity:0.85;
  }
  .test-nav-text{
    flex:1 1 auto;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .test-nav-button.current{
    color:var(--text);
    border-color:var(--gold);
    background:rgba(255,209,102,0.14);
  }
  .test-nav-button.answered{
    color:var(--green);
    border-color:rgba(124,255,178,0.42);
  }
  .test-nav-button.current.answered{
    color:var(--text);
    border-color:var(--gold);
  }
  .test-nav-button:focus-visible{
    outline:2px solid var(--cyan);
    outline-offset:2px;
  }
  #test-question-card{
    min-height:260px;
    background:rgba(19,23,74,0.74);
    border:1px solid rgba(110,231,249,0.22);
    border-radius:8px;
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  #test-question{
    font-size:18px;
    line-height:1.35;
    font-weight:800;
    color:var(--text);
  }
  #test-answer-area{
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .test-text-answer{
    width:100%;
    resize:vertical;
    min-height:120px;
    border:2px solid var(--panel-edge);
    border-radius:8px;
    padding:12px;
    background:#0d1138;
    color:var(--text);
    font:600 15px/1.4 'Mukta', sans-serif;
  }
  .test-text-answer:focus{
    outline:none;
    border-color:var(--cyan);
  }
  .test-options{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .test-option{
    display:flex;
    align-items:flex-start;
    gap:10px;
    border:1px solid rgba(110,231,249,0.25);
    border-radius:8px;
    padding:12px;
    background:rgba(5,6,26,0.42);
    color:var(--text);
    font-size:15px;
    line-height:1.35;
    cursor:pointer;
  }
  .test-option input{
    width:18px;
    height:18px;
    flex:0 0 auto;
    margin-top:1px;
    accent-color:var(--cyan);
  }
  #test-error{
    min-height:18px;
    color:var(--coral);
    font-size:13px;
  }
  .test-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }
  .test-primary,
  .test-secondary{
    border:none;
    border-radius:8px;
    padding:13px 14px;
    font-size:11px;
    line-height:1;
    cursor:pointer;
  }
  .test-primary{
    flex:1 1 96px;
    background:var(--gold);
    color:#05061a;
    font-weight:800;
  }
  .test-secondary{
    flex:1 1 78px;
    background:transparent;
    color:var(--text-dim);
    border:1px solid rgba(154,163,209,0.42);
  }
  .test-primary[disabled],
  .test-secondary[disabled]{ opacity:0.55; cursor:not-allowed; }
  .test-complete{
    text-align:center;
    padding:24px 10px 12px;
    color:var(--green);
    font-size:22px;
    font-weight:800;
  }

  /* ── Post-test results breakdown ── */
  .test-results-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    max-height:50vh;
    overflow-y:auto;
    padding:4px 2px;
    scrollbar-width:thin;
  }
  .test-result-item{
    padding:12px;
    border-radius:8px;
    border-left:4px solid transparent;
  }
  .test-result-item.result-correct{
    background:rgba(76,175,80,0.1);
    border-left-color:#4CAF50;
  }
  .test-result-item.result-incorrect{
    background:rgba(255,76,76,0.1);
    border-left-color:var(--coral);
  }
  .test-result-item.result-skipped{
    background:rgba(154,163,209,0.08);
    border-left-color:var(--text-dim);
  }
  .test-result-header{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
  }
  .test-result-icon{ font-size:16px; }
  .test-result-num{
    font-family:'Press Start 2P', monospace;
    font-size:9px;
    color:var(--text-dim);
  }
  .test-result-question{
    font-size:14px;
    font-weight:600;
    color:var(--text);
    margin-bottom:8px;
    line-height:1.4;
  }
  .test-result-answers{
    display:flex;
    flex-direction:column;
    gap:4px;
  }
  .test-result-row{
    font-size:12px;
    color:var(--text-dim);
    line-height:1.4;
  }
  .test-result-label{
    color:var(--cyan);
    font-weight:600;
    margin-right:4px;
  }

  /* ---------- login form ---------- */
  .login-form{
    display:flex; flex-direction:column; gap:12px; width:100%; max-width:280px;
  }
  .login-input{
    padding:12px; border:2px solid var(--panel-edge);
    background: var(--panel); color:var(--text);
    border-radius:8px; font-size:13px; font-family:'Mukta', sans-serif;
  }
  .login-input::placeholder{ color:var(--text-dim); }
  .login-input:focus{ outline:none; border-color:var(--cyan); }
  .login-btn{
    background: var(--gold); color:#05061a;
    border:none; border-radius:8px; padding:12px;
    font-weight:800; font-size:13px; cursor:pointer; transition:transform 0.1s;
  }
  .login-btn:active{ transform:scale(0.97); }
  .login-btn[disabled]{ opacity:0.5; cursor:not-allowed; }
  .login-toggle{
    color:var(--cyan); font-size:12px; cursor:pointer; text-align:center;
    text-decoration:underline; margin-top:10px;
  }
  .login-toggle:hover{ color:var(--gold); }
  .login-error{
    color:var(--coral); font-size:12px; text-align:center; min-height:14px;
  }
  .plan-picker{
    width:100%;
    max-width:280px;
    display:flex;
    flex-direction:column;
    gap:6px;
    align-items:stretch;
  }
  .plan-picker.hidden{ display:none; }
  .plan-picker label{
    color:var(--text-dim);
    font-size:9px;
    text-align:left;
  }
  .plan-select{
    padding:12px;
    border:2px solid var(--panel-edge);
    background: var(--panel);
    color:var(--text);
    border-radius:8px;
    font-size:13px;
    font-family:'Mukta', sans-serif;
  }
  .plan-select:focus{ outline:none; border-color:var(--cyan); }

  #debug-panel{ touch-action: pan-x pan-y; }
  #error-banner{
    position:fixed; left:8px; right:8px; top:8px; z-index:999;
    background:#3a0d0d; color:#ffd6d6; border:2px solid var(--coral);
    border-radius:10px; padding:10px 36px 10px 12px; font-size:11px; line-height:1.5;
    max-height:30vh; overflow-y:auto; white-space:pre-wrap; display:none;
  }
  #error-banner-close{
    position:absolute; top:6px; right:8px; color:#ffd6d6; font-size:16px;
    cursor:pointer; padding:4px 8px; line-height:1;
  }

  @media (prefers-reduced-motion: reduce){
    #ship-wrap, .star{ animation: none !important; }
  }
