:root {
  color-scheme: dark;
  --ink: #100715;
  --velvet: #2a0a24;
  --plum: #581342;
  --ruby: #9f2449;
  --gold: #f6c85f;
  --gold-soft: #ffe8a3;
  --cyan: #35e6d5;
  --parchment: #fff3c9;
  --mist: #d8d2e7;
  --muted: #a99db8;
  --line: rgba(246, 200, 95, 0.3);
  --line-soft: rgba(246, 200, 95, 0.16);
  --glass: rgba(20, 8, 29, 0.78);
  --glass-strong: rgba(16, 6, 24, 0.9);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.54);
  --radius: 10px;
  --wrap: 1180px;
  font-family:
    "Trebuchet MS",
    "Arial Narrow",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--mist);
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 22, 77, 0.95), transparent 38rem),
    linear-gradient(180deg, #120819 0%, #21081e 46%, #08040d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 23%, transparent 77%, rgba(0, 0, 0, 0.68)),
    radial-gradient(circle at 50% 28%, rgba(246, 200, 95, 0.16), transparent 24rem);
}

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

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

.skip-link {
  position: absolute;
  top: -200px;
  left: 12px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  color: #180716;
  background: var(--gold);
  font-weight: 900;
}

.skip-link:focus-visible {
  top: 0;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.3;
  pointer-events: none;
}

.site-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- top bar ---------------- */

.topbar,
.doc-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--wrap), calc(100% - 32px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 7, 21, 0.86);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(246, 200, 95, 0.5));
}

.brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-menu a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 243, 201, 0.82);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 140ms ease, background 140ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: #150817;
  background: var(--gold);
  outline: 0;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--gold-soft);
}

/* ---------------- shared type ---------------- */

.section {
  position: relative;
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--parchment);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 4px 0 rgba(64, 13, 36, 0.86);
}

/* Sized for the four-word title. The old 10ch/118px pair was cut for "Royal
   Coup", which fitted on one line; the current name is 22 characters and broke
   into four stacked lines that ate the whole hero panel. */
h1 {
  max-width: 15ch;
  font-size: clamp(38px, 5.6vw, 74px);
}

h2 {
  font-size: clamp(32px, 4.6vw, 62px);
}

h3 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.15;
}

.lede {
  max-width: 56ch;
  margin: 24px 0 0;
  color: #e9e0f2;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

.section-lede {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--mist);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.68;
}

/* ---------------- buttons ---------------- */

.button {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 24px;
  border: 2px solid rgba(255, 231, 135, 0.72);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 18px rgba(48, 10, 44, 0.32),
    0 10px 22px rgba(0, 0, 0, 0.32);
  transition:
    transform 160ms ease,
    filter 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-primary {
  color: #1a0817;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(180deg, #fff0a8, #f3ba35 52%, #ad7018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -12px 20px rgba(72, 30, 5, 0.28),
    0 0 26px rgba(246, 200, 95, 0.35),
    0 12px 26px rgba(0, 0, 0, 0.36);
}

.button-ghost {
  color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(101, 41, 134, 0.95), rgba(50, 12, 76, 0.95));
}

/* ---------------- hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  align-items: center;
  gap: clamp(26px, 5vw, 62px);
  padding-top: clamp(38px, 6vw, 70px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
}

.hero-facts div {
  padding: 14px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(20, 8, 29, 0.6);
  text-align: center;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: var(--gold-soft);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 900;
}

/* ---------------- cards & shots ---------------- */

.hero-shot,
.shot-card,
.doc-card,
.step,
.mode-card,
.ladder,
.honours,
.closing-card,
.figure-card,
details {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
}

.hero-shot::before,
.shot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 244, 190, 0.2) 42%, transparent 56%);
  transform: translateX(-120%);
  animation: sheen 6s ease-in-out infinite;
}

/* Direct children only — figcaption also holds a small icon image. */
.hero-shot > img,
.shot-card > img,
.dart-shot > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-shot {
  margin: 0;
  transform: rotate(1deg);
}

figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 14px;
  color: var(--gold-soft);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cap-icon {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}

/* ---------------- modes ---------------- */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
}

