:root {
  color-scheme: light;
  --ink: #24372b;
  --paper: #f6efd6;
  --leaf: #39764b;
  --leaf-dark: #245238;
  --sky: #b8d7d4;
  --sun: #f2c84b;
  --wood: #9a613f;
  --wood-light: #d4a56e;
  --soil: #72503c;
  --danger: #a33b35;
  --safe: #236d54;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: #d4c8a4; color: var(--ink); }
body { overflow-x: hidden; }
button { font: inherit; color: inherit; }
button:focus-visible, [role="button"]:focus-visible { outline: 3px solid #ffcf3f; outline-offset: 2px; }
[hidden] { display: none !important; }

.app-shell {
  width: min(100%, 1120px);
  height: 100svh;
  height: 100dvh;
  min-height: 568px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--paper);
  border-inline: 2px solid var(--ink);
}

.masthead {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 3px 7px;
  border-bottom: 3px solid var(--ink);
  background-color: #f4eccf;
  background-image: radial-gradient(circle at 15% 20%, rgba(57,118,75,.09) 0 8px, transparent 9px), radial-gradient(circle at 78% 75%, rgba(154,97,63,.08) 0 12px, transparent 13px);
  background-size: 70px 55px, 95px 72px;
}
.brand { min-width: 0; display: flex; align-items: center; gap: 7px; }
.brand small { display: block; font: 800 14px/1 ui-monospace, monospace; letter-spacing: .06em; color: var(--leaf-dark); }
.brand h1 { margin: 2px 0 0; font: 900 clamp(15px, 4vw, 23px)/1 "Yu Mincho", serif; overflow-wrap: anywhere; }
.seed-mark { width: 36px; height: 36px; flex: 0 0 36px; position: relative; border: 3px solid var(--ink); border-radius: 65% 35% 62% 38%; background: var(--soil); transform: rotate(-20deg); box-shadow: 3px 3px 0 var(--sun); }
.seed-mark::after { content: ""; position: absolute; width: 14px; height: 19px; right: -8px; top: -7px; border: 3px solid var(--ink); border-left: 0; border-bottom: 0; border-radius: 0 100% 0 100%; background: var(--leaf); }
.head-actions { display: flex; gap: 5px; }
.head-actions button, .hud button { min-width: 48px; min-height: 44px; padding: 3px 6px; border: 2px solid var(--ink); background: #fff8df; font-size: 14px; font-weight: 900; box-shadow: 2px 2px 0 var(--ink); }

.screen-stack { min-height: 0; position: relative; }
.screen { width: 100%; height: 100%; min-height: 0; }

.start-screen { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); background: #d9e1bd; }
.start-garden { position: relative; min-height: 0; overflow: hidden; border-right: 3px solid var(--ink); background-color: var(--sky); background-image: radial-gradient(ellipse at 18% 25%, rgba(255,255,255,.55) 0 9%, transparent 10%), radial-gradient(ellipse at 76% 14%, rgba(255,255,255,.4) 0 7%, transparent 8%); }
.start-garden::after { content: ""; position: absolute; inset: 73% 0 0; border-top: 4px solid var(--ink); background-color: #8b6b4c; background-image: radial-gradient(ellipse, #594332 0 13%, transparent 14%); background-size: 28px 18px; }
.paper-sun { position: absolute; width: min(28vw, 210px); aspect-ratio: 1; left: 8%; top: 7%; border: 4px solid var(--ink); border-radius: 50%; background: var(--sun); box-shadow: 9px 8px 0 rgba(154,97,63,.35); }
.start-pot { position: absolute; z-index: 4; left: 40%; bottom: 8%; width: 25%; height: 20%; border: 4px solid var(--ink); background: #b85b43; clip-path: polygon(8% 0,92% 0,78% 100%,22% 100%); }
.start-pot i { position: absolute; inset: 5% 12% auto; height: 22%; border: 2px solid var(--ink); background: var(--soil); }
.start-trellis { position: absolute; z-index: 2; left: 32%; bottom: 22%; width: 42%; height: 67%; }
.start-trellis i { position: absolute; border: 4px solid var(--ink); background: var(--wood-light); }
.start-trellis i:nth-child(1), .start-trellis i:nth-child(2) { width: 9%; height: 100%; bottom: 0; }
.start-trellis i:nth-child(1) { left: 14%; transform: rotate(-3deg); }.start-trellis i:nth-child(2) { right: 14%; transform: rotate(3deg); }
.start-trellis i:nth-child(n+3) { left: 3%; right: 3%; height: 8%; }
.start-trellis i:nth-child(3) { bottom: 18%; transform: rotate(-2deg); }.start-trellis i:nth-child(4) { bottom: 39%; transform: rotate(2deg); }.start-trellis i:nth-child(5) { bottom: 60%; transform: rotate(-2deg); }.start-trellis i:nth-child(6) { bottom: 81%; transform: rotate(1deg); }
.start-vine { position: absolute; z-index: 3; left: 43%; bottom: 23%; width: 32%; height: 63%; border-left: 8px solid var(--leaf); border-radius: 50%; transform: rotate(-5deg); }
.start-vine i { position: absolute; width: 28%; aspect-ratio: 1.4; border: 3px solid var(--ink); border-radius: 80% 20% 75% 25%; background: #66a95e; }
.start-vine i:nth-child(1) { left: -18%; top: 55%; transform: rotate(-35deg); }.start-vine i:nth-child(2) { left: 10%; top: 35%; transform: scaleX(-1) rotate(-40deg); }.start-vine i:nth-child(3) { left: -16%; top: 18%; }
.start-vine b { position: absolute; width: 31%; aspect-ratio: 1; top: 2%; border: 3px solid var(--ink); border-radius: 55% 45% 60% 40%; background: #7551a3; }
.start-vine b:first-of-type { left: -20%; }.start-vine b:last-of-type { left: 8%; transform: rotate(45deg); }
.wind-stitches { position: absolute; z-index: 3; right: 4%; top: 35%; font: 900 clamp(18px, 4vw, 40px)/1 ui-monospace, monospace; color: #fff; text-shadow: 2px 2px 0 var(--ink); transform: rotate(-5deg); }
.start-copy { padding: clamp(13px, 3.5vw, 45px); display: flex; flex-direction: column; justify-content: center; background-color: #f1e7c5; background-image: repeating-linear-gradient(0deg, transparent 0 34px, rgba(36,55,43,.09) 34px 35px); }
.eyebrow { margin: 0 0 5px; color: var(--leaf-dark); font-size: 14px; font-weight: 900; letter-spacing: .05em; }
.start-copy h2, .result-screen h2 { margin: 0 0 8px; font: 900 clamp(25px, 5vw, 45px)/1.12 "Yu Mincho", serif; }
.start-copy p { margin: 0 0 12px; font-size: clamp(14px, 2vw, 18px); line-height: 1.6; }
.start-points { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.start-points span { padding: 4px 7px; border: 2px solid var(--ink); background: #fff8df; font-size: 14px; font-weight: 800; }
.primary-button { min-height: 48px; border: 3px solid var(--ink); background: var(--sun); font-size: 17px; font-weight: 900; box-shadow: 5px 5px 0 var(--leaf-dark); }

.game-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: #b8d7d4; }
.hud { display: grid; grid-template-columns: repeat(4, minmax(45px, 1fr)) auto; gap: 3px; padding: 3px; color: #fff8dd; background: var(--leaf-dark); border-bottom: 2px solid var(--ink); }
.hud > div { min-width: 0; padding: 2px 4px; border-left: 2px solid #b7d58a; }
.hud small, .hud strong { display: block; white-space: nowrap; font-size: 14px; }
.hud strong { font-size: clamp(14px, 2.3vw, 19px); }
.hud button { background: #f8e9bf; color: var(--ink); }

.game-field { position: relative; min-width: 0; min-height: 160px; overflow: hidden; touch-action: pan-y; isolation: isolate; background-color: var(--sky); background-image: radial-gradient(ellipse at 22% 30%, rgba(255,255,255,.42) 0 10%, transparent 11%), radial-gradient(ellipse at 73% 18%, rgba(255,255,255,.32) 0 8%, transparent 9%); }
.game-field::after { content: ""; position: absolute; z-index: -1; inset: 78% 0 0; border-top: 4px solid var(--ink); background-color: #8c694d; background-image: radial-gradient(ellipse, #5b4332 0 13%, transparent 14%); background-size: 30px 19px; }
.sky-paper { position: absolute; inset: 0 0 22%; opacity: .18; background-image: repeating-linear-gradient(12deg, transparent 0 17px, #fff 18px 19px); }
.weather-icon { position: absolute; z-index: 1; left: 4%; top: 11%; width: 55px; height: 55px; }
.weather-icon.sun { border: 3px solid var(--ink); border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 7px rgba(242,200,75,.24); }
.weather-icon.rain { border: 3px solid var(--ink); border-radius: 48%; background: #708e9c; box-shadow: 18px 6px 0 -3px #708e9c; }
.weather-icon.rain::after { content: "・・・"; position: absolute; top: 42px; left: 1px; color: #29698a; font: 900 24px/1 ui-monospace, monospace; transform: rotate(62deg); }
.wind-flag { position: absolute; z-index: 5; top: 4px; right: 5px; min-width: 98px; padding: 3px 6px; border: 2px solid var(--ink); background: #fff6d9; box-shadow: 3px 3px 0 var(--wood); text-align: center; font-size: 14px; }
.wind-flag b, .wind-flag span { display: inline; }.wind-flag i { display: block; font: 900 21px/1 ui-monospace, monospace; color: var(--danger); }
.observation-board { position: absolute; z-index: 5; left: 5px; top: 4px; width: min(60%, 380px); padding: 3px 7px; border: 2px solid var(--ink); border-left-width: 7px; background: #fff9df; font-size: 14px; line-height: 1.25; box-shadow: 3px 3px 0 rgba(36,55,43,.35); }
.observation-board small, .observation-board strong { display: block; font-size: 14px; }
.observation-board small { color: var(--leaf-dark); font-weight: 900; }
.sun-side { position: absolute; z-index: 1; top: 27%; bottom: 19%; width: 23%; border: 3px dashed #d19021; background: rgba(242,200,75,.18); display: grid; place-items: end center; padding: 4px; }
.sun-side.left { left: 2%; }.sun-side.right { right: 2%; }.sun-side span { padding: 2px 5px; background: #fff4b8; border: 1px solid var(--ink); font-size: 14px; font-weight: 900; text-align: center; }
.tower-scene { position: absolute; z-index: 3; left: 50%; bottom: 2%; width: min(72%, 520px); height: 76%; transform: translateX(-50%); }
.moving-piece { position: absolute; z-index: 8; top: 0; width: 37%; min-width: 108px; height: 40px; display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; border: 3px solid var(--ink); background: var(--wood-light); box-shadow: 0 4px 0 var(--wood); will-change: left, top; }
.moving-piece i { height: 6px; margin: 0 4px; background: var(--wood); border: 1px solid var(--ink); }.moving-piece b { width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #f7e7a7; font-size: 16px; }
.tower-stack { position: absolute; left: 50%; bottom: 18%; width: 100%; height: 66%; transform: translateX(-50%); }
.tower-piece { position: absolute; width: 37%; min-width: 108px; height: 40px; display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; border: 3px solid var(--ink); background: var(--wood-light); box-shadow: 0 4px 0 var(--wood); transition: transform .35s ease; }
.tower-piece::before, .tower-piece::after { content: ""; height: 6px; margin: 0 4px; background: var(--wood); border: 1px solid var(--ink); }
.tower-piece span { width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #f7e7a7; font-size: 16px; font-weight: 900; }
.planter { position: absolute; z-index: 4; left: 50%; bottom: 0; width: 44%; height: 21%; transform: translateX(-50%); border: 4px solid var(--ink); background: #b75f47; clip-path: polygon(4% 0,96% 0,83% 100%,17% 100%); }
.planter i { position: absolute; inset: 5% 9% auto; height: 25%; border: 2px solid var(--ink); background: var(--soil); }
.planter b { position: absolute; left: 48%; top: 9%; width: 8px; height: 88%; background: var(--leaf); transform: rotate(-4deg); }
.planter span { position: absolute; left: 26%; right: 26%; bottom: 8%; height: 24%; border-top: 3px solid var(--ink); }
.vine { position: absolute; z-index: 7; left: 48%; bottom: 17%; width: 18%; height: 66%; border-left: 7px solid var(--leaf); border-radius: 45%; transform-origin: bottom; pointer-events: none; transition: clip-path .5s ease; clip-path: inset(calc((6 - var(--stage, 0)) * 15%) 0 0 0); }
.vine i { position: absolute; width: 32px; height: 23px; border: 2px solid var(--ink); border-radius: 80% 20% 75% 25%; background: #67a85c; }
.vine i:nth-child(1) { left: -28px; bottom: 8%; }.vine i:nth-child(2) { left: 4px; bottom: 23%; transform: scaleX(-1); }.vine i:nth-child(3) { left: -27px; bottom: 38%; }.vine i:nth-child(4) { left: 4px; bottom: 53%; transform: scaleX(-1); }.vine i:nth-child(5) { left: -25px; bottom: 68%; }.vine i:nth-child(6) { left: 5px; bottom: 82%; transform: scaleX(-1); }
.vine b { position: absolute; top: -12px; width: 37px; height: 37px; border: 3px solid var(--ink); border-radius: 55% 45% 60% 40%; background: #76519f; }.vine b:first-of-type { left: -25px; }.vine b:last-of-type { left: 4px; transform: rotate(45deg); }
.danger-ribbon, .release-banner { position: absolute; z-index: 15; left: 50%; top: 52%; min-width: 220px; transform: translate(-50%,-50%) rotate(-2deg); padding: 8px 14px; border: 4px solid var(--ink); background: #f6d09f; text-align: center; box-shadow: 7px 7px 0 rgba(36,55,43,.5); }
.release-banner { background: #ecf2a9; }.danger-ribbon strong, .danger-ribbon span, .release-banner strong, .release-banner span { display: block; font-size: 14px; }.danger-ribbon strong, .release-banner strong { font: 900 22px/1.2 "Yu Mincho", serif; }
.pause-panel { position: absolute; z-index: 25; inset: 0; display: grid; place-content: center; gap: 12px; background: rgba(28,57,42,.9); color: #fff; text-align: center; font-size: 19px; }
.pause-panel button { min-width: 150px; min-height: 48px; border: 3px solid #fff; background: var(--sun); color: var(--ink); font-weight: 900; }
.status-line { min-height: 30px; margin: 0; padding: 4px 8px; border-block: 2px solid var(--ink); background: #fff8de; font-size: 14px; line-height: 1.35; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.controls { min-height: 78px; display: grid; grid-template-columns: .8fr .9fr 1.3fr; gap: 5px; padding: 5px; background: #b89d72; }
.controls button { min-height: 56px; border: 3px solid var(--ink); background: #f8ecd0; font-size: 14px; font-weight: 900; box-shadow: 2px 2px 0 var(--ink); }
.controls button span, .controls button b { display: block; }.controls button b { font-size: 16px; }
#waterButton { background: #c5e1dc; } #repairButton { background: #dfe9b1; }.drop-button { background: var(--sun) !important; }
.controls button:disabled { opacity: .55; box-shadow: none; }

.quiz-screen { padding: clamp(8px, 2.3vw, 25px); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 7px; background-color: #efe4c5; background-image: repeating-linear-gradient(0deg, transparent 0 35px, rgba(36,55,43,.09) 35px 36px); }
.quiz-cap { display: flex; justify-content: space-between; padding: 7px 10px; border: 2px solid var(--ink); background: var(--leaf-dark); color: #fff; font-size: 14px; font-weight: 900; }
.quiz-sprout { position: relative; justify-self: center; width: 70px; height: 55px; }.quiz-sprout i { position: absolute; left: 31px; bottom: 0; width: 7px; height: 42px; background: var(--leaf); border: 1px solid var(--ink); }.quiz-sprout b, .quiz-sprout span { position: absolute; top: 4px; width: 31px; height: 23px; border: 2px solid var(--ink); border-radius: 80% 20% 75% 25%; background: #67a85c; }.quiz-sprout b { left: 7px; transform: rotate(-18deg); }.quiz-sprout span { right: 7px; transform: scaleX(-1) rotate(-18deg); }
.quiz-screen h2 { margin: 0; text-align: center; font-size: clamp(17px, 3vw, 24px); line-height: 1.35; }
.quiz-choices { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 7px; }
.quiz-choices button { min-height: 54px; padding: 6px 8px; border: 3px solid var(--ink); background: #fff9e5; font-size: clamp(16px, 2vw, 18px); font-weight: 900; box-shadow: 3px 3px 0 #80694f; }
.quiz-choices button.correct { background: #bfe2bd; }.quiz-choices button.wrong { background: #efc0af; }
.quiz-feedback { align-self: center; padding: 13px; border: 3px solid var(--ink); background: #fff6d4; box-shadow: 6px 6px 0 var(--wood); }
.quiz-feedback strong { font-size: 19px; }.quiz-feedback p { margin: 6px 0; font-size: 15px; line-height: 1.45; }.quiz-feedback button { min-width: 120px; min-height: 44px; float: right; border: 2px solid var(--ink); background: var(--sun); font-weight: 900; }

.result-screen { padding: clamp(8px, 2.5vw, 25px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background-color: #c9ddbd; background-image: radial-gradient(circle at 15% 15%, rgba(255,255,255,.5) 0 9%, transparent 10%), radial-gradient(circle at 85% 82%, rgba(118,81,159,.16) 0 10%, transparent 11%); }
.flower-seal { position: relative; width: 68px; height: 68px; }.flower-seal i { position: absolute; left: 22px; top: 1px; width: 28px; height: 40px; border: 3px solid var(--ink); border-radius: 70% 30% 70% 30%; background: #76519f; transform-origin: 14px 33px; }.flower-seal i:nth-child(2) { transform: rotate(72deg); }.flower-seal i:nth-child(3) { transform: rotate(144deg); }.flower-seal i:nth-child(4) { transform: rotate(216deg); }.flower-seal i:nth-child(5) { transform: rotate(288deg); }.flower-seal b { position: absolute; z-index: 2; left: 24px; top: 24px; width: 25px; height: 25px; border: 3px solid var(--ink); border-radius: 50%; background: var(--sun); }
.result-screen h2 { margin: 0; font-size: clamp(23px, 4vw, 38px); }
.final-score { width: min(90%, 420px); padding: 5px 14px; border-block: 3px double var(--ink); background: rgba(255,249,224,.75); }.final-score span, .final-score strong { display: block; font-size: 14px; }.final-score strong { font: 900 clamp(29px, 6vw, 50px)/1 ui-monospace, monospace; }
.result-stats { width: min(100%, 650px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.result-stats div { padding: 5px; border: 2px solid var(--ink); background: #fff7dc; }.result-stats span, .result-stats b { display: block; font-size: 14px; }.result-stats b { font-size: 18px; }
.result-screen > p:not(.eyebrow) { margin: 0; font-size: 15px; }.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }.result-actions button { min-width: 158px; min-height: 48px; padding: 5px 10px; border: 3px solid var(--ink); background: #fff7dc; font-weight: 900; }

.overlay-panel { position: absolute; z-index: 40; inset: 0; padding: 8px; display: grid; place-items: center; background: rgba(28,50,37,.86); }.overlay-card { width: min(100%, 680px); max-height: 100%; overflow-y: auto; padding: 12px; border: 4px solid var(--ink); background: #f7edcf; box-shadow: 8px 8px 0 var(--wood); font-size: 15px; line-height: 1.55; }.overlay-card > button:first-child { min-width: 72px; min-height: 44px; float: right; border: 2px solid var(--ink); background: var(--sun); font-weight: 900; }.help-card h2 { margin: 4px 0; }.help-card ol { clear: both; padding-left: 1.5em; }

.tower-scene.wobble { animation: wobble .55s ease-in-out 2; }.game-field.success { animation: release .75s ease; }.game-field.danger { box-shadow: inset 0 0 0 7px rgba(163,59,53,.62); }
@keyframes wobble { 0%,100% { transform: translateX(-50%) rotate(0); } 28% { transform: translateX(-50%) rotate(-3deg); } 68% { transform: translateX(-50%) rotate(3deg); } }
@keyframes release { 0%,100% { filter: brightness(1); } 48% { filter: brightness(1.24) saturate(1.16); } }

@media (max-width: 700px) {
  .app-shell { padding-inline: 0; border: 0; }
  .masthead { min-height: 48px; padding-block: 2px; }
  .brand small { display: none; }.brand h1 { font-size: 15px; }.seed-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .head-actions { gap: 2px; }.head-actions button { min-width: 60px; padding-inline: 3px; white-space: nowrap; }
  .start-screen { grid-template-columns: 1fr; grid-template-rows: 51% minmax(0, 1fr); }.start-garden { border-right: 0; border-bottom: 3px solid var(--ink); }.start-copy { padding: 7px 11px; justify-content: space-evenly; }.start-copy h2 { font-size: clamp(21px, 6.6vw, 28px); margin-bottom: 3px; }.start-copy p { line-height: 1.34; margin-bottom: 4px; }.start-points { margin-bottom: 4px; gap: 3px; }.start-points span { padding: 2px 4px; }.primary-button { min-height: 46px; }
  .hud { grid-template-columns: .85fr .8fr 1.35fr 1fr 46px; padding: 2px; gap: 2px; }.hud > div { padding-inline: 2px; }.hud small, .hud strong { font-size: 14px; }.hud button { min-width: 44px; padding: 2px; }
  .observation-board { width: 61%; padding: 2px 5px; }.observation-board small { display: none; }.wind-flag { min-width: 91px; padding: 2px 4px; }
  .weather-icon { width: 45px; height: 45px; top: 22%; }.weather-icon.rain::after { top: 33px; }
  .tower-scene { width: 88%; height: 74%; }.moving-piece, .tower-piece { height: 36px; min-width: 100px; }.moving-piece { grid-template-columns: 1fr 30px 1fr; }.moving-piece b, .tower-piece span { width: 27px; height: 27px; font-size: 14px; }
  .sun-side { top: 32%; bottom: 18%; width: 20%; }.sun-side span { writing-mode: vertical-rl; padding: 3px 2px; }
  .controls { min-height: 76px; padding: 4px; gap: 3px; }.controls button { min-height: 54px; padding: 2px; }.controls button b { font-size: 14px; }
  .status-line { min-height: 31px; padding: 4px; }
  .quiz-screen { padding: 7px; gap: 5px; }.quiz-sprout { height: 48px; }.quiz-choices { gap: 5px; }.quiz-choices button { min-height: 50px; padding: 4px; }
  .result-screen { gap: 4px; padding: 7px; }.flower-seal { width: 58px; height: 58px; transform: scale(.82); }.result-actions { gap: 5px; }.result-actions button { min-width: 140px; }
}

@media (max-width: 360px) {
  .brand h1 { font-size: 14px; }.start-points span:nth-child(3) { display: none; }.start-screen { grid-template-rows: 49% minmax(0, 1fr); }
  .observation-board { width: 58%; }.observation-board strong { line-height: 1.2; }.weather-icon { display: none; }
  .controls { grid-template-columns: .75fr .83fr 1.25fr; }.result-actions button { min-width: 133px; }
}

@media (max-height: 600px) and (max-width: 700px) {
  .masthead { min-height: 46px; }.start-screen { grid-template-rows: 46% minmax(0, 1fr); }.start-copy h2 { font-size: 20px; }.start-copy p { line-height: 1.22; }.start-points { display: none; }
  .game-screen { grid-template-rows: auto minmax(160px, 1fr) auto auto; }.hud { padding: 1px; }.controls { min-height: 70px; padding-block: 2px; }.controls button { min-height: 50px; }.status-line { min-height: 28px; padding-block: 3px; }
  .tower-scene { height: 72%; }.observation-board strong { max-height: 35px; overflow: hidden; }.sun-side { top: 35%; }.quiz-sprout { display: none; }.quiz-screen { grid-template-rows: auto auto minmax(0, 1fr); }.flower-seal { display: none; }.final-score strong { font-size: 28px; }
}

@media (max-height: 567px), (max-width: 319px) {
  .app-shell { height: auto; min-height: 100svh; overflow: visible; }.screen-stack { min-height: 520px; } body { overflow-y: auto; }
}

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