/* The Mage leveling course, v5 (7 Nov 2026 night). Chris on v3: "very bland"; on v4: "3/10th way there. Several touch ups".
   v5: one chapter picker (the level road); the chapter's lessons beside the clip, as tall as the clip; under the clip the lesson on
   the left (its name, his words with the moment he says each, the two roads, the deeper tabs) and on the right what to remember on
   the quest log page and the clip after this one. The game's warmth on the site's dark page: bronze frames, real spell and talent
   art, Cinzel on names, square controls, gold for what is yours. */
:root {
  --bg: #100f0d; --panel: #1a1815; --panel2: #24211c; --line: #34312b; --line2: #2a2824;
  --ink: #ece8df; --ink2: #c4bdae; --muted: #9c9584; --gold: #ffd100; --gold2: #c89b1a; --green: #4fbf3a;
  --bronze: #7d5f2a; --bronze2: #b08a45; --bronze3: #4a381a;
  --parch: #ecd7a5; --parch2: #dcbd84; --brown: #2c1a08; --brown2: #5a3a17; --brown3: #6b4d2a;   /* (loop pass 39) was #7a5a34: a Remember step not yet reached measured 4.0 to 1 on the parchment's darker end; 4.9 now */
  --tip-bg: #0e0e10; --tip-line: #5a4a1e;
  --sans: "Open Sans", system-ui, "Segoe UI", Arial, sans-serif; --serif: "Cinzel", Georgia, serif;
  --gut: 16px; --side: 372px; --max: 1520px;
  --frame: 0 0 0 1px #000, 0 0 0 2px var(--bronze), 0 0 0 3px #000;
}
@media (min-width: 700px) { :root { --gut: 28px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 15px/1.5 var(--sans); background: var(--bg); }
img { display: block; }
p, h1, h2, h3, h4, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
.loading { padding: 100px var(--gut); text-align: center; color: var(--ink2); }

.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 10px var(--gut); }
.home { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 17px/1 var(--serif); }
/* (13 Nov 2026, Chris: "make our logo top left the normal hearthstone thing") the site's own mark, as on the calculator and the
   Leveling guides page: the glowing book in a gold ring (was a small flat book) */
