/* ZUM shared styles: tokens, background, header, buttons, forms, cards, game cards, footer, toast */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #666666;
  --faint: #9a9a9a;
  --line: rgba(17, 17, 17, .08);
  --line-2: rgba(17, 17, 17, .14);
  --cyan: #01f519;
  --azure: #01f519;
  --royal: #008a0e;
  --navy: #006b0a;
  --green: #00c214;
  --grad: linear-gradient(180deg, #2bff42 0%, #01f519 55%, #00dc17 100%);
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06);
  --shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 10px 28px -8px rgba(17, 17, 17, .12);
  --shadow-lg: 0 2px 4px rgba(17, 17, 17, .04), 0 28px 60px -16px rgba(0, 70, 8, .25);
  --glow: 0 10px 28px -10px rgba(1, 245, 25, .45);
  /* semantic surfaces — redefined for dark mode below so every page adapts */
  --surface: rgba(255, 255, 255, .82);   /* glass cards + panels */
  --surface-2: rgba(255, 255, 255, .6);  /* faint panels: footer, totals */
  --glass: rgba(255, 255, 255, .72);     /* frosted bars + glass buttons */
  --glass-line: rgba(255, 255, 255, .95);/* frosted bar border */
  --solid: #fff;                         /* opaque surfaces: hovers, inputs, dialogs */
  --solid-rgb: 255, 255, 255;            /* same as --solid, for fades to transparent */
  --field: var(--bg);                    /* inset field background */
  --hover: rgba(17, 17, 17, .045);       /* subtle hover tint */
  --sunk: rgba(17, 17, 17, .06);         /* code chips, bar tracks, pills */
  --dot: rgba(17, 17, 17, .11);          /* background dot grid */
  --toast-bg: #111111;                   /* toast + chart tooltip */
  --toast-ink: #fff;
  --fade: 247, 249, 255;                 /* page-bg rgb for mask fades */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- dark theme ---------- */
