:root {
  color-scheme: dark;
  --navy: #1c282f;
  --panel: #29363c;
  --line: #53605e;
  --ink: #263237;
  --paper: #f0e1c2;
  --paper-light: #faedcf;
  --paper-rule: #b79f79;
  --stamp: #963d37;
  --stamp-deep: #763029;
  --gold: #edbb7e;
  --gold-hot: #ffdda0;
  --display: "Franklin Gothic Heavy", "Arial Black", system-ui, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --mono: ui-monospace, Consolas, "Liberation Mono", monospace;
  font-family: system-ui, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background: var(--navy);
  color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100vh; }
button { color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid var(--gold-hot); outline-offset: 4px; }

.arcade { width: min(100%, 1376px); margin-inline: auto; padding: clamp(14px, 3.3vh, 38px) clamp(14px, 4.4vw, 63px); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 12px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.utilities, .utility { display: flex; align-items: center; }
.brand-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #c27d64; background: var(--stamp); color: var(--paper-light); }
.utilities { gap: 5px; }
.utility { height: 38px; min-width: 42px; justify-content: center; padding: 0 10px; border: 1px solid transparent; border-radius: 2px; background: var(--navy); color: var(--paper); font-weight: 700; font-size: .875rem; }
.language-toggle { font: 800 .8rem/1 var(--mono); border-color: var(--line); }
.help-toggle { font-weight: 900; font-size: 1.05rem; }
.utility:hover { background: var(--panel); border-color: #a29276; }
.utility[aria-pressed="false"] .sound-icon { opacity: .58; }
.utility[aria-pressed="false"] .sound-icon::after { height: 1px; width: 13px; background: currentColor; border: 0; top: 7px; left: 5px; transform: rotate(52deg); }
.sound-icon { width: 19px; height: 16px; position: relative; }
.sound-icon i { position: absolute; inset: 2px auto 2px 0; width: 12px; background: currentColor; clip-path: polygon(0 31%, 29% 31%, 81% 0, 81% 100%, 29% 69%, 0 69%); }
.sound-icon::after { content: ""; position: absolute; right: 0; top: 2px; height: 12px; width: 7px; border-right: 2px solid; border-radius: 50%; }
.fullscreen-icon { width: 14px; height: 14px; border: 2px solid; position: relative; }
.fullscreen-icon::before, .fullscreen-icon::after { content: ""; position: absolute; background: var(--navy); }
.fullscreen-icon::before { inset: -2px 3px; }
.fullscreen-icon::after { inset: 3px -2px; }
.utility:hover .fullscreen-icon::before, .utility:hover .fullscreen-icon::after { background: var(--panel); }
.pause-icon { height: 14px; width: 11px; border-inline: 3px solid; }

.cabinet { position: relative; overflow: hidden; border: 1px solid #667271; border-radius: 2px; background: var(--navy); }
.screen { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; max-height: calc(100svh - 144px); min-height: 330px; background: #222831; }
canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.intro, .cover, .cover img, .intro-shade, .hud, .overlay { position: absolute; inset: 0; }
.intro { isolation: isolate; display: flex; align-items: center; }
.cover { z-index: -2; display: block; background: #28252c; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.intro-shade { z-index: -1; background: #151d2217; }
.intro-copy {
  width: min(49%, 535px);
  margin-inline-start: clamp(21px, 5.3vw, 72px);
  padding: clamp(19px, 2.55vw, 36px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #fcecd0;
  border-inline-start: 7px solid var(--stamp);
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--stamp-deep); font: 800 .82rem/1.25 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow span { width: 15px; height: 2px; background: currentColor; flex: none; }
h1 { margin: 0; font: 950 clamp(2.6rem, 5.35vw, 5.15rem)/1.015 var(--display); letter-spacing: -.045em; }
h1 em { color: var(--stamp); font-style: normal; }
.synopsis { margin: 16px 0 0; max-width: 30em; color: #465055; font-size: clamp(.96rem, 1.42vw, 1.115rem); line-height: 1.5; text-wrap: pretty; }
.intro-actions, .dialog-actions { display: flex; align-items: center; gap: 9px; margin-top: 20px; }
.intro-actions { flex-wrap: wrap; padding-top: 15px; border-top: 1px dashed var(--paper-rule); }
:lang(ru) h1 { font-size: clamp(2.1rem, 4.35vw, 4.35rem); line-height: .98; letter-spacing: -.048em; text-transform: uppercase; }
.button { min-height: 47px; padding: 0 18px; border: 1px solid transparent; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 820; line-height: 1.2; white-space: nowrap; transition: background .12s, border-color .12s, transform .12s; }
.button:active { transform: translateY(1px); }
.primary { background: var(--stamp); color: var(--paper-light); border-color: var(--stamp-deep); }
.primary:hover { background: var(--stamp-deep); }
.secondary { background: transparent; color: var(--ink); border-color: #948267; }
.secondary:hover { background: var(--paper-light); border-color: #625747; }
.intro-copy button:focus-visible, .dialog button:focus-visible { outline-color: var(--stamp-deep); outline-offset: 3px; }
.play-icon { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }

.chase-caption {
  position: absolute;
  z-index: 3;
  inset: auto 0 max(14px, env(safe-area-inset-bottom)) 0;
  width: min(710px, calc(100% - 24px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.5vw, 16px);
  padding: 7px 9px 7px 13px;
  border: 1px solid #967b64;
  border-inline-start: 4px solid #c46a54;
  background: #232e35f5;
  color: var(--paper-light);
  pointer-events: none;
}
.chase-dialogue { display: flex; flex: 1 1 auto; align-items: baseline; gap: clamp(6px, 1.2vw, 13px); min-width: 0; }
.chase-speaker { flex: 0 0 auto; color: var(--gold-hot); font: 800 .82rem/1.2 var(--mono); text-transform: uppercase; }
.chase-line { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--paper-light); font-size: .98rem; font-weight: 650; line-height: 1.32; }
.chase-skip { flex: 0 0 auto; margin-inline-start: auto; min-height: 37px; padding: 3px 10px; border: 1px solid #b49c77; border-radius: 2px; background: transparent; color: var(--paper-light); font-size: .82rem; font-weight: 750; line-height: 1.1; white-space: nowrap; pointer-events: auto; }
.chase-skip:hover { background: var(--paper); color: var(--ink); }

.control-deck { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 8px clamp(13px, 2.45vw, 29px); border-top: 1px solid var(--line); background: var(--navy); }
.desktop-skills { display: flex; gap: clamp(14px, 2.55vw, 37px); align-items: center; }
.desktop-skills > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
kbd { display: inline-grid; place-items: center; height: 25px; min-width: 25px; padding: 0 5px; border-radius: 2px; border: 1px solid #77796b; background: var(--panel); color: var(--paper-light); font: 750 .82rem/1 var(--mono); }
.desktop-skills b { margin-left: 5px; font-size: .875rem; font-weight: 700; color: var(--paper); }
.special kbd { color: var(--gold-hot); border-color: #a47157; background: #543832; }
.desktop-skills em { font-size: .82rem; font-style: normal; font-variant-numeric: tabular-nums; color: var(--gold); margin-left: 5px; min-width: 34px; }
.desktop-skills em[data-cooling] { color: #c0af99; }
.touch-controls { display: none; }

.hud { pointer-events: none; }
.hud-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: clamp(6px, 1.5vw, 16px); padding: clamp(10px, 2.1vw, 24px); }
.hud-card { border: 1px solid #a78264; border-radius: 2px; padding: 7px 10px; background: #222d36f5; min-width: 0; }
.player-hud { justify-self: start; }
.hearts { display: flex; justify-content: center; gap: 3px; color: #f28475; font: 900 clamp(1rem, 2.45vw, 1.42rem)/1.2 system-ui, sans-serif; white-space: nowrap; }
.heart.empty { color: #987d76; }
.stage-hud { min-width: 0; max-width: 47vw; display: flex; align-items: baseline; justify-content: center; gap: 9px; text-align: center; }
.floor-number { color: var(--gold-hot); font: 800 .9rem/1.15 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-name { font-size: clamp(.84rem, 1.65vw, 1.08rem); line-height: 1.15; font-weight: 850; }
.jump-followup { display: none; }
.touch-group button[data-air-jump] .jump-base { display: none; }
.touch-group button[data-air-jump] .jump-followup { display: inline; }
.boss-hud { width: min(520px, 77%); margin: -9px auto 0; padding: 8px 12px 10px; border: 1px solid #bd786a; border-radius: 2px; background: #372c34f5; }
.boss-hud-title { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; color: var(--paper-light); font-size: clamp(.8rem, 2.2vw, 1.03rem); font-weight: 850; }
#boss-phase { color: var(--gold-hot); font: 750 .76rem/1.1 var(--mono); white-space: nowrap; }
.boss-track { height: 8px; margin-top: 6px; overflow: hidden; background: #211f27; }
.boss-track > div { height: 100%; background: #de7367; transition: width 140ms linear; }
.boss-hud[data-phase="2"] { border-color: #edaa72; }
.boss-hud[data-phase="2"] .boss-track > div { background: #edaa72; }
.toast { position: absolute; z-index: 1; top: max(23%, 88px); left: 50%; width: fit-content; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 7px 15px; font-size: clamp(.84rem, 2.4vw, 1.08rem); font-weight: 780; border: 1px solid #a78264; border-radius: 2px; background: #232d36f5; color: var(--paper-light); text-align: center; }
.hud:has(.boss-hud:not([hidden])) .toast { top: max(26%, 102px); }
.toast[data-priority="high"] { border-color: #dc8f76; background: #78382ff5; }

.overlay { z-index: 4; display: flex; flex-direction: column; align-items: center; overflow: auto; overscroll-behavior: contain; padding: 12px; background: #182127c9; }
.dialog { flex: none; width: min(100%, 425px); margin-block: auto; padding: clamp(16px, 4vw, 31px); border: 1px solid #fff1d7; border-top: 6px solid var(--stamp); border-radius: 2px; background: var(--paper); color: var(--ink); }
.dialog .eyebrow { margin-bottom: 10px; }
.ending-art { display: block; width: 100%; height: auto; aspect-ratio: 2.1 / 1; object-fit: cover; object-position: center 42%; margin-bottom: 16px; border: 1px solid #968166; }
.dialog h2 { margin: 0; color: var(--ink); font: 900 clamp(1.6rem, 4.2vw, 2.55rem)/1.12 var(--display); letter-spacing: -.045em; }
.rotate-glyph { display: grid; place-items: center; width: 42px; height: 30px; margin: 0 auto 16px; border: 2px solid var(--stamp); color: var(--stamp); font-size: 23px; line-height: 1; }
.overlay[data-dialog="rotate"] .dialog { text-align: center; }
.overlay[data-dialog="rotate"] .dialog-actions { justify-content: center; }
.dialog-description { margin: 10px 0 0; color: #465055; font-size: 1rem; line-height: 1.5; }
.dialog-actions { margin-top: 22px; flex-wrap: wrap; }
.overlay[data-dialog="help"] .dialog { width: min(100%, 540px); }
.overlay[data-dialog="loadout"] .dialog, .overlay[data-dialog="boon"] .dialog { width: min(100%, 720px); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.choice-card { --choice-color: #873831; display: flex; min-height: 100px; min-width: 0; flex-direction: column; align-items: flex-start; gap: 7px; justify-content: start; border: 1px solid #ac9573; border-inline-start: 4px solid var(--choice-color); border-radius: 1px; padding: 11px 12px; text-align: start; background: #ebd8b2; color: var(--ink); }
.choice-card:hover, .choice-card:focus-visible { background: var(--paper-light); border-color: var(--choice-color); }
.choice-card:active { transform: translateY(1px); }
.choice-card[data-category="utility"] { --choice-color: #315b64; }
.choice-card[data-category="survival"] { --choice-color: #3f5e3f; }
.choice-card strong { font: 900 1.04rem/1.18 var(--display); overflow-wrap: anywhere; }
.choice-card b { color: var(--choice-color); font-size: .81rem; line-height: 1.2; }
.choice-card span { width: 100%; padding-top: 6px; border-top: 1px dashed #b29a73; color: #4e5050; font-size: .86rem; line-height: 1.34; }
.result { color: var(--stamp-deep); font-size: .86rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; margin: 10px 0 0; }
.help-grid { display: grid; gap: 5px; margin-top: 15px; }
.help-grid > div { display: grid; grid-template-columns: minmax(5.8rem, .95fr) minmax(54px, max-content) 1.65fr; gap: 7px; align-items: center; min-height: 29px; }
.help-grid span { font-size: .88rem; font-weight: 750; }
.help-grid small { font-size: .85rem; color: #465055; }
.help-grid .touch-only { display: none; }

.pan-icon { width: 15px; height: 15px; display: block; position: relative; border: 2px solid; border-radius: 50%; transform: translate(-2px, -2px); }
.pan-icon::after { content: ""; position: absolute; width: 9px; height: 4px; right: -7px; bottom: -3px; border-radius: 2px; background: currentColor; transform: rotate(42deg); }
.dumpling-icon { display: block; width: 19px; height: 12px; border: 2px solid; border-radius: 55% 55% 38% 38%; background: linear-gradient(110deg, transparent 37%, currentColor 39% 46%, transparent 48% 57%, currentColor 59% 66%, transparent 68%); }
.stamp-icon { display: block; width: 17px; height: 6px; position: relative; margin-top: 7px; border: 2px solid; border-radius: 2px; }
.stamp-icon::before { content: ""; position: absolute; width: 8px; height: 8px; left: 50%; bottom: 2px; transform: translateX(-50%); border-radius: 4px 4px 1px 1px; background: currentColor; }
.vortex-icon { width: 17px; height: 12px; border: 2px solid; border-radius: 50%; transform: rotate(-24deg); }
.vortex-icon::after { content: ""; position: absolute; inset: 2px 3px; border: 1.5px solid; border-radius: 50%; }
.direction { width: 10px; height: 10px; border-top: 2px solid; border-right: 2px solid; display: block; }
.direction.left { transform: translateX(2px) rotate(-135deg); }
.direction.right { transform: translateX(-2px) rotate(45deg); }
.direction.up { transform: translateY(2px) rotate(-45deg); }

.arcade:fullscreen { width: 100%; max-width: none; padding: 0; background: var(--navy); display: flex; flex-direction: column; }
.arcade:fullscreen .topbar { padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); margin: 0; min-height: 46px; }
.arcade:fullscreen .cabinet { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 0; }
.arcade:fullscreen .screen { flex: 1; min-height: 0; max-height: none; aspect-ratio: auto; }

@media (max-width: 940px) {
  .intro-copy { width: min(54%, 473px); }
  .intro .eyebrow { margin-bottom: 12px; }
  .synopsis { margin-top: 13px; }
  .intro-actions { margin-top: 14px; padding-top: 12px; }
  :lang(ru) .desktop-skills { gap: 10px; }
  :lang(ru) .desktop-skills b { font-size: .76rem; white-space: normal; }
}

@media (any-pointer: coarse), (max-width: 650px), (orientation: landscape) and (max-height: 600px) {
  .control-deck { position: absolute; z-index: 2; inset: auto 0 0; min-height: 0; padding: 0; border: 0; background: transparent; pointer-events: none; }
  .arcade:not([data-mode="playing"]) .control-deck { visibility: hidden; }
  .touch-controls { --control-height: min(110px, 32vh); display: flex; justify-content: space-between; align-items: flex-end; width: 100%; min-height: var(--control-height); }
  .desktop-skills { display: none; }
  .stick-zone, .touch-group button { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
  .stick-zone { position: relative; flex: 0 0 min(38%, 265px); height: var(--control-height); }
  .stick-base { position: absolute; display: grid; place-items: center; width: 83px; height: 70px; left: var(--stick-x, clamp(47px, 30%, 72px)); top: var(--stick-y, 52%); transform: translate(-50%, -50%); border: 1px solid #b1a594; border-radius: 13px; background: #233039e5; color: var(--paper); pointer-events: none; }
  .stick-knob { position: absolute; left: 50%; top: 50%; width: 31px; height: 31px; transform: translate(calc(-50% + var(--stick-travel, 0px)), -50%); border: 1px solid #e5cb9d; border-radius: 50%; background: #af967d; }
  .stick-base .direction { position: absolute; width: 8px; height: 8px; opacity: .72; }
  .stick-base .left { left: 9px; }
  .stick-base .right { right: 9px; }
  .stick-zone[data-held] .stick-base { border-color: #f0c596; background: #26333bee; }
  .stick-zone[data-held] .stick-knob { background: var(--gold); }
  .touch-group { display: flex; align-items: center; gap: clamp(12px, 2.75vw, 24px); padding-bottom: clamp(8px, 2vh, 13px); margin-inline-end: clamp(12px, 3vw, 34px); }
  .touch-group button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; height: clamp(54px, 19vh, 72px); aspect-ratio: 1; padding: 2px; border: 1px solid #d9a38a; border-bottom: 3px solid #4a2e2d; border-radius: 50%; background: #733f3de9; color: var(--paper-light); font-size: .8rem; font-weight: 850; line-height: 1; }
  .touch-group button[data-action="jump"] { height: clamp(63px, 22vh, 91px); background: #e5b786f5; color: #292b2a; border-color: #fce1af; border-bottom-color: #865847; }
  .touch-group button[data-air-jump] { color: #e7edda; border-color: #b2d4bd; background: #3d6862; }
  .touch-group button[data-pressed], .touch-group button:active { transform: scale(.94); filter: brightness(1.24); outline: 2px solid #fff0c3bf; outline-offset: 2px; }
  .touch-group button[data-action="smash"] { position: relative; color: var(--skill-color, #ffc896); }
  .touch-group button[data-action="smash"]::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--skill-color, #ffc896) var(--skill-fill, 100%), #473735 0); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0); pointer-events: none; }
  .touch-group button[data-action="smash"] i { display: none; }
  .touch-group button[data-technique="panRing"] .stamp-icon, .touch-group button[data-technique="dumplingBurst"] .dumpling-icon, .touch-group button[data-technique="paperVortex"] .vortex-icon { display: block; }
  #touch-skill-name { max-width: 94%; font-size: clamp(.58rem, 1.5vw, .76rem); line-height: 1.04; }
  #touch-skill-cooldown { min-width: 1.55em; text-align: center; position: absolute; bottom: -3px; padding: 2px 4px; border-radius: 2px; background: var(--navy); color: var(--paper-light); font: 800 .71rem/1 var(--mono); }
  :lang(ru) .touch-group button { font-size: .7rem; }
  .help-grid > div { grid-template-columns: minmax(5.8rem, .95fr) 1.65fr; }
  .help-grid > div > div, .help-grid .keys-only { display: none; }
  .help-grid .touch-only { display: inline; }
  .help-grid .help-skill { display: grid; }
}

@media (orientation: portrait) and (any-pointer: coarse) {
  .control-deck { display: none; }
}

@media (max-width: 650px) and (orientation: portrait) {
  .arcade { padding: max(9px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .topbar { min-height: 42px; margin-bottom: 9px; padding-inline: 4px; }
  .brand-icon { width: 30px; height: 30px; }
  .utility { height: 36px; min-width: 38px; padding-inline: 8px; }
  .screen { aspect-ratio: auto; height: min(580px, calc(100svh - 112px)); max-height: none; min-height: 398px; }
  .arcade:not([data-mode="menu"]) .screen { height: min(720px, calc(100svh - 58px - max(9px, env(safe-area-inset-top)) - max(9px, env(safe-area-inset-bottom)))); min-height: 236px; }
  .intro { align-items: end; }
  .cover img { object-position: 77% 24%; }
  .intro-copy { width: calc(100% - 20px); margin: 0 10px 10px; padding: 13px clamp(12px, 4vw, 25px) 15px; border-inline-start-width: 5px; }
  .intro .eyebrow { margin-bottom: 10px; font-size: .75rem; }
  h1 { font-size: clamp(2.65rem, 11vw, 4.05rem); }
  :lang(ru) h1 { font-size: clamp(2.15rem, 10.2vw, 3.65rem); }
  .synopsis { margin-top: 9px; line-height: 1.5; }
  .intro-actions { margin-top: 11px; padding-top: 10px; }
  .button { min-height: 43px; padding-inline: 15px; }
  .control-deck { display: none; }
  .hud-card { padding: 5px 6px; }
  .stage-hud { gap: 4px; }
  .boss-hud { margin-top: -4px; padding: 5px 8px 7px; width: 87%; }
  .boss-track { height: 6px; margin-top: 4px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 0; }
  .chase-caption { flex-wrap: wrap; row-gap: 4px; }
  .chase-caption > .chase-speaker { flex-basis: 100%; }
  .chase-dialogue { display: block; flex: 1 1 min-content; }
  .chase-line { flex: 1 1 min-content; font-size: .9rem; }
  .arcade:fullscreen .screen { height: auto; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .arcade { display: flex; flex-direction: column; width: 100%; max-width: none; height: 100svh; height: 100dvh; padding: max(3px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(3px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
  .topbar { flex: none; min-height: 39px; margin-bottom: 4px; padding-bottom: 1px; }
  .brand-icon { width: 27px; height: 27px; }
  .utility { height: 37px; }
  .cabinet { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .screen { flex: 1; aspect-ratio: auto; height: auto; min-height: 0; max-height: none; }
  .intro-copy { padding: clamp(10px, 4vh, 23px) clamp(13px, 3vw, 25px); margin-inline-start: clamp(11px, 3.5vw, 44px); border-inline-start-width: 5px; }
  .intro .eyebrow { margin-bottom: 6px; }
  h1 { font-size: clamp(2.15rem, min(13vh, 6.9vw), 4.15rem); }
  :lang(ru) h1 { font-size: clamp(1.78rem, min(10.5vh, 4.8vw), 3.55rem); }
  .synopsis { margin-top: 7px; line-height: 1.35; }
  .intro-actions { margin-top: 9px; padding-top: 9px; }
  .button { min-height: 38px; padding-inline: 12px; }
  .hud-top { padding-top: 7px; }
  .hud-card { padding-block: 4px; }
  .boss-hud { margin-top: -18px; padding: 3px 8px 5px; }
  .boss-track { height: 5px; margin-top: 3px; }
  .dialog { padding: 13px 16px; }
  .dialog-description { font-size: .91rem; line-height: 1.35; }
  .dialog-actions { margin-top: 12px; }
  .choice-grid { margin-top: 11px; gap: 6px; }
  .choice-card { min-height: 78px; padding: 7px 9px; gap: 5px; }
  .choice-card strong { font-size: .9rem; }
  .choice-card span { padding-top: 4px; font-size: .82rem; }
  .chase-caption { bottom: max(7px, env(safe-area-inset-bottom)); padding-block: 4px; }
  .chase-line { font-size: .91rem; }
  .ending-art { max-height: 77px; object-position: center 37%; margin-bottom: 7px; }
  .arcade:fullscreen .topbar { min-height: 32px; }
  .arcade:fullscreen .screen { height: auto; }
}

@media (orientation: landscape) and (max-height: 335px) {
  .intro .eyebrow { font-size: .73rem; }
  .synopsis { font-size: .88rem; }
  .intro-actions { gap: 5px; }
  .intro-actions .button { font-size: .86rem; }
}

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