:root {
  --ink: #24202c;
  --night: #2a2633;
  --night-2: #34303f;
  --cream: #f3eee6;
  --paper: #fbf8f3;
  --sun: #ffd77a;
  --orange: #f59a3c;
  --ember: #b8402f;
  --plum: #4a1f3a;
  --blue: #3d7fe0;
  --green: #4ab05a;
  --muted: #6a6676;
  --line: #e2dbcf;
  --radius: 22px;
  --font: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* chunky outlined text, like the game's labels */
.chunk {
  font-weight: 800;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow:
    0 3px 0 var(--ink), 0 -2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 6px 0 rgba(36, 32, 44, 0.35);
}

/* ── header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  padding: 18px 0;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; border: 3px solid var(--ink); }
.brand span { font-size: 20px; }
.top nav { display: flex; gap: 6px; }
.top nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.top nav a:hover { background: #fff; }

/* ── hero */
.hero {
  position: relative; overflow: hidden;
  background: #f59a3c url("img/banner.jpg") center bottom / cover no-repeat;
  min-height: min(760px, 92vh);
  display: flex; align-items: flex-start;
  border-bottom: 6px solid var(--ink);
}
.hero-inner { padding-top: clamp(110px, 16vh, 170px); padding-bottom: 300px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(48px, 9vw, 104px); line-height: 1; letter-spacing: -1px; }
.hero .tag {
  margin: 18px auto 0; max-width: 620px;
  font-size: clamp(18px, 2.4vw, 23px); font-weight: 700; color: var(--ink);
}
.cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 16px;
  font: 800 18px/1 var(--font); text-decoration: none; color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.dark { background: var(--night); }
.btn.dark small { display: block; font-size: 12px; font-weight: 700; opacity: 0.75; margin-bottom: 4px; }
.btn.dark .stack { text-align: left; }
.btn.light { background: #fff; color: var(--ink); }
.btn img { width: 28px; height: 28px; }
.soon {
  display: inline-block; margin-left: 4px; padding: 3px 8px; border-radius: 8px;
  background: var(--sun); color: var(--ink); font-size: 12px; vertical-align: middle;
}

/* ── sections */
section { padding: 88px 0; }
h2 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.5px; }

/* full-bleed colour bands, one per part of the game */
.band { position: relative; overflow: hidden; border-bottom: 6px solid var(--ink); padding: 96px 0; }
.band.field {
  background:
    radial-gradient(ellipse 260px 90px at 12% 18%, rgba(255,255,255,0.18), transparent 70%),
    radial-gradient(ellipse 320px 110px at 88% 72%, rgba(255,255,255,0.16), transparent 70%),
    radial-gradient(ellipse 200px 70px at 70% 10%, rgba(255,255,255,0.14), transparent 70%),
    #8fd36a;
}
.band.dusk { background: linear-gradient(180deg, #6b2b45 0%, #b8402f 70%, #d9653a 100%); }
.band.wood { background: #e9c48f; }
.band.night { background: #2a2633; }

.row { display: grid; grid-template-columns: 320px 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.row.flip { grid-template-columns: 1fr 320px; }
.row.flip > :first-child { order: 2; }

.copy { max-width: 560px; }
.copy p { margin: 0 0 16px; font-size: 19px; font-weight: 600; color: var(--ink); }
.dusk .copy p, .night .copy p { color: #f6e9dc; }
.copy .rule {
  margin-top: 26px; padding: 16px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.55); border: 3px solid var(--ink); font-size: 17px;
}

/* iPhone mockup (Pro-style: titanium band, Dynamic Island, real 1206:2622 screen) */
.iphone {
  --w: 320px; --btn: #4b4a47;
  position: relative; margin: 0; width: var(--w); max-width: 100%; justify-self: center;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(140deg, #9a9893 0%, #4a4946 16%, #6d6b67 48%, #383735 82%, #8f8d88 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.4),
    inset 0 0 0 4px #161616,
    0 40px 70px -20px rgba(20, 18, 26, 0.55),
    0 14px 26px rgba(20, 18, 26, 0.25);
}
.iphone::after, .iphone .btns::before, .iphone .btns::after {
  content: ""; position: absolute; width: 3px; background: var(--btn);
}
.iphone::after { right: -3px; top: 27%; height: 13%; border-radius: 0 3px 3px 0; }
.iphone .btns::before { left: -3px; top: 16%; height: 4.5%; border-radius: 3px 0 0 3px; }
.iphone .btns::after {
  left: -3px; top: 24%; height: 8%; border-radius: 3px 0 0 3px;
  box-shadow: 0 calc(var(--w) * 0.22) 0 var(--btn);
}
.iphone .screen {
  position: relative; overflow: hidden; aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.142);
  background: #24202c; box-shadow: 0 0 0 3px #050505;
  display: flex; align-items: center;
}
.iphone .screen img { width: 100%; height: auto; display: block; }
.iphone .sb {
  position: absolute; inset: 0 0 auto 0; height: calc(var(--w) * 0.155); z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--w) * 0.085) 0 calc(var(--w) * 0.1);
  color: #fff; font: 600 calc(var(--w) * 0.048)/1 -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}
.iphone .island {
  position: absolute; left: 50%; top: calc(var(--w) * 0.032); transform: translateX(-50%);
  width: 31%; height: calc(var(--w) * 0.09); border-radius: 999px; background: #000;
}
.iphone .sys { display: flex; align-items: center; gap: calc(var(--w) * 0.016); }
.iphone .sys svg { height: calc(var(--w) * 0.034); width: auto; fill: #fff; }
.iphone .bat {
  position: relative; display: block; box-sizing: border-box;
  width: calc(var(--w) * 0.076); height: calc(var(--w) * 0.036);
  border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 4px; padding: 1.5px;
}
.iphone .bat i { display: block; height: 100%; width: 78%; background: #fff; border-radius: 2px; }
.iphone .bat::after {
  content: ""; position: absolute; right: -4px; top: 32%; height: 36%; width: 2px;
  background: rgba(255, 255, 255, 0.5); border-radius: 0 2px 2px 0;
}
.iphone .home {
  position: absolute; left: 50%; bottom: calc(var(--w) * 0.024); transform: translateX(-50%);
  width: 36%; height: calc(var(--w) * 0.015); min-height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.9);
}
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(4deg); }

.pair { position: relative; height: 790px; }
.pair .phone { position: absolute; --w: 290px; }
.pair .phone:first-child { right: 0; top: 0; z-index: 2; }
.pair .phone.back { left: -170px; top: 90px; }

.extras { margin: 8px 0 0; }
.extras dt { font-size: 21px; font-weight: 800; color: var(--sun); }
.extras dd { margin: 4px 0 20px; font-size: 17px; color: #d9d3e3; }

/* ages: one road running through five skies */
.eras { padding: 90px 0 0; background: var(--paper); border-bottom: 6px solid var(--ink); }
.eras .wrap { text-align: center; margin-bottom: 40px; }
.eras .wrap p { margin: 0; font-size: 19px; font-weight: 600; color: var(--muted); }
.pano { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 6px solid var(--ink); }
.era {
  position: relative; height: 430px; padding-top: 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.era::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 92px;
  background: #7a5236; border-top: 5px solid var(--ink);
}
.era h3 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; }
.era span { margin-top: 6px; font-weight: 700; font-size: 15px; color: rgba(36, 32, 44, 0.75); }
.era img { position: absolute; bottom: 64px; width: min(250px, 88%); z-index: 1; }
.era:nth-child(1) { background: linear-gradient(180deg, #f4d9a8, #c9a87a); }
.era:nth-child(2) { background: linear-gradient(180deg, #d6f2b8, #8fd36a); }
.era:nth-child(3) { background: linear-gradient(180deg, #cfd2fb, #8f95e6); }
.era:nth-child(4) { background: linear-gradient(180deg, #f1d2ad, #c99a6a); }
.era:nth-child(5) { background: linear-gradient(180deg, #d6e4ee, #9ab4c8); }
.era + .era { box-shadow: inset 3px 0 0 rgba(36, 32, 44, 0.18); }
.era::after { z-index: 0; }

/* fair play */
.fair { background: var(--paper); }
.fair h2 { text-align: center; margin-bottom: 48px; }
.vows {
  list-style: none; margin: 0 auto; padding: 0; max-width: 980px; counter-reset: vow;
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px;
}
.vows li { position: relative; padding-left: 70px; font-size: 18px; color: var(--muted); }
.vows li::before {
  counter-increment: vow; content: counter(vow);
  position: absolute; left: 0; top: -4px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font: 800 24px/1 var(--font); color: #fff;
  background: var(--orange); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.vows b { display: block; font-size: 22px; color: var(--ink); margin-bottom: 2px; }

/* closing call */
.closing { background: var(--night) url("img/banner.jpg") center 82% / cover no-repeat; text-align: center; padding: 120px 0; position: relative; }
.closing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 38, 51, 0.82), rgba(42, 38, 51, 0.35)); }
.closing .wrap { position: relative; }
.closing h2 { color: #fff; }
.closing p { color: #f3eee6; font-size: 18px; margin: 0 0 26px; }

/* footer */
footer { background: var(--ink); color: #c9c3d6; padding: 34px 0; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* text pages (privacy, support) */
.page-head { background: var(--orange); border-bottom: 6px solid var(--ink); padding: 120px 0 44px; }
.page-head h1 { margin: 0; font-size: clamp(36px, 6vw, 60px); line-height: 1.05; }
.page-head p { margin: 10px 0 0; font-weight: 700; }
.doc { padding: 56px 0 90px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 17px; }
.doc .lang { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: var(--night); color: #fff; margin-bottom: 6px; }
.doc hr { border: 0; border-top: 3px dashed var(--line); margin: 56px 0; }
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }
.faq summary { font-weight: 800; cursor: pointer; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.mailbox { background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px; margin: 20px 0 30px; }
.mailbox a { font-weight: 800; font-size: 19px; word-break: break-all; }

@media (max-width: 860px) {
  .top nav a:not(.keep) { display: none; }
  .hero { background-size: auto 62%; background-color: #f8b85a; }
  .hero-inner { padding-bottom: 260px; }
  section, .band { padding: 64px 0; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 44px; }
  .row.flip > :first-child { order: 0; }
  .copy { max-width: none; }
  .iphone { --w: 270px; }
  .pair { height: 640px; max-width: 360px; width: 100%; justify-self: center; }
  .pair .phone { --w: 230px; }
  .pair .phone.back { left: 0; top: 80px; }
  .eras { padding-top: 64px; }
  .pano { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64vw; overflow-x: auto; scroll-snap-type: x mandatory; }
  .era { scroll-snap-align: center; height: 380px; }
  .vows { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
