:root {
  --sea-deep: #0b6e7a;
  --sea: #1a9aa8;
  --sea-light: #7ed4de;
  --sand: #f2d7a4;
  --sand-dark: #d4a85a;
  --coral: #e85d4c;
  --coral-dark: #c94436;
  --leaf: #3d9b5f;
  --ink: #1a2f36;
  --paper: #fff8ec;
  --foam: rgba(255, 255, 255, 0.85);
  --shadow: 0 12px 32px rgba(11, 70, 80, 0.28);
  --radius: 22px;
  --font-display: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #7ec8d4 0%, #3aafbf 38%, #1a8a98 100%);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
}

.sky {
  position: fixed;
  inset: 0 0 55% 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.55) 0 4%, transparent 5%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.4) 0 3%, transparent 4%),
    linear-gradient(180deg, #b8e8f0 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.waves {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(180deg, transparent, rgba(8, 70, 82, 0.35));
  pointer-events: none;
  z-index: 0;
  animation: wave-shift 8s ease-in-out infinite alternate;
}

@keyframes wave-shift {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.screen {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100dvh;
  padding: 20px 20px 40px;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
}

/* —— 首页 —— */
.screen-home {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-stage {
  width: min(520px, 100%);
  animation: rise-in 0.7s ease-out both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4.2rem);
  letter-spacing: 0.04em;
  color: var(--paper);
  text-shadow: 0 4px 0 rgba(11, 70, 80, 0.25), 0 10px 30px rgba(11, 70, 80, 0.35);
  line-height: 1.1;
}

.home-title {
  margin: 10px 0 0;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 700;
  color: #0d4650;
}

.home-lead {
  margin: 12px auto 0;
  max-width: 32em;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(13, 50, 58, 0.88);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(180deg, #ff7a66, var(--coral));
  color: #fff;
  box-shadow: 0 8px 0 var(--coral-dark), var(--shadow);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--foam);
  color: var(--sea-deep);
  box-shadow: 0 4px 0 rgba(11, 70, 80, 0.12);
}

.btn-icon {
  appearance: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--foam);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(11, 70, 80, 0.1);
}

.island-art {
  position: relative;
  width: 260px;
  height: 150px;
  margin: 40px auto 0;
  animation: float-island 4.5s ease-in-out infinite;
}

@keyframes float-island {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.island-base {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 56px;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #5fc978, #2f8f4e 55%, #d4a85a 56%, #c4923f);
  box-shadow: 0 18px 0 rgba(8, 70, 82, 0.18);
}

.hut {
  position: absolute;
  left: 108px;
  bottom: 58px;
  width: 44px;
  height: 34px;
  background: #c47a3a;
  border-radius: 4px 4px 0 0;
}

.hut::before {
  content: "";
  position: absolute;
  left: -10px;
  top: -22px;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 26px solid #e85d4c;
}

.palm {
  position: absolute;
  bottom: 62px;
  width: 8px;
  height: 42px;
  background: #8b5a2b;
  border-radius: 4px;
}

.palm::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -18px;
  width: 44px;
  height: 28px;
  background: radial-gradient(circle at 30% 60%, #3d9b5f 0 40%, transparent 41%),
    radial-gradient(circle at 70% 50%, #4cb06e 0 38%, transparent 39%),
    radial-gradient(circle at 50% 30%, #2f8a52 0 35%, transparent 36%);
}

.palm-l { left: 58px; transform: rotate(-8deg); }
.palm-r { right: 58px; transform: rotate(10deg); }

.flag {
  position: absolute;
  left: 168px;
  bottom: 70px;
  width: 4px;
  height: 48px;
  background: #fff;
}

.flag::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 16px;
  background: var(--coral);
  border-radius: 0 4px 4px 0;
  animation: flag-wave 1.2s ease-in-out infinite alternate;
  transform-origin: left center;
}

@keyframes flag-wave {
  from { transform: skewY(0deg); }
  to { transform: skewY(6deg); }
}

/* —— 顶栏 —— */
.topbar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.topbar-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--paper);
  text-shadow: 0 2px 0 rgba(11, 70, 80, 0.2);
}

.progress-pill,
.think-tag,
.hud {
  justify-self: end;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--foam);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sea-deep);
  white-space: nowrap;
}

/* —— 学段选择 —— */
.track-grid {
  display: grid;
  gap: 16px;
  width: min(720px, 100%);
  margin: 8px auto 0;
}

.track-card {
  appearance: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 22px 22px 20px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, #fffaf0, #f3e2c0);
  box-shadow: 0 8px 0 var(--sand-dark), var(--shadow);
  color: var(--ink);
  transition: transform 0.15s ease;
  animation: rise-in 0.45s ease-out both;
}

.track-card:hover {
  transform: translateY(-4px);
}

.track-card:nth-child(2) { animation-delay: 0.06s; }
.track-card:nth-child(3) { animation-delay: 0.12s; }

.track-grades {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(26, 154, 168, 0.15);
  color: var(--sea-deep);
}

.track-low .track-grades {
  background: rgba(61, 155, 95, 0.2);
  color: #1f6b3a;
}

