:root {
  --cream: #f3efe4;
  --moss: #3d5a45;
  --deep: #24362b;
  --copper: #b86a3a;
  --ink: #1e2a22;
  --mist: #e4ddd0;
  --gold: #e8b86d;
  --paper: #f8f4ea;
  --radius: 28px;
  --radius-lg: 32px;
  --shadow-out: 10px 16px 32px rgba(36, 54, 43, 0.09), -7px -8px 20px rgba(255, 255, 255, 0.62);
  --shadow-in: inset 2px 2px 5px rgba(255, 255, 255, 0.82), inset -3px -4px 8px rgba(36, 54, 43, 0.07);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: var(--moss);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(243, 239, 228, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 54, 43, 0.06);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand:hover {
  color: var(--moss);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: var(--mist);
  box-shadow: var(--shadow-in);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--deep);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 12px;
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a.is-current,
.site-nav a:hover {
  color: var(--copper);
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

#guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: var(--shadow-in);
  font-weight: 500;
}

.player-chip[hidden],
#guest-actions[hidden] {
  display: none !important;
}

#player-name {
  font-family: "Fraunces", serif;
  color: var(--deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-pill,
.btn-copper {
  background: linear-gradient(180deg, #c97a4a 0%, var(--copper) 100%);
  color: var(--cream);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 4px 10px 18px rgba(184, 106, 58, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-pill:hover,
.btn-copper:hover {
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--deep);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: none;
}

.btn-soft {
  background: var(--mist);
  color: var(--deep);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-in);
}

.btn-moss {
  background: var(--moss);
  color: var(--cream);
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 4px 10px 18px rgba(61, 90, 69, 0.25);
}

.btn-moss:hover {
  color: var(--cream);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(36, 54, 43, 0.92) 0%, rgba(36, 54, 43, 0.55) 38%, rgba(36, 54, 43, 0) 78%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
  max-width: 640px;
  color: var(--cream);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  color: var(--cream);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-copy p {
  color: rgba(243, 239, 228, 0.88);
  font-size: 1.08rem;
  max-width: 34em;
}

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

.hero-actions .btn-ghost {
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(243, 239, 228, 0.35);
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-intro {
  max-width: 560px;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  color: var(--copper);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px 14px 22px;
  box-shadow: var(--shadow-out), var(--shadow-in);
  display: flex;
  flex-direction: column;
}

.game-card .thumb {
  border-radius: 22px;
  overflow: hidden;
  height: 210px;
  margin-bottom: 16px;
}

.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.game-card p {
  color: #4a5a50;
  flex: 1;
  font-size: 0.98rem;
}

.game-card .btn-copper {
  align-self: flex-start;
  margin-top: 8px;
}

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

.feature-visual {
  position: relative;
}

.feature-visual img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-out);
}

.blob {
  position: absolute;
  pointer-events: none;
  filter: blur(2px);
  z-index: 0;
}

.blob-a {
  width: 220px;
  height: 180px;
  background: rgba(232, 184, 109, 0.28);
  border-radius: 62% 38% 48% 52%;
  top: -36px;
  left: -40px;
}

.blob-b {
  width: 160px;
  height: 160px;
  background: rgba(61, 90, 69, 0.16);
  border-radius: 40% 60% 55% 45%;
  bottom: -28px;
  right: -24px;
}

.feature-copy {
  position: relative;
  z-index: 1;
}

.how-layout {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}

.how-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-pill {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--paper);
  padding: 22px 24px;
  box-shadow: var(--shadow-out), var(--shadow-in);
}

.how-pill:nth-child(1) {
  border-radius: 40px 18px 34px 22px;
  margin-left: 0;
}

.how-pill:nth-child(2) {
  border-radius: 22px 40px 18px 36px;
  margin-left: 36px;
}

.how-pill:nth-child(3) {
  border-radius: 32px 20px 42px 16px;
  margin-left: 72px;
}

.how-num {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--copper);
  min-width: 2.2ch;
  line-height: 1;
}

.how-pill h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.how-pill p {
  margin: 0;
  color: #4a5a50;
  font-size: 0.95rem;
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bento-cell {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-out), var(--shadow-in);
}

.bento-cell svg {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}

.bento-cell h3 {
  font-size: 1.25rem;
}

.bento-cell p {
  margin: 0;
  color: #4a5a50;
}

.cta-band {
  position: relative;
  min-height: 420px;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 54, 43, 0.1) 0%, rgba(36, 54, 43, 0.82) 100%);
}

.cta-copy {
  position: relative;
  z-index: 1;
  padding: 48px;
  max-width: 560px;
  color: var(--cream);
}

.cta-copy h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta-copy p {
  color: rgba(243, 239, 228, 0.88);
}

.site-footer {
  background: var(--deep);
  color: rgba(243, 239, 228, 0.82);
  padding: 64px 0 28px;
  margin-top: 20px;
  border-radius: 40px 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.site-footer h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.site-footer a {
  color: rgba(243, 239, 228, 0.82);
  display: inline-block;
  margin-bottom: 8px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 184, 109, 0.18);
  font-size: 0.88rem;
}

.page-head {
  padding: 64px 0 24px;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

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

.prose h2 {
  font-size: 1.45rem;
  margin-top: 1.6em;
}

.prose ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding-bottom: 80px;
  align-items: start;
}

.contact-card,
.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-out), var(--shadow-in);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  background: var(--mist);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: var(--shadow-in);
  font-size: 1rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-thanks {
  display: none;
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-in);
}

.form-card.is-sent form {
  display: none;
}

.form-card.is-sent .form-thanks {
  display: block;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 42, 34, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.overlay.is-open {
  display: flex;
}

.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  width: min(440px, 100%);
  box-shadow: var(--shadow-out), var(--shadow-in);
  position: relative;
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--mist);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--deep);
}

.modal h2 {
  font-size: 1.55rem;
}

.modal .fine {
  font-size: 0.88rem;
  color: #4a5a50;
}

.modal .btn-copper {
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 18px;
  background: var(--mist);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-in);
}

.auth-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}

.auth-tab.is-on {
  background: var(--paper);
  box-shadow: 3px 4px 10px rgba(36, 54, 43, 0.08);
  color: var(--deep);
}

.auth-error {
  min-height: 1.3em;
  color: var(--copper);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.age-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  border-radius: 24px;
  padding: 16px 20px;
  box-shadow: var(--shadow-out);
}

.cookie-bar.is-open {
  display: flex;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .games-grid,
  .feature-split,
  .how-layout,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-visual img {
    height: 340px;
  }

  .how-pill:nth-child(2),
  .how-pill:nth-child(3) {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    margin-left: 0;
    order: 3;
  }

  .brand {
    order: 1;
  }

  .header-tools {
    margin-left: auto;
    order: 2;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 85;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 22px 24px;
    gap: 12px;
    display: none;
    box-shadow: 0 16px 30px rgba(36, 54, 43, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-tools {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .bento,
  .hero-actions,
  .cookie-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    min-height: 78vh;
    align-items: flex-end;
  }

  .hero-copy {
    padding: 48px 0 56px;
  }

  .cta-copy {
    padding: 28px;
  }

  .wrap {
    width: min(1120px, calc(100% - 28px));
  }

  .header-row {
    flex-wrap: wrap;
  }

  .btn-ghost.btn-sm {
    padding: 8px 12px;
    font-size: 0.88rem;
  }
}
