/* New School 99: the community's front porch. Carved gold and emerald from the logo, warm and calm.
   The live realm (players, hiscores, recent deeds, news) leads; the footage is a short taste further down. */
:root {
  --abyss: #050a09;
  --basalt: #0c1513;
  --slate: #13201d;
  --hearth: #17130c;
  --line: rgba(228, 185, 100, .3);
  --line-soft: rgba(239, 231, 212, .1);
  --gilt: #e4b964;
  --gilt-hi: #fff0c2;
  --gilt-lo: #9a6a2c;
  --emerald: #2fd38a;
  --emerald-deep: #0f6b45;
  --ember: #ff6a2b;
  --arcane: #7de2f0;
  --parchment: #efe7d4;
  --ash: #a8a291;
  --dim: #78756b;
  --down: #e5a04d;
  --discord: #5865f2;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gold-text: linear-gradient(180deg, var(--gilt-hi) 8%, var(--gilt) 52%, #b98236 100%);
  --panel-bg: linear-gradient(180deg, rgba(23, 19, 12, .72), rgba(12, 21, 19, .72));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  background:
    radial-gradient(60% 40% at 20% 30%, rgba(228, 185, 100, .05), transparent 70%) fixed,
    radial-gradient(50% 40% at 85% 70%, rgba(47, 211, 138, .04), transparent 70%) fixed,
    var(--abyss);
  color: var(--parchment);
  font: 400 clamp(16px, .3vw + 14.5px, 17.5px)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gilt-hi); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gilt); color: var(--abyss); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Carved-gold display type. The gradient repeats once per line so every line of a heading reads as cast metal. */
h2, .hero-tag {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .005em;
  text-wrap: balance;
  color: var(--gilt-hi);
  background: var(--gold-text) 0 0 / 100% 1.06em repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 { font-size: clamp(30px, 2.4vw + 16px, 54px); filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .5)); }
