/* God's Generals: "The muster roll on the campaign map" (docs/DESIGN.md).
   His 2017 map opened out on a lamp-dark table; the film in a gilt frame at its centre; the roll of eleven programmes
   written on parchment slips beside it; a silver star pinned for each programme watched.
   States on <html>: js, is-ready, is-on (permanent), is-playing (reversible), data-now (reversible), is-complete,
   has-place; on each .g: is-now (reversible), is-begun and is-pinned (permanent, kept in this browser). */

:root {
  --table: #140b06;
  --table-2: #22130a;
  --parch: #efdfb8;
  --ink: #2a1509;
  --ink-soft: #532c14;
  --oxblood: #6c180c;
  --gold: #f2c862;
  --ember: #f0a060;
  --cream: #f3e5c8;
  --silver: #e3e7ec;
  --bronze: #a8682e;
  --dim-text: #d9c7a6;
  --gilt: linear-gradient(135deg, #7d5110 0%, #e9bd56 18%, #9c6b18 36%, #f7df94 54%, #a37220 72%, #e2b04c 88%, #7d5110 100%);
  --f-head: 'Berkshire Swash', Georgia, serif;
  --f-text: 'Gelasio', Georgia, 'Times New Roman', serif;
  --keys-h: 44px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--table); }
body { margin: 0; min-height: 100vh; background: var(--table); color: var(--cream); font: 400 1.0625rem/1.6 var(--f-text); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- the two keys (before the Global Menu in the markup; under its panel) ---------- */
.keys { position: fixed; z-index: 5; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
  transition: transform .35s ease, opacity .3s ease; }
.keys > * { pointer-events: auto; }
/* while the visitor reads downward the keys step aside (they would hang over the roll and the about sheet); any scroll up, the top
   of the page, or keyboard focus brings them back (assets/generals.js, keysAway) */
.keys.away { transform: translateY(-130%); opacity: 0; }
.keys.away > * { pointer-events: none; }
.keys.away:focus-within { transform: none; opacity: 1; }
.keys.away:focus-within > * { pointer-events: auto; }
.key { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-width: 44px; min-height: var(--keys-h); padding: 0 15px; border-radius: 999px;
  background: rgba(20, 11, 6, .84); color: var(--gold); border: 1px solid rgba(242, 200, 98, .5); font: 600 .95rem/1 var(--f-text); letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.key:hover { background: rgba(42, 21, 9, .92); border-color: var(--gold); }
.key .glyph { font-size: 1rem; letter-spacing: -.04em; }
.share { --share-btn-bg: rgba(20, 11, 6, .84); --share-btn-fg: var(--gold); --share-accent: #6c180c; --share-on-accent: #fff7e6;
  --share-panel-bg: #f6ead0; --share-panel-fg: #2a1509; --share-field-bg: #fffaf0; --share-radius: 10px; --share-radius-sm: 6px; }

/* ---------- the first screen: the table, the crest, the field ---------- */
.war { position: relative; isolation: isolate; padding: 14px 20px 22px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.table { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--table); pointer-events: none; }
.table .map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; filter: saturate(.92) brightness(.96); }
.table .lamp { position: absolute; inset: 0; background: radial-gradient(ellipse 62% 58% at 50% 58%, rgba(255, 214, 140, .22), rgba(255, 214, 140, 0) 70%); mix-blend-mode: soft-light; }
.table .shade { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 11, 6, .96) 0, rgba(20, 11, 6, .91) 158px, rgba(20, 11, 6, .5) 236px, rgba(20, 11, 6, .14) 320px, rgba(20, 11, 6, .1) 72%, rgba(20, 11, 6, .82) 94%, var(--table) 100%),
    radial-gradient(ellipse 80% 75% at 50% 55%, rgba(20, 11, 6, 0) 52%, rgba(20, 11, 6, .72) 100%);
  transition: opacity 1.2s ease; }
.table::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 66% at 50% 56%, rgba(20, 11, 6, 0) 40%, rgba(12, 6, 3, .8) 100%); opacity: 0; transition: opacity 1.2s ease; }
html.is-playing .table::after { opacity: 1; }

