:root {
  color-scheme: light;
  --ink: #20312f;
  --muted: #68746f;
  --paper: #e8eee9;
  --paper-light: #f3f5ef;
  --water: #4f898c;
  --water-bright: #89bec0;
  --water-deep: #2f6063;
  --green: #55755c;
  --mud: #897b60;
  --danger: #a75240;
  --line: rgba(32, 49, 47, 0.16);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

button { color: inherit; font: inherit; }
button:focus-visible { outline: 2px solid var(--water-deep); outline-offset: 4px; }

.game-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 17% 4%, rgba(255,255,255,.9), transparent 30%),
    radial-gradient(circle at 86% 90%, rgba(118,153,145,.14), transparent 30%),
    linear-gradient(135deg, #eef2ec, #e3ebe6 60%, #dce6e0);
}

#game-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity .8s ease;
}

.game-shell.is-playing #game-canvas {
  opacity: 1;
  pointer-events: auto;
  cursor: crosshair;
}

.game-shell.is-dragging #game-canvas { cursor: grabbing; }
.game-shell.is-flying #game-canvas { cursor: cell; }

.paper-grain {
  position: absolute;
  inset: 0;
  z-index: 80;
  opacity: .16;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
}

.screen-flash {
  position: absolute;
  inset: 0;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  background: rgba(167, 82, 64, .16);
}

.screen-flash.is-active { animation: damageFlash .35s ease; }

@keyframes damageFlash {
  35% { opacity: 1; }
}

.topbar {
  position: absolute;
  z-index: 60;
  top: max(24px, env(safe-area-inset-top));
  left: clamp(22px, 3.6vw, 62px);
  right: clamp(22px, 3.6vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.topbar button { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(32,49,47,.48);
  background: rgba(239,243,237,.28);
  font-family: var(--serif);
  font-size: 21px;
}

.brand-text {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .16em;
}

.brand-text small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .15em;
}

.top-actions { display: flex; align-items: center; gap: 12px; }

.round-button,
.sound-button {
  border: 1px solid rgba(32,49,47,.16);
  background: rgba(238,242,236,.5);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.round-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--serif);
}

.sound-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.sound-bars { display: flex; align-items: center; gap: 2px; width: 13px; height: 12px; }
.sound-bars i { display: block; width: 2px; height: 3px; background: currentColor; }
.sound-button[aria-pressed="true"] .sound-bars i { animation: soundBar .7s ease-in-out infinite alternate; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.25s; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.5s; }

@keyframes soundBar { to { height: 11px; } }

.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease, visibility .65s ease;
}

.screen.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }

.menu-screen {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  width: min(1120px, calc(100% - 14vw));
  margin: auto;
}

.menu-art {
  position: relative;
  justify-self: center;
  width: min(35vw, 430px);
  aspect-ratio: 1 / 1.15;
}

.menu-art::before {
  content: "";
  position: absolute;
  top: 3%;
  left: 31%;
  width: 28%;
  height: 93%;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(109,160,159,.05), rgba(73,127,128,.17), rgba(62,111,111,.05));
  transform: rotate(-12deg);
  filter: blur(1px);
}

