@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=IBM+Plex+Mono:wght@400;600&family=Oswald:wght@600;700&display=swap");

:root {
  --paper-white: #fffaf0;
  --porcelain: #f4f1e8;
  --blueprint: #dfe9ef;
  --ink-booth: #0d1722;
  --ink-soft: #203040;
  --rain-type: #63717d;
  --arcade-blue: #2068f5;
  --panel-mint: #2fcaa2;
  --pin-red: #e3454f;
  --score-yellow: #efc84a;
  --violet-stamp: #7b70ee;
  --grid-line: rgba(13, 23, 34, 0.13);
  --night-line: rgba(255, 250, 240, 0.16);
  --angle-shadow: 12px 18px 0 rgba(13, 23, 34, 0.09);
  --deep-shadow: 0 32px 80px rgba(13, 23, 34, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-booth);
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  background-color: var(--paper-white);
  background-image:
    linear-gradient(90deg, rgba(13, 23, 34, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 23, 34, .04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(32, 104, 245, .1) 0 18%, transparent 18% 52%, rgba(47, 202, 162, .11) 52% 71%, transparent 71%),
    linear-gradient(180deg, var(--paper-white), var(--blueprint));
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%;
}

body.panel-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.review-shell {
  width: min(1160px, calc(100% - 34px));
  margin: 0 auto;
}

.nav-paper {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink-booth);
  color: var(--paper-white);
  border-bottom: 4px solid var(--score-yellow);
  box-shadow: 0 12px 0 rgba(13, 23, 34, .08);
}

.nav-paper__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-joy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 700;
  text-transform: uppercase;
}

.brand-joy img {
  width: 44px;
  height: 44px;
  background: var(--paper-white);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}

.menu-rail {
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu-rail a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-left: 1px solid var(--night-line);
  color: rgba(255, 250, 240, .76);
  font-family: "IBM Plex Mono", monospace;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.menu-rail a:hover,
.menu-rail a:focus-visible {
  color: var(--ink-booth);
  background: var(--score-yellow);
  transform: translateY(-2px);
}

.burger-key {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--night-line);
  background: transparent;
  color: var(--paper-white);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 78% 100%, 0 100%);
}

.burger-key span,
.burger-key::before,
.burger-key::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.burger-key {
  flex-direction: column;
  gap: 5px;
}

.burger-key.is-open span { opacity: 0; }
.burger-key.is-open::before { transform: translateY(7px) rotate(45deg); }
.burger-key.is-open::after { transform: translateY(-7px) rotate(-45deg); }

.hero-console {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: clamp(24px, 4vw, 54px) 0;
}

.hero-console__panel {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
  background:
    linear-gradient(102deg, rgba(255,250,240,.98) 0 46%, rgba(255,250,240,.62) 46% 58%, rgba(13,23,34,.16) 58%),
    url("images/hero.png") center / cover no-repeat;
  border: 2px solid var(--ink-booth);
  box-shadow: var(--angle-shadow), var(--deep-shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), calc(100% - 58px) 100%, 0 100%);
}

.hero-console__panel::before {
  content: "PLAY REVIEW PANEL";
  position: absolute;
  right: -74px;
  top: 164px;
  z-index: 2;
  width: 330px;
  padding: 11px 0;
  transform: rotate(90deg);
  background: var(--ink-booth);
  color: var(--score-yellow);
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0;
}

.hero-console__panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(54%, 620px);
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--arcade-blue) 0 70px, var(--panel-mint) 70px 140px, var(--pin-red) 140px 210px, var(--score-yellow) 210px 280px);
}

.hero-review {
  position: relative;
  z-index: 1;
  max-width: 720px;
  align-self: center;
  padding: clamp(32px, 6vw, 78px);
}

.mono-ticket {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 11px;
  background: var(--ink-booth);
  color: var(--paper-white);
  font-family: "IBM Plex Mono", monospace;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.mono-ticket::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--panel-mint);
  box-shadow: 13px 0 0 var(--score-yellow), 26px 0 0 var(--pin-red);
}

