/* Neon Stack — shell styles (game canvas draws its own visuals). */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #0a0a18; color: #dff3ff; overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#app { height: 100%; display: flex; flex-direction: column; }

#topbar { padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
#tabs { display: flex; gap: 6px; }
.tab {
  background: rgba(124,77,255,0.12); color: #9db4d8; border: 1px solid rgba(124,77,255,0.4);
  border-radius: 999px; padding: 8px 14px; min-height: 44px; font-weight: 700; font-size: .8rem;
  cursor: pointer; letter-spacing: .04em;
}
.tab.on { background: linear-gradient(135deg, rgba(0,229,255,.25), rgba(124,77,255,.35)); color: #fff; border-color: #00e5ff; }
#chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(0,229,255,0.25);
  border-radius: 999px; padding: 4px 10px; font-size: .78rem; display: flex; gap: 6px; align-items: baseline;
  min-height: 32px; align-items: center;
}
.chip .lb { color: #7f93b8; font-size: .66rem; letter-spacing: .08em; }
.chip b { color: #00e5ff; font-variant-numeric: tabular-nums; }
#next { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 8px; }
.pill {
  background: rgba(255,255,255,0.08); color: #dff3ff; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; width: 44px; height: 44px; font-size: 1.05rem; cursor: pointer;
}
.pill:active { transform: scale(.94); }

#stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; touch-action: none; padding: 4px; }
#cv { display: block; aspect-ratio: 1 / 2; max-width: 100%; max-height: 100%; border-radius: 10px; }

#panel {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(6,8,24,0.72); backdrop-filter: blur(3px);
}
#panel.hide { display: none; }
#panelBox {
  text-align: center; padding: 26px 30px; border-radius: 16px; max-width: 86%;
  background: rgba(14,18,44,0.9); border: 1px solid rgba(0,229,255,0.35);
  box-shadow: 0 0 34px rgba(0,229,255,0.18), inset 0 0 22px rgba(124,77,255,0.12);
}
#panelBox h1 { font-size: 1.5rem; letter-spacing: .1em; color: #00e5ff; text-shadow: 0 0 18px rgba(0,229,255,.6); }
#panelBox h2 { font-size: 1.3rem; letter-spacing: .08em; color: #ff2d95; text-shadow: 0 0 16px rgba(255,45,149,.55); }
#panelBox .sub { color: #9db4d8; margin: 6px 0 10px; font-size: .85rem; }
#panelBox .bigscore { font-size: 2.4rem; font-weight: 800; color: #ffd54a; margin: 10px 0 4px; text-shadow: 0 0 20px rgba(255,213,74,.5); }
#panelBox .newbest { color: #ffd54a; font-weight: 700; letter-spacing: .12em; margin-bottom: 6px; animation: pulse 1.1s infinite; }
#panelBox .bests { color: #9db4d8; font-size: .85rem; margin-bottom: 12px; }
#panelBox .kbhint { color: #64789c; font-size: .7rem; margin-top: 12px; max-width: 300px; }
.primary {
  background: linear-gradient(135deg, #00e5ff, #7c4dff); color: #061024; font-weight: 800;
  border: 0; border-radius: 12px; padding: 12px 30px; min-height: 44px; font-size: 1rem;
  cursor: pointer; letter-spacing: .05em; box-shadow: 0 4px 18px rgba(0,229,255,.35);
}
.primary:active { transform: scale(.96); }
@keyframes pulse { 50% { opacity: .55; } }

#hint { text-align: center; color: #64789c; font-size: .68rem; padding: 5px 8px 8px; }
@media (prefers-reduced-motion: reduce) {
  #panelBox .newbest { animation: none; }
}
