:root {
  --bg-space: #08101f;
  --bg-panel: rgba(10, 16, 34, 0.72);
  --line-soft: rgba(189, 219, 255, 0.22);
  --text-main: #eff7ff;
  --text-soft: rgba(239, 247, 255, 0.8);
  --accent-green: #78f8ba;
  --accent-pink: #f96cff;
  --accent-gold: #ffd26b;
  --danger: #ff4fc8;
  --shadow-strong: 0 24px 80px rgba(3, 8, 20, 0.55);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at top, #162a4b 0%, #08101f 48%, #04070f 100%);
  font-family: "Trebuchet MS", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text-main);
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
}

.screen.active {
  display: block;
}

.screen-loading {
  overflow: hidden;
}

.loading-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(95, 255, 184, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(9, 14, 30, 0.48), rgba(42, 10, 58, 0.62)),
    url("./assets/bg_farm_half infected.png") center/cover no-repeat;
  filter: blur(14px) saturate(0.94) brightness(0.84);
  transform: scale(1.08);
}

.loading-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 620px);
  transform: translate(-50%, -50%);
  padding: 42px 46px;
  border: 1px solid rgba(139, 255, 205, 0.3);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(17, 31, 58, 0.9), rgba(7, 13, 28, 0.94));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.5), inset 0 0 52px rgba(117, 248, 186, 0.07);
  text-align: center;
  backdrop-filter: blur(18px);
}

.loading-kicker {
  margin: 0 0 12px;
  color: var(--accent-green);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.loading-panel h1 {
  margin: 0 0 30px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0.08em;
}

.loading-track {
  width: 100%;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(137, 244, 200, 0.26);
  border-radius: 999px;
  background: rgba(5, 13, 28, 0.72);
}

.loading-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #70f3a9, #64f8dd);
  box-shadow: 0 0 28px rgba(112, 243, 169, 0.6);
  transition: width 180ms ease;
}

.loading-percent {
  margin: 14px 0 0;
  color: rgba(239, 247, 255, 0.78);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.screen-start,
.screen-result {
  overflow: hidden;
}

.start-bg,
.result-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 95, 214, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(9, 14, 30, 0.42), rgba(42, 10, 58, 0.58)),
    url("./assets/bg_farm_half infected.png") center/cover no-repeat;
  filter: blur(12px) saturate(0.92) brightness(0.82);
  transform: scale(1.08);
}

.start-content,
.result-panel {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(90vw, 920px);
  transform: translate(-50%, -50%);
  padding: 34px 40px 42px;
  border: 1px solid rgba(170, 228, 255, 0.22);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(18, 33, 61, 0.92), rgba(11, 18, 34, 0.94));
  box-shadow:
    0 30px 100px rgba(2, 7, 18, 0.55),
    inset 0 0 60px rgba(112, 196, 255, 0.05);
  text-align: center;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.task-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(144, 220, 255, 0.08);
  pointer-events: none;
}

.task-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(93, 192, 255, 0.12), transparent 34%),
    radial-gradient(circle at 50% 120%, rgba(108, 255, 191, 0.08), transparent 28%);
  pointer-events: none;
}

.panel-topline,
.panel-notes {
  position: relative;
  z-index: 1;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-chip,
.panel-step {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-chip {
  border: 1px solid rgba(134, 212, 255, 0.24);
  color: rgba(200, 236, 255, 0.82);
  background: rgba(121, 181, 255, 0.08);
}

.panel-step {
  border: 1px solid rgba(126, 255, 174, 0.22);
  color: rgba(192, 255, 217, 0.88);
  background: rgba(92, 255, 160, 0.08);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.start-content h1,
.result-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.result-panel h2 {
  max-width: min(86vw, 760px);
  margin-inline: auto;
  font-size: clamp(22px, 2.35vw, 40px);
  line-height: 1.26;
  text-align: center;
  letter-spacing: 0;
}

.result-title-line {
  display: block;
  text-align: center;
  white-space: nowrap;
  transform: translateX(0.32em);
}

.panel-lead,
.start-copy,
#resultText {
  position: relative;
  z-index: 1;
}

.panel-lead {
  margin: 18px auto 0;
  max-width: 700px;
  font-size: clamp(17px, 1.8vw, 25px);
  line-height: 1.65;
  color: rgba(224, 238, 255, 0.92);
}

.start-copy,
#resultText {
  margin: 18px auto 0;
  max-width: 720px;
  font-size: clamp(16px, 1.55vw, 24px);
  line-height: 1.78;
  color: rgba(221, 232, 245, 0.84);
}

.screen-start .panel-lead,
#resultText {
  max-width: 820px;
  font-size: clamp(14px, 1.18vw, 18px);
  line-height: 1.45;
}