.hero-review h1,
.policy-page h1,
.contact-brief h1,
.game-hero h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.4rem, 8.2vw, 7.5rem);
  line-height: .9;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-review h1 {
  max-width: 760px;
  text-shadow: 3px 3px 0 rgba(47, 202, 162, .24);
}

.hero-review p {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  background: rgba(255, 250, 240, .72);
  padding: 16px 18px;
  border-left: 6px solid var(--arcade-blue);
}

.hero-actions {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 12px;
  padding: 0 54px 64px 0;
  justify-items: stretch;
}

.review-button {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--ink-booth);
  padding: 0 24px;
  background: var(--paper-white);
  color: var(--ink-booth);
  font-weight: 700;
  box-shadow: 6px 6px 0 var(--ink-booth);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.review-button:hover,
.review-button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink-booth);
}

.review-button--blue {
  background: var(--arcade-blue);
  color: var(--paper-white);
}

.review-button--red {
  background: var(--pin-red);
  color: var(--paper-white);
}

.review-button--ghost {
  background: var(--porcelain);
  color: var(--ink-booth);
}

.section-ledger {
  padding: clamp(54px, 8vw, 92px) 0;
}

.split-ledger {
  display: grid;
  grid-template-columns: minmax(260px, .74fr) minmax(0, 1.26fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.section-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: .95;
  text-transform: uppercase;
}

.copy-column {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.78;
}

.copy-column strong {
  color: var(--ink-booth);
  background: linear-gradient(180deg, transparent 48%, rgba(239, 200, 74, .72) 48%);
  font-family: "Oswald", sans-serif;
  font-size: 1.25em;
}

.stat-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border: 2px solid var(--ink-booth);
  box-shadow: 8px 8px 0 rgba(32, 104, 245, .18);
}

.stat-proof__item {
  min-height: 122px;
  padding: 18px 16px;
  background: var(--porcelain);
  border-right: 1px solid var(--grid-line);
}

.stat-proof__item:nth-child(2) { background: #e7f3ef; }
.stat-proof__item:nth-child(3) { background: #eef0ff; }
.stat-proof__item:nth-child(4) { background: #fff2d0; border-right: 0; }

.stat-proof strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: .9;
}

.stat-proof span,
.plus-card span,
.game-meta,
.footer-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rain-type);
}

.plus-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.plus-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  grid-column: span 2;
  padding: 28px 24px 26px;
  background: var(--paper-white);
  border: 2px solid var(--ink-booth);
  box-shadow: 7px 7px 0 rgba(13, 23, 34, .1);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  transition: transform .22s ease, box-shadow .22s ease;
}

.plus-card:nth-child(4),
.plus-card:nth-child(5) {
  grid-column: span 3;
}

.plus-card:nth-child(1) { border-top-color: var(--panel-mint); }
.plus-card:nth-child(2) { border-top-color: var(--arcade-blue); }
.plus-card:nth-child(3) { border-top-color: var(--violet-stamp); }
.plus-card:nth-child(4) { border-top-color: var(--score-yellow); }
.plus-card:nth-child(5) { border-top-color: var(--pin-red); }
.plus-card:nth-child(6) { border-top-color: var(--panel-mint); }

.plus-card::before {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, currentColor 0 48%, transparent 48%);
  color: rgba(13, 23, 34, .12);
}

.plus-card:hover {
  transform: translate(-3px, -5px);
  box-shadow: 12px 14px 0 rgba(32, 104, 245, .16);
}

.plus-card h3,
.game-copy h3,
.contact-card h2,
.policy-block h2 {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-size: 1.58rem;
  line-height: 1.02;
  text-transform: uppercase;
}

