:root {
  color-scheme: dark;
  --page: #0d1210;
  --page-soft: #141c18;
  --panel: #18211d;
  --line: rgba(230, 237, 220, 0.15);
  --text: #f0f1e9;
  --muted: #a8b0a5;
  --gold: #ddb673;
  --focus: #f6d58e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 72% -10%, rgba(93, 121, 90, 0.22), transparent 34rem),
    linear-gradient(145deg, var(--page-soft), var(--page) 58%);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark b {
  color: var(--gold);
  font-weight: 650;
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 182, 115, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
}

.edition,
.intro,
.game-description,
footer {
  color: var(--muted);
}

.edition {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

main {
  padding: clamp(64px, 9vw, 112px) 0 72px;
}

.hero {
  max-width: 780px;
}

.eyebrow,
.game-meta,
.play-link {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 720;
}

.eyebrow,
.game-meta {
  color: var(--gold);
}

h1 {
  margin: 14px 0 24px;
  font: 500 clamp(3.2rem, 8vw, 7.4rem) / 0.88 Georgia, "Times New Roman", serif;
  letter-spacing: -0.065em;
}

.intro {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(56px, 8vw, 88px);
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(20, 28, 24, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(221, 182, 115, 0.5);
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.34);
}

.game-card:focus-visible,
.wordmark:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.game-art {
  position: relative;
  height: clamp(240px, 32vw, 340px);
  display: block;
  overflow: hidden;
}

.block-art {
  background:
    linear-gradient(rgba(87, 215, 226, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 215, 226, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, #204f63, #0c1722 72%);
  background-size: 44px 44px, 44px 44px, auto;
}

.block {
  position: absolute;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(183, 244, 249, 0.7);
  border-radius: 10px;
  background: linear-gradient(145deg, #68dbe5, #236779);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.24), 0 12px 22px rgba(0, 0, 0, 0.3);
}

.block-a { left: 19%; bottom: 22%; }
.block-b { left: calc(19% + 82px); bottom: 22%; }
.block-c { left: calc(19% + 82px); bottom: calc(22% + 82px); }
.block-d { right: 18%; bottom: 22%; background: linear-gradient(145deg, #f0b260, #94542e); }
.block-e { right: 18%; bottom: calc(22% + 82px); background: linear-gradient(145deg, #f0b260, #94542e); }

.rise-line {
  position: absolute;
  inset: auto 0 12% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef7b5c 20%, #ef7b5c 80%, transparent);
  box-shadow: 0 0 16px rgba(239, 123, 92, 0.7);
}

.ember-art {
  background:
    radial-gradient(circle at 76% 22%, rgba(244, 201, 119, 0.8) 0 6%, transparent 6.5%),
    linear-gradient(#819990 0%, #667b6e 36%, #32463a 37%, #18251f 100%);
}

.ridge {
  position: absolute;
  width: 78%;
  height: 46%;
  left: 11%;
  transform: rotate(30deg) skew(-18deg, -18deg);
  border-radius: 22%;
}

.ridge-back {
  top: 34%;
  background: #405346;
}

.ridge-front {
  top: 52%;
  background: #24352c;
  box-shadow: inset 18px 18px 0 rgba(255, 255, 255, 0.035);
}

.tree {
  position: absolute;
  width: 42px;
  height: 78px;
  bottom: 22%;
  border-radius: 60% 60% 48% 48%;
  background: linear-gradient(100deg, #17261f, #38523b 48%, #203329);
  filter: drop-shadow(7px 12px 7px rgba(0, 0, 0, 0.28));
}

.tree::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 22px;
  left: 18px;
  bottom: -16px;
  background: #5b4632;
}

.tree-one { left: 16%; }
.tree-two { left: 27%; bottom: 30%; transform: scale(0.84); }
.tree-three { right: 16%; bottom: 27%; transform: scale(1.08); }

.fire {
  position: absolute;
  left: 52%;
  bottom: 18%;
  color: #ffd082;
  font-size: 2.6rem;
  text-shadow: 0 0 9px #e97838, 0 0 26px #d8572b;
}

.game-copy {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 5vw, 42px);
}

.game-copy strong {
  margin-top: 16px;
  font: 500 clamp(2rem, 4vw, 3.2rem) / 1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.game-description {
  max-width: 34rem;
  margin-top: 16px;
  line-height: 1.6;
}

.play-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--text);
}

footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .edition {
    display: none;
  }

  main {
    padding-top: 56px;
  }

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

  .game-art {
    height: 270px;
  }
}

@media (max-width: 460px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .block {
    width: 58px;
    height: 58px;
  }

  .block-b { left: calc(19% + 64px); }
  .block-c { left: calc(19% + 64px); bottom: calc(22% + 64px); }
  .block-e { bottom: calc(22% + 64px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