.screen-start .panel-lead {
  white-space: nowrap;
}

.panel-notes {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-notes span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(153, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: rgba(221, 234, 245, 0.76);
}

.primary-cta {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  min-width: 220px;
  padding: 18px 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9af58d, #46d6af 58%, #6df0d1);
  color: #07111c;
  font-size: 22px;
  font-weight: 700;
  box-shadow:
    0 18px 44px rgba(70, 214, 175, 0.3),
    0 0 40px rgba(94, 244, 188, 0.18);
}

.result-panel.success .panel-chip {
  border-color: rgba(126, 255, 174, 0.28);
  background: rgba(92, 255, 160, 0.08);
}

.result-panel.fail .panel-chip,
.result-panel.fail .panel-step {
  border-color: rgba(255, 138, 170, 0.26);
  background: rgba(255, 84, 132, 0.08);
  color: rgba(255, 220, 228, 0.84);
}

.result-notes span {
  min-width: 240px;
}

.screen-countdown {
  overflow: hidden;
  background: #030814;
}

.countdown-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.countdown-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(104, 255, 179, 0.22), transparent 24%),
    radial-gradient(circle at 50% 54%, rgba(92, 180, 255, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(8, 14, 30, 0.72), rgba(23, 9, 38, 0.82)),
    url("./assets/bg_farm_half infected.png") center/cover no-repeat;
  filter: blur(8px) brightness(0.78) saturate(1.08);
  transform: scale(1.06);
}

.countdown-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(118, 255, 188, 0.08), transparent 30%),
    rgba(0, 0, 0, 0.12);
}

.countdown-number {
  position: absolute;
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 900;
  line-height: 1;
  color: #dfffea;
  opacity: 0;
  text-shadow:
    0 0 28px rgba(111, 255, 177, 0.62),
    0 0 80px rgba(111, 255, 177, 0.34),
    0 16px 44px rgba(0, 0, 0, 0.42);
  animation: countdownPop 1s ease-out forwards;
}

.countdown-number-3 {
  animation-delay: 0s;
}

.countdown-number-2 {
  animation-delay: 1s;
}

.countdown-number-1 {
  animation-delay: 2s;
}

.skip-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.72);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.screen-game {
  background: #060b17;
}

.stage-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.game-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #050a15;
  transform-origin: top left;
  cursor: default;
}

.scene-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 16%, rgba(240, 74, 223, 0.12), transparent 16%),
    linear-gradient(180deg, rgba(12, 10, 27, 0.2), rgba(10, 8, 23, 0.4)),
    url("./assets/bg_farm_half infected.png") center/cover no-repeat;
  filter: blur(10px) brightness(0.86) saturate(0.94);
  transform: scale(1.06);
}

.scene-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 14%, rgba(255, 91, 248, 0.28), transparent 18%),
    radial-gradient(circle at 52% 84%, rgba(160, 65, 255, 0.1), transparent 22%),
    radial-gradient(circle at 80% 86%, rgba(101, 255, 186, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(7, 10, 18, 0.28));
}

.scene-glow.is-cleansing {
  animation: cleanseFlash 1.7s ease forwards;
}

.scene-glow.is-endgame-pulse {
  animation: endgameGreenPulse 0.72s ease-out;
}

.hud {
  position: absolute;
  top: 34px;
  left: 54px;
  right: 54px;
  display: flex;
  gap: 20px;
  z-index: 20;
}

.hud-card {
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.hud-title {
  flex: 1 1 auto;
  padding: 18px 24px;
}

.hud-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.56);
  text-transform: uppercase;
}

.hud-title h2 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 2vw, 34px);
}

.hud-tip {
  margin: 0;
  font-size: clamp(13px, 1.2vw, 17px);
  color: var(--text-soft);
  line-height: 1.55;
}

.hud-core {
  position: relative;
  width: min(42vw, 620px);
  padding: 16px 18px;
}

.core-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.core-wrap {
  position: relative;
  width: 102px;
  height: 102px;
  flex: 0 0 auto;
}

