:root {
  --ink: #111713;
  --felt: #07180f;
  --ivory: #fff9e8;
  --paper: #f4f0e2;
  --gold: #d5ad39;
  --gold-dark: #8f6c16;
  --red: #a9362d;
  --muted: #bbb9ad;
  --line-dark: rgba(255, 249, 232, 0.16);
  --line-light: #d9d3c0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--felt);
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 24, 15, 0.96);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #e8e4d7;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .nav-store,
.site-nav .nav-primary {
  background: var(--ivory);
  color: var(--ink);
}

.site-nav .nav-store:hover,
.site-nav .nav-primary:hover {
  background: #ffffff;
}

.support-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--felt);
  background-image: url('/assets/assets/background.webp');
  background-position: center;
  background-size: cover;
}

.support-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 17, 10, 0.58);
}

.support-hero-compact {
  min-height: 420px;
}

.support-hero-compact .hero-layout {
  grid-template-columns: minmax(0, 760px);
  padding-top: 62px;
  padding-bottom: 68px;
}

.support-hero-compact .hero-copy h1 {
  font-size: 3.5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 68px;
  padding-top: 64px;
  padding-bottom: 74px;
}

.eyebrow {
  margin-bottom: 12px;
  color: #f2d26f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 700;
}

.hero-intro {
  max-width: 650px;
  margin-top: 22px;
  color: #e4e0d4;
  font-size: 1.14rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: #171207;
  border-color: #efd574;
}

.button-primary:hover {
  background: #e2bc4b;
}

.button-dark {
  background: #0e1210;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.button-dark:hover {
  background: #1b211d;
}

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark img {
  width: min(100%, 440px);
  height: auto;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.42));
}

.status-band {
  background: var(--ivory);
  color: var(--ink);
  border-bottom: 1px solid var(--line-light);
}

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

.status-items p {
  min-width: 0;
  padding: 24px 28px;
  border-right: 1px solid var(--line-light);
}

.status-items p:first-child {
  padding-left: 0;
}

.status-items p:last-child {
  padding-right: 0;
  border-right: 0;
}

.status-items strong,
.status-items span {
  display: block;
}

.status-items strong {
  font-size: 0.98rem;
}

.status-items span {
  margin-top: 3px;
  color: #5f625c;
  font-size: 0.88rem;
}

.content-band {
  padding-top: 88px;
  padding-bottom: 96px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-heading h2,
.contact-layout h2,
.page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1.12;
}

.section-heading > p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line-dark);
}

.faq-list details {
  border-bottom: 1px solid var(--line-dark);
}

.faq-list summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 820px;
  padding: 0 52px 22px 4px;
  color: var(--muted);
}

.game-flow-band {
  padding: 84px 0 90px;
  background: var(--paper);
  color: var(--ink);
}

.game-flow-band .eyebrow {
  color: var(--gold-dark);
}

.compact-heading {
  margin-bottom: 42px;
}

.game-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.game-flow li {
  min-width: 0;
  display: flex;
  gap: 18px;
  padding: 30px 26px;
  border-right: 1px solid var(--line-light);
}

.game-flow li:first-child {
  padding-left: 0;
}

.game-flow li:last-child {
  padding-right: 0;
  border-right: 0;
}

.game-flow li > span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
}

.game-flow h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.game-flow p {
  color: #5f625c;
  font-size: 0.91rem;
}

.contact-band {
  padding: 82px 0;
  background: var(--red);
}

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

.contact-layout .eyebrow {
  color: #ffe39a;
}

.contact-layout p:last-child {
  max-width: 700px;
  margin-top: 14px;
  color: #f7e4df;
}

.site-footer {
  padding: 28px 0;
  background: #050d09;
  color: #a8aaa3;
  font-size: 0.88rem;
  border-top: 1px solid var(--line-dark);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #ddd9cc;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Product landing page */
.about-hero {
  min-height: 570px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--felt);
  background-image: url('/assets/assets/background.webp');
  background-position: center;
  background-size: cover;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(3, 18, 10, 0.46);
}

.about-hero-inner {
  min-height: 570px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 54px;
  padding-bottom: 62px;
  text-align: center;
}

.about-hero-logo {
  width: min(310px, 72vw);
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.4));
}

.about-hero-copy {
  max-width: 760px;
}

.about-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.8rem;
  line-height: 1.02;
}

.about-hero-copy > p:last-of-type {
  max-width: 680px;
  margin: 18px auto 0;
  color: #e9e4d7;
  font-size: 1.08rem;
}

.about-actions {
  justify-content: center;
}

.showcase-band {
  padding: 88px 0 96px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line-light);
}

.showcase-heading {
  max-width: 760px;
}

.showcase-heading .eyebrow {
  color: var(--gold-dark);
}

.showcase-heading > p:last-child {
  color: #5f625c;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.screenshot-grid figure {
  min-width: 0;
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #c8b66f;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(21, 25, 20, 0.16);
}

.how-band {
  padding: 84px 0 90px;
  background: var(--ink);
  color: var(--ivory);
}

.how-band .game-flow {
  border-color: var(--line-dark);
}

.how-band .game-flow li {
  border-color: var(--line-dark);
}

.how-band .game-flow li > span {
  color: var(--gold);
}

.how-band .game-flow p {
  color: var(--muted);
}

.play-band {
  padding: 82px 0;
  background: var(--red);
}

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

.play-layout h2 {
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1.12;
}

.play-layout .eyebrow {
  color: #ffe39a;
}

.play-layout p:last-child {
  max-width: 700px;
  margin-top: 14px;
  color: #f7e4df;
}

.play-actions {
  min-width: 214px;
  display: grid;
  gap: 10px;
}

.button-light {
  background: var(--ivory);
  color: var(--ink);
  border-color: #ffffff;
}

.button-light:hover {
  background: #ffffff;
}

/* Privacy page */
.legal-page {
  background: var(--paper);
  color: var(--ink);
}

.legal-page .site-header {
  background: rgba(7, 24, 15, 0.98);
}

.page-header {
  padding: 72px 0 36px;
  border-bottom: 1px solid var(--line-light);
}

.page-header p {
  margin-top: 10px;
  color: #666960;
}

.content-section {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 84px;
}

.content-section h2 {
  margin: 34px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.content-section p,
.content-section ul {
  margin-bottom: 18px;
  color: #454942;
}

.content-section ul {
  padding-left: 22px;
}

.content-section a {
  color: #174f35;
  font-weight: 700;
}

@media (max-width: 820px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-mark {
    justify-content: flex-start;
  }

  .hero-mark img {
    width: min(68%, 360px);
  }

  .status-items,
  .game-flow {
    grid-template-columns: 1fr;
  }

  .status-items p,
  .status-items p:first-child,
  .status-items p:last-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .status-items p:last-child {
    border-bottom: 0;
  }

  .game-flow li,
  .game-flow li:first-child,
  .game-flow li:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .game-flow li:last-child {
    border-bottom: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-layout .button {
    justify-self: start;
  }

  .screenshot-grid {
    grid-template-columns: repeat(4, minmax(240px, 280px));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 18px;
  }

  .screenshot-grid figure {
    scroll-snap-align: start;
  }

  .play-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .play-actions {
    width: min(100%, 340px);
  }
}

@media (max-width: 620px) {
  .shell,
  .site-header-inner,
  .content-section {
    width: min(100% - 28px, 1120px);
  }

  .site-header-inner {
    min-height: 64px;
  }

  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .brand img {
    width: 45px;
    height: 35px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    min-height: 40px;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .support-hero {
    min-height: auto;
  }

  .support-hero-compact .hero-copy h1 {
    font-size: 2.38rem;
  }

  .hero-layout {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .hero-copy h1 {
    font-size: 2.38rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-mark img {
    width: min(78%, 300px);
  }

  .content-band,
  .game-flow-band,
  .showcase-band,
  .how-band {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .about-hero,
  .about-hero-inner {
    min-height: 550px;
  }

  .about-hero-inner {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .about-hero-logo {
    width: min(240px, 68vw);
    margin-bottom: 18px;
  }

  .about-hero h1 {
    font-size: 2.55rem;
  }

  .about-hero-copy > p:last-of-type {
    font-size: 1rem;
  }

  .play-band {
    padding: 62px 0;
  }

  .play-layout h2 {
    font-size: 2rem;
  }

  .section-heading h2,
  .contact-layout h2,
  .page-header h1 {
    font-size: 2rem;
  }

  .faq-list summary {
    font-size: 0.98rem;
  }

  .contact-band {
    padding: 62px 0;
  }

  .contact-layout .button {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}
