/* A quiet, illustrated working life. Layout and motion sit above the game UI. */
:root {
  color-scheme: dark;
  --bg: #0e1518;
  --panel: #151f22;
  --raised: #1d2a2d;
  --paper: #e2eae6;
  --muted: #a7b6b4;
  --subtle: #879c9b;
  --line: #2c3c40;
  --accent: #d27390;
  --accent-light: #eca8be;
  --sage: #72c7b8;
  --rose: #d27390;
  --blue: #91b9ca;
  --serif: 'Hahmlet', Georgia, serif;
  --thai-serif: 'Noto Serif Thai', 'IBM Plex Sans Thai', serif;
}
body.light-theme {
  color-scheme: light;
  --bg: #f3f1e9;
  --panel: #fdfcf6;
  --raised: #e9ede5;
  --paper: #243c3a;
  --muted: #506663;
  --subtle: #60736e;
  --line: #ccd5cd;
  --accent: #a94567;
  --accent-light: #853650;
  --sage: #287c6d;
  --rose: #a94567;
  --blue: #437d94;
}
body { background: var(--bg); color: var(--paper); }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 5px; }
.site-header { max-width: 1280px; padding: 19px 28px; }
.wordmark { font-size: 22px; font-weight: 600; letter-spacing: -.8px; }
.wordmark em { color: var(--accent); }
.mode-label { color: var(--subtle); font-size: 11px; }
.theme-toggle {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel);
  color: var(--paper); font-size: 18px; padding: 0; flex: none;
}
.theme-toggle:hover { border-color: var(--sage); background: var(--raised); }
.theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { color: var(--sage); font-size: 10px; letter-spacing: 1.6px; }
.btn { border-radius: 4px; color: #10191b; background: var(--accent); }
.btn:hover { background: var(--accent-light); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.secondary, .btn.ghost { color: var(--paper); }
.btn.secondary:hover { background: var(--raised); }
.light-theme .btn { color: #fff; }
.light-theme .btn.secondary, .light-theme .btn.ghost { color: var(--paper); }
.site-footer { max-width: 1280px; padding: 24px 28px 36px; }
.source-note { border-radius: 4px; }
.join-page { max-width: 1280px; padding: 0 28px 104px; }
.join-page .experience-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px; align-items: center; padding: 56px 0 42px;
}
.experience-hero-copy { min-width: 0; }
.experience-hero .hero-title {
  font-family: var(--serif); font-size: clamp(78px, 10.2vw, 142px);
  line-height: 1.02; font-weight: 600; letter-spacing: -7px;
  margin: 24px 0 28px; color: var(--paper);
}
.experience-hero .hero-title span { color: var(--accent); }
.experience-hero .hero-title .hero-total { color: var(--paper); }
.experience-hero-art { min-width: 0; }
.hero-start { width: fit-content; min-width: 240px; margin: 0 0 24px; }
.universe-footnote { font-size: 10px; color: var(--subtle); text-align: center; margin-top: 14px; }
.experience-hero .hero-title em { color: var(--paper); font-size: .66em; font-weight: 400; }
.experience-hero .hero-subtitle {
  font-family: var(--thai-serif); font-weight: 400; font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.6; letter-spacing: -.5px; max-width: 570px; margin-bottom: 18px;
}
.experience-hero .hero-intro { font-size: 14px; line-height: 1.9; max-width: 490px; margin-bottom: 20px; }
.hero-meta { border-top: 1px solid var(--line); padding-top: 18px; gap: 23px; }
.hero-meta .meta-item { font-size: 12px; color: var(--muted); }
.meta-item::before { width: 5px; height: 5px; background: var(--accent); }
.population-universe {
  position: relative; min-height: 320px; overflow: hidden;
  background-image: radial-gradient(circle, #66838030 1px, transparent 1.3px);
  background-size: 13px 13px; border-radius: 50%;
  -webkit-mask-image: radial-gradient(ellipse, #000 45%, transparent 72%);
  mask-image: radial-gradient(ellipse, #000 45%, transparent 72%);
}
.universe-dot {
  position: absolute; left: var(--dot-x); top: var(--dot-y); width: var(--dot-size, 7px); height: var(--dot-size, 7px);
  background: var(--accent); border-radius: 50%; opacity: var(--opacity, .55);
  animation: life-breathe 6s ease-in-out var(--dot-delay, 0s) infinite;
}
.universe-orbit { position: absolute; border: 1px solid #72c7b81c; border-radius: 50%; inset: 23% 15%; transform: rotate(-22deg); }
.universe-orbit.orbit-two { inset: 9% 30%; transform: rotate(24deg); }
.universe-dot.is-you { opacity: 1; background: var(--accent-light); box-shadow: 0 0 0 9px #d2739022, 0 0 24px #d2739044; }
.universe-caption { gap: 7px; }
.universe-you { color: var(--sage); font-family: var(--mono); font-size: 8px; letter-spacing: 1px; }
.universe-dot:nth-child(4n) { background: var(--sage); }
.universe-dot:nth-child(11n) { box-shadow: 0 0 0 7px #d2739013; }
.universe-center, .universe-caption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.universe-center { color: var(--paper); font-family: var(--serif); font-size: 64px; }
.universe-center small { display: block; font-family: var(--body); font-size: 11px; color: var(--muted); }
.universe-caption { inset: auto 0 20px; font-size: 11px; color: var(--muted); }
.join-stage {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
  gap: 40px; align-items: start; padding: 35px 0 50px; border-top: 1px solid var(--line);
}
.join-story { min-width: 0; }
.join-story h2 { font-family: var(--thai-serif); font-size: 27px; font-weight: 400; line-height: 1.7; margin: 17px 0 16px; }
.join-story > p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.join-card.form-panel { border-radius: 5px; background: var(--panel); padding: 28px; margin: 0; }
.join-card.form-panel h2 { font-family: var(--thai-serif); font-size: 25px; margin: 10px 0 20px; }
.field input:not(:where([type=radio],[type=checkbox])) { border-radius: 4px; background: var(--bg); }
.field .code-input { font-size: 26px; letter-spacing: 7px; }
.form-note, .session-save-note { line-height: 1.9; }
.join-card .btn { width: 100%; }
.resume-card { border-color: var(--line); background: var(--raised); }
.entry-cta {
  position: fixed; z-index: 20; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; gap: 16px; align-items: center;
  width: max-content; max-width: calc(100% - 32px); padding: 8px 9px 8px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
  box-shadow: 0 8px 32px #0005;
}
.entry-cta p, .entry-cta > span { font-size: 11px; color: var(--muted); }
.entry-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 13px; white-space: nowrap; flex: none; }
#join-form { scroll-margin-top: 28px; }
.story-scene { margin: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--panel); }
.story-scene .story-scene-image { width: 100%; height: auto; aspect-ratio: 3 / 1; display: block; object-fit: cover; image-rendering: pixelated; }
.story-scene-caption { padding: 11px 15px; display: flex; justify-content: space-between; gap: 16px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.story-scene-caption span:last-child { color: var(--subtle); }
.join-story .story-scene { margin: 0 0 22px; }
.chapter-preview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 26px 0 45px; border-top: 1px solid var(--line); }
.chapter-preview { min-width: 0; padding: 22px 18px 22px 0; position: relative; }
.chapter-preview::before { content: ''; position: absolute; width: 6px; height: 6px; background: var(--sage); border-radius: 50%; top: -3px; left: 0; }
.chapter-preview + .chapter-preview { padding-left: 18px; border-left: 1px solid var(--line); }
.chapter-preview + .chapter-preview::before { left: 18px; }
.chapter-preview time, .chapter-preview > span, .chapter-preview .number { color: var(--sage); font-family: var(--mono); font-size: 11px; }
.chapter-preview h3 { font-size: 14px; line-height: 1.7; margin: 10px 0; }
.chapter-preview p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.role-preview-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 22px 0 32px; }
.role-preview { border: 1px solid var(--line); border-radius: 5px; padding: 16px 12px; background: var(--panel); min-width: 0; }
.role-preview .life-portrait { width: 72px; height: 72px; margin-bottom: 14px; }
.role-preview h3 { font-size: 13px; line-height: 1.6; }
.role-preview p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
.role-preview small { color: var(--subtle); font-size: 10px; }
.life-portrait {
  display: block; width: 82px; height: 82px; flex: none; background-color: #152829;
  background-image: url('/assets/people-atlas.png'); background-size: 300% 200%;
  background-position: var(--portrait-x, 0%) var(--portrait-y, 0%);
  image-rendering: pixelated; border: 1px solid var(--line); border-radius: 3px;
}
.reveal-wrap { max-width: 1120px; padding: 50px 28px 70px; }
.reveal-intro { margin-bottom: 32px; }
.reveal-intro .intro-copy { color: var(--muted); font-size: 14px; line-height: 1.9; }
.reveal-layout { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.reveal-layout .story-scene { margin: 0 0 24px; }
.reveal-action { margin-top: 24px; }
.reveal-action .btn { width: 100%; margin-bottom: 15px; }
.passport-heading { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.passport-stamp { font-family: var(--mono); font-size: 9px; color: var(--subtle); }
.passport-name { margin-top: 20px; }
.passport-name .eyebrow { font-size: 8px; }
.passport-name .id-name { margin: 10px 0; }
.chapter-progress-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; font-size: 10px; color: var(--muted); }
.reveal-heading { font-family: var(--thai-serif); font-size: clamp(30px, 4vw, 46px); font-weight: 400; line-height: 1.5; letter-spacing: -1px; }
.life-passport { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.life-passport.identity-card { padding: 28px; background: var(--panel); }
.life-passport::before { display: none; }
.passport-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.passport-meta h2, .passport-meta h3 { font-family: var(--serif); font-weight: 500; }
.passport-meta .id-name { font-size: 30px; }
.passport-story { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 22px 0; }
.life-passport .id-top { align-items: center; }
.life-passport .id-details { margin: 20px 0; }
.life-passport .id-details dt { color: var(--subtle); }
.life-passport .id-details dd { color: var(--paper); }
.life-passport .life-portrait { width: 100px; height: 100px; }
.reveal-wrap .story-scene { margin: 26px 0; }
.reveal-wrap > .btn { width: 100%; max-width: 390px; margin: 24px 0; }
.simulation-context { background: var(--panel); border-color: var(--line); }
.simulation-context h2 { font-size: 16px; }
.simulation-context p { color: var(--muted); }
.wait-card { background: var(--panel); border-radius: 5px; }
.wait-card h2 { font-family: var(--thai-serif); font-weight: 400; }
.game-page { max-width: 1440px; padding: 24px 28px 60px; }
.game-top { gap: 20px; margin-bottom: 20px; }
.calendar { font-family: var(--serif); font-size: 40px; color: var(--paper); }
.role-mini .life-portrait { width: 40px; height: 40px; }
.chapter-progress { display: flex; gap: 0; margin: 0 0 24px; padding: 0; list-style: none; }
.chapter-progress-step { flex: 1; min-width: 0; border-top: 3px solid var(--line); padding-top: 9px; font-family: var(--mono); font-size: 10px; color: var(--subtle); }
.chapter-progress-step + .chapter-progress-step { margin-left: 8px; }
.chapter-progress-step.done, .chapter-progress-step.is-complete { border-color: var(--sage); color: var(--sage); }
.chapter-progress-step.current, .chapter-progress-step.is-current, .chapter-progress-step[aria-current=step] { border-color: var(--accent); color: var(--accent-light); }
.chapter-progress-step strong, .chapter-progress-step span { display: block; font-size: inherit; }
.chapter-progress-step::before { display: none; }
.life-layout { display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(200px, 250px); gap: 22px; align-items: start; }
.life-identity, .life-stage, .life-journal { min-width: 0; }
.life-identity { position: sticky; top: 24px; }
.life-identity .life-passport { padding: 20px; margin: 0 0 18px; }
.life-identity .passport-meta { display: grid; gap: 10px 14px; }
.life-identity .life-portrait { width: 76px; height: 76px; margin: 15px 0; }
.life-identity h2, .life-identity h3 { font-family: var(--serif); font-size: 21px; }
.life-identity .id-role { font-size: 12px; }
.life-identity p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.life-identity dl { margin: 16px 0 0; }
.life-identity dt { font-size: 10px; color: var(--subtle); }
.life-identity dd { font-size: 12px; color: var(--paper); margin: 2px 0 10px; }
.life-identity .metrics { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); background: var(--panel); padding: 20px; border-radius: 5px; margin: 0; }
.life-identity .metric { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; }
.life-identity .metric-label { font-size: 9px; white-space: normal; align-self: center; }
.life-identity .metric-value { font-family: var(--mono); font-size: 12px; margin: 0; }
.life-identity .metric-track { grid-column: 1/-1; height: 6px; border-radius: 1px; background: var(--raised); }
.life-stage > .story-scene { margin-bottom: 20px; }
.life-stage .event-header { padding: 23px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; margin-bottom: 18px; }
.life-stage .event-title { font-family: var(--thai-serif); font-size: 25px; line-height: 1.65; margin: 12px 0 16px; font-weight: 400; }
.event-scene { font-size: 14px; line-height: 1.95; color: var(--muted); }
.phase-rail { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding: 0 0 14px; margin: 18px 0; }
.phase-rail { list-style: none; }
.phase-step span { display: inline-block; margin-right: 6px; color: var(--sage); font-family: var(--mono); font-size: 9px; }
.phase-step { color: var(--subtle); font-size: 10px; position: relative; }
.phase-step.is-current, .phase-step.current, .phase-step[aria-current=step] { color: var(--accent-light); }
.phase-step.is-current::after, .phase-step.current::after, .phase-step[aria-current=step]::after { content: ''; height: 2px; background: var(--accent); position: absolute; left: 0; right: 0; bottom: -15px; }
.life-stage .role-gimmick { margin: 18px 0; padding: 24px; background: var(--panel); border-radius: 5px; border-color: var(--line); }
.life-stage .role-gimmick h2 { font-family: var(--thai-serif); font-weight: 400; font-size: 22px; }
.gimmick-intro, .gimmick-hint { color: var(--muted); }
.evidence-card, .dialogue-card, .allocation-row, .order-item { background: var(--bg); border-color: var(--line); }
.evidence-card.selected, .dialogue-card.selected, .evidence-card[aria-pressed=true], .dialogue-card[aria-pressed=true] { background: var(--raised); border-color: var(--sage); }
.choice { border-radius: 5px; padding: 18px; background: var(--panel); }
.choice:hover { background: var(--raised); border-color: var(--sage); transform: translateX(2px); }
.choice-letter { border-color: var(--line); color: var(--accent-light); font-size: 11px; width: 25px; height: 25px; }
.choice-title { font-size: 14px; line-height: 1.8; }
.choice-tradeoff { color: var(--muted); font-size: 11px; line-height: 1.8; }
.life-journal { position: sticky; top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.life-layout > .life-journal { display: block; }
.life-journal .journal-intro { font-size: 12px; color: var(--muted); line-height: 1.9; margin-bottom: 24px; }
.life-journal .journal-panel { display: block; padding: 0; border: 0; position: static; }
.life-journal h2 { font-family: var(--thai-serif); font-size: 19px; font-weight: 400; margin: 10px 0 22px; }
.life-journal .journal-entry { padding-bottom: 22px; }
.life-journal .journal-entry p { font-size: 11px; }
.life-journal .journal-entry time { font-size: 9px; }
.life-stage .mobile-journal { display: none; }
.life-stage .consequence { padding: 24px; border: 1px solid var(--line); background: var(--panel); border-radius: 5px; }
.chosen-line h2 { font-family: var(--thai-serif); font-size: 22px; font-weight: 400; }
.response-text { font-size: 16px; line-height: 2; color: var(--paper); }
.effect-note { border-color: var(--accent); background: var(--raised); color: var(--muted); }
.continue-area .btn { width: 100%; min-width: 0; }
.ending-page { max-width: 960px; padding: 48px 28px 70px; }
.ending-title { font-family: var(--serif); font-size: clamp(42px, 6vw, 70px); font-weight: 500; }
.light-theme .ending-subtitle, .light-theme .ending-mark,
.light-theme .ending-mark span { color: var(--accent); }
.ending-code { font-family: var(--mono); font-size: 11px; color: var(--sage); letter-spacing: 3px; }
.ending-scene { max-width: 760px; margin: 28px auto; }
.ending-scene .story-scene-image { aspect-ratio: 3/1; }
.ending-explanation { border-color: var(--line); background: var(--panel); }
.ending-explanation p, .ending-explanation li { color: var(--muted); }
.journey-log .log-row { border-color: var(--line); }
.compare-page { max-width: 940px; }
.comparison-story, .no-data { background: var(--panel); border-color: var(--line); }
.create-page { max-width: 800px; }
.create-page h1 { font-family: var(--thai-serif); font-weight: 400; }
.create-page .form-panel { border-radius: 5px; }
.mode-option { border-radius: 4px; }
.mode-option:has(input:checked) { border-color: var(--accent); background: var(--raised); }
.mode-option input[type=radio] { accent-color: var(--accent); }
.presenter-header { background: var(--bg); }
.presenter-board, .presenter-invite, .presenter-controls { background: var(--panel); }
.light-theme .presenter-people { background: var(--panel); }
.presenter-question h3 { font-family: var(--thai-serif); font-weight: 400; }
.story-enter { animation: story-arrive 500ms cubic-bezier(.2,.65,.3,1) both; }
.story-enter .life-portrait { animation: portrait-arrive 650ms ease-out both; }
@keyframes story-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes portrait-arrive { from { filter: saturate(0); } to { filter: saturate(1); } }
@keyframes life-breathe { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: .85; transform: scale(1.15); } }
@media (max-width: 1100px) {
  .join-page .experience-hero { gap: 34px; }
  .experience-hero .hero-title { font-size: 112px; letter-spacing: -6px; }
  .life-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
  .life-journal { position: static; grid-column: 2; }
  .role-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .role-preview { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; }
  .role-preview .life-portrait { width: 56px; height: 56px; grid-row: 1/4; margin: 0; }
  .role-preview h3, .role-preview p { grid-column: 2; }
}
@media (max-width: 760px) {
  .site-header { padding: 15px 22px; }
  .site-header .wordmark { font-size: 20px; }
  .header-right { gap: 10px; }
  .mode-label { font-size: 10px; }
  .join-page { padding: 0 22px 98px; }
  .join-page .experience-hero { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 36px 0 22px; }
  .experience-hero .hero-title { font-size: clamp(80px, 17.4vw, 120px); letter-spacing: -5px; margin: 22px 0 24px; }
  .experience-hero .hero-subtitle { font-size: 25px; }
  .experience-hero .hero-intro { font-size: 14px; }
  .experience-hero .population-universe { min-height: 210px; margin: 0 auto; width: 100%; max-width: 450px; }
  .join-stage { grid-template-columns: 1fr; gap: 25px; padding-top: 25px; padding-bottom: 35px; }
  .join-story h2 { font-size: 23px; }
  .join-card.form-panel { padding: 24px; }
  .hero-meta { gap: 17px; }
  .hero-meta .meta-item { font-size: 11px; }
  .chapter-preview-grid { grid-template-columns: 1fr; border-top: 0; margin: 24px 0 32px; }
  .chapter-preview, .chapter-preview + .chapter-preview { padding: 0 0 22px 24px; border-left: 1px solid var(--line); }
  .chapter-preview::before, .chapter-preview + .chapter-preview::before { top: 8px; left: -3px; }
  .chapter-preview h3 { margin: 6px 0; font-size: 15px; }
  .chapter-preview p { font-size: 12px; }
  .role-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .role-preview { display: block; padding: 16px; }
  .role-preview .life-portrait { width: 64px; height: 64px; margin-bottom: 12px; }
  .entry-cta { padding: 8px; bottom: max(12px, env(safe-area-inset-bottom)); gap: 12px; }
  .entry-cta p, .entry-cta > span { padding-left: 8px; font-size: 10px; }
  .entry-cta > div { display: none; }
  .entry-cta .btn { font-size: 12px; padding: 10px 16px; }
  .reveal-wrap, .ending-page { padding: 32px 22px 50px; }
  .reveal-layout { grid-template-columns: 1fr; gap: 24px; }
  .life-passport.identity-card { padding: 22px; }
  .life-passport .life-portrait { width: 86px; height: 86px; }
  .passport-meta { gap: 16px; }
  .passport-meta .id-name { font-size: 27px; }
  .game-page { padding: 20px 22px 50px; }
  .life-layout { display: flex; flex-direction: column; gap: 18px; }
  .life-identity, .life-stage, .life-journal { width: 100%; position: static; }
  .life-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .life-identity .life-passport { padding: 16px; margin: 0; }
  .life-identity .life-portrait { width: 56px; height: 56px; margin: 10px 0; }
  .life-identity h2, .life-identity h3 { font-size: 18px; }
  .life-identity .metrics { padding: 17px 14px; gap: 13px; }
  .life-identity .metric-label { font-size: 8px; }
  .life-identity .passport-story, .life-identity .passport-meta,
  .life-identity .passport-heading, .life-identity .passport-name .eyebrow,
  .life-identity .disclaimer { display: none; }
  .life-identity .passport-name { margin-top: 12px; }
  .life-stage .event-header, .life-stage .role-gimmick, .life-stage .consequence { padding: 20px; }
  .life-stage .event-title { font-size: 23px; }
  .life-stage .role-gimmick h2 { font-size: 20px; }
  .life-journal { padding: 20px; }
  .story-scene .story-scene-image { aspect-ratio: 2.3 / 1; }
  .story-scene-caption { padding: 10px 12px; font-size: 9px; gap: 10px; flex-wrap: wrap; }
  .chapter-progress-step { font-size: 9px; }
  .phase-rail { gap: 15px; }
  .phase-step { font-size: 9px; }
  .site-footer { padding: 20px 22px 32px; font-size: 10px; }
}
@media (max-width: 380px) {
  .site-header, .game-page, .join-page, .reveal-wrap, .ending-page { padding-left: 16px; padding-right: 16px; }
  .site-header .wordmark { font-size: 18px; }
  .theme-toggle { width: 34px; height: 34px; }
  .player-experience .header-right .mode-label { display: none; }
  .experience-hero .hero-title { font-size: 78px; letter-spacing: -4px; }
  .experience-hero .hero-subtitle { font-size: 22px; }
  .hero-meta { gap: 12px; }
  .hero-meta .meta-item { font-size: 10px; }
  .join-card.form-panel { padding: 20px; }
  .life-identity { gap: 10px; }
  .life-identity .life-passport, .life-identity .metrics { padding: 13px; }
  .role-preview { padding: 14px 12px; }
  .entry-cta p, .entry-cta > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
