:root {
  --ink: #15251f;
  --muted: #61746b;
  --paper: #f7f2e7;
  --panel: #fffaf0;
  --leaf: #2f6b4f;
  --moss: #88a65e;
  --sun: #e3aa32;
  --rust: #9c5238;
  --ocean: #2f7b9a;
  --deep: #1f3540;
  --line: rgba(35, 55, 44, 0.16);
  --shadow: 0 18px 46px rgba(31, 53, 64, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Comic Sans MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(227, 170, 50, 0.12), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(47, 123, 154, 0.12), transparent 30%),
    linear-gradient(135deg, #edf3e8 0%, #faf7ee 48%, #e4efec 100%);
}

button,
input,
select {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 12px;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: 12px;
}

.mission-panel,
.game-board {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.mission-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  border-radius: 18px;
  overflow: hidden;
}

.brand {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--deep);
  border-radius: 50%;
  background: var(--sun);
  color: var(--deep);
  font-weight: 900;
  letter-spacing: 1px;
}

.brand .brand-mark {
  width: 54px;
  height: 54px;
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.05;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-btn,
.mission-card,
.stats-card,
.question-card,
.lab-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.mode-btn {
  min-height: 70px;
  padding: 9px;
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mode-btn strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.mode-btn span {
  color: var(--muted);
  font-size: 11px;
}

.mode-btn.active {
  border-color: var(--leaf);
  background: #e8f1df;
  box-shadow: inset 5px 0 0 var(--leaf);
}

.mission-card,
.stats-card,
.save-card {
  padding: 11px;
  border-radius: 14px;
}

.save-card {
  padding: 8px;
}

.mission-card h2,
.stats-card h2,
.save-card h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.save-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.save-card p {
  display: none;
}

.cloud-status {
  display: grid;
  grid-template-columns: 11px 1fr;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  margin-bottom: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(31, 53, 64, 0.12);
  border-radius: 11px;
  background: rgba(237, 245, 230, 0.74);
}

.cloud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa7a0;
  box-shadow: 0 0 0 4px rgba(154, 167, 160, 0.16);
}

.cloud-status strong,
.cloud-status small {
  display: block;
}

.cloud-status strong {
  font-size: 12px;
  line-height: 1.2;
}

.cloud-status small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.cloud-status.ok .cloud-dot {
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.18);
}

.cloud-status.syncing .cloud-dot {
  background: var(--sun);
  animation: nodePulse 1.1s ease-in-out infinite;
}

.cloud-status.warn .cloud-dot {
  background: var(--rust);
  box-shadow: 0 0 0 4px rgba(156, 82, 56, 0.16);
}

.save-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.select-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.select-row label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select,
input {
  width: 100%;
  border: 1px solid rgba(31, 53, 64, 0.22);
  border-radius: 10px;
  background: #fffdf7;
  color: var(--ink);
}

select {
  padding: 10px;
}

input {
  padding: 14px 16px;
  font-size: 26px;
}

.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn {
  padding: 13px 18px;
  background: var(--deep);
  color: #fffaf0;
}

.primary-btn:hover {
  background: #172932;
}

.ghost-btn {
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.stats-grid div {
  padding: 8px 6px;
  border-radius: 12px;
  background: #edf5e6;
  text-align: center;
}

.stats-grid span {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.stats-grid small {
  color: var(--muted);
  font-size: 12px;
}

.game-board {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 52px minmax(230px, 0.86fr) minmax(300px, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 14px;
  border-radius: 22px;
}

.game-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 53, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 53, 64, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
}

.topbar,
.scene-stage,
.question-card,
.workbench,
.lab-grid,
.particle-layer,
.discovery-toast {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  min-height: 0;
  margin-bottom: 0;
}

.topbar h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.progress-wrap {
  width: 260px;
  padding-top: 6px;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.progress {
  width: 100%;
  height: 12px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 53, 64, 0.12);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moss), var(--sun));
  transition: width 220ms ease;
}

.orbit-map {
  position: absolute;
  right: 30px;
  top: 96px;
  width: 230px;
  height: 230px;
  border: 2px dashed rgba(31, 53, 64, 0.18);
  border-radius: 50%;
  display: none;
}

.planet {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 3px solid rgba(31, 53, 64, 0.7);
  border-radius: 50%;
}

