:root {
  color-scheme: dark;
  --background: #12131c;
  --surface: #1b1d29;
  --surface-raised: #232535;
  --border: #39394b;
  --ink: #f3eee5;
  --subtle: #c1bdcb;
  --muted: #aaa5b7;
  --gold: #e9c583;
  --gold-strong: #f1d39a;
  --mint: #a4dbbf;
  --radius: 16px;
  --display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse 850px 500px at 60% 0%, #212032, transparent), var(--background);
  font: 1rem/1.55 var(--body);
  min-height: 100vh;
}

button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a, button, input, [tabindex]:not([tabindex="-1"]) { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--gold-strong); }
[hidden] { display: none !important; }

h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.07; }
h1 { font-size: clamp(2.85rem, 6.5vw, 5rem); letter-spacing: -.055em; }
h2 { font-size: 2.1rem; letter-spacing: -.03em; }
h3 { font-size: 1rem; line-height: 1.4; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 10; inset: .5rem auto auto .5rem; background: var(--gold); color: #221c16; padding: .5rem 1rem; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner, main, .site-footer { max-width: 1200px; width: calc(100% - 4rem); margin-inline: auto; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-size: 1.26rem; line-height: 1.12; text-decoration: none; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font: 600 .72rem/1 var(--body); letter-spacing: .11em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #6c5b4a; border-radius: 50%; color: var(--gold); font: 1.6rem/1 Georgia, serif; flex-shrink: 0; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
nav a, .legend-trigger { text-decoration: none; padding: .56rem .75rem; border-radius: 7px; font-weight: 600; color: var(--subtle); }
nav a:hover, nav a[aria-current] { background: var(--surface-raised); color: var(--gold-strong); }
main { min-height: calc(100vh - 192px); padding-block: clamp(1.75rem, 5vw, 4rem) 3rem; }
main.tutorial-screen { max-width: 1400px; padding-top: clamp(1rem, 2.7vw, 2rem); }
.site-footer { border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: .7rem 1.5rem; flex-wrap: wrap; padding-block: 1.5rem; color: var(--muted); font-size: .88rem; }
.site-footer a { text-underline-offset: .25em; }

.eyebrow { color: var(--gold); letter-spacing: .15em; font-size: .78rem; text-transform: uppercase; font-weight: 700; }
.tutorial-page { isolation: isolate; }
.tutorial-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -16px;
  pointer-events: none;
  background: url("./crown.png") center / cover no-repeat;
  filter: blur(7px);
  opacity: .27;
}

.home-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.home-page .site-header { display: none; }
.home-page main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(.5rem, 1.7vh, 1rem);
  padding-block: clamp(.55rem, 2vh, 1.15rem) .55rem;
}
.home-page .site-footer {
  display: grid;
  justify-content: center;
  gap: .2rem;
  padding-block: .5rem .65rem;
  text-align: center;
  font-size: .78rem;
  line-height: 1.35;
}
.home-page .site-footer a { color: var(--gold-strong); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  padding: clamp(1rem, 4vw, 3.4rem);
  border: 1px solid #51455d;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 74% 47%, #4c3d58 0%, #2d293e 42%, #221f31 83%);
}
.splash-still, .splash-video {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 84%;
  height: 100%;
  object-fit: cover;
}
.splash-still { background: url("./crown.png") center / cover no-repeat; }
.splash-video { opacity: 0; }
.has-splash-video .splash-video { opacity: 1; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #12131cf5, #12131cdc 39%, #12131c30 67%, transparent);
}
.hero-copy { position: relative; }
.hero h1 { font-size: clamp(2.5rem, min(6vw, 10vh), 5rem); margin-bottom: .55rem; }
.hero p { max-width: 55ch; color: var(--ink); font-size: clamp(.9rem, 1.6vw, 1.06rem); line-height: 1.4; }
.hero p + p { margin-top: .48em; }
.hero .hero-question { color: var(--gold-strong); }
.hero .splash-video-toggle {
  position: absolute;
  top: .6rem;
  right: .6rem;
  min-height: 36px;
  padding: .35rem .55rem;
  background: #12131ce6;
  font-size: .76rem;
}
.page-heading > p:last-child:not(.eyebrow) { max-width: 55ch; color: var(--subtle); font-size: 1.09rem; }
.home-page .home-options { margin-top: 0; gap: clamp(.5rem, 1.7vh, 1rem); }
.home-page .entry { align-items: center; gap: .65rem; padding: clamp(.6rem, 1.8vh, 1rem); }
.home-page .entry h2 { margin: 0; font-size: clamp(1.2rem, 2.7vw, 1.72rem); }
.home-page .entry p { margin-top: .2rem; font-size: .88rem; line-height: 1.35; }

.home-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin-top: 1.15rem; }
.entry {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .85rem 1rem;
  padding: clamp(1.15rem, 2.8vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: background .18s, border-color .18s, translate .18s;
}
a.entry:hover { border-color: var(--entry-color); background: var(--surface-raised); translate: 0 -3px; }
.entry-setup { --entry-color: var(--gold); }
.entry-tutorial { --entry-color: var(--mint); }
.entry-icon { display: grid; place-items: center; width: 46px; height: 46px; background: color-mix(in srgb, var(--entry-color) 13%, transparent); color: var(--entry-color); border-radius: 11px; font: 1.55rem/1 Georgia, serif; }
.entry h2 { font-size: clamp(1.62rem, 3vw, 2.1rem); margin-top: .13rem; }
.entry p:not(.eyebrow) { margin-top: .35rem; color: var(--subtle); }
.entry-action, .entry progress { grid-column: 2; }
.entry-action { font-size: .93rem; font-weight: 700; color: var(--entry-color); }

.solo-entry:focus-within { border-color: var(--entry-color); }
.simulacrum-icon { width: 25px; height: 25px; }
.solo-controls { margin-top: 1rem; }
.solo-controls label { display: block; margin-bottom: .35rem; font-size: .87rem; font-weight: 600; }
.solo-controls-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.solo-controls select {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 42px;
  padding: .4rem .65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--ink);
  font: inherit;
}
.solo-entry .solo-start { background: var(--entry-color); }
.solo-progress { display: block; margin-top: .65rem; width: 100%; accent-color: var(--entry-color); }