.plus-card p,
.game-copy p,
.contact-card p,
.policy-block p,
.policy-block li {
  margin: 0;
  color: var(--rain-type);
  line-height: 1.7;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(18px, 4vw, 40px);
  background: linear-gradient(90deg, var(--ink-booth) 0 38%, var(--paper-white) 38%);
  border: 2px solid var(--ink-booth);
  box-shadow: var(--angle-shadow);
}

.game-art {
  overflow: hidden;
  background: var(--blueprint);
  border: 2px solid var(--paper-white);
  box-shadow: 8px 8px 0 rgba(255, 250, 240, .2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.game-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.game-copy {
  display: grid;
  gap: 18px;
}

.cta-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 28px;
  align-items: center;
  justify-items: start;
  padding: clamp(30px, 5vw, 52px);
  border: 2px solid var(--ink-booth);
  background: var(--porcelain);
  box-shadow: 9px 9px 0 rgba(13, 23, 34, .08);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, var(--arcade-blue), var(--panel-mint), var(--pin-red));
}

.cta-strip .mono-ticket,
.cta-strip .section-title,
.cta-strip p {
  grid-column: 1;
}

.cta-strip .review-button {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.cta-strip p {
  max-width: 760px;
  margin: 0;
  color: var(--rain-type);
  line-height: 1.75;
}

.site-footer {
  border-top: 4px solid var(--score-yellow);
  padding: 46px 0 28px;
  background:
    linear-gradient(90deg, rgba(32,104,245,.14), transparent 28%),
    var(--ink-booth);
  color: var(--paper-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.18fr .78fr .9fr;
  gap: 26px;
}

.age-disclaimer {
  padding: 22px;
  border: 1px solid var(--night-line);
  background: rgba(255, 250, 240, .06);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.age-disclaimer strong {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--score-yellow);
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.age-disclaimer p,
.site-footer p {
  margin: 0;
  color: rgba(255, 250, 240, .76);
  line-height: 1.65;
}

.footer-links,
.footer-help {
  display: grid;
  gap: 10px;
}

.footer-contact {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.footer-links a,
.footer-help a {
  color: rgba(255, 250, 240, .82);
  text-decoration: underline;
  text-decoration-color: rgba(47, 202, 162, .75);
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--night-line);
  text-align: center;
  color: rgba(255, 250, 240, .72);
}

.contact-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(24px, 5vw, 58px);
  padding: 70px 0;
  align-items: start;
}

.contact-brief p,
.game-hero p {
  color: var(--rain-type);
  line-height: 1.75;
  font-size: 1.08rem;
}

.contact-card,
.policy-block {
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 250, 240, .9);
  border: 2px solid var(--ink-booth);
  box-shadow: 8px 8px 0 rgba(13, 23, 34, .08);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.contact-note {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 18px;
  background: var(--blueprint);
  border-left: 8px solid var(--panel-mint);
}

.feedback-grid {
  display: grid;
  gap: 14px;
}

.feedback-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink-booth);
  font-weight: 700;
}

.feedback-grid input,
.feedback-grid textarea {
  width: 100%;
  border: 2px solid var(--ink-booth);
  background: var(--paper-white);
  padding: 14px 15px;
  color: var(--ink-booth);
  outline: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.feedback-grid textarea {
  resize: vertical;
  min-height: 140px;
}

.feedback-grid input:focus,
.feedback-grid textarea:focus {
  box-shadow: 5px 5px 0 rgba(32, 104, 245, .22);
  transform: translate(-2px, -2px);
}

.form-result {
  min-height: 24px;
  color: var(--arcade-blue);
  font-weight: 700;
}

.game-hero {
  padding: 58px 0 28px;
}

.game-frame {
  overflow: hidden;
  height: min(76vh, 760px);
  min-height: 520px;
  border: 2px solid var(--ink-booth);
  background: var(--ink-booth);
  box-shadow: var(--deep-shadow);
}

.game-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.policy-page {
  padding: 62px 0;
}

.policy-meta {
  margin: 16px 0 0;
  color: var(--rain-type);
  font-size: 1.06rem;
  line-height: 1.6;
}

.policy-page__grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.policy-block h3 {
  margin: 22px 0 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .92rem;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink-booth);
}