.art-water {
  position: absolute;
  z-index: 2;
  top: 11%;
  left: 26%;
  width: 92px;
  height: 92px;
  border-radius: 48% 52% 45% 55%;
  background: radial-gradient(circle at 32% 25%, #a7cdca, #5a9294 65%, #396e70);
  box-shadow: 0 22px 50px rgba(47,96,99,.18), inset 8px 10px 22px rgba(255,255,255,.26);
  animation: waterFloat 4s ease-in-out infinite;
}

.art-water::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 23px;
  width: 22px;
  height: 12px;
  border-top: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.art-water i {
  position: absolute;
  left: calc(42px + var(--x, 0px));
  top: calc(70px + var(--y, 0px));
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 55% 55%;
  background: rgba(69,123,126,.65);
}
.art-water i:nth-child(1) { --x: -30px; --y: 25px; }
.art-water i:nth-child(2) { --x: 26px; --y: 43px; }
.art-water i:nth-child(3) { --x: -12px; --y: 64px; }
.art-water i:nth-child(4) { --x: 15px; --y: 92px; }
.art-water i:nth-child(5) { --x: -23px; --y: 115px; }

@keyframes waterFloat { 50% { transform: translateY(8px) rotate(2deg) scale(1.02); } }

.art-rock {
  position: absolute;
  z-index: 3;
  display: block;
  background: linear-gradient(145deg, #68756d, #364944);
  filter: drop-shadow(0 18px 20px rgba(32,49,47,.16));
  clip-path: polygon(18% 6%, 74% 0, 100% 35%, 84% 83%, 40% 100%, 2% 72%, 0 28%);
}

.rock-one { top: 42%; left: 38%; width: 145px; height: 116px; transform: rotate(-9deg); }
.rock-two { top: 69%; left: 21%; width: 65px; height: 55px; transform: rotate(17deg); opacity: .75; }

.art-sprout {
  position: absolute;
  z-index: 4;
  right: 17%;
  bottom: 11%;
  width: 2px;
  height: 54px;
  background: var(--green);
  transform: rotate(5deg);
}

.art-sprout::before,
.art-sprout::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 15px;
  border: 1px solid var(--green);
  background: rgba(100,132,103,.12);
}
.art-sprout::before { top: 11px; left: -29px; border-radius: 100% 0; transform: rotate(12deg); }
.art-sprout::after { top: -3px; left: 1px; border-radius: 0 100%; transform: rotate(-15deg); }

.menu-copy {
  max-width: 530px;
  padding-left: clamp(42px, 6vw, 94px);
  border-left: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--water-deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .25em;
}

.menu-copy h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(62px, 7.8vw, 108px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.05em;
}

.menu-copy h1 span:last-child { margin-left: .64em; color: var(--water-deep); }

.menu-lede {
  margin: 34px 0 10px;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: .06em;
}

.menu-description {
  margin: 0 0 31px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .035em;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 210px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .12em;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.primary-button:hover { background: var(--water-deep); border-color: var(--water-deep); transform: translateY(-2px); }
.primary-button i { font-family: var(--sans); font-style: normal; font-size: 18px; }
.primary-button.compact { min-width: 175px; min-height: 46px; font-size: 13px; }

.input-tip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  color: rgba(32,49,47,.46);
  font-size: 9px;
  letter-spacing: .12em;
}

.input-tip span {
  display: block;
  width: 15px;
  height: 19px;
  border: 1px solid rgba(32,49,47,.35);
  border-radius: 8px;
}

.input-tip span::before {
  content: "";
  display: block;
  width: 2px;
  height: 5px;
  margin: 3px auto;
  border-radius: 1px;
  background: var(--water-deep);
}

.level-preview {
  position: absolute;
  right: 0;
  bottom: 4vh;
  left: 0;
  display: flex;
  justify-content: center;
  gap: clamp(35px, 5vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.level-preview li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.level-preview b { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); font-size: 10px; font-weight: 400; }
.level-preview span { font-family: var(--serif); font-size: 12px; letter-spacing: .14em; }
.level-preview small { display: block; margin-top: 3px; color: rgba(32,49,47,.38); font-family: var(--sans); font-size: 8px; letter-spacing: .08em; }

.play-screen { z-index: 20; pointer-events: none !important; }
.play-screen > * { pointer-events: none; }

.level-heading {
  position: absolute;
  top: max(88px, calc(env(safe-area-inset-top) + 70px));
  left: clamp(23px, 3.6vw, 62px);
}

.level-heading p { margin: 0 0 4px; color: var(--water-deep); font-size: 9px; letter-spacing: .22em; }
.level-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2vw, 27px); font-weight: 400; letter-spacing: .07em; }

