@font-face { font-family: Silkscreen; src: url('/fonts/silkscreen.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

@layer base, layout, components, responsive;
@layer base {
  :root {
    color-scheme: light;
    --paper: #f7f2e3; --paper-deep: #ebe4cf; --white: #fffdf5;
    --ink: #293b2c; --text: #394335; --muted: #60654f; --line: #c8c5ad;
    --forest: #293a2d; --forest-light: #394e37; --grass: #587f35;
    --gold: #825a18; --red: #953f2e; --error: #813c2d;
    --display: Silkscreen, monospace; --book: Georgia, 'Iowan Old Style', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: #d4d7c5; color: var(--text); font: 16px/1.7 var(--sans); }
  h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
  h1, h2, h3 { color: var(--ink); text-wrap: balance; }
  h1 { font: 400 28px/1.4 var(--display); }
  h2 { font: 500 27px/1.3 var(--book); }
  h3 { font: 500 23px/1.4 var(--book); }
  a { color: inherit; text-underline-offset: 4px; }
  button, select { font: inherit; color: inherit; }
  button, select, summary { cursor: pointer; }
  button, a, select, summary { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 3px solid #8d661b; outline-offset: 4px; }
  .sidebar :focus-visible { outline-color: #d3db88; }
  [hidden] { display: none !important; }
  ::selection { background: #d3ddb0; color: var(--ink); }
  code { font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
  .muted, .helper { color: var(--muted); }
  .helper { font-size: 13px; line-height: 1.65; }
  .icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; fill: currentColor; vertical-align: middle; }
  .item-icon { width: 36px; height: 36px; flex: 0 0 36px; fill: currentColor; color: var(--grass); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; background: var(--ink); color: var(--white); z-index: 10; }
  .skip-link:focus { top: 16px; }
  button:disabled { cursor: wait; opacity: .65; }
}
@layer layout {
  .shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); max-width: 1680px; margin: auto; background: var(--paper); min-height: 100dvh; }
  .sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; overflow-y: auto; padding: 28px 20px; color: #e5e6cf; background: var(--forest) url('/wood.png'); image-rendering: pixelated; scrollbar-color: #81926c var(--forest); border-right: 4px solid #1b2c20; }
  .workspace { min-width: 0; }
  .topbar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 32px; border-bottom: 1px solid var(--line); background: #eeead9; }
  main { padding: 0 32px 40px; min-height: calc(100vh - 160px); }
  main:focus { outline: none; }
  .welcome { min-height: 172px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: center; padding: 24px 0; }
  .landscape { width: 100%; height: auto; image-rendering: pixelated; border-bottom: 4px solid #77704d; }
  .lede { color: var(--muted); font-size: 16px; line-height: 1.8; margin-top: 12px; max-width: 68ch; }
  .today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 24px; align-items: start; }
  .current-chapter { grid-column: 1; grid-row: 1; }
  .live-rail { grid-column: 2; grid-row: 1 / span 2; }
  .next-step-slot { grid-column: 1; grid-row: 2; }
  .reader-view, .detail-view { max-width: 1152px; margin: auto; padding-top: 32px; }
  .reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 32px; }
  .footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
}
@layer components {
  .brand { display: flex; align-items: center; min-height: 44px; gap: 12px; font: 400 16px/1.4 var(--display); color: #f3eed7; text-decoration: none; }
  .brand small { display: block; font: 13px/1.4 var(--sans); color: #c8d0b7; margin-top: 4px; }
  .primary-nav { display: grid; gap: 8px; margin: 32px 0; }
  .primary-nav a { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; font-size: 15px; border: 1px solid transparent; }
  .primary-nav a:hover { background: #344a34; }
  .primary-nav a[aria-current='page'] { background: #445e3c; border-color: #718756; color: var(--white); }
  .primary-nav .icon { color: #c0d18e; }
  .chapter-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0 0 16px; }
  .chapter-heading h2 { font: 500 14px var(--sans); color: #d4ddc4; }
  #chapter-count { font: 13px var(--display); color: #d4ddc4; }
  /* Keep expanded chapters in flow; the sidebar scrolls instead of compressing the list. */
  .chapter-nav { display: grid; flex-shrink: 0; align-content: start; gap: 8px; min-height: 132px; }
  .chapter-link { display: flex; align-items: center; min-height: 68px; gap: 12px; padding: 12px; text-decoration: none; border: 1px solid #617154; background: #334731; }
  .chapter-link:hover { background: #405839; }
  .chapter-link.is-current { border-color: #a2b379; }
  .chapter-link[aria-current='page'] { background: #4a633c; }
  .chapter-number { display: grid; place-items: center; width: 32px; min-width: 32px; height: 36px; font: 14px var(--display); color: #e3e8ad; }
  .chapter-label { display: block; min-width: 0; flex: 1; color: #f5f2de; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  .chapter-label small { display: block; font-size: 12px; color: #d7dfc4; margin-top: 3px; }
  .chapter-link .icon { width: 18px; height: 18px; flex-basis: 18px; color: #beca9e; }
  .chapter-group summary { min-height: 44px; padding: 8px 4px; color: #dbe2ca; font-size: 14px; }
  .group-count { float: right; font-size: 12px; }
  .chapter-group .chapter-link { margin-top: 8px; }
  .is-locked { background: #293c2b; border-style: dashed; }
  .nav-loading { font-size: 14px; color: #d2dcc2; }
  .spoiler-note { display: flex; align-items: start; gap: 12px; font-size: 13px; color: #c1cdb0; margin: 24px 0; }
  .spoiler-note .icon { width: 18px; height: 18px; flex-basis: 18px; margin-top: 3px; }
  .sidebar-bottom { margin-top: auto; border-top: 1px solid #5a6b4e; padding-top: 24px; color: #cdd8b6; }
  .sidebar-bottom .icon { width: 36px; height: 36px; margin-bottom: 12px; color: #b6c581; }
  .sidebar-bottom p { font: 16px/1.7 var(--book); }
  .sidebar-bottom strong { color: #f1e8c7; font-weight: 500; }
  .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
  .breadcrumb > span:last-child { color: var(--ink); }
  .connection { display: flex; align-items: center; gap: 12px; font-size: 12px; }
  #connection-label { max-width: 200px; }
  #connection-label::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--grass); margin-right: 8px; }
  #connection-label[data-status='error']::before, #connection-label[data-status='stale']::before { background: var(--error); }
  .icon-button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; background: var(--paper); border: 1px solid #9d9e83; }
  .icon-button:hover { background: #dfe6cb; }
  .icon-button:active { background: #cfdcba; }
  .notice { margin: 16px 32px 0; padding: 12px 16px; font-size: 13px; line-height: 1.65; color: #66511f; border: 1px solid #c4b68c; background: #ede6d0; }
  .error-notice { color: var(--error); background: #f1e1d1; border-color: #c8987f; }
  .current-chapter { position: relative; border: 2px solid #7f925b; border-top-width: 10px; background: #e7ebd2; padding: 24px; min-height: 292px; }
  .chapter-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
  .chapter-seal { display: grid; place-items: center; flex: 0 0 44px; height: 48px; color: #f2f0cc; font: 22px var(--display); background: var(--forest-light); border: 2px solid #708456; }
  .current-chapter h2 { font: 400 21px/1.4 var(--display); }
  .current-chapter > .helper { color: #515d42; }
  .rules-list { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .rules-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
  .rules-list .icon { width: 18px; height: 18px; flex-basis: 18px; color: #597743; }
  .chapter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .button-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 10px 16px; background: #496b35; border: 2px solid; border-color: #829954 #314d27 #314d27 #829954; color: #fffef0; font-size: 14px; font-weight: 600; text-decoration: none; }
  .button-link:hover { background: #385829; }
  .button-link:active { border-color: #314d27; background: #314d27; }
  .text-link, .back-link { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; padding: 8px 0; font-size: 14px; color: #405e30; }
  .text-link:hover, .back-link:hover { color: var(--gold); }
  .text-link .icon, .back-link .icon, .button-link .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .back-link { margin-bottom: 16px; flex-direction: row-reverse; }
  .back-link .icon { transform: rotate(180deg); }
  .command-control { display: flex; align-items: stretch; flex-wrap: wrap; max-width: 100%; width: fit-content; border: 1px solid #989a7d; background: #fffaf0; }
  .command-control code { padding: 11px 12px; flex: 1; align-self: center; min-width: 0; }
  .copy-command { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; font-size: 13px; border: 0; border-left: 1px solid #b6b69b; background: #e4e5d1; color: var(--ink); }
  .copy-command .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .copy-command:hover { background: #d2dcb9; }
  .copy-command:active { background: #bbcfa0; }
  .copy-feedback { flex-basis: 100%; padding: 12px; font-size: 13px; color: var(--error); background: #f1e1d1; }
  .live-rail { border: 1px solid var(--line); background: #eee9d7; padding: 20px; }
  .live-rail h2 { font-size: 23px; }
  .live-rail > .helper { margin: 8px 0 16px; }
  #faction-summary { min-height: 300px; }
  .faction-card { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .faction-card h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; color: var(--gold); }
  .faction-card.tartare h3 { color: var(--red); }
  .faction-card .icon { width: 22px; height: 22px; flex-basis: 22px; }
  .faction-card dl { margin: 12px 0 0; font-size: 14px; }
  .faction-card dl > div { display: flex; justify-content: space-between; gap: 12px; }
  .faction-card dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
  .season-summary { padding-top: 20px; min-height: 108px; }
  .season-name { font-size: 13px; }
  .age-track { display: flex; gap: 4px; margin: 12px 0 8px; }
  .age-track span { height: 8px; flex: 1; border: 1px solid #a6ac8f; background: #d0d5bd; }
  .age-track .revealed { background: #678d3a; border-color: #52732c; }
  .next-step-slot { min-height: 350px; }
  .next-step { padding: 4px 0; }
  .next-step > h2, .next-step > h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .next-step > h2 .icon, .next-step > h3 .icon { color: var(--grass); }
  .next-objective-title { font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
  .next-step > p:not(.next-objective-title) { font-size: 15px; max-width: 68ch; }
  .next-step .command-control { margin-top: 16px; }
  .next-step .text-link { margin-top: 8px; }
  .faction-progress { margin: 16px 0; }
  .progress-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px; font-size: 13px; }
  .progress-label strong { color: var(--gold); font-weight: 600; }
  .progress-label span { color: var(--muted); font-variant-numeric: tabular-nums; }
  progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 0; color: var(--gold); background: #d1d4bd; mask-image: url('/progress-mask.svg'); mask-size: 12px 100%; mask-repeat: repeat; }
  progress::-webkit-progress-bar { background: #d1d4bd; }
  progress::-webkit-progress-value { background: var(--gold); }
  progress::-moz-progress-bar { background: var(--gold); }
  .tartare .progress-label strong { color: var(--red); }
  .tartare progress { color: var(--red); }
  .tartare progress::-webkit-progress-value { background: var(--red); }
  .tartare progress::-moz-progress-bar { background: var(--red); }
  .global .progress-label strong { color: #41602f; }
  .global progress { color: var(--grass); }
  .global progress::-webkit-progress-value { background: var(--grass); }
  .global progress::-moz-progress-bar { background: var(--grass); }
  .essentials { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 32px; max-width: 840px; }
  .section-intro { color: var(--muted); margin-top: 12px; max-width: 66ch; }
  .essential { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
  .essential > .item-icon { margin-top: 4px; }
  .essential p { margin: 8px 0 16px; font-size: 16px; line-height: 1.8; max-width: 66ch; }
  .meeps-note { display: flex; align-items: center; gap: 20px; max-width: 740px; margin: 32px 0 0; }
  .meeps-note .item-icon { color: var(--gold); }
  .meeps-note p { font: italic 18px/1.7 var(--book); }
  .meeps-note cite { display: block; font: 13px var(--sans); color: var(--muted); margin-top: 12px; }
  .reader-heading { margin-bottom: 24px; }
  .reader-heading .helper { margin-top: 8px; }
  .current-context { padding: 20px 24px; margin-bottom: 32px; background: #e7ebd2; border: 1px solid #a5b38c; }
  .current-context h2 { font-size: 23px; margin-bottom: 8px; }
  .current-context .rules-list { margin: 12px 0; }
  .context-objective { margin-top: 16px; font-size: 14px; }
  .reader-section { margin-bottom: 32px; }
  .reader-section h2 { margin-bottom: 12px; }
  .reader-section p { max-width: 68ch; line-height: 1.9; }
  .reader-actions { padding: 24px; background: #eee9d7; border: 1px solid var(--line); align-self: start; }
  .reader-actions h2 { font-size: 23px; margin-bottom: 16px; }
  .command-item { padding: 12px 0; }
  .command-item p { font-size: 14px; margin-bottom: 8px; }
  .reader-actions .command-control { width: 100%; }
  .reader-actions .command-control code { flex-basis: 100%; }
  .reader-actions .copy-command { width: 100%; border: 0; border-top: 1px solid var(--line); }
  .reader-footnote { font-size: 13px; color: var(--muted); margin-top: 16px; }
  .reader-view > .next-step { max-width: 720px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 28px; }
  .locked-page { max-width: 620px; text-align: center; margin: 32px auto 80px; }
  .lock-seal { display: grid; place-items: center; width: 80px; height: 80px; background: #e4e5cd; border: 2px solid #adb58f; margin: 0 auto 24px; }
  .lock-seal .icon { width: 40px; height: 40px; color: #6e7c50; }
  .locked-page .helper { margin: 16px 0; }
  .locked-page .lede { font: italic 23px/1.6 var(--book); }
  .locked-page .muted { margin: 24px 0; }
  .kingdom-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 32px 0; }
  .kingdom-scores .faction-card { padding: 24px; background: #eeead8; border: 1px solid var(--line); }
  .kingdom-scores dl { font-size: 16px; }
  .territory-list { list-style: none; padding: 0; margin-top: 16px; }
  .territory-list li { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .territory-list > li > .icon { color: #6d7f4e; }
  .territory-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .territory-name strong { font-size: 18px; font-weight: 500; display: block; color: var(--ink); }
  .territory-name small { font-size: 13px; color: var(--muted); }
  .owner-label { font-size: 13px; font-weight: 600; }
  .owner-label.solis { color: var(--gold); }
  .owner-label.tartare { color: var(--red); }
  .filter-bar { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px 0; margin: 24px 0 8px; border-block: 1px solid var(--line); }
  .filter-bar > div { display: flex; align-items: center; gap: 12px; }
  .filter-bar label { font-size: 14px; }
  select { min-height: 48px; background: var(--white); border: 1px solid #92967c; border-radius: 0; padding: 8px 36px 8px 12px; font-size: 14px; }
  .objective { padding: 28px 0; border-bottom: 1px solid var(--line); }
  .objective h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
  .objective h2 .icon { color: #68854a; }
  .objective > p { max-width: 68ch; margin: 12px 0 20px; }
  .objective-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .objective-comparison .faction-progress { margin: 0; }
  .empty-state { margin-top: 24px; padding: 24px; border: 1px dashed #a7ae8f; }
  .empty-state h2 { margin-bottom: 12px; }
  .empty-state p { color: var(--muted); font-size: 15px; }
  .noscript { position: fixed; bottom: 0; width: 100%; margin: 0; background: var(--paper-deep); padding: 16px; border: 1px solid var(--line); }
}
@layer responsive {
  @media (max-width: 1200px) {
    .shell { grid-template-columns: 228px minmax(0, 1fr); }
    .sidebar { padding-inline: 16px; } .brand { gap: 8px; font-size: 14px; }
    main { padding-inline: 24px; } .topbar, .footer { padding-inline: 24px; } .notice { margin-inline: 24px; }
    .welcome { grid-template-columns: minmax(0, 1fr) 240px; } .welcome h1 { font-size: 24px; }
    .today-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
    .current-chapter { padding: 20px; min-height: 332px; }
    .chapter-title-row { gap: 12px; } .chapter-seal { display: none; }
    .current-chapter h2 { font-size: 20px; }
    .reader-layout { grid-template-columns: 1fr; gap: 8px; }
    .reader-actions { max-width: 600px; }
    .reader-actions .command-control code { flex-basis: auto; } .reader-actions .copy-command { width: auto; border: 0; border-left: 1px solid var(--line); }
  }
  @media (max-width: 1000px) {
    .today-grid { grid-template-columns: 1fr; }
    .current-chapter, .live-rail, .next-step-slot { grid-column: 1; grid-row: auto; }
    .live-rail { padding: 20px; } #faction-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-height: 152px; }
    .season-summary { min-height: 100px; } .current-chapter { min-height: 292px; }
    .welcome { grid-template-columns: 1fr; min-height: 148px; } .landscape { display: none; }
    .connection { gap: 8px; } .breadcrumb { font-size: 12px; } .topbar { gap: 12px; }
    .objective-comparison { grid-template-columns: 1fr; gap: 16px; }
  }
  @media (max-width: 680px) {
    .shell { display: block; }
    .sidebar { position: static; height: auto; padding: 16px; border-right: 0; border-bottom: 4px solid #1b2c20; }
    .brand { font-size: 16px; justify-content: center; } .brand img { width: 36px; height: 36px; }
    .primary-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
    .primary-nav a { padding: 8px 4px; min-height: 48px; justify-content: center; gap: 6px; font-size: 13px; text-align: center; line-height: 1.4; }
    .primary-nav .icon { width: 18px; height: 18px; flex-basis: 18px; }
    .chapter-heading { display: none; } .chapter-nav { grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; min-height: 68px; }
    .chapter-link { min-height: 60px; padding: 8px 12px; } .chapter-nav > .chapter-link .icon { display: none; }
    .chapter-group summary { padding: 8px; font-size: 13px; } .chapter-group { align-self: center; }
    .chapter-nav:has([data-group='archives']) > .chapter-link { grid-column: 1 / -1; }
    .chapter-nav:has(details[open]) { grid-template-columns: 1fr; }
    .chapter-nav .nav-loading { grid-column: 1 / -1; }
    .spoiler-note, .sidebar-bottom { display: none; }
    .topbar { padding: 8px 16px; min-height: 68px; gap: 8px; }
    .breadcrumb { font-size: 12px; gap: 4px; } .breadcrumb > span:first-child { display: none; }
    .breadcrumb { max-width: 110px; } .connection { font-size: 12px; gap: 8px; }
    #connection-label { max-width: 120px; line-height: 1.5; }
    main { padding: 0 16px 32px; } .notice { margin: 12px 16px 0; padding: 12px; font-size: 13px; }
    .welcome { min-height: 140px; padding: 24px 0; } .welcome h1 { font-size: 24px; }
    .lede { font-size: 15px; } .today-grid { gap: 20px; }
    .current-chapter { padding: 20px; min-height: 308px; }
    .current-chapter h2 { font-size: 20px; } .chapter-actions { align-items: stretch; flex-direction: column; }
    .chapter-actions > * { width: 100%; } .chapter-actions .command-control code { padding-inline: 10px; }
    .live-rail { padding: 16px; } .live-rail h2 { font-size: 24px; } #faction-summary { gap: 20px; }
    .faction-card h3 { font-size: 22px; } .faction-card dl { font-size: 13px; } .faction-card dl > div { gap: 6px; }
    .season-name { font-size: 13px; } .season-summary { padding-top: 16px; }
    .next-step-slot { min-height: 350px; } .next-step > h2 { font-size: 26px; }
    .essential { gap: 16px; padding: 24px 0; } .essential > .item-icon { width: 28px; height: 28px; flex-basis: 28px; }
    .essential h3 { font-size: 23px; } .essential p { font-size: 16px; }
    .essential .command-control code { flex-basis: 100%; } .essential .copy-command { width: 100%; border: 0; border-top: 1px solid var(--line); }
    .meeps-note { align-items: flex-start; gap: 16px; } .meeps-note p { font-size: 17px; }
    .footer { padding: 20px 16px; font-size: 12px; }
    .reader-view, .detail-view { padding-top: 24px; } .reader-view h1, .detail-view h1 { font-size: 24px; }
    .reader-section p { font-size: 16px; } .current-context { padding: 20px; }
    .reader-actions { padding: 20px; } .reader-actions .command-control code { flex-basis: 100%; } .reader-actions .copy-command { width: 100%; border: 0; border-top: 1px solid var(--line); }
    .kingdom-scores { gap: 16px; } .kingdom-scores .faction-card { padding: 12px; } .kingdom-scores dl { font-size: 13px; }
    .territory-list li { gap: 12px; } .territory-name strong { font-size: 17px; }
    .filter-bar { gap: 12px; } .filter-bar > div { flex: 1; min-width: 0; flex-direction: column; align-items: stretch; gap: 4px; }
    select { width: 100%; padding: 8px 24px 8px 8px; font-size: 13px; }
    .objective h2 { font-size: 25px; } .objective > p { font-size: 16px; }
    .locked-page { margin: 24px auto 48px; } .locked-page .lede { font-size: 21px; }
  }
  @media (max-width: 380px) { .primary-nav .icon { display: none; } .faction-card h3 { gap: 6px; } .faction-card .icon { width: 18px; height: 18px; flex-basis: 18px; } }
  @media (prefers-reduced-motion: no-preference) { button, a { transition: background-color .15s, color .15s; } }
  @media print { .sidebar, .topbar, .footer, .notice, .filter-bar, .copy-command { display: none; } .shell, .today-grid, .reader-layout { display: block; } main { padding: 0; } body { background: white; } .live-rail { margin-block: 24px; } }
}
