/* 清透绘本风：浅雾蓝底 + 柔白阅读区，局部浅杏／淡绿点缀。
   按钮、布局与交互结构不动，只换配色、边框与背景质感。 */
:root{
  --paper:#eef3f7;        /* 浅雾蓝：整页底 */
  --white:#fdfefe;        /* 柔白：阅读区 */
  --ink:#25333d;          /* 正文：保持高对比 */
  --muted:#63737d;
  --line:#d8e2e8;
  --accent:#33628c;       /* 主色：沉一点的雾蓝 */
  --other:#d08a63;        /* 浅杏 */
  --soft:#e3edf2;
  --green:#7ba88a;        /* 淡绿 */
  --apricot:#f6e7db;      /* 浅杏底 */
  --radius:14px;
  --shadow:0 8px 26px rgba(60,90,110,.10);
}

/* 背景随场景轻微变化：只用极淡的整片渐变，不做满屏纸纹，也不放持续运动的元素。 */
body{
  background-color:var(--paper);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, #f7f3ec 0%, rgba(247,243,236,0) 60%),
    radial-gradient(1000px 540px at 100% 4%, #e7f0ea 0%, rgba(231,240,234,0) 58%);
  background-attachment:fixed;
}
body[data-scene-tint="court"]{
  background-image:
    radial-gradient(1100px 520px at 12% -8%, #f7f3ec 0%, rgba(247,243,236,0) 60%),
    radial-gradient(1000px 540px at 100% 4%, #e4eef6 0%, rgba(228,238,246,0) 58%);
}
body[data-scene-tint="bench"]{
  background-image:
    radial-gradient(1100px 520px at 12% -8%, #f9efe6 0%, rgba(249,239,230,0) 60%),
    radial-gradient(1000px 540px at 100% 4%, #e8f1ea 0%, rgba(232,241,234,0) 58%);
}
body[data-scene-tint="road"]{
  background-image:
    radial-gradient(1100px 520px at 12% -8%, #eef4f8 0%, rgba(238,244,248,0) 60%),
    radial-gradient(1000px 540px at 100% 4%, #f6efe7 0%, rgba(246,239,231,0) 58%);
}
body[data-scene-tint="table"]{
  background-image:
    radial-gradient(1100px 520px at 12% -8%, #f4f1ea 0%, rgba(244,241,234,0) 60%),
    radial-gradient(1000px 540px at 100% 4%, #e6f0ec 0%, rgba(230,240,236,0) 58%);
}

.site-header,.wrap,.site-footer{max-width:880px}
.site-header{padding-top:22px;flex-wrap:wrap;gap:8px;border-bottom-color:var(--line)}
.brand{font-family:KaiTi,"Kaiti SC",serif;font-size:23px;letter-spacing:.04em}
.badge{background:var(--soft);border-radius:30px}

.layout{display:block}

/* 柔白阅读区：圆角 + 柔和投影，去掉硬边与纸纹。文字区始终干净、对比清晰。 */
.sheet{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:30px 34px;
}
.center{max-width:none;margin:12px auto}

h1,h2{font-family:KaiTi,"Kaiti SC","PingFang SC",serif}
h1{font-size:clamp(29px,5vw,39px)}
h2{font-size:30px}
.titlefocus{margin-bottom:17px}
.titlefocus:after{content:"";display:block;width:58px;height:4px;background:var(--other);margin-top:11px;border-radius:30%}
.lead{font-size:18px;line-height:1.7}

.choice,.inline button{
  border:1px solid var(--line);border-radius:11px;background:var(--white);
  box-shadow:0 2px 8px rgba(60,90,110,.07);
}
.choice{font-size:18px;padding:12px 15px;line-height:1.65}
.choices{margin-top:20px;gap:12px}
.choice:hover:not(:disabled),.inline button:hover:not(:disabled),.quiet:hover{background:var(--soft);border-color:var(--accent)}
.choice.primary,.quiet.active{background:var(--accent);border-color:var(--accent);color:#fff}
.choice.primary:hover:not(:disabled){background:#2a5375}
.toolbar{gap:4px;margin-bottom:16px;border-bottom:1px solid var(--line);padding-bottom:12px}
.toolbar .quiet{border-radius:9px}

.quote{background:#f6f9fb;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:0 12px 12px 0;box-shadow:none;padding:13px 17px;font-size:18px;overflow-wrap:anywhere}
.quote .label{color:var(--muted)}

.source{background:transparent;border:0;padding:0;color:var(--muted)}
.dialogue{font-size:18px;line-height:1.7;margin-bottom:11px}
.story-lines{border-left:3px solid var(--other);padding-left:16px}
.story-lines .spoken{border:1px solid var(--line);padding:12px 15px;background:#fbfdfd;border-radius:0 12px 12px 0;box-shadow:none}
.progress b{background:#dbe6ec}
.progress b.on{background:var(--accent)}
.freeinput{border-color:var(--line)}
textarea,input{background:var(--white);border:1px solid var(--line);border-radius:11px;max-width:100%;color:var(--ink)}
textarea{min-height:110px;box-shadow:none}
button:focus-visible,summary:focus-visible,a:focus-visible,textarea:focus-visible{outline-color:var(--accent)}
.notice{border-radius:11px;background:var(--apricot);border:1px solid #ecd6c4}
.note{color:var(--muted);border-color:var(--line)}
.support-drawer{margin-top:24px;border-top:1px solid var(--line);padding-top:10px}
.support-drawer>summary{min-height:44px;padding:8px 0;color:var(--muted);cursor:pointer}
.support-drawer .aside{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;padding:0}
.support-drawer .number{display:none}
.support-drawer .quiet{display:block;text-align:left;width:100%}
.quick-help{display:flex;justify-content:flex-end;margin-top:10px}
.status:empty{display:none}
.status{overflow-wrap:anywhere;border-left:3px solid var(--accent);padding-left:14px}
.fineprint{margin-top:16px}

/* 画面：不再铺满屏纸纹；只留一条很淡的横向基准线，衬出人物站立的地面。 */
.doodle-stage{margin:18px 0 10px;background:transparent;border-radius:var(--radius)}
.doodle-stage svg{display:block;width:100%;height:auto;overflow:visible}
.doodle-stage .ink-ink{stroke:var(--ink)}
.doodle-stage .ink-accent{stroke:var(--accent)}
.doodle-stage .ink-other{stroke:var(--other)}
.doodle-stage .ink-sub{stroke:#9fb0ba}
.doodle-stage .ink-green{stroke:var(--green)}
.doodle-stage figcaption{display:flex;justify-content:space-between;width:45%;margin:2px auto 0;font-size:14px;color:var(--muted)}
.doodle-controls{display:flex;justify-content:center;gap:8px;padding:8px 0 4px;background:transparent}

/* S01 插画分镜（「近景生活漫画」）：3:4 画框，画面外留一句小字说明。
   第 2 幕只露左半幅——容器固定 3:4、裁掉溢出，内部图片宽 200%，
   与用户已确认的小样完全一致；不能改成整图铺开。 */
.comic-stage{margin:0}
.comic-frame{
  position:relative;overflow:hidden;width:100%;aspect-ratio:3/4;
  border:1px solid #cdd6db;border-radius:12px;background:#efece3;
  box-shadow:0 6px 20px rgba(60,90,110,.10);
}
.comic-frame img{display:block;width:100%;height:100%;object-fit:cover}
.comic-frame[data-framing="left-half"] img{width:200%;max-width:none;height:100%;object-fit:fill}
.comic-stage figcaption{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:12px;line-height:1.5;color:var(--muted)}
.comic-stage[data-reveal="1"] .comic-frame{animation:comic-in .55s ease-out both}
@keyframes comic-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* 桌面：左侧漫画、右侧故事与操作；手机：图在前、文字与操作在后。
   只有带插画的故事用这个两栏（E02 回落到原来的单栏）。 */
.comic-spread{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:34px;align-items:start}
.comic-spread .comic-col{position:sticky;top:18px}
.comic-spread .comic-body{min-width:0}
.comic-spread .progress{margin-bottom:14px}

.sheet[data-stage="sim"] .doodle-stage,.sheet[data-stage="ownSim"] .doodle-stage,.sheet[data-stage="self"] .doodle-stage{max-width:450px;margin-left:auto;margin-right:auto}
[hidden]{display:none!important}
@media(max-width:820px){
  .comic-spread{display:block}
  .comic-spread .comic-col{position:static}
  .comic-spread .comic-body{padding-top:20px}
  .comic-frame{max-height:480px}
}
@media(prefers-reduced-motion:reduce){
  .comic-stage[data-reveal="1"] .comic-frame{animation:none}
}
@media(max-width:600px){.site-header{padding:16px 16px 12px}.wrap{padding:15px 14px 28px}.sheet{padding:22px 18px}.toolbar{gap:2px}.toolbar .quiet{padding:7px 9px}.support-drawer .aside{grid-template-columns:1fr}.site-footer{padding:0 16px 24px}h2{font-size:27px}.choice{font-size:17px}.quote{font-size:17px}}