h2.h-small { font-size: clamp(21px, .8vw + 15px, 27px); font-weight: 800; filter: none; }
.lede { margin-top: 12px; max-width: 54ch; font-size: clamp(16px, .3vw + 14.5px, 18px); color: rgba(239, 231, 212, .8); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid transparent; font: 700 16px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; overflow: hidden; transition: transform .2s var(--ease), background-color .2s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ico { width: 20px; height: 20px; flex: none; }
.btn-gold {
  color: #1d1305;
  background: linear-gradient(180deg, #ffe9a8 0%, var(--gilt) 45%, #b5802f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 55, 10, .5);
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-xl { padding: 13px 26px 13px 20px; gap: 14px; }
.btn-xl .btn-ico { width: 24px; height: 24px; }
.btn-stack { display: grid; text-align: left; gap: 4px; }
.btn-main { font: 800 18px/1 var(--sans); }
.btn-sub { font: 600 12.5px/1 var(--sans); opacity: .78; }
.btn-ghost { color: var(--gilt-hi); background: rgba(228, 185, 100, .08); border-color: var(--line); }
.btn-ghost:hover { background: rgba(228, 185, 100, .16); }
.btn-discord { color: #fff; background: var(--discord); }
.btn-discord:hover { background: #6a75f5; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 52px;
  font: 600 15px/1 var(--sans); color: var(--parchment); text-decoration: none;
  background: rgba(5, 10, 9, .55); border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, background-color .2s;
}
.chip svg { width: 18px; height: 18px; }
.chip:hover { border-color: var(--line); background: rgba(5, 10, 9, .75); }
.chip-discord svg { color: #8f98ff; }

/* ---------- status dot (realm, pill) ---------- */
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.is-up .dot { background: var(--emerald); box-shadow: 0 0 0 0 rgba(47, 211, 138, .5); animation: breathe 2.8s ease-in-out infinite; }
.is-down .dot { background: var(--down); }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 211, 138, .45); } 50% { box-shadow: 0 0 0 6px rgba(47, 211, 138, 0); } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.nav::before { content: ''; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 9, .75), transparent); pointer-events: none; transition: opacity .3s; }
.nav.is-solid { background: rgba(5, 10, 9, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-soft); }
.nav.is-solid::before { opacity: 0; }
.nav-inner { width: min(100% - 2 * var(--gutter), 1320px); margin: 0 auto; height: 66px; display: flex; align-items: center; gap: 24px; }
.nav-brand img { width: 100px; height: auto; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 12px; font: 600 15px/1 var(--sans); color: rgba(239, 231, 212, .78); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--gilt-hi); }
.nav-links a.is-current::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--gilt); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-discord { display: grid; place-items: center; width: 40px; height: 40px; color: #aab0ff; }
.nav-discord svg { width: 22px; height: 22px; }
.nav-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-soft); background: rgba(5, 10, 9, .5); color: var(--parchment); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- hero: shorter and softer than a trailer ---------- */
.hero { position: relative; min-height: min(76vh, 760px); min-height: min(76svh, 760px); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #020403 url(../../media/hero-reel.webp) center / cover no-repeat; }
.hero-video, .reel-clip, .clip-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The capture crop leaves a few pixels of client chrome on the right edge of the hero frames: scale from the left to hide them. */
.hero-video, .hero-media .clip-fallback { transform-origin: 0 50%; transform: scale(1.03); }
video.is-fallback { visibility: hidden; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 9, .6) 0, rgba(5, 10, 9, 0) 18%),
    linear-gradient(0deg, var(--abyss) 0, rgba(5, 10, 9, .82) 16%, rgba(5, 10, 9, .35) 40%, rgba(5, 10, 9, .12) 60%),
    linear-gradient(90deg, rgba(5, 10, 9, .7) 0, rgba(5, 10, 9, .25) 40%, rgba(5, 10, 9, 0) 60%),
    linear-gradient(160deg, rgba(228, 185, 100, .1), transparent 50%);
}
.hero-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: 110px 0 clamp(70px, 9vh, 110px); }
.hero-logo { margin: 0 0 0 -6px; }
.hero-logo img { width: clamp(160px, 13vw, 210px); height: auto; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .75)); }
.hero-tag { margin-top: 8px; font-size: clamp(25px, 1.2vw + 17px, 40px); filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .8)); }
.hero-sub { margin-top: 10px; max-width: 52ch; font-size: clamp(16px, .3vw + 14px, 18px); font-weight: 500; color: rgba(239, 231, 212, .9); text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.hero-cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.online-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px;
  font: 600 15px/1 var(--sans); color: var(--parchment); text-decoration: none;
  background: rgba(5, 10, 9, .55); border: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.online-pill b { color: var(--gilt-hi); font-variant-numeric: tabular-nums; }
.online-pill:hover { border-color: var(--line); }

/* ---------- the realm right now ---------- */
.realm { position: relative; z-index: 3; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: -34px auto 0; }
.realm-card {
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2.4vw, 30px);
  background: var(--panel-bg); border: 1px solid var(--line-soft); border-top: 2px solid rgba(228, 185, 100, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.realm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.status { display: inline-flex; align-items: center; gap: 9px; font: 700 15px/1.2 var(--cond); letter-spacing: .03em; color: var(--ash); }
.status.is-up { color: var(--emerald); }
.status.is-down { color: var(--down); }
.realm-body { margin-top: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px clamp(24px, 4vw, 56px); align-items: center; }
.realm-count { display: grid; gap: 2px; min-width: 9ch; }
.count-num { font: 800 clamp(44px, 3vw + 26px, 64px)/1 var(--display); color: var(--gilt-hi); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(228, 185, 100, .25); }
.count-label { font: 600 15px/1.2 var(--cond); letter-spacing: .04em; color: var(--ash); }
.worlds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-height: 64px; }
.world { display: grid; grid-template-columns: minmax(8ch, 14ch) minmax(0, 1fr) 10ch; align-items: center; gap: 14px; font-size: 15px; }
.w-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-name small { margin-left: 6px; color: var(--dim); font-weight: 500; }
.w-meter { position: relative; height: 8px; background: rgba(239, 231, 212, .07); border-radius: 4px; overflow: hidden; }
.w-meter i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald)); transition: width .8s var(--ease); }
.world.is-off .w-meter i { background: var(--dim); }
.w-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ash); white-space: nowrap; }
.world.is-off .w-num { color: var(--down); }
.realm-foot { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--dim); }
.realm-note { margin-top: 12px; padding: 10px 14px; font-size: 15px; color: var(--parchment); background: rgba(229, 160, 77, .08); border-left: 2px solid var(--down); }
.sample-badge { padding: 3px 8px; font: 700 12px/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--abyss); background: var(--arcane); }
.is-skeleton .w-num, .is-skeleton .w-name { color: var(--dim); }

/* ---------- town square: hiscores + recent side by side, news full width below ---------- */
/* On desktop the two live boards share one top and one bottom. Hiscores is always ten rows tall, so it sets the
   row height; Recent fills that height (a full feed spreads its rows evenly, and only an unusually long feed scrolls).
   News sits under both as cards, each clamped to a few lines so one long patch note never stretches the page. */
.town { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: clamp(28px, 3vw, 44px) auto 0; }
.town-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "hs recent" "news news";
  gap: 18px; align-items: stretch;
}
.panel-hiscores { grid-area: hs; }
.panel-recent { grid-area: recent; display: flex; flex-direction: column; }
.panel-news { grid-area: news; }
.panel { padding: clamp(16px, 1.8vw, 24px) clamp(16px, 2vw, 26px); background: var(--panel-bg); border: 1px solid var(--line-soft); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 51px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.panel-link { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--sans); color: var(--ash); text-decoration: none; transition: color .2s; }
.panel-link svg { width: 18px; height: 18px; color: #8f98ff; }
.panel-link:hover { color: var(--gilt-hi); }
.empty { padding: 14px 0 4px; color: var(--ash); font-size: 15px; list-style: none; }
.empty a { color: var(--gilt-hi); }

.skill-pick { position: relative; display: inline-flex; }
.skill-pick select {
  appearance: none; -webkit-appearance: none; min-width: 160px; padding: 9px 38px 9px 14px; font: 600 15px/1.2 var(--sans); color: var(--parchment);
  background: rgba(5, 10, 9, .6); border: 1px solid var(--line); border-radius: 0; cursor: pointer;
}
.skill-pick select:hover { border-color: rgba(228, 185, 100, .55); }
.skill-pick select option { color: #111; }
.skill-pick svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--gilt); pointer-events: none; }