.volcano { left: 10px; top: 92px; background: #d86f3d; }
.ocean { left: 92px; top: 10px; background: #3f9dc2; }
.fossil { right: 8px; top: 92px; background: #d9bf72; }
.space { left: 92px; bottom: 8px; background: #35446e; }

.probe {
  position: absolute;
  left: 102px;
  top: 102px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 8px rgba(227, 170, 50, 0.18);
  transition: transform 280ms ease;
}

.scene-stage {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(460px, 1.28fr);
  gap: 10px;
  min-height: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 253, 247, 0.92), rgba(237, 245, 230, 0.66)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(31, 53, 64, 0.04) 26px 27px);
}

.scene-copy {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px;
}

.scene-copy span {
  display: inline-block;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--deep);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 900;
}

.scene-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1.18;
}

.scene-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.field-notes {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.field-notes div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: start;
  padding: 5px 8px;
  border: 1px solid rgba(31, 53, 64, 0.1);
  border-radius: 9px;
  background: rgba(255, 250, 240, 0.72);
}

.field-notes b {
  color: var(--rust);
  font-size: 12px;
  font-weight: 950;
}

.field-notes em {
  color: var(--deep);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.observe-btn {
  margin-top: 8px;
  padding: 8px 11px;
  border: 2px solid var(--deep);
  border-radius: 999px;
  background: #f7cf55;
  color: var(--deep);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(31, 53, 64, 0.22);
}

.observe-btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(31, 53, 64, 0.22);
}

.route-map {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-top: 9px;
}

.route-node {
  position: relative;
  height: 16px;
  border: 2px solid rgba(31, 53, 64, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.86);
}

.route-node.done {
  border-color: var(--leaf);
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(136, 166, 94, 0.18);
}

.route-node.active {
  border-color: var(--rust);
  background: var(--sun);
  animation: nodePulse 1.2s ease-in-out infinite;
}

.scene-world {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(47, 123, 154, 0.08), rgba(227, 170, 50, 0.08));
}

.scene-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96) brightness(1.04);
}

.scene-world::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.04), rgba(255, 250, 240, 0.14));
}

.field-line {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 53, 64, 0.12);
  transform-origin: left center;
  display: none;
}

.line-one { top: 58px; transform: rotate(-8deg); }
.line-two { bottom: 72px; transform: rotate(7deg); }

.steam,
.bubble,
.bone {
  position: absolute;
  display: block;
  opacity: 0;
}

.steam {
  width: 18px;
  height: 42px;
  border: 3px solid rgba(255, 250, 240, 0.72);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  animation: floatSteam 2.4s ease-in-out infinite;
}

.steam-one { left: 55%; top: 28px; }
.steam-two { left: 62%; top: 44px; animation-delay: 0.7s; }

.bubble {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 250, 240, 0.75);
  border-radius: 50%;
  animation: riseBubble 2.6s ease-in infinite;
}

.bubble-one { left: 62%; bottom: 48px; }
.bubble-two { left: 71%; bottom: 38px; animation-delay: 0.8s; }

.bone {
  width: 56px;
  height: 10px;
  border-radius: 999px;
  background: #f2dfaa;
  box-shadow: -18px 0 0 -2px #f2dfaa, 18px 0 0 -2px #f2dfaa;
  animation: boneScan 2.8s ease-in-out infinite;
}

.bone-one { left: 58%; top: 72px; transform: rotate(-16deg); }
.bone-two { left: 66%; top: 112px; transform: rotate(14deg); animation-delay: 0.55s; }

.scene-sticker,
.science-scan {
  position: absolute;
  display: block;
  z-index: 1;
}

.scene-sticker {
  border: 4px solid var(--deep);
  background: #fffaf0;
  box-shadow: 0 8px 0 rgba(31, 53, 64, 0.08);
  display: none;
}

.scene-sticker::before,
.scene-sticker::after,
.science-scan::before,
.science-scan::after {
  content: "";
  position: absolute;
  display: block;
}

.sticker-one {
  left: 32px;
  top: 26px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  transform: rotate(-5deg);
}

