:root {
  color-scheme: light;
  --ink: #263242;
  --muted: #617184;
  --paper: rgba(255, 255, 255, 0.58);
  --paper-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(65, 84, 104, 0.18);
  --green: #45b36f;
  --green-deep: #26845d;
  --sky: #7ec5ef;
  --gold: #f3ba3d;
  --coral: #e9706c;
  --violet: #9075cf;
  --blue: #4b9bd0;
  --shadow: 0 24px 72px rgba(42, 73, 88, 0.24);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: #88c9e9;
}

button {
  font: inherit;
  cursor: pointer;
}

button,
h1,
h2,
p,
small,
strong,
li {
  overflow-wrap: anywhere;
}

.app-shell {
  position: relative;
  display: grid;
  place-items: stretch;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  transition: background 520ms ease;
}

.scene-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #8fcbe7;
}

.scene-sky,
.scene-sun-glow,
.scene-sun-ray,
.scene-vignette,
.scene-asset,
.plant-grove,
.flower-grove {
  position: absolute;
  pointer-events: none;
}

.scene-sky {
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 218, 104, 0.36) 0 10%, transparent 22%),
    linear-gradient(180deg, #82c7ef 0%, #c9ebf4 46%, #f5dea0 72%, #95ca78 100%);
  transition: background 600ms ease, filter 600ms ease;
}

.scene-asset {
  display: block;
  user-select: none;
  transition: opacity 560ms ease, transform 680ms ease, filter 560ms ease;
}

.scene-mountains {
  left: -7vw;
  bottom: 22vh;
  width: 114vw;
  height: 26vh;
  object-fit: cover;
  opacity: 0.34;
  filter: hue-rotate(88deg) saturate(0.72);
}

.scene-hills {
  left: -7vw;
  width: 114vw;
  max-width: none;
  object-fit: cover;
}

.scene-hills-large {
  bottom: 13vh;
  height: 27vh;
  opacity: 0.68;
  filter: hue-rotate(82deg) saturate(0.75) brightness(1.02);
}

.scene-hills-front {
  bottom: 8vh;
  height: 25vh;
  opacity: 0.94;
  filter: hue-rotate(94deg) saturate(0.84);
}

.scene-ground {
  left: -4vw;
  bottom: -1px;
  width: 108vw;
  height: 15vh;
  min-height: 102px;
  max-width: none;
  object-fit: cover;
}

.scene-ground-back {
  opacity: 0.72;
  filter: hue-rotate(72deg) saturate(0.82);
}

.scene-ground-front {
  opacity: 0.98;
  filter: hue-rotate(70deg) saturate(0.95) brightness(0.96);
}

.scene-cloud {
  left: 50%;
  width: 112vw;
  max-width: none;
  object-fit: cover;
  transform: translateX(-50%);
}

.scene-cloud-soft {
  top: -3vh;
  height: 25vh;
  opacity: 0.66;
  animation: cloudDrift 13s ease-in-out infinite alternate;
}

.scene-cloud-bright {
  top: 7vh;
  height: 18vh;
  opacity: 0.36;
  animation: cloudDrift 16s ease-in-out infinite alternate-reverse;
}

.scene-cloud-storm {
  top: 0;
  height: 30vh;
  opacity: 0;
  filter: hue-rotate(170deg) saturate(0.34) brightness(0.76);
}

.storm-b {
  top: 10vh;
  transform: translateX(-50%) scale(1.1);
}

