/* ELVY KONG — Official ELVY Brand Reveal Design System */
@font-face {
  font-family: 'Elvy Display';
  src: url('../assets/fonts/elvy-display-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../assets/fonts/aeonik-400.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../assets/fonts/aeonik-700.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../assets/fonts/aeonik-900.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}

:root {
  --lime: #CFF44E;
  --lime-2: #DDF77A;
  --lime-3: #E9F9A4;
  --mint: #6EDB8C;
  --mint-2: #93E4A9;
  --red: #E8341C;
  --n0: #060606;
  --n1: #1C1C1C;
  --n2: #323232;
  --n3: #6D6D6D;
  --n4: #B9B9B9;
  --n5: #EAEAEA;
  --n6: #F6F6F6;
  --olive: #626645;
  --display: 'Elvy Display', 'Comic Sans MS', cursive;
  --sans: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--n0);
  color: var(--n6);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

/* Grainy brand film texture from ELVY Brand Reveal */
.grainy::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.065;
  z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Mobile-first App Shell */
.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 10%, rgba(207, 244, 78, 0.11), transparent 65%),
    radial-gradient(ellipse 65% 50% at 50% 90%, rgba(110, 219, 140, 0.08), transparent 65%),
    var(--n0);
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 448px;
  height: 100%;
  max-height: 920px;
  display: flex;
  flex-direction: column;
  background: var(--n1);
  overflow: hidden;
}

@media (min-width: 500px) and (min-height: 760px) {
  .phone-frame {
    height: min(94dvh, 880px);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.78),
      0 0 0 1px rgba(207, 244, 78, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

/* Screens */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  z-index: 10;
}
.screen.active {
  display: flex;
}

/* ===================== SPLASH SCREEN ===================== */
#splash-screen {
  background: linear-gradient(180deg, #0b0d09 0%, var(--n1) 52%, #141913 100%);
  padding: max(18px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  justify-content: space-between;
  overflow-y: auto;
}

.splash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-wordmark {
  height: 18px;
  width: auto;
  display: block;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.pill-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(207, 244, 78, 0.12);
  color: var(--lime);
  border: 1px solid rgba(207, 244, 78, 0.28);
}

.splash-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-top: 4px;
}

.splash-logo-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
}

.splash-wordmark-big {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 6px 24px rgba(207, 244, 78, 0.24));
  animation: popIn 0.7s cubic-bezier(.22, 1, .36, 1) both;
}

.splash-title {
  font-family: var(--display);
  font-size: clamp(46px, 12vw, 60px);
  line-height: 0.94;
  color: var(--lime);
  letter-spacing: 0.01em;
  text-shadow: 0 5px 0 #090a07, 0 14px 36px rgba(207, 244, 78, 0.22);
  animation: riseIn 0.65s 0.08s cubic-bezier(.22, 1, .36, 1) both;
}

.splash-subtitle {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n6);
  background: var(--n2);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 219, 140, 0.35);
  animation: riseIn 0.65s 0.16s cubic-bezier(.22, 1, .36, 1) both;
}

.splash-subtitle span {
  color: var(--mint);
}

.splash-stage-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(207, 244, 78, 0.28);
  background: #0d1216;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  margin: 6px 0;
  animation: riseIn 0.7s 0.22s cubic-bezier(.22, 1, .36, 1) both;
}

#splash-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.splash-stage-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 6, 6, 0.78);
  color: var(--lime);
  border: 1px solid rgba(207, 244, 78, 0.28);
}

.splash-stage-badge.right {
  left: auto;
  right: 10px;
  color: #ffb8ae;
  border-color: rgba(232, 52, 28, 0.45);
}

.splash-quip {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--n4);
  max-width: 34ch;
  animation: riseIn 0.7s 0.3s cubic-bezier(.22, 1, .36, 1) both;
}

.splash-quip strong {
  color: var(--n6);
}

.splash-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  animation: riseIn 0.7s 0.36s cubic-bezier(.22, 1, .36, 1) both;
}

.player-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.player-chip .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  flex-shrink: 0;
}