/* zum.js sets data-theme on <html> from the saved choice, else the OS; this block paints it */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090b;
  --ink: #ececee;
  --ink-2: #c6c8cc;
  --muted: #8b8e95;
  --faint: #5d6068;
  --royal: #3dff52;                      /* links + accents, brightened for dark */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 28px 60px -16px rgba(0, 0, 0, .75);
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .022);
  --glass: rgba(11, 12, 14, .8);
  --glass-line: rgba(255, 255, 255, .10);
  --solid: #141518;
  --solid-rgb: 20, 21, 24;
  --field: rgba(255, 255, 255, .045);
  --hover: rgba(255, 255, 255, .06);
  --sunk: rgba(255, 255, 255, .07);
  --dot: rgba(255, 255, 255, .06);
  --toast-bg: #141518;
  --toast-ink: #ececee;
  --fade: 8, 9, 11;
}
/* darker dark mode: keep the lime glows low */
/* lift the colored inks so notes + statuses stay legible on the dark surfaces */
:root[data-theme="dark"] .alert { color: #ff9a90; }
:root[data-theme="dark"] .st.working { color: #3dff52; }
:root[data-theme="dark"] .st.updating { color: #f0b53f; }
:root[data-theme="dark"] .st.soon { color: #3dff52; }
:root[data-theme="dark"] .st.down { color: #ff7a7a; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  overflow-x: hidden; overflow-x: clip;
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: rgba(1, 245, 25, .22); }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { max-width: 860px; }

/* ---------- page background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg > div { position: absolute; }
.bg-orb { width: 900px; height: 900px; border-radius: 50%; }
.bg-orb.a { left: -320px; top: 30%; background: radial-gradient(closest-side, rgba(109, 255, 121, .13), transparent); animation: orbA 38s ease-in-out infinite alternate; }
.bg-orb.b { right: -340px; top: -10%; background: radial-gradient(closest-side, rgba(0, 184, 18, .10), transparent); animation: orbB 44s ease-in-out infinite alternate; }
@keyframes orbA { to { transform: translate(260px, -180px) scale(1.15); } }
@keyframes orbB { to { transform: translate(-220px, 260px) scale(1.2); } }
.bg-dots, .bg-glow, .bg-grain { inset: 0; }
.bg-dots, .bg-glow { background-size: 26px 26px; }
.bg-dots { background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, .35)); mask-image: linear-gradient(#000, rgba(0, 0, 0, .35)); }
.bg-glow {
  background-image: radial-gradient(rgba(0, 184, 18, .8) 1.3px, transparent 1.9px);
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 72%);
          mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 72%);
}
.bg-grain {
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 980px; height: 980px; left: -300px; top: -420px; background: radial-gradient(closest-side, rgba(109, 255, 121, .34), transparent); animation: au1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 860px; height: 860px; right: -280px; top: -240px; background: radial-gradient(closest-side, rgba(0, 184, 18, .24), transparent); animation: au2 27s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 760px; height: 760px; left: 32%; top: 300px; background: radial-gradient(closest-side, rgba(120, 255, 130, .2), transparent); animation: au3 31s ease-in-out infinite alternate; }
@keyframes au1 { to { transform: translate(200px, 140px) scale(1.15); } }
@keyframes au2 { to { transform: translate(-180px, 120px) scale(1.1); } }
@keyframes au3 { to { transform: translate(-160px, -120px) scale(1.2); } }

/* ---------- header ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-inner {
  pointer-events: auto; width: min(1200px, 100% - 28px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 64px; padding: 0 10px 0 14px; border-radius: 20px;
  border: 1px solid transparent;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.nav.scrolled .nav-inner, .nav.open .nav-inner {
  background: var(--glass);
  border-color: var(--glass-line);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -12px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
}
.lockup { display: inline-flex; width: fit-content; }
.lockup img { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(1, 245, 25, .22)); transition: transform .5s var(--ease); }
.lockup:hover img { transform: rotate(-10deg) scale(1.08); }
.links { display: flex; gap: 4px; }
.links a {
  position: relative; padding: 9px 16px; border-radius: 11px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.links a:hover { color: var(--ink); background: var(--hover); }
.links a.active { color: var(--ink); }
.links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; margin-left: -8px;
  border-radius: 2px; background: var(--acc, #01f519);
}
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; background: var(--glass); box-shadow: 0 0 0 1px var(--line); }
.menu-btn svg { width: 20px; height: 20px; }
.mnav {
  pointer-events: auto; display: none; width: min(1200px, 100% - 28px); margin: 8px auto 0; padding: 8px;
  border-radius: 20px; background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
}
.nav.open .mnav { display: grid; gap: 2px; animation: drop .3s var(--ease); }
.mnav > a:not(.btn) { padding: 13px 14px; border-radius: 12px; font-weight: 600; font-size: 16px; }
.mnav > a:not(.btn):hover, .mnav > a[aria-current] { background: var(--hover); }
.mnav .btn { margin-top: 6px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- buttons ---------- */
.btn {
  --h: 48px; position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 22px; border-radius: 14px;
  font-family: var(--body); font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.sm { --h: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn.lg { --h: 56px; padding: 0 28px; font-size: 16.5px; border-radius: 16px; }
.btn.full { width: 100%; }
.btn-primary {
  color: #041a06; background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 60, 6, .25), var(--glow);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 60, 6, .25), 0 16px 40px -8px rgba(0, 184, 18, .65); }
.btn-primary::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: shine 5s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.btn-glass {
  color: var(--ink); background: var(--glass);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--solid); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.btn-ghost { color: var(--ink); background: var(--glass); box-shadow: 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--solid); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
/* square icon-only button (theme toggle) */
.btn.ico { padding: 0; width: var(--h); }
.btn.ico svg { width: 19px; height: 19px; }
.discord-ico { color: #5865f2; }
.btn[disabled] { opacity: .5; pointer-events: none; }
:is(a, button, select, input):focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
.btn.busy::after { content: ""; flex: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.busy[disabled] { opacity: .75; }
.spin { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: 14px; outline: 0;
  font-size: 16px; background: var(--field); box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--faint); }
.input:focus { background: var(--solid); box-shadow: 0 0 0 2px rgba(1, 245, 25, .55), 0 0 0 6px rgba(1, 245, 25, .12); }
.input:focus-visible { outline: none; }
.alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 13px;
  font-size: 14.5px; font-weight: 500; line-height: 1.5; color: #b42318;
  background: rgba(240, 68, 56, .07); box-shadow: inset 0 0 0 1px rgba(240, 68, 56, .2);
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- reveal ---------- */
.js .reveal:not(.in) { opacity: 0; }
.reveal.in { animation: rise .9s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 100px 0; }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 44px; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.lede { margin-top: 14px; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: balance; }
.lede a { color: var(--royal); font-weight: 600; }

.card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 24px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(460px circle at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, .045), transparent 62%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }

/* ---------- game cards + status ---------- */
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(0, 194, 20, .5); } 100% { box-shadow: 0 0 0 9px rgba(0, 194, 20, 0); } }
.st {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--solid);
  box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px rgba(17, 17, 17, .2);
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st.working { color: #008f0e; }
.st.working::before { background: var(--green); animation: live 2s infinite; }
.st.updating { color: #b45309; }
.st.soon { color: var(--royal); }
.st.down { color: #dc2626; }
.gcard { display: flex; flex-direction: column; text-align: left; }
.gcard-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.gcard-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .9s var(--ease); }
.gcard:hover .gcard-art img { transform: scale(1.05); }
.gcard-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17, 17, 17, .3), transparent 45%); pointer-events: none; }
.gcard-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: -.04em; color: rgba(255, 255, 255, .92); text-shadow: 0 6px 20px rgba(17, 17, 17, .25); }
.gtags { position: absolute; z-index: 1; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.gnew { display: inline-block; margin-right: 7px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; color: #041a06; background: var(--grad); }
.gcard-body { display: flex; align-items: center; gap: 12px; padding: 14px 14px 16px 16px; }
.gcard-icon { width: 46px; height: 46px; border-radius: 13px; flex: none; object-fit: cover; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: #fff; }
.gcard-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.gcard-name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.025em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-meta { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-go { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--royal); background: rgba(1, 245, 25, .08); transition: background .3s, color .3s, transform .3s var(--ease); }
.gcard-go svg { width: 17px; height: 17px; }
.gcard:hover .gcard-go { color: #041a06; background: var(--grad); transform: translateX(2px); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface-2); }
.foot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px; padding: 30px 0; }
.foot .lockup img { width: 32px; height: 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.foot-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--royal); }
.foot-copy { justify-self: end; font-size: 14px; color: var(--faint); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 11px 18px 11px 11px; border-radius: 15px; background: var(--toast-bg); color: var(--toast-ink); font-size: 14.5px; font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(17, 17, 17, .55);
  opacity: 0; pointer-events: none; transform: translate(-50%, 24px);
  transition: opacity .25s, transform .4s cubic-bezier(.2, 1.4, .4, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .tk { width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--grad); }
.toast .tk svg { width: 15px; height: 15px; }
.toast.err .tk { background: #e5484d; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .links, .nav-cta .hide-sm { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 640px) {
  .wrap { width: min(1180px, 100% - 32px); }
  .section { padding: 80px 0; }
  .foot-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-links { justify-content: center; }
  .foot-copy { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal:not(.in) { opacity: 1; }
}

/* calm background: dot grid + grain, one soft glow over the hero (after the base rules so it wins) */
.bg-orb, .bg-glow, .aurora i:nth-child(2), .aurora i:nth-child(3) { display: none; }
.aurora i:nth-child(1) { right: auto; left: 50%; top: -360px; width: 1000px; height: 760px; margin-left: -500px; animation: none;
  background: radial-gradient(closest-side, rgba(1, 245, 25, .09), transparent); }