.scene-sun-glow {
  right: clamp(28px, 8vw, 140px);
  top: clamp(142px, 22vh, 206px);
  z-index: 7;
  width: clamp(150px, 17vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.42;
  background:
    radial-gradient(circle, rgba(255, 239, 143, 0.84) 0 22%, rgba(255, 190, 69, 0.38) 42%, transparent 72%),
    repeating-conic-gradient(from 0deg, rgba(255, 217, 92, 0.24) 0 8deg, transparent 9deg 18deg);
  filter: blur(1px);
  transform: translateY(22px) scale(0.82);
  animation: sunGlow 4.8s ease-in-out infinite;
}

.scene-sun,
.scene-sun-face {
  right: clamp(62px, 10vw, 168px);
  top: clamp(166px, 25vh, 232px);
  z-index: 8;
  transform-origin: center;
}

.scene-sun {
  width: clamp(96px, 10vw, 150px);
  opacity: 0.48;
  transform: translateY(26px) scale(0.78);
  filter: drop-shadow(0 10px 20px rgba(189, 123, 36, 0.22));
}

.scene-sun-face {
  width: clamp(72px, 7vw, 110px);
  opacity: 0;
  image-rendering: pixelated;
  transform: translate(8px, 46px) scale(0.66);
  filter: drop-shadow(0 0 22px rgba(255, 219, 88, 0.5));
}

.scene-sun-ray {
  left: -32vw;
  top: -18vh;
  z-index: 5;
  width: 82vw;
  height: 132vh;
  opacity: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 247, 188, 0.48) 46%, rgba(255, 205, 72, 0.4) 52%, transparent 66% 100%);
  filter: blur(3px);
  mix-blend-mode: screen;
  transform: rotate(8deg);
}

.plant-grove {
  left: clamp(-8px, 3vw, 64px);
  bottom: 5vh;
  z-index: 9;
  width: clamp(250px, 30vw, 430px);
  height: clamp(250px, 44vh, 500px);
  transition: filter 560ms ease, transform 680ms ease;
}

.plant-grove .scene-asset,
.flower-grove .scene-asset {
  bottom: 0;
  transform-origin: 50% 100%;
}

.plant-tree {
  position: absolute;
}

.tree-bare {
  left: 5%;
  width: clamp(140px, 16vw, 248px);
  opacity: 0.72;
  transform: translateY(10px) rotate(-4deg) scale(0.92);
  filter: saturate(0.7) brightness(0.9);
}

.tree-full {
  left: 0;
  width: clamp(162px, 18vw, 276px);
  opacity: 0.24;
  transform: translateY(32px) scale(0.74);
}

.tree-small {
  opacity: 0.38;
  filter: saturate(0.82);
}

.tree-one {
  left: 48%;
  width: clamp(54px, 5.4vw, 88px);
  transform: translateY(22px) scale(0.78);
}

.tree-two {
  left: 62%;
  width: clamp(62px, 6vw, 98px);
  transform: translateY(18px) scale(0.78);
}

.tree-three {
  left: 76%;
  width: clamp(54px, 5vw, 86px);
  transform: translateY(24px) scale(0.76);
}

.flower-grove {
  right: clamp(0px, 4vw, 78px);
  bottom: 4.6vh;
  z-index: 10;
  width: clamp(210px, 24vw, 360px);
  height: clamp(230px, 40vh, 440px);
  transition: filter 560ms ease, transform 680ms ease;
}

.sunflower-state {
  right: 0;
  opacity: 0;
  image-rendering: auto;
  filter: drop-shadow(0 18px 22px rgba(75, 92, 48, 0.2));
}

.sunflower-wilt {
  width: clamp(158px, 17vw, 248px);
  right: 18%;
  opacity: 0.66;
  transform: translateY(20px) rotate(-4deg) scale(0.76);
  filter: saturate(0.62) brightness(0.86) drop-shadow(0 14px 18px rgba(63, 76, 64, 0.18));
}

.sunflower-half {
  width: clamp(160px, 17vw, 250px);
  right: 10%;
  opacity: 0.18;
  transform: translateY(12px) rotate(2deg) scale(0.8);
}

.sunflower-open {
  width: clamp(176px, 20vw, 292px);
  right: 1%;
  opacity: 0.08;
  transform: translateY(18px) scale(0.78);
}

.scene-rain {
  inset: -4vh -4vw;
  z-index: 16;
  width: 108vw;
  height: 108vh;
  object-fit: cover;
  opacity: 0;
  mix-blend-mode: screen;
  animation: rainFall 480ms linear infinite;
}

.scene-rain-drops {
  animation-duration: 620ms;
}

.scene-lightning {
  position: absolute;
  right: clamp(28px, 10vw, 180px);
  top: clamp(12px, 7vh, 78px);
  z-index: 17;
  width: clamp(112px, 13vw, 190px);
  height: clamp(230px, 32vh, 360px);
  opacity: 0;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 32px rgba(255, 219, 73, 0.72));
}

.scene-lightning img {
  display: none;
}