.hs { width: 100%; border-collapse: collapse; font-size: 15.5px; table-layout: fixed; }
.hs th { padding: 12px 6px 8px; text-align: left; font: 700 13px/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.hs td { padding: 0 6px; height: 42px; border-top: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs th:first-child, .hs td:first-child { padding-left: 0; }
.hs th:last-child, .hs td:last-child { padding-right: 0; }
.hs .r { width: 3em; font-weight: 800; color: var(--ash); font-variant-numeric: tabular-nums; }
.hs .num { text-align: right; font-variant-numeric: tabular-nums; }
.hs th.num:nth-child(3) { width: 5.5em; }
.hs th.num:nth-child(4) { width: 8em; }
.hs td.num:last-child { color: var(--ash); }
.hs .name { font-weight: 600; }
.hs tr.top-1 .r { color: #f5cf6a; } .hs tr.top-2 .r { color: #cfd6dd; } .hs tr.top-3 .r { color: #d9935a; }
.hs tr.top-1 .name { color: var(--gilt-hi); }
.hs .medal { display: inline-block; width: 8px; height: 8px; margin-right: 8px; transform: rotate(45deg) translateY(-1px); background: currentColor; }
.hs .is-skeleton i, .feed .is-skeleton i { display: inline-block; height: 10px; width: 60%; border-radius: 3px; background: rgba(239, 231, 212, .07); vertical-align: middle; }
.hs .is-skeleton .num i { width: 70%; }
.hs .is-skeleton td { color: var(--dim); }
.hs-empty td { padding: 0; color: var(--ash); white-space: normal; }

.feed, .news { list-style: none; margin: 0; padding: 0; }
/* contain: size keeps the feed from adding height of its own: it takes exactly what the hiscores leave. */
.panel-recent .feed {
  flex: 1 1 auto; display: flex; flex-direction: column; contain: size; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(228, 185, 100, .3) transparent;
}
.feed li:not(.empty) { flex: 0 0 auto; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; line-height: 1.4; }
.feed:has(> li:nth-child(7)) > li:not(.empty) { flex-grow: 1; }
/* A short feed (under seven deeds) would leave a blank block beside the hiscores: fill it with a quiet "more to come" slot. */
@media (min-width: 961px) {
  .panel-recent .feed:not(:has(> li:nth-child(7)))::after {
    content: 'New deeds show up here as they happen';
    content: 'New deeds show up here as they happen' / '';
    flex: 1 1 auto; min-height: 0; overflow: hidden; display: grid; place-items: center; margin-top: 10px; padding: 0 16px;
    text-align: center; border: 1px dashed var(--line-soft); background: rgba(239, 231, 212, .02);
    font: 600 13px/1.3 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--dim);
  }
}
.panel-recent .feed-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.feed li:first-child { border-top: 0; }
.feed .ico { display: grid; place-items: center; width: 28px; height: 28px; color: var(--gilt); background: rgba(228, 185, 100, .08); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.feed .ico svg { width: 14px; height: 14px; }
.feed .ico.boss { color: var(--ember); background: rgba(255, 106, 43, .1); }
.feed .ico.god { color: var(--arcane); background: rgba(125, 226, 240, .1); }
.feed b { color: var(--gilt-hi); font-weight: 600; }
.feed time, .news time { font: 600 13px/1 var(--cond); letter-spacing: .03em; color: var(--dim); white-space: nowrap; }
.feed time { min-width: 7ch; text-align: right; }

/* Wide: one column per card (up to four). Medium: two columns, an odd last card spans both. Phone: one column. */
.news { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
@media (min-width: 561px) and (max-width: 1199px) {
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .news { grid-template-columns: minmax(0, 1fr); } }
.news > .empty { grid-column: 1 / -1; padding-top: 0; }
.news-item {
  display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 14px;
  background: rgba(239, 231, 212, .035); border: 1px solid var(--line-soft); border-top: 2px solid rgba(228, 185, 100, .22);
}
.news-item:first-child { border-top-color: rgba(228, 185, 100, .65); }
.news time { display: block; margin-bottom: 6px; }
.news h3 { font: 700 17px/1.3 var(--sans); color: var(--parchment); letter-spacing: 0; }
.news h3 a { text-decoration: none; }
.news h3 a:hover { color: var(--gilt-hi); text-decoration: underline; text-underline-offset: 3px; }
.news-body { margin: 8px 0 0; padding: 0; max-height: calc(4 * 1.5em); overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--ash); overflow-wrap: anywhere; }
.news-points { list-style: none; }
.news-points li { position: relative; padding-left: 16px; }
.news-points li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gilt-lo); }
.news-item.has-more:not(.is-open) .news-body {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1.5em), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 1.5em), transparent);
}
.news-item.is-open .news-body { max-height: none; }
.news-more {
  align-self: flex-start; margin-top: auto; padding: 10px 0 0; display: inline-flex; align-items: center; gap: 6px;
  font: 700 15px/1.2 var(--cond); letter-spacing: .03em; color: var(--gilt); background: none; border: 0; cursor: pointer;
}
.news-more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.news-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.news-more:hover { color: var(--gilt-hi); }