.level-progress {
  position: absolute;
  top: max(46px, calc(env(safe-area-inset-top) + 22px));
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.level-progress i {
  display: block;
  width: 30px;
  height: 2px;
  background: rgba(32,49,47,.16);
  transition: background .3s ease;
}
.level-progress i.is-active,
.level-progress i.is-complete { background: var(--water-deep); }

.hud {
  position: absolute;
  top: max(85px, calc(env(safe-area-inset-top) + 64px));
  right: clamp(23px, 3.6vw, 62px);
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(32,49,47,.14);
  background: rgba(237,241,235,.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hud-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 72px;
  height: 53px;
  padding: 8px 13px;
  border-right: 1px solid rgba(32,49,47,.12);
}
.hud-item:last-child { border-right: 0; }
.hud-label { color: rgba(32,49,47,.48); font-size: 8px; letter-spacing: .12em; }
.hud-item strong { font-family: var(--serif); font-size: 17px; font-weight: 400; line-height: 1; }
.hud-item strong i { font-style: normal; }
.hud-item strong small { color: var(--muted); font-size: 10px; }
.shot-hud { position: relative; min-width: 126px; }
.shot-hud strong { position: absolute; right: 11px; bottom: 8px; font-size: 13px; }
.shot-pips { display: flex; gap: 4px; margin: 7px 24px 1px 0; }
.shot-pips i { display: block; width: 8px; height: 8px; border-radius: 50% 50% 55% 55%; background: var(--water); transform: rotate(45deg); transition: opacity .25s ease, transform .25s ease; }
.shot-pips i.is-used { opacity: .14; transform: rotate(45deg) scale(.62); }
.shot-hud.is-danger .shot-pips i:not(.is-used) { background: var(--danger); }

@keyframes hudHit { 50% { background: rgba(167,82,64,.2); } }
@keyframes timerPulse { to { transform: scale(1.15); } }

.mission {
  position: absolute;
  bottom: max(35px, calc(env(safe-area-inset-bottom) + 20px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 380px);
  min-height: 36px;
  padding: 0 17px;
  border: 1px solid rgba(32,49,47,.13);
  border-radius: 20px;
  background: rgba(238,242,236,.74);
  color: var(--muted);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mission-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--water); box-shadow: 0 0 0 4px rgba(79,137,140,.12); }
.mission p { margin: 0; overflow: hidden; font-size: 10px; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }

.combo {
  position: absolute;
  top: 30%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--water-deep);
  opacity: 0;
  transform: translate(-50%, 14px) scale(.9);
}
.combo.is-visible { animation: comboPop 1.4s ease; }
.combo b { font-size: 10px; font-weight: 500; letter-spacing: .2em; }
.combo strong { font-family: var(--serif); font-size: 42px; font-weight: 400; }
@keyframes comboPop { 25%, 68% { opacity: 1; transform: translate(-50%, 0) scale(1); } }

.play-legend {
  position: absolute;
  bottom: max(36px, calc(env(safe-area-inset-bottom) + 22px));
  left: clamp(23px, 3.6vw, 62px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: rgba(32,49,47,.43);
  font-size: 8px;
  letter-spacing: .08em;
}
.play-legend span { display: flex; align-items: center; gap: 7px; }
.play-legend i { display: block; width: 10px; height: 10px; }
.legend-plant { border: 1px solid var(--green); border-radius: 50% 0; transform: rotate(45deg); }
.legend-rock { background: #55645e; clip-path: polygon(20% 0, 85% 10%, 100% 70%, 65% 100%, 5% 80%, 0 25%); }
.legend-mud { border-radius: 50%; background: rgba(137,123,96,.48); }

.mobile-drag-tip { display: none; }

.flight-actions {
  position: absolute;
  right: clamp(23px, 3.6vw, 62px);
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 20px));
  display: flex;
  gap: 9px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  pointer-events: auto !important;
}
.flight-actions.is-visible { visibility: visible; opacity: 1; transform: none; }
.flight-actions button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 5px 13px 5px 7px;
  border: 1px solid rgba(32,49,47,.17);
  border-radius: 23px;
  background: rgba(238,242,236,.8);
  color: var(--muted);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto !important;
}
.flight-actions button:hover { background: var(--ink); color: var(--paper-light); }
.flight-actions button:disabled { opacity: .38; cursor: default; }
.flight-actions b { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 14px; font-weight: 400; }
.flight-actions span { font-size: 8px; letter-spacing: .08em; }

