@font-face {
  font-family: "Black Chancery";
  src: url("assets/black-chancery.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #140b08;
  --ink-soft: #21120d;
  --panel: #2b1811;
  --cream: #f5e6cc;
  --muted: #c4ae91;
  --gold: #e6b84d;
  --gold-light: #f6d878;
  --mint: #82d3bd;
  --red: #a44738;
  --line: rgba(245, 230, 204, 0.15);
  --content: 1240px;
  color: var(--cream);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(20, 11, 8, 0.92), rgba(20, 11, 8, 0.94)),
    url("assets/wood.png") center / 220px repeat;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(151, 57, 42, 0.2), transparent 32rem),
    radial-gradient(circle at 18% 55%, rgba(36, 113, 95, 0.12), transparent 35rem);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: min(var(--content), calc(100% - 40px));
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  transition: min-height 180ms ease;
}

.site-header::before {
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 82px;
  border-bottom: 1px solid transparent;
  background: rgba(20, 11, 8, 0.2);
  content: "";
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
}

.site-header.is-scrolled::before {
  height: 68px;
  border-color: var(--line);
  background: rgba(20, 11, 8, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  border: 1px solid rgba(246, 216, 120, 0.4);
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.site-nav a {
  text-decoration: none;
  transition: color 140ms ease;
}

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

.site-nav .nav-steam {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(230, 184, 77, 0.54);
  border-radius: 5px;
  padding: 0 15px;
  color: var(--gold-light);
}

.site-nav .nav-steam:hover {
  border-color: var(--gold-light);
  background: rgba(230, 184, 77, 0.09);
  color: #ffe9a8;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  width: min(var(--content), calc(100% - 40px));
  min-height: calc(100svh - 82px);
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: clamp(46px, 7vw, 100px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) 0 clamp(88px, 10vw, 140px);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -12%;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(144, 52, 40, 0.18), transparent 64%);
  filter: blur(4px);
}

.hero-suits {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: -8%;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 22px;
  color: rgba(230, 184, 77, 0.035);
  font-family: Georgia, serif;
  font-size: clamp(60px, 7vw, 100px);
  line-height: 0.75;
  transform: rotate(-10deg);
}

.hero-suits span:nth-child(2),
.hero-suits span:nth-child(4) {
  color: rgba(164, 71, 56, 0.07);
}

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

h1,
h2,
.game-card h3 {
  font-family: "Black Chancery", Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--cream);
  font-size: clamp(66px, 8.6vw, 126px);
  line-height: 0.78;
  letter-spacing: -0.025em;
}

h1 em,
h2 em {
  color: var(--gold-light);
  font-style: normal;
}

.hero-lede {
  max-width: 570px;
  margin-bottom: 30px;
  color: #dcc7a9;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 5px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: #1b0f09;
  box-shadow: 0 16px 40px rgba(230, 184, 77, 0.18);
}

.button-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 18px 46px rgba(230, 184, 77, 0.25);
}

.button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.button-quiet {
  padding-inline: 8px;
  color: var(--cream);
}

.button-quiet:hover {
  color: var(--gold-light);
}

.play-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(245, 230, 204, 0.4);
  border-radius: 50%;
  padding-left: 2px;
  font-size: 9px;
}

.featured-game {
  position: relative;
  width: min(100%, 660px);
  justify-self: end;
  padding: 24px 0;
}

.featured-game-media {
  border: 1px solid rgba(246, 216, 120, 0.38);
  border-radius: 6px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.5);
}

.featured-game-media::after {
  position: absolute;
  inset: 0;
  border: 8px solid rgba(20, 11, 8, 0.4);
  content: "";
  pointer-events: none;
}

.section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 11vw, 150px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-heading h2,
.about h2,
.final-cta h2 {
  margin-bottom: 0;
  color: var(--gold-light);
  font-size: clamp(58px, 7.2vw, 96px);
  line-height: 0.83;
}

.section-heading > p {
  max-width: 430px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
}

.game-card {
  overflow: hidden;
  border: 1px solid rgba(245, 230, 204, 0.17);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(48, 26, 18, 0.96), rgba(28, 16, 12, 0.98));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.game-media,
.horse-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0705;
}

.game-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(245, 230, 204, 0.25);
  border-radius: 4px;
  padding: 7px 10px;
  background: rgba(20, 11, 8, 0.82);
  color: var(--cream);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.status-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.game-body {
  padding: clamp(24px, 3vw, 38px);
}

.game-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.game-card h3 {
  margin-bottom: 14px;
  color: var(--gold-light);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.9;
}

.suit-pair {
  color: rgba(230, 184, 77, 0.35);
  font-family: Georgia, serif;
  font-size: 20px;
  word-spacing: 4px;
}

