.kp-story-intro{display:grid;grid-template-columns:66px 1fr;align-items:center;gap:13px;margin:0 0 18px;padding:16px;border:1px solid #e4eee8;border-radius:23px;background:linear-gradient(125deg,#f0fbf4,#fffaf0)}
.kp-story-intro>img{width:62px;height:62px;object-fit:contain}.kp-story-intro>div>b{font-size:16px;color:#344a3f}.kp-story-intro p{margin:5px 0 0;color:#75847b;font-size:13px;line-height:1.55}
.kp-story-list{display:grid;gap:14px}.kp-story-choice{position:relative;display:grid;grid-template-columns:92px minmax(0,1fr) 22px;align-items:center;gap:15px;width:100%;min-height:118px;padding:15px;border:1px solid #e4ece6;border-radius:25px;background:#fff;color:#34463d;text-align:left;box-shadow:0 5px 0 #eaf0eb;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.kp-story-choice:active{transform:translateY(3px);box-shadow:0 2px 0 #eaf0eb}.kp-story-choice-image{width:92px;height:82px;border-radius:19px;object-fit:cover}.kp-story-choice-copy{display:grid;gap:4px;min-width:0}.kp-story-choice-copy>small,.kp-story-article-hero small{color:#72917f;font-size:11px;font-weight:850;letter-spacing:.08em}.kp-story-choice-copy>b{font-size:18px;line-height:1.25}.kp-story-choice-copy>span{color:#829087;font-size:12px;line-height:1.45}.kp-story-choice-arrow{color:#42a182;font-size:29px;font-weight:750}.kp-story-prototype-note{margin:17px 4px;color:#89968e;font-size:12px;line-height:1.6;text-align:center}
.kp-story-back{display:inline-flex;align-items:center;min-height:46px;margin:0 0 12px;padding:0 16px;border:1px solid #e1ebe4;border-radius:999px;background:#fff;color:#47836d;font-size:14px;font-weight:800;cursor:pointer;touch-action:manipulation}
.kp-story-article{overflow:hidden;margin:0 0 14px;border:1px solid #e3ece5;border-radius:27px;background:#fff;box-shadow:0 8px 24px #30483a0a}.kp-story-article-hero{padding:20px 20px 15px;background:linear-gradient(135deg,#f3fbf5,#fffaf0)}.kp-story-article-hero h2{margin:4px 0;font-size:clamp(21px,5.5vw,29px);line-height:1.24;color:#30453b}.kp-story-article-hero p{margin:0;color:#75857b;font-size:13px;line-height:1.5}.kp-story-summary{margin:0;padding:14px 20px;border-bottom:1px solid #edf1ed;color:#687c70;font-size:14px;line-height:1.7}.kp-story-lines{display:grid;gap:12px;padding:14px}.kp-story-line{padding:15px 13px;border:1px solid transparent;border-radius:19px;background:#fafcf9;transition:background .22s,border-color .22s,box-shadow .22s}.kp-story-line.is-speaking{border-color:#87d4b2;background:#f0fbf5;box-shadow:0 5px 16px #2c9c6a14}.kp-story-hanzi{display:flex;flex-wrap:wrap;align-items:flex-end;column-gap:.22em;row-gap:.5em;margin:0;color:#30443a;font-size:clamp(21px,6vw,29px);font-weight:750;line-height:1.8;letter-spacing:.045em}.kp-story-char{display:inline-grid;grid-template-rows:auto auto;justify-items:center;align-items:end;min-width:1.2em;padding:0 .035em;border-radius:8px;transition:background .12s,color .12s,transform .12s}.kp-story-char small{min-height:1.1em;color:#459574;font-size:.44em;font-weight:750;line-height:1.15;letter-spacing:0}.kp-story-char b{font:inherit;line-height:1.2}.kp-story-char.is-punct{min-width:.45em;padding-inline:0}.kp-story-char.is-speaking-char{background:#b8efd8;color:#087c5d;transform:translateY(-2px);box-shadow:0 2px 8px #18885b22}.kp-story-translation{margin:9px 0 0;color:#818e86;font-size:14px;line-height:1.6}.kp-story-comic{margin:2px 0;padding:0;overflow:hidden;border-radius:20px;background:#f4f9f5}.kp-story-comic-image{display:block;width:100%;max-height:260px;aspect-ratio:16/9;object-fit:cover}.kp-story-comic figcaption{padding:10px 13px;color:#64766b;font-size:12px;line-height:1.6}.kp-story-done{margin:0 15px 17px;padding:13px 15px;border-radius:17px;background:#eaf8ef;color:#398264;font-size:15px;font-weight:800;line-height:1.5;text-align:center}
.kp-story-player{position:sticky;z-index:8;bottom:max(10px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:9px;margin:14px 0 4px;padding:9px;border:1px solid #dfece4;border-radius:25px;background:#ffffffed;box-shadow:0 9px 28px #273f3220;backdrop-filter:blur(14px)}.kp-story-play{flex:1;min-height:54px;border:0;border-radius:18px;background:linear-gradient(120deg,#56c5a2,#3fa47e);color:#fff;font-size:16px;font-weight:850;cursor:pointer;touch-action:manipulation}.kp-story-speed{display:grid;gap:3px;color:#7f8c84;font-size:10px;font-weight:750;text-align:center}.kp-story-speed select{min-height:42px;padding:0 9px;border:1px solid #e3ece6;border-radius:14px;background:#f4f8f5;color:#3f765f;font:750 12px system-ui,-apple-system,sans-serif}.kp-story-return{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;padding:0;border:1px solid #d8e9de;border-radius:15px;background:#eff8f2;color:#47836d;cursor:pointer;touch-action:manipulation}.kp-story-return svg{width:23px;height:23px}.kp-story-status{min-height:22px;margin:0 5px;color:#859188;font-size:12px;line-height:1.55;text-align:center}
@media(max-width:600px){.kp-story-choice{grid-template-columns:72px minmax(0,1fr) 17px;gap:11px;min-height:105px;padding:13px;border-radius:22px}.kp-story-choice-image{width:72px;height:68px;border-radius:17px}.kp-story-choice-copy>b{font-size:16px}.kp-story-choice-copy>span{font-size:11px}.kp-story-article-hero{padding:16px 15px 13px}.kp-story-summary{padding:12px 15px;font-size:13px}.kp-story-lines{gap:9px;padding:10px}.kp-story-line{padding:12px 11px}.kp-story-hanzi{column-gap:.18em;font-size:clamp(20px,6vw,27px)}.kp-story-translation{font-size:13px}.kp-story-play{min-height:50px;font-size:14px}.kp-story-return{flex-basis:42px;width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.kp-story-choice,.kp-story-line,.kp-story-char{transition:none!important}}
.kp-story-article{margin-bottom:116px}
.kp-story-player{position:fixed;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));transform:translateX(-50%);box-sizing:border-box;width:min(calc(100% - 24px),720px);margin:0;z-index:30}
.kp-story-lines>.kp-story-line:last-child{background:#fff9eb;border-color:#f4dfad}
.kp-story-lines>.kp-story-line:last-child:before{content:'✨ そして、いまへ';display:block;margin-bottom:10px;color:#a07830;font-size:13px;font-weight:850}
.kp-story-status{padding-bottom:12px}
/* The audio controls cover the bottom of the iPhone viewport. Keep the active
   paragraph and highlighted characters within the readable area. */
.kp-story-line{scroll-margin-top:18px;scroll-margin-bottom:calc(145px + env(safe-area-inset-bottom))}
.kp-story-char{scroll-margin-top:72px;scroll-margin-bottom:calc(155px + env(safe-area-inset-bottom))}