.final-screen {
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 84px 24px 32px;
  background: rgba(232,238,233,.78);
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
}

.final-card { width: min(720px, 100%); padding: 25px 48px 32px; border-left: 1px solid var(--line); }
.final-stars { display: flex; gap: 6px; margin-bottom: 12px; color: var(--water-deep); font-size: 18px; letter-spacing: .08em; }
.final-card h2 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(29px, 3.3vw, 46px); font-weight: 400; letter-spacing: .05em; }
.final-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.72; letter-spacing: .08em; }
.final-card blockquote span { color: var(--water-deep); font-size: 1.28em; }
.final-reflection { margin: 18px 0; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.8; }
.final-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final-stats span { padding: 12px 10px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.final-stats span:last-child { border-right: 0; }
.final-stats strong { display: block; margin-top: 4px; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 400; }
.final-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.text-button { padding: 10px 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-family: var(--serif); font-size: 13px; letter-spacing: .08em; }

.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  visibility: hidden;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  background: rgba(30,47,44,.27);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  transition: opacity .35s ease, visibility .35s ease;
}
.modal-layer.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }

.result-card,
.help-card {
  position: relative;
  width: min(510px, 100%);
  padding: 42px 46px;
  border: 1px solid rgba(32,49,47,.18);
  background: rgba(241,244,238,.97);
  box-shadow: 0 35px 100px rgba(26,43,39,.2);
  transform: translateY(15px) scale(.98);
  transition: transform .45s cubic-bezier(.2,.85,.2,1);
}
.is-visible > .result-card,
.is-visible > .help-card { transform: none; }

.result-kicker { margin: 0 0 10px; color: var(--water-deep); font-size: 9px; letter-spacing: .22em; }
.result-card h2,
.help-card h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: .06em; }
.result-stars { display: flex; gap: 8px; margin: 18px 0; color: var(--water-deep); font-size: 28px; }
.result-stars .is-empty { color: rgba(32,49,47,.14); }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-stats span { padding: 12px 7px; border-right: 1px solid var(--line); color: var(--muted); font-size: 8px; text-align: center; letter-spacing: .08em; }
.result-stats span:last-child { border-right: 0; }
.result-stats strong { display: block; margin-top: 4px; color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 400; }
.result-line { margin: 0 0 24px; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.8; }