.scene-lightning::before,
.scene-lightning::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  width: 46%;
  height: 100%;
  background: linear-gradient(180deg, #fff8c4, #fff 45%, #ffd14d);
  clip-path: polygon(48% 0, 94% 0, 62% 34%, 100% 34%, 42% 100%, 54% 55%, 16% 55%);
}

.scene-lightning::after {
  left: 56%;
  top: 22%;
  width: 34%;
  height: 64%;
  opacity: 0.78;
  transform: rotate(10deg) scale(0.72);
}

.scene-vignette {
  inset: 0;
  z-index: 18;
  opacity: 0.06;
  background: radial-gradient(circle at 50% 42%, transparent 0 38%, rgba(33, 42, 54, 0.42) 100%);
  transition: opacity 520ms ease;
}

.tier-storm .scene-sky {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 229, 149, 0.08) 0 9%, transparent 22%),
    linear-gradient(180deg, #647386 0%, #9aa8b6 50%, #b7b8ad 76%, #7d986f 100%);
  filter: saturate(0.65) brightness(0.82);
}

.tier-storm .scene-cloud-soft,
.tier-storm .scene-cloud-bright {
  opacity: 0.26;
  filter: brightness(0.68) saturate(0.38);
}

.tier-storm .scene-cloud-storm {
  opacity: 0.92;
}

.tier-storm .scene-rain {
  opacity: 0.72;
}

.tier-storm .scene-lightning {
  opacity: 1;
  animation: lightningFlash 1.2s steps(2, end) infinite;
}

.tier-storm .scene-sun,
.tier-storm .scene-sun-face,
.tier-storm .scene-sun-glow,
.tier-cloudy .scene-sun-face {
  opacity: 0;
  transform: translateY(72px) scale(0.5);
}

.tier-storm .tree-bare {
  opacity: 0.92;
  transform: translateY(8px) rotate(-7deg) scale(0.98);
}

.tier-storm .tree-full,
.tier-storm .tree-small {
  opacity: 0.08;
  transform: translateY(48px) scale(0.58);
}

.tier-storm .sunflower-wilt {
  opacity: 0.9;
}

.tier-storm .sunflower-half,
.tier-storm .sunflower-open {
  opacity: 0;
}

.tier-storm .scene-vignette {
  opacity: 0.34;
}

.tier-cloudy .scene-sky {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 226, 126, 0.16) 0 9%, transparent 23%),
    linear-gradient(180deg, #869bac 0%, #bfd0d7 52%, #d7cfaa 76%, #86ad74 100%);
  filter: saturate(0.78) brightness(0.92);
}

.tier-cloudy .scene-cloud-storm {
  opacity: 0.58;
}

.tier-cloudy .scene-sun,
.tier-cloudy .scene-sun-glow {
  opacity: 0.18;
  transform: translateY(54px) scale(0.64);
}

.tier-cloudy .tree-bare {
  opacity: 0.82;
}

.tier-cloudy .tree-full,
.tier-cloudy .tree-small {
  opacity: 0.22;
}

.tier-cloudy .sunflower-wilt {
  opacity: 0.74;
}

.tier-cloudy .sunflower-half,
.tier-cloudy .sunflower-open {
  opacity: 0.06;
}

.tier-recovering .scene-cloud-storm {
  opacity: 0.18;
}

.tier-recovering .scene-sun {
  opacity: 0.46;
  transform: translateY(28px) scale(0.78);
}

.tier-recovering .scene-sun-glow {
  opacity: 0.38;
}

.tier-recovering .tree-full,
.tier-recovering .tree-small {
  opacity: 0.42;
  transform: translateY(20px) scale(0.82);
}

.tier-recovering .sunflower-wilt {
  opacity: 0.46;
}

.tier-recovering .sunflower-half {
  opacity: 0.36;
}

.tier-rising .scene-sky {
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 220, 94, 0.52) 0 12%, transparent 25%),
    linear-gradient(180deg, #7ec5ee 0%, #c9edf4 45%, #fae0a4 72%, #9bcf79 100%);
}

.tier-rising .scene-cloud-soft {
  opacity: 0.48;
}

.tier-rising .scene-cloud-bright {
  opacity: 0.42;
}