.crest { text-align: center; padding: 0 64px; }
.kicker { margin: 0; font: italic 400 .9rem/1.3 var(--f-text); color: var(--dim-text); letter-spacing: .06em; }
.title { margin: 0; font: 400 clamp(2.4rem, 4.3vw, 4.1rem)/1.05 var(--f-head); color: var(--gold); letter-spacing: .01em; }
.title .tw { display: inline-block; padding: 0 .08em .06em; color: var(--gold);
  filter: drop-shadow(0 2px 0 rgba(60, 28, 6, .9)) drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
/* the gilt: the gradient shows through the letters; only where the browser can clip a background to text (otherwise plain gold) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .title .tw { background: linear-gradient(100deg, #e7b548 0%, #ffe9a6 18%, #d9a43a 34%, #f7d77e 50%, #c8902c 66%, #ffe7a0 82%, #e2ae44 100%) 0 0 / 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.sub { margin: .1rem 0 0; font: 400 clamp(1.05rem, 1.55vw, 1.35rem)/1.25 var(--f-head); color: var(--ember); text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }

/* the band: eleven stars, one for each programme; a pinned star is silver */
.band { pointer-events: none; list-style: none; margin: .45rem auto .1rem; padding: 0; display: flex; justify-content: center; gap: clamp(5px, .7vw, 10px); }
.band li { position: relative; width: clamp(13px, 1.25vw, 18px); height: clamp(13px, 1.25vw, 18px); }
.band li i, .pin .sock { position: absolute; inset: 0; background: var(--bronze); -webkit-mask: url("star.png?v=20261130a") center / contain no-repeat; mask: url("star.png?v=20261130a") center / contain no-repeat; opacity: .8; }
.band li::after, .pin .st { content: ""; position: absolute; inset: -12%; background: url("star.png?v=20261130a") center / contain no-repeat; opacity: 0; transform: scale(1.6) rotate(-30deg);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, 1.4, .4, 1); filter: drop-shadow(0 0 4px rgba(255, 255, 255, .45)); }
.band li.is-pinned::after, .g.is-pinned .pin .st { opacity: 1; transform: none; }

/* the field: the roll on the left, the film in the middle, the roll on the right (R27: the film is centred) */
.field { flex: 1; display: grid; gap: 14px 26px; align-content: start; justify-content: center; margin-top: 14px;
  --fw: min(100vw - 40px, (100vh - 290px) * 16 / 9, 980px);
  grid-template-columns: minmax(0, var(--fw)); grid-template-areas: "film" "a" "b"; }
@supports (height: 100dvh) { .field { --fw: min(100vw - 40px, (100dvh - 290px) * 16 / 9, 980px); } }
.film { grid-area: film; width: var(--fw); justify-self: center; }
.roll-a { grid-area: a; }
.roll-b { grid-area: b; }

/* the gilt frame and the film */
.frame { position: relative; padding: clamp(8px, .9vw, 13px); background: var(--gilt); border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(40, 18, 4, .9), 0 22px 60px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 244, 210, .55), inset 0 0 0 3px rgba(90, 54, 10, .55); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .75); }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slot { position: absolute; inset: 0; }
.slot iframe { width: 100%; height: 100%; border: 0; display: block; }
.begin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: var(--cream);
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 11, 6, .28), rgba(20, 11, 6, 0) 62%); }
.play { position: relative; width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); border-radius: 50%; background: rgba(20, 11, 6, .82);
  box-shadow: 0 0 0 3px #e9bd56, 0 0 0 6px rgba(20, 11, 6, .7), 0 10px 30px rgba(0, 0, 0, .6); transition: transform .35s ease, box-shadow .35s ease; }
