:root {
  --bg: #071018;
  --panel: rgba(13, 30, 44, .82);
  --line: rgba(133, 177, 204, .18);
  --line-2: rgba(139, 194, 224, .32);
  --text: #eef7fb;
  --muted: #8ca9ba;
  --muted-2: #617f91;
  --accent: #5c7cff;
  --accent-2: #54e9ff;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 15% 20%, rgba(84, 233, 255, .13), transparent 29%),
    radial-gradient(circle at 84% 18%, rgba(92, 124, 255, .18), transparent 32%),
    linear-gradient(145deg, #071018, #020810 72%);
}
button, input, select { font: inherit; }
button { border: 0; }
input, select {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(2, 10, 17, .72);
  color: var(--text);
  outline: none;
}
input:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(84, 233, 255, .1); }
select { color-scheme: dark; }
.hidden { display: none !important; }
.page-eyebrow { display: block; margin-bottom: 5px; color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.btn, .mini-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn { min-height: 42px; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text); font-weight: 700; }
.btn-primary { border-color: rgba(84, 233, 255, .38); background: linear-gradient(135deg, rgba(84, 233, 255, .24), rgba(92, 124, 255, .82)); box-shadow: 0 10px 30px rgba(30, 81, 150, .3); }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.mini-btn { padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 7px; background: rgba(3, 13, 20, .45); color: var(--muted); }
.mini-btn:hover { color: var(--text); border-color: rgba(84, 233, 255, .5); }
.action-danger { color: #ff9bab; border-color: rgba(255, 85, 118, .25); }
.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.landing-shell { width: min(1120px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 7vw, 90px); padding: 48px 0; }
.landing-copy h1 { margin: 6px 0 18px; font-size: clamp(48px, 8vw, 96px); line-height: .92; letter-spacing: -.07em; }
.invidia-logo { display: block; width: min(380px, 82%); height: auto; margin-bottom: 34px; }
.landing-copy > p { max-width: 640px; color: var(--muted); font-size: clamp(15px, 2vw, 19px); line-height: 1.65; }
.player-field { display: grid; gap: 7px; width: min(360px, 100%); margin: 28px 0 14px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.launch-button { min-width: 230px; }
.launch-button span { margin-right: 7px; }
.landing-copy .landing-note { max-width: 470px; margin-top: 18px; color: var(--muted-2); font-size: 11px; }
.event-link { display: inline-block; max-width: 520px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; text-decoration-color: rgba(227, 30, 36, .6); text-underline-offset: 3px; }
.event-link:hover { color: var(--text); }
.landing-card { min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 50% 34%, rgba(84, 233, 255, .12), transparent 26%), linear-gradient(160deg, rgba(13, 30, 44, .82), rgba(3, 12, 20, .94)); box-shadow: 0 35px 100px rgba(0, 0, 0, .42); overflow: hidden; }
.landing-card > div:nth-of-type(2) { display: flex; flex-direction: column; gap: 5px; }
.landing-card > div:nth-of-type(2) span { color: var(--accent-2); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.landing-card > div:nth-of-type(2) strong { font-size: 25px; }
.landing-card > div:nth-of-type(2) small { color: var(--muted); line-height: 1.5; }
.landing-orbit { position: relative; width: 280px; height: 280px; margin: 0 auto 55px; display: grid; place-items: center; border-radius: 50%; }
.landing-orbit:before, .landing-orbit i { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(84, 233, 255, .28); border-radius: 50%; animation: orbit 12s linear infinite; }
.landing-orbit i:nth-child(1) { inset: 43px -10px; transform: rotateX(67deg) rotateZ(25deg); border-color: rgba(92, 124, 255, .38); animation-duration: 9s; }
.landing-orbit i:nth-child(2) { inset: -4px 62px; transform: rotateY(67deg) rotateZ(-17deg); border-color: rgba(89, 241, 168, .28); animation-direction: reverse; }
.landing-orbit i:nth-child(3) { inset: 75px; border-style: dashed; animation-duration: 5s; }
.landing-orbit strong { color: var(--accent-2); font-size: 54px; text-shadow: 0 0 32px var(--accent-2); }
@keyframes orbit { to { rotate: 1turn; } }
.leaderboard-card { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.leaderboard-card h2 { margin: 0 0 10px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.leaderboard-card ol { margin: 0; padding-left: 24px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.leaderboard-card li { padding: 3px 0; }
#toast { position: fixed; z-index: 900; left: 50%; bottom: 28px; max-width: calc(100vw - 32px); transform: translate(-50%, 15px); opacity: 0; padding: 10px 15px; border: 1px solid rgba(84, 233, 255, .3); border-radius: 999px; background: rgba(3, 15, 23, .94); color: var(--text); font-size: 12px; transition: .2s ease; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.single-mode { grid-template-columns: minmax(220px, 1fr) !important; max-width: 360px !important; }

@media (max-width: 800px) {
  .landing-shell { grid-template-columns: 1fr; padding: 55px 0; }
  .landing-card { min-height: 440px; }
  .landing-orbit { width: 220px; height: 220px; margin-bottom: 35px; }
}