.home img.tfmark { width: 40px; height: 40px; margin: 0 2px 0 4px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #d4a531, 0 0 0 4.5px #3a2a08, 0 3px 10px rgba(0, 0, 0, .7), 0 0 22px rgba(255, 186, 64, .3); }
/* (16 Nov 2026, Chris: "that leveling guides button in the top right corner should be more prominent maybe even bigger & easier to
   detect") the way back to every class's guide is a button in the page's own gold button material (.btn-gold), not a grey line of
   text over the banner. Its light changes when pointed at; nothing moves. */
.toplink { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid #000; border-radius: 2px;
  background: linear-gradient(180deg, #5a4412, #2e220a); box-shadow: inset 0 0 0 1px var(--gold2), inset 0 1px 0 1px rgba(255, 220, 120, .18);
  color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.toplink::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 2h7v7H2zM11 2h7v7h-7zM2 11h7v7H2zM11 11h7v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 2h7v7H2zM11 2h7v7h-7zM2 11h7v7H2zM11 11h7v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.toplink:hover { background: linear-gradient(180deg, #6a5016, #3a2b0c); box-shadow: inset 0 0 0 1px var(--gold), inset 0 1px 0 1px rgba(255, 220, 120, .24); color: #fff; text-decoration: none; }
.toplink:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- the banner: your Mage in the meadow, the course, the level road ---------- */
.hero { position: relative; margin-top: -61px; padding-top: 61px; background: #0d0c0b url(img/hero.jpg) 66% 40% / cover no-repeat; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--bronze3); transition: background-image .5s; }
@media (prefers-reduced-motion: reduce) { .hero { transition: none; } }
@media (max-width: 699px) { .hero { margin-top: -65px; padding-top: 65px; } }   /* a phone's header is 64 px (44 px tap rows), so the banner starts under it, not 3 px below */
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(13, 11, 9, .96) 0%, rgba(13, 11, 9, .86) 30%, rgba(13, 11, 9, .25) 58%, rgba(13, 11, 9, .5) 100%),
  linear-gradient(0deg, rgba(13, 11, 9, 1) 0%, rgba(13, 11, 9, .85) 22%, rgba(13, 11, 9, 0) 55%); }
.hero-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 18px var(--gut) 20px; }
.hero-t { max-width: 620px; }
.kick { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #69ccf0; }
.kick img { border-radius: 50%; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); }
h1 { margin-top: 8px; font: 700 clamp(30px, 3.4vw, 46px)/1.08 var(--serif); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.lede { margin-top: 10px; max-width: 600px; font-size: 16px; line-height: 1.6; color: var(--ink); text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hero-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.hero-m { font-size: 14px; color: var(--ink2); text-shadow: 0 1px 3px #000; }
.hero-m b { color: #fff; }
.hero-m span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px; background: var(--bronze2); transform: rotate(45deg); }

/* square buttons, drawn like the game's: dark face, bronze edge; the gold one is the way on */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #000; border-radius: 2px; background: linear-gradient(180deg, #2c2922, #1c1a16); box-shadow: inset 0 0 0 1px var(--bronze), inset 0 1px 0 1px rgba(255, 230, 170, .08); cursor: pointer; font-weight: 600; color: var(--ink); text-align: left; }
.btn:hover { background: linear-gradient(180deg, #37332a, #24211c); box-shadow: inset 0 0 0 1px var(--bronze2), inset 0 1px 0 1px rgba(255, 230, 170, .12); color: #fff; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn-gold { min-height: 46px; padding: 0 20px 0 16px; background: linear-gradient(180deg, #5a4412, #2e220a); box-shadow: inset 0 0 0 1px var(--gold2), inset 0 1px 0 1px rgba(255, 220, 120, .18); color: #fff; font-size: 16px; }
.btn-gold:hover { background: linear-gradient(180deg, #6a5016, #3a2b0c); box-shadow: inset 0 0 0 1px var(--gold), inset 0 1px 0 1px rgba(255, 220, 120, .24); }
.btn-gold svg { color: var(--gold); }

/* the level road: six chapters side by side, each with its spell, its levels and name, and how much of it you've done */
.road { margin-top: 22px; }
.road-l { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.road-l li { min-width: 0; }
.stop { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 1fr 4px; gap: 10px 12px; align-items: center; width: 100%; height: 100%; padding: 10px 12px 0; border: 0; border-radius: 2px; background: rgba(14, 12, 10, .82); box-shadow: inset 0 0 0 1px rgba(176, 138, 69, .3); cursor: pointer; text-align: left; overflow: hidden; }
.stop:hover { background: rgba(32, 28, 21, .92); box-shadow: inset 0 0 0 1px var(--bronze2); }
.stop-i { align-self: start; }
.stop-i img { width: 40px; height: 40px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5b4a2a; }
.stop-t { align-self: start; display: grid; min-width: 0; line-height: 1.3; }
.stop-t small { font-size: 14px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.stop-t b { font-size: 14px; font-weight: 600; color: #fff; }
.stop-s { font-size: 14px; color: var(--muted); }
.stop-bar { grid-column: 1 / -1; height: 4px; margin: 0 -12px; background: rgba(0, 0, 0, .65); }
.stop-bar i { display: block; height: 100%; background: linear-gradient(180deg, #ffe35a, #d9a400); }
.stop.is-soon .stop-i img { filter: grayscale(.85) brightness(.65); }
.stop.is-soon .stop-t small { color: var(--ink2); }
.stop.is-soon .stop-t b { color: var(--ink2); font-weight: 400; }
.stop.is-soon .stop-s { justify-self: start; margin-top: 4px; padding: 0 6px; border-radius: 2px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(176, 138, 69, .25); font-size: 12px; line-height: 18px; letter-spacing: .04em; text-transform: uppercase; color: #9a8a6c; }
.stop.is-here { background: linear-gradient(180deg, rgba(66, 51, 14, .94), rgba(30, 24, 9, .94)); box-shadow: inset 0 0 0 1px var(--gold2), inset 0 2px 0 var(--gold); }
.stop.is-here .stop-i img { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold2); }
.stop.is-here .stop-s { color: var(--gold); font-weight: 600; }
.stop.is-view:not(.is-here) { box-shadow: inset 0 0 0 1px var(--bronze2), inset 0 2px 0 var(--bronze2); background: rgba(32, 28, 21, .94); }
.stop:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- the player: the clip and its chapter side by side, then the lesson and what to remember ---------- */
.player { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 32px 28px; max-width: var(--max); margin: 0 auto; padding: 24px var(--gut) 72px; }
.stage { grid-column: 1; grid-row: 1; scroll-margin-top: 10px; }
.rail { grid-column: 2; grid-row: 1; contain: size; min-height: 360px; }
.main { grid-column: 1; grid-row: 2; min-width: 0; }
.aside { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 16px; display: grid; gap: 24px; }

/* the clip */
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #000; box-shadow: var(--frame), 0 18px 40px -18px rgba(0, 0, 0, .9); }
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; height: 68px; margin-top: -68px; padding: 26px 12px 10px; background: linear-gradient(0deg, rgba(0, 0, 0, .82), transparent); }
.bar-sp { display: none; }
.ctl { display: grid; place-items: center; min-width: 36px; height: 32px; padding: 0 8px; border: 0; border-radius: 2px; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.ctl:hover { background: rgba(0, 0, 0, .85); }
.ctl[aria-pressed="true"] { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold2); }
.ctl-t { font-size: 14px; font-weight: 600; }
.ctl-snd { display: inline-flex; align-items: center; gap: 6px; }
.frame:fullscreen { aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.frame:fullscreen video { object-fit: contain; }
/* (16 Nov 2026) Autoplay: the clip that just ended holds its last frame over the next one until that one draws (course.js, ended) */
.frame video.vhold { z-index: 1; pointer-events: none; cursor: default; }
.frame:fullscreen .bar { height: 90px; margin-top: -90px; padding: 40px 24px 18px; }
.ctl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.time { min-width: 34px; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; text-align: center; text-shadow: 0 1px 2px #000; }
.scrub { position: relative; flex: 1; height: 6px; border-radius: 1px; background: rgba(255, 255, 255, .22); cursor: pointer; touch-action: none; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }
.scrub:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.scrub u { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(105, 204, 240, .35); }
.scrub-f { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; }
.scrub b { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--gold); }

/* the chapter beside the clip, as tall as the clip */
.rl-in { display: flex; flex-direction: column; height: 100%; border-radius: 2px; background: var(--panel); box-shadow: var(--frame); overflow: hidden; }
.rl-h { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px 10px; background: linear-gradient(180deg, #2c261a, #201d17); }
.rl-h img { width: 44px; height: 44px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold2); }
.rl-k { display: flex; gap: 10px; font-size: 14px; font-weight: 700; color: var(--gold); }
.rl-k span { font-weight: 400; color: var(--ink2); }
.rl-h h2 { font: 700 19px/1.2 var(--serif); color: #fff; }
.rl-p { display: grid; gap: 6px; padding: 0 16px 12px; background: #201d17; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--bronze3); }
.pbar { display: block; height: 4px; background: #0b0a09; box-shadow: inset 0 0 0 1px #3a3123; }
.pbar i { display: block; height: 100%; background: linear-gradient(180deg, #ffe35a, #d9a400); }
.rl-m { font-size: 14px; color: var(--muted); }
.ls { flex: 1; min-height: 0; overflow: auto; padding: 4px 0; scrollbar-width: thin; scrollbar-color: #4a4232 transparent; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 6px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.row:hover:not(:disabled) { background: var(--panel2); }
.row:hover:not(:disabled) .row-t b { color: #fff; }
.row:disabled { cursor: default; }
.row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.row-pic { position: relative; display: block; width: 96px; height: 54px; border-radius: 2px; overflow: hidden; background: #0d0d0d; box-shadow: 0 0 0 1px #000, 0 0 0 2px #3d3628; }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
.row-pic em { position: absolute; right: 4px; bottom: 4px; padding: 0 5px; border-radius: 2px; background: rgba(0, 0, 0, .82); font: 600 12px/18px var(--sans); color: #fff; font-style: normal; }
.row-none { display: grid; place-items: center; font-size: 14px; color: #6a6352; background: repeating-linear-gradient(135deg, #171614 0 8px, #1b1a17 8px 16px); }
.row-t { display: grid; gap: 3px; line-height: 1.3; min-width: 0; }
.row-t small { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.row-n { min-width: 28px; padding: 0 5px; border-radius: 2px; background: #2a2620; font: 700 12px/18px var(--sans); color: var(--ink2); text-align: center; font-variant-numeric: tabular-nums; }
.row-t u { text-decoration: none; font-weight: 700; color: var(--gold); }
.row-t s { text-decoration: none; font-weight: 600; color: var(--green); }
.row-t b { font-weight: 600; color: var(--ink); }
.row.is-soon .row-t b { font-weight: 400; color: var(--ink2); }
.row.is-done .row-pic::after { content: ""; position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; border-radius: 2px; background: var(--green) no-repeat center / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='%23121212' stroke-width='2' fill='none'/%3E%3C/svg%3E"); box-shadow: 0 0 0 1px #000; }
.row.is-done:not(.is-cur) .row-pic img { filter: brightness(.7); }
.row.is-cur { background: linear-gradient(90deg, rgba(200, 155, 26, .22), rgba(200, 155, 26, .04)); box-shadow: inset 3px 0 0 var(--gold); }
.row.is-cur .row-pic { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold2); }
.row.is-cur .row-n { background: var(--gold2); color: #1a1405; }
.row.is-cur .row-t b { color: #fff; }
@media (prefers-reduced-motion: no-preference) { .row.just .row-pic::after { animation: tick .35s ease-out; } }
@keyframes tick { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: none; } }
.rl-f { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--bronze3); background: #181613; }
.rl-b { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 36px; padding: 0 8px; border: 0; border-radius: 2px; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink2); }
/* (loop pass 151) two short lines, the chapter and its levels, so neither link is ever cut off */
.rl-b { flex: none; padding: 0 8px; text-align: left; }
.rl-b span { display: grid; white-space: nowrap; line-height: 1.25; }
.rl-b b { font-weight: 600; }
.rl-b small { font-size: 13px; font-weight: 400; color: var(--muted); }
.rl-b.rl-n { text-align: right; }
.rl-b:hover small { color: var(--ink2); }
.rl-b:hover { background: var(--panel2); color: #fff; }
.rl-b svg { flex: none; color: var(--bronze2); }
.rl-b:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* ---------- the lesson: its name and spells ---------- */
.lt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line2); }
.lt-i { width: 56px; height: 56px; border-radius: 2px; cursor: default; box-shadow: var(--frame); }
.lt-i:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.un-k { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 14px; font-weight: 700; color: var(--gold); }
.un-k span { color: var(--ink2); font-weight: 400; }
.un-k span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px; background: var(--bronze2); transform: rotate(45deg); }
.un-t { margin-top: 2px; font: 700 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); color: #fff; }
.lt-sp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 2px; background: #1c1a16; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink2); cursor: default; }
.chip img { width: 24px; height: 24px; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
.chip.lit { color: #fff; background: linear-gradient(180deg, #3a2d0e, #221a08); box-shadow: inset 0 0 0 1px var(--gold2), 0 0 12px rgba(255, 200, 60, .25); }
.lt-i.lit { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 14px rgba(255, 200, 60, .35); }
.chip, .lt-i { transition: background .25s, box-shadow .25s, color .25s; }
.chip:hover, .chip:focus-visible { color: #fff; outline: none; box-shadow: inset 0 0 0 1px var(--bronze2); background: #24211b; }

/* his words, each line with the moment he says it */
.say { margin-top: 24px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.say-h { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.say-h img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2); }
.say-h h3 { font: 700 18px/1.25 var(--serif); color: #fff; }
.say-h p { font-size: 14px; color: var(--muted); }
.hear { min-height: 36px; font-size: 14px; }
.hear svg { color: var(--gold); }
.say-ls { padding: 8px 0; }
.say-l { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 10px 18px 10px 15px; border-left: 3px solid transparent; transition: background .25s, border-color .25s; }
.say-l[data-t] { cursor: pointer; }
.say-l[data-t]:hover { background: #201e19; }
.say-t { padding-top: 2px; font-size: 14px; font-weight: 600; color: var(--bronze2); font-variant-numeric: tabular-nums; }
.say-l p { font-size: 16px; line-height: 1.65; color: var(--ink2); transition: color .25s; }
.say-l.now { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(200, 155, 26, .14), rgba(200, 155, 26, 0) 80%); }
.say-l.now p { color: #fff; }
.say-l.now .say-t { color: var(--gold); }
.say-l.said p { color: var(--muted); }

/* the quest log page beside the lesson: what to remember, ticking as he gets there */
.quest { padding: 18px 20px 20px; border-radius: 2px; color: var(--brown); box-shadow: var(--frame);
  background: radial-gradient(ellipse at 18% 10%, #f8ebc8 0%, transparent 55%), radial-gradient(ellipse at 85% 95%, #cfad70 0%, transparent 60%), linear-gradient(180deg, var(--parch), var(--parch2)); }
.quest h3 { margin-bottom: 14px; padding-bottom: 8px; font: 700 19px/1.25 var(--serif); color: #3d2309; background: linear-gradient(90deg, rgba(90, 58, 23, .6), rgba(90, 58, 23, 0)) 0 100% / 100% 1px no-repeat; }
.quest h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
/* (loop pass 22, Chris: "add even more detail & feel ... made with so much love & care") the quest log page has its corners inked, and
   a lesson watched to the end is stamped "Learned" across its top edge, pressed in as it happens */
.quest { position: relative; }
.quest::before, .quest::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; opacity: .55; }
.quest::before { left: 7px; top: 7px; border-left: 2px solid #6f4c25; border-top: 2px solid #6f4c25; }
.quest::after { right: 7px; bottom: 7px; border-right: 2px solid #6f4c25; border-bottom: 2px solid #6f4c25; }
.stamp { position: absolute; right: 18px; top: -13px; z-index: 1; display: none; padding: 4px 11px 4px 26px; border-radius: 3px; font: 800 12px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #f3e6c2; background: linear-gradient(180deg, #3b7d19, #275c0d); box-shadow: 0 0 0 1px #17370a, 0 0 0 3px #f3e6c2, 0 0 0 4px #17370a, 0 3px 8px rgba(30, 16, 2, .45); transform: rotate(-3deg); }
.stamp::before { content: ""; position: absolute; left: 11px; top: 5px; width: 5px; height: 10px; border: solid #f3e6c2; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.quest.learned .stamp { display: block; }
@media (prefers-reduced-motion: no-preference) { .quest.learned.just .stamp { animation: stamp .45s cubic-bezier(.2, 1.5, .5, 1) both; transform-origin: 100% 50%; } }   /* (Shaman loop, 13 Nov) grows from its right edge: from the middle, its 2x start poked 8 px past the page at 1440 */
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2); } 60% { opacity: 1; transform: rotate(-2deg) scale(.94); } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }
/* a lesson you chose arrives with a short rise, piece by piece (lesson() adds .nav; the page's first paint has none) */
@media (prefers-reduced-motion: no-preference) {
  .main.nav > * { animation: rise .32s ease-out both; }
  .main.nav > :nth-child(2) { animation-delay: .04s; } .main.nav > :nth-child(3) { animation-delay: .08s; } .main.nav > :nth-child(4) { animation-delay: .12s; }
  .main.nav > :nth-child(n + 5) { animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* icons answer to the hand: a spell slot lifts a touch under the pointer and gives under a press, a step's icon too */
@media (hover: hover) { .lt-bar .chip:hover img, .st:hover:not([disabled]) .st-i img { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold2), 0 0 10px rgba(255, 200, 60, .35); } }
.lt-bar .chip:active { transform: translateY(1px); } .st:active:not([disabled]) .st-i { transform: scale(.96); }
.st-i, .lt-bar .chip { transition: transform .12s; }
.quest h3 small { font: 600 12.5px/1.3 var(--sans); color: var(--brown2); }
.steps { display: grid; gap: 8px; }
.steps li { position: relative; }
.st { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; align-items: center; width: 100%; min-height: 62px; padding: 9px 12px 11px 9px; border: 0; border-radius: 3px;
  background: rgba(255, 252, 240, .2); box-shadow: inset 0 0 0 1px rgba(111, 76, 37, .34); font: inherit; color: var(--brown3); text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s, color .25s; }
.st[disabled] { cursor: default; }
/* (loop pass 19) hover only where there is a pointer that hovers: on a phone a pressed step used to stay lit until the next press */
@media (hover: hover) { .st:hover:not([disabled]) { background: rgba(255, 252, 240, .42); box-shadow: inset 0 0 0 1px #8a5a1c; } }
.st:focus-visible { background: rgba(255, 252, 240, .42); box-shadow: inset 0 0 0 1px #8a5a1c; outline: none; }
.st:active:not([disabled]) { background: rgba(255, 252, 240, .55); }
.st-i { position: relative; display: block; width: 44px; height: 44px; }
.st-i img { display: block; width: 44px; height: 44px; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8b7340, 0 0 0 3px #1a1206, 0 2px 5px rgba(40, 22, 4, .45); filter: saturate(.5) brightness(.92); transition: filter .3s; }
.st-i > b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; font: 700 20px/1 var(--serif); color: #f3e6c2; background: #5a3a17; }
.st-i em { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: #2f6b12; box-shadow: 0 0 0 2px #f3e6c2, 0 1px 3px rgba(0, 0, 0, .5); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .6, 1); }
.st-i em::after { content: ""; position: absolute; left: 7px; top: 3px; width: 4px; height: 9px; border: solid #f3e6c2; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.st-x { display: block; min-width: 0; font-size: 15px; line-height: 1.42; }
.st-h { display: block; margin-bottom: 1px; font-size: 15px; font-weight: 700; line-height: 1.3; color: #5a3410; }
.st-x span b { font-weight: 700; }
.st-bar { position: absolute; left: 1px; right: 1px; bottom: 1px; height: 3px; border-radius: 0 0 2px 2px; overflow: hidden; background: rgba(90, 58, 23, .16); pointer-events: none; }
.st-bar u { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #a8780c, #e0aa2c); text-decoration: none; }
.steps:not(.live) .st-bar { display: none; }
.steps li.on .st, .steps:not(.live) .st { color: #1d1004; }
.steps li.on .st-h, .steps li.now .st-h { color: #3d2309; }
.steps li.on .st-i img, .steps li.now .st-i img, .steps:not(.live) .st-i img { filter: none; }
.steps li.on .st-i em { transform: scale(1); }
.steps li.on .st-bar u { background: #2f6b12; }
.steps li.now .st { color: #1d1004; background: rgba(255, 252, 240, .5); box-shadow: inset 0 0 0 1px #8a5a1c, 0 1px 0 rgba(255, 255, 255, .45), 0 2px 8px rgba(60, 34, 6, .22); }
@media (prefers-reduced-motion: reduce) { .st, .st-i img, .st-i em { transition: none; } }
.tipbox { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 16px; padding: 12px 12px 12px 10px; border-radius: 3px; background: rgba(90, 58, 23, .12); box-shadow: inset 3px 0 0 #8a5a1c;
  font-size: 15px; line-height: 1.5; color: var(--brown); }
.tipbox img { width: 36px; height: 36px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8b7340; }
.tipbox-h { margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brown2); }
/* the lesson's buttons as slots of an action bar, numbered as you would bind them */
.lt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.lt-bk { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.lt-bar .lt-sp { margin-top: 0; }
.lt-bar .chip { position: relative; gap: 10px; padding: 4px 14px 4px 4px; font-size: 15px; color: var(--ink); background: linear-gradient(180deg, #24211a, #171510); box-shadow: inset 0 0 0 1px #3d3524, 0 1px 0 #000; }
.lt-bar .chip img { width: 36px; height: 36px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6b5a33; }
.lt-bar .chip kbd { position: absolute; left: 6px; top: 5px; min-width: 13px; padding: 0 2px; border-radius: 2px; font: 700 10px/13px var(--sans); color: #fff; text-align: center; background: rgba(0, 0, 0, .74); }
.lt-bar .chip.lit { color: #fff; background: linear-gradient(180deg, #3a2d0e, #221a08); box-shadow: inset 0 0 0 1px var(--gold2), 0 0 12px rgba(255, 200, 60, .25); }

.quest-m { display: none; }

/* the clip after this one */
.nx { display: grid; gap: 10px; }
.nx-k { font-size: 14px; font-weight: 700; color: var(--muted); }
.nx-c { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.nx-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 2px; overflow: hidden; background: #0d0d0d; box-shadow: var(--frame); }
.nx-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nx-pic em { position: absolute; right: 6px; bottom: 6px; padding: 0 6px; border-radius: 2px; background: rgba(0, 0, 0, .82); font: 600 12px/20px var(--sans); color: #fff; font-style: normal; }
.nx-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 2px; background: rgba(20, 16, 8, .78); box-shadow: inset 0 0 0 1px var(--gold2); color: var(--gold); }
.nx-play svg { width: 22px; height: 22px; }
.nx-c:hover .nx-pic img { transform: scale(1.03); }
.nx-c:hover .nx-play { background: rgba(60, 46, 12, .9); box-shadow: inset 0 0 0 1px var(--gold); }
.nx-c:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.nx-t { display: grid; line-height: 1.3; }
.nx-t small { font-size: 14px; color: var(--gold); font-weight: 600; }
.nx-t b { font: 700 18px/1.3 var(--serif); color: #fff; }
.nx-e { color: var(--ink2); }
.nx-b { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 36px; padding: 0 8px 0 2px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--muted); }
.nx-b:hover { color: #fff; }
.nx-b svg { color: var(--bronze2); }

/* two roads, each on its own talent tree's art */
.sec-h { display: flex; align-items: center; gap: 14px; margin: 36px 0 14px; font: 700 21px/1.25 var(--serif); color: #fff; }
.sec-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bronze), transparent); }
.roads-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rd { position: relative; padding: 18px 20px 20px; border-radius: 2px; overflow: hidden; isolation: isolate; background: #111; box-shadow: var(--frame); }
.rd::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg) center 20% / cover no-repeat; opacity: .75; }
.rd::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 11, 9, .35), rgba(12, 11, 9, .82) 45%, rgba(12, 11, 9, .94)); }
.rd header { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 14px; align-items: center; }
.rd header img { grid-row: span 2; width: 48px; height: 48px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2); }
.rd h4 { font: 700 26px/1.1 var(--serif); color: #fff; text-shadow: 0 2px 6px #000; }
.rd-s { font-size: 14px; color: var(--ink); text-shadow: 0 1px 3px #000; }
.rd-s b { color: var(--gold); font-size: 17px; }
.rd-bar { height: 6px; margin-top: 14px; border-radius: 1px; background: rgba(0, 0, 0, .6); box-shadow: inset 0 0 0 1px #3a3123; overflow: hidden; }
.rd-bar i { display: block; height: 100%; background: linear-gradient(180deg, #ffe35a, #d9a400); }
.rd-t { margin-top: 14px; color: var(--ink); line-height: 1.6; }
.rd-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rd-k li { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 8px; border-radius: 2px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(176, 138, 69, .3); cursor: default; }
.rd-k li:hover { box-shadow: inset 0 0 0 1px var(--bronze2); }
.rd-k li.lit { background: rgba(58, 45, 14, .85); box-shadow: inset 0 0 0 1px var(--gold2), 0 0 12px rgba(255, 200, 60, .25); }
.rd-k li { transition: background .25s, box-shadow .25s; }
.rd-k li:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rd-k img { grid-row: span 2; width: 38px; height: 38px; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
.rd-k b { font-size: 14px; line-height: 1.25; color: #fff; }
.rd-k small { font-size: 14px; color: var(--gold); }
.roads-b { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; color: var(--ink); }
.roads-b img { width: 30px; height: 30px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); }
.roads .src { margin-top: 10px; }

/* ---------- the deeper layers: tabs on a framed panel ---------- */
.tabs { display: flex; gap: 4px; margin-top: 36px; padding: 0 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 2px 2px 0 0; background: #191815; box-shadow: inset 0 0 0 1px #2e2b24; cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs button:hover { color: var(--ink); background: #201e1a; }
.tabs button.on { color: #fff; background: linear-gradient(180deg, #2c2719, var(--panel)); box-shadow: inset 0 0 0 1px var(--bronze), inset 0 2px 0 var(--gold2); }
.tabs button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.tabs em { min-width: 20px; padding: 0 5px; border-radius: 2px; background: rgba(255, 255, 255, .08); font: 600 12px/18px var(--sans); font-style: normal; color: var(--ink2); text-align: center; }
.tabs button.on em { background: rgba(255, 209, 0, .16); color: var(--gold); }
.panes { padding: 20px; border-radius: 0 2px 2px 2px; background: var(--panel); box-shadow: var(--frame); }
.pane[hidden] { display: none !important; }
.pane[data-pane="spells"], .pane[data-pane="classic"], .pane[data-pane="macros"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.sp, .mc { padding: 14px 16px; border-radius: 2px; background: #141311; box-shadow: inset 0 0 0 1px var(--line); }
.sp-h { display: flex; align-items: center; gap: 12px; }
.sp-h img { width: 40px; height: 40px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); cursor: default; }
.sp-h img:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sp-h h3 { font-size: 17px; line-height: 1.3; color: #fff; }
.sp-h p { font-size: 14px; color: var(--muted); }
.sp-d { margin-top: 8px; color: var(--gold); line-height: 1.5; }
.sp-c { margin-top: 8px; color: var(--ink2); }
.sp-r { margin-top: 10px; }
.sp-n { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sp-r summary { cursor: pointer; font-weight: 600; color: var(--ink2); }
.sp-r summary:hover { color: #fff; }
.sp-r table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.sp-r th { text-align: left; font-weight: 600; color: var(--muted); padding: 4px 10px 4px 0; border-bottom: 1px solid var(--line); }
.sp-r td { padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line2); color: var(--ink2); font-variant-numeric: tabular-nums; }
.sp-r td:nth-child(-n+3) { color: #fff; white-space: nowrap; }
.cmp { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 0; }
.cmp dt { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 1px; }
.cmp dd { margin: 0; }
.cmp dd:first-of-type { color: var(--ink); }
.cmp dd:last-of-type { color: var(--muted); }
/* (loop pass 15) a spell or talent named in his words: its icon, and a tooltip on hover or press */
.term { white-space: nowrap; font-weight: 600; color: var(--ink); border-bottom: 1px dotted var(--bronze2); cursor: help; }
.term img { display: inline-block; width: 18px; height: 18px; margin: 0 5px 0 1px; vertical-align: -3px; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
.term:hover, .term:focus-visible { color: #fff; border-bottom-color: var(--gold); outline: none; }
.say-l.now .term { color: #fff; }
.tipbox .term { color: #2c1a08; border-bottom-color: #8a5a1c; }
.tipbox .term:hover, .tipbox .term:focus-visible { color: #000; border-bottom-color: #3d2309; }
.tipbox .term img { width: 18px; height: 18px; box-shadow: 0 0 0 1px #000; border-radius: 2px; }
.kit-g .term img, .ev .term img { opacity: .95; }
/* iPhone: the new buttons keep the page's look and give no grey flash on a press */
.st { -webkit-appearance: none; appearance: none; margin: 0; -webkit-tap-highlight-color: transparent; }
.term, .lt-bar .chip, .srcs summary { -webkit-tap-highlight-color: transparent; }
/* (loop pass 14) the words that changed since Classic: gold in Forever's line, struck through in Classic's */
.cmp mark { padding: 0 3px; border-radius: 2px; color: inherit; background: none; }
.cmp dd:first-of-type mark { font-weight: 700; color: var(--gold); background: rgba(255, 209, 0, .12); box-shadow: inset 0 -1px 0 rgba(255, 209, 0, .5); }
.cmp dd:last-of-type mark { color: var(--ink2); text-decoration: line-through; text-decoration-color: #c0564a; text-decoration-thickness: 2px; }

/* macros, ready to copy */
.mc header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mc header img { width: 40px; height: 40px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); }
.mc h3 { font-size: 16px; line-height: 1.3; color: #fff; }
.copy { min-height: 32px; padding: 0 12px; font-size: 14px; }
.mc pre { margin: 12px 0 0; padding: 10px 12px; border-radius: 2px; background: #0b0b0a; box-shadow: inset 0 0 0 1px #2a2824; font: 14px/1.55 Consolas, "Courier New", monospace; color: #e8d7a0; white-space: pre-wrap; word-break: break-word; }
.mc-w { margin-top: 10px; color: var(--ink2); }
.src { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* the evidence behind each claim, numbered */
.ev { display: grid; }
.ev li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line2); }
.ev li:first-child { border-top: 0; padding-top: 4px; }
.ev li:last-child { padding-bottom: 4px; }
.ev li p:first-child { font-size: 16px; line-height: 1.55; }
.ev .src { margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--bronze3); line-height: 1.45; }
.ev-i { width: 36px; height: 36px; background: none; box-shadow: none; }
.ev-i img { display: block; width: 36px; height: 36px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6b5a33; }
.srcs { margin-top: 12px; }
.srcs summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; list-style: none; }
.srcs summary::-webkit-details-marker { display: none; }
.srcs summary::before { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--gold2); border-bottom: 2px solid var(--gold2); transform: rotate(-45deg); transition: transform .15s; }
.srcs[open] summary::before { transform: rotate(45deg); }
.srcs summary:hover, .srcs summary:focus-visible { color: #fff; }
.srcs summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.srcs .kit-s { margin-top: 4px; }
.ev-n { display: grid; place-items: center; margin: 4px; width: 28px; height: 28px; border-radius: 2px; background: #221d12; box-shadow: inset 0 0 0 1px var(--bronze); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.ev-n.ev-i { margin: 0; width: 36px; height: 36px; background: none; box-shadow: none; }
.ev li p:first-child { color: var(--ink); }

/* the trainer card */
.card { aspect-ratio: auto; background: var(--panel); }
.tc { padding: 4px 2px 2px; }
.card .tc { padding: 16px 18px 18px; }
.tc-h { margin-bottom: 8px; font: 700 18px/1.3 var(--serif); color: var(--gold); }
.tc-t { width: 100%; border-collapse: collapse; }
.tc-t tr { border-top: 1px solid var(--line2); }
.tc-t th { width: 52px; padding: 10px 0; vertical-align: top; text-align: left; font-size: 18px; font-weight: 700; color: #fff; }
.tc-t td { padding: 8px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tc-s { display: flex; align-items: center; gap: 10px; min-width: 180px; cursor: default; border-radius: 2px; }
.tc-s img { width: 32px; height: 32px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); }
.tc-s > span { display: grid; font-weight: 600; line-height: 1.3; }
.tc-s small { font-size: 14px; font-weight: 400; color: var(--green); }
.tc-r small { color: var(--muted); }
.tc-s:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the game's tooltip */
.tip { position: fixed; z-index: 50; max-width: min(320px, calc(100vw - 16px)); padding: 9px 11px 10px; border-radius: 4px; pointer-events: none; font-size: 14px; line-height: 1.45; color: #fff; background: var(--tip-bg); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--tip-line), 0 8px 22px rgba(0, 0, 0, .5); }
.tip p + p { margin-top: 2px; }
.t-n { font-size: 16px; font-weight: 700; }
.t-r { color: #9a9a9a; }
.t-row { display: flex; justify-content: space-between; gap: 18px; }
.t-d { margin-top: 5px !important; color: var(--gold); }
.t-m { margin-top: 5px !important; color: #9a9a9a; }
/* (pass 59) a share of base mana in plain mana: green as the game prints a tooltip's extra facts, under the level */
.t-b { margin-top: 5px !important; color: #1eff00; }
/* (loop pass 43) the lesson that teaches the spell, as its tooltip's last line */
.t-l { margin-top: 7px !important; padding-top: 6px; border-top: 1px solid var(--tip-line); font-size: 13px; color: #8fd0ff; }

/* ---------- the chapter's kit ---------- */
.kit { margin-top: 36px; }
.kit-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; list-style: none; padding: 0; }
.kit-g li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.kit-g img { width: 40px; height: 40px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5b4a2a; }
.kit-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kit-n b { color: #fff; }
.kit-n small { font-size: 13px; font-weight: 700; color: var(--gold); }
.kit-g li p:last-child { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.kit-s { margin-top: 12px; font-size: 13px; }
/* (loop pass 181) a route inside a kit card: one row for each side, its stops in order with a gold chevron between */
.kit-p { display: grid; gap: 7px; margin-top: 9px; }
.kit-pr { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: baseline; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.kit-pr .rt-tag { justify-self: start; }
.kit-pz { display: flex; flex-wrap: wrap; gap: 3px 0; }
/* on the narrowest phones the label sits above its stops, so the longest stop still fits the card */
@media (max-width: 359px) { .kit-pr { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.kit-z { white-space: nowrap; }
/* the chevron hangs after a stop, so a row that wraps never starts a line with one */
.kit-z:not(:last-child)::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 6px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
@media (max-width: 699px) { .kit-g { grid-template-columns: minmax(0, 1fr); } }
/* ---------- the foot of a lesson ---------- */
.lf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 36px; padding: 16px 18px; border-radius: 2px; background: linear-gradient(90deg, rgba(66, 51, 14, .55), rgba(20, 18, 15, .9) 60%); box-shadow: var(--frame); }
.lf-pic img { display: block; width: 128px; height: 72px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5b4a2a; }
.lf-pic:empty { display: none; }
.lf-k { font-size: 14px; font-weight: 700; color: var(--gold); }
.lf-b { margin-top: 2px; font-family: Cinzel, serif; font-size: 20px; font-weight: 700; color: #fff; }
.lf-x { grid-template-columns: minmax(0, 1fr) auto; }
/* ---------- a wide screen or a tablet on its side: the way on sits beside the words, so the clip starts higher ---------- */
@media (min-width: 861px) {
  .hero-t { display: grid; grid-template-columns: minmax(0, 640px) auto; justify-content: space-between; column-gap: 32px; max-width: none; }
  .hero-m { white-space: nowrap; }
  .hero-go .btn-gold { white-space: nowrap; }
  .hero-t > * { grid-column: 1; }
  .hero-go { grid-column: 2; grid-row: 1 / span 3; align-self: end; justify-self: end; flex-direction: column; align-items: flex-end; gap: 10px; margin: 0; }
  .road { margin-top: 18px; }
  .stop-t { grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; }
  .stop-t small { grid-column: 1; grid-row: 1; }
  .stop-t b { grid-column: 1 / -1; }
  .stop-s { grid-column: 1 / -1; }
  .stop.is-soon .stop-s { grid-column: 2; grid-row: 1; align-self: center; margin-top: 0; }
}
/* ---------- laptops and tablets: one column, the chapter after the lesson ---------- */
/* (loop pass 21) the chapter's lessons as a row of numbers under the clip: only where the lesson list is not beside it */
.ln { display: none; }
@media (max-width: 1099px) {
  .ln { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ln::-webkit-scrollbar { display: none; }
  .ln-k { flex: none; margin-right: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .ln-b { position: relative; flex: none; min-width: 44px; height: 40px; padding: 0 8px; border: 0; border-radius: 2px; font: 700 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink2);
    background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
  .ln-b[disabled] { opacity: .45; cursor: default; }
  .ln-b.is-done { color: #8fe07f; box-shadow: inset 0 0 0 1px #2f5a27; }
  .ln-b.is-done::after { content: ""; position: absolute; right: 4px; top: 5px; width: 3px; height: 6px; border: solid #8fe07f; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
  .ln-b.is-cur { color: #1a1408; background: linear-gradient(180deg, #ffe27a, #e0aa2c); box-shadow: 0 0 0 1px #1a1408; }
  .ln-b.is-cur::after { border-color: #1a1408; }
  .ln-b:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
}
@media (max-width: 1099px) and (hover: hover) { .ln-b:hover:not([disabled]):not(.is-cur) { color: #fff; box-shadow: inset 0 0 0 1px var(--bronze2); } }
@media (max-width: 479px) { .ln-k { display: none; } }
@media (max-width: 1099px) {
  .player { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { grid-row: 1; }
  .main { grid-row: 2; padding-top: 24px; }
  .aside { grid-column: 1; grid-row: 3; position: static; margin-top: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .rail { grid-column: 1; grid-row: 4; contain: none; min-height: 0; margin-top: 32px; scroll-margin-top: 10px; }
  .ls { overflow: visible; }
  .aside { display: none; }
  .quest-m { display: block; margin-top: 22px; }
  .quest-a { display: none; }
  .aside { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .road-l { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* a tablet on its side: the lessons stay beside the clip, the lesson runs full width under both */
@media (min-width: 861px) and (max-width: 1099px) {
  /* (loop pass 88) the clip's column here is 540 to 650 px, and with every control on one line the progress bar was squeezed to about
     25 px (915 wide): as on a phone, the bar goes under the picture with the progress bar across its top */
  .bar { height: auto; margin-top: 0; flex-wrap: wrap; gap: 4px; padding: 0 6px 4px; background: #0d0c0b; }
  .scrub { order: -1; flex: 0 0 100%; margin: 12px 0 8px; }
  .bar-sp { display: block; flex: 1; }
  .player { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 20px; }
  .stage { grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1; contain: size; margin-top: 0; }
  .ls { overflow: auto; }
  .main { grid-column: 1 / -1; grid-row: 2; }
  .row { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 7px 10px; }
  .row-pic { width: 84px; height: 47px; }
}
@media (max-width: 860px) {
  .roads-g, .aside { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- a phone ---------- */
@media (max-width: 699px) {
  .hero { background-position: 70% 30%; }
  .hero::before { background: linear-gradient(0deg, rgba(13, 11, 9, .98) 0%, rgba(13, 11, 9, .8) 50%, rgba(13, 11, 9, .45) 100%); }
  .hero-in { padding-top: 24px; padding-bottom: 16px; }
  h1 { font-size: 30px; }
  .lede { font-size: 15px; }
  .hero-m .hero-as { display: none; }
  .road { margin-top: 22px; }
  .road-l { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .stop { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 4px; justify-items: center; gap: 6px; padding: 8px 2px 0; text-align: center; }
  .stop-i { grid-row: auto; }
  .stop-i img { width: 34px; height: 34px; }
  .stop-t b, .stop-s { display: none; }
  .stop-t small { font-size: 12px; white-space: nowrap; }
  .stop-t small span { display: none; }
  .stop-bar { margin: 2px -2px 0; width: calc(100% + 4px); }
  .player { padding: 0 0 48px; }
  .stage .frame { border-radius: 0; box-shadow: 0 1px 0 #000, 0 -1px 0 #000; }
  .main { padding: 18px var(--gut) 0; }
  .aside, .rail { margin-left: var(--gut); margin-right: var(--gut); }
  /* (9 Nov audit) on a phone the controls sit under the picture, nothing covers it: the scrubber across the top, 44 px buttons under */
  .bar { height: auto; margin-top: 0; flex-wrap: wrap; gap: 4px; padding: 0 6px 4px; background: #0d0c0b; }
  .scrub { order: -1; flex: 0 0 100%; margin: 12px 0 8px; }
  .bar-sp { display: block; flex: 1; }
  .ctl { min-width: 44px; height: 44px; }
  .ctl-snd span { display: none; }
  .time, #slow { display: none; }
  .btn, .rl-b, .tabs button { min-height: 44px; }
  .home, .toplink { display: inline-flex; align-items: center; min-height: 44px; }
  .un-ln { display: inline-flex; align-items: center; min-height: 44px; margin-top: -12px; margin-bottom: -12px; }
  .chip { min-height: 40px; }
  .lt { gap: 14px; padding-bottom: 18px; }
  .lt-i { width: 46px; height: 46px; }
  .say-h { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 14px; }
  .say-h img { width: 40px; height: 40px; }
  .hear { grid-column: 1 / -1; justify-self: start; }
  .say-l { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 14px 10px 11px; }
  .say-l p { font-size: 15px; }
  .rd { padding: 16px 14px; }
  .rd-k { gap: 6px; }
  .rd-k li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: center; gap: 4px; padding: 8px 4px; text-align: center; }
  .rd-k img { grid-row: auto; }
  .tabs { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; overflow: visible; }
  .tabs button { flex: 1 1 auto; justify-content: center; padding: 9px 7px; font-size: 14px; white-space: nowrap; }
  .tabs button em { display: none; }
  .tabs button, .tabs button.on { border-radius: 2px; }
  .panes { padding: 12px; border-radius: 0 0 2px 2px; }
  .pane[data-pane="spells"], .pane[data-pane="classic"], .pane[data-pane="macros"] { grid-template-columns: minmax(0, 1fr); }
  .tc-s { min-width: 0; width: 100%; }
  .row { grid-template-columns: 96px minmax(0, 1fr); padding: 8px 12px; }
  .row-pic { width: 96px; height: 54px; }
  .lede { display: none; }
  .hero-go .btn-gold { max-width: 100%; font-size: 15px; }
  .hero-go .btn-gold span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .lt { grid-template-columns: minmax(0, 1fr); }
  .lt-i { display: none; }
  .lf { grid-template-columns: 96px minmax(0, 1fr); gap: 12px 14px; padding: 14px; }
  .lf-pic img { width: 96px; height: 54px; }
  .lf-b { font-size: 17px; }
  .lf .btn { grid-column: 1 / -1; justify-content: center; }
  .lf-x { grid-template-columns: minmax(0, 1fr); }
}
/* (Shaman loop, 14 Nov) at 320 a two-digit range ("10 to 19", 46 px at 12 px) was wider than its tile (41 px inside), so the six
   labels ran into each other on both courses' pages; a hair smaller and tighter there, the tiles' gap 3 px */
@media (max-width: 359px) {
  .road-l { gap: 3px; }
  .rd-k li { padding: 8px 2px; }
  .rd-k b { font-size: 12px; letter-spacing: -0.02em; }   /* (15 Nov, the Priest course) "Wand Specialization" and "Shadowform" ran past their keys at 320 */
  .stop-t small { font-size: 11px; letter-spacing: -0.02em; }
}

/* ---------- the site's own foot ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 28px var(--gut) 40px; border-top: 1px solid var(--line2); font-size: 14px; line-height: 1.6; color: var(--muted); }
.foot a { color: var(--ink2); }
.foot a:hover { color: #fff; }

/* a chapter that isn't filmed yet: a title card in the clip's place, then what it will cover, where you'll level and its kit */
.pv-f { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(16, 14, 11, .55), rgba(8, 7, 6, .92) 75%), #0d0c0b url(img/hero.jpg) 60% 40% / cover no-repeat; }
.pv-in { display: grid; justify-items: center; gap: 6px; max-width: 34em; padding: 20px; text-align: center; }
.pv-in img { width: 72px; height: 72px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold2), 0 0 0 3px #000; margin-bottom: 8px; }
.pv-k { font-size: 15px; font-weight: 700; color: var(--gold); }
.pv-k span { color: var(--ink2); font-weight: 400; }
.pv-k span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px; background: var(--bronze2); transform: rotate(45deg); }
.pv-t { font: 700 clamp(26px, 3.4vw, 44px)/1.1 var(--serif); color: #fff; text-shadow: 0 2px 12px #000; }
.pv-s { margin-top: 6px; color: var(--ink2); }
.pv-l { display: grid; gap: 0; margin-top: 4px; padding: 0; list-style: none; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pv-l > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line2); scroll-margin: 90px; }
.pv-l > li:first-child { border-top: 0; }
.pv-l > li.is-at { background: linear-gradient(90deg, rgba(66, 51, 14, .5), transparent 70%); box-shadow: inset 3px 0 0 var(--gold); }
.pv-n { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 2px; background: #2c2617; box-shadow: inset 0 0 0 1px var(--bronze); font-size: 13px; font-weight: 700; color: var(--gold); }
.pv-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pv-h b { font-size: 17px; color: #fff; }
.pv-h small { font-size: 14px; color: var(--muted); }
.pv-w { margin-top: 4px; color: var(--ink2); line-height: 1.55; }
.pv-l .src { font-size: 13px; }
/* (14 Nov 2026) the chapter's map card and the Leveling Atlas it opens.
   (16 Nov 2026, atlas2 SPEC 14; Chris: "too much text overlay", and his rule: no picture behind text) the picture on top with nothing
   over it, then the words and the chapter's roads under it, with a flat gold button at the right that is the map's own Next (the same
   gold, the same arrow). The drift, the gilded frame with its corners and the iron medallion are gone with the map they dressed up as;
   pointing at the card brightens its picture. */
.atl-c { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 16px; width: 100%; margin: 14px 0 0; padding: 0; border: 0; border-radius: 2px; overflow: hidden; cursor: pointer; background: var(--panel); box-shadow: var(--frame); color: var(--ink); text-align: left; scroll-margin-top: 8px; }
.atl-c img { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; object-position: 50% 45%; background: #0d0c0b; filter: brightness(.92); transition: filter .25s; }
.atl-t { display: grid; gap: 6px; min-width: 0; padding: 14px 0 16px 18px; }
.atl-t strong { font: 700 18px/1.3 var(--sans); color: #fff; }   /* plain sentence case: Cinzel is for names (SPEC 10) */
.atl-t small { font-size: 14px; line-height: 1.45; color: var(--ink2); }
.atl-go { display: grid; place-items: center; width: 48px; height: 48px; margin-right: 16px; border-radius: 50%; background: #f1c34f; box-shadow: 0 0 0 1px #2a1c05; color: #1a1408; }
.atl-go svg { width: 22px; height: 22px; margin-left: 2px; }
.atl-c:active .atl-go { background: #d9a83a; transform: translateY(1px); }
@media (hover: hover) { .atl-c:hover img { filter: brightness(1.06); } }
.atl-c:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* (atlas loop pass 34) the card's roads: each side's stops in order, so it says where you're going before it opens */
.atl-rs { display: grid; gap: 4px; }
.atl-r { font: 600 13px/1.4 var(--sans); color: var(--ink2); }
.atl-r i { color: #c9a24e; font-style: normal; margin: 0 3px; }
.atl-s { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 2px; font: 700 11px/18px Cinzel, serif; letter-spacing: .05em; color: #fff; vertical-align: 1px; }
.atl-s.atl-h { background: linear-gradient(180deg, #a83020, #6b150c); box-shadow: inset 0 0 0 1px #e0523f; } .atl-s.atl-a { background: linear-gradient(180deg, #2a5cb0, #143066); box-shadow: inset 0 0 0 1px #5c8ee0; }
/* the map itself, in the card's place: as tall as the card until the atlas says how tall it is (course.js sets both), never a cause
   of the page jumping (SPEC 14.2). Its top stays put as it grows because the browser keeps the first thing on the screen still, and
   that is the frame (or something above it) whenever any of the frame shows. No overflow-anchor: none here: on the frame and its
   section (as SPEC 14.2 first had it) it made the browser hold the next section still instead, and the page jumped 613 px at 768
   when the frame grew with the card 60 px past the screen's top. */
.atl-f { display: block; width: 100%; height: 420px; margin: 14px 0 0; border: 0; background: #0d0c0b; scroll-margin-top: 8px; }
/* a phone: the card and the map run the screen's whole width, as the lesson's video does, with the video's hairlines (SPEC 14.4). The
   section keeps the page's gutter itself (its box runs the whole width, its words stay where they were), so the card and the map
   run edge to edge inside their own box rather than past it (check_pages.js counts anything past its box) */
@media (max-width: 599px) {
  .rt { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); }
  .atl-c, .atl-f { width: calc(100% + 2 * var(--gut)); margin-left: calc(-1 * var(--gut)); border-radius: 0; box-shadow: 0 1px 0 #000, 0 -1px 0 #000; }
  .atl-c { gap: 0 12px; }
  .atl-go { margin-right: var(--gut); }
  .atl-c img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
  .atl-t { padding: 12px 0 14px var(--gut); }
  .atl-t strong { font-size: 16.5px; }
  .atl-r { font-size: 12.5px; }
  .atl-c:focus-visible { outline-offset: -3px; }
}
.rt-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; padding: 0; list-style: none; }
.rt-g > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rt-g img { width: 32px; height: 32px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5b4a2a; }
.rt-k { font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.rt-n { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.rt-p { display: grid; gap: 7px; margin: 7px 0 0; padding: 0; list-style: none; counter-reset: z; }
.rt-p li { display: flex; align-items: flex-start; counter-increment: z; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.rt-p li::before { content: counter(z); flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #1a1408; background: var(--gold); }
.rt-p + .rt-n { margin-top: 7px; font-size: 14px; }
/* (loop pass 17) the dungeons, one to a line: its name, whose it is, whether Forever added it, and a few words if it needs them */
.rt-d { display: grid; gap: 8px; margin: 7px 0 0; padding: 0; list-style: none; }
.rt-d li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 1.3; color: var(--ink); }
.rt-d b { font-weight: 600; }
.rt-d small { flex-basis: 100%; font-size: 13.5px; line-height: 1.4; color: var(--ink2); }
/* (loop pass 180) a dungeon's level in its own column, so the eye runs down the levels and stops at yours */
.rt-d li.rt-l { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 0 10px; align-items: baseline; }
.rt-lv { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-dn { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
/* the dungeons take a row of their own and fill it in columns where there is room (a phone has room for one). The cards
   wrap as a flex row, so the ones above the dungeons share their row's whole width and nothing sits beside an empty space */
.rt-g { display: flex; flex-wrap: wrap; }
.rt-g > li { flex: 1 1 220px; min-width: 0; }
.rt-g > li.rt-dg { flex-basis: 100%; }
.rt-dg .rt-d { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px 28px; align-items: start; }
.rt-tag { padding: 1px 7px; border-radius: 2px; font-size: 11.5px; font-weight: 700; line-height: 1.55; letter-spacing: .02em; color: var(--ink2); background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.rt-t-horde { color: #f0907f; box-shadow: inset 0 0 0 1px #6a2c24; }
.rt-t-alliance { color: #8fb8ff; box-shadow: inset 0 0 0 1px #2a426e; }
.rt-t-new { color: var(--gold); box-shadow: inset 0 0 0 1px var(--bronze); }
.rt .src { margin-top: 12px; font-size: 13px; }
.rt .src a { color: var(--ink2); }
/* (12 Nov 2026 night) the course and RestedXP's arrow as one card: two halves, a gold plus between, one button. The whole card is the link. */
.rx { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) auto; margin-top: 12px; color: inherit; text-decoration: none; background: var(--panel); box-shadow: var(--frame); transition: box-shadow .15s; }
.rx:hover, .rx:focus-visible { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2), 0 0 0 3px #000, 0 0 26px rgba(90, 120, 255, .28); outline: none; }
.rx-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 18px; }
.rx-a { background: linear-gradient(90deg, rgba(255, 209, 0, .08), transparent); }
.rx-b { background: linear-gradient(90deg, transparent, rgba(80, 110, 255, .22)); }
.rx-th { width: 96px; height: 54px; object-fit: cover; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); }
.rx-coin { width: 60px; height: 60px; filter: drop-shadow(0 0 12px rgba(90, 140, 255, .75)); transition: transform .2s; }
.rx:hover .rx-coin { transform: translateY(-3px); }
.rx-k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rx-h strong { display: block; font: 700 18px/1.2 var(--serif); color: #fff; }
.rx-h small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink2); }
.rx-p { display: grid; place-items: center; }
.rx-p i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 700 23px/1 var(--sans); font-style: normal; color: #1a1408; background: var(--gold); box-shadow: 0 0 0 2px #000, 0 0 16px rgba(255, 209, 0, .4); }
.rx-c { display: grid; align-content: center; justify-items: center; gap: 6px; padding: 12px 22px; text-align: center; border-left: 1px solid var(--line); }
.rx-c small { font-size: 12.5px; color: var(--ink2); }
.rx-btn { padding: 10px 20px; font-size: 15px; font-weight: 700; color: #1a1408; background: linear-gradient(#ffe067, #f0b90b); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2), 0 0 18px rgba(255, 209, 0, .25); white-space: nowrap; }
@media (max-width: 1099px) {
  .rx { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); }
  .rx-c { grid-column: 1 / -1; grid-auto-flow: column; justify-content: center; align-items: center; gap: 14px; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 699px) {
  .rx { grid-template-columns: minmax(0, 1fr); }
  .rx-h { padding: 12px 14px; }
  .rx-a { background: linear-gradient(180deg, rgba(255, 209, 0, .08), transparent); }
  .rx-b { grid-template-columns: 96px minmax(0, 1fr); background: linear-gradient(180deg, transparent, rgba(80, 110, 255, .22)); }
  .rx-coin { justify-self: center; }
  .rx-p { justify-items: start; padding-left: 44px; }   /* the plus has its own row between the clip's picture and the coin, in their column, clear of the words and the logo */
  .rx-a { padding-bottom: 6px; }
  .rx-b { padding-top: 6px; }
  .rx-p i { width: 30px; height: 30px; font-size: 20px; }
  .rx-c { grid-column: auto; grid-auto-flow: row; gap: 6px; padding: 12px 14px 14px; }
  .rx-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .rx, .rx-coin { transition: none; } }
.kit .sec-h { margin-top: 28px; }
.pv-h1 { margin-top: 0; }
@media (max-width: 699px) { .pv-in { gap: 2px; padding: 12px 16px; } .pv-in img { width: 48px; height: 48px; margin-bottom: 6px; } .pv-s { font-size: 14px; line-height: 1.4; } }
.pv-d { margin-top: 10px; }
.pv-d summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 2px; background: #221e16; box-shadow: inset 0 0 0 1px var(--bronze); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); list-style: none; }
.pv-d summary::-webkit-details-marker { display: none; }
.pv-d summary::before { content: ""; width: 0; height: 0; border-left: 6px solid var(--gold); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
.pv-d[open] summary::before { transform: rotate(90deg); }
.pv-d summary:hover { background: #2c2619; color: #fff; }
.pv-d summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pv-b { margin-top: 12px; color: var(--ink2); line-height: 1.55; }
.pv-st { display: grid; gap: 6px; margin: 0; padding-left: 22px; list-style: decimal; color: var(--ink); }
.pv-st li::marker { color: var(--gold); font-weight: 700; }
.pv-k2 { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.pv-k2 + p { margin-top: 3px; }
.pv-q { font-style: italic; color: var(--ink); }
.pv-b .lt-sp { margin-top: 12px; }
.ev-s { margin-top: 6px; }
.pv-m { margin-top: 6px; padding: 10px 12px; border-radius: 2px; background: #0d0c0b; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; white-space: pre-wrap; color: #e6dcc4; }
.pv-go { margin-top: 10px; min-height: 36px; font-size: 14px; }
.pv-go svg { color: var(--gold); width: 14px; height: 14px; }

/* ---------- each chapter's transcript (9 Nov 2026): written into index.html by seo_build.js so search reads every clip's words;
   course.js tucks the current chapter's fold under its lesson list, the others wait in the hidden holder ---------- */
.ts-hold { display: none; }
.ts-li { padding: 6px 10px 10px; }
.ts-c { border-radius: 2px; background: #141210; box-shadow: inset 0 0 0 1px var(--line); }
.ts-c > summary { display: flex; flex-direction: column; gap: 1px; cursor: pointer; padding: 9px 12px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--ink2); list-style: none; }
.ts-c > summary::-webkit-details-marker { display: none; }
.ts-c > summary { position: relative; padding-right: 34px; }
.ts-c > summary::before { content: "+"; position: absolute; right: 13px; top: 9px; font-size: 18px; line-height: 1; color: var(--gold); }
.ts-c[open] > summary::before { content: "\2212"; }
.ts-c > summary span { font-size: 12px; font-weight: 400; color: var(--muted); }
.ts-c > summary:hover { color: #fff; }
.ts-c[open] > summary { color: var(--gold); border-bottom: 1px solid var(--line); }
.ts-l { padding: 10px 12px; border-top: 1px solid var(--line2); }
.ts-c[open] > summary + .ts-l { border-top: 0; }
.ts-l h3 { font: 700 14px/1.3 var(--sans); }
.ts-l h3 a { color: #fff; text-decoration: none; }
.ts-l h3 a:hover { color: var(--gold); text-decoration: underline; }
.ts-m { margin-top: 1px; font-size: 12px; color: var(--muted); }
.ts-l p:last-child { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--ink2); }

/* ---------- captions (9 Nov 2026, Chris's caption rule): a few words at a time, white, the word being said gold, in a band right
   under the picture so they never cover a card, a cast bar or the lesson title; the band keeps one line's height so the page does not
   jump between phrases; sized to the player, so it grows in full screen; CC in the bar folds it away ---------- */
.frame.pl { aspect-ratio: auto; container-type: inline-size; }
.vb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
/* (loop pass 20) "Tap for his voice": on the picture, top left (he stands under it, the cards are on the right), while the clip has
   no sound. A pill for 6 seconds, then its icon only (.sm). Under the end screen (z-index 3). */
.unm { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 11px; border: 0; border-radius: 20px;
  font: 700 14px/1 var(--sans); color: #1a1408; background: linear-gradient(180deg, #ffe27a, #e0aa2c); box-shadow: 0 0 0 1px #1a1408, 0 0 0 2px rgba(255, 226, 122, .35), 0 4px 14px rgba(0, 0, 0, .55); cursor: pointer;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; transition: padding .25s, background .25s, opacity .25s; }
.unm[hidden] { display: none; }
.unm svg { flex: none; width: 18px; height: 18px; }
.unm span { white-space: nowrap; overflow: hidden; max-width: 160px; transition: max-width .3s, opacity .2s; }
.unm.sm { gap: 0; padding: 0 11px; color: #fff; background: rgba(10, 9, 8, .72); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.unm.sm span { max-width: 0; opacity: 0; }
@media (hover: hover) { .unm:hover { filter: brightness(1.08); } .unm.sm:hover { background: rgba(10, 9, 8, .9); } }
.unm:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .unm:not(.sm) { animation: unm-in .4s ease-out .5s both; } }
@keyframes unm-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 699px) { .unm { left: 8px; top: 8px; gap: 6px; padding: 0 12px 0 10px; font-size: 13px; } .unm.sm { padding: 0 11px; } }
.frame.pl:fullscreen .unm { left: 16px; top: 16px; }
.kc { display: flex; align-items: center; justify-content: center; min-height: calc(1.25em + 16px); margin: 0; padding: 8px 4%; background: #0a0908;
  box-shadow: inset 0 1px 0 #000, inset 0 2px 0 var(--bronze3); text-align: center;
  font: 800 18px/1.25 var(--sans); font: 800 clamp(16px, 2.5cqw, 44px)/1.25 var(--sans); color: #fff; letter-spacing: .01em; text-shadow: 0 1px 2px #000; }
.kc.off { display: none; }
/* (loop pass 5) the card on screen, in words: only where the picture is too narrow to read a card in. Its room is kept while empty so
   the page under it never jumps. */
.osc { display: none; }
@media (max-width: 699px) {
  .osc { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; align-items: center; box-sizing: border-box; height: 88px; padding: 8px 12px; background: #0a0908; box-shadow: inset 0 1px 0 #000, inset 0 2px 0 var(--bronze3); }
  .osc.on { background: linear-gradient(180deg, #0f1430, #090b1c); box-shadow: inset 0 0 0 1px #3a3f5c, inset 0 0 0 2px #0b0d1a; animation: osc-in .22s ease-out; }
  .osc img, .osc-f { width: 36px; height: 36px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8b7340; }
  .osc-f { display: grid; place-items: center; background: #14182e; color: var(--gold); } .osc-f svg { width: 14px; height: 14px; }
  .osc p { margin: 0; min-width: 0; }
  .osc b { display: block; font: 700 15px/1.25 var(--sans); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .osc span:not(.osc-f) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 2px; font: 400 13px/1.3 var(--sans); color: #ffd75e; }
  /* (loop pass 22) between cards: the step of Remember the clip is on, quieter than a card */
  .osc.idle img { filter: saturate(.7); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze3); }
  .osc.idle b { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .osc.idle span:not(.osc-f) { font-size: 14px; line-height: 1.35; color: var(--ink2); }
  .osc.idle .osc-f { font-weight: 700; font-size: 15px; background: #1c1a16; color: var(--ink2); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze3); }
}
@media (max-width: 400px) { .osc { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding: 8px 10px; } .osc img, .osc-f { width: 32px; height: 32px; } .osc b { font-size: 14px; letter-spacing: -.01em; } }
@keyframes osc-in { from { opacity: .3; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .osc.on { animation: none; } }
.frame.pl:fullscreen .osc { display: none; }
.kc i { font-style: normal; }
.kc i.on { color: #ffd75e; }
/* (loop pass 51) what he is doing in the move, where he says nothing: quieter than his words, a small gold mark before it */
.kc .kc-a { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;   /* one line always: the band never grows, the page under it never jumps */
  font-weight: 600; font-size: .84em; color: #d6cfbf; letter-spacing: 0; animation: kc-a .25s ease-out; }
@media (max-width: 480px) { .kc .kc-a { font-size: .8em; letter-spacing: -.01em; } }
.kc .kc-a::before { content: ""; display: inline-block; width: 0; height: 0; margin: 0 .5em .08em 0; border: .3em solid transparent; border-left: .46em solid var(--gold); border-right: 0; vertical-align: middle; }
@keyframes kc-a { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kc .kc-a { animation: none; } }
.frame.pl:fullscreen { display: flex; flex-direction: column; background: #000; }
.frame.pl:fullscreen .vb { flex: 1; aspect-ratio: auto; }
/* (9 Nov) previous and next lesson on the player */
.ctl-sk:disabled { opacity: .35; cursor: default; }
.ctl-sk:disabled:hover { background: rgba(0, 0, 0, .55); }
/* (9 Nov) Copy link by the lesson's name; a clip that did not load */
.un-ln { margin-left: 12px; padding: 0; border: 0; background: none; font: 600 13px/1.4 var(--sans); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.un-ln:hover { color: #fff; }
.un-ln:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.v-err { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(10, 9, 8, .9); color: var(--ink); text-align: center; }
/* (loop pass 22) the lesson that finishes a chapter says so once, in gold on the dimmed picture's left, the way the game marks a level */
.end-ding { position: absolute; left: 4%; top: 50%; max-width: 46%; margin: 0; transform: translateY(-50%); display: grid; gap: 4px; pointer-events: none; text-shadow: 0 2px 10px #000, 0 0 22px rgba(255, 190, 40, .45); }
.end-ding b { font: 700 28px/1.1 var(--serif); font-size: clamp(18px, 4.2cqw, 40px); color: #ffd75e; }
.end-ding span { font: 600 14px/1.3 var(--sans); font-size: clamp(12px, 1.9cqw, 18px); color: #f3e6c2; }
@media (prefers-reduced-motion: no-preference) { .end-ding { animation: ding .7s cubic-bezier(.2, 1.3, .4, 1) .15s both; } }
@keyframes ding { from { opacity: 0; transform: translateY(-50%) scale(.8); filter: blur(3px); } to { opacity: 1; transform: translateY(-50%) scale(1); filter: none; } }
/* on a narrow player the end panel is a strip along the bottom, so the line sits in the upper half and may run the full width */
/* (loop pass 33) on a phone-sized player the line sat on the end panel's top edge (by 6 to 33 px at 430 to 360 px wide, measured):
   there it is one line, "Chapter 3 complete", at the picture's top, and its own keyframes (ding's carry the centring shift) */
@container (max-width: 560px) { .end-ding { top: 8px; max-width: 92%; transform: none; animation-name: dingp; } .end-ding b { font-size: 18px; } .end-ding span { display: none; } }
@supports not (container-type: inline-size) { @media (max-width: 699px) { .end-ding { top: 8px; max-width: 92%; transform: none; animation-name: dingp; } .end-ding b { font-size: 18px; } .end-ding span { display: none; } } }
@keyframes dingp { from { opacity: 0; transform: scale(.85); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* (loop pass 23) a kit row whose thing is in the game opens to its own tooltip: quality colour on the frame, a gold corner for "more" */
.kit-i { position: relative; display: block; width: 40px; height: 40px; }
.kit-i img { transition: transform .12s, filter .2s, box-shadow .2s; }
.kit-o { cursor: default; transition: background .2s, box-shadow .2s; }
.kit-o .kit-i::after { content: ""; position: absolute; right: -2px; bottom: -2px; border: 5px solid transparent; border-right-color: var(--gold); border-bottom-color: var(--gold); border-radius: 0 0 2px 0; filter: drop-shadow(0 0 1px #000); }
.kit-o.kq2 .kit-i img { box-shadow: 0 0 0 1px #000, 0 0 0 2px #1a9c0c; }
.kit-o.kq3 .kit-i img { box-shadow: 0 0 0 1px #000, 0 0 0 2px #1267cf; }
.kit-o:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.kit-o:active .kit-i img { transform: scale(.94); }
@media (hover: hover) { .kit-o:hover { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--bronze2); } .kit-o:hover .kit-i img { filter: brightness(1.15); } }
/* the item tooltip's own colours, as the game has them */
.tq1 { color: #fff; } .tq2 { color: #1eff00; } .tq3 { color: #2f8bff; } .tq4 { color: #b860ff; }
.t-il, .t-f { color: var(--gold); }
.t-u { color: #1eff00; }
.t-s { display: flex; align-items: center; gap: 5px; }
.coin { display: inline-flex; align-items: center; gap: 3px; font-style: normal; }
.coin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), inset 0 -2px 2px rgba(0, 0, 0, .3); }
.cg::after { background: #f2c230; } .cs::after { background: #c4c8cc; } .cc::after { background: #c9753a; }
.tip.wide { max-width: min(600px, calc(100vw - 16px)); }
.t-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.t-2 > div + div { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--tip-line); }
@media (max-width: 699px) { .t-2 { grid-template-columns: minmax(0, 1fr); } .t-2 > div + div { margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--tip-line); } }
/* (13 Nov 2026, Chris: "more balanced ... that certificate is very basic & sad") every lesson watched: a plate drawn with the game's
   own art. Its name rides on the character sheet's title bar across the top edge, your Mage at 60 sits in the talent screen's bronze
   ring with its level box, the six chapters are portraits with a tick, and the cheat sheet is its button. (Was a gold coin, pass 28.) */
.hero-done { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px 18px; width: min(450px, 100%); margin-top: 22px; padding: 0 18px 16px;
  border: 1px solid #000; border-radius: 3px; background: linear-gradient(180deg, rgba(34, 29, 21, .95), rgba(14, 12, 10, .96));
  box-shadow: inset 0 0 0 1px var(--bronze), inset 0 1px 0 1px rgba(255, 230, 170, .08), 0 14px 36px rgba(0, 0, 0, .6), 0 0 48px rgba(255, 190, 60, .1); }
.cert-k { grid-column: 1 / -1; justify-self: center; display: grid; place-items: center; width: 270px; max-width: 100%; height: 43px; margin: -22px 0 0; padding: 0 30px 2px;
  background: url(img/cert-title.png) center / 100% 100% no-repeat; font: 700 15px/1 var(--serif); letter-spacing: .06em; color: #ffd75e; text-shadow: 0 1px 2px #000, 0 0 12px rgba(255, 200, 60, .35); white-space: nowrap; }
.cert-face { position: relative; display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 4px; }
.cert-face img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.cert-face::after { content: ""; position: absolute; inset: 0; background: url(img/cert-ring.png) center / 100% 100% no-repeat; pointer-events: none; }
.cert-face b { position: absolute; z-index: 1; left: 50%; bottom: -4px; display: grid; place-items: center; width: 36px; height: 30px; transform: translateX(-50%);
  background: url(img/cert-lv.png) center / 100% 100% no-repeat; font: 700 14px/1 var(--sans); color: #ffd75e; text-shadow: 0 1px 1px #000; }
.cert-t { min-width: 0; }
.cert-n { font: 700 21px/1.2 var(--serif); color: #fff; text-shadow: 0 2px 6px #000; }
.cert-m { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.cert-m span:not(:empty)::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 9px 3px; background: var(--bronze2); transform: rotate(45deg); }
.hero-done a.btn { grid-column: 1 / -1; justify-content: center; text-decoration: none; }
@media (max-width: 699px) {
  .hero-done { grid-template-columns: 84px minmax(0, 1fr); gap: 10px 14px; padding: 0 14px 14px; }
  .cert-face { width: 84px; height: 84px; } .cert-face img { width: 56px; height: 56px; }
  .cert-n { font-size: 18px; }
}
@keyframes seal { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .hero-done .cert-face { animation: seal .6s cubic-bezier(.2, 1.3, .4, 1) both; } }
/* on a computer the plate sits in the middle of the banner's height, beside the title, not at its foot */
@media (min-width: 861px) { .hero-go.is-done { align-self: center; } .hero-t.is-done { grid-template-rows: 1fr auto auto auto 1fr; }
  .hero-t.is-done > .kick { grid-row: 2; } .hero-t.is-done > h1 { grid-row: 3; } .hero-t.is-done > .lede { grid-row: 4; } .hero-t.is-done > .hero-go { grid-row: 1 / -1; } }
/* (loop pass 26) under the lesson numbers, where the list sits far down the page: a bar that names the chapter and opens its lessons there */
.ln-all, .ln-list { display: none; }
.ln-all { scroll-margin-top: 12px; }   /* (loop pass 32) a chapter pressed in the banner brings the page here */
@media (max-width: 1099px) {
  .ln { margin-bottom: 8px; }
  .ln-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0 0 18px; padding: 6px 12px; border: 0; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 14px/1.3 var(--sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .ln-all > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
  .ln-all small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
  .ln-all b { font-weight: 700; color: #fff; }
  .ln-all > span:last-child { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--ink2); white-space: nowrap; }
  .ln-all > span:last-child::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .15s; }
  .ln-all[aria-expanded="true"] { margin-bottom: 0; border-radius: 2px 2px 0 0; box-shadow: inset 0 0 0 1px var(--bronze2); }
  .ln-all[aria-expanded="true"] > span:last-child::after { margin-top: 4px; transform: rotate(225deg); }
  .ln-all:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .ln-all:active { background: var(--panel2); }
  .ln-list { margin: 0 0 18px; padding: 4px 0; list-style: none; border-radius: 0 0 2px 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--bronze2); }
  .ln-list.open { display: block; }
  .ln-list .row { padding-left: 12px; padding-right: 12px; }
}
/* (loop pass 35) the chapter's own picture on its bar, its number over its name beside it */
@media (max-width: 1099px) {
  .ln-all > span:first-child { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 1px 10px; align-items: center; }
  .ln-pic { grid-row: span 2; width: 30px; height: 30px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2); }
  .ln-all small, .ln-all b { grid-column: 2; }
}
@media (max-width: 1099px) and (hover: hover) { .ln-all:hover { box-shadow: inset 0 0 0 1px var(--bronze2); } }
@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) { .ln-list.open { animation: rise .22s ease-out both; } }
/* (loop pass 25) a reason's citation folds behind who says so: the badges stay, a press opens the rest */
.ev-s { margin-top: 8px; }
.ev-s summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ev-s summary::-webkit-details-marker { display: none; }
.ev-sm { display: inline-flex; align-items: center; gap: 7px; padding: 0 4px; font-size: 13px; color: var(--muted); }
.ev-sm::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.ev-s[open] .ev-sm::after { margin-top: 3px; transform: rotate(225deg); }
.ev-s summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ev-s .src { margin-top: 4px; }
@media (hover: hover) { .ev-s summary:hover .ev-sm { color: var(--ink); } .ev-s summary:hover .who { box-shadow: inset 0 0 0 1px var(--bronze2); } }
/* the way to the cheat sheet that closes the page, at every width (a phone hides the banner's link) */
.player { padding-bottom: 28px; }
.shc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; width: calc(100% - 2 * var(--gut)); max-width: calc(var(--max) - 2 * var(--gut)); margin: 0 auto 56px; padding: 16px 20px; border-radius: 2px; background: linear-gradient(90deg, #26210f, var(--panel) 70%); box-shadow: var(--frame); color: var(--ink); text-decoration: none; }
.shc-i { display: flex; }
.shc-i img { width: 32px; height: 32px; margin-left: -9px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2); transition: margin .2s; }
.shc-i img:first-child { margin-left: 0; }
.shc-t { display: grid; gap: 2px; }
.shc-t b { font: 700 20px/1.2 var(--serif); color: #fff; }
.shc-t > span { font-size: 15px; line-height: 1.45; color: var(--ink2); }
.shc-go { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: 2px; background: var(--gold); color: #1a1205; font-size: 14px; font-weight: 800; white-space: nowrap; }
.shc:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.shc:active .shc-go { transform: translateY(1px); }
@media (hover: hover) { .shc:hover .shc-i img { margin-left: -3px; } .shc:hover .shc-i img:first-child { margin-left: 0; } .shc:hover .shc-go { filter: brightness(1.08); } }
@media (max-width: 699px) { .shc { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 40px; padding: 16px 14px; } }
@media (prefers-reduced-motion: reduce) { .shc-i img, .ev-sm::after { transition: none; } }
/* a lesson row answers to the hand: its picture comes forward under a pointer and gives under a press */
.row-pic { transition: transform .12s, box-shadow .2s; }
.row-pic img { transition: transform .25s, filter .25s; }
.row:active:not(:disabled) .row-pic { transform: scale(.97); }
@media (hover: hover) { .row:hover:not(:disabled):not(.is-cur) .row-pic { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2); } .row.row:hover:not(:disabled) .row-pic img { transform: scale(1.05); filter: none; } }
@media (prefers-reduced-motion: reduce) { .row-pic, .row-pic img, .kit-i img { transition: none; } .row:active:not(:disabled) .row-pic, .kit-o:active .kit-i img { transform: none; } }
/* the voice pill steps aside while the end screen is up */
.vb.fin .unm { display: none; }
/* and the number of the lesson playing, under the clip on a phone, fills along its foot as the clip plays (course.js sets --p) */
.ln-b.is-cur::before { content: ""; position: absolute; left: 0; bottom: 0; width: var(--p, 0%); height: 3px; border-radius: 0 0 0 2px; background: #1a1408; opacity: .5; }
/* (9 Nov) the end screen: the picture dims, the next lesson on the right with a 5 second ring, Cancel, the Autoplay switch, Watch again;
   it stops above the bar so the bar stays usable */
.end { position: absolute; left: 0; right: 0; top: 0; bottom: 52px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; padding: 3% 3%;
  background: linear-gradient(90deg, rgba(8, 7, 6, .2), rgba(8, 7, 6, .78) 55%); animation: endIn .25s ease-out; }
@keyframes endIn { from { opacity: 0; } }
/* (loop pass 22) the end screen shares the class of the older end card (above), and took its 36 px top margin and gold frame with it:
   the dimming began a band below the picture's top, inside a frame line. It covers the picture from its top edge now. */
.vb > .end { margin: 0; border-radius: 0; box-shadow: none; }
.end-p { display: grid; gap: 10px; width: min(360px, 44%); padding: 14px; border-radius: 2px; background: rgba(12, 11, 9, .94); box-shadow: var(--frame); }
.end-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.end-go { display: grid; gap: 8px; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.end-go img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); }
.end-go span { font-size: 16px; font-weight: 700; line-height: 1.3; }
.end-go b { color: var(--gold); }
.end-go:hover span { text-decoration: underline; }
.end-c { display: flex; align-items: center; gap: 10px; }
.end-now { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; min-height: 48px; border: 0; border-radius: 26px; background: var(--gold); color: #1a1205; font-weight: 800; font-size: 15px; cursor: pointer; }
.end-now:hover { background: #ffe36a; }
.end-r { flex: none; }
.end-r0 { fill: rgba(0, 0, 0, .14); stroke: rgba(0, 0, 0, .18); stroke-width: 4; }
.end-r1 { fill: none; stroke: #1a1205; stroke-width: 4; transform: rotate(-90deg); transform-origin: 24px 24px; }
.end.held .end-r1 { opacity: 0; }
.end-x { min-height: 44px; padding: 0 14px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.end-x:hover { background: rgba(255, 255, 255, .18); }
.end.held .end-x { display: none; }
.end-a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.end-a input { width: 16px; height: 16px; accent-color: #ffd100; }
.end-re { display: inline-flex; align-items: center; justify-self: start; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--ink2); font-size: 13px; font-weight: 600; cursor: pointer; }
.end-re:hover { color: #fff; }
.end button:focus-visible, .end-a input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* sized by the player, not the screen: no picture when the player is small, a short strip across the bottom when it is phone-sized */
@container (max-width: 760px) { .end-go img { display: none; } .end-p { width: min(340px, 52%); } }
@container (max-width: 560px) {
  .end { align-items: flex-end; padding: 6px 8px; background: linear-gradient(180deg, rgba(8, 7, 6, .15), rgba(8, 7, 6, .8)); }
  .end-p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; padding: 8px 10px; }
  .end-k { width: 100%; font-size: 11px; }
  .end-go { width: 100%; }
  .end-go span { font-size: 13px; }
  .end-now { min-height: 38px; font-size: 13px; padding-right: 12px; }
  .end-now .end-r { width: 30px; height: 30px; }
  .end-x { min-height: 38px; font-size: 13px; padding: 0 10px; }
  .end-re { margin-left: auto; font-size: 12px; }
  .end-a { width: 100%; order: 9; font-size: 12px; }
}
/* (loop pass 33) the phone end screen's buttons at a thumb's size: Play now and Cancel 44 px tall (were 38), Watch again and the
   autoplay switch with 44 and 40 px to press (were 26 and 22), the next lesson's name 27 (was 17). The panel grows about 16 px. */
@container (max-width: 560px) { .end-now, .end-x { min-height: 44px; } .end-go { padding: 5px 0; } .end-re { padding: 14px 6px; margin: -10px -6px -10px auto; } .end-a { padding: 9px 0; margin-bottom: -6px; } }
@supports not (container-type: inline-size) { @media (max-width: 699px) { .end-now, .end-x { min-height: 44px; } .end-go { padding: 5px 0; } .end-re { padding: 14px 6px; margin: -10px -6px -10px auto; } .end-a { padding: 9px 0; margin-bottom: -6px; } } }
@media (prefers-reduced-motion: reduce) { .end { animation: none; } }
/* (9 Nov audit) a quiet ring while a clip buffers */
.vb.buf::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .9s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vb.buf::after { animation: none; } }
/* a browser without container queries (Safari before 16): the phone end screen by the screen's width instead */
@supports not (container-type: inline-size) { @media (max-width: 699px) {
  .end { align-items: flex-end; padding: 6px 8px; } .end-p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; padding: 8px 10px; }
  .end-go img { display: none; } .end-k, .end-go, .end-a { width: 100%; } .end-re { margin-left: auto; } } }
/* (9 Nov audit) a lesson page before the player has drawn itself: its name and words, plainly */
/* (13 Nov 2026, Chris on a phone: "When you click leveling or whatever it shows you another screen for a split second") the plain text
   copy of a page (for search engines and a browser without scripts) showed for about a tenth of a second before the player drew over
   it. With scripts on (the head's one-line script adds .js) it stays hidden; if the script never draws, it comes back after 3 s. */
.js .pre { visibility: hidden; animation: preBack 0s 3s forwards; }
@keyframes preBack { to { visibility: visible; } }
.pre { max-width: 760px; margin: 0 auto; padding: 40px var(--gut) 60px; color: var(--ink2); line-height: 1.6; }
.pre-k { font-size: 14px; font-weight: 700; color: var(--gold); }
.pre h1 { margin: 6px 0 12px; font-size: clamp(26px, 3vw, 36px); }
.pre ul { margin: 12px 0; padding-left: 18px; list-style: disc; }
.pre p { margin-top: 12px; }
.pre-w { color: var(--ink); }
.pre-n a { display: inline-block; margin-right: 18px; padding: 10px 0; color: var(--ink); }
/* (loop pass 38) the front page's plain words: chapters and their lessons as links */
.pre-home h2 { margin: 22px 0 6px; font: 700 17px/1.3 var(--sans); color: var(--gold); }
.pre-home ol { margin: 0; padding: 0; list-style: none; }
.pre-home li a { display: inline-block; padding: 8px 0; color: var(--ink); text-underline-offset: 3px; }
.pre-home li span { margin-left: 8px; font-size: 14px; color: var(--muted); }
/* (loop pass 38) a keyboard's place on the pieces that had none: the Remember steps, the spell slots, the names that open a tooltip, the folds */
.st:focus-visible, .chip:focus-visible, .term:focus-visible, .lt-i:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
/* (9 Nov loop, pass 1) whose word a reason is, at a glance, and its figures in bold */
.ev li p:first-child b { color: #fff; font-weight: 700; }
.ev-w { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.who { padding: 1px 8px; border-radius: 2px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; line-height: 1.6; color: var(--ink2); }
.who-g { color: #8fe07f; box-shadow: inset 0 0 0 1px #2f5a27; }
.who-b { color: #69ccf0; box-shadow: inset 0 0 0 1px #24566a; }
.who-t { color: var(--gold); box-shadow: inset 0 0 0 1px var(--bronze); }
.ev .src { margin-top: 6px; }
/* (9 Nov loop, pass 1) the chapter's talents, a link into the calculator */
.bld { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 2px; background: linear-gradient(90deg, #26210f, var(--panel) 70%); box-shadow: var(--frame); color: var(--ink); text-decoration: none; }
.bld img { border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2); }
.bld-t { display: grid; gap: 2px; }
.bld-t b { font-size: 16px; color: #fff; }
.bld-t span { font-size: 14px; color: var(--ink2); }
.bld-go { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 2px; background: var(--gold); color: #1a1205; font-size: 14px; font-weight: 800; white-space: nowrap; }
.bld:hover .bld-go { background: #ffe36a; }
.bld:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 699px) { .bld { grid-template-columns: 48px minmax(0, 1fr); } .bld-go { grid-column: 1 / -1; justify-content: center; } }
/* (9 Nov loop, pass 2) the cheat sheet page, and its link in the banner */
.hero-a { color: var(--gold); font-weight: 700; text-underline-offset: 3px; }
.hero-a:hover { color: #fff; }
.sheet { display: block; max-width: 1180px; margin: 0 auto; padding: 22px var(--gut) 56px; }
.sh-h h1 { margin-top: 6px; }
.sh-l { margin-top: 8px; color: var(--ink2); }
.sh-l a, .sh-b a { color: var(--gold); text-underline-offset: 3px; }
.sh-c { margin-top: 34px; }
.sh-c h2 { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--bronze3); font: 700 24px/1.2 var(--serif); color: #fff; }
.sh-c h2 span { font: 700 14px/1.3 var(--sans); color: var(--gold); }
/* (loop pass 35) the chapter's own picture beside its heading on the sheet (not on paper) */
.sh-c h2.sh-p { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.sh-c h2.sh-p img { grid-row: span 2; width: 44px; height: 44px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2); }
@media print { .sh-c h2.sh-p { display: block; } .sh-c h2.sh-p img { display: none; } .sh-c h2.sh-p span { display: block; } }
.sh-b { margin-top: 10px; font-size: 15px; }
.sh-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; margin-top: 12px; }   /* (Shaman loop, 14 Nov) min(300px, 100%): at 320 the 300 px column was wider than the 288 px page and each lesson card ran 12 px into the right gutter */
.sh-a { padding: 12px 14px 14px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); break-inside: avoid; }
/* (loop pass 9) each lesson's picture beside its name: the same frame as its poster, so the sheet can be scanned by eye */
.sh-hd { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
.sh-t { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze3); }
.sh-t img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-t:hover { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold); }
.sh-hd > h3:only-child { grid-column: 1 / -1; }
.sh-a h3 { display: grid; gap: 2px; font: 700 16px/1.3 var(--sans); }
.sh-a h3 a { color: #fff; text-decoration: none; }
.sh-a h3 a:hover { color: var(--gold); text-decoration: underline; }
.sh-a h3 b { color: var(--gold); }
.sh-a h3 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.sh-a ul { margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink); line-height: 1.45; }
.sh-a li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 7px; }
.sh-a li img, .sh-a li > i { width: 22px; height: 22px; margin-top: 1px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze3); }
.sh-w { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line2); font-size: 14px; line-height: 1.5; color: var(--ink2); }
/* (loop pass 24) the chapter's kit on the sheet: each thing with its picture and when, in a row that wraps */
.sh-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 0; padding: 10px 14px; list-style: none; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.35; color: var(--ink); break-inside: avoid; }
.sh-k li { display: flex; align-items: center; gap: 8px; }
.sh-k img { width: 22px; height: 22px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze3); }
.sh-k small { margin-left: 6px; font-size: 13px; color: var(--muted); }
.sh-kh { font-weight: 700; color: var(--gold); }
/* (loop pass 40) the chapter's talent points in order, under its talents card: a run of levels for each talent */
.tp { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tp li { display: grid; grid-template-columns: 32px auto; gap: 0 9px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: default; transition: box-shadow .2s, background .2s; }
.tp li.tp-h { display: flex; padding: 0 4px 0 2px; background: none; box-shadow: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tp img { width: 32px; height: 32px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); }
.tp span { display: grid; line-height: 1.25; }
.tp b { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.tp small { font-size: 13px; font-weight: 700; color: var(--gold); }
.tp small i { margin-left: 7px; font-style: normal; font-weight: 400; color: var(--muted); }
.tp li:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .tp li:not(.tp-h):hover { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--bronze2); } }
@media (max-width: 699px) { .tp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .tp li.tp-h { grid-column: 1 / -1; padding: 2px 0 0; } .tp li { padding-right: 6px; } .tp b { white-space: normal; } }
/* (Shaman loop, 14 Nov) at 320 two talents side by side ("Reverberation", "Elemental Devastation") ran 9 px past the page's gutter:
   a 1fr column cannot shrink under its longest word. One a row there */
@media (max-width: 359px) { .tp { grid-template-columns: minmax(0, 1fr); } }
/* (loop pass 41) what is new at the trainer in these levels: an icon with its level on the corner (as the game numbers a stack), its name under it */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.ns li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; width: 78px; padding: 2px 0; border-radius: 2px; text-align: center; cursor: default; }
.ns li.tp-h { display: flex; width: 100%; margin: 0 0 -2px; padding: 0 4px 0 2px;   /* on a line of its own: a wrapped row then starts under the first icon, not under the label */ font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ns-i { position: relative; display: block; width: 40px; height: 40px; }
.ns-i img { width: 40px; height: 40px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze); transition: filter .2s, box-shadow .2s; }
.ns-i em { position: absolute; right: -6px; bottom: -5px; min-width: 20px; padding: 0 3px; border-radius: 2px; background: #0b0a09; box-shadow: 0 0 0 1px var(--bronze2); font: 700 12px/17px var(--sans); font-style: normal; color: var(--gold); font-variant-numeric: tabular-nums; }
.ns b { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.ns li:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .ns li:not(.tp-h):hover .ns-i img { filter: brightness(1.15); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold2); } .ns li:not(.tp-h):hover b { color: #fff; } }
@media (max-width: 699px) { .ns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 2px; } .ns li { width: auto; } .ns li.tp-h { grid-column: 1 / -1; margin: 0; padding: 2px 0 0; } .ns b { font-size: 11px; } }
/* (loop pass 40) four tabs on a phone (a lesson with macros) wrapped three and one, the fourth stretched across a row of its own:
   two rows of two */
@media (max-width: 699px) { .tabs.t4 { display: grid; grid-template-columns: 1fr 1fr; } }
/* (loop pass 37) a phone on its side: the picture alone was 443 px tall on a 390 px screen, its controls and the caption under the
   fold. On a short, wide screen the player is no wider than lets the picture, its controls and its caption line all show at once. */
@media (orientation: landscape) and (max-height: 560px) { .stage { width: 100%; max-width: calc((100vh - 72px) * 16 / 9); margin-left: auto; margin-right: auto; } }
@supports (height: 100dvh) { @media (orientation: landscape) and (max-height: 560px) { .stage { max-width: calc((100dvh - 72px) * 16 / 9); } } }
/* under 700 px wide the controls sit below the picture (two rows, about 78 px): room for them too */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 699px) { .stage { max-width: calc((100vh - 100px) * 16 / 9); } }
@supports (height: 100dvh) { @media (orientation: landscape) and (max-height: 560px) and (max-width: 699px) { .stage { max-width: calc((100dvh - 100px) * 16 / 9); } } }
/* (loop pass 42) the sheet's jump row: each chapter by its picture and levels, and the macros */
.sh-j { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sh-j a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.sh-j img { width: 36px; height: 36px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze2); }
.sh-j .sh-jm { padding-left: 14px; color: var(--gold); }
.sh-j a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .sh-j a:hover { box-shadow: inset 0 0 0 1px var(--gold2); color: #fff; } }
@media (max-width: 699px) { .sh-j { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .sh-j a { padding-right: 6px; } .sh-j .sh-jm { grid-column: 1 / -1; justify-content: center; } }
/* (Shaman loop, 14 Nov) under 380 a third of the page is under the 109 px an icon and "10 to 19" need, so the label ran under the next
   chapter's picture ("10 to 1"): two columns there */
@media (max-width: 379px) { .sh-j { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sh-c { scroll-margin-top: 12px; }
.sh-up { margin-top: 6px; text-align: right; font-size: 14px; }
.sh-up a { display: inline-block; padding: 10px 0 10px 12px; color: var(--muted); text-underline-offset: 3px; }
.sh-up a:hover { color: var(--ink); }
@media print { .sh-j, .sh-up { display: none; } }
/* (loop pass 36) the course's macros on the sheet: a tap selects a macro whole */
.sh-l a + a { margin-left: 14px; }
.sh-mc pre { margin: 10px 0 0; padding: 10px 12px; border-radius: 2px; background: #0b0a09; box-shadow: inset 0 0 0 1px var(--line); font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; color: #e9e2cf; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; cursor: text; }
.sh-m { scroll-margin-top: 12px; }
@media print { .sh-mc pre { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #999; } }
/* (loop pass 30) where to level, on the sheet: a line for each side with its zones in order, and the dungeons */
.sh-r { display: grid; gap: 8px; margin-top: 8px; }
.sh-r li { align-items: start; }
.sh-r li > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 0; min-width: 0; line-height: 1.5; }
.sh-r b { margin-right: 10px; font-weight: 700; color: #fff; }
.sh-z + .sh-z::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
.sh-d + .sh-d::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 9px 3px; background: var(--bronze2); transform: rotate(45deg); }
.sh-r em { margin-left: 6px; padding: 0 5px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--bronze); font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold); }
.sh-r .sh-n { flex-basis: 100%; margin-left: 0; }
@media (max-width: 699px) { .sh-r li > span { display: block; } .sh-r b { display: block; margin: 0; } .sh-d { display: block; } .sh-d + .sh-d::before { content: none; } .sh-r .sh-n { display: block; } }
@media (max-width: 699px) { .sh-k { display: grid; gap: 8px; } }
/* (loop pass 192, Chris on the sheet: "Where's the video based course") the way to the clips is the first button on the sheet,
   not a link at the end of a sentence */
.sh-watch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; padding: 0 18px 0 14px; border-radius: 2px; background: var(--gold); color: #1a1205; font-size: 16px; font-weight: 800; text-decoration: none; }
.sh-watch small { font-size: 13px; font-weight: 700; color: #4a3a08; }
.sh-watch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .sh-watch:hover { background: #ffe36a; } }
@media (max-width: 699px) { .sh-watch { display: flex; justify-content: center; } }
@media print { .sh-watch { display: none; } }
/* (loop pass 191) the sheet's fold of a guide's staves and wands: a quiet summary line, and the level table's look inside */
.sh-ar { margin-top: 12px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); break-inside: avoid; }
.sh-ar summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 6px 14px; font-size: 14px; font-weight: 700; color: var(--gold); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.sh-ar summary::-webkit-details-marker { display: none; }
.sh-ar summary::before { content: ""; width: 6px; height: 6px; margin-right: 2px; border-right: 2px solid var(--gold2); border-bottom: 2px solid var(--gold2); transform: rotate(-45deg); transition: transform .15s; }
.sh-ar[open] summary::before { transform: rotate(45deg); }
.sh-ar summary small { font-size: 13px; font-weight: 600; color: var(--muted); }
.sh-ar summary:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@media (hover: hover) { .sh-ar summary:hover { color: #fff; } }
.sh-ar .sh-art { margin-top: 0; box-shadow: none; background: none; border-top: 1px solid var(--line); }
.sh-art td small { display: block; font-size: 13px; color: var(--muted); }
/* on a computer the place sits on the item's line, so a row is one line */
@media (min-width: 700px) { .sh-art td small { display: inline; margin-left: 14px; } .sh-art td, .sh-art tbody th { padding-top: 5px; padding-bottom: 5px; } }
.sh-arn { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sh-art .sh-ark th { width: auto; padding-top: 9px; padding-bottom: 5px; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sh-ars { padding: 8px 14px 10px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.45; color: var(--muted); }
/* (14 Nov) a two-hander's swing speed beside its name, the number a Shaman picks one by; the note under the table says why */
.sh-asp { padding: 1px 7px; border-radius: 2px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: #ffe08a; background: rgba(201,162,78,.14); box-shadow: inset 0 0 0 1px rgba(201,162,78,.45); }
.sh-arsp { color: var(--ink); font-size: 13px; }
/* (14 Nov, Shaman pass 596) the same table as a lesson's tab: one row a weapon, the level in gold, its side and speed beside its name */
.ar-h { padding: 4px 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.ar-l { list-style: none; margin: 0; padding: 0; }
.ar-l li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ar-lv { font-size: 16px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.ar-x { display: grid; gap: 3px; min-width: 0; }
.ar-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ar-n b { font-size: 15px; color: var(--ink); }
.ar-x small { font-size: 13px; color: var(--muted); }
/* (14 Nov, Shaman pass 602) what the trainer costs from 50: the ranks you press lit, the rest dimmed, each level's price under it,
   the two totals side by side, the smaller one in gold */
.buy .tc-t th { width: 64px; }
.buy .tc-t th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.buy .tc-t th small.buy-np { white-space: normal; }   /* (15 Nov, the Priest audit) a level whose price nobody has read: its words wrap in the narrow column */
.buy .tc-s { min-width: 168px; }
.buy-on img { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold); }
.buy-on small { color: var(--gold); }
.buy-off { opacity: .55; }
.buy-off small { color: var(--muted); }
@media (hover: hover) { .buy-off:hover { opacity: .9; } }
.buy-off:focus-visible { opacity: 1; }
.buy-t { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 10px; }
.buy-t > div { padding: 10px 14px; border-radius: 2px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.buy-t dt { font-size: 13px; color: var(--muted); }
.buy-t dd { margin: 2px 0 0; font: 700 24px/1.2 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.buy-t .buy-m { box-shadow: inset 0 0 0 1px var(--gold2, #c9a24e); }
.buy-t .buy-m dd { color: var(--gold); }
/* on a phone the ranks you skip shrink to one small line each, so the ones you press stand out and the card stays short */
@media (max-width: 599px) {
  .buy .tc-t th { width: 54px; }
  .buy-ea { display: none; }
  .buy .tc-t td { gap: 6px 12px; }
  .buy .tc-s { min-width: 0; }
  .buy-on { flex-basis: 100%; }
  .buy-off { gap: 6px; }
  .buy-off img { width: 20px; height: 20px; }
  .buy-off > span { display: block; font-size: 13px; font-weight: 600; }
  .buy-off small { display: inline-block; margin-left: 4px; font-size: 12px; white-space: nowrap; }
}
/* (14 Nov, Shaman pass 600) a rank that drops as a tablet, under what it gives */
.sp-drop { display: block; margin-top: 3px; font-size: 12.5px; color: #c9a24e; }
/* (14 Nov, Shaman pass 598) a lesson's bar chart: thin bars on a recessive track, rounded at the data end, the lit row in gold */
.bars-k { margin: -6px 0 14px; font-size: 14px; color: var(--muted); }
.bars-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars-l li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 52px; gap: 10px; align-items: center; min-height: 28px; border-radius: 2px; }
.bars-l li:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bars-n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars-t { height: 14px; border-radius: 0 4px 4px 0; background: rgba(255,255,255,.05); }
.bars-b { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; background: rgba(201,162,78,.5); transition: background .15s; }
.bars-v { font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.bars-l li.on .bars-n, .bars-l li.on .bars-v { color: var(--gold); }
.bars-l li.on .bars-b { background: linear-gradient(90deg, #c9a24e, #ffd75a); }
@media (hover: hover) { .bars-l li:hover .bars-b { background: rgba(255,215,90,.75); } .bars-l li.on:hover .bars-b { background: #ffe08a; } }
.bars .src { margin-top: 10px; }
@media print { .bars-b { background: #999 !important; } .bars-l li.on .bars-b { background: #555 !important; } }
.ar-note { padding: 10px 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.sh-arsp + .sh-ars { border-top: 0; padding-top: 0; }
@media print { .sh-asp { color: #000; background: none; box-shadow: inset 0 0 0 1px #999; } }
@media (prefers-reduced-motion: reduce) { .sh-ar summary::before { transition: none; } }
@media print { .sh-ar { background: #fff; box-shadow: inset 0 0 0 1px #999; } .sh-ar summary { color: #7a5a00; } .sh-ar summary small, .sh-art td small, .sh-ars, .sh-art .sh-ark th { color: #555; } }
/* (loop pass 187) "Your level" on the sheet (sheet_level.js): a small form under the jump links, and the mark on your level's row */
.sh-me { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 8px 12px; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.sh-me[hidden], .sh-mego[hidden], .sh-meh[hidden] { display: none; }
.sh-meh { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.sh-me label { font-size: 14px; font-weight: 700; color: var(--gold); }
.sh-mes { display: inline-flex; align-items: center; gap: 6px; }
.sh-me button, .sh-you button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 2px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--bronze2); font: 700 18px/1 var(--sans); color: var(--ink); cursor: pointer; }
.sh-me input { width: 104px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 2px; background: #0d0c0a; box-shadow: inset 0 0 0 1px var(--bronze2); font: 700 18px/1 var(--sans); text-align: center; color: #fff; font-variant-numeric: tabular-nums; }
.sh-me input::placeholder { font-size: 13px; font-weight: 600; color: var(--muted); }
.sh-mego { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--gold); white-space: pre; }
/* (loop pass 192) on a phone the link says "Go to 24", so the whole control is one row */
@media (max-width: 699px) { .sh-mel { display: none; } .sh-me { gap: 8px; padding: 8px 10px; } .sh-me input { width: 96px; } }
.sh-me button:focus-visible, .sh-me input:focus-visible, .sh-mego:focus-visible, .sh-you button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .sh-me button:hover, .sh-you button:hover { box-shadow: inset 0 0 0 1px var(--gold2); color: #fff; } }
.sh-lv tbody tr { scroll-margin-top: 80px; }
.sh-lv tr.sh-me-row { background: rgba(255, 209, 0, .08); box-shadow: inset 3px 0 0 var(--gold); }
.sh-lv tr.sh-me-row th { color: #fff; font-size: 15px; }
.sh-you { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; }
.sh-lv .sh-l0 .sh-you { margin-top: 0; }
.sh-you b { padding: 2px 8px; border-radius: 2px; background: var(--gold); font-size: 12.5px; font-weight: 700; color: #1a1408; white-space: nowrap; }
.sh-you button { font-size: 14px; color: var(--gold); }
@media print { .sh-me, .sh-you { display: none; } .sh-lv tr.sh-me-row { background: none; box-shadow: none; } }
/* (loop pass 183) the sheet's level by level table: the level in gold on the left, the talent point of that level (one tall
   cell for a run of levels on the same talent), and what the trainer has. A hairline between levels; a level with nothing
   at the trainer is a short row. */
.sh-lv { width: 100%; margin-top: 12px; border-collapse: collapse; border-radius: 2px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.35; color: var(--ink); break-inside: avoid; }
.sh-lv caption { padding: 10px 14px 2px; text-align: left; font-weight: 700; color: var(--gold); caption-side: top; background: var(--panel); box-shadow: inset 0 1px 0 var(--line), inset 1px 0 0 var(--line), inset -1px 0 0 var(--line); border-radius: 2px 2px 0 0; }
.sh-lv thead th { padding: 4px 8px 6px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sh-lv thead th:first-child, .sh-lv tbody th { padding-left: 14px; }
.sh-lv tbody tr { border-top: 1px solid var(--line); }
.sh-lv tbody th { width: 44px; padding: 7px 8px 7px 14px; text-align: left; vertical-align: top; font-size: 15px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.sh-lv td { padding: 7px 8px; vertical-align: top; }
.sh-lv td:last-child { padding-right: 14px; }
.sh-lt { width: 24%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.sh-lt > span { display: flex; align-items: flex-start; gap: 8px; }
.sh-lt[rowspan] { vertical-align: middle; }
.sh-lv img { flex: none; width: 22px; height: 22px; border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bronze3); }
.sh-lt small { display: block; font-size: 12.5px; color: var(--muted); }
.sh-lw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; margin-right: 18px; vertical-align: middle; }
.sh-ls { display: inline-flex; align-items: center; gap: 7px; }
.sh-lr { display: inline-block; font-size: 13px; color: var(--muted); vertical-align: middle; }
.sh-lv .sh-l0 th, .sh-lv .sh-l0 td { padding-top: 2px; padding-bottom: 2px; }
.sh-lv .sh-l0 th { font-size: 13.5px; color: var(--bronze2); }
/* on a phone the trainer's spells are words in a line (no icons), with the new ranks on the line under them, so a level stays short */
@media (max-width: 699px) { .sh-lt { width: 34%; } .sh-lv thead th { letter-spacing: .02em; } .sh-lv tbody th { width: 30px; padding: 6px 4px 6px 12px; } .sh-lv thead th:first-child { padding-left: 12px; } .sh-lv td { padding: 6px 8px; } .sh-lv td:last-child { padding-right: 10px; }
  .sh-lw { display: inline; margin: 0; } .sh-ls { display: inline; } .sh-ls img { display: none; } .sh-ls:not(:last-child)::after { content: ", "; } .sh-lr { display: block; margin-top: 2px; font-size: 12.5px; } .sh-lt > span { gap: 7px; } .sh-lv caption { padding-left: 12px; } .sh-lv .sh-l0 th, .sh-lv .sh-l0 td { padding-top: 2px; padding-bottom: 2px; } }
@media print { .sh-lv, .sh-lv caption { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #999; } .sh-lv caption, .sh-lv tbody th { color: #7a5a00; } .sh-lv small, .sh-lv thead th { color: #555; } .sh-lv tbody tr, .sh-lt { border-color: #999; } }
@media print { body { background: #fff; color: #000; } .top, .foot { display: none; } .sh-t { display: none; } .sh-hd { display: block; } .sheet { max-width: none; padding: 0; }
  .sh-h h1, .sh-c h2, .sh-a h3 a, .sh-a ul, .sh-k b { color: #000; text-shadow: none; } .sh-c h2 span, .sh-a h3 b, .pre-k, .sh-l a, .sh-b a { color: #7a5a00; }
  .sh-a, .sh-k { background: #fff; box-shadow: inset 0 0 0 1px #999; } .sh-kh { color: #7a5a00; } .sh-k small { color: #555; } .sh-k, .sh-r b { color: #000; } .sh-r em { color: #7a5a00; box-shadow: inset 0 0 0 1px #999; } .sh-z + .sh-z::before { border-color: #7a5a00; } .sh-w, .sh-k, .sh-l, .sh-a h3 small { color: #333; } .sh-g { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 699px) { .sh-a h3 a { display: block; padding: 8px 0; } .sh-b a, .sh-l a { display: inline-block; padding: 8px 0; } }
/* (9 Nov loop, pass 3) the lesson in one line */
.un-w { margin-top: 6px; max-width: 62ch; font-size: 17px; line-height: 1.45; color: var(--ink); }

/* (loop pass 83) headings break into even lines, never leaving one word alone: a phone read 'When Frostbite freezes / it' */
h1, h2, h3, .un-t, .pv-t { text-wrap: balance; }
/* (loop pass 85) running text never leaves one word alone on its last line: a phone read 'Keep casting, and from 20 a freeze is Ice Lance / time.' */
p, li, dd, figcaption, blockquote, small, label, .st, .say-l { text-wrap: pretty; }
/* (loop pass 87) on a short laptop screen (1100 px wide or more, 900 px tall or less) the clip ran off the bottom of the first screen
   (1366x768: the last 109 px of the picture, its captions and controls). There, a lesson page drops the course's intro paragraph (the
   lesson has its own), the chapter cards drop their "0 of 6 done" line (each card's gold bar shows it), and two gaps tighten: the
   clip comes up about 100 px. The front page keeps its intro. */
/* (loop pass 88) and from 861 px wide, where the clip sits beside the lesson list too: an iPad held sideways (1024x768) had its clip at
   446 to 810 px, a phone held sideways (915x412) had none of it on the first screen */
@media (min-width: 861px) and (max-height: 900px) {
  html.on-l .lede { display: none; }
  .stop .stop-s { display: none; }
  .road { margin-top: 14px; }
  .player { padding-top: 12px; }
  .hero-in { padding-top: 8px; padding-bottom: 12px; }
}
/* (loop pass 114) The spells: the rank you have at the lesson's level, marked in its table */
.sp-r tr.sp-now td { background: rgba(255, 209, 0, 0.08); color: #fff; }
.sp-r tr.sp-now td:first-child { box-shadow: inset 3px 0 0 var(--gold); padding-left: 8px; }
/* (loop pass 116) Read this chapter: the lesson you're on, a gold edge and title as in the lesson list */
.ts-l.is-now { background: rgba(255, 209, 0, 0.05); box-shadow: inset 3px 0 0 var(--gold); }
.ts-l.is-now h3 a { color: var(--gold); }
.ts-l.is-now h3::after { content: "You're here"; margin-left: 8px; font: 600 11px/1 var(--sans); letter-spacing: .02em; color: var(--muted); }
/* (loop pass 119) The spells: when the next rank comes, so you know when to go back to the trainer */
.sp-h p.sp-nx { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--gold); }
/* (loop pass 133) the end of the course: how many you have watched, the first one you have not, and the two pages to keep open */
.end-s { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.end-l2 { display: grid; gap: 6px; }
.end-l2 a { font-size: 14px; font-weight: 600; color: var(--gold); text-decoration: none; }
.end-l2 a:hover, .end-l2 a:focus-visible { text-decoration: underline; }
.end-l2 a::after { content: " \203A"; }
/* (13 Nov 2026) the finish screen's first link: RestedXP's route, with its arrow and the Affiliate partner label */
.end-l2 a.end-rx { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; padding: 8px 10px; border-radius: 2px; background: rgba(255, 209, 0, .07); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .45); }
.end-l2 a.end-rx::after { content: none; }
.end-rx img { flex: none; width: 36px; height: 36px; }
.end-rx span { display: grid; gap: 1px; min-width: 0; }
.end-rx small { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.end-rx b { font-size: 14px; line-height: 1.3; color: var(--gold); }
.end-rx em { font-size: 12px; font-style: normal; font-weight: 500; color: var(--ink2); }
.end-l2 a.end-rx:hover, .end-l2 a.end-rx:focus-visible { text-decoration: none; background: rgba(255, 209, 0, .12); }
.end-l2 a.end-rx:hover b, .end-l2 a.end-rx:focus-visible b { text-decoration: underline; }
/* on a phone the panel is a strip over the picture: the send-off is its heading (the gold ding above already says it is the end), the
   RestedXP link one card two lines tall, and Watch again beside the talents link, so it all fits under the ding at 320 */
@container (max-width: 560px) {
  .end-last .end-k { display: none; }
  .end-last .end-p { row-gap: 3px; padding-top: 6px; }
  .end-last .end-ding { top: 4px; }
  .end-last .end-s { width: 100%; font-size: 13px; font-weight: 700; line-height: 1.3; color: #f3e6c2; }
  .end-last .end-l2 { display: contents; }
  .end-last .end-l2 a { font-size: 13px; }
  .end-last .end-l2 a.end-rx, .end-last .end-rx + a { width: 100%; }
  .end-last .end-l2 a.end-rx { gap: 8px; margin: 0; padding: 5px 8px; }
  .end-last .end-rx img { width: 26px; height: 26px; }
  .end-last .end-rx span { display: block; line-height: 1.3; }
  .end-last .end-rx small { font-size: 10px; }
  .end-last .end-rx b { font-size: 13px; }
  .end-last .end-rx em { display: none; }
}
@supports not (container-type: inline-size) { @media (max-width: 699px) {
  .end-last .end-k { display: none; }
  .end-last .end-p { row-gap: 3px; padding-top: 6px; }
  .end-last .end-ding { top: 4px; }
  .end-last .end-s { width: 100%; font-size: 13px; font-weight: 700; line-height: 1.3; color: #f3e6c2; }
  .end-last .end-l2 { display: contents; }
  .end-last .end-l2 a { font-size: 13px; }
  .end-last .end-l2 a.end-rx, .end-last .end-rx + a { width: 100%; }
  .end-last .end-l2 a.end-rx { gap: 8px; margin: 0; padding: 5px 8px; }
  .end-last .end-rx img { width: 26px; height: 26px; }
  .end-last .end-rx span { display: block; line-height: 1.3; }
  .end-last .end-rx small { font-size: 10px; }
  .end-last .end-rx b { font-size: 13px; }
  .end-last .end-rx em { display: none; }
} }
/* at 320 the talents link says "Your talents at 60" so Watch again stays on its row and the panel clears the ding */
@container (max-width: 359px) { .end-last .end-ln { display: none; } }
@supports not (container-type: inline-size) { @media (max-width: 359px) { .end-last .end-ln { display: none; } } }
/* (loop pass 134) the last lesson's foot carries the two links in a row under its words */
.lf-t .end-l2 { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
/* (loop pass 134) the last lesson's foot: the lesson you missed in plain words under the count */
.lf-s { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.lf-s b { color: var(--gold); }
/* (loop pass 139) Since Classic: a spell new in Forever says plainly that Classic had none */
.cmp dd.cmp-no { color: var(--muted); font-style: italic; }
/* (loop pass 161) a thumb's worth: the last controls whose tap area was under 44 px on a phone (tests/hit161.js: the footer's links
   20 px, a Source fold 30, the sheet's lesson names 38) get an unseen 44 px strip through their middle, the way the seek bar has
   had since 9 Nov. Nothing moves and nothing looks different */
@media (max-width: 699px), (pointer: coarse) {
  .ev-s summary, .srcs summary, .ts-c a, .foot a, .sh-a h3 a, .sh-l a { position: relative; }
  .ev-s summary::after, .srcs summary::after, .ts-c a::after, .foot a::after, .sh-a h3 a::after, .sh-l a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  /* the last lesson's two foot links keep their arrow (it is their ::after), so they get real height instead */
  .lf-t .end-l2 { gap: 0 16px; }
  .lf-t .end-l2 a { display: inline-block; padding: 12px 0; }
}
/* (loop pass 177) a link ending #kit lands the kit a little below the top edge */
.kit { scroll-margin-top: 14px; }
/* (loop pass 178) the sheet's kit entries are links to their cards; on a phone each is a 44 px row (the list's own gap goes) */
.sh-ka { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.sh-ka:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
@media (hover: hover) { .sh-ka:hover span { color: #fff; text-decoration: underline; text-underline-offset: 3px; } .sh-ka:hover small { text-decoration: none; } }
@media (max-width: 699px) { .sh-k.sh-kl { gap: 0; } .sh-kl .sh-kh { padding-bottom: 4px; } .sh-ka { flex: 1; min-height: 44px; }
  /* a small arrow at the row's end says it opens something (a phone has no hover) */
  .sh-ka::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: auto; border-top: 2px solid var(--bronze2); border-right: 2px solid var(--bronze2); transform: rotate(45deg); } }
@media print { .sh-ka { color: #000; } }
/* (13 Nov 2026) the header at 320 with the round mark: both on one line */
@media (max-width: 359px) { .home { gap: 8px; font-size: 14px; white-space: nowrap; } .home img.tfmark { width: 34px; height: 34px; margin-left: 2px; } .toplink { font-size: 13px; white-space: nowrap; padding: 0 9px; min-height: 40px; } .toplink::before { display: none; } }   /* 320: both on one line (the button without its mark) */

/* (pass 744) the cheat sheet's way to the map, under each chapter's Where: an iron plate with gold letters, as the atlas's tools */
.sh-map { margin: 6px 0 0; }
.sh-atl { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 3px; font: 700 13px var(--serif); letter-spacing: .04em; color: #ffd100; text-decoration: none;
  text-shadow: 0 1px 0 #000; background: linear-gradient(180deg, #2e281c, #1a160f); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #6b5226, inset 0 1px 0 rgba(255,222,150,.22); }
.sh-atl::after { content: "›"; font-size: 17px; line-height: 1; }
@media (hover: hover) { .sh-atl:hover { color: #fff1b0; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #c9a24e, inset 0 1px 0 rgba(255,222,150,.3); } }
.sh-atl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 599px) { .sh-atl { padding: 0 12px; font-size: 12px; letter-spacing: .02em; } }
@media print { .sh-map { display: none; } }
/* (15 Nov 2026, the Priest course) a chapter still being filmed writes its lessons out, reasons included, one column in from the
   lesson's number: on a phone the reasons' own picture column left 150 px for words at 320, and a whole spell name ("Gravestone
   Scepter", 175 px with its icon) ran out of the card. Below 400 px the reasons there drop their picture and take the full width */
@media (max-width: 400px) { .pv-l .ev li { grid-template-columns: minmax(0, 1fr); } .pv-l .ev .ev-n { display: none; } }
/* (15 Nov 2026, the Priest course) the whole talent path as one card (course.js pathCard): the lesson's own levels lit */
.pth-s { margin: 4px 0 0; color: var(--muted); font-size: 14px; } .pth-s b { color: #fff; }
.pth .tp li.pth-on { background: linear-gradient(180deg, #2c2410, var(--panel)); box-shadow: inset 0 0 0 1px var(--gold); }
.pth-go { margin: 12px 0 0; font-size: 14px; } .pth-go a { color: var(--gold); }
/* ---------- (15 Nov 2026) the Autoplay switch: in the bar, and on the Up next screen when it is off ---------- */
.ctl-au { display: inline-flex; align-items: center; gap: 7px; }
.au-s { position: relative; flex: none; display: block; width: 28px; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); transition: background .15s; }
.au-s i { position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #d8d2c6; transition: transform .15s, background .15s; }
[aria-pressed="true"] > .au-s { background: rgba(255, 209, 0, .3); box-shadow: inset 0 0 0 1px var(--gold2); }
[aria-pressed="true"] > .au-s i { transform: translateX(12px); background: var(--gold); }
.end-au { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--ink2); text-align: left; }
.end-au:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .au-s, .au-s i { transition: none; } }
/* where the bar is tight (under 1100 px) the switch sits over a short name, Auto, inside one button */
@media (max-width: 1099px) {
  .ctl-au { flex-direction: column; justify-content: center; gap: 3px; padding: 0 5px; }
  .ctl-au .au-w { order: 2; font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .ctl-au .au-w span { display: none; }
  .ctl-au .au-s { width: 26px; height: 14px; } .ctl-au .au-s i { width: 10px; height: 10px; }
}
@media (max-width: 347px) { .bar { gap: 2px; padding: 0 3px 4px; } .ctl { min-width: 42px; padding: 0 4px; } }   /* seven buttons across 320 px */
