:root {
  --ink: #f2f4f0;
  --muted: #99a29e;
  --deep: #0b1010;
  --panel: #121919;
  --panel-2: #172020;
  --line: rgba(218, 235, 225, .12);
  --lime: #d3f36b;
  --orange: #ff8f52;
  --cyan: #72dcd4;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--deep);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.shell { width: var(--shell); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(11,16,16,.9); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.header-inner, .footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: .13em; }
.brand strong { color: var(--lime); font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid var(--lime); color: var(--lime); font-size: 16px; font-weight: 700; transform: rotate(-8deg); }
.site-nav { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
.nav-link { padding: 28px 0; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--ink); border-color: var(--lime); }
.hero { min-height: 390px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.hero-copy { padding: 78px 0; position: relative; z-index: 1; }
.eyebrow { color: var(--lime); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(46px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; margin-bottom: 24px; }
h1 span { color: var(--orange); }
.hero-text { color: var(--muted); max-width: 390px; font-size: 16px; }
.hero-orbit { width: 365px; height: 300px; position: relative; margin-right: 5%; }
.orbit { position: absolute; border: 1px solid rgba(211,243,107,.33); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 320px; height: 160px; top: 65px; left: 10px; }
.orbit-two { width: 235px; height: 235px; top: 26px; left: 76px; border-color: rgba(114,220,212,.27); transform: rotate(32deg); }
.orbit-dot { width: 13px; height: 13px; background: var(--orange); border-radius: 50%; position: absolute; top: 40px; right: 47px; box-shadow: 0 0 30px var(--orange); }
.hero-badge { position: absolute; top: 105px; left: 140px; display: grid; place-items: center; width: 94px; height: 94px; border-radius: 50%; background: var(--lime); color: var(--deep); font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; transform: rotate(-10deg); }
.arcade-section { padding: 62px 0 94px; }
.collection-block { margin-bottom: 58px; }
.compact-grid { grid-template-columns: repeat(5, 1fr); }
.compact-grid .card-description { display: none; }
.compact-grid .card-body { padding: 13px; }
.compact-grid .card-title { font-size: 15px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 25px; }
h2 { font-size: clamp(27px, 4vw, 40px); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 0; }
.result-count { color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; margin: 0 0 4px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 25px; }
.search-wrap, .select-wrap { position: relative; display: block; }
.search-wrap { flex: 1; }
.search-wrap svg { width: 17px; position: absolute; left: 16px; top: 15px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
input, select { height: 48px; width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); outline: none; }
input { padding: 0 16px 0 45px; }
select { min-width: 180px; padding: 0 37px 0 15px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(211,243,107,.1); }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.game-card:hover { transform: translateY(-5px); border-color: rgba(211,243,107,.55); background: var(--panel-2); }
.card-image { aspect-ratio: 1.55; background: #202b29; position: relative; overflow: hidden; }
.card-image.missing-thumbnail::before { content: "HUDHOST / COMING SOON"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--lime); font: 10px "DM Mono", monospace; letter-spacing: .12em; text-align: center; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card:hover .card-image img { transform: scale(1.05); }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(4,8,8,.42)); pointer-events: none; }
.card-body { padding: 16px; display: flex; flex: 1; flex-direction: column; }
.card-category { color: var(--lime); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.card-title { font-size: 18px; margin: 7px 0 7px; letter-spacing: -.025em; }
.card-description { color: var(--muted); font-size: 12px; line-height: 1.45; margin-bottom: 17px; }
.play-link, .back-link, .fullscreen-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 4px; background: var(--lime); color: var(--deep); cursor: pointer; font-weight: 600; font-size: 12px; min-height: 37px; }
.play-link { width: 100%; margin-top: auto; }
.play-link:hover, .fullscreen-button:hover { background: #e1ff8d; }
.unavailable-link { background: #28332d; color: var(--muted); cursor: default; }
.unavailable-link:hover { background: #28332d; }
.arrow { font-size: 16px; line-height: 0; }
.empty-state { padding: 70px 20px; border: 1px dashed var(--line); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 15px; border: 1px solid var(--lime); color: var(--lime); border-radius: 50%; }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 0; }
.about-strip { background: var(--lime); color: var(--deep); padding: 72px 0; }
.about-strip .eyebrow { color: #4a5f2d; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; }
.about-grid h2 { font-size: clamp(34px, 5vw, 54px); }
.about-grid > p { max-width: 450px; font-size: 16px; line-height: 1.7; }
.site-footer { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .06em; }
.footer-inner { min-height: 72px; }

.game-page { background: #080c0c; }
.game-main { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 80px; }
.game-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.back-link { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 0 16px; min-height: 38px; }
.back-link:hover { color: var(--ink); border-color: var(--lime); }
.game-kicker { color: var(--lime); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.game-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.game-heading h1 { font-size: clamp(34px, 5vw, 58px); margin: 0; }
.game-heading .game-category { color: var(--orange); font-family: "DM Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.game-shell { background: #030505; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.game-viewport { aspect-ratio: 16 / 9; min-height: 420px; position: relative; }
.game-viewport iframe { display: block; width: 100%; height: 100%; border: 0; background: #030505; }
.source-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 35%, #23342e, #050808 62%); text-align: center; }
.source-placeholder[hidden] { display: none; }
.placeholder-inner { max-width: 480px; }
.placeholder-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 20px; border: 1px solid var(--lime); border-radius: 50%; color: var(--lime); font-size: 22px; }
.source-placeholder h2 { font-size: 24px; margin-bottom: 10px; }
.source-placeholder p { color: var(--muted); font-size: 13px; margin: 0; }
.game-actions { display: flex; justify-content: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.fullscreen-button { padding: 0 15px; }
.game-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; padding-top: 34px; }
.info-block h2 { font-size: 17px; letter-spacing: 0; margin-bottom: 9px; }
.info-block p { color: var(--muted); font-size: 14px; margin: 0; }
.controls-value { color: var(--ink) !important; font-family: "DM Mono", monospace; font-size: 12px !important; }
.config-note { margin-top: 25px; padding: 13px 15px; border-left: 2px solid var(--orange); color: var(--muted); font-size: 12px; }
.config-note code { color: var(--orange); }

@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .compact-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-orbit { opacity: .75; margin-right: 0; transform: scale(.85); }
}
@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 560px); }
  .header-inner { min-height: 64px; }
  .site-nav { gap: 17px; }
  .nav-link { padding: 22px 0; }
  .hero { min-height: 440px; align-items: start; }
  .hero-copy { padding: 64px 0 30px; }
  .hero-orbit { position: absolute; bottom: -48px; right: -75px; transform: scale(.72); opacity: .72; }
  .arcade-section { padding-top: 45px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .toolbar { flex-direction: column; }
  select { min-width: 0; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .compact-grid { grid-template-columns: repeat(2, 1fr); }
  .card-body { padding: 12px; }
  .card-title { font-size: 15px; }
  .card-description { font-size: 11px; }
  .about-grid, .game-info { grid-template-columns: 1fr; gap: 28px; }
  .about-strip { padding: 52px 0; }
  .game-main { width: calc(100% - 28px); padding-top: 25px; }
  .game-heading { align-items: start; flex-direction: column; gap: 9px; }
  .game-viewport { aspect-ratio: 4 / 3; min-height: 250px; }
  .game-topline { margin-bottom: 34px; }
}
@media (max-width: 380px) {
  .brand { font-size: 12px; }
  .game-grid { grid-template-columns: 1fr; }
  .card-image { aspect-ratio: 1.8; }
}