.tier-rising .scene-cloud-storm {
  opacity: 0.08;
}

.tier-rising .scene-sun,
.tier-rising .scene-sun-face {
  opacity: 0.74;
  transform: translateY(8px) scale(0.9);
}

.tier-rising .scene-sun-glow {
  opacity: 0.7;
  transform: translateY(8px) scale(0.98);
}

.tier-rising .scene-sun-ray {
  opacity: 0.3;
  animation: sunRaySweep 5.2s ease-in-out infinite alternate;
}

.tier-rising .tree-bare {
  opacity: 0.32;
}

.tier-rising .tree-full,
.tier-rising .tree-small {
  opacity: 0.78;
  transform: translateY(4px) scale(0.95);
}

.tier-rising .sunflower-wilt {
  opacity: 0.12;
}

.tier-rising .sunflower-half {
  opacity: 0.86;
  transform: translateY(0) rotate(1deg) scale(0.96);
}

.tier-rising .sunflower-open {
  opacity: 0.22;
}

.tier-sunny .scene-sky {
  background:
    radial-gradient(circle at 74% 17%, rgba(255, 223, 92, 0.72) 0 14%, transparent 28%),
    linear-gradient(180deg, #6ec8f4 0%, #bdf0f8 42%, #ffe29b 70%, #a8da7f 100%);
}

.tier-sunny .scene-cloud-soft,
.tier-sunny .scene-cloud-bright {
  opacity: 0.18;
}

.tier-sunny .scene-cloud-storm {
  opacity: 0;
}

.tier-sunny .scene-sun,
.tier-sunny .scene-sun-face {
  opacity: 0.98;
  transform: translateY(-4px) scale(1.02);
}

.tier-sunny .scene-sun-glow {
  opacity: 1;
  transform: translateY(-2px) scale(1.1);
}

.tier-sunny .scene-sun-ray {
  opacity: 0.56;
  animation: sunRaySweep 4.4s ease-in-out infinite alternate;
}

.tier-sunny .tree-bare {
  opacity: 0;
}

.tier-sunny .tree-full,
.tier-sunny .tree-small {
  opacity: 1;
  transform: translateY(-8px) scale(1.05);
  filter: saturate(1.16) brightness(1.06);
}

.tier-sunny .flower-grove {
  transform: translateY(-8px);
}

.tier-sunny .sunflower-wilt,
.tier-sunny .sunflower-half {
  opacity: 0;
}

.tier-sunny .sunflower-open {
  opacity: 1;
  transform: translateY(-12px) scale(1.04);
  animation: sunflowerOpen 3.4s ease-in-out infinite alternate;
}

.glass-game-frame {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 2.2vw, 30px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}

.fullscreen-game-shell {
  width: 100%;
  height: 100%;
  box-shadow: none;
  backdrop-filter: none;
}

.glass-game-frame::before {
  display: none;
}

.frame-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-bottom: clamp(10px, 1.8vh, 18px);
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.frame-top .eyebrow {
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.pixel-panel {
  border: 0;
  border-radius: 0;
  image-rendering: pixelated;
  box-shadow:
    inset 0 -4px 0 rgba(38, 50, 66, 0.1),
    0 6px 0 rgba(38, 50, 66, 0.08);
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: #263242;
  font-size: clamp(1.86rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.72),
    3px 3px 0 rgba(38, 50, 66, 0.16);
}

h2 {
  color: #2e3b4c;
  font-size: clamp(1.06rem, 2.4vw, 1.28rem);
  line-height: 1.24;
  letter-spacing: 0;
}

.audio-controls {
  position: static;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 6px 9px;
  border: 2px solid rgba(72, 92, 108, 0.14);
  border-radius: 8px;
  color: #3b4452;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 5px 0 rgba(57, 79, 91, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.icon-button:hover,
.primary-button:hover,
.secondary-button:hover,
.bank-card:hover {
  transform: translateY(-2px);
}

.icon-button.is-off {
  opacity: 0.58;
  filter: grayscale(0.65);
}

.mobile-score-readout {
  display: none;
}

.style-pixel .glass-game-frame {
  image-rendering: pixelated;
  background: transparent;
  box-shadow: none;
}

.style-pixel .icon-button,
.style-pixel .primary-button,
.style-pixel .secondary-button,
.style-pixel .bank-card,
.style-pixel .answer-bubble {
  border-radius: 4px;
}

.screen {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 0;
  height: 100%;
}

.screen.is-active {
  display: grid;
}

[hidden] {
  display: none !important;
}

#start-screen,
.start-layout {
  grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy banks"
    "actions banks";
  align-items: end;
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(12px, 2vw, 28px) clamp(8px, 2vw, 28px) clamp(46px, 9vh, 92px);
}

.start-copy {
  grid-area: copy;
  display: grid;
  gap: 9px;
  align-self: center;
  max-width: 560px;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08));
  backdrop-filter: none;
}

.start-copy p {
  max-width: 34em;
  color: rgba(38, 50, 66, 0.66);
  font-size: 0.94rem;
  line-height: 1.5;
}

.bank-grid {
  grid-area: banks;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  align-self: center;
  align-content: center;
}

.bank-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: clamp(178px, 24vh, 236px);
  padding: clamp(13px, 1.6vw, 18px);
  border: 0;
  border-radius: 0;
  color: #303c4b;
  text-align: left;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(221, 246, 234, 0.3));
  box-shadow: inset 0 -7px 0 rgba(59, 116, 91, 0.08), 0 6px 0 rgba(70, 92, 102, 0.08);
  backdrop-filter: none;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.bank-card.is-selected {
  background:
    linear-gradient(160deg, rgba(255, 242, 184, 0.78), rgba(206, 241, 223, 0.52));
  box-shadow: inset 0 -7px 0 rgba(243, 186, 61, 0.16), 0 6px 0 rgba(191, 132, 33, 0.18);
}