.player-chip-name {
  font-weight: 700;
  color: var(--n6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-chip-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--n4);
}

.link-btn {
  background: none;
  border: none;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn-lime {
  background: var(--lime);
  color: var(--n1);
  box-shadow: 0 8px 26px rgba(207, 244, 78, 0.28);
}

.btn-lime:hover {
  background: var(--lime-2);
}

.btn-secondary {
  background: var(--n2);
  color: var(--n6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: #3c3c3c;
}

.btn-google {
  background: #FCFCFA;
  color: var(--n1);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.splash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--n3);
  padding-top: 6px;
}

/* ===================== GAME SCREEN ===================== */
#game-screen {
  background: #0a0c0e;
}

.hud {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) 12px 7px;
  background: var(--n1);
  border-bottom: 1px solid rgba(207, 244, 78, 0.22);
  z-index: 5;
}

.hud-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hud-score-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--n4);
}

.hud-score {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1.05;
}

.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hud-level-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(207, 244, 78, 0.14);
  color: var(--lime);
  border: 1px solid rgba(207, 244, 78, 0.3);
  white-space: nowrap;
}

.hud-level-pill.hard {
  background: rgba(255, 168, 38, 0.16);
  color: #ffc15e;
  border-color: rgba(255, 168, 38, 0.45);
}

.hud-level-pill.impossible {
  background: rgba(232, 52, 28, 0.22);
  color: #ff7f6e;
  border-color: rgba(232, 52, 28, 0.6);
  animation: pulseDanger 0.9s infinite alternate;
}

.hud-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--n4);
}

.hud-lives {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--mint);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--n2);
  color: var(--n6);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn.active {
  border-color: var(--lime);
  color: var(--lime);
}

.hud-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  background: #141614;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--n4);
}

.hud-subbar .installer-id {
  color: var(--mint);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}

.hud-subbar .bonus-val {
  color: var(--lime-2);
}

/* Playfield Canvas */
.canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07090d;
  overflow: hidden;
}

#game-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

/* Mobile Touch Controls */
.controls-dock {
  flex: 0 0 auto;
  padding: 10px 14px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #171817 0%, #101110 100%);
  border-top: 1px solid rgba(207, 244, 78, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  touch-action: none;
}

.dpad-cluster {
  display: grid;
  grid-template-columns: 52px 52px 52px;
  grid-template-rows: 46px 46px;
  gap: 6px;
  align-items: center;
  justify-items: center;
}

.ctrl-btn {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #2d2f2c 0%, #1e201e 100%);
  color: var(--n6);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #0c0d0c, inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  touch-action: none;
}

.ctrl-btn.pressed,
.ctrl-btn:active {
  transform: translateY(2px);
  background: var(--lime);
  color: var(--n1);
  border-color: var(--lime);
  box-shadow: 0 1px 0 #0c0d0c, 0 0 18px rgba(207, 244, 78, 0.35);
}

.dpad-up { grid-column: 2; grid-row: 1; }
.dpad-left { grid-column: 1; grid-row: 2; }
.dpad-down { grid-column: 2; grid-row: 2; }
.dpad-right { grid-column: 3; grid-row: 2; }

.action-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.jump-btn {
  width: 108px;
  height: 78px;
  border-radius: 20px;
  border: 2px solid var(--lime-2);
  background: linear-gradient(180deg, var(--lime) 0%, #b4dc31 100%);
  color: var(--n1);
  font-family: var(--sans);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 5px 0 #5b7214, 0 10px 24px rgba(207, 244, 78, 0.25);
  cursor: pointer;
  touch-action: none;
}

.jump-btn small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.jump-btn.pressed,
.jump-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #5b7214, 0 0 26px rgba(207, 244, 78, 0.5);
  background: var(--lime-2);
}

.kb-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--n3);
  text-transform: uppercase;
}

