:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #060510;
  color: #f8f7ff;
  --panel: rgba(8, 7, 22, 0.94);
  --line: rgba(112, 232, 255, 0.72);
  --blue: #32e6ff;
  --purple: #8d54ff;
  --pink: #ff43d7;
  --danger: #ff365f;
  --ink: #060510;
  --app-width: 100vw;
  --app-height: 100dvh;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #060510; }
body { min-height: 100dvh; overflow-x: hidden; }
body.gameplay-active { position: fixed; inset: 0 auto auto 0; width: var(--app-width); height: var(--app-height); min-height: 0; overflow: hidden; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(50, 230, 255, 0.045) 63px 65px),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(141, 84, 255, 0.045) 63px 65px),
    radial-gradient(circle at 18% 18%, rgba(50, 230, 255, 0.15), transparent 30%),
    radial-gradient(circle at 82% 28%, rgba(255, 67, 215, 0.13), transparent 34%),
    linear-gradient(180deg, #0d0824 0%, #060510 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.03) 18px 19px);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.panel {
  width: min(560px, 100%);
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(50, 230, 255, 0.055), transparent 35%),
    linear-gradient(315deg, rgba(141, 84, 255, 0.07), transparent 38%),
    var(--panel);
  border-radius: 12px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.56),
    0 0 0 4px rgba(6, 5, 16, 0.92),
    0 0 30px rgba(50, 230, 255, 0.14),
    inset 0 0 38px rgba(141, 84, 255, 0.055);
  animation: panel-enter 180ms ease-out both;
}

