:root {
  --ink: #33251f;
  --wood: #5b3a29;
  --wood-dark: #3d271c;
  --cream: #fbedE2;
  --paper: #fffaf5;
  --green: #2e6b5e;
  --green-dark: #1f5147;
  --gold: #f0bd58;
  --line: #d9c7b9;
  --shadow: 0 18px 45px rgba(61, 39, 28, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
}
a { color: var(--green-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -5rem; z-index: 20; background: #fff; padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { background: var(--wood); color: #fff; }
.nav { width: min(1120px, calc(100% - 2rem)); margin: auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: #fff; font-weight: 900; font-size: 1.25rem; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: .25rem; }
.nav-links a { color: #fff; text-decoration: none; padding: .65rem .8rem; min-height: 48px; display: inline-flex; align-items: center; border-radius: 12px; }
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255,255,255,.12); }

.hero { background: var(--wood); color: #fff; padding: 3.5rem 0 4.5rem; overflow: hidden; }
.hero-grid { width: min(1120px, calc(100% - 2rem)); margin: auto; display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .04em; margin: 0 0 .3rem; }
h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2.6rem, 11vw, 5.5rem); margin-bottom: .6rem; }
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
.hero-copy { font-size: clamp(1.15rem, 3vw, 1.45rem); max-width: 620px; }
.store-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.play-link { display: inline-flex; min-height: 56px; border-radius: 12px; outline-offset: 4px; }
.play-link img { width: 194px; height: auto; object-fit: contain; }
.ios-note { border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: .65rem 1rem; min-height: 56px; display: inline-flex; align-items: center; }
.app-store-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 58px; padding: .45rem 1rem; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; background: #050505; color: #fff; text-decoration: none; line-height: 1.15; }
.app-store-link strong { display: block; font-size: 1.1rem; }
.app-store-link small { display: block; font-size: .7rem; }

.board { direction: rtl; display: grid; grid-template-columns: repeat(4, minmax(56px, 82px)); gap: .7rem; justify-content: center; transform: rotate(-2deg); }
.tile { aspect-ratio: 1; background: #f6d9a9; color: var(--wood-dark); border-radius: 14px; display: grid; place-items: center; font-size: clamp(1.7rem, 7vw, 2.7rem); font-weight: 900; box-shadow: inset 0 -5px rgba(91,58,41,.18), 0 10px 18px rgba(0,0,0,.18); }
.tile.green { background: #a9d0b9; }

.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper); }
.container { width: min(1040px, calc(100% - 2rem)); margin: auto; }
.lede { font-size: 1.2rem; max-width: 760px; }
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(61,39,28,.06); }
.alt .card { background: #fff; }
.card-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--green); color: #fff; font-size: 1.4rem; font-weight: 900; margin-bottom: 1rem; }
.feature-list { display: grid; gap: .9rem; padding: 0; list-style: none; margin-top: 2rem; }
.feature-list li { background: rgba(255,255,255,.62); border-inline-start: 5px solid var(--green); padding: .9rem 1rem; border-radius: 10px; }
.showcase { display: grid; gap: 1.5rem; margin-top: 2rem; }
.showcase figure { margin: 0; padding: 1rem; display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.showcase picture { display: block; width: min(100%, 320px); }
.showcase img { display: block; width: 100%; height: auto; aspect-ratio: 1284 / 2778; object-fit: contain; border-radius: 20px; }
.showcase figcaption { width: 100%; margin-top: .8rem; font-weight: 700; text-align: center; }

.page-main { min-height: 60vh; }
.page-hero { background: var(--wood); color: #fff; padding: 3rem 0; }
.page-hero h1 { font-size: clamp(2.15rem, 7vw, 3.8rem); }
.content { width: min(860px, calc(100% - 2rem)); margin: auto; padding: 3.5rem 0 5rem; }
.content section { scroll-margin-top: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.notice { background: #fff3c9; border: 2px solid #9b6b14; border-radius: 16px; padding: 1rem 1.2rem; color: #593b05; }
.steps { padding-inline-start: 1.4rem; }
.steps li { margin-bottom: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7rem 1.25rem; background: var(--green); color: #fff; text-decoration: none; border-radius: 12px; font-weight: 800; box-shadow: 0 5px 0 var(--green-dark); }
.button:hover { background: var(--green-dark); }
.button.secondary { background: #fff; color: var(--green-dark); border: 2px solid var(--green); box-shadow: none; }
.link-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 2rem 1rem; text-align: center; }
.link-card { width: min(640px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 6vw, 3rem); box-shadow: var(--shadow); }
.link-card .board { grid-template-columns: repeat(3, 58px); margin: 0 auto 2rem; width: max-content; }
.link-card .tile { font-size: 1.7rem; }
.link-card h1 { font-size: clamp(2rem, 8vw, 3.3rem); }

.site-footer { background: var(--wood-dark); color: #fff; padding: 2.5rem 0; }
.footer-inner { width: min(1040px, calc(100% - 2rem)); margin: auto; display: grid; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

@media (max-width: 640px) {
  .nav { align-items: flex-start; padding: .75rem 0; }
  .nav-links { justify-content: flex-end; }
  .nav-links a { padding: .55rem .6rem; }
  .hero { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
