.story-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#a94b16}
.learn-stories{margin:26px 0 32px;scroll-margin-top:90px}
.stories-title h2{font-size:clamp(21px,3vw,29px);line-height:1.3;margin:8px 0;color:#392619}
.stories-title p{color:#6b5b4e;margin:8px 0 20px;font-size:14px}
.story-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.story-card{border:1px solid #cdbda9;border-radius:12px;overflow:hidden;background:#fffdf8}
.story-cover,.story-stage{background-image:url('assets/learn/comic-scenes.webp');background-size:200% 200%;background-position:var(--scene-x) var(--scene-y);background-repeat:no-repeat}
.story-cover{aspect-ratio:1.5;position:relative}
.story-cover>span{position:absolute;top:12px;left:12px;background:#fff9e9;color:#392619;border:2px solid #392619;padding:4px 9px;font-weight:800;box-shadow:3px 3px 0 #392619}
.story-card-body{padding:18px}
.story-card-body>small{color:#7e4d2c;font-size:11px;font-weight:700}
.story-card-body h3{font-size:19px;margin:7px 0}
.story-card-body p{font-size:13px;color:#655447;min-height:38px;margin:8px 0 16px}
.story-card-body button{background:#ff8b41;color:#2d2016;border:1px solid #ad5626;box-shadow:none;border-radius:7px}
.story-cast-gallery{margin:20px 0;padding:15px 18px;border:1px solid #ded1c1;border-radius:9px;background:#fff9ef}
.story-cast-gallery summary{cursor:pointer;font-weight:700}
.story-cast-gallery p{font-size:13px}
.story-cast-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.story-cast-grid button{display:flex;flex-direction:column;align-items:center;padding:8px;min-width:0;border:1px solid #dbc7b1;border-radius:8px;box-shadow:none;background:#fffdf8;gap:4px}
.story-cast-grid button small{font-size:10px}
.story-portrait{display:block;background-image:url('assets/learn/comic-cast.webp');background-repeat:no-repeat;background-size:500% 300%;background-position:var(--portrait-x) var(--portrait-y);aspect-ratio:.9;width:100%;max-width:130px;overflow:hidden}
dialog:has(.learn-story){width:min(760px,94vw);max-width:94vw;padding:0;border-radius:14px;border:1px solid #aa8b6d;background:#fffaf2}
dialog:has(.learn-story)>#modalbody{padding:0}
dialog:has(.learn-story)>.actions{padding:0 26px 18px;margin-top:0}
.learn-story{color:#35261c;font-family:inherit}
.story-heading{padding:24px 28px 18px}
.story-heading h2{margin:7px 0;font-size:clamp(21px,3vw,29px)}
.story-heading p{font-size:13px;margin:7px 0 0;color:#6c5949}
.story-stage{aspect-ratio:1.8;position:relative;border-top:2px solid #33261b;border-bottom:2px solid #33261b;overflow:hidden}
.story-stage::after{content:"";position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#1b100a88);pointer-events:none}
.story-stage-person{position:absolute;bottom:0;right:9%;width:35%;height:auto;max-width:none;z-index:1;filter:drop-shadow(3px 3px 0 #27190c88)}
.story-chapter{position:absolute;left:14px;top:14px;font-size:11px;padding:7px 10px;background:#fff8e6;border:1px solid #3b2a1d;box-shadow:3px 3px 0 #3b2a1d}
.story-character-name{position:absolute;bottom:13px;left:18px;z-index:2;font-weight:700;color:white;text-shadow:0 1px 3px #000;font-size:13px}
.story-progress{display:flex;align-items:center;gap:8px;padding:18px 28px 10px}
.story-progress>span{border:1px solid #c5b19c;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;font-size:12px}
.story-progress>span.complete{background:#c55c22;color:white;border-color:#c55c22}
.story-progress small{margin-left:auto;font-size:11px;color:#7b6554}
.story-language{padding:10px 28px;display:flex;flex-wrap:wrap;gap:16px;font-size:12px;align-items:center}
.story-language label{display:flex;align-items:center;gap:5px;margin:0}
.story-language input{width:auto;accent-color:#c55c22}.story-language select{padding:4px;font-size:12px}
.story-dialogue{margin:9px 28px 20px;padding:20px;background:white;border:2px solid #36271c;border-radius:3px 17px 17px;box-shadow:4px 4px 0 #ecd7bf}
.story-dialogue>b{font-size:12px;color:#a44b1d}
.story-dialogue .story-zh{font-size:clamp(20px,3vw,26px);line-height:1.5;margin:10px 0;font-weight:700}
.story-jp{font-size:13px;color:#8e4d26;margin:8px 0}.story-en{font-size:14px;color:#655447;margin:8px 0}
.story-dialogue .actions{margin-top:13px}.story-dialogue small{display:block;font-size:10px;margin-top:8px;color:#7b6554}
.story-question,.story-reply-prompt,.story-speak{margin:16px 28px;font-size:15px}
.story-reply-prompt{font-size:20px;font-weight:600}.story-reply-prompt small{display:block;font-weight:400;font-size:12px;margin-top:7px;color:#7b6554}
.story-choices{display:grid;gap:10px;margin:14px 28px}
.story-choices button{text-align:left;display:flex;align-items:center;gap:12px;border:1px solid #c6b099;background:white;border-radius:8px;box-shadow:none;padding:13px;min-height:52px;font-size:13px}
.story-choices button>span{background:#fff0db;border:1px solid #e0cbb0;border-radius:5px;padding:4px 8px;color:#92502c}
.story-choices button:hover{background:#fff0da;border-color:#c2652f}
.story-feedback{min-height:22px;margin:12px 28px 18px;color:#a6441c;font-size:13px}
.story-next{display:block;margin:16px 28px 24px;width:calc(100% - 56px)}
.story-finish{padding:16px 28px 28px}.story-finish>span{display:grid;place-items:center;width:45px;height:45px;background:#c45b22;color:white;border-radius:50%;font-size:27px}
.story-finish h3{font-size:23px}.story-finish p{font-size:14px}.story-finish .actions{gap:8px}
@media(max-width:600px){.story-cards{gap:12px}.story-card-body{padding:12px}.story-card-body h3{font-size:16px}.story-card-body p{font-size:12px;min-height:52px}.story-card-body button{font-size:12px;padding:9px}.story-cast-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.story-heading{padding:20px}.story-stage{aspect-ratio:1.4}.story-stage-person{width:44%;right:4%}.story-dialogue{margin:8px 18px 18px;padding:16px}.story-progress,.story-language{padding-left:18px;padding-right:18px}.story-question,.story-reply-prompt,.story-speak,.story-choices,.story-feedback{margin-left:18px;margin-right:18px}.story-stage .story-chapter{font-size:9px}.story-next{margin-left:18px;width:calc(100% - 36px)}}

.learn-story{position:relative}.story-close{position:absolute;top:12px;right:12px;border:0;background:#fff1de;border-radius:50%;width:30px;height:30px;min-height:30px;padding:0;box-shadow:none;font-size:22px;z-index:3}.story-heading{padding-right:55px}