.sticker-two {
  right: 168px;
  top: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.sticker-three {
  right: 24px;
  bottom: 30px;
  width: 64px;
  height: 42px;
  border-radius: 24px;
}

.science-scan {
  left: 22%;
  right: 14%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  transform-origin: left center;
  opacity: 0.45;
}

.scan-one { top: 52px; transform: rotate(-8deg); }
.scan-two { bottom: 74px; transform: rotate(6deg); }

.game-board.observe .scene-sticker,
.game-board.observe .science-scan {
  animation: observePop 900ms ease-in-out 2;
}

.game-board.observe .science-scan {
  animation-name: scanSweep;
}

.landform,
.vehicle,
.sensor,
.energy-core,
.mascot {
  position: absolute;
  z-index: 2;
}

.landform,
.vehicle {
  opacity: 0;
  pointer-events: none;
}

.landform {
  left: 46%;
  bottom: 42px;
  width: 142px;
  height: 112px;
  transform: translateX(-50%);
  background: #b6532f;
  clip-path: polygon(48% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -20px 0 rgba(0, 0, 0, 0.14);
  transition: all 260ms ease;
}

.vehicle {
  right: 46px;
  bottom: 52px;
  width: 112px;
  height: 42px;
  border: 4px solid var(--deep);
  border-radius: 28px 28px 18px 18px;
  background: #e3aa32;
  animation: vehicleBob 2.8s ease-in-out infinite;
}

.vehicle::before,
.vehicle::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--deep);
  border-radius: 50%;
  background: #fffaf0;
}

.vehicle::before { left: 19px; }
.vehicle::after { right: 19px; }

.sensor {
  left: 24px;
  bottom: 20px;
  width: 48px;
  height: 76px;
  border: 4px solid var(--deep);
  border-radius: 18px 18px 10px 10px;
  background: #fffaf0;
}

.sensor::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--sun), var(--rust));
  transform-origin: bottom;
  transform: scaleY(var(--charge, 0.18));
  transition: transform 240ms ease;
}

.mascot {
  left: 96px;
  bottom: 18px;
  width: 62px;
  height: 88px;
  transform-origin: bottom center;
  animation: mascotIdle 2.3s ease-in-out infinite;
  z-index: 2;
}

.mascot .helmet {
  position: absolute;
  left: 12px;
  top: 0;
  width: 44px;
  height: 44px;
  border: 4px solid var(--deep);
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 35%, rgba(255,255,255,0.9) 0 6px, transparent 7px),
    #cfe7e3;
}

.mascot .body {
  position: absolute;
  left: 17px;
  bottom: 0;
  width: 34px;
  height: 52px;
  border: 4px solid var(--deep);
  border-radius: 20px 20px 12px 12px;
  background: #fffaf0;
}

.mascot .body::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sun);
}

.mascot .arm {
  position: absolute;
  top: 55px;
  width: 28px;
  height: 9px;
  border: 3px solid var(--deep);
  border-radius: 999px;
  background: #fffaf0;
}

.mascot .arm.left {
  left: 0;
  transform: rotate(26deg);
}

.mascot .arm.right {
  right: 0;
  transform: rotate(-26deg);
}

.mascot.wave .arm.right {
  animation: armWave 520ms ease-in-out 2;
}

.energy-core {
  right: 22px;
  top: 18px;
  width: 62px;
  height: 62px;
  border: 4px solid var(--deep);
  border-radius: 18px;
  background: #fffaf0;
  overflow: hidden;
  transform: rotate(5deg);
}

.energy-core span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--charge-pct, 0%);
  background: linear-gradient(180deg, #f7d46b, var(--sun));
  transition: height 260ms ease;
}

.demo-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  max-width: 520px;
  padding: 14px 16px;
  border: 3px solid rgba(31, 53, 64, 0.82);
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 18px 36px rgba(31, 53, 64, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
}

.demo-panel span {
  display: inline-block;
  margin-bottom: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--deep);
  color: #fffaf0;
  font-size: 11px;
  font-weight: 950;
}

.demo-panel strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 20px;
}

.demo-panel ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
}