.game-card p {
  min-height: 78px;
  margin-bottom: 24px;
  color: #d4bfa2;
  font-size: 15px;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border: 1px solid rgba(245, 230, 204, 0.14);
  border-radius: 3px;
  padding: 8px 10px;
  background: rgba(10, 6, 4, 0.26);
  color: #cdb99c;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

a.text-link:hover {
  color: #c0ffed;
}

.text-link-muted {
  color: #8f7f6b;
}

.horse-scene {
  background:
    radial-gradient(circle at 50% 35%, rgba(230, 184, 77, 0.16), transparent 16%),
    linear-gradient(175deg, #1b2927 0 58%, #20120d 59%);
}

.horse-scene::before,
.horse-scene::after {
  position: absolute;
  right: -5%;
  bottom: 27%;
  left: -5%;
  height: 1px;
  background: rgba(245, 230, 204, 0.14);
  content: "";
  transform: rotate(-4deg);
}

.horse-scene::after {
  bottom: 16%;
}

.moon {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(246, 216, 120, 0.48);
  box-shadow: 0 0 50px rgba(230, 184, 77, 0.28);
  transform: translateX(-50%);
}

.horse {
  position: absolute;
  z-index: 2;
  bottom: 15%;
  left: 42%;
  color: #e2c691;
  font-family: Georgia, serif;
  font-size: clamp(90px, 11vw, 150px);
  filter: drop-shadow(0 16px 15px rgba(0, 0, 0, 0.5));
  transform: translateX(-50%) rotate(-5deg);
}

.track {
  position: absolute;
  bottom: 25%;
  left: 10%;
  width: 21%;
  height: 3px;
  background: rgba(230, 184, 77, 0.3);
}

.track-two {
  bottom: 19%;
  left: 70%;
  width: 18%;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(60px, 9vw, 130px);
  border-top: 1px solid var(--line);
}

.about-intro > p:last-child {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 34px;
}

.steps li + li {
  padding-top: 34px;
}

.step-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.steps h3 {
  margin-bottom: 10px;
  color: var(--cream);
  font-family: inherit;
  font-size: 21px;
  font-weight: 850;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.faq-heading {
  align-items: start;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

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

.faq-list details:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 34px;
}

.faq-list details:nth-child(even) {
  padding-left: 34px;
}

.faq-list summary {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--cream);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary span {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: transform 160ms ease;
}

.faq-list summary span::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary span::after {
  transform: rotate(0deg);
}

.faq-list details p {
  max-width: 510px;
  margin: -6px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-list details a {
  color: var(--gold-light);
  font-weight: 750;
}

.final-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 460px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-block: 1px solid var(--line);
  padding: 80px 20px;
  background:
    radial-gradient(circle at center, rgba(144, 52, 40, 0.2), transparent 40%),
    rgba(8, 5, 3, 0.38);
  text-align: center;
}

.final-cta > :not(.cta-cards) {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: var(--cream);
}

.final-cta > p {
  margin: 20px 0 26px;
  color: var(--muted);
}

.cta-cards {
  position: absolute;
  top: 42%;
  pointer-events: none;
  user-select: none;
  color: rgba(230, 184, 77, 0.045);
  font-family: Georgia, serif;
  font-size: clamp(190px, 28vw, 390px);
  letter-spacing: -0.15em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%) rotate(-4deg);
}

.cta-cards span {
  color: rgba(164, 71, 56, 0.08);
}

.site-footer {
  display: grid;
  width: min(var(--content), calc(100% - 40px));
  min-height: 120px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  color: #8f7f6b;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  font-size: 13px;
}

.responsibility {
  justify-self: end;
  text-align: right;
}

@media (max-width: 960px) {
  .site-nav {
    gap: 18px;
  }

  .site-nav > a:not(.nav-steam) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 90px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .featured-game {
    width: min(90%, 680px);
    justify-self: center;
  }

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

  .game-card p {
    min-height: 0;
  }

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

@media (max-width: 680px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--content));
  }

  .site-header,
  .site-header::before {
    min-height: 68px;
    height: 68px;
  }

  .brand-copy > span {
    font-size: 13px;
  }

  .brand-copy small {
    font-size: 8px;
  }

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

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(20, 11, 8, 0.7);
    color: var(--cream);
    cursor: pointer;
  }

  .nav-toggle > span:not(.sr-only) {
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    background: rgba(20, 11, 8, 0.97);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav > a:not(.nav-steam) {
    display: block;
  }

  .site-nav a {
    padding: 14px 4px;
  }

  .site-nav .nav-steam {
    justify-content: center;
    margin-top: 8px;
    padding: 0 15px;
  }

  .hero {
    gap: 56px;
    padding: 76px 0 90px;
  }

  h1 {
    font-size: clamp(62px, 21vw, 88px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button-quiet {
    min-height: 44px;
  }

  .featured-game {
    width: calc(100% - 22px);
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .section-heading h2,
  .about h2,
  .final-cta h2 {
    font-size: clamp(56px, 18vw, 78px);
  }

  .game-body {
    padding: 24px 20px 28px;
  }

  .game-card h3 {
    font-size: 46px;
  }

  .game-card p {
    font-size: 14px;
  }

  .horse {
    font-size: 100px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .faq-list details:nth-child(odd),
  .faq-list details:nth-child(even) {
    border-right: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .final-cta {
    min-height: 420px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 0;
    text-align: center;
  }

  .footer-brand,
  .responsibility {
    justify-self: center;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
