:root {
  color-scheme: dark;
  --ink: #e6d9c7;
  --muted: #a09483;
  --line: rgba(221, 203, 177, .16);
  --panel: #292523;
  --panel-soft: #342d29;
  --acid: #d0ad70;
  --orange: #bc725d;
  --bg: #211f1e;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", Inter, system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 18% 0%, rgba(153,112,83,.12), transparent 42%), radial-gradient(ellipse at 85% 22%, rgba(83,105,104,.10), transparent 38%), repeating-linear-gradient(3deg, rgba(255,255,255,.012) 0 1px, transparent 1px 5px);
  background-size: auto, auto, 100% 7px;
  font-family: var(--sans);
}
button { font: inherit; }
.app-shell { width: min(1540px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 60px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.wordmark { color:var(--ink); text-decoration:none; display:flex; align-items:center; gap:11px; font-size:12px; font-weight:700; letter-spacing:.16em; }
.wordmark-mark { width:26px; height:26px; display:grid; place-items:center; border:1px solid var(--acid); color:var(--acid); font:500 11px var(--mono); letter-spacing:-.08em; position:relative; }
.wordmark-mark span { position:absolute; font-size:7px; color:var(--orange); right:3px; top:2px; }
.topbar-meta,.panel-index,.eyebrow,.mini-label,.shop-heading,.note-footer,.stat-label,.stat-unit,.canvas-topline,.canvas-bottomline,.game-caption,.control-item,.footer,.start-facts,.final-score-grid span,.final-rank { font-family:var(--mono); letter-spacing:.08em; }
.topbar-meta { color:var(--muted); font-size:10px; display:flex; align-items:center; gap:11px; }
.live-dot,.tip-dot { width:7px; height:7px; background:var(--acid); border-radius:50%; box-shadow:0 0 11px rgba(211,239,98,.75); }
.topbar-divider { color:#536057; }
.icon-button { color:var(--acid); background:transparent; border:1px solid var(--line); width:34px; height:34px; cursor:pointer; font-size:17px; }
.intro-row { display:flex; justify-content:space-between; align-items:flex-end; padding:31px 0 23px; gap:24px; }
.eyebrow { color:var(--acid); font-size:9px; font-weight:500; margin:0 0 10px; }
h1,h2,p { margin-top:0; }
.panel-heading h2,.overlay-card h2 { font-family:var(--display); font-weight:600; letter-spacing:-.025em; }
h1 { margin-bottom:0; font-family:var(--display); font-size:clamp(39px, 4vw, 58px); line-height:.97; letter-spacing:-.065em; font-weight:600; }
h1 em,.overlay-card h2 em { color:var(--acid); font-style:italic; }
.intro-copy { margin:0 4.2% 5px 0; color:#aab0a3; font-size:13px; line-height:1.55; }
.game-layout { display:grid; grid-template-columns:minmax(0, 1fr) 290px; gap:12px; align-items:stretch; }
.play-column { min-width:0; }
.statbar { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; margin-bottom:7px; }
.stat-card { min-height:64px; padding:9px 12px 8px; background:#202823; border:1px solid var(--line); position:relative; overflow:hidden; }
.stat-label { color:#919a8c; font-size:8px; display:block; margin-bottom:7px; }
.stat-card strong { display:inline-block; font:500 22px/1 var(--mono); letter-spacing:-.07em; }
.stat-unit { color:#7f897c; font-size:8px; margin-left:5px; }
.stat-reputation { border-color:rgba(211,239,98,.24); }
.stat-reputation strong { color:var(--acid); }
.stat-time strong { font-size:22px; color:#e7ad7b; }
.stat-film { border-color:rgba(211,239,98,.2); }
.stat-film strong { color:#d5c58f; font-size:20px; }
.stat-film.film-low strong { color:#e7ad7b; }
.stat-film.film-empty { border-color:rgba(229,139,96,.55); animation:filmPulse 1s ease-in-out infinite alternate; }
.stat-film.film-empty strong { color:#e58b60; }
@keyframes filmPulse { from { background:#202823; } to { background:#34251f; } }
.time-track { position:absolute; height:2px; left:12px; right:12px; bottom:8px; background:#465047; }
.time-track span { display:block; width:100%; height:100%; background:var(--orange); transform-origin:left center; }
.game-frame { width:100%; aspect-ratio:16/9; overflow:hidden; position:relative; background:#6d7667; border:1px solid rgba(221,203,177,.24); box-shadow:0 18px 55px rgba(0,0,0,.24); }
#gameCanvas { display:block; width:100%; height:100%; image-rendering:auto; filter:saturate(.82) contrast(1.04) sepia(.08); }
.canvas-vignette { pointer-events:none; position:absolute; inset:0; background:radial-gradient(ellipse at center, transparent 42%, rgba(25,20,19,.14) 72%, rgba(19,17,17,.42) 100%); mix-blend-mode:multiply; }
.canvas-topline,.canvas-bottomline { z-index:2; position:absolute; left:13px; right:13px; display:flex; justify-content:space-between; color:rgba(247,245,219,.82); font-size:8px; text-shadow:1px 1px #28352c; pointer-events:none; }
.canvas-topline { top:11px; }
.canvas-bottomline { bottom:10px; color:rgba(247,245,219,.7); }
.tiny-square { display:inline-block; width:6px; height:6px; background:var(--acid); margin-right:5px; }
.screen-overlay { z-index:5; position:absolute; inset:0; display:grid; place-items:center; background:rgba(15,21,17,.57); backdrop-filter:blur(2px); padding:22px; }
.screen-overlay.hidden,.hidden { display:none !important; }
.overlay-card { position:relative; width:min(440px,100%); padding:25px 29px 24px; background:rgba(28,38,31,.96); border:1px solid rgba(211,239,98,.37); box-shadow:9px 9px 0 rgba(12,18,14,.32); }
.overlay-card h2 { font-size:clamp(30px,4vw,43px); letter-spacing:-.07em; line-height:.98; margin:0 0 13px; }
.overlay-card p:not(.eyebrow) { color:#b5bdaf; font-size:12px; line-height:1.6; margin-bottom:18px; max-width:365px; }
.start-facts { display:flex; flex-wrap:wrap; gap:8px 15px; color:#8f9b8c; font-size:8px; margin:0 0 18px; }
.start-facts b { color:var(--ink); font-weight:500; margin-right:4px; }
.primary-button { width:100%; min-height:43px; padding:0 15px; display:flex; justify-content:space-between; align-items:center; color:#1b241c; background:var(--acid); border:0; font:500 10px var(--mono); letter-spacing:.08em; cursor:pointer; transition:transform .15s,background .15s; }
.primary-button:hover { background:#e1fa79; transform:translate(-1px,-1px); }
.primary-button span { font-size:17px; }
.overlay-stamp { position:absolute; bottom:26px; right:30px; color:rgba(211,239,98,.6); border:1px solid rgba(211,239,98,.5); border-radius:50%; width:58px; height:58px; display:grid; place-content:center; text-align:center; font:9px/1.1 var(--mono); transform:rotate(-13deg); }
.compact-overlay { width:min(340px,100%); }
.end-card { width:min(470px,100%); }
.final-score-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:18px 0 14px; }
.final-score-grid div { background:#253127; padding:10px; }
.final-score-grid span { display:block; color:#8e9b8b; font-size:7px; margin-bottom:7px; }
.final-score-grid strong { font:500 21px var(--mono); color:var(--acid); }
.final-rank { color:#e5a078; font-size:9px; margin:0 0 17px; }
.toast { position:absolute; z-index:4; left:50%; top:17%; transform:translateX(-50%); padding:9px 14px; background:rgba(24,33,26,.94); border:1px solid rgba(211,239,98,.6); color:var(--acid); font:10px var(--mono); letter-spacing:.04em; white-space:nowrap; box-shadow:0 4px 20px #1118; pointer-events:none; }
.photo-flash { pointer-events:none; position:absolute; inset:0; z-index:3; background:#fff8df; opacity:0; }
.photo-flash.flash { animation:flash .22s ease-out; }
@keyframes flash { 0%{opacity:.9} 100%{opacity:0} }
.mobile-pad { display:none; }
.game-caption { display:flex; justify-content:space-between; color:#737f72; font-size:8px; padding:9px 2px 0; }
.game-caption b { color:#d0ad70; font-weight:500; }
.side-column { display:flex; flex-direction:column; gap:10px; }
.lab-description { margin:0 0 10px; color:#b5a695; font-size:10px; line-height:1.55; }
.lab-stock { display:flex; align-items:center; gap:7px; min-height:24px; color:#b5ad9b; font:8px var(--mono); margin-bottom:8px; }
.stock-dot { width:6px; height:6px; flex:none; border-radius:50%; background:#8b7964; box-shadow:0 0 8px rgba(208,173,112,.3); }
.lab-panel.lab-nearby .stock-dot { background:#d0ad70; box-shadow:0 0 10px rgba(208,173,112,.75); }
.lab-buy { width:100%; min-height:34px; padding:7px 8px; border:1px solid rgba(208,173,112,.52); background:rgba(147,105,76,.15); color:#e0bd84; font:9px var(--mono); letter-spacing:.04em; cursor:pointer; transition:background .15s, color .15s; }
.lab-buy:hover:not(:disabled) { background:#d0ad70; color:#272321; }
.lab-buy:disabled { border-color:rgba(221,203,177,.12); color:#776f65; background:rgba(0,0,0,.08); cursor:not-allowed; }
.lab-footnote { margin:8px 0 0; color:#81776c; font:7px var(--mono); letter-spacing:.07em; }
.side-panel { background:var(--panel); border:1px solid var(--line); padding:14px 15px; }
.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.panel-heading .eyebrow { margin-bottom:5px; }
.panel-heading h2 { font-size:19px; line-height:1; letter-spacing:-.05em; margin:0; font-weight:600; }
.panel-index { font-size:8px; color:#718071; padding-top:3px; }
.equipped-camera { display:flex; align-items:center; gap:12px; padding:9px; background:#2a342c; border:1px solid rgba(211,239,98,.16); margin-bottom:11px; }
.camera-glyph { width:46px; height:31px; border:2px solid #aeb99b; border-radius:4px; position:relative; flex:none; background:#465342; box-shadow:inset 0 0 0 2px #344033; }
.camera-glyph:before { content:""; position:absolute; left:4px; top:-7px; width:14px; height:6px; background:#aeb99b; border-radius:2px 2px 0 0; }
.camera-glyph span { position:absolute; width:17px; height:17px; border:3px solid #d5e0b5; border-radius:50%; left:12px; top:5px; background:#526b61; }
.camera-glyph i { position:absolute; right:4px; top:5px; width:4px; height:4px; background:#e58b60; border-radius:50%; }

/* Миниатюра в фотосумке повторяет выбранную модель камеры. */
.camera-glyph[data-model="box"] { background:#465342; border-color:#aeb99b; }
.camera-glyph[data-model="smena"] { background:#343b38; border-color:#aab09b; border-radius:3px; }
.camera-glyph[data-model="smena"] span { width:13px; height:13px; left:15px; top:7px; border-width:2px; }
.camera-glyph[data-model="fed"] { background:#9a9e91; border-color:#d0cbb5; border-radius:2px; }
.camera-glyph[data-model="fed"] span { width:18px; height:18px; left:15px; top:4px; border-color:#303a36; background:#bac7ae; }
.camera-glyph[data-model="zenit"] { background:#333b35; border-color:#aeb49e; border-radius:3px; }
.camera-glyph[data-model="zenit"]:before { left:15px; top:-9px; width:15px; height:8px; background:#7e8976; border:1px solid #b9c0a5; }
.camera-glyph[data-model="zenit"] span { width:20px; height:20px; left:14px; top:3px; border-color:#c0c6a9; background:#3c5953; }
.camera-glyph[data-model="leica"] { background:#202724; border-color:#b6ad91; border-radius:2px; box-shadow:inset 0 0 0 2px #353e38; }
.camera-glyph[data-model="leica"] span { width:18px; height:18px; left:14px; top:4px; border-color:#c5cdb3; background:#263e3e; }
.camera-glyph[data-model="leica"] i { background:#bf5a45; }

.mini-label { color:#8d9a89; font-size:7px; display:block; margin-bottom:4px; }
.equipped-camera strong { display:block; font-size:11px; margin-bottom:3px; }
.equipped-camera small { display:block; color:#9ba697; font:8px var(--mono); }
.shop-heading { display:flex; justify-content:space-between; color:#859283; font-size:8px; padding-bottom:7px; border-bottom:1px solid var(--line); }
.camera-shop { display:flex; flex-direction:column; }
.camera-row { display:grid; grid-template-columns:1fr auto; align-items:center; gap:6px; padding:7px 1px; border-bottom:1px solid rgba(233,229,215,.08); }
.camera-row:last-child { border-bottom:0; }
.camera-row strong { display:block; font-size:10px; font-weight:600; margin-bottom:3px; }
.camera-row small { display:block; color:#899486; font:8px var(--mono); }
.camera-row .leica-name { color:#d5a77c; }
.camera-buy { min-width:70px; padding:7px 8px; border:1px solid rgba(211,239,98,.4); background:transparent; color:var(--acid); font:9px var(--mono); cursor:pointer; }
.camera-buy:hover:not(:disabled) { background:var(--acid); color:#1c251d; }
.camera-buy:disabled { border-color:rgba(233,229,215,.1); color:#687468; cursor:not-allowed; }
.camera-buy.owned { color:#9eaa98; border-color:rgba(233,229,215,.15); }
.shop-note { margin:10px 0 0; color:#7f8a7c; font-size:9px; line-height:1.45; }
.field-notes { flex:1; }
.note-row { display:flex; gap:10px; margin:14px 0; }
.note-symbol { color:#d0ad70; font-size:17px; line-height:1; width:20px; text-align:center; }
.note-row strong { display:block; font-size:10px; margin:0 0 4px; }
.note-row p { margin:0; color:#929d8e; font-size:9px; line-height:1.45; }
.note-footer { display:flex; justify-content:space-between; border-top:1px solid var(--line); padding-top:10px; margin-top:15px; color:#788575; font-size:7px; }
.controls-strip { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; margin:14px 0 20px; padding:11px 14px; border:1px solid var(--line); background:rgba(32,40,35,.58); }
.control-item { display:flex; align-items:center; gap:5px; color:#9da697; font-size:8px; }
kbd { display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 4px; color:#dce4d0; background:#303b32; border:1px solid #4b584b; font:9px var(--mono); }
.control-item span { margin-left:4px; }
.control-tip { color:#b5c29f; }
.tip-dot { width:5px; height:5px; }
.footer { min-height:44px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; color:#687368; font-size:8px; }
@media (max-width:1100px) {
  .app-shell { width:min(100% - 38px, 950px); }
  .game-layout { grid-template-columns:minmax(0,1fr) 270px; gap:10px; }
  .side-panel { padding:12px; }
  .stat-card { padding-left:10px; padding-right:10px; }
  .stat-card strong { font-size:21px; }
}
@media (max-width:820px) {
  .app-shell { width:calc(100% - 28px); }
  .intro-row { padding-top:28px; }
  .game-layout { grid-template-columns:1fr; }
  .side-column { display:grid; grid-template-columns:1fr 1fr; align-items:start; }
  .camera-panel { grid-row:span 2; }
  .statbar { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .stat-card { min-height:66px; padding:9px; }
  .stat-card strong { font-size:19px; }
  .stat-label { font-size:7px; }
  .controls-strip { gap:12px 20px; }
}
@media (max-width:560px) {
  .app-shell { width:calc(100% - 20px); }
  .topbar { height:58px; }
  .topbar-meta { font-size:7px; gap:6px; }
  .wordmark { font-size:10px; }
  .wordmark-mark { width:25px; height:25px; }
  .intro-row { padding:25px 0 20px; display:block; }
  h1 { font-size:40px; }
  .intro-copy { display:none; }
  .statbar { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .stat-card { min-height:60px; padding:8px 6px; }
  .stat-card strong { font-size:15px; }
  .stat-film strong { font-size:14px; }
  .stat-label { font-size:6px; margin-bottom:7px; }
  .stat-unit { font-size:6px; margin-left:2px; }
  .time-track { left:7px; right:7px; bottom:8px; }
  .canvas-topline,.canvas-bottomline { font-size:6px; left:7px; right:7px; }
  .canvas-topline { top:6px; }
  .canvas-bottomline { bottom:6px; }
  .screen-overlay { padding:12px; }
  .overlay-card { padding:19px 18px; }
  .overlay-card h2 { font-size:30px; }
  .overlay-card p:not(.eyebrow) { font-size:10px; margin-bottom:12px; }
  .start-facts { font-size:7px; gap:6px 10px; }
  .overlay-stamp { display:none; }
  .toast { font-size:8px; max-width:90%; white-space:normal; text-align:center; }
  .mobile-pad { display:flex; position:absolute; z-index:4; bottom:23px; left:14px; align-items:flex-end; gap:9px; opacity:.87; }
  .mobile-pad > div { display:grid; grid-template-columns:repeat(3,30px); grid-template-rows:30px 30px; gap:3px; }
  .mobile-pad > button:first-child { position:absolute; left:33px; bottom:66px; }
  .mobile-pad > div button:nth-child(1) { grid-column:1; grid-row:2; }
  .mobile-pad > div button:nth-child(2) { grid-column:2; grid-row:2; }
  .mobile-pad > div button:nth-child(3) { grid-column:3; grid-row:2; }
  .mobile-pad button { width:30px; height:30px; border:1px solid #d3ef6280; color:#e9efda; background:#1b281dcc; font:15px var(--mono); touch-action:none; }
  .mobile-pad .mobile-shutter { width:47px; height:47px; margin-left:7px; border-radius:50%; color:#202823; background:var(--acid); border:4px double #263427; font-size:17px; }
  .side-column { grid-template-columns:1fr; }
  .camera-panel { grid-row:auto; }
  .field-notes { display:none; }
  .controls-strip { margin-top:13px; padding:10px; gap:10px 15px; }
  .control-item { font-size:7px; }
  .control-item kbd { min-width:17px; height:17px; }
  .control-tip { display:none; }
  .footer { font-size:6px; }
  .footer span:nth-child(2) { display:none; }
  .game-caption { font-size:6px; }
}


/* STREETFRAME 0.6.0 — фотографический интерфейс и новая атмосферная палитра */
#gameCanvas { cursor: crosshair; touch-action: pan-y; filter: saturate(.76) contrast(1.08) sepia(.13); }
.game-frame { border-color: rgba(210,184,145,.38); background:#706a5f; }
.canvas-vignette { background:radial-gradient(ellipse at center, transparent 34%, rgba(35,28,25,.18) 72%, rgba(19,17,17,.48) 100%); }
.field-notes { max-height: 480px; overflow:auto; scrollbar-color:#766b5b transparent; }
.note-row p { color:#b0a18d; }
.controls-strip { background:linear-gradient(100deg,rgba(49,43,38,.85),rgba(40,49,48,.72)); border-color:rgba(199,172,133,.25); }
.game-caption b { color:#c99c71; }
@media (max-width:560px) {
  .field-notes { max-height:none; }
  .controls-strip { justify-content:flex-start; }
}


/* STREETFRAME 0.7.0 — проявка, фотоальбом и расширенные районы */
.lab-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.lab-actions .lab-buy { min-height:38px; font-size:8px; padding:6px; }
.roll-status { margin:2px 0 9px; color:#d5c7aa; font:7px var(--mono); letter-spacing:.04em; }
.album-panel { max-height:430px; overflow:auto; scrollbar-color:#766b5b transparent; }
.album-intro { margin:0 0 10px; color:#a99b87; font-size:9px; line-height:1.5; }
.album-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.album-empty { grid-column:1/-1; margin:0; padding:13px 10px; border:1px dashed rgba(199,172,133,.25); color:#8d8779; font-size:9px; line-height:1.5; }
.album-photo { min-width:0; padding:6px; border:1px solid rgba(199,172,133,.18); background:rgba(31,35,32,.65); }
.album-photo.is-selected { border-color:#d0ad70; background:rgba(147,105,76,.18); }
.album-photo img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#49443c; filter:saturate(.78) sepia(.12); }
.album-photo-meta { padding:6px 1px 5px; }
.album-photo-meta strong { display:block; color:#e0d1b5; font:600 9px var(--sans); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.album-photo-meta small { display:block; margin-top:3px; color:#8f9385; font:6px var(--mono); line-height:1.4; }
.album-select { width:100%; min-height:25px; border:1px solid rgba(199,172,133,.34); color:#cdbb9c; background:transparent; font:7px var(--mono); cursor:pointer; }
.album-select:hover { background:#b18a62; color:#272321; }
#gameCanvas { cursor:crosshair; }
@media (max-width:820px) { .album-panel { max-height:none; } }
@media (max-width:560px) {
  .lab-actions { grid-template-columns:1fr 1fr; }
  .album-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .album-photo-meta strong { font-size:8px; }
}


/* STREETFRAME 0.8.0 — touch-first mobile controls */
#gameCanvas { touch-action:none; -webkit-user-select:none; user-select:none; }
.mobile-pad { display:none; }
.mobile-actions { display:flex; align-items:center; gap:9px; }
.mobile-action { width:42px; height:42px; border:1px solid rgba(211,239,98,.65); color:#e9efda; background:#1b281de8; font: bold 15px var(--mono); touch-action:none; border-radius:50%; }
@media (pointer:coarse), (max-width:820px) {
  .app-shell { width:100%; padding-left:8px; padding-right:8px; }
  .intro-row { padding-top:14px; padding-bottom:12px; }
  .intro-row h1 { font-size:clamp(28px,6vw,42px); }
  .game-layout { display:block; }
  .game-column { width:100%; }
  .side-column, .controls-strip, .footer { display:none !important; }
  .game-frame { width:100%; height:min(66svh, calc(100vw * .72)); min-height:260px; overflow:hidden; position:relative; }
  #gameCanvas { display:block; width:100%; height:100%; object-fit:fill; }
  .canvas-topline { top:5px; left:7px; right:7px; font-size:7px; }
  .canvas-bottomline { bottom:5px; left:7px; right:7px; font-size:7px; }
  .mobile-pad { display:flex; position:absolute; z-index:8; bottom:12px; left:10px; align-items:flex-end; gap:10px; opacity:.96; touch-action:none; }
  .mobile-pad > div { display:grid; grid-template-columns:repeat(3,38px); grid-template-rows:38px 38px; gap:3px; }
  .mobile-pad > button:first-child { position:absolute; left:41px; bottom:82px; }
  .mobile-pad > div button:nth-child(1) { grid-column:1; grid-row:2; }
  .mobile-pad > div button:nth-child(2) { grid-column:2; grid-row:2; }
  .mobile-pad > div button:nth-child(3) { grid-column:3; grid-row:2; }
  .mobile-pad button { width:38px; height:38px; border:1px solid #d3ef6280; color:#e9efda; background:#1b281de8; font:16px var(--mono); touch-action:none; border-radius:8px; }
  .mobile-actions { position:absolute; z-index:9; right:12px; bottom:16px; display:flex; align-items:center; gap:8px; }
  .mobile-actions .mobile-shutter { width:58px; height:58px; border-radius:50%; color:#202823; background:var(--acid); border:4px double #263427; font-size:21px; touch-action:none; }
  .mobile-action { width:44px; height:44px; }
  .game-caption { display:none; }
  .screen-overlay { padding:10px; }
  .overlay-card { max-height:90%; overflow:auto; }
}
@media (orientation:landscape) and (pointer:coarse) {
  .topbar, .intro-row { display:none; }
  .app-shell { padding-top:4px; }
  .game-frame { height:calc(100svh - 12px); min-height:0; }
}
@media (max-width:480px) and (orientation:portrait) {
  .game-frame { height:62svh; min-height:300px; }
  .statbar { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .stat-card { min-height:52px; }
  .canvas-topline, .canvas-bottomline { letter-spacing:0; }
}