.bank-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border-radius: 8px;
  color: #754d15;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(255, 212, 96, 0.72);
}

.bank-card strong {
  font-size: 1.02rem;
  line-height: 1.16;
}

.bank-card small {
  color: rgba(38, 50, 66, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.38;
}

.start-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: none;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}

.start-actions p {
  color: rgba(38, 50, 66, 0.64);
  font-size: 0.92rem;
  font-weight: 800;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  color: #263242;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(81, 98, 85, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button {
  background: linear-gradient(145deg, #ffd05b, #73d394);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.52);
}

#play-screen,
.play-layout {
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) minmax(230px, 340px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "question question hud"
    "field field field";
  gap: clamp(10px, 1.6vw, 18px);
  min-height: 0;
}

.game-hud {
  display: flex;
  grid-area: hud;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.hud-tile {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  clip-path: none;
}

.hud-tile span {
  color: rgba(38, 50, 66, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.hud-tile strong {
  color: #2e3b4c;
  font-size: 1.6rem;
  line-height: 0.95;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.7),
    3px 3px 0 rgba(38, 50, 66, 0.12);
}

.score-tile strong {
  color: #c57920;
}

.score-tile {
  justify-self: end;
  margin-left: auto;
}

.question-card {
  grid-area: question;
  min-height: 102px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  clip-path: none;
}

.question-card small {
  display: block;
  margin-bottom: 7px;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.question-card p {
  color: #263242;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  font-weight: 900;
  line-height: 1.42;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.82),
    2px 2px 0 rgba(38, 50, 66, 0.1);
}

.bubble-field {
  grid-area: field;
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(196, 237, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: none;
  backdrop-filter: none;
}

.bubble-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.42) 0 4px, transparent 5px),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.28) 0 5px, transparent 6px),
    radial-gradient(circle at 45% 74%, rgba(255, 255, 255, 0.26) 0 3px, transparent 4px);
  background-size: 160px 180px;
  opacity: 0.7;
}

.answer-bubble {
  position: absolute;
  left: var(--bubble-left, 50%);
  top: -92px;
  z-index: 2;
  --bubble-midfall: 260px;
  --bubble-fall: 520px;
  display: grid;
  place-items: center;
  width: clamp(142px, 24%, 236px);
  min-height: 58px;
  padding: 10px 13px 13px;
  border: 0;
  border-radius: 0;
  color: #253240;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.28;
  text-align: center;
  image-rendering: pixelated;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(231, 242, 246, 0.82));
  box-shadow:
    inset 0 -6px 0 rgba(38, 50, 66, 0.12),
    inset 0 3px 0 rgba(255, 255, 255, 0.65),
    6px 6px 0 rgba(38, 50, 66, 0.16);
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
  animation: bubbleFall var(--bubble-duration, 6.4s) linear forwards;
  transition: filter 120ms ease, transform 120ms ease;
}

