:root {
  --paper: #f7f3e8;
  --paper-deep: #eee8da;
  --surface: #fffdf7;
  --ink: #192322;
  --muted: #5f6b67;
  --line: #d7d4c8;
  --orange: #ee6335;
  --orange-dark: #bf3e1e;
  --blue: #2866b1;
  --blue-soft: #dce9f7;
  --yellow: #f2c94c;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 70px rgba(51, 55, 46, 0.11);
  --shell: min(1180px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; opacity: 0.22;
  background-image: radial-gradient(rgba(25, 35, 34, 0.22) 0.65px, transparent 0.65px);
  background-size: 8px 8px;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
  font-weight: 800; letter-spacing: -0.035em; line-height: 0.96;
}
h1 { max-width: 760px; margin-bottom: 28px; font-size: clamp(3rem, 4.4vw, 4.4rem); }
h2 { margin-bottom: 0; font-size: clamp(2.6rem, 4.2vw, 4.2rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
code { padding: 0.14em 0.42em; border: 1px solid rgba(25,35,34,.13); border-radius: 5px; background: rgba(255,255,255,.7); font-size: .88em; overflow-wrap: anywhere; }
.shell { width: var(--shell); margin-inline: 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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: 8px; color: #fff; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(25,35,34,.1); background: rgba(247,243,232,.9); backdrop-filter: blur(18px); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 38px; place-items: center; border: 2px solid var(--ink); border-radius: 10px 10px 10px 3px; color: var(--surface); background: var(--ink); font-family: "Arial Narrow", Impact, sans-serif; font-size: 1.05rem; letter-spacing: -.05em; line-height: 1; }
.site-navigation { display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); }
.site-navigation a { position: relative; color: var(--muted); font-size: .88rem; font-weight: 750; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.site-navigation a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 3px; border-radius: 2px; content: ""; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.site-navigation a:hover, .site-navigation a:focus-visible { color: var(--ink); }
.site-navigation a:hover::after, .site-navigation a:focus-visible::after { transform: scaleX(1); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); }
.menu-button > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; overflow: hidden; padding: clamp(72px,10vw,126px) 0 clamp(86px,11vw,142px); }
.hero::after { position: absolute; right: -8vw; bottom: -130px; width: 360px; height: 360px; border: 56px solid rgba(238,99,53,.12); border-radius: 50%; content: ""; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.72fr); align-items: center; gap: clamp(50px,8vw,110px); }
.hero-copy, .hero-game-media { position: relative; z-index: 1; }
.eyebrow { margin-bottom: 20px; color: var(--orange-dark); font-size: .78rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { color: var(--ink); text-wrap: balance; }
.hero-summary { max-width: 660px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1.1rem,2vw,1.36rem); line-height: 1.55; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 22px; border: 2px solid transparent; border-radius: 12px; font-size: .9rem; font-weight: 800; letter-spacing: .035em; line-height: 1.2; text-decoration: none; }
.button-primary { color: #fff; background: var(--orange); box-shadow: 0 10px 24px rgba(191,62,30,.2); transition: background 160ms ease, transform 160ms ease; }
.button-primary:hover, .button-primary:focus-visible { background: var(--orange-dark); transform: translateY(-2px); }

.hero-game-media { aspect-ratio:16 / 9; margin:0; overflow:hidden; border:1px solid rgba(25,35,34,.16); border-radius:var(--radius-lg); background:var(--ink); box-shadow:var(--shadow); }
.hero-game-media img { width:100%; height:100%; object-fit:cover; }

.section { padding: clamp(70px,8vw,104px) 0; }
.section-heading { margin-bottom: clamp(42px,5vw,64px); }
.apps-heading { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.72fr); align-items: end; gap: clamp(42px,8vw,112px); }
.apps-heading > p { margin: 0; color: var(--muted); font-size: 1.06rem; }

.apps-section { background: var(--paper-deep); }
.app-list { display: grid; gap: 18px; }
.app-card { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 28px; padding: clamp(26px,4vw,42px); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 10px 30px rgba(51,55,46,.05); }
.app-card > img { border-radius: 22px; box-shadow: 0 8px 24px rgba(25,35,34,.12); }
.app-copy { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(340px,1fr) auto; align-items: start; gap: 28px; }
.app-title-row h3 { margin-bottom: 10px; }
.app-copy > p { margin-bottom: 0; color: var(--muted); }
.app-copy ul { display: none; grid-column: 1 / -1; padding: 20px 0 0 20px; margin: 4px 0 0; border-top: 1px solid var(--line); color: var(--muted); columns: 2; column-gap: 48px; }
.app-copy li { margin-bottom: 8px; break-inside: avoid; }
.app-card:focus-within .app-copy ul, .app-card:hover .app-copy ul { display: block; }
.text-link { color: var(--orange-dark); font-size: .88rem; font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }

.contact-section { background: var(--surface); }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(34px,6vw,70px); border: 1px solid rgba(25,35,34,.13); border-radius: var(--radius-lg); background: var(--yellow); }
.contact-card h2 { margin-bottom: 16px; font-size: clamp(2.8rem,4.5vw,4.4rem); }
.contact-card p:last-child { margin-bottom: 0; color: #594d28; }
.contact-card .button { flex: 0 0 auto; color: #fff; background: var(--ink); box-shadow: none; }
.contact-card .button:hover, .contact-card .button:focus-visible { background: #2f3d3b; }

.site-footer { padding: 58px 0; color: #dfe7e3; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px 60px; }
.footer-brand { color: #fff; }
.footer-brand .brand-mark { border-color: var(--surface); color: var(--ink); background: var(--surface); }
.site-footer p { margin: 20px 0 0; color: #aebbb6; }
.site-footer nav { display: flex; align-items: center; gap: 24px; }
.site-footer nav a { color: #dfe7e3; font-size: .86rem; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(330px,.78fr); gap: 48px; }
  .app-copy { grid-template-columns: 1fr auto; }
  .app-copy > p { grid-column: 1 / -1; grid-row: 2; }
  .app-copy ul { grid-row: 3; }
  .text-link { grid-column: 2; grid-row: 1; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 680px); }
  .menu-button { display: block; }
  .site-navigation { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 36px rgba(25,35,34,.1); }
  .site-navigation.is-open { display: grid; }
  .site-navigation a { padding: 12px 8px; }
  .site-navigation a::after { display: none; }
  .hero-grid, .apps-heading { grid-template-columns: 1fr; }
  .hero { padding-top: 66px; }
  .hero-copy { max-width: 660px; }
  .apps-heading { align-items: start; gap: 30px; }
  .contact-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); --radius-lg: 24px; --radius-md: 18px; }
  html { scroll-padding-top: 80px; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 40px; height: 34px; }
  h1 { font-size: clamp(3rem,14vw,4rem); }
  h2 { font-size: clamp(2.5rem,12vw,3.5rem); }
  .hero { padding: 52px 0 76px; }
  .hero::after { display: none; }
  .hero-summary { font-size: 1.05rem; }
  .section { padding: 66px 0; }
  .section-heading { margin-bottom: 44px; }
  .app-card { grid-template-columns: 64px minmax(0,1fr); align-items: start; gap: 18px 16px; padding: 20px; }
  .app-card > img { grid-column: 1; grid-row: 1; width: 64px; height: 64px; border-radius: 15px; }
  .app-copy { display: contents; }
  .app-title-row { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; }
  .app-title-row h3 { margin: 0; font-size: 1.6rem; line-height: 1.05; overflow-wrap: anywhere; }
  .app-copy > p { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .app-copy ul { display: block; grid-column: 1 / -1; grid-row: 4; padding-top: 18px; margin: 0 0 0 20px; columns: 1; }
  .text-link { grid-column: 1 / -1; grid-row: 3; margin: 0; }
  .contact-card { padding: 30px 24px; }
  .contact-card .button { width: 100%; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .site-footer nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