.mode-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.mode-icon {
  width: 68px;
  height: 68px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.mode-kicker {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mode-head h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.mode-lede {
  margin: 0 0 20px;
  color: var(--mist);
  line-height: 1.65;
}

.mode-list {
  flex: 1;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.mode-list li {
  padding: 11px 14px;
  border-left: 3px solid rgba(246, 200, 95, 0.55);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.5;
}

.mode-list b {
  color: var(--gold-soft);
}

.mode-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.mode-link:hover,
.mode-link:focus-visible {
  border-bottom-color: currentColor;
  outline: 0;
}

/* ---------------- steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0 0 clamp(26px, 3.5vw, 40px);
  list-style: none;
}

.step {
  padding: clamp(20px, 2.4vw, 28px);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #180716;
  background: var(--gold);
  font-weight: 900;
}

.step p,
.cast-copy p,
details p,
.doc-card p,
.doc-card li,
.dart-steps p {
  color: var(--mist);
  line-height: 1.65;
}

.step p {
  margin: 0;
  font-size: 14.5px;
}

/* ---------------- shot rows ---------------- */

.shot-pair {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

.shot-pair-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shot-card {
  margin: 0;
}

/* ---------------- tables ---------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.data-table caption {
  padding: 18px 20px 0;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.data-table thead th {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table tbody th {
  color: var(--gold-soft);
  font-weight: 900;
}

.data-table tbody td {
  color: var(--mist);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-note,
.panel-note {
  margin: 0;
  padding: 16px 20px 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------------- dart section ---------------- */

.feature-dart {
  /* The backdrop bleeds past the text column, so the section has to clip it —
     otherwise it widens the document and the whole page scrolls sideways. */
  isolation: isolate;
  overflow: hidden;
}

.dart-backdrop {
  position: absolute;
  inset: -6% -14%;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 72%);
}

.dart-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(24px, 3vw, 36px);
}

.dart-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
}

.dart-steps {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: dart;
}

.dart-steps li {
  position: relative;
  padding: 0 0 0 52px;
  counter-increment: dart;
}

.dart-steps li::before {
  content: counter(dart, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.dart-steps h3 {
  margin: 6px 0 8px;
  font-size: 17px;
}

.dart-steps p {
  margin: 0;
  font-size: 14.5px;
}

.dart-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.figure-card {
  padding: 22px 16px;
  text-align: center;
}

.figure-card b {
  display: block;
  color: var(--gold);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.figure-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------- progress ---------------- */

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

.ladder,
.honours {
  padding: clamp(22px, 2.6vw, 30px);
}

.panel-title {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ladder-list,
.honour-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ladder-list li,
.honour-list li {
  display: grid;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.ladder-list li {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.honour-list li {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ladder-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 26px;
  border-radius: 5px;
  color: #180716;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ladder-badge[data-tier="shadow"] {
  background: linear-gradient(180deg, #b9a8d6, #7d6aa0);
}

.ladder-badge[data-tier="bronze"] {
  background: linear-gradient(180deg, #e8b07a, #b4703a);
}

.ladder-badge[data-tier="silver"] {
  background: linear-gradient(180deg, #eef1f6, #a9b3c4);
}

.ladder-badge[data-tier="gold"] {
  background: linear-gradient(180deg, #ffe7a0, #d3a12f);
}

.ladder-badge[data-tier="master"] {
  background: linear-gradient(180deg, #7ef4e3, #23b3a2);
}

.ladder-list b,
.honour-list b {
  display: block;
  color: var(--gold-soft);
  font-size: 15px;
}

/* Scoped to the inner text block — the tier badge is also a span and must not
   pick up the muted description styling. */
.ladder-list div span,
.honour-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.honour-list b,
.honour-list span {
  grid-column: 1;
}

.honour-list li {
  grid-template-areas:
    "name coins"
    "desc coins";
}

.honour-list b {
  grid-area: name;
}

.honour-list span {
  grid-area: desc;
}

.honour-list em,
.ladder-list em {
  color: var(--gold);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

/* Only the honour rows use named areas; the ladder rows fall into their
   third column on their own. Naming an area the ladder grid does not define
   drops the value onto an implicit second row. */
.honour-list em {
  grid-area: coins;
}

.ladder .panel-note,
.honours .panel-note {
  padding: 16px 0 0;
}

/* ---------------- cast ---------------- */

.cast {
  display: grid;
  grid-template-columns: minmax(120px, 0.68fr) minmax(260px, 1fr) minmax(120px, 0.68fr);
  align-items: end;
  gap: 18px;
  padding: clamp(24px, 4vw, 46px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(6, 2, 10, 0.16), rgba(246, 200, 95, 0.08), rgba(6, 2, 10, 0.16));
}

.cast-copy {
  align-self: center;
}

.cast-copy p + p {
  margin-bottom: 0;
}

.cast-person {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.6));
}

.cast-person-left {
  justify-self: start;
}

.cast-person-right {
  justify-self: end;
}

/* ---------------- faq ---------------- */

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 16px 22px;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--gold-soft);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 12px 0 0;
  font-size: 14.5px;
}

/* ---------------- closing ---------------- */

.closing-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(30px, 5vw, 58px);
  text-align: center;
}

/* Replaces the painted logo, which was the old title baked into a bitmap and
   so could not follow the rename. */
.closing-wordmark {
  max-width: 16ch;
  margin: 0;
  color: var(--gold, #f6c85f);
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.closing-card h2 {
  font-size: clamp(28px, 4vw, 50px);
}

/* :not() so the wordmark above keeps its gold and its size — it is a <p> too,
   and this rule would otherwise repaint it as body copy. */
.closing-card p:not(.closing-wordmark) {
  max-width: 54ch;
  margin: 0;
  color: var(--mist);
  line-height: 1.65;
}

/* ---------------- footer ---------------- */

.footer,
.dfoot {
  width: min(var(--wrap), calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-name {
  margin: 0;
  color: var(--gold-soft);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-legal {
  margin: 6px 0 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--mist);
  font-size: 13.5px;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: currentColor;
  outline: 0;
}

/* ---------------- legal pages ---------------- */

.doc-page {
  min-height: 100vh;
}

.doc-head {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 76px) 0 0;
}

.doc-head h1 {
  max-width: 18ch;
  font-size: clamp(38px, 6vw, 76px);
}

.doc-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.doc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) 0 clamp(40px, 6vw, 80px);
}

.doc-card {
  padding: clamp(24px, 4vw, 48px);
}

.doc-card section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.doc-card h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.15;
}

.doc-card h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.doc-card p {
  margin: 0 0 14px;
  font-size: 15px;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-card ul,
.doc-card ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc-card li {
  margin-bottom: 8px;
  font-size: 15px;
}

.doc-card a {
  color: var(--cyan);
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}

.doc-note {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(246, 200, 95, 0.08);
}

.doc-note p {
  margin: 0;
  font-size: 14.5px;
}

.doc-note b {
  color: var(--gold-soft);
}

.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--glass);
}

.toc h2 {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-shadow: none;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--mist);
  font-size: 13.5px;
  line-height: 1.35;
  border-bottom: 1px solid var(--line-soft);
}

.toc a:last-child {
  border-bottom: 0;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--gold-soft);
  outline: 0;
}

.doc-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.doc-menu a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 243, 201, 0.82);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-menu a:hover,
.doc-menu a:focus-visible,
.doc-menu a.is-here {
  color: #150817;
  background: var(--gold);
  outline: 0;
}

/* ---------------- motion ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy {
  animation: hero-fade 560ms ease both;
}

.hero-shot {
  animation: hero-fade 680ms 90ms ease both;
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes sheen {
  0%,
  46% {
    transform: translateX(-120%);
  }
  62%,
  100% {
    transform: translateX(120%);
  }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .steps,
  .shot-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 940px) {
  .site-menu a {
    padding: 0 9px;
    font-size: 11.5px;
  }
}

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

  .topbar,
  .doc-top {
    position: relative;
    width: min(100% - 20px, 720px);
    margin-top: 10px;
    border-radius: 22px;
  }

  .menu-button {
    display: block;
    flex: none;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(16, 7, 21, 0.97);
  }

  .site-menu.is-open {
    display: grid;
  }

  .site-menu a {
    justify-content: start;
    padding: 0 14px;
    font-size: 13px;
  }

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

  h1 {
    max-width: 14ch;
  }

  .hero-shot {
    transform: none;
  }

  .mode-grid,
  .dart-layout,
  .progress-layout,
  .shot-grid,
  .shot-pair-three,
  .cast {
    grid-template-columns: 1fr;
  }

  .dart-figures,
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cast {
    text-align: center;
  }

  .cast-person {
    max-height: 300px;
    justify-self: center;
  }

  .footer {
    display: grid;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .steps,
  .shot-pair {
    grid-template-columns: 1fr;
  }

  .section,
  .doc-shell,
  .doc-head,
  .footer {
    width: min(100% - 22px, var(--wrap));
  }

  .brand span {
    max-width: 180px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .mode-head {
    gap: 12px;
  }

  .mode-icon {
    width: 54px;
    height: 54px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