.answer-bubble::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    10px 0 0 rgba(255, 255, 255, 0.32),
    0 10px 0 rgba(255, 255, 255, 0.24);
}

.answer-bubble::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(38, 50, 66, 0.1);
}

.answer-bubble:hover {
  filter: brightness(1.06) saturate(1.06);
}

.answer-bubble.is-positive {
  background: linear-gradient(180deg, rgba(199, 255, 205, 0.94), rgba(110, 222, 145, 0.86));
  box-shadow:
    inset 0 -6px 0 rgba(33, 132, 83, 0.24),
    inset 0 3px 0 rgba(255, 255, 255, 0.66),
    6px 6px 0 rgba(35, 110, 83, 0.2);
}

.answer-bubble.is-negative {
  background: linear-gradient(180deg, rgba(255, 196, 187, 0.95), rgba(238, 111, 103, 0.86));
  box-shadow:
    inset 0 -6px 0 rgba(160, 61, 65, 0.24),
    inset 0 3px 0 rgba(255, 255, 255, 0.62),
    6px 6px 0 rgba(125, 56, 64, 0.2);
}

.answer-bubble.is-distractor {
  background: linear-gradient(180deg, rgba(225, 231, 238, 0.94), rgba(166, 181, 194, 0.84));
  color: rgba(38, 50, 66, 0.72);
}

.answer-bubble.is-popping {
  pointer-events: none;
  animation: bubblePop 240ms ease-out forwards;
}

.feedback-pop {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 6;
  max-width: min(430px, calc(100% - 28px));
  padding: 10px 13px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: #2f3a49;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.38;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(40, 70, 89, 0.16);
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
}

.feedback-pop.is-visible {
  animation: feedbackLift 1.55s ease-out forwards;
}

.feedback-pop.is-positive {
  background: rgba(223, 255, 224, 0.9);
}

.feedback-pop.is-negative {
  background: rgba(255, 229, 224, 0.92);
}

.feedback-pop.is-neutral {
  background: rgba(239, 243, 248, 0.92);
}

#result-screen,
.result-layout {
  place-items: center;
  align-content: center;
  gap: 14px;
  padding-bottom: clamp(34px, 7vh, 70px);
}

.result-panel {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: clamp(18px, 4vw, 30px);
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 218, 89, 0.24), transparent 34%),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 48px rgba(35, 68, 88, 0.12);
  backdrop-filter: blur(14px) saturate(1.12);
}

.result-score {
  color: #c57920;
  font-size: clamp(3rem, 12vw, 5.2rem);
  line-height: 0.9;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.64);
}

#result-message {
  max-width: 32em;
  color: rgba(38, 50, 66, 0.72);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.56;
}

