/* Kanwar Arcade: site styles
   Palette: ink, cobalt, butter, pink, mint on a lavender-white page.
   One idea carries the look: flat colour blocks with hard offset shadows. */

:root {
  --ink: #0E0B2E;
  --ink-2: #1D1950;
  --cobalt: #2B2DDB;
  --butter: #FFD23F;
  --pink: #FF6FC4;
  --mint: #52F0B8;
  --cloud: #F4F2FF;
  --lilac: #E4E0FF;
  --muted: #4A4680;
  --on-ink-muted: #B6B1F2;

  --header-h: 64px;
  --sidebar-w: 272px;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg, canvas { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.cabinet :focus-visible,
.overlay :focus-visible { outline-color: var(--butter); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--butter);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 12px 12px;
}
.skip-link:focus { top: 0; }

/* ---------- Header and menu bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding-inline: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--ink);
  color: var(--cloud);
  border-bottom: 3px solid var(--butter);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font: 800 1.35rem/1 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand svg { width: 34px; height: 34px; flex: none; }

.menu {
  display: flex;
  gap: .25rem;
  margin-left: auto;
}
.menu a {
  padding: .5rem .95rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.menu a:hover { background: var(--ink-2); }
.menu a[aria-current="page"] { background: var(--butter); color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--cloud);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

/* ---------- Shell: sidebar + main ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 1.5rem 1rem 2rem;
  background: var(--lilac);
  border-right: 3px solid var(--ink);
}

.sidebar__title {
  margin: 0 .5rem .75rem;
  font: 800 1.15rem/1.2 var(--font-display);
}

.sidebar__site { display: none; margin-bottom: 1.5rem; }
.sidebar__site a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar__site a[aria-current="page"] { background: var(--butter); }

.library {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lib-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  border: 2px solid transparent;
  border-radius: 14px;
  text-decoration: none;
}
.lib-item:hover { background: var(--cloud); border-color: var(--ink); }
.lib-item[aria-current="page"] {
  background: var(--butter);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.lib-item__thumb {
  flex: none;
  width: 64px;
  height: 40px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 8px;
}
.lib-item__text { display: grid; min-width: 0; line-height: 1.25; }
.lib-item__name { font: 700 1.05rem/1.2 var(--font-display); }
.lib-item__best { font-size: .9rem; color: var(--muted); }
.lib-item[aria-current="page"] .lib-item__best { color: var(--ink); }

.sidebar__foot {
  margin: 1.75rem .5rem 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
  display: grid;
  gap: .6rem;
  font-size: .95rem;
  color: var(--muted);
}
.sidebar__foot a { color: var(--ink); font-weight: 600; }

.scrim { display: none; }

.main { min-width: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.45rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font: 700 1.05rem/1.2 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.btn--ghost {
  background: transparent;
  border-color: var(--cloud);
  color: var(--cloud);
  box-shadow: 4px 4px 0 var(--cloud);
}
.btn--ghost:hover { box-shadow: 5px 5px 0 var(--cloud); }
.btn--ghost:active { box-shadow: 1px 1px 0 var(--cloud); }

.btn--tool {
  padding: .4rem .9rem;
  border: 2px solid var(--cloud);
  background: var(--ink-2);
  color: var(--cloud);
  font: 600 .95rem/1.2 var(--font-body);
  box-shadow: none;
}
.btn--tool:hover { transform: none; box-shadow: none; background: var(--cobalt); }
.btn--tool:active { transform: none; box-shadow: none; }
.btn--tool[aria-pressed="true"] { background: var(--butter); border-color: var(--butter); color: var(--ink); }

/* ---------- Layout helpers ---------- */

.section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem); }
.container { max-width: 1080px; margin-inline: auto; }
.section__title { margin-bottom: 1.75rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

.page-head { padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.5rem) 0; }
.page-head__inner { max-width: 1000px; margin-inline: auto; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; }
.page-head--game { padding-top: 1.25rem; }
.page-head--game h1 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.page-head--game p { margin-top: .3rem; font-size: 1.05rem; }
.section--game { padding-top: 1.5rem; }
.page-head p { max-width: 58ch; margin-top: .85rem; color: var(--muted); font-size: 1.15rem; }

/* ---------- Hero ---------- */

