:root {
  color-scheme: dark;
  --bg: #050403;
  --panel: rgba(15, 14, 13, 0.82);
  --panel-strong: #11100f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #fff7ef;
  --muted: #b9ada4;
  --soft: #81766e;
  --lava: #ff5a1f;
  --lava-2: #ff9c2f;
  --lava-3: #ffe27a;
  --green: #00d084;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --mx: 50vw;
  --my: 20vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 122, 32, 0.18), transparent 310px),
    radial-gradient(circle, rgba(255, 156, 47, 0.18) 1px, transparent 1.5px),
    #050403;
  background-size: auto, 22px 22px, auto;
  animation: dotDrift 18s linear infinite;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 90, 31, 0.07), transparent 380px),
    linear-gradient(90deg, rgba(255, 156, 47, 0.05), transparent 35%, rgba(255, 90, 31, 0.04));
  pointer-events: none;
}

input, textarea, select, .CodeMirror, code { user-select: text; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 96px; }

.ui-icon, .nav-icon, .feature-icon, .game-status-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-gamepad { --icon: url("/assets/icons/gamepad-2.svg?v=2"); }
.icon-terminal { --icon: url("/assets/icons/terminal.svg?v=2"); }
.icon-key { --icon: url("/assets/icons/key-round.svg?v=2"); }
.icon-grid { --icon: url("/assets/icons/layout-grid.svg?v=2"); }
.icon-message { --icon: url("/assets/icons/message-circle.svg?v=2"); }
.icon-copy { --icon: url("/assets/icons/copy.svg?v=2"); }
.icon-crown { --icon: url("/assets/icons/crown.svg?v=2"); }
.icon-lock { --icon: url("/assets/icons/lock-keyhole.svg?v=2"); }
.icon-zap { --icon: url("/assets/icons/zap.svg?v=2"); }
.icon-refresh { --icon: url("/assets/icons/refresh-cw.svg?v=2"); }
.icon-shield { --icon: url("/assets/icons/shield-check.svg?v=2"); }
.icon-wallet { --icon: url("/assets/icons/wallet.svg?v=2"); }
.icon-gift { --icon: url("/assets/icons/gift.svg?v=2"); }
.icon-sparkles { --icon: url("/assets/icons/sparkles.svg?v=2"); }
.icon-house { --icon: url("/assets/icons/house.svg?v=2"); }
.icon-file { --icon: url("/assets/icons/file-text.svg?v=2"); }
.icon-copyright { --icon: url("/assets/icons/copyright.svg?v=2"); }
.icon-dollar { --icon: url("/assets/icons/circle-dollar-sign.svg?v=2"); }
.icon-badge { --icon: url("/assets/icons/badge-check.svg?v=2"); }

.site-shell { position: relative; z-index: 1; min-height: 100vh; overflow: clip; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(100% - 32px, 1160px);
  min-height: 66px;
  margin: 16px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.035)), rgba(8,7,7,.76);
  box-shadow: 0 18px 46px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(22px) saturate(1.25);
  transition: min-height 180ms ease, margin 180ms ease, background 180ms ease, border-color 180ms ease;
}