.track-junior .track-grades {
  background: rgba(232, 93, 76, 0.18);
  color: var(--coral-dark);
}

.track-contest {
  background: linear-gradient(160deg, #fff6e8, #f0d4a8);
  box-shadow: 0 8px 0 #b8893d, var(--shadow);
}

.track-contest .track-grades {
  background: rgba(120, 60, 20, 0.14);
  color: #6b3a12;
}

.track-contest .track-name {
  color: #6b3a12;
}

.track-name {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--sea-deep);
}

.track-junior .track-name {
  color: #8b3a2f;
}

.track-blurb {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
  font-size: 0.95rem;
  color: rgba(26, 47, 54, 0.8);
}

.track-meta {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(26, 47, 54, 0.55);
}

.map-sub {
  width: min(900px, 100%);
  margin: -6px auto 16px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 248, 236, 0.92);
  text-shadow: 0 1px 0 rgba(11, 70, 80, 0.2);
}

/* —— 地图 —— */
.map-path {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  width: min(900px, 100%);
  margin: 0 auto;
  padding-bottom: 24px;
}

.level-node {
  appearance: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fffaf0, #f3e2c0);
  box-shadow: 0 6px 0 var(--sand-dark), var(--shadow);
  color: var(--ink);
  transition: transform 0.15s ease;
  animation: rise-in 0.5s ease-out both;
}

.level-node:nth-child(1) { animation-delay: 0.02s; }
.level-node:nth-child(2) { animation-delay: 0.05s; }
.level-node:nth-child(3) { animation-delay: 0.08s; }
.level-node:nth-child(4) { animation-delay: 0.11s; }
.level-node:nth-child(5) { animation-delay: 0.14s; }
.level-node:nth-child(6) { animation-delay: 0.17s; }
.level-node:nth-child(7) { animation-delay: 0.2s; }
.level-node:nth-child(8) { animation-delay: 0.23s; }
.level-node:nth-child(9) { animation-delay: 0.26s; }
.level-node:nth-child(10) { animation-delay: 0.29s; }

.level-node:hover:not(:disabled) {
  transform: translateY(-3px);
}

.level-node:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.4);
}

.level-node.is-done {
  background: linear-gradient(160deg, #e8fff0, #c8efd4);
  box-shadow: 0 6px 0 #6aaa7e, var(--shadow);
}

.level-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--coral);
}

.level-name {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 1rem;
}

.level-skill {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(26, 47, 54, 0.7);
}