.hero {
  background: var(--cobalt);
  color: var(--cloud);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
  max-width: 1240px;
  margin-inline: auto;
}
.hero h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: .12em;
}
.hero__line > span {
  display: block;
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
.hero__line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.hero__lede { max-width: 46ch; margin-bottom: 2rem; font-size: 1.2rem; color: #DAD7FF; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }

.hero__visual { position: relative; padding: 1rem 1rem 2.25rem; }
.screen {
  transform: rotate(-3deg);
  padding: 14px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 10px 10px 0 var(--pink);
}
.screen canvas { display: block; width: 100%; height: auto; border-radius: 12px; background: #1B1C9E; }
.hero__sticker {
  position: absolute;
  left: -.25rem;
  bottom: 0;
  width: clamp(84px, 11vw, 124px);
  height: auto;
  transform: rotate(10deg);
  filter: drop-shadow(5px 5px 0 var(--ink));
}

/* ---------- Game cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2.5rem;
}
.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 9px 9px 0 var(--accent, var(--ink));
}
.game-card__media { display: block; border-bottom: 3px solid var(--ink); }
.game-card__media img { display: block; width: 100%; height: auto; }
.game-card__body { display: grid; gap: .75rem; padding: 1.3rem 1.5rem 1.6rem; flex: 1; align-content: start; }
.game-card h3 { font-size: 1.9rem; }
.game-card h3 a { text-decoration: none; }
.game-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.game-card__controls { color: var(--muted); font-size: 1rem; }
.game-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .5rem; }
.best { font-weight: 600; color: var(--muted); }

/* ---------- Feature band ---------- */

.band { background: var(--butter); border-block: 3px solid var(--ink); }
.band__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.band__list h3 { margin-bottom: .45rem; font-size: 1.45rem; }
.band__list p { max-width: 34ch; }

/* ---------- Game page: cabinet ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 2.25rem;
  max-width: 1000px;
  margin-inline: auto;
  align-items: start;
}

.cabinet {
  justify-self: center;
  width: min(100%, max(300px, calc((100svh - 300px) * var(--ar, .667))));
  padding: 12px;
  background: var(--ink);
  color: var(--cloud);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 10px 10px 0 var(--accent, var(--pink));
}

.hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: .35rem .5rem;
  padding: .2rem .4rem .7rem;
}
.hud__item { display: flex; flex-direction: column; min-width: 0; }
.hud__label { font-size: .82rem; line-height: 1.2; color: var(--on-ink-muted); }
.hud__value {
  font: 800 1.15rem/1.3 var(--font-display);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pips { display: flex; align-items: center; gap: .3rem; min-height: 1.55rem; }
.pip { width: 14px; height: 14px; background: var(--butter); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pip--ball { background: var(--cloud); border-radius: 50%; clip-path: none; }

.cabinet__screen {
  position: relative;
  overflow: hidden;
  background: #0A0723;
  border-radius: 14px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.cabinet__screen canvas { display: block; width: 100%; height: auto; cursor: crosshair; }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1.5rem;
  background: rgba(14, 11, 46, .84);
  color: var(--cloud);
  text-align: center;
}
.overlay[hidden] { display: none; }
.overlay h2 { font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: -0.03em; }
.overlay p { max-width: 30ch; color: #DAD7FF; }

.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; padding: .85rem .2rem .2rem; }

.howto {
  padding: 1.5rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
}
.howto h2 { font-size: 1.5rem; }
.howto h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.keys { display: grid; gap: .8rem; margin: 1.1rem 0 0; }
.keys > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.keys dt { display: flex; flex-wrap: wrap; gap: .3rem; }
.keys dd { margin: 0; text-align: right; color: var(--muted); }
kbd {
  display: inline-block;
  min-width: 1.9rem;
  padding: .15rem .5rem;
  background: var(--cloud);
  border: 2px solid var(--ink);
  border-bottom-width: 4px;
  border-radius: 8px;
  font: 600 .9rem/1.3 var(--font-body);
  text-align: center;
}
.howto ul { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.howto li + li { margin-top: .35rem; }

.next-game { max-width: 1000px; margin: 3rem auto 0; }
.next-game h2 { margin-bottom: 1rem; font-size: 1.6rem; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: 1000px;
  margin-inline: auto;
  align-items: start;
}
.form {
  display: grid;
  gap: 1.1rem;
  padding: 1.75rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--pink);
}
.field { display: grid; gap: .35rem; }
.field[hidden] { display: none; }
.field label { font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .7rem .9rem;
  background: var(--cloud);
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: inherit;
  font: inherit;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { background: #FFF1F8; border-color: #B0005B; }
.field__error { min-height: 1.3em; font-size: .95rem; font-weight: 600; color: #9B0049; }
.form__notice { padding: .8rem 1rem; background: var(--lilac); border-radius: 12px; font-size: .97rem; color: var(--muted); }
.form__notice[hidden] { display: none; }
.form__status { min-height: 1.5em; font-weight: 600; }

.contact__side h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.contact__side ul { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.contact__side li { padding-left: 1rem; border-left: 4px solid var(--butter); }
.contact__side a { font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem) 1.75rem;
  background: var(--ink);
  color: var(--cloud);
  border-top: 3px solid var(--butter);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin-inline: auto;
}
.footer__brand { display: grid; gap: .8rem; align-content: start; }
.footer__brand p { max-width: 36ch; color: var(--on-ink-muted); }
.footer__col h2 { margin-bottom: .8rem; font-size: 1.05rem; }
.footer__list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.footer__list a { color: #D5D1FF; text-decoration: none; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #39346F;
  font-size: .95rem;
  color: var(--on-ink-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
  .shell { display: block; }
  .menu-toggle { display: inline-flex; }

  .sidebar {
    position: fixed;
    z-index: 45;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    height: auto;
    visibility: hidden;
    transform: translateX(-102%);
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .sidebar-open .sidebar {
    visibility: visible;
    transform: none;
    transition-delay: 0s;
    box-shadow: 8px 0 0 rgba(14, 11, 46, .25);
  }
  .sidebar-open .scrim {
    display: block;
    position: fixed;
    z-index: 44;
    inset: var(--header-h) 0 0 0;
    background: rgba(14, 11, 46, .55);
  }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 560px; }

  .stage { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 699px) {
  .menu { display: none; }
  .sidebar__site { display: block; }
}

@media (max-width: 479px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 1.25rem; }
  .btn { padding: .75rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__line > span { animation: none; }
  .sidebar { transition: none; }
  .btn { transition: none; }
}

/* ==========================================================================
   Light, motion and environment
   ========================================================================== */

/* Slow aurora behind the hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
  animation: aurora 18s ease-in-out infinite alternate;
}
.hero::before { top: -30vmax; left: -15vmax; background: radial-gradient(circle, rgba(82, 240, 184, .55), transparent 62%); }
.hero::after { bottom: -34vmax; right: -12vmax; background: radial-gradient(circle, rgba(255, 111, 196, .5), transparent 62%); animation-delay: -9s; }
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vmax, 4vmax, 0) scale(1.18); }
}

/* Twinkling pixels over the hero */
.hero__inner { position: relative; }
.hero__visual .screen { animation: screen-glow 5s ease-in-out infinite alternate; }
@keyframes screen-glow {
  from { box-shadow: 0 0 0 rgba(82, 240, 184, 0), 8px 8px 0 var(--ink); }
  to { box-shadow: 0 0 46px rgba(82, 240, 184, .45), 8px 8px 0 var(--ink); }
}
.hero__sticker { animation: bob 4.5s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

/* Pointer-following spotlight on hero and cards */
.hero::selection { background: var(--butter); }
.game-card { position: relative; overflow: hidden; }
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 60%);
  mix-blend-mode: soft-light;
}
.game-card:hover::after { opacity: 1; }

/* Shine sweep on card art */
.game-card__media { position: relative; overflow: hidden; }
.game-card__media::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
  pointer-events: none;
}
.game-card:hover .game-card__media::after { left: 130%; }
.game-card__media img { transition: transform .5s ease; }
.game-card:hover .game-card__media img { transform: scale(1.05); }

/* Cards pop in as they scroll into view */
.game-card.reveal { opacity: 0; transform: translateY(22px) scale(.98); }
.game-card.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease var(--d, 0s), transform .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0s);
}

