/* CoM — palette lifted from the logo: gold leaf, dragon red, moss, river blue, on a warm night. */
:root {
  --night: #0c0806;
  --night-2: #140d09;
  --ember: #1d100a;
  --forest: #10160c;
  --stone: #241a12;
  --stone-hi: #33261a;
  --seam: #4a3722;
  --gold: #e3b04b;
  --gold-hi: #f8dc8a;
  --gold-lo: #8c6420;
  --red: #b3271c;
  --red-hi: #e5492f;
  --moss: #6f9140;
  --river: #7fa3d6;
  --bone: #efe4cc;
  --dust: #b9a98c;
  --parch: #ead9b0;
  --parch-lo: #d3bd8c;
  --ink: #2a1a0e;
  --ink-soft: #5b4630;
  --display: "Pirata One", "UnifrakturCook", "Old English Text MT", Georgia, serif;
  --body: "Alegreya", "Iowan Old Style", Georgia, serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--gold);
  text-shadow: 0 2px 0 #3b2608, 0 0 34px rgba(227, 176, 75, .22);
  text-wrap: balance;
}
h3 { font-family: var(--body); font-weight: 700; font-size: 1.18rem; line-height: 1.25; color: var(--bone); }
.intro { color: var(--dust); font-size: 1.14rem; max-width: 62ch; margin-top: 14px; text-wrap: pretty; }
.cmd { font-weight: 700; color: var(--gold-hi); white-space: nowrap; }

