:root {
  color-scheme: light;
  --ink: #19334a;
  --ink-soft: #456277;
  --paper: #f8fbf4;
  --mist: #d7f6eb;
  --leaf: #237b5b;
  --leaf-dark: #12523f;
  --moss: #b7d85d;
  --sun: #ffd45c;
  --clay: #ef9377;
  --lavender: #b7a0ed;
  --line: #bfd1cc;
  --shadow: 0 12px 0 rgba(25, 51, 74, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--mist); }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 95% 26%, rgba(255, 255, 255, 0.6) 0 4px, transparent 5px),
    linear-gradient(140deg, #e7fbf1, #eaf7dc 60%, #fff4c7);
  font-family: ui-rounded, "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
}
button, a, summary { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.58; }
a { color: inherit; }
:focus-visible { outline: 4px solid #173ccf; outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.game-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px clamp(12px, 3vw, 36px);
  border-bottom: 1px solid rgba(25, 51, 74, 0.12);
  background: rgba(248, 251, 244, 0.88);
  backdrop-filter: blur(14px);
}
.home-link, .quiet-button, .audio-button, .secondary-button, .primary-button {
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 10px 16px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}
.home-link, .quiet-button, .secondary-button {
  background: rgba(255, 255, 255, 0.9);
}
.home-link { justify-self: start; }
.station-name {
  margin: 0;
  color: var(--leaf-dark);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.header-actions .cp-profile-slot:not([hidden]) { min-height: 44px; }
.quiet-button { color: var(--ink); }
.primary-button, .audio-button {
  border-color: #123b94;
  color: #fff;
  background: #2454cb;
  box-shadow: 0 4px 0 #123b94;
}
.primary-button:hover, .audio-button:hover { background: #173fb0; }
.secondary-button:hover, .quiet-button:hover, .home-link:hover { background: #e8f5f0; }

.game-main {
  width: min(1120px, 100%);
  min-height: calc(100vh - 66px);
  min-height: calc(100dvh - 66px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 44px) clamp(12px, 3vw, 32px) 64px;
}
.welcome-card, .completion-card {
  position: relative;
  isolation: isolate;
  width: min(720px, 100%);
  margin: clamp(18px, 8vh, 92px) auto;
  padding: clamp(28px, 7vw, 70px);
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}
.recovery-card {
  width: min(640px, 100%);
  margin: clamp(18px, 8vh, 92px) auto;
  padding: clamp(24px, 6vw, 52px);
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: #fff0d7;
  box-shadow: var(--shadow);
  text-align: center;
}
.recovery-card p:not(.eyebrow) { max-width: 44ch; margin: 18px auto; color: var(--ink-soft); line-height: 1.5; }
.welcome-orbit {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  opacity: 0.78;
}
.welcome-orbit--one {
  width: 280px;
  height: 280px;
  top: -170px;
  right: -105px;
  border: 24px solid var(--sun);
}
.welcome-orbit--two {
  width: 170px;
  height: 170px;
  bottom: -115px;
  left: -80px;
  border: 22px solid var(--lavender);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}
h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.welcome-copy {
  max-width: 42ch;
  margin: 26px auto 18px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.5;
}
.gentle-note {
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.welcome-actions, .completion-actions, .feedback-actions, .rule-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.mini-trays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 430px;
  margin: 26px auto 0;
  font-weight: 900;
  font-size: clamp(0.72rem, 2vw, 0.92rem);
}
.mini-tray {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 16px 16px 22px 22px;
}
.mini-tray--living { background: #bcefd6; }
.mini-tray--dead { background: #ffd5b5; }
.mini-tray--never { background: #d8d4fb; }
.intro-rule {
  max-width: 500px;
  margin: 22px auto 0;
  padding: 18px;
  border: 2px dashed var(--leaf-dark);
  border-radius: 20px;
  background: #f0fbdf;
  text-align: left;
}
.intro-rule ol, .rule-card ol { margin: 12px 0; padding-left: 1.4rem; line-height: 1.55; }

.station-shell {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}
.station-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}
.notebook-wrap { display: grid; gap: 5px; justify-items: end; }
.field-notebook {
  display: grid;
  grid-template-columns: repeat(9, minmax(24px, 1fr));
  width: min(300px, 62vw);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.notebook-note {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: 7px;
  padding: 2px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.05;
}
.notebook-note.is-packed { border-style: solid; border-color: var(--leaf-dark); background: var(--moss); }
.station-topline .eyebrow { margin-bottom: 4px; }
.progress, .evidence-count { margin: 0; font-weight: 900; }
.progress { font-size: 1.05rem; }
.evidence-count {
  padding: 8px 12px;
  border: 2px solid rgba(25, 51, 74, 0.2);
  border-radius: 999px;
  color: var(--leaf-dark);
  background: #f5fbe3;
  font-size: 0.88rem;
  text-align: center;
}
.find-card, .rule-card, .decision-card, .reason-card, .hint-card, .feedback-card, .retry-card {
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 0 rgba(25, 51, 74, 0.1);
}
.find-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  min-height: 178px;
  overflow: hidden;
}
.find-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 178px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    linear-gradient(150deg, #d0f4e2, #d8e8fc);
}
.find-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 2vw, 24px);
}
.find-copy h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; letter-spacing: -0.035em; }
.setting-chip {
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #173c53;
  background: var(--sun);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.qualifier {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}
.setting-note {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}
.rule-card, .decision-card, .reason-card, .hint-card, .feedback-card, .retry-card { padding: clamp(14px, 2vw, 22px); }
.rule-card {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(260px, 1.25fr);
  align-items: center;
  gap: 18px 32px;
  background: #edf9dd;
}
.rule-card .rule-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: 0;
}
.audio-status {
  grid-column: 1 / -1;
  min-height: 1.3em;
  margin: -8px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.hint-card { background: #fff5c9; }
.hint-card p:last-child { margin-bottom: 0; line-height: 1.5; }
.decision-card header p, .reason-card header p { margin: 9px 0 0; color: var(--ink-soft); line-height: 1.4; }
.tray-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 18px);
  margin-top: 12px;
}
.tray-button {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 3px solid var(--ink);
  border-radius: 22px 22px 32px 32px;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.tray-button small { max-width: 15ch; font-size: 0.76rem; font-weight: 700; line-height: 1.2; }
.tray-button--living { background: #bcefd6; }
.tray-button--dead { background: #ffd5b5; }
.tray-button--never { background: #d8d4fb; }
.tray-symbol { font-size: 1.35rem; line-height: 1; }
.tray-button:hover:not(:disabled), .tray-button.is-selected {
  transform: translateY(-4px);
  box-shadow: 0 6px 0 var(--ink);
}
.tray-button.is-selected { border-color: #173ccf; outline: 3px solid #173ccf; outline-offset: 2px; }
.reason-card { background: #f8fbf4; }
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.evidence-button {
  min-height: 86px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: white;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}
.evidence-button:hover:not(:disabled), .evidence-button.is-selected { background: #e2f4fe; }
.evidence-button.is-selected { border-color: #173ccf; box-shadow: inset 0 0 0 2px #173ccf; }
.check-button { display: block; width: min(340px, 100%); margin: 22px auto 0; }
.feedback-card { background: #e4f9e8; }
.feedback-card[data-error] { background: #fff0d7; }
.feedback-card p, .retry-card p { line-height: 1.5; }
.feedback-actions { justify-content: flex-start; }
.retry-card { background: #f1edff; }
.retry-feedback { min-height: 1.5em; color: var(--ink-soft); font-weight: 700; }

.completion-card { max-width: 680px; }
.completion-badge {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 6px 0 var(--ink);
  font-size: 2.6rem;
}
.completion-card h1 { font-size: clamp(2.25rem, 7vw, 4.3rem); }
.completion-card > p:not(.eyebrow) { max-width: 45ch; margin: 22px auto; color: var(--ink-soft); line-height: 1.55; }
.completion-disclosures {
  display: grid;
  gap: 12px;
  margin: 22px auto 0;
}
.completion-disclosures details {
  margin: 0;
  padding: 16px;
  border: 2px dashed var(--leaf-dark);
  border-radius: 18px;
  background: #f0fbdf;
  text-align: left;
}
.completion-notebook { padding-left: 1.25rem; }
.completion-notebook .notebook-note, #completion-notes .notebook-note {
  min-height: auto;
  margin: 7px 0;
  padding: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  list-style: decimal;
}
.completion-card summary {
  display: list-item;
  min-height: 48px;
  padding: 10px 4px;
  font-weight: 900;
  cursor: pointer;
}
.completion-card details p { line-height: 1.5; }
.pause-dialog {
  width: min(460px, calc(100% - 28px));
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
}
.pause-dialog::backdrop { background: rgba(25, 51, 74, 0.55); }
.pause-dialog > div { padding: 30px; text-align: center; }
.pause-dialog p:not(.eyebrow) { line-height: 1.45; }
.noscript-note {
  max-width: 720px;
  margin: 20px auto;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: white;
}

.find-art {
  position: relative;
  width: 255px;
  flex-shrink: 0;
  height: 208px;
}
.choice-context { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--moss); font-size: 1rem; font-weight: 800; }
.find-art span { position: absolute; display: block; }
.art-shadow {
  width: 84%;
  height: 22px;
  bottom: 8px;
  left: 8%;
  border-radius: 50%;
  background: rgba(25, 51, 74, 0.18);
  filter: blur(2px);
}
.find-art .art-body { inset: 28px 28px 28px; }
.find-art .art-detail { inset: auto; }
.find-art--sapling .art-body {
  top: 8px;
  right: 32px;
  bottom: 60px;
  left: 32px;
  border: 6px solid var(--leaf-dark);
  border-radius: 48% 52% 42% 48%;
  background:
    radial-gradient(circle at 30% 65%, #75c771 0 16%, transparent 17%),
    radial-gradient(circle at 70% 65%, #75c771 0 18%, transparent 19%),
    radial-gradient(circle at 50% 22%, #a7db70 0 29%, transparent 30%),
    #3f9f69;
}
.find-art--sapling .art-detail {
  z-index: 1;
  width: 22px;
  height: 96px;
  bottom: 30px;
  left: calc(50% - 11px);
  border-radius: 12px;
  background: #8d5b3c;
}
.find-art--sapling .art-shadow { width: 90%; height: 42px; bottom: 10px; left: 5%; border-radius: 50% 50% 16px 16px; background: #8c6247; filter: none; }
.find-art--sapling .art-detail--two { z-index: 2; width: 104px; height: 20px; bottom: 21px; left: calc(50% - 52px); border-radius: 50%; background: repeating-linear-gradient(105deg, #8d5b3c 0 12px, #bd8051 13px 20px); }
.find-art--earthworm .art-body {
  width: 190px;
  height: 64px;
  top: 82px;
  left: 24px;
  border: 5px solid #8f5364;
  border-radius: 60% 48% 55% 42%;
  transform: rotate(-13deg);
  background: repeating-linear-gradient(90deg, #e98d9e 0 24px, #f8b1ba 25px 42px);
}
.find-art--earthworm .art-detail { width: 16px; height: 16px; top: 98px; right: 45px; border: 3px solid #19334a; border-radius: 50%; background: white; }
.find-art--earthworm .art-detail--two { width: 7px; height: 7px; top: 104px; right: 50px; border-radius: 50%; background: #19334a; }
.find-art--snail .art-body {
  width: 150px;
  height: 104px;
  right: 22px;
  bottom: 46px;
  border: 5px solid #4c5f38;
  border-radius: 45% 58% 43% 40%;
  background: #9bd075;
}
.find-art--snail .art-detail {
  width: 98px;
  height: 98px;
  top: 28px;
  left: 30px;
  border: 6px solid #704d38;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 45% 48%, #f1ba78 0 8px, #c97c52 9px 17px);
}
.find-art--snail .art-detail--two { width: 70px; height: 4px; right: 8px; top: 73px; background: #4c5f38; transform: rotate(-25deg); }
.find-art--frog .art-body {
  width: 158px;
  height: 112px;
  bottom: 45px;
  left: 44px;
  border: 5px solid #285f46;
  border-radius: 48% 52% 42% 42%;
  background: radial-gradient(circle at 25% 22%, white 0 11px, #22523d 12px 18px, transparent 19px), radial-gradient(circle at 76% 22%, white 0 11px, #22523d 12px 18px, transparent 19px), #66bf63;
}
.find-art--frog .art-detail { width: 82px; height: 38px; bottom: 65px; left: 82px; border-bottom: 5px solid #285f46; border-radius: 50%; }
.find-art--frog .art-detail--two { width: 62px; height: 30px; bottom: 28px; left: 8px; border-radius: 12px 40px 12px 38px; background: #4f9c57; transform: rotate(20deg); }
.find-art--mushroom .art-body { width: 86px; height: 112px; right: 82px; bottom: 34px; border: 5px solid #825b45; border-radius: 45% 45% 30% 30%; background: #ffefd1; }
.find-art--mushroom .art-detail { width: 190px; height: 92px; top: 35px; left: 20px; border: 5px solid #825b45; border-radius: 100% 100% 20% 20%; background: radial-gradient(circle at 27% 52%, #f9d8ba 0 8px, transparent 9px), radial-gradient(circle at 68% 38%, #f9d8ba 0 8px, transparent 9px), #ef7d70; }
.find-art--mushroom .art-detail--two { width: 160px; height: 26px; bottom: 24px; left: 30px; border-radius: 50%; background: #67a866; }
.find-art--seed .art-body { width: 122px; height: 150px; top: 27px; left: 62px; border: 6px solid #81513c; border-radius: 58% 42% 55% 45%; transform: rotate(28deg); background: linear-gradient(120deg, #e8c172 0 45%, #b26d46 46% 52%, #efd182 53%); }
.find-art--seed .art-detail { width: 52px; height: 90px; top: 61px; left: 116px; border-radius: 50%; background: rgba(255, 247, 200, 0.55); transform: rotate(28deg); }
.find-art--leaf .art-body { width: 136px; height: 158px; top: 20px; left: 62px; border: 5px solid #81523a; border-radius: 95% 0 95% 0; transform: rotate(-27deg); background: linear-gradient(135deg, #b5cc55 0 48%, #d28a52 50%); }
.find-art--leaf .art-detail { width: 6px; height: 178px; top: 17px; left: 127px; border-radius: 8px; background: #81523a; transform: rotate(-27deg); }
.find-art--spoon .art-body { width: 45px; height: 154px; top: 35px; left: 102px; border: 5px solid #704c32; border-radius: 30px; background: #cf9764; transform: rotate(34deg); }
.find-art--spoon .art-detail { width: 95px; height: 76px; top: 15px; left: 52px; border: 5px solid #704c32; border-radius: 55% 55% 48% 48%; background: #e5b981; transform: rotate(34deg); }
.find-art--shell .art-body { width: 156px; height: 126px; top: 42px; left: 45px; border: 6px solid #785a5a; border-radius: 56% 50% 48% 52%; background: repeating-radial-gradient(circle at 43% 55%, #fff1d5 0 9px, #eeb6a3 10px 19px, #c87d82 20px 29px); }
.find-art--shell .art-detail { width: 65px; height: 34px; right: 28px; bottom: 52px; border-radius: 0 55% 55% 0; background: #fff0d3; }
.find-art--branch .art-body { width: 188px; height: 38px; top: 94px; left: 30px; border: 5px solid #704c32; border-radius: 24px; background: repeating-linear-gradient(90deg, #8c5739 0 25px, #b8794d 26px 34px); transform: rotate(13deg); }
.find-art--branch .art-detail { width: 90px; height: 28px; top: 54px; left: 108px; border: 5px solid #704c32; border-radius: 22px; background: #a76842; transform: rotate(-38deg); }
.find-art--branch .art-detail--two { width: 60px; height: 24px; top: 114px; left: 32px; border: 5px solid #704c32; border-radius: 20px; background: #a76842; transform: rotate(48deg); }
.find-art--jumper .art-body { width: 154px; height: 132px; top: 38px; left: 48px; border: 5px solid #475284; border-radius: 30px 30px 22px 22px; background: repeating-linear-gradient(0deg, #ac9cee 0 12px, #d5d0ff 13px 23px); }
.find-art--jumper .art-detail { width: 73px; height: 51px; top: 22px; left: 89px; border: 5px solid #475284; border-radius: 0 0 45px 45px; background: #d5d0ff; }
.find-art--jumper .art-detail--two { width: 58px; height: 80px; top: 48px; left: 2px; border: 5px solid #475284; border-radius: 38px 0 0 38px; background: #ac9cee; transform: rotate(18deg); }
.find-art--paper .art-body { width: 142px; height: 168px; top: 18px; left: 52px; border: 5px solid #526671; border-radius: 9px; background: repeating-linear-gradient(0deg, #fffef8 0 25px, #b9d5ee 26px 28px); transform: rotate(-8deg); }
.find-art--paper .art-detail { width: 46px; height: 46px; top: 16px; right: 36px; background: #d8e8fc; clip-path: polygon(0 0, 100% 100%, 0 100%); transform: rotate(-8deg); }
.find-art--pebble .art-body { width: 186px; height: 122px; top: 56px; left: 31px; border: 6px solid #465e71; border-radius: 51% 45% 46% 55%; background: radial-gradient(circle at 30% 35%, #9eb1be 0 7px, transparent 8px), radial-gradient(circle at 70% 65%, #7f96a8 0 9px, transparent 10px), #667c8d; transform: rotate(-8deg); }
.find-art--puddle .art-body { width: 212px; height: 92px; bottom: 44px; left: 20px; border: 5px solid #367ab1; border-radius: 50% 42% 53% 45%; background: radial-gradient(ellipse at 35% 30%, #e4fbff 0 12%, transparent 13%), #7dc4ef; }
.find-art--puddle .art-detail { width: 164px; height: 35px; bottom: 77px; left: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.find-art--cloud .art-body { width: 194px; height: 86px; top: 74px; left: 26px; border: 5px solid #6784a0; border-radius: 999px; background: #f8fdff; }
.find-art--cloud .art-detail { width: 94px; height: 94px; top: 35px; left: 52px; border: 5px solid #6784a0; border-radius: 50%; background: #f8fdff; }
.find-art--cloud .art-detail--two { width: 76px; height: 76px; top: 49px; right: 35px; border: 5px solid #6784a0; border-radius: 50%; background: #f8fdff; }
.find-art--flame .art-body { width: 112px; height: 164px; top: 16px; left: 70px; border: 6px solid #a94b31; border-radius: 64% 35% 65% 36%; background: linear-gradient(145deg, #ffe174 0 29%, #f7a534 30% 56%, #e45a35 57%); transform: rotate(-9deg); }
.find-art--flame .art-detail { width: 48px; height: 83px; top: 75px; left: 112px; border-radius: 60% 34% 60% 35%; background: #fff2a4; transform: rotate(-11deg); }
.find-art--flame .art-detail--two { width: 174px; height: 24px; bottom: 20px; left: 36px; border-radius: 50%; background: #8a5539; }
.find-art--robot .art-body { width: 142px; height: 137px; top: 34px; left: 52px; border: 6px solid #4a557d; border-radius: 28px; background: linear-gradient(145deg, #a2bbef, #767cce); }
.find-art--robot .art-detail { width: 90px; height: 36px; top: 69px; left: 78px; border: 5px solid #4a557d; border-radius: 12px; background: radial-gradient(circle at 26% 50%, #fff 0 7px, #ef7070 8px 11px, transparent 12px), radial-gradient(circle at 74% 50%, #fff 0 7px, #ef7070 8px 11px, transparent 12px), #d8e8fc; }
.find-art--robot .art-detail--two { width: 8px; height: 49px; top: 6px; left: 120px; background: #4a557d; }
.find-art--bottle .art-body { width: 102px; height: 152px; top: 33px; left: 76px; border: 6px solid #44739a; border-radius: 22px 22px 34px 34px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(120, 210, 240, 0.5)); }
.find-art--bottle .art-detail { width: 52px; height: 42px; top: 9px; left: 101px; border: 6px solid #44739a; border-bottom: 0; border-radius: 10px 10px 0 0; background: #a6d7ea; }
.find-art--bottle .art-detail--two { width: 114px; height: 25px; top: 90px; left: 70px; background: #ef9377; transform: rotate(-9deg); }

@media (max-width: 720px) {
  .game-header { grid-template-columns: 1fr auto; }
  .station-name { display: none; }
  .header-actions { min-width: 0; }
  .header-actions .cp-profile-slot:not([hidden]) { min-width: 48px; }
  .header-actions .cp-profile-button { max-width: min(34vw, 168px); }
  .find-card { grid-template-columns: minmax(112px, 0.55fr) minmax(0, 1.45fr); }
  .find-illustration { min-height: 150px; }
  .find-copy { padding: 14px; }
  .rule-card { grid-template-columns: 1fr; }
  .rule-card .rule-actions { grid-column: auto; }
  .audio-status { grid-column: auto; }
  .reason-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .game-main { padding-right: 12px; padding-left: 12px; }
  .game-header { padding: 8px 10px; }
  .home-link, .quiet-button, .audio-button, .secondary-button, .primary-button { border-radius: 14px; padding-right: 12px; padding-left: 12px; }
  .home-link { font-size: 0.86rem; }
  .header-actions .quiet-button { font-size: 0; }
  .header-actions .quiet-button::after { content: "Pause"; font-size: 0.86rem; }
  .welcome-card, .completion-card { margin-top: 16px; border-radius: 26px; }
  .station-topline { align-items: start; flex-direction: column; gap: 8px; }
  .notebook-wrap { width: 100%; justify-items: stretch; }
  .evidence-count { align-self: flex-start; }
  .field-notebook { width: 100%; }
  .tray-grid { grid-template-columns: 1fr; }
  .tray-button { min-height: 82px; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; text-align: left; }
  .tray-button small { grid-column: 2; max-width: none; }
  .tray-symbol { grid-row: span 2; }
  .find-card { grid-template-columns: 104px minmax(0, 1fr); min-height: 148px; }
  .find-illustration { min-height: 148px; }
  .find-copy { padding: 12px; }
  .find-copy h1 { font-size: 1.5rem; }
  .setting-chip { margin-bottom: 5px; font-size: 0.64rem; }
  .qualifier { margin-top: 7px; font-size: 1rem; line-height: 1.32; }
  .setting-note { font-size: 0.76rem; line-height: 1.25; }
  .find-art { transform: scale(0.4); }
  .welcome-actions, .completion-actions, .feedback-actions, .rule-actions { align-items: stretch; flex-direction: column; }
  .welcome-actions > *, .completion-actions > *, .feedback-actions > *, .rule-actions > * { width: 100%; text-align: center; }
}
@media (max-height: 500px) and (min-width: 640px) {
  .game-header {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .game-main {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    padding: 8px 12px 32px;
  }
  .welcome-card {
    width: min(780px, 100%);
    display: grid;
    grid-template-areas:
      "eyebrow trays"
      "title note"
      "copy actions"
      "rule rule";
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 6px 20px;
    margin: 0 auto;
    padding: 14px 22px;
    border-radius: 24px;
    text-align: left;
  }
  .welcome-card > .eyebrow { grid-area: eyebrow; margin: 0; }
  .welcome-card > h1 { grid-area: title; font-size: clamp(2rem, 6vw, 3rem); }
  .welcome-copy { grid-area: copy; margin: 0; font-size: 0.9rem; line-height: 1.3; }
  .mini-trays { grid-area: trays; width: 100%; max-width: none; gap: 6px; margin: 0; font-size: 0.68rem; }
  .mini-tray { min-height: 38px; padding: 4px; border-radius: 12px 12px 16px 16px; }
  .gentle-note { grid-area: note; margin: 0; font-size: 0.78rem; }
  .welcome-actions { grid-area: actions; justify-content: flex-start; gap: 8px; margin: 0; }
  .welcome-actions > * { min-height: 48px; padding: 8px 10px; }
  .intro-rule { grid-area: rule; width: 100%; max-width: none; margin: 8px 0 0; padding: 12px; }
  .completion-card {
    width: min(780px, 100%);
    max-width: none;
    display: grid;
    grid-template-areas:
      "badge eyebrow eyebrow"
      "badge title title"
      "copy copy copy"
      "actions actions actions"
      "disclosures disclosures disclosures";
    grid-template-columns: 70px minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 8px 16px;
    margin: 0 auto;
    padding: 14px 22px;
    border-radius: 24px;
    text-align: left;
  }
  .completion-badge { grid-area: badge; width: 62px; height: 62px; margin: 0; font-size: 2rem; }
  .completion-card > .eyebrow { grid-area: eyebrow; margin: 0; }
  .completion-card > h1 { grid-area: title; font-size: 1.65rem; }
  .completion-card > p:not(.eyebrow) { grid-area: copy; margin: 0; font-size: 0.86rem; line-height: 1.35; text-align: left; }
  .completion-disclosures { grid-area: disclosures; width: 100%; margin: 0; gap: 6px; }
  .completion-disclosures details { padding: 2px 10px; }
  .completion-card summary { min-height: 48px; padding: 7px 2px; font-size: 0.82rem; }
  .completion-actions { grid-area: actions; flex-wrap: nowrap; justify-content: center; gap: 8px; margin: 0; }
  .completion-actions > * { min-height: 48px; padding: 8px 10px; font-size: 0.84rem; text-align: center; }
}
@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;
  }
}
