:root {
  color-scheme: light;
  --paper: #e7e8e6;
  --card: #f2f3f0;
  --ink: #222321;
  --muted: #595b57;
  --line: #b6b9b5;
  --accent: #222321;
  --green: #303d35;
  --danger: #762f2b;
  --display-font: ui-serif, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --paper-grain: url("./paper-texture.svg");
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; min-height: 0; margin: 0; overflow: hidden; overscroll-behavior: none; background-color: var(--paper); }
body { position: relative; isolation: isolate; height: 100dvh; padding: 0; }
body::before { position: fixed; z-index: 0; inset: 0; background-image: radial-gradient(ellipse at 18% 12%, rgba(255,255,255,.34), transparent 58%), radial-gradient(ellipse at 82% 86%, rgba(52,55,52,.06), transparent 62%); background-size: 100% 100%, 100% 100%; content: ""; opacity: .92; pointer-events: none; }
body::after { position: fixed; z-index: 0; inset: 0; background: var(--paper-grain) repeat; background-size: 512px 512px; content: ""; opacity: .14; mix-blend-mode: multiply; pointer-events: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
.app-shell { position: relative; z-index: 1; display: flex; height: 100dvh; min-height: 0; flex-direction: column; overflow: hidden; padding: var(--safe-top) 26px calc(92px + var(--safe-bottom)); }
.app-shell.is-covered { visibility: hidden; opacity: 0; pointer-events: none; }
.app-shell.is-revealing { visibility: visible; opacity: 1; }
.app-shell.is-playing { visibility: visible; opacity: 1; }
.app-shell.is-concealing { visibility: visible; animation: app-conceal 900ms ease-in both; }
.topbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 18px; width: 100%; max-width: 1100px; min-height: 78px; margin: 0 auto; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: 0 0 auto; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); border-radius: 2px; color: var(--accent); font: 400 24px/1 var(--display-font); }
.eyebrow { display: block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.brand-name { display: grid; gap: 3px; }
.brand strong { display: block; font: 700 23px/1.1 var(--display-font); }
.brand-name small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.settings { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.topbar .stats { align-items: center; gap: 18px; margin-left: auto; }
.setting-button, .new-game-button { min-height: 38px; padding: 7px 11px; border: 1px solid var(--ink); border-radius: 2px; background: var(--card); font-size: 12px; white-space: nowrap; }
.setting-button b { margin-left: 7px; color: var(--muted); }
.new-game-button { background: var(--ink); color: var(--card); }
.game-shell { display: flex; width: 100%; max-width: 1000px; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; margin: 0 auto; padding-top: 22px; }
.stats { display: flex; align-items: center; gap: 22px; }
.stat { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.stat strong { color: var(--green); font-size: 15px; font-weight: 800; white-space: nowrap; }
.clue-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; margin-bottom: 10px; padding: 12px 2px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(251,249,241,.58); box-shadow: none; }
.clue-list { display: grid; flex: 1; min-width: 0; gap: 8px; }
.clue-item + .clue-item { padding-top: 8px; border-top: 1px solid var(--line); }
.clue-label { color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.clue-text { margin: 3px 0 0; color: var(--ink); font: 500 17px/1.4 var(--display-font); overflow-wrap: anywhere; }
.direction-button { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font-size: 16px; }
.direction-button[hidden] { display: none; }
.board-viewport { position: relative; min-height: 0; flex: 1 1 auto; overflow: hidden; touch-action: none; user-select: none; cursor: grab; }
.board-viewport:active { cursor: grabbing; }
.board-plane { position: absolute; top: 50%; left: 50%; transform-origin: center; transition: none; }
.board-cell { position: absolute; display: grid; width: var(--cell-size); height: var(--cell-size); place-items: center; padding: 0; border: 1px solid #8c877b; border-radius: 1px; background: var(--card); color: var(--ink); font: 500 clamp(18px, 3vw, 24px)/1 var(--display-font); text-align: center; }
.board-tile:hover { border-color: var(--ink); }
.board-cell.is-active-word { background: #e4e6e3; }
.board-cell.is-crossing { box-shadow: inset 0 0 0 1px rgba(40,39,32,.42); }
.board-cell.is-selected { z-index: 2; border: 2px solid var(--accent); }
.board-cell.is-locked, .board-cell.is-solved { background: #e5e2d9; color: var(--ink); }
.board-cell.is-wrong { color: var(--danger); background: #ece6e5; border-color: var(--danger); }
.board-input { appearance: none; outline: 0; user-select: text; touch-action: manipulation; caret-color: var(--accent); }
.board-input:focus { z-index: 3; border: 2px solid var(--accent); box-shadow: 0 0 0 1px var(--card); }
.bottom-bar { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 10px max(26px, calc((100vw - 1000px) / 2)) calc(10px + var(--safe-bottom)); border-top: 3px double var(--ink); background: var(--paper); }
.bottom-bar span { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.4; }
.submit-button { min-width: 150px; min-height: 46px; padding: 10px 20px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: #fffaf2; font-size: 14px; font-weight: 800; }
.submit-button:disabled { opacity: .5; cursor: not-allowed; }
.toast { position: fixed; z-index: 12; bottom: calc(88px + var(--safe-bottom)); left: 50%; max-width: calc(100vw - 32px); padding: 10px 16px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--card); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.overlay { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(40,39,32,.56); }
.overlay[hidden] { display: none; }
.language-overlay { z-index: 30; }
.end-card { width: min(460px, 100%); padding: 30px; border: 1px solid var(--ink); border-top: 4px double var(--ink); border-radius: 2px; background: var(--card); text-align: center; box-shadow: 0 12px 36px rgba(20,20,16,.16); }
.end-card h2 { margin: 12px 0 8px; font: 700 34px/1.1 var(--display-font); }
.end-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.end-score { margin: 20px 0; padding: 20px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); font: 700 24px/1.2 var(--display-font); }
.end-card .submit-button { width: 100%; }
.language-card { width: min(440px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 22px 24px; border: 1px solid var(--ink); border-top: 4px double var(--ink); border-radius: 2px; background: var(--card); box-shadow: 0 12px 36px rgba(20,20,16,.16); }
.language-card h2 { margin: 7px 0 5px; font: 700 27px/1.12 var(--display-font); }
.language-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.language-field { margin-top: 13px; }
.language-field-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 7px; }
.language-option { display: grid; min-height: 70px; align-content: center; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); text-align: left; }
.language-option[aria-pressed="true"] { border: 2px solid var(--accent); background: #e4e6e3; }
.language-option strong { font: 700 18px/1.1 var(--display-font); }
.language-option span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.language-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 13px; }
.cancel-language { padding: 9px 10px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.start-run-button { min-height: 40px; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--card); font-size: 13px; font-weight: 800; }
.language-card button:focus-visible { outline: 3px solid rgba(40,39,32,.32); outline-offset: 2px; }
.account-overlay { z-index: 40; }
.leaderboard-overlay { z-index: 41; }
.account-card, .leaderboard-card { width: min(460px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 26px; border: 1px solid var(--ink); border-top: 4px double var(--ink); border-radius: 2px; background: var(--card); box-shadow: 0 12px 36px rgba(20,20,16,.16); }
.account-card h2, .leaderboard-card h2 { margin: 8px 0; font: 700 27px/1.12 var(--display-font); }
.account-card > p, .account-profile > p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.account-form { display: grid; gap: 8px; margin-top: 16px; }
.account-form label { color: var(--muted); font-size: 12px; font-weight: 700; }
.account-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 2px; background: #fbfaf6; color: var(--ink); }
.account-form input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.account-form button { margin-top: 4px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-status { min-height: 1.4em; margin: 12px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.history-list, .leaderboard-list { display: grid; gap: 7px; margin: 12px 0; padding-left: 25px; }
.history-list li { padding-left: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.leaderboard-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 8px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.leaderboard-list li > b { grid-row: span 2; align-self: center; font: 700 18px/1 var(--display-font); }
.leaderboard-list li > span { font-weight: 700; }
.leaderboard-list li > strong { color: var(--muted); font-size: 11px; }
.account-card button:focus-visible, .leaderboard-card button:focus-visible { outline: 3px solid rgba(40,39,32,.32); outline-offset: 2px; }

.newspaper-opening { --cover-scale: .74; position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 16px; perspective: 1400px; background: rgba(34,35,33,.04); }
.newspaper-opening[hidden] { display: none; }
.newspaper-opening.is-zooming { z-index: 0; padding: 16px; background: transparent; pointer-events: none; }
.newspaper-opening.is-settled { z-index: 0; padding: 16px; background: transparent; pointer-events: none; }
.newspaper-opening.is-closing { z-index: 20; padding: 16px; background: rgba(34,35,33,.04); }
.opening-sheet { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px; width: min(1280px, calc(100vw - 32px)); height: min(920px, calc(100dvh - 32px)); padding: clamp(20px, 3vw, 34px); overflow: hidden; border: 1px solid #999d99; background-color: var(--paper); background-image: radial-gradient(ellipse at 18% 12%, rgba(255,255,255,.3), transparent 58%), radial-gradient(ellipse at 82% 86%, rgba(52,55,52,.05), transparent 62%); background-repeat: no-repeat, no-repeat; background-size: 100% 100%, 100% 100%; box-shadow: 0 22px 70px rgba(24,25,23,.22); transform: scale(.74); transform-style: preserve-3d; }
.opening-sheet::after { position: absolute; z-index: 0; inset: 0; background: var(--paper-grain) repeat; background-size: 512px 512px; content: ""; opacity: .2; mix-blend-mode: multiply; pointer-events: none; }
.is-settled .opening-sheet { transform: none; }
.opening-sheet > * { position: relative; z-index: 1; }
.opening-masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0 11px; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
.opening-brand { display: flex; min-width: 0; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.opening-brand-mark { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--ink); border-radius: 2px; font: 400 24px/1 var(--display-font); }
.opening-brand-name { display: grid; gap: 5px; }
.opening-masthead small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.opening-brand-name strong { font: 700 clamp(28px, 4vw, 46px)/1 var(--display-font); letter-spacing: .04em; }
.opening-masthead-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.opening-date { text-align: right; }
.opening-grid { display: grid; min-height: 0; grid-template-columns: 1fr 1.15fr .82fr; grid-template-rows: 1fr 1fr; gap: 13px; }
.opening-story { min-width: 0; overflow: hidden; padding: 10px 8px 6px 0; border-top: 1px solid #77746b; }
.opening-lead { grid-area: 1 / 1 / 3 / 2; }
.opening-crossword { grid-area: 1 / 2 / 2 / 3; display: grid; align-content: center; justify-items: center; gap: 13px; min-width: 0; padding: 14px; border: 1px solid #777b76; background: rgba(242,243,240,.86); }
.opening-side { grid-area: 1 / 3 / 2 / 4; }
.opening-brief { grid-area: 2 / 2 / 3 / 3; }
.opening-foot { grid-area: 2 / 3 / 3 / 4; }
.opening-section-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.opening-headline { display: grid; gap: 7px; margin-bottom: 14px; }
.opening-headline i, .opening-lines i { display: block; height: 5px; background: #3e3d37; opacity: .74; }
.opening-headline i:first-child { height: 10px; width: 89%; }
.opening-headline i:nth-child(2) { width: 68%; }
.opening-headline i:nth-child(3) { width: 78%; }
.opening-lines { display: grid; gap: 6px; }
.opening-lines i { height: 3px; background: #77746b; opacity: .5; }
.opening-lines i:nth-child(3n) { width: 82%; }
.opening-lines i:last-child { width: 55%; }
.opening-photo { height: 38%; min-height: 52px; margin-top: 12px; border: 1px solid #77746b; background: repeating-linear-gradient(135deg, #d4d0c4 0 2px, #ece9df 2px 5px); filter: grayscale(1); }
.opening-crossword-heading { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.opening-crossword-heading span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.opening-crossword-heading b { font: 700 15px/1.1 var(--display-font); }
.opening-mini-grid { display: grid; grid-template-columns: repeat(5, clamp(16px, 2.5vw, 23px)); grid-auto-rows: clamp(16px, 2.5vw, 23px); gap: 2px; padding: 4px; background: var(--ink); }
.opening-mini-grid i { display: block; background: #f2f3f0; }
.opening-mini-grid i:nth-child(3n + 1), .opening-mini-grid i:nth-child(8), .opening-mini-grid i:nth-child(19) { background: #555752; }
.opening-crossword > p { max-width: 30ch; margin: 0; color: var(--muted); font: 400 13px/1.5 var(--display-font); text-align: center; }
.opening-crossword > button { min-width: 170px; min-height: 50px; padding: 9px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--card); font: 700 20px/1 var(--display-font); letter-spacing: .04em; }
.opening-crossword > button:focus-visible, .opening-masthead-tools button:focus-visible { outline: 3px solid #62645f; outline-offset: 3px; }
.newspaper-opening.is-cover .opening-sheet { transform: scale(var(--cover-scale)); }
.newspaper-opening.is-cover.is-intro { animation: opening-wash 1250ms ease-out both; }
.is-intro .opening-sheet { animation: newspaper-approach 1250ms cubic-bezier(.2,.72,.18,1) both; }
.is-intro .opening-crossword { animation: crossword-found 1250ms ease-out both; }
.is-zooming .opening-sheet { animation: newspaper-zoom 900ms cubic-bezier(.2,.72,.18,1) both; }
.is-zooming .opening-masthead { animation: masthead-handoff 900ms ease-in both; }
.is-zooming .opening-grid { animation: newspaper-print-handoff 900ms ease-out both; }
.is-zooming .opening-crossword { animation: crossword-handoff 900ms ease-in both; }
.app-shell.is-revealing .topbar { animation: game-header-arrive 900ms ease-out both; }
.app-shell.is-revealing .clue-panel { animation: clue-panel-arrive 900ms ease-out both; }
.app-shell.is-revealing .board-viewport { animation: game-board-arrive 900ms cubic-bezier(.2,.72,.18,1) both; transform-origin: center center; }
.app-shell.is-revealing .bottom-bar { animation: game-footer-arrive 900ms ease-out both; }
.is-closing .opening-sheet { animation: newspaper-fold-close 900ms cubic-bezier(.2,.72,.18,1) both; }
.is-closing .opening-masthead { animation: cover-detail-return 900ms ease-out both; }
.is-closing .opening-grid { animation: newspaper-print-return 900ms ease-out both; }
.is-closing .opening-crossword { animation: crossword-return 900ms ease-out both; }
.newspaper-opening.is-settled .opening-crossword { visibility: hidden; }
.newspaper-opening.is-settled .opening-masthead { visibility: hidden; }
.newspaper-opening.is-settled .opening-grid { opacity: .08; }
@keyframes opening-wash { 0%, 8% { background-color: rgba(34,35,33,0); } 40%, 78% { background-color: rgba(34,35,33,.1); } 100% { background-color: rgba(34,35,33,.04); } }
@keyframes newspaper-approach { 0% { opacity: 0; filter: blur(7px); transform: translate3d(0, 18vh, -900px) rotateX(22deg) scale(.34); } 42% { opacity: 1; filter: blur(1px); } 76% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) rotateX(0) scale(calc(var(--cover-scale) + .05)); } 88% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0) scale(var(--cover-scale)); } 100% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0) scale(var(--cover-scale)); } }
@keyframes newspaper-zoom { 0% { filter: blur(0); transform: scale(var(--cover-scale)); } 72% { filter: blur(0); transform: scale(1.025); } 100% { filter: blur(0); transform: scale(1); } }
@keyframes crossword-found { 0%, 44% { background-color: rgba(242,243,240,.86); box-shadow: none; transform: scale(.97); } 68%, 83% { background-color: #f7f8f5; box-shadow: 0 0 0 2px var(--ink), 0 8px 24px rgba(24,25,23,.16); transform: scale(1.035); } 100% { background-color: #f7f8f5; box-shadow: 0 0 0 1px var(--ink); transform: scale(1); } }
@keyframes masthead-handoff { 0%, 72% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes newspaper-print-handoff { 0%, 20% { opacity: 1; } 100% { opacity: .08; } }
@keyframes crossword-handoff { 0%, 28% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes game-header-arrive { 0%, 72% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes clue-panel-arrive { 0%, 62% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes game-board-arrive { 0%, 22% { opacity: 0; transform: translate(var(--board-handoff-x, 0px), var(--board-handoff-y, 0px)) scale(var(--board-handoff-scale, .45)); } 100% { opacity: 1; transform: translate(0, 0) scale(1); } }
@keyframes game-footer-arrive { 0%, 72% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes app-conceal { to { opacity: 0; visibility: hidden; } }
@keyframes newspaper-fold-close { 0% { filter: blur(0); transform: scale(1); } 62% { filter: blur(0); transform: scale(.88) rotateX(2deg); } 100% { filter: blur(.25px); transform: scale(var(--cover-scale)); } }
@keyframes cover-detail-return { 0%, 72% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes newspaper-print-return { 0% { opacity: .16; } 100% { opacity: 1; } }
@keyframes crossword-return { 0%, 50% { opacity: 0; transform: scale(.8); } 100% { opacity: 1; transform: scale(1); } }

@media (max-width: 700px) {
  .app-shell { padding-right: 16px; padding-left: 16px; }
  .topbar { min-height: 70px; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 10px 0; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  .brand strong { font-size: 20px; }
  .brand-name small { font-size: 8px; }
  .settings { gap: 5px; }
  .topbar .stats { gap: 12px; }
  .settings { order: 3; flex: 1 0 100%; width: 100%; }
  .setting-button, .new-game-button { min-height: 34px; padding: 6px 8px; font-size: 10px; }
  .game-shell { padding-top: 12px; }
  .stats { gap: 12px; }
  .stat { gap: 4px; font-size: 9px; }
  .stat strong { font-size: 13px; }
  .clue-panel { min-height: 67px; padding: 10px 12px; }
  .clue-text { font-size: 14px; }
  .bottom-bar { min-height: 66px; padding-right: 16px; padding-left: 16px; }
  .bottom-bar span { font-size: 10px; }
  .submit-button { min-width: 132px; min-height: 43px; padding: 8px 12px; font-size: 13px; }
  .language-card { padding: 20px; }
  .language-card h2 { font-size: 24px; }
  .language-options { gap: 7px; }
  .language-option { min-height: 66px; padding: 9px; }
  .language-option strong { font-size: 17px; }
  .newspaper-opening { --cover-scale: .82; padding: 12px; }
  .newspaper-opening.is-zooming, .newspaper-opening.is-settled { padding: 12px; }
  .opening-sheet { width: calc(100vw - 24px); height: min(920px, calc(100dvh - 24px)); padding: 18px; gap: 10px; }
  .opening-grid { gap: 9px; }
  .opening-story { padding: 8px 5px 4px 0; }
  .opening-section-label { margin-bottom: 7px; }
  .opening-headline { gap: 6px; margin-bottom: 10px; }
  .opening-headline i:first-child { height: 8px; }
  .opening-photo { min-height: 42px; }
  .opening-crossword { gap: 9px; padding: 10px; }
  .opening-brand-mark { width: 34px; height: 34px; font-size: 20px; }
  .opening-brand { gap: 8px; }
  .opening-brand-name { gap: 4px; }
  .opening-brand-name strong { font-size: clamp(24px, 7vw, 34px); }
  .opening-masthead-tools { gap: 7px; }
  .opening-masthead-tools .setting-button { min-height: 32px; padding: 5px 8px; font-size: 10px; }
  .opening-date { max-width: 110px; font-size: 7px !important; line-height: 1.3; }
  .opening-crossword { gap: 8px; padding: 9px; }
  .opening-crossword > p { font-size: 10px; }
  .opening-crossword > button { min-width: 138px; min-height: 42px; padding: 7px 10px; font-size: 17px; }
}

@media (max-width: 420px) {
  .topbar { align-items: center; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand strong { font-size: 18px; }
  .brand-name small { font-size: 7px; }
  .settings { max-width: none; }
  .new-game-button { width: auto; min-height: 34px; padding: 6px 8px; }
  .setting-button { flex: 0 0 auto; }
  .topbar .stats { gap: 8px; }
  .stats { gap: 8px; }
  .stat { gap: 3px; font-size: 8px; }
  .stat strong { font-size: 11px; }
  .clue-text { font-size: 13px; }
  .bottom-bar span { line-height: 1.3; }
  .opening-sheet { height: min(920px, calc(100dvh - 24px)); padding: 14px; }
  .opening-masthead { gap: 8px; }
  .opening-brand-name strong { font-size: clamp(21px, 6vw, 28px); }
  .opening-masthead-tools { flex-direction: column-reverse; align-items: end; gap: 4px; }
  .opening-grid { grid-template-columns: 1fr 1fr; grid-template-rows: .8fr 1.2fr .8fr; }
  .opening-lead { grid-area: 1 / 1 / 2 / 3; }
  .opening-crossword { grid-area: 2 / 1 / 3 / 2; }
  .opening-side { grid-area: 2 / 2 / 3 / 3; }
  .opening-brief { grid-area: 3 / 1 / 4 / 2; }
  .opening-foot { grid-area: 3 / 2 / 4 / 3; }
  .opening-photo { min-height: 24px; }
  .opening-mini-grid { grid-template-columns: repeat(5, 16px); grid-auto-rows: 16px; }
}

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