/* Gold rule with a ruby, echoing the gem at the foot of the logo */
.rule { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; max-width: 320px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; }
.rule::before { background: linear-gradient(90deg, transparent, var(--gold-lo)); }
.rule::after { background: linear-gradient(90deg, var(--gold-lo), transparent); }
.rule i {
  width: 11px; height: 11px; transform: rotate(45deg); flex: none;
  background: radial-gradient(circle at 35% 30%, #ff8a6e, var(--red) 55%, #5b0f0a);
  box-shadow: 0 0 0 2px var(--night), 0 0 0 3px var(--gold-lo), 0 0 14px rgba(229, 73, 47, .55);
}

/* ───────── Top bar ───────── */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color .25s, box-shadow .25s; padding-top: env(safe-area-inset-top, 0); }
.bar-solid { background: rgba(12, 8, 6, .93); box-shadow: 0 1px 0 var(--seam); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bar-in { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark {
  font-family: var(--display); font-size: 1.9rem; line-height: 1; text-decoration: none;
  color: var(--gold); text-shadow: 0 2px 0 #3b2608;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.bar-solid .mark { opacity: 1; transform: none; }
.menu-btn {
  font: 700 .95rem/1 var(--body); color: var(--bone); cursor: pointer;
  background: rgba(12, 8, 6, .55); border: 1px solid var(--seam); border-radius: 4px; padding: 10px 14px;
}
.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column;
  background: rgba(12, 8, 6, .97); border-bottom: 1px solid var(--seam);
  padding: 6px var(--gutter) 18px;
}
.menu-open { display: flex; }
.menu a { color: var(--bone); text-decoration: none; padding: 13px 2px; border-bottom: 1px solid rgba(74, 55, 34, .5); font-size: 1.08rem; }
.menu a:hover { color: var(--gold-hi); }
.menu .menu-play { border: 0; margin-top: 14px; text-align: center; color: #241405; font-weight: 700; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-radius: 4px; }
.menu .menu-play:hover { color: #241405; filter: brightness(1.06); }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 26px; background: none; border: 0; padding: 0; }
  .menu a { border: 0; padding: 6px 0; font-size: 1rem; color: var(--dust); }
  .menu .menu-play { margin: 0 0 0 6px; padding: 9px 18px; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.06rem/1 var(--body); text-decoration: none;
  padding: 16px 26px; border-radius: 4px; min-height: 52px;
  transition: filter .15s, transform .1s, background-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  color: #241405;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, #c08f33 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px #6a4a14, 0 3px 0 #5a3d10, 0 10px 28px rgba(227, 176, 75, .18);
}
.btn-gold:hover { color: #241405; filter: brightness(1.07); }
.btn-line { color: var(--gold-hi); background: rgba(12, 8, 6, .5); box-shadow: inset 0 0 0 1px var(--gold-lo); }
.btn-line:hover { color: #fff; background: rgba(227, 176, 75, .12); }

.copy {
  font: 700 .9rem/1 var(--body); cursor: pointer; white-space: nowrap;
  color: var(--gold-hi); background: transparent; border: 1px solid var(--gold-lo); border-radius: 3px; padding: 9px 12px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.copy:hover { background: rgba(227, 176, 75, .14); }
.copy.copied { color: #cfe8a8; border-color: var(--moss); }

/* ───────── Hero ───────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: grid; place-items: center;
  padding: 74px 0 56px;
  background:
    radial-gradient(60% 46% at 30% 26%, rgba(179, 39, 28, .34), transparent 70%),
    radial-gradient(52% 44% at 76% 30%, rgba(86, 116, 44, .26), transparent 70%),
    radial-gradient(80% 50% at 50% 62%, rgba(227, 176, 75, .13), transparent 72%),
    linear-gradient(180deg, #080504 0%, var(--night) 55%, var(--night-2) 100%);
  overflow: hidden;
}
.hero::after { /* fade into the page */
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--night));
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-in { width: min(820px, 100% - 2 * var(--gutter)); text-align: center; display: grid; justify-items: center; }
.hero-logo {
  --logo-w: min(94vw, 780px, 70svh);
  width: var(--logo-w); max-width: none;
  margin: 0 calc((100% - var(--logo-w)) / 2) -2%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .65));
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero h1 {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(1.45rem, 4.4vw, 2.15rem); line-height: 1.22;
  color: var(--bone); max-width: 24ch; text-wrap: balance;
  animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-sub { color: var(--dust); max-width: 54ch; margin-top: 14px; font-size: 1.1rem; text-wrap: pretty; animation: rise 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.address {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  padding: 12px 14px 12px 18px;
  background: linear-gradient(180deg, rgba(36, 26, 18, .92), rgba(20, 13, 9, .92));
  border: 1px solid var(--seam); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 30px rgba(0, 0, 0, .45);
  animation: rise 1s .35s cubic-bezier(.2, .7, .2, 1) both;
}
.address-label { color: var(--dust); font-size: .95rem; }
.address-value { font-weight: 700; font-size: 1.22rem; color: var(--gold-hi); font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; }
.address-sep { width: 1px; height: 22px; background: var(--seam); margin-inline: 4px; }
.address .copy { margin-left: 6px; }

.hero-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: rise 1s .45s cubic-bezier(.2, .7, .2, 1) both; }

@media (max-width: 520px) {
  .hero { padding-top: 66px; }
  .address { width: 100%; }
  .address .copy { width: 100%; margin: 8px 0 0; padding: 12px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ───────── Bands ───────── */
.band { padding: clamp(64px, 10vw, 118px) 0; position: relative; }
.band-forest { background: radial-gradient(70% 60% at 85% 0%, rgba(86, 116, 44, .16), transparent 70%), linear-gradient(180deg, var(--night), var(--forest) 30%, var(--forest) 70%, var(--night)); }
.band-ember { background: radial-gradient(70% 60% at 10% 0%, rgba(179, 39, 28, .16), transparent 70%), linear-gradient(180deg, var(--night), var(--ember) 30%, var(--ember) 70%, var(--night)); }

/* World: four statements, divided by seams rather than boxed */
.pillars { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid var(--seam); }
.pillar { padding: 26px 0; border-bottom: 1px solid var(--seam); }
.pillar h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; color: var(--bone); letter-spacing: .01em; }
.pillar p { color: var(--dust); margin-top: 8px; max-width: 46ch; }
@media (min-width: 760px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { padding: 34px 40px 34px 0; }
  .pillar:nth-child(even) { padding: 34px 0 34px 40px; border-left: 1px solid var(--seam); }
}

/* Progression */
.two { display: grid; gap: 44px; }
.facts { margin-top: 34px; display: grid; gap: 22px; }
.facts dt { font-weight: 700; font-size: 1.16rem; color: var(--gold-hi); }
.facts dd { color: var(--dust); margin-top: 2px; max-width: 54ch; }
@media (min-width: 960px) {
  .two { grid-template-columns: 1.25fr .85fr; gap: 72px; align-items: start; }
  .gump { position: sticky; top: 96px; }
}

/* The skill window, drawn like an in-game gump */
.gump {
  width: 100%; max-width: 400px; justify-self: center;
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 30%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #3a2c1e, #281d13);
  border: 2px solid #17100a; border-radius: 4px;
  box-shadow: inset 0 0 0 1px #6b5233, inset 0 0 0 3px #1c130c, inset 0 0 0 4px rgba(227, 176, 75, .35), 0 24px 60px rgba(0, 0, 0, .6);
}
.gump figcaption { font-family: var(--display); font-size: 1.7rem; color: var(--gold); text-align: center; text-shadow: 0 2px 0 #201206; padding-bottom: 10px; border-bottom: 1px solid rgba(227, 176, 75, .3); margin-bottom: 8px; }
.gump-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 4px; border-bottom: 1px dotted rgba(239, 228, 204, .13); }
.gump-list li:last-child { border-bottom: 0; }
.gump-list b { font-variant-numeric: tabular-nums lining-nums; color: var(--gold-hi); }
.gump-total { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 14px; padding: 8px 10px; background: rgba(0, 0, 0, .34); border: 1px solid rgba(227, 176, 75, .32); border-radius: 3px; font-weight: 700; }
.gump-total b { color: var(--gold-hi); font-variant-numeric: tabular-nums lining-nums; }
.gump-free li span, .gump-free b { color: var(--river); }
.gump-total-free { margin-bottom: 0; border-color: rgba(127, 163, 214, .4); }
.gump-total-free span, .gump-total-free b { color: var(--river); }

/* Endgame */
.feature h3, .wanted-name, .ledger-title { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.feature h3 { font-size: 2.1rem; color: var(--gold-hi); line-height: 1.05; }
.feature p { color: var(--dust); margin-top: 12px; max-width: 58ch; }
.feature-foot { color: var(--bone) !important; }

.feature-atlas {
  margin-top: 46px; padding: 26px 22px; display: grid; gap: 30px;
  background: linear-gradient(135deg, rgba(36, 26, 18, .9), rgba(16, 22, 12, .9));
  border: 1px solid var(--seam); border-radius: 6px; position: relative;
}
.feature-atlas::before, .feature-atlas::after { /* gold corner brackets */
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold-lo); pointer-events: none;
}
.feature-atlas::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.feature-atlas::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
@media (min-width: 900px) { .feature-atlas { grid-template-columns: 1fr 1fr; gap: 56px; padding: 44px; align-items: center; } }

.tiers-row { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; align-items: end; height: 120px; }
.tiers-row i { display: block; border-radius: 2px 2px 0 0; background: var(--c); height: var(--h); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.tiers-row i:nth-child(1)  { --h: 22%; --c: #5f7d38; }
.tiers-row i:nth-child(2)  { --h: 27%; --c: #6f8a3a; }
.tiers-row i:nth-child(3)  { --h: 32%; --c: #82963c; }
.tiers-row i:nth-child(4)  { --h: 37%; --c: #97a03e; }
.tiers-row i:nth-child(5)  { --h: 42%; --c: #ada841; }
.tiers-row i:nth-child(6)  { --h: 47%; --c: #c4ae44; }
.tiers-row i:nth-child(7)  { --h: 52%; --c: #d8b047; }
.tiers-row i:nth-child(8)  { --h: 57%; --c: #e3ab48; }
.tiers-row i:nth-child(9)  { --h: 62%; --c: #e59d44; }
.tiers-row i:nth-child(10) { --h: 67%; --c: #e58c40; }
.tiers-row i:nth-child(11) { --h: 73%; --c: #e3783a; }
.tiers-row i:nth-child(12) { --h: 79%; --c: #de6535; }
.tiers-row i:nth-child(13) { --h: 85%; --c: #d6532f; }
.tiers-row i:nth-child(14) { --h: 90%; --c: #cb4229; }
.tiers-row i:nth-child(15) { --h: 95%; --c: #bf3322; }
.tiers-row i:nth-child(16) { --h: 100%; --c: #b3271c; }
.tiers-row i:nth-child(n+11) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 16px rgba(229, 73, 47, .35); }
.tiers-legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--seam); font-size: .95rem; color: var(--bone); font-weight: 700; }
.tiers-mid { color: var(--dust); font-weight: 400; text-align: center; }
.tiers-note { color: var(--dust); font-size: 1rem; margin-top: 10px !important; }

.feature-pair { display: grid; gap: 34px; margin-top: 46px; }
.feature-paragon { padding-left: 20px; border-left: 2px solid var(--gold-lo); }
@media (min-width: 900px) { .feature-pair { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; } .feature-paragon { padding-left: 32px; } }

/* A bounty notice nailed over the dark page */
.wanted {
  position: relative; color: var(--ink); text-align: center;
  padding: 30px 24px 26px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 248, 225, .55), transparent 60%),
    linear-gradient(180deg, var(--parch), var(--parch-lo));
  box-shadow: inset 0 0 46px rgba(110, 70, 20, .38), 0 22px 50px rgba(0, 0, 0, .6);
  transform: rotate(-1.2deg);
  clip-path: polygon(0 1.5%, 3% 0, 22% 1.2%, 41% 0, 63% 1%, 84% 0, 100% 1.6%, 99.2% 24%, 100% 52%, 99% 78%, 100% 98.4%, 80% 100%, 58% 98.8%, 36% 100%, 14% 99%, 0 100%, .8% 70%, 0 38%);
}
.wanted::before { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b9b3a6, #4c463c 70%); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.wanted-top { font-family: var(--display); font-size: 3.3rem; line-height: 1; color: var(--red); margin-top: 10px; letter-spacing: .03em; }
.wanted-name { font-size: 1.5rem; line-height: 1.15; margin-top: 6px; padding-bottom: 14px; border-bottom: 2px solid rgba(42, 26, 14, .55); }
.wanted p:not(.wanted-top):not(.wanted-name) { margin-top: 14px; color: var(--ink); }
.wanted-reward span { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--red); }
@media (prefers-reduced-motion: no-preference) { .wanted { transition: transform .3s; } .wanted:hover { transform: rotate(0deg) scale(1.01); } }

.ledger-title { font-size: 2.1rem; color: var(--gold-hi); margin-top: 64px; }
.ledger { margin-top: 18px; border-top: 1px solid var(--seam); }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--seam); }
.ledger-name { font-weight: 700; color: var(--bone); font-size: 1.12rem; }
.ledger-num { font-weight: 700; color: var(--gold-hi); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.ledger-what { grid-column: 1 / -1; grid-row: 2; color: var(--dust); max-width: 62ch; }
@media (min-width: 820px) {
  .ledger-row { grid-template-columns: 240px 1fr 170px; gap: 24px; align-items: baseline; padding: 18px 0; }
  .ledger-what { grid-column: auto; grid-row: auto; }
}

/* Towns */
.towns { margin-top: 44px; display: grid; gap: 38px; }
.town h3 { font-family: var(--display); font-weight: 400; font-size: 2.3rem; color: var(--gold-hi); line-height: 1; padding-bottom: 14px; border-bottom: 1px solid var(--gold-lo); }
.town li { padding: 13px 0; border-bottom: 1px solid rgba(74, 55, 34, .7); color: var(--dust); }
.town li b { display: block; color: var(--bone); }
@media (min-width: 820px) { .towns { grid-template-columns: 1fr 1fr; gap: 64px; } }

.comforts { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--seam); border: 1px solid var(--seam); border-radius: 6px; overflow: hidden; }
.comforts li { background: var(--night-2); padding: 18px 16px; color: var(--dust); font-size: 1rem; line-height: 1.35; }
.comforts b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--gold); line-height: 1.1; margin-bottom: 4px; }
@media (min-width: 900px) { .comforts { grid-template-columns: repeat(4, 1fr); } .comforts li { padding: 24px 22px; } }

/* Connect: a parchment scroll on wooden rods */
.band-scroll { padding-block: clamp(40px, 7vw, 80px); }
.scroll {
  position: relative; max-width: 800px; margin: 22px auto; color: var(--ink);
  padding: clamp(40px, 7vw, 66px) clamp(20px, 6vw, 64px);
  background:
    radial-gradient(90% 40% at 50% 0%, rgba(255, 250, 232, .7), transparent 70%),
    radial-gradient(90% 40% at 50% 100%, rgba(150, 105, 45, .25), transparent 70%),
    linear-gradient(90deg, rgba(120, 80, 30, .30), transparent 7%, transparent 93%, rgba(120, 80, 30, .30)),
    var(--parch);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
}
.scroll::before, .scroll::after {
  content: ""; position: absolute; left: -14px; right: -14px; height: 22px; border-radius: 11px;
  background: linear-gradient(180deg, #7a5226 0%, #c59a55 28%, #6a431c 62%, #3a230e 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .55), inset 22px 0 0 -8px #e3b04b, inset -22px 0 0 -8px #e3b04b;
}
.scroll::before { top: -11px; }
.scroll::after { bottom: -11px; }
.scroll h2 { color: var(--ink); text-shadow: none; text-align: center; }
.scroll-intro { text-align: center; color: var(--ink-soft); font-size: 1.14rem; margin-top: 10px; }
.scroll a { color: #7a1c12; font-weight: 700; }
.scroll a:hover { color: var(--red); }
.scroll :focus-visible { outline-color: #7a1c12; }

.steps { counter-reset: step; margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 20px 0 20px 62px; border-top: 1px solid rgba(42, 26, 14, .22); }
.steps li:last-child { border-bottom: 1px solid rgba(42, 26, 14, .22); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px;
  font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--red); width: 46px; text-align: center;
}
.steps h3 { color: var(--ink); font-size: 1.22rem; }
.steps p { color: var(--ink-soft); margin-top: 3px; }
.plate { margin-top: 12px; display: grid; gap: 8px; }
.plate div { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; background: rgba(42, 26, 14, .09); border: 1px solid rgba(42, 26, 14, .28); border-radius: 4px; }
.plate span { color: var(--ink-soft); width: 56px; flex: none; }
.plate b { font-size: 1.16rem; font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; flex: 1; min-width: 0; }
.copy-ink { color: var(--ink); border-color: rgba(42, 26, 14, .5); }
.copy-ink:hover { background: rgba(42, 26, 14, .1); }
.copy-ink.copied { color: #2f5d1c; border-color: #2f5d1c; }
.scroll-foot { margin-top: 24px; color: var(--ink-soft); text-align: center; font-style: italic; }

/* Commands */
.cmds { margin-top: 38px; display: grid; gap: 0 56px; border-top: 1px solid var(--seam); }
.cmds div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--seam); }
.cmds dt { font-weight: 700; color: var(--gold-hi); font-size: 1.12rem; }
.cmds dd { color: var(--dust); }
@media (min-width: 560px) { .cmds div { grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; } }
@media (min-width: 980px) { .cmds { grid-template-columns: 1fr 1fr; } }

/* Rules */
.rules { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--seam); }
.rules li { padding: 18px 0 18px 34px; border-bottom: 1px solid var(--seam); color: var(--dust); position: relative; }
.rules li::before { content: ""; position: absolute; left: 6px; top: 27px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px rgba(227, 176, 75, .5); }
.rules b { color: var(--bone); }
@media (min-width: 820px) { .rules { grid-template-columns: 1fr 1fr; column-gap: 64px; } }

/* Join */
.join {
  text-align: center; padding: clamp(40px, 8vw, 80px) 0 clamp(70px, 10vw, 110px);
  background: radial-gradient(60% 60% at 50% 30%, rgba(227, 176, 75, .14), transparent 70%), radial-gradient(50% 50% at 30% 20%, rgba(179, 39, 28, .16), transparent 70%), var(--night);
}
.join .wrap { display: grid; justify-items: center; }
.join-logo { width: min(74vw, 400px); margin-bottom: -6px; }
.join p { color: var(--dust); margin-top: 12px; max-width: 46ch; }

.foot { border-top: 1px solid var(--seam); padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot p { color: #85765f; font-size: .92rem; max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  .steps li { padding-left: 48px; }
  .steps li::before { width: 34px; font-size: 2.6rem; }
  .plate span { width: 48px; }
  .plate div { gap: 8px; padding-left: 10px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero .hero-sub { margin-top: 6px; }