.brand-mark {
  width: 44px;
  aspect-ratio: 1;
  position: relative;
  transform: rotate(45deg);
  border: 3px solid #fff;
  background: var(--blue);
  box-shadow: 0 0 0 4px #080816, 0 0 24px var(--blue), inset 0 0 0 8px rgba(8, 8, 22, 0.72);
  margin: 0 0 30px 7px;
  animation: brand-pulse 1.05s ease-in-out infinite;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

.eyebrow { margin: 0 0 10px; color: #bfb8da; font-size: 11px; letter-spacing: 0.22em; font-weight: 950; }
.eyebrow.danger { color: var(--danger); text-shadow: 0 0 15px rgba(255, 54, 95, 0.55); }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; text-transform: uppercase; }
h1 { margin-bottom: 12px; font-size: clamp(38px, 8vw, 66px); line-height: 0.9; letter-spacing: 0.01em; text-shadow: 3px 3px 0 #16102d, 0 0 22px rgba(50, 230, 255, 0.2); }
h2 { font-size: clamp(30px, 5vw, 44px); letter-spacing: 0.01em; }
.subcopy, .rule-note, .modal-panel p { color: #bbb6cc; line-height: 1.5; }

.balance-card, .decision-values > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.035);
  border-radius: 7px;
  padding: 15px 17px;
  box-shadow: inset 0 0 0 2px rgba(5,5,16,0.7);
}
.balance-card { margin: 26px 0 18px; border-color: rgba(50, 230, 255, 0.42); }
.balance-card span, .decision-values span { color: #9992af; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.balance-card strong { color: var(--blue); text-shadow: 0 0 12px rgba(50,230,255,0.42); }

.entry-field { display: grid; gap: 9px; color: #d3cee2; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.entry-control { display: flex; align-items: center; border: 2px solid rgba(141, 84, 255, 0.58); border-radius: 7px; padding: 0 15px; background: rgba(5, 5, 16, 0.88); box-shadow: inset 0 0 18px rgba(141,84,255,0.08); }
.entry-control:focus-within { border-color: var(--blue); box-shadow: 0 0 18px rgba(50,230,255,0.14); }
.entry-control input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 28px; font-weight: 950; padding: 13px 0; }
.entry-control span { color: #8e86a0; text-transform: none; letter-spacing: 0; }
.error-text { min-height: 20px; margin: 10px 0 0; color: #ff7893; font-size: 13px; }

.lobby-actions, .modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.button {
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 7px;
  min-height: 54px;
  padding: 0 18px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #060510, inset 0 0 0 2px rgba(5,5,16,0.32);
  transition: transform 90ms ease, filter 90ms ease, box-shadow 90ms ease;
}
.button.primary { color: #060510; background: linear-gradient(180deg, #a6f8ff 0%, var(--blue) 58%, #23b5e3 100%); box-shadow: 0 4px 0 #092335, 0 0 22px rgba(50,230,255,0.2), inset 0 0 0 2px rgba(255,255,255,0.2); }
.button.secondary { color: white; border-color: rgba(184, 149, 255, 0.75); background: linear-gradient(180deg, rgba(141,84,255,0.3), rgba(55,25,105,0.55)); }
.button:hover { filter: brightness(1.09); transform: translateY(-1px); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 #060510; }
.rule-note { margin: 18px 0 0; text-align: center; font-size: 11px; letter-spacing: 0.08em; }

.game-screen { width: min(1500px, 100%); display: grid; gap: 8px; }
.canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid rgba(180, 248, 255, 0.8);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 55%, rgba(31, 93, 188, 0.28), transparent 44%),
    linear-gradient(180deg, #090824, #050410);
  box-shadow: 0 0 0 3px rgba(5,5,16,0.95), 0 0 34px rgba(50, 230, 255, 0.18), 0 0 60px rgba(141, 84, 255, 0.12);
}
.canvas-frame::before,
.canvas-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 42px;
  height: 42px;
  border-color: var(--blue);
  filter: drop-shadow(0 0 8px rgba(50,230,255,0.5));
}
.canvas-frame::before { top: 8px; left: 8px; border-top: 4px solid; border-left: 4px solid; }
.canvas-frame::after { right: 8px; bottom: 8px; border-right: 4px solid; border-bottom: 4px solid; }
#game-canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hud > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border: 2px solid rgba(255,255,255,0.14); border-top-color: rgba(50,230,255,0.65); border-radius: 6px; background: rgba(6, 5, 16, 0.9); padding: 9px 12px; box-shadow: inset 0 0 16px rgba(141,84,255,0.055); }
.hud span { font-size: 9px; color: #8f88a3; letter-spacing: 0.14em; font-weight: 900; }
.hud strong { color: #fff; font-family: "Arial Black", Inter, sans-serif; text-shadow: 0 0 10px rgba(50,230,255,0.25); }
.control-hint { margin: 0; text-align: center; font-size: 9px; letter-spacing: 0.2em; color: #6f687e; font-weight: 900; }

.modal-panel { position: fixed; z-index: 20; inset: 50% auto auto 50%; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; transform: translate(-50%, -50%); border-radius: 10px; animation: modal-enter 160ms ease-out both; }
.decision-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.decision-values > div { min-width: 0; }
.decision-values strong { color: var(--blue); font-size: clamp(17px, 2.4vw, 24px); white-space: nowrap; }

.rotate-overlay { position: fixed; z-index: 50; inset: 0; display: grid; place-content: center; text-align: center; padding: 30px; background: #060510; }
.rotate-icon { font-size: 64px; color: var(--blue); text-shadow: 0 0 24px var(--blue); }
.rotate-overlay h2 { margin: 12px 0 4px; }
.rotate-overlay p { color: #aaa2bc; }

.start-countdown {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 52%, rgba(50,230,255,0.24), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(141,84,255,0.22), transparent 52%),
    linear-gradient(rgba(4,3,14,0.74), rgba(4,3,14,0.84)),
    url("./assets/backgrounds/neon-city.png") center 58% / cover no-repeat,
    #04030e;
}
.start-countdown::before,
.start-countdown::after {
  content: "";
  position: absolute;
  width: min(66vw, 520px);
  aspect-ratio: 1;
  border: 2px solid rgba(50,230,255,0.28);
  transform: rotate(45deg);
  box-shadow: 0 0 42px rgba(50,230,255,0.16), inset 0 0 42px rgba(141,84,255,0.08);
  pointer-events: none;
}
.start-countdown::after { width: min(44vw, 340px); border-color: rgba(190,112,255,0.3); }
.start-countdown-kicker,
.start-countdown-caption { position: relative; z-index: 1; margin: 0; font-weight: 950; letter-spacing: 0.28em; }
.start-countdown-kicker { color: #8cecff; font-size: clamp(11px, 2.4vw, 18px); text-shadow: 0 0 16px rgba(50,230,255,0.65); }
.start-countdown-caption { color: #c9c4d8; font-size: clamp(9px, 1.7vw, 13px); }
.start-countdown-value {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 1.1em;
  color: #fff;
  font-family: "Arial Black", Inter, sans-serif;
  font-size: clamp(112px, 34vmin, 270px);
  line-height: 0.88;
  text-shadow: 0 0 10px #fff, 0 0 28px #32e6ff, 0 0 70px rgba(141,84,255,0.85);
}
.start-countdown.countdown-tick .start-countdown-value { animation: countdown-hit 1s cubic-bezier(.16,.84,.2,1) both; }
.start-countdown.countdown-tick::before { animation: countdown-ring 1s ease-out both; }
.start-countdown.countdown-tick::after { animation: countdown-ring-inner 1s cubic-bezier(.16,.84,.2,1) both; }

@keyframes brand-pulse {
  0%, 100% { transform: rotate(45deg) scale(1); filter: brightness(0.92); box-shadow: 0 0 0 4px #080816, 0 0 18px rgba(50,230,255,0.55), inset 0 0 0 8px rgba(8,8,22,0.72); }
  50% { transform: rotate(45deg) scale(1.06); filter: brightness(1.16); box-shadow: 0 0 0 4px #080816, 0 0 32px rgba(50,230,255,0.8), inset 0 0 0 8px rgba(8,8,22,0.58); }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-enter {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(0.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes countdown-hit {
  0% { opacity: 0; transform: scale(1.7); filter: brightness(1.8); }
  18% { opacity: 1; transform: scale(0.92); filter: brightness(1.2); }
  36% { transform: scale(1.05); }
  100% { opacity: 0.78; transform: scale(1); filter: brightness(1); }
}

@keyframes countdown-ring {
  0% { opacity: 0.95; transform: rotate(45deg) scale(0.66); filter: brightness(1.7); }
  45% { opacity: 0.72; transform: rotate(90deg) scale(1.02); filter: brightness(1.25); }
  100% { opacity: 0.12; transform: rotate(135deg) scale(1.28); filter: brightness(0.9); }
}

@keyframes countdown-ring-inner {
  0% { opacity: 0.22; transform: rotate(45deg) scale(1.14); filter: brightness(0.9); }
  32% { opacity: 1; transform: rotate(-35deg) scale(0.76); filter: brightness(1.8); }
  62% { opacity: 0.78; transform: rotate(-75deg) scale(0.9); filter: brightness(1.35); }
  100% { opacity: 0.28; transform: rotate(-135deg) scale(1.08); filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .start-countdown.countdown-tick .start-countdown-value,
  .start-countdown.countdown-tick::before,
  .start-countdown.countdown-tick::after { animation: none; }
}

@media (pointer: coarse) {
  .button:hover { transform: none; filter: none; }
}

@media (max-width: 720px) {
  .app-shell { padding: 14px; }
  .panel { border-radius: 8px; padding: 22px; }
  .lobby-actions, .modal-actions { grid-template-columns: 1fr; }
  .hud > div { padding: 8px 9px; }
  .hud span { display: none; }
  .hud strong { width: 100%; text-align: center; }
}

@media (orientation: portrait) and (pointer: coarse) {
  .game-screen:not(.hidden) { visibility: hidden; }
}

@media (orientation: landscape) and (pointer: coarse) {
  body.gameplay-active .app-shell {
    width: var(--app-width);
    height: var(--app-height);
    min-height: 0;
    place-items: stretch;
    padding:
      max(4px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-right))
      max(4px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
  }

  body.gameplay-active .game-screen {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
  }

  body.gameplay-active .canvas-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    display: grid;
    place-items: start center;
    border-radius: 5px;
  }

  body.gameplay-active #game-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
  }

  body.gameplay-active .hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  body.gameplay-active .hud > div {
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 4px;
  }

  body.gameplay-active .hud span { font-size: 9px; }
  body.gameplay-active .hud strong { font-size: 13px; }
  body.gameplay-active .control-hint { display: none; }

  body.gameplay-active .modal-panel {
    width: min(560px, calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 20px));
    max-height: calc(var(--app-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px);
    overflow: auto;
    padding: 14px 18px;
    border-radius: 8px;
  }

  body.gameplay-active .modal-panel h2 { margin-bottom: 8px; font-size: clamp(24px, 7vh, 36px); }
  body.gameplay-active .modal-panel p { margin-bottom: 8px; line-height: 1.3; }
  body.gameplay-active .decision-values { grid-template-columns: 1fr 1fr; margin: 10px 0; gap: 6px; }
  body.gameplay-active .decision-values > div { padding: 9px 12px; border-radius: 5px; }
  body.gameplay-active .decision-values strong { font-size: clamp(15px, 3.2vw, 18px); }
  body.gameplay-active .modal-actions { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  body.gameplay-active .button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* VFX V7 lobby */
.lobby-panel {
  width: min(760px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border-color: rgba(50, 230, 255, 0.88);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.62),
    0 0 0 4px rgba(6, 5, 16, 0.94),
    0 0 32px rgba(50, 230, 255, 0.16),
    0 0 44px rgba(255, 67, 215, 0.08),
    inset 0 0 46px rgba(141, 84, 255, 0.055);
}

.lobby-header { display: grid; justify-items: center; text-align: center; margin-bottom: 22px; }
.lobby-header .brand-mark { width: 58px; margin: 4px 0 18px; }
.lobby-title { margin: 0 0 8px; font-size: clamp(52px, 10vw, 82px); line-height: 0.9; letter-spacing: 0.025em; }
.lobby-title span { color: var(--blue); text-shadow: 0 0 20px rgba(50, 230, 255, 0.8); }
.lobby-header .eyebrow { margin-bottom: 0; }

.how-card {
  border: 2px solid rgba(115, 95, 206, 0.62);
  border-radius: 12px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(9, 12, 42, 0.92), rgba(7, 6, 26, 0.96));
  box-shadow: inset 0 0 30px rgba(73, 45, 156, 0.12), 0 0 20px rgba(50, 230, 255, 0.045);
}

.section-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-shadow: 0 0 12px rgba(50, 230, 255, 0.42);
}
.section-title::before, .section-title::after { content: "✦"; margin: 0 10px; font-size: 9px; vertical-align: 2px; }

.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.how-item {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 4px 12px 2px;
  text-align: center;
  color: #a96cff;
  border-right: 1px solid rgba(133, 97, 224, 0.28);
}
.how-item:last-child { border-right: 0; }
.how-icon { width: 54px; height: 54px; filter: drop-shadow(0 0 8px currentColor); }
.how-item p { margin: 0; color: #f4f1ff; font-size: 11px; line-height: 1.28; font-weight: 850; letter-spacing: 0.035em; }
.how-item strong { color: var(--blue); }
.reward-icon { color: #ffd12c; }
.danger-item { color: #ff5d77; }
.danger-item strong { color: #ff5d77; }

.gameplay-demo { margin-top: 20px; }
.gameplay-title { color: #cb50ff; text-shadow: 0 0 12px rgba(203, 80, 255, 0.46); }
.gameplay-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid #8f4dff;
  border-right-color: #32bfff;
  border-radius: 16px;
  background: #090719 url('./assets/backgrounds/neon-city.png') center / cover no-repeat;
  box-shadow: 0 0 24px rgba(141, 84, 255, 0.32), inset 0 0 40px rgba(8, 4, 38, 0.28);
}
.gameplay-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 60%, rgba(4, 3, 20, 0.2) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
#gameplay-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.loop-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(50, 230, 255, 0.7);
  border-radius: 6px;
  color: var(--blue);
  background: rgba(4, 10, 28, 0.88);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  box-shadow: 0 0 14px rgba(50, 230, 255, 0.18);
}
.preview-player, .preview-track { display: none; }

.lobby-panel .balance-card { margin: 20px 0 16px; }
.lobby-panel .lobby-actions { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.lobby-panel .button { min-height: 58px; }
.lobby-panel .rule-note { margin-top: 18px; }

@media (max-width: 720px) {
  .app-shell { place-items: start center; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .lobby-panel { padding: 18px 14px 22px; border-radius: 14px; }
  .lobby-header { margin-bottom: 16px; }
  .lobby-header .brand-mark { width: 48px; margin-bottom: 15px; }
  .lobby-title { font-size: clamp(48px, 15vw, 66px); }
  .lobby-header .eyebrow { font-size: 9px; letter-spacing: 0.16em; }
  .how-card { padding: 12px 10px; }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .how-item { min-height: 116px; padding: 6px 8px 10px; border-right: 1px solid rgba(133, 97, 224, 0.25); border-bottom: 1px solid rgba(133, 97, 224, 0.25); }
  .how-item:nth-child(2n) { border-right: 0; }
  .how-item:nth-child(n+3) { border-bottom: 0; padding-top: 12px; }
  .how-icon { width: 44px; height: 44px; }
  .how-item p { font-size: 10px; }
  .section-title { font-size: 12px; }
  .gameplay-demo { margin-top: 16px; }
  .gameplay-preview { border-width: 2px; border-radius: 12px; }
  .loop-badge { top: 7px; right: 7px; padding: 5px 7px; font-size: 7px; }
  .lobby-panel .balance-card { margin-top: 16px; }
  .lobby-panel .button { min-height: 56px; }
}

@media (max-width: 390px) {
  .lobby-panel { padding-inline: 12px; }
  .how-item { min-height: 108px; }
  .how-icon { width: 40px; height: 40px; }
  .how-item p { font-size: 9px; }
  .section-title::before, .section-title::after { margin: 0 6px; }
}

/* Account gate */
body.auth-required .app-shell {
  pointer-events: none;
  filter: blur(7px) brightness(0.48);
  transform: scale(0.99);
}

.auth-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 18%, rgba(50, 230, 255, 0.14), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(255, 67, 215, 0.12), transparent 32%),
    rgba(4, 3, 14, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  border: 2px solid rgba(50, 230, 255, 0.78);
  border-radius: 14px;
  padding: clamp(24px, 6vw, 36px);
  background:
    linear-gradient(145deg, rgba(50, 230, 255, 0.07), transparent 36%),
    linear-gradient(325deg, rgba(141, 84, 255, 0.11), transparent 42%),
    rgba(7, 6, 22, 0.97);
  box-shadow: 0 28px 90px rgba(0,0,0,0.72), 0 0 34px rgba(50,230,255,0.18), inset 0 0 40px rgba(141,84,255,0.08);
  animation: panel-enter 180ms ease-out both;
}

.auth-brand {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(50,230,255,.34));
}
.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  color: #a9a3b7;
  background: transparent;
  font-size: 26px;
  line-height: 1;
}
.auth-close:hover { color: white; }

.auth-kicker { margin-bottom: 8px; text-align: center; color: var(--blue); font-size: 10px; font-weight: 950; letter-spacing: 0.2em; }
.auth-card h2 { margin-bottom: 8px; text-align: center; font-size: clamp(32px, 8vw, 46px); }
.auth-copy { margin: 0 auto 22px; max-width: 320px; text-align: center; color: #aaa3bd; line-height: 1.45; font-size: 13px; }

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(3,3,12,0.72);
}
.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  color: #8f88a3;
  background: transparent;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.auth-tab.active { color: #061019; background: var(--blue); box-shadow: 0 0 18px rgba(50,230,255,0.24); }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 7px; color: #c9c3d8; font-size: 10px; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.auth-form input {
  width: 100%;
  min-height: 50px;
  border: 2px solid rgba(141,84,255,0.48);
  border-radius: 7px;
  outline: none;
  padding: 0 14px;
  color: white;
  background: rgba(4,4,15,0.9);
  text-transform: none;
  letter-spacing: normal;
}
.auth-form input:focus { border-color: var(--blue); box-shadow: 0 0 18px rgba(50,230,255,0.12); }
.auth-error { min-height: 18px; margin: -2px 0 0; }
.auth-submit { width: 100%; }
.auth-submit:disabled { cursor: wait; filter: grayscale(0.5) brightness(0.7); }
.auth-note { margin: 16px 0 0; text-align: center; color: #716a80; font-size: 10px; letter-spacing: 0.05em; }
.auth-link { justify-self: end; min-height: 32px; margin-top: -8px; border: 0; padding: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }
.auth-link-wide { display: block; width: 100%; margin: 14px 0 0; text-align: center; }

@media (max-width: 720px) {
  .auth-card { border-radius: 12px; padding: 24px 18px; }
  .auth-copy { margin-bottom: 18px; }
}

/* Account access and profile */
.auth-card { max-height: calc(100dvh - 24px); overflow-y: auto; }
.auth-register-fields { display: grid; gap: 14px; }
.auth-consents { display: grid; gap: 10px; }
.auth-check {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px !important;
  color: #bcb6cc !important;
  font-size: 11px !important;
  line-height: 1.4;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.auth-check input {
  width: 20px !important;
  height: 20px;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  accent-color: var(--blue);
}
.auth-remember { margin-top: -2px; }
.auth-remember span { display: grid; gap: 3px; }
.auth-remember strong { color: #d7d3e2; font-size: 11px; }
.auth-remember small { color: #817a90; font-size: 9px; font-weight: 600; line-height: 1.4; }

.account-button {
  position: fixed;
  z-index: 70;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(50,230,255,0.48);
  border-radius: 999px;
  padding: 6px 12px 6px 7px;
  color: white;
  background: rgba(7,7,24,0.92);
  box-shadow: 0 10px 28px rgba(0,0,0,0.42), 0 0 18px rgba(50,230,255,0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.account-button:hover { border-color: var(--blue); }
.account-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,0.9);
  background: linear-gradient(145deg, var(--blue), var(--purple));
  box-shadow: 0 0 16px rgba(50,230,255,0.38), inset 0 0 0 5px rgba(6,5,16,0.7);
  transform: rotate(45deg);
}
.account-avatar { width: 38px; height: 38px; border-radius: 10px; }
.account-avatar span,
.profile-avatar span { width: 10px; height: 10px; background: white; box-shadow: 0 0 10px white; }
.account-button-copy { display: grid; min-width: 0; text-align: left; }
.account-button-copy small { color: #8f88a3; font-size: 8px; font-weight: 900; letter-spacing: 0.12em; }
.account-button-copy strong { color: var(--blue); font-size: 13px; }
body.gameplay-active .account-button { display: none; }

body.account-open { overflow: hidden; }
.account-overlay { position: fixed; z-index: 90; inset: 0; display: grid; justify-items: end; }
.account-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(2,2,10,0.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.account-drawer {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  height: 100dvh;
  overflow-y: auto;
  padding: 0 20px max(28px, env(safe-area-inset-bottom));
  border-left: 1px solid rgba(50,230,255,0.26);
  background:
    radial-gradient(circle at 80% 8%, rgba(50,230,255,0.12), transparent 28%),
    linear-gradient(180deg, #09091f 0%, #050511 100%);
  box-shadow: -30px 0 80px rgba(0,0,0,0.52);
  animation: account-enter 180ms ease-out both;
}
.account-drawer-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 82px;
  margin: 0 -20px 18px;
  padding: max(10px, env(safe-area-inset-top)) 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,7,24,0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.account-drawer-header > div { text-align: center; }
.account-drawer-header h2 { margin: 0; font-family: Inter, sans-serif; font-size: 20px; letter-spacing: 0; text-transform: none; }
.account-kicker { margin: 0 0 3px; color: var(--blue); font-size: 9px; font-weight: 950; letter-spacing: 0.16em; }
.account-close,
.account-back { width: 44px; height: 44px; border: 0; border-radius: 10px; color: white; background: rgba(255,255,255,0.04); font-size: 32px; line-height: 1; }
.account-back { font-size: 36px; }
.account-view { min-width: 0; }

.profile-hero { display: grid; justify-items: center; text-align: center; padding: 12px 0 22px; }
.profile-avatar { width: 84px; height: 84px; margin: 8px 0 24px; border-radius: 22px; }
.profile-avatar span { width: 18px; height: 18px; }
.profile-hero h3 { margin: 0 0 5px; font-size: 24px; }
.profile-hero > p { margin: 0 0 12px; color: #8f88a3; font-size: 11px; }
.sandbox-badge { padding: 6px 9px; border: 1px solid rgba(141,84,255,0.45); border-radius: 999px; color: #b8a4ff; background: rgba(141,84,255,0.1); font-size: 8px; font-weight: 900; letter-spacing: 0.1em; }
.deposit-demo-notice{display:grid;gap:5px;margin:0 0 14px;padding:12px 14px;border:1px solid rgba(50,230,255,.35);border-radius:9px;background:rgba(20,83,105,.12)}.deposit-demo-notice strong{color:#4de8f0;font-size:12px;letter-spacing:.08em}.deposit-demo-notice span{color:#aeb8c4;font-size:10px;line-height:1.45}
.profile-balance { display: grid; gap: 4px; margin: 24px 0 18px; }
.profile-balance span { color: #817a90; font-size: 9px; font-weight: 900; letter-spacing: 0.15em; }
.profile-balance strong { color: white; font-size: clamp(28px, 8vw, 40px); text-shadow: 0 0 18px rgba(50,230,255,0.16); }
.profile-primary-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.account-menu { display: grid; gap: 8px; }
.account-menu button {
  position: relative;
  min-height: 62px;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 12px 42px 12px 15px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  color: white;
  text-align: left;
  background: rgba(255,255,255,0.035);
}
.account-menu button::after { content: "›"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #777084; font-size: 26px; }
.account-menu button span { font-weight: 850; }
.account-menu button small { color: #817a90; font-size: 10px; }
.account-menu button:hover { border-color: rgba(50,230,255,0.4); background: rgba(50,230,255,0.045); }
.account-menu .danger-menu span { color: #ff7893; }

.account-section-heading { margin: 6px 0 20px; }
.account-section-heading h3 { margin: 0; font-size: 28px; }
.account-explainer { margin: -8px 0 20px; color: #aaa3bd; line-height: 1.5; font-size: 13px; }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.profile-stats div { display: grid; gap: 4px; min-height: 88px; align-content: center; padding: 12px; border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; background: rgba(255,255,255,0.03); }
.profile-stats strong { color: var(--blue); font-size: 21px; }
.profile-stats span { color: #817a90; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.account-info-card { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; padding: 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; background: rgba(255,255,255,0.025); }
.account-info-card span { color: #817a90; font-size: 11px; }
.account-info-card strong { min-width: 0; overflow-wrap: anywhere; text-align: right; font-size: 12px; }

.sandbox-form { display: grid; gap: 14px; }
.sandbox-form label { display: grid; gap: 8px; color: #bcb6cc; font-size: 11px; font-weight: 850; }
.sandbox-form input,.sandbox-form select { width: 100%; min-height: 58px; border: 2px solid rgba(141,84,255,0.45); border-radius: 9px; outline: 0; padding: 0 14px; color: white; background: rgba(4,4,15,0.9); font-size: 24px; font-weight: 850; }
.sandbox-form input:focus,.sandbox-form select:focus { border-color: var(--blue); }
.quick-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-values button { min-height: 46px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: white; background: rgba(255,255,255,0.035); font-weight: 850; }
.quick-values button:hover { border-color: var(--blue); }
.deposit-minimum{margin-top:-3px;color:#817a90;font-size:10px;font-weight:700}.deposit-quick-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;padding-top:7px}.deposit-quick-values button{position:relative;display:grid;place-items:center;min-height:52px;padding:8px 6px 5px}.deposit-quick-values button strong{font-size:13px}.deposit-bonus-tag{position:absolute;top:-9px;right:5px;padding:3px 6px;border-radius:999px;color:#fff;background:#ff2d3d;box-shadow:0 0 12px rgba(255,45,61,.42);font-size:8px;font-weight:950;letter-spacing:.04em}.deposit-bonus-note{margin:-2px 0 0;color:#ff7781;font-size:10px;font-weight:800;line-height:1.4}.deposit-preview,.rollover-status{padding:12px 13px;border:1px solid rgba(255,255,255,.09);border-radius:9px;background:rgba(255,255,255,.03);color:#bdb7c9;font-size:10px;line-height:1.5}.deposit-preview{border-color:rgba(255,45,61,.22)}.rollover-status{border-color:rgba(50,230,255,.22);color:#aebfc9}
.available-balance { margin: 0; color: #817a90; font-size: 12px; }
.available-balance strong { color: var(--blue); }
.success-text { color: #70f0b1 !important; }

.history-list { display: grid; gap: 8px; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; background: rgba(255,255,255,0.025); }
.history-item > div { display: grid; gap: 4px; min-width: 0; }
.history-item strong { font-size: 12px; }
.history-item span { color: #777084; font-size: 9px; }
.history-item b { color: #70f0b1; white-space: nowrap; }
.history-item b.negative { color: #ff7893; }
.empty-state { color: #817a90; text-align: center; padding: 30px 0; }
.account-copy-card { padding: 16px; border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; background: rgba(255,255,255,0.03); }
.account-copy-card p { color: #aaa3bd; line-height: 1.55; }
.account-copy-card p:last-child { margin-bottom: 0; }
.recovery-code-box { display: grid; gap: 8px; margin-top: 14px; padding: 16px; border: 1px solid rgba(50,230,255,.28); border-radius: 10px; background: rgba(50,230,255,.05); }
.recovery-code-box span { color: #817a90; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.recovery-code-box strong { overflow-wrap: anywhere; color: var(--blue); font: 900 19px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.recovery-code-box small { color: #918aa3; font-size: 10px; line-height: 1.45; }
.account-steps { display: grid; gap: 12px; margin: 0; padding-left: 22px; color: #c1bbcf; line-height: 1.5; }

@keyframes account-enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 720px) {
  .auth-card { padding: 22px 18px; }
  .account-drawer { width: 100%; border-left: 0; padding-inline: 16px; }
  .account-drawer-header { margin-inline: -16px; padding-inline: 16px; }
  .account-button { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); }
}

@media (max-width: 420px) {
  .account-button { width: 48px; min-height: 48px; padding: 5px; justify-content: center; }
  .account-avatar { width: 36px; height: 36px; }
  .account-button-copy { display: none; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
}
.auth-disclosure { border: 1px solid rgba(50,230,255,0.16); border-radius: 8px; padding: 10px 12px; background: rgba(50,230,255,0.035); }
.auth-disclosure summary { cursor: pointer; color: var(--blue); font-size: 10px; font-weight: 850; }
.auth-disclosure p { margin: 9px 0 0; color: #918aa3; font-size: 10px; line-height: 1.45; }


/* Lobby V10: approved Dash Block player home */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.lobby-v9 { width: min(760px, 100%); display: grid; gap: 18px; padding: 22px 24px 18px; border-color: rgba(48,92,174,.22); background: radial-gradient(circle at 50% -10%,rgba(31,82,180,.12),transparent 38%),linear-gradient(180deg,#050817 0%,#030612 100%); box-shadow: 0 28px 80px rgba(0,0,0,.62); }
.lobby-topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lobby-brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.lobby-logo-cube { display:block; flex:0 0 auto; width:42px; height:42px; object-fit:contain; filter:drop-shadow(0 0 9px rgba(50,230,255,.28)); }
.lobby-brand strong { display: grid; color: #f8f9ff; font: 950 23px/.78 Inter,sans-serif; font-style: italic; letter-spacing: -.055em; text-align: left; }
.alpha-pill { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(130,82,255,.68); border-radius: 6px; color: #a591ff; background: rgba(79,45,171,.09); font-size: 9px; font-weight: 900; letter-spacing: .14em; box-shadow: inset 0 0 12px rgba(116,76,255,.08); }
.lobby-top-actions { display: flex; align-items: center; gap: 10px; }
.lobby-balance { min-width: 142px; height: 62px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #39e9ff; border-radius: 20px; padding: 7px 16px; color: white; background: linear-gradient(135deg,rgba(48,13,96,.48),rgba(5,29,48,.84)); box-shadow: 0 0 0 1px rgba(218,45,255,.7),0 0 20px rgba(50,230,255,.13),inset 0 0 18px rgba(159,45,255,.08); }
.balance-cube,.reward-cube { display:block; width:28px; height:28px; object-fit:contain; filter:drop-shadow(0 0 8px rgba(50,230,255,.55)); }
.lobby-balance-copy { display: grid; gap: 2px; text-align: left; }
.lobby-balance-copy strong { font-size: 21px; line-height: 1; }
.lobby-balance-copy small { color: #20e9eb; font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.lobby-profile-button.account-button { position: relative; top: auto; right: auto; width: 58px; min-height: 58px; flex: 0 0 58px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
.lobby-profile-button .account-avatar { width: 54px; height: 54px; transform: none; border: 3px solid rgba(50,109,232,.56); border-radius: 50%; background: radial-gradient(circle at 50% 38%,#5d72a6 0 13%,#1d2d56 14% 34%,#071226 35%); box-shadow: 0 0 0 3px rgba(9,23,59,.95),0 0 16px rgba(48,107,255,.24); }
.lobby-profile-button .account-avatar span { width: 15px; height: 15px; transform: rotate(45deg); border-radius: 3px; background: #8cecff; box-shadow: 0 0 10px #38d8ff; }
.status-dot { position: absolute; right: 0; bottom: 5px; width: 15px; height: 15px; border: 3px solid #071226; border-radius: 50%; background: #52f276; box-shadow: 0 0 9px rgba(82,242,118,.55); }

.welcome-card { min-height: 302px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(230px,.82fr); border: 1px solid rgba(94,128,207,.23); border-radius: 28px; background: radial-gradient(circle at 80% 36%,rgba(4,115,255,.15),transparent 34%),linear-gradient(145deg,#071024,#040817); box-shadow: inset 0 0 44px rgba(36,91,197,.06); }
.welcome-copy { z-index: 2; display: grid; align-content: center; padding: 34px 12px 30px 36px; }
.welcome-copy > p { margin: 0 0 7px; color: #9298ad; font-size: 15px; }
.welcome-copy h1 { max-width: 100%; margin: 0; overflow-wrap: anywhere; color: #fff; font: 800 clamp(28px,4.8vw,39px)/1.05 Inter,sans-serif; text-transform: none; text-shadow: none; letter-spacing: -.035em; }
.welcome-divider { width: min(310px,100%); height: 1px; margin: 24px 0 20px; background: linear-gradient(90deg,rgba(255,255,255,.12),transparent); }
.welcome-copy > .hero-pitch { max-width: 325px; margin: 0 0 13px; color: #9ca2b5; font-size: 15px; line-height: 1.4; }
.hero-pitch strong { color: #b642ff; text-shadow: 0 0 14px rgba(182,66,255,.45); }
.welcome-actions { width: min(390px,100%); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 0; }
.welcome-actions .button { min-height: 59px; border-radius: 15px; text-transform: none; letter-spacing: 0; font-size: 16px; }
.lobby-play { background: linear-gradient(135deg,#5525d9,#9d2cf4) !important; color: white !important; border-color: #d963ff !important; box-shadow: 0 0 22px rgba(167,43,255,.3),inset 0 0 15px rgba(255,255,255,.08) !important; }
.lobby-wallet { background: rgba(5,13,34,.86) !important; border-color: #3ba7ff !important; color: white !important; }
.button-icon { width:28px; height:28px; object-fit:contain; filter:drop-shadow(0 0 8px rgba(75,230,255,.5)); }
.entry-compact { width: max-content; display: flex; align-items: center; gap: 7px; margin-top: 12px; color: #697188; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.entry-compact input { width: 55px; height: 27px; border: 1px solid rgba(50,230,255,.22); border-radius: 7px; padding: 0 7px; color: #7defff; background: rgba(1,5,17,.75); text-align: center; font-weight: 900; outline: 0; }
.entry-compact span { color: #697188; }
.welcome-art { position: relative; min-height: 302px; }
.hero-cube { position: absolute; z-index: 2; top: 82px; left: 52%; width: 104px; height: 104px; transform: translateX(-50%) rotate(10deg); border: 4px solid #d8fbff; border-radius: 9px; background: linear-gradient(145deg,#068fff,#09112f); box-shadow: 0 0 15px #36dfff,0 0 45px rgba(31,124,255,.75),inset 0 0 24px rgba(50,230,255,.42); }
.hero-cube i,.hero-cube b { position:absolute; top:31px; width:14px; height:23px; border-radius:2px; background:#59f3ff; box-shadow:0 0 9px #59f3ff; }
.hero-cube i { left:25px; }.hero-cube b{right:25px;}
.hero-cube::after { content:""; position:absolute; left:35px; bottom:25px; width:31px; height:4px; border-radius:3px; background:#59f3ff; box-shadow:0 0 8px #59f3ff; }
.speed-line { position:absolute; right:46%; height:4px; border-radius:99px; background:linear-gradient(90deg,transparent,#0ec9ff); filter:drop-shadow(0 0 6px #0ec9ff); transform:rotate(-14deg); }
.speed-line-a{top:126px;width:170px}.speed-line-b{top:153px;width:132px}.speed-line-c{top:181px;width:93px}
.pixel { position:absolute; width:10px; height:10px; border:2px solid #158fff; transform:rotate(18deg); }.pixel-a{top:58px;left:18%}.pixel-b{top:214px;left:76%}.pixel-c{top:88px;left:86%}

.wallet-promo { width:100%; min-height:172px; display:grid; grid-template-columns:170px 1fr 58px; align-items:center; gap:16px; border:1px solid rgba(178,52,255,.42); border-radius:24px; padding:20px 26px; color:white; text-align:left; background:radial-gradient(circle at 16% 52%,rgba(73,0,134,.38),transparent 34%),linear-gradient(105deg,#091026,#070a1b); box-shadow:inset 0 0 34px rgba(132,0,255,.08); }
.credit-art { display:block; width:138px; height:138px; justify-self:center; object-fit:contain; filter:drop-shadow(0 0 14px rgba(50,230,255,.42)) drop-shadow(0 0 24px rgba(166,58,255,.24)); }
.wallet-promo-copy { display:grid; gap:9px; }.wallet-promo-copy strong{font-size:clamp(22px,4vw,31px);line-height:1.13}.wallet-promo-copy em{color:#bf49ff;font-style:normal}.wallet-promo-copy small{color:#777d95;font-size:12px}.promo-arrow{display:grid;place-items:center;width:54px;height:54px;border:1px solid #b34fff;border-radius:50%;background:#5c20c5;font-size:29px;box-shadow:0 0 18px rgba(174,76,255,.3)}

.section-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:2px 4px 10px; }.section-row h2{margin:0;font:800 19px/1.2 Inter,sans-serif;text-transform:none;letter-spacing:-.02em}.section-row>span,.section-row button{border:0;padding:0;color:#2ce4ed;background:transparent;font-size:12px}
.daily-card { position:relative; min-height:244px; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) 220px; border:1px solid rgba(50,230,255,.25); border-radius:22px; padding:28px 28px 58px; background:radial-gradient(circle at 78% 45%,rgba(94,27,211,.25),transparent 37%),linear-gradient(145deg,#071227,#08091f); }
.daily-copy { z-index:2; align-self:center; }.daily-copy h3{max-width:360px;margin:0 0 12px;font-size:clamp(23px,4.3vw,32px);line-height:1.12}.daily-copy h3 em{color:#31dfe7;font-style:normal}.daily-copy p{max-width:350px;margin:0 0 18px;color:#9aa0b2;font-size:13px;line-height:1.4}.daily-reward{display:flex;align-items:center;gap:8px;color:#55ef72;font-size:17px}.daily-reward .reward-cube,.daily-summary-progress .reward-cube{width:20px;height:20px;border-color:#52f276;box-shadow:inset 0 0 0 4px rgba(9,26,30,.9),0 0 8px rgba(82,242,118,.25)}
.target-art{display:block;align-self:center;justify-self:center;width:178px;height:178px;object-fit:contain;filter:drop-shadow(0 0 14px rgba(66,214,255,.3)) drop-shadow(0 0 20px rgba(161,61,255,.18))}
.daily-progress{position:absolute;left:28px;right:28px;bottom:20px;display:grid;grid-template-columns:42px 1fr;align-items:center;gap:12px;color:#86f89c;font-size:12px;font-weight:900}.progress-track{height:8px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.08)}.progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#45e977,#a842ff);transition:width .25s ease}.mission-claim{position:absolute;right:25px;bottom:12px;z-index:3;min-height:34px;border:1px solid #79ff98;border-radius:8px;padding:0 12px;color:#07130b;background:#6cff8b;font-size:10px;font-weight:950}
.daily-summary { width:100%; min-height:82px; display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:14px; margin-top:10px; border:1px solid rgba(50,132,255,.22); border-radius:18px; padding:12px 18px; color:white; text-align:left; background:linear-gradient(90deg,rgba(10,28,64,.74),rgba(7,10,27,.95)); box-shadow:inset 0 0 24px rgba(31,97,255,.04)}
.summary-target { display:block; width:54px; height:54px; object-fit:contain; filter:drop-shadow(0 0 9px rgba(67,220,255,.28)); }.daily-summary-copy{min-width:0;display:grid;gap:3px}.daily-summary-copy strong{font-size:14px}.daily-summary-copy small{overflow:hidden;color:#838ba2;font-size:11px;line-height:1.3;text-overflow:ellipsis}.daily-summary-progress{display:flex;align-items:center;gap:9px;color:#62f37d}.daily-summary-progress strong{font-size:16px;white-space:nowrap}.daily-summary-progress>span:last-child{color:#677087;font-size:26px}

.mission-toast{position:fixed;z-index:120;left:50%;top:max(18px,env(safe-area-inset-top));transform:translateX(-50%);width:min(360px,calc(100% - 28px));padding:13px 16px;border:1px solid rgba(98,242,138,.5);border-radius:12px;background:rgba(7,19,17,.96);box-shadow:0 0 26px rgba(98,242,138,.18);color:#7ff5a5;text-align:center;font-size:11px;font-weight:950;letter-spacing:.04em}.mission-period{color:#9ea7c2}.mission-status{display:grid;place-items:center;min-height:34px;border:1px solid rgba(50,230,255,.22);border-radius:8px;color:#aeb8d3;background:rgba(50,230,255,.04);font-size:9px;font-weight:900}.mission-status.received{border-color:rgba(98,242,138,.4);color:#73f19a;background:rgba(98,242,138,.07)}.missions-drawer{width:min(520px,100%)}.missions-drawer-note{margin:0 0 16px;color:#9298ad;font-size:12px;line-height:1.5}.missions-drawer .missions-list{display:grid;grid-template-columns:1fr;gap:10px;overflow:visible;padding-bottom:24px}.mission-card{min-width:0;display:grid;gap:9px;align-content:start;border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:16px;background:linear-gradient(160deg,rgba(20,30,66,.7),rgba(6,7,22,.94));}.mission-card.hidden-extra{display:none}.mission-icon{width:34px;height:34px;background:url("./assets/icons/target-neon.svg") center/contain no-repeat;font-size:0;filter:drop-shadow(0 0 8px rgba(80,220,255,.25))}.mission-card h3{margin:0;font-size:14px}.mission-card p{min-height:32px;margin:0;color:#868ba2;font-size:10px;line-height:1.4}.mission-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#58ef73;font-size:10px;font-weight:850}.mission-card .progress-track{height:5px}.mission-card button{min-height:34px;border:1px solid rgba(50,230,255,.32);border-radius:8px;color:#bfc5db;background:rgba(50,230,255,.05);font-size:9px;font-weight:900}.mission-card button.ready{border-color:#62f28a;color:#06150b;background:#61ee87}.mission-card button:disabled{opacity:.55;cursor:default}

.gameplay-demo,.recent-section{margin-top:0}.gameplay-preview{border:1px solid rgba(142,72,255,.5);border-radius:18px}.recent-activity{min-height:76px;display:grid;grid-template-columns:48px minmax(0,1fr) auto 18px;align-items:center;gap:12px;border:1px solid rgba(50,132,255,.18);border-radius:18px;padding:12px 16px;background:linear-gradient(90deg,rgba(17,23,54,.75),rgba(7,10,25,.95))}.recent-icon{width:42px;height:42px;display:block;background:url("./assets/icons/credit-token-neon.svg") center/contain no-repeat;font-size:0;filter:drop-shadow(0 0 8px rgba(50,230,255,.28))}.recent-activity>div{display:grid;gap:4px;min-width:0}.recent-activity span{color:#8c91a8;font-size:11px}.recent-activity strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.recent-activity b{color:#5cef7b;font-size:15px;white-space:nowrap}.recent-activity b.negative{color:#ff718b}.recent-arrow{font-size:25px!important;color:#697188!important}
.legal-links{display:flex;justify-content:center;gap:9px;color:#656b80;font-size:10px}.legal-links a{color:#858ba0;text-decoration:none}.legal-links a:hover{color:#34e6ff}.auth-check a{color:#49e9ff}
.lobby-nav{position:sticky;z-index:10;bottom:max(6px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);gap:3px;margin:2px -8px -8px;padding:10px 8px max(10px,env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.08);border-radius:24px 24px 0 0;background:rgba(8,14,34,.95);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 -16px 34px rgba(0,0,0,.2)}.lobby-nav button{min-width:0;display:grid;justify-items:center;gap:4px;border:0;color:#858ba0;background:transparent;font-size:10px}.nav-icon{width:30px;height:30px;object-fit:contain;opacity:.66;filter:grayscale(.4) brightness(.8);transition:opacity .16s ease,filter .16s ease,transform .16s ease}.lobby-nav button.active .nav-icon{opacity:1;filter:drop-shadow(0 0 7px rgba(52,230,255,.7));transform:translateY(-1px)}.lobby-nav button.active{color:#34e6ff;text-shadow:0 0 10px rgba(50,230,255,.3)}

@media (orientation: landscape) and (pointer: coarse) {
  .lobby-v9 .lobby-nav { position: static; bottom: auto; }
}

@media (max-width:720px){
  .app-shell{place-items:start center;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:0}
  .lobby-v9{gap:14px;padding:10px 12px 0;border:0;border-radius:0;box-shadow:none}
  .lobby-topbar{min-height:66px;gap:8px}.lobby-brand{gap:7px}.lobby-logo-cube{width:32px;height:32px}.lobby-brand strong{font-size:18px}.alpha-pill{padding:5px 7px;font-size:7px}.lobby-top-actions{gap:7px}.lobby-balance{min-width:112px;height:52px;gap:9px;padding:6px 11px;border-radius:18px}.balance-cube{width:24px;height:24px}.lobby-balance-copy strong{font-size:17px}.lobby-balance-copy small{font-size:8px}.lobby-profile-button.account-button{width:48px;min-height:48px;flex-basis:48px}.lobby-profile-button .account-avatar{width:44px;height:44px}.status-dot{width:13px;height:13px;bottom:2px}
  .welcome-card{min-height:282px;grid-template-columns:minmax(0,1.35fr) minmax(115px,.65fr);border-radius:22px}.welcome-copy{padding:24px 8px 22px 20px}.welcome-copy>p{font-size:12px}.welcome-copy h1{font-size:clamp(24px,7vw,30px)}.welcome-divider{margin:18px 0 16px}.welcome-copy>.hero-pitch{max-width:260px;margin-bottom:12px;font-size:13px}.welcome-actions{gap:9px}.welcome-actions .button{min-height:52px;padding:0 8px;font-size:13px}.entry-compact{margin-top:9px}.welcome-art{min-height:282px}.hero-cube{top:72px;left:54%;width:78px;height:78px}.hero-cube i,.hero-cube b{top:23px;width:10px;height:17px}.hero-cube i{left:18px}.hero-cube b{right:18px}.hero-cube::after{left:26px;bottom:18px;width:23px}.speed-line-a{top:108px;width:105px}.speed-line-b{top:132px;width:82px}.speed-line-c{top:156px;width:62px}
  .wallet-promo{min-height:136px;grid-template-columns:94px 1fr 42px;padding:15px 16px;gap:11px;border-radius:20px}.credit-art{width:94px;height:94px}.wallet-promo-copy strong{font-size:18px}.wallet-promo-copy small{font-size:9px}.promo-arrow{width:40px;height:40px;font-size:22px}
  .daily-card{min-height:216px;grid-template-columns:1fr 126px;padding:20px 18px 52px;border-radius:20px}.daily-copy h3{font-size:20px}.daily-copy p{max-width:230px;margin-bottom:13px;font-size:10px}.daily-reward{font-size:14px}.target-art{width:126px;height:126px}.daily-progress{left:18px;right:18px;bottom:16px}.daily-summary{grid-template-columns:48px minmax(0,1fr) auto;min-height:76px;padding:10px 12px;gap:10px}.summary-target{width:46px;height:46px}.daily-summary-copy strong{font-size:13px}.daily-summary-copy small{font-size:10px}.daily-summary-progress{gap:6px}.daily-summary-progress .reward-cube{width:20px;height:20px}.daily-summary-progress strong{font-size:14px}
  .welcome-copy,.wallet-promo-copy,.daily-copy,.daily-summary-copy,.recent-activity>div{min-width:0}
  .welcome-actions .button{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;line-height:1.15}.welcome-actions .button-icon{flex:0 0 auto;width:24px;height:24px}
  .wallet-promo-copy strong,.daily-copy h3,.daily-summary-copy strong,.daily-summary-copy small,.section-row h2,.section-row>span,.section-row button,.lobby-nav button{line-height:1.2}
  .missions-list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}.mission-card{flex:0 0 min(74vw,230px);scroll-snap-align:start}.gameplay-preview{border-radius:14px}.section-row h2{font-size:17px}.recent-activity{grid-template-columns:44px minmax(0,1fr) auto 14px;padding:10px 12px}.recent-activity>span:only-child{grid-column:1/-1;align-self:center;min-width:0;color:#8c91a8;font-size:12px;line-height:1.4;white-space:normal}.recent-icon{width:38px;height:38px}.lobby-nav{margin-inline:-12px;border-radius:22px 22px 0 0}.lobby-nav button{font-size:9px}.nav-icon{width:27px;height:27px}
}
@media (max-width:420px){
  .lobby-brand{gap:6px}.lobby-logo-cube{width:29px;height:29px}.lobby-brand strong{font-size:16px}.alpha-pill{padding:4px 5px;font-size:6px}.lobby-balance{min-width:101px;height:48px;gap:7px;padding:5px 9px}.balance-cube{width:22px;height:22px}.lobby-balance-copy strong{font-size:15px}.lobby-balance-copy small{font-size:7px}.lobby-profile-button.account-button{width:44px;min-height:44px;flex-basis:44px}.lobby-profile-button .account-avatar{width:40px;height:40px}
  .welcome-card{grid-template-columns:minmax(0,1fr) 102px;min-height:286px}.welcome-copy{padding:20px 6px 18px 16px}.welcome-copy>p{font-size:11px;line-height:1.3}.welcome-copy h1{font-size:23px}.welcome-copy>.hero-pitch{max-width:215px;font-size:12px;line-height:1.35}.welcome-actions{gap:7px}.welcome-actions .button{min-height:49px;padding-inline:6px;font-size:10px}.welcome-actions .button-icon{width:21px;height:21px}.entry-compact{font-size:8px}.entry-compact input{width:48px;height:25px}.hero-cube{left:52%;width:66px;height:66px}.hero-cube i,.hero-cube b{top:19px;width:9px;height:15px}.hero-cube i{left:15px}.hero-cube b{right:15px}.hero-cube::after{left:21px;bottom:15px;width:21px}.speed-line-a{width:78px}.speed-line-b{width:60px}.speed-line-c{width:46px}
  .wallet-promo{grid-template-columns:70px 1fr 34px;padding:13px 12px}.credit-art{width:76px;height:76px}.wallet-promo-copy strong{font-size:15px}.promo-arrow{width:32px;height:32px;font-size:18px}
  .daily-card{grid-template-columns:1fr 88px;padding:18px 14px 50px}.target-art{width:92px;height:92px}.daily-copy h3{font-size:17px}.daily-copy p{max-width:190px}.daily-reward{font-size:12px}.daily-summary{grid-template-columns:42px minmax(0,1fr) auto}.summary-target{width:40px;height:40px}.daily-summary-copy small{max-width:170px}.daily-summary-progress .reward-cube{display:none}.daily-summary-progress strong{font-size:13px}.recent-activity{grid-template-columns:40px minmax(0,1fr) auto 10px;gap:8px}.recent-activity b{font-size:13px}.recent-arrow{font-size:20px!important}.mission-card{flex-basis:78vw}.lobby-nav button{font-size:8px}.nav-icon{width:24px;height:24px}
}

.support-round-card strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.45; }
.support-round-card small { color: #817a90; font-size: 9px; line-height: 1.45; }

@media (max-width:420px){.deposit-quick-values{grid-template-columns:repeat(2,minmax(0,1fr))}.deposit-bonus-tag{top:-8px;right:4px}}
