:root {
  color-scheme: light;
  --paper: #f7f1e6;
  --ink: #302820;
  --muted: #685a4c;
  --line: #d5c8b4;
  --accent: #692c39;
  --gold: #876128;
  --cream: #fffcf5;
  --red: #a32c30;
  --display: "Baskerville", "Bitstream Charter", "Charter", "Palatino Linotype", Georgia, serif;
  --body: "Optima", "URW Gothic", "Trebuchet MS", sans-serif;
  --mono: "Nimbus Mono PS", "Courier New", monospace;
}
.tier-surface { --tier-color: #685a4c; }
.tier-decoy { --tier-color: #8b4c29; }
.tier-familiar { --tier-color: #48614a; }
.tier-uncommon { --tier-color: #355c75; }
.tier-obscure { --tier-color: #692c39; }
.tier-pearl { --tier-color: #876128; }
.tier-miss { --tier-color: #685a4c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font: 18px/1.6 var(--body); background: radial-gradient(ellipse at 0 10%, #e6d6bc66, transparent 50%), repeating-linear-gradient(0deg, #87612803 0 1px, transparent 1px 4px), var(--paper); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; }
button:disabled { cursor: wait; opacity: .5; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--cream); }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px 20px; z-index: 30; background: var(--cream); }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1360px; margin: auto; min-height: 120px; padding: 24px 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 44px/1 var(--display); letter-spacing: -1px; color: var(--accent); }
.brand svg { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; filter: drop-shadow(0 2px 5px #30282026); }
.brand path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand .brand-cover { fill: #efe3ce; }
.brand .brand-star { stroke: var(--gold); stroke-width: 1; }
.brand small { display: block; font: 14px/1.5 var(--body); color: var(--muted); letter-spacing: 0; margin-top: 7px; }
nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav-link { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav-link.active { color: var(--accent); border-color: var(--accent); }
.nav-link:hover { color: var(--accent); }
.nav-link span { padding-left: 4px; }
.help-button { border: 1px solid #96846f; background: var(--cream); border-radius: 50%; height: 44px; width: 44px; font: 23px var(--display); }
main { max-width: 1280px; min-height: calc(100vh - 224px); margin: 0 auto; padding: 0 56px; }
.screen { animation: page-in .4s ease both; }
.home { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 68px; padding-top: 60px; align-items: start; }
.home > * { min-width: 0; }
.eyebrow, .note-number, .card-heading { font: 14px/1.5 var(--body); letter-spacing: .5px; color: var(--accent); }
.mono { font: 15px/1.5 var(--body); font-variant-numeric: tabular-nums; }
.hero-copy { padding-top: 28px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; }
.little-line { width: 28px; height: 2px; background: var(--gold); flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: normal; line-height: 1.15; overflow-wrap: anywhere; }
.hero-copy h1 { font-size: clamp(56px, 5.5vw, 78px); line-height: 1.08; letter-spacing: -2.5px; margin: 28px 0; }
em { color: var(--accent); font-weight: normal; }
.hero-description { font-size: 21px; line-height: 1.7; max-width: 440px; color: var(--muted); margin-bottom: 30px; }
.collection-index { padding: 22px 0; border-block: 1px solid var(--line); max-width: 440px; }
.collection-label { display: block; font: italic 18px var(--display); color: var(--muted); margin-bottom: 12px; }
.collection-index > div { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 17px var(--display); }
.hero-footnote { color: var(--muted); font-size: 15px; margin: 20px 0 0; }
.reading-card { position: relative; border: 1px solid var(--line); border-left: 5px solid var(--accent); background: var(--cream); box-shadow: 5px 5px 0 #e9dfcf, 6px 6px 0 var(--line), 0 18px 35px #4933220a; }
.card-heading { display: flex; justify-content: space-between; gap: 12px; padding: 20px 26px 15px; }
.card-heading span:last-child { color: var(--muted); }
.library-scene { position: relative; height: 180px; margin: 0 15px; background: radial-gradient(ellipse at 50% 10%, #fff9ec, #eddfc8); overflow: hidden; border-bottom: 1px solid #c4af8e; }
.shelf-arch { position: absolute; inset: 10px 20% 33px; border: 1px solid #bda17c77; border-bottom: 0; border-radius: 140px 140px 0 0; box-shadow: 0 0 0 7px #fff6; }
.book-shelf { position: absolute; bottom: 35px; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: center; gap: 6px; border-bottom: 6px double #9a7952; padding-bottom: 2px; animation: shelf-in .7s ease both; }
.book { position: relative; height: 116px; width: 53px; background: var(--book-color); color: #fff2d8; border: 1px solid #33281a66; border-radius: 3px 5px 0 0; box-shadow: inset 5px 0 #0002, inset -3px 0 #fff1; }
.book::before, .book::after { content: ""; position: absolute; inset: 10px 5px auto; height: 4px; border-block: 1px solid #f1d59e99; }
.book::after { top: auto; bottom: 10px; }
.book span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); font: 16px var(--display); white-space: nowrap; letter-spacing: .4px; }
.book-tanakh { --book-color: #692c39; height: 126px; }
.book-mishnah { --book-color: #3c5546; height: 112px; }
.book-gemara { --book-color: #5a3e2d; height: 133px; }
.book-halacha { --book-color: #9a753e; height: 120px; }
.book-notes { --book-color: #3c5363; height: 105px; transform: rotate(8deg); transform-origin: bottom left; margin-left: 4px; }
.shelf-caption { position: absolute; bottom: 7px; inset-inline: 8px; text-align: center; font: italic 15px var(--display); color: #5d4b36; }
.reading-details { padding: 24px 26px; }
.mode-switch { display: flex; border: 1px solid #96846f; padding: 4px; gap: 4px; margin-bottom: 22px; border-radius: 3px; }
.mode-switch button { flex: 1; background: transparent; font: 15px/1.4 var(--body); padding: 10px 8px; min-height: 44px; }
.mode-switch button.selected { color: var(--cream); background: var(--accent); border-radius: 2px; }
.reading-details h2 { font-size: 29px; margin-bottom: 12px; }
.pack-meta { font-size: 15px; color: var(--muted); margin-bottom: 22px; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 13px 20px; font: 16px/1.4 var(--body); border: 1px solid transparent; border-radius: 3px; text-decoration: none; transition: background .15s, border-color .15s; }
.button.primary { color: var(--cream); background: var(--accent); }
.button.primary:hover { background: #4b1d28; }
.button.primary span { font-size: 19px; }
.button.outline { background: var(--cream); border-color: #96846f; }
.button.outline:hover { background: #eee3d2; }
.button.full { width: 100%; justify-content: space-between; }
.button.small { min-height: 44px; padding: 10px 14px; font-size: 15px; }
.card-note { text-align: center; font-size: 14px; margin: 14px 0 0; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
#pack-description:empty { display: none; }
.field-notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 56px 0 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.field-notes > div { padding-right: 28px; animation: page-in .6s ease both; }
.field-notes > div + div { padding-left: 28px; border-left: 1px solid var(--line); animation-delay: .1s; }
.field-notes > div:last-child { padding-right: 0; animation-delay: .2s; }
.field-notes h3 { font-size: 24px; margin: 14px 0 12px; }
.field-notes p { font-size: 16px; color: var(--muted); line-height: 1.7; margin: 0; }
.site-footer { max-width: 1280px; margin: auto; border-top: 1px solid var(--line); padding: 26px 56px; display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--muted); }
.site-footer strong { font: 22px var(--display); color: var(--accent); }
.text-button { padding: 8px 0; min-height: 44px; background: transparent; font: 15px/1.5 var(--body); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .text-button { font-size: 14px; color: var(--ink); }
.muted { color: var(--muted); }
.quiet-link { display: inline-block; padding-block: 10px; font: 15px/1.5 var(--body); color: var(--muted); }
.login { max-width: 500px; margin: 58px auto 70px; }
.login h1 { font-size: clamp(52px, 7vw, 74px); font-weight: normal; line-height: 1.03; letter-spacing: -2px; margin: 24px 0; }
.login-description { font-size: 18px; color: var(--muted); line-height: 1.6; margin-bottom: 30px; }
.login .field-label { font-size: 15px; }
#admin-password { margin-top: 10px; font: 20px var(--body); }
#admin-setup { padding: 24px; background: var(--cream); border: 1px solid var(--line); }
#admin-setup h2 { font-size: 23px; font-weight: normal; }
#admin-setup p { color: var(--muted); line-height: 1.65; }
#admin-setup .button { margin-top: 22px; }
.setup-command { display: block; font: 15px/1.6 var(--mono); overflow-wrap: anywhere; margin-top: 12px; }
.login-back { display: inline-block; margin-top: 28px; }
.game { max-width: 840px; margin: 48px auto 70px; background: var(--cream); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 30px 40px; box-shadow: 0 12px 30px #49332208; }
.game-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-topline .mono { font-size: 16px; white-space: nowrap; }
.round-track { display: flex; gap: 8px; margin: 24px 0 32px; }
.round-dot { height: 6px; flex: 1; background: #e5dac8; border-radius: 2px; }
.round-dot.current { background: var(--accent); }
.round-dot.complete { background: var(--gold); }
.question-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.question-heading .mono { font-size: 16px; color: var(--muted); white-space: nowrap; }
.game h1 { font-size: clamp(32px, 4vw, 47px); font-weight: normal; letter-spacing: -1px; line-height: 1.2; margin: 20px 0 36px; }
.timer-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
#timer { font: 27px/1.2 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.timer-track { height: 8px; background: #e5dac8; margin: 12px 0 24px; border-radius: 4px; overflow: hidden; }
#timer-bar { height: 100%; width: 100%; background: var(--accent); transition: width .1s linear; }
#timer-bar.urgent { background: var(--red); }
.answer-box { display: flex; gap: 12px; margin-top: 10px; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #96846f; padding: 12px; background: var(--cream); border-radius: 3px; color: var(--ink); font-size: 17px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #746451; opacity: 1; }
textarea { resize: vertical; }
#answer-input { font-size: 22px; padding: 16px; }
.answer-box .button { min-width: 120px; }
.answer-message { margin: 12px 0; min-height: 24px; color: var(--red); font-size: 16px; }
.answer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); margin-top: 20px; }
.game-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.legend-item { font: 14px/1.5 var(--body); display: flex; align-items: center; gap: 7px; color: var(--ink); }
.tier-dot { display: inline-block; width: 9px; height: 9px; background: var(--tier-color, var(--muted)); border-radius: 50%; flex-shrink: 0; }
.feedback-card { background: #f4ecde; border: 1px solid var(--line); border-left: 4px solid var(--tier-color); padding: 26px; margin-bottom: 24px; display: flex; gap: 26px; align-items: center; }
.feedback-card > div { min-width: 0; }
.feedback-points { color: var(--accent); font: 64px/1 var(--display); white-space: nowrap; }
.feedback-card .eyebrow { color: var(--accent); }
.feedback-card h2 { font-size: 28px; margin: 8px 0; }
.feedback-card p { font-size: 16px; color: var(--muted); margin-bottom: 0; overflow-wrap: anywhere; }
.answer-sheet { margin: 18px 0; border-top: 1px solid var(--line); }
.answer-sheet summary { cursor: pointer; padding: 16px 0; font-size: 16px; }
.sheet-row { padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); font-size: 17px; overflow-wrap: anywhere; }
.sheet-row > bdi { min-width: 0; }
.sheet-note { display: block; font: 14px/1.5 var(--body); color: var(--muted); margin-top: 4px; }
.sheet-row span:last-child { font: 14px/1.5 var(--body); color: var(--muted); text-align: right; flex-shrink: 0; }
.results { max-width: 760px; margin: 58px auto 70px; }
.results h1 { font-size: clamp(42px, 5vw, 64px); font-weight: normal; line-height: 1.05; letter-spacing: -2px; margin: 24px 0; }
.results-score { display: flex; align-items: center; gap: 22px; margin: 32px 0; }
#final-score { font: 100px/1 var(--display); color: var(--accent); letter-spacing: -4px; }
.results-score > div { display: flex; flex-direction: column; gap: 9px; }
#final-max { font-size: 15px; color: var(--muted); }
#final-summary { font: 23px/1.5 var(--display); }
.result-row { border-top: 1px solid var(--line); }
.result-row summary { display: flex; align-items: center; gap: 18px; cursor: pointer; padding: 18px 0; }
.result-row summary > div { flex: 1; min-width: 0; }
.result-row summary small { display: block; font: 15px/1.6 var(--body); color: var(--muted); margin-bottom: 5px; }
.result-row summary strong { font-weight: normal; font-size: 21px; overflow-wrap: anywhere; }
.result-points { font: 21px var(--display); }
.result-row summary::after { content: "+"; font: 16px var(--mono); color: var(--muted); }
.result-row[open] summary::after { content: "-"; }
.result-row .sheet-row { padding-left: 24px; }
.results-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fine-print { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 20px 0 0; }
.studio { padding: 45px 0 60px; }
.studio-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.studio h1 { font-size: 52px; font-weight: normal; line-height: 1.02; letter-spacing: -2px; margin: 20px 0 0; }
.studio-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-intro { margin: 22px 0 12px; color: var(--muted); line-height: 1.6; }
.studio-notice { font-size: 15px; color: var(--muted); }
.pack-library { margin: 28px 0; padding: 24px; background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.library-heading h2 { font-size: 29px; margin-bottom: 0; }
#library-count { font-size: 15px; white-space: nowrap; }
.pack-library > p { font-size: 16px; color: var(--muted); margin: 16px 0; }
.library-controls { display: flex; align-items: stretch; gap: 12px; margin-top: 10px; }
.library-controls select { flex: 1; width: 0; }
.library-controls .button { flex-shrink: 0; }
#library-status { color: var(--accent); overflow-wrap: anywhere; margin-bottom: 8px; }
.pack-library #library-note { font-size: 14px; margin: 8px 0 0; }
.pack-settings { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--line); background: var(--cream); }
.pack-settings summary { cursor: pointer; font-size: 16px; }
.pack-settings summary span { color: var(--muted); margin-left: 14px; overflow-wrap: anywhere; }
.settings-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; padding-top: 20px; }
.settings-grid label { font-size: 15px; min-width: 0; }
.settings-grid input, .settings-grid textarea { margin-top: 8px; }
.settings-grid .wide { grid-column: 1 / -1; }
.studio-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: start; }
.studio-layout > * { min-width: 0; }
.question-sidebar { border-right: 1px solid var(--line); padding-right: 24px; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 18px; }
.sidebar-heading .text-button { font-size: 14px; }
.question-tab { width: 100%; text-align: left; padding: 13px 12px; margin-bottom: 6px; background: transparent; border: 1px solid transparent; }
.question-tab.selected { background: #eee2d1; border-color: #a58a68; border-left: 3px solid var(--accent); }
.question-tab small { display: block; font: 14px/1.5 var(--body); margin-bottom: 7px; color: var(--muted); }
.question-tab span { display: block; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.question-tab .draft-label { margin-top: 6px; color: #804b20; }
.editor-topline { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.danger { color: var(--red); font-size: 14px; }
.field-label { display: block; font: 15px/1.5 var(--body); min-width: 0; }
.field-label textarea, .field-label input, .field-label select { margin-top: 9px; font: 17px/1.5 var(--body); }
.field-label textarea { font-size: 20px; line-height: 1.4; }
.editor-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.answer-bank-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 30px 0 12px; }
.answer-bank-heading h2 { font-size: 23px; font-weight: normal; margin-bottom: 6px; }
.answer-bank-heading p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.answer-bank-heading .button { flex-shrink: 0; }
.ai-notice { font-size: 14px; color: var(--muted); margin: 16px 0; }
.answer-table-wrap { overflow-x: auto; max-width: 100%; }
.answer-table { width: 100%; min-width: 650px; border-collapse: collapse; table-layout: fixed; }
.answer-table th { font: 14px/1.5 var(--body); text-align: left; color: var(--muted); padding: 12px 6px; border-block: 1px solid var(--line); }
.answer-table th:nth-child(1) { width: 36%; }
.answer-table th:nth-child(2) { width: 29%; }
.answer-table th:nth-child(3) { width: 29%; }
.answer-table th:nth-child(4) { width: 6%; }
.answer-table td { vertical-align: top; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.answer-table input, .answer-table select, .answer-table textarea { padding: 10px; font-size: 16px; }
.answer-table .answer-note { font-size: 14px; margin-top: 8px; padding: 8px 10px; }
.remove-answer { padding: 6px 0; background: transparent; font-size: 26px; width: 100%; min-height: 44px; color: var(--red); }
.add-answer { margin-top: 18px; }
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(580px, 90vw); background: var(--ink); color: var(--cream); padding: 16px 23px; z-index: 20; box-shadow: 0 4px 20px #0002; font: 16px/1.6 var(--body); overflow-wrap: anywhere; pointer-events: none; }
#toast.error { background: var(--accent); }
dialog { border: 1px solid #96846f; padding: 36px; background: var(--cream); color: var(--ink); width: min(560px, calc(100% - 30px)); max-height: 90vh; overflow: auto; box-shadow: 8px 8px 0 #d5c8b4; }
dialog::backdrop { background: #302820b3; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 8px; right: 10px; background: transparent; font-size: 26px; width: 44px; height: 44px; }
dialog h2 { font-size: 41px; font-weight: normal; line-height: 1.05; letter-spacing: -1px; margin: 20px 0; }
dialog p { font-size: 17px; line-height: 1.7; color: var(--muted); }
#help-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 25px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shelf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
  .site-header { padding-inline: 32px; }
  main { padding-inline: 32px; }
  .home { column-gap: 36px; padding-top: 48px; }
  .hero-copy h1 { font-size: clamp(44px, 6vw, 60px); letter-spacing: -1.5px; }
  .hero-description { font-size: 19px; }
  .reading-details { padding-inline: 20px; }
  .card-heading { padding-inline: 20px; font-size: 14px; }
  .book { width: 42px; }
  .field-notes > div { padding-right: 20px; }
  .field-notes > div + div { padding-left: 20px; }
  .studio-header { align-items: flex-start; flex-direction: column; }
  .studio-layout { grid-template-columns: 1fr; }
  .question-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; min-width: 0; }
  #question-list { display: flex; overflow-x: auto; gap: 8px; padding: 4px 4px 12px; }
  .question-tab { flex: 0 0 210px; margin: 0; }
  .site-footer { padding-inline: 32px; }
}
@media (max-width: 720px) {
  .site-header { padding: 20px; flex-wrap: wrap; gap: 18px; }
  .brand { font-size: 38px; gap: 12px; }
  .brand svg { width: 48px; height: 48px; }
  nav { width: 100%; gap: 24px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 10px; }
  .help-button { margin-left: auto; }
  main { padding-inline: 20px; }
  .home { grid-template-columns: 1fr; gap: 32px; padding-top: 30px; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { font-size: clamp(44px, 10vw, 68px); margin: 22px 0; }
  .hero-description { font-size: 19px; margin-bottom: 24px; }
  .hero-footnote { font-size: 15px; }
  .collection-index { padding-block: 18px; }
  .collection-index > div { gap: 8px 12px; }
  .reading-card { max-width: 500px; width: calc(100% - 6px); margin: auto; }
  .library-scene { height: 166px; }
  .book { width: 46px; }
  .field-notes { grid-template-columns: 1fr; margin: 8px 0 24px; padding-top: 0; }
  .field-notes > div, .field-notes > div + div { padding: 24px 0; border-left: 0; }
  .field-notes > div + div { border-top: 1px solid var(--line); }
  .site-footer { flex-direction: column; padding: 24px 20px; gap: 10px; }
  .game { margin-top: 24px; padding: 22px; }
  .game-topline { flex-wrap: wrap; gap: 6px 12px; }
  .game-topline .eyebrow { order: 3; flex-basis: 100%; }
  .round-track { margin: 20px 0 26px; }
  .game h1 { font-size: 32px; margin-bottom: 26px; }
  .answer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .feedback-card { padding: 18px; gap: 16px; align-items: flex-start; }
  .feedback-points { font-size: 42px; }
  .feedback-card h2 { font-size: 25px; }
  .game-legend { gap: 12px 16px; }
  .sheet-row { flex-wrap: wrap; gap: 6px 16px; }
  .results { margin-top: 32px; }
  .results h1 { font-size: 42px; }
  #final-score { font-size: 80px; }
  #final-summary { font-size: 20px; }
  .result-row summary { gap: 12px; }
  .studio { padding-top: 32px; }
  .studio h1 { font-size: 44px; }
  .studio-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .pack-library { padding: 20px 16px; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .library-controls { display: grid; grid-template-columns: 1fr; }
  .library-controls select { width: 100%; }
  .editor-controls, .settings-grid { grid-template-columns: 1fr; }
  .pack-settings summary span { display: block; margin: 8px 0 0; }
  .answer-bank-heading { align-items: flex-start; flex-direction: column; }
  .answer-table { min-width: 0; display: block; }
  .answer-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .answer-table tbody { display: block; }
  .answer-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; padding: 18px 12px; margin: 12px 0; background: var(--cream); border: 1px solid var(--line); }
  .answer-table td { display: block; grid-column: 1; border: 0; padding: 0; min-width: 0; }
  .answer-table td::before { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
  .answer-table td:nth-child(1)::before { content: "Accepted answer / note"; }
  .answer-table td:nth-child(2)::before { content: "Rarity tier"; }
  .answer-table td:nth-child(3)::before { content: "Aliases (one per line)"; }
  .answer-table td:last-child { grid-column: 2; grid-row: 1 / 4; }
  .login { margin-top: 36px; }
  .login h1 { font-size: 52px; }
  dialog { padding: 28px 24px; }
}
@media (max-width: 480px) {
  nav { gap: 16px; }
  .answer-box { flex-direction: column; }
  #answer-input { font-size: 20px; }
  .answer-box .button { width: 100%; }
  .card-heading { flex-wrap: wrap; gap: 6px 16px; }
  .reading-details { padding: 20px 18px; }
  .mode-switch button { font-size: 14px; }
  .book { width: 38px; }
  .shelf-caption { font-size: 14px; }
  #help-tiers { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