.policy-block p + p {
  margin-top: 12px;
}

.policy-block ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.modal-scrim,
.cookie-panel {
  position: fixed;
  z-index: 80;
}

.modal-scrim {
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(13, 23, 34, .76);
  backdrop-filter: blur(12px);
}

.modal-scrim.is-visible { display: grid; }

.age-card {
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 42px);
  background: var(--paper-white);
  border: 2px solid var(--ink-booth);
  box-shadow: 12px 12px 0 var(--score-yellow), 0 30px 90px rgba(0,0,0,.28);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.age-card h2 {
  margin: 0 0 14px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: .95;
  text-transform: uppercase;
}

.age-card p {
  color: var(--rain-type);
  line-height: 1.7;
}

.age-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.cookie-panel {
  right: 18px;
  bottom: 18px;
  display: none;
  width: min(460px, calc(100% - 36px));
  padding: 20px;
  background: var(--paper-white);
  border: 2px solid var(--ink-booth);
  box-shadow: 8px 8px 0 rgba(13, 23, 34, .16);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.cookie-panel.is-visible {
  display: block;
  animation: cookieRise .36s ease both;
}

.cookie-panel p {
  margin: 0 0 14px;
  color: var(--rain-type);
  line-height: 1.55;
}

@keyframes cookieRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-note {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-note.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(239, 200, 74, .92);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .burger-key { display: inline-flex; }

  .menu-rail {
    position: fixed;
    inset: 78px 17px auto;
    display: none;
    padding: 10px;
    border: 2px solid var(--ink-booth);
    background: var(--paper-white);
    color: var(--ink-booth);
    box-shadow: 8px 8px 0 rgba(13, 23, 34, .16);
  }

  .menu-rail.is-open { display: grid; }

  .menu-rail a {
    justify-content: flex-start;
    border-left: 0;
    color: var(--ink-booth);
  }

  .hero-console__panel,
  .split-ledger,
  .game-card,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-console__panel {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,250,240,.97) 0 48%, rgba(255,250,240,.55) 100%),
      url("images/hero.png") center / cover no-repeat;
  }

  .hero-console__panel::before {
    display: none;
  }

  .hero-actions {
    padding: 0 clamp(24px, 6vw, 54px) clamp(28px, 6vw, 54px);
    justify-items: start;
    grid-template-columns: 1fr 1fr;
  }

  .plus-grid,
  .stat-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plus-card,
  .plus-card:nth-child(4),
  .plus-card:nth-child(5) {
    grid-column: span 1;
  }

  .game-card {
    background: var(--paper-white);
  }

  .game-art {
    border-color: var(--ink-booth);
  }

  .cta-strip {
    grid-template-columns: 1fr;
  }

  .cta-strip .review-button {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .review-shell {
    width: min(100% - 24px, 1160px);
  }

  .nav-paper__inner { min-height: 68px; }

  .brand-joy { font-size: 1.02rem; }

  .brand-joy img {
    width: 36px;
    height: 36px;
  }

  .menu-rail { top: 68px; }

  .hero-console {
    min-height: auto;
    padding: 16px 0 28px;
  }

  .hero-review {
    padding: 28px 24px;
  }

  .hero-review p {
    padding: 14px;
  }

  .hero-actions,
  .plus-grid,
  .stat-proof,
  .age-card__actions {
    grid-template-columns: 1fr;
  }

  .stat-proof__item {
    border-right: 0;
    border-bottom: 1px solid var(--grid-line);
  }

  .stat-proof__item:last-child {
    border-bottom: 0;
  }

  .section-ledger {
    padding: 46px 0;
  }

  .game-frame {
    min-height: 430px;
    height: 70vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