.topbar.is-scrolled { min-height: 58px; margin-top: 10px; background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04)), rgba(8,7,7,.88); }
.brand, .nav-cta { display: inline-flex; align-items: center; min-width: max-content; }
.brand { gap: 10px; font-weight: 850; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; overflow: visible; }
.brand-icon img { width: 34px; height: 34px; image-rendering: pixelated; }
.brand > span:last-child { background: linear-gradient(90deg, #fff2e8, var(--lava-3), var(--lava-2), var(--lava)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-divider { width: 1px; height: 28px; background: rgba(255,255,255,.12); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 14px; }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 10px 12px; text-transform: capitalize; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.nav-links a:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); color: white; }
.nav-icon { width: 16px; height: 16px; color: var(--lava-2); }
.nav-cta { min-height: 42px; border: 1px solid rgba(255,156,47,.38); border-radius: 999px; padding: 0 16px; color: #fff; background: linear-gradient(135deg, var(--lava-3), var(--lava-2), var(--lava)); box-shadow: 0 12px 28px rgba(255,90,31,.24); font-size: 14px; font-weight: 850; text-shadow: 0 1px 10px rgba(58, 18, 0, .42); text-transform: capitalize; transition: transform 160ms ease, box-shadow 160ms ease; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(255,90,31,.34); }

.hero { position: relative; min-height: 590px; padding: 112px 20px 52px; overflow: hidden; }
.dot-pattern { display: none; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(100% - 32px, 1160px); min-height: 390px; margin: 0 auto; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 0 12px; color: #ffe1d0; background: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); font-size: 13px; font-weight: 820; }
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(0,208,132,.7); }
.hero h1, .games-hero h1, .legal-hero h1 { margin-top: 18px; font-size: 96px; line-height: .92; letter-spacing: 0; font-weight: 920; background: linear-gradient(90deg, #fff3e9, var(--lava-3), var(--lava-2), var(--lava)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-line { margin-top: 18px; color: #fff; font-size: 28px; line-height: 1.15; font-weight: 840; }
.hero-copy, .section-heading p, .notice-card p, .legal-content p, .legal-content li { color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-copy { max-width: 560px; margin-top: 12px; }
.loader-card { display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: center; gap: 10px; width: min(100%, 650px); min-height: 60px; margin-top: 26px; padding: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)), rgba(12,11,10,.88); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
code { min-width: 0; overflow-x: auto; padding: 0 8px 0 10px; color: #fff4ec; font-family: "Fira Code", "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-size: 14px; white-space: nowrap; scrollbar-width: none; }
code::-webkit-scrollbar { display: none; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.06); color: #ffe5d6; cursor: pointer; transition: transform 140ms ease, border-color 140ms ease, background 140ms ease; }
.icon-button .ui-icon { width: 20px; height: 20px; }
.icon-button:hover { transform: translateY(-1px); border-color: rgba(255,156,47,.5); background: rgba(255,90,31,.16); }
.icon-button.copied { color: var(--green); border-color: rgba(0,208,132,.5); }
.hero-actions, .center-action { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid transparent; border-radius: var(--radius); padding: 0 19px; font-weight: 850; cursor: pointer; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--lava-3), var(--lava-2), var(--lava)); box-shadow: 0 16px 38px rgba(255,90,31,.3); text-shadow: 0 1px 12px rgba(63,20,0,.46); }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.button-secondary:hover { border-color: rgba(255,156,47,.4); background: rgba(255,90,31,.12); }
.white-link { color: #fff; }

.section-pad { padding: 86px 0; }
.section-inner { width: min(100% - 32px, 1160px); margin: 0 auto; }
.section-heading { max-width: 720px; }
.section-heading.center { margin: 0 auto 34px; text-align: center; }
.section-heading h2, .notice-card h2, .legal-content h2 { font-size: 42px; line-height: 1.05; letter-spacing: 0; }
.section-heading p { margin-top: 12px; }
.eyebrow { margin-bottom: 9px; color: var(--lava-3); font-size: 13px; font-weight: 850; }
.games-strip { padding-top: 58px; padding-bottom: 76px; }
.marquee-shell { position: relative; width: 100%; margin: 0 auto; padding: 8px 0 20px; overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 18px; padding-inline: 18px; will-change: transform; animation: gamesMarquee 34s linear infinite; }
.marquee-shell:hover .marquee-track { animation-play-state: paused; }
.marquee-fade { position: absolute; top: 0; bottom: 0; z-index: 2; width: min(14vw, 150px); pointer-events: none; }
.marquee-fade.left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-fade.right { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.game-card { position: relative; display: block; flex: 0 0 clamp(280px, 31vw, 392px); height: 248px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); background: #0a0908; box-shadow: 0 18px 48px rgba(0,0,0,.34); transition: transform 150ms ease, border-color 150ms ease; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(255,156,47,.42); }
.game-card img { display: block; width: 100%; height: 174px; object-fit: cover; background: #111; }
.game-card img.is-fallback { object-fit: contain; padding: 28px; background: radial-gradient(circle at 50% 45%, rgba(255,156,47,.14), rgba(17,16,15,.95) 58%); }
.game-card-body { position: absolute; inset: auto 0 0; min-height: 78px; padding: 14px 13px 13px; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.86)), rgba(7,6,5,.9); }
.game-card h3 { font-size: 15px; line-height: 1.2; }
.game-card p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.game-status {
  --status-color: var(--green);
  --status-bg: rgba(0, 208, 132, .16);
  --status-ring: rgba(0, 208, 132, .55);
  position: absolute;
  right: 12px;
  bottom: 20px;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--status-color), transparent 55%);
  border-radius: 999px;
  color: var(--status-color);
  background: var(--status-bg);
  box-shadow: 0 0 16px color-mix(in srgb, var(--status-color), transparent 72%);
}
.game-status-icon {
  width: 7px;
  height: 12px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  background: transparent;
  -webkit-mask: none;
  mask: none;
  transform: translateY(-1px) rotate(45deg);
  filter: drop-shadow(0 0 5px currentColor);
}
.status-green { --status-color: #00d084; --status-bg: rgba(0, 208, 132, .16); --status-ring: rgba(0, 208, 132, .55); }
.status-yellow { --status-color: #ffdc4f; --status-bg: rgba(255, 220, 79, .16); --status-ring: rgba(255, 220, 79, .58); }
.status-red { --status-color: #ff4d45; --status-bg: rgba(255, 77, 69, .16); --status-ring: rgba(255, 77, 69, .58); }
.center-action { justify-content: center; margin-top: 14px; }

.flicker-title { color: transparent; background: linear-gradient(90deg, var(--lava-3), var(--lava-2), var(--lava)); -webkit-background-clip: text; background-clip: text; animation: lavaFlicker 4s ease-in-out infinite; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; perspective: 1200px; }
.tilt-card { position: relative; min-height: 190px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.024)), rgba(11,10,9,.76); box-shadow: 0 26px 70px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.1); transform: translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transform-style: preserve-3d; will-change: transform; backdrop-filter: blur(14px); transition: transform 220ms cubic-bezier(.16, 1, .3, 1), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.tilt-card::before { content: ""; position: absolute; inset: -1px; opacity: 0; background: radial-gradient(circle at var(--px, 50%) var(--py, 0%), rgba(255,156,47,.22), transparent 42%); transition: opacity 180ms ease; pointer-events: none; }
.tilt-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 34%, rgba(255,90,31,.08)); opacity: .42; pointer-events: none; }
.tilt-card:hover { border-color: rgba(255,156,47,.48); background: linear-gradient(145deg, rgba(255,90,31,.12), rgba(255,255,255,.03)), rgba(11,10,9,.84); box-shadow: 0 34px 86px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.13); }
.tilt-card:hover::before { opacity: 1; }
.tilt-card > * { position: relative; z-index: 1; transform: translateZ(24px); }
.tilt-card .card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); color: var(--lava-3); background: rgba(255,90,31,.12); }
.tilt-card .card-icon::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.tilt-card h3 { margin-top: 18px; font-size: 20px; }
.tilt-card p { margin-top: 8px; color: var(--muted); line-height: 1.55; }