/* Game cabinet: CRT power-on, soft scanlines and a breathing glow */
.cabinet { animation: cabinet-glow 6s ease-in-out infinite alternate; }
@keyframes cabinet-glow {
  from { filter: drop-shadow(0 0 0 rgba(82, 240, 184, 0)); }
  to { filter: drop-shadow(0 0 26px rgba(82, 240, 184, .28)); }
}
.cabinet__screen { animation: power-on .7s ease-out both; }
@keyframes power-on {
  0% { transform: scaleY(.02); filter: brightness(3); }
  55% { transform: scaleY(1); filter: brightness(1.6); }
  100% { transform: scaleY(1); filter: brightness(1); }
}
.cabinet__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, .1) 3px);
  mix-blend-mode: multiply;
  opacity: .55;
}
.overlay { z-index: 2; backdrop-filter: blur(3px); animation: overlay-in .35s ease both; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.cabinet:fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}
.cabinet:fullscreen .cabinet__screen { margin-inline: auto; width: min(100%, calc((100vh - 160px) * var(--ar, .667))); }

/* ----- Pages added with the 3D game and the SEO content ----- */
.poster {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 10px 10px 0 var(--accent, var(--mint));
  background: var(--ink);
}
.poster img { display: block; width: 100%; height: auto; }
.poster__cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--cloud);
  background: linear-gradient(to top, rgba(14, 11, 46, .8), rgba(14, 11, 46, .25) 60%, rgba(14, 11, 46, .5));
}
.poster__cta h2 { font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -0.03em; }
.poster__cta p { max-width: 44ch; color: #DAD7FF; }
.notice {
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  padding: .9rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--butter);
  font-weight: 600;
}
.tag {
  display: inline-block;
  margin-bottom: .4rem;
  padding: .15rem .6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
}
.answer { max-width: 1000px; margin: 2.5rem auto 0; }
.answer h2 { font-size: 1.5rem; }
.answer p { margin-top: .6rem; max-width: 70ch; color: var(--muted); }
.faq { max-width: 1000px; margin: 2rem auto 0; }
.faq h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.faq details {
  padding: .9rem 1.1rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
}
.faq details + details { margin-top: .7rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: .6rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero__visual .screen, .hero__sticker,
  .cabinet, .cabinet__screen, .overlay { animation: none; }
  .game-card.reveal { opacity: 1; transform: none; }
  .game-card__media::after, .game-card::after { display: none; }
  .game-card__media img { transition: none; }
}