/* ---------- a taste of the game: one small player, three clips ---------- */
.moments { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: clamp(64px, 7vw, 110px) auto 0; }
.moments-head { margin-bottom: clamp(18px, 2vw, 28px); }
.reel { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 300px); gap: 14px; }
.reel-stage { position: relative; aspect-ratio: 16 / 9; background: #020403; overflow: hidden; border: 1px solid var(--line-soft); }
.reel-clip { background: #020403 center / cover no-repeat; opacity: 0; transition: opacity .5s var(--ease); }
.reel-clip.is-active { opacity: 1; z-index: 1; }
.reel-stage .clip-fallback { z-index: 1; }
.reel-tabs { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reel-tab {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 12px; row-gap: 3px;
  padding: 12px 16px; text-align: left; color: var(--parchment); cursor: pointer; font: inherit;
  background: rgba(239, 231, 212, .035); border: 1px solid var(--line-soft); overflow: hidden; transition: background-color .25s, border-color .25s;
}
.reel-tab svg { grid-row: 1 / 3; align-self: center; width: 28px; height: 28px; color: var(--ash); transition: color .25s; }
.rt-name { font: 700 18px/1.1 var(--cond); letter-spacing: .02em; }
.rt-line { font-size: 14px; line-height: 1.35; color: var(--ash); }
.rt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(239, 231, 212, .06); }
.rt-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gilt-lo), var(--gilt-hi)); }
.reel-tab:hover { background: rgba(239, 231, 212, .07); }
.reel-tab.is-active { background: linear-gradient(90deg, rgba(228, 185, 100, .16), rgba(228, 185, 100, .03)); border-color: rgba(228, 185, 100, .45); }
.reel-tab.is-active svg, .reel-tab.is-active .rt-name { color: var(--gilt-hi); }
.reel-tab.is-active .rt-bar i { animation: reelbar var(--reel-ms, 7000ms) linear forwards; }
.reel.is-held .reel-tab.is-active .rt-bar i { animation-play-state: paused; }
@keyframes reelbar { from { width: 0; } to { width: 100%; } }

.perks { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.perks li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
.perks svg { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--gilt); }
.perks b { font: 700 18px/1.25 var(--cond); letter-spacing: .02em; color: var(--parchment); }
.perks span { font-size: 15px; line-height: 1.45; color: var(--ash); }

