/* 故事页：沿用练习页的底板（practice.css 的变量与 .board 骨架），只改文字区的高度并加几个组件。 */
:root { --text-h: 116px; --fb-h: 56px; }
/* 第三步（html.role）：没有图标行；录音块 = 话筒 56 + 跳过 44 + 间隔 4 */
:root.role { --icon: 0px; --fb-h: 104px; }
/* 第二步（理一理）：没有声音可播，整行声音按钮不画 */
:root.recap { --icon: 0px; }
.story-media { position: relative; }
.story-media img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-img); background: var(--c-bg); }
.frameno { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-card); color: var(--c-text-2); font-size: 12px; line-height: 18px; }
.lines { height: var(--text-h); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.line { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-body); line-height: 22px; color: var(--c-text-2); }
.line.now { color: var(--c-text); font-weight: var(--fw-bold); }
.who { flex: none; margin-top: 2px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; line-height: 18px; background: var(--c-tint); color: var(--c-primary-deep); }
.who.other { background: #FFF3C4; color: #7A5A00; }
.who .ico { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }
.line.you { border: 2px dashed var(--c-primary); border-radius: 12px; padding: 6px 10px; }
.hint { margin: 0; text-align: center; font-size: var(--fs-small); color: var(--c-text-2); }
.order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tile-gap); width: 100%; height: 100%; }
.order-tile { position: relative; min-width: 0; min-height: 0; padding: 4px; border: 3px solid transparent; border-radius: var(--r-img); background: var(--c-bg); cursor: pointer; }
.order-tile img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.order-tile.right { border-color: var(--c-primary); cursor: default; }
.order-tile.wrong { animation: shake .3s; }
.order-tile .num-badge { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--c-primary); color: #FFFFFF; font-weight: var(--fw-bold); font-size: 15px; }
.rec-row { display: flex; align-items: center; justify-content: center; gap: 12px; height: var(--fb-h); }
.mic { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: var(--r-pill); background: var(--c-primary); color: #FFFFFF; cursor: pointer; }
.mic:disabled { background: var(--c-line); color: var(--c-disabled); cursor: not-allowed; }
.mic.recording { background: var(--c-bad); }
.pill-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--c-tint); color: var(--c-primary); font-weight: var(--fw-bold); font-size: var(--fs-small); cursor: pointer; }
.pill-btn:disabled { background: var(--c-bg); color: var(--c-disabled); cursor: not-allowed; }
.pill-btn.link { background: transparent; font-weight: var(--fw-regular); text-decoration: underline; }
.sum { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; min-width: 0; }
.can-do { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.can-do li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--c-bg); text-align: left; font-size: var(--fs-small); }
.can-do .ico { flex: none; width: 18px; height: 18px; color: var(--c-ok-text); }
.two-btn { display: flex; gap: var(--act-gap); width: 100%; }
.two-btn .pill-btn { flex: 1 1 0; min-height: 52px; }
.two-btn .pill-btn.primary { background: var(--c-primary); color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .order-tile.wrong { animation: none; box-shadow: inset 0 0 0 3px var(--c-bad); } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rec-block { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; height: var(--fb-h); }
.rec-block .hint { min-height: 44px; display: flex; align-items: center; justify-content: center; }
