:root {
  color-scheme: dark;
  --bg: #111b17;
  --panel: #1b2a21;
  --ink: #fff5db;
  --muted: #ced7c8;
  --gold: #f5d795;
  --line: #93ad8b40;
  --edge: clamp(20px, 5vw, 72px);
  font-family: "Trebuchet MS", system-ui, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[id] { scroll-margin-top: 24px; }
.wrap { width: min(1200px, 100% - var(--edge) * 2); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: 8px; left: 12px; padding: 8px 12px; background: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; gap: 28px; }
.site-header a, .site-footer a { text-decoration: none; }
.site-header nav a, .site-footer a { color: var(--muted); }
.site-header a:hover, .site-footer a:hover { color: var(--gold); }
.brand { justify-self: start; }
.brand img { width: auto; height: 30px; }
.locale { justify-self: end; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5.2vw, 90px);
  padding-block: clamp(32px, 5.5vw, 76px);
}
.identity { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.identity img, .closing > img { border-radius: 22%; }
.identity h1 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.04em; line-height: 1.2; }
.identity p { color: var(--muted); font-size: .92rem; }
.display, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.display { font-size: clamp(3.35rem, 6.5vw, 6.15rem); }
.hero-lead { color: var(--muted); max-width: 42ch; margin-top: 24px; font-size: clamp(1rem, 1.7vw, 1.23rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button, .reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.primary { background: var(--gold); color: #20251a; border-color: var(--gold); }
.primary:hover { background: #ffe6b3; }
.secondary, .reset { background: transparent; color: var(--ink); }
.secondary:hover, .reset:hover { background: #d7e5cc17; }
.hero-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 13px;
  background: #263b2a;
  border: 1px solid #84987360;
  border-radius: 30px;
  padding: 20px 12px 15px;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  inset: -42px;
  background: radial-gradient(ellipse at 45% 22%, #a3b37c69, transparent 62%),
              repeating-linear-gradient(0deg, transparent 0 37px, #dae7ac14 37px 38px),
              repeating-linear-gradient(90deg, transparent 0 37px, #dae7ac14 37px 38px),
              #263b2a;
  transform: rotate(-12deg) scale(1.2);
}
.hero-art img {
  width: clamp(200px, 22vw, 302px);
  border: 1px solid #e5e5bc65;
  border-radius: 17px;
  box-shadow: 0 16px 46px #0a140ba8;
}
.hero-art figcaption { color: #f3eedc; font-size: .84rem; text-align: center; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.facts div { padding: 20px clamp(8px, 3vw, 48px); text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { color: var(--gold); font: 700 clamp(1.25rem, 3.2vw, 2.7rem)/1.1 Georgia, serif; }
.facts dd { margin-top: 5px; color: var(--muted); font-size: clamp(.82rem, 1.5vw, 1rem); }
.how {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 95px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 128px);
}
.kicker { color: var(--gold); font-size: .875rem; font-weight: 700; margin-bottom: 12px; }
h2 { font-size: clamp(2.45rem, 4.6vw, 4.35rem); }
.how-copy > p:not(.kicker), .section-intro > p:not(.kicker), .closing > p { color: var(--muted); max-width: 52ch; margin-top: 16px; }
.rules { margin-top: 28px; }
.rules div { padding-block: 13px; border-top: 1px solid var(--line); }
.rules dt, h3 { font-size: clamp(1rem, 2vw, 1.26rem); font-weight: 800; }
.rules dd { color: var(--muted); }
.demo {
  --tile: #b4c592;
  position: relative;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
}
.demo h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); letter-spacing: -.035em; }
.demo p { color: var(--muted); }
.demo-board {
  width: min(340px, 100%);
  margin-inline: auto;
  aspect-ratio: 1;
  position: relative;
  border: 4px solid #e8deb1;
  border-radius: 13px;
  background:
    linear-gradient(90deg, #424c3390 1px, transparent 1px) -1px 0/25% 25%,
    linear-gradient(#424c3390 1px, transparent 1px) 0 -1px/25% 25%,
    repeating-conic-gradient(#cbd6ad 0% 25%, var(--tile) 0% 50%) 0 0/50% 50%;
}
.demo-controls { margin-top: 18px; }
.goat {
  position: absolute;
  top: calc(var(--row) * 25% + 2%);
  left: calc(var(--column) * 25% + 2%);
  display: grid;
  place-items: center;
  width: 21%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid #fff0c5;
  background: #3d6d5d;
  border-radius: 25%;
  cursor: pointer;
  transition: top .2s ease, left .2s ease;
}
.goat[hidden] { display: none; }
.goat:hover { border-color: #fff; filter: brightness(1.12); }
.goat:focus-visible { outline-color: #2b2518; outline-offset: 2px; }
.goat img { width: 100%; border-radius: inherit; }
.goat span {
  position: absolute;
  inset: auto -3px -4px auto;
  display: grid;
  place-items: center;
  width: clamp(21px, 4vw, 26px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  color: #172d22;
  font: 900 1rem/1 system-ui, sans-serif;
}
.demo-stats { margin-top: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; font-size: .89rem; }
.demo-stats b { color: var(--gold); }
.demo .demo-message { min-height: 3em; margin-top: 4px; color: var(--ink); }
.demo .demo-note { margin-top: 10px; font-size: .84rem; }
.reset { cursor: pointer; min-height: 44px; padding: 6px 14px; }
.showcase { background: #1a261e; border-block: 1px solid var(--line); padding-block: clamp(56px, 8vw, 105px); }
.section-intro { text-align: center; }
.section-intro > p:not(.kicker) { margin-inline: auto; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 32px);
  max-width: 880px;
  margin: 30px auto 0;
}
.gallery figure {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(12px, 2.5vw, 26px);
  background: radial-gradient(ellipse at 50% 10%, #56674796, transparent 75%), #26362a;
}
.gallery figure:nth-child(2) { background: radial-gradient(ellipse at 50% 10%, #77775080, transparent 75%), #29382a; }
.gallery img { width: min(100%, 260px); border-radius: 13px; box-shadow: 0 10px 32px #0f1c12a0; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: .89rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; max-width: 880px; margin: 28px auto 0; }
.features article { border-top: 1px solid var(--line); padding-top: 14px; }
.features p { color: var(--muted); margin-top: 5px; }
.faq { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 30px; padding-block: clamp(56px, 8vw, 106px); }
.faq details { border-top: 1px solid var(--line); padding-block: 14px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin-top: 8px; }
.closing {
  padding: clamp(28px, 6vw, 70px) 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(ellipse at top, #354632, #1b291f 75%);
  text-align: center;
}
.closing > img { margin: 0 auto 16px; }
.closing > p { margin-inline: auto; }
.closing .actions { justify-content: center; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 28px; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .site-header { min-height: 64px; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero, .how, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 25px; }
  .display { font-size: clamp(2.85rem, 10vw, 4.5rem); }
  .identity { margin-bottom: 16px; }
  .hero-lead { margin-top: 16px; }
  .actions { margin-top: 20px; }
  .hero-art img { width: min(64%, 240px); }
  .gallery figure { padding: 8px; border-radius: 14px; }
  .gallery img { border-radius: 8px; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .display { font-size: 2.95rem; }
  .button { padding-inline: 13px; }
  .gallery figcaption { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .goat { transition: none; }
}