.core-wrap.is-hit {
  animation: coreHit 0.42s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.spore-core {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  animation: coreFloat 2.8s ease-in-out infinite;
}

.core-wrap.is-hit .spore-core {
  filter:
    drop-shadow(0 0 12px rgba(255, 180, 221, 0.75))
    drop-shadow(0 0 28px rgba(255, 92, 209, 0.55));
}

.core-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(245, 111, 255, 0.32);
  box-shadow:
    0 0 24px rgba(255, 64, 224, 0.25),
    inset 0 0 24px rgba(255, 64, 224, 0.12);
  animation: pulseRing 2.2s ease-out infinite;
}

.core-meter {
  min-width: 0;
  flex: 1 1 auto;
}

.core-meter-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.84);
}

.core-meter-label strong {
  font-size: 22px;
  color: #ffd1ff;
}

.meter-track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ab5dff 0%, #ff4fc8 52%, #ff947d 100%);
  box-shadow: 0 0 28px rgba(255, 79, 200, 0.45);
  transition: width 180ms ease-out;
}

.farm-area {
  position: absolute;
  left: 60px;
  top: 282px;
  width: 1799px;
  height: 517px;
  z-index: 10;
}

.plot-bed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plant-layer,
.fx-layer {
  position: absolute;
  inset: 0;
}

.plant {
  position: absolute;
  width: 118px;
  height: 118px;
  transform-origin: center bottom;
  transition:
    transform 240ms ease,
    filter 240ms ease,
    opacity 240ms ease;
  animation: sway var(--plant-sway-duration, 2.8s) ease-in-out infinite;
  animation-delay: var(--plant-sway-delay, 0s);
  user-select: none;
  will-change: transform, filter;
}

.plant img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 12px 18px rgba(6, 14, 16, 0.34))
    brightness(1)
    saturate(1);
  transition: filter 220ms ease;
}

.plant.is-purple {
  filter:
    drop-shadow(0 0 14px rgba(214, 92, 255, 0.45))
    drop-shadow(0 0 28px rgba(171, 78, 255, 0.28));
}

.plant.is-purple img {
  filter:
    drop-shadow(0 12px 18px rgba(18, 8, 30, 0.42))
    brightness(1.02)
    saturate(1.14);
}

.plant.hit {
  animation:
    plantImpact 0.52s cubic-bezier(0.18, 0.82, 0.18, 1),
    sway var(--plant-sway-duration, 2.8s) ease-in-out infinite;
}

.plant.saved {
  animation:
    plantHeal 0.6s cubic-bezier(0.16, 0.84, 0.24, 1),
    sway var(--plant-sway-duration, 2.8s) ease-in-out infinite;
}

.plant.cleansed {
  animation:
    cleansePlant 1.2s ease,
    sway var(--plant-sway-duration, 2.8s) ease-in-out infinite;
}

.plant.saved img,
.plant.cleansed img {
  filter:
    drop-shadow(0 12px 18px rgba(6, 14, 16, 0.34))
    brightness(1.18)
    saturate(1.26);
}

.plant.is-targeted {
  filter:
    drop-shadow(0 0 14px rgba(155, 255, 195, 0.2))
    drop-shadow(0 0 30px rgba(188, 255, 212, 0.16));
}

.fx {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  animation: fxPop 0.72s ease forwards;
}

.fx img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.bottom-ui {
  position: absolute;
  left: 548px;
  top: 830px;
  z-index: 30;
}

.operation-panel {
  width: 824px;
  min-height: 140px;
  padding: 46px 36px 8px;
  border-radius: 30px;
  border: 1px solid rgba(155, 221, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(14, 28, 49, 0.88), rgba(10, 18, 34, 0.94));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    inset 0 0 40px rgba(94, 191, 255, 0.05);
  backdrop-filter: blur(14px);
}

.operation-panel p {
  margin: 0;
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(240, 247, 255, 0.92);
  transform: translateY(10px);
}

.robot-hand {
  position: absolute;
  left: 0;
  top: 0;
  --hand-x: 0px;
  --hand-y: 0px;
  width: 130px;
  height: 210px;
  opacity: 0;
  pointer-events: none;
  z-index: 45;
  transform: translate3d(calc(var(--hand-x) - 50%), calc(var(--hand-y) - 16%), 0);
  transition:
    opacity 120ms ease,
    transform 88ms cubic-bezier(0.18, 0.74, 0.24, 1);
  will-change: transform, opacity;
}

.robot-hand.visible {
  opacity: 1;
}

.auto-robot-hand.is-auto-running {
  filter: drop-shadow(0 0 30px rgba(112, 255, 184, 0.16));
}