.play .tri { position: absolute; left: 39%; top: 29%; width: 0; height: 0; border-style: solid; border-width: clamp(13px, 1.65vw, 20px) 0 clamp(13px, 1.65vw, 20px) clamp(21px, 2.6vw, 32px); border-color: transparent transparent transparent var(--gold); }
.dur { font: 600 .95rem/1 var(--f-text); padding: 6px 12px; border-radius: 999px; background: rgba(20, 11, 6, .84); color: var(--gold); letter-spacing: .05em; }
.begin:hover .play, .begin:focus-visible .play { transform: scale(1.06); box-shadow: 0 0 0 3px #ffe39a, 0 0 0 6px rgba(20, 11, 6, .7), 0 0 34px rgba(242, 200, 98, .55); }
.cont { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(242, 200, 98, .7);
  background: rgba(20, 11, 6, .9); color: var(--cream); font: 600 .95rem/1.2 var(--f-text); cursor: pointer; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.cont .cl { color: var(--gold); }
.cont:hover { border-color: var(--gold); background: rgba(42, 21, 9, .95); }
html.is-on .poster, html.is-on .begin, html.is-on .cont { display: none; }

/* the burn: when a new programme begins, the gilt burns round once (the series' own fire-edge wipe) */
@property --burn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.frame::after { content: ""; position: absolute; inset: -4px; border-radius: 8px; padding: 5px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--burn), rgba(255, 140, 30, 0) 0deg, rgba(255, 140, 30, 0) 250deg, #ff8a1e 312deg, #ffe08a 340deg, #fff6d6 352deg, rgba(255, 140, 30, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.frame.is-burning::after { animation: burn 1.6s cubic-bezier(.45, .05, .4, 1) 1; }
@keyframes burn { 0% { --burn: 0deg; opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { --burn: 360deg; opacity: 0; } }

/* the plaque under the frame: what is playing now */
.plaque { margin: 10px auto 0; max-width: 100%; width: fit-content; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 7px 18px; border-radius: 4px; text-align: center;
  background: linear-gradient(180deg, #2c180c, #190d06); border: 1px solid rgba(242, 200, 98, .4); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); color: var(--cream); font: 400 .98rem/1.3 var(--f-text); }
.plaque .lb { color: var(--ember); font-style: italic; margin-right: .35em; }
.plaque b { font-weight: 600; color: var(--gold); }
.plaque i { color: var(--cream); }

/* ---------- the roll: parchment slips pinned on the map ---------- */
.names { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g { position: relative; border-radius: 3px; background: linear-gradient(180deg, #f3e5c4, var(--parch) 60%, #e6d2a2); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 250, 235, .6) inset, 0 3px 10px rgba(0, 0, 0, .45); transition: box-shadow .4s ease, background-color .4s ease; }
.g::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 3px 0 0 3px; background: linear-gradient(180deg, #ffe39a, #c8902c); opacity: 0; transition: opacity .5s ease; }
.go { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "pin nm when" "pin ep when"; column-gap: 10px; align-items: center;
  padding: 8px 11px 9px 12px; min-height: 52px; text-decoration: none; color: var(--ink); border-radius: 3px; }
.go:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 2px; }
.pin { grid-area: pin; position: relative; width: 30px; height: 30px; align-self: center; border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #4c2c15, #1c0e06 72%); box-shadow: inset 0 0 0 1px rgba(242, 200, 98, .5), 0 1px 3px rgba(0, 0, 0, .45); }
.pin .sock { inset: 6px; }
.pin .st { inset: 3px; }
.who { display: contents; }
.nm { grid-area: nm; justify-self: start; font: 600 1.02rem/1.18 var(--f-text); color: var(--ink); padding-bottom: 1px;
  background: linear-gradient(90deg, var(--oxblood), #c2461a) no-repeat 0 100% / 0% 2px; transition: background-size .9s ease, color .4s ease; }
.ep { grid-area: ep; font: italic 400 .86rem/1.22 var(--f-text); color: var(--ink-soft); margin-top: 2px; }
.when { grid-area: when; display: flex; flex-direction: column; align-items: flex-end; font: 400 .8rem/1.25 var(--f-text); color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.when time { font-weight: 600; color: var(--ink); }
.seen { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: rgba(42, 21, 9, .12); opacity: 0; transition: opacity .5s ease; }
.seen i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, #a8682e, var(--oxblood)); }
.g.is-begun .seen { opacity: 1; }
.g.is-begun .pin .sock { background: #b8860b; opacity: 1; }
.g.is-pinned .pin .sock { opacity: 0; }
/* the programme playing now: the slip is lit, its gold edge shows, an ember line burns in under the name */
.g.is-now { box-shadow: 0 1px 0 rgba(255, 250, 235, .7) inset, 0 0 0 1px #e9bd56, 0 0 22px rgba(242, 200, 98, .45), 0 3px 12px rgba(0, 0, 0, .5); }
.g.is-now::before { opacity: 1; }
.g.is-now .nm { color: var(--oxblood); background-size: 100% 2px; }
.g.is-now .pin .sock { filter: drop-shadow(0 0 3px rgba(200, 120, 20, .9)); }
@media (hover: hover) and (pointer: fine) {
  .go { transition: transform .35s ease; }
  .g:hover .go { transform: translateY(-1px); }
  .g:hover { box-shadow: 0 1px 0 rgba(255, 250, 235, .7) inset, 0 0 0 1px rgba(124, 30, 16, .45), 0 6px 16px rgba(0, 0, 0, .55); }
  .g:hover .pin .sock { filter: drop-shadow(0 0 3px rgba(200, 120, 20, .8)); }
}

/* ---------- below: the cards in the film, about, the foot ---------- */
.below { position: relative; background: radial-gradient(ellipse 90% 60% at 50% 0%, #2a170b, var(--table) 70%); padding: 40px 20px 30px; }
.below h2 { margin: 0 0 18px; text-align: center; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--f-head); color: var(--gold); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.cards { max-width: 1180px; margin: 0 auto; }
.cardrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card { margin: 0; padding: 20px 22px 16px; border-radius: 4px; color: var(--ink); background: linear-gradient(160deg, #f4e6c6, var(--parch) 55%, #e2cc98);
  box-shadow: 0 1px 0 rgba(255, 250, 235, .6) inset, 0 10px 26px rgba(0, 0, 0, .5); display: flex; flex-direction: column; justify-content: space-between; transition: box-shadow .4s ease; }
.card blockquote { margin: 0 0 14px; position: relative; padding-left: 26px; }
.card blockquote::before { content: "\201C"; position: absolute; left: -4px; top: -16px; font: 400 3.4rem/1 var(--f-head); color: var(--oxblood); opacity: .85; }
.card p { margin: 0; font: italic 400 1.08rem/1.55 var(--f-text); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; border-top: 1px solid rgba(124, 30, 16, .3); padding-top: 10px; font-size: .92rem; }
.card cite { font: 600 1rem/1.3 var(--f-text); font-style: normal; color: var(--oxblood); }
.card .go { display: inline-block; min-height: 44px; padding: 10px 0 8px; line-height: 1.4; color: var(--ink-soft); text-decoration: underline; text-decoration-color: rgba(124, 30, 16, .45); text-underline-offset: 3px; }
.card .go:hover { color: var(--oxblood); }
@media (hover: hover) and (pointer: fine) { .card:hover { box-shadow: 0 1px 0 rgba(255, 250, 235, .6) inset, 0 0 0 1px rgba(232, 176, 70, .65), 0 14px 30px rgba(0, 0, 0, .55); } }

.about { max-width: 820px; margin: 46px auto 0; }
.sheet { position: relative; padding: 26px clamp(18px, 4vw, 42px) 22px; border-radius: 4px; color: var(--ink); background: linear-gradient(170deg, #f4e7c8, var(--parch) 50%, #e4cf9e);
  box-shadow: 0 1px 0 rgba(255, 250, 235, .6) inset, 0 14px 34px rgba(0, 0, 0, .55); }
.sheet h2 { color: var(--oxblood); text-shadow: none; }
.facts { margin: 0; display: grid; gap: 2px; }
.facts > div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dotted rgba(90, 50, 24, .35); }
.facts dt { font-weight: 600; color: var(--ink-soft); }
.facts dd { margin: 0; }
@media (max-width: 479px) { .facts > div { grid-template-columns: 1fr; gap: 0; } }
.get { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0 6px; }
.btn { display: inline-flex; align-items: center; gap: .4em; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--table); color: var(--gold); text-decoration: none; font-weight: 600;
  border: 1px solid #a8741c; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: background-color .3s ease; }
.btn:hover { background: #2e190b; }
.btn:focus-visible { outline-color: var(--oxblood); }
.btn .small { font-weight: 400; color: var(--cream); font-size: .9em; }
.kept { display: none; margin: 10px 0 0; font-size: .9rem; color: var(--ink-soft); text-align: center; }
.js .kept { display: block; }
.forget { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--oxblood); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.foot { max-width: 820px; margin: 38px auto 0; text-align: center; color: var(--dim-text); }
.band-foot li { width: 18px; height: 18px; }
.count { min-height: 1.6em; margin: 8px 0 0; color: var(--cream); font-style: italic; }
.links { margin: 8px 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--gold); text-underline-offset: 3px; }
.note { margin: 4px auto 0; max-width: 640px; font-size: .85rem; line-height: 1.5; color: var(--dim-text); }

/* ---------- laptop and wider: the roll on both sides of the film ---------- */
@media (min-width: 1180px) and (min-height: 600px) {
  .war { padding: 14px 24px 20px; }
  .field { --fw: min(56vw, (100vh - 262px) * 16 / 9, 1120px); grid-template-columns: minmax(0, 1fr) var(--fw) minmax(0, 1fr); grid-template-areas: "a film b"; align-items: start; gap: 0 26px; }
  @supports (height: 100dvh) { .field { --fw: min(56vw, (100dvh - 262px) * 16 / 9, 1120px); } }
  .roll { max-width: 370px; width: 100%; }
  .roll-a { justify-self: end; }
  .roll-b { justify-self: start; }
  .names { gap: 7px; }
}
@media (min-width: 1180px) and (min-height: 600px) and (max-width: 1400px), (max-width: 379px) {
  /* narrow side columns: the time goes on its own line, so every name keeps one line */
  .go { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "pin nm" "pin ep" "pin when"; padding: 6px 10px 7px 11px; column-gap: 9px; min-height: 48px; }
  .nm { font-size: .96rem; }
  .ep { font-size: .8rem; }
  .when { flex-direction: row; align-items: baseline; gap: .3em; font-size: .76rem; margin-top: 1px; }
  .when .len::before { content: "\00b7\00a0"; }
}
/* tablet: the roll in two columns under the film */
@media (min-width: 700px) and (max-width: 1179px), (min-width: 1180px) and (max-height: 599px) {
  .field { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "film film" "a b"; max-width: 980px; margin-left: auto; margin-right: auto; width: 100%; }
}
/* phone */
@media (max-width: 699px) {
  .war { padding: calc(var(--keys-h) + 18px) 12px 18px; min-height: 0; }
  .crest { padding: 0 4px; }
  .table { bottom: auto; height: min(100%, 600px); }
  .table .shade { background: linear-gradient(180deg, rgba(20, 11, 6, .95) 0, rgba(20, 11, 6, .9) 178px, rgba(20, 11, 6, .32) 292px, rgba(20, 11, 6, .5) 75%, var(--table) 100%); }
  .field { --fw: calc(100vw - 24px); gap: 12px; }
  .keys .kl { display: inline; }
  .plaque { font-size: .92rem; padding: 6px 12px; }
  .below { padding: 30px 12px 24px; }
}
@media (max-width: 360px) {
  .key { padding: 0 11px; }
  .title { font-size: 2.1rem; }
}
/* the smallest phones: the size note drops under the button's words (not beside them in a column), and the foot's two links
   stand one above the other without a dangling dot */
@media (max-width: 380px) {
  .btn { flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 0; padding: 6px 20px; }
  .btn .small { flex-basis: 100%; }
  .links { display: flex; flex-direction: column; align-items: center; }
  .links > span { display: none; }
}

/* ---------- arrival, the lamp, completion ---------- */
html.is-ready .title .tw { animation: sheen 2.4s ease-out .4s 1 both; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
html.is-complete .title .tw { filter: drop-shadow(0 2px 0 rgba(60, 28, 6, .9)) drop-shadow(0 0 18px rgba(255, 220, 140, .55)); }
.table .lamp { animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .82; } to { opacity: 1; } }

/* ---------- reduced motion: the same end states, at once ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .table .lamp { animation: none; opacity: 1; }
  html.is-ready .title .tw { animation: none; }
  .frame.is-burning::after { animation: none; opacity: 0; }
}

/* ---------- forced colours and print ---------- */
@media (forced-colors: active) {
  .title .tw { -webkit-text-fill-color: CanvasText; color: CanvasText; background: none; }
  .g, .card, .sheet { border: 1px solid CanvasText; }
  .band li i, .pin .sock { background: CanvasText; }
}
@media print {
  .keys, .table, .begin, .cont, .band, .kept, .share { display: none !important; }
  body, .below { background: #fff; color: #000; }
  .g, .card, .sheet { box-shadow: none; border: 1px solid #999; }
}