.page-heading { margin-bottom: 1.7rem; }
.page-heading h1 { margin: .28rem 0 .7rem; }
.page-heading.compact { margin: .8rem 0 1.1rem; }
.page-heading.compact h1 { font-size: clamp(2.2rem, 5.1vw, 4.2rem); margin-bottom: 0; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.config { max-width: 780px; padding: clamp(1.1rem, 3.5vw, 2.15rem); }
.config fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.config legend { padding: 0; font-family: var(--display); font-size: 1.55rem; margin-bottom: .55rem; }
.input-grid { display: grid; gap: .55rem; }
.players { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rounds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.selection { cursor: pointer; }
.selection > input { position: absolute; opacity: 0; }
.selection > span { display: grid; place-items: center; gap: .12rem; min-height: 78px; padding: .6rem .2rem; border: 1px solid var(--border); border-radius: 10px; background: #171925; }
.selection > input:checked + span { border-color: var(--gold); background: #322a31; color: var(--gold-strong); box-shadow: inset 0 0 0 1px var(--gold); }
.selection > input:focus-visible + span { outline: 2px solid var(--gold-strong); outline-offset: 3px; }
.selection:hover > span { border-color: var(--gold); }
.selection strong { font: 600 clamp(1.05rem, 2.25vw, 1.7rem)/1.2 var(--display); text-align: center; }
.selection small, .check small { color: var(--subtle); font-size: .85rem; }
.check { display: flex; align-items: center; gap: .65rem; cursor: pointer; width: fit-content; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.check small { display: block; }
.first-check { margin: .4rem 0 .8rem; }
.inline-note { background: #2c292e; border: 1px solid #625344; border-radius: 10px; padding: .75rem 1rem; color: var(--gold-strong); }
.inline-note p { margin-top: .18rem; }

.button, button.primary, button.quiet { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: .55rem .9rem; min-height: 42px; text-decoration: none; font-weight: 650; line-height: 1.3; text-align: center; }
.primary { color: #241910; background: var(--gold); border-color: var(--gold); }
.primary:hover:not(:disabled) { background: var(--gold-strong); }
.quiet { color: var(--subtle); background: transparent; }
.quiet:hover:not(:disabled) { color: var(--ink); background: var(--surface-raised); border-color: var(--border); }
.form-actions, .movement { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem; }
.form-actions { margin-top: 1.3rem; }
.form-actions span { color: var(--muted); font-size: .92rem; }
.movement { justify-content: space-between; border-top: 1px solid var(--border); padding-top: .9rem; margin-top: 1rem; }
.session-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; justify-content: space-between; color: var(--subtle); font-size: .9rem; }
.work-grid { display: grid; gap: 1rem; align-items: start; }
.setup-grid { grid-template-columns: minmax(16rem, .77fr) minmax(0, 1.45fr); grid-template-areas: "list stage"; }
.tutorial-grid { grid-template-columns: minmax(0, 1fr); }
.example-grid { grid-template-columns: minmax(0, 1.6fr) minmax(15rem, .72fr); }
.stage.tutorial-stage { padding: 0; min-width: 0; }
.tutorial-stage-header, .tutorial-stage-body { padding: .85rem 1rem; }
.tutorial-stage-header { border-bottom: 1px solid var(--border); }
.tutorial-stage-header h1 { font-size: 1.45rem; letter-spacing: -.025em; margin: .4rem 0 .65rem; }
.tutorial-stage-header .quiet { min-height: 32px; padding: .25rem .45rem; font-size: .82rem; }
.tutorial-stage-header .timeline { gap: .25rem; }
.tutorial-stage-header .timeline li { flex-direction: column; gap: .2rem; font-size: .7rem; line-height: 1.2; padding: .25rem .1rem; }
.tutorial-stage-body h2 { font-size: clamp(1.65rem, 2.5vw, 2rem); }
.tutorial-stage-body > p:not(.step-timing, .rule-reference) { color: var(--subtle); }
.tutorial-stage .movement { margin: 0; padding: .6rem 1rem; gap: .35rem; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.tutorial-stage .movement button { min-height: 38px; padding: .35rem .5rem; font-size: .85rem; }
.stage-column { grid-area: stage; display: grid; gap: .75rem; }
.stage { padding: clamp(1.1rem, 3.2vw, 2rem); }
.stage h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: .7rem 0 .75rem; }
.stage > p:not(.source, .step-timing, .rule-reference), .outcome p, .strategy p, .standalone p { color: var(--subtle); }
.stage-check { margin: 1.3rem 0 .7rem; padding: .65rem .75rem; border: 1px solid var(--border); background: #171925; border-radius: 9px; width: auto; }
.setup-visual { margin: 1rem 0 0; }
.setup-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; align-items: start; }
.setup-photos.single, .setup-photos.central-area { grid-template-columns: minmax(0, 1fr); }
.setup-photos.central-area { max-width: 320px; gap: .4rem; margin-inline: auto; }
.setup-photos figure { margin: 0; min-width: 0; }
.setup-photo-button { position: relative; display: grid; place-items: center; width: 100%; padding: .35rem; overflow: hidden; background: #222434; border: 1px solid var(--border); border-radius: 9px; color: var(--ink); }
.setup-photo-button:hover { border-color: var(--gold); }
.setup-photo-button img { display: block; width: 100%; height: clamp(106px, 18vw, 170px); object-fit: contain; border-radius: 5px; }
.single .setup-photo-button img, .central-area .setup-photo-button img { height: auto; max-height: 225px; }
.central-area .setup-photo-button img { max-height: 175px; }
.central-area figure:first-child img { max-height: 38px; }
.central-area figure:first-child { margin-inline: auto; width: min(58%, 185px); }
.setup-photo-button > span { position: absolute; inset: auto .5rem .5rem auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #12131ce8; color: var(--gold-strong); }
.setup-photos figcaption, .photo-note { margin-top: .32rem; color: var(--subtle); font-size: .9rem; }
.photo-note { margin-top: .62rem; }
.solo-board-guide { border: 1px solid var(--border); background: #171925; border-radius: 9px; padding: .75rem; }
.solo-board-guide > figcaption { color: var(--subtle); font-size: .9rem; margin-bottom: .65rem; }
.solo-guide-top { display: flex; justify-content: center; }
.solo-guide-middle, .solo-guide-bottom { display: grid; gap: .35rem; margin-top: .35rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.solo-guide-bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.solo-guide-middle > div { display: grid; gap: .35rem; }
.solo-guide-board { border: 1px dashed #645a71; padding: .25rem; border-radius: 9px; }
.solo-slot { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 57px; padding: .35rem .18rem; border: 1px solid var(--border); background: var(--surface-raised); border-radius: 6px; color: var(--subtle); font-size: .82rem; line-height: 1.2; overflow-wrap: anywhere; }
.solo-slot > span[aria-hidden] { color: var(--gold); font-size: 1rem; margin-bottom: .2rem; }
.solo-slot-current { border-color: var(--gold); color: var(--gold-strong); background: #352b34; font-weight: 700; }
#image-preview { width: min(calc(100% - 2rem), 1040px); }
#image-preview-large { display: block; width: 100%; max-height: calc(100dvh - 8rem); object-fit: contain; }
#image-preview.card-reference .image-preview-content { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: start; gap: 1rem; }
#image-preview.card-reference #image-preview-large { max-height: min(62dvh, 600px); }
#image-preview.board-reference { width: min(calc(100% - 2rem), 1180px); }
#image-preview.board-reference .image-preview-content { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
#image-preview.board-reference #image-preview-large { max-height: none; }
#image-preview.card-anatomy { width: min(calc(100% - 2rem), 920px); }
#image-preview.card-anatomy .image-preview-art { width: min(100%, 18rem); justify-self: center; }
#image-preview.card-anatomy .image-preview-content { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.image-preview-art { position: relative; }
.board-marker { position: absolute; display: grid; place-items: center; width: 1.45rem; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold-strong); color: #1c1824; box-shadow: 0 0 0 2px #202331; font-size: .78rem; font-weight: 800; }
.board-legend { display: grid; gap: .42rem; margin: 0; padding-inline-start: 1.5rem; font-size: .85rem; }
.board-legend li::marker { color: var(--gold-strong); font-weight: 800; }
.board-legend p, .faction-board-hint { color: var(--subtle); }
@media (max-width: 820px) {
  #image-preview.board-reference .image-preview-content, #image-preview.card-anatomy .image-preview-content { grid-template-columns: minmax(0, 1fr); }
  .board-marker { width: 1.1rem; font-size: .65rem; }
}
.card-type { color: var(--gold-strong); margin-bottom: .45rem; font-size: .9rem; }
#image-preview-guide > h3 { margin-bottom: .45rem; }
.card-legend { display: grid; gap: .38rem; }
.card-legend > div { display: grid; grid-template-columns: 30px 1fr; gap: .1rem .55rem; background: #242537; border: 1px solid var(--border); padding: .38rem .5rem; border-radius: 7px; }
.card-legend dt { font-weight: 700; line-height: 1.3; }
.card-legend dd { grid-column: 2; color: var(--subtle); font-size: .9rem; line-height: 1.4; }
.card-symbol { grid-row: span 2; width: 28px; height: 32px; object-fit: contain; border-radius: 4px; }
span.card-symbol { display: grid; place-items: center; background: #302839; color: var(--gold-strong); }
span.card-symbol.faint { color: var(--muted); }
.card-advice { background: #302a29; border: 1px solid #625344; color: var(--subtle); margin-top: .55rem; padding: .5rem .65rem; border-radius: 7px; }
.card-advice strong { color: var(--gold-strong); }
.card-advice p { margin-top: .12rem; }
.phase-tag { display: inline-flex; align-items: center; gap: .42rem; font-size: .82rem; font-weight: 700; color: var(--gold-strong); border: 1px solid #5e504c; background: #32292f; border-radius: 99px; padding: .28rem .64rem; line-height: 1.3; }
.phase-tag .symbol { font-size: .95rem; }
.source { font-size: .84rem; color: var(--muted); }
.rule-reference { margin-top: 1rem; }
.setup-list { grid-area: list; padding: 1rem; }
.progress-heading, .board-heading, .region-head { display: flex; align-items: center; gap: .45rem; justify-content: space-between; }
.progress-heading h2, .board-heading h2 { font-size: 1.38rem; }
.progress-heading span { font-size: .88rem; color: var(--gold-strong); }
progress { width: 100%; height: 7px; display: block; border: 0; border-radius: 99px; overflow: hidden; background: #2d3041; accent-color: var(--gold); }
progress::-webkit-progress-bar { background: #2d3041; border-radius: 99px; }
progress::-webkit-progress-value { background: var(--gold); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--gold); border-radius: 99px; }
.progress-heading + progress { margin: .7rem 0 .8rem; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .16rem; max-height: min(56vh, 520px); overflow-y: auto; scrollbar-color: #62586c var(--surface); }
.step-list button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .35rem .4rem; line-height: 1.28; text-align: left; min-height: 38px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--subtle); font-size: .89rem; }
.step-list button:focus-visible { outline-offset: -2px; }
.step-list button[aria-current], .step-list button:hover { background: #282839; border-color: var(--border); color: var(--ink); }
.step-list button[aria-current] .step-dot { background: var(--gold); color: #241910; }
.step-dot { flex: 0 0 23px; min-height: 23px; display: grid; place-items: center; border: 1px solid #514b60; border-radius: 50%; font-size: .75rem; color: var(--gold-strong); }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; gap: .4rem; padding: 0; margin: 0 0 .65rem; }
.timeline li { display: flex; align-items: center; gap: .42rem; justify-content: center; text-align: center; color: var(--subtle); min-height: 42px; border: 1px solid var(--border); border-radius: 8px; font-size: .88rem; }
.timeline li[aria-current] { border-color: #f6ddac; background: #eed4a5; color: #261c18; font-weight: 750; box-shadow: 0 0 17px #e0b87538; }
.timeline li[aria-current] .symbol { color: #60421e; }
.round-overview { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.round-overview li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .65rem; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 8px; }
.round-overview .symbol { margin-top: .25rem; }
.round-overview p { color: var(--subtle); }
.symbol { display: inline-block; color: var(--gold); line-height: 1; font-family: "Segoe UI Symbol", Georgia, serif; font-size: 1.03rem; min-width: 1em; text-align: center; }
.step-timing { color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: .65rem; }
.tutorial-lesson { margin-top: .8rem; display: grid; gap: .45rem; }
.tutorial-lesson > div { border-left: 2px solid #846e4e; padding: .25rem .55rem; }
.tutorial-lesson dt { color: var(--gold-strong); font-weight: 700; }
.tutorial-lesson dd { color: var(--subtle); margin-top: .15rem; font-size: .92rem; line-height: 1.48; }
.rule-term { display: inline; padding: 0; border: 0; background: none; color: var(--gold-strong); text-decoration: underline; text-underline-offset: .14em; }
.rule-term:hover { color: var(--ink); }
.guided-move { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin-top: 1rem; background: #352b34; border: 1px solid #826c52; border-radius: 9px; padding: .45rem .6rem; color: var(--gold-strong); }
.guided-move .quiet { font-size: .85rem; min-height: 32px; padding: .25rem .45rem; margin-inline-start: auto; }
.clash-sequence { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: .45rem 0 .6rem; padding: 0; }
.clash-sequence li { padding: .12rem .32rem; border: 1px solid var(--border); color: var(--subtle); border-radius: 5px; font-size: .75rem; }
.clash-sequence li[aria-current] { color: var(--gold-strong); border-color: var(--gold-strong); background: #392f25; font-weight: 700; }
.council-overview { color: var(--subtle); margin-bottom: .65rem; font-size: .9rem; }
.council-overview .quiet { margin-top: .25rem; }
.council-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .65rem; }
.council-slot { padding: .6rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-raised); }
.council-slot h3 { margin-bottom: .25rem; }
.council-slot p { color: var(--subtle); font-size: .83rem; }
.council-slot .council-votes { margin-top: .4rem; color: var(--gold-strong); }
.council-votes img { width: 1em; height: 1em; object-fit: contain; vertical-align: -.1em; }
.council-target { border-color: var(--gold-strong); }
.council-target .rule-term { margin-top: .25rem; font-size: .78rem; }
.council-placed { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; font-size: .83rem; }
.council-placed .card-inspection { width: 50px; }
.strategy, .outcome { margin-top: 1rem; border: 1px solid var(--border); border-radius: 9px; padding: .72rem .85rem; }
.strategy p, .outcome p { margin-top: .25rem; }
.outcome { background: #203332; border-color: #45655e; }
.outcome h3 { color: var(--mint); }
.outcome:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.strategy { background: #302a29; border-color: #625344; }
.strategy h3 { color: var(--gold-strong); }
.strategy .source { display: block; margin-top: .4rem; }
.summary, .standalone { max-width: 800px; }
.summary h1 { margin: .7rem 0 .8rem; }
.standalone { padding: 1.1rem; }
.standalone h2 { font-size: 1.45rem; margin-bottom: .4rem; }

.table-column { display: grid; gap: .75rem; min-width: 0; }
.hand-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-height: 0; }
.discard-pile { padding: .55rem .6rem; min-width: 0; }
.discard-pile h2 { display: flex; justify-content: space-between; align-items: baseline; gap: .3rem; font-size: 1.19rem; }
.discard-pile h2 span, .discard-pile p, .draw-deck { color: var(--subtle); font: .76rem var(--body); }
.discard-pile ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(22px, 1fr)); gap: .24rem; list-style: none; padding: 0; margin: .35rem 0 0; }
.discard-pile li { width: min(100%, 28px); }
.discard-pile .sim-card { font-size: .7rem; }
.draw-deck { display: flex; align-items: center; gap: .35rem; margin-bottom: .35rem; }
.draw-deck img, .draw-deck .sim-card { width: 18px; flex: none; height: auto; border-radius: 3px; }
.deploy-hand img { display: block; width: 24px; height: auto; border-radius: 3px; }
.discard-pile .draw-deck { border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.bot-draw-deck .sim-card { width: 24px; font-size: .7rem; }
.bot-reveal { display: flex; gap: .6rem; align-items: stretch; margin-bottom: .65rem; }
.bot-reveal-card, .bot-bid-art { position: relative; }
.bot-bid-art { width: 42px; flex: none; }
.bot-reveal-face { display: grid; align-content: center; min-height: 64px; gap: .18rem; border: 1px solid var(--border); border-radius: 8px; padding: .35rem .6rem; background: var(--surface-raised); color: var(--subtle); font-size: .84rem; }
.bot-reveal-face strong { color: var(--gold-strong); }
.bot-reveal-face.back { background: repeating-linear-gradient(130deg, #2e394d 0 5px, #273142 5px 10px); }
.great-road > .bot-reveal { margin-block: .65rem 0; }
.bot-bid { align-items: center; justify-content: center; flex-wrap: wrap; }
.bot-bid-token.bot-reveal-face { display: block; width: 3rem; height: 3rem; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; object-fit: contain; }
.bot-bid-copy { display: grid; gap: .18rem; font-size: .84rem; color: var(--subtle); }
.bot-bid-copy strong { color: var(--gold-strong); }
.bot-component-art { position: relative; width: 56px; flex: none; align-self: start; }
.bot-component-art img { display: block; width: 100%; height: auto; }
.bot-reveal-pair { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem 1rem; margin-bottom: .65rem; }
.bot-reveal-pair .bot-reveal { margin-bottom: 0; }
.principal-threat-preview { display: flex; align-items: center; gap: .6rem; color: var(--subtle); font-size: .84rem; }
.principal-threat-preview .card-inspection { width: 56px; flex: none; }
.principal-threat-preview strong { color: var(--gold-strong); }
.fog-piece { display: inline-flex; align-items: center; gap: .25rem; }
.fog-piece img { width: 16px; height: auto; border-radius: 2px; }
.faction-overview { display: grid; gap: .65rem; }
.faction-overview > .faction-board-hint { text-align: center; }
.faction-overview > .component-preview { width: min(100%, 44rem); justify-self: center; }
.card-inspection.component-preview img { aspect-ratio: auto; }
.tactic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .5rem; }
.tactic-tile { display: grid; gap: .3rem; padding: .5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); }
.tactic-tile p { color: var(--subtle); font-size: .8rem; }
.tactic-art { position: relative; }
.tactic-art img { display: block; width: 100%; height: auto; aspect-ratio: 680 / 456; object-fit: contain; }
.tactic-guided { grid-template-columns: minmax(0, 8rem) minmax(0, max-content) minmax(12rem, 1fr); align-items: center; gap: .75rem; margin-bottom: .65rem; border-color: var(--gold); }
.tactic-guided button { margin-top: .35rem; }
.tactic-guided .card-inspection { margin-top: 0; }
.tactic-art .card-inspection img { aspect-ratio: 680 / 456; }
.tactic-translation { display: grid; gap: .4rem; border-inline-start: 1px solid var(--border); padding-inline-start: .75rem; font-size: .85rem; }
.tactic-translation dt { color: var(--gold-strong); font-weight: 700; }
.tactic-translation dd { color: var(--subtle); }
@media (max-width: 1050px) {
  .tactic-guided { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); }
  .tactic-translation { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--border); padding: .5rem 0 0; }
}
.simulacrum-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 7rem); gap: .7rem; }
.simulacrum-overview h3 { margin-bottom: .3rem; }
.board { overflow: hidden; }
.board-heading { padding: .95rem 1rem; border-bottom: 1px solid var(--border); background: #202330; }
.board-heading { flex-wrap: wrap; }
.board-inner { padding: .85rem; }
.stock-row { display: flex; gap: .36rem; flex-wrap: wrap; }
.stock { flex: 1 1 0; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: .28rem .42rem; color: var(--subtle); font-size: .8rem; }
.stock > div { display: flex; flex-wrap: wrap; gap: .3rem; }
.stock strong { color: var(--ink); }
.stock .symbol { font-size: .85rem; }
.board-facts { display: grid; gap: .28rem; margin: .35rem 0 0; font-size: .82rem; line-height: 1.4; }
.board-facts > div { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: .35rem; }
.board-facts dt { color: var(--muted); }
.board-facts dd { overflow-wrap: anywhere; }
.occupied-card { color: var(--gold-strong); background: none; padding: 0; border: 0; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: .16em; }
.rival-occupied { display: block; }
.market-intro { color: var(--subtle); font-size: .88rem; margin: 0 0 .55rem; }
.table-status { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: .45rem; min-width: 0; min-height: 0; padding: .6rem .7rem; }
.turn-order { margin: 0; }
.table-status-details { min-height: 0; border-top: 1px solid var(--border); padding-top: .3rem; }
.table-status-details summary { font-size: .82rem; font-weight: 600; color: var(--subtle); cursor: pointer; }
.market-cards { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; list-style: none; padding: 0; margin: 0; }
.market-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #4e465c; background: #242537; border-radius: 8px; padding: .42rem; }
.market-card.market-discard { position: absolute; z-index: 1; pointer-events: none; }
.market-card.empty { border-style: dashed; background: #1b1d29; color: var(--muted); min-height: 8rem; }
.market-card.empty > span:last-child { margin: auto; }
.market-slot { color: var(--muted); font-size: .77rem; margin-bottom: .3rem; }
.market-card h3 { margin-top: .36rem; overflow-wrap: anywhere; }
.market-card p { color: var(--subtle); font-size: .79rem; line-height: 1.35; margin: .18rem 0 .5rem; }
.market-card .market-benefit { color: var(--ink); font-size: .85rem; }
.market-target { border-color: var(--gold); }
.power-site { display: grid; gap: .8rem; }
.power-site-info, .power-site-card { padding: .7rem; border: 1px solid var(--border); border-radius: 9px; background: #242537; }
.power-site-info p, .power-site-card p { color: var(--subtle); font-size: .88rem; }
.power-site-info p + p, .power-site-card h3, .power-site-card p + p { margin-top: .45rem; }
.power-site-info strong { color: var(--gold-strong); }
.power-site-market { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .55rem; }
.power-site-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.power-site-card.market-target { border-color: var(--gold); }
.power-site-card .card-inspection { width: 100%; height: clamp(7.5rem, 22dvh, 11rem); }
.power-site-card .card-inspection img { width: 100%; height: 100%; aspect-ratio: auto; }
.power-site-card > button.primary { margin-top: auto; }
.power-site-card:has(> button.primary) p:last-of-type { margin-bottom: .55rem; }
.power-site-card .power-site-acquired { color: var(--mint); }
button.market-select { margin-top: auto; padding: .32rem .5rem; min-height: 36px; }
.occupation { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-block: .62rem; padding: .55rem .66rem; border: 1px solid #6d5a4f; border-radius: 8px; background: #302833; }
.occupation-copy { flex: 1; }
.occupation-copy p { font-size: .86rem; color: var(--subtle); }
.occupation-cards { display: flex; align-items: center; gap: .28rem; flex-shrink: 0; }
.occupation-cards button { width: 39px; }
.occupation-cards.is-occupied { position: relative; width: 88px; height: 70px; }
.occupation-cards.is-occupied button { position: absolute; inset: auto 4px 0 auto; }
.occupation-cards.is-occupied button:has(.landscape-card) { inset: 0 auto auto 0; width: 78px; }
.bid-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .55rem; }
.bid-slot { display: flex; align-items: center; gap: .55rem; min-width: 0; min-height: 78px; padding: .4rem .5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); }
.bid-art { position: relative; width: 39px; height: 62px; flex: none; }
.bid-art img { display: block; width: 100%; height: auto; border-radius: 4px; }
.bid-art.bid-returned > img { visibility: hidden; }
.bid-art.bid-stacked { width: 75px; }
.bid-stacked .card-inspection { position: absolute; width: 35px; top: 0; left: 8px; }
.bid-stacked .card-inspection:last-child { width: 75px; top: 20px; left: 0; }
.bid-copy { display: grid; gap: .13rem; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.bid-copy strong { color: var(--gold-strong); font-size: .88rem; }
.bid-copy span, .bid-copy small { color: var(--subtle); font-size: .77rem; }
.map { display: grid; gap: .44rem; }
.map-region {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: .55rem;
  padding: .65rem .75rem;
  min-height: 100px;
  border: 1px solid #706783;
  border-radius: 10px;
  background-image: linear-gradient(90deg, #13141af0 0%, #15171cb0 40%, #16151b82 100%), var(--region-art);
  background-position: center;
  background-size: cover;
}
.map-region[data-region="high"] { --region-art: url("./tutorial-images/region-high.webp"); }
.map-region[data-region="plateau"] { --region-art: url("./tutorial-images/region-plateau.webp"); }
.map-region[data-region="low"] { --region-art: url("./tutorial-images/region-low.webp"); }
.map-region.highlighted { border-color: #f2d097; box-shadow: inset 0 0 0 1px #f2d0978c; }
.region-head { justify-content: flex-start; }
.region-head h3 { font: 600 clamp(1.15rem, 2.2vw, 1.55rem)/1.1 var(--display); }
.region-head small { display: block; color: #e1d3bf; font: 400 .82rem var(--body); margin-top: .16rem; }
.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .45rem; }
.region-location { padding: .38rem .5rem; border: 1px solid #83758a; border-radius: 7px; background: #181923ed; line-height: 1.3; }
.region-location.location-target { border-color: var(--gold-strong); background: #352c25; }
.region-location dt small, .region-location dt strong { display: block; }
.region-location dt small { color: var(--muted); font-size: .69rem; }
.region-location dt strong { font-size: .9rem; }
.region-location dd { margin-top: .16rem; color: var(--gold-strong); font-size: .78rem; }
.region-location .symbol { font-size: .82rem; }
.region-location .location-bonus { color: var(--subtle); }
.location-heralds { display: flex; flex-wrap: wrap; gap: .25rem .45rem; }
.location-heralds span { color: var(--mint); }
.clash-mark { min-width: 1.6em; padding: 0 .24em; text-align: center; color: var(--gold); font-size: .82rem; border: 1px solid #77654e; border-radius: 5px; }
.pieces { color: #f2e9da; display: flex; flex-wrap: wrap; gap: .15rem .45rem; margin-top: .28rem; font-size: .8rem; }
.pieces .symbol { font-size: .88rem; }
.region-supporters { padding: .08rem .35rem; border-radius: 4px; background: #191923eb; font-weight: 650; }
.region-supporters.nobility { color: #a5c9ff; }
.region-supporters.uprising { color: #f5a4af; }
.region-supporters.clan { color: #8ee4d7; }
.region-supporters.gathering { color: #e1b4f5; }
.region-supporters.simulacrum { color: #d1d9e7; }
.region-supporters .symbol { color: inherit; }
.region-cards, .table-hand { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.region-cards { justify-content: flex-end; align-items: start; }
.field-card { display: grid; justify-items: center; flex: 0 1 68px; min-width: 48px; text-align: center; line-height: 1.2; font-size: .76rem; }
.field-card > strong, .field-card > span { background: #191923e8; padding-inline: .16rem; }
.field-card > span { color: #d9d0c4; overflow-wrap: anywhere; }
.field-card .counted-card { color: var(--subtle); background: #191923e8; padding-inline: .16rem; }
.field-card-art { position: relative; width: 52px; margin-bottom: .2rem; }
.deadly-tag { font-size: .72rem; font-weight: 700; color: #ffe1de; background: #542f3c; border: 1px solid #a36379; border-radius: 5px; padding: .12rem .28rem; margin-top: .25rem; }
.deadly-tag:hover { background: #724557; }
.card-placement-flight { position: fixed; z-index: 4; pointer-events: none; transform-origin: top left; perspective: 650px; }
.card-placement-flight > img { display: block; width: 100%; height: 100%; object-fit: fill; border-radius: 4px; }
.card-placement-flight > .sim-card { width: 100%; height: 100%; }
.example-attrition { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
.example-attrition h3 { margin-bottom: .35rem; font-size: .9rem; }
.example-attrition .sim-card { width: min(100%, 42px); font-size: .72rem; }
.example-draw { display: flex; gap: .3rem; }
.example-draw > div { width: min(48%, 42px); }
.bid-art .card-flip-faces img { height: 100%; }
.clash-card-flip { position: absolute; inset: 0; perspective: 450px; pointer-events: none; }
.card-flip-faces { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.card-flip-faces > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; backface-visibility: hidden; }
.card-flip-faces > :last-child { transform: rotateY(180deg); }
.card-inspection, .hand-play { border: 0; padding: 0; background: none; width: 100%; display: block; border-radius: 6px; }
.card-inspection img, .hand-play img, .field-card-art > img { display: block; width: 100%; height: auto; aspect-ratio: .638; object-fit: contain; border-radius: inherit; }
.bot-bid-art img { display: block; width: 100%; height: auto; aspect-ratio: auto; border-radius: 4px; }
.card-inspection img.landscape-card { aspect-ratio: 1.52; }
.card-inspection:hover img { filter: brightness(1.13); }
.sim-card { display: grid; place-items: center; aspect-ratio: .638; border-radius: 6px; border: 1px solid #a2b4c6; color: #edf1f6; background: linear-gradient(155deg, #3d5162, #1e2533); font-size: 1rem; font-weight: 750; }
.sim-card.back { background: repeating-linear-gradient(130deg, #2e394d 0 5px, #273142 5px 10px); }
.player-hand { padding: .65rem .8rem .8rem; background: radial-gradient(ellipse at 50% 100%, #353049, transparent 70%), #212231; }
.hand-heading { display: flex; justify-content: space-between; align-items: center; gap: .3rem .85rem; margin-bottom: .55rem; }
.hand-heading > div { display: flex; align-items: baseline; gap: .35rem .55rem; flex-wrap: wrap; }
.hand-heading h2 { font-size: 1.42rem; }
.hand-heading span, .hand-hint { color: var(--subtle); font-size: .87rem; }
.hand-hint { margin-bottom: .52rem; }
.table-hand { justify-content: center; gap: .55rem; }
.hand-card { flex: 0 1 98px; min-width: 0; display: grid; gap: .28rem; grid-template-rows: auto 1fr; }
.hand-card-art { position: relative; border-radius: 6px; }
.hand-card-name { display: flex; align-items: start; justify-content: space-between; gap: .16rem; padding: 0 .13rem; overflow-wrap: anywhere; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.hand-card-name > span { color: var(--gold-strong); flex-shrink: 0; white-space: nowrap; }
.playable .hand-play { outline: 2px solid #f0ca82; outline-offset: 2px; }
.playable .hand-play:hover { outline-color: #ffe7b1; filter: brightness(1.16); }
.card-zoom { display: grid; place-items: center; position: absolute; inset: auto .23rem .23rem auto; width: 28px; height: 28px; border: 1px solid #888194; padding: 0; border-radius: 6px; background: #171925ef; color: var(--gold-strong); }
.card-zoom:hover { border-color: var(--gold-strong); background: #332a32; }
.action-preview { display: flex; gap: .75rem; align-items: center; margin-top: .85rem; color: var(--gold-strong); }
.action-preview button { width: 70px; flex-shrink: 0; }
.example-hand { justify-content: flex-start; margin-top: .9rem; }
.jump-hand, .jump-actions { font-size: .85rem; }
.muted { color: var(--muted); }

@media (min-width: 700px) {
  .hand-area { grid-template-columns: minmax(0, 1fr) clamp(6.7rem, 14%, 9rem) clamp(11.5rem, 30%, 19rem); }
}

@media (min-width: 960px) and (min-height: 560px) {
  body:has(main.tutorial-screen) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; min-height: 0; }
  body:has(main.tutorial-screen) .header-inner { min-height: 50px; }
  body:has(main.tutorial-screen) .brand small { display: none; }
  body:has(main.tutorial-screen) .brand-mark { width: 32px; height: 32px; }
  body:has(main.tutorial-screen) .site-footer { padding-block: .35rem; }
  main.tutorial-screen { width: calc(100% - 2rem); min-height: 0; padding-block: .65rem; }
  .tutorial-screen .tutorial-grid { height: 100%; grid-template-columns: clamp(21rem, 28vw, 25rem) minmax(0, 1fr); align-items: stretch; }
  .tutorial-screen .table-column { min-height: 0; grid-template-rows: minmax(0, 1fr) clamp(9.5rem, 27dvh, 13rem); }
  .tutorial-screen .tutorial-stage { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .tutorial-screen .tutorial-stage-body,
  .tutorial-screen .board-inner,
  .tutorial-screen .player-hand,
  .tutorial-screen .discard-pile,
  .tutorial-screen .table-status-details { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-color: #62586c var(--surface); scrollbar-gutter: stable; }
  .tutorial-screen .board-inner, .tutorial-screen .tutorial-stage-body { overflow-anchor: none; }
  .tutorial-screen .board { display: flex; flex-direction: column; }
  .tutorial-screen .board-inner { flex: 1; }
  .tutorial-screen .board-heading { flex-shrink: 0; padding-block: .65rem; }
  .tutorial-screen .map-region { min-height: 9.5rem; }
  .tutorial-screen .region-head small { display: inline; margin-inline-start: .35rem; }
  .tutorial-screen .hand-heading .quiet { min-height: 30px; padding-block: .25rem; }
  .market-board .market-card img { max-height: 105px; }
  .tutorial-screen .hand-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tutorial-screen .hand-area .table-hand { flex-wrap: nowrap; }
  .tutorial-screen .hand-card { flex-basis: clamp(74px, 7vw, 100px); }
  .tutorial-screen .hand-card-art { width: min(100%, clamp(43px, 7.2dvh, 65px)); justify-self: center; }
}

dialog { width: min(calc(100% - 2rem), 600px); max-height: calc(100dvh - 2rem); border: 1px solid #64566c; border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #0e0e17bd; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .5rem; }
.favour-guide { width: min(calc(100% - 2rem), 28rem); }
.favour-guide h2 { font-size: 1.55rem; }
.favour-guide p { margin-top: .65rem; color: var(--subtle); }
.favour-guide strong { color: var(--ink); }
.simulacrum-backs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; list-style: none; margin: .85rem 0 0; padding: 0; }
.simulacrum-backs li { text-align: center; font-weight: 700; }
.simulacrum-backs img { display: block; width: 100%; max-width: 9rem; height: auto; margin: 0 auto .4rem; border-radius: 4px; }
.legend-list { display: grid; gap: .45rem; }
.legend-list > div { background: #242537; padding: .45rem .6rem; border-radius: 6px; }
.legend-list dt { font-weight: 700; }
.legend-list dd { color: var(--subtle); }
dialog h2 + p { margin-top: .55rem; color: var(--subtle); }

@media (max-width: 820px) {
  .header-inner, main, .site-footer { width: calc(100% - 2rem); }
  .setup-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "list"; }
  .tutorial-grid, .example-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .bid-slot { flex-direction: column; align-items: flex-start; }
  .bid-art.bid-stacked, .bid-stacked .card-inspection:last-child { max-width: 100%; }
  .header-inner { flex-wrap: wrap; gap: .5rem; padding-block: .65rem; }
  nav { gap: .18rem; }
  nav a, nav .legend-trigger { padding: .42rem .48rem; min-height: 38px; font-size: .88rem; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 1.3rem; }
  .brand small { font-size: .65rem; }
  .hero { grid-template-columns: 1fr; padding: .9rem; align-content: end; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
  .hero { padding-top: clamp(3rem, 12svh, 7rem); }
  .splash-still, .splash-video { width: 100%; }
  .hero::before { background: linear-gradient(0deg, #12131cf5 0%, #12131cdb 50%, #12131c18 85%); }
  .home-page .entry-icon { width: 34px; height: 34px; font-size: 1.2rem; }
  .home-options { grid-template-columns: 1fr; gap: .65rem; }
  .session-top { gap: .3rem; }
  .session-top .quiet { min-height: 34px; padding: .25rem .42rem; font-size: .8rem; }
  .timeline { gap: .23rem; }
  .timeline li { flex-direction: column; gap: .18rem; padding: .2rem .08rem; font-size: .71rem; }
  .map-region { grid-template-columns: minmax(0, 1fr); }
  .region-cards { justify-content: flex-start; }
  .hand-card { flex-basis: 77px; }
  .market-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #image-preview.card-reference .image-preview-content { grid-template-columns: minmax(0, 1fr); }
  #image-preview.card-reference #image-preview-large { max-height: 38dvh; }
  .solo-guide-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) and (max-height: 700px) {
  .home-page main, .home-page .site-footer { width: calc(100% - 1rem); }
  .hero { padding: clamp(2.5rem, 8svh, 4rem) .7rem .65rem; }
  .hero h1 { font-size: clamp(1.55rem, 7.1vw, 2.2rem); }
  .hero p { font-size: .85rem; line-height: 1.3; }
  .home-page .entry { display: block; padding: .45rem .7rem; }
  .home-page .entry-icon { display: none; }
  .home-page .entry p { font-size: .82rem; line-height: 1.25; }
  .home-page .site-footer { padding-block: .3rem .4rem; font-size: .72rem; }
}

@media (min-width: 561px) and (max-height: 500px) {
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding: .65rem 1rem; }
  .hero h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
  .hero p { font-size: .88rem; line-height: 1.3; }
  .home-page .entry { padding-block: .45rem; }
  .home-page .site-footer { padding-block: .25rem .4rem; }
}

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