:root {
  --bg: #0b0d0a;
  --bg-2: #12150f;
  --surface: #171b13;
  --line: rgba(220, 255, 170, 0.1);
  --ink: #f2f5ec;
  --muted: #a4ad99;
  --neon: #b8ff3c;
  --neon-ink: #0b0d0a;
  --hot: #ff8a3d;
  --glow: 0 0 0 1px rgba(184, 255, 60, 0.35), 0 0 28px rgba(184, 255, 60, 0.35);
  --radius: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184, 255, 60, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 138, 61, 0.06), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Faint arcade scanlines over everything */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}
a { color: var(--neon); }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.display { font-family: 'Bungee', system-ui, sans-serif; font-weight: 400; letter-spacing: 0.5px; }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 13, 10, 0.72); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 22px/1 'Bungee', system-ui, sans-serif; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 22px;
  background: var(--neon); box-shadow: var(--glow); transform: rotate(-6deg); transition: transform 0.25s;
}
.logo:hover .logo-mark { transform: rotate(6deg) scale(1.08); }
.logo b { color: var(--neon); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

/* ---------- Buttons ---------- */
.btn {
  --b: rgba(255, 255, 255, 0.08);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font: 800 16px/1 'Inter', system-ui, sans-serif; text-decoration: none; color: var(--ink);
  padding: 15px 22px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: var(--b);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); }
