:root {
  --cream: #fff8f0;
  --cream-deep: #fde7d2;
  --paper: #fffdf9;
  --ink: #3b2a22;
  --ink-soft: #6b5348;
  --line: rgba(59, 42, 34, 0.12);
  --terracotta: #c45c4a;
  --terracotta-deep: #a34838;
  --peach: #f4a574;
  --peach-soft: #f7c59f;
  --sky: #a8d5e5;
  --sage: #c5e1a5;
  --lilac: #e1bee7;
  --shadow: 0 18px 50px rgba(59, 42, 34, 0.12);
  --radius: 28px;
  --header: 72px;
  --max: 1120px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-game: "Fredoka", "Nunito Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.15rem);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--terracotta-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 80;
}

.skip:focus {
  left: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 248, 240, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
}

.brand-name span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--terracotta);
  color: #fff8f0;
  box-shadow: 0 10px 24px rgba(196, 92, 74, 0.28);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  color: #fff8f0;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn-facebook {
  background: #1877f2;
  color: #fff8f0;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.28);
}

.btn-facebook:hover {
  background: #0d65d9;
  color: #fff8f0;
}

.nav a.btn-primary,
.nav a.btn-facebook,
.nav a.btn-primary:hover,
.nav a.btn-facebook:hover,
.contact-band a.btn-primary,
.contact-band a.btn-facebook,
.contact-band a.btn-primary:hover,
.contact-band a.btn-facebook:hover {
  color: #fff8f0;
}

.announce {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
}

.announce .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.announce p {
  margin: 0;
  font-weight: 800;
  min-width: 0;
}

@media (min-width: 961px) {
  .announce-cta {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: min(calc(100vh - var(--header)), 52rem);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 248, 240, 0.94) 0%, rgba(255, 248, 240, 0.7) 36%, rgba(255, 248, 240, 0.12) 64%, rgba(255, 248, 240, 0) 80%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding: 64px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11ch;
  margin: 0 0 18px;
}

.lede {
  max-width: min(38ch, 100%);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.feature > *,
.about-grid > *,
.play-layout > * {
  min-width: 0;
}

.kicker {
  font-family: var(--font-game);
  font-weight: 600;
  color: var(--terracotta-deep);
  margin: 0 0 8px;
}

.game-title {
  width: min(420px, 100%);
  margin: 8px 0 16px;
}

.feature h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2vw, 3rem);
  margin: 0 0 12px;
}

.feature p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-soft);
}

a.chip-link {
  color: var(--ink);
  text-decoration: none;
}

a.chip-link:hover {
  color: var(--terracotta-deep);
  border-color: var(--peach);
}

.device {
  width: min(340px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  padding: 12px;
  background: #2b1d18;
  box-shadow: var(--shadow);
  position: relative;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #fde7d2 url("assets/boot-splash.jpg") center / cover no-repeat;
  position: relative;
}

.device-screen img,
.device-screen iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.device-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(59, 42, 34, 0.05), rgba(59, 42, 34, 0.28));
  text-decoration: none;
}

.device-play img {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 10px 18px rgba(59, 42, 34, 0.28));
}

.rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rule {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  min-height: 220px;
  box-shadow: 0 10px 30px rgba(59, 42, 34, 0.04);
}

.rule .swatch {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.rule h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.rule p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: linear-gradient(180deg, #fff, var(--cream-deep));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 20px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--ink-soft);
}

.pack {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pack figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 12px 14px;
  text-align: center;
}

.pack img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.pack figcaption {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-art {
  background: linear-gradient(180deg, #fff, var(--cream-deep));
  border-radius: 40px;
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  place-items: center;
}

.about-art img {
  width: min(360px, 100%);
}

.about-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2vw, 3rem);
  margin: 0 0 14px;
}

.about-grid p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.contact-band {
  background: #2b1d18;
  color: #fde7d2;
  border-radius: 36px;
  padding: 42px 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.contact-band h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  color: #fff8f0;
}

.contact-band p,
.contact-band a {
  color: #f7c59f;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 16px;
}

.site-footer a:hover {
  color: var(--ink);
}

.page-hero {
  padding: 56px 0 12px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 2vw, 3.4rem);
  margin: 0 0 10px;
}

.prose {
  max-width: 72ch;
  padding-bottom: 80px;
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.play-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(247, 197, 159, 0.45), transparent 40%),
    var(--cream);
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 28px 0 64px;
}

.play-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem);
  margin: 0 0 12px;
}

.play-copy p {
  color: var(--ink-soft);
  max-width: 42ch;
}

.play-device {
  width: min(420px, 100%);
}

.play-device .device {
  width: 100%;
}

.play-device iframe {
  background: #fde7d2;
}

.legal {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .feature,
  .about-grid,
  .play-layout,
  .rules,
  .stats {
    grid-template-columns: 1fr;
  }

  .pack {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-art {
    position: relative;
    height: 280px;
    object-position: 72% 48%;
    order: 2;
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero .wrap {
    padding: 32px 0 20px;
    order: 1;
  }

  .contact-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .announce .wrap {
    display: block;
    max-width: calc(100vw - 48px);
  }

  .announce p {
    max-width: 100%;
    margin-bottom: 12px;
  }

  .announce-cta {
    align-self: flex-start;
  }

  .feature .hero-actions,
  .play-page .hero-actions,
  .contact-band .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: rgba(255, 248, 240, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  body.nav-open .nav {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .play-layout {
    padding-top: 12px;
  }

  .play-device {
    width: min(100%, 420px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .pack {
    grid-template-columns: repeat(2, 1fr);
  }

  .play-page .site-header {
    position: static;
  }

  .play-copy {
    text-align: center;
    max-width: calc(100vw - 48px);
  }

  .play-copy h1 {
    font-size: 1.85rem;
  }

  .play-copy p {
    max-width: 100%;
    margin-inline: auto;
  }

  .play-copy .hero-actions {
    justify-content: center;
    align-items: center;
  }

  .play-device .device {
    width: min(100%, 420px);
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    padding: 8px;
  }
}

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

  .btn {
    transition: none;
  }
}