/* ===================== MODALS & OVERLAYS ===================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 40;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.18s ease both;
}

.modal-card {
  width: 100%;
  max-width: 390px;
  max-height: 88%;
  overflow-y: auto;
  background: var(--n1);
  border: 1px solid rgba(207, 244, 78, 0.28);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.modal-title {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.02;
  color: var(--lime);
}

.modal-sub {
  font-size: 13px;
  color: var(--n4);
  line-height: 1.45;
  margin-top: 4px;
}

.close-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--n2);
  color: var(--n6);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n4);
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: #121312;
  color: var(--n6);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.text-input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(207, 244, 78, 0.15);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--n3);
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.google-picker {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #141715;
  border: 1px solid rgba(110, 219, 140, 0.3);
}

.google-picker.open {
  display: flex;
}

.google-account-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--n6);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.google-account-btn:hover {
  border-color: var(--lime);
  background: rgba(207, 244, 78, 0.08);
}

.g-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--n1);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.g-name {
  font-size: 13px;
  font-weight: 700;
}

.g-email {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--n4);
}

.error-msg {
  font-family: var(--mono);
  font-size: 11px;
  color: #ff7f6e;
  min-height: 14px;
}

/* Leaderboard List */
.lb-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lb-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.lb-row.top-1 {
  background: rgba(207, 244, 78, 0.13);
  border-color: rgba(207, 244, 78, 0.45);
}

.lb-row.is-me {
  border-color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(110, 219, 140, 0.35);
}

.lb-rank {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--n4);
  text-align: center;
}

.lb-row.top-1 .lb-rank { color: var(--lime); }

.lb-who {
  min-width: 0;
}

.lb-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--n6);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-badge {
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--n4);
  flex-shrink: 0;
}

.lb-badge.google {
  background: rgba(110, 219, 140, 0.16);
  color: var(--mint);
}

.lb-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--n3);
}

.lb-score-col {
  text-align: right;
}

.lb-score {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--lime);
}

.lb-lvl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--n4);
}

/* Game Over / Status Banner Overlay inside Canvas Wrap */
.canvas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  gap: 12px;
  z-index: 20;
}

.canvas-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease both;
}

.overlay-title {
  font-family: var(--display);
  font-size: 40px;
  line-height: 0.98;
  color: var(--lime);
}

.overlay-title.danger {
  color: #ff6b57;
}

.overlay-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 310px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 6px;
}

.stat-box .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--n4);
  text-transform: uppercase;
}

.stat-box .v {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--lime);
  margin-top: 2px;
}

.overlay-quip {
  font-size: 13px;
  color: var(--n4);
  max-width: 30ch;
  line-height: 1.45;
}

.overlay-actions {
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  70% { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseDanger {
  from { box-shadow: 0 0 0 rgba(232, 52, 28, 0.1); }
  to { box-shadow: 0 0 14px rgba(232, 52, 28, 0.55); }
}

/* ==================== HUB SESSION & SCORE STATUS ==================== */
.hub-alert {
  background: rgba(232, 52, 28, 0.14);
  border: 1px solid rgba(232, 52, 28, 0.55);
  border-radius: 12px;
  padding: 11px 13px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  color: #ffd0c9;
}
.hub-alert strong {
  display: block;
  color: #ff8676;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.hub-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(207, 244, 78, 0.18);
  color: var(--lime);
  border: 1px solid rgba(207, 244, 78, 0.4);
  margin-left: 6px;
  vertical-align: middle;
}
.hub-mode-badge.recorded {
  background: rgba(110, 219, 140, 0.18);
  color: var(--mint);
  border-color: rgba(110, 219, 140, 0.45);
}
.hub-mode-badge.demo {
  background: rgba(255, 196, 61, 0.16);
  color: #ffd166;
  border-color: rgba(255, 196, 61, 0.4);
}
.go-submit-status {
  width: 100%;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  background: rgba(110, 219, 140, 0.14);
  border: 1px solid rgba(110, 219, 140, 0.4);
  color: var(--mint);
}
.go-submit-status.error {
  background: rgba(232, 52, 28, 0.18);
  border-color: rgba(232, 52, 28, 0.55);
  color: #ffb0a4;
}
.go-submit-status.practice {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ccc;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
.lb-empty {
  text-align: center;
  padding: 26px 12px;
  color: #9e9e9e;
  font-size: 13px;
}