.robot-hand.is-targeting img {
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 28px rgba(168, 255, 213, 0.28))
    brightness(1.12)
    saturate(1.08);
}

.robot-hand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 24px rgba(145, 226, 255, 0.12));
}

.timer-card {
  position: absolute;
  right: 56px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(8, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  z-index: 25;
}

.timer-card.is-urgent {
  border-color: rgba(255, 145, 86, 0.55);
  box-shadow:
    0 0 0 2px rgba(255, 120, 76, 0.18),
    0 18px 36px rgba(255, 98, 56, 0.18);
  background:
    linear-gradient(180deg, rgba(48, 17, 12, 0.84), rgba(26, 10, 15, 0.82));
}

.success-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 20, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 60;
}

.success-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  width: min(82vw, 720px);
  padding: 30px 34px 34px;
  border-radius: 32px;
  border: 1px solid rgba(214, 242, 255, 0.24);
  background: linear-gradient(180deg, rgba(18, 31, 52, 0.76), rgba(11, 18, 33, 0.72));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.32),
    inset 0 0 36px rgba(120, 248, 186, 0.06);
  backdrop-filter: blur(18px);
  text-align: center;
}

.success-card-button {
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.success-card-button:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(174, 247, 210, 0.38);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.34),
    0 0 48px rgba(102, 255, 176, 0.12),
    inset 0 0 36px rgba(120, 248, 186, 0.08);
}

.success-card-button:active {
  transform: scale(0.99);
}

.success-tag {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #b6ffd8;
}

.success-card h3 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.22;
  color: #f4f8ff;
}

.success-card h3 span {
  display: block;
}

.timer-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.08em;
}

#timerValue {
  font-size: 48px;
  line-height: 1;
  color: var(--accent-gold);
}

.timer-card.is-urgent #timerValue {
  color: #ff8759;
  text-shadow:
    0 0 12px rgba(255, 126, 89, 0.55),
    0 0 28px rgba(255, 78, 55, 0.34);
  animation: urgentTimer 0.72s ease-in-out infinite;
}

.result-panel.success {
  box-shadow: 0 24px 90px rgba(71, 230, 178, 0.2);
}

.result-panel.fail {
  box-shadow: 0 24px 90px rgba(255, 88, 148, 0.18);
}

.task-panel-quiz {
  width: min(95vw, 1240px);
  padding: 24px 30px 28px;
}

.task-panel-quiz .panel-topline {
  margin-bottom: 12px;
}

.task-panel-quiz .eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
}

.task-panel-quiz h1 {
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1.04;
}

.task-panel-quiz .panel-lead {
  margin-top: 12px;
  max-width: 920px;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.5;
}

.task-panel-quiz .primary-cta {
  margin-top: 18px;
  padding: 15px 34px;
  font-size: 20px;
}

.quiz-panel {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 18px 20px 8px;
  border-radius: 24px;
  border: 1px solid rgba(162, 221, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.quiz-title {
  margin: 0 0 12px;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.42;
  color: rgba(242, 247, 255, 0.94);
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  width: 100%;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(163, 222, 255, 0.14);
  background: linear-gradient(180deg, rgba(18, 31, 54, 0.82), rgba(10, 17, 33, 0.88));
  color: #eff7ff;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.quiz-option:hover {
  transform: translateY(-2px);
  border-color: rgba(146, 236, 195, 0.34);
  box-shadow: 0 14px 32px rgba(7, 14, 28, 0.24);
}

.quiz-option.is-selected {
  border-color: rgba(142, 231, 255, 0.36);
}

.quiz-option.is-correct {
  border-color: rgba(114, 255, 178, 0.4);
  box-shadow:
    0 18px 40px rgba(64, 214, 145, 0.14),
    inset 0 0 0 1px rgba(114, 255, 178, 0.12);
}

.quiz-option.is-wrong {
  border-color: rgba(255, 122, 170, 0.42);
  box-shadow:
    0 18px 40px rgba(255, 98, 145, 0.12),
    inset 0 0 0 1px rgba(255, 122, 170, 0.12);
}

.quiz-option pre {
  margin: 0;
  white-space: pre-wrap;
  font: 600 18px/1.35 "SFMono-Regular", "Menlo", "Consolas", monospace;
  color: inherit;
}

.quiz-feedback {
  min-height: 28px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(231, 239, 247, 0.75);
}

.quiz-feedback.is-success {
  color: #9ef3bd;
}

.quiz-feedback.is-error {
  color: #ffb2ca;
}

.primary-cta:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.bottom-ui-automation {
  left: 50%;
  top: 790px;
  transform: translateX(-50%);
  z-index: 34;
}

.operation-panel-automation {
  width: 600px;
  min-height: 72px;
  padding: 18px 22px 8px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(14, 28, 49, 0.72), rgba(10, 18, 34, 0.82));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    inset 0 0 26px rgba(94, 191, 255, 0.04);
}

.operation-panel-automation p {
  font-size: 22px;
  line-height: 1.28;
  transform: translateY(0);
}

.launch-btn {
  position: absolute;
  left: 50%;
  top: 102px;
  transform: translateX(-50%);
  width: 520px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 35;
  transition:
    transform 140ms ease,
    filter 140ms ease,
    opacity 140ms ease;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.26))
    drop-shadow(0 0 22px rgba(120, 255, 186, 0.08));
}