.demo-panel li {
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.game-board.observe .demo-panel {
  animation: demoCard 5.6s ease both;
}

.game-board.theme-volcano .steam { opacity: 1; }

.game-board.theme-volcano .sticker-one {
  background: linear-gradient(180deg, #fffaf0 0 38%, #f08a45 39% 100%);
}

.game-board.theme-volcano .sticker-one::before {
  left: 15px;
  bottom: 8px;
  width: 20px;
  height: 26px;
  border-radius: 50% 50% 42% 42%;
  background: #f7cf55;
}

.game-board.theme-volcano .sticker-two {
  background: #f08a45;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.game-board.theme-volcano .sticker-three {
  border-color: transparent;
  background:
    radial-gradient(circle at 25% 62%, #fffaf0 0 15px, transparent 16px),
    radial-gradient(circle at 55% 40%, #fffaf0 0 18px, transparent 19px),
    radial-gradient(circle at 78% 65%, #fffaf0 0 13px, transparent 14px);
  box-shadow: none;
}

.game-board.theme-ocean .scene-world {
  background: linear-gradient(180deg, rgba(47, 123, 154, 0.56), rgba(31, 53, 64, 0.3));
}

.game-board.theme-ocean .landform {
  left: 48%;
  bottom: 36px;
  width: 176px;
  height: 58px;
  border-radius: 60px;
  clip-path: none;
  background: #2f7b9a;
}

.game-board.theme-ocean .bubble { opacity: 1; }

.game-board.theme-ocean .sticker-one {
  height: 34px;
  border-radius: 50% 45% 45% 50%;
  background: #f7cf55;
}

.game-board.theme-ocean .sticker-one::after {
  right: -18px;
  top: 6px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid var(--deep);
}

.game-board.theme-ocean .sticker-two {
  border-color: #fffaf0;
  background: transparent;
  box-shadow: 0 0 0 10px rgba(255, 250, 240, 0.18);
}

.game-board.theme-ocean .sticker-three {
  background: linear-gradient(90deg, #e95d48 0 18%, #fffaf0 18% 30%, #e95d48 30% 50%, #fffaf0 50% 64%, #e95d48 64%);
}

.game-board.theme-fossil .scene-world {
  background: linear-gradient(180deg, rgba(217, 191, 114, 0.28), rgba(247, 242, 231, 0.72));
}

.game-board.theme-fossil .landform {
  width: 170px;
  height: 78px;
  border-radius: 50% 50% 20px 20px;
  clip-path: none;
  background: #d9bf72;
}

.game-board.theme-fossil .bone { opacity: 1; }

.game-board.theme-fossil .sticker-one,
.game-board.theme-fossil .sticker-three {
  height: 18px;
  border-radius: 999px;
  background: #f2dfaa;
}

.game-board.theme-fossil .sticker-one::before,
.game-board.theme-fossil .sticker-one::after,
.game-board.theme-fossil .sticker-three::before,
.game-board.theme-fossil .sticker-three::after {
  top: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f2dfaa;
}

.game-board.theme-fossil .sticker-one::before,
.game-board.theme-fossil .sticker-three::before { left: -8px; }
.game-board.theme-fossil .sticker-one::after,
.game-board.theme-fossil .sticker-three::after { right: -8px; }

.game-board.theme-fossil .sticker-two {
  width: 52px;
  height: 34px;
  border-radius: 45% 55% 45% 55%;
  background: #d9bf72;
}

.game-board.theme-space .scene-world {
  background:
    radial-gradient(circle at 72% 30%, rgba(227, 170, 50, 0.42), transparent 12%),
    linear-gradient(180deg, #263755, #1f3540);
}

.game-board.theme-space .landform {
  left: 54%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  clip-path: none;
  background: #53627e;
}

.game-board.theme-space .vehicle {
  width: 56px;
  height: 104px;
  right: 72px;
  bottom: 44px;
  border-radius: 28px 28px 16px 16px;
  background: #fffaf0;
}

.game-board.theme-space .vehicle::before {
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
}

.game-board.theme-space .vehicle::after {
  left: 20px;
  right: auto;
  top: auto;
  bottom: -18px;
  width: 12px;
  height: 26px;
  border: 0;
  border-radius: 0 0 50% 50%;
  background: var(--rust);
}

.game-board.theme-space .sticker-one {
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 35%, #fffaf0 0 7px, transparent 8px),
    #53627e;
}

.game-board.theme-space .sticker-two,
.game-board.theme-space .sticker-three {
  border: 0;
  background: #f7cf55;
  clip-path: polygon(50% 0, 62% 38%, 100% 38%, 70% 60%, 82% 100%, 50% 74%, 18% 100%, 30% 60%, 0 38%, 38% 38%);
  box-shadow: 0 0 18px rgba(247, 207, 85, 0.7);
}

.game-board.theme-micro .scene-world {
  background:
    repeating-radial-gradient(circle at 35% 45%, rgba(47, 107, 79, 0.12) 0 8px, transparent 8px 30px),
    linear-gradient(180deg, rgba(237, 245, 230, 0.9), rgba(255, 250, 240, 0.74));
}

.game-board.theme-micro .landform {
  width: 150px;
  height: 150px;
  border-radius: 48% 52% 44% 56%;
  clip-path: none;
  background: rgba(136, 166, 94, 0.72);
}

.game-board.theme-micro .sticker-one,
.game-board.theme-micro .sticker-two,
.game-board.theme-micro .sticker-three {
  border-radius: 48% 52% 44% 56%;
  background:
    radial-gradient(circle at 60% 40%, rgba(255, 250, 240, 0.95) 0 7px, transparent 8px),
    rgba(136, 166, 94, 0.72);
}

.game-board.theme-weather .scene-world {
  background: linear-gradient(180deg, rgba(176, 210, 218, 0.9), rgba(255, 250, 240, 0.6));
}

.game-board.theme-weather .sticker-one,
.game-board.theme-weather .sticker-three {
  border-color: transparent;
  background:
    radial-gradient(circle at 25% 64%, #fffaf0 0 16px, transparent 17px),
    radial-gradient(circle at 52% 42%, #fffaf0 0 20px, transparent 21px),
    radial-gradient(circle at 76% 66%, #fffaf0 0 14px, transparent 15px);
  box-shadow: none;
}

.game-board.theme-weather .sticker-two {
  border: 0;
  background: #f7cf55;
  clip-path: polygon(40% 0, 78% 0, 58% 38%, 86% 38%, 32% 100%, 48% 54%, 22% 54%);
}

.game-board.theme-mineral .scene-world {
  background: linear-gradient(180deg, rgba(217, 191, 114, 0.35), rgba(31, 53, 64, 0.14));
}

.game-board.theme-mineral .sticker-one,
.game-board.theme-mineral .sticker-two,
.game-board.theme-mineral .sticker-three {
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(135deg, #77c6d3, #f7cf55);
  clip-path: polygon(50% 0, 100% 36%, 78% 100%, 22% 100%, 0 36%);
}

.game-board.theme-eco .scene-world {
  background: linear-gradient(180deg, rgba(136, 166, 94, 0.5), rgba(47, 107, 79, 0.16));
}

.game-board.theme-eco .sticker-one,
.game-board.theme-eco .sticker-two {
  border-radius: 70% 0 70% 0;
  background: #88a65e;
  transform: rotate(32deg);
}

.game-board.theme-eco .sticker-three {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f7cf55 0 8px, transparent 9px),
    conic-gradient(#e95d48 0 25%, #77c6d3 0 50%, #f7cf55 0 75%, #88a65e 0);
}

.game-board.theme-ice .scene-world {
  background:
    linear-gradient(180deg, rgba(199, 231, 236, 0.92), rgba(255, 250, 240, 0.72));
}

.game-board.theme-ice .landform {
  width: 190px;
  height: 74px;
  border-radius: 18px 18px 42px 42px;
  clip-path: none;
  background: #c7e7ec;
}

.game-board.theme-ice .sticker-one {
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf0, #77c6d3);
}

.game-board.theme-ice .sticker-one::before,
.game-board.theme-ice .sticker-one::after {
  left: 8px;
  right: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 53, 64, 0.24);
}

.game-board.theme-ice .sticker-one::before { top: 17px; }
.game-board.theme-ice .sticker-one::after { bottom: 17px; }

.game-board.theme-ice .sticker-two,
.game-board.theme-ice .sticker-three {
  border-radius: 50%;
  background: rgba(119, 198, 211, 0.6);
}

.game-board.theme-quantum .scene-world {
  background:
    repeating-radial-gradient(circle at 46% 46%, rgba(247, 207, 85, 0.13) 0 5px, transparent 5px 26px),
    linear-gradient(180deg, #263755, #1f3540);
}

.game-board.theme-quantum .landform {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  clip-path: none;
  background: rgba(119, 198, 211, 0.38);
  border: 3px solid rgba(255, 250, 240, 0.38);
}

.game-board.theme-quantum .sticker-one,
.game-board.theme-quantum .sticker-two,
.game-board.theme-quantum .sticker-three {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f7cf55 0 7px, transparent 8px),
    transparent;
  box-shadow: inset 0 0 0 4px rgba(255, 250, 240, 0.82);
}

.question-card.shake {
  animation: dataShake 260ms ease;
}

.game-board.alarm .scene-world {
  box-shadow: inset 0 0 0 999px rgba(182, 83, 47, 0.11);
}

.game-board.celebrate .scene-stage {
  box-shadow:
    inset 0 0 0 999px rgba(227, 170, 50, 0.08),
    0 20px 56px rgba(47, 107, 79, 0.22);
}

.scene-stage.pulse .energy-core {
  animation: corePulse 420ms ease;
}

.particle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.particle {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sun);
  box-shadow: 0 0 16px rgba(227, 170, 50, 0.85);
  animation: particleFly 680ms ease-out forwards;
}

.reward-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f7cf55;
  box-shadow: 0 0 18px rgba(247, 207, 85, 0.9);
  animation: rewardSpark 760ms ease-out forwards;
}

.discovery-toast {
  position: absolute;
  right: 32px;
  bottom: 238px;
  width: 260px;
  padding: 14px;
  border: 2px solid var(--deep);
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 18px 36px rgba(31, 53, 64, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) rotate(1deg);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 5;
}

.discovery-toast.show {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.discovery-toast span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 900;
}

.discovery-toast strong,
.discovery-toast small {
  display: block;
}

.discovery-toast strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.discovery-toast small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(620px, 1.55fr) minmax(260px, 0.58fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.question-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.82);
}

.question-card.celebrate {
  box-shadow:
    0 0 0 2px rgba(227, 170, 50, 0.46),
    0 22px 48px rgba(47, 107, 79, 0.18);
}

.mission-brief {
  display: grid;
  grid-template-columns: 52px 1fr 86px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 9px;
  border-radius: 14px;
  background: #edf5e6;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--deep);
  border-radius: 50%;
  background: var(--sun);
}

.avatar span {
  width: 24px;
  height: 18px;
  border: 3px solid var(--deep);
  border-radius: 12px 12px 8px 8px;
  background: #fffaf0;
}

.mission-brief strong,
.mission-brief small {
  display: block;
}

.mission-brief strong {
  font-size: 15px;
}

.mission-brief small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.attempt-lights {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.attempt-lights span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(31, 53, 64, 0.35);
  border-radius: 50%;
  background: #fffaf0;
}

.attempt-lights span.used {
  border-color: var(--rust);
  background: var(--rust);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.question-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f1df;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.science-fact {
  min-height: 24px;
  margin-bottom: 8px;
  color: var(--rust);
  font-weight: 800;
}

#questionText {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 88px;
  margin-bottom: 12px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.28;
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.feedback {
  min-height: 26px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.feedback.ok {
  color: var(--leaf);
}

.feedback.warn {
  color: var(--rust);
}

.success-burst {
  position: absolute;
  right: 22px;
  top: 180px;
  width: min(260px, calc(100% - 44px));
  padding: 14px 16px;
  border: 2px solid var(--deep);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(237, 245, 230, 0.96)),
    #fffaf0;
  box-shadow: 0 18px 36px rgba(31, 53, 64, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.92) rotate(-1.5deg);
  transform-origin: right top;
  z-index: 3;
}

.success-burst.show {
  animation: rewardPop 1250ms ease forwards;
}

.success-burst span {
  display: inline-grid;
  place-items: center;
  min-width: 74px;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--deep);
  font-size: 13px;
  font-weight: 950;
}

.success-burst strong,
.success-burst small {
  display: block;
}

.success-burst strong {
  margin-bottom: 4px;
  color: var(--leaf);
  font-size: 18px;
}

.success-burst small {
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.briefing-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(21, 37, 31, 0.58), rgba(31, 53, 64, 0.44));
  backdrop-filter: blur(10px);
}

.briefing-overlay.hidden {
  display: none;
}

.briefing-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  width: min(1040px, calc(100vw - 36px));
  height: min(620px, calc(100vh - 36px));
  min-height: 0;
  padding: 18px;
  border: 4px solid var(--deep);
  border-radius: 22px;
  background: #fffaf0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: briefingEnter 260ms ease-out both;
}

.briefing-visual {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  border: 3px solid rgba(31, 53, 64, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(119, 198, 211, 0.25), rgba(247, 207, 85, 0.12)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(31, 53, 64, 0.06) 28px 30px);
}

.briefing-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96) brightness(1.04);
}

.briefing-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  height: auto;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.02), rgba(255, 250, 240, 0.18));
}