.help-card ol { margin: 25px 0; padding: 0; list-style: none; }
.help-card li { display: grid; grid-template-columns: 58px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.help-card li b { color: var(--water-deep); font-family: var(--serif); font-size: 15px; font-weight: 400; letter-spacing: .08em; }
.help-card li span { color: var(--muted); font-size: 11px; line-height: 1.7; }
.danger-note { margin: 0 0 24px; padding: 12px 14px; background: rgba(137,123,96,.1); color: #756c58; font-size: 10px; line-height: 1.7; }
.close-button { position: absolute; top: 16px; right: 18px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--serif); font-size: 25px; font-weight: 300; }

.translation {
  width: min(510px, calc(100% - 34px));
  padding: 44px 46px;
  border: 1px solid rgba(32,49,47,.18);
  background: rgba(241,244,238,.98);
  color: var(--ink);
  box-shadow: 0 35px 100px rgba(26,43,39,.23);
}
.translation::backdrop { background: rgba(30,47,44,.28); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.translation h2 { margin: 0 0 21px; font-family: var(--serif); font-size: 29px; font-weight: 400; }
.translation > p:not(.eyebrow) { color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 2; }

.toast {
  position: absolute;
  z-index: 75;
  top: 50%;
  left: 50%;
  max-width: min(330px, calc(100% - 40px));
  padding: 9px 15px;
  border-radius: 20px;
  background: rgba(31,49,46,.86);
  color: var(--paper-light);
  font-size: 10px;
  letter-spacing: .1em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-30%) scale(.96);
}
.toast.is-visible { animation: toastIn 1.8s ease; }
@keyframes toastIn { 18%, 74% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

@media (max-width: 760px) {
  .game-shell { min-height: 560px; }
  .topbar { top: max(15px, env(safe-area-inset-top)); left: 15px; right: 15px; }
  .brand-mark { width: 32px; height: 32px; font-size: 18px; }
  .brand-text { display: none; }
  .top-actions { gap: 7px; }
  .round-button, .sound-button { height: 31px; }
  .round-button { width: 31px; }
  .sound-button { padding: 0 10px; font-size: 8px; }
  .menu-screen { display: block; width: auto; margin: 0; padding: 92px 24px 30px; overflow-y: auto; }
  .menu-art { position: absolute; top: 70px; right: -35px; width: 230px; opacity: .5; transform: scale(.82); }
  .menu-copy { position: relative; z-index: 2; padding: 0; border: 0; }
  .menu-copy h1 { font-size: min(23vw, 88px); line-height: .87; }
  .menu-copy h1 span:last-child { margin-left: .45em; }
  .menu-lede { margin-top: 28px; font-size: 22px; }
  .menu-description { font-size: 13px; line-height: 1.8; }
  .level-preview { position: relative; right: auto; bottom: auto; left: auto; justify-content: flex-start; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
  .level-preview li { flex: 1; gap: 7px; padding-top: 13px; }
  .level-preview b { width: 20px; height: 20px; flex: 0 0 20px; }
  .level-preview span { font-size: 11px; }
  .level-preview small { display: none; }
  .level-heading { top: max(63px, calc(env(safe-area-inset-top) + 50px)); left: 17px; }
  .level-heading p { font-size: 8px; }
  .level-heading h2 { font-size: 18px; }
  .level-progress { top: max(29px, calc(env(safe-area-inset-top) + 14px)); }
  .level-progress i { width: 20px; }
  .hud { top: max(110px, calc(env(safe-area-inset-top) + 96px)); right: 14px; left: 14px; }
  .hud-item { flex: 1; min-width: 0; height: 46px; padding: 7px 9px; }
  .shot-hud { min-width: 112px; flex: 1.35; }
  .shot-pips { gap: 3px; margin-right: 21px; }
  .shot-pips i { width: 6px; height: 6px; }
  .hud-label { font-size: 7px; }
  .hud-item strong { font-size: 15px; }
  .score-hud { display: none; }
  .mission { bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px)); max-width: calc(100% - 28px); width: auto; min-height: 32px; }
  .mission p { font-size: 9px; }
  .play-legend { display: none; }
  .mobile-drag-tip { position: absolute; top: 166px; right: 19px; display: block; color: rgba(32,49,47,.37); font-size: 8px; letter-spacing: .1em; }
  .flight-actions { right: 13px; bottom: 61px; }
  .flight-actions button { min-height: 37px; padding-right: 8px; }
  .flight-actions b { width: 24px; height: 24px; }
  .flight-actions span { display: none; }
  .combo { top: 25%; }
  .final-screen { display: block; padding: 86px 20px 30px; overflow-y: auto; }
  .final-card { padding: 16px 8px 26px 24px; }
  .final-card h2 { font-size: 29px; }
  .final-card blockquote { font-size: 19px; }
  .final-stats { margin: 16px 0 18px; }
  .final-stats span { padding: 10px 5px; font-size: 7px; }
  .final-stats strong { font-size: 16px; }
  .final-actions { gap: 17px; }
  .final-actions .primary-button { min-width: 145px; }
  .final-actions .text-button { font-size: 11px; }
  .result-card, .help-card { padding: 37px 25px 28px; }
  .result-card h2, .help-card h2 { font-size: 26px; }
  .translation { padding: 42px 27px 30px; }
}

@media (max-height: 680px) and (min-width: 761px) {
  .menu-screen { transform: scale(.88); }
  .level-heading, .hud { top: 76px; }
  .result-card, .help-card { transform: scale(.88); }
  .is-visible > .result-card, .is-visible > .help-card { transform: scale(.88); }
  .final-card { transform: scale(.86); }
}

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