.result-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.result-suggestions li {
  min-height: 38px;
  padding: 8px 9px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  color: rgba(38, 50, 66, 0.7);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.34);
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#audio-credit {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 8px;
  color: rgba(38, 50, 66, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

button:focus-visible {
  outline: 3px solid rgba(255, 191, 63, 0.62);
  outline-offset: 2px;
}

@keyframes cloudDrift {
  from {
    transform: translateX(-52%) translateY(0);
  }
  to {
    transform: translateX(-48%) translateY(7px);
  }
}

@keyframes sunGlow {
  0%,
  100% {
    filter: blur(1px) saturate(1);
  }
  50% {
    filter: blur(2px) saturate(1.2);
  }
}

@keyframes sunRaySweep {
  from {
    transform: translateX(-10%) rotate(8deg);
  }
  to {
    transform: translateX(18%) rotate(8deg);
  }
}

@keyframes rainFall {
  from {
    transform: translateY(-5vh);
  }
  to {
    transform: translateY(6vh);
  }
}

@keyframes lightningFlash {
  0%,
  100% {
    opacity: 0;
  }
  16%,
  30% {
    opacity: 1;
  }
  46% {
    opacity: 0.22;
  }
}

@keyframes sunflowerOpen {
  from {
    transform: translateY(-8px) rotate(-1deg) scale(1.01);
  }
  to {
    transform: translateY(-16px) rotate(1deg) scale(1.06);
  }
}

@keyframes bubbleFall {
  from {
    transform: translate3d(-50%, -30px, 0) scale(0.92) rotate(-1deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  48% {
    transform: translate3d(calc(-50% + var(--bubble-drift, 0px) / 2), var(--bubble-midfall, 260px), 0) scale(1) rotate(1deg);
  }
  to {
    transform: translate3d(calc(-50% + var(--bubble-drift, 0px)), var(--bubble-fall, 520px), 0) scale(1) rotate(-1deg);
    opacity: 0.96;
  }
}

@keyframes bubblePop {
  0% {
    transform: translate3d(-50%, 0, 0) scale(1);
    opacity: 1;
  }
  60% {
    transform: translate3d(-50%, 0, 0) scale(1.18);
    opacity: 0.86;
  }
  100% {
    transform: translate3d(-50%, 0, 0) scale(0.2);
    opacity: 0;
  }
}

@keyframes feedbackLift {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
  }
  18%,
  76% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
  }
}

@media (max-width: 760px) {
  .app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
  }

  .glass-game-frame {
    width: 100%;
    height: 100%;
    padding: 8px 8px 0;
  }

  .frame-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    min-height: 66px;
    margin-bottom: 0;
    padding: 6px 8px 2px;
  }

  .audio-controls {
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(3, 30px);
    align-self: start;
    width: 100px;
    padding: 2px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 8px 20px rgba(44, 77, 92, 0.12);
    backdrop-filter: blur(8px);
    gap: 3px;
    transform: translateX(-70px);
  }

  .app-shell[data-screen="play"] .mobile-score-readout {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    min-height: 20px;
    padding: 1px 4px 0;
    color: rgba(38, 50, 66, 0.74);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
  }

  .mobile-score-readout strong {
    color: #c57920;
    font-size: 1rem;
  }

  .icon-button {
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    font-size: 0.78rem;
    overflow: hidden;
    white-space: nowrap;
  }

  .eyebrow {
    font-size: 0.64rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.34rem, 7.4vw, 1.78rem);
    line-height: 1.04;
  }

  #start-screen,
  .start-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "banks"
      "actions";
    align-content: start;
    gap: 7px;
    padding: 0 8px calc(env(safe-area-inset-bottom, 0px) + 58px);
  }

  .start-copy {
    gap: 5px;
    align-self: start;
    max-width: min(100%, 306px);
    padding: 8px 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06));
  }

  .start-copy p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .bank-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    align-self: stretch;
    align-content: start;
    padding-right: clamp(72px, 24vw, 104px);
  }

  .bank-card {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 58px;
    padding: 7px 9px;
  }

  .bank-card .bank-icon {
    grid-row: 1 / span 2;
  }

  .bank-card small {
    font-size: 0.74rem;
  }

  .start-actions {
    position: fixed;
    left: calc(env(safe-area-inset-left, 0px) + 8px);
    right: calc(env(safe-area-inset-right, 0px) + 8px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 90;
    grid-template-columns: minmax(0, 1fr) minmax(118px, 38vw);
    gap: 8px;
    padding: 6px 8px;
    max-width: none;
    background: rgba(255, 255, 255, 0.42);
  }

  .start-actions p {
    min-width: 0;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .primary-button,
  .secondary-button {
    min-height: 38px;
    padding: 7px 10px;
  }

  #play-screen,
  .play-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 28px auto minmax(190px, 1fr);
    grid-template-areas:
      "hud"
      "question"
      "field";
    gap: 5px;
    padding: 0 8px calc(env(safe-area-inset-bottom, 0px) + 176px);
  }

  .game-hud {
    display: flex;
    position: relative;
    z-index: 4;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    justify-self: stretch;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 2px;
  }

  .hud-tile {
    min-height: 0;
    min-width: 0;
    padding: 0;
    white-space: nowrap;
  }

  .score-tile {
    position: static;
    justify-self: auto;
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
  }

  .hud-tile strong {
    min-width: 2.2ch;
    font-size: 1.18rem;
    text-align: right;
  }

  .question-card {
    min-height: 0;
    max-width: calc(100% - 128px);
    padding: 2px 0 4px;
  }

  .question-card small {
    margin-bottom: 4px;
  }

  .question-card p {
    font-size: 0.94rem;
    line-height: 1.32;
  }

  .bubble-field {
    min-height: 190px;
    background:
      radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
      linear-gradient(180deg, rgba(196, 237, 255, 0.04), rgba(255, 255, 255, 0));
  }

  .answer-bubble {
    --bubble-midfall: 170px;
    --bubble-fall: 340px;
    width: min(68vw, 246px);
    min-width: 158px;
    min-height: 50px;
    padding: 7px 9px 10px;
    font-size: 0.72rem;
    line-height: 1.24;
  }

  .plant-grove {
    left: -46px;
    bottom: 0;
    width: 250px;
    height: 288px;
    opacity: 0.96;
  }

  .flower-grove {
    right: -6px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 54px);
    width: 190px;
    height: 260px;
    opacity: 1;
  }

  .scene-sun {
    right: 66px;
    top: 96px;
    width: 78px;
  }

  .scene-sun-face {
    right: 72px;
    top: 101px;
    width: 64px;
  }

  .scene-sun-glow {
    right: 34px;
    top: 70px;
    width: 132px;
  }

  #audio-credit {
    display: none;
  }

  .result-suggestions {
    grid-template-columns: 1fr;
  }

  #result-screen,
  .result-layout {
    padding-bottom: 8px;
  }
}

