:root {
  color-scheme: light;
  --space-blue: #3D6FBE;
  --ice-highlight: #78AEFF;
  --deep-space: #1F416F;
  --graphite: #25292D;
  --silver: #E8EBEF;
  --white: #ffffff;
  --line: #cbd2da;
  --muted: #5c6672;
  --pale-blue: #eef4fd;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-latin: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 18px 48px rgba(31, 65, 111, 0.09);
  --shadow-blue: 0 14px 32px rgba(61, 111, 190, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--graphite);
  background:
    radial-gradient(circle at 90% 4%, rgba(120, 174, 255, 0.16), transparent 27rem),
    linear-gradient(90deg, transparent 0 47px, rgba(31, 65, 111, 0.055) 48px, transparent 49px),
    var(--silver);
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }
button { color: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ice-highlight);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 16px;
  color: var(--white);
  background: var(--deep-space);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer,
#app {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: var(--deep-space);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: var(--font-latin);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.2em;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 8px);
  gap: 5px;
  align-items: center;
  height: 34px;
}

.brand-mark::before {
  position: absolute;
  right: 4px;
  left: 4px;
  height: 2px;
  background: var(--space-blue);
  content: "";
}

.brand-mark i {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  background: var(--silver);
  border: 2px solid var(--deep-space);
  border-radius: 50%;
}

.brand-mark i:first-child,
.brand-mark i:last-child {
  width: 11px;
  height: 11px;
  background: var(--white);
  border-color: var(--space-blue);
  box-shadow: 0 0 0 3px rgba(120, 174, 255, 0.2);
}

.quiet-button,
.text-button {
  padding: 8px 0;
  color: var(--deep-space);
  font-size: 0.92rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.quiet-button:hover,
.text-button:hover {
  color: var(--space-blue);
  border-color: var(--space-blue);
}

#app { min-height: calc(100vh - 200px); }

.dashboard,
.practice-shell { animation: enter 380ms ease both; }

.eyebrow,
.card-label,
.utility-label {
  margin: 0 0 12px;
  color: var(--space-blue);
  font-family: var(--font-latin);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.today-route {
  position: relative;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 65, 111, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.today-route::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background: var(--space-blue);
  content: "";
}

.today-route-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 10px 48px;
  align-items: end;
}

.today-route-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.today-route-heading h1 {
  margin: 0;
  color: var(--deep-space);
  font-size: clamp(2.45rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.today-route-heading > p:last-child {
  margin: 0;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.9;
}

.orbit-principle {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 30px;
  align-items: center;
  margin: 38px 0 26px;
  padding: 22px 24px;
  color: var(--white);
  background: linear-gradient(115deg, var(--graphite), var(--deep-space));
  border-radius: 14px;
}

.orbit-principle > div { display: flex; align-items: center; }

.orbit-principle span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ice-highlight);
  font-family: var(--font-latin);
  font-size: 0.66rem;
  font-weight: 700;
  border: 2px solid rgba(120, 174, 255, 0.68);
  border-radius: 50%;
}

.orbit-principle i {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, var(--space-blue), var(--ice-highlight));
}

.orbit-principle p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.orbit-principle strong { color: var(--white); font-size: 1rem; }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mission-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 322px;
  padding: 28px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mission-card:hover {
  border-color: var(--space-blue);
  box-shadow: 0 14px 32px rgba(31, 65, 111, 0.08);
  transform: translateY(-2px);
}

.mission-card h3 {
  margin: 0;
  color: var(--deep-space);
  font-family: var(--font-latin);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.mission-card h3 span {
  display: block;
  margin-top: 9px;
  color: var(--graphite);
  font-family: var(--font-ja);
  font-size: 0.54em;
  font-weight: 700;
  letter-spacing: 0;
}

.mini-thread {
  display: flex;
  align-items: center;
  width: min(260px, 86%);
  margin: 28px 0 22px;
}

.mini-thread i {
  position: relative;
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--deep-space);
  font-style: normal;
  background: var(--white);
  border: 2px solid var(--space-blue);
  border-radius: 50%;
}

.mini-thread i span {
  position: absolute;
  top: 22px;
  font-family: var(--font-latin);
  font-size: 0.58rem;
  font-weight: 700;
}

.mini-thread b {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, var(--space-blue), var(--ice-highlight));
}

.mastery-meter { display: flex; gap: 12px; align-items: center; margin: 8px 0 24px; }
.mastery-meter > span { height: 5px; flex: 1; overflow: hidden; background: var(--silver); border-radius: 99px; }
.mastery-meter i { display: block; height: 100%; background: var(--space-blue); border-radius: inherit; }
.mastery-meter small { color: var(--muted); font-family: var(--font-latin); font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.mission-card footer { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-top: auto; }
.target-preview { margin: 0; color: var(--muted); font-family: var(--font-latin); font-size: 0.76rem; font-weight: 600; line-height: 1.45; }

.primary-button,
.secondary-button,
.timer-start-button {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: var(--white);
  background: var(--space-blue);
  border: 1px solid var(--space-blue);
  box-shadow: var(--shadow-blue);
}

.primary-button:hover,
.timer-start-button:hover {
  background: var(--deep-space);
  border-color: var(--deep-space);
  transform: translateY(-1px);
}

.secondary-button { color: var(--deep-space); background: var(--white); border: 1px solid var(--space-blue); }
.secondary-button:hover { background: var(--pale-blue); }

.primary-button:disabled,
.timer-start-button:disabled {
  color: #6c7580;
  background: #d9dee4;
  border-color: #d9dee4;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.mastery-rule {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr);
  gap: 14px 34px;
  align-items: center;
  margin-top: 18px;
  padding: 20px 24px;
  color: var(--white);
  background: var(--deep-space);
  border-radius: 14px;
}

.mastery-rule > div span,
.mastery-rule > div strong { display: block; }
.mastery-rule > div span { color: var(--ice-highlight); font-family: var(--font-latin); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; }
.mastery-rule > div strong { margin-top: 3px; font-size: 1.15rem; font-weight: 900; }
.mastery-rule ol { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.mastery-rule li { display: flex; align-items: center; color: rgba(255, 255, 255, 0.78); font-size: 0.78rem; white-space: nowrap; }
.mastery-rule li:not(:last-child)::after { width: clamp(10px, 2vw, 28px); height: 1px; margin-inline: 7px; background: rgba(120, 174, 255, 0.52); content: ""; }
.mastery-rule li:last-child { color: var(--ice-highlight); font-weight: 700; }
.mastery-rule > p { grid-column: 1 / -1; margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 0.8rem; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; gap: 12px; align-items: baseline; padding: 18px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { color: var(--deep-space); font-family: var(--font-latin); font-size: 1.8rem; font-weight: 900; }
.stat span { color: var(--muted); font-size: 0.8rem; }

.focus-rotator {
  position: relative;
  min-height: 320px;
  margin-top: 24px;
  padding: clamp(28px, 5vw, 52px) clamp(28px, 6vw, 68px);
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(125deg, var(--graphite), var(--deep-space));
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.focus-rotator::after {
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 430px;
  height: 430px;
  border: 72px solid rgba(120, 174, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.rotator-topline { position: relative; z-index: 1; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.focus-rotator .eyebrow { margin: 0; color: var(--ice-highlight); }
.rotator-controls { display: flex; gap: 16px; align-items: center; color: rgba(255, 255, 255, 0.68); font-family: var(--font-latin); font-size: 0.72rem; font-weight: 600; }
.rotator-controls b { color: var(--white); font-weight: 700; }
.rotator-toggle { padding: 7px 12px; color: var(--white); font-size: 0.78rem; font-weight: 700; background: transparent; border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 8px; cursor: pointer; }
.rotator-toggle:hover { color: var(--deep-space); background: var(--white); }
.rotator-stage { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: 200px; max-width: 900px; }
.rotator-stage.is-changing { animation: focus-switch 340ms ease both; }
.rotator-label { margin: 0 0 10px; color: var(--ice-highlight); font-size: 0.88rem; font-weight: 700; }
.rotator-stage h2 { margin: 0; font-family: var(--font-latin); font-size: clamp(2.5rem, 6.5vw, 5.4rem); font-weight: 900; line-height: 1; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.rotator-point { max-width: 720px; margin: 20px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 1rem; line-height: 1.8; }
.rotator-story { margin: 14px 0 0; color: rgba(255, 255, 255, 0.52); font-family: var(--font-latin); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; }
.rotator-progress { position: absolute; right: clamp(28px, 6vw, 68px); bottom: 24px; left: clamp(28px, 6vw, 68px); z-index: 1; height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.16); }
.rotator-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--space-blue), var(--ice-highlight)); transform-origin: left; }
.rotator-progress i.is-running { animation: recall-progress 2s linear both; }

.section-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin: 72px 0 24px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin: 0; color: var(--deep-space); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.8; text-align: right; }

.story-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shelf-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 92px; padding: 18px 20px; text-align: left; background: rgba(255, 255, 255, 0.84); border: 1px solid transparent; border-radius: 12px; cursor: pointer; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.shelf-card:hover { background: var(--white); border-color: var(--space-blue); transform: translateY(-1px); }
.shelf-number { color: var(--space-blue); font-family: var(--font-latin); font-size: 0.82rem; font-weight: 700; }
.shelf-card strong, .shelf-card small { display: block; }
.shelf-card strong { color: var(--deep-space); font-size: 1rem; font-weight: 700; }
.shelf-card small { margin-top: 3px; color: var(--muted); font-family: var(--font-latin); font-size: 0.78rem; font-weight: 600; line-height: 1.35; }
.status-pill { padding: 5px 9px; color: var(--muted); font-size: 0.68rem; font-weight: 700; background: var(--silver); border-radius: 6px; white-space: nowrap; }
.status-pill.learning, .status-pill.stable { color: var(--deep-space); background: var(--pale-blue); }
.status-pill.mastered { color: var(--white); background: var(--space-blue); }

.empty-mission { display: grid; min-height: 250px; padding: 28px; place-items: center; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 16px; }
.empty-mission p { margin: 6px 0 0; }

.practice-shell { max-width: 1040px; margin-inline: auto; }
.practice-topbar { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.practice-count { color: var(--muted); font-family: var(--font-latin); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.practice-title { margin: 0 0 30px; color: var(--deep-space); font-family: var(--font-latin); font-size: clamp(2.65rem, 7vw, 5.3rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.05em; }
.practice-title span { display: block; margin-top: 12px; color: var(--graphite); font-family: var(--font-ja); font-size: 0.34em; font-weight: 700; letter-spacing: 0; }
.practice-card { padding: clamp(26px, 5vw, 56px); background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(31, 65, 111, 0.1); border-radius: 22px; box-shadow: var(--shadow-soft); }

.story-map { display: flex; align-items: flex-start; margin-bottom: 42px; }
.map-stop { position: relative; flex: 1; padding-top: 24px; color: var(--muted); font-family: var(--font-latin); font-size: 0.66rem; font-weight: 700; text-align: center; }
.map-stop::before { position: absolute; top: 6px; left: 50%; z-index: 1; width: 13px; height: 13px; background: var(--white); border: 2px solid var(--line); border-radius: 50%; content: ""; transform: translateX(-50%); }
.map-stop:not(:last-child)::after { position: absolute; top: 12px; left: 50%; width: 100%; height: 2px; background: var(--line); content: ""; }
.map-stop.active::before, .map-stop.done::before { background: var(--space-blue); border-color: var(--space-blue); box-shadow: 0 0 0 5px rgba(120, 174, 255, 0.18); }
.map-stop.done:not(:last-child)::after { background: linear-gradient(90deg, var(--space-blue), var(--ice-highlight)); }

.watchout-card { display: grid; grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr); gap: 34px; margin-bottom: 32px; padding: 28px; background: var(--pale-blue); border-left: 5px solid var(--space-blue); border-radius: 0 14px 14px 0; }
.watchout-heading h2 { margin: 0; color: var(--deep-space); font-size: 1.35rem; font-weight: 900; line-height: 1.35; }
.watchout-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 0.84rem; }
.watchout-list { margin: 0; padding: 0; list-style: none; }
.watchout-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(61, 111, 190, 0.18); }
.watchout-list li:first-child { padding-top: 0; }
.watchout-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.watchout-number { color: var(--space-blue); font-family: var(--font-latin); font-size: 0.7rem; font-weight: 700; }
.watchout-list strong { color: var(--deep-space); font-family: var(--font-latin); font-size: 1rem; font-weight: 700; }
.watchout-list p { margin: 4px 0 0; color: var(--graphite); font-size: 0.84rem; }

.preview-list { margin: 0; padding: 0; list-style: none; }
.preview-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 22px; align-items: start; padding: 25px 0; border-top: 1px solid var(--line); }
.preview-row:last-child { border-bottom: 1px solid var(--line); }
.preview-row .index { display: grid; width: 38px; height: 38px; place-items: center; color: var(--space-blue); font-family: var(--font-latin); font-size: 0.75rem; font-weight: 700; border: 2px solid var(--space-blue); border-radius: 50%; }
.preview-row strong, .preview-row small { display: block; }
.preview-row strong { color: var(--deep-space); font-family: var(--font-latin); font-size: clamp(1.2rem, 2.3vw, 1.55rem); font-weight: 700; line-height: 1.45; }
.preview-row small { margin-top: 6px; color: var(--graphite); font-size: 0.92rem; }
.preview-actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 32px; }

.eyes-closed-card { position: relative; color: var(--white); text-align: center; overflow: hidden; background: linear-gradient(140deg, var(--graphite), var(--deep-space)); }
.eyes-closed-card::before { position: absolute; top: -230px; left: 50%; width: 520px; height: 520px; border: 72px solid rgba(120, 174, 255, 0.08); border-radius: 50%; content: ""; transform: translateX(-50%); }
.closed-eye-mark { position: relative; width: 76px; height: 38px; margin: 2px auto 20px; overflow: hidden; }
.closed-eye-mark::before, .closed-eye-mark::after { position: absolute; right: 0; left: 0; height: 38px; border: 3px solid var(--ice-highlight); border-radius: 50%; content: ""; }
.closed-eye-mark::before { top: -25px; }
.closed-eye-mark::after { bottom: -25px; }
.eyes-closed-card .utility-label { position: relative; color: var(--ice-highlight); }
.eyes-closed-card h2 { position: relative; margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.04em; }
.eyes-closed-intro { position: relative; max-width: 680px; margin: 18px auto 28px; color: rgba(255, 255, 255, 0.78); font-size: 1rem; }
.challenge-timer { position: relative; display: grid; justify-items: center; }

.timer-dial {
  --timer-progress: 360deg;
  position: relative;
  display: grid;
  width: 220px;
  height: 220px;
  margin: 0 auto 22px;
  place-content: center;
  background:
    linear-gradient(var(--deep-space), var(--deep-space)) padding-box,
    conic-gradient(var(--ice-highlight) var(--timer-progress), rgba(255, 255, 255, 0.12) 0) border-box;
  border: 8px solid transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 45px rgba(120, 174, 255, 0.08), 0 0 32px rgba(120, 174, 255, 0.14);
}

.timer-dial span, .timer-dial strong, .timer-dial small { display: block; font-family: var(--font-latin); text-align: center; }
.timer-dial span, .timer-dial small { color: var(--ice-highlight); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; }
.timer-dial strong { margin: -2px 0; color: var(--white); font-size: 4.9rem; font-weight: 900; line-height: 1; }
.timer-start-button { color: var(--deep-space); background: var(--ice-highlight); border: 1px solid var(--ice-highlight); box-shadow: 0 12px 28px rgba(120, 174, 255, 0.18); }
.timer-guidance { min-height: 1.7em; margin: 14px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.86rem; }

.memory-thread { position: relative; display: flex; max-width: 560px; margin: 28px auto 32px; align-items: center; justify-content: space-between; }
.memory-thread::before { position: absolute; right: 20px; left: 20px; height: 2px; background: linear-gradient(90deg, var(--space-blue), var(--ice-highlight)); content: ""; }
.memory-thread span { position: relative; z-index: 1; display: grid; width: 40px; height: 40px; place-items: center; color: var(--ice-highlight); font-family: var(--font-latin); font-size: 0.76rem; font-weight: 700; background: var(--deep-space); border: 2px solid var(--ice-highlight); border-radius: 50%; }
.memory-result-options { position: relative; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.eyes-closed-card .secondary-button { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.46); }
.eyes-closed-card .secondary-button:hover { background: rgba(255, 255, 255, 0.08); }
.eyes-closed-card .text-button { color: rgba(255, 255, 255, 0.74); border-color: rgba(255, 255, 255, 0.24); }

.done-card { max-width: 760px; margin: 72px auto 0; padding-block: clamp(48px, 8vw, 88px); text-align: center; }
.done-symbol { display: grid; width: 74px; height: 74px; margin: 0 auto 22px; place-items: center; color: var(--white); font-family: var(--font-latin); font-size: 2rem; font-weight: 900; background: var(--space-blue); border-radius: 50%; box-shadow: 0 0 0 10px rgba(120, 174, 255, 0.17); }
.done-card h1 { margin: 0; color: var(--deep-space); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.2; }
.done-card > p:not(.eyebrow) { max-width: 610px; margin: 22px auto 30px; color: var(--graphite); }

.site-footer { display: flex; gap: 20px; justify-content: space-between; margin-top: 84px; padding: 24px 0 34px; color: var(--muted); font-size: 0.78rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }

@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes focus-switch { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes recall-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .today-route-heading, .orbit-principle, .watchout-card { grid-template-columns: 1fr; }
  .today-route-heading { gap: 14px; }
  .orbit-principle { gap: 18px; }
  .mission-grid { grid-template-columns: 1fr 1fr; }
  .mission-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mastery-rule { grid-template-columns: 1fr; }
  .mastery-rule > p { grid-column: auto; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .story-shelf { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { background: radial-gradient(circle at 100% 0, rgba(120, 174, 255, 0.14), transparent 20rem), var(--silver); }
  .site-header, .site-footer, #app { width: min(100% - 28px, 1200px); }
  .site-header { min-height: 86px; }
  .brand { gap: 10px; }
  .brand strong { font-size: 0.92rem; }
  .brand small { display: none; }
  .brand-mark { grid-template-columns: repeat(5, 6px); gap: 3px; }
  .brand-mark i { width: 6px; height: 6px; }
  .quiet-button { font-size: 0.78rem; }
  .today-route, .practice-card, .focus-rotator { border-radius: 16px; }
  .today-route { padding: 26px 20px 22px; }
  .today-route-heading h1 { font-size: clamp(2.1rem, 12vw, 3.2rem); }
  .orbit-principle { margin-top: 28px; padding: 18px 16px; }
  .orbit-principle span { width: 28px; height: 28px; font-size: 0.58rem; }
  .orbit-principle p { font-size: 0.84rem; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-card, .mission-card:last-child:nth-child(odd) { grid-column: auto; min-height: 298px; padding: 24px; }
  .mission-card footer { align-items: stretch; flex-direction: column; }
  .mission-card .primary-button { width: 100%; }
  .mastery-rule { padding: 18px; }
  .mastery-rule ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mastery-rule li { padding: 5px 7px; justify-content: center; background: rgba(255, 255, 255, 0.07); border-radius: 5px; }
  .mastery-rule li:not(:last-child)::after { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat + .stat, .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .focus-rotator { min-height: 350px; padding: 24px 22px 42px; }
  .rotator-topline { align-items: flex-start; flex-direction: column; }
  .rotator-stage { min-height: 230px; }
  .rotator-stage h2 { font-size: clamp(2.45rem, 15vw, 4rem); }
  .section-heading { align-items: flex-start; flex-direction: column; margin-top: 54px; }
  .section-heading > p { text-align: left; }
  .shelf-card { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 16px; }
  .status-pill { grid-column: 2; justify-self: start; }
  .practice-topbar { margin-bottom: 30px; }
  .practice-title { margin-bottom: 24px; font-size: clamp(2.25rem, 14vw, 3.5rem); }
  .practice-title span { font-size: 0.42em; }
  .practice-card { padding: 24px 18px; }
  .story-map { margin-bottom: 30px; }
  .map-stop span { display: none; }
  .map-stop { padding-top: 18px; }
  .watchout-card { gap: 22px; padding: 22px 18px; }
  .preview-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 22px 0; }
  .preview-row .index { width: 32px; height: 32px; }
  .preview-row strong { font-size: 1.12rem; }
  .preview-actions, .memory-result-options { align-items: stretch; flex-direction: column; }
  .preview-actions .primary-button, .preview-actions .secondary-button, .memory-result-options button { width: 100%; }
  .timer-dial { width: 190px; height: 190px; }
  .timer-dial strong { font-size: 4.1rem; }
  .memory-thread span { width: 32px; height: 32px; }
  .site-footer { align-items: flex-start; flex-direction: column; margin-top: 58px; }
}

@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;
  }
}
