:root {
  color-scheme: light;
  --ink: #252b2a;
  --muted: #596461;
  --paper: #f6f4ef;
  --panel: #fffefa;
  --line: #d8ddd7;
  --green: #28645b;
  --green-dark: #194b44;
  --green-pale: #e7f1ed;
  --gold-pale: #fbf1d9;
  --rose-pale: #f8eae6;
  --focus: #a64d00;
  font-family: "BIZ UDGothic", "BIZ UDPGothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, a { font: inherit; }
button { color: inherit; }
a { color: var(--green-dark); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 5; padding: .6rem .9rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 3.5rem; padding: .45rem clamp(1rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.8); }
.brand { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.text-size-button { border: 1px solid #aab7b1; border-radius: 999px; background: transparent; padding: .35rem .8rem; cursor: pointer; font-size: .9rem; }
.shell { width: min(100% - 2rem, 48rem); margin: 0 auto; }
.intro { padding: clamp(1.8rem, 5vw, 3rem) 0 1.35rem; }
.eyebrow { margin: 0 0 .3rem; color: var(--green); font-size: .88rem; font-weight: 700; letter-spacing: .06em; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: .025em; line-height: 1.25; }
.subtitle { margin: .45rem 0 0; color: var(--green-dark); font-size: 1.08rem; font-weight: 700; }
.intro-copy { max-width: 42rem; margin: .9rem 0 0; color: #3f4946; }
.panel { border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 1.7rem); background: var(--panel); box-shadow: 0 5px 20px rgba(28,48,42,.045); }
.panel h2, .panel h3 { line-height: 1.4; }
.loading { margin: .7rem 0 2rem; }
.loading h2 { margin: 0 0 .5rem; }
.loading p { margin: 0; color: var(--muted); }
.home-banner { display: block; width: 100%; height: min(260px, 56vw); margin: 0 0 1rem; border-radius: .65rem; object-fit: contain; object-position: center; background: #f5f1e8; }
.scenario-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.scenario-head h2 { margin: 0; font-size: 1.35rem; }
.step-pill { white-space: nowrap; border-radius: 999px; padding: .2rem .65rem; color: var(--green-dark); background: var(--green-pale); font-size: .88rem; font-weight: 700; }
.setting { border-left: 4px solid #8eaa9f; margin: 0 0 1rem; padding: .55rem .85rem; color: #394541; background: #f5f8f5; }
.turn-prompt { margin: 0 0 1rem; font-size: 1.12rem; font-weight: 700; }
.partner-line { margin: 0 0 .9rem; color: var(--muted); }
.partner-line strong { color: var(--ink); }
.choice-list { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; }
.choice-button { width: 100%; min-height: 3.25rem; display: flex; align-items: flex-start; gap: .7rem; padding: .78rem .9rem; border: 1px solid #b8c5bf; border-radius: .75rem; background: white; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.choice-button:hover { border-color: var(--green); background: #f2f8f5; }
.choice-marker { flex: 0 0 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); font-size: .88rem; font-weight: 700; line-height: 1; }
.response { margin-top: 1rem; border-radius: .8rem; padding: 1rem; background: var(--green-pale); }
.response[data-quality="neutral"] { background: var(--gold-pale); }
.response[data-quality="awkward"] { background: var(--rose-pale); }
.response h3 { margin: 0 0 .35rem; font-size: 1rem; }
.response p { margin: .35rem 0 0; }
.response .reply { color: #263a34; font-weight: 700; }
.chosen-words { padding: .6rem .75rem; border: 1px solid rgba(25,75,68,.18); border-radius: .55rem; background: rgba(255,255,255,.55); }
.next-prompt { color: #3c4d47; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.button { min-height: 2.8rem; padding: .55rem 1rem; border: 1px solid var(--green); border-radius: .65rem; color: var(--green-dark); background: white; cursor: pointer; font-weight: 700; }
.button:hover { background: #edf5f1; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.subtle { border-color: #c5cdc8; color: #394541; }
.notice { color: var(--muted); font-size: .92rem; }
.progress-track { height: .45rem; margin: 0 0 1.1rem; overflow: hidden; border-radius: 999px; background: #e6e9e4; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--green); transition: width .2s ease; }
.log-list { display: grid; gap: .65rem; padding: 0; margin: .6rem 0 1rem; list-style: none; }
.log-item { padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.log-item p { margin: .2rem 0; }
.log-meta { color: var(--muted); font-size: .88rem; font-weight: 700; }
.log-words { font-weight: 700; }
.review-item { border-top: 1px solid var(--line); padding: .85rem 0; }
.review-item:first-of-type { border-top: 0; }
.review-item h3 { margin: 0 0 .45rem; font-size: 1rem; }
.review-choice { margin: .4rem 0; padding: .65rem .75rem; border-radius: .55rem; background: #f2f4f1; }
.review-choice p { margin: .2rem 0; }
.review-choice[data-quality="good"] { background: var(--green-pale); }
.review-choice[data-quality="neutral"] { background: var(--gold-pale); }
.review-choice[data-quality="awkward"] { background: var(--rose-pale); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding: 1.5rem 0 2rem; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
body.large-text { font-size: 19px; }
@media (max-width: 480px) {
  .shell { width: min(100% - 1.25rem, 48rem); }
  .intro { padding-top: 1.5rem; }
  .panel { border-radius: .8rem; }
  .scenario-head { display: block; }
  .step-pill { display: inline-block; margin-top: .5rem; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .site-footer { display: grid; }
  .footer-links { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Keep the conversation in view; the full introduction stays on the scene list. */
body.in-session .intro { padding: .9rem 0; }
body.in-session .intro h1 { font-size: 1.25rem; }
body.in-session .intro .eyebrow, body.in-session .intro .subtitle, body.in-session .intro .intro-copy { display: none; }
.scenario-card { border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; display: flex; flex-direction: column; }
.scenario-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.scenario-card p { color: var(--muted); margin: 0 0 .9rem; flex: 1; }
.choice-list:has(> .scenario-card) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
@media(max-width:600px) { .choice-list:has(> .scenario-card) { grid-template-columns: 1fr; } }