.btn-play {
  background: var(--neon); color: var(--neon-ink); border-color: transparent; font-size: 18px; padding: 17px 28px;
  box-shadow: 0 8px 0 #6f9e1d, 0 14px 40px rgba(184, 255, 60, 0.35);
  animation: pulse 2.4s ease-in-out infinite;
}
.btn-play:hover { background: #c9ff63; box-shadow: 0 10px 0 #6f9e1d, 0 18px 50px rgba(184, 255, 60, 0.5); }
.btn-play:active { transform: translateY(5px); box-shadow: 0 3px 0 #6f9e1d, 0 8px 24px rgba(184, 255, 60, 0.35); }
.btn-play .tri { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.btn-sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
@keyframes pulse { 50% { box-shadow: 0 8px 0 #6f9e1d, 0 14px 60px rgba(184, 255, 60, 0.55); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0 0 0 26%; z-index: -2; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 13, 10, 0.9) 0%, rgba(11, 13, 10, 0.35) 45%, rgba(11, 13, 10, 0) 65%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 10, 0) 30%);
}
.hero .wrap { width: 100%; padding-top: 80px; padding-bottom: 64px; }
.hero-copy { max-width: 560px; animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 2px;
  color: var(--neon-ink); background: var(--neon); padding: 7px 11px; border-radius: 8px; box-shadow: var(--glow);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon-ink); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.game-title {
  margin: 18px 0 10px; font-size: clamp(54px, 9vw, 104px); line-height: 0.95; font-weight: 400;
  color: #ffe9c7; text-shadow: 0 3px 0 #b8501c, 0 6px 0 #6e2d0e, 0 18px 40px rgba(255, 120, 40, 0.45);
}
.hero p.lede { margin: 0 0 22px; font-size: clamp(17px, 2.2vw, 21px); color: #e2e6da; max-width: 480px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: 700 13px/1 'Inter', sans-serif; color: var(--ink); padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px);
}
.chip.free { color: var(--neon); border-color: rgba(184, 255, 60, 0.4); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 40px; padding: 14px 0; animation: tick 32s linear infinite; }
.ticker span { font: 400 15px/1 'Bungee', sans-serif; color: var(--muted); }
.ticker span i { font-style: normal; color: var(--neon); margin-right: 40px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: 72px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font: 400 clamp(26px, 4vw, 38px)/1.1 'Bungee', sans-serif; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Game cards ---------- */
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.gcard {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.2;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gcard:hover, .gcard:focus-visible { border-color: var(--c, var(--neon)); box-shadow: 0 0 0 1px var(--c, var(--neon)), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 50px color-mix(in srgb, var(--c, var(--neon)) 35%, transparent); outline: none; }
.gcard img, .gcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.4s ease; }
.gcard video { opacity: 0; }
.gcard.playing video { opacity: 1; }
.gcard:hover img { transform: scale(1.05); }
.gcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 7, 0.96) 0%, rgba(8, 9, 7, 0.2) 45%, transparent 70%); }
.gcard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.gcard-body > span { display: block; }
.gcard-genre { font: 800 11px/1 'Inter', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--c, var(--neon)); }
.gcard-name { margin: 6px 0 4px; font: 400 26px/1.05 var(--tf, 'Bungee'), sans-serif; }
.gcard-short { color: var(--muted); font-size: 14px; }
.gcard-play {
  position: absolute; top: 14px; right: 14px; z-index: 1; font: 800 12px/1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 1px;
  background: var(--neon); color: var(--neon-ink); padding: 8px 11px; border-radius: 999px; transform: translateY(-4px); opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.gcard:hover .gcard-play, .gcard:focus-visible .gcard-play { opacity: 1; transform: none; }
.slot {
  border-radius: var(--radius); border: 2px dashed rgba(184, 255, 60, 0.18); aspect-ratio: 3 / 4.2;
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px;
}
.slot .goat { font-size: 46px; display: inline-block; animation: bob 2.4s ease-in-out infinite; }
.slot strong { display: block; color: var(--ink); font: 400 18px/1.2 'Bungee', sans-serif; margin: 12px 0 6px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }

/* ---------- Why strip ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.why div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why .ico { font-size: 28px; }
.why h3 { margin: 10px 0 6px; font-size: 18px; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Play page ---------- */
.theater { padding: 22px 0 0; }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); margin: 0 auto;
  border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px color-mix(in srgb, var(--c, var(--neon)) 14%, transparent);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player:fullscreen { max-height: none; border-radius: 0; border: 0; }
.splash { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; isolation: isolate; }
.splash img, .splash video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.splash::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6)); }
.splash .big-play {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--neon); color: var(--neon-ink);
  box-shadow: 0 0 0 10px rgba(184, 255, 60, 0.18), 0 0 60px rgba(184, 255, 60, 0.6); transition: transform 0.2s; animation: ring 2s ease-out infinite;
}
.splash:hover .big-play { transform: scale(1.08); }
.splash .big-play .tri { width: 0; height: 0; margin-left: 8px; border-left: 34px solid currentColor; border-top: 21px solid transparent; border-bottom: 21px solid transparent; }
.splash .hint { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font: 800 14px/1 'Inter', sans-serif; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(184, 255, 60, 0.5), 0 0 60px rgba(184, 255, 60, 0.6); } 100% { box-shadow: 0 0 0 30px rgba(184, 255, 60, 0), 0 0 60px rgba(184, 255, 60, 0.6); } }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.player-bar h1 { margin: 0; font: 400 clamp(30px, 5vw, 44px)/1 var(--tf, 'Bungee'), sans-serif; color: #ffe9c7; text-shadow: 0 2px 0 #b8501c, 0 10px 30px rgba(255, 120, 40, 0.35); }
.player-bar .tools { display: flex; gap: 10px; flex-wrap: wrap; }
.details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 36px; }
.details h2 { font: 400 22px/1.2 'Bungee', sans-serif; margin: 0 0 12px; }
.details p { color: #d3d8cb; margin: 0 0 14px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.features div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.features h3 { margin: 0 0 4px; font-size: 16px; color: var(--hot); }
.features p { margin: 0; font-size: 14px; color: var(--muted); }
.side { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 18px; }
.heroes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.heroes li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--muted); }
.heroes b { color: var(--ink); min-width: 52px; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.shots img { border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- AI page ---------- */
.ai-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ai-steps .panel h2 { font: 400 20px/1.2 'Bungee', sans-serif; margin: 0 0 10px; }
.ai-steps .panel p { color: #d3d8cb; margin: 0 0 10px; }
code.url { display: inline-block; background: #000; border: 1px solid rgba(184, 255, 60, 0.35); color: var(--neon); padding: 8px 12px; border-radius: 10px; font-size: 15px; word-break: break-all; }
.page-head { padding: 56px 0 28px; }
.page-head h1 { margin: 0 0 10px; font: 400 clamp(32px, 6vw, 56px)/1.05 'Bungee', sans-serif; }
.page-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 620px; }

footer.foot { margin-top: 90px; border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.foot a { color: var(--muted); margin-left: 16px; }
footer.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .details { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav a.hide-sm { display: none; }
  .hero { min-height: 0; padding-top: 48vw; }
  .hero-media { inset: 0 0 auto 0; height: 78vw; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); mask-image: linear-gradient(0deg, transparent 0%, #000 35%); }
  .hero::before { background: linear-gradient(0deg, var(--bg) 18%, rgba(11, 13, 10, 0.75) 55%, rgba(11, 13, 10, 0.15) 100%); }
  .hero .wrap { padding-top: 0; padding-bottom: 40px; }
  .btn-play { width: 100%; }
  .library { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gcard-name { font-size: 19px; }
  .gcard-body .gcard-short { display: none; }
  .slot strong { font-size: 14px; }
  .slot p { display: none; }
  footer.foot a { margin: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- In-chat (MCP App) view ---------- */
body.in-chat { background: var(--bg); }
body.in-chat::after { display: none; }
.in-chat #app { padding: 14px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chat-head .logo { font-size: 18px; }
.chat-head .logo-mark { width: 30px; height: 30px; font-size: 18px; }
.feature-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; min-height: 300px; display: flex; align-items: flex-end; }
.feature-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 9, 7, 0.97) 10%, rgba(8, 9, 7, 0.55) 55%, rgba(8, 9, 7, 0.1)); }
.feature-card .inner { padding: 18px; width: 100%; }
.feature-card .game-title { font-size: 48px; margin: 10px 0 6px; }
.feature-card p { margin: 0 0 14px; color: #e2e6da; font-size: 15px; }
.feature-card .chips { margin-bottom: 16px; }
.chat-note { color: var(--muted); font-size: 13px; margin: 12px 2px 0; }