/* ---------- join us ---------- */
.join { position: relative; margin-top: clamp(70px, 8vw, 120px); padding: clamp(60px, 7vw, 100px) 0; isolation: isolate; overflow: hidden; }
.join-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--abyss) 0, rgba(5, 10, 9, .72) 30%, rgba(5, 10, 9, .78) 70%, var(--abyss) 100%), #020403 url(../../media/sanctum.webp) center / cover; }
.join-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; }
.join-grid { margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.join-discord {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 22px; padding: 24px; text-decoration: none;
  background: linear-gradient(120deg, rgba(88, 101, 242, .38), rgba(12, 21, 19, .8) 70%); border: 1px solid rgba(88, 101, 242, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .25s var(--ease), border-color .25s;
}
.join-discord:hover { transform: translateY(-3px); border-color: rgba(143, 152, 255, .8); }
.jd-art { position: relative; aspect-ratio: 1; width: 100%; }
.jd-art::before { content: ''; position: absolute; inset: 14%; transform: rotate(45deg); border: 1px solid rgba(228, 185, 100, .35); }
.discord-mark { position: absolute; left: 50%; top: 50%; width: 38%; height: 38%; transform: translate(-50%, -50%); color: #fff; }
.sig { position: absolute; width: 20%; height: 20%; }
.s1 { left: 40%; top: 0; color: #f3d27a; } .s2 { right: 0; top: 40%; color: #ff5a3c; } .s3 { left: 40%; bottom: 0; color: var(--arcane); } .s4 { left: 0; top: 40%; color: #8fbf5a; }
.jd-copy { display: grid; gap: 6px; }
.jd-copy b { font: 800 clamp(20px, .8vw + 15px, 26px)/1.15 var(--display); color: #fff; }
.jd-copy span { font-size: 15px; color: rgba(239, 231, 212, .82); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 14px; text-align: center; text-decoration: none;
  background: rgba(12, 21, 19, .78); border: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), border-color .25s;
}
.platform > svg { width: 32px; height: 32px; color: var(--parchment); }
.platform-name { font: 800 20px/1.1 var(--display); color: var(--gilt-hi); }
.platform-note { font-size: 13.5px; color: var(--ash); }
.platform-cta { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1 var(--cond); letter-spacing: .03em; color: var(--emerald); }
.platform-cta svg { width: 18px; height: 18px; }
.platform:hover { transform: translateY(-3px); border-color: var(--line); }
.platform.is-primary { border-color: rgba(228, 185, 100, .6); box-shadow: 0 0 0 1px rgba(228, 185, 100, .2); }
.platform.is-soon { opacity: .7; }
.platform.is-soon .platform-cta { color: var(--ash); }

/* ---------- FAQ ---------- */
.faq { width: min(100% - 2 * var(--gutter), 860px); margin: clamp(50px, 6vw, 90px) auto clamp(60px, 7vw, 100px); }
.faq-list { margin-top: 16px; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gilt-hi); }
.faq summary svg { flex: none; width: 18px; height: 18px; color: var(--gilt); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 2px 18px; max-width: 70ch; color: rgba(239, 231, 212, .82); }
.faq details a { color: var(--gilt-hi); }

/* ---------- footer ---------- */
.footer { padding: 48px 0 36px; border-top: 1px solid var(--line-soft); background: #030706; }
.footer-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; display: grid; justify-items: center; gap: 16px; text-align: center; }
.footer-logo { width: 130px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-links a { font-weight: 600; color: rgba(239, 231, 212, .78); text-decoration: none; }
.footer-links a:hover { color: var(--gilt-hi); }
.fine { max-width: 62ch; font-size: 13.5px; color: var(--dim); }

/* ---------- dialog ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--parchment); max-width: min(480px, calc(100vw - 32px)); width: 100%; }
.modal::backdrop { background: rgba(2, 4, 3, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-card { position: relative; display: grid; justify-items: center; gap: 14px; padding: 36px 28px 28px; text-align: center; background: linear-gradient(180deg, var(--slate), var(--basalt)); border: 1px solid var(--line); }
.modal[open] .modal-card { animation: pop .35s var(--ease); }
@keyframes pop { from { transform: translateY(12px) scale(.97); opacity: 0; } }
.modal h2 { font-size: 26px; }
.modal p { color: var(--ash); }
.modal-sigil { width: 40px; height: 40px; color: var(--gilt); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ash); cursor: pointer; }
.modal-x svg { width: 20px; height: 20px; }
.modal-x:hover { color: var(--parchment); background: rgba(255, 255, 255, .06); }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- gentle reveal (JS adds .is-in) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px;
    background: rgba(5, 10, 9, .97); border-bottom: 1px solid var(--line-soft);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .nav-links a.is-current::after { display: none; }

  .join-grid { grid-template-columns: minmax(0, 1fr); }
  .town-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hs" "recent" "news"; }
  .panel-recent .feed { contain: none; overflow: visible; }
  .panel-recent .feed-text { display: block; -webkit-line-clamp: none; overflow: visible; }
  .reel { grid-template-columns: minmax(0, 1fr); }
  .reel-tabs { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rt-line { display: none; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav-brand img { width: 86px; }
  .nav-brand { transition: opacity .3s; }
  .nav:not(.is-solid) .nav-brand { opacity: 0; pointer-events: none; }
  .nav-actions .btn-sm { padding: 9px 12px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 96px 0 58px; }
  .hero-logo img { width: 140px; }
  .hero-tag { font-size: clamp(23px, 6.4vw, 28px); }
  .hero-sub { font-size: 15.5px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 10, 9, .6) 0, rgba(5, 10, 9, 0) 16%),
      linear-gradient(0deg, var(--abyss) 0, rgba(5, 10, 9, .86) 26%, rgba(5, 10, 9, .45) 55%, rgba(5, 10, 9, .2) 80%);
  }
  .hero-cta .btn-xl { flex: 1 1 100%; justify-content: flex-start; }
  .hero-cta .chip, .online-pill { flex: 1 1 0; justify-content: center; min-height: 48px; padding: 0 12px; font-size: 14px; }

  .realm { margin-top: -22px; }
  .realm-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .realm-count { display: flex; align-items: baseline; gap: 10px; }
  .world { grid-template-columns: minmax(0, 1fr) 9ch; gap: 6px 12px; }
  .w-meter { grid-column: 1 / -1; grid-row: 2; height: 6px; }

  .hs { font-size: 14.5px; }
  .hs td { height: 40px; }
  .hs th.num:nth-child(3) { width: 4.2em; }
  .hs th.num:nth-child(4) { width: 7.4em; }
  .skill-pick select { min-width: 140px; }
  .feed li:not(.empty) { gap: 10px; }
  .feed time { min-width: 0; }
  .news-item { padding: 14px 16px 12px; }

  .reel-tabs { gap: 6px; }
  .reel-tab { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 11px 6px 13px; text-align: center; }
  .reel-tab svg { display: none; }
  .rt-name { font-size: 15.5px; white-space: nowrap; }
  .perks { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .join-discord { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .platform { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 16px 18px; column-gap: 14px; }
  .platform > svg { width: 28px; height: 28px; }
  .platform-note { flex-basis: 100%; order: 3; }
  .platform-cta { margin: 0 0 0 auto; }
  .faq summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-up .dot { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .w-meter i, .reel-clip, .faq summary svg, .news-more svg, .btn, .platform, .join-discord { transition: none; }
}

/* Help pages */
/* /help/logs/: one column (860px), three numbered steps with a small CSS mock of what the player will see beside each,
   then what the file holds and hides, a safety callout and the by-hand / source / FAQ drawers. Shares the home page's
   tokens, nav, buttons, panels and FAQ drawers. */
.help { --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace; width: min(100% - 2 * var(--gutter), 860px); margin: 0 auto; padding: 112px 0 clamp(60px, 7vw, 100px); }
.help kbd {
  display: inline-block; padding: 1px 7px 2px; font: 600 .82em/1.4 var(--sans); color: var(--parchment); white-space: nowrap;
  background: rgba(239, 231, 212, .08); border: 1px solid rgba(239, 231, 212, .22); border-bottom-width: 2px; border-radius: 4px;
}
.help code.inline { padding: 1px 6px; font: 500 .9em/1.4 var(--mono); color: var(--gilt-hi); background: rgba(228, 185, 100, .09); overflow-wrap: anywhere; }
.help q { color: var(--parchment); }

.help-kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt); }
.help-kicker::before { content: ''; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gilt); }
.help-title {
  margin-top: 14px; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 2.4vw + 18px, 48px); line-height: 1.08; letter-spacing: .005em; text-wrap: balance;
  color: var(--gilt-hi); background: var(--gold-text) 0 0 / 100% 1.08em repeat-y; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .5));
}
.help-lede { max-width: 62ch; }
.help-facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.help-facts li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; font: 600 14.5px/1.2 var(--sans); background: rgba(239, 231, 212, .04); border: 1px solid var(--line-soft); }
.help-facts li::before { content: ''; flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: var(--emerald); }
.help-pc-note { display: none; margin-top: 18px; padding: 12px 14px; gap: 12px; align-items: flex-start; font-size: 15px; background: rgba(229, 160, 77, .09); border-left: 2px solid var(--down); }
.help-pc-note svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--down); }
.help-pc-note b { color: var(--gilt-hi); }
@media (max-width: 767px), (pointer: coarse) { .help-pc-note { display: flex; } }
.help-opens { display: flex; max-width: 72ch; margin-top: 18px; padding: 12px 16px; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; background: rgba(47, 211, 138, .07); border-left: 2px solid var(--emerald); }
.help-opens svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--emerald); }
.help-opens b { color: var(--gilt-hi); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: clamp(34px, 4vw, 54px) 0 0; padding: 0; display: grid; gap: clamp(20px, 2.4vw, 30px); }
.step {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 22px; padding: clamp(18px, 2.2vw, 28px);
  background: var(--panel-bg); border: 1px solid var(--line-soft); border-top: 2px solid rgba(228, 185, 100, .55);
}
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font: 900 24px/1 var(--display); color: #1d1305;
  background: radial-gradient(circle at 34% 28%, var(--gilt-hi) 0, var(--gilt) 46%, var(--gilt-lo) 100%);
  box-shadow: inset 0 -2px 0 rgba(90, 55, 10, .55), 0 0 0 3px var(--abyss), 0 0 0 4px rgba(228, 185, 100, .55), 0 8px 20px rgba(0, 0, 0, .5);
}
.step-main { min-width: 0; }
.step h2 { padding-top: 9px; font-size: clamp(22px, .9vw + 16px, 30px); filter: none; }
.step-cols { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 28px; align-items: start; }
.step-text { color: rgba(239, 231, 212, .88); }
.step-text p + p { margin-top: 12px; }
.step-text .step-trouble { padding: 10px 12px; font-size: 15px; color: var(--ash); background: rgba(239, 231, 212, .035); border-left: 2px solid var(--line); }
.step-trouble a, .help-detail a, .help-panel a { color: var(--gilt-hi); }
.ok-text { color: var(--emerald); }
.step-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* The command and its Copy button. Only the box scrolls sideways, never the page. */
.cmd { margin-top: 18px; display: flex; gap: 10px; align-items: stretch; }
.cmd-box {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 14px 16px; overflow-x: auto; overscroll-behavior-x: contain;
  background: #020706; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6);
  scrollbar-width: thin; scrollbar-color: rgba(228, 185, 100, .35) transparent;
}
.cmd-box:focus-visible { outline-offset: 2px; }
#cmd { white-space: pre; font: 500 14.5px/1.5 var(--mono); color: var(--gilt-hi); -webkit-user-select: all; user-select: all; }
.cmd-copy { flex: none; min-width: 132px; padding: 0 24px; font-size: 17px; }
.cmd-copy.is-copied { background: linear-gradient(180deg, #8ff0bf 0%, var(--emerald) 50%, var(--emerald-deep) 100%); color: #03140c; }
.cmd-status { margin-top: 8px; font: 600 14.5px/1.3 var(--sans); color: var(--emerald); }
.cmd-status:empty { height: 0; margin: 0; }
.cmd-status.is-warn { color: var(--down); }
.cmd-safe { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ash); }
.cmd-safe svg { flex: none; width: 18px; height: 18px; color: var(--gilt); }

/* ---------- the mock windows (pictures, hidden from screen readers; the caption says what they show) ---------- */
.shot { margin: 0; display: grid; gap: 9px; min-width: 0; }
.shot figcaption { font: 600 14px/1.3 var(--cond); letter-spacing: .04em; color: var(--dim); text-align: center; }
.mock { position: relative; overflow: hidden; border-radius: 8px; font: 400 12.5px/1.4 'Segoe UI', var(--sans); -webkit-user-select: none; user-select: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 22px 40px -20px rgba(0, 0, 0, .95); }
.mock p { margin: 0; }
.caret { display: inline-block; width: 1px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: currentColor; animation: caret 1.1s steps(1) infinite; }
.mock-ps .caret { width: .6em; height: 2px; vertical-align: baseline; }
@keyframes caret { 50% { opacity: 0; } }
.ps-tile { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; font: 700 12px/1 var(--mono); color: #fff; background: linear-gradient(135deg, #3a7fd6, #0e3a80); }
.ps-tile-lg { width: 46px; height: 46px; font-size: 17px; border-radius: 8px; }
.ps-tile-sm { width: 16px; height: 16px; font-size: 7px; border-radius: 3px; }

.mock-start { padding: 14px; color: #fff; background: #202020; }
.st-search { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; font-size: 13.5px; background: #2c2c2c; border-radius: 17px; box-shadow: inset 0 -2px 0 #4cc2ff; }
.st-search svg { width: 15px; height: 15px; color: #cfcfcf; }
.st-cols { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 10px; }
.st-label { margin: 2px 2px 7px; font-size: 11.5px; font-weight: 600; color: #cfcfcf; }
.st-label:not(:first-child) { margin-top: 12px; }
.st-hit { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: #353535; border-radius: 6px; }
.st-hit::before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 2px; background: #4cc2ff; }
.st-name { display: grid; min-width: 0; }
.st-name b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-name small, .st-right small { font-size: 11.5px; color: #bdbdbd; }
.st-row { display: flex; align-items: center; gap: 9px; padding: 6px 10px; font-size: 12px; color: #dcdcdc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-dot { flex: none; width: 14px; height: 14px; border-radius: 3px; background: #4a4a4a; }
.st-right { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 16px 10px 8px; text-align: center; background: #2a2a2a; border-radius: 6px; }
.st-right .ps-tile { margin-bottom: 6px; }
.st-right b { font-size: 13px; font-weight: 600; }
.st-open { justify-self: stretch; margin-top: 12px; padding: 7px 4px 0; font-size: 12px; text-align: left; border-top: 1px solid #3a3a3a; }

.mock-ps { color: #eeedf0; background: #012456; }
.mock-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding-left: 10px; font-size: 12px; color: #fff; background: #1f1f1f; }
.mock-bar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-ctl { margin-left: auto; display: flex; }
.mock-ctl i { position: relative; width: 36px; height: 30px; }
.mock-ctl i::before, .mock-ctl i::after { content: ''; position: absolute; left: 50%; top: 50%; }
.mock-ctl i:nth-child(1)::before { width: 10px; height: 1px; margin-left: -5px; background: #ddd; }
.mock-ctl i:nth-child(2)::before { width: 9px; height: 9px; margin: -5px 0 0 -5px; border: 1px solid #ddd; }
.mock-ctl i:nth-child(3)::before, .mock-ctl i:nth-child(3)::after { width: 12px; height: 1px; margin-left: -6px; background: #ddd; transform: rotate(45deg); }
.mock-ctl i:nth-child(3)::after { transform: rotate(-45deg); }
.mock-body { padding: 10px 12px 14px; font: 12px/1.45 Consolas, 'Cascadia Mono', var(--mono); }
.mock-body p { white-space: pre-wrap; word-break: break-all; }
.ps-ok { color: #16c60c; }

.mock-dc { color: #dbdee1; background: #313338; font-family: 'gg sans', 'Noto Sans', var(--sans); font-size: 13px; }
.dc-head { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; font-weight: 600; color: #f2f3f5; border-bottom: 1px solid #26272b; }
.dc-head svg { width: 18px; height: 18px; color: #80848e; }
.dc-new { margin-left: auto; padding: 5px 10px; font-size: 12px; color: #fff; background: #5865f2; border-radius: 4px; }
.dc-form { display: grid; gap: 8px; padding: 12px; }
.dc-label { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #b5bac1; }
.dc-input { padding: 9px 11px; color: #f2f3f5; background: #1e1f22; border-radius: 6px; }
.dc-msg p { color: #dbdee1; }
.dc-file { margin-top: 10px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: #2b2d31; border: 1px solid #3f4147; border-radius: 6px; }
.dc-file svg { flex: none; width: 22px; height: 22px; color: #c9cdfb; }
.dc-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #00a8fc; }
.dc-file small { flex: none; font-size: 11.5px; color: #949ba4; }
.dc-actions { display: flex; justify-content: flex-end; }
.dc-post { padding: 6px 18px; font-size: 12.5px; font-weight: 600; color: #fff; background: #5865f2; border-radius: 4px; }

/* ---------- what's in the file / what we hide ---------- */
.help-panels { margin-top: clamp(36px, 4vw, 54px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.help-panel h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.help-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; font-size: 15.5px; line-height: 1.5; color: rgba(239, 231, 212, .86); }
.help-list:not(.help-list-marks) li { position: relative; padding-left: 18px; }
.help-list:not(.help-list-marks) li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gilt); }
.help-list b { color: var(--parchment); }
.help-list-marks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.help-list-marks svg { width: 18px; height: 18px; margin-top: 3px; }
.help-list-marks .is-yes svg { color: var(--emerald); }
.help-list-marks .is-no svg { color: var(--ember); }
.help-list-marks .is-info svg { color: var(--arcane); }
.help-panel-foot { margin-top: 14px; padding-top: 12px; font-size: 14.5px; color: var(--ash); border-top: 1px dashed var(--line-soft); }

.help-callout {
  margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 18px 20px;
  background: rgba(255, 106, 43, .07); border: 1px solid rgba(255, 106, 43, .35); border-left: 3px solid var(--ember);
}
.help-callout > svg { width: 28px; height: 28px; color: var(--ember); }
.help-callout-title { font: 800 20px/1.2 var(--display); color: #ffb48f; background: none; -webkit-text-fill-color: currentColor; filter: none; }
.help-callout p { margin-top: 6px; color: rgba(239, 231, 212, .88); }
.help-callout b { color: var(--parchment); }

/* ---------- drawers: by hand, the script itself, small FAQ ---------- */
.help .faq.help-more { width: auto; margin: clamp(40px, 5vw, 64px) 0 0; }
.help-more .help-detail { padding: 0 2px 20px; color: rgba(239, 231, 212, .86); }
.help-more .help-detail p { padding: 0; }
.help-detail > * + * { margin-top: 12px; }
.by-hand { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.by-hand li::marker { font-weight: 700; color: var(--gilt); }
.help code.path { padding: 2px 8px; font: 500 .9em/1.6 var(--mono); color: var(--gilt-hi); background: rgba(228, 185, 100, .08); border: 1px solid var(--line); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.mini-copy {
  margin: 0 2px; padding: 4px 10px; font: 700 12.5px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
  color: var(--gilt-hi); background: rgba(228, 185, 100, .08); border: 1px solid var(--line); cursor: pointer; transition: background-color .2s;
}
.mini-copy:hover { background: rgba(228, 185, 100, .18); }
.mini-copy.is-copied { color: var(--emerald); border-color: rgba(47, 211, 138, .5); }
.help-note { padding-left: 12px; font-size: 14.5px; color: var(--ash); border-left: 2px solid var(--line-soft); }
.src-meta { font: 600 14px/1.4 var(--cond); letter-spacing: .03em; color: var(--ash); overflow-wrap: anywhere; }
.src-pre {
  max-height: 440px; margin: 0; padding: 14px 16px; overflow: auto; overscroll-behavior: contain; white-space: pre; tab-size: 4;
  font: 12.5px/1.5 var(--mono); color: #d7d2c3; background: #020706; border: 1px solid var(--line-soft);
  scrollbar-width: thin; scrollbar-color: rgba(228, 185, 100, .35) transparent;
}
.src-link { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 600; }
.src-link span { font-weight: 400; color: var(--ash); }
.footer-links a[aria-current="page"] { color: var(--gilt-hi); }

@media (max-width: 760px) {
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
  .step-main { display: contents; }
  .step-num { grid-row: 1; width: 40px; height: 40px; font-size: 19px; }
  .step h2 { grid-column: 2; align-self: center; padding-top: 0; }
  .step-main > :not(h2) { grid-column: 1 / -1; }
  .step-cols { grid-template-columns: minmax(0, 1fr); }
  .help-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .help { padding-top: 96px; }
  .cmd { flex-direction: column; }
  .cmd-box { padding: 12px 14px; }
  #cmd { font-size: 13.5px; }
  .cmd-copy { padding: 15px 20px; }
  .step-actions .btn { flex: 1 1 100%; }
  .help-callout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
}
@media (max-width: 480px) {
  .st-cols { grid-template-columns: minmax(0, 1fr); }
  .st-right { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .mini-copy { transition: none; }
}
