:root {
  --bg: #f3e6d0;
  --bg-nav: #3d2b1f;
  --bg-elevated: #fff8ec;
  --bg-features: #e8d5b5;
  --card-about: #f2e6d0;
  --card-feature: #f7efdf;
  --card-contact: #e8d5b5;
  --card-feature-border: #2c18101a;
  --leather: #3c2a1e;
  --cream: #f8f1e3;
  --text: #2c1810;
  --text-muted: #6b5344;
  --accent: #b5522a;
  --footer: #2c1810;
  --footer-muted: #e8d5b5;
  --copyright: #bf7832;
  --border: rgba(44, 24, 16, 0.12);
  --radius: 4px;
  --pad-x: clamp(1.25rem, 6.5vw, 6.25rem);
  --pad-y: clamp(4rem, 8vw, 7rem);
  --content-max: 77.5rem;
  --logo-h: 3.25rem;
  --header-h: 4.75rem;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: "Newsreader", "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--cream);
}

.skip-link:focus {
  top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  border: 0;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--accent);
  color: var(--cream);
}

.btn-primary:hover {
  background: #9a4523;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(44, 24, 16, 0.45);
}

@media (min-width: 801px) {
  .nav-backdrop {
    display: none !important;
  }
}

.header-inner,
.footer-inner,
.section-inner,
.legal-page {
  width: min(var(--content-max), calc(100% - 2 * var(--pad-x)));
  margin-inline: auto;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.brand img,
.footer-brand img {
  height: var(--logo-h);
  width: auto;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0.35rem 0;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--cream);
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--bg-features);
}

.nav-links a.is-active,
.nav-links a.is-active:hover,
.nav-links a.is-active:focus-visible {
  color: var(--accent);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(47.5rem, calc(100svh - var(--header-h)));
  background: var(--bg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-right: var(--pad-x);
  padding-left: max(var(--pad-x), calc((100vw - var(--content-max)) / 2));
}

.eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lede,
.about .section-header p,
.game-copy > p,
.contact-lead {
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.7;
}

.hero-visual {
  min-height: 22rem;
  overflow: hidden;
}

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

.ticker {
  overflow: hidden;
  background: var(--leather);
  color: var(--cream);
  padding: 1rem 0;
}

.ticker-track {
  display: block;
  width: 100%;
}

.ticker p {
  margin: 0;
  padding: 0 var(--pad-x);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}

.about,
.game,
.features,
.contact {
  padding-block: var(--pad-y);
}

.about {
  background: var(--leather);
  color: var(--cream);
}

.section-header {
  text-align: center;
}

.section-header h2,
.game-copy h2 {
  font-size: clamp(2.125rem, 4vw, 3.625rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about .section-header {
  display: grid;
  gap: 1rem;
}

.about .section-header p {
  color: #e8d5b5;
  max-width: 52rem;
  margin-inline: auto;
}

.pillar-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 4rem;
}

.card {
  color: var(--text);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.pillar-grid .card {
  background: var(--card-about);
  border-radius: 12px;
}

.feature-grid .card {
  background: var(--card-feature);
  border: 1px solid var(--card-feature-border);
  border-radius: 4px;
}

.card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(181, 82, 42, 0.13);
  color: var(--accent);
}

.icon-wrap svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.card-num {
  color: var(--accent) !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.16em;
}

.game {
  background: var(--bg);
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.game-mockup img {
  width: min(100%, 28rem);
  margin: 0 auto;
}

.game-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.steps {
  display: grid;
  gap: 1.15rem;
  width: 100%;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.steps h3 {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.steps p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.features {
  background: var(--bg-features);
}

.features .section-header h2 {
  margin-bottom: 0;
}

.contact {
  background: var(--bg);
}

.contact h2 {
  color: var(--leather);
}

.contact-lead {
  color: var(--accent);
  margin-top: 1rem;
  max-width: 40rem;
  margin-inline: auto;
}

.company-name {
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 22.5rem));
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact .card {
  background: var(--card-contact);
  border: 0;
  border-radius: 4px;
  min-height: 10.125rem;
  justify-content: center;
}

.contact .card h3 {
  color: var(--accent);
}

.contact .card p,
.contact .card a {
  color: var(--leather);
}

.contact .card a:hover {
  text-decoration: underline;
}

.site-footer {
  background: var(--footer);
  color: var(--footer-muted);
  padding-block: 2.5rem 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
}

.footer-brand a {
  display: inline-flex;
  width: fit-content;
  cursor: pointer;
}

.footer-legal {
  display: grid;
  gap: 0.75rem;
  text-align: right;
}

.footer-legal nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.75rem;
}

.footer-legal nav a:hover {
  color: var(--cream);
}

.site-footer .footer-legal > p {
  color: var(--copyright);
  font-size: 0.875rem;
}

.legal-page {
  min-height: 70vh;
  padding-block: var(--pad-y);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1.1rem 0.65rem 0.8rem;
  background: var(--accent);
  color: var(--cream);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  width: fit-content;
}

.legal-back svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-back:hover {
  background: #9a4523;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.legal-date {
  margin: 0.75rem 0 2rem;
  color: var(--accent);
  font-size: 1rem;
}

.legal-body {
  max-width: 52rem;
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  color: var(--text);
}

.legal-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.35rem 0 0.5rem;
  color: var(--text);
}

.legal-body p {
  max-width: none;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.legal-body ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.legal-body li {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
}

.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.to-top:hover {
  background: #9a4523;
}

.to-top svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-visual {
    min-height: 28rem;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-mockup img {
    width: min(100%, 22rem);
  }

  .game-copy {
    align-items: center;
    text-align: center;
  }

  .steps {
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }
}

@media (max-width: 800px) {
  body {
    padding-top: var(--header-h);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateZ(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.75rem var(--pad-x) 2rem;
    background: var(--cream);
    border-top: 2px solid var(--accent);
    box-shadow: 0 16px 28px rgba(44, 24, 16, 0.28);
  }

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

  .site-nav .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.15rem;
  }

  .site-nav .nav-links a {
    color: var(--text);
    text-align: center;
    width: 100%;
    padding: 0.25rem 0;
  }

  .site-nav .nav-links a:hover,
  .site-nav .nav-links a:focus-visible {
    color: var(--accent);
  }

  .site-nav .nav-links a.is-active,
  .site-nav .nav-links a.is-active:hover,
  .site-nav .nav-links a.is-active:focus-visible {
    color: var(--accent);
    font-weight: 600;
  }

  .site-nav .btn {
    margin-inline: auto;
  }

  .pillar-grid,
  .feature-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-brand,
  .footer-legal,
  .footer-legal nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-inner {
    gap: 0.7rem;
  }

  .footer-brand {
    justify-items: center;
    gap: 0.35rem;
  }

  .footer-brand a {
    margin-inline: auto;
  }

  .footer-legal {
    gap: 0.3rem;
  }

  .footer-legal nav {
    justify-content: center;
    gap: 1rem;
  }

  .site-footer .footer-legal > p,
  .footer-brand p {
    line-height: 1.35;
  }

  .hero-visual {
    min-height: 20rem;
  }
}