.briefing-sun {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 64px;
  height: 64px;
  border: 4px solid var(--deep);
  border-radius: 50%;
  background: #f7cf55;
  box-shadow: 0 0 0 12px rgba(247, 207, 85, 0.22);
  display: none;
}

.briefing-path {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 72px;
  height: 8px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--deep) 0 16px, transparent 16px 28px);
  opacity: 0.35;
  display: none;
}

.briefing-object {
  position: absolute;
  display: block;
  border: 4px solid var(--deep);
  background: #fffaf0;
  animation: objectFloat 2.4s ease-in-out infinite;
  display: none;
}

.object-a {
  left: 48px;
  bottom: 92px;
  width: 78px;
  height: 104px;
  border-radius: 26px 26px 14px 14px;
}

.object-b {
  left: 45%;
  bottom: 92px;
  width: 120px;
  height: 110px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #b6532f;
  animation-delay: 0.25s;
}

.object-c {
  right: 54px;
  bottom: 102px;
  width: 108px;
  height: 54px;
  border-radius: 999px;
  background: #f7cf55;
  animation-delay: 0.5s;
}

.briefing-visual.theme-ocean {
  background: linear-gradient(180deg, rgba(119, 198, 211, 0.8), rgba(31, 53, 64, 0.55));
}

.briefing-visual.theme-ocean::before { background: rgba(47, 123, 154, 0.62); }
.briefing-visual.theme-ocean .object-b { clip-path: none; border-radius: 999px; background: #2f7b9a; }
.briefing-visual.theme-ocean .object-c { height: 38px; border-radius: 50% 45% 45% 50%; }

.briefing-visual.theme-fossil {
  background: linear-gradient(180deg, rgba(217, 191, 114, 0.48), rgba(255, 250, 240, 0.9));
}

.briefing-visual.theme-fossil::before { background: rgba(217, 191, 114, 0.6); }
.briefing-visual.theme-fossil .object-b { clip-path: none; height: 46px; border-radius: 999px; background: #f2dfaa; }

.briefing-visual.theme-space,
.briefing-visual.theme-quantum {
  background:
    radial-gradient(circle at 30% 26%, #f7cf55 0 3px, transparent 4px),
    radial-gradient(circle at 68% 18%, #fffaf0 0 2px, transparent 3px),
    radial-gradient(circle at 72% 52%, #f7cf55 0 4px, transparent 5px),
    linear-gradient(180deg, #263755, #1f3540);
}

.briefing-visual.theme-space::before,
.briefing-visual.theme-quantum::before { background: rgba(83, 98, 126, 0.62); }
.briefing-visual.theme-space .object-b,
.briefing-visual.theme-quantum .object-b { clip-path: none; border-radius: 50%; background: #53627e; }
.briefing-visual.theme-space .object-c { width: 64px; height: 132px; border-radius: 34px 34px 14px 14px; background: #fffaf0; }

.briefing-visual.theme-micro {
  background:
    repeating-radial-gradient(circle at 40% 44%, rgba(136, 166, 94, 0.22) 0 10px, transparent 10px 36px),
    linear-gradient(180deg, rgba(237, 245, 230, 0.96), rgba(255, 250, 240, 0.82));
}

.briefing-visual.theme-micro .object-b,
.briefing-visual.theme-micro .object-c { clip-path: none; border-radius: 48% 52% 44% 56%; background: rgba(136, 166, 94, 0.72); }

.briefing-visual.theme-weather {
  background: linear-gradient(180deg, rgba(176, 210, 218, 0.9), rgba(255, 250, 240, 0.7));
}

.briefing-visual.theme-weather .object-b { clip-path: none; border-radius: 999px; background: #fffaf0; }
.briefing-visual.theme-weather .object-c { border: 0; background: #f7cf55; clip-path: polygon(40% 0, 78% 0, 58% 38%, 86% 38%, 32% 100%, 48% 54%, 22% 54%); }

.briefing-visual.theme-mineral .object-b,
.briefing-visual.theme-mineral .object-c {
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(135deg, #77c6d3, #f7cf55);
  clip-path: polygon(50% 0, 100% 36%, 78% 100%, 22% 100%, 0 36%);
}

.briefing-visual.theme-eco .object-b,
.briefing-visual.theme-eco .object-c {
  border-radius: 70% 0 70% 0;
  background: #88a65e;
  transform: rotate(30deg);
}

.briefing-visual.theme-ice {
  background: linear-gradient(180deg, rgba(199, 231, 236, 0.95), rgba(255, 250, 240, 0.8));
}

.briefing-visual.theme-ice::before { background: rgba(119, 198, 211, 0.36); }
.briefing-visual.theme-ice .object-b { clip-path: none; border-radius: 20px; background: linear-gradient(180deg, #fffaf0, #77c6d3); }

.briefing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 10px 8px 10px 0;
}

.briefing-copy > span {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--deep);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 950;
}

.briefing-copy h2 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.05;
}

.briefing-copy p {
  color: var(--deep);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.55;
}

.briefing-grid {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}

.briefing-grid div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(31, 53, 64, 0.12);
  border-radius: 10px;
  background: #edf5e6;
}

.briefing-grid b {
  color: var(--rust);
  font-size: 13px;
}

.briefing-grid span {
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.82fr) minmax(0, 0.82fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
  margin-top: 0;
}

.lab-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px;
  border-radius: 16px;
  overflow: hidden;
}

.lab-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

#stageList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  margin: 0;
  padding-left: 18px;
}

#stageList li {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

#stageList li.done {
  color: var(--leaf);
}

.monster-list,
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.monster,
.science-card {
  padding: 6px 7px;
  border-radius: 10px;
  background: #edf5e6;
  color: var(--deep);
  font-size: 11px;
  font-weight: 900;
}

button.science-card {
  border: 0;
  cursor: pointer;
}

button.science-card:hover {
  background: #dfeeda;
}

.science-card.locked {
  background: rgba(31, 53, 64, 0.08);
  color: var(--muted);
}

.mini-btn {
  width: 100%;
  margin-top: auto;
  padding: 8px;
  border: 1px solid rgba(31, 53, 64, 0.18);
  border-radius: 10px;
  background: #fffdf7;
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.archive-overlay {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 53, 64, 0.46);
  backdrop-filter: blur(8px);
}

.archive-overlay.hidden {
  display: none;
}

.archive-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  width: min(1080px, calc(100vw - 36px));
  height: min(680px, calc(100vh - 36px));
  padding: 18px;
  border: 3px solid var(--deep);
  border-radius: 22px;
  background: #fffaf0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.archive-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.archive-head span {
  display: inline-block;
  margin-bottom: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--deep);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 950;
}

.archive-head h2 {
  margin: 0;
  font-size: 26px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.archive-card {
  padding: 14px;
  border: 1px solid rgba(31, 53, 64, 0.14);
  border-radius: 16px;
  background: #f9f6ec;
}

.archive-card.active {
  border-color: var(--leaf);
  box-shadow: inset 0 0 0 2px rgba(47, 107, 79, 0.18);
}

.archive-card span {
  color: var(--rust);
  font-size: 12px;
  font-weight: 950;
}

.archive-card h3 {
  margin: 6px 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.archive-card p,
.archive-card li,
.archive-empty {
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.archive-card ol {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
}

@keyframes floatSteam {
  0% { transform: translateY(12px) scale(0.85); opacity: 0; }
  35% { opacity: 0.85; }
  100% { transform: translateY(-24px) scale(1.12); opacity: 0; }
}

@keyframes riseBubble {
  0% { transform: translateY(20px); opacity: 0; }
  25% { opacity: 0.78; }
  100% { transform: translateY(-86px); opacity: 0; }
}

@keyframes boneScan {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

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

@keyframes mascotIdle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes armWave {
  0%, 100% { transform: rotate(-26deg); }
  50% { transform: rotate(-64deg); }
}

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

@keyframes corePulse {
  0% { transform: rotate(5deg) scale(1); }
  45% { transform: rotate(5deg) scale(1.08); }
  100% { transform: rotate(5deg) scale(1); }
}

@keyframes particleFly {
  0% { transform: translate(0, 0) scale(0.7); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.25); opacity: 0; }
}

@keyframes rewardSpark {
  0% { transform: translate(0, 0) scale(0.45); opacity: 1; }
  70% { opacity: 0.9; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0.08); opacity: 0; }
}

@keyframes rewardPop {
  0% { opacity: 0; transform: translateY(18px) scale(0.86) rotate(-2deg); }
  14% { opacity: 1; transform: translateY(-4px) scale(1.05) rotate(1deg); }
  24% { transform: translateY(0) scale(1) rotate(0deg); }
  78% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.98) rotate(1deg); }
}

@keyframes observePop {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  45% { transform: translateY(-10px) scale(1.08); filter: brightness(1.18); }
}

@keyframes scanSweep {
  0% { opacity: 0.25; transform: translateX(-24px) rotate(-7deg); }
  45% { opacity: 0.95; transform: translateX(32px) rotate(2deg); }
  100% { opacity: 0.35; transform: translateX(0) rotate(6deg); }
}

@keyframes briefingEnter {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes objectFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes demoCard {
  0% { opacity: 0; transform: translateY(16px) scale(0.98); }
  4% { opacity: 1; transform: translateY(0) scale(1); }
  86% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.99); }
}

@keyframes dataShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-9px); }
  50% { transform: translateX(7px); }
  75% { transform: translateX(-4px); }
}

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

@media (max-width: 1020px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .question-card {
    width: 100%;
  }

  .orbit-map {
    display: none;
  }

  .scene-stage,
  .answer-row,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .field-notes {
    grid-template-columns: 1fr;
  }

  .success-burst {
    right: 16px;
    top: 190px;
  }

  .briefing-panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .briefing-visual {
    min-height: 260px;
  }

  .scene-world {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
