:root {
  --bg: #020603;
  --panel: #061008;
  --panel-2: #09150b;
  --ink: #eaffea;
  --muted: #89a58e;
  --line: rgba(92, 255, 105, .22);
  --line-strong: rgba(92, 255, 105, .48);
  --acid: #58ff66;
  --acid-soft: #b7ffb9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .13;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(74, 255, 86, .11) 4px);
  mix-blend-mode: screen;
}
main { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  width: min(1220px, calc(100% - 40px));
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--acid-soft); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand-logo { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line-strong); border-radius: 3px; box-shadow: 0 0 24px rgba(54, 255, 70, .14); }
.brand-logo-compact { width: 38px; height: 38px; }
nav { display: flex; gap: 32px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
nav a, footer > a { transition: color .2s ease, text-shadow .2s ease; }
nav a:hover, footer > a:hover { color: var(--acid); text-shadow: 0 0 14px rgba(88, 255, 102, .55); }

.hero {
  width: min(1220px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 64px;
  position: relative;
}
.hero::before, .games-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(85, 255, 100, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(85, 255, 100, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}
.hero-copy { position: relative; z-index: 2; padding: 95px 0 110px; }
.eyebrow { margin: 0 0 24px; color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-size: 10px; font-weight: 800; display: flex; align-items: center; gap: 11px; }
.eyebrow span { width: 27px; height: 1px; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
h1 { margin-bottom: 30px; max-width: 690px; font-size: clamp(52px, 6.2vw, 92px); line-height: .96; letter-spacing: -.068em; font-weight: 900; }
h1 em { display: inline-block; margin-top: 8px; color: var(--acid); font-style: normal; text-shadow: 0 0 22px rgba(69, 255, 83, .22); }
.hero-lede { max-width: 620px; margin-bottom: 40px; color: #a5bca8; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.75; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 34px; padding: 17px 21px 17px 23px; border: 1px solid var(--acid); background: var(--acid); color: #011804; border-radius: 2px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 25px rgba(88, 255, 102, .13); transition: transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 0 34px rgba(88, 255, 102, .32); }

.hero-art { position: relative; z-index: 2; }
.terminal-frame { position: relative; padding: 34px 15px 15px; border: 1px solid var(--line-strong); border-radius: 7px; background: #010302; box-shadow: 0 0 70px rgba(52, 255, 68, .09), inset 0 0 35px rgba(60, 255, 74, .04); }
.terminal-frame::before { content: "●  ●  ●"; position: absolute; top: 11px; left: 15px; color: var(--acid); font-size: 8px; letter-spacing: 5px; opacity: .7; }
.terminal-frame::after { content: ""; position: absolute; inset: 34px 15px 15px; border-radius: 4px; box-shadow: inset 0 0 40px #000; pointer-events: none; }
.terminal-label { position: absolute; top: 10px; right: 15px; color: #5bd768; font-size: 8px; letter-spacing: .16em; }
.terminal-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }

.games-section { position: relative; padding: 115px max(20px, calc((100% - 1220px) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 20%, rgba(51, 255, 68, .07), transparent 42%), #030805; }
.games-section > * { position: relative; z-index: 2; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 45px; margin-bottom: 54px; }
.section-heading h2, .about-section h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p { max-width: 420px; margin-bottom: 5px; color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.7; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.game-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: rgba(6, 16, 8, .94); box-shadow: 0 28px 70px rgba(0, 0, 0, .35); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.game-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 36px rgba(66, 255, 80, .07); }
.card-art { height: 390px; padding: 33px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #020403, #081309); border-bottom: 1px solid var(--line); }
.card-art::before { content: ""; position: absolute; inset: 0; opacity: .26; background-image: linear-gradient(rgba(84,255,98,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(84,255,98,.07) 1px, transparent 1px); background-size: 28px 28px; }
.card-art img { position: relative; z-index: 2; height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 22px 35px rgba(0,0,0,.55)); transition: transform .3s ease; }
.game-card:hover .card-art img { transform: scale(1.025); }
.quiz-card .card-art img { image-rendering: auto; }
.card-body { padding: 32px 34px 35px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tag-row span { padding: 6px 9px; border: 1px solid rgba(87, 255, 101, .2); border-radius: 2px; background: rgba(87, 255, 101, .055); color: #9de9a4; font-size: 8px; font-weight: 800; line-height: 1.25; letter-spacing: .07em; text-transform: uppercase; }
.card-body h3 { margin-bottom: 15px; color: var(--ink); font-size: 31px; letter-spacing: -.045em; }
.card-body > p { min-height: 112px; margin-bottom: 28px; color: #9cb0a0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.7; }
.card-links { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.text-link { color: var(--acid-soft); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; display: flex; gap: 12px; }
.text-link:hover { color: var(--acid); text-shadow: 0 0 12px rgba(88,255,102,.4); }
.muted-link { color: #718577; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; text-transform: uppercase; letter-spacing: .08em; }

.about-section { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 92px; }
.about-visual { position: relative; padding: 13px; border: 1px solid var(--line); background: var(--panel); }
.about-visual::after { content: ""; position: absolute; inset: 13px; box-shadow: inset 0 0 55px #000; pointer-events: none; }
.about-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-visual span { position: absolute; z-index: 2; left: 28px; bottom: 28px; padding: 7px 9px; background: rgba(0,5,1,.76); color: var(--acid); font-size: 8px; letter-spacing: .13em; }
.about-copy h2 { margin-bottom: 30px; color: var(--acid-soft); }
.about-copy > p:not(.eyebrow) { max-width: 620px; color: #9eb2a2; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.78; }
.contact-card { margin-top: 34px; max-width: 620px; padding: 21px 23px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; transition: transform .2s ease, border-color .2s ease; }
.contact-card:hover { border-color: var(--acid); transform: translateY(-2px); }
.contact-card > span:first-child { display: flex; flex-direction: column; gap: 7px; color: var(--acid-soft); font-size: 13px; }
.contact-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 8px; }
footer { width: min(1220px, calc(100% - 40px)); margin: 0 auto; min-height: 125px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.footer-brand { color: var(--acid-soft); }

.subpage-header { border-bottom-color: var(--line); }
.game-hero { width: min(1220px, calc(100% - 40px)); min-height: 650px; margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 75px; position: relative; }
.game-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(85,255,99,.08), transparent 32%); pointer-events: none; }
.game-hero > * { position: relative; z-index: 2; }
.game-hero h1, .policy-page h1 { font-size: clamp(52px, 7vw, 88px); }
.game-hero-art { justify-self: center; width: min(100%, 380px); padding: 12px; border: 1px solid var(--line-strong); background: #020503; box-shadow: 0 0 55px rgba(69,255,83,.08); }
.game-hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature-section { padding: 105px max(20px, calc((100% - 1220px) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #040a05; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.feature-section h2 { margin: 0; color: var(--acid-soft); font-size: clamp(40px, 5vw, 62px); line-height: 1.03; letter-spacing: -.05em; }
.feature-list article { padding: 27px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 45px 1fr; column-gap: 20px; }
.feature-list article:first-child { border-top: 1px solid var(--line); }
.feature-list b { color: var(--acid); font-size: 10px; letter-spacing: .12em; }
.feature-list h3 { margin: 0 0 8px; font-size: 21px; }
.feature-list p { grid-column: 2; margin: 0; color: #91a696; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.65; }
.page-actions { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0; display: flex; gap: 14px; justify-content: center; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; padding: 16px 22px; border: 1px solid var(--line); border-radius: 2px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.outline-button:hover { border-color: var(--acid); color: var(--acid); }
.policy-page { width: min(850px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 120px; }
.policy-page h1 { margin-bottom: 22px; color: var(--acid-soft); }
.policy-date { margin-bottom: 52px; color: var(--muted); }
.policy-page > p { color: #a0b3a4; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.78; }
.policy-page h2 { margin: 48px 0 12px; color: var(--ink); font-size: 24px; letter-spacing: -.025em; }
.policy-page a { color: var(--acid); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 0; padding-bottom: 80px; }
  .hero-copy { padding: 90px 0 45px; }
  .hero-art { max-width: 700px; }
  .game-grid, .about-section { grid-template-columns: 1fr; }
  .about-section { gap: 55px; }
  .about-visual { max-width: 540px; }
  .section-heading, footer { align-items: flex-start; flex-direction: column; }
  .game-hero { grid-template-columns: 1fr 330px; gap: 35px; }
  .feature-section { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 680px) {
  .site-header { height: 74px; }
  .brand { font-size: 10px; }
  .brand-logo-compact { width: 32px; height: 32px; }
  .site-header nav { gap: 15px; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero, .site-header, .about-section, footer, .game-hero, .page-actions { width: min(100% - 28px, 1220px); }
  h1 { font-size: clamp(44px, 15vw, 67px); }
  .hero-lede { font-size: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .games-section { padding-left: 14px; padding-right: 14px; }
  .card-art { height: 315px; padding: 24px; }
  .card-body { padding: 27px 23px 29px; }
  .card-body > p { min-height: 0; }
  .about-section { padding: 85px 0; }
  .contact-card > span:first-child { font-size: 10px; }
  .game-hero { grid-template-columns: 1fr; padding: 80px 0; }
  .game-hero-art { width: 250px; justify-self: start; }
  .page-actions { flex-direction: column; }
  .page-actions a { width: 100%; }
  footer { padding: 35px 0; }
}

@media (max-width: 460px) {
  .site-header nav a:not(:last-child) { display: none; }
  .terminal-label { display: none; }
  .terminal-frame { padding: 30px 8px 8px; }
  .terminal-frame::after { inset: 30px 8px 8px; }
  .games-section { padding-top: 86px; padding-bottom: 86px; }
  .card-art { height: 270px; }
}