@media (max-height: 660px) {
  .glass-game-frame {
    height: 100%;
    padding: 8px 8px 0;
  }

  .frame-top {
    margin-bottom: 7px;
  }

  .icon-button {
    min-height: 28px;
    padding: 4px 7px;
  }

  #audio-credit {
    margin-top: 6px;
  }

  .question-card {
    min-height: 82px;
  }

  .result-panel {
    padding: 14px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .frame-top {
    min-height: 54px;
    margin-bottom: 0;
    padding: 4px 8px 0;
  }

  .frame-top .eyebrow {
    display: none;
  }

  h1 {
    font-size: clamp(1.18rem, 6.8vw, 1.56rem);
  }

  .icon-button {
    flex-basis: 28px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
  }

  .audio-controls {
    grid-template-columns: repeat(3, 28px);
    width: 94px;
    transform: translateX(-112px);
  }

  #start-screen,
  .start-layout {
    gap: 5px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 52px);
  }

  .start-copy {
    padding: 7px 9px;
  }

  .start-copy p {
    display: none;
  }

  .bank-grid {
    gap: 5px;
    padding-right: clamp(62px, 22vw, 92px);
  }

  .bank-card {
    min-height: 52px;
    padding: 6px 8px;
  }

  .bank-icon {
    width: 34px;
    height: 26px;
  }

  .bank-card small {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .start-actions {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    padding: 5px 7px;
  }

  .primary-button,
  .secondary-button {
    min-height: 34px;
    padding: 6px 9px;
  }

  #play-screen,
  .play-layout {
    grid-template-rows: 24px auto minmax(150px, 1fr);
    gap: 4px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 138px);
  }

  .hud-tile strong {
    font-size: 1.04rem;
  }

  .question-card {
    min-height: 0;
    max-width: calc(100% - 118px);
  }

  .question-card small {
    display: none;
  }

  .question-card p {
    font-size: 0.86rem;
    line-height: 1.24;
  }

  .bubble-field {
    min-height: 150px;
  }

  .answer-bubble {
    --bubble-midfall: 138px;
    --bubble-fall: 276px;
    width: min(66vw, 230px);
    min-height: 46px;
    font-size: 0.68rem;
  }

  .plant-grove {
    left: -44px;
    width: 222px;
    height: 246px;
  }

  .flower-grove {
    right: 26px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
    width: 162px;
    height: 222px;
  }

  .scene-sun {
    right: 124px;
    top: 78px;
    width: 70px;
  }

  .scene-sun-face {
    right: 130px;
    top: 83px;
    width: 56px;
  }

  .scene-sun-glow {
    right: 94px;
    top: 56px;
    width: 118px;
  }
}