.split { display: grid; grid-template-columns: minmax(0,1fr) 470px; gap: 42px; align-items: center; }
.exec-ticker { position: relative; min-height: 320px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.025)), rgba(11,10,9,.78); box-shadow: 0 30px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12); perspective: 1000px; backdrop-filter: blur(16px); }
.exec-ticker::before { content: ""; position: absolute; inset: 36px 56px; border-radius: 999px; background: radial-gradient(circle, rgba(255,156,47,.18), rgba(255,90,31,.08) 42%, transparent 68%); filter: blur(10px); pointer-events: none; }
.exec-ticker::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(72%, 310px); height: 74px; border: 1px solid rgba(255,156,47,.22); border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 18px 46px rgba(0,0,0,.24); transform: translate(-50%, -50%); pointer-events: none; }
.exec-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.exec-item { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 42px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 0 16px; color: rgba(255,247,239,.68); background: rgba(255,255,255,.055); box-shadow: 0 14px 34px rgba(0,0,0,.2); font-size: 18px; font-weight: 850; letter-spacing: -.01em; white-space: nowrap; transform-origin: center; will-change: transform, opacity, filter; }
.exec-item.is-active { color: #fff; border-color: rgba(255,156,47,.72); background: linear-gradient(135deg, rgba(255,156,47,.95), rgba(255,90,31,.92)); box-shadow: 0 20px 48px rgba(255,90,31,.24), inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 10px rgba(45,13,0,.45); }
.executor-stage { position: relative; display: grid; justify-items: center; gap: 16px; perspective: 1000px; }
.executor-stage::before {
  content: "";
  position: absolute;
  inset: -22px 12px 18px;
  border: 1px solid rgba(255, 156, 47, .08);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,156,47,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,156,47,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .46;
  transform: rotateX(64deg) translateY(46px);
  pointer-events: none;
}
.executor-spotlight {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(100%, 440px);
  min-height: 190px;
  border: 1px solid rgba(255,156,47,.34);
  border-radius: 18px;
  padding: 26px 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,90,31,.2), rgba(255,255,255,.045)),
    rgba(10,8,7,.84);
  box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.12);
  transform-style: preserve-3d;
  animation: executorFloat 4.2s ease-in-out infinite;
}
.executor-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,226,122,.18), transparent),
    repeating-linear-gradient(90deg, rgba(255,156,47,.06) 0 1px, transparent 1px 22px);
  opacity: .5;
  transform: translateX(-100%);
  animation: executorScan 2.7s ease-in-out infinite;
  pointer-events: none;
}
.executor-kicker, .executor-subline {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}
.executor-subline { margin-top: 12px; text-transform: none; font-weight: 760; }
.executor-flip {
  position: relative;
  min-height: 72px;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(42px, 7vw, 62px);
  line-height: 1;
  font-weight: 940;
  text-align: left;
  text-shadow: 0 12px 34px rgba(255,90,31,.32);
  transform-origin: 50% 70%;
}
.executor-flip.is-changing { animation: executorNameFlip 720ms cubic-bezier(.16, 1, .3, 1); }
.executor-strip { position: relative; z-index: 1; display: flex; justify-content: center; gap: 8px; min-height: 38px; flex-wrap: wrap; }
.executor-strip span {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 11px;
  color: #ffe1d0;
  background: rgba(255,255,255,.055);
  font-size: 13px;
  font-weight: 750;
  animation: executorChipIn 560ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--delay);
}

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; }
.plan-card, .notice-card, .legal-content, .games-grid-card, .admin-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.plan-card { position: relative; display: grid; gap: 16px; min-height: 520px; padding: 34px; overflow: hidden; }
.plan-card::before { content: ""; position: absolute; inset: 0; opacity: .2; background: radial-gradient(circle at 50% 0, rgba(255,156,47,.55), transparent 320px); pointer-events: none; }
.plan-card > * { position: relative; }
.plan-card.premium { border-color: rgba(255,156,47,.45); }
.plan-card.free { border-color: rgba(255,255,255,.16); }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 34px; border: 1px solid rgba(255,156,47,.28); border-radius: 999px; padding: 0 12px; color: var(--lava-3); background: rgba(255,90,31,.1); font-size: 12px; font-weight: 900; }
.plan-badge .ui-icon { width: 16px; height: 16px; }
.plan-card h3 { font-size: 32px; }
.plan-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 2px; }
.plan-title-row h3 { margin: 0; }
.plan-title-row + .plan-price { margin-top: -4px; }
.plan-price { color: #fff; font-size: 62px; font-weight: 920; line-height: 1; }
.plan-price small { color: var(--muted); font-size: 16px; font-weight: 700; }
.plan-card ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.plan-card.premium ul { gap: 10px; }
.plan-card li { display: flex; align-items: center; gap: 10px; min-height: 24px; line-height: 1.35; }
.plan-card li::before { content: none; }
.feature-icon { width: 18px; height: 18px; color: var(--lava-3); }
.plan-card.free .feature-icon { color: #ffc44a; }
.notice-card { padding: 28px; }
.notice-card p { margin-top: 12px; }
.notice-card a, .legal-content a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,156,47,.5); }
.footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--soft);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer .brand { justify-self: start; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; flex-wrap: wrap; font-size: 14px; font-weight: 800; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); transition: color 150ms ease, transform 150ms ease; }
.footer-links a:hover { color: #fff; transform: translateY(-1px); }
.footer p { justify-self: end; white-space: nowrap; font-weight: 800; }

.games-hero, .legal-hero { padding: 134px 0 70px; }
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.games-grid-card { position: relative; overflow: hidden; transition: transform 150ms ease, border-color 150ms ease; }
.games-grid-card:hover { transform: translateY(-3px); border-color: rgba(255,156,47,.42); }
.games-grid-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.games-grid-body { display: grid; gap: 10px; padding: 16px; }
.games-grid-body h2 { font-size: 20px; line-height: 1.2; }
.games-grid-body p { color: var(--muted); font-size: 14px; }
.game-stat-primary { margin-top: 6px; }
.game-meta-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.game-meta-list span { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(255,255,255,.035); color: rgba(255,247,239,.66); font-size: 11px; line-height: 1; white-space: nowrap; }
.games-hero-copy { max-width: 580px; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.games-grid-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.games-grid-actions .button { min-height: 40px; padding: 0 14px; font-size: 14px; }
.game-grid-status { top: 12px; bottom: auto; }
.legal-content { padding: 28px; }
.legal-content h2 { margin-top: 28px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content ul { margin-top: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; max-width: min(520px, calc(100% - 32px)); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 12px 14px; color: white; background: rgba(15,13,13,.94); box-shadow: var(--shadow); transition: opacity 160ms ease, transform 160ms ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 420ms ease, transform 420ms ease; }
.hidden { display: none !important; }

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.not-found main {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
}
.not-found h1, .success-card h1, .admin-main h1 {
  margin-top: 18px;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: 0;
  background: linear-gradient(90deg, #fff3e9, var(--lava-3), var(--lava-2), var(--lava));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found p, .success-card p { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.not-found .button { margin-top: 22px; }

.success-wrap {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.success-card {
  width: min(100%, 640px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.success-key { margin-top: 18px; }
.key-output {
  width: min(100%, 860px);
  margin: 28px auto 0;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  text-align: center;
}
.key-output:empty { display: none; }
.turnstile-box {
  display: flex;
  justify-content: center;
  width: min(100%, 420px);
  margin: 24px auto 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,.035);
}

.admin-main { padding: 132px 0 70px; }
.admin-main .section-heading { margin-bottom: 24px; }
.admin-login { margin-bottom: 24px; padding: 22px; }
.admin-login label { display: block; margin-bottom: 10px; color: #fff; font-weight: 850; }
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
/* Dynamic masonry: panels flow into as many ~30rem columns as fit and pack by
   available height. No fixed tracks, so panels cannot overlap at any width, and
   it auto-collapses to a single column when narrow. */
.admin-columns {
  columns: 30rem;
  column-gap: 18px;
}
.admin-stack { display: contents; }
.admin-columns .admin-panel {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 18px;
  width: 100%;
}
.admin-panel { min-height: 0; padding: 22px; }
.admin-panel h2 { font-size: 24px; line-height: 1.15; }
.admin-panel p { margin-top: 6px; color: var(--muted); }
.admin-label { display: block; margin: 14px 0 8px; color: #fff; font-size: 13px; font-weight: 850; line-height: 1.35; }
.admin-textarea { display: block; width: 100%; min-height: 96px; padding: 10px 12px; line-height: 1.35; resize: vertical; font-family: "Fira Code", "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.provider-panel .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#save-provider-settings { margin-top: 12px; }
.admin-toolbar, .form-row, .toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-actions { justify-content: flex-end; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 16px 0;
}
.input {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 0 12px;
  color: #fff;
  background: rgba(255,255,255,.055);
  outline: none;
}
.input:focus { border-color: rgba(255,156,47,.55); box-shadow: 0 0 0 3px rgba(255,90,31,.12); }
.CodeMirror {
  height: 520px;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  font-family: "Fira Code", "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}
.history-box { margin-top: 16px; color: var(--muted); }
.history-box summary { cursor: pointer; color: #fff; font-weight: 800; }
.history-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.history-row:hover { border-color: rgba(255,156,47,.4); color: #fff; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { border-bottom: 1px solid rgba(255,255,255,.08); padding: 10px 8px; color: var(--muted); text-align: left; font-size: 13px; }
th { color: #fff; font-weight: 850; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-actions button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.table-actions button:hover { border-color: rgba(255,156,47,.45); }
.support-swatch {
  --status-color: var(--green);
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--status-color);
  box-shadow: 0 0 14px var(--status-color);
}

@keyframes gameLoop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dotDrift { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 44px 22px, 0 0; } }
@keyframes lavaFlicker { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }
@keyframes gamesMarquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-33.333%, 0, 0); } }
@keyframes flipPulse { 0%, 100% { transform: rotateX(0) rotateY(0); } 50% { transform: rotateX(8deg) rotateY(-10deg); } }
@keyframes executorFloat { 0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); } 50% { transform: translateY(-8px) rotateX(3deg) rotateY(-4deg); } }
@keyframes executorScan { 0%, 18% { transform: translateX(-105%); } 54%, 100% { transform: translateX(105%); } }
@keyframes executorNameFlip {
  0% { opacity: 0; transform: translateY(28px) rotateX(-74deg) scale(.94); filter: blur(8px); }
  58% { opacity: 1; transform: translateY(-4px) rotateX(8deg) scale(1.02); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); filter: blur(0); }
}
@keyframes executorChipIn { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-shell { overflow-x: auto; }
  .marquee-track { animation: none !important; }
}

@media (max-width: 980px) {
  .split, .why-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plan-grid { grid-template-columns: 1fr; }
  .admin-columns { grid-template-columns: 1fr; }
  .hero h1, .games-hero h1, .legal-hero h1 { font-size: 74px; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: auto auto; justify-content: space-between; width: min(100% - 20px, 1160px); min-height: 58px; margin-top: 10px; gap: 10px; }
  .brand > span:last-child { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-cta { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .nav-divider { display: none; }
  .nav-links { display: none; }
  .section-inner, .hero-inner, .footer { width: min(100% - 24px, 1160px); }
  .hero { min-height: 570px; padding: 92px 16px 48px; }
  .hero h1, .games-hero h1, .legal-hero h1 { font-size: 54px; }
  .hero-line { font-size: 21px; }
  .hero-copy, .section-heading p, .notice-card p, .legal-content p, .legal-content li { font-size: 15px; }
  code { font-size: 12px; }
  .loader-card { margin-top: 20px; }
  .section-pad { padding: 64px 0; }
  .section-heading h2, .notice-card h2, .legal-content h2 { font-size: 32px; }
  .marquee-track { gap: 14px; padding-inline: 14px; }
  .game-card { height: 226px; }
  .game-card { flex-basis: min(82vw, 340px); }
  .game-card img { height: 152px; }
  .games-grid { grid-template-columns: 1fr; }
  .executor-spotlight { width: 100%; min-height: 166px; border-radius: 12px; padding: 22px; }
  .executor-flip { min-height: 54px; font-size: 40px; }
  .executor-strip { justify-content: flex-start; }
  .executor-strip span { padding: 7px 10px; font-size: 12px; }
  .plan-card { min-height: auto; padding: 24px; }
  .plan-price { font-size: 52px; }
  .notice-card, .legal-content, .admin-panel, .success-card { padding: 20px; }
  .games-hero, .legal-hero, .admin-main { padding-top: 108px; }
  .footer { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .footer-links { justify-content: flex-start; }
  .footer p { justify-self: start; }
  .form-grid, .provider-panel .form-grid { grid-template-columns: 1fr; }
  .admin-toolbar, .form-row { align-items: stretch; }
  .admin-toolbar .button, .form-row .button { width: 100%; }
  .CodeMirror { height: 420px; }
  .history-row { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  body::before { background-size: auto, 18px 18px, auto; }
  .topbar { width: calc(100% - 14px); padding: 7px 9px; }
  .brand { gap: 8px; }
  .brand-icon, .brand-icon img { width: 30px; height: 30px; }
  .brand > span:last-child { max-width: 36vw; }
  .hero h1, .games-hero h1, .legal-hero h1, .not-found h1, .success-card h1, .admin-main h1 { font-size: 46px; }
  .hero-line { font-size: 19px; }
  .hero-actions .button, .plan-card .button { width: 100%; }
  .loader-card { grid-template-columns: minmax(0,1fr) 42px; }
  .icon-button { width: 40px; height: 40px; }
  .executor-flip { font-size: 34px; }
  .plan-price { font-size: 46px; }
  .table-wrap { margin-right: -8px; }
}

/* Custom lava-bucket cursor, site-wide */
html { cursor: url("/cursor-lava.png") 5 3, auto; }
a, button, .button, [role="button"], summary, label[for], select, .pay-opt, .icon-button, .game-card, .history-row { cursor: url("/cursor-lava.png") 5 3, pointer; }
input, textarea, .CodeMirror, .CodeMirror-lines { cursor: text; }
/* Consent-based telemetry prompt. Compact, readable, and visually consistent
   with the site's black/orange product chrome. */
.telemetry-consent {
  position: fixed; z-index: 10000; left: 18px; right: 18px; bottom: 18px;
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  max-width: 880px; margin: 0 auto; padding: 14px 16px;
  border: 1px solid rgba(255, 156, 47, .28); border-radius: 16px;
  background: rgba(12, 10, 9, .92); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease;
}
.telemetry-consent.is-visible { opacity: 1; transform: translateY(0); }
.telemetry-consent-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #150704; background: linear-gradient(135deg, var(--lava-3), var(--lava-2), var(--lava)); font-size: 13px; }
.telemetry-consent-copy strong { display: block; margin-bottom: 3px; color: #fff7ef; font-size: 14px; }
.telemetry-consent-copy p { margin: 0; max-width: 68ch; color: rgba(255,247,239,.68); font-size: 12px; line-height: 1.45; }
.telemetry-consent-copy a { color: var(--lava-3); }
.telemetry-consent-actions { display: flex; gap: 8px; align-items: center; }
.telemetry-consent-actions .button { min-height: 38px; padding: 0 14px; white-space: nowrap; font-size: 12px; }
@media (max-width: 720px) {
  .telemetry-consent { grid-template-columns: 30px 1fr; align-items: start; padding: 13px; }
  .telemetry-consent-actions { grid-column: 1 / -1; justify-content: stretch; }
  .telemetry-consent-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .telemetry-consent { transition: none; } }

/* ============================================================
   Premium push + live stats + purchase notification (2026-07-17)
   ============================================================ */

/* Topbar: Get Key + animated Premium button share the last grid cell */
.nav-cta-group { display: inline-flex; align-items: center; gap: 8px; min-width: max-content; }
.nav-cta-premium { position: relative; overflow: hidden; gap: 6px; border-color: rgba(255,226,122,.6); }
.nav-cta-premium .nav-icon { width: 15px; height: 15px; color: #3a1200; }
/* Slow breathing glow so it pulls the eye without shouting */
.nav-cta-premium { animation: premiumPulse 2.6s ease-in-out infinite; }
/* Diagonal shine that sweeps across every few seconds */
.nav-cta-premium::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg); animation: premiumSheen 3.4s ease-in-out infinite;
}
@keyframes premiumPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(255,90,31,.24); }
  50% { box-shadow: 0 14px 34px rgba(255,156,47,.5), 0 0 18px rgba(255,226,122,.45); }
}
@keyframes premiumSheen {
  0% { left: -60%; } 55% { left: 130%; } 100% { left: 130%; }
}

/* Buy Premium: shiny sweep on hover only */
.buy-premium-glow { position: relative; overflow: hidden; }
.buy-premium-glow::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); transition: none; opacity: 0;
}
.buy-premium-glow:hover { box-shadow: 0 18px 44px rgba(255,90,31,.5), 0 0 22px rgba(255,226,122,.55); }
.buy-premium-glow:hover::after { opacity: 1; animation: buyShine 900ms ease; }
@keyframes buyShine { from { left: -75%; } to { left: 130%; } }

/* Price: smaller $4.99, "once" keeps its original small style (.plan-price small) */
.plan-price .price-num { font-size: .56em; }

/* Live stats strip (replaces the executor wheel) */
.stats-strip { border-top: 1px solid rgba(255,255,255,.07); }
.stats-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center; gap: clamp(8px, 3vw, 40px);
}
.stat { text-align: center; }
.stat-num {
  position: relative; font-size: clamp(40px, 6.4vw, 78px); font-weight: 920; line-height: 1;
  letter-spacing: -.02em; background: linear-gradient(180deg, #fff3e9 4%, var(--lava-3), var(--lava-2), var(--lava));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 42px rgba(255,120,40,.16); transition: filter 220ms ease;
}
/* Soft orange glow puddle behind each number */
.stat-num::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 118%; height: 128%;
  transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,120,40,.13), transparent 66%); filter: blur(8px);
}
.stat-label { margin-top: 10px; color: var(--muted); font-size: clamp(12px, 1.4vw, 15px); font-weight: 750; letter-spacing: .01em; }
.stat-divider { width: 1px; height: clamp(38px, 6vw, 62px); background: linear-gradient(180deg, transparent, rgba(255,156,47,.32), transparent); }
/* Slot-machine roll while a number is counting up */
.stat-num.is-spinning { animation: statSpin 620ms cubic-bezier(.2,.8,.2,1); }
@keyframes statSpin {
  0% { filter: blur(6px); opacity: .35; transform: translateY(-10px) scale(1.04); }
  60% { filter: blur(1px); opacity: 1; }
  100% { filter: blur(0); transform: translateY(0) scale(1); }
}

/* "someone just bought premium" side popup */
.purchase-pop {
  position: fixed; left: 20px; bottom: 20px; z-index: 45;
  display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px;
  max-width: min(340px, calc(100% - 40px));
  border: 1px solid rgba(255,156,47,.3); border-radius: 14px; padding: 12px 16px 12px 12px;
  color: #fff; background: linear-gradient(180deg, rgba(24,18,14,.97), rgba(14,11,9,.97));
  box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  transform: translateX(-120%); opacity: 0; pointer-events: none;
  transition: transform 420ms cubic-bezier(.16,1,.3,1), opacity 300ms ease;
}
.purchase-pop.is-visible { transform: translateX(0); opacity: 1; }
.purchase-pop-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  color: #3a1200; background: linear-gradient(135deg, var(--lava-3), var(--lava-2), var(--lava));
  box-shadow: 0 6px 16px rgba(255,90,31,.4);
}
.purchase-pop-icon .ui-icon { width: 20px; height: 20px; }
.purchase-pop-title { font-size: 13.5px; font-weight: 850; line-height: 1.25; }
.purchase-pop-title b { color: var(--lava-3); font-weight: 900; }
.purchase-pop-sub { margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 650; }

@media (max-width: 720px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .stats-row .stat-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-cta-premium, .nav-cta-premium::after { animation: none; }
  .stat-num.is-spinning { animation: none; }
  .purchase-pop { transition: opacity 200ms ease; transform: none; }
}
