:root {
  color-scheme: light;
  --ink: #17212c;
  --ink-soft: #354151;
  --muted: #737d89;
  --muted-light: #99a2ad;
  --line: #e6e9ec;
  --surface: #ffffff;
  --background: #f6f7f2;
  --accent: #3f9c67;
  --accent-deep: #2b7c4f;
  --accent-soft: #eaf8ef;
  --danger: #df5b51;
  --danger-deep: #bc4038;
  --danger-soft: #fdecea;
  --gold: #c58a2b;
  --gold-soft: #fff5df;
  --brown: #8a5a3a;
  --shadow-lg: 0 24px 70px rgba(31, 42, 68, 0.1);
  --shadow-md: 0 12px 35px rgba(31, 42, 68, 0.08);
  --shadow-sm: 0 5px 16px rgba(31, 42, 68, 0.07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --font-sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: max(20px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(63, 156, 103, 0.11), transparent 27rem),
    radial-gradient(circle at 95% 14%, rgba(223, 91, 81, 0.08), transparent 25rem),
    radial-gradient(circle at 72% 100%, rgba(197, 138, 43, 0.08), transparent 26rem),
    linear-gradient(180deg, #fbfcf8 0%, #f4f7f4 100%);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(79, 91, 122, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 91, 122, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button { font: inherit; }
button, .mole-stage { -webkit-tap-highlight-color: transparent; }

button:focus-visible {
  outline: 3px solid rgba(63, 156, 103, 0.28);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.page-glow {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
}

.page-glow--one { top: -170px; left: 44%; background: rgba(63, 156, 103, 0.06); }
.page-glow--two { right: -180px; bottom: -150px; background: rgba(223, 91, 81, 0.05); }

.app-shell { width: min(100%, 1180px); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 4px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 1px solid rgba(63, 156, 103, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.brand-mark i { display: block; border-radius: 3px; background: var(--accent); }
.brand-mark i:nth-child(2) { background: var(--gold); }
.brand-mark i:nth-child(3) { background: var(--danger); }
.brand-mark i:nth-child(4) { background: #5f73dd; }

.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 0.95rem; letter-spacing: 0.03em; }
.brand-copy small { color: var(--muted-light); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.17em; }

.best-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(22, 32, 51, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.75rem;
  box-shadow: 0 6px 20px rgba(31, 42, 68, 0.04);
  backdrop-filter: blur(12px);
}

.best-chip__icon { color: var(--accent); font-size: 1rem; }
.best-chip strong { color: var(--ink); font-family: var(--font-mono); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.best-chip small { color: var(--muted-light); font-size: 0.61rem; }

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 52px 0 28px;
}

.hero-main { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(197, 138, 43, 0.1);
}

.hero h1 {
  display: flex;
  margin: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.12em 0.18em;
  font-size: clamp(2.55rem, 5.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.title-en { color: var(--accent); letter-spacing: -0.07em; }
.title-cn { color: var(--ink); }

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.hero-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 3px;
}

.hero-note > span { color: var(--muted-light); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; }
.focus-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.focus-tags span { padding: 7px 11px; border: 1px solid rgba(22, 32, 51, 0.06); border-radius: 999px; background: rgba(255, 255, 255, 0.66); color: var(--ink-soft); font-size: 0.72rem; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.play-card,
.guide-card {
  border: 1px solid rgba(22, 32, 51, 0.065);
  background: rgba(255, 255, 255, 0.89);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.play-card { min-width: 0; padding: 18px; border-radius: var(--radius-xl); }

.play-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  margin: 0 2px 13px;
}

.live-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.78rem; font-weight: 650; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9c0cd;
  box-shadow: 0 0 0 4px rgba(185, 192, 205, 0.14);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.status-dot.is-active { background: var(--accent); box-shadow: 0 0 0 4px rgba(63, 156, 103, 0.12); }
.status-dot.is-paused { background: #dfa02f; box-shadow: 0 0 0 4px rgba(223, 160, 47, 0.13); }
.status-dot.is-complete { background: var(--gold); box-shadow: 0 0 0 4px rgba(197, 138, 43, 0.12); }

.toolbar-actions { display: flex; gap: 8px; }

.ghost-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ghost-button:hover:not(:disabled) { border-color: #cfd4e2; background: #fafbfe; }
.ghost-button:active:not(:disabled) { transform: translateY(1px); }
.ghost-button:disabled { color: #b4bac7; cursor: not-allowed; }

.session-strip { padding: 10px 12px 11px; border: 1px solid rgba(22, 32, 51, 0.055); border-radius: 14px; background: #f8f9f7; }
.session-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 9px; color: var(--muted); font-size: 0.67rem; }
.session-label { margin-right: auto; color: var(--ink-soft); font-weight: 700; }
.session-meta strong { color: var(--ink); font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

.time-track { height: 5px; overflow: hidden; border-radius: 999px; background: #e8ebe8; }
.time-track > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #9bbb4f, var(--gold));
  transform: scaleX(1);
  transform-origin: left center;
  transition: background 180ms ease;
  will-change: transform;
}

.session-strip.is-warning .time-track > span { background: linear-gradient(90deg, #e6853e, var(--danger)); }
.session-strip.is-warning .session-meta strong { color: var(--danger); }

.mole-stage {
  position: relative;
  display: flex;
  min-height: 390px;
  margin-top: 12px;
  padding: 17px 20px 18px;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(22, 32, 51, 0.06);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 16%, rgba(63, 156, 103, 0.08), transparent 30%),
    radial-gradient(circle at 88% 85%, rgba(197, 138, 43, 0.08), transparent 31%),
    #fbfcf9;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mole-stage::before,
.mole-stage::after {
  position: absolute;
  border: 1px solid rgba(63, 156, 103, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.mole-stage::before { top: -115px; right: -75px; width: 260px; height: 260px; }
.mole-stage::after { bottom: -130px; left: -90px; width: 280px; height: 280px; }

.mole-stage.is-correct { border-color: rgba(63, 156, 103, 0.38); box-shadow: inset 0 0 0 2px rgba(63, 156, 103, 0.07); animation: stage-correct 260ms ease; }
.mole-stage.is-wrong { border-color: rgba(223, 91, 81, 0.42); box-shadow: inset 0 0 0 2px rgba(223, 91, 81, 0.07); animation: stage-wrong 320ms ease; }

.stimulus-topline { position: relative; z-index: 2; display: flex; width: 100%; align-items: center; justify-content: space-between; color: var(--muted-light); font-size: 0.65rem; letter-spacing: 0.06em; }

.mole-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, clamp(250px, 34vh, 330px));
  margin: 9px auto 7px;
  padding: clamp(7px, 1.25vw, 12px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 10px);
  border: 1px solid rgba(63, 118, 74, 0.12);
  border-radius: 25px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.48), transparent 22%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0 2px, transparent 2px 12px),
    linear-gradient(145deg, #c9e5c9, #a9d3b2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 18px 40px rgba(48, 93, 57, 0.12);
}

.mole-hole {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24%;
  background: transparent;
  cursor: default;
  touch-action: manipulation;
  user-select: none;
}

.mole-hole::before {
  position: absolute;
  inset: 19% 6% 4%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 44%, #1e2922 0 42%, #2e3c31 58%, #536151 78%, #7b876d 100%);
  box-shadow: inset 0 13px 18px rgba(0, 0, 0, 0.42), inset 0 -5px 8px rgba(255, 255, 255, 0.08), 0 5px 8px rgba(36, 57, 39, 0.2);
  content: "";
}

.mole-hole::after {
  position: absolute;
  right: 3%;
  bottom: 3%;
  left: 3%;
  height: 28%;
  border: 1px solid rgba(70, 105, 70, 0.18);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(225, 241, 218, 0.78), rgba(132, 173, 130, 0.72));
  box-shadow: 0 -4px 7px rgba(255, 255, 255, 0.2);
  content: "";
  pointer-events: none;
}

.mole-hole.is-active { cursor: pointer; }
.mole-hole.is-active::before { box-shadow: inset 0 13px 19px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.23), 0 5px 8px rgba(36, 57, 39, 0.2); }
.mole-hole.is-active:active .mole-target { transform: scale(0.94); }

.mole-target {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18%;
  width: 64%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  transform-origin: center bottom;
  pointer-events: none;
  animation: target-pop 190ms cubic-bezier(0.2, 0.84, 0.28, 1.08) both;
}

.mole-target--go {
  border-radius: 46% 46% 38% 38%;
  background: radial-gradient(circle at 38% 26%, rgba(255, 255, 255, 0.25), transparent 22%), linear-gradient(145deg, #b77b4c, #895632 70%);
  box-shadow: inset 0 -8px 10px rgba(71, 38, 20, 0.2), 0 8px 13px rgba(43, 31, 22, 0.24);
}

.mole-target--go::before,
.mole-target--go::after {
  position: absolute;
  top: -7%;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9a643f;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.12);
  content: "";
}

.mole-target--go::before { left: 7%; }
.mole-target--go::after { right: 7%; }

.mole-ear { position: absolute; z-index: -1; top: -4%; width: 25%; aspect-ratio: 1; border-radius: 50%; background: #d39b75; }
.mole-ear--left { left: 9%; }
.mole-ear--right { right: 9%; }

.mole-eye { position: absolute; top: 38%; width: 12%; height: 17%; border-radius: 50%; background: #241812; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28); }
.mole-eye--left { left: 28%; }
.mole-eye--right { right: 28%; }

.mole-snout { position: absolute; bottom: 13%; left: 50%; width: 42%; height: 28%; border-radius: 50%; background: #e9b797; transform: translateX(-50%); }
.mole-snout::before { position: absolute; top: 32%; left: 50%; width: 22%; aspect-ratio: 1.25; border-radius: 50%; background: #613a2b; content: ""; transform: translateX(-50%); }
.mole-snout::after { position: absolute; top: 72%; left: 50%; width: 38%; height: 18%; border-bottom: 2px solid rgba(78, 42, 30, 0.75); border-radius: 0 0 50% 50%; content: ""; transform: translateX(-50%); }

.mole-target--nogo {
  border-radius: 50%;
  background: radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.24), transparent 18%), radial-gradient(circle at 50% 56%, #404854 0 43%, #1b222c 75%, #0c1118 100%);
  box-shadow: inset -8px -9px 13px rgba(0, 0, 0, 0.3), 0 9px 14px rgba(16, 23, 31, 0.3);
}

.bomb-fuse { position: absolute; top: -18%; right: 28%; width: 17%; height: 34%; border: 3px solid #9d693d; border-bottom: 0; border-radius: 70% 30% 0 0; transform: rotate(23deg); transform-origin: bottom center; }
.bomb-fuse::after { position: absolute; top: -22%; right: -38%; width: 72%; aspect-ratio: 1; border-radius: 50%; background: #f2b84b; box-shadow: 0 0 10px rgba(242, 184, 75, 0.78); content: ""; }
.bomb-mark { position: absolute; top: 50%; left: 50%; color: #f0a09a; font-family: var(--font-mono); font-size: clamp(1.15rem, 3vw, 1.75rem); font-weight: 800; line-height: 1; transform: translate(-50%, -50%); }

.mole-hole.is-hit .mole-target { animation: mole-hit 260ms cubic-bezier(0.2, 0.8, 0.25, 1) forwards; }
.mole-hole.is-missed .mole-target { animation: mole-missed 300ms ease forwards; }
.mole-hole.is-exploded::before { background: radial-gradient(ellipse at 50% 44%, #6e251f 0 42%, #df5b51 58%, #ffb1a8 80%, #8c3732 100%); box-shadow: inset 0 0 28px rgba(255, 212, 202, 0.38); }
.mole-hole.is-exploded .mole-target { animation: bomb-blast 320ms ease forwards; }
.mole-hole.is-blocked::before { box-shadow: inset 0 13px 19px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(63, 156, 103, 0.42), 0 0 18px rgba(63, 156, 103, 0.3); }
.mole-hole.is-blocked .mole-target { animation: bomb-blocked 300ms ease forwards; }

.feedback { position: relative; z-index: 2; min-height: 27px; padding: 5px 12px; border-radius: 999px; color: var(--muted-light); font-size: 0.71rem; font-weight: 650; line-height: 1.5; text-align: center; }
.feedback.is-correct { background: var(--accent-soft); color: var(--accent-deep); }
.feedback.is-wrong { background: var(--danger-soft); color: var(--danger-deep); }

.stimulus-overlay { position: absolute; inset: 0; z-index: 5; display: grid; padding: 18px; place-items: center; background: rgba(247, 249, 246, 0.58); backdrop-filter: blur(8px); }
.overlay-content { display: flex; width: min(100%, 465px); padding: 18px 22px; align-items: center; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.87); border-radius: 20px; background: rgba(255, 255, 255, 0.93); text-align: center; box-shadow: 0 22px 55px rgba(31, 42, 68, 0.13); animation: overlay-in 260ms ease both; }
.overlay-kicker, .section-kicker { color: var(--accent-deep); font-size: 0.61rem; font-weight: 750; letter-spacing: 0.13em; }
.overlay-content h2 { margin: 8px 0 5px; font-size: clamp(1.22rem, 2.7vw, 1.55rem); letter-spacing: -0.035em; }
.overlay-content p { max-width: 365px; margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.6; }

.rule-pair { display: flex; min-height: 62px; margin: 11px 0; padding: 7px 12px; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f9faf8; }
.rule-item { display: flex; align-items: center; gap: 8px; text-align: left; }
.rule-item > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.rule-item b { color: var(--ink-soft); font-size: 0.71rem; }
.rule-item small { color: var(--muted-light); font-size: 0.59rem; }
.rule-icon { position: relative; display: inline-block; width: 32px; height: 32px; flex: 0 0 auto; }
.rule-icon--mole { border-radius: 48% 48% 38% 38%; background: linear-gradient(145deg, #b77b4c, #895632); box-shadow: 0 4px 8px rgba(91, 56, 31, 0.16); }
.rule-icon--mole::before { position: absolute; top: 10px; left: 8px; width: 4px; height: 6px; border-radius: 50%; background: #241812; box-shadow: 12px 0 0 #241812; content: ""; }
.rule-icon--mole::after { position: absolute; right: 9px; bottom: 6px; left: 9px; height: 8px; border-radius: 50%; background: #e9b797; content: ""; }
.rule-icon--bomb { border-radius: 50%; background: radial-gradient(circle at 38% 30%, #59626f, #161d27 72%); box-shadow: 0 4px 8px rgba(17, 24, 33, 0.2); }
.rule-icon--bomb::before { position: absolute; top: -7px; right: 8px; width: 8px; height: 12px; border: 2px solid #9d693d; border-bottom: 0; border-radius: 70% 30% 0 0; content: ""; transform: rotate(22deg); }
.rule-icon--bomb::after { position: absolute; top: 13px; left: 50%; color: #f0a09a; content: "!"; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 800; transform: translateX(-50%); }
.rule-divider { color: #cbd0d6; font-family: var(--font-mono); font-size: 0.7rem; }

.primary-button { display: inline-flex; min-height: 45px; padding: 0 25px; align-items: center; justify-content: center; border: 0; border-radius: 13px; background: linear-gradient(135deg, #4baa70, #318454); color: #fff; font-size: 0.82rem; font-weight: 700; box-shadow: 0 10px 24px rgba(49, 132, 84, 0.24); cursor: pointer; transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease; }
.primary-button:hover { filter: brightness(1.04); box-shadow: 0 12px 28px rgba(49, 132, 84, 0.3); }
.primary-button:active { transform: translateY(1px) scale(0.99); }
.overlay-hint { margin-top: 9px; color: var(--muted-light); font-size: 0.62rem; }

.side-column { display: flex; flex-direction: column; gap: 20px; }
.stats-card { position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius-xl); background: radial-gradient(circle at 100% 0%, rgba(63, 156, 103, 0.42), transparent 57%), linear-gradient(145deg, #18251f, #233b30); color: #fff; box-shadow: 0 24px 60px rgba(31, 42, 68, 0.2); }
.stats-card::after { position: absolute; right: -45px; bottom: -70px; width: 170px; height: 170px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 50%; content: ""; }
.time-stat, .score-line, .best-line { position: relative; z-index: 1; }
.time-stat { display: flex; flex-direction: column; }
.stat-label { color: rgba(255, 255, 255, 0.58); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.08em; }
.time-value { display: flex; margin: 3px 0 0; align-items: baseline; gap: 4px; }
.time-value strong { color: #fff; font-family: var(--font-mono); font-size: clamp(2.55rem, 5vw, 3.35rem); font-weight: 600; letter-spacing: -0.07em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.time-value span { color: rgba(255, 255, 255, 0.52); font-family: var(--font-mono); font-size: 0.9rem; }
.stat-note { color: rgba(255, 255, 255, 0.46); font-size: 0.68rem; }
.score-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.score-line > div { display: flex; min-width: 0; padding: 12px 10px; flex-direction: column; gap: 5px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 13px; background: rgba(255, 255, 255, 0.055); }
.score-line span { color: rgba(255, 255, 255, 0.5); font-size: 0.61rem; }
.score-line strong { overflow: hidden; color: #fff; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.best-line { display: flex; margin-top: 13px; padding-top: 13px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.48); font-size: 0.65rem; }
.best-line strong { color: rgba(255, 255, 255, 0.84); font-size: 0.67rem; font-weight: 600; }
.best-line b { color: #fff; font-family: var(--font-mono); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.guide-card { padding: 23px; border-radius: var(--radius-xl); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-heading h2 { margin: 5px 0 0; font-size: 1.18rem; letter-spacing: -0.025em; }
.guide-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(197, 138, 43, 0.1); border-radius: 13px; background: var(--gold-soft); color: var(--gold); font-family: var(--font-mono); font-size: 0.9rem; font-weight: 800; }
.steps { display: flex; margin: 22px 0; padding: 0; flex-direction: column; gap: 14px; list-style: none; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.steps li > span { padding-top: 2px; color: var(--accent-deep); font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.62; }
.tip-box { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 13px 14px; border-radius: 14px; background: #f5f7f4; }
.tip-box > span { color: var(--gold); font-size: 0.8rem; }
.tip-box p { margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.6; }

.page-footer { display: flex; margin-top: 22px; padding: 0 4px; justify-content: space-between; gap: 16px; color: var(--muted-light); font-size: 0.65rem; }
.result-dialog { width: min(calc(100% - 32px), 440px); max-height: calc(100svh - 32px); padding: 30px; overflow-y: auto; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(19, 27, 46, 0.3); }
.result-dialog::backdrop { background: rgba(21, 29, 46, 0.48); backdrop-filter: blur(5px); }
.result-dialog[open] { animation: dialog-in 240ms ease both; }
.dialog-close { position: absolute; top: 16px; right: 16px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #f4f6fa; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.result-dialog h2 { margin: 8px 0 6px; font-size: 1.78rem; letter-spacing: -0.045em; }
.result-copy { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.result-tags { display: flex; margin-bottom: 11px; align-items: center; gap: 8px; flex-wrap: wrap; }
.record-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 0.64rem; font-weight: 750; letter-spacing: 0.04em; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 24px 0 13px; }
.result-grid > div { display: flex; min-width: 0; padding: 14px 8px; align-items: center; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; background: #f8f9f8; }
.result-grid span { color: var(--muted); font-size: 0.63rem; }
.result-grid strong { color: var(--ink); font-family: var(--font-mono); font-size: 1rem; font-variant-numeric: tabular-nums; }
.result-best-line { display: flex; margin-bottom: 20px; padding: 12px 14px; align-items: center; justify-content: space-between; gap: 12px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-deep); font-size: 0.7rem; }
.result-best-line strong { font-size: 0.7rem; }
.result-best-line b { font-family: var(--font-mono); font-size: 0.86rem; }
.result-primary { width: 100%; }
.text-button { display: block; margin: 10px auto 0; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); font-size: 0.76rem; cursor: pointer; }
.text-button:hover { color: var(--ink); }

@keyframes target-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(64%) scale(0.68); }
  76% { opacity: 1; transform: translateX(-50%) translateY(-3%) scale(1.025); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes mole-hit {
  0% { opacity: 1; transform: translateX(-50%) scale(1); }
  36% { opacity: 1; transform: translateX(-50%) translateY(8%) scale(1.16, 0.72); }
  100% { opacity: 0; transform: translateX(-50%) translateY(48%) scale(0.55, 0.35); }
}

@keyframes mole-missed {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(68%) scale(0.72); }
}

@keyframes bomb-blast {
  0% { opacity: 1; transform: translateX(-50%) scale(1); filter: brightness(1); }
  30% { opacity: 1; transform: translateX(-50%) scale(1.34); filter: brightness(2); }
  100% { opacity: 0; transform: translateX(-50%) translateY(18%) scale(0.4); filter: brightness(1.5); }
}

@keyframes bomb-blocked {
  0% { opacity: 1; transform: translateX(-50%) scale(1); }
  45% { opacity: 1; transform: translateX(-50%) scale(0.92); }
  100% { opacity: 0; transform: translateX(-50%) translateY(38%) scale(0.72); }
}

@keyframes stage-correct { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(63, 156, 103, 0.07); } 42% { box-shadow: inset 0 0 0 3px rgba(63, 156, 103, 0.16), 0 0 0 5px rgba(63, 156, 103, 0.07); } }
@keyframes stage-wrong { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(223, 91, 81, 0.07); } 38% { box-shadow: inset 0 0 0 3px rgba(223, 91, 81, 0.17), 0 0 0 6px rgba(223, 91, 81, 0.075); } }
@keyframes overlay-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 941px) and (max-height: 1050px) {
  body { padding-top: 14px; }
  .hero { margin: 24px 0 18px; align-items: center; }
  .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.55rem); }
  .hero-copy { margin-top: 10px; font-size: 0.86rem; }
  .play-card { padding: 14px; }
  .play-toolbar { margin-bottom: 10px; }
  .mole-stage { min-height: 380px; }
}

@media (min-width: 941px) and (max-height: 800px) {
  .hero { margin: 12px 0 10px; }
  .eyebrow { margin-bottom: 8px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-copy { display: none; }
  .play-card { padding: 12px; }
  .play-toolbar { margin-bottom: 8px; }
  .mole-stage { min-height: 360px; padding-top: 14px; padding-bottom: 14px; }
}

@media (max-width: 940px) {
  .hero { align-items: flex-start; margin-top: 38px; }
  .workspace { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

@media (max-width: 680px) {
  body { padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .best-chip { min-height: 38px; padding: 7px 11px; }
  .best-chip > span:not(.best-chip__icon), .best-chip small { display: none; }
  .hero { display: block; margin: 32px 0 21px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-copy { margin-top: 13px; font-size: 0.86rem; }
  .hero-note { display: none; }
  .play-card { padding: 12px; border-radius: 22px; }
  .play-toolbar { margin: 1px 2px 10px; }
  .ghost-button { min-height: 36px; padding: 0 10px; font-size: 0.69rem; }
  .session-strip { padding: 9px 10px 10px; }
  .session-meta { gap: 10px; font-size: 0.63rem; }
  .session-label { display: none; }
  .mole-stage { min-height: 365px; margin-top: 10px; padding: 14px 12px 16px; border-radius: 17px; }
  .mole-grid { width: min(100%, 286px); border-radius: 21px; }
  .stimulus-overlay { padding: 12px; }
  .overlay-content { padding: 17px 15px; border-radius: 17px; }
  .overlay-content h2 { font-size: 1.2rem; }
  .overlay-content p { font-size: 0.72rem; }
  .rule-pair { min-height: 56px; margin: 10px 0; padding: 6px 9px; gap: 8px; }
  .rule-icon { width: 28px; height: 28px; }
  .rule-item { gap: 6px; }
  .side-column { display: flex; }
  .stats-card { padding: 21px; border-radius: 22px; }
  .time-value strong { font-size: 2.6rem; }
  .guide-card { padding: 21px; border-radius: 22px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .result-dialog { padding: 25px 20px 22px; border-radius: 22px; }
  .result-grid { gap: 6px; }
  .result-grid > div { padding: 12px 6px; }
  .result-grid strong { font-size: 0.86rem; }
}

@media (max-width: 370px) {
  .brand-copy small { display: none; }
  .play-toolbar { align-items: flex-start; }
  .toolbar-actions { gap: 5px; }
  .ghost-button { padding: 0 8px; }
  .session-meta { flex-wrap: wrap; row-gap: 5px; }
  .mole-grid { width: min(100%, 258px); }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 940px) {
  body { padding-top: 12px; }
  .hero { margin: 16px 0 12px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-copy { display: none; }
  .eyebrow { margin-bottom: 8px; }
  .workspace { grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); gap: 14px; }
  .side-column { display: flex; }
  .play-card { padding: 10px; }
  .mole-stage { min-height: 330px; }
  .mole-grid { width: min(100%, 250px); }
  .stats-card, .guide-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