/* —— 说明 —— */
.brief-card {
  width: min(520px, 100%);
  margin: auto;
  padding: 28px 24px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(165deg, #fffaf0, #f6e6c8);
  box-shadow: var(--shadow);
  text-align: center;
  animation: rise-in 0.45s ease-out both;
}

.brief-story {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.brief-goal {
  margin: 16px 0 24px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(26, 154, 168, 0.12);
  font-weight: 700;
  color: var(--sea-deep);
}

/* —— 游戏通用 —— */
.game-root {
  flex: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #fffaf0, #f3e2c0);
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.hint {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: rgba(26, 47, 54, 0.75);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip,
.step-btn,
.cmd-btn {
  appearance: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(11, 70, 80, 0.12);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.chip:active,
.step-btn:active,
.cmd-btn:active {
  transform: scale(0.96);
}

.step-btn.is-done {
  background: #d5f5df;
  border-color: #5cb87a;
  opacity: 0.75;
  pointer-events: none;
}

.step-btn.is-wrong {
  animation: shake 0.35s ease;
  border-color: var(--coral);
  background: #ffe4df;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.status-line {
  min-height: 1.4em;
  text-align: center;
  font-weight: 700;
  color: var(--sea-deep);
}

/* 循环轨 */
.track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(26, 154, 168, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.cell.is-goal {
  background: rgba(61, 155, 95, 0.28);
  outline: 2px dashed var(--leaf);
}

.cell.has-hero {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--coral);
}

.loop-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 16px;
}

.loop-controls strong {
  font-family: var(--font-display);
  font-size: 2rem;
  min-width: 1.5em;
  text-align: center;
}

.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--sea);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--sea-deep);
}

/* 条件：红绿灯 */
.light-box {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px 0;
}

.light {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ccc;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
  opacity: 0.35;
}

.light.on-red { background: #ef4444; opacity: 1; box-shadow: 0 0 18px #ef4444; }
.light.on-yellow { background: #f59e0b; opacity: 1; box-shadow: 0 0 18px #f59e0b; }
.light.on-green { background: #22c55e; opacity: 1; box-shadow: 0 0 18px #22c55e; }

.crosswalk {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 18px;
  font-size: 1.6rem;
}

.road {
  flex: 1;
  max-width: 220px;
  height: 14px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #333 0 18px, #fff 18px 28px);
}

/* 分解：任务卡 */
.task-slots {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.slot {
  min-height: 52px;
  border-radius: 14px;
  border: 2px dashed rgba(26, 154, 168, 0.45);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 8px;
}

.slot.filled {
  border-style: solid;
  background: #fff;
  border-color: var(--sea);
}

.pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.pool .chip.used {
  opacity: 0.35;
  pointer-events: none;
}

/* 变量：接物 */
.catch-stage {
  position: relative;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #9ad8e2, #e8f7ea 70%);
  margin-bottom: 12px;
  touch-action: none;
}

.falling {
  position: absolute;
  font-size: 1.6rem;
  transition: top 0.05s linear;
  user-select: none;
}

.basket {
  position: absolute;
  bottom: 12px;
  width: 72px;
  height: 36px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #c47a3a, #8b5a2b);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  transform: translateX(-50%);
}

/* 策略：猜数字 */
.guess-range {
  text-align: center;
  font-size: 1.1rem;
  margin: 8px 0 16px;
}

.guess-range b {
  color: var(--coral);
}

.guess-input-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.guess-input-row input {
  width: 100px;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid rgba(26, 154, 168, 0.35);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
}

.log-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  max-height: 140px;
  overflow: auto;
  font-size: 0.9rem;
}

.log-list li {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(26, 47, 54, 0.12);
}

/* 迷宫路径 */
.maze {
  display: grid;
  gap: 4px;
  width: min(320px, 100%);
  margin: 12px auto;
}

.maze-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(26, 154, 168, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.maze-cell.wall { background: #5a6b72; }
.maze-cell.path { background: #ffe8a3; }
.maze-cell.start { background: #7ed4de; }
.maze-cell.end { background: #9be3b0; }
.maze-cell.hero { box-shadow: inset 0 0 0 3px var(--coral); }

/* —— 反思页 —— */
.screen-reflect {
  justify-content: center;
  align-items: center;
}

.reflect-panel {
  width: min(480px, 100%);
  padding: 32px 24px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(165deg, #fffaf0, #f6e6c8);
  box-shadow: var(--shadow);
  text-align: center;
  animation: pop-in 0.45s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

.reflect-emoji {
  margin: 0;
  font-size: 2.6rem;
  animation: float-island 2.2s ease-in-out infinite;
}

.reflect-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--coral);
}

.reflect-think-label {
  margin: 18px 0 6px;
  font-size: 0.85rem;
  color: rgba(26, 47, 54, 0.65);
}

.reflect-think {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--sea-deep);
}

.reflect-tip {
  margin: 14px 0 0;
  line-height: 1.6;
  color: rgba(26, 47, 54, 0.85);
}

.methods-box {
  margin-top: 18px;
  padding: 14px 14px 8px;
  text-align: left;
  border-radius: 16px;
  background: rgba(26, 154, 168, 0.1);
}

.methods-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--sea-deep);
  text-align: center;
}

.methods-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.55;
  font-size: 0.9rem;
}

.methods-list li {
  margin-bottom: 8px;
}

/* 题目交互 */
.trap-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(232, 93, 76, 0.12);
  color: var(--coral-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.tool-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sea-deep);
}

.tool-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(11, 70, 80, 0.1);
}

.eq-form {
  display: grid;
  gap: 10px;
  margin: 8px 0 14px;
}

.eq-field {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.num-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgba(26, 154, 168, 0.35);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 12px;
}

.choice-btn {
  appearance: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  padding: 14px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(11, 70, 80, 0.12);
}

.choice-btn.is-picked {
  border-color: var(--sea);
  background: #e7f8fb;
}

.choice-btn.is-wrong {
  border-color: var(--coral);
  background: #ffe4df;
  animation: shake 0.35s ease;
}

.venn {
  position: relative;
  height: 160px;
  margin: 8px auto 12px;
  max-width: 320px;
}

.venn-a,
.venn-b {
  position: absolute;
  top: 16px;
  width: 150px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.venn-a {
  left: 20px;
  background: rgba(26, 154, 168, 0.28);
}

.venn-b {
  right: 20px;
  background: rgba(232, 93, 76, 0.22);
}

.venn-both {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  z-index: 2;
}

.cycle-preview {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--coral-dark);
}

.reverse-steps {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.rev-step {
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
}

.rev-step.undo {
  background: rgba(61, 155, 95, 0.15);
}

.meet-diagram {
  position: relative;
  height: 90px;
  margin: 8px 0 14px;
  border-radius: 14px;
  background: rgba(26, 154, 168, 0.1);
  padding: 12px;
}

.meet-line {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 44px;
  height: 4px;
  background: linear-gradient(90deg, var(--sea), var(--coral));
  border-radius: 4px;
}

.meet-a,
.meet-b {
  position: absolute;
  top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.meet-a { left: 16px; }
.meet-b { right: 16px; }

.meet-note {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(26, 47, 54, 0.7);
}

.river-board {
  display: grid;
  gap: 10px;
}

.river-bank {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  text-align: center;
}

.river-water {
  padding: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--sea-deep);
  font-weight: 700;
}

.weigh-stage {
  margin: 8px 0;
}

@media (max-width: 520px) {
  .eq-field {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .map-path {
    grid-template-columns: 1fr 1fr;
  }

  .track {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
  }

  .cell {
    font-size: 1rem;
  }
}
