:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #17222c;
  --muted: #465863;
  --line: #dee5e9;
  --accent: #a63f35;
  --wash: #f5f8f9;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { line-height: 1.1; letter-spacing: -.035em; }
p { color: var(--muted); }
a { color: var(--accent); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; top: .5rem; left: 1rem; padding: .5rem 1rem; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; min-height: 4.6rem; padding-block: .8rem; }
.wordmark { display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.18rem; font-weight: 780; letter-spacing: -.045em; }
.wordmark svg { color: var(--accent); flex: none; }
.main-nav, .footer-nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(.9rem, 2.5vw, 2rem); }
.main-nav a { display: block; padding: .45rem 0; font-size: .875rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .55em; text-decoration-thickness: 2px; }

.page { flex: 1 0 auto; padding-block: clamp(2.25rem, 6vw, 5.5rem); }
.home-page { display: grid; align-items: center; }
.feature { padding-block: clamp(1.6rem, 4vw, 3.25rem); border-block: 1px solid var(--line); }
.game-layout { display: grid; gap: clamp(1.45rem, 4vw, 3rem); align-items: center; }
.feature:has(.game-shot) { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.side-by-side:has(.game-shot) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.game-brief { min-width: 0; max-width: 39rem; }
.game-brief h1 { font-size: clamp(2.85rem, 5.5vw, 5.4rem); }
.feature:has(.game-shot) h1 { font-size: clamp(2.35rem, 4vw, 4.25rem); }
.game-brief h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.title-detail { display: block; margin-top: .25rem; font-size: .48em; letter-spacing: -.04em; }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; color: var(--accent); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; line-height: 1.35; }
.eyebrow span { width: .95rem; height: 2px; flex: none; background: var(--accent); }
.game-brief .developer { margin-top: .55rem; color: var(--ink); font-size: .92rem; font-weight: 650; }
.tagline { margin-top: 1.25rem; color: var(--accent); font-size: 1.08rem; font-weight: 750; letter-spacing: -.01em; }
.game-brief p + p { margin-top: .95rem; }
.game-points { display: flex; flex-wrap: wrap; gap: .5rem .85rem; margin: 1.15rem 0 0; padding: 0; list-style: none; color: var(--ink); font-size: .78rem; font-weight: 700; }
.game-points li { display: inline-flex; align-items: center; gap: .42rem; }
.game-points li::before { width: .38rem; height: .38rem; border-radius: 50%; background: var(--accent); content: ""; }
.match-note { border-left: 2px solid var(--line); padding-left: .85rem; font-size: .94rem; }
.match-note strong { display: block; color: var(--ink); }
.game-shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.feature .game-shot { aspect-ratio: 1200 / 860; object-fit: cover; background: var(--ink); }
.stacked .game-shot { max-width: 66rem; }
.store-link { display: inline-flex; gap: .7rem; align-items: center; justify-content: center; min-height: 2.75rem; margin-top: 1.35rem; padding: .55rem 1rem; border: 1px solid transparent; border-radius: 0; background: var(--accent); color: var(--paper); font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.store-link:hover { background: #87342c; }
.store-link:disabled { background: var(--line); color: var(--muted); cursor: default; }

.page-intro { margin-bottom: 2rem; }
.page-intro h1 { font-size: clamp(2.65rem, 6vw, 4.65rem); }
.page-intro h1 + p { max-width: 38rem; margin-top: .8rem; }
.other-page .game-layout { border-top: 1px solid var(--line); padding-block: clamp(1.8rem, 4vw, 3.4rem); }
.other-page .game-layout:last-child { padding-bottom: 0; }
.reading { max-width: 46rem; }
.answer { border-top: 1px solid var(--line); padding-block: 1.3rem; }
.answer:last-child { padding-bottom: 0; }
.answer h2 { margin-bottom: .4rem; font-size: 1.16rem; letter-spacing: -.015em; }

.contact-form { max-width: 37rem; }
.form-status { border-left: 2px solid var(--accent); padding: .65rem .85rem; background: var(--wash); color: var(--ink); }
fieldset { min-width: 0; margin: 1.1rem 0 0; padding: 0; border: 0; }
.field + .field { margin-top: .95rem; }
.field label { display: block; margin-bottom: .3rem; font-weight: 650; }
.field input, .field textarea { width: 100%; border: 1px solid #aebac2; border-radius: 0; padding: .65rem .75rem; color: var(--ink); font: inherit; background: var(--paper); }
.field textarea { display: block; resize: vertical; }
.field :disabled { background: var(--wash); opacity: 1; }

.site-footer { border-top: 1px solid var(--line); background: var(--wash); }
.footer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); gap: 1.5rem 3rem; padding-block: 1.65rem 2rem; }
.footer-brand { color: var(--ink); font-size: 1.06rem; font-weight: 760; }
.footer-intro > p + p { margin-top: .25rem; font-size: .9rem; }
.footer-nav { margin-top: .6rem; }
.footer-nav a { padding-block: .3rem; font-size: .9rem; font-weight: 650; }
.company-details h2 { margin-bottom: .55rem; font-size: 1rem; letter-spacing: 0; }
.company-details dl { display: grid; gap: .25rem; font-size: .84rem; }
.company-details dl div { display: grid; grid-template-columns: 8.3rem minmax(0, 1fr); gap: 0 .5rem; }
.company-details dt { font-weight: 650; }
.company-details dd { color: var(--muted); overflow-wrap: anywhere; }
.copyright { margin-top: .7rem; font-size: .82rem; }

@media (max-width: 55rem) {
  .feature:has(.game-shot), .side-by-side:has(.game-shot) { grid-template-columns: minmax(0, 1fr); }
  .feature:has(.game-shot) h1 { font-size: clamp(2.85rem, 8vw, 4.25rem); }
  .footer-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 24rem) {
  .company-details dl div { grid-template-columns: 1fr; }
}