.launch-btn:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.02);
  filter:
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 26px rgba(120, 255, 186, 0.14));
}

.launch-btn.is-running {
  filter:
    grayscale(0.08)
    brightness(1.04)
    drop-shadow(0 20px 38px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 28px rgba(118, 243, 255, 0.22));
}

.launch-btn:disabled {
  opacity: 0.88;
  cursor: default;
}

.launch-btn img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 138px;
  object-fit: contain;
  pointer-events: none;
}

@keyframes coreFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes countdownPop {
  0% {
    opacity: 0;
    transform: scale(0.62);
    filter: blur(8px);
  }
  18% {
    opacity: 1;
    transform: scale(1.08);
    filter: blur(0);
  }
  58% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
    filter: blur(4px);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.18;
  }
  60% {
    opacity: 0.55;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(1.5deg);
  }
}

@keyframes plantImpact {
  0% {
    transform: scale(1);
  }
  18% {
    transform: scale(0.82) rotate(-7deg);
  }
  55% {
    transform: scale(1.13) rotate(5deg);
  }
  78% {
    transform: scale(0.96) rotate(-2deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes plantHeal {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  30% {
    transform: translateY(-8px) scale(1.1);
    filter: brightness(1.28);
  }
  60% {
    transform: scale(0.95);
    filter: brightness(1.12);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes fxPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes cleanseFlash {
  0% {
    opacity: 1;
    filter: saturate(1);
  }
  35% {
    opacity: 1;
    filter: saturate(1.2);
  }
  100% {
    opacity: 1;
    background:
      radial-gradient(circle at 15% 14%, rgba(255, 223, 124, 0.28), transparent 20%),
      radial-gradient(circle at 80% 86%, rgba(120, 248, 186, 0.18), transparent 20%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(7, 10, 18, 0.18));
  }
}

@keyframes farmSweep {
  0% {
    opacity: 0.24;
    background:
      radial-gradient(circle at 50% 50%, rgba(196, 255, 220, 0.46), transparent 24%),
      linear-gradient(
        90deg,
        rgba(116, 255, 170, 0) 0%,
        rgba(116, 255, 170, 0) 38%,
        rgba(158, 255, 198, 0.26) 44%,
        rgba(190, 255, 216, 0.78) 50%,
        rgba(158, 255, 198, 0.26) 56%,
        rgba(116, 255, 170, 0) 62%,
        rgba(116, 255, 170, 0) 100%
      );
    transform: scaleX(0.18);
    filter: blur(6px) saturate(1.08);
  }
  22% {
    opacity: 1;
    transform: scaleX(0.32);
    filter: blur(3px) saturate(1.15);
  }
  58% {
    opacity: 0.92;
    background:
      radial-gradient(circle at 50% 50%, rgba(168, 255, 205, 0.26), transparent 28%),
      linear-gradient(
        90deg,
        rgba(116, 255, 170, 0) 0%,
        rgba(116, 255, 170, 0.12) 18%,
        rgba(118, 255, 171, 0.42) 34%,
        rgba(197, 255, 220, 0.86) 50%,
        rgba(118, 255, 171, 0.42) 66%,
        rgba(116, 255, 170, 0.12) 82%,
        rgba(116, 255, 170, 0) 100%
      );
    transform: scaleX(1.02);
    filter: blur(5px) saturate(1.3);
    box-shadow:
      inset 0 0 70px rgba(118, 255, 171, 0.12),
      0 0 46px rgba(118, 255, 171, 0.18);
  }
  100% {
    opacity: 0;
    background:
      radial-gradient(circle at 50% 50%, rgba(168, 255, 205, 0.08), transparent 36%),
      linear-gradient(
        90deg,
        rgba(116, 255, 170, 0) 0%,
        rgba(116, 255, 170, 0.08) 20%,
        rgba(116, 255, 170, 0.18) 50%,
        rgba(116, 255, 170, 0.08) 80%,
        rgba(116, 255, 170, 0) 100%
      );
    transform: scaleX(1.08);
    filter: blur(7px) saturate(1.05);
    box-shadow: none;
  }
}

@keyframes endgameGreenPulse {
  0% {
    opacity: 1;
    background:
      radial-gradient(circle at 50% 58%, rgba(126, 255, 174, 0.08), transparent 18%),
      radial-gradient(circle at 50% 70%, rgba(120, 255, 168, 0.05), transparent 28%),
      radial-gradient(circle at 15% 14%, rgba(255, 91, 248, 0.22), transparent 18%),
      radial-gradient(circle at 80% 86%, rgba(101, 255, 186, 0.12), transparent 18%),
      linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(7, 10, 18, 0.28));
    filter: saturate(1) brightness(1);
  }
  30% {
    opacity: 1;
    background:
      radial-gradient(circle at 50% 58%, rgba(96, 255, 138, 0.42), transparent 30%),
      radial-gradient(circle at 50% 70%, rgba(126, 255, 174, 0.24), transparent 42%),
      radial-gradient(circle at 15% 14%, rgba(132, 255, 171, 0.26), transparent 24%),
      radial-gradient(circle at 80% 86%, rgba(114, 255, 162, 0.22), transparent 28%),
      linear-gradient(180deg, rgba(88, 255, 140, 0.22), rgba(36, 130, 72, 0.16)),
      linear-gradient(0deg, rgba(118, 255, 170, 0.1), rgba(118, 255, 170, 0.1));
    filter: saturate(1.45) brightness(1.18);
    box-shadow:
      inset 0 0 180px rgba(86, 255, 131, 0.22),
      inset 0 0 320px rgba(86, 255, 131, 0.12);
  }
  55% {
    opacity: 1;
    background:
      radial-gradient(circle at 50% 58%, rgba(96, 255, 138, 0.28), transparent 36%),
      radial-gradient(circle at 50% 70%, rgba(126, 255, 174, 0.16), transparent 46%),
      radial-gradient(circle at 15% 14%, rgba(132, 255, 171, 0.18), transparent 28%),
      radial-gradient(circle at 80% 86%, rgba(114, 255, 162, 0.16), transparent 30%),
      linear-gradient(180deg, rgba(88, 255, 140, 0.12), rgba(36, 130, 72, 0.1));
    filter: saturate(1.2) brightness(1.08);
  }
  100% {
    opacity: 1;
    background:
      radial-gradient(circle at 50% 58%, rgba(126, 255, 174, 0), transparent 36%),
      radial-gradient(circle at 50% 70%, rgba(120, 255, 168, 0), transparent 46%),
      radial-gradient(circle at 15% 14%, rgba(255, 91, 248, 0.22), transparent 18%),
      radial-gradient(circle at 80% 86%, rgba(101, 255, 186, 0.12), transparent 18%),
      linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(7, 10, 18, 0.28));
    filter: saturate(1) brightness(1);
    box-shadow: none;
  }
}

@keyframes cleansePlant {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  40% {
    transform: translateY(-10px) scale(1.1);
    filter: brightness(1.25);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes buttonShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

@keyframes rescuePulse {
  0% {
    transform: scale(1);
  }
  28% {
    transform: scale(1.12);
  }
  56% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rescueRipple {
  0% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(0.18);
  }
  22% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.95);
  }
}

@keyframes coreHit {
  0% {
    transform: translateX(0) scale(1);
  }
  18% {
    transform: translateX(-9px) rotate(-5deg) scale(0.92);
  }
  36% {
    transform: translateX(10px) rotate(5deg) scale(1.08);
  }
  58% {
    transform: translateX(-6px) rotate(-3deg) scale(0.98);
  }
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes urgentTimer {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

@media (max-width: 900px) {
  .start-content,
  .result-panel {
    width: min(92vw, 920px);
    padding: 26px 22px 30px;
  }

  .panel-topline {
    flex-direction: column;
  }

  .panel-notes {
    flex-direction: column;
    align-items: center;
  }
}
