/* ============================================================
   BIG AVIATOR — design system (mobile first, sky bright)
   ============================================================ */
@font-face { font-family: 'Orbitron'; src: url('../fonts/orbitron.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  /* new palette */
  --ink: #0b2545;
  --ink-2: #123b6b;
  --muted: #5c7189;
  --muted-2: #8397ab;
  --sky: #1d7dfa;
  --sky-dark: #0b57c9;
  --sky-soft: #e8f3ff;
  --sun: #ffb020;
  --sun-2: #ff8a00;
  --coral: #ff5d73;
  --mint: #12c99b;
  --grape: #7c5cff;
  --lime: #b6f36a;
  --bg: #f3f9ff;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --stroke: #dce9f7;
  --stroke-2: #c5dbf1;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 44px rgba(11, 37, 69, .11);
  --shadow-sm: 0 8px 20px rgba(11, 37, 69, .07);
  --nav-h: 74px;

  /* legacy aliases — inline styles in older views still reference these */
  --violet: #1d7dfa;
  --violet-2: #0b57c9;
  --violet-3: #0b57c9;
  --cyan: #12c99b;
  --pink: #ff5d73;
  --gold: #ffb020;
  --green: #12c99b;
  --red: #ff5d73;
  --text: #0b2545;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --bg-2: #eaf4ff;
  --bg-3: #e1efff;
  --glow: 0 18px 40px rgba(29, 125, 250, .25);
  --grid: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(29, 125, 250, .18), transparent 62%),
    radial-gradient(760px 460px at 96% 2%, rgba(255, 176, 32, .22), transparent 62%),
    radial-gradient(900px 560px at 50% 112%, rgba(18, 201, 155, .16), transparent 62%),
    linear-gradient(180deg, #f8fcff 0%, #eef7ff 46%, #f8fcff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-dark); text-decoration: none; }
a:hover { color: var(--sky); }
h1, h2, h3, h4, .display {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
::selection { background: rgba(29, 125, 250, .22); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c5dbf1; border-radius: 99px; }

button, input, select, textarea { font: inherit; color: inherit; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 13.5px; line-height: 1.45; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-variant-numeric: tabular-nums; }
.green { color: var(--mint); }
.red { color: var(--coral); }
.gold { color: var(--sun-2); }
.link { color: var(--sky-dark); font-weight: 700; }
.link:hover { text-decoration: underline; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 16px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 10px;
}
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding: 44px 0; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.section-head p { margin: 0; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky) 0%, #0ea5e9 100%);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(29, 125, 250, .30);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(29, 125, 250, .36); color: #fff; }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-green { background: linear-gradient(135deg, #14d6a5 0%, #0aa87f 100%); box-shadow: 0 12px 26px rgba(18, 201, 155, .32); }
.btn-green:hover { box-shadow: 0 16px 30px rgba(18, 201, 155, .38); }
.btn-red { background: linear-gradient(135deg, #ff6b81 0%, #e11d48 100%); box-shadow: 0 12px 26px rgba(255, 93, 115, .32); }
.btn-gold { background: linear-gradient(135deg, #ffc247 0%, #ff8a00 100%); color: #3b2400; box-shadow: 0 12px 26px rgba(255, 176, 32, .34); }
.btn-gold:hover { color: #3b2400; }
.btn-cyan { background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--stroke); box-shadow: none; }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky-dark); box-shadow: var(--shadow-sm); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 19px; border-radius: 18px; }
.btn-block { width: 100%; }

/* ---------------- form ---------------- */
.input, select.input, textarea.input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--stroke);
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #9aabbd; font-weight: 500; }
.input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(29, 125, 250, .14); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 24px, calc(100% - 14px) 24px; background-size: 6px 6px; background-repeat: no-repeat; }
.field { display: grid; gap: 7px; }
.field label, .field > span { font-size: 13.5px; font-weight: 800; color: var(--ink-2); letter-spacing: .01em; }
.field label.between { display: flex; align-items: center; justify-content: space-between; }
input[type=checkbox] { accent-color: var(--sky); width: 20px; height: 20px; }
input[type=range] { width: 100%; accent-color: var(--sky); }
.form-grid { display: grid; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.input-icon { position: relative; }
.input-icon .input { padding-left: 48px; }
.input-icon svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-value { min-width: 62px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); }
.error { color: var(--coral); font-size: 13.5px; font-weight: 600; }

/* ---------------- cards & badges ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-title { font-size: 12.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--sky-dark);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.badge.green { background: #e2fbf3; color: #067a5c; }
.badge.red { background: #ffe9ed; color: #c81d45; }
.badge.gold { background: #fff4dc; color: #a35b00; }
.badge.cyan { background: #e2f9ff; color: #0e7490; }
.alert { padding: 14px 18px; border-radius: 16px; font-weight: 600; font-size: 15px; border: 1px solid; }
.alert.ok { background: #e8fdf6; border-color: #b6f2df; color: #066b52; }
.alert.err { background: #fff0f2; border-color: #ffd0d8; color: #a80f34; }
.alert.warn { background: #fff8e8; border-color: #ffe6b0; color: #8a5300; }
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 20px;
  border: 1px solid;
}
.notice.info { background: #eef7ff; border-color: #cfe6ff; color: #0b4d95; }
.notice.warn { background: #fff8e8; border-color: #ffe6b0; color: #7a4a00; }
.age { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; font-size: 13px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(18, 201, 155, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(18, 201, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 201, 155, 0); } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9aabbd; }
.dot.live { background: var(--mint); animation: pulse 1.8s infinite; }

/* ---------------- navigation ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), #22d3ee);
  box-shadow: 0 8px 18px rgba(29, 125, 250, .35);
  flex: none;
}
.logo-mark svg { width: 24px; height: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--sky-soft); color: var(--sky-dark); }
.nav-links a.active { background: var(--sky); color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 4px; border-radius: 12px; background: var(--sky-soft); }
.lang-switch a { padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 800; color: var(--sky-dark); }
.lang-switch a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #e8fdf6;
  border: 1px solid #b6f2df;
  color: #067a5c;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.balance-chip .plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; font-size: 15px; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 0;
  background: linear-gradient(135deg, var(--sun), var(--sun-2));
  color: #3b2400;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}
.user-wrap { position: relative; }
.menu-pop {
  position: absolute;
  right: 0;
  top: 54px;
  width: 230px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 70;
}
.menu-pop a, .menu-pop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 0;
  background: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--sky-soft); color: var(--sky-dark); }
.mobile-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--stroke); background: #fff; font-size: 20px; cursor: pointer; }

/* ---------------- footer ---------------- */
.footer { margin-top: 56px; background: #fff; border-top: 1px solid var(--stroke); padding: 40px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer a { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.footer a:hover { color: var(--sky); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--stroke); font-size: 13px; color: var(--muted); }

/* ---------------- home ---------------- */
.hero { padding: 34px 0 10px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 16px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--sky) 0%, #22d3ee 50%, var(--mint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.hero-stats .n { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.hero-stats .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-visual { position: relative; }
.holo {
  position: relative;
  border-radius: 28px;
  padding: 26px;
  background: linear-gradient(160deg, #0b2545 0%, #123b6b 55%, #1d7dfa 100%);
  box-shadow: 0 30px 60px rgba(11, 37, 69, .30);
  overflow: hidden;
}
.holo::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(closest-side, rgba(255, 176, 32, .55), transparent);
}
.holo-inner { position: relative; }
.holo-top { display: flex; justify-content: space-between; color: #cfe6ff; font-size: 13px; font-weight: 700; }
.holo-mult { font-family: 'Orbitron', sans-serif; font-size: clamp(3rem, 9vw, 4.6rem); font-weight: 900; color: #fff; line-height: 1; margin: 18px 0 6px; text-shadow: 0 0 32px rgba(255, 210, 63, .55); }
.holo-sub { color: #bfe0ff; font-size: 14px; }
.holo .plane-sprite { position: absolute; right: 6%; top: 18%; width: 150px; height: 75px; background-size: 600px 75px; animation: prop .3s steps(4) infinite, bob 3s ease-in-out infinite; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .35)); }
@keyframes bob { 50% { margin-top: -10px; } }
.games-grid { display: grid; gap: 16px; }
.game-tile { display: block; background: #fff; border: 1px solid var(--stroke); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.game-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-tile .art { height: 132px; background: linear-gradient(135deg, #dff0ff, #e8fdf6); display: grid; place-items: center; }
.game-tile .art svg { width: 64px; height: 64px; }
.game-tile .name { padding: 14px 16px 4px; font-weight: 800; font-size: 17px; }
.game-tile .meta { padding: 0 16px 16px; font-size: 13px; color: var(--muted); }
.game-tile.locked { opacity: .6; }
.feature-grid { display: grid; gap: 16px; }
.feature { background: #fff; border: 1px solid var(--stroke); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.feature .ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--sky-soft); font-size: 24px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tier-grid { display: grid; gap: 16px; }
.tier { background: #fff; border: 2px solid var(--stroke); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-sm); }
.tier.hot { border-color: var(--sun); background: linear-gradient(180deg, #fffdf6, #fff); }
.tier .rate { font-size: 34px; font-weight: 900; letter-spacing: -.04em; }
.tier ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 9px; }
.tier li { padding-left: 26px; position: relative; font-size: 14.5px; color: var(--ink-2); }
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-weight: 900; }
.faq-item { background: #fff; border: 1px solid var(--stroke); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--sky); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.leader-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--stroke); }
.leader-row:last-child { border-bottom: 0; }
.leader-row .rank { width: 28px; font-weight: 900; color: var(--muted-2); }
.leader-row .rank.top { color: var(--sun-2); }
.quote { border-left: 4px solid var(--sun); padding: 6px 0 6px 18px; font-size: 17px; font-style: italic; color: var(--ink-2); }
.marquee { overflow: hidden; border-block: 1px solid var(--stroke); background: #fff; padding: 12px 0; }
.marquee-track { display: flex; gap: 30px; white-space: nowrap; animation: marquee 30s linear infinite; font-size: 14px; font-weight: 700; color: var(--muted); }
.marquee b { color: var(--mint); }
@keyframes marquee { to { transform: translateX(-50%); } }
.stat-grid { display: grid; gap: 14px; }
.stat { background: #fff; border: 1px solid var(--stroke); border-radius: 18px; padding: 18px; }
.stat .l { font-size: 13px; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.stat .s { font-size: 12.5px; color: var(--muted-2); }
.page-head { padding: 26px 0 10px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 720px; }

/* ---------------- auth ---------------- */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(1040px, 100%); display: grid; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px rgba(11, 37, 69, .16); border: 1px solid var(--stroke); }
@media (min-width: 980px) { .auth-card { grid-template-columns: 1fr 1fr; } }
.auth-art { display: none; position: relative; padding: 40px; background: linear-gradient(160deg, #0b2545, #123b6b 50%, #1d7dfa); color: #fff; overflow: hidden; }
.auth-art .logo { color: #fff; }
.auth-art h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.auth-art .quote { border-color: var(--sun); color: #d9ecff; font-size: clamp(14px, 1.35vw, 16px); line-height: 1.5; }
.auth-art .plane-sprite { position: absolute; right: 4%; bottom: 8%; width: 210px; height: 105px; background-size: 840px 105px; animation: prop .3s steps(4) infinite, bob 3.4s ease-in-out infinite; }
.auth-form-wrap { padding: 40px 36px; }
.auth-form-wrap h1 { font-size: clamp(26px, 3.4vw, 32px); margin-bottom: 6px; }
.auth-form-wrap .muted { margin-bottom: 22px; }
@media (max-width: 979px) { .auth-card { display: block; width: 100%; } .auth-form-wrap { padding: 34px 22px; } }

/* ---------------- game ---------------- */
.game-body { padding-bottom: 8px; }
.game-shell { display: grid; gap: 16px; padding-top: 16px; align-items: start; }
.game-shell > * { min-width: 0; }
.arena {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b2545 0%, #0f3f7a 52%, #1d7dfa 100%);
  box-shadow: 0 26px 50px rgba(11, 37, 69, .28);
  min-height: clamp(320px, 44vh, 520px);
  isolation: isolate;
}
.arena canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.arena-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; z-index: 5; flex-wrap: wrap; }
.arena-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.arena-badge:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.plane-chip b { color: var(--lime); }
.hist-wrap { position: absolute; top: 56px; left: 12px; right: 12px; z-index: 4; }
.history-strip { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.history-strip::-webkit-scrollbar { display: none; }
.hist {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #d9ecff;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.hist.high { background: rgba(255, 210, 63, .2); border-color: rgba(255, 210, 63, .5); color: #ffe9a8; }
.hist.mid { background: rgba(124, 245, 201, .16); border-color: rgba(124, 245, 201, .4); color: #b9ffe6; }
.multiplier-display { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; pointer-events: none; text-align: center; }
.multiplier-value {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.9rem, 10vw, 5.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .35);
  font-variant-numeric: tabular-nums;
}
.multiplier-value.crashed { color: #ff8a9c; text-shadow: 0 8px 34px rgba(255, 93, 115, .45); }
.multiplier-value.waiting { color: #d9ecff; }
.mult-label { margin-top: 10px; color: #cfe6ff; font-size: 14px; font-weight: 700; }
.countdown-ring { width: min(240px, 60%); height: 6px; margin-top: 16px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.countdown-ring i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--mint)); transition: width .2s linear; }
.plane-stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.plane-sprite {
  position: absolute;
  width: 140px;
  height: 70px;
  background-repeat: no-repeat;
  background-size: 560px 70px;
  background-position: 0 0;
  animation: prop .32s steps(4) infinite;
  will-change: transform, left, top;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .38));
  z-index: 3;
}
.plane-sprite.idle { animation: prop .9s steps(4) infinite, bob 2.8s ease-in-out infinite; opacity: .95; }
.plane-sprite.crashed { animation-play-state: paused; filter: grayscale(.35) drop-shadow(0 12px 14px rgba(255, 93, 115, .5)); }
@keyframes prop { to { background-position: -560px 0; } }
.crash-flash { position: absolute; inset: 0; background: rgba(255, 93, 115, .25); z-index: 4; pointer-events: none; }

.bet-dock { display: grid; gap: 12px; margin-top: 14px; }
.bet-card { background: #fff; border: 1px solid var(--stroke); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.bet-card.armed { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(18, 201, 155, .14); }
.bet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--sky-soft); }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--sky-dark); box-shadow: var(--shadow-sm); }
.stepper { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 8px; }
.stepper button { height: 54px; border-radius: 14px; border: 2px solid var(--stroke); background: var(--surface-2); font-size: 24px; font-weight: 800; color: var(--sky-dark); cursor: pointer; }
.stepper button:hover { border-color: var(--sky); }
.stepper input { height: 58px; text-align: center; border: 2px solid var(--stroke); border-radius: 14px; background: #fff; font-size: 26px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; outline: none; width: 100%; }
.stepper input:focus { border-color: var(--sky); }
.quick-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.quick-row button { min-height: 44px; border-radius: 11px; border: 0; background: var(--sky-soft); color: var(--sky-dark); font-size: 14px; font-weight: 800; cursor: pointer; }
.quick-row button:hover { background: #d5eaff; }
.auto-row { display: flex; align-items: center; gap: 10px; }
.auto-row .input { min-height: 44px; font-size: 15px; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 99px; background: #d5e2ee; cursor: pointer; flex: none; transition: background .18s ease; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .18s ease; }
.switch.on { background: var(--mint); }
.switch.on::after { transform: translateX(20px); }
.bet-card .btn { min-height: 58px; font-size: 19px; }

.live-panel { background: #fff; border: 1px solid var(--stroke); border-radius: 24px; box-shadow: var(--shadow-sm); overflow: hidden; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--stroke); }
.live-tabs { display: flex; gap: 4px; background: var(--sky-soft); padding: 4px; border-radius: 12px; }
.live-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--muted); cursor: pointer; }
.live-tabs button.on { background: #fff; color: var(--sky-dark); box-shadow: var(--shadow-sm); }
.live-list { max-height: 460px; overflow-y: auto; padding: 6px 10px; }
.live-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; font-size: 13.5px; }
.live-row:hover { background: var(--surface-2); }
.live-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.live-row .who b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.live-row .mult { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.live-row .mult.green { color: #067a5c; }
.boost { display: inline-block; padding: 1px 6px; border-radius: 6px; background: #e2fbf3; color: #067a5c; font-size: 11px; font-weight: 900; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); font-weight: 700; }

.mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--stroke);
}
.dock-btn { flex: 1; min-height: 56px; border: 0; border-radius: 16px; font-size: 17px; font-weight: 900; cursor: pointer; }
.dock-btn.green { background: linear-gradient(135deg, #14d6a5, #0aa87f); color: #fff; }
.dock-btn.red { background: linear-gradient(135deg, #ff6b81, #e11d48); color: #fff; }
.dock-btn.ghost { background: var(--surface-2); color: var(--muted); border: 2px solid var(--stroke); }
.dock-btn:disabled { opacity: .6; }
.game-body { padding-bottom: 96px; }

/* ---------------- hangar ---------------- */
.hangar-hero { display: grid; gap: 22px; padding: 26px 0 10px; align-items: center; }
.hangar-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 10px; }
.hangar-hero p { color: var(--muted); font-size: 17px; max-width: 620px; }
.hangar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hangar-hero-plane { position: relative; border-radius: 28px; padding: 22px; background: linear-gradient(160deg, #0b2545, #123b6b 55%, var(--plane, #1d7dfa)); box-shadow: 0 24px 50px rgba(11, 37, 69, .28); color: #fff; overflow: hidden; }
.hangar-hero-plane::before { content: ''; position: absolute; inset: auto -30% -60% -30%; height: 70%; background: radial-gradient(closest-side, rgba(255, 176, 32, .45), transparent); }
.plane-preview { position: relative; display: grid; place-items: center; min-height: 118px; border-radius: 18px; background: linear-gradient(160deg, #eaf5ff, #ffffff); overflow: hidden; }
.plane-preview.big { min-height: 160px; background: rgba(255, 255, 255, .08); }
.plane-preview .plane-sprite.preview { position: relative; left: auto; top: auto; transform: none; width: 210px; height: 105px; background-size: 840px 105px; animation: propP .55s steps(4) infinite; filter: drop-shadow(0 12px 14px rgba(11, 37, 69, .25)); }
.plane-preview.big .plane-sprite.preview { width: 260px; height: 130px; background-size: 1040px 130px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .35)); }
@keyframes propP { to { background-position: -840px 0; } }
.hangar-current { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.hangar-current b { font-size: 20px; }
.boost-pill { padding: 5px 12px; border-radius: 999px; background: rgba(124, 245, 201, .18); border: 1px solid rgba(124, 245, 201, .4); color: #b9ffe6; font-size: 13px; font-weight: 800; }
.hangar-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.hangar-stat { background: #fff; border: 1px solid var(--stroke); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.hangar-stat span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hangar-stat b { font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.hangar-grid { display: grid; gap: 16px; }
.plane-card { background: #fff; border: 2px solid var(--stroke); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.plane-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plane-card.equipped { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(18, 201, 155, .13); }
.plane-card.locked .plane-preview { background: linear-gradient(160deg, #f1f6fb, #fbfdff); }
.plane-card .plane-preview { border-radius: 0; padding: 8px 0 0; }
.plane-flag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: #fff; font-size: 11.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.plane-flag.owned { background: var(--sky); }
.plane-flag.locked { background: rgba(11, 37, 69, .55); }
.plane-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plane-body h3 { font-size: 19px; margin: 0; }
.boost-big { font-size: 22px; font-weight: 900; color: var(--mint); letter-spacing: -.03em; }
.plane-desc { min-height: 40px; margin: 0; }
.plane-meter { height: 8px; border-radius: 99px; background: var(--sky-soft); overflow: hidden; }
.plane-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sky), var(--mint)); }
.plane-foot { margin-top: auto; }
.hangar-note { display: grid; gap: 14px; margin-top: 26px; align-items: center; }
.hangar-note-ico { font-size: 34px; }
.hangar-note h3 { font-size: 18px; margin-bottom: 4px; }
.hangar-note p { margin: 0; font-size: 14.5px; }

/* ---------------- admin ---------------- */
.admin-body { background: #f1f6fc; }
.admin-shell { display: grid; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #0b2545, #0d2f59); color: #cfe6ff; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.sidebar .logo { color: #fff; font-size: 18px; margin-bottom: 14px; }
.sidebar .logo:hover { color: #fff; }
.side-group { margin: 14px 0 4px; padding: 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #7fa6cc; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: #cfe6ff; font-size: 15px; font-weight: 600; }
.side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-link.on { background: var(--sky); color: #fff; font-weight: 800; }
.side-link .badge { margin-left: auto; background: rgba(255, 255, 255, .16); color: #fff; }
.admin-main { padding: 18px 16px 40px; min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.admin-top h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0; }
.admin-top .eyebrow { margin-bottom: 2px; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--stroke); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-sm); }
.kpi .l { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-size: 26px; font-weight: 900; letter-spacing: -.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--muted-2); }
.split { display: grid; gap: 16px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding: 10px 0 0; }
.chart .col { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.chart .bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #60a5fa, var(--sky)); min-height: 2px; }
.chart .bar.pay { background: linear-gradient(180deg, #5eead4, var(--mint)); }
.chart .lbl { font-size: 10px; color: var(--muted-2); text-align: center; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--stroke); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.tbl th { text-align: left; padding: 12px 14px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--stroke); white-space: nowrap; }
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: #f8fcff; }
table.tbl td b, table.tbl td strong { font-weight: 800; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--sky-soft); border-radius: 14px; margin-bottom: 14px; }
.tabs a, .tabs button { padding: 9px 16px; border: 0; background: none; border-radius: 10px; font-size: 14px; font-weight: 800; color: var(--muted); white-space: nowrap; cursor: pointer; }
.tabs a.on, .tabs button.on { background: #fff; color: var(--sky-dark); box-shadow: var(--shadow-sm); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pagination a, .pagination span { padding: 8px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--stroke); font-size: 14px; font-weight: 700; }
.pagination .active { background: var(--sky); border-color: var(--sky); color: #fff; }
.copy-btn { border: 0; background: var(--sky-soft); color: var(--sky-dark); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--stroke); background: #fff; font-size: 14px; }
.toast-wrap { position: fixed; right: 16px; bottom: 90px; z-index: 200; display: grid; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: toastIn .25s ease; }
.toast.win { background: #067a5c; }
.toast.err { background: #c81d45; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* daily target card */
.target-card { margin-bottom: 18px; border: 2px solid #ffe6b0; background: linear-gradient(180deg, #fffdf7, #fff); }
.target-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.target-head h3 { font-size: 20px; margin: 0 0 4px; }
.target-head p { margin: 0; max-width: 620px; }
.target-state { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 900; background: var(--sky-soft); color: var(--sky-dark); white-space: nowrap; }
.target-state.harder { background: #ffe9ed; color: #c81d45; }
.target-state.easier { background: #e2fbf3; color: #067a5c; }
.target-state.normal { background: #fff4dc; color: #a35b00; }
.target-grid { display: grid; gap: 18px; }
.target-ring-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.target-ring {
  --p: 0;
  --ring: var(--sun);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), #e6eef7 0);
  display: grid;
  place-items: center;
  flex: none;
}
.target-ring-in { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; align-content: center; }
.target-ring-in b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.target-ring-in span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.target-ring-copy { display: grid; gap: 8px; min-width: 170px; flex: 1; }
.target-ring-copy > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--stroke); padding-bottom: 6px; }
.target-ring-copy b { font-variant-numeric: tabular-nums; }
.target-form { display: grid; gap: 12px; }
.target-toggle { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; cursor: pointer; }
.target-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.target-live { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--stroke); font-size: 13px; color: var(--muted); }
.target-live b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------- responsive ---------------- */
@media (max-width: 979px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--stroke);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .nav-right .lang-switch { display: none; }
  .live-panel { margin-top: 2px; }
  .live-list { max-height: 320px; }
}

@media (min-width: 700px) {
  .wrap { width: min(1240px, 100% - 48px); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .bet-dock { grid-template-columns: repeat(2, 1fr); }
  .hangar-stats { grid-template-columns: repeat(4, 1fr); }
  .hangar-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-form-wrap { padding: 44px 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .target-grid { grid-template-columns: 320px 1fr; }
  .admin-main { padding: 24px 26px 48px; }
}

@media (min-width: 980px) {
  .game-shell { grid-template-columns: minmax(0, 1fr) 360px; }
  .mobile-dock { display: none; }
  .game-body { padding-bottom: 8px; }
  .auth-card { grid-template-columns: 1fr 1fr; }
  .auth-art { display: block; }
  .admin-shell { grid-template-columns: 248px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .split { grid-template-columns: 1.55fr 1fr; }
  .hangar-hero { grid-template-columns: 1.15fr .85fr; }
  .hangar-grid { grid-template-columns: repeat(3, 1fr); }
  .hangar-note { grid-template-columns: auto 1fr auto; }
  .target-ring-wrap { flex-wrap: nowrap; }
  .section { padding: 56px 0; }
}

@media (min-width: 1180px) {
  .hangar-grid { grid-template-columns: repeat(5, 1fr); }
  .hangar-grid .plane-card .plane-preview .plane-sprite.preview { width: 170px; height: 85px; background-size: 680px 85px; }
  @keyframes propP { to { background-position: -680px 0; } }
}

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .nav-inner { gap: 8px; }
  .logo span:last-child { display: none; }
  .balance-chip { padding: 0 10px; font-size: 14px; }
  .arena { border-radius: 22px; min-height: 340px; }
  .hist-wrap { top: 92px; }
  .quick-row { grid-template-columns: repeat(3, 1fr); }
  .card-pad { padding: 16px; }
  .stepper { grid-template-columns: 48px 1fr 48px; }
  .target-fields { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
}
