/* Generated by scripts/build-maanshan-css.cjs. Edit the source stylesheets. */
/* styles.css */
@font-face{font-family:'School Pinyin';src:url('vendor/fonts/school-pinyin-400.woff2?v=4c0dc07e58') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+41-5A,U+61-7A,U+C0-D6,U+D8-F6,U+F8-17F,U+1CD-1DC,U+1F8-1F9,U+251,U+261,U+300-30C,U+1E3E-1E3F}
@font-face{font-family:'School Pinyin';src:url('vendor/fonts/school-pinyin-700.woff2?v=0db66e6e94') format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+41-5A,U+61-7A,U+C0-D6,U+D8-F6,U+F8-17F,U+1CD-1DC,U+1F8-1F9,U+251,U+261,U+300-30C,U+1E3E-1E3F}
@font-face{font-family:'Noto Sans HK';src:url('vendor/fonts/noto-sans-hk-variants.woff2?v=bb65aef6be') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+4E13,U+4E34,U+4E3A,U+4E4C,U+4E66,U+4F24,U+4F26,U+4FA7,U+518C,U+519B,U+51C0,U+51FB,U+5219,U+529D,U+58EE,U+5BF9,U+5C06,U+5C1D,U+5C3D,U+5C82,U+5E26,U+5E90,U+5F00,U+5F52,U+5F53,U+5F84,U+626B,U+62A5,U+62E8,U+6570,U+65E7,U+65F6,U+6656,U+6765,U+67AB,U+6811,U+6A2A,U+6B8B,U+6CFD,U+6DA6,U+6E14,U+6EE1,U+70E7,U+7231,U+7275,U+72B9,U+72ED,U+76D8,U+79EF,U+79FD,U+7EA2,U+7EBF,U+7EC6,U+7EDD,U+7EFF,U+7F13,U+7F15,U+7F18,U+7F1D,U+7F62,U+8282,U+89C9,U+8BB0,U+8BC6,U+8BD5,U+8BE6,U+8BED,U+8BEF,U+8BF4,U+8BF5,U+8BFB,U+8C01,U+8C13,U+8D2B,U+8F7B,U+8F89,U+8FD8,U+8FDC,U+8FDD,U+8FDF,U+9065,U+90D1,U+9504,U+9524,U+9532,U+9542,U+95F2,U+95FB,U+9634,U+9879,U+987B,U+987F,U+996E,U+9976,U+9A7D,U+9A7E,U+9A90,U+9AA5,U+9E23,U+9E25,U+9E42,U+9E45,U+9E6D}
@font-face{font-family:'Noto Serif HK';src:url('vendor/fonts/noto-serif-hk-variants.woff2?v=44fa959316') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+4E13,U+4E34,U+4E3A,U+4E4C,U+4E66,U+4F24,U+4F26,U+4FA7,U+518C,U+519B,U+51C0,U+51FB,U+5219,U+529D,U+58EE,U+5BF9,U+5C06,U+5C1D,U+5C3D,U+5C82,U+5E26,U+5E90,U+5F00,U+5F52,U+5F53,U+5F84,U+626B,U+62A5,U+62E8,U+6570,U+65E7,U+65F6,U+6656,U+6765,U+67AB,U+6811,U+6A2A,U+6B8B,U+6CFD,U+6DA6,U+6E14,U+6EE1,U+70E7,U+7231,U+7275,U+72B9,U+72ED,U+76D8,U+79EF,U+79FD,U+7EA2,U+7EBF,U+7EC6,U+7EDD,U+7EFF,U+7F13,U+7F15,U+7F18,U+7F1D,U+7F62,U+8282,U+89C9,U+8BB0,U+8BC6,U+8BD5,U+8BE6,U+8BED,U+8BEF,U+8BF4,U+8BF5,U+8BFB,U+8C01,U+8C13,U+8D2B,U+8F7B,U+8F89,U+8FD8,U+8FDC,U+8FDD,U+8FDF,U+9065,U+90D1,U+9504,U+9524,U+9532,U+9542,U+95F2,U+95FB,U+9634,U+9879,U+987B,U+987F,U+996E,U+9976,U+9A7D,U+9A7E,U+9A90,U+9AA5,U+9E23,U+9E25,U+9E42,U+9E45,U+9E6D}
:root{color-scheme:light;--white:#fff;--bg:#fff;--ink:#183f3b;--muted:#5e746b;--line:#dce8df;--green:#147a62;--green-soft:#eaf6ed;--red:#b8493f;--red-soft:#fff0ea;--blue:#24758e;--blue-soft:#ecf6f9;--gold:#8d6514;--gold-soft:#fff6ce;--serif:'School Pinyin','Noto Serif HK','Songti TC','PMingLiU',serif;--sans:'School Pinyin','Noto Sans HK','Microsoft JhengHei',sans-serif}
*{box-sizing:border-box;letter-spacing:0}
html{scroll-padding:20px}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 var(--sans);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%}
svg{width:22px;height:22px;flex-shrink:0;stroke-width:1.8}
h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.5;overflow-wrap:break-word}
:focus-visible{outline:3px solid #4a9cbb;outline-offset:4px}
[hidden]{display:none!important}.screen-reader{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip-link{position:fixed;top:-100px;left:16px;padding:10px;background:#fff;z-index:100}.skip-link:focus{top:8px}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:72px;padding:13px 40px;border-bottom:1px solid #edf2ee}
body:has(.lesson-shell) .site-header{display:none}
.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;color:#fff;background:var(--green);border-radius:6px}.brand-mark svg{width:25px;height:25px}.brand strong{display:block;font-size:17px;line-height:1.35;font-weight:700}.brand-sub{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.header-right{display:flex;align-items:center;gap:22px}.school-name{font-size:13px;color:var(--muted)}.profile-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;border:0;background:transparent;color:var(--green);font-size:13px}
.eyebrow{font-size:12px;color:var(--green);font-weight:500;margin-bottom:6px}.muted,.small-label{color:var(--muted)}.small-label{font-size:13px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:11px 19px;border:1px solid #cddfd3;border-radius:6px;background:#fff;color:var(--ink);font-size:15px;font-weight:600;line-height:1.5;transition:background .15s,border-color .15s,box-shadow .15s}
.button:hover:not(:disabled){background:var(--green-soft);border-color:#8fbda5}.button.primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 3px 0 #126851}.button.primary:hover:not(:disabled){background:#15725d}.button.secondary{background:var(--blue-soft);border-color:#c8e0e8;color:var(--blue)}.button.small{min-height:44px;padding:8px 12px;font-size:13px}.button svg{width:20px;height:20px}
.icon-button{display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:6px;background:transparent;color:var(--green);flex-shrink:0}.icon-button:hover,.icon-button[aria-pressed=true]{background:var(--green-soft)}.icon-button svg{width:22px;height:22px}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 0;border:0;background:transparent;color:var(--green);font-size:14px;font-weight:500}
.loading-page{display:flex;align-items:center;justify-content:center;gap:12px;min-height:60svh;padding:25px;color:var(--muted);flex-wrap:wrap}.spinner{display:inline-block;width:20px;height:20px;border:2px solid #d4e7d9;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}

/* The catalogue is the task entrance; each book opens its recording page. */
.library{width:100%;max-width:1240px;margin:0 auto;padding:30px 36px 22px}
.library-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:99px;margin-bottom:24px}
.library-heading h1{font-size:38px;line-height:1.35}.library-heading .eyebrow{font-size:12px}.library-sub{font-size:14px;color:var(--muted);margin-top:8px}
.library-heading-art{display:flex;align-items:center;justify-content:center;gap:16px;width:240px;height:106px;flex-shrink:0;position:relative}
.library-heading-art img{width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 5px 4px #203e2510)}.library-heading-art img:nth-child(2){width:62px;height:62px;align-self:flex-start}.library-heading-art img:nth-child(3){width:54px;height:54px;align-self:flex-end}
.library-books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.poem-card{--book-color:var(--green);--book-soft:var(--green-soft);min-width:0;position:relative;border-radius:7px}
.poem-card:nth-child(3n+2){--book-color:var(--blue);--book-soft:var(--blue-soft)}.poem-card:nth-child(3n){--book-color:var(--red);--book-soft:var(--red-soft)}.poem-card:nth-child(4){--book-color:var(--gold);--book-soft:var(--gold-soft)}
.poem-entry{display:flex;flex-direction:column;height:100%;position:relative;border:1px solid #dce6dc;border-left:6px solid var(--book-color);border-radius:7px;background:#fff;overflow:hidden;box-shadow:2px 4px 0 #e8efe8;transition:box-shadow .18s,border-color .18s}
.poem-entry:hover{border-top-color:var(--book-color);border-right-color:var(--book-color);border-bottom-color:var(--book-color);box-shadow:3px 6px 0 var(--book-soft)}
.poem-art{position:relative;width:100%;aspect-ratio:16/9;background:#f7f9f5;overflow:hidden}
.poem-art>img{width:100%;height:100%;object-fit:contain}
.poem-grade{position:absolute;top:13px;left:12px;display:inline-flex;align-items:center;min-height:26px;padding:3px 8px;border-radius:3px;background:#ffffffec;color:var(--book-color);font-size:12px;font-weight:600}
.poem-card-body{padding:16px 18px 0;flex:1;display:flex;flex-direction:column;min-width:0}
.poem-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:45px}
.poem-card-title h2{font-size:27px;line-height:1.4;flex:1;min-width:0}.poem-poet{width:45px;height:45px;object-fit:cover;object-position:50% 20%;border-radius:50%;border:2px solid var(--book-soft);flex-shrink:0}
.poem-author{font-size:13px;color:var(--muted);margin:5px 0 15px}
.poem-card-title h2 small{display:inline-block;font:400 12px/1.5 var(--sans);color:var(--muted);margin-left:7px;vertical-align:middle}
.poem-open{display:flex;align-items:center;gap:8px;min-height:49px;color:var(--book-color);font-size:14px;font-weight:600;border-top:1px solid var(--line);margin-top:auto}
.poem-open>svg{width:19px;height:19px}.poem-open>svg:last-child{margin-left:auto;width:18px;height:18px}
.library-tail{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;min-height:64px;margin-top:26px}.library-tail img{width:47px;height:47px;object-fit:contain}.library-tail img:nth-child(2){width:35px;height:35px}
.library-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;font-size:11px;color:var(--muted)}.library-footer a{display:flex;align-items:center;gap:6px;min-height:44px}.library-footer svg{width:16px;height:16px}

.workspace{width:100%;max-width:1320px;margin:0 auto;padding:0 38px 36px;min-height:100svh}
.lesson-bar{display:flex;align-items:center;gap:20px;min-height:99px;padding:18px 0 14px;margin-bottom:20px;position:relative;z-index:15}
.back-library{min-height:44px;min-width:70px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.back-library svg{width:21px;height:21px}
.lesson-title{flex:1;min-width:0}.lesson-title h1{font-size:29px;line-height:1.35}.lesson-title p{font-size:13px;color:var(--muted);margin-top:5px}
.lesson-menu{position:relative;flex-shrink:0}.lesson-menu>summary{list-style:none;width:48px;height:48px;display:grid;place-items:center;border:1px solid #d9e7dc;border-radius:7px;background:#f5f9f5;color:var(--green);cursor:pointer}.lesson-menu>summary::-webkit-details-marker{display:none}.lesson-menu[open]>summary{background:var(--green-soft);border-color:#9dc2aa}
.menu-panel{position:absolute;top:calc(100% + 9px);right:0;width:218px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 10px 35px #173b3120;z-index:40;display:flex;flex-direction:column;gap:3px}
.menu-panel>a,.menu-panel>button{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 12px;border:0;border-radius:4px;background:transparent;text-align:left;font-size:14px;color:var(--ink)}.menu-panel>a:hover,.menu-panel>button:hover{background:var(--green-soft)}.menu-panel .active{background:var(--green-soft);color:var(--green)}.menu-panel svg{width:20px;height:20px;color:var(--green)}
.lesson-menu>summary{display:flex;flex-direction:column;gap:0;font-size:10px;line-height:1.4;justify-content:center;align-items:center}.lesson-menu>summary svg{width:23px;height:23px}.menu-panel a[aria-current=page]{background:var(--green-soft);color:var(--green)}
.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.reader-toolbar h2{font-family:var(--sans);font-size:20px;font-weight:500}
.study-main,.view-section{width:100%;min-width:0}.study-main{margin:0 auto}.view-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:19px}.view-heading h2{font-family:var(--sans);font-size:20px;font-weight:500}.view-heading p{font-size:13px;color:var(--muted)}
.art-stage,.record-art{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#fafcf9}
.art-stage>img,.record-art>img{width:100%;height:100%;object-fit:contain}.art-stage .scene-stage,.record-art .scene-stage{height:100%;aspect-ratio:auto!important}.art-stage .scene-stage img,.record-art .scene-stage img{object-fit:contain!important}.scene-stage-status button{min-height:44px!important}
.verse{display:flex;align-items:flex-end;justify-content:center;gap:0;min-height:69px;white-space:nowrap}
.verse ruby{display:inline-flex;flex-direction:column-reverse;align-items:center;font-family:var(--serif);font-size:31px;font-weight:600;line-height:1.7;min-width:43px}
.verse rt{font-family:var(--sans);font-size:13px;line-height:1.7;color:var(--muted);font-weight:400}.verse .punct{font-family:var(--serif);font-size:31px;line-height:1.7;width:19px}.hide-pinyin rt{visibility:hidden}.verse.active,.verse.active rt{color:var(--ink)}
.record-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.85fr);gap:48px;align-items:center;min-height:calc(100svh - 180px);padding:4px 0 25px}
.record-landscape,.record-practice{min-width:0}.record-art{border-radius:3px}
.record-practice{position:relative}.practice-decoration{position:absolute;width:68px;height:68px;object-fit:contain;top:-58px;right:8px;pointer-events:none;transform:rotate(-8deg)}
.verse-list{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(44px,1fr);gap:5px;max-width:100%;overflow-x:auto;scrollbar-width:thin;margin-top:14px;padding:0 2px 5px}
.verse-list-item{position:relative;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--muted);padding:4px;font:500 14px var(--sans);border-radius:5px}
.verse-list-item:after{content:'';position:absolute;bottom:1px;left:25%;right:25%;height:2px;background:#e2ebe4}.verse-list-item.current{background:var(--green-soft);color:var(--green)}.verse-list-item.current:after{background:var(--green)}.verse-list-item.done{color:var(--green)}.verse-list-item svg{width:17px;height:17px}.verse-list-item .line-text,.verse-list-item .line-score{display:none}
.record-tool{text-align:center;padding:8px 0;max-width:450px;margin:0 auto}.record-counter{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;font-size:13px;color:var(--muted)}.record-counter>span{color:var(--green);font-weight:500}
.record-tool>.verse{margin:15px 0 18px}
.record-model{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 27px}
.record-model .button,.record-model>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:5px;background:#f0f7f1;color:var(--green);min-height:44px;padding:9px 13px;font-size:13px;font-weight:500;line-height:1.5}.record-model>[data-action=video]{background:var(--blue-soft);color:var(--blue)}.record-model svg{width:20px;height:20px}
.record-model .button.demo-waiting{background:#f4f1ea;color:var(--muted)}
#record-controls{min-height:137px}.record-actions{display:flex;justify-content:center;align-items:center;gap:10px;min-height:109px;flex-wrap:wrap}
.mic-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:142px;min-height:118px;border:0;background:transparent;color:var(--red);padding:6px 14px;font-size:17px;font-weight:600;line-height:1.5}
.mic-button svg{width:78px;height:78px;padding:23px;border-radius:50%;background:#d35c51;color:#fff;box-shadow:0 5px 0 #b84741,0 0 0 7px var(--red-soft)}.mic-button:hover svg{background:#c54f45}.mic-button.recording svg{background:#b94640;box-shadow:0 0 0 8px #fadfd8}
.record-status{min-height:23px;margin-top:12px;font-size:13px;color:var(--muted)}.record-status:empty{display:none}.record-status .spinner{vertical-align:middle;margin-right:8px}
.record-wave{display:flex;justify-content:center;align-items:center;gap:5px;height:22px;margin:5px 0 10px}.record-wave span{width:4px;height:6px;background:#d2e7d7;border-radius:2px}.record-wave.live span{background:var(--red);animation:wave .65s ease-in-out infinite alternate}.record-wave.live span:nth-child(2n){animation-delay:.3s}.record-wave.live span:nth-child(3n){animation-delay:.15s}.record-wave.live span:nth-child(5n){animation-delay:.45s}
.record-result{font-size:38px;line-height:1.2;font-weight:600;color:var(--green)}.record-result small{font-size:14px;font-weight:400;margin-left:4px;color:var(--muted)}
.record-review{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:12px 0 6px;padding-top:10px}.record-review>span{font-size:12px;color:var(--muted)}.record-review button{display:flex;align-items:center;gap:5px;min-width:44px;min-height:49px;padding:5px 8px;background:#f2f8f3;border:0;border-radius:4px}.record-review ruby{font-family:var(--serif);font-size:23px}.record-review rt{font-family:var(--sans);font-size:11px}.record-review svg{width:16px;height:16px;color:var(--green)}
.record-sticker,.lesson-sticker{width:65px;height:65px;object-fit:contain;pointer-events:none}

.reading-experience{min-width:0}.reading-scene{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(325px,.85fr);align-items:center;gap:42px}.poem-landscape,.poem-text{min-width:0}.poem-lines{display:flex;flex-direction:column;gap:17px;padding:4px 0}.verse-line{display:block;width:100%;min-height:69px;padding:0;border:0;border-radius:4px;background:transparent}.verse-line:hover,.verse-line[aria-pressed=true]{background:#f0f7f1}.poem-lines.long{gap:3px}.poem-lines.long .verse,.poem-lines.long .verse-line{min-height:52px}.poem-lines.long .verse ruby,.poem-lines.long .punct{font-size:26px}
.scene-dots{display:flex;align-items:center;justify-content:center;margin-top:3px}.scene-dots button{display:grid;place-items:center;width:44px;height:44px;background:transparent;border:0;padding:0}.scene-dots button:after{content:'';width:7px;height:7px;border-radius:50%;background:#d3e5d7}.scene-dots button[aria-pressed=true]:after{width:9px;height:9px;background:var(--green)}
.reader-controls{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:23px;padding:13px 0}.media-buttons{display:flex;align-items:center;gap:10px}.media-buttons .button{background:#f1f8f3;color:var(--green);border-color:#cfe2d6}.media-buttons>[data-action=video]{background:var(--blue-soft);color:var(--blue);border-color:#cadfe7}
.audio-options{max-width:500px;margin:3px auto 0;font-size:12px;color:var(--muted)}.audio-options summary{cursor:pointer;min-height:44px;line-height:44px;text-align:center}.audio-options summary svg{width:16px;height:16px;vertical-align:middle;margin-right:7px}.audio-timeline{display:flex;align-items:center;gap:10px;min-height:44px;font-size:12px;font-variant-numeric:tabular-nums}.audio-timeline input{height:44px;min-width:0;flex:1;accent-color:var(--green);margin:0}.audio-timeline select{min-height:44px;border:0;background:transparent;color:var(--ink);font-size:13px}

.view-report .study-main{max-width:850px}.report-summary{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:28px;margin:12px 0 30px;padding-bottom:26px;border-bottom:1px solid var(--line)}
.score-ring{width:108px;height:108px;border:3px solid var(--green);outline:1px solid #a9cdb5;outline-offset:4px;border-radius:50%;display:grid;place-items:center;text-align:center;color:var(--green)}.score-ring strong{font-size:36px;line-height:1.15;font-weight:600}.score-ring span{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.dimension-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.dimension strong{display:block;font-size:29px;color:var(--blue);font-weight:600;line-height:1.3}.dimension:nth-child(2) strong{color:var(--red)}.dimension:nth-child(3) strong{color:var(--gold)}.dimension span{display:block;font-size:12px;color:var(--muted);margin-top:5px}.saved-note{font-size:12px;color:var(--muted);margin-top:10px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.section-heading h2{font-family:var(--sans);font-size:20px;font-weight:600}.section-heading h2>svg{width:23px;height:23px;margin-right:7px;vertical-align:middle;color:var(--blue)}.section-count{font-size:13px;color:var(--muted)}
.practice-section{margin:25px 0}.practice-intro{font-size:14px;color:var(--muted);line-height:1.9}.practice-selector{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 22px}.word-result{width:61px;min-height:87px;padding:8px 5px;background:#f0f7f2;border:1px solid transparent;border-bottom:2px solid var(--green);border-radius:4px 4px 0 0;text-align:center;color:var(--ink)}.word-result ruby{font:25px/1.5 var(--serif)}.word-result rt{font:11px/1.5 var(--sans);color:var(--muted)}.word-result strong{display:block;margin-top:4px;font-size:12px;font-weight:500}.word-result>svg{width:14px;height:14px;color:var(--green);margin-top:4px}.word-result.warn,.word-result.fair{background:#fffae2;border-bottom-color:#c4a03b}.word-result.error,.word-result.poor{background:var(--red-soft);border-bottom-color:var(--red)}
.practice-pick{display:grid;grid-template-columns:1fr 15px;align-items:center;justify-items:center;gap:4px 0;min-width:58px;padding:8px 6px}.practice-pick ruby{grid-column:1/-1}.practice-pick small{font-size:11px;color:var(--muted);line-height:1.5;white-space:nowrap}.practice-pick>svg{width:13px;height:13px;margin:0}.practice-pick[aria-pressed=true]{border-color:var(--green);background:#e4f3e8;box-shadow:0 2px 0 var(--green)}
.practice-card{padding:18px 0 21px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}.practice-card-heading{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:12px}.practice-card-heading h3{font-size:21px}.practice-tip{font-size:14px;line-height:1.85;color:var(--muted)}.contrast-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;font-size:13px;color:var(--muted)}.contrast-heading .text-button{font-size:13px}.contrast-pair{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:9px 0 16px}
.sound-word{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:118px;padding:9px 7px;background:var(--blue-soft);border:0;border-bottom:2px solid #a1cbd9;border-radius:4px 4px 0 0}.sound-word ruby{font:29px/1.5 var(--serif);color:var(--blue)}.sound-word rt{font:13px/1.5 var(--sans)}.sound-context{font-size:12px;color:var(--ink)}.sound-kind{font-size:11px;color:var(--muted)}.sound-word svg{width:17px;height:17px;margin-top:3px;color:var(--blue)}
[data-audio-state=playing]{outline:2px solid var(--blue);outline-offset:1px}[data-audio-state=loading]{outline:2px dashed #b38a29;outline-offset:1px}
.practice-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:13px}.practice-actions .button{font-size:13px;min-height:44px;padding:8px 11px}.practice-actions svg{width:18px;height:18px}.assessment-note{font-size:12px;line-height:1.8;color:var(--muted);margin-top:12px}
.ai-report-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0;flex-wrap:wrap}.ai-report-header h2{font-size:22px}.report-disclosure{padding:0;border-bottom:1px solid var(--line)}.report-disclosure>summary{cursor:pointer;min-height:58px;padding:15px 0;font-size:15px;color:var(--ink)}.report-disclosure summary>svg{width:18px;height:18px;vertical-align:middle}.report-disclosure[open]{padding-bottom:18px}.report-prose{font-size:14px;line-height:1.95;white-space:pre-wrap;color:#496861}
.word-grid{display:flex;flex-wrap:wrap;gap:8px}.report-line{padding:15px 0;border-bottom:1px solid var(--line)}.report-line-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}.report-line-heading h3{font-size:17px}.report-line-heading>span{font:16px var(--serif)}.report-empty{text-align:center;padding:70px 20px;color:var(--muted)}.report-empty>img{width:100px;height:100px;object-fit:contain;margin:0 auto 17px}.report-empty>svg{width:48px;height:48px;margin-bottom:18px}.report-empty h2{font-size:26px;margin-bottom:22px;color:var(--ink)}
.study-next{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:23px 0 6px}.study-next p{margin-right:auto;font-size:13px;color:var(--muted)}

.writing-layout,.quiz-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:start;gap:60px;padding-top:9px}.writing-context .art-stage,.quiz-art .art-stage{margin-bottom:23px}.writing-context h2,.panel-title{font-size:24px;margin-bottom:10px}.writing-context p,.quiz-art p{font-size:15px;line-height:1.9;color:var(--muted)}
.writing-tool{width:100%;max-width:390px;margin:0 auto}.writing-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.writing-pinyin{font-size:27px;color:var(--blue);font-weight:500}.writing-counter{font-size:13px;color:var(--muted);margin-top:2px}.writing-board{position:relative;width:100%;aspect-ratio:1;border:2px solid #bad5bf;border-radius:5px;background:#fff;overflow:hidden;box-shadow:4px 5px 0 #edf4eb}.writing-board:before,.writing-board:after{content:'';position:absolute;pointer-events:none}.writing-board:before{top:0;left:50%;height:100%;border-left:1px dashed #d0e0cd}.writing-board:after{top:50%;left:0;width:100%;border-top:1px dashed #d0e0cd}.writing-board canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;touch-action:none}.writing-hint{position:absolute;inset:0;display:grid;place-items:center;font:180px/1 var(--serif);color:#dce9da;pointer-events:none}.stroke-hint{position:absolute;inset:0;z-index:3;background:#fff;display:grid;place-items:center;pointer-events:none}.stroke-hint svg{width:100%;height:100%}.writing-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}.writing-tools{display:flex;gap:5px}.writing-tools .icon-button{background:#f0f7ef}.writing-feedback{min-height:24px;margin-top:12px;font-size:13px;color:var(--muted)}.practice-results{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.result-chip{padding:5px 9px;font:20px var(--serif);color:var(--green);background:var(--green-soft);border-bottom:2px solid var(--green)}.result-chip.wrong{color:var(--red);background:var(--red-soft);border-color:var(--red)}
.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);margin-bottom:12px}.quiz-progress{height:5px;background:var(--gold-soft);margin-bottom:23px;border-radius:3px;overflow:hidden}.quiz-progress i{display:block;height:100%;background:#ddb94a;transition:width .2s}.quiz-prompt{font-family:var(--sans);font-size:23px;font-weight:500;line-height:1.7;margin-bottom:23px}.quiz-options{display:grid;gap:12px}.quiz-option{display:flex;align-items:center;gap:14px;min-height:71px;padding:15px 17px;text-align:left;font-size:20px;line-height:1.6;border:1px solid #d6e4d7;border-radius:6px;background:#fff;word-break:break-word}.quiz-option>span{width:30px;height:30px;display:grid;place-items:center;flex-shrink:0;border:1px solid #d6e2d5;border-radius:50%;font:500 14px var(--sans);color:var(--muted)}.quiz-option:hover:not(:disabled){border-color:#99bfab;background:#f4faf3}.quiz-option.correct{background:var(--green-soft);border-color:var(--green);color:var(--green);opacity:1}.quiz-option.incorrect{background:var(--red-soft);border-color:var(--red);color:var(--red);opacity:1}.quiz-explanation{min-height:73px;padding:18px 0;color:var(--muted);font-size:14px;line-height:1.9}.quiz-next{display:flex;justify-content:flex-end}.completion{padding:55px 15px;text-align:center}.completion>svg{width:62px;height:62px;color:var(--gold);margin-bottom:20px}.completion h2{font-size:28px;margin-bottom:13px}.completion p{font-size:15px;color:var(--muted);margin-bottom:24px}.completion-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}

.chat-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:44px;max-width:1000px;margin:0 auto;padding-top:10px}.poet-profile img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 20%;border-radius:4px}.poet-profile h2{font-size:26px;margin:17px 0 8px}.poet-profile p{font-size:14px;line-height:1.9;color:var(--muted)}.chat-tool{display:flex;flex-direction:column;min-width:0;min-height:500px}.chat-messages{display:flex;flex-direction:column;gap:20px;min-height:260px;max-height:440px;overflow-y:auto;overscroll-behavior:contain;padding:0 10px 18px 0}.chat-message{display:flex;align-items:start;gap:10px}.chat-message>img{width:42px;height:42px;object-fit:cover;object-position:50% 20%;border-radius:50%;flex-shrink:0}.chat-message.user{justify-content:flex-end}.chat-bubble{min-width:0;max-width:90%;padding:13px 16px;background:#f0f7ef;border-radius:6px;font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.user .chat-bubble{background:var(--blue-soft);color:#2d6171}.chat-bubble .icon-button{display:flex;align-items:center;justify-content:center;margin-top:8px}.chat-suggestions{display:flex;gap:4px 15px;flex-wrap:wrap;padding:12px 0}.chat-suggestions button{min-height:44px;padding:7px 0;border:0;background:transparent;text-align:left;font-size:14px;color:var(--green);text-decoration:underline;text-decoration-color:#b5d1bb;text-underline-offset:5px}.chat-form{display:flex;align-items:flex-end;gap:10px;padding:9px;border:1px solid #accdb3;border-radius:6px;background:#fff}.chat-form:focus-within{outline:1px solid var(--green);border-color:var(--green)}.chat-form textarea{resize:none;border:0;outline:0;min-width:0;flex:1;padding:5px;max-height:120px;color:var(--ink);background:#fff;font-size:16px}.chat-form button{background:var(--green);color:#fff}.chat-error{font-size:13px;color:var(--red);padding:8px 0}

dialog{padding:24px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);max-width:calc(100vw - 24px);box-shadow:0 15px 65px #153c343b}dialog::backdrop{background:#173f36b8}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-heading h2{font-family:var(--sans);font-size:22px;font-weight:600}.video-dialog{padding:16px;max-height:94svh;overflow:auto}.video-dialog .dialog-heading{margin-bottom:12px}.video-dialog video{display:block;max-height:75svh;max-width:100%;width:auto;height:auto;margin:0 auto;background:#111}.profile-dialog{width:440px}.profile-dialog label{display:flex;flex-direction:column;gap:8px;font-size:15px;margin-bottom:18px}.profile-dialog input,.profile-dialog select{width:100%;min-height:48px;padding:10px;border:1px solid #bfd7c5;border-radius:4px;color:var(--ink);background:#fff;font-size:16px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-actions{display:flex;justify-content:flex-end}.error-text{font-size:14px;color:var(--red);line-height:1.8}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,10px);max-width:calc(100vw - 28px);padding:12px 18px;border-radius:6px;background:#285640;color:#fff;font-size:13px;text-align:center;opacity:0;pointer-events:none;z-index:100;transition:opacity .16s,transform .16s}.toast.visible{opacity:1;transform:translate(-50%,0)}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes wave{from{height:5px}to{height:23px}}

@media(min-width:1600px){.library{max-width:1320px}.workspace{max-width:1460px}.record-layout{gap:65px}.record-tool>.verse ruby{font-size:34px;min-width:46px}}
@media(max-width:1100px){.site-header{padding-inline:25px}.library{padding-inline:26px}.workspace{padding-inline:28px}.library-books{gap:24px 20px}.poem-card-title h2{font-size:24px}.poem-card-body{padding:14px 15px 0}.record-layout{gap:28px;grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr)}.verse ruby{font-size:28px;min-width:38px}.verse .punct{font-size:28px;width:16px}.reading-scene{gap:25px;grid-template-columns:minmax(0,1.1fr) minmax(290px,.9fr)}.writing-layout,.quiz-layout{gap:36px}.chat-layout{grid-template-columns:195px minmax(0,1fr);gap:30px}}
@media(max-width:820px){.school-name{display:none}.library-heading-art{width:190px;gap:8px}.library-heading-art img{width:70px;height:70px}.library-books{gap:22px 16px}.poem-card-title h2{font-size:23px}.poem-poet{width:39px;height:39px}.record-layout{grid-template-columns:1fr;gap:12px;max-width:650px;margin:0 auto;min-height:0}.record-art{max-height:290px}.record-tool{width:100%;max-width:450px}.record-tool>.verse ruby{font-size:31px;min-width:43px}.reading-scene{grid-template-columns:1fr;gap:19px}.reading-scene .art-stage{max-height:290px}.poem-lines{gap:11px}.writing-layout,.quiz-layout{grid-template-columns:1fr}.writing-context,.quiz-art{display:none}.chat-layout{grid-template-columns:1fr}.poet-profile{display:none}.chat-tool{min-height:0}}
@media(max-width:760px){
 .site-header{min-height:60px;padding:8px 16px;gap:12px}.brand{gap:8px}.brand-mark{width:34px;height:34px}.brand-mark svg{width:23px;height:23px}.brand strong{font-size:14px}.brand-sub{font-size:10px;margin-top:1px}.profile-button{width:44px;padding:8px}.profile-button>span{display:none}.header-right{gap:0}
 .library{padding:21px 16px 19px}.library-heading{min-height:83px;margin-bottom:19px;gap:12px}.library-heading h1{font-size:31px}.library-heading .eyebrow{font-size:10px;max-width:190px}.library-sub{font-size:12px;margin-top:6px}.library-heading-art{width:115px;height:85px;gap:3px}.library-heading-art img{width:65px;height:65px}.library-heading-art img:nth-child(2){width:40px;height:40px}.library-heading-art img:nth-child(3){display:none}
 .library-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 13px}.poem-entry{border-left-width:4px;box-shadow:2px 3px 0 #e8efe8}.poem-grade{top:8px;left:8px;min-height:22px;padding:2px 6px;font-size:10px}.poem-card-body{padding:11px 10px 0}.poem-card-title{gap:6px;min-height:39px;align-items:center}.poem-card-title h2{font-size:22px;line-height:1.4}.poem-poet{width:31px;height:31px;border-width:1px}.poem-author{font-size:11px;margin:4px 0 11px;line-height:1.5}.poem-open{min-height:44px;font-size:12px;gap:5px}.poem-open>svg{width:16px;height:16px}.poem-open>svg:last-child{width:15px;height:15px}.library-tail{margin-top:20px;min-height:51px}.library-tail img{width:40px;height:40px}.library-tail img:nth-child(2){width:31px;height:31px}.library-footer{font-size:10px;margin-top:7px}
 .workspace{padding:0 16px 24px;min-height:100svh}.lesson-bar{min-height:78px;margin-bottom:15px;padding:12px 0;gap:11px}.back-library{width:44px;min-width:44px;min-height:44px;display:flex;flex-direction:column;justify-content:center;gap:1px;font-size:10px}.back-library svg{width:20px;height:20px}.lesson-title h1{font-size:25px;line-height:1.3}.lesson-title p{font-size:11px;margin-top:3px}.lesson-menu>summary{width:44px;height:44px}.menu-panel{width:212px}.view-heading{margin-bottom:14px}.view-heading h2{font-size:18px}.view-heading p{font-size:12px}
 .record-layout{display:flex;flex-direction:column;gap:7px;padding:0;align-items:stretch}.record-art{max-height:245px;border-radius:2px}.verse-list{margin-top:8px;gap:2px;padding-bottom:0}.verse-list-item{font-size:13px;min-height:44px}.verse-list:has(.verse-list-item:nth-child(8)){margin-inline:-16px;width:calc(100% + 32px);max-width:none;gap:0;padding-inline:4px}.record-tool{padding:2px 0 0;max-width:100%;width:100%}.record-counter{min-height:44px;font-size:12px}.record-tool>.verse{margin:8px 0 15px;min-height:70px}.record-tool>.verse ruby{font-size:31px;min-width:41px}.record-tool>.verse .punct{font-size:31px;width:18px}.verse rt{font-size:13px}.record-model{gap:10px;margin-bottom:22px}.record-model .button,.record-model>button{min-height:44px;font-size:13px;padding:9px 14px}.record-model svg{width:20px;height:20px}.record-actions{min-height:114px;gap:9px}.mic-button{min-height:115px;font-size:16px;gap:13px;padding:5px 14px}.mic-button svg{width:74px;height:74px;padding:22px;box-shadow:0 4px 0 #b84741,0 0 0 6px var(--red-soft)}#record-controls{min-height:128px}.record-status{font-size:12px;margin-top:10px}.record-result{font-size:35px}.record-actions .button{min-height:44px;padding:8px 11px;font-size:13px;gap:6px}.record-review{margin:10px 0 3px}.record-review button{min-height:47px}.record-sticker,.lesson-sticker{width:51px;height:51px}
 .reading-experience{display:grid;grid-template-columns:1fr}.reading-scene{display:contents}.poem-landscape{grid-row:1}.reading-scene .art-stage{max-height:none}.reader-controls{grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 20px;padding:5px 0}.reader-controls>.media-buttons{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:9px}.reader-controls>.read-start{grid-column:1/-1}.reader-controls .button{font-size:14px;min-height:47px;padding:10px 12px}.poem-text{grid-row:3}.audio-options{grid-row:4;width:100%;margin-top:12px}.scene-dots{margin-top:0}.poem-lines{gap:11px;padding:0}.verse,.verse-line{min-height:63px}.verse ruby{min-width:39px;font-size:29px}.verse .punct{font-size:29px;width:17px}.poem-lines.long{gap:5px}.poem-lines.long .verse,.poem-lines.long .verse-line{min-height:49px}.poem-lines.long .verse ruby,.poem-lines.long .punct{font-size:26px}
 .report-summary{grid-template-columns:86px minmax(0,1fr);gap:18px;margin:7px 0 24px;padding-bottom:24px}.score-ring{width:81px;height:81px;border-width:2px;outline-offset:3px}.score-ring strong{font-size:29px}.score-ring span{font-size:10px}.report-summary .eyebrow{font-size:10px;margin-bottom:7px}.dimension-grid{gap:9px}.dimension strong{font-size:24px}.dimension span{font-size:10px;line-height:1.5;margin-top:4px}.section-heading h2{font-size:18px}.section-count{font-size:11px}.practice-section{margin:22px 0}.practice-selector{gap:7px;margin:13px 0 20px}.word-result{width:57px;min-height:85px}.practice-pick{min-width:55px}.word-result ruby{font-size:25px}.practice-card{padding:15px 0 18px}.practice-card-heading h3{font-size:18px}.practice-tip{font-size:13px}.contrast-heading,.contrast-heading .text-button{font-size:12px}.contrast-pair{gap:7px;margin-top:8px}.sound-word{min-height:109px;padding:8px 4px}.sound-word ruby{font-size:28px}.sound-word rt{font-size:12px}.sound-context{font-size:12px}.sound-kind{font-size:10px}.practice-actions{gap:7px}.practice-actions .button{padding:8px 9px;font-size:12px}.practice-actions svg{width:17px;height:17px}.ai-report-header h2{font-size:21px}.ai-report-header .button{font-size:14px}.report-disclosure>summary{min-height:54px;padding:14px 0}.word-grid{gap:6px}.word-analysis .word-result{width:calc((100% - 24px)/5);min-height:79px}.word-analysis .word-result ruby{font-size:23px}.report-line-heading{gap:7px}.report-line-heading>span{font-size:14px}.report-line-heading h3{font-size:16px}.study-next{gap:10px;justify-content:center}.study-next .button{font-size:14px;flex:1;padding-inline:12px}.report-empty{padding:45px 12px}.report-empty h2{font-size:24px}
 .writing-layout,.quiz-layout{padding-top:0}.writing-tool{max-width:370px}.writing-pinyin{font-size:27px}.writing-controls{gap:8px;flex-wrap:wrap;margin-top:17px}.writing-controls>.button{font-size:14px;min-height:44px;padding:9px 12px}.writing-tools{gap:5px}.writing-feedback{font-size:13px}.quiz-prompt{font-size:22px;margin-bottom:21px}.quiz-option{font-size:19px;min-height:65px;padding:13px;gap:12px}.completion{padding:36px 10px}.completion h2{font-size:25px}
 .chat-layout{padding-top:0}.chat-messages{max-height:49svh;min-height:220px;padding-right:0;gap:16px}.chat-message{gap:8px}.chat-message>img{width:36px;height:36px}.chat-bubble{max-width:calc(100% - 42px);font-size:15px;padding:11px 12px}.chat-suggestions{gap:3px 12px;padding:10px 0}.chat-suggestions button{font-size:13px}.chat-form{padding:8px}.chat-error{font-size:12px}.keyboard-open .lesson-bar{display:none}.keyboard-open .chat-suggestions{display:none}.keyboard-open .chat-messages{min-height:100px;max-height:calc(var(--visual-height,100svh) - 140px)}
 .video-dialog{padding:12px}.video-dialog video{max-height:73svh}.video-dialog .dialog-heading h2{font-size:19px}.dialog-heading{gap:12px}.dialog-heading h2{font-size:21px}.toast{bottom:20px;max-width:calc(100vw - 26px);width:max-content;font-size:13px}
}
@media(max-width:380px){
 .site-header{padding-inline:13px}.library,.workspace{padding-inline:13px}.library-heading h1{font-size:29px}.library-heading-art{width:100px}.library-heading-art img{width:59px;height:59px}.library-heading-art img:nth-child(2){width:36px;height:36px}.library-books{gap:17px 11px}.poem-card-body{padding-inline:9px}.poem-card-title h2{font-size:20px}.poem-poet{width:27px;height:27px}.poem-author{font-size:10px}.poem-open{font-size:11px;gap:4px}.poem-open>svg{width:15px;height:15px}.lesson-title h1{font-size:23px}.lesson-bar{gap:9px}.record-tool>.verse ruby{font-size:29px;min-width:37px}.record-tool>.verse .punct{font-size:29px;width:16px}.verse-list:has(.verse-list-item:nth-child(8)){margin-inline:-13px;width:calc(100% + 26px);padding-inline:4px}.verse ruby{min-width:36px;font-size:27px}.verse .punct{font-size:27px;width:15px}.record-model{margin-bottom:21px}.writing-tools{gap:4px}.writing-controls>.button{padding-inline:10px}.practice-pick{width:56px;min-width:54px}
}
@media(max-width:340px){
 .library-heading h1{font-size:27px}.library-heading-art{width:84px}.library-heading-art img{width:53px;height:53px}.library-heading-art img:nth-child(2){width:30px;height:30px}.library-heading .eyebrow{font-size:9px}.poem-card-title h2{font-size:19px}.poem-poet{width:24px;height:24px}.poem-card-title{gap:4px}.poem-open{font-size:10px}.poem-author{font-size:9px}.lesson-title h1{font-size:21px}.lesson-title p{font-size:10px}.lesson-bar{gap:7px}.record-tool>.verse ruby{font-size:27px;min-width:34px}.record-tool>.verse .punct{font-size:27px;width:15px}.verse rt{font-size:12px}.verse ruby{min-width:33px;font-size:25px}.verse .punct{font-size:25px;width:14px}.record-model{gap:8px}.record-model .button,.record-model>button{padding-inline:11px}.writing-controls>.button{width:100%}.practice-pick{width:53px;min-width:51px}.report-summary{grid-template-columns:77px minmax(0,1fr);gap:12px}.score-ring{width:73px;height:73px}.dimension strong{font-size:22px}.dimension span{font-size:9px}
}
@media(max-width:760px) and (max-height:740px){
 .lesson-bar{min-height:70px;padding-block:10px;margin-bottom:12px}.record-art{max-height:195px}.record-layout{gap:5px}.record-tool>.verse{margin-top:2px;margin-bottom:9px;min-height:64px}.record-model{margin-bottom:17px}.record-actions{min-height:106px}.mic-button{min-height:108px;gap:12px}.mic-button svg{width:70px;height:70px;padding:21px}.record-status{margin-top:8px}#record-controls{min-height:120px}.record-wave{height:17px;margin-bottom:8px}
}
@media(min-width:761px) and (max-height:820px){
 .lesson-bar{min-height:82px;margin-bottom:14px}.record-layout{min-height:calc(100svh - 125px);padding-bottom:15px}.record-art{max-height:400px}.record-tool>.verse{margin-block:12px}.record-model{margin-bottom:20px}.reading-experience{display:flex;flex-direction:column}.reader-controls{order:-1;margin:0 0 19px;padding:0 0 8px}.reading-scene .art-stage{max-height:345px}.reading-scene .poem-lines{gap:10px}.reading-scene .poem-lines.long{gap:2px}.reading-scene .poem-lines.long .verse,.reading-scene .poem-lines.long .verse-line{min-height:46px}.reading-scene .poem-lines.long .verse ruby,.reading-scene .poem-lines.long .punct{font-size:24px}
}
@media(max-width:760px){.practice-decoration{width:40px;height:40px;top:3px;left:50%;right:auto;transform:translateX(-50%) rotate(-8deg)}.reader-toolbar{margin-bottom:14px}.reader-toolbar h2{font-size:18px}.poem-card-title h2 small{display:block;margin:2px 0 0;font-size:10px}}
/* A small illustrated book: one activity, one usable page. */
:root{--bg:#f5f3eb;--ink:#304c43;--muted:#738075;--line:#deded0;--green:#3c6856;--green-soft:#eaf0e6;--red:#af6854;--red-soft:#f6eae1;--blue:#55797c;--blue-soft:#eaf0ee;--gold:#9a8150;--gold-soft:#f3edda}
body{background:linear-gradient(#f5f3ebef,#f5f3ebef),url('vendor/reading-art/white-paper.webp') repeat;background-size:auto,420px}
.site-header{min-height:64px;padding:8px max(28px,calc((100vw - 1160px)/2));border-color:var(--line)}
.brand-mark{border-radius:50%;width:34px;height:34px;background:transparent;color:var(--green);border:1px solid #bac7b7}.brand strong{font-size:13px;letter-spacing:1.3px;font-weight:600}
.button{border-radius:100px;border-color:#d6dbcf;background:#fffdf6;box-shadow:none;font-weight:500}.button.primary{box-shadow:0 3px 10px #304c4312;background:var(--green);border-color:var(--green)}
.icon-button{border-radius:50%}.button:hover:not(:disabled){background:#edf1e6}.button.primary:hover:not(:disabled){background:#315b49}
.library{max-width:1220px;min-height:0;height:calc(100dvh - 64px);padding:18px 30px 10px;display:flex;flex-direction:column}
.library-heading{flex-shrink:0;min-height:0;margin-bottom:20px;gap:16px}.library-heading h1{font-size:clamp(26px,2.5vw,38px);display:flex;align-items:center;gap:17px;line-height:1.55}.library-heading .eyebrow{font-size:11px;letter-spacing:1px;margin-bottom:3px}.library-sub{font-size:13px;margin-top:4px}
.poetry-seal{display:inline-grid;place-items:center;border:1px solid #b77559;outline:1px solid #b77559;outline-offset:3px;border-radius:2px;width:27px;height:29px;color:#a56d52;font:18px var(--serif);transform:rotate(-5deg)}
.paper-bird{width:150px;height:83px;object-fit:contain;margin-right:18px}
.library-books{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(200px,1fr));gap:20px 25px;padding:2px 0 8px}
.poem-card{--book-color:#536f58!important;--book-soft:#edf0e5!important;min-height:0}.poem-card:nth-child(2){--book-color:#a57566!important}.poem-card:nth-child(3){--book-color:#687b86!important}.poem-card:nth-child(4){--book-color:#657858!important}.poem-card:nth-child(5){--book-color:#a08b59!important}.poem-card:nth-child(6){--book-color:#736a83!important}
.poem-entry{border:1px solid #dddccc;border-left:1px solid #d3d4c5;border-radius:5px 15px 15px 5px;box-shadow:3px 4px 0 #eceadf,4px 5px 0 #d6d7c8,0 9px 20px #304c4308;background:#fffdf6;padding:7px 7px 0 12px;transition:transform .2s,box-shadow .2s}
.poem-entry:before{content:'';position:absolute;top:0;left:5px;width:1px;height:100%;background:#e4e1d2;z-index:2}.poem-entry:hover{transform:translateY(-3px);border-color:#bac5b1;box-shadow:3px 6px 0 #e8e9dd,4px 7px 0 #c5cbb9,0 14px 24px #304c4310}
.poem-art{aspect-ratio:auto;min-height:70px;flex:1;border-radius:2px 9px 2px 2px;background-size:cover;background-position:center}.poem-art>img{object-fit:cover;object-position:center}
.poem-grade{top:0;left:auto;right:10px;padding:5px 6px 12px;font-size:10px;color:#fff;background:var(--book-color);border-radius:0;clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 5px),0 100%);letter-spacing:.5px}
.poem-card-body{padding:9px 10px 0;flex:0;position:relative}.poem-card-title{min-height:34px;gap:8px}.poem-card-title h2{font-size:24px;line-height:1.45}.poem-card-title h2 small{font-size:11px;display:inline-block;margin-left:6px}.poem-poet{width:34px;height:34px;border:1px solid #dadccd;filter:saturate(.8)}
.poem-author{margin:1px 0 6px;font-size:11px}.poem-open{min-height:34px;font-size:11px;border-top-color:#ebe8dc;font-weight:500}.poem-open>svg{width:15px;height:15px}.poem-open>svg:last-child{width:17px;height:17px}
.library-footer{margin-top:8px;min-height:36px;flex-shrink:0;font-size:10px}.library-footer a{min-height:36px}
.library.credits-page{height:auto;min-height:0}.credits-page .report-prose p+p{margin-top:18px}
.workspace{height:100dvh;min-height:0;max-width:1320px;display:grid;grid-template-rows:auto minmax(0,1fr);padding:0 36px 24px}
.lesson-bar{min-height:87px;padding:15px 0;margin:0 0 15px;border-bottom:1px solid var(--line)}.lesson-title h1{font-size:26px}.lesson-title p{font-size:11px;letter-spacing:1px}.lesson-menu>summary{background:#fffcf3;border:1px solid #d8ddcf;border-radius:50%}.menu-panel{border-radius:16px;background:#fffdf6;box-shadow:0 15px 45px #304c4326;padding:9px}.menu-panel>a,.menu-panel>button{border-radius:8px}
.study-main{min-height:0;height:100%;max-width:1160px}.view-section{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px}
.record-layout{height:100%;min-height:0;max-width:none;grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr);gap:36px;padding:0;align-items:center}
.record-landscape{padding:14px 14px 4px;border:1px solid #dedccd;background:#fffdf7;border-radius:3px;box-shadow:0 6px 25px #304c430a;position:relative}
.record-landscape:before,.poem-landscape:before{content:'';width:33px;height:4px;background:#b98962;position:absolute;top:-2px;left:calc(50% - 16px);border-radius:2px;opacity:.65}
.record-art{max-height:calc(100dvh - 250px);border-radius:1px;background:#f8f5e9}.verse-list{margin-top:7px;padding-bottom:0;gap:3px}.verse-list-item{border-radius:50%;min-height:44px}.verse-list-item:after{display:none}.verse-list-item.current{background:#e5ebdd}
.record-practice{align-self:stretch;display:flex;align-items:center;justify-content:center}.record-tool{padding:16px 0;width:100%;max-width:420px}.record-counter>span{color:#79816e}.record-counter{font-size:12px}.record-tool>.verse{margin:16px 0 20px}.record-model{margin-bottom:24px}.record-model .button{border-radius:100px;background:#e5ebdf;font-size:13px}.record-model>[data-action=video]{background:#eceee7}
.mic-button{min-height:112px;font-size:15px;font-weight:500;gap:14px}.mic-button svg{width:72px;height:72px;padding:22px;background:#ab6956;box-shadow:0 0 0 7px #eee3d7,0 0 0 8px #dccfba}.mic-button:hover svg{background:#965a49}.record-status{font-size:12px}
.record-actions{min-height:90px;flex-wrap:nowrap}.record-review{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;max-width:100%;scrollbar-width:thin;padding:6px 2px;margin:10px 0}.record-review>span{flex-shrink:0;max-width:4em;line-height:1.6;text-align:left}.record-review button{flex-shrink:0;background:#eaf0e2}.record-result{font-family:var(--serif);font-size:34px}.record-result+.record-status{margin-top:4px}#record-controls{min-height:145px}
.view-read #view{display:flex;flex-direction:column}.reader-toolbar{margin:0 0 8px;flex-shrink:0}.reader-toolbar h2{font:500 15px var(--sans);color:var(--muted)}
.reading-experience{display:flex;flex-direction:column;flex:1;min-height:0;justify-content:center}.reading-scene{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(290px,.9fr);gap:38px;flex:1;min-height:0;align-items:center}
.poem-landscape{position:relative;padding:12px 12px 0;border:1px solid #dedccd;background:#fffdf7;box-shadow:0 6px 25px #304c430a}.reading-scene .art-stage{max-height:calc(100dvh - 295px)}
.poem-text{display:flex;flex-direction:column;min-height:240px;justify-content:center;padding:20px 6px}.reading-folio{display:flex;justify-content:space-between;color:#8d957f;font-size:11px;border-bottom:1px solid var(--line);padding-bottom:12px;letter-spacing:1px}.poem-lines{min-height:145px;justify-content:center;gap:12px}.page-turner{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:7px;border-top:1px solid var(--line);padding-top:6px}.page-turner .text-button{font-size:12px}
.reader-controls{order:0;display:flex;flex-wrap:nowrap;justify-content:center;margin:12px 0 0;padding:5px 0;flex-shrink:0;gap:12px}.reader-controls .media-buttons{display:flex;gap:9px}.reader-controls .button{font-size:13px;min-height:44px;padding:10px 17px}.media-buttons .button{background:#edf0e5;border-color:#dce1d1}.media-buttons>[data-action=video]{background:#eff0ea;border-color:#dde1d8}.audio-options{width:100%;max-width:500px;flex-shrink:0;margin:0 auto}.audio-timeline{gap:9px;font-size:10px}
.poem-dialog{width:540px;max-height:88dvh;overflow:auto;background:#faf7ed;padding:22px}.poem-dialog .verse{margin:12px 0}.poem-dialog .dialog-heading{position:sticky;top:-22px;background:#faf7ed;padding-block:5px;z-index:1}
.view-report .study-main{max-width:850px}.view-report #view{display:flex;flex-direction:column}.report-summary{flex-shrink:0;grid-template-columns:82px minmax(0,1fr);gap:25px;padding:4px 0 19px;margin:0}.score-ring{width:74px;height:74px;border:1px solid #9aa989;outline:1px solid #d5d9c7;outline-offset:4px}.score-ring strong{font:600 30px/1.15 var(--serif)}.score-ring span{font-size:9px}.dimension strong{font-size:24px;color:var(--green)}.dimension:nth-child(2) strong,.dimension:nth-child(3) strong{color:var(--green)}.dimension span{font-size:11px}.report-summary .eyebrow{font-size:11px}
.report-tabs{display:flex;gap:5px;flex-shrink:0;padding:5px;background:#e8eadd;border-radius:100px;margin:13px 0}.report-tabs button{flex:1;min-width:0;min-height:44px;padding:7px;border:0;border-radius:100px;background:transparent;font-size:13px}.report-tabs [aria-selected=true]{background:#fffdf5;box-shadow:0 2px 6px #304c4310;color:var(--green);font-weight:600}
.report-panels{min-height:0;flex:1;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}.practice-section{margin:0}.practice-selector{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:7px;padding:3px 2px 7px;margin:0 0 8px}.practice-pick{flex-shrink:0;width:54px;min-width:54px;min-height:71px;padding:4px;gap:0;border:1px solid #dce1cf;border-radius:7px;background:#f3f4e9}.practice-pick ruby{font-size:23px}.practice-pick[aria-pressed=true]{background:#e4eadb;border-color:#91a58c;box-shadow:none}.practice-pick small{font-size:10px}.practice-pick svg{width:12px;height:12px}.practice-card{border:0;padding:0 0 7px}.practice-card-heading{margin:0;gap:5px;min-height:48px}.practice-card-heading h3{font-size:19px}.practice-pager{display:flex;align-items:center;gap:2px;flex-shrink:0}.practice-pager span{font-size:10px;min-width:35px;text-align:center}.practice-pager .icon-button{width:44px;height:44px}
.practice-tip{font-size:13px;line-height:1.8;color:#677263}.contrast-heading{margin-top:6px;font-size:12px}.contrast-heading .text-button{font-size:12px}.contrast-pair{margin:3px 0 6px;gap:10px}.sound-word{position:relative;min-height:93px;padding:8px 5px;gap:1px;background:#edf0e6;border:1px solid #dde2d1;border-radius:10px}.sound-word ruby{font-size:28px;color:var(--green)}.sound-word rt{font-size:12px}.sound-word svg{position:absolute;right:9px;bottom:9px;width:14px;height:14px;color:#8b9d83}.sound-context{font-size:11px;color:var(--muted)}.practice-actions{flex-wrap:nowrap;gap:7px;margin-top:11px}.practice-actions .button{font-size:12px;padding:8px 13px;flex:1;white-space:nowrap}.practice-actions svg{width:16px;height:16px}
.ai-report-header{margin:8px 0 20px}.ai-report-header h2{font-size:21px}.report-prose{padding:15px 18px;border-left:2px solid #c5c9ae;background:#fffdf4;font-size:15px;line-height:2}.advice-placeholder{font-size:14px;color:var(--muted);margin:45px 12px}.score-line-tabs{display:flex;gap:5px;overflow-x:auto}.score-line-tabs button{flex-shrink:0;border:1px solid #dce0cf}.score-line-tabs [aria-pressed=true]{background:#e0e7d6}.report-line{padding:15px 0;border:0}.report-line .button{margin-top:20px}.word-analysis .word-result{border-radius:6px;width:62px}.word-grid{gap:8px}.word-analysis .section-heading{font-size:13px;margin:0 0 15px}
.writing-layout,.quiz-layout{height:100%;padding:12px 0;align-items:center;gap:55px}.writing-context .art-stage,.quiz-art .art-stage{border:12px solid #fffdf6;outline:1px solid #dddccb;box-shadow:0 8px 25px #304c4310;max-height:calc(100dvh - 300px)}.writing-context h2,.panel-title{font-size:23px}.writing-context p,.quiz-art p{font-size:13px}.writing-tool{max-width:min(380px,calc(100dvh - 300px));min-width:260px}.writing-board{border:1px solid #b9c4ab;background:#fffdf5;box-shadow:5px 5px 0 #e7e7d7}.writing-toolbar{margin-bottom:9px}.writing-pinyin{font-size:25px}.writing-hint{font-size:clamp(110px,22dvh,180px)}.writing-controls{margin-top:12px}.writing-tools{gap:3px}.writing-controls>.button{min-height:44px;font-size:13px;padding:8px 13px}.writing-feedback{font-size:12px;margin-top:8px;min-height:20px}.writing-tool>.text-button{font-size:12px}.writing-context .practice-results{max-height:85px;overflow:auto}
.quiz-top{margin-bottom:9px}.quiz-progress{height:3px;background:#e8e5d4;margin-bottom:20px}.quiz-progress i{background:#9aab7d}.quiz-prompt{font-size:22px;margin-bottom:20px}.quiz-option{background:#fffdf5;border-radius:12px;min-height:62px;font-size:18px;padding:12px 17px}.quiz-explanation{font-size:13px;min-height:70px;padding:15px 0}.quiz-next .button{min-width:140px}
.chat-layout{height:100%;min-height:0;padding:5px 0 0;align-items:stretch;grid-template-columns:200px minmax(0,1fr)}.poet-profile{padding:0 18px 0 0;border-right:1px solid var(--line)}.poet-profile img{border-radius:100px 100px 5px 5px;border:6px solid #fffdf6;outline:1px solid #d7dbca;max-height:260px}.poet-profile h2{font-size:24px}.poet-profile p{font-size:12px}.chat-tool{height:100%;min-height:0;overflow:hidden}.chat-messages{flex:1;min-height:0;max-height:none;gap:16px;padding:10px 5px 15px}.chat-bubble{background:#eef0e3;border-radius:2px 16px 16px 16px;font-size:15px}.chat-message.user .chat-bubble{background:#e1e8dc;color:var(--ink);border-radius:16px 2px 16px 16px}.chat-suggestions{flex-wrap:nowrap;overflow-x:auto;flex-shrink:0;gap:8px;padding:10px 1px;scrollbar-width:thin}.chat-suggestions button{flex-shrink:0;min-height:40px;padding:7px 13px;border:1px solid #d9ddcc;border-radius:100px;text-decoration:none;font-size:12px;background:#faf8ed}.chat-form{flex-shrink:0;border-radius:16px;background:#fffdf5;border-color:#c7d0b9}.chat-form textarea{background:transparent}.chat-form button{border-radius:50%}.chat-error{flex-shrink:0;min-height:0;padding:5px 0;font-size:12px}.chat-error:empty{display:none}
dialog{border-radius:16px;background:#fffdf6}dialog::backdrop{background:#243d34a8;backdrop-filter:blur(5px)}.toast{border-radius:100px;background:#45634b}.report-empty{margin:auto}.report-empty>img{width:180px;height:100px;max-width:100%;margin:0 auto 24px}
@media(max-width:900px){
 .workspace{padding:0 22px 16px}.record-layout{grid-template-columns:minmax(0,1fr) minmax(290px,1fr);gap:20px}.record-tool>.verse ruby{font-size:27px;min-width:34px}.record-tool>.verse .punct{font-size:27px;width:15px}.reading-scene{grid-template-columns:minmax(0,1fr) minmax(270px,1fr);gap:25px}.writing-layout,.quiz-layout{grid-template-columns:1fr}.writing-context,.quiz-art{display:none}.quiz-layout>div:last-child{width:100%;max-width:570px;margin:auto}.chat-layout{grid-template-columns:1fr}.poet-profile{display:none}.writing-tool{max-width:min(370px,calc(100dvh - 310px))}
}
@media(max-width:700px){
 .site-header{min-height:53px;padding:4px 18px}.brand strong{font-size:11px}.brand-mark{width:30px;height:30px}.brand-mark svg{width:19px;height:19px}
 .library{height:calc(100dvh - 53px);padding:15px 18px 5px}.library-heading{margin-bottom:16px;gap:6px}.library-heading h1{font-size:24px;gap:13px}.library-heading .eyebrow{font-size:9px;max-width:none;letter-spacing:.5px}.library-sub{font-size:11px;margin-top:3px}.poetry-seal{width:19px;height:22px;font-size:14px;outline-offset:2px}.paper-bird{display:none}
 .library-books{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(140px,1fr));gap:14px 16px}.poem-entry{padding:5px 5px 0 9px;border-radius:3px 11px 11px 3px}.poem-entry:before{left:3px}.poem-art{min-height:48px;border-radius:2px 6px 2px 2px}.poem-grade{font-size:9px;right:5px;padding:3px 4px 9px}.poem-card-body{padding:4px 5px 0}.poem-card-title{min-height:28px;gap:3px}.poem-card-title h2{font-size:19px}.poem-card-title h2 small{font-size:8px;margin-left:3px}.poem-poet{width:24px;height:24px}.poem-author{font-size:9px;margin:0 0 3px}.poem-open{font-size:10px;min-height:27px;gap:4px}.poem-open>svg{width:12px;height:12px}.poem-open>svg:last-child{width:14px;height:14px}.library-footer{margin-top:5px;font-size:9px;min-height:34px}
 .workspace{padding:0 16px max(12px,env(safe-area-inset-bottom));height:100dvh}.lesson-bar{min-height:70px;margin-bottom:10px;padding:10px 0;gap:10px}.lesson-title h1{font-size:23px}.lesson-title p{font-size:10px;letter-spacing:.5px}.back-library{font-size:9px}.lesson-menu>summary{width:44px;height:44px;font-size:9px}.view-section{padding:2px}.record-layout{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:stretch;height:100%}
 .record-landscape{padding:8px 8px 0;flex-shrink:0}.record-art{max-height:clamp(105px,calc(100dvh - 500px),225px);aspect-ratio:16/8.5}.verse-list{margin-top:1px;padding:0;gap:1px}.verse-list-item{min-width:36px;min-height:44px;grid-auto-columns:minmax(36px,1fr);font-size:11px}.verse-list:has(.verse-list-item:nth-child(8)){margin-inline:0;width:100%;max-width:100%;padding:0;grid-auto-columns:minmax(34px,1fr)}
 .record-practice{display:block;flex:0 0 auto}.record-tool{padding:0;max-width:440px}.record-counter{min-height:44px;font-size:11px}.record-tool>.verse{margin:2px 0 10px;min-height:64px}.record-tool>.verse ruby{font-size:29px;min-width:38px}.record-tool>.verse .punct{font-size:29px;width:16px}.record-model{margin-bottom:13px;gap:10px}.record-model .button{padding:9px 15px;font-size:12px}.record-actions{min-height:78px;gap:8px}.mic-button{min-height:104px;font-size:14px;gap:12px}.mic-button svg{width:64px;height:64px;padding:19px;box-shadow:0 0 0 6px #eee3d7,0 0 0 7px #dccfba}#record-controls{min-height:124px}.record-result{font-size:30px}.record-review{margin:5px 0;padding:4px 1px;gap:6px}.record-review button{min-height:44px;padding:3px 6px}.record-review ruby{font-size:22px}.record-review>span{font-size:10px}.record-review rt{font-size:10px}.record-actions .button{font-size:12px;padding:8px 12px;gap:5px}.record-status{font-size:11px;margin-top:7px}
 .reading-experience{justify-content:space-evenly;overflow:visible}.reading-scene{display:flex;flex-direction:column;flex:0 1 auto;gap:10px;align-items:stretch}.poem-landscape{padding:8px 8px 0}.reading-scene .art-stage{max-height:clamp(115px,calc(100dvh - 485px),250px)}.scene-dots button{height:34px}.poem-text{grid-row:auto;min-height:0;padding:0 3px}.reading-folio{font-size:10px;padding-bottom:4px}.poem-lines{min-height:104px;gap:0;padding:3px 0}.poem-lines .verse{min-height:50px}.poem-lines .verse ruby{font-size:27px;min-width:35px;line-height:1.5}.poem-lines .verse rt{font-size:11px}.poem-lines .punct{font-size:27px;line-height:1.5;width:15px}.page-turner{margin-top:0;padding-top:0}.page-turner .text-button{font-size:11px}.reader-toolbar{margin-bottom:4px}.reader-toolbar h2{font-size:14px}.reader-controls{display:flex;gap:8px;margin:5px 0 0;padding:0}.reader-controls .media-buttons{display:flex;gap:8px;min-width:0}.reader-controls .button{font-size:12px;padding:8px 10px;gap:5px;white-space:nowrap}.reader-controls .button svg{width:17px;height:17px}.read-start>svg:last-child{display:none}.audio-options{margin-top:3px}.audio-timeline{font-size:10px;gap:6px}.audio-timeline select{font-size:11px}.poem-dialog{padding:18px 10px}.poem-dialog .dialog-heading{top:-18px;padding-inline:8px}.poem-dialog .verse ruby{font-size:26px;min-width:35px}.poem-dialog .verse rt{font-size:11px}
 .report-summary{grid-template-columns:65px minmax(0,1fr);gap:19px;padding:5px 3px 16px}.score-ring{width:60px;height:60px}.score-ring strong{font-size:25px}.score-ring span{font-size:8px;margin-top:2px}.report-summary .eyebrow{font-size:9px;margin-bottom:5px}.dimension-grid{gap:7px}.dimension strong{font-size:21px}.dimension span{font-size:9px}.report-tabs{margin:10px 0;gap:2px;padding:3px}.report-tabs button{font-size:12px;min-height:44px}.practice-selector{margin-bottom:4px}.practice-pick{min-height:68px;width:51px;min-width:51px}.practice-card-heading h3{font-size:16px}.practice-pager{gap:0}.practice-pager span{font-size:9px;min-width:30px}.practice-tip{font-size:12px;line-height:1.75}.practice-actions .button{font-size:11px;padding:8px 9px;gap:4px}.practice-actions{gap:5px}.practice-actions svg{width:15px;height:15px}.contrast-heading{font-size:11px;margin-top:3px}.contrast-heading .text-button{font-size:11px}.contrast-pair{gap:8px}.sound-word{min-height:88px}.sound-word ruby{font-size:27px}.sound-word svg{right:7px;bottom:8px;width:13px;height:13px}.sound-context{font-size:10px}.ai-report-header h2{font-size:19px}.ai-report-header .button{font-size:12px}.report-prose{font-size:14px;padding:12px}.word-analysis .word-result{width:calc((100% - 24px)/4);min-height:83px}.word-grid{gap:8px}.report-line-heading>span{font-size:15px}
 .writing-layout,.quiz-layout{height:100%;padding:0;display:flex;align-items:center;justify-content:center}.writing-tool{min-width:0;max-width:min(350px,calc(100dvh - 315px));width:100%}.writing-toolbar{margin-bottom:8px}.writing-pinyin{font-size:24px}.writing-counter{font-size:11px}.writing-controls{flex-wrap:nowrap;gap:5px}.writing-tools{gap:1px}.writing-tools .icon-button{width:40px;height:44px}.writing-controls>.button{width:auto;min-height:44px;white-space:nowrap;font-size:12px;padding:8px 12px}.writing-feedback{font-size:11px}.writing-tool>.text-button{font-size:11px}.quiz-prompt{font-size:21px;margin-bottom:18px}.quiz-option{min-height:61px;font-size:18px;padding:11px 14px}.quiz-explanation{min-height:80px;font-size:13px;padding:15px 0}.quiz-next .button{width:100%}.quiz-top{font-size:12px}.completion{padding:28px 8px}.completion h2{font-size:24px}
 .chat-layout{padding:0;height:100%;display:flex}.chat-tool{width:100%;height:100%}.chat-messages{min-height:0;max-height:none;padding:4px 0 12px;gap:14px}.chat-bubble{font-size:14px;line-height:1.85;padding:12px;max-width:calc(100% - 40px)}.chat-message>img{width:33px;height:33px}.chat-suggestions{padding:9px 0}.chat-suggestions button{font-size:11px;min-height:44px}.chat-form{padding:7px}.chat-form textarea{font-size:16px}.keyboard-open .workspace{height:var(--visual-height,100dvh);padding-top:8px}.keyboard-open .chat-messages{min-height:0;max-height:none}.keyboard-open .chat-suggestions{display:none}
}
@media(max-width:370px){.library-heading h1{font-size:21px;gap:11px}.poem-card-title h2{font-size:17px}.poem-poet{width:21px;height:21px}.library-books{gap:12px}.workspace{padding-inline:12px}.lesson-title h1{font-size:21px}.record-tool>.verse ruby{min-width:34px;font-size:27px}.record-tool>.verse .punct{width:15px;font-size:27px}.practice-card-heading h3{font-size:14px}.practice-pager span{min-width:25px}.practice-pager .icon-button{width:40px}.reader-controls .button{font-size:11px;padding:8px;gap:4px}.poem-lines .verse ruby{min-width:33px;font-size:26px}.writing-tools .icon-button{width:38px}.writing-controls>.button{padding-inline:9px}.writing-hint{font-size:140px}}
/* Small landscape screens and large text keep a reachable scroll surface. */
@media(max-height:620px){.library{height:auto;min-height:calc(100dvh - 53px)}.library-books{grid-auto-rows:180px;grid-template-rows:none;flex:0}.record-layout{height:auto;min-height:100%;padding:10px 0}.reading-experience{flex:none;min-height:100%}.reading-scene{flex:none}.writing-tool{max-width:300px}.writing-layout,.quiz-layout{height:auto;min-height:100%;padding:12px 0}.chat-layout{height:100%}.report-panels{overflow:auto}.poem-text{min-height:180px}.record-art{max-height:165px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* visuals.css */
/* Illustrated reading surfaces; layout and activity behaviour live in styles.css. */
:root {
  --bg:#fbf7ec;--ink:#244f49;--muted:#667b6e;--line:#e4e4d6;
  --green:#327c66;--green-soft:#e8f2e8;--blue:#42798b;--blue-soft:#e8f2f5;
  --red:#c16850;--red-soft:#fcebe0;--gold:#9a762e;--gold-soft:#fbf1d6;
  --poem-color:#397f69;--poem-soft:#edf4e9;--poem-light:#f7faf2;
}
.poem-color-1{--poem-color:#397f69;--poem-soft:#e9f3e5;--poem-light:#f5faef;--poem-mark:url('media/poetry-motifs/goose.svg')}
.poem-color-2{--poem-color:#ae5e50;--poem-soft:#faece3;--poem-light:#fdf6f0;--poem-mark:url('media/poetry-motifs/boat.svg')}
.poem-color-3{--poem-color:#49798b;--poem-soft:#e9f1f3;--poem-light:#f2f8f8;--poem-mark:url('media/poetry-motifs/mountain.svg')}
.poem-color-4{--poem-color:#697a46;--poem-soft:#eff2e0;--poem-light:#fafbf0;--poem-mark:url('media/poetry-motifs/moon.svg')}
.poem-color-5{--poem-color:#937128;--poem-soft:#f8f0da;--poem-light:#fdf9ee;--poem-mark:url('media/poetry-motifs/sprout.svg')}
.poem-color-6{--poem-color:#79709a;--poem-soft:#f0edf7;--poem-light:#f9f6fc;--poem-mark:url('media/poetry-motifs/swallow.svg')}
.poem-color-7{--poem-color:#4f6f8f;--poem-soft:#e8eef5;--poem-light:#f4f7fb;--poem-mark:url('media/poetry-motifs/snow.svg')}
.poem-color-8{--poem-color:#a14a3c;--poem-soft:#f8e6e0;--poem-light:#fcf3ef;--poem-mark:url('media/poetry-motifs/rooster.svg')}
.poem-color-9{--poem-color:#7d5a3c;--poem-soft:#f3e9de;--poem-light:#faf5ee;--poem-mark:url('media/poetry-motifs/beans.svg')}
.poem-color-10{--poem-color:#2f7a86;--poem-soft:#e3f1f3;--poem-light:#f1f8f9;--poem-mark:url('media/poetry-motifs/oriole.svg')}
.poem-color-11{--poem-color:#8b5e83;--poem-soft:#f4eaf2;--poem-light:#faf5f9;--poem-mark:url('media/poetry-motifs/shoe.svg')}
.poem-color-12{--poem-color:#4f7a30;--poem-soft:#edf4e2;--poem-light:#f7fbf0;--poem-mark:url('media/poetry-motifs/cup.svg')}
.poem-color-13{--poem-color:#b0605a;--poem-soft:#f6eceb;--poem-light:#fbf7f7;--poem-mark:url('media/poetry-motifs/petals.svg')}
.poem-color-14{--poem-color:#3f8277;--poem-soft:#e8f0ef;--poem-light:#f5f9f8;--poem-mark:url('media/poetry-motifs/dragonfly.svg')}
.poem-color-15{--poem-color:#a8792a;--poem-soft:#f5efe5;--poem-light:#fbf8f4;--poem-mark:url('media/poetry-motifs/flower.svg')}
.poem-color-16{--poem-color:#4c5f86;--poem-soft:#eaecf0;--poem-light:#f6f7f9;--poem-mark:url('media/poetry-motifs/bell.svg')}
.poem-color-17{--poem-color:#6f7378;--poem-soft:#eeeeef;--poem-light:#f8f8f8;--poem-mark:url('media/poetry-motifs/hammer.svg')}
.poem-color-18{--poem-color:#62704a;--poem-soft:#eceee9;--poem-light:#f7f8f6;--poem-mark:url('media/poetry-motifs/footprints.svg')}
.poem-color-19{--poem-color:#9a7432;--poem-soft:#f3eee6;--poem-light:#faf8f5;--poem-mark:url('media/poetry-motifs/rice.svg')}
.poem-color-20{--poem-color:#a35d6e;--poem-soft:#f4ecee;--poem-light:#faf7f8;--poem-mark:url('media/poetry-motifs/needle.svg')}
.poem-color-21{--poem-color:#c27a2c;--poem-soft:#f8efe6;--poem-light:#fcf8f4;--poem-mark:url('media/poetry-motifs/orange.svg')}
.poem-color-22{--poem-color:#5d8a4a;--poem-soft:#ecf1e9;--poem-light:#f7f9f6;--poem-mark:url('media/poetry-motifs/plum.svg')}
.poem-color-23{--poem-color:#7a8f3a;--poem-soft:#eff2e7;--poem-light:#f8f9f5;--poem-mark:url('media/poetry-motifs/dew.svg')}
.poem-color-24{--poem-color:#5b6b8c;--poem-soft:#ebedf1;--poem-light:#f7f8f9;--poem-mark:url('media/poetry-motifs/book.svg')}
body{background:radial-gradient(ellipse at 6% 0%,#fff9e7 0,transparent 48%),radial-gradient(ellipse at 100% 80%,#edf3e97a,transparent 55%),#fbf9f1}
.site-header{border-bottom-color:#e7e7db;background:#fffcf57d}
.brand-mark{background:#fffef6;border-color:#bfd4c1;box-shadow:0 2px 5px #264e4410}.brand strong{color:#2d6054;letter-spacing:1.8px}.profile-button{color:#3a745f}
.library{max-width:1250px;padding-top:22px}
.library-heading{margin-bottom:22px}.library-heading h1{display:block;font-size:clamp(27px,2.8vw,40px);line-height:1.45;letter-spacing:1px;color:#28564d}
.library-heading .eyebrow{font-size:11px;color:#698071;letter-spacing:1.1px;margin-bottom:6px}.library-sub{color:#738577;font-size:13px;margin-top:7px;letter-spacing:.4px}
.title-ink{display:inline-block;color:#3d876a}
.poetry-seal{display:inline-grid;margin-left:18px;vertical-align:middle;color:#bc7358;border-color:#c48567;outline-color:#d7a088;background:#fff8e8;width:26px;height:30px;font-size:18px;transform:rotate(-7deg)}
.library-flourish{width:185px;height:98px;position:relative;flex-shrink:0;isolation:isolate;margin-right:15px}
.library-flourish:before{content:'';position:absolute;z-index:-1;inset:6px 16px 5px 30px;background:#f6eccb;border-radius:59% 41% 52% 48% / 43% 57% 43% 57%;transform:rotate(-8deg)}
.library-flourish:after{content:'';position:absolute;right:4px;top:13px;width:5px;height:5px;background:#d8aa69;border-radius:50%;box-shadow:-148px 52px 0 -1px #9ab49a,3px 59px 0 -1px #d3a089}
.paper-bird{width:160px;height:90px;position:relative;top:1px;left:6px;margin:0;transform:rotate(-3deg)}
.library-books{gap:24px 27px;padding-bottom:7px}
.poem-card{--book-color:var(--poem-color)!important;--book-soft:var(--poem-soft)!important}
.poem-card:nth-child(n){--book-color:var(--poem-color)!important;--book-soft:var(--poem-soft)!important}
.poem-entry{padding:8px 8px 0 12px;border:1px solid #e3e5d8;border-left:4px solid var(--poem-color);border-radius:5px 17px 17px 5px;background:var(--poem-light);box-shadow:0 3px 0 #fffdf6,0 4px 0 #dce0ce,0 9px 20px #3851430a;transition:transform .22s,box-shadow .22s,border-color .22s}
.poem-entry:before{left:3px;background:#fff9;opacity:.9}.poem-entry:hover{border-color:var(--poem-color);box-shadow:0 3px 0 #fffdf6,0 5px 0 #d7dfcb,0 13px 24px #38514312;transform:translateY(-4px) rotate(-.3deg)}
.poem-art{border-radius:2px 10px 3px 3px}.poem-art>img{transition:transform .8s cubic-bezier(.2,.7,.3,1)}
@media(hover:hover){.poem-entry:hover .poem-art>img{transform:scale(1.025)}}
.poem-grade{background:var(--poem-color);font-size:11px;right:11px;padding:6px 8px 13px;box-shadow:0 2px 7px #2c4e3820}
.poem-card-body{padding:10px 10px 0;position:relative;isolation:isolate}
.poem-card-title{min-height:37px;padding-right:52px}.poem-card-title h2{font-size:26px;letter-spacing:.6px;color:#2e5549}.poem-card-title h2 small{font-size:11px;margin-left:5px;color:#7d897b}
.poem-emblem{position:absolute;right:6px;top:5px;width:48px;height:48px;transform:rotate(7deg);pointer-events:none;transition:transform .28s}
.poem-entry:hover .poem-emblem{transform:rotate(-3deg) translateY(-2px)}
/* Completion seal: every line read once and the practice done once (app.js poemSealHTML). */
.poem-seal{position:absolute;right:42px;bottom:7px;width:32px;height:32px;display:grid;place-items:center;border:2px solid #b8322a;border-radius:5px;background:#fff8f1;box-shadow:inset 0 0 0 2px #fff8f1,inset 0 0 0 3px #b8322a99;color:#b8322a;font-family:var(--serif);font-size:19px;font-weight:700;line-height:1;transform:rotate(-9deg);opacity:.9;pointer-events:none;z-index:1}
.poem-seal>span{transform:translateY(-1px)}
.poem-author{font-size:11px;margin:0 0 8px;color:#708171}.poem-open{color:var(--poem-color);font-size:12px;min-height:39px;border-top:1px solid color-mix(in srgb,var(--poem-color) 14%,transparent);font-weight:500}
.poem-open>svg:last-child{width:27px;height:27px;padding:6px;border-radius:50%;background:var(--poem-soft);transition:transform .2s,background .2s}.poem-entry:hover .poem-open>svg:last-child{transform:translateX(2px);background:var(--poem-color);color:white}
.library-footer{color:#7b8b78;font-size:10px;letter-spacing:.5px}
.lesson-bar{border-bottom:0;position:relative}.lesson-bar:after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,var(--poem-color),#dfe5d7 24%,#dfe5d7 92%,transparent);opacity:.6}
.lesson-title{display:flex;align-items:center;gap:13px}.lesson-portrait{width:46px;height:46px;object-fit:cover;object-position:center 20%;border-radius:50%;padding:3px;background:#fffdf6;box-shadow:0 0 0 1px #dbe2d0;flex-shrink:0}.lesson-heading{min-width:0}.lesson-title h1{font-size:28px;color:#28554a;letter-spacing:.8px}.lesson-title p{color:#738674;font-size:11px}
.back-library{color:#587a66}.lesson-menu>summary{background:#fffef6;border-color:#d5e0d0;box-shadow:0 3px 0 #e7eadc;color:#44755c}.menu-panel{border-color:#dae3d1;background:#fffef7;box-shadow:0 15px 45px #304c4320}.menu-panel a[aria-current=page]{background:var(--poem-soft);color:var(--poem-color)}
.button{border-color:#d8e1cd;background:#fffef7;box-shadow:0 2px 0 #e5e9db;color:#38614e;transition:transform .17s,box-shadow .17s,background .17s,border-color .17s}
.button.primary{background:#377e63;border-color:#377e63;box-shadow:0 3px 0 #28614d,0 7px 12px #377e6310;color:#fffef5}.button.primary:hover:not(:disabled){background:#32745b;box-shadow:0 3px 0 #245740,0 8px 14px #377e631c}
.button:active:not(:disabled){transform:translateY(2px);box-shadow:none}.icon-button{color:#477d64;transition:background .17s,transform .17s}.icon-button:active:not(:disabled){transform:scale(.94)}.pinyin-toggle{background:var(--poem-soft);color:var(--poem-color)}
.record-layout,.reading-experience{position:relative;isolation:isolate}
.record-layout{padding:20px 26px;gap:45px;background:#fffdf7;border:1px solid #e2e6d8;border-radius:8px 24px 24px 8px;box-shadow:0 4px 0 #f4f1e3,0 5px 0 #e2e2d1,0 15px 40px #36563e06}
.record-layout:before{content:'';position:absolute;z-index:-1;left:58%;top:28px;bottom:28px;width:1px;background:linear-gradient(transparent,#e8e5d7 20%,#e8e5d7 80%,transparent)}
.record-landscape{padding:11px 11px 4px;background:#fffef8;border:1px solid #e2e5d6;border-radius:4px 12px 12px 4px;box-shadow:0 5px 16px #274b3d09;transform:rotate(-.45deg)}
.record-landscape:before,.poem-landscape:before{background:var(--poem-color);width:39px;height:6px;left:calc(50% - 19px);top:-3px;opacity:.5;border-radius:1px;transform:rotate(-2deg)}
.record-art{background:#faf6e9}.verse-list{gap:4px}.verse-list-item{font-size:12px;color:#80927d}.verse-list-item.current{background:var(--poem-soft);color:var(--poem-color);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--poem-color) 25%,transparent);font-weight:600}.verse-list-item.done{color:#458b68}.verse-list-item.done:not(.current){background:#f3f7ed}
.record-tool{padding:5px 0;max-width:420px}.record-counter{color:#7a8b76;position:relative}.record-counter>span{font-size:12px;font-weight:500;color:#6e866e;letter-spacing:.3px}
.practice-motif{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(5deg);width:42px;height:42px;pointer-events:none}
.record-tool>.verse{margin:22px 0 23px}.record-tool>.verse ruby{font-size:34px;min-width:43px;font-weight:600;color:#245848}.record-tool>.verse rt{color:#719476;font-size:14px;font-weight:400}.record-tool>.verse .punct{font-size:34px;color:#477b60}
.record-model{gap:12px;margin-bottom:26px}.record-model .button{background:#e6f2e6;color:#3e805e;box-shadow:0 2px 0 #d4e5d1;border:1px solid #d8e9d4}.record-model>[data-action=video]{background:#e8f2f5;color:#4f8094;box-shadow:0 2px 0 #d5e4e9;border-color:#dceaf0}
.mic-button{color:#b56049;font-weight:500;gap:15px}.mic-button svg{background:linear-gradient(145deg,#d78363,#c66a51);box-shadow:0 4px 0 #aa5543,0 0 0 7px #fff0db,0 0 0 8px #eddac0,0 8px 20px #b4714d19;border:1px solid #f0b395;transition:transform .2s,box-shadow .2s}
.mic-button:hover svg{background:linear-gradient(145deg,#d98968,#bd634c);transform:translateY(-2px) rotate(-3deg)}.mic-button:active svg{transform:translateY(2px) scale(.97);box-shadow:0 1px 0 #aa5543,0 0 0 7px #fff0db,0 0 0 8px #eddac0}
.mic-button.recording svg{background:#c26351;box-shadow:0 0 0 7px #fce7dd;animation:record-breathe 1.8s ease-in-out infinite}.record-wave.live span{background:#c8785c}
.record-result{color:#3e8260;font:600 36px/1.25 var(--serif);display:flex;align-items:center;justify-content:center;gap:4px}.record-result:before{content:'';display:block;width:35px;height:35px;margin-right:6px;background:var(--poem-mark) center/contain no-repeat;transform:rotate(-7deg)}
.record-status{color:#7d8e79}.record-review button{background:#fff2d9;border:1px solid #f0dfbd;border-radius:8px;box-shadow:0 2px 0 #f3e8cc}.record-review ruby{color:#80673d}.record-review svg{color:#a78a52}.record-review>span{color:#8b855f}
.view-read #view{padding:4px 5px}.reader-toolbar h2{color:#7a8f7b;font-size:14px}.reading-experience{padding:12px 24px 9px;border:1px solid #e3e7d9;border-radius:8px 24px 24px 8px;background:#fffdf7;box-shadow:0 4px 0 #f3f0e3,0 5px 0 #e2e2d1,0 12px 35px #36563e06}
.poem-landscape{border-color:#e0e4d4;border-radius:4px 12px 12px 4px;background:#fffef8;box-shadow:none;transform:rotate(-.4deg)}.reading-folio{color:var(--poem-color);border-color:#e6e8da;font-size:11px}.reading-folio>span:first-child:before{content:'';display:inline-block;vertical-align:middle;width:20px;height:20px;margin-right:6px;background:var(--poem-mark) center/contain no-repeat}
.poem-lines .verse ruby{color:#285c4c}.poem-lines .verse rt{color:#749778}.poem-lines .verse .punct{color:#477b60}.page-turner{border-color:#e6e8da}.scene-dots button:after{background:#dce7d2}.scene-dots button[aria-pressed=true]:after{background:var(--poem-color);box-shadow:0 0 0 4px var(--poem-soft)}
.media-buttons .button{background:#e9f4e7;color:#448461;border-color:#d8e8d2;box-shadow:0 2px 0 #d7e4cd}.media-buttons>[data-action=video]{background:#eaf3f7;color:#527e93;border-color:#dce9f0;box-shadow:0 2px 0 #d9e5ea}.audio-timeline{color:#8fa089}.audio-timeline input{accent-color:#6b9b78}
.report-summary{padding:12px 15px 17px;border:1px solid #e3e7d7;background:#fffef7;border-radius:15px;gap:23px;box-shadow:0 3px 0 #eeeddf}.score-ring{background:#f5f7e8;border:2px solid #79a17b;outline-color:#dee5c6;color:#48764e}.score-ring strong{font-size:32px}.score-ring span{color:#839072}.report-summary .eyebrow{color:#87987a}
.dimension-grid{gap:10px}.dimension{padding:7px 10px;background:#edf5e9;border-radius:8px}.dimension:nth-child(2){background:#edf3f4}.dimension:nth-child(3){background:#faf2dc}.dimension strong{color:#4b8460;font-size:23px}.dimension:nth-child(2) strong{color:#55828e}.dimension:nth-child(3) strong{color:#9a803b}.dimension span{color:#7a8b76}
.report-tabs{background:#eaf0e2;box-shadow:inset 0 1px 2px #657d4d08}.report-tabs [aria-selected=true]{background:#fffef8;color:#4a7e5e;box-shadow:0 2px 5px #5b7c4012}.report-panels{padding:2px 0}
.practice-pick{background:#fff5e0;border-color:#efdfbb;box-shadow:0 2px 0 #f2e7ce;border-radius:8px;color:#7e754c}.practice-pick ruby{color:#7b6d46}.practice-pick rt{color:#9b8b62}.practice-pick[aria-pressed=true]{background:#edf4de;border-color:#87aa79;box-shadow:0 2px 0 #bdcca0}.practice-pick.selected ruby,.practice-pick.selected rt{color:#537c4e}
.practice-card{padding:5px 13px 12px;border:1px solid #e3e8d8;border-radius:14px;background:#fffef8;box-shadow:0 3px 0 #f0efdf}.practice-card-heading h3{color:#4b7556}.practice-tip{color:#73806b;font-size:13px}.contrast-heading{color:#899378}.sound-word{background:#f0f6e9;border-color:#dee9d3;border-radius:10px;box-shadow:0 2px 0 #e3ebd9}.sound-word:nth-child(2){background:#edf4f5;border-color:#dce8e9;box-shadow:0 2px 0 #e0e9e9}.sound-word:nth-child(3){background:#fbf3e2;border-color:#ede4ca;box-shadow:0 2px 0 #efe8d2}.sound-word ruby{color:#527b56}.sound-word:nth-child(2) ruby{color:#58828a}.sound-word:nth-child(3) ruby{color:#93804b}.sound-word rt{color:inherit}.sound-context{color:#87917b}.practice-actions{margin-top:13px}
.ai-report-header h2{color:#547551}.report-prose{background:#fffef5;border:1px solid #e8e9d8;border-left:3px solid #d6b967;border-radius:3px 14px 14px 3px;box-shadow:0 3px 0 #f0eddf}.score-line-tabs [aria-pressed=true]{background:var(--poem-soft);border-color:var(--poem-color);color:var(--poem-color)}
.word-result.warn,.word-result.fair{background:#fff4da;border-color:#e5d496}.word-result.error,.word-result.poor{background:#fff0e4;border-color:#e8c7aa}
.writing-context .art-stage,.quiz-art .art-stage{border-color:#fffef7;outline-color:#e2e5d4;border-radius:4px 15px 15px 4px;box-shadow:0 7px 25px #31573c0a;transform:rotate(-.5deg)}
.writing-context h2,.panel-title{color:#53784f}.writing-context p,.quiz-art p{color:#7e8c72}
.writing-pinyin{color:#5a8c63}.writing-counter{color:#8b977f}.writing-board{border-color:#b8cfa9;background:linear-gradient(#fffdf480,#fffdf480),url('vendor/reading-art/white-paper.webp') center/cover;box-shadow:5px 5px 0 #e7eccf,6px 6px 0 #d7dec1;border-radius:7px;outline:7px solid #fffdf5}
.writing-board:before,.writing-board:after{border-color:#d4dfbe}.writing-tools .icon-button{background:#ecf4e3;color:#6c9465;border:1px solid #dfe9ce;border-radius:9px}.writing-toolbar [data-action=write-speak]{background:#e9f3e4;color:#568753;border:1px solid #d5e4c8}.writing-hint{color:#d5e5c8}.writing-controls{margin-top:17px}.writing-feedback{color:#899476}
.writing-board{contain:layout paint;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.writing-board canvas{display:block;cursor:crosshair;user-select:none;-webkit-user-select:none}
.quiz-top{color:#7e9376}.quiz-top>span:first-child{padding:4px 10px;background:var(--poem-soft);color:var(--poem-color);border-radius:100px;font-size:12px}.quiz-progress{height:6px;background:#edf0df;border-radius:100px;overflow:visible}.quiz-progress i{position:relative;background:linear-gradient(90deg,#94b676,#5c9870);border-radius:100px}.quiz-progress i:after{content:'';position:absolute;right:-4px;top:-2px;width:10px;height:10px;background:#fff9df;border:2px solid #7ba267;border-radius:50%}
.quiz-prompt{color:#385d4d}.quiz-option{border-color:#dfe6d1;background:#fffef6;box-shadow:0 3px 0 #e7ebd9;border-radius:13px;transition:transform .15s,background .15s,border-color .15s}.quiz-option>span{background:#f0f5e6;border-color:#dce6cd;color:#7d9770}.quiz-option:hover:not(:disabled){transform:translateX(3px);background:#f7fbed;border-color:#a8c29a}.quiz-option.correct{background:#edf6e6;border-color:#80b47d;box-shadow:0 3px 0 #c4ddb0;color:#427a49}.quiz-option.correct>span{background:#84af72;color:#fff;border-color:#84af72}.quiz-option.incorrect{background:#fff0e8;border-color:#dfad96;box-shadow:0 3px 0 #f0daca;color:#a3654e}.quiz-explanation{color:#7c8c70}
.completion>svg{background:#fcf2d3;border:1px solid #ecdba3;border-radius:40% 60% 54% 46%;padding:10px;width:75px;height:75px;color:#b89643;transform:rotate(-7deg)}.completion h2{color:#4d7b53}
.chat-tool{padding:15px 16px 12px;background:#fffdf7;border:1px solid #e1e6d6;border-radius:18px;box-shadow:0 4px 0 #eeeddf}.chat-bubble{background:#eff5e5;border:1px solid #e5ebd7;color:#426047}.chat-message.user .chat-bubble{background:#e5f0ee;border-color:#d8e7e2;color:#3e7063}.chat-message>img{padding:2px;border:1px solid #d9e2cc;background:#fffef8}.chat-suggestions button{background:#fbf8ec;border-color:#e8e2ca;color:#849068}.chat-form{border-color:#c9dcbf;box-shadow:0 2px 0 #e9eddb;background:#fffef9}.chat-form button{background:#57936b;color:#fff}
.poet-profile{border-right:0}.poet-profile img{border-color:#fffef8;outline-color:#dae3cc;box-shadow:0 4px 0 #edecde,0 10px 22px #395a3c08}.poet-profile h2{color:var(--poem-color)}.poet-profile p{color:#7e9076}
[data-audio-state=playing]{outline:2px solid #75a985;outline-offset:2px;box-shadow:0 0 0 5px #eef5e0}.sound-word[data-audio-state=playing]{background:#e7f4e1;border-color:#7aad7d}
:focus-visible{outline:3px solid #4a8490;outline-offset:4px}
@keyframes record-breathe{50%{box-shadow:0 0 0 10px #fae4da}}
@media(max-width:1100px){
 .record-layout{gap:28px;padding:16px 19px;grid-template-columns:minmax(0,1.2fr) minmax(285px,1fr)}.record-layout:before{display:none}.record-tool>.verse ruby{font-size:29px;min-width:35px}.record-tool>.verse .punct{font-size:29px;width:15px}.reading-experience{padding-inline:16px}.reading-scene{gap:25px;grid-template-columns:minmax(0,1.1fr) minmax(270px,1fr)}
 .poem-card-title h2{font-size:23px}.poem-card-title{padding-right:39px}.poem-emblem{width:39px;height:39px;right:5px}.poem-card-title h2 small{display:block;margin:0;font-size:10px}.poem-card-title{min-height:40px}
}
@media(max-width:900px) and (min-width:701px){
 .record-layout{gap:22px;padding-inline:15px;grid-template-columns:minmax(0,1fr) minmax(255px,1fr)}.record-tool>.verse ruby{font-size:26px;min-width:31px}.record-tool>.verse rt{font-size:11px}.record-tool>.verse .punct{font-size:26px;width:14px}.record-model{gap:8px}.record-model .button{font-size:12px;padding-inline:10px}.reading-experience{padding-inline:12px}.reading-scene{gap:16px;grid-template-columns:minmax(0,1fr) minmax(245px,1fr)}.reading-scene .verse ruby{font-size:25px;min-width:30px}.reading-scene .verse .punct{font-size:25px;width:14px}.poem-emblem{display:none}.poem-card-title{padding-right:0}
}
@media(max-width:700px){
 .site-header{background:#fffcf682}.brand strong{font-size:11px;letter-spacing:1.4px}.library{padding:16px 17px 5px}.library-heading{margin-bottom:16px;min-height:0;gap:0}.library-heading h1{font-size:23px;letter-spacing:.3px;line-height:1.5;white-space:nowrap}.library-heading .eyebrow{font-size:9px;letter-spacing:.5px;margin-bottom:5px}.library-sub{font-size:11px;letter-spacing:0;margin-top:5px}.title-ink:after{height:6px;bottom:3px}.poetry-seal{display:none}
 .library-flourish{display:block;width:53px;height:56px;margin:0 0 0 -7px;align-self:center}.library-flourish:before{inset:5px 0 6px 2px;background:#f6edcf}.library-flourish:after{width:3px;height:3px;right:1px;top:2px;box-shadow:-48px 41px 0 -1px #99b896}.paper-bird{display:block;width:65px;height:47px;max-width:none;top:5px;left:-7px;transform:rotate(-9deg)}
 .library-books{gap:15px 16px}.poem-entry{padding:5px 5px 0 8px;border-left-width:3px;border-radius:4px 12px 12px 4px;box-shadow:0 3px 0 #fffdf6,0 4px 0 #dce0ce,0 7px 16px #38514309}.poem-entry:before{left:2px}.poem-art{border-radius:2px 7px 2px 2px}.poem-grade{font-size:10px;right:6px;padding:4px 5px 10px}.poem-card-body{padding:5px 5px 0}.poem-card-title{min-height:29px;padding-right:27px}.poem-card-title h2{font-size:20px;letter-spacing:.3px}.poem-card-title h2 small{display:inline-block;font-size:8px;margin-left:2px}.poem-emblem{display:block;width:31px;height:31px;right:1px;top:3px;transform:rotate(7deg)}.poem-author{font-size:10px;margin:0 0 5px}.poem-open{min-height:31px;font-size:11px;gap:4px}.poem-open>svg{width:13px;height:13px}.poem-open>svg:last-child{width:22px;height:22px;padding:5px}.library-footer{font-size:9px;letter-spacing:.2px}
 .lesson-bar{margin-bottom:11px}.lesson-title{gap:8px}.lesson-portrait{width:32px;height:32px;padding:2px}.lesson-title h1{font-size:22px;letter-spacing:.4px}.lesson-title p{font-size:10px}.lesson-menu>summary{box-shadow:0 2px 0 #e7eadc}.back-library{font-size:10px}
 .record-layout{border:0;background:transparent;box-shadow:none;border-radius:0;padding:0;gap:10px;justify-content:center}.record-landscape{padding:8px 8px 0;box-shadow:0 3px 0 #f3efdf,0 4px 0 #e0e3d1,0 9px 22px #31523907;border-radius:4px 12px 12px 4px;transform:rotate(-.4deg);margin:0 2px}.record-landscape:before{height:5px;top:-2px;width:31px;left:calc(50% - 15px)}.record-art{max-height:clamp(100px,calc(100dvh - 520px),215px)}.verse-list{gap:2px}.verse-list-item{font-size:11px}.verse-list-item.current{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--poem-color) 20%,transparent)}
 .record-practice{padding:0 8px;background:transparent}.record-tool{padding:2px 0 0}.record-counter>span{font-size:11px}.practice-motif{width:36px;height:36px}.record-tool>.verse{margin:6px 0 14px;min-height:65px}.record-tool>.verse ruby{font-size:31px;min-width:38px}.record-tool>.verse rt{font-size:13px;color:#638b67}.record-tool>.verse .punct{font-size:31px;width:16px}.record-model{margin-bottom:19px;gap:11px}.record-model .button{font-size:12px;padding:9px 15px;gap:7px}.mic-button{gap:13px;font-size:14px;min-height:106px}.mic-button svg{width:64px;height:64px;padding:19px}.record-result{font-size:32px}.record-result:before{width:29px;height:29px;margin-right:4px}.record-status{font-size:11px}.record-review{margin:6px 0}.record-review button{border-radius:7px}.record-actions{gap:7px;min-height:75px}.record-actions .button{font-size:12px;padding:8px 10px}.record-result+.record-status{margin-top:4px}
 .view-read #view{padding:2px}.reader-toolbar{margin-bottom:7px}.reader-toolbar h2{font-size:13px}.reading-experience{padding:0;background:transparent;border:0;box-shadow:none;border-radius:0;justify-content:space-evenly}.reading-scene{gap:12px}.poem-landscape{margin:0 2px;padding:8px 8px 0;border-radius:4px 12px 12px 4px;box-shadow:none}.poem-landscape:before{height:5px;top:-2px}.reading-scene .art-stage{max-height:clamp(100px,calc(100dvh - 510px),225px)}.poem-text{padding:0 6px}.reading-folio{font-size:10px;min-height:25px;align-items:center}.reading-folio>span:first-child:before{width:18px;height:18px;margin-right:5px}.reading-folio>span:last-child{font-variant-numeric:tabular-nums}.poem-lines{padding:4px 0}.poem-lines .verse ruby{font-size:29px;min-width:35px}.poem-lines .verse rt{font-size:12px;color:#658d69}.poem-lines .punct{font-size:29px}.page-turner .icon-button{background:#f0f4e6;border:1px solid #e4ead6}.page-turner .text-button{font-size:12px}.reader-controls{gap:8px;margin-top:9px}.reader-controls .button{font-size:12px;padding:9px 10px}.reader-controls .media-buttons{gap:8px}.audio-timeline{color:#849b80}
 .report-summary{padding:9px 9px 11px;gap:13px;border-radius:13px;grid-template-columns:60px minmax(0,1fr)}.score-ring{width:55px;height:55px;outline-offset:3px}.score-ring strong{font-size:25px}.score-ring span{font-size:8px}.report-summary .eyebrow{font-size:9px;margin-bottom:5px}.dimension-grid{gap:5px}.dimension{padding:5px 5px;border-radius:7px}.dimension strong{font-size:20px}.dimension span{font-size:9px;line-height:1.4;margin-top:3px}.report-tabs{margin:12px 0 10px}.report-tabs button{font-size:12px}.practice-card{padding:3px 9px 10px;border-radius:12px}.practice-card-heading{gap:1px}.practice-card-heading h3{font-size:15px}.practice-tip{font-size:12px;line-height:1.8}.practice-pager span{min-width:25px}.practice-pager .icon-button{width:38px}.contrast-heading{font-size:11px;margin-top:3px}.sound-word{min-height:85px}.sound-word ruby{font-size:27px}.sound-word rt{font-size:12px}.practice-actions{gap:5px;margin-top:12px}.practice-actions .button{font-size:11px;padding:8px 7px}.practice-actions svg{width:14px;height:14px}.practice-selector{padding-top:3px;padding-bottom:8px}.practice-pick{min-height:68px}.report-panels{padding-bottom:5px}.word-analysis .word-result{font-size:12px}
 .writing-layout{padding-inline:8px}.writing-board{outline-width:6px;border-radius:7px}.writing-controls{margin-top:17px}.writing-tools .icon-button{border-radius:9px}.writing-pinyin{font-size:25px}.writing-toolbar{margin-bottom:13px}.writing-toolbar [data-action=write-speak]{width:44px;height:44px}.writing-feedback{font-size:12px}.writing-tool>.text-button{color:#879976}.quiz-prompt{font-size:22px;line-height:1.7}.quiz-options{gap:14px}.quiz-option{min-height:64px;font-size:19px}.quiz-progress{margin-bottom:20px;height:5px}.quiz-top>span:first-child{font-size:11px}.quiz-explanation{font-size:13px;min-height:77px}.quiz-next .button{min-height:47px}
 .chat-tool{padding:0;background:transparent;border:0;box-shadow:none;border-radius:0}.chat-bubble{font-size:14px;line-height:1.85}.chat-message>img{width:34px;height:34px}.chat-suggestions button{font-size:11px}.chat-form{padding:8px;border-radius:17px}.chat-form button{background:#508d67;box-shadow:0 2px 0 #38704e}.poem-dialog{background:#fffdf2}.poem-dialog .dialog-heading{background:#fffdf2}
}
@media(max-width:370px){
 .library{padding-inline:14px}.library-heading h1{font-size:21px;letter-spacing:0}.library-flourish{width:46px;min-width:46px;margin-left:-11px}.library-flourish:before{inset:8px 0 5px}.paper-bird{width:57px;left:-6px;top:7px;height:40px}.library-heading .eyebrow{font-size:9px;letter-spacing:0}.library-sub{font-size:10px}.library-books{gap:13px 12px}.poem-card-title h2{font-size:18px;letter-spacing:0}.poem-emblem{width:27px;height:27px;right:0;top:5px}.poem-card-title{padding-right:24px}.poem-card-title h2 small{display:none}.poem-author{font-size:9px}.poem-open{font-size:10px;min-height:30px}.poem-open>svg:last-child{width:21px;height:21px}.poem-grade{font-size:9px}.lesson-portrait{display:none}.lesson-title h1{font-size:22px}.record-practice{padding:0 5px}.record-tool>.verse ruby{font-size:28px;min-width:34px}.record-tool>.verse .punct{font-size:28px;width:14px}.record-tool>.verse rt{font-size:12px}.record-actions .button{font-size:11px;padding-inline:9px}.record-model .button{font-size:12px;padding-inline:13px}.record-model{gap:9px}.practice-motif{width:32px;height:32px}.poem-lines .verse ruby{font-size:27px;min-width:33px}.poem-lines .verse rt{font-size:11px}.poem-lines .punct{font-size:27px;width:14px}.reader-controls .button{font-size:11px;padding:9px 8px}.report-summary{gap:10px;padding-inline:7px;grid-template-columns:54px minmax(0,1fr)}.score-ring{width:50px;height:50px}.score-ring strong{font-size:23px}.dimension{padding:5px 3px}.dimension strong{font-size:18px}.dimension span{font-size:8px}.practice-card-heading h3{font-size:14px}.practice-pager .icon-button{width:35px}.practice-pager span{font-size:9px;min-width:25px}.practice-actions .button{font-size:10px;padding-inline:6px}.practice-actions{gap:4px}.writing-controls>.button{font-size:11px;padding-inline:8px}.writing-tools .icon-button{width:36px}
}
@media(max-width:340px){.library-heading h1{font-size:19px}.library-flourish{width:40px;min-width:40px;margin-left:-8px}.library-sub{font-size:9px}.poem-card-title h2{font-size:17px}.poem-emblem{width:25px;height:25px}.poem-card-title{padding-right:21px}.library-books{gap:12px 10px}.record-tool>.verse ruby{font-size:26px;min-width:32px}.record-tool>.verse .punct{font-size:26px;width:14px}.practice-card-heading h3{font-size:13px}.practice-pager .icon-button{width:33px}.practice-actions svg{display:none}.lesson-title h1{font-size:21px}}
@media(max-height:740px) and (max-width:700px){.record-art{max-height:150px}.record-tool>.verse{margin:3px 0 11px;min-height:61px}.record-model{margin-bottom:17px}.record-layout{gap:8px}.record-counter{min-height:42px}.record-result{font-size:29px}.record-result:before{width:26px;height:26px}.record-review{margin:4px 0}.record-actions{min-height:69px}}
@media(max-height:620px){.record-layout{height:auto;min-height:100%;padding-block:10px}.reading-experience{height:auto;min-height:100%;padding-block:10px}.library-books{grid-auto-rows:190px}.writing-tool{max-width:280px}.quiz-layout{padding-block:15px}}
/* Small learning text stays clear against the warm paper surfaces. */
.record-tool>.verse rt,.poem-lines .verse rt{color:#54744f}
.poem-author,.library-sub,.library-heading .eyebrow,.lesson-title p{color:#647361}
.practice-tip,.record-counter>span,.record-status,.quiz-top,.quiz-explanation,.writing-feedback{color:#64705b}

/* Assessment presents one task at a time; optional tools live in the menu. */
.record-progress{display:flex;gap:6px;padding:13px 8px 10px;justify-content:center}
.record-progress i{height:3px;flex:1;max-width:48px;border-radius:5px;background:#ebece0}
.record-progress .done{background:#8da98b}.record-progress .current{background:var(--poem-color)}
.record-tool{min-height:352px}
.record-tool[data-step=read]>.verse{margin-top:26px}
.record-layout[data-record-busy=true] .record-model{visibility:hidden;pointer-events:none}
.record-feedback{display:flex;flex-direction:column;align-items:center;padding-top:10px}
.feedback-motif{width:72px;height:72px;margin:0 auto 14px}
.record-feedback .record-result{font-size:52px;line-height:1.2}
.record-feedback .record-result:before{display:none}
.record-feedback-title{font:500 20px/1.6 var(--serif);color:#46684e;margin:10px 0 16px}
.record-feedback .record-actions{width:100%;min-height:64px;gap:14px}
.record-word-heading{display:flex;align-items:center;justify-content:space-between;min-height:38px;color:#64705b;font-size:12px}
.record-word-heading .text-button{font-size:12px}
.record-tool .record-review{display:flex;justify-content:center;overflow:visible;padding:0;margin:12px 0 10px}
.record-tool .record-review .focus-word,.practice-card .practice-pick.focus-word{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:116px;min-width:116px;min-height:128px;padding:12px;background:#fff3dc;border:1px solid #e8d7b1;border-radius:22px;box-shadow:0 4px 0 #eee2c8;color:#71572c}
.record-review .focus-word ruby,.practice-card .focus-word ruby{font:500 54px/1.2 var(--serif);color:inherit}
.record-review .focus-word rt,.practice-card .focus-word rt{font:400 17px/1.6 var(--sans);color:inherit}
.record-review .focus-word svg,.practice-card .focus-word svg{width:19px;height:19px;color:inherit}
.record-word-hint{font-size:13px;line-height:1.7;color:#64705b}
.record-word-pager{display:flex;justify-content:center;gap:65px;margin-top:3px}
.record-tool[data-step=words] .record-actions{min-height:66px;gap:14px}
.view-record .menu-panel{max-height:calc(100dvh - 115px);overflow-y:auto;overscroll-behavior:contain}
.menu-group{padding-bottom:7px;margin-bottom:7px;border-bottom:1px solid #dce3d0}
.menu-group button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;min-height:44px;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:var(--ink);font-size:13px}
.menu-group button:hover:not(:disabled){background:#edf3e6}.menu-group svg{width:18px;height:18px}
.record-lines-dialog{width:min(460px,calc(100vw - 28px));max-height:85dvh;padding:20px;overflow:auto}
#record-lines{display:flex;flex-direction:column;gap:6px;margin-top:14px}
#record-lines .verse-list-item{display:flex;align-items:center;gap:14px;min-height:54px;border:1px solid #e0e5d5;border-radius:12px;padding:9px 12px;text-align:left;background:#fffdf7;color:#315e4b;font:400 20px/1.5 var(--serif)}
#record-lines .verse-list-item.current{background:#edf4e6;border-color:#92b19b}
#record-lines .line-number{font:500 12px var(--sans);color:#64705b;min-width:15px}
#record-lines svg{width:16px;height:16px;margin-left:auto;flex-shrink:0}
.view-report .report-tabs{margin-top:2px}
.view-report .report-panels{display:flex;flex-direction:column}
#panel-practice{flex:1;display:flex;flex-direction:column;justify-content:center}
#practice-section{width:100%;max-width:530px;margin:0 auto}
#focused-practice .practice-card{padding:20px 26px 24px;border:1px solid #e0e5d5;border-radius:24px;background:#fffdf7;box-shadow:0 4px 0 #edeee2}
.practice-card .practice-card-heading{margin:0 0 15px;min-height:44px}
.practice-card .practice-card-heading h3{font:500 17px var(--serif)}
.practice-card .practice-selector{display:flex;justify-content:center;padding:0 0 5px;margin:0;overflow:visible}
.practice-card .practice-pick.focus-word{background:#edf5e6;border-color:#c5daba;color:#315f45;box-shadow:0 4px 0 #e3ecd9}
.practice-card .practice-tip{font-size:14px;line-height:1.85;margin:22px 0;text-align:center;color:#52694e}
.practice-card .practice-actions{margin-top:20px;gap:12px}
.practice-card .practice-actions .button{flex:0 1 auto;min-height:46px;font-size:13px;padding:10px 16px}
.practice-card .practice-back{font-size:12px;margin:0 0 10px}
.practice-card .comparison-title{text-align:center;font:500 22px/1.7 var(--serif);margin:10px 0 23px;color:#315f45}
.practice-card .contrast-pair{margin:0 0 24px;gap:12px}
.practice-card .sound-word{min-height:133px;gap:9px}
.practice-card .sound-word ruby{font-size:39px}.practice-card .sound-word rt{font-size:15px}
.practice-card .sound-context{font-size:12px}
.report-next-activities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex-shrink:0;margin-top:12px;padding-top:12px;border-top:1px solid #e0e5d5}
.report-next-activities a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px;border:1px solid #dce5cf;border-radius:13px;background:#f1f6e8;color:#426547;font-size:13px}
.report-next-activities a:nth-child(2){background:#fcf4e4;border-color:#e9ddbc;color:#80612e}
.report-next-activities a:nth-child(3){background:#edf4f5;border-color:#d7e5e7;color:#456c75}
.report-next-activities svg{width:20px;height:20px;flex-shrink:0}.report-next-activities a:hover{filter:brightness(.97)}
.word-analysis .word-grid{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:2px 1px 6px;scroll-snap-type:x proximity}
.word-analysis .word-result{display:grid;grid-template-columns:1fr 16px;align-items:center;gap:3px;width:62px;min-width:62px;min-height:83px;flex-shrink:0;padding:6px 7px;scroll-snap-align:start}
.word-analysis .word-result ruby{grid-column:1/-1;line-height:1.3}
.word-analysis .word-result strong{margin:0;text-align:left}.word-analysis .word-result>svg{margin:0}
.word-analysis .report-line>.button{margin-top:12px}
@media(max-width:700px){
 .record-tool{min-height:334px}.record-tool[data-step=read]>.verse{margin-top:10px}
 .record-feedback .record-result{font-size:46px}.feedback-motif{width:62px;height:62px;margin-bottom:12px}
 .record-feedback-title{font-size:20px;margin:9px 0 15px}
 .record-progress{padding:11px 6px 10px}.record-tool .record-counter{min-height:36px}
 .record-tool .record-review .focus-word{width:94px;min-width:94px;min-height:104px;padding:8px;border-radius:18px}
 .record-review .focus-word ruby{font-size:44px}.record-review .focus-word rt{font-size:15px}
 .record-tool .record-review{margin:5px 0 10px}.record-word-hint{font-size:12px}
 .record-word-pager{margin:0;gap:55px}.record-tool[data-step=words] .record-actions{min-height:59px}
 #focused-practice .practice-card{padding:18px 18px 22px}.practice-card .practice-card-heading{margin-bottom:16px}
 .practice-card .practice-pager .icon-button{width:44px;height:44px}.practice-card .practice-pager span{font-size:11px}
 .practice-card .practice-tip{font-size:14px;margin:21px 0}.practice-card .practice-actions .button{font-size:12px;padding:10px 12px}
 .practice-card .contrast-pair{gap:8px}.practice-card .sound-word{min-height:116px}.practice-card .sound-word ruby{font-size:33px}
 #record-lines .verse-list-item{font-size:18px;gap:9px}.record-lines-dialog{padding:16px}
 .report-next-activities{gap:7px;margin-top:10px;padding-top:10px}.report-next-activities a{gap:5px;font-size:11px;padding:6px;min-height:47px}.report-next-activities svg{width:17px;height:17px}
}
@media(max-height:660px) and (max-width:700px){
 .record-tool{min-height:306px}.record-art{max-height:110px}.record-feedback{padding-top:0}
 .feedback-motif{width:48px;height:48px}.record-tool[data-step=read]>.verse{margin-top:4px}
 .record-word-heading{min-height:32px}.record-tool .record-counter{min-height:30px}
 #focused-practice .practice-card{padding-block:10px}.practice-card .practice-tip{margin:12px 0}
 .practice-card .practice-card-heading{margin-bottom:10px}.practice-card .practice-actions{margin-top:12px}
 .practice-card .practice-pick.focus-word{min-height:109px;width:104px;min-width:104px}
}
.practice-pick rt{color:#7d6c44}.practice-pick.selected ruby,.practice-pick.selected rt{color:#426a42}
.sound-word ruby{color:#426640}.sound-word:nth-child(2) ruby{color:#406771}.sound-word:nth-child(3) ruby{color:#7b642e}.sound-context{color:#66745c}
.dimension span,.report-summary .eyebrow,.score-ring span,.chat-suggestions button,.writing-counter{color:#637052}
.writing-context p,.quiz-art p,.poet-profile p{color:#64745b}
/* The reading advice follows the student's grade; one quiet control is enough. */
.report-grade-label{display:flex;align-items:center;gap:8px;margin-top:5px;font-size:12px;color:#637052}
.report-grade-label select{min-height:44px;padding:7px 28px 7px 11px;border:1px solid #d4dfc8;border-radius:9px;background:#fbfcf3;color:#3e654e;font:inherit;font-size:14px}
.ai-report-header{flex-wrap:nowrap;align-items:center;gap:10px;margin-bottom:14px}
.ai-report-header>.button{flex-shrink:0}
.ai-advice[data-student-grade="1"] .report-prose,.ai-advice[data-student-grade="2"] .report-prose{font-size:18px;line-height:2}
.ai-advice[data-student-grade="3"] .report-prose,.ai-advice[data-student-grade="4"] .report-prose{font-size:16px;line-height:1.95}
.ai-advice[data-student-grade="5"] .report-prose,.ai-advice[data-student-grade="6"] .report-prose{font-size:15px;line-height:1.95}
.report-prose{overflow-wrap:anywhere}
/* A larger square keeps touch coordinates natural without stretching characters. */
.view-write .writing-layout{gap:32px;padding:0 4px;align-items:center}
.view-write .writing-tool{width:100%;min-width:0;max-width:min(520px,calc(100dvh - 250px))}
.view-write .writing-toolbar{min-height:44px;margin:0 0 8px}
.view-write .writing-toolbar>div{display:flex;align-items:center;gap:18px;min-width:0}
.view-write .writing-counter{margin:0;font-size:12px;white-space:nowrap}
.view-write .writing-board{outline:0;border:1px solid #c5d4b6;border-radius:13px;box-shadow:0 3px 0 #e2e9d4;background:#fffef9}
.view-write .writing-board:before,.view-write .writing-board:after{border-color:#dce4d1}
.view-write .writing-hint{font-size:clamp(145px,31dvh,260px)}
.view-write .writing-controls{margin-top:8px;gap:8px;flex-wrap:nowrap}
.view-write .writing-tools{gap:4px}
.view-write .writing-tools .icon-button{width:44px;height:44px}
.view-write .writing-controls>.button{width:auto;min-height:44px;font-size:13px;padding:9px 16px;white-space:nowrap}
.writing-status{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:2px}
.view-write .writing-feedback{flex:1;min-width:0;min-height:0;margin:0;font-size:12px;line-height:1.65}
.writing-status>.text-button{flex-shrink:0;min-height:44px;font-size:12px;white-space:nowrap}
.writing-status>.text-button svg{width:15px;height:15px}
@media(max-width:960px){
 .view-write .writing-layout{display:flex;justify-content:center;height:100%;min-height:0;padding:0}
 .view-write .writing-tool{max-width:min(540px,calc(100dvh - 220px));margin:0 auto}
}
@media(max-width:700px){
 .workspace.view-write{padding-inline:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 .view-write .lesson-bar{margin-inline:8px}
 .view-write .view-section{padding:0 1px}
 .view-write .writing-layout{align-items:center}
 .view-write .writing-tool{max-width:100%;min-width:0}
 .view-write .writing-toolbar{margin-bottom:6px;padding-inline:5px}
 .view-write .writing-pinyin{font-size:28px}
 .view-write .writing-counter{font-size:12px}
 .view-write .writing-controls{gap:4px;margin-top:6px}
 .view-write .writing-tools{gap:3px}
 .view-write .writing-tools .icon-button{width:42px}
 .view-write .writing-controls>.button{padding-inline:12px}
 .view-write .writing-status{gap:6px;padding-inline:3px}
 .ai-report-header h2{font-size:18px}
 .ai-report-header>.button{font-size:12px;padding-inline:10px}
}
@media(max-height:600px) and (orientation:landscape) and (max-width:1100px){
 .workspace.view-write{padding:0 12px 8px}
 .view-write .lesson-bar{min-height:56px;margin-bottom:4px;padding:4px 0}
 .view-write .lesson-title h1{font-size:21px}
 .view-write .lesson-portrait{width:38px;height:38px}
 .view-write .writing-context{display:none}
 .view-write .view-section{padding:0}
 .view-write .writing-layout{display:flex;height:100%;min-height:0;padding:0;align-items:center}
 .view-write .writing-tool{display:grid;grid-template-columns:minmax(0,calc(100dvh - 88px)) minmax(176px,220px);grid-template-rows:auto 1fr auto;gap:8px 20px;max-width:none;width:max-content;margin:0 auto}
 .view-write .writing-board{grid-column:1;grid-row:1/4;align-self:center}
 .view-write .writing-toolbar{grid-column:2;margin:0;gap:5px}
 .view-write .writing-toolbar>div{gap:9px}
 .view-write .writing-controls{grid-column:2;align-self:center;flex-direction:column;align-items:stretch;gap:10px;margin:0}
 .view-write .writing-tools{justify-content:space-between;gap:2px}
 .view-write .writing-controls>.button{width:100%}
 .view-write .writing-status{grid-column:2;gap:4px;min-height:44px;margin:0;flex-wrap:wrap}
 .view-write .writing-feedback{flex-basis:100%;font-size:11px}
 .view-write .writing-status>.text-button{min-height:32px;font-size:11px}
}
.verse.verse-compound{display:flex;flex-direction:column;align-items:center;gap:9px}
.verse-compound .verse-clause{display:flex;align-items:flex-end;justify-content:center;white-space:nowrap}
.record-tool>.verse.verse-compound{margin-top:10px;margin-bottom:12px}
@media(max-height:650px){.verse.verse-compound{gap:5px}.record-tool>.verse.verse-compound{margin-top:0;margin-bottom:8px}.record-tool>.verse.verse-compound ruby{font-size:25px;min-width:30px;line-height:1.5}.record-tool>.verse.verse-compound rt{font-size:11px}.record-tool:has(.verse-compound) .record-model{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* 多元小遊戲：每一關只保留一個清楚任務，方便小學生專心完成。 */
.quiz-shell{display:flex;flex-direction:column;gap:18px;min-height:100%;padding-bottom:18px}
.quiz-mode-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #e5e5d5;border-radius:18px;background:linear-gradient(135deg,#fffdf4,#f6f8ec);box-shadow:0 8px 24px #57664b10}
.quiz-mode-tab{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;column-gap:7px;row-gap:1px;min-width:0;padding:9px 10px;border:1px solid transparent;border-radius:12px;background:transparent;color:#61705d;text-align:left;cursor:pointer;transition:background .18s,transform .18s,border-color .18s}
.quiz-mode-tab svg{grid-row:1 / span 2;width:18px;height:18px;color:#83a26f}.quiz-mode-tab span{font-size:13px;font-weight:700;white-space:nowrap}.quiz-mode-tab small{overflow:hidden;color:#9a9d89;font-size:10px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.quiz-mode-tab:hover{background:#fffef7;transform:translateY(-1px)}.quiz-mode-tab.selected{border-color:#b7cda7;background:#edf6e6;color:#426848;box-shadow:0 3px 0 #d7e7c9}.quiz-mode-tab.selected svg{color:#5e9263}
.quiz-listen-button{display:inline-flex;align-items:center;gap:7px;min-height:39px;margin:-7px 0 17px;padding:8px 14px;border:1px solid #c8d9b9;border-radius:999px;background:#f2f8e9;color:#4d7b50;font-size:14px;cursor:pointer}.quiz-listen-button svg{width:16px;height:16px}.quiz-listen-button:hover{background:#e7f2dd}
.quiz-game-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);align-items:start;gap:50px}.quiz-game-art .art-stage{margin-bottom:20px}.game-badge{display:inline-flex;align-items:center;gap:6px;margin-bottom:9px;padding:5px 10px;border-radius:999px;background:#fff3cc;color:#9b7a32;font-size:12px}.game-badge svg{width:15px;height:15px}.quiz-game-card{padding:22px 24px;border:1px solid #e2e5d4;border-radius:18px;background:#fffef8;box-shadow:0 11px 28px #56614c10}.quiz-game-card .quiz-prompt{margin-bottom:18px}.quiz-game-card .quiz-explanation{min-height:58px}.quiz-game-card .quiz-next{margin-top:3px}
@media(max-width:820px){.quiz-mode-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px}.quiz-mode-tab{padding:8px 7px}.quiz-mode-tab small{display:none}.quiz-mode-tab span{font-size:12px}.quiz-game-layout{grid-template-columns:1fr;gap:14px}.quiz-game-art{display:none}.quiz-game-card{padding:19px 16px}}
@media(max-width:460px){.quiz-mode-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-mode-tab{grid-template-columns:auto 1fr}.quiz-game-card .quiz-option{min-height:56px}}

/* exploration.css */
/* The scene and one observation share a single activity screen. */
.view-explore #view{overflow:auto}
.explore{--explore-ink:#31584e;--explore-accent:var(--poem-color,#397f69);height:100%;min-height:0;display:flex;flex-direction:column;gap:16px;color:var(--explore-ink)}
.explore [hidden]{display:none!important}
.explore button,.explore a{-webkit-tap-highlight-color:transparent}
.explore button{font:inherit;cursor:pointer}
.explore button:disabled{cursor:default}
.explore button:focus-visible,.explore a:focus-visible,.explore canvas:focus-visible{outline:3px solid #a7782f;outline-offset:3px}
.explore svg{width:19px;height:19px;flex-shrink:0}
.explore-heading{display:flex;justify-content:space-between;align-items:center;flex:none;padding:0 5px}
.explore-eyebrow{font-size:11px;letter-spacing:1.4px;color:#7a8974;margin:0 0 4px}
.explore-heading h2{font:600 clamp(25px,2.4vw,34px)/1.25 var(--serif,serif);letter-spacing:1.5px;margin:0}
.explore-motif{width:54px;height:54px;transform:rotate(5deg)}
.explore-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.9fr);align-items:stretch;gap:34px;flex:1;min-height:0;padding:0 3px 3px}
.explore-visual{display:flex;flex-direction:column;min-height:0;min-width:0}
.explore-stage{position:relative;isolation:isolate;flex:1;min-height:200px;overflow:hidden;border-radius:20px 20px 8px 8px;background:#efeede;border:1px solid #dfdfca;box-shadow:0 3px 0 #f7f3e6,0 4px 0 #dedfce}
.explore-scene{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:filter .35s,opacity .35s;z-index:-1}
.explore-stage:after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 28px #7d775514}
.explore-scene-name{position:absolute;bottom:12px;left:14px;max-width:calc(100% - 28px);padding:6px 11px;border-radius:7px;background:#fffdf2e8;color:#456453;font:500 12px/1.5 var(--sans,sans-serif);letter-spacing:.5px;box-shadow:0 2px 9px #314a3910;pointer-events:none;z-index:2}
.explore-canvas{position:absolute;inset:0;z-index:1}
.explore-canvas canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.explore-canvas canvas:active{cursor:grabbing}
.is-model .explore-scene{opacity:0}
.is-model .explore-stage{background:radial-gradient(ellipse at 50% 38%,#fffef9 0%,#f0f2e8 57%,#e4ebe0 100%)}
.is-model .explore-stage:after{box-shadow:inset 0 0 48px #7d917110}
.explore-view-label{position:absolute;right:14px;top:14px;z-index:2;padding:6px 10px;border:1px solid #d7e1d2;border-radius:20px;background:#fffef9dc;font-size:11px;letter-spacing:.5px;color:#537061;pointer-events:none}
.explore-expand{position:absolute;top:12px;left:12px;z-index:3;display:flex;align-items:center;gap:6px;min-height:35px;padding:6px 10px;border:1px solid #d7e1d2;border-radius:20px;background:#fffef8ed;color:#537061;font-size:11px!important;box-shadow:0 2px 7px #45634309}
.explore-expand svg{width:15px;height:15px}
.explore.is-expanded .explore-heading,.explore.is-expanded .explore-card{display:none}
.explore.is-expanded .explore-layout{display:flex;min-height:0;flex:1}
.explore.is-expanded .explore-visual{width:100%;height:100%;min-height:0}
.explore.is-expanded .explore-stage{min-height:0;flex:1}
.explore.is-expanded .explore-model-tools{position:static;padding:0;background:none;margin-top:8px}
.explore.is-expanded .explore-expand{background:#fffdf4;color:#365e47;border-color:#a8b99e}
.explore.is-expanded .explore-expand svg{transform:rotate(180deg)}
.explore-image-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:15px;background:linear-gradient(145deg,#f7f4e8,#e4ecd9)}
.explore-image-fallback p{font-size:12px;margin:0}
.explore-image-fallback button{border:1px solid #bbccb4;border-radius:20px;min-height:40px;padding:4px 14px;background:#fffdf5;color:#42654b}
.explore-view-controls{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:13px;flex:none}
.explore-mode{display:inline-flex;border:1px solid #d9e1cf;background:#f1f3e8;border-radius:99px;padding:4px;flex:none}
.explore-mode button{min-height:39px;display:flex;align-items:center;gap:6px;padding:6px 13px;border:0;border-radius:99px;background:transparent;color:#6b7d67;font-size:12px;white-space:nowrap}
.explore-mode button[aria-pressed=true]{background:#fffef6;color:#356149;box-shadow:0 1px 4px #254a3720}
.explore-mode button[aria-busy=true]{color:#6a715f}
.explore-gesture{font-size:10px;line-height:1.5;color:#778875;max-width:150px;margin:0;text-align:right}
.explore-model-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;margin-top:8px;min-height:39px}
.explore-presets{display:flex;gap:6px}
.explore-presets button{border:1px solid #dce3d1;border-radius:9px;min-height:38px;background:#fffdf4;color:#496752;padding:6px 13px;font-size:12px}
.explore-presets button[aria-pressed=true]{background:#e5efdf;border-color:#8eac82;color:#355d47;box-shadow:inset 0 0 0 1px #8eac8230}
.explore-zoom{display:flex;gap:6px;margin-left:auto}
.explore-zoom button{width:39px;min-height:39px;display:grid;place-items:center;border:1px solid #dce3d1;border-radius:50%;background:#fffdf4;color:#496752}
.explore-notice{font-size:11px;line-height:1.5;color:#805f36;margin:7px 2px 0;flex:none}
.explore-loading{position:absolute;inset:auto 12px 48px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:9px;background:#fffef4ed;color:#61765d;border:1px solid #dbe2cd;border-radius:11px;font-size:12px;z-index:3;box-shadow:0 4px 14px #51654a10}
.explore-spinner{width:15px;height:15px;flex:none;border-radius:50%;border:2px solid #d9e3cf;border-top-color:#668e6c;animation:explore-spin .85s linear infinite}
@keyframes explore-spin{to{transform:rotate(360deg)}}
.explore-card{display:flex;flex-direction:column;align-self:center;min-width:0;max-height:100%;padding:21px 22px 19px;border:1px solid #e0e2d0;border-radius:7px 22px 22px 7px;background:#fffdf4;box-shadow:4px 5px 0 #edeedc;overflow:auto;scrollbar-width:thin}
.explore-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:17px}
.explore-step{display:inline-flex;align-items:center;gap:5px;font-size:11px;letter-spacing:.5px;color:#728369}
.explore-step svg{width:15px;height:15px}
.explore-dots{display:flex;gap:5px}.explore-dots i{width:6px;height:6px;background:#e6e8d7;border-radius:50%}.explore-dots .is-filled{background:#839d71}
.explore-card h3{font:600 clamp(17px,1.6vw,22px)/1.5 var(--sans,sans-serif);color:#3c6151;margin:0 0 14px;outline:none}
.explore-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}
.explore-title-row h3{margin:0}
.explore-clue{display:flex;align-items:center;gap:4px;min-height:34px;flex:none;border:0;border-radius:20px;padding:5px 9px;color:#9b674c;background:#f7eee2;font-size:11px!important;white-space:nowrap}
.explore-clue svg{width:14px;height:14px}
.explore-verse{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:64px;padding:8px 0;margin-bottom:13px;border-block:1px solid #e8e8d8}
.explore-verse>p{font:500 clamp(18px,1.6vw,23px)/1.5 var(--serif,serif);letter-spacing:1.2px;margin:0;color:#65805d}
.explore-word{display:flex;align-items:center;gap:6px;flex:none;min-width:56px;min-height:49px;padding:4px 8px;border-radius:9px;background:#edf3e6;border:1px solid #dce6d1;color:#4e7958}
.explore-word>span{display:flex;flex-direction:column;align-items:center;font:500 22px/1.2 var(--serif,serif)}
.explore-word small{font:400 10px/1.3 var(--sans,sans-serif)}
.explore-word svg{width:15px;height:15px}
.explore-word.playing{background:#dcecd2}
.explore-question{border:0;padding:0;margin:0;min-width:0}
.explore-question legend{font-size:14px;font-weight:500;line-height:1.6;margin-bottom:10px;padding:0}
.explore-answers{display:flex;flex-direction:column;gap:9px}
.explore-answers button{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 11px;width:100%;border:1px solid #dde3d0;background:#fcfdf5;border-radius:10px;text-align:left;font-size:13px;color:#526d54;line-height:1.5;transition:background .15s,border-color .15s}
.explore-answer-dot{display:grid;place-items:center;width:18px;height:18px;flex:none;border:1px solid #becdb2;border-radius:50%;background:#fffdf5}
.explore-answer-dot svg{width:13px;height:13px}
.explore-answers button.is-correct{background:#edf5e3;border-color:#86ad74;color:#3e733f}
.explore-answers button.is-correct .explore-answer-dot{background:#6c965e;color:#fff;border-color:#6c965e}
.explore-answers button.is-wrong{background:#fff2e7;border-color:#dcae8b;color:#976b48}
.explore-answers button:disabled:not(.is-correct){opacity:.65}
.explore-guide{display:flex;align-items:center;gap:9px;min-height:84px;margin:9px 0 12px;padding:8px 10px 7px 3px;border-radius:12px;background:linear-gradient(110deg,#f7eee700,#f7eee780)}
.explore-guide>img{width:50px;height:66px;object-fit:contain;flex:none;filter:drop-shadow(0 3px 3px #ae877619)}
.explore-guide>div{min-width:0}
.explore-guide-name{font-size:10px;letter-spacing:.7px;color:#a87861}
.explore-feedback{min-height:34px;margin:3px 0 0;font-size:12px;line-height:1.7;color:#74816b}
.explore-feedback.is-correct{color:#547b4d}
.explore-next{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:9px 13px;width:100%;border:1px solid #477858;border-radius:10px;background:#477858;color:#fffdf4;font:500 13px/1.5 var(--sans,sans-serif);text-decoration:none;box-shadow:0 3px 0 #365c43;margin-top:auto}
.explore-next:disabled{color:#96a18a;background:#edf0e3;border-color:#e1e5d5;box-shadow:none}
.explore-finish{text-align:center;margin:7px 0 21px}
.explore-finish>img{display:block;margin:0 auto 17px;transform:rotate(-6deg)}
.explore-finish>.explore-finish-shishi{width:90px;height:100px;object-fit:contain;transform:none}
.explore-finish h3{margin-bottom:12px}
.explore-finish p{font-size:14px;line-height:1.9;color:#738369;margin:0}
.explore-finish-actions{display:flex;flex-direction:column;gap:9px}
.explore-again{border:0;color:#75856a;background:transparent;min-height:40px;font-size:12px}
@media(hover:hover){.explore-answers button:not(:disabled):hover,.explore-presets button:hover,.explore-zoom button:hover{background:#f0f6e7;border-color:#9caf88}.explore-mode button:hover{color:#315c45}}
@media(max-width:1000px){.explore-layout{gap:20px;grid-template-columns:minmax(0,1.15fr) minmax(270px,.9fr)}.explore-card{padding:17px}.explore-gesture{display:none}.explore-view-controls{justify-content:center}.explore-card h3{font-size:19px}.explore-verse>p{font-size:19px;letter-spacing:.6px}.explore-verse{gap:4px}.explore-word{padding-inline:6px}}
@media(max-width:700px){
  .explore{gap:10px}.explore-heading{padding-inline:2px}.explore-heading h2{font-size:25px}.explore-eyebrow{font-size:9px;margin-bottom:3px;letter-spacing:1px}.explore-motif{width:42px;height:42px}
  .explore-layout{display:flex;flex-direction:column;gap:11px;padding:0 1px 3px}.explore-visual{flex:1;min-height:165px}.explore-stage{min-height:110px;border-radius:15px 15px 6px 6px}.explore-scene-name{font-size:10px;left:10px;bottom:8px;padding:4px 8px}
  .explore-view-controls{margin-top:8px;justify-content:space-between}.explore-mode{padding:3px}.explore-mode button{min-height:35px;padding:5px 12px;font-size:11px}.explore-mode svg{width:16px;height:16px}.explore-gesture{display:block;font-size:9px;max-width:114px}.explore-model-tools{margin-top:5px;min-height:35px}.explore-presets button{min-height:35px;padding:4px 11px;font-size:11px}.explore-zoom button{width:35px;min-height:35px}.explore-notice{font-size:10px;margin-top:4px}
  .explore-card{align-self:stretch;flex:none;max-height:none;padding:13px 15px 12px;border-radius:5px 16px 16px 5px;box-shadow:2px 3px 0 #edeedc;overflow:visible}.explore-card-top{margin-bottom:6px}.explore-step{font-size:10px}.explore-card h3{font-size:17px;line-height:1.4;margin-bottom:7px}
  .explore-title-row{margin-bottom:6px;align-items:center}.explore-title-row h3{margin:0}.explore-clue{font-size:10px!important;padding:5px 7px;min-height:32px}.explore-clue svg{width:12px;height:12px}.explore-guide{min-height:59px;margin:6px 0;gap:7px;padding:2px 5px 2px 0}.explore-guide>img{width:37px;height:53px}.explore-guide-name{font-size:9px}.explore-guide .explore-feedback{margin:2px 0 0;min-height:30px;font-size:11px;line-height:1.45}.explore-view-label{top:9px;right:9px;font-size:10px;padding:4px 9px}.explore-finish>.explore-finish-shishi{height:70px;width:62px;margin-bottom:7px}
  .explore-verse{min-height:50px;margin-bottom:7px;padding:4px 0}.explore-verse>p{font-size:20px;letter-spacing:1px}.explore-word{min-height:43px;padding:2px 8px}.explore-word>span{font-size:19px}.explore-word small{font-size:9px}.explore-question legend{font-size:12px;line-height:1.4;margin-bottom:7px}.explore-answers{gap:6px}.explore-answers button{font-size:12px;min-height:40px;padding:7px 9px}.explore-answer-dot{width:16px;height:16px}.explore-feedback{font-size:11px;line-height:1.5;min-height:34px;margin:7px 0}.explore-next{min-height:40px;padding:7px 10px;font-size:12px}.explore-next svg{width:16px;height:16px}
  .explore-finish{margin:3px 0 12px}.explore-finish>img{width:49px;height:49px;margin-bottom:8px}.explore-finish p{font-size:12px;line-height:1.7}.explore-finish-actions{gap:4px}.explore-again{min-height:33px;font-size:11px}
}
@media(max-width:370px){.explore-gesture{display:none}.explore-view-controls{justify-content:center}.explore-card{padding-inline:11px}.explore-verse>p{font-size:18px;letter-spacing:.5px}.explore-word{min-width:51px;padding-inline:5px}.explore-card h3{font-size:16px}.explore-question legend{font-size:11px}.explore-answers button{font-size:11px}.explore-feedback{font-size:10px;min-height:31px}}
@media(max-width:700px) and (max-height:700px){
  .explore-guide{min-height:49px;margin-block:4px}.explore-guide>img{height:45px;width:33px}.explore-guide .explore-feedback{font-size:10px;min-height:27px}.explore-guide-name{font-size:8px}.explore-title-row{margin-bottom:4px}.explore-clue{min-height:28px}
  .explore{gap:6px}.explore-heading h2{font-size:21px}.explore-eyebrow{display:none}.explore-motif{width:29px;height:29px}.explore-layout{gap:7px}.explore-visual{min-height:135px}.explore-stage{min-height:88px}.explore-view-controls{margin-top:5px}.explore-mode button{min-height:32px;font-size:10px;padding:4px 10px}.explore-mode{padding:2px}.explore-model-tools{margin-top:4px}.explore-card{padding-block:9px}.explore-card h3{font-size:15px;margin-bottom:5px}.explore-card-top{margin-bottom:4px}.explore-verse{min-height:43px;margin-bottom:5px;padding-block:2px}.explore-word{min-height:38px}.explore-word>span{font-size:18px}.explore-verse>p{font-size:18px}.explore-question legend{margin-bottom:5px}.explore-answers{gap:5px}.explore-answers button{min-height:36px;padding-block:6px}.explore-feedback{min-height:29px;line-height:1.45;margin:5px 0}.explore-next{min-height:37px;padding-block:6px}
}
@media(max-width:700px) and (max-height:580px){.explore-heading{display:none}.explore-layout{gap:6px}.explore-card{padding-block:8px}.explore-feedback{font-size:10px}.explore-card h3{font-size:14px}.explore-visual{min-height:125px}.explore-scene-name{font-size:9px;padding:3px 7px}.explore-model-tools{position:absolute;z-index:3;right:8px;top:8px;margin:0;padding:3px;border-radius:9px;background:#fffdf4e6}.explore-visual{position:relative}.explore-model-tools button{min-height:30px}.explore-zoom button{width:30px}.explore-presets button{padding:3px 7px;font-size:10px}.explore-zoom{gap:3px}.explore-presets{gap:3px}}
@media(max-width:700px) and (max-height:700px){.explore:not(.is-expanded) .explore-expand{top:8px;left:8px;width:32px;min-height:32px;justify-content:center;padding:5px}.explore:not(.is-expanded) .explore-expand span{display:none}}
@media(max-height:600px) and (min-width:701px){.explore-heading{display:none}.explore-layout{gap:22px}.explore-card{padding:13px}.explore-card-top{margin-bottom:6px}.explore-card h3{font-size:17px;margin-bottom:7px}.explore-verse{min-height:48px;margin-bottom:7px;padding-block:4px}.explore-feedback{min-height:35px;font-size:11px;margin:7px 0}.explore-question legend{font-size:12px}.explore-answers button{min-height:39px;font-size:12px;padding-block:6px}.explore-next{min-height:39px}.explore-stage{min-height:160px}}
@media(prefers-reduced-motion:reduce){.explore *{animation:none!important;transition:none!important}}

/* exploration-loading.css */
/* A quiet placeholder for the illustration's initial network load. */
.explore-image-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:48px 18px;text-align:center;pointer-events:none;background:linear-gradient(145deg,#f7f4e8,#e4ecd9);color:#647b61}
.explore-image-loading img{width:80px;height:80px;object-fit:contain;opacity:.8}
.explore-image-loading p{margin:0;font-size:12px;line-height:1.5;letter-spacing:.7px}

/* shishi.css */
.shishi-guide{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:calc(10px + env(safe-area-inset-bottom));z-index:35;width:74px;color:#355348;font:15px/1.7 var(--sans,'Microsoft JhengHei',sans-serif);pointer-events:none}
.shishi-guide[hidden],.shishi-guide [hidden]{display:none!important}
.shishi-guide-button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:74px;height:91px;margin:0;padding:0;border:0;border-radius:22px;background:transparent;color:#476553;pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.shishi-guide-art{position:relative;display:block;flex:none;width:72px;height:72px;pointer-events:none}
.shishi-guide-art>img,.shishi-guide-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.shishi-guide-art>img{opacity:1;transition:opacity .14s ease}.shishi-guide-canvas{opacity:0;transition:opacity .18s ease;pointer-events:none}.shishi-guide-canvas canvas{display:block;width:100%;height:100%}
.shishi-guide:not([data-model=ready]) .shishi-guide-art{animation:none;transform-origin:50% 65%}
.shishi-guide-art>img.shishi-gesture{transition:none;object-fit:contain}
.shishi-guide[data-model=ready] .shishi-guide-canvas{opacity:1}.shishi-guide[data-model=ready] .shishi-guide-art>img,.shishi-guide[data-model=ready] .shishi-guide-fallback{opacity:0}
.shishi-guide-fallback{position:absolute;inset:12px;display:grid;place-items:center;border:1px solid #c1d2b8;border-radius:48% 46% 42% 48%;background:#f0f5e8;font:25px/1 var(--serif,serif)}
.shishi-guide-label{display:block;box-sizing:border-box;min-height:19px;margin-top:-1px;padding:0 7px;border:1px solid #cbd9c4;border-radius:9px;background:#fffef9;color:#536b54;font-size:11px;line-height:18px;white-space:nowrap;box-shadow:0 1px 2px #34452e08}
.shishi-guide-button:hover .shishi-guide-label{background:#f0f6e9;border-color:#9bb492}.shishi-guide-button:focus-visible,.shishi-guide button:focus-visible{outline:3px solid #618b68;outline-offset:3px}.shishi-guide-button:disabled{opacity:.58;cursor:default}
.shishi-bubble{position:absolute;left:2px;bottom:calc(100% + 12px);width:min(286px,calc(100vw - 30px));box-sizing:border-box;padding:15px 16px 12px;border:1px solid #cbd9c0;border-radius:18px 18px 18px 7px;background:#fffef8;box-shadow:0 7px 28px #294d3716;pointer-events:auto;animation:shishi-bubble-in .16s ease-out}
.shishi-bubble:after{content:'';position:absolute;left:26px;bottom:-6px;width:10px;height:10px;background:#fffef8;border-right:1px solid #cbd9c0;border-bottom:1px solid #cbd9c0;transform:rotate(45deg)}
.shishi-bubble-heading{display:flex;align-items:flex-start;gap:8px}.shishi-bubble h2{flex:1;margin:0;padding-top:9px;font:600 17px/1.4 var(--sans,'Microsoft JhengHei',sans-serif);color:#315840;text-wrap:balance}
.shishi-dismiss{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:-4px -9px 0 0;padding:12px;border:0;border-radius:50%;background:transparent;color:#6d7e68;cursor:pointer}.shishi-dismiss:hover{background:#edf3e7}.shishi-dismiss svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.shishi-hint-text{margin:5px 0 10px;color:#566b52;font-size:15px;line-height:1.8;text-wrap:pretty}.shishi-understood{display:block;min-height:44px;margin:0 0 0 auto;padding:8px 17px;border:1px solid #cbd9c0;border-radius:11px;background:#eef4e7;color:#386344;font:600 14px/1.5 var(--sans,sans-serif);cursor:pointer;touch-action:manipulation}.shishi-understood:hover{background:#e2ecd9}
@keyframes shishi-bubble-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.shishi-guide{left:max(8px,env(safe-area-inset-left));bottom:calc(6px + env(safe-area-inset-bottom));width:62px}.shishi-guide-button{width:62px;height:69px}.shishi-guide-art{width:52px;height:52px}.shishi-guide-label{font-size:10px;line-height:16px;min-height:17px;padding:0 6px}.shishi-bubble{left:0;width:min(280px,calc(100vw - 24px));padding:12px 14px 10px}.shishi-bubble h2{font-size:16px}.shishi-hint-text{font-size:14px}}
@media(max-height:450px){.shishi-guide{bottom:6px}.shishi-guide-button{height:65px}.shishi-guide-art{width:48px;height:48px}.shishi-bubble{bottom:calc(100% + 8px);padding:9px 12px;max-height:calc(100dvh - 95px);overflow:auto}.shishi-hint-text{margin:0 0 6px;line-height:1.6}.shishi-bubble h2{font-size:15px}.shishi-bubble:after{display:none}}
@media(prefers-reduced-motion:reduce){.shishi-bubble,.shishi-guide:not([data-model=ready]) .shishi-guide-art{animation:none}.shishi-guide-art>img,.shishi-guide-canvas{transition:none}}

/* A free-standing companion. Its body is the handle; there is no label or tile. */
.shishi-guide{width:132px;left:12px;bottom:8px;font-size:18px}
.shishi-guide-button{width:132px;height:168px;border-radius:50%;touch-action:none;cursor:grab;user-select:none}
.shishi-guide-art{width:176px;height:176px}
.shishi-guide[data-dragging] .shishi-guide-button{cursor:grabbing}
.shishi-bubble{position:fixed;bottom:auto;width:min(340px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto}
.shishi-bubble:after{display:none}
.shishi-bubble h2{font-size:22px}.shishi-hint-text{font-size:18px;line-height:1.75}.shishi-understood{font-size:18px;min-height:48px}
@media(max-width:700px){.shishi-guide{width:90px;left:10px;bottom:6px}.shishi-guide-button{width:90px;height:120px}.shishi-guide-art{width:128px;height:128px}.shishi-bubble h2{font-size:20px}.shishi-hint-text{font-size:18px}}
@media(max-height:450px){.shishi-guide-button{height:100px}.shishi-guide-art{width:112px;height:112px}}

/* library-shishi.css */
/* Independent full-body welcome, aligned with the library title. */
.library-heading.library-with-shishi{display:block;position:relative;padding-bottom:0;z-index:3}
.library-with-shishi>div{min-width:0}
.library-heading.library-with-shishi h1{display:block;white-space:nowrap;text-wrap:nowrap;line-height:1.3}
.library-title-start{white-space:nowrap}
/* Export the text baseline, not the centre of the taller mascot, to the title. */
.library-title-end{display:inline-flex;align-items:center;vertical-align:baseline;white-space:nowrap;gap:6px}
.library-heading .library-shishi{position:relative;display:inline-block;flex:0 0 76px;width:76px;height:112px;padding:0;border:0;background:none;box-shadow:none;cursor:pointer;touch-action:manipulation;border-radius:18px;vertical-align:middle}
.library-shishi:focus-visible{outline:3px solid #277e76;outline-offset:3px}
.library-shishi-art{position:relative;display:block;width:100%;height:100%;pointer-events:none}
.library-shishi-art img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:contain}
.library-guide-bubble{position:absolute;box-sizing:border-box;width:min(360px,100%);padding:17px 46px 17px 20px;border:1px solid #c4d9c6;border-radius:20px;background:#fffdf6;color:#294f44;box-shadow:0 4px 16px #193d3312;z-index:2}
.library-guide-bubble[hidden]{display:none}
.library-guide-bubble::before{content:"";position:absolute;left:var(--guide-tail);top:-7px;width:12px;height:12px;background:#fffdf6;border-top:1px solid #c4d9c6;border-left:1px solid #c4d9c6;transform:translateX(-50%) rotate(45deg)}
.library-guide-bubble[data-placement=beside]::before{left:-7px;top:var(--guide-tail);transform:translateY(-50%) rotate(-45deg)}
.library-guide-bubble p{font:400 clamp(17px,2vw,20px)/1.5 var(--sans);margin:0;white-space:nowrap;text-wrap:nowrap}
.library-guide-bubble .library-guide-close{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#476457;font:400 28px/1 var(--sans);cursor:pointer;touch-action:manipulation}
.library-guide-bubble button:focus-visible{outline:3px solid #277e76;outline-offset:1px}
.account-dialog .teacher-reset-open{margin-top:12px;width:100%;white-space:normal}
.teacher-reset-dialog{width:min(440px,calc(100vw - 32px));padding:24px;border:0;border-radius:24px;color:#243c37;box-sizing:border-box}
.teacher-reset-dialog::backdrop{background:rgb(18 35 31 / .38)}
.teacher-reset-dialog h2{font-size:24px;line-height:1.4;margin:0 0 14px}
.teacher-reset-dialog p{font-size:18px;line-height:1.65;margin:0 0 20px}
.teacher-reset-actions{display:flex;gap:12px;flex-wrap:wrap}
.teacher-reset-actions .button{flex:1;min-width:128px;justify-content:center}
.teacher-reset-dialog [role=alert]{margin-top:14px;font-size:16px;color:#a43630}
@media(max-width:480px){.library-heading.library-with-shishi h1{font-size:clamp(25px,7.4vw,32px)}.library-heading .library-shishi{flex-basis:60px;width:60px;height:90px}.library-title-end{gap:4px}.teacher-reset-dialog{padding:22px}.library-guide-bubble{padding-left:16px}}

/* refresh.css */
/* Keep the catalogue focused on its six poems; illustrations support activities. */
.header-right{margin-left:auto}
.library-heading{min-height:0;margin-bottom:18px;padding-right:0}
.library-heading h1{font-size:clamp(28px,3vw,42px)}
.library-heading .library-sub{color:#557564}
.library-footer .shishi-home{display:flex;align-items:center;gap:5px}
.lesson-tools{display:flex;align-items:center;gap:12px;flex-shrink:0;margin-left:auto}
.lesson-title{flex:1;min-width:0}
.lesson-title h1{white-space:normal}
.reading-toolbar-links{display:flex;align-items:center;gap:12px}
.reading-toolbar-links a{font-size:12px;gap:5px}
.reading-toolbar-links a svg{width:16px;height:16px}
.view-read #view{display:flex;flex-direction:column}.view-read .reader-toolbar{flex-shrink:0}.view-read .reading-experience{flex:1;min-height:0}
.report-empty .empty-shishi{width:150px;height:160px;object-fit:contain}
.shishi-note{display:flex;align-items:center;gap:9px;text-align:left;color:#668171;font-size:12px;line-height:1.65;margin:8px 0}
.shishi-note img{width:44px;height:53px;object-fit:contain;flex-shrink:0}
.shishi-note strong{display:block;color:#8a5268;font-size:11px;letter-spacing:.5px}
.shishi-note p{margin:0!important;font-size:12px!important;line-height:1.65!important}
.writing-context .shishi-note{max-width:390px;margin:12px auto 0}
.quiz-mode-nav{display:flex;overflow-x:auto;gap:6px;padding:5px;flex-shrink:0;scrollbar-width:thin;border-radius:14px}
.quiz-mode-tab{flex:1;min-width:90px;grid-template-columns:1fr;justify-items:center;gap:3px;padding:9px 8px}
.quiz-mode-tab small{display:none}.quiz-mode-tab svg{width:19px;height:19px}
.poetry-play{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,1fr);gap:34px;align-items:start}
.play-scene{position:relative;margin-top:10px;border-radius:10px 24px 10px 24px;overflow:hidden;background:#f1f0e4;border:1px solid #e3e3d3}
.play-scene>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.play-scene-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 16px;font-size:12px;background:#fffaf0}
.play-scene-caption button{font-size:12px}
.play-card{min-width:0;background:#fffdf6;padding:20px 24px;border:1px solid #e0e5d6;border-radius:22px;box-shadow:0 5px 0 #eeeade}
.play-guide{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.play-guide>img{width:46px;height:58px;object-fit:contain}.play-guide span{font-size:11px;color:#9e5d70}.play-guide h2{font-family:var(--serif);font-size:24px;margin:3px 0 0}
.play-instruction{font-size:13px;color:#617e6e;margin:8px 0 16px}
.poem-puzzle{display:grid;gap:7px}.puzzle-slot{min-height:39px;border:1px dashed #d4dbcc;display:flex;align-items:center;gap:10px;padding:6px 11px;border-radius:10px;color:#899888}
.puzzle-slot>span{font-size:11px;font-family:var(--sans);opacity:.8}.puzzle-slot p{font-family:var(--serif);margin:0;font-size:17px;line-height:1.5}.puzzle-slot.filled{border-style:solid;background:#eff5e9;color:#345f48}.puzzle-slot.active{border-color:#b3955b;background:#fff8df;color:#8f7848}
.puzzle-pieces{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.puzzle-pieces button{padding:9px 11px;min-height:44px;font-family:var(--serif);font-size:16px;line-height:1.5;border:1px solid #dce1d3;border-radius:10px;background:#fffdf6;color:#355d50;text-align:left;flex:1 1 45%}
.puzzle-pieces button:hover{background:#f0f6e9}.puzzle-pieces button.try-again{border-color:#c78566;background:#fff2e7}
.play-message{min-height:36px;line-height:1.7;font-size:13px;color:#6e7e66;margin:12px 0 6px}.play-actions{display:flex;align-items:center;justify-content:space-between;gap:9px}
.play-actions .button,.play-actions .text-button{font-size:12px}
.rhythm-verse{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;margin:28px 0 24px;min-height:60px}
.rhythm-char{display:grid;place-items:center;font:32px var(--serif);color:#9aab9a;min-width:31px;padding:5px 2px;border-bottom:3px solid transparent;transition:color .15s,transform .15s}
.rhythm-char.tapped{color:#32745b}.rhythm-char.current{color:#b0677b;transform:translateY(-5px);border-color:#d59caa}.rhythm-verse b{font-weight:400;color:#bc9d6c;margin:0 5px}
.rhythm-tools{display:flex;justify-content:center;gap:10px}.rhythm-tools .button{font-size:12px}
.rhythm-drum{display:flex;flex-direction:column;align-items:center;justify-content:center;width:164px;height:164px;margin:28px auto 14px;border-radius:50%;border:1px solid #cfa0a0;background:radial-gradient(circle at 38% 30%,#fff7ed,#f4d8cd);box-shadow:0 7px 0 #c89282,0 12px 24px #9a5e4318;touch-action:manipulation;color:#956653}
.rhythm-drum>span{font:44px var(--serif)}.rhythm-drum small{font-size:11px;margin-top:9px}.rhythm-drum:active:not(:disabled){transform:translateY(5px);box-shadow:0 2px 0 #c89282}.rhythm-drum:disabled{opacity:.7}.beat-counter{font-size:12px;color:#83917c}
.quiz-game-art .art-stage{aspect-ratio:3/2}.quiz-game-art .art-stage img{object-fit:cover}
.completion>img.shishi-complete{width:104px;height:125px;object-fit:contain;margin:auto}
.play-finished{text-align:center;padding:16px 0}.play-finished>img{width:145px;height:115px;object-fit:contain;margin:auto}.play-finished h3{font:21px var(--serif);margin:14px 0 7px}
@media(max-width:820px){.poetry-play{grid-template-columns:1fr;gap:0}.play-scene{display:none}.play-card{max-width:620px;width:100%;margin:auto}.quiz-mode-tab{min-width:86px}.quiz-mode-tab span{font-size:12px}}
@media(max-width:700px){
 .library-heading{min-height:0;padding-right:0;margin-bottom:14px}.library-heading h1{font-size:24px;line-height:1.4;white-space:normal;letter-spacing:0}.library-heading .title-ink{display:inline-block}.library-heading .eyebrow{font-size:9px;letter-spacing:0}.library-heading .library-sub{font-size:10px;letter-spacing:0;margin-top:5px}
 .library-books{gap:12px 13px;grid-template-rows:repeat(3,minmax(126px,1fr))}.library-footer{margin-top:3px}.library-footer .shishi-home{font-size:10px}
 .lesson-tools{gap:6px}.lesson-title{gap:7px}.lesson-title h1{font-size:21px}.lesson-title p{font-size:9px}.lesson-portrait{display:none}.lesson-bar{gap:9px}.lesson-menu>summary{width:42px;height:42px}
 .reading-toolbar-links{gap:5px}.reading-toolbar-links a{font-size:11px}
 .play-card{padding:14px 15px;border-radius:15px;box-shadow:none}.play-guide{gap:9px;margin-bottom:6px}.play-guide h2{font-size:21px}.play-guide img{width:38px;height:46px}.play-instruction{margin:6px 0 12px;font-size:12px}
 .puzzle-slot{min-height:35px;padding:4px 9px;gap:8px}.puzzle-slot p{font-size:15px}.poem-puzzle{gap:5px}.puzzle-pieces{gap:6px;margin-top:12px}.puzzle-pieces button{font-size:15px;flex-basis:100%;padding:7px 10px;min-height:42px}
 .play-message{font-size:12px;min-height:27px;margin:10px 0 4px}.rhythm-char{font-size:29px;min-width:27px}.rhythm-verse{gap:2px;margin:22px 0 19px}.rhythm-verse b{margin:0 2px}.rhythm-drum{width:145px;height:145px;margin:24px auto 16px}.rhythm-drum>span{font-size:38px}
}
@media(max-width:370px){.library-heading .eyebrow{font-size:8px}.library-heading h1{font-size:22px}.lesson-title h1{font-size:18px}.play-card{padding:12px}.rhythm-char{font-size:25px;min-width:24px}}
@media(prefers-reduced-motion:reduce){.rhythm-char,.rhythm-drum{transition:none;transform:none!important}}
@media(max-width:700px){
 .quiz-shell{gap:10px;padding-bottom:4px}.quiz-mode-nav{gap:2px;padding:3px;overflow:visible}.quiz-mode-tab{min-width:0;padding:7px 2px;grid-template-rows:auto auto;gap:3px}.quiz-mode-tab svg{grid-row:1}.quiz-mode-tab span{font-size:10px;grid-row:2;letter-spacing:0}
 .puzzle-slot:not(.filled):not(.active){display:none}.puzzle-pieces button{flex-basis:45%;font-size:14px;min-height:48px}.play-guide>div>span{font-size:10px}.play-card{padding:12px 13px}.play-message{min-height:24px}
}
@media(max-height:640px) and (max-width:700px){
 .library{height:calc(100dvh - 53px);min-height:0;padding-top:8px}.library-heading{min-height:0;margin-bottom:10px}.library-heading h1{font-size:21px;line-height:1.3}.library-heading .eyebrow{margin-bottom:3px}.library-heading .library-sub{font-size:9px}.library-books{flex:1;grid-template-rows:repeat(3,minmax(100px,1fr));grid-auto-rows:auto;gap:9px 12px;padding-bottom:2px}.poem-art{min-height:26px}.poem-card-title{min-height:24px}.poem-card-title h2{font-size:17px}.poem-emblem{width:23px;height:23px}.poem-author{font-size:8px;margin-bottom:2px}.poem-open{min-height:25px;font-size:9px}.library-footer{min-height:44px;margin-top:2px}
 .record-layout{padding-block:0;gap:4px}.record-tool{min-height:0}.record-art{max-height:86px}.record-model{margin-bottom:9px}.record-tool>.verse{margin-block:3px 7px;min-height:52px}.record-counter{min-height:37px}#record-controls{min-height:110px}.record-actions{min-height:62px}.record-tool>.verse.verse-compound ruby{font-size:24px;min-width:29px}.record-tool>.verse.verse-compound{gap:1px}
 .reading-experience{padding-block:0}.reading-scene .art-stage{max-height:90px}.poem-text{min-height:0}.reading-scene{gap:6px}.poem-lines{min-height:85px}.poem-lines .verse{min-height:41px}.reading-folio{min-height:20px}.scene-dots button{height:25px}.reader-toolbar{margin-bottom:3px}.page-turner .icon-button{width:36px;height:36px}.poem-lines .verse ruby{font-size:25px;min-width:30px}
 .rhythm-verse{margin:15px 0 13px;min-height:50px}.rhythm-drum{width:113px;height:113px;margin:17px auto 11px}.rhythm-drum small{font-size:9px}.rhythm-drum>span{font-size:31px}.play-guide h2{font-size:19px}.play-instruction{margin-bottom:9px}
}

/* challenge.css */
/* A finite lesson, with one task and one primary action at a time. */
.view-quiz{--ch-ink:#284a40;--ch-muted:#748077;--ch-leaf:#3e7160;--ch-line:#d9dfd2;--ch-paper:#fffdf6}
.view-quiz .lesson-bar{min-height:72px;margin-bottom:8px;border-bottom:0}
.view-quiz .lesson-title h1{font:500 22px/1.4 var(--serif)}
.view-quiz .lesson-title p{color:var(--ch-muted);font-size:11px}
.view-quiz .study-main{max-width:1100px;min-height:0}
.view-quiz #view{overflow:hidden;padding:0}
.challenge-shell{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;color:var(--ch-ink);padding:12px 26px 14px;background:linear-gradient(145deg,#fffef8 0%,#f5f4e9 100%);border:1px solid #e3e5d8;border-radius:26px}
.challenge-shell button,.challenge-shell a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.challenge-shell button{font:inherit;cursor:pointer;color:inherit}
.challenge-shell button:focus-visible,.challenge-shell a:focus-visible{outline:3px solid #54836b;outline-offset:4px}
.challenge-shell button:disabled{cursor:default}
.challenge-shell [hidden]{display:none!important}
.challenge-shell .challenge-primary{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:48px;padding:12px 24px;border:1px solid var(--ch-leaf);border-radius:14px;background:var(--ch-leaf);color:#fffdf4;font-size:15px;font-weight:600;text-decoration:none;transition:background .18s,transform .18s}
.challenge-primary:hover{background:#315e4e;transform:translateY(-1px)}
.challenge-primary:disabled{background:#e4e8dc;border-color:#e4e8dc;color:#8a9689;transform:none}
.challenge-text-button{min-height:44px;padding:8px 10px;border:0;background:none;font-size:13px!important;color:var(--ch-muted)!important;text-decoration:underline;text-underline-offset:5px}
.challenge-eyebrow{font:500 11px/1.5 var(--sans);letter-spacing:2px;color:var(--ch-muted);margin:0}
.challenge-header{flex:none;max-width:1040px;width:100%;margin:0 auto 6px;padding:3px 0 10px}
.challenge-header>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}
.challenge-count{font:500 22px/1 var(--serif);font-variant-numeric:tabular-nums}.challenge-count small{font:400 12px/1 var(--sans);color:var(--ch-muted)}
.challenge-steps{display:flex;gap:7px}.challenge-steps i{height:3px;flex:1;border-radius:4px;background:#e2e6d9}.challenge-steps .done{background:#b4c8b5}.challenge-steps .current{background:#668c73}
.challenge-body{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;display:flex;flex-direction:column;justify-content:center}
.challenge-footer{flex:none;border-top:1px solid var(--ch-line);margin-top:10px;padding-top:10px;display:flex;align-items:center;justify-content:flex-end;gap:20px}
.challenge-feedback{flex:1;font-size:14px;line-height:1.7}.challenge-feedback:empty{display:none}.challenge-feedback strong{font-size:15px;font-weight:600}.challenge-feedback p{margin:3px 0 0;color:#597262}.challenge-feedback .challenge-text-button{font-size:12px!important;padding:0;min-height:30px}
.challenge-footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-shrink:0}
.challenge-prompt{font:500 clamp(21px,2.5vw,29px)/1.6 var(--serif);letter-spacing:.5px;margin:0 0 10px;outline:none}
.challenge-instruction{font-size:13px;line-height:1.7;color:var(--ch-muted);margin:0 0 20px}
.challenge-audio-status,.challenge-manipulation-status{font-size:12px;color:var(--ch-muted);line-height:1.65;min-height:20px;margin:15px 0 0}
.challenge-intro{display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:35px;padding:40px}
.challenge-intro-art{position:relative;min-width:0;align-self:center}
.challenge-intro-art>img:first-child{display:block;width:100%;max-height:440px;object-fit:contain}
.challenge-intro-motif{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);width:95px;height:95px}
.challenge-intro-copy h2{font:500 clamp(25px,3vw,38px)/1.65 var(--serif);letter-spacing:1px;margin:14px 0 16px}
.challenge-intro-copy>p:not(.challenge-eyebrow){font-size:15px;line-height:1.8;color:#66766b;margin:0 0 18px}
.challenge-trip{display:flex;gap:10px;margin:22px 0}.challenge-trip span{width:36px;height:36px;display:grid;place-items:center;border:1px solid #d9dfce;border-radius:50%;color:#637b60;font-family:var(--serif);background:#f5f5e8}.challenge-trip span:nth-child(even){border-color:#e6d9c5;color:#917656;background:#faf2e1}
.challenge-intro-copy>.challenge-kind-note{font-size:12px!important}.challenge-intro-copy>.challenge-text-button{display:block;margin-top:8px}
.challenge-sound-layout{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center;width:100%;padding:10px 5px}
.challenge-sound-stage{position:relative;min-width:0;height:370px;display:flex;align-items:center;justify-content:center}
.challenge-market{width:100%;height:100%;object-fit:contain;pointer-events:none}
.challenge-pod{position:absolute;left:50%;top:34%;transform:translate(-50%,-50%);height:150px;width:90px;background:transparent;border:0;padding:0;touch-action:none!important;z-index:2;transition:filter .2s}
.challenge-pod img{height:100%;width:100%;object-fit:contain;pointer-events:none}
.challenge-pod>svg{position:absolute;bottom:19%;left:calc(50% - 13px);width:26px;height:26px;padding:4px;border-radius:50%;background:#f4eedb;color:#684c29;pointer-events:none}
.challenge-pod:hover{filter:drop-shadow(0 4px 7px #8a725338)}
.challenge-pod.is-playing{animation:ch-sway .6s ease-in-out infinite alternate}
.challenge-stage-note{position:absolute;left:10%;right:10%;top:65%;font-size:13px;text-align:center;color:#5f4830;pointer-events:none}
.challenge-model-link{position:absolute;bottom:0;left:50%;transform:translateX(-50%);background:none;border:0;font-size:12px!important;min-height:36px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px;color:#7d806b!important}
.challenge-shelves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}.challenge-shelves:has(>button:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}.challenge-shelves:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.challenge-shelf{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:100px;padding:15px 5px 20px;border:1px solid #dfd7c4;border-bottom:7px solid #c5ab80;border-radius:12px 12px 5px 5px;background:#f9f3e4;transition:background .2s,border-color .2s,translate .2s}
.challenge-shelf>span{font-size:27px;font-weight:500;line-height:1.3;letter-spacing:1px}.challenge-shelf:has(.challenge-tone)>span{font-size:16px;letter-spacing:0}
.challenge-shelf:disabled:not([aria-pressed="true"]):not(.is-correct){opacity:.65}
.challenge-shelf[aria-pressed="true"]{border-color:#64876b;background:#e7edde;translate:0 -4px}
.challenge-shelf.is-correct{border-color:#6f936a;background:#e8f0df}
.challenge-shelf>i{position:absolute;width:8px;height:8px;border-radius:50%;bottom:6px;background:#cfbd9a}.challenge-shelf[aria-pressed="true"]>i{background:#668a69}
.challenge-tone{width:68px;height:34px;color:#739475}
.is-dragging{z-index:20!important;opacity:.9;transition:none!important;cursor:grabbing!important}
.challenge-writing-layout{width:100%;margin:auto;display:grid;grid-template-columns:.9fr 1.1fr;gap:35px;align-items:center;max-width:830px}
.challenge-writing-heading{padding-left:10px}
.challenge-listen{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:10px 18px;background:#edf1e6;border:1px solid #d5dfcf;border-radius:14px;font-size:15px!important}.challenge-listen svg{width:21px;height:21px}.challenge-listen.is-playing{background:#dce9d5}
.challenge-writing-holder{min-width:0}.challenge-writing-holder[inert]{opacity:.55}
.challenge-writing-holder .cw-skip{display:none}
.challenge-writing-holder .cw-status{font-size:12px}
.challenge-shell .challenge-writing .cw-board{width:min(100%,290px)}
.challenge-shell .challenge-writing.is-answered .cw-board{width:min(100%,176px)}
.challenge-hands-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px;align-items:center;width:100%;padding:6px 0}
.challenge-hands-work{min-width:0}.challenge-hands-work .challenge-prompt{font-size:24px}.challenge-hands-work .challenge-instruction{margin-bottom:14px}
.challenge-model-stage{position:relative;width:100%;height:285px;border-radius:20px;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#fffdf6,#ececdf)}
.challenge-model-poster{width:100%;height:100%;object-fit:contain}.challenge-model-canvas{position:absolute;inset:0}.challenge-model-canvas canvas{display:block;width:100%;height:100%;touch-action:none}
.challenge-model-status{position:absolute;left:12px;right:12px;bottom:12px;font-size:12px;text-align:center;color:#667366;background:#fffdf4df;border-radius:8px}.challenge-model-status:empty{display:none}
.challenge-model-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:8px}.challenge-model-tools button{background:#f6f5eb;border:1px solid #dce1d2;border-radius:10px;padding:9px 12px;font-size:12px!important;min-height:42px}
.challenge-pod-viewer{width:100%;height:100%}.challenge-pod-viewer .challenge-model-stage{height:calc(100% - 55px)}
.challenge-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:16px}.challenge-cards:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}.challenge-cards:has(>button:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.challenge-card{position:relative;min-height:68px;min-width:0;border:1px solid #d6ddce;border-radius:13px;background:#fffef8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:7px;font-size:13px!important;line-height:1.5;touch-action:none!important;transition:border .2s,opacity .2s}
.challenge-card>img{display:block;width:100%;height:85px;object-fit:cover;border-radius:8px;pointer-events:none}.challenge-card[aria-pressed="true"]{border:2px solid #729274;padding:6px;background:#f0f4e7}.challenge-card.is-placed{opacity:.46}.challenge-card.is-placed[aria-pressed="true"]{opacity:1}
.challenge-poem-3 .challenge-card>img,.challenge-poem-6 .challenge-card>img{object-fit:contain;background:#f1efe7}
.challenge-color{display:block;width:30px;height:30px;border-radius:50%;background:var(--card-color);border:1px solid #b8c4b1;box-shadow:inset 0 0 0 3px #ffffff44}
.challenge-slots{display:flex;flex-direction:column;gap:7px}
.challenge-slot{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px dashed #bccbb5;border-radius:11px;background:#f0f3e6;min-height:48px;padding:6px 12px;font-size:13px!important}
.challenge-slot-label{color:#526d51;flex-shrink:0;min-width:70px}.challenge-slot-label>b{display:inline-grid;place-items:center;border:1px solid #cad5c0;width:24px;height:24px;border-radius:50%;margin-right:10px;font-size:11px;font-weight:500}
.challenge-slot-content{color:#99a18e;font-size:12px;display:flex;align-items:center;gap:8px;min-width:0}.challenge-slot-content>img{width:42px;height:31px;object-fit:cover;border-radius:4px}.challenge-slot-content .challenge-color{width:24px;height:24px}
.challenge-slot.is-filled{border-style:solid;background:#fafbf2}.challenge-slot.is-filled .challenge-slot-content{color:#36583c}
.challenge-field{height:305px;position:relative;overflow:hidden;background:linear-gradient(#e9edde,#faf6e6);border-radius:24px;border:1px solid #e0e3d3}
.challenge-field-ground{position:absolute;left:6%;right:6%;top:12%;height:77%;border-radius:50% 45% 32% 30%;transform:perspective(650px) rotateX(22deg);background:radial-gradient(ellipse at 20% 30%,#d4b58c55 1px,transparent 2px) 0 0/13px 17px,radial-gradient(ellipse at 60% 50%,#ac865c55 1px,transparent 2px) 0 0/17px 19px,linear-gradient(135deg,#c8b18c,#a9946f);box-shadow:0 12px 0 -3px #9b8666}
.challenge-field-ground{background:linear-gradient(#e6c79222,#6f54392a),url('media/challenges/field-soil-v1.webp') center/cover;box-shadow:0 9px 0 -2px #7c654b,0 15px 10px -9px #594c3730}
.challenge-grass{position:absolute;width:20px;height:36px;border-left:3px solid #69834b;border-radius:60% 0 0 0;transform-origin:bottom}.challenge-grass:before,.challenge-grass:after{content:'';position:absolute;bottom:0;width:12px;height:25px;border-left:3px solid #839950;border-radius:90% 0 0 0;transform:rotate(-25deg);transform-origin:bottom}.challenge-grass:after{height:31px;transform:rotate(25deg);border-color:#566d3d}
.challenge-bean{position:absolute;width:5px;height:28px;border-radius:50%;background:#4b733d;z-index:2}.challenge-bean b{position:absolute;left:3px;top:-2px;width:23px;height:13px;border-radius:2px 90% 2px 90%;background:#638944;transform:rotate(-30deg);box-shadow:inset 0 1px 0 #8fa765}.challenge-bean b+b{left:-20px;top:7px;transform:rotate(25deg) scaleX(-1);background:#76984c}
.challenge-field-caption{position:absolute;bottom:12px;left:8px;right:8px;text-align:center;color:#746f51;font-size:12px}
.challenge-density{border:0;padding:0;margin:0 0 17px;display:flex;gap:8px}.challenge-density legend{font-size:14px;margin-bottom:8px}.challenge-density button{min-height:45px;flex:1;border:1px solid #d5ddc8;border-radius:11px;background:#f9faef;font-size:14px!important}.challenge-density button[aria-pressed="true"]{background:#dfe8ce;border-color:#88a16e}
.challenge-goose{width:100%;height:270px;border-radius:20px;background:#f0f1e5;display:grid;place-items:center}.challenge-goose svg{width:90%;height:100%;max-height:280px}
.challenge-results{padding:22px 35px;justify-content:center;overflow:auto}
.challenge-results-heading{display:flex;align-items:center;gap:24px;margin-bottom:22px;flex-shrink:0}.challenge-results-heading h2{font:500 28px/1.5 var(--serif);margin:5px 0}.challenge-results-heading p:not(.challenge-eyebrow){font-size:13px;color:#788272;margin:0;line-height:1.7}
.challenge-result-list{display:flex;flex-direction:column;gap:7px;max-width:680px;width:100%;margin:0 auto 20px}
.challenge-result-row{display:flex;align-items:center;gap:16px;min-height:58px;width:100%;text-align:left;padding:8px 16px;border:1px solid #dfe3d3;border-radius:12px;background:#fffef7;font-size:14px!important}.challenge-result-number{width:26px;height:26px;border:1px solid #d7deca;border-radius:50%;display:grid;place-items:center;font-size:12px;color:#7a8e6b}.challenge-result-row small{font-size:11px;color:#809078;display:block;line-height:1.5;margin-top:2px}.challenge-result-row em{margin-left:auto;font-size:12px;color:#698557;font-style:normal}
.challenge-results-actions{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}.challenge-result-extras{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:18px}.challenge-result-extras a{font-size:12px;color:#75846b;text-underline-offset:5px;min-height:35px;display:flex;align-items:center}
@keyframes ch-sway{from{rotate:-3deg}to{rotate:3deg}}
@media(max-width:900px){.challenge-shell{padding-inline:18px}.challenge-sound-layout{gap:22px}.challenge-sound-stage{height:300px}.challenge-hands-layout{gap:19px}.challenge-model-stage{height:250px}.challenge-hands-work .challenge-prompt{font-size:21px}.challenge-intro{padding:25px;gap:22px}}
@media(max-width:700px){
 .view-quiz .lesson-bar{min-height:61px;padding:8px 0;margin-bottom:4px}.view-quiz .lesson-title h1{font-size:20px}.view-quiz .lesson-title p{font-size:10px}.view-quiz.workspace{padding-inline:12px;padding-bottom:max(9px,env(safe-area-inset-bottom))}
 .challenge-shell{padding:12px 15px;border-radius:20px}.challenge-header{padding-bottom:7px;margin-bottom:4px}.challenge-header>div:first-child{margin-bottom:8px}.challenge-count{font-size:20px}.challenge-eyebrow{font-size:10px;letter-spacing:1px}
 .challenge-body{justify-content:flex-start}.challenge-prompt{font-size:21px;margin-bottom:7px;line-height:1.5;letter-spacing:0}.challenge-instruction{font-size:12px;margin-bottom:12px;line-height:1.55}
 .challenge-footer{margin-top:8px;padding-top:9px;flex-direction:column;gap:7px;align-items:stretch}.challenge-footer-actions{justify-content:space-between;gap:8px}.challenge-footer-actions>.challenge-primary{margin-left:auto;min-height:44px;padding:10px 18px;font-size:14px}.challenge-footer .challenge-text-button{font-size:11px!important;padding-inline:0;min-height:38px}.challenge-feedback{font-size:12px;line-height:1.65}.challenge-feedback strong{font-size:13px}.challenge-feedback p{margin-top:1px}.challenge-feedback .challenge-text-button{min-height:25px}
 .challenge-intro{display:flex;justify-content:center;gap:5px;padding:15px 22px;overflow:auto}.challenge-intro-art{width:min(100%,230px);flex:none}.challenge-intro-art>img:first-child{height:180px}.challenge-intro-motif{width:47px;height:47px}.challenge-intro-copy{width:100%;text-align:center}.challenge-intro-copy h2{font-size:25px;line-height:1.55;margin:9px 0}.challenge-intro-copy>p:not(.challenge-eyebrow){font-size:13px;line-height:1.7;margin:0 0 10px}.challenge-trip{justify-content:center;margin:14px 0;gap:10px}.challenge-trip span{width:30px;height:30px;font-size:13px}.challenge-intro-copy>.challenge-text-button{margin:5px auto 0}
 .challenge-sound-layout{display:flex;flex-direction:column;gap:9px;padding:0;flex:1;justify-content:center}.challenge-sound-stage{width:min(100%,270px);height:225px;flex:none}.challenge-pod{height:92px;width:65px;top:34%}.challenge-pod>svg{width:22px;height:22px;left:calc(50% - 11px)}.challenge-stage-note{font-size:10px;top:64%}.challenge-model-link{font-size:10px!important;min-height:28px;bottom:0}.challenge-sound-work{width:100%}.challenge-sound-work .challenge-prompt{text-align:center;font-size:22px}.challenge-sound-work .challenge-instruction{display:none}.challenge-shelves{gap:9px}.challenge-shelf{min-height:85px;padding-top:10px;padding-bottom:15px;border-bottom-width:5px}.challenge-shelf>span{font-size:25px}.challenge-tone{height:26px}.challenge-shelf:has(.challenge-tone)>span{font-size:13px}.challenge-shelves:has(>button:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.challenge-shelf:has(.challenge-tone){min-height:84px}.challenge-tone{width:48px}
 .challenge-audio-status,.challenge-manipulation-status{font-size:11px;margin-top:10px;text-align:center;min-height:18px}
 .challenge-writing-layout{display:flex;flex-direction:column;justify-content:center;gap:7px;flex:1}.challenge-writing-heading{padding:0;text-align:center}.challenge-writing-heading .challenge-prompt{font-size:21px;margin-bottom:9px}.challenge-writing-heading .challenge-audio-status{margin-top:5px}.challenge-listen{min-height:43px;font-size:13px!important;padding:8px 16px}.challenge-writing-holder{width:100%}
 .challenge-hands-layout{display:flex;flex-direction:column;gap:10px;padding:0}.challenge-observation{width:100%}.challenge-model-stage{height:145px;border-radius:13px}.challenge-model-tools{margin-top:5px;gap:5px}.challenge-model-tools button{min-height:34px;padding:6px 10px;font-size:11px!important}.challenge-hands-work{width:100%}.challenge-hands-work .challenge-prompt{font-size:18px;line-height:1.55}.challenge-hands-work .challenge-instruction{font-size:11px;margin-bottom:9px}.challenge-cards{gap:6px;margin-bottom:10px}.challenge-card{font-size:11px!important;min-height:57px;gap:4px;padding:5px;border-radius:9px}.challenge-card>img{height:66px;border-radius:5px}.challenge-card[aria-pressed="true"]{padding:4px}.challenge-slots{gap:6px}.challenge-slot{min-height:43px;padding:5px 8px;gap:7px;font-size:12px!important}.challenge-slot-label{min-width:53px}.challenge-slot-content{font-size:11px;gap:5px}.challenge-slot-content>img{width:34px;height:26px}.challenge-slot-label>b{width:19px;height:19px;margin-right:7px;font-size:10px}.challenge-manipulation-status{margin-top:7px}
 .challenge-field{height:210px;width:100%;flex:none;border-radius:15px}.challenge-field-layout{gap:14px}.challenge-density{margin-bottom:12px}.challenge-density legend{margin-bottom:5px;font-size:13px}.challenge-density button{font-size:13px!important;min-height:42px}.challenge-grass{height:29px;width:16px}.challenge-grass:before{height:20px}.challenge-grass:after{height:25px}.challenge-field-caption{font-size:10px;bottom:9px}.challenge-goose{height:160px}.challenge-color{height:24px;width:24px}
 .challenge-results{padding:16px 14px;justify-content:center}.challenge-results-heading{gap:12px;margin-bottom:16px}.challenge-results-heading>img{width:49px;height:49px}.challenge-results-heading h2{font-size:22px;margin:4px 0}.challenge-results-heading p:not(.challenge-eyebrow){font-size:11px}.challenge-result-list{gap:7px;margin-bottom:13px}.challenge-result-row{padding:8px 10px;gap:10px;font-size:13px!important;min-height:58px}.challenge-result-row em{font-size:11px}.challenge-result-row small{font-size:10px}.challenge-result-extras{gap:15px;margin-top:7px}.challenge-result-extras a{font-size:11px}.challenge-results-actions{gap:2px}.challenge-results-actions .challenge-primary{font-size:13px;min-height:44px;padding:10px 16px}.challenge-results-actions .challenge-text-button{font-size:11px!important}
}
@media(max-width:700px) and (max-height:740px){
 .challenge-shell .challenge-writing .cw-board{width:min(100%,220px)}
 .challenge-shell .challenge-writing.is-answered .cw-board{width:min(100%,158px)}
 .challenge-shell{padding:9px 12px}.challenge-header{padding-bottom:3px}.challenge-sound-stage{height:175px;width:215px}.challenge-pod{height:77px;width:55px}.challenge-stage-note{font-size:9px}.challenge-model-link{bottom:-4px;font-size:9px!important}.challenge-sound-layout{gap:10px}.challenge-sound-work .challenge-prompt{font-size:19px}.challenge-shelf{min-height:74px}.challenge-shelf:has(.challenge-tone){min-height:72px}.challenge-shelf>span{font-size:23px}.challenge-audio-status{margin-top:7px}.challenge-writing-layout{gap:3px}.challenge-writing-heading .challenge-prompt{font-size:18px;margin-bottom:7px}.challenge-writing-heading .challenge-audio-status{margin-top:3px}.challenge-model-stage{height:108px}.challenge-hands-layout{gap:8px}.challenge-card>img{height:45px}.challenge-hands-work .challenge-prompt{font-size:16px}.challenge-hands-work .challenge-instruction{margin-bottom:6px}.challenge-slot{min-height:39px;padding-block:4px}.challenge-card{min-height:49px}.challenge-manipulation-status{font-size:10px;margin-top:4px}.challenge-field{height:165px}.challenge-field-layout{gap:10px}.challenge-density{margin-bottom:8px}.challenge-goose{height:116px}.challenge-intro-art>img:first-child{height:140px}.challenge-intro-copy h2{font-size:23px}.challenge-trip{margin:10px 0}.challenge-results-heading{margin-bottom:10px}.challenge-result-row{min-height:49px;padding-block:5px}.challenge-result-list{gap:5px}.challenge-results-heading h2{font-size:21px}
}
@media(max-width:370px){.challenge-shell{border-radius:15px;padding-inline:10px}.challenge-sound-stage{height:155px}.challenge-sound-work .challenge-prompt{font-size:18px}.challenge-tone{width:42px}.challenge-shelf:has(.challenge-tone)>span{font-size:11px}.challenge-footer-actions{gap:4px}.challenge-feedback{font-size:11px}.challenge-result-extras{gap:10px}.challenge-result-extras a{font-size:10px}.challenge-card{font-size:10px!important}.challenge-slot-label{font-size:11px}.challenge-slot-content{font-size:10px}.challenge-slot-label>b{margin-right:4px}}
@media(max-height:630px){.challenge-shell .challenge-writing .cw-board{width:min(100%,188px)}.challenge-shell .challenge-writing.is-answered .cw-board{width:min(100%,148px)}}
@media(max-width:700px) and (max-height:650px){
 .challenge-hands-layout{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:7px 10px}
 .challenge-hands-work{display:contents}.challenge-observation{grid-column:1;grid-row:1}.challenge-hands-work>.challenge-prompt{grid-column:2;grid-row:1;margin:0;font-size:15px;line-height:1.6}
 .challenge-hands-work>.challenge-instruction,.challenge-hands-work>.challenge-cards,.challenge-hands-work>.challenge-slots,.challenge-hands-work>.challenge-manipulation-status,.challenge-hands-work>.challenge-density{grid-column:1/-1;margin:0}
 .challenge-model-stage{height:87px}.challenge-model-tools{gap:3px;margin-top:3px}.challenge-model-tools button{font-size:10px!important;min-height:30px;padding:5px 6px}
 .challenge-hands-work>.challenge-instruction{font-size:10px;line-height:1.5;margin:2px 0}.challenge-card>img{height:60px}.challenge-slot{min-height:40px}
 .challenge-poem-2 .challenge-observation,.challenge-poem-4 .challenge-observation{display:none}.challenge-poem-2 .challenge-hands-work>.challenge-prompt,.challenge-poem-4 .challenge-hands-work>.challenge-prompt{grid-column:1/-1;margin:8px 0;font-size:17px}
 .challenge-goose{height:108px}.challenge-field{grid-column:1;grid-row:1;height:128px;border-radius:12px}.challenge-field-caption{display:none}.challenge-field-ground{left:3%;right:3%;height:70%;top:15%}.challenge-grass{width:10px;height:19px;border-left-width:2px}.challenge-grass:before{width:8px;height:13px;border-left-width:2px}.challenge-grass:after{width:8px;height:17px;border-left-width:2px}.challenge-bean{height:18px;width:3px}.challenge-bean b{width:14px;height:8px;left:1px}.challenge-bean b+b{left:-12px;top:5px}
 .challenge-hands-work>.challenge-density{margin-top:5px}.challenge-density legend{font-size:12px}.challenge-density button{min-height:40px}
 .challenge-writing-heading .challenge-audio-status{display:none}.challenge-writing-heading .challenge-prompt{font-size:17px}.challenge-writing-layout{gap:5px}.challenge-shell .challenge-writing .cw-status{margin:3px 0;min-height:18px}
}
@media(max-height:550px) and (min-width:701px){.challenge-sound-stage{height:220px}.challenge-model-stage{height:170px}.challenge-prompt{font-size:21px}.challenge-intro-art>img:first-child{max-height:240px}.challenge-intro-copy h2{font-size:26px}.challenge-results{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.challenge-shell *{animation:none!important;transition:none!important}}

/* lesson-map.css */
.lesson-map{--map-paper:#fffdf5;--map-ink:#234b41;--map-muted:#527164;--map-line:#dbe3d6;display:flex;flex-direction:column;width:100%;max-width:1000px;min-width:0;margin:0 auto;gap:22px;color:var(--map-ink)}
.lesson-map a{color:inherit;text-decoration:none;touch-action:manipulation}.lesson-map a:focus-visible{outline:3px solid #568e7a;outline-offset:3px}
.lesson-map-hero{display:flex;align-items:center;gap:14px;min-height:52px}.lesson-map-motif{width:48px;height:48px;object-fit:contain}.lesson-map-hero h2{font:600 26px/1.4 var(--serif,'Noto Serif HK',serif);margin:0}
.lesson-map-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;min-width:0}
.lesson-map-step{display:flex;flex-direction:column;min-width:0;min-height:185px;padding:18px;border:1px solid var(--map-line);border-radius:18px;background:var(--map-paper);transition:background .15s,border-color .15s}
a.lesson-map-step:hover{background:#f1f6eb;border-color:#91b2a1}.lesson-map-step.is-resume{border-color:#80a18a}.lesson-map-step-explore{background:#eff6f4}.lesson-map-step-quiz{background:#faf3e5}.lesson-map-step-animation{background:#f0eee7;color:#667363}
.lesson-map-step-top{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-height:30px}.lesson-map-number{font:600 18px/1.3 var(--serif,serif);color:#5f7f6d}.lesson-map-step-icon{display:grid;place-items:center;width:30px;height:30px;color:#487e68}.lesson-map-step-icon svg{width:27px;height:27px}.lesson-map-step-arrow{display:grid;place-items:center;margin-left:auto;color:#789182}.lesson-map-step-arrow svg{width:18px;height:18px}
.lesson-map-step-copy{min-width:0}.lesson-map-step h3{font:600 20px/1.4 var(--sans,'Noto Sans HK',sans-serif);margin:0;text-wrap:balance}.lesson-map-status{display:block;margin-top:9px;font-size:16px;line-height:1.45;color:var(--map-muted)}
.lesson-map-extras{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:100%;max-width:620px;margin:0 auto;padding-top:12px;border-top:1px solid #dce5d8}.lesson-map-extras a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border-radius:12px;font-size:18px;font-weight:500;color:#476b58}.lesson-map-extras svg{width:21px;height:21px}.lesson-map-extras a:hover{color:#2b654f;background:#edf3e9}
@media(max-width:800px){.lesson-map{max-width:560px;gap:16px}.lesson-map-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lesson-map-step{min-height:150px;padding:15px}.lesson-map-hero h2{font-size:24px}.lesson-map-extras{gap:6px;padding-top:8px}}
@media(max-width:420px){.lesson-map{gap:12px}.lesson-map-hero{min-height:42px;gap:10px}.lesson-map-motif{width:38px;height:38px}.lesson-map-hero h2{font-size:22px}.lesson-map-steps{gap:10px}.lesson-map-step{min-height:145px;padding:12px}.lesson-map-step-top{margin-bottom:8px;gap:8px}.lesson-map-step h3{font-size:20px}.lesson-map-status{margin-top:7px}.lesson-map-extras a{gap:5px;font-size:18px}.lesson-map-extras svg{width:18px;height:18px}}
@media(max-width:360px){.lesson-map-step{padding:10px;min-height:144px}.lesson-map-step h3{font-size:18px}.lesson-map-step-top{min-height:24px;margin-bottom:6px}.lesson-map-step-icon{width:25px;height:25px}.lesson-map-step-icon svg{width:24px;height:24px}.lesson-map-status{margin-top:6px}.lesson-map-extras a{gap:3px;font-size:18px}.lesson-map-extras svg{width:17px;height:17px}}
@media(max-width:800px) and (max-height:650px){.lesson-map{gap:9px}.lesson-map-hero{min-height:32px}.lesson-map-motif{width:30px;height:30px}.lesson-map-hero h2{font-size:20px}.lesson-map-steps{gap:8px}.lesson-map-step{min-height:136px;padding:9px 10px}.lesson-map-step-top{margin-bottom:4px;min-height:24px}.lesson-map-step h3{font-size:18px}.lesson-map-status{margin-top:5px}.lesson-map-extras{padding-top:6px}.lesson-map-extras a{min-height:46px}}
@media(prefers-reduced-motion:reduce){.lesson-map-step{transition:none}}

/* platform.css */
.workspace:has(>.lesson-tabs){grid-template-rows:auto auto minmax(0,1fr)}
.lesson-tabs{display:flex;align-items:center;justify-content:center;gap:8px;min-height:45px;margin:-6px 0 11px;flex-shrink:0}
.lesson-tabs a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 20px;border-radius:12px;color:#7d8978;font-size:13px;text-decoration:none;border:1px solid transparent}
.lesson-tabs a>span{width:21px;height:21px;border:1px solid #d7decd;border-radius:50%;font-size:10px;display:grid;place-items:center}
.lesson-tabs a[aria-current]{color:#355f49;background:#eef2e5;border-color:#dfe6d4}
.lesson-tabs a[aria-current]>span{background:#759276;color:#fffdf5;border-color:#759276}
.lesson-tabs a:focus-visible{outline:3px solid #739573;outline-offset:2px}
.view-lesson #view{overflow:hidden;padding:0}.view-lesson .study-main{max-width:1080px}.view-lesson .lesson-bar{min-height:69px;margin-bottom:5px}
.view-lesson .lesson-title h1{font-size:25px}.view-lesson .lesson-portrait{width:38px;height:38px}
.record-unfold-note{font-size:11px;color:#81937e;line-height:1.5;text-align:center;margin:8px 0 0}
.reading-mode{display:flex;gap:5px}.reading-mode button{background:transparent;border:0;border-radius:8px;min-height:40px;padding:8px 14px;font-size:13px;color:#8a947e;cursor:pointer;letter-spacing:0}
.reading-mode button[aria-pressed="true"]{background:#e9efdd;color:#487151}
.reading-story{padding:19px 2px 12px}.reading-story[hidden],.poem-lines[hidden]{display:none!important}
.story-eyebrow{font-size:10px;letter-spacing:1.5px;color:#91a087;margin:0 0 8px}
.reading-story h3{font:500 26px/1.55 var(--serif);margin:0 0 13px;color:#3f694e}
.story-meaning{font-size:16px;line-height:2;color:#627661;margin:0 0 16px;max-width:34em}
.story-question{font-size:13px;line-height:1.9;color:#8b7858;padding-left:12px;border-left:2px solid #d8c595;margin:0 0 11px}
.story-question>span{font-size:10px;display:block;color:#a89573;letter-spacing:1px}
.reading-story>.text-button{font-size:12px;color:#71906c;min-height:44px}
.view-read .reading-experience{box-shadow:none}.view-read .poem-landscape{box-shadow:none}
.view-read .reader-controls{flex-wrap:wrap}.view-read .reader-controls .button{min-height:44px}
.view-read .reader-toolbar h2{font-size:14px}.view-read .reading-toolbar-links>a{display:none}
.keyboard-open .lesson-tabs{display:none}
.challenge-results-heading .challenge-result-detail{font-size:11px!important;color:#9aa28e!important;margin-top:4px!important}
.challenge-results-actions [data-ch="recommended"]{background:#527f60}.challenge-results-actions [data-ch="postcard"]{border:1px solid #cfdac2;padding:9px 15px;border-radius:12px;text-decoration:none;color:#537349!important}
.challenge-market,.challenge-pod img{transition:opacity .25s}.challenge-pod img:not([data-loaded]){opacity:0}.challenge-pod img[data-loaded]{opacity:1}
.living-field-picture{position:absolute;inset:0}.living-field-canvas{position:absolute;inset:0;border-radius:inherit;overflow:hidden}.living-field-canvas[hidden]{display:none}.living-field-canvas canvas{display:block;width:100%;height:100%;touch-action:none}
.challenge-field .living-grass,.challenge-field .living-bean{position:absolute;display:block;object-fit:contain;width:42px;height:61px;transform:translate(-50%,-75%);transform-origin:bottom;pointer-events:none}
.challenge-field .living-bean{width:46px;height:62px;z-index:3}
.living-field-tools{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:6px;flex-wrap:wrap}
.living-field-tools button{font-size:11px!important;min-height:38px;padding:7px 11px;background:#edf2e3;color:#5d7857;border:1px solid #d8e1cb;border-radius:10px;cursor:pointer}
.living-field-tools .living-field-status{font-size:11px;color:#7b8c70;line-height:1.5}.living-field-status:empty{display:none}
.living-field-wrap{min-width:0;width:100%}
.challenge-result-extras .challenge-text-button{font-size:12px!important;min-height:44px;padding:4px;color:#75846b}
.challenge-result-extras a{min-height:44px}
@media(max-width:700px){
 .lesson-tabs{gap:4px;margin:-6px 0 7px;min-height:44px}.lesson-tabs a{flex:1;gap:5px;padding:6px 4px;font-size:11px;min-height:44px}.lesson-tabs a>span{width:18px;height:18px;font-size:9px}
 .workspace:has(>.lesson-tabs)>.lesson-bar{min-height:61px;padding-block:8px;margin-bottom:6px}.view-lesson .lesson-title h1{font-size:21px}.view-lesson .lesson-bar{min-height:62px}
 .record-unfold-note{font-size:10px;margin:4px 0}.reading-mode button{min-height:36px;font-size:12px;padding:6px 12px}.reading-story{padding:10px 2px 5px}.story-eyebrow{font-size:9px;margin-bottom:4px}.reading-story h3{font-size:21px;margin:0 0 6px}.story-meaning{font-size:14px;line-height:1.85;margin-bottom:10px}.story-question{font-size:12px;margin-bottom:2px;line-height:1.7}.story-question>span{font-size:9px}.reading-story>.text-button{font-size:11px;min-height:36px}
 .view-read .reader-toolbar{display:none}.view-read .reading-experience{justify-content:center;gap:7px}.view-read .reading-scene{gap:7px;flex:1;min-height:0;justify-content:center}.view-read .poem-landscape{padding:4px 6px 0}.view-read .reading-scene .art-stage{max-height:clamp(95px,calc(100dvh - 565px),185px)}.view-read .scene-dots button{height:25px}.view-read .page-turner .icon-button{height:36px;width:36px}.view-read .page-turner{min-height:38px}.view-read .reader-controls{margin:0;justify-content:center;gap:6px}.view-read .reader-controls .button{font-size:11px;padding:7px 9px;min-height:40px}.view-read .reader-controls .media-buttons{gap:6px}.view-read .audio-timeline{height:26px}.view-read .audio-options{margin:0}
 .challenge-field .living-grass{width:32px;height:48px}.challenge-field .living-bean{width:35px;height:48px}.living-field-tools{margin-top:4px;gap:5px}.living-field-tools button{min-height:34px;padding:6px 10px;font-size:10px!important}.living-field-tools .living-field-status{font-size:10px}
 .challenge-results-actions{gap:8px}.challenge-results-actions .challenge-text-button{min-height:38px}.challenge-results-heading .challenge-result-detail{font-size:10px!important}
}
@media(max-width:700px) and (max-height:680px){
 .view-read .reading-experience{height:100%;min-height:0;flex:1;gap:3px;padding:0}.view-read .reading-scene{display:grid;grid-template-columns:85px minmax(0,1fr);align-items:center;gap:10px;flex:1}.view-read .poem-landscape{border:0;padding:0;margin:0;align-self:start;margin-top:10px;background:transparent}.view-read .poem-landscape:before{display:none}.view-read .reading-scene .art-stage{max-height:110px;height:100px;aspect-ratio:auto}.view-read .scene-stage{height:100%!important;aspect-ratio:auto!important}.view-read .scene-dots button{width:18px;min-width:18px;height:25px}.view-read .scene-dots{gap:0}.view-read .poem-text{padding:0;min-height:0}.view-read .reading-folio{padding:0;gap:4px}.reading-mode{gap:0}.reading-mode button{font-size:10px;min-height:34px;padding:5px 8px}.view-read .reading-story{padding:7px 0 1px}.view-read .story-eyebrow{display:none}.view-read .reading-story h3{font-size:18px;margin-bottom:6px}.view-read .story-meaning{font-size:13px;line-height:1.85;margin-bottom:8px}.view-read .story-question{font-size:11px;padding-left:8px}.view-read .reading-story>.text-button{min-height:34px;font-size:10px}.view-read .page-turner{gap:5px}.view-read .page-turner .text-button{font-size:10px}.view-read .page-turner .icon-button{height:34px;width:34px}.view-read .poem-lines .verse{min-height:50px}.view-read .poem-lines .verse ruby{min-width:25px;font-size:22px}.view-read .poem-lines .verse rt{font-size:10px}.view-read .poem-lines .punct{font-size:22px;width:10px}.view-read .poem-lines .verse-compound{flex-direction:column}
 .view-record .record-layout{padding:0;min-height:0;height:100%}.view-record .record-unfold-note{font-size:9px;margin-top:2px}.view-record .record-counter{min-height:30px}.view-record .record-art{max-height:76px}.view-record #record-controls{min-height:95px}
 .challenge-field-layout>.living-field-wrap{grid-column:1;grid-row:1}.challenge-field-layout .challenge-field{height:113px}.living-field-tools button{min-height:32px;padding:5px 7px}.living-field-tools .living-field-status{position:static;font-size:9px}.challenge-field .living-grass{width:18px;height:28px}.challenge-field .living-bean{width:21px;height:30px}
 .challenge-results-heading .challenge-eyebrow{display:none}.challenge-results-heading{margin-bottom:10px}.challenge-results-heading h2{font-size:20px}.challenge-result-row{min-height:44px;padding:3px 8px}.challenge-result-list{gap:4px;margin-bottom:10px}.challenge-results-actions{flex-wrap:nowrap;gap:6px}.challenge-results-actions .challenge-primary{padding:9px 12px;gap:0}.challenge-results-actions [data-ch="postcard"]{padding:9px 10px;min-height:44px}.challenge-result-extras{gap:8px;margin-top:5px}.challenge-result-extras .challenge-text-button{font-size:10px!important}.challenge-result-extras a{font-size:10px}
}

/* simplify.css */
/* Clear reading actions and space for the small guide. */
.poem-author{font-size:16px;line-height:1.5;color:#597362}
.lesson-title p{font-size:15px;line-height:1.5;letter-spacing:.3px;color:#5e7563}
.library-heading{margin-bottom:20px}.library-footer{justify-content:flex-end}
.workspace.lesson-shell{padding-bottom:104px}.workspace:has(>.lesson-tabs){grid-template-rows:auto minmax(0,1fr)}
.lesson-tabs{display:none}
.record-layout{position:relative;padding-bottom:0;box-shadow:none}
.record-landscape{box-shadow:none;transform:none}
.record-art,#reading-art{touch-action:pan-y;user-select:none;cursor:grab}
.record-art:active,#reading-art:active{cursor:grabbing}
.record-art:focus-visible,#reading-art:focus-visible{outline:3px solid #81a185;outline-offset:3px}
.record-line-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px}
.record-line-nav>.icon-button{width:44px;height:44px;border:0;background:transparent;box-shadow:none}
.record-line-nav>.icon-button:disabled{opacity:.22}
.record-unfold-note{font-size:12px;line-height:1.65;margin:0}
.record-model{display:flex;align-items:center;justify-content:center;gap:9px}
.pinyin-command{white-space:nowrap}.pinyin-command svg{width:16px;height:16px}
.record-bottom{position:fixed;bottom:18px;left:100px;right:24px;display:flex;align-items:center;justify-content:center;gap:14px;min-height:44px;z-index:20}
.record-bottom .text-button{min-height:44px;font-size:13px}
.record-bottom .text-button svg{width:17px;height:17px}
.view-read .story-experience{height:100%;min-height:0;display:flex;flex-direction:column;gap:14px}
.story-experience .reading-scene{flex:1;min-height:0}
.story-experience .reading-folio{min-height:36px;font-size:12px}
.story-experience .reading-story{padding-top:16px}
.story-experience .story-bottom{display:flex;align-items:center;justify-content:center;gap:30px;flex-shrink:0}
.story-bottom .page-turner{width:auto;min-width:270px;border:0;gap:15px;margin:0}
.story-bottom .page-turner>span{font-size:12px;color:#7b8c72}
.story-bottom .icon-button{min-height:44px;min-width:44px}
.view-report .report-prose{font-size:17px;line-height:2.05;white-space:pre-line;max-width:40em;margin:18px auto 0}
.view-report .ai-advice{padding:18px 24px}.view-report .ai-report-header h2{font-size:23px}
.view-report .advice-placeholder[hidden]{display:none}.view-report .report-grade-label{font-size:13px}
.view-report .report-next-activities{min-height:44px}
.empty-motif{width:90px;height:90px;object-fit:contain;margin-bottom:16px}
@media(max-width:700px){
 .workspace.lesson-shell{padding-bottom:78px}.lesson-bar{min-height:72px;margin-bottom:8px;padding-block:8px}.lesson-title p{font-size:14px}.view-lesson .lesson-title p{font-size:14px}
 .poem-author{font-size:13px;line-height:1.6;margin-bottom:4px}.library-heading{margin-bottom:16px}
 .record-layout{padding-bottom:0;gap:5px}.record-art{max-height:clamp(95px,calc(100dvh - 560px),205px)}
 .record-line-nav{grid-template-columns:38px minmax(0,1fr) 38px;gap:0}.record-line-nav>.icon-button{width:38px;height:38px}.record-unfold-note{font-size:10px;line-height:1.5}
 .record-model .button{font-size:12px;padding:8px 12px;min-height:42px}.record-bottom .text-button{font-size:12px}.record-bottom{gap:6px;min-height:44px;bottom:12px;left:78px;right:12px;flex-wrap:wrap}
 .story-experience .reading-scene{display:flex;flex-direction:column;gap:12px;justify-content:center}.story-experience .poem-landscape{width:100%;max-width:430px;margin:0;padding:0;border:0;background:transparent}
 .story-experience .poem-landscape:before{display:none}.story-experience .reading-scene .art-stage{height:auto;aspect-ratio:16/9;max-height:210px}.story-experience .scene-stage{height:100%!important;aspect-ratio:16/9!important}
 .story-experience .poem-text{width:100%;padding:0 5px;min-height:0}.story-experience .reading-story{padding:9px 0 0}.story-experience .reading-story h3{font-size:22px}.story-experience .story-meaning{font-size:15px;line-height:1.9;margin-bottom:12px}.story-experience .story-question{font-size:13px}.story-experience .reading-story>.text-button{min-height:44px;font-size:12px}
 .story-experience .story-bottom{gap:8px;justify-content:space-between}.story-bottom .page-turner{min-width:0;gap:0;flex:1}.story-bottom .page-turner>span{font-size:10px;max-width:110px;text-align:center}.story-bottom>.button{min-height:44px;padding:8px 12px;font-size:12px}
 .view-report .ai-advice{padding:14px}.view-report .report-prose{font-size:15px;line-height:1.95;margin-top:14px}.view-report .ai-report-header h2{font-size:20px}.view-report .report-grade-label{font-size:12px}
}
@media(max-width:700px) and (max-height:680px){
 .library-heading{margin-bottom:10px;min-height:35px}.library-heading h1{font-size:21px}.poem-author{font-size:12px;margin:0 0 3px}.poem-card-title{min-height:23px}.library-footer{min-height:36px}
 .view-record .record-layout{height:100%;padding:0;min-height:0;gap:3px}.view-record .record-art{max-height:70px}.record-line-nav{min-height:32px}.record-line-nav>.icon-button{min-height:32px;height:32px}.view-record .record-unfold-note{font-size:9px}.view-record .record-counter{min-height:25px}.view-record .record-model{margin-bottom:10px}.view-record .record-model .button{min-height:40px;font-size:11px;padding:7px 10px}.view-record #record-controls{min-height:94px}.view-record .mic-button{min-height:88px;font-size:12px;gap:10px}.view-record .mic-button svg{width:55px;height:55px;padding:16px}.view-record .record-status:empty{display:none}.view-record .record-tool>.verse{margin-block:2px 6px;min-height:53px}.view-record .record-tool>.verse.verse-compound ruby{font-size:23px}
 .story-experience{padding:0!important;gap:4px!important}.story-experience .reading-scene{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;align-items:center}.story-experience .reading-scene .art-stage{max-height:none;aspect-ratio:16/9;height:auto}.story-experience .poem-text{padding:0}.story-experience .reading-folio{font-size:10px;min-height:27px}.story-experience .reading-story h3{font-size:19px}.story-experience .story-meaning{font-size:13px;line-height:1.9;margin-bottom:9px}.story-experience .story-question{font-size:11px;line-height:1.7}.story-experience .reading-story>.text-button{font-size:10px}.story-bottom .icon-button{min-width:36px;width:36px}
 .view-report .report-prose{font-size:14px;line-height:1.8}.view-report .ai-advice{padding:11px}.view-report .report-next-activities{gap:3px}.view-report .report-next-activities a{font-size:10px}
}
.view-read .story-experience{flex:1;min-height:0;padding:15px;overflow:hidden}
.view-read .story-experience .reading-scene{min-height:0;flex:1}
.view-read .story-experience .poem-landscape{min-height:0}
.view-read .story-experience .art-stage{max-height:100%;overflow:hidden}
.view-explore .explore-visual{min-height:0}
@media(max-width:700px) and (max-height:680px){
 .view-explore .explore-guide{display:none}
 .view-explore .explore-layout{gap:6px}.view-explore .explore-next{min-height:44px}
 .view-write .writing-tool{max-width:min(100%,calc(100dvh - 316px))}
 .view-write .writing-layout{padding-block:0;min-height:0;height:100%}
}
@media(min-width:701px){.view-explore .explore-stage{min-height:0}.view-explore .explore-visual{min-height:0}}
.view-write .writing-layout{min-height:0;height:100%}
.view-write .writing-tool{max-height:100%}
.workspace.view-quiz:has(.challenge-body){padding-bottom:14px}
@media(max-width:700px){
 .workspace.view-quiz:has(.challenge-body){padding-bottom:max(9px,env(safe-area-inset-bottom))}
 .view-quiz .challenge-footer-actions{padding-left:54px}
 .view-quiz .challenge-feedback [data-ch=show-solution]{margin-left:54px;min-height:32px}
}
@media(min-width:701px) and (min-height:451px){.view-write .writing-tool{max-width:min(430px,calc(100dvh - 350px))}}
@media(max-width:700px) and (max-height:680px){.view-record .record-model{margin-bottom:3px}.view-record .record-progress{margin:0;padding:3px 6px 4px}.view-read .story-bottom{padding-bottom:6px}}
@media(max-width:700px) and (max-height:680px){
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-cards,
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-instruction,
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-density{display:none}
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-goose,
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-model-stage{height:86px}
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-sound-stage{height:95px}
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-pod{height:55px;width:40px}
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-stage-note,
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-model-link{display:none}
 .view-quiz .challenge-shell:has(.has-feedback) .challenge-writing-heading .challenge-prompt{display:none}
 .view-quiz .challenge-shell .challenge-writing.is-answered .cw-answer{margin:2px 0 4px}
 .view-quiz .challenge-shell .challenge-writing.is-answered .cw-answer strong{font-size:32px}
 .view-quiz .challenge-results{padding-block:8px;justify-content:flex-start}
 .view-quiz .challenge-results-heading{margin-bottom:4px}
 .view-quiz .challenge-result-list{margin-bottom:3px;gap:4px}
 .view-quiz .challenge-result-row{min-height:44px;padding-block:3px}
 .view-quiz .challenge-results-heading .challenge-result-detail{display:none}
 .view-record .record-layout[data-record-busy=true] .record-model{display:none}
 .view-record .record-wave{margin-top:0;margin-bottom:4px}
 .view-record .record-tool .record-review{margin:0}
 .view-record .record-word-pager:has(button:first-child:disabled):has(button:last-child:disabled){display:none}
 .view-explore .explore-card[data-feedback] .explore-verse{display:none}
 .view-explore .explore-card[data-feedback] .explore-guide{display:block;min-height:0;padding:0;margin:5px 0}
 .view-explore .explore-card[data-feedback] .explore-guide>img,.view-explore .explore-card[data-feedback] .explore-guide-name{display:none}
 .view-explore .explore-card[data-feedback] .explore-feedback{font-size:11px;min-height:0;margin:0;line-height:1.55}
}

/* large-type.css */
/* Final reading scale: useful labels stay legible, with one task per screen. */
:root{--child-body:18px;--child-secondary:16px;--child-action:18px}
body{font-size:var(--child-body)}
.workspace :is(.button,.text-button,.menu-panel a,.menu-panel button),.profile-button{font-size:var(--child-action);min-height:48px;line-height:1.45}
.workspace .icon-button{width:48px;height:48px;min-width:48px;min-height:48px}
.workspace .lesson-title h1{font-size:clamp(26px,2.7vw,34px);line-height:1.3;letter-spacing:0}
.workspace .lesson-title p{font-size:18px;line-height:1.4;letter-spacing:0;margin-top:3px}
.workspace .back-library,.workspace .lesson-menu>summary{font-size:16px;line-height:1.3;min-height:50px}
.workspace .lesson-menu>summary{width:52px;height:52px}
.workspace .lesson-bar{padding-block:12px;margin-bottom:12px;min-height:90px}
.workspace.lesson-shell{padding-bottom:24px}
.workspace .view-section{padding:3px;scrollbar-width:thin}
.workspace :is(.eyebrow,.section-count,.view-heading p,.loading-page p,.error-text,.empty-note,.practice-pager span,.report-grade-label,.report-line-heading h3,.audio-timeline,.reading-folio){font-size:16px;line-height:1.55}
.workspace :is(.view-heading h2,.section-heading h2,.panel-title,.report-empty h2,.completion h2){font-size:26px;line-height:1.4}
.workspace :is(input,textarea,select){font-size:18px}
.toast,.error-text,.chat-error{font-size:16px;line-height:1.6}
.profile-dialog label,.profile-dialog .eyebrow{font-size:16px;line-height:1.5}
.profile-dialog :is(input,select){font-size:18px;min-height:48px}
dialog :is(button,.button){font-size:18px;min-height:48px}
dialog .icon-button{width:48px;min-width:48px;height:48px}
dialog h2{font-size:26px;line-height:1.4}
.workspace :is(rt,.verse rt,.focus-word rt,.sound-word rt,.practice-pick rt){font-size:16px;line-height:1.35}
.workspace .verse ruby{font-size:32px;min-width:38px;line-height:1.6}
.workspace .verse .punct{font-size:30px;line-height:1.6}

.library-heading h1{font-size:clamp(28px,3.5vw,40px)}
.library .poem-card-title h2{font-size:24px;line-height:1.3}
.library .poem-card-title h2 small,.library .poem-grade,.library-footer{font-size:16px}
.library .poem-author{font-size:18px;line-height:1.4;margin:4px 0 6px}
.library .poem-open{font-size:18px;min-height:48px}
.library .poem-open svg{width:18px;height:18px}
.library-footer a{min-height:44px}

.workspace.view-record .record-layout{height:100%;min-height:0;gap:28px;align-items:center}
.workspace.view-record .record-landscape{padding:10px 10px 2px}
.workspace.view-record .record-art{max-height:calc(100dvh - 310px)}
.workspace.view-record .record-line-nav{grid-template-columns:48px minmax(0,1fr) 48px;min-height:48px}
.workspace.view-record .record-unfold-note{font-size:16px;line-height:1.55;text-align:center}
.workspace.view-record .record-counter,.workspace.view-record .record-word-heading{font-size:16px;min-height:36px;line-height:1.5}
.workspace.view-record .record-counter>span{font-size:16px}
.workspace.view-record .record-tool{max-width:460px;padding:4px 0;min-height:0}
.workspace.view-record .record-tool>.verse{margin:10px 0 16px;min-height:64px}
.workspace.view-record .record-tool>.verse rt,.workspace.view-record .record-tool>.verse.verse-compound rt{font-size:16px;line-height:1.2}
.workspace.view-record .record-model{gap:10px;margin:0 0 20px}
.workspace.view-record .record-model .button{font-size:18px;min-height:50px;padding:10px 16px}
.workspace.view-record .record-model svg{width:22px;height:22px}
.workspace.view-record .record-actions{min-height:88px;gap:10px}
.workspace.view-record .record-actions .button{font-size:18px;min-height:50px;padding:10px 16px}
.workspace.view-record .mic-button{font-size:20px;min-height:110px;gap:14px}
.workspace.view-record .mic-button svg{width:70px;height:70px;padding:21px}
.workspace.view-record #record-controls{min-height:116px}
.workspace.view-record .record-status,.workspace.view-record .record-word-hint{font-size:16px;line-height:1.6;margin-top:8px}
.workspace.view-record .record-bottom{position:static;width:100%;grid-column:1/-1;flex-wrap:wrap;justify-content:center;min-height:50px;margin-top:0;gap:4px 16px}
.workspace.view-record .record-bottom .text-button{font-size:18px;min-height:48px}
.workspace.view-record .record-bottom svg{width:20px;height:20px}
.workspace.view-record .record-feedback-title{font-size:24px;line-height:1.4}
.workspace.view-record .record-result small{font-size:18px}
.workspace.view-record .record-word-pager{margin:3px 0}
.workspace.view-record .record-review .focus-word ruby{font-size:58px}
.workspace.view-record .record-review .focus-word rt{font-size:20px}
.workspace.view-record .record-review .focus-word{min-height:102px;padding:7px 15px}

.workspace.view-write .writing-layout{height:100%;min-height:0;padding:0;align-items:center}
.workspace.view-write .writing-tool{width:100%;min-width:0;max-width:min(440px,calc(100dvh - 350px));max-height:100%}
.workspace.view-write .writing-pinyin{font-size:28px;line-height:1.3}
.workspace.view-write .writing-counter{font-size:16px;line-height:1.5}
.workspace.view-write .writing-toolbar{margin-bottom:9px;min-height:58px}
.workspace.view-write .writing-controls{margin-top:10px;gap:8px;display:grid;grid-template-columns:1fr auto;align-items:center}
.workspace.view-write .writing-tools{gap:4px;display:flex}
.workspace.view-write .writing-tools .icon-button{width:46px;min-width:46px;height:48px;min-height:48px}
.workspace.view-write .writing-controls>.button{width:auto;font-size:18px;padding:9px 14px;min-height:48px}
.workspace.view-write .writing-feedback{font-size:16px;line-height:1.5;margin:7px 0 0;min-height:0}
.workspace.view-write .writing-status{font-size:16px;line-height:1.5}
.workspace.view-write .writing-status .text-button{font-size:16px;min-height:48px}
.workspace.view-write .writing-context p,.workspace.view-write .shishi-note p{font-size:16px!important;line-height:1.7!important}
.workspace.view-write .shishi-note strong{font-size:18px}

.workspace.view-report .report-tabs button{font-size:18px;min-height:50px}
.workspace.view-report .report-prose{font-size:18px;line-height:1.85;padding:13px 16px}
.workspace.view-report :is(.report-grade-label,.advice-placeholder,.practice-tip,.sound-context,.sound-kind,.practice-pager span,.practice-pick small,.contrast-heading,.dimension span,.score-ring span,.report-next-activities a){font-size:16px;line-height:1.55}
.workspace.view-report .ai-report-header h2,.workspace.view-report .practice-card-heading h3{font-size:24px}
.workspace.view-report .ai-report-header{flex-wrap:wrap;gap:10px;margin:0 0 10px}
.workspace.view-report .ai-report-header>div{min-width:0;flex:1 1 200px}
.workspace.view-report .report-grade-label{white-space:nowrap;flex-wrap:nowrap;font-size:16px}
.workspace.view-report .report-grade-label select{font-size:16px;min-width:104px;min-height:44px}
.workspace.view-report .word-result strong,.workspace.view-report .section-heading span,.workspace.view-report .report-line-heading>span,.workspace.view-report .good-news{font-size:16px}
.workspace.view-report .practice-intro{font-size:16px;line-height:1.55}
.workspace.view-report .report-next-activities{display:flex;flex-wrap:wrap;gap:6px 16px}
.workspace.view-report .report-next-activities a{min-height:48px}
.workspace.view-report .score-ring{width:76px;height:76px}.workspace.view-report .score-ring strong{font-size:30px}
.workspace.view-report .dimension strong{font-size:26px}
.workspace.view-report .practice-actions{flex-wrap:wrap}.workspace.view-report .practice-actions .button{font-size:16px;min-height:48px}
.workspace.view-report .report-summary{padding-bottom:10px}
.workspace.view-report .practice-tip{margin-block:7px}.workspace.view-report .sound-word{min-height:112px}

.workspace.view-chat .chat-bubble{font-size:18px;line-height:1.8}
.workspace.view-chat .chat-suggestions button{font-size:16px;min-height:48px}
.workspace.view-chat .chat-form textarea{font-size:18px}
.workspace.view-chat .chat-error,.workspace.view-chat .poet-profile p{font-size:16px}
.workspace.view-chat .chat-form button{min-width:48px;min-height:48px}

.workspace .explore :is(.explore-eyebrow,.explore-step,.explore-scene-name,.explore-view-label,.explore-gesture,.explore-notice,.explore-feedback,.explore-guide-name,.explore-word small,.explore-loading){font-size:16px;line-height:1.5}
.workspace .explore :is(.explore-mode button,.explore-presets button,.explore-clue,.explore-expand,.explore-next){font-size:16px!important;min-height:48px;padding:8px 12px}
.workspace .explore .explore-answers button{font-size:18px;line-height:1.5;min-height:52px}
.workspace .explore .explore-question legend{font-size:18px;line-height:1.55}
.workspace .explore .explore-card h3{font-size:24px}
.workspace .explore .explore-verse>p{font-size:24px}
.workspace .explore .explore-zoom button{min-width:48px;min-height:48px}
.workspace .explore .explore-word>span{font-size:28px}
.workspace .explore .explore-title-row{flex-wrap:wrap}
.workspace .explore .explore-card{padding:16px;gap:0}
.workspace .explore .explore-card-top{margin-bottom:10px}


@media(max-width:700px){
 :root{--child-body:18px;--child-secondary:16px;--child-action:18px}
 .workspace.lesson-shell{padding:0 12px 12px;height:100dvh}
 .workspace .lesson-bar{gap:8px;margin-bottom:8px;padding:8px 0;min-height:84px}
 .workspace .lesson-title h1{font-size:26px}.workspace .lesson-title p{font-size:17px}
 .workspace .back-library{min-width:48px;width:48px;font-size:16px}.workspace .lesson-menu>summary{font-size:16px;width:48px;height:50px}
 .workspace .view-section{padding:1px}
 .workspace.view-record .record-layout{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:stretch}
 .workspace.view-record .record-art{max-height:clamp(108px,calc(100dvh - 515px),260px);aspect-ratio:16/9}
 .workspace.view-record .record-landscape{padding:7px 7px 0}
 .workspace.view-record .record-line-nav{grid-template-columns:44px minmax(0,1fr) 44px;min-height:44px}
 .workspace.view-record .record-line-nav>.icon-button{min-width:44px;min-height:44px;width:44px;height:44px}
 .workspace.view-record .record-unfold-note{font-size:16px;line-height:1.4}
 .workspace.view-record .record-tool>.verse{min-height:65px;margin:4px 0 10px}
 .workspace.view-record .record-tool>.verse ruby{font-size:30px;min-width:36px}
 .workspace.view-record .record-tool>.verse.verse-compound ruby{font-size:28px;min-width:35px}
 .workspace.view-record .record-tool>.verse .punct{font-size:28px;width:13px}
 .workspace.view-record .record-model{margin:0 0 12px;gap:8px}
 .workspace.view-record .record-model .button{font-size:18px;min-height:50px;padding:10px 12px}
 .workspace.view-record .record-counter{min-height:28px;font-size:16px}
 .workspace.view-record .record-actions{min-height:78px;gap:8px}
 .workspace.view-record .record-actions .button{font-size:18px;min-height:48px;padding:9px 12px}
 .workspace.view-record .record-feedback .record-actions{display:grid;grid-template-columns:1fr;justify-items:end;gap:7px;min-height:0}
 .workspace.view-record .record-feedback .record-actions .button{min-width:156px;white-space:nowrap}
 .workspace.view-record .mic-button{display:flex;flex-direction:row;min-height:72px;gap:15px;font-size:20px;padding:8px 20px}
 .workspace.view-record .mic-button svg{width:54px;height:54px;padding:16px}
 .workspace.view-record #record-controls{min-height:80px}
 .workspace.view-record .record-bottom{position:static;min-height:48px;gap:0 12px;flex-wrap:wrap;padding:0;margin:0}
 .workspace.view-record .record-bottom .text-button{font-size:18px;min-height:48px}
 .workspace.view-record .record-actions,.workspace.view-record .record-bottom{padding-left:96px}
 .workspace.view-record .record-actions .mic-button{padding-left:0;padding-right:0;gap:11px;white-space:nowrap}
 .workspace.view-record .record-progress{padding:3px 6px 5px;margin:0}
 .workspace.view-record .record-word-hint{font-size:16px;margin:4px 0}.workspace.view-record .record-word-pager{margin:0}
 .workspace.view-write .writing-tool{max-width:min(390px,calc(100dvh - 330px));width:100%}
 .workspace.view-write .writing-controls{grid-template-columns:1fr;gap:7px;margin-top:9px}
 .workspace.view-write .writing-tools{justify-content:space-between;gap:4px}
 .workspace.view-write .writing-controls>.button{width:100%;font-size:18px}
 .workspace.view-write .writing-controls>.button{width:calc(100% - 60px);justify-self:end}
 .workspace.view-write .writing-status{display:flex;align-items:center;justify-content:space-between;gap:6px}
 .workspace.view-write .writing-status .text-button{font-size:16px;white-space:nowrap}
 .workspace.view-write .writing-feedback{font-size:16px;line-height:1.4}
 .workspace.view-report .ai-report-header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px}
 .workspace.view-report .ai-report-header>div{display:contents}
 .workspace.view-report .ai-report-header h2{grid-column:1/-1;font-size:24px}
 .workspace.view-report .report-grade-label{gap:0;margin:0;font-size:0}
 .workspace.view-report .report-grade-label select{font-size:16px;min-width:105px}
 .workspace.view-report .ai-report-header>.button{font-size:16px;min-height:44px;padding:8px 11px}
 .workspace.view-report #panel-advice .ai-report-header{padding-left:100px;min-height:128px;display:grid;grid-template-columns:1fr;align-content:center;gap:8px}
 .workspace.view-report #panel-advice .ai-report-header h2{display:none}
 .workspace.view-report #panel-advice .ai-report-header>.button{justify-self:start}
 .workspace.view-report .report-next-activities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible;padding:8px 0 0;margin-top:6px;min-height:68px}
 .workspace.view-report .report-next-activities a{flex:none;min-height:58px;padding:5px 2px;white-space:nowrap;flex-direction:column;gap:2px;font-size:16px}
 .library{height:auto;min-height:calc(100dvh - 53px);padding:14px 14px 8px}
 .library .library-books{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:198px;flex:1;gap:12px}
 .library .poem-card-title h2{font-size:23px}.library .poem-card-title h2 small{font-size:16px}
 .library .poem-author{font-size:16px;letter-spacing:0;white-space:nowrap}.library .poem-open{font-size:16px;min-height:44px;gap:3px}
 .library .poem-grade{font-size:16px}.library .poem-card-body{padding:7px 5px 0}.library .poem-art{height:68px;min-height:68px;flex:none}
 .library .poem-card-title{padding-right:0}
 .library .poem-emblem{top:auto;bottom:7px;right:7px;width:32px;height:32px}
 .library .poem-open{padding-right:38px;font-size:18px;white-space:nowrap}.library .poem-open>svg{display:none}.library .poem-card-title h2 small{display:none}
 .workspace .explore .explore-layout{gap:10px}.workspace .explore .explore-heading h2{font-size:28px}
 .workspace .explore .explore-stage{min-height:110px}.workspace .explore .explore-view-controls{margin-top:7px;gap:6px;flex-wrap:wrap}
 .workspace .explore .explore-gesture{max-width:none;text-align:left;font-size:16px}
 .workspace .explore .explore-card{padding:13px;max-height:none;overflow:visible}.workspace .explore .explore-answers{gap:7px}
 .workspace .explore .explore-card h3{font-size:23px}.workspace .explore .explore-title-row{margin-bottom:7px}
 .workspace .explore .explore-guide{min-height:0}.workspace .explore .explore-guide>img{display:none}
}
@media(max-width:700px) and (max-height:650px){
 .workspace .lesson-bar{min-height:78px;padding:6px 0;margin-bottom:6px}
 .workspace.view-record .record-layout{gap:5px;justify-content:flex-start}
 .workspace.view-record .record-landscape{padding:5px 6px 0}.workspace.view-record .record-art{max-height:58px}
 .workspace.view-record .record-tool>.verse{margin:2px 0 7px;min-height:57px}.workspace.view-record .record-tool>.verse.verse-compound{min-height:102px;gap:1px}
 .workspace.view-record .record-model{margin-bottom:5px}
 .workspace.view-record .record-model .button{min-height:48px;font-size:18px;padding:8px 11px}
 .workspace.view-record .record-actions{min-height:68px}.workspace.view-record .mic-button{min-height:66px;font-size:20px}
 .workspace.view-record .mic-button svg{width:48px;height:48px;padding:14px}
 .workspace.view-record #record-controls{min-height:68px}
 .workspace.view-record .record-bottom .text-button{min-height:46px;font-size:17px}
 .workspace.view-record .record-status{font-size:16px;margin-top:4px}
 .workspace.view-record .record-counter:has([data-action=record-feedback]){position:relative;min-height:28px;padding-right:112px}
 .workspace.view-record .record-counter [data-action=record-feedback]{position:absolute;right:0;top:-8px;min-height:44px;font-size:16px;gap:4px}
 .workspace.view-record .record-counter [data-action=record-feedback] svg{display:none}
 .workspace.view-record .record-feedback .feedback-motif{height:40px;width:40px;margin-bottom:5px}
 .workspace.view-record .record-feedback-title{margin:5px 0 10px}
 .workspace.view-record .record-feedback .record-result{font-size:42px}
 .workspace.view-record .record-review .focus-word{min-height:94px}.workspace.view-record .record-review .focus-word ruby{font-size:50px}
 .workspace.view-record .record-layout:has(.record-tool[data-step=words]) .record-art{max-height:48px}
 .workspace.view-record .record-layout:has(.record-tool[data-step=words]) .record-bottom{gap:0;padding-left:96px;flex-direction:column;align-items:center}
 .workspace.view-record .record-layout:has(.record-tool[data-step=words]) .record-bottom .text-button{min-height:42px;font-size:16px}
 .workspace.view-record .record-layout:has(.record-tool[data-step=words]) .record-word-pager{position:absolute;right:0;top:33px;display:flex;flex-direction:column;gap:0}
 .workspace.view-record .record-layout:has(.record-tool[data-step=words]) .record-practice{position:relative}
 .workspace.view-record .record-layout:has(.record-tool[data-step=words]) .record-tool{padding-right:0}
 .workspace.view-write .writing-tool{max-width:230px}
 .workspace.view-write .writing-toolbar{margin-bottom:6px;min-height:52px}
 .workspace.view-write .writing-pinyin{font-size:26px}.workspace.view-write .writing-counter{font-size:16px}
 .workspace.view-write .writing-controls{margin-top:8px;gap:5px}
 .workspace.view-write .writing-tools .icon-button{width:46px;min-width:46px;min-height:46px;height:46px}
 .workspace.view-write .writing-feedback{margin-top:2px}
 .workspace.view-report .report-prose{font-size:18px;line-height:1.75}.workspace.view-report .report-summary{gap:16px}
 .workspace.view-report .report-summary{display:none}
 .workspace.view-report .report-summary .score-ring{display:none}
 .workspace.view-report .report-summary .eyebrow{display:none}
 .workspace.view-report .dimension-grid{gap:4px}.workspace.view-report .dimension{display:flex;flex-direction:column;padding:3px 2px;min-width:0}
 .workspace.view-report .dimension strong{font-size:23px}.workspace.view-report .dimension span{font-size:16px;line-height:1.1;margin-top:2px}
 .workspace.view-report .dimension:first-child span{font-size:16px}
 .workspace.view-report .report-tabs{margin:7px 0}
 .workspace.view-report .report-line{padding:7px 0 0}
 .workspace.view-report .report-line-heading{display:grid;grid-template-columns:1fr;gap:3px;margin-bottom:6px}
 .workspace.view-report .report-line-heading h3{display:none}
 .workspace.view-report .report-line-heading>.icon-button{display:none}
 .workspace.view-report .report-line-heading>span{font-size:16px;line-height:1.5}
 .workspace.view-report .word-analysis .section-heading{display:none}
 .workspace.view-report .score-line-tabs{gap:7px;padding-top:2px}
 .workspace.view-report .score-line-tabs .icon-button{min-width:44px;width:44px;min-height:44px;height:44px}
 .workspace.view-report .word-analysis .section-heading>.button{font-size:16px;min-height:44px;padding:8px 11px}
 .workspace.view-report .word-analysis .word-grid{gap:7px;padding-bottom:4px}
 .workspace.view-report .word-analysis .word-result{min-height:83px}
 .workspace.view-report .report-line>.button{margin-top:7px;min-height:44px;font-size:16px}
 .workspace.view-report .ai-advice{padding:10px}
 .workspace.view-report .report-prose{padding:10px 12px;margin-top:10px}
 .workspace.view-explore .explore-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:138px minmax(0,1fr);gap:8px;min-height:0}
 .workspace.view-explore .explore-visual{display:flex;flex-direction:column;flex:none;min-height:0;height:138px;position:relative}
 .workspace.view-explore .explore-stage{min-height:0;flex:1;height:auto}
 .workspace.view-explore .explore-view-controls{position:absolute;left:0;right:0;bottom:4px;display:flex;justify-content:center;margin:0;z-index:4}
 .workspace.view-explore .explore-mode{background:#fffef6eb;padding:2px;box-shadow:0 1px 8px #42604816}
 .workspace.view-explore .explore-mode button{min-height:44px;padding:8px 12px;font-size:16px}
 .workspace.view-explore .explore-scene-name,.workspace.view-explore .explore-gesture{display:none}
 .workspace.view-explore .explore-card{min-height:0;align-self:stretch;padding:10px 12px;overflow:auto}
 .workspace.view-explore .explore-card-top{display:none}
 .workspace.view-explore .explore-title-row{gap:6px;flex-wrap:nowrap;margin-bottom:5px}
 .workspace.view-explore .explore-title-row h3{font-size:22px;line-height:1.3}
 .workspace.view-explore .explore-title-row .explore-clue{min-height:44px;font-size:16px!important;padding:8px 9px}
}
@media(max-width:700px){.poem-seal{right:46px;bottom:4px;width:24px;height:24px;font-size:14px;border-width:1.5px;border-radius:4px}}

/* compact-activities.css */
/* Large labels with less repeated instruction in each exercise state. */
@media(max-width:700px) and (max-height:650px){
 .workspace.view-explore #view .explore-view-controls{left:112px;right:5px;justify-content:flex-end}
 .workspace.view-explore #view .explore-mode button[aria-pressed=true]{display:none}
 .workspace.view-explore #view .explore-expand{left:auto;right:9px}
 .workspace.view-explore #view .explore.is-expanded .explore-layout{display:flex;flex:1;min-height:0}
 .workspace.view-explore #view .explore.is-expanded .explore-visual{height:100%;min-height:0;flex:1}
 .workspace.view-explore #view .explore.is-expanded .explore-view-controls{position:static;justify-content:center;flex:none}
}
.workspace .challenge-shell :is(.challenge-primary,.challenge-secondary,.challenge-text-button,.challenge-listen,.challenge-density button,.challenge-card,.challenge-slot,.challenge-model-tools button,.living-field-tools button){font-size:18px!important;line-height:1.4;min-height:48px}
.workspace .challenge-shell :is(.challenge-eyebrow,.challenge-count small,.challenge-instruction,.challenge-audio-status,.challenge-manipulation-status,.challenge-stage-note,.challenge-slot-label,.challenge-slot-content,.challenge-feedback,.challenge-result-row em,.challenge-result-row small,.challenge-result-extras a,.challenge-kind-note,.living-field-status){font-size:16px!important;line-height:1.45}
.workspace .challenge-shell .challenge-prompt{font-size:24px;line-height:1.4}
.workspace .challenge-shell .challenge-intro-copy h2{font-size:30px}
.workspace .challenge-shell .challenge-intro-copy>p{font-size:18px}
.workspace .challenge-shell .challenge-trip span{font-size:18px;width:38px;height:38px}
.workspace .challenge-shell .challenge-result-row{font-size:18px!important;min-height:52px}
.workspace .challenge-shell .challenge-results-heading h2{font-size:28px}
.workspace .challenge-shell .challenge-results-heading p{font-size:16px!important}
.workspace .challenge-shell .challenge-shelf:has(.challenge-tone)>span{font-size:18px}
.workspace .challenge-shell .challenge-density legend{font-size:18px}
.workspace .challenge-shell .challenge-writing button{font-size:18px;min-height:48px}
.workspace .challenge-shell .challenge-writing .cw-status{font-size:16px}
.workspace .challenge-shell .challenge-footer-actions{padding-left:0;gap:8px}
.workspace .challenge-shell .challenge-feedback [data-ch=show-solution]{font-size:16px!important;min-height:44px;margin-left:0}
.workspace .challenge-shell .challenge-results-actions{flex-wrap:wrap;gap:8px}
.workspace .challenge-shell .challenge-result-extras{flex-wrap:wrap;gap:8px 16px}
.workspace .challenge-shell .challenge-result-extras a{min-height:44px;display:inline-flex;align-items:center}
@media(max-width:700px){
 .workspace.view-quiz .lesson-title p{font-size:16px;white-space:nowrap}.workspace.view-quiz .lesson-bar{min-height:78px}
 .workspace .challenge-shell{padding:10px 12px}
 .workspace .challenge-shell .challenge-prompt{font-size:22px}
 .workspace .challenge-shell .challenge-card,.workspace .challenge-shell .challenge-slot{font-size:16px!important}
 .workspace .challenge-shell .challenge-card>img{height:48px}
 .workspace .challenge-shell .challenge-model-link{font-size:16px!important;min-height:44px}
 .workspace .challenge-shell .challenge-writing .cw-board{width:min(100%,230px)}
 .workspace .challenge-shell .challenge-writing.is-answered .cw-board{width:min(100%,145px)}
 .workspace .challenge-shell .challenge-result-row{gap:6px;padding:6px 8px}
 .workspace .challenge-shell .challenge-intro-art>img:first-child{height:150px}
 .workspace .challenge-shell .challenge-intro-copy h2{font-size:26px;line-height:1.45}
 .workspace .challenge-shell .challenge-results-heading p:not(.challenge-eyebrow){display:none}
 .workspace .challenge-shell .challenge-results-heading{margin-bottom:10px}
 .workspace .challenge-shell .challenge-result-row small{display:none}
 .workspace .challenge-shell .challenge-result-list{gap:5px;margin-bottom:10px}
}
@media(max-width:700px) and (max-height:650px){
 .workspace .challenge-shell .challenge-intro-art{display:none}
 .workspace .challenge-shell.challenge-intro{justify-content:center}
 .workspace .challenge-shell .challenge-intro-copy>p:not(.challenge-eyebrow):not(.challenge-kind-note){display:none}
 .workspace .challenge-shell .challenge-prompt{font-size:22px;line-height:1.35;margin:0 0 6px}
 .workspace .challenge-shell .challenge-instruction,.workspace .challenge-shell .challenge-manipulation-status:empty{display:none}
 .workspace .challenge-shell .challenge-hands-work>.challenge-instruction{display:none}
 .workspace .challenge-shell .challenge-hands-work>.challenge-manipulation-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .workspace .challenge-shell .challenge-hands-layout{gap:7px;grid-template-columns:76px minmax(0,1fr);padding:0}
 .workspace .challenge-shell .challenge-hands-work>.challenge-prompt{font-size:21px;margin:0}
 .workspace .challenge-shell .challenge-goose,.workspace .challenge-shell .challenge-model-stage{height:78px}
 .workspace .challenge-shell .challenge-model-tools{flex-wrap:wrap;gap:3px}
 .workspace .challenge-shell .challenge-model-tools button{font-size:16px!important;min-height:44px;padding:4px 7px}
 .workspace .challenge-shell .challenge-cards{gap:5px;margin:0}
 .workspace .challenge-shell .challenge-card{padding:4px;gap:3px;min-height:52px;font-size:16px!important}
 .workspace .challenge-shell .challenge-card>img{height:43px}
 .workspace .challenge-shell .challenge-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .workspace .challenge-shell .challenge-slots:has(>button:last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace .challenge-shell .challenge-slots:has(>button:last-child:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace .challenge-shell .challenge-slot{flex-direction:column;justify-content:center;padding:5px 3px;gap:3px;min-height:70px}
 .workspace .challenge-shell .challenge-slot-label{min-width:0;text-align:center;font-size:16px!important;line-height:1.35}
 .workspace .challenge-shell .challenge-slot-label>b{display:none}
 .workspace .challenge-shell .challenge-slot-content{font-size:16px!important;min-width:0;line-height:1.35;flex-direction:column}
 .workspace .challenge-shell .challenge-slot-content>img{width:40px;height:26px}
 .workspace .challenge-shell .challenge-type-sequence .challenge-slot-content>img{display:none}
 .workspace .challenge-shell .challenge-sound-layout{gap:7px}
 .workspace .challenge-shell .challenge-sound-stage{height:112px;width:168px}
 .workspace .challenge-shell .challenge-pod{height:64px;width:47px;top:25%}
 .workspace .challenge-shell .challenge-stage-note,.workspace .challenge-shell .challenge-model-link{display:none}
 .workspace .challenge-shell .challenge-sound-work>.challenge-audio-status{display:none}
 .workspace .challenge-shell .challenge-shelf{min-height:64px;padding:5px 8px 12px}
 .workspace .challenge-shell .challenge-shelf:has(.challenge-tone){min-height:56px;padding:5px;gap:3px;display:flex;flex-direction:column}
 .workspace .challenge-shell .challenge-shelf:has(.challenge-tone)>span{font-size:16px}
 .workspace .challenge-shell .challenge-tone{width:44px;height:24px}
 .workspace .challenge-shell .challenge-shelves:has(>button:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .workspace .challenge-shell .challenge-writing-layout{gap:3px}
 .workspace .challenge-shell .challenge-writing .cw-board{width:min(100%,170px);margin:3px auto 5px}
 .workspace .challenge-shell .challenge-writing.is-answered .cw-board{width:min(100%,105px)}
 .workspace .challenge-shell .challenge-writing .cw-controls{gap:4px;flex-wrap:nowrap}
 .workspace .challenge-shell .challenge-writing .cw-tools{gap:4px}
 .workspace .challenge-shell .challenge-writing button{padding:7px 9px;font-size:16px;min-height:44px}
 .workspace .challenge-shell .challenge-writing .cw-primary{min-width:90px}
 .workspace .challenge-shell .challenge-writing .cw-status{font-size:16px;line-height:1.4;margin:4px 0;min-height:0}
 .workspace .challenge-shell .challenge-writing .cw-answer{margin:3px 0 5px}
 .workspace .challenge-shell .challenge-writing .cw-review-actions{gap:5px}
 .workspace .challenge-shell .challenge-footer{padding-top:7px}
 .workspace .challenge-shell .challenge-footer-actions{gap:6px;justify-content:flex-end}
 .workspace .challenge-shell .challenge-feedback p{font-size:16px;line-height:1.45;margin:5px 0}
 .workspace .challenge-shell .challenge-feedback [data-ch=show-solution]{min-height:44px;padding:5px 7px}
 .workspace .challenge-shell:has(.has-feedback) .challenge-sound-stage{height:66px;width:110px}
 .workspace .challenge-shell:has(.has-feedback) .challenge-pod{height:54px;width:40px;top:5%}
 .workspace .challenge-shell:has(.has-feedback) .challenge-sound-work>.challenge-prompt{display:none}
 .workspace .challenge-shell:has(.has-feedback) .challenge-observation,.workspace .challenge-shell:has(.has-feedback) .challenge-hands-work>.challenge-prompt{display:none}
 .workspace .challenge-shell:has(.has-feedback) .challenge-hands-layout{display:block}
 .workspace .challenge-shell .challenge-field{height:98px}
 .workspace .challenge-shell .challenge-density{margin-top:4px}
 .workspace .challenge-shell .challenge-density legend{font-size:18px;margin-bottom:4px}
 .workspace .challenge-shell .challenge-density button{min-height:46px}
 .workspace .challenge-shell .living-field-tools{margin-top:3px}
 .workspace .challenge-shell .living-field-tools button{min-height:44px;font-size:16px!important}
 .workspace .challenge-shell.challenge-results{justify-content:flex-start;padding:8px 10px}
 .workspace .challenge-shell .challenge-results-heading h2{font-size:24px;margin:0}
 .workspace .challenge-shell .challenge-results-heading{min-height:46px;gap:8px;margin:0 0 7px}
 .workspace .challenge-shell .challenge-results-heading>img{width:40px;height:40px}
 .workspace .challenge-shell .challenge-result-row{min-height:45px;font-size:16px!important;padding:4px 7px}
 .workspace .challenge-shell .challenge-result-row em{font-size:16px!important;white-space:nowrap}
 .workspace .challenge-shell .challenge-result-row small{display:none}
 .workspace .challenge-shell .challenge-result-list{gap:4px;margin-bottom:6px}
 .workspace .challenge-shell .challenge-results-actions{gap:4px;flex-wrap:nowrap;justify-content:flex-end}
 .workspace .challenge-shell .challenge-results-actions button,.workspace .challenge-shell .challenge-results-actions a{font-size:16px!important;min-height:46px;padding:6px 8px}
 .workspace .challenge-shell .challenge-result-extras{margin-top:3px;gap:2px 10px;justify-content:flex-end;padding-left:86px}
 .workspace .challenge-shell .challenge-result-extras button{font-size:16px!important;min-height:44px;padding:4px 6px}
}

/* extension.css */
/* Optional word practice shares the reading tool and never adds a score. */
.workspace.view-record .record-counter:has(.extension-entry){flex-wrap:wrap;gap:0 12px}
.workspace.view-record .extension-entry{font-size:18px;min-height:48px;white-space:nowrap;padding:5px 0}
.workspace.view-record .record-extension{text-align:center}
.workspace.view-record .record-extension .record-review{margin:6px 0 8px}
.workspace.view-record .record-extension .focus-word{width:140px;min-width:140px;min-height:150px}
.workspace.view-record .record-extension .focus-word ruby{font-size:72px;line-height:1.2}
.workspace.view-record .record-extension .focus-word rt{font-size:24px;line-height:1.4;visibility:visible}
.workspace.view-record .extension-final{font-size:20px;line-height:1.4;margin:8px 0 3px;color:#315e4b}
.workspace.view-record .extension-final strong{font-size:24px;margin-left:8px}
.workspace.view-record .record-extension .record-word-hint{margin:3px 0 8px}
.workspace.view-record .record-extension .record-actions{padding-left:0;min-height:56px}
.workspace.view-record .record-extension .record-actions .button{font-size:18px;min-height:48px}
.workspace.view-record .record-layout:has([data-step=extension]) .record-bottom{display:none}
@media(max-width:700px){
 .workspace.view-record .record-extension .focus-word{width:124px;min-width:124px;min-height:132px;padding:7px 15px}
 .workspace.view-record .record-extension .focus-word ruby{font-size:64px}
 .workspace.view-record .record-extension .focus-word rt{font-size:22px}
 .workspace.view-record .record-tool[data-step=extension]>.record-counter{min-height:28px}
}

/* animation.css */
.view-animation .study-main{max-width:1040px}
.view-animation .view-section{display:flex;align-items:center}
.animation-lesson{display:flex;flex-direction:column;gap:14px;width:100%;height:100%;max-height:760px;min-height:0;padding-bottom:4px}
.animation-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-shrink:0}
.animation-heading h2{margin:0;color:var(--green);font-size:30px;line-height:1.35}
.animation-heading p{margin:0;color:var(--muted);font-size:20px;line-height:1.5}
.animation-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:150px;overflow:hidden;border-radius:18px;background:#1c2828}
.animation-stage video{display:block;width:100%;height:100%;min-height:0;object-fit:contain;outline-offset:-4px}
.animation-status{margin:0;text-align:center;color:var(--green);font-size:18px;line-height:1.5;flex-shrink:0}
.animation-status[hidden]{display:none}
.animation-actions{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding-left:100px;flex-shrink:0}
.workspace .animation-actions .button{font-size:20px;min-height:58px;padding:12px 22px;border-radius:14px;white-space:nowrap}
.animation-actions .button svg{width:24px;height:24px}
@media(max-width:700px){
 .view-animation .view-section{align-items:flex-start}
 .animation-lesson{height:auto;min-height:100%;max-height:none;justify-content:center;gap:14px;padding-bottom:88px}
 .animation-heading{justify-content:center;flex-wrap:wrap;gap:4px 14px}
 .animation-heading h2{font-size:28px}.animation-heading p{font-size:18px}
 .animation-stage{flex:none;aspect-ratio:16/9;width:100%;min-height:0;border-radius:12px}
 .animation-actions{padding-left:0;gap:10px;flex-direction:column}
 .workspace .animation-actions .button{min-width:220px;min-height:54px;font-size:20px;padding:10px 18px}
 .animation-status{font-size:18px}
}
@media(max-height:550px) and (orientation:landscape){
 body[data-screen=animation] #shishi-guide-host{display:none}
 .animation-lesson{display:grid;grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:auto minmax(0,1fr) auto;gap:7px 14px;height:100%;min-height:0;padding-bottom:4px}
 .animation-heading{grid-column:1/-1;justify-content:space-between}.animation-heading h2{font-size:24px}.animation-heading p{font-size:18px}
 .animation-stage{grid-column:1;grid-row:2/4;aspect-ratio:auto;height:100%;min-height:100px}
 .animation-actions{grid-column:2;grid-row:2;flex-direction:column;padding-left:0;gap:10px}
 .workspace .animation-actions .button{min-width:0;width:100%;min-height:48px;font-size:18px;padding:8px 10px}
 .animation-status{grid-column:2;grid-row:3;font-size:16px}
}

/* mobile-tablet.css */
/* Touch layouts: keep the task, its controls and its next action together. */
.workspace .lesson-bar:has(.shishi-touch-slot) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 48px auto;
}
.workspace .lesson-bar > .back-library { grid-column: 1; grid-row: 1; }
.workspace .lesson-bar > .lesson-title { grid-column: 2; grid-row: 1; }
.workspace .lesson-bar > .shishi-touch-slot { grid-column: 3; grid-row: 1; align-self: center; justify-self: center; }
.workspace .lesson-bar > .lesson-tools { grid-column: 4; grid-row: 1; }
.workspace .lesson-heading { min-width: 0; }
.workspace .lesson-title p { max-width: 100%; overflow-wrap: anywhere; }
.workspace.view-quiz .lesson-title p { white-space: normal; text-wrap: balance; }
.report-empty .empty-shishi,
.completion > img.shishi-complete,
.explore-finish-shishi,
.explore-guide > img,
.explore-guide-name,
.shishi-note > img,
.shishi-note strong { display: none !important; }
.workspace.view-quiz .challenge-writing-layout { flex-shrink: 0; min-height: min-content; }
@media (min-width: 701px) {
  .workspace.view-quiz .challenge-body { justify-content: safe center; }
}
@media (max-width: 1180px) {
  .workspace.lesson-shell {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .workspace .lesson-bar { gap: 12px; }
  .workspace .lesson-title { min-width: 0; }
  .workspace .lesson-title h1 { text-wrap: balance; }
  .workspace :is(.button, .text-button) { justify-content: center; text-align: center; }
  .workspace.view-record .record-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px 24px;
    padding: 18px;
    align-content: center;
  }
  .workspace.view-record .record-landscape { grid-column: 1; grid-row: 1 / 3; width: 100%; margin: 0; }
  .workspace.view-record .record-practice { grid-column: 2; grid-row: 1; padding: 0; align-self: end; }
  /* The 58% divider falls inside this grid's sentence column; hide it as <=1100px does. */
  .workspace.view-record .record-layout::before { display: none; }
  .workspace.view-record .record-tool { width: 100%; max-width: 500px; padding: 0; }
  .workspace.view-record .record-art { max-height: min(48dvh, 390px); }
  .workspace.view-record .record-counter { min-height: 44px; gap: 8px; flex-wrap: wrap; padding: 0; }
  .workspace.view-record .record-counter:has([data-action="record-feedback"]) { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .workspace.view-record .record-counter:has([data-action="record-feedback"]) > span { justify-self: start; white-space: nowrap; }
  .workspace.view-record .record-counter [data-action="record-feedback"] { grid-column: 2; justify-self: center; }
  .workspace.view-record .record-counter:has([data-action="record-feedback"]) > .extension-entry { justify-self: end; white-space: nowrap; }
  .workspace.view-record .record-counter [data-action="record-feedback"] { position: static; font-size: 16px; min-height: 44px; }
  .workspace.view-record .record-actions { padding: 0; justify-content: center; flex-wrap: wrap; }
  .workspace.view-record .record-recovery { text-align: center; }
  .workspace.view-record .record-recovery .record-status { margin: 8px 0; }
  .workspace.view-record .record-recovery .record-actions { min-height: 52px; width: 100%; }
  .workspace.view-record .record-recovery .record-actions .button { flex: 0 1 auto; min-width: 140px; white-space: nowrap; }
  .workspace.view-record .record-recovery > .text-button { margin-inline: auto; }
  .workspace.view-record .record-feedback .record-actions { display: flex; justify-content: center; }
  .workspace.view-record .record-feedback .record-actions .button { min-width: 142px; }
  .workspace.view-record .record-bottom,
  .workspace.view-record .record-layout:has(.record-tool[data-step="words"]) .record-bottom {
    position: static; grid-column: 2; grid-row: 2; align-self: start;
    display: flex; justify-content: center; align-items: center;
    width: 100%; min-height: 48px; margin: 0; padding: 0; gap: 8px;
  }
  .workspace.view-record .record-bottom:empty { display: none; }
  .workspace.view-record .record-bottom .text-button { width: max-content; max-width: 100%; }
  .workspace.view-record .record-review { justify-content: center; }
  .workspace.view-record .record-word-pager,
  .workspace.view-record .record-layout:has(.record-tool[data-step="words"]) .record-word-pager {
    position: static; display: flex; flex-direction: row; justify-content: center; gap: 16px; margin: 6px 0;
  }
  .workspace.view-report .report-next-activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .workspace.view-report .report-next-activities a { justify-content: center; padding: 8px 4px; min-height: 52px; }
  .workspace.view-report .ai-report-header { align-items: center; }
  .workspace.view-report #panel-advice .ai-report-header { padding: 0; min-height: 0; }
  .workspace.view-report .report-prose { margin-top: 12px; }
  .workspace.view-write .writing-controls > .button { width: 100%; justify-self: stretch; }
  .workspace.view-write .writing-status { gap: 8px; flex-wrap: wrap; }
  .workspace.view-quiz .challenge-footer-actions { padding: 0; justify-content: center; }
  .workspace.view-quiz .challenge-intro { overflow-y: auto; }
  .workspace.view-quiz .challenge-results-actions,
  .workspace.view-quiz .challenge-result-extras { padding: 0; justify-content: center; flex-wrap: wrap; }
  .workspace.view-animation .animation-actions { padding-left: 0; }
  .workspace.view-chat .chat-bubble { overflow-wrap: anywhere; }
  .workspace.view-chat .chat-form { gap: 8px; }
  .workspace.view-chat .chat-form textarea { min-height: 48px; line-height: 1.5; }
  .workspace.view-chat .chat-error { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; text-align: center; }
  .workspace.view-chat .chat-error:empty { display: none; }
  .workspace.view-chat .chat-retry { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px; font-size: 17px; white-space: nowrap; }
}

/* A portrait tablet has room for a generous picture above the reading task. */
@media (min-width: 701px) and (max-width: 1024px) and (orientation: portrait) {
  .workspace.view-record .record-layout {
    display: flex; flex-direction: column; justify-content: center;
    gap: 14px; padding: 20px; max-width: 760px; margin-inline: auto;
  }
  .workspace.view-record .record-landscape { width: min(100%, 620px); flex: 0 0 auto; }
  .workspace.view-record .record-art { height: min(29dvh, 310px); max-height: none; aspect-ratio: 16 / 9; }
  .workspace.view-record .record-practice { flex: 0 0 auto; width: 100%; align-self: center; }
  .workspace.view-record .record-bottom { flex: 0 0 auto; align-self: center; }
  .workspace.view-record .record-counter { justify-content: space-between; }
  .workspace.view-record .mic-button { flex-direction: row; min-height: 78px; gap: 18px; }
  .workspace.view-record .mic-button svg { width: 62px; height: 62px; padding: 18px; }
  .workspace.view-record #record-controls { min-height: 88px; }
  .workspace.view-record .record-model { margin-bottom: 14px; }
  .workspace.view-lesson .lesson-map { max-width: 680px; }
  .workspace.view-lesson .lesson-map-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace.view-lesson .lesson-map-step { min-height: 190px; }
}

@media (max-width: 700px) {
  .workspace.lesson-shell { padding-inline: 12px; }
  .workspace .lesson-bar { min-height: 82px; margin-bottom: 8px; padding-block: 8px; gap: 6px; }
  .workspace .lesson-title h1 { font-size: clamp(23px, 6.6vw, 28px); }
  .workspace .lesson-title p { font-size: 16px; }
  .workspace .menu-panel { max-width: calc(100vw - 24px); }
  .workspace.view-record .record-layout {
    display: flex; flex-direction: column; align-items: stretch; justify-content: center;
    gap: 10px; padding: 0; border: 0; background: transparent;
    min-height: 100%; height: auto; max-width: 500px; margin-inline: auto;
  }
  .workspace.view-record .record-landscape { flex: 0 0 auto; padding: 7px 7px 0; }
  .workspace.view-record .record-art {
    height: clamp(82px, calc(100dvh - 565px), 215px);
    max-height: none; width: 100%; aspect-ratio: 16 / 9;
  }
  .workspace.view-record .record-practice { display: block; flex: 0 0 auto; align-self: stretch; }
  .workspace.view-record .record-tool { padding: 0 3px; }
  .workspace.view-record .record-counter { justify-content: space-between; min-height: 40px; gap: 4px 8px; }
  .workspace.view-record .record-counter > span { flex-shrink: 0; }
  .workspace.view-record .record-counter .text-button { min-height: 40px; font-size: 16px; padding: 5px 3px; }
  .workspace.view-record .record-counter:has([data-action="record-feedback"]) { padding: 0; }
  .workspace.view-record .record-tool > .verse { margin: 4px 0 12px; min-height: 66px; }
  .workspace.view-record .record-tool > .verse ruby { font-size: 30px; min-width: 36px; }
  .workspace.view-record .record-model { gap: 10px; margin-bottom: 12px; }
  .workspace.view-record .record-model .button { min-height: 50px; padding: 10px 13px; }
  .workspace.view-record .record-actions { min-height: 76px; gap: 10px; padding: 0; }
  .workspace.view-record .record-actions .mic-button { padding: 8px 12px; gap: 16px; min-height: 76px; }
  .workspace.view-record #record-controls { min-height: 80px; }
  .workspace.view-record .record-bottom { flex: 0 0 auto; align-self: center; min-height: 48px; padding: 0; }
  .workspace.view-record .record-feedback .record-actions { flex-wrap: wrap; }
  .workspace.view-record .record-feedback .record-actions .button { flex: 1; max-width: 210px; min-width: 130px; }
  .workspace.view-record .record-layout:has(.record-tool[data-step="words"]) .record-art { max-height: none; }
  .workspace.view-record .record-word-heading { gap: 12px; }
  .workspace.view-record .record-word-hint { text-align: center; margin: 8px 0; }
  .workspace.view-record .record-word-pager:has(button:first-child:disabled):has(button:last-child:disabled) { display: none; }
  .workspace.view-record .record-review { margin: 8px 0; }
  .workspace.view-record .record-feedback-title { margin-block: 8px 16px; }
  .workspace.view-report #view { overflow: hidden; }
  .workspace.view-report .report-tabs { margin: 4px 0 12px; padding: 4px; }
  .workspace.view-report .report-tabs button { padding: 8px 4px; font-size: 18px; }
  .workspace.view-report .ai-advice { padding: 12px; }
  .workspace.view-report #panel-advice .ai-report-header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px;
    min-height: 0; padding: 0; margin-bottom: 10px;
  }
  .workspace.view-report #panel-advice .ai-report-header h2 { display: block; grid-column: 1 / -1; margin: 0; text-align: center; font-size: 24px; }
  .workspace.view-report #panel-advice .ai-report-header > .button { justify-self: end; min-height: 48px; font-size: 17px; }
  .workspace.view-report .report-grade-label select { min-height: 48px; }
  .workspace.view-report .report-prose { padding: 12px; font-size: 18px; line-height: 1.8; margin-top: 10px; }
  .workspace.view-report .report-next-activities { flex-shrink: 0; gap: 4px; margin-top: 8px; min-height: 70px; }
  .workspace.view-report .report-next-activities a { flex-direction: column; font-size: 16px; gap: 4px; padding: 6px 0; }
  .workspace.view-report .practice-card-heading { flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
  .workspace.view-report .practice-card-heading h3 { font-size: 23px; }
  .workspace.view-report .practice-tip { font-size: 17px; line-height: 1.65; }
  .workspace.view-report .report-line-heading { flex-wrap: wrap; }
  .workspace.view-report .word-analysis .word-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  .workspace.view-report .word-analysis .word-result { width: 100%; min-width: 0; }
  .workspace.view-report .report-summary { gap: 14px; }
  .workspace.view-report .dimension span { font-size: 15px; }
  .workspace.view-write .writing-tool { width: 100%; max-width: min(390px, calc(100dvh - 335px)); }
  .workspace.view-write .writing-controls { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .workspace.view-write .writing-controls > .button { width: 100%; min-height: 50px; }
  .workspace.view-write .writing-tools { justify-content: space-between; }
  .workspace.view-write .writing-status { justify-content: center; text-align: center; }
  .workspace.view-write .writing-feedback:empty { display: none; }
  .workspace.view-quiz .challenge-intro { overflow-y: auto; }
  .workspace.view-quiz .challenge-intro-copy { text-align: center; }
  .workspace.view-quiz .challenge-trip { justify-content: center; }
  .workspace.view-quiz .challenge-intro-copy > .challenge-text-button { margin-inline: auto; }
  .workspace.view-quiz .challenge-footer-actions { width: 100%; justify-content: center; }
  .workspace.view-quiz .challenge-footer-actions .challenge-primary { flex: 1; max-width: 260px; }
  .workspace.view-quiz .challenge-results-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  .workspace.view-quiz .challenge-results-actions > * { justify-content: center; text-align: center; }
  .workspace.view-quiz .challenge-result-extras { margin-top: 8px; gap: 8px 14px; }
  .workspace.view-lesson #view { overflow-y: auto; }
  .workspace.view-lesson .lesson-map { min-height: 100%; justify-content: center; padding-block: 6px; }
  .workspace.view-lesson .lesson-map-extras a { flex-direction: column; gap: 4px; min-height: 66px; }
  .workspace.view-chat .chat-messages { padding: 8px 2px 14px; }
  .workspace.view-chat .chat-bubble { padding: 12px 14px; max-width: calc(100% - 43px); }
  .workspace.view-chat .chat-suggestions { scroll-padding-inline: 4px; padding: 8px 2px; }
  .workspace.view-chat .chat-form { min-height: 64px; }
  .workspace.view-animation .animation-lesson { padding-bottom: 0; }
  .workspace.view-animation .animation-actions { width: 100%; }
  .workspace.view-animation .animation-actions .button { width: min(100%, 330px); }
  .video-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 14px; }
  .video-dialog .dialog-heading { gap: 8px; }
  .video-dialog h2 { font-size: 23px; }
}

/* At the narrowest phones the result link and the optional extension word
   must have their own grid cells.  Keeping both in one centred row makes the
   two hit areas overlap around 320px wide screens. */
@media (max-width: 360px) {
  .workspace.view-record .record-counter:has([data-action="record-feedback"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 2px;
    min-height: 62px;
  }
  .workspace.view-record .record-counter:has([data-action="record-feedback"]) > span {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }
  .workspace.view-record .record-counter:has([data-action="record-feedback"]) [data-action="record-feedback"] {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-width: 0;
    white-space: nowrap;
  }
  .workspace.view-record .record-counter:has([data-action="record-feedback"]) > .extension-entry {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .workspace.view-record .record-layout { justify-content: flex-start; gap: 6px; }
  .workspace.view-record .record-art { height: clamp(58px, calc(100dvh - 550px), 145px); }
  .workspace.view-record .record-tool > .verse { margin: 2px 0 8px; }
  .workspace.view-record .record-tool > .verse.verse-compound { min-height: 102px; }
  .workspace.view-record .record-model { margin-bottom: 7px; }
  .workspace.view-record .record-review { margin: 4px 0; }
  .workspace.view-record .record-actions { min-height: 68px; }
  .workspace.view-record .record-actions .mic-button { min-height: 68px; }
  .workspace.view-record #record-controls { min-height: 72px; }
  .workspace.view-record .record-word-pager { margin: 0; }
  .workspace.view-write .writing-tool { max-width: min(100%, 270px, calc(100dvh - 330px)); }
  .workspace.view-quiz .challenge-results-actions { gap: 7px; }
  .workspace.view-lesson .lesson-map { justify-content: flex-start; gap: 10px; }
  .workspace.view-lesson .lesson-map-step { min-height: 140px; }
}

/* A phone turned sideways keeps the picture and controls alongside each other. */
@media (max-width: 1180px) and (max-height: 550px) and (orientation: landscape) {
  .workspace .lesson-bar { min-height: 66px; padding-block: 5px; margin-bottom: 5px; }
  .workspace .lesson-title h1 { font-size: 24px; }
  .workspace .lesson-title p { font-size: 16px; }
  .workspace.view-record .record-layout {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: minmax(0, 1fr) auto; gap: 2px 20px;
    height: auto; min-height: 100%; padding: 6px; max-width: none;
  }
  .workspace.view-record .record-art { height: clamp(80px, calc(100dvh - 200px), 190px); max-height: none; }
  .workspace.view-record .record-landscape { grid-column: 1; grid-row: 1 / 3; }
  .workspace.view-record .record-practice { grid-column: 2; grid-row: 1; align-self: center; }
  .workspace.view-record .record-bottom { grid-column: 2; grid-row: 2; }
  .workspace.view-record .record-counter { min-height: 36px; }
  .workspace.view-record .record-tool > .verse { min-height: 56px; margin: 2px 0 6px; }
  .workspace.view-record .record-model { margin-bottom: 6px; }
  .workspace.view-record .record-model .button { min-height: 44px; padding: 7px 11px; }
  .workspace.view-record .mic-button { flex-direction: row; min-height: 58px; font-size: 19px; gap: 14px; }
  .workspace.view-record .mic-button svg { width: 44px; height: 44px; padding: 13px; }
  .workspace.view-record .record-actions,
  .workspace.view-record #record-controls { min-height: 62px; }
  .workspace.view-record .record-tool[data-step="words"] { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 4px 12px; }
  .workspace.view-record .record-tool[data-step="words"] > .record-counter { grid-column: 1 / -1; }
  .workspace.view-record .record-tool[data-step="words"] > .record-review { grid-column: 1; grid-row: 2 / 6; align-self: center; margin: 0; }
  .workspace.view-record .record-tool[data-step="words"] > :is(.record-word-heading, .record-word-hint, .record-word-pager, .record-actions) { grid-column: 2; }
  .workspace.view-record .record-tool[data-step="words"] > .record-word-heading { flex-wrap: wrap; justify-content: center; }
  .workspace.view-record .record-tool[data-step="words"] > .record-word-hint { margin: 0; }
  .workspace.view-record .record-tool[data-step="words"] .focus-word { min-height: 100px; }
  .workspace.view-record .record-tool[data-step="words"] .focus-word ruby { font-size: 48px; }
  .workspace.view-record .record-word-pager:has(button:first-child:disabled):has(button:last-child:disabled) { display: none; }
  .workspace.view-report .report-summary { display: none; }
  .workspace.view-report .report-tabs { margin: 0 0 8px; }
  .workspace.view-report .report-next-activities { margin-top: 5px; padding-top: 5px; min-height: 48px; }
  .workspace.view-report .report-next-activities a { min-height: 44px; }
  .workspace.view-quiz .challenge-intro { padding: 14px 22px; gap: 20px; }
  .workspace.view-quiz .challenge-intro-art > img:first-child { max-height: 210px; }
  .workspace.view-quiz .challenge-intro-copy h2 { font-size: 24px; margin: 4px 0 8px; line-height: 1.4; }
  .workspace.view-quiz .challenge-intro-copy > .challenge-eyebrow { display: none; }
  .workspace.view-quiz .challenge-intro-copy > p:not(.challenge-eyebrow) { margin-bottom: 8px; font-size: 17px; line-height: 1.5; }
  .workspace.view-quiz .challenge-trip { margin: 10px 0; }
  .workspace.view-lesson .lesson-map { padding: 0; gap: 8px; }
  .workspace.view-lesson .lesson-map-hero { display: none; }
  .workspace.view-lesson .lesson-map-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workspace.view-lesson .lesson-map-step { min-height: 145px; padding: 12px; }
  .workspace.view-lesson .lesson-map-extras a { flex-direction: row; min-height: 48px; }
}

/* Portrait activity hubs use the whole panel, with large, equally sized targets. */
@media (max-width: 1024px) and (orientation: portrait) {
  .workspace.view-lesson .lesson-map {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%; min-height: 0; max-width: 760px;
    justify-content: stretch; gap: 14px; padding-block: 6px 0;
  }
  .workspace.view-lesson .lesson-map .lesson-map-hero { min-height: 46px; gap: 12px; }
  .workspace.view-lesson .lesson-map .lesson-map-hero h2 { font-size: 25px; }
  .workspace.view-lesson .lesson-map .lesson-map-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr); min-height: 0; gap: 12px;
  }
  .workspace.view-lesson .lesson-map .lesson-map-step {
    min-height: 0; padding: 20px 16px; justify-content: center;
    gap: clamp(16px, 3dvh, 30px); border-radius: 20px;
  }
  .workspace.view-lesson .lesson-map .lesson-map-step-top { margin: 0; gap: 8px; }
  .workspace.view-lesson .lesson-map .lesson-map-step-icon { width: 34px; height: 34px; }
  .workspace.view-lesson .lesson-map .lesson-map-step-icon svg { width: 31px; height: 31px; }
  .workspace.view-lesson .lesson-map .lesson-map-step h3 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.4; }
  .workspace.view-lesson .lesson-map .lesson-map-status { font-size: 18px; line-height: 1.5; margin-top: 9px; text-wrap: balance; }
  .workspace.view-lesson .lesson-map.lesson-map-lower .lesson-map-steps { grid-template-columns: minmax(0, 1fr); }
  .workspace.view-lesson .lesson-map.lesson-map-lower .lesson-map-step {
    display: grid; grid-template-columns: 64px minmax(0, 1fr);
    align-items: center; justify-content: initial; gap: 20px; padding: 18px 24px;
  }
  .workspace.view-lesson .lesson-map.lesson-map-lower .lesson-map-step-top { justify-content: center; }
  .workspace.view-lesson .lesson-map.lesson-map-lower .lesson-map-step h3 { font-size: clamp(25px, 3.8vw, 30px); }
  .workspace.view-lesson .lesson-map .lesson-map-extras { padding-top: 5px; max-width: 280px; }
  .workspace.view-lesson .lesson-map .lesson-map-extras button { min-height: 52px; font-size: 19px; }
}
@media (max-width: 360px) and (orientation: portrait) {
  .workspace.view-lesson .lesson-map { gap: 10px; }
  .workspace.view-lesson .lesson-map .lesson-map-step { padding: 12px; gap: 12px; }
  .workspace.view-lesson .lesson-map .lesson-map-step h3 { font-size: 21px; }
  .workspace.view-lesson .lesson-map .lesson-map-status { font-size: 17px; margin-top: 6px; }
  .workspace.view-lesson .lesson-map.lesson-map-lower .lesson-map-step { grid-template-columns: 49px minmax(0, 1fr); padding: 12px 15px; gap: 14px; }
  .workspace.view-lesson .lesson-map.lesson-map-lower .lesson-map-step h3 { font-size: 24px; }
}
@media (max-width: 700px) and (min-height: 701px) and (orientation: portrait) {
  .workspace.view-lesson .lesson-map .lesson-map-steps { grid-template-columns: minmax(0, 1fr); }
  .workspace.view-lesson .lesson-map .lesson-map-step {
    display: grid; grid-template-columns: 62px minmax(0, 1fr);
    align-items: center; justify-content: initial; gap: 18px; padding: 18px 22px;
  }
  .workspace.view-lesson .lesson-map .lesson-map-step-top { justify-content: center; gap: 7px; }
  .workspace.view-lesson .lesson-map .lesson-map-step-arrow { display: none; }
  .workspace.view-lesson .lesson-map .lesson-map-step h3 { font-size: 26px; }
  .workspace.view-lesson .lesson-map .lesson-map-status { margin-top: 5px; }
}
@media (max-width: 1024px) and (max-height: 700px) and (orientation: portrait) {
  .workspace.view-lesson .lesson-map { gap: 9px; padding-top: 2px; }
  .workspace.view-lesson .lesson-map .lesson-map-hero { min-height: 36px; }
  .workspace.view-lesson .lesson-map .lesson-map-hero h2 { font-size: 22px; }
  .workspace.view-lesson .lesson-map .lesson-map-steps { gap: 9px; }
  .workspace.view-lesson .lesson-map .lesson-map-step { gap: 10px; }
  .workspace.view-lesson .lesson-map .lesson-map-extras button { min-height: 46px; }
}
/* A refused microphone: say where to allow it and keep both next steps in reach (app.js recordControlsHTML). */
.workspace.view-record .record-mic-denied { text-align: center; }
.workspace.view-record .record-mic-denied .record-mic-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--red); }
.workspace.view-record .record-mic-denied .record-status { max-width: 26em; margin: 6px auto 8px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.workspace.view-record .record-mic-denied .record-actions { min-height: 52px; gap: 10px; flex-wrap: wrap; }
.workspace.view-record .record-mic-denied .record-actions .button { flex: 0 1 auto; min-width: 132px; white-space: nowrap; }
/* Phones held sideways: the panel shares the short column with the verse, so keep the buttons in view;
   聽示範 and 拼音 step aside until the microphone is fixed. */
@media (max-width: 1180px) and (max-height: 550px) and (orientation: landscape) {
  .workspace.view-record .record-tool:has(.record-mic-denied) .record-model { display: none; }
  .workspace.view-record .record-mic-denied .record-mic-title { font-size: 16px; line-height: 1.3; }
  .workspace.view-record .record-mic-denied .record-status { margin: 2px auto 4px; font-size: 15px; line-height: 1.4; }
  .workspace.view-record .record-mic-denied .record-actions { min-height: 44px; }
  .workspace.view-record .record-mic-denied .record-actions .button { min-height: 44px; padding-block: 6px; }
}

/* exploration-touch.css */
/* One observation at a time; phones separate looking from answering. */
.explore-observe-task,.explore-answer-entry,.explore-back-picture{display:none}
.shishi-touch-slot{flex:0 0 48px;width:48px;height:56px;position:relative;align-self:center}
.shishi-touch-slot .shishi-guide{position:relative;left:auto;top:auto;bottom:auto;width:48px;height:56px;z-index:35}
.shishi-touch-slot .shishi-guide-button{width:48px;height:56px;cursor:pointer;touch-action:manipulation}
.shishi-touch-slot .shishi-guide-art{width:56px;height:56px;transform-origin:50% 80%}
.shishi-touch-slot .shishi-bubble{max-height:calc(100dvh - 32px);overscroll-behavior:contain}

@media(max-width:1100px),(pointer:coarse){
 .workspace.view-explore #view{overflow:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
 .workspace.view-explore #view .explore{height:auto;min-height:100%;gap:14px;padding-bottom:10px}
 .workspace.view-explore #view .explore-heading{display:none}
 .workspace.view-explore #view .explore-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto;gap:20px;min-height:0;flex:1}
 .workspace.view-explore #view .explore-visual{height:auto;min-height:0;position:relative;flex:none}
 .workspace.view-explore #view .explore-stage{flex:1;min-height:290px;border-radius:20px;box-shadow:none}
 .workspace.view-explore #view .explore-view-controls{position:static;display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:12px 0 0}
 .workspace.view-explore #view .explore-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:100%;padding:4px;border-radius:16px}
 .workspace.view-explore #view .explore-mode button{display:flex;justify-content:center;min-height:48px;font-size:18px;padding:8px 12px;border-radius:12px}
 .workspace.view-explore #view .explore-gesture{display:none}
 .workspace.view-explore #view .explore-expand{left:auto;right:10px;top:10px;width:auto;min-height:44px;padding:9px 11px;font-size:16px!important}
 .workspace.view-explore #view .explore-expand span{display:inline}
 .workspace.view-explore #view .explore-view-label{top:auto;bottom:12px;right:12px;font-size:16px;max-width:calc(100% - 24px)}
 .workspace.view-explore #view .explore-scene-name{display:none}
 .workspace.view-explore #view .explore-model-tools{position:static;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:10px;padding:0;background:none}
 .workspace.view-explore #view .explore-presets{display:flex;flex:1;gap:8px}
 .workspace.view-explore #view .explore-presets button{flex:1;min-height:46px;font-size:17px;padding:8px}
 .workspace.view-explore #view .explore-zoom{margin:0;gap:7px;justify-content:center}
 .workspace.view-explore #view .explore-zoom button{width:46px;min-height:46px}
 .workspace.view-explore #view .explore-card{align-self:stretch;min-height:0;max-height:none;overflow:visible;border-radius:20px;padding:18px;box-shadow:none}
 .workspace.view-explore #view .explore-card-top{display:flex;margin-bottom:12px}
 .workspace.view-explore #view .explore-step{font-size:16px;letter-spacing:0}
 .workspace.view-explore #view .explore-title-row{gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
 .workspace.view-explore #view .explore-card h3{font-size:23px;line-height:1.4;margin:0}
 .workspace.view-explore #view .explore-clue{font-size:16px!important;min-height:44px;padding:8px 12px}
 .workspace.view-explore #view .explore-verse{gap:10px;min-height:68px;margin:0 0 14px;padding:10px 0}
 .workspace.view-explore #view .explore-verse>p{font-size:24px;line-height:1.7;letter-spacing:.5px;text-wrap:balance}
 .workspace.view-explore #view .explore-word{min-width:64px;min-height:62px;padding:5px 8px}
 .workspace.view-explore #view .explore-word>span{font-size:28px}
 .workspace.view-explore #view .explore-word small{font-size:15px}
 .workspace.view-explore #view .explore-question legend{font-size:21px;line-height:1.5;margin-bottom:14px}
 .workspace.view-explore #view .explore-answers{gap:12px}
 .workspace.view-explore #view .explore-answers button{font-size:20px;line-height:1.5;min-height:60px;padding:12px;border-radius:14px}
 .workspace.view-explore #view .explore-answer-dot{width:22px;height:22px}
 .workspace.view-explore #view .explore-guide{min-height:0;margin:14px 0;padding:10px 12px;background:#f1f5e9;border-radius:12px}
 .workspace.view-explore #view .explore-guide>img,.workspace.view-explore #view .explore-guide-name{display:none}
 .workspace.view-explore #view .explore-feedback{font-size:17px;line-height:1.65;min-height:0;margin:0}
 .workspace.view-explore #view .explore-next{font-size:19px;line-height:1.5;min-height:52px;padding:11px 15px;border-radius:14px;flex:none}
 .workspace.view-explore #view .explore-next:disabled{display:none}
 .workspace.view-explore #view .explore-notice,.workspace.view-explore #view .explore-loading{font-size:16px;line-height:1.5}
 .workspace.view-explore #view .explore-finish{margin:15px 0 24px}
 .workspace.view-explore #view .explore-finish p{font-size:20px;line-height:1.8;margin-top:15px}
 .workspace.view-explore #view .explore-finish>.explore-finish-shishi{width:105px;height:118px;margin:0 auto 18px}
 .workspace.view-explore #view .explore-again{font-size:18px;min-height:48px}
 .workspace.view-explore #view .explore.is-expanded .explore-layout{display:flex}
 .workspace.view-explore #view .explore.is-expanded .explore-stage{height:calc(100dvh - 270px);min-height:250px;flex:auto}
 .workspace.view-explore #view .explore.is-expanded .explore-visual{width:100%}
 .workspace.view-explore #view .explore.is-expanded .explore-card{display:none}
}

@media(max-width:820px){
 .workspace.view-explore #view .explore-layout{display:block;padding:0;flex:none}
 .workspace.view-explore #view .explore-visual{display:flex;gap:0}
 .workspace.view-explore #view .explore-observe-task{display:block;margin-bottom:14px}
 .workspace.view-explore #view .explore-observe-task>span{display:block;font-size:16px;line-height:1.4;color:#708467;margin-bottom:5px}
 .workspace.view-explore #view .explore-observe-task h3{font-size:24px;line-height:1.4;margin:0 0 7px;color:#365d49;outline:none}
 .workspace.view-explore #view .explore-observe-task p{font-size:18px;line-height:1.6;margin:0;color:#64765c}
 .workspace.view-explore #view .explore-stage{height:clamp(190px,34dvh,370px);min-height:190px;flex:none;aspect-ratio:auto}
 .workspace.view-explore #view .explore:not(.is-expanded) .explore-expand{width:44px;min-height:44px;justify-content:center;padding:10px;border-radius:14px}
 .workspace.view-explore #view .explore:not(.is-expanded) .explore-expand span{display:none}
 .workspace.view-explore #view .explore-answer-entry{display:flex;margin-top:16px}
 .workspace.view-explore #view .explore[data-mobile-step=observe] .explore-card{display:none}
 .workspace.view-explore #view .explore[data-mobile-step=question] .explore-visual{display:none}
 .workspace.view-explore #view .explore-card{position:relative;padding:16px;min-height:0}
 .workspace.view-explore #view .explore-back-picture{display:flex;align-items:center;gap:7px;min-height:44px;margin:0 0 12px;padding:6px 0;background:none;border:0;color:#527758;font-size:17px}
 .workspace.view-explore #view .explore-title-row{position:absolute;top:16px;right:16px;margin:0}
 .workspace.view-explore #view .explore-title-row h3{display:none}
 .workspace.view-explore #view .explore-verse{margin-bottom:18px}
 .workspace.view-explore #view .explore-guide{display:none}
 .workspace.view-explore #view .explore-card[data-feedback] .explore-guide{display:flex}
 .workspace.view-explore #view .explore-next:not(:disabled){margin-top:18px}
 .workspace.view-explore #view .explore-model-tools{display:grid;grid-template-columns:1fr;gap:8px}
 .workspace.view-explore #view .explore-presets{width:100%}
 .workspace.view-explore #view .explore.is-expanded .explore-observe-task,
 .workspace.view-explore #view .explore.is-expanded .explore-answer-entry{display:none}
 .workspace.view-explore #view .explore.is-expanded .explore-stage{height:calc(100dvh - 285px);min-height:240px}
}
@media(max-width:370px){
 .workspace.view-explore #view .explore-card{padding:13px}
 .workspace.view-explore #view .explore-title-row{top:13px;right:13px}
 .workspace.view-explore #view .explore-clue{font-size:16px!important;padding:7px}
 .workspace.view-explore #view .explore-verse>p{font-size:22px;letter-spacing:0}
 .workspace.view-explore #view .explore-observe-task h3{font-size:23px}
}
.workspace.view-explore #view .explore-model-tools{justify-content:center}.workspace.view-explore #view .explore-model-tools .explore-zoom{justify-self:center;margin-inline:auto}

/* challenge-revision.css */
/* Keep the original illustrated listening game, with no 3D detour. */
.workspace .challenge-shell .challenge-sound-layout {
  max-width: 760px; margin-inline: auto; padding: 12px 4px;
  grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr); gap: 34px;
}
.workspace .challenge-shell .challenge-sound-stage { flex-direction: column; gap: 18px; height: auto; min-height: 160px; }
.workspace .challenge-shell .challenge-sound-token {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 154px; min-height: 154px; padding: 20px; border: 1px solid #adc7b0;
  border-radius: 50%; color: #315d47; background: #edf5e6; box-shadow: 0 5px 0 #d5e3cd;
  font-size: 21px; line-height: 1.4; gap: 9px; touch-action: manipulation;
}
.workspace .challenge-shell .challenge-sound-token > svg { width: 42px; height: 42px; }
.workspace .challenge-shell .challenge-sound-token.is-playing { background: #dbeccb; box-shadow: 0 0 0 7px #ecf3e7; }
.workspace .challenge-shell .challenge-sound-stage .challenge-stage-note { position: static; margin: 0; font-size: 16px; color: #637b64; }
.workspace .challenge-shell .challenge-sound-work { min-width: 0; }
.workspace .challenge-shell .challenge-sound-work .challenge-prompt { text-wrap: balance; }
.workspace .challenge-shell .challenge-sound-work .challenge-audio-status { min-height: 46px; }
.workspace .challenge-shell .challenge-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 20px; border: 1px solid #b8cbb0; border-radius: 14px;
  background: #f5f8eb; color: #355e45; font-size: 18px;
}
.workspace .challenge-shell .challenge-observation-picture { display: block; width: 100%; max-height: 270px; object-fit: contain; border-radius: 18px; }
.workspace .challenge-shell .challenge-results-heading { gap: 16px; }
.workspace .challenge-shell .challenge-results-heading h2 { font-size: 29px; }
.workspace .challenge-shell .challenge-results-heading .challenge-result-detail { display: block !important; font-size: 18px !important; line-height: 1.5; color: #52684c !important; }
.workspace .challenge-shell .challenge-result-row { gap: 12px; font-size: 19px !important; min-height: 67px; padding: 9px 13px; cursor: default; }
.workspace .challenge-shell .challenge-result-number { flex-shrink: 0; width: 30px; height: 30px; font-size: 17px; }
.workspace .challenge-shell .challenge-result-knowledge { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.workspace .challenge-shell .challenge-result-row small { display: block !important; color: #52684c; font-size: 17px !important; }
.workspace .challenge-shell .challenge-result-row em { flex-shrink: 0; font-size: 18px !important; font-weight: 600; }
.workspace .challenge-shell .challenge-result-row em.needs-practice { color: #986443; }
.workspace .challenge-shell .challenge-results-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 480px; gap: 14px; margin-inline: auto; }
.workspace .challenge-shell .challenge-results-actions button { min-height: 52px; font-size: 21px; padding: 10px 14px; }
.workspace .challenge-shell .challenge-results-actions button:disabled { opacity: .55; cursor: default; }
@media (max-width: 700px) {
  .workspace .challenge-shell .challenge-sound-layout { grid-template-columns: 1fr; gap: 20px; padding: 8px 2px; }
  .workspace .challenge-shell .challenge-sound-stage { width: 100%; height: auto; min-height: 0; gap: 10px; }
  .workspace .challenge-shell .challenge-sound-token { width: 128px; min-height: 128px; font-size: 21px; padding: 16px; }
  .workspace .challenge-shell .challenge-sound-work { text-align: center; }
  .workspace .challenge-shell .challenge-sound-work .challenge-prompt { font-size: 24px; line-height: 1.45; }
  .workspace .challenge-shell .challenge-shelves { gap: 12px; }
  .workspace .challenge-shell .challenge-shelf { min-height: 86px; }
  .workspace .challenge-shell .challenge-shelf > span { font-size: 28px; }
  .workspace .challenge-shell .challenge-shelf:has(.challenge-tone) > span { font-size: 18px; }
  .workspace .challenge-shell .challenge-sound-work .challenge-audio-status { display: block; min-height: 24px; margin-top: 12px; font-size: 16px; }
  .workspace .challenge-results { justify-content: flex-start; }
  .workspace .challenge-shell .challenge-results-heading { gap: 12px; margin-bottom: 15px; }
  .workspace .challenge-shell .challenge-results-heading h2 { font-size: 27px; }
  .workspace .challenge-shell .challenge-results-heading .challenge-result-detail { font-size: 17px !important; }
  .workspace .challenge-shell .challenge-result-row { font-size: 18px !important; padding: 8px 10px; min-height: 64px; gap: 9px; }
  .workspace .challenge-shell .challenge-result-row small { font-size: 17px; }
  .workspace .challenge-shell .challenge-result-row em { font-size: 17px !important; }
  .workspace .challenge-shell .challenge-results-actions { gap: 10px; }
  .workspace .challenge-shell .challenge-results-actions button { font-size: 20px; padding-inline: 7px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .workspace .challenge-shell .challenge-sound-layout { gap: 12px; padding: 2px; }
  .workspace .challenge-shell .challenge-sound-token { width: 108px; min-height: 108px; font-size: 19px; gap: 5px; padding: 12px; }
  .workspace .challenge-shell .challenge-sound-token > svg { width: 32px; height: 32px; }
  .workspace .challenge-shell .challenge-sound-stage .challenge-stage-note { display: none; }
  .workspace .challenge-shell .challenge-sound-work .challenge-prompt { font-size: 22px; margin-bottom: 8px; }
  .workspace .challenge-shell .challenge-shelf { min-height: 72px; }
  .workspace .challenge-shell:has(.has-feedback) .challenge-sound-stage { width: 100%; height: auto; }
  .workspace .challenge-shell:has(.has-feedback) .challenge-sound-token { flex-direction: row; width: auto; min-height: 48px; padding: 8px 18px; border-radius: 28px; }
  .workspace .challenge-shell:has(.has-feedback) .challenge-sound-work .challenge-audio-status { display: none; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .workspace .challenge-shell .challenge-sound-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
  .workspace .challenge-shell .challenge-sound-token { width: 104px; min-height: 104px; padding: 12px; font-size: 18px; }
  .workspace .challenge-shell .challenge-sound-token > svg { width: 30px; height: 30px; }
  .workspace .challenge-shell .challenge-sound-stage .challenge-stage-note { display: none; }
}

/* Original sound-market artwork. Tap the walnut to listen, then tap an answer. */
.workspace .challenge-shell .challenge-sound-stage.is-walnut-market {position:relative;display:block;min-height:0;width:100%;max-width:340px;height:auto;aspect-ratio:6/5;margin-inline:auto;}
.workspace .challenge-shell .is-walnut-market .challenge-market {display:block;width:100%;height:100%;object-fit:contain;}
.workspace .challenge-shell .challenge-sound-token.is-walnut {position:absolute;left:50%;top:29%;transform:translateX(-50%);display:block;width:80px;height:116px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
.workspace .challenge-shell .challenge-sound-token.is-walnut img {display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;}
.workspace .challenge-shell .challenge-sound-token.is-walnut > svg {position:absolute;left:50%;bottom:13%;transform:translateX(-50%);width:26px;height:26px;padding:3px;border-radius:50%;background:#fff6dd;color:#624a2e;pointer-events:none;}
.workspace .challenge-shell .challenge-sound-token.is-walnut.is-playing {animation:walnut-listen .65s ease-in-out infinite alternate;background:none;box-shadow:none;}
.workspace .challenge-shell .challenge-sound-token.is-walnut:focus-visible {outline:3px solid #528b76;outline-offset:5px;}
.workspace .challenge-shell .is-walnut-market .challenge-stage-note {display:block;position:absolute;top:auto;left:8%;right:8%;bottom:17%;margin:0;color:#594027;font-size:18px;line-height:1.35;pointer-events:none;}
.workspace .challenge-shell.challenge-type-sound .challenge-shelves{gap:12px;}
.workspace .challenge-shell.challenge-type-sound .challenge-shelf{min-height:88px;cursor:pointer;touch-action:manipulation;}
.workspace .challenge-shell.challenge-type-sound .challenge-shelf>span{font-size:clamp(28px,3vw,38px);}
.workspace .challenge-shell.challenge-type-sound .challenge-shelf:has(.challenge-tone)>span{font-size:20px;}
.workspace .challenge-shell.challenge-type-sound .challenge-shelf:disabled{cursor:default;}
.workspace .challenge-shell.challenge-type-sound .challenge-shelf:focus-visible{outline:3px solid #528b76;outline-offset:3px;}
.workspace .challenge-shell.challenge-type-sound .challenge-sound-work>.challenge-audio-status{display:block;min-height:30px;font-size:19px;line-height:1.5;margin:12px 0 0;}
@keyframes walnut-listen {from {rotate:-5deg} to {rotate:5deg}}
@media(max-width:700px) {
 .workspace .challenge-shell .challenge-sound-layout {gap:10px;}
 .workspace .challenge-shell .challenge-sound-stage.is-walnut-market {width:228px;}
 .workspace .challenge-shell .challenge-sound-token.is-walnut {width:60px;height:84px;top:26%;}
 .workspace .challenge-shell .is-walnut-market .challenge-stage-note {font-size:16px;bottom:16%;}
 .workspace .challenge-shell .challenge-sound-token.is-walnut > svg {width:23px;height:23px;}
}
@media(max-width:700px) and (max-height:700px) {
 .workspace .challenge-shell .challenge-sound-stage.is-walnut-market {width:190px;}
 .workspace .challenge-shell .challenge-sound-token.is-walnut {width:48px;height:72px;top:25%;}
 .workspace .challenge-shell:has(.has-feedback) .challenge-sound-stage.is-walnut-market {width:145px;}
 .workspace .challenge-shell:has(.has-feedback) .challenge-sound-token.is-walnut {width:42px;height:54px;top:25%;}
 .workspace .challenge-shell:has(.has-feedback) .is-walnut-market .challenge-stage-note {display:none;}
}
@media(max-height:550px) and (orientation:landscape) {
 .workspace .challenge-shell .challenge-sound-stage.is-walnut-market {width:180px;}
 .workspace .challenge-shell .challenge-sound-token.is-walnut {width:48px;height:66px;top:26%;}
 .workspace .challenge-shell .is-walnut-market .challenge-stage-note {font-size:15px;}
}
@media(prefers-reduced-motion:reduce) {.workspace .challenge-shell .challenge-sound-token.is-walnut.is-playing {animation:none;}}

/* client-review.css */
/* Four clear activities and one consistent, compact poet-chat gateway. */
.workspace .lesson-map-extras{grid-template-columns:minmax(0,1fr);max-width:240px}
.workspace .lesson-map-extras button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border:0;border-radius:12px;background:transparent;color:#476b58;font:500 19px/1.5 var(--sans);cursor:pointer}
.workspace .lesson-map-extras button:hover{background:#edf3e9}
.profile-dialog{width:520px;max-height:calc(100dvh - 24px);padding:24px;border-radius:20px;overflow:auto;overscroll-behavior:contain}
.profile-dialog .dialog-heading{gap:12px;margin-bottom:18px}
.profile-dialog .dialog-heading h2{font-size:26px;line-height:1.4}
.profile-dialog label{font-size:18px}
.profile-dialog :is(input,select){border-radius:10px;min-height:50px;font-size:19px}
.profile-archive h3{font:600 23px/1.6 var(--sans);margin:0 0 14px}
.profile-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-progress>div{padding:15px 10px;border-radius:16px;background:#f0f5eb;text-align:center}
.profile-progress span{font-size:18px}.profile-progress strong{display:block;margin:8px 0;font-size:29px;line-height:1.3}
.profile-progress small{margin-left:5px;font-size:17px;font-weight:400}.profile-progress p{margin:0;font-size:17px;line-height:1.5}
.profile-result-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.profile-review-note{margin:14px 0 0;font-size:18px;line-height:1.6;color:#526b54}
.profile-result-links .button{justify-content:center;padding:10px 6px;font-size:18px;line-height:1.5;text-align:center;white-space:normal}
.profile-details{margin-top:22px;padding-top:16px;border-top:1px solid #dce5d8}
.profile-details summary{min-height:48px;font:600 19px/1.6 var(--sans);cursor:pointer}.profile-details form{padding-top:8px}
@media(max-width:360px){.profile-dialog{padding:17px}.profile-dialog .dialog-heading h2{font-size:23px}.profile-progress{gap:8px}.profile-progress span{font-size:17px}.profile-result-links{gap:8px}.profile-result-links .button{font-size:17px}}
.workspace .lesson-map-lower .lesson-map-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace .lesson-map-step h3{font-size:clamp(20px,2.2vw,26px);line-height:1.5;letter-spacing:0}
.workspace .lesson-map-status{line-height:1.6}
.workspace .lesson-menu .menu-panel{min-width:220px;max-width:calc(100vw - 32px);padding:8px}
.workspace .lesson-menu .menu-panel a{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 14px;font-size:19px;border-radius:12px}
.workspace .lesson-menu .menu-panel a[aria-current=page]{color:#276650;background:#eaf3e8;font-weight:700}
.workspace.view-quiz .lesson-title h1{font-size:clamp(23px,3vw,32px);line-height:1.3;white-space:normal}
.workspace .report-next-activities{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:center}
.workspace .report-next-activities a{min-width:0;text-align:center;white-space:normal}
.workspace .shishi-touch-slot{--shishi-width:80px;--shishi-height:112px;width:var(--shishi-width);height:calc(var(--shishi-height) + 22px);flex-basis:var(--shishi-width)}
.workspace .lesson-bar:has(.shishi-touch-slot){grid-template-columns:auto minmax(0,1fr) var(--shishi-width,80px) auto;min-height:144px;padding-block:5px}
.shishi-touch-slot .shishi-guide{width:100%;height:100%}
.shishi-touch-slot .shishi-guide-button{width:100%;height:100%;justify-content:flex-start;gap:2px;border-radius:12px;position:relative}
.shishi-touch-slot .shishi-poet-label{display:block;flex:none;font:600 15px/20px var(--sans);white-space:nowrap;color:#476b58;background:transparent;pointer-events:none}
.shishi-touch-slot .shishi-guide-art{width:var(--shishi-width);height:var(--shishi-height);transform-origin:50% 80%;animation:none!important;overflow:visible}
.shishi-touch-slot .shishi-guide-art>img{object-fit:contain;object-position:center bottom}
.shishi-poet-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:15px}
.shishi-find-poet,.shishi-poet-actions .shishi-understood{min-height:48px;margin:0;padding:10px 16px;border:1px solid #cbd9c0;border-radius:13px;font:600 18px/1.5 var(--sans);cursor:pointer}
.shishi-find-poet{flex:1;color:white;background:#356d56;border-color:#356d56}
.shishi-poet-actions .shishi-understood{background:#fffef8;font-weight:500}
.animation-pending{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;min-height:100%;padding:24px;text-align:center}
.animation-pending img{width:88px;height:88px}.animation-pending h2{font-size:28px}.animation-pending p{font-size:21px;line-height:1.6}
.workspace.view-record .record-bottom:empty{display:none}
@media(min-width:1025px){
 .workspace.view-lesson #view{display:flex;align-items:safe center;overflow-y:auto}
}
@media(max-width:420px){
 .workspace .lesson-bar{gap:8px}
 .workspace .shishi-touch-slot{--shishi-width:72px;--shishi-height:102px}
 .workspace .lesson-bar:has(.shishi-touch-slot){grid-template-columns:auto minmax(0,1fr) 72px auto;min-height:134px}
 .workspace .lesson-map-step{min-height:150px}
 .workspace .lesson-map-step h3{font-size:20px}
 .workspace .lesson-map-status{font-size:16px}
 .workspace.view-quiz .lesson-title h1{font-size:23px}
 .workspace.view-quiz .lesson-title p{font-size:16px}
}
@media(max-width:600px) and (orientation:portrait){
 .workspace .lesson-map-lower .lesson-map-steps{grid-template-columns:minmax(0,1fr);gap:12px}
 .workspace .lesson-map-lower .lesson-map-step{display:grid;grid-template-columns:62px minmax(0,1fr);min-height:112px;align-items:center;gap:14px;padding:16px 20px}
 .workspace .lesson-map-lower .lesson-map-step-top{flex-wrap:wrap;gap:5px;margin:0;justify-content:center}
 .workspace .lesson-map-lower .lesson-map-step-arrow{display:none}
 .workspace .lesson-map-lower .lesson-map-step h3{font-size:24px}
 .workspace .lesson-map-lower .lesson-map-status{margin-top:4px;font-size:18px}
 .workspace .lesson-map-lower .lesson-map-extras{padding-top:6px}
}
@media(max-width:600px) and (max-height:650px) and (orientation:portrait){
 .workspace .lesson-map-lower .lesson-map-step{min-height:94px;padding:11px 14px}
 .workspace .lesson-map-lower .lesson-map-steps{gap:9px}
}
@media(max-height:550px) and (orientation:landscape){
 .workspace .shishi-touch-slot{--shishi-width:94px;--shishi-height:76px}
 .workspace .lesson-bar:has(.shishi-touch-slot){grid-template-columns:auto minmax(0,1fr) 94px auto;min-height:82px;padding-block:2px}
 .workspace .shishi-touch-slot{height:76px}
 .shishi-touch-slot .shishi-guide-button{flex-direction:row;justify-content:center;gap:0}
 .shishi-touch-slot .shishi-guide-art{width:52px;order:0}
 .shishi-touch-slot .shishi-poet-label{order:1;font-size:13px;line-height:18px}
 .workspace .lesson-map-step{min-height:135px}
 .workspace .lesson-map-step h3{font-size:21px}
}
#school-record-sync{display:block;padding:16px;margin:12px 0 18px;background:#f1f5ed;border:1px solid #dbe5d5;border-radius:16px;text-align:left}
#school-record-sync strong{display:block;font-size:18px;line-height:1.5;color:#2c5c47}
#school-record-sync p{font-size:16px;line-height:1.65;margin:7px 0 0;color:#526453;overflow-wrap:anywhere}
#school-record-sync .button{min-height:44px;margin-top:12px;font-size:16px}

/* ar-experience.css */
/* Client-reviewed AR entry and one short observation at a time. */
.workspace.view-explore #view .explore{height:auto;min-height:100%;padding-bottom:16px;gap:14px}
.workspace.view-explore #view .explore-heading{display:none}
.workspace.view-explore #view .explore-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:auto;align-items:start;gap:24px;flex:none}
.workspace.view-explore #view .explore-visual{display:flex;height:auto;min-height:0;flex:none}
.workspace.view-explore #view .explore-stage{height:clamp(290px,50dvh,560px);min-height:290px;flex:none}
.workspace.view-explore #view .explore-view-controls{position:static;display:block;margin:14px 0 0}
.workspace.view-explore #view .explore-ar-entry{display:flex;align-items:center;justify-content:center;gap:12px;min-height:62px;width:100%;padding:13px 16px;border:1px solid #376b57;border-radius:16px;background:#477858;color:#fffef6;font-size:23px;font-weight:600;box-shadow:0 3px 0 #305d42;touch-action:manipulation}
.workspace.view-explore #view .explore-ar-entry svg{width:28px;height:28px}
.workspace.view-explore #view .explore-ar-entry:disabled{opacity:.65}
.workspace.view-explore #view .explore-card{display:flex;align-self:stretch;max-height:none;overflow:visible;padding:22px;border-radius:20px;box-shadow:none}
.workspace.view-explore #view .explore-card-top{display:flex;margin:0 0 12px}
.workspace.view-explore #view .explore-step{font-size:17px;letter-spacing:0}
.workspace.view-explore #view .explore-verse{margin:0 0 16px;padding:10px 0;gap:12px}
.workspace.view-explore #view .explore-verse>p{font-size:25px;line-height:1.65;letter-spacing:.5px}
.workspace.view-explore #view .explore-question legend{font-size:23px;line-height:1.45;margin-bottom:14px}
.workspace.view-explore #view .explore-answers{gap:12px}
.workspace.view-explore #view .explore-answers button{font-size:21px;min-height:58px;padding:12px;line-height:1.5}
.workspace.view-explore #view .explore-feedback{font-size:18px;line-height:1.6;min-height:0;margin:14px 0 0;color:#5d7156}
.workspace.view-explore #view .explore-feedback:empty{display:none}
.workspace.view-explore #view .explore-next{margin-top:18px;min-height:54px;font-size:20px;flex:none}
.workspace.view-explore #view .explore-next:disabled{display:none}
.workspace.view-explore #view .explore-notice{margin:12px 0 0;padding:11px 13px;background:#f0f3e8;border-radius:12px;font-size:17px;line-height:1.55;color:#607456}
.workspace.view-explore #view .explore-model-tools{display:flex;position:static;flex-wrap:wrap;gap:8px;background:none;padding:0;margin-top:12px}
.workspace.view-explore #view .explore-finish-mark{display:grid;place-items:center;width:70px;height:70px;margin:10px auto 18px;background:#eaf3e0;border-radius:50%;color:#477858}
.workspace.view-explore #view .explore-finish-mark svg{width:38px;height:38px}
.workspace.view-explore #view .explore-finish h3{font-size:25px;line-height:1.4;margin:0 0 12px}
.workspace.view-explore #view .explore-finish p{font-size:19px;line-height:1.7}
.workspace.view-explore #view .explore-again{font-size:19px;min-height:48px}
.workspace.view-explore #view .explore.is-expanded .explore-layout{display:block}
.workspace.view-explore #view .explore.is-expanded .explore-visual{display:flex;width:100%}
.workspace.view-explore #view .explore.is-expanded .explore-card{display:none}
.workspace.view-explore #view .explore.is-expanded .explore-stage{height:calc(100dvh - 270px);min-height:300px}
@media(max-width:820px){
 .workspace.view-explore #view .explore-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .workspace.view-explore #view .explore-stage{height:clamp(200px,29dvh,330px);min-height:200px}
 .workspace.view-explore #view .explore-card{padding:17px}
 .workspace.view-explore #view .explore-verse>p{font-size:23px;letter-spacing:0}
 .workspace.view-explore #view .explore-question legend{font-size:22px}
 .workspace.view-explore #view .explore-ar-entry{min-height:58px;font-size:22px}
 .workspace.view-explore #view .explore-view-controls{margin-top:12px}
 .workspace.view-explore #view .explore-answers button{font-size:20px;min-height:56px}
 .workspace.view-explore #view .explore-model-tools{display:flex}
}
@media(max-width:370px){
 .workspace.view-explore #view .explore-card{padding:14px}
 .workspace.view-explore #view .explore-verse>p{font-size:22px}
}

/* Model-only observation: no camera layer or system AR hand-off. */
.workspace.view-explore #view .explore-model-hint{width:100%;margin:0;color:#536d58;text-align:center;font-size:18px;line-height:1.5;text-wrap:balance}
.workspace.view-explore #view .explore-model-tools{gap:8px;margin-top:10px}
.workspace.view-explore #view .explore-zoom button{width:48px;min-height:48px}
.workspace.view-explore #view .explore-word small{font-size:17px;line-height:1.4}
.workspace.view-explore #view .explore-expand{min-height:44px;font-size:17px!important}
.workspace.view-explore #view .explore-scene-name{font-size:17px}
.workspace.view-explore #view .explore-loading,.workspace.view-explore #view .explore-image-loading p,.workspace.view-explore #view .explore-image-fallback p{font-size:18px;line-height:1.5}
.workspace.view-explore #view .explore-image-fallback button{min-height:48px;font-size:18px}
@media(min-width:660px) and (orientation:landscape) and (max-height:700px){
 .workspace.view-explore #view .explore-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px}
 .workspace.view-explore #view .explore-stage{height:clamp(220px,calc(100dvh - 230px),400px);min-height:220px}
 .workspace.view-explore #view .explore-card{padding:16px}
 .workspace.view-explore #view .explore-verse{margin-bottom:10px;padding-block:8px}
 .workspace.view-explore #view .explore-model-hint{font-size:17px}
 .workspace.view-explore #view .explore.is-expanded .explore-stage{height:calc(100dvh - 205px);min-height:220px}
}
@media(min-width:660px) and (orientation:landscape) and (max-height:480px){
 .workspace.view-explore #view .explore-stage{height:200px;min-height:200px}
 .workspace.view-explore #view .explore-card{padding:12px}
 .workspace.view-explore #view .explore-card-top{margin-bottom:8px}
 .workspace.view-explore #view .explore-verse{margin-bottom:8px;padding-block:4px}
 .workspace.view-explore #view .explore-question legend{margin-bottom:8px}
 .workspace.view-explore #view .explore-answers{gap:8px}
 .workspace.view-explore #view .explore-answers button{min-height:52px;padding:9px 12px}
 .workspace.view-explore #view .explore-zoom button{width:44px;min-height:44px}
 .workspace.view-explore #view .explore.is-expanded .explore-stage{height:calc(100dvh - 190px);min-height:200px}
}

/* poem-games/goose.css */
.poem-goose-game{width:100%;max-width:760px;margin-inline:auto;display:grid;gap:14px;color:#254a3f;font-family:inherit;min-width:0}
.poem-goose-game *{box-sizing:border-box}
.poem-goose-game .goose-instruction{display:flex;align-items:center;justify-content:space-between;gap:12px}
.poem-goose-game .goose-instruction p{font-size:clamp(19px,2.4vw,24px);font-weight:600;line-height:1.45;margin:0}
.poem-goose-game .goose-progress{font-family:inherit;font-weight:600;font-size:18px;line-height:1.2;white-space:nowrap;color:#61776b;font-variant-numeric:tabular-nums}
.poem-goose-game .goose-picture{position:relative;isolation:isolate;aspect-ratio:3/2;width:min(100%,690px);justify-self:center;overflow:hidden;border-radius:22px;background:#f2eee4;touch-action:pan-y;border:1px solid #849d8c36}
.poem-goose-game .goose-base,.poem-goose-game .goose-layer{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
.poem-goose-game .goose-layer{opacity:0;transition:opacity .75s ease}
.poem-goose-game .goose-layer.is-filled{opacity:1}
.poem-goose-game .goose-part{position:absolute;left:var(--x);top:var(--y);width:52px;height:52px;min-width:44px;min-height:44px;transform:translate(-50%,-50%);padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:#fff;z-index:2;cursor:pointer;touch-action:manipulation;box-shadow:none}
.poem-goose-game .goose-part span{display:grid;place-items:center;width:27px;height:27px;line-height:1;font-family:system-ui,sans-serif;font-size:23px;font-weight:400;border:1.5px solid #fffffff0;border-radius:50%;background:#345c4b9c;box-shadow:0 0 0 6px #ffffff2b;transition:background .2s,transform .2s}
.poem-goose-game .goose-part.is-filled span{background:#eaf3e9e8;color:#305747;font-size:18px;box-shadow:0 0 0 4px #ffffff20}
.poem-goose-game .goose-part:disabled{cursor:default}
.poem-goose-game .goose-part:focus-visible{outline:3px solid #eeae50;outline-offset:1px}
.poem-goose-game .goose-part:hover:not(:disabled) span{transform:scale(1.12)}
.poem-goose-game.is-complete .goose-part{visibility:hidden}
.poem-goose-game .goose-palette{display:flex;justify-content:center;gap:12px;padding:0 2px}
.poem-goose-game .goose-paint{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:60px;max-width:190px;flex:1;padding:10px 14px;background:#fffefb;border:1.5px solid #d8dfd4;border-radius:19px;color:#345345;font-family:inherit;font-size:23px;font-weight:600;line-height:1.2;cursor:pointer;touch-action:none;box-shadow:0 3px 0 #e6eade;transition:background .2s,border-color .2s;user-select:none;-webkit-user-select:none}
.poem-goose-game .goose-paint i{width:31px;height:31px;flex:none;display:block;border-radius:50%;background:#fffefa;border:1.5px solid #d7d3c6;box-shadow:inset 0 -3px 0 #00000008}
.poem-goose-game .goose-paint-red i{background:#bf5b46;border-color:#a94d3d}
.poem-goose-game .goose-paint-green i{background:#548b70;border-color:#477b5e}
.poem-goose-game .goose-paint[aria-pressed=true]{border-color:#4b7c64;background:#f0f7ed;box-shadow:0 0 0 2px #4b7c6420,0 3px 0 #d5e4d3}
.poem-goose-game .goose-paint b{position:absolute;right:5px;top:3px;font-size:13px;line-height:1;color:#52764f}
.poem-goose-game .goose-paint>span{white-space:nowrap}
.poem-goose-game .goose-paint:disabled{cursor:default;opacity:.68}
.poem-goose-game .goose-paint:focus-visible,.poem-goose-game .goose-loading button:focus-visible{outline:3px solid #de9b34;outline-offset:4px}
.poem-goose-game .goose-paint.is-dragging{z-index:10;opacity:.92;box-shadow:0 7px 16px #274f3829}
.poem-goose-game .goose-feedback{font-size:20px;font-weight:500;line-height:1.5;text-align:center;margin:0;min-height:1.5em;color:#4a6a59;text-wrap:pretty}
.poem-goose-game .goose-loading{position:absolute;inset:0;z-index:4;display:grid;align-content:center;justify-items:center;gap:15px;padding:20px;background:#f5f2eae8;font-size:21px;line-height:1.5;text-align:center}
.poem-goose-game .goose-loading button{min-height:48px;padding:10px 22px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;color:#254a3f;font-family:inherit;font-weight:600;font-size:20px;line-height:1.2;cursor:pointer}
.poem-goose-game .goose-caption{position:absolute;bottom:12px;right:14px;display:flex;flex-direction:column;gap:4px;padding:10px 14px;border-radius:12px;background:#fefbf0e8;color:#315240;font-family:var(--serif);font-size:clamp(18px,3vw,26px);font-weight:600;line-height:1.45;letter-spacing:.12em;pointer-events:none}
.poem-goose-game [hidden]{display:none!important}
.poem-goose-game .goose-ripple{position:absolute;z-index:1;width:32px;height:20px;border:2px solid #fffef4;box-shadow:0 0 0 7px #ffffff32;border-radius:50%;pointer-events:none;animation:goose-colour-ripple .8s ease-out forwards}
@keyframes goose-colour-ripple{from{transform:translate(-50%,-50%) scale(.5);opacity:.95}to{transform:translate(-50%,-50%) scale(3);opacity:0}}
.poem-goose-game.is-reduced-motion .goose-layer{transition:none}
.poem-goose-game.is-reduced-motion .goose-ripple{display:none}
.poem-goose-game .goose-paint{min-height:68px;font-size:25px;padding:12px 16px}
.poem-goose-game .goose-paint i{width:35px;height:35px}
/* The three colours follow the width they get, not the window: at 421–460px (large
   phones) full-size buttons were wider than the game and pushed the picture off-screen. */
.poem-goose-game .goose-palette{container-type:inline-size}
@container (max-width:430px){.poem-goose-game .goose-paint{font-size:23px;padding:10px 8px;gap:6px;border-radius:16px}.poem-goose-game .goose-paint i{width:28px;height:28px}}
@media(max-width:420px){.poem-goose-game{gap:12px}.poem-goose-game .goose-instruction{gap:8px}.poem-goose-game .goose-instruction p{font-size:19px}.poem-goose-game .goose-progress{font-size:16px}.poem-goose-game .goose-palette{gap:8px}.poem-goose-game .goose-paint{font-size:23px;min-height:66px;padding:10px 8px;gap:6px;border-radius:16px}.poem-goose-game .goose-paint i{width:28px;height:28px}.poem-goose-game .goose-feedback{font-size:19px}.poem-goose-game .goose-picture{border-radius:16px}.poem-goose-game .goose-caption{bottom:8px;right:8px;padding:8px 10px}}
@media(max-width:370px){.poem-goose-game .goose-paint{flex-direction:column;gap:5px;padding:8px 5px;font-size:21px;min-height:72px}}
@media(prefers-reduced-motion:reduce){.poem-goose-game .goose-layer,.poem-goose-game .goose-part span,.poem-goose-game .goose-paint{transition:none}.poem-goose-game .goose-ripple{display:none}}

/* poem-games/zeng.css */
.farewell-story{width:100%;max-width:760px;margin:auto;display:grid;gap:12px;color:#355346;min-width:0;font-family:inherit}.farewell-story *{box-sizing:border-box}.farewell-story button{font-family:inherit;touch-action:manipulation;cursor:pointer}.farewell-story [hidden]{display:none!important}.fs-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.fs-eyebrow{font-size:15px;letter-spacing:.13em;color:#708474}.fs-header h3{margin:2px 0 0;font-size:clamp(22px,3vw,29px);font-weight:650;line-height:1.4}.fs-progress{font-size:19px;white-space:nowrap;color:#69816b;font-variant-numeric:tabular-nums}.fs-stage{position:relative;isolation:isolate;aspect-ratio:3/2;border-radius:20px;overflow:hidden;background:#ecebd6;border:1px solid #c7d0b8}.fs-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.fs-boat{--boat-x:67%;--boat-y:83%;position:absolute;left:var(--boat-x);top:var(--boat-y);width:38%;padding:0;border:0;background:none!important;transform:translate(-50%,-50%);z-index:3;transition:left .7s ease,top .7s ease;touch-action:none!important;box-shadow:none!important;opacity:1!important}.fs-boat:active{transition:none}.fs-boat img{display:block;width:100%;height:auto;pointer-events:none;user-select:none}.farewell-story[data-placed=true] .fs-boat{--boat-x:62%;--boat-y:63%;cursor:default}.farewell-story[data-complete=true] .fs-boat{--boat-x:76%;--boat-y:59%}.farewell-story[data-selected=true] .fs-boat{filter:drop-shadow(0 0 5px #fffbce)}.fs-dock{position:absolute;left:62%;top:67%;transform:translate(-50%,-50%);width:27%;height:16%;min-height:44px;border-radius:50%;border:2px dashed #fff9d7;background:#ffffe648;color:#38614f;z-index:2;box-shadow:0 0 22px #fffbdc8c;display:grid;place-items:center}.fs-dock span{white-space:nowrap;background:#fff9e9ed;border-radius:18px;padding:4px 10px;font-size:17px}.fs-dock:disabled{opacity:.65}.fs-waterlight{position:absolute;left:46%;top:60%;width:43%;height:25%;border-radius:50%;background:radial-gradient(ellipse,#fff3c465,transparent 70%);opacity:0;transition:opacity 1s;pointer-events:none}.farewell-story[data-complete=true] .fs-waterlight{opacity:1}.fs-friend{position:absolute;left:27%;top:70%;transform:translateX(-50%);padding:2px 8px;background:#fffbe7da;border-radius:12px;font-size:14px;color:#436249}.fs-note{position:absolute;right:4%;top:6%;background:#fff9e8ef;border:1px solid #d9d0af77;border-radius:17px;padding:10px 14px;font:600 clamp(22px,3vw,29px)/1.5 var(--serif,serif);text-align:center}.fs-note span{font-size:.66em;letter-spacing:.08em}.fs-loading{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:14px;background:#f4f0dfeb;z-index:8;font-size:20px;text-align:center;padding:20px}.fs-loading button{min-height:48px;background:#fffdf2;border:1px solid #bbc9b5;color:#36543e;border-radius:15px;padding:8px 20px;font-size:20px}.fs-verse{margin:0;text-align:center;font-size:clamp(25px,4vw,33px);font-weight:600;line-height:1.4;letter-spacing:.09em}.fs-task{margin:0;text-align:center;font-size:19px;line-height:1.45;color:#60755f;text-wrap:pretty}.fs-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.fs-actions button{min-height:52px;border:1px solid #bfcdb9;border-radius:16px;padding:10px 18px;font-size:21px;font-weight:600;background:#fffdf4;color:#355943;display:inline-flex;align-items:center;justify-content:center;gap:9px}.fs-actions button svg{width:23px;height:23px;flex:none}.fs-actions .fs-next{background:#446d50;color:#fffdf1;border-color:#446d50}.fs-actions button:disabled{opacity:.62}.fs-feedback{margin:0;min-height:2.8em;font-size:18px;line-height:1.45;text-align:center;text-wrap:pretty;color:#55715a}.fs-rhythm{display:grid;gap:10px}.fs-beats{display:flex;gap:13px;justify-content:center}.fs-beats i{width:12px;height:12px;border:2px solid #b8c6ac;border-radius:50%;background:#f5f4e5}.fs-beats i.is-done{background:#548468;border-color:#548468}.fs-feet{display:flex;justify-content:center;gap:14px}.fs-feet button{display:flex;align-items:center;justify-content:center;gap:12px;width:40%;max-width:210px;min-height:64px;border:1px solid #c2cfb9;border-radius:19px;background:#eff4e7;color:#355942;font-size:24px;font-weight:600;transition:background .12s,transform .12s;opacity:1!important}.fs-feet button:last-child{background:#fbefe1;color:#805b43;border-color:#dec9af}.fs-feet button span{font-size:32px;line-height:1}.fs-feet button.is-sounding{background:#476f50!important;color:#fff!important;transform:translateY(3px);box-shadow:0 0 0 4px #c5d9b89e}.fs-feet button:disabled{cursor:default}.fs-compose{display:grid;gap:12px}.fs-line{display:flex;gap:7px;justify-content:center;align-items:center;font-size:24px}.fs-line b{font-weight:500}.fs-slot{min-width:58px;min-height:48px;padding:6px;border:1px dashed #becdb9;border-radius:10px;display:grid;place-items:center;color:#91a28e;background:#f4f5e9}.fs-slot.is-next{border-color:#5d8764;background:#eef5e7}.fs-slot.is-filled{color:#355b40;background:#e7f0df;border-style:solid}.fs-tickets{display:flex;justify-content:center;gap:11px}.fs-tickets button{border:1px solid #d7c9ac;border-radius:13px 13px 18px 18px;padding:9px 16px;min-width:66px;min-height:52px;background:#fff5dd;color:#74573e;font-size:24px;font-weight:600;box-shadow:0 3px 0 #e1d7bd;opacity:1}.fs-tickets .is-used{visibility:hidden}.farewell-story button:focus-visible{outline:3px solid #bf924d;outline-offset:3px}.farewell-story.is-reduced-motion *{transition:none!important;animation:none!important}@media(max-width:420px){.farewell-story{gap:10px}.fs-stage{border-radius:16px}.fs-header h3{font-size:22px}.fs-eyebrow{font-size:14px}.fs-verse{font-size:24px;letter-spacing:.04em}.fs-task{font-size:18px}.fs-feedback{font-size:17px}.fs-actions{gap:9px}.fs-actions button{font-size:20px;min-height:50px;padding:9px 15px}.fs-friend{font-size:12px}.fs-dock span{font-size:15px}.fs-note{padding:7px 10px}.fs-slot{min-width:51px;font-size:22px}.fs-tickets button{font-size:22px;padding:8px 14px}.fs-feet button{min-height:60px;font-size:23px}}@media(prefers-reduced-motion:reduce){.farewell-story *{transition:none!important;animation:none!important}}
.challenge-freeplay .fs-eyebrow{display:none}.farewell-story .fs-feedback:empty{display:none}
.fs-control-panel{display:flex;flex-direction:column;min-width:0;gap:12px}
.fs-activity{display:flex;flex-direction:column;gap:14px;min-width:0;padding:16px;border:1px solid #dce5ce;border-radius:20px;background:#f3f6e9}
.fs-activity .fs-verse{font-size:28px;line-height:1.5;letter-spacing:0;color:#305c49}
.fs-activity .fs-task{font-size:20px;line-height:1.45}
.fs-control-panel .fs-rhythm,.fs-control-panel .fs-compose{display:flex;flex-direction:column;gap:16px}
.fs-control-panel .fs-beats i{display:grid;place-items:center;width:36px;height:36px;font:500 20px/1 var(--sans);font-style:normal;color:#64826a}
.fs-control-panel .fs-beats i.is-done{color:white}
.fs-control-panel .fs-feedback:empty{display:none}
@media(max-width:700px){.farewell-story .fs-stage{grid-row:1}.fs-control-panel{grid-row:2}.fs-control-panel .fs-eyebrow{display:none}.fs-control-panel .fs-activity{gap:12px;padding:14px}.fs-control-panel .fs-header h3{font-size:24px}.fs-control-panel .fs-activity .fs-verse{font-size:27px}.fs-control-panel .fs-task{font-size:20px}.fs-control-panel .fs-feedback{font-size:19px}.fs-control-panel .fs-feet button{min-height:76px;font-size:27px}.fs-control-panel .fs-tickets button{font-size:28px;min-height:64px;padding-inline:12px}.fs-control-panel .fs-slot{font-size:25px;min-height:54px;min-width:50px}.fs-control-panel .fs-actions button{flex:1;min-height:54px;font-size:21px}}

/* poem-games/views.css */
.poem-view-game{width:100%;max-width:860px;margin:0 auto;color:#284e42;font-family:var(--sans);display:flex;flex-direction:column;gap:14px;min-width:0}
.pvg-heading{text-align:center}.pvg-kicker{font-size:16px;letter-spacing:.1em;color:#7f7963}.pvg-heading h3{margin:6px 0 0;font:600 clamp(21px,2.4vw,27px)/1.45 var(--sans)}
.pvg-stage{position:relative;width:100%;aspect-ratio:3/2;max-height:430px;overflow:hidden;background:#e7eee5;border-radius:18px;isolation:isolate;box-shadow:0 2px 12px #455b3810;flex-shrink:0}
.pvg-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;pointer-events:none}
.spring-near{will-change:opacity,transform}.spring-far{will-change:transform}.pvg-location{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);max-width:95%;border:1px solid #e6ddc5a0;border-radius:30px;padding:6px 14px;background:#fffdf2eb;font-size:17px;line-height:1.4;white-space:nowrap;pointer-events:none}
.pvg-viewfinder{position:absolute;inset:13% 14%;pointer-events:none}.pvg-viewfinder i{position:absolute;width:28px;height:28px;border:3px solid #fffffa;filter:drop-shadow(0 1px 3px #42534966)}.pvg-viewfinder i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0}.pvg-viewfinder i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0}.pvg-viewfinder i:nth-child(3){bottom:0;left:0;border-top:0;border-right:0}.pvg-viewfinder i:nth-child(4){bottom:0;right:0;border-top:0;border-left:0}
.pvg-shutter{position:absolute;inset:0;background:white;opacity:0;pointer-events:none}.is-snapping .pvg-shutter{animation:pvg-shutter .32s ease-out}@keyframes pvg-shutter{0%{opacity:.7}100%{opacity:0}}
.pvg-camera-control{display:flex;align-items:center;gap:14px;padding:2px 8px;font-size:19px;white-space:nowrap}.pvg-camera-control input{width:100%;min-width:35px;height:48px;accent-color:#4b785f;touch-action:pan-y;cursor:ew-resize}
.pvg-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.pvg-actions button,.pvg-retry{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #adc6ae;border-radius:14px;background:#fffef7;color:#365f4b;font:500 20px/1.4 var(--sans);min-height:52px;padding:11px 20px;cursor:pointer;touch-action:manipulation}.pvg-actions svg{width:25px;height:25px;flex:none}.pvg-actions .pvg-main{background:#3b7056;color:#fffef7;border-color:#3b7056}.pvg-actions button:disabled{opacity:.5;cursor:default}.pvg-actions button:focus-visible,.poem-view-game input:focus-visible,.rain-spot:focus-visible,.rain-cloud:focus-visible{outline:3px solid #d6a865;outline-offset:3px}
.pvg-photo-tray{display:flex;justify-content:center;gap:16px}.pvg-photo-tray figure{display:flex;align-items:center;gap:9px;margin:0;padding:7px 10px 7px 7px;border:1px dashed #bccbb5;border-radius:12px;background:#f3f5ee;opacity:.45;min-width:0}.pvg-photo-tray figure.is-collected{border-style:solid;opacity:1;background:#fffef8}.pvg-photo-tray img{width:68px;aspect-ratio:3/2;object-fit:cover;border-radius:5px;filter:grayscale(1)}.pvg-photo-tray .is-collected img{filter:none}.pvg-photo-tray figcaption{font-size:18px;line-height:1.4}
.pvg-status{min-height:1.6em;text-align:center;font-size:18px;line-height:1.6;margin:0;color:#65705c}.pvg-retry{align-self:center}
.rain-dry-veil{position:absolute;inset:0;background:#ae98774d;mix-blend-mode:color;opacity:calc(1 - var(--rain-progress,0));pointer-events:none;transition:opacity .8s}.rain-cloud{position:absolute;top:18%;left:50%;transform:translate(-50%,-50%);width:100px;height:78px;border:0;background:transparent;filter:drop-shadow(0 4px 5px #41656622);cursor:grab;touch-action:none;z-index:3;padding:0}.rain-cloud svg{width:100%;height:100%}.rain-cloud:active{cursor:grabbing}
.rain-spot{position:absolute;left:var(--spot-x);top:68%;transform:translate(-50%,-50%);width:82px;height:60px;border:1px solid #fffdf8;background:#fffdf0cc;border-radius:50%;color:#466c60;font:500 18px/1.4 var(--sans);cursor:pointer;box-shadow:0 0 0 6px #f9fff730;touch-action:manipulation}.rain-spot.is-watered{opacity:.28;background:#b6d5bf}.rain-spot.is-watered span{visibility:hidden}.rain-progress{position:absolute;top:12px;right:12px;background:#fffdf2e6;border-radius:20px;padding:5px 11px;font-size:16px;pointer-events:none}
.poem-view-game [hidden]{display:none!important}
@media(max-width:500px){.poem-view-game{gap:11px}.pvg-heading h3{font-size:22px}.pvg-stage{border-radius:14px}.pvg-camera-control{gap:8px;font-size:17px;padding:0}.pvg-actions{gap:9px}.pvg-actions button{font-size:18px;min-height:50px;padding:10px 14px}.pvg-location{font-size:14px;padding:5px 10px;bottom:8px}.pvg-photo-tray{gap:8px}.pvg-photo-tray figure{gap:6px;padding:6px}.pvg-photo-tray img{width:48px}.pvg-photo-tray figcaption{font-size:16px}.pvg-status{font-size:17px}.rain-cloud{width:80px;height:62px}.rain-spot{width:65px;height:50px;font-size:16px}.rain-progress{font-size:14px}}
.spring-near{transition:opacity .9s cubic-bezier(.22,.8,.25,1),transform .9s cubic-bezier(.22,.8,.25,1)}.spring-far{transition:transform .9s cubic-bezier(.22,.8,.25,1)}
.rain-spot{padding:0;white-space:nowrap}
.rain-spot.is-watered i{position:absolute;inset:-38px 8px 6px;background:repeating-linear-gradient(108deg,transparent 0 13px,#bce4e9 14px 16px,transparent 17px 28px);clip-path:polygon(0 0,100% 0,88% 100%,0 100%);pointer-events:none;animation:pvg-rain .7s ease-out both}
@keyframes pvg-rain{0%{opacity:.9;transform:translateY(-14px)}100%{opacity:0;transform:translateY(15px)}}
.challenge-type-microgame .pvg-kicker{display:none}
@media(max-width:500px) and (max-height:740px){.challenge-type-microgame .poem-view-game{gap:8px}.challenge-type-microgame .pvg-stage{max-height:145px}.challenge-type-microgame .pvg-heading h3{font-size:20px;margin-top:0}.challenge-type-microgame .pvg-camera-control input{height:44px}.challenge-type-microgame .pvg-status{font-size:16px}.challenge-type-microgame .pvg-photo-tray img{width:36px}.challenge-type-microgame .pvg-photo-tray figure{padding:4px}.rain-spot{height:44px}.rain-cloud{width:64px;height:50px}}
.poem-view-game[data-assets=loading] .pvg-stage::after,.poem-view-game[data-assets=error] .pvg-stage::after{content:'小畫卷正在展開…';position:absolute;inset:0;z-index:5;display:grid;place-content:center;padding:20px;background:#e9eee1;color:#55705c;font-size:19px;text-align:center}
.poem-view-game[data-assets=error] .pvg-stage::after{content:'畫卷還沒打開，請在下方重試。'}
@media(prefers-reduced-motion:reduce){.is-snapping .pvg-shutter,.rain-spot.is-watered i{animation:none}.rain-dry-veil,.mountain-end,.spring-near{transition:none}}
.mountain-stage{background:radial-gradient(ellipse at 50% 82%,#d5ddd04d,transparent 68%),linear-gradient(#e9f0ee,#f9f8ee);touch-action:pan-y;cursor:ew-resize}
.mountain-model{position:absolute;inset:0}.mountain-model canvas{display:block;width:100%;height:100%;touch-action:pan-y}
.mountain-loading{position:absolute;inset:0;z-index:4;display:grid;place-content:center;margin:0;padding:24px;background:#ecf1e9e8;text-align:center;font-size:19px;color:#4a685c}
.pvg-photo-image{display:grid;place-items:center;flex:none;width:68px;aspect-ratio:3/2;border-radius:5px;background:#e7ede1;overflow:hidden}.pvg-photo-image svg{width:24px;height:24px;color:#81947e}.pvg-photo-image img{display:block;width:100%;height:100%;object-fit:contain;background:linear-gradient(#e9f0ee,#f9f8ee)}
@media(max-width:500px){.pvg-photo-image{width:48px}.mountain-game .pvg-camera-control{font-size:16px}.mountain-game .pvg-stage{min-height:175px}}
@media(max-width:500px) and (max-height:740px){.challenge-type-microgame .mountain-game .pvg-stage{min-height:170px}.challenge-type-microgame .pvg-photo-image{width:36px}}
@media(prefers-reduced-motion:reduce){.spring-far,.spring-near{transition:none!important;transform:none!important}}

/* poem-games/garden-river.css */
.poem-garden,.poem-river{--gr-ink:#294c3b;--gr-leaf:#527955;max-width:900px;width:100%;margin-inline:auto;color:var(--gr-ink)}
.gr-instruction{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.gr-instruction p{margin:0;font-size:clamp(18px,2.3vw,23px);line-height:1.45;font-weight:650}.gr-count{flex:none;min-width:64px;text-align:center;padding:5px 10px;border-radius:18px;background:#edf3e7;font-size:18px;font-variant-numeric:tabular-nums;color:#3c6447}
/* overflow:clip (hidden for old Safari): a hidden frame can still be scrolled when a hotspot inside it is focused or scrolled into view, which slid the painting inside its frame. */
.gr-picture{position:relative;isolation:isolate;width:100%;aspect-ratio:3/2;overflow:hidden;overflow:clip;border-radius:20px;background:#d9d8c1;border:1px solid #d2d9c4;box-shadow:0 6px 20px #2c443110}.gr-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}.gr-actionline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.gr-method{font-size:clamp(16px,2vw,18px);line-height:1.5;color:#54705a}.gr-audio{font:inherit;font-size:17px;flex:none;min-height:44px;padding:8px 14px;border:1px solid #c6d6be;background:#f4f8ef;color:#355c3b;border-radius:22px;cursor:pointer;touch-action:manipulation}.gr-audio:before{content:'♪';margin-right:6px;font-size:21px}.gr-feedback{min-height:2.9em;font-size:clamp(17px,2vw,20px);line-height:1.55;margin:10px 0 0;text-align:center}.gr-loading{position:absolute;inset:0;z-index:130;background:#f7f8edd9;display:flex;align-items:center;justify-content:center;gap:14px;flex-direction:column;font-size:19px}.gr-loading[hidden]{display:none}.gr-loading button{font:inherit;color:#365c3d;min-height:44px;border:1px solid #bdceb7;border-radius:16px;padding:8px 20px;background:#fff}.poem-garden button:focus-visible,.poem-river button:focus-visible{outline:3px solid #176b50;outline-offset:3px}
.garden-plant{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:auto;aspect-ratio:800/870;min-width:44px;min-height:44px;transform:translate(-50%,calc(-100% + var(--lift,0px)));z-index:var(--depth);padding:0;border:0;border-radius:45%;background:none;touch-action:none;cursor:grab;transition:opacity .36s ease,filter .2s ease;filter:drop-shadow(0 5px 3px #24301c30);-webkit-tap-highlight-color:transparent}.garden-plant img{display:block;width:100%;height:100%;object-fit:contain;transform:rotate(var(--turn));transform-origin:50% 95%;pointer-events:none;user-select:none}.garden-plant:hover:not(:disabled){filter:drop-shadow(0 0 5px #f4f1b1)}.garden-plant.is-bean{width:calc(var(--size) * .88);z-index:20}.garden-plant.is-weed{z-index:calc(var(--depth) + 30)}.garden-plant:disabled{opacity:1}.garden-plant.is-pulled{pointer-events:none;opacity:0;transform:translate(-50%,calc(-100% - 45px)) rotate(12deg);transition:transform .48s cubic-bezier(.18,.7,.23,1),opacity .38s ease}.garden-root{position:absolute;left:45%;bottom:-1%;width:10%;height:5%;border-radius:50%;background:#5b4c3133;filter:blur(1px);pointer-events:none}.garden-plant.is-shaking img{animation:garden-careful .48s ease}.garden-moonlight{position:absolute;inset:0;z-index:110;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 74% 15%,#fffac147,transparent 56%);transition:opacity 1.2s}.poem-garden.is-done .garden-moonlight{opacity:1}.garden-end{position:absolute;left:18%;right:18%;top:20%;z-index:115;display:grid;gap:3px;text-align:center;color:#354b33;text-shadow:0 1px 8px #fffde6;background:#f7f2dcca;border:1px solid #fff9d994;border-radius:15px;padding:10px 12px;animation:gr-appear .55s ease}.garden-end[hidden]{display:none}.garden-end span{font-family:var(--serif,'Noto Serif HK',serif);font-size:clamp(22px,4vw,34px);letter-spacing:.12em}.garden-end small{font-size:clamp(15px,2vw,19px)}
/* The closing line is sized by the picture, not the window: on a phone held sideways the
   picture is small and 「帶月荷鋤歸」 wrapped and pushed its explanation out of the card. */
.gr-picture{container-type:inline-size}.garden-end span{font-size:clamp(18px,min(4vw,9cqw),34px)}.garden-end small{font-size:clamp(13px,min(2vw,4.6cqw),19px)}.poem-garden.is-readonly .garden-plant{cursor:default}
/* Keep transparent image margins from stealing taps from a neighbouring plant. */
.garden-plant{pointer-events:none}.garden-plant::after{content:'';position:absolute;inset:10% 6% 0;border-radius:44%;pointer-events:auto}.garden-plant:disabled::after,.garden-plant.is-pulled::after{pointer-events:none}
.garden-plant{transform:translate3d(calc(-50% + var(--sway,0px)),calc(-100% + var(--lift,0px)),0);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-garden .garden-plant,.garden-plant::after{touch-action:none}.garden-plant.is-pulling{z-index:125;cursor:grabbing;will-change:transform}
.garden-plant.is-pulled{transform:translate3d(-50%,calc(-100% - var(--pull-distance,65px)),0) rotate(12deg)}
.river-picture{touch-action:pan-y;cursor:crosshair}.river-picture.is-painting{touch-action:none}.river-waiting{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.river-wind{position:absolute;left:var(--x);top:var(--y);z-index:5;transform:translate(-50%,-50%);display:grid;place-items:center;gap:0;min-width:48px;min-height:48px;padding:5px 11px;border:1px solid #fffdeaaa;border-radius:24px;background:#fffdebdf;color:#4a6650;box-shadow:0 3px 9px #32483622;font:inherit;font-size:15px;cursor:pointer;touch-action:manipulation}.river-wind svg{width:21px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.river-wind.is-green{opacity:0;pointer-events:none;transition:opacity .4s}.river-wind:disabled{cursor:default}.river-moon{position:absolute;left:74.7%;top:14.3%;z-index:8;transform:translate(-50%,-50%);width:9%;aspect-ratio:1;min-width:44px;min-height:44px;border:0;border-radius:50%;background:transparent;box-shadow:0 0 0 2px #fff7c3b8,0 0 18px 9px #fff4b574;cursor:pointer;animation:river-moon-call 1.8s ease-in-out infinite}.river-moon[hidden]{display:none}.river-moon span{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);padding:3px 8px;border-radius:12px;white-space:nowrap;font:inherit;font-size:16px;color:#4b584d;background:#fff9dbdd}.river-moonlight{position:absolute;inset:0;pointer-events:none;z-index:3;opacity:0;transition:opacity 1s;background:radial-gradient(ellipse at 74.7% 14.3%,#fff7ba50,transparent 52%)}.poem-river.is-done .river-moonlight{opacity:1}.river-verse{position:absolute;left:18%;right:16%;bottom:14%;z-index:6;text-align:center;color:#2f5147;font:clamp(20px,4vw,35px)/1.5 var(--serif,'Noto Serif HK',serif);padding:8px 10px;background:#ffffeddd;border:1px solid #fdfbedbc;border-radius:16px;letter-spacing:.07em;text-shadow:0 1px 5px white;animation:gr-appear .5s ease}.river-verse[hidden]{display:none}.river-brush{position:absolute;z-index:10;pointer-events:none;width:14%;aspect-ratio:1;border:1px solid #fffaf0;border-radius:50%;box-shadow:0 0 0 2px #6b976840;background:#f8ffee15;transform:translate(-50%,-50%)}.river-brush[hidden]{display:none}
@keyframes garden-careful{0%,100%{transform:rotate(var(--turn))}25%{transform:rotate(calc(var(--turn) - 5deg))}70%{transform:rotate(calc(var(--turn) + 5deg))}}@keyframes gr-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes river-moon-call{50%{box-shadow:0 0 0 4px #fff7c38a,0 0 23px 12px #fff4b592}}
@media(max-width:500px){.gr-instruction{gap:8px}.gr-instruction p{font-size:18px}.gr-count{min-width:54px;padding:4px 7px;font-size:16px}.gr-picture{border-radius:15px}.gr-actionline{gap:7px}.gr-method{font-size:16px}.gr-audio{font-size:16px;padding:8px 10px}.gr-feedback{font-size:17px;text-align:left}.garden-end{left:14%;right:14%;top:14%;padding:6px 10px}.garden-end span{font-size:23px}.garden-end small{font-size:15px}.river-wind{font-size:14px;padding:4px 8px}.river-verse{left:9%;right:9%;bottom:15%;font-size:23px}.river-moon span{font-size:15px}.garden-plant{min-width:44px}}
@media(prefers-reduced-motion:reduce){.garden-plant,.garden-moonlight,.river-moonlight,.river-wind{transition:none}.garden-plant.is-shaking img,.garden-end,.river-verse,.river-moon{animation:none}}

/* Three chapters of the river game; scoped so the garden keeps its own layout. */
.journey-river .river-wind,.journey-river .rj-stops{display:none!important}
.journey-river{display:grid;gap:12px;max-width:760px}.journey-river *{box-sizing:border-box}.journey-river [hidden]{display:none!important}.journey-river button{font-family:inherit;touch-action:manipulation}.rj-header{display:flex;justify-content:space-between;gap:10px;align-items:center}.rj-header>div>span{font-size:15px;letter-spacing:.13em;color:#708474}.rj-header h3{margin:2px 0 0;font-size:clamp(22px,3vw,29px);font-weight:650;line-height:1.4}.rj-progress{font-size:19px;white-space:nowrap;font-weight:500;color:#69816b;font-variant-numeric:tabular-nums}.journey-river .gr-picture{box-shadow:none;cursor:default}.journey-river .gr-picture.is-painting{cursor:crosshair}.journey-river[data-chapter="0"] .river-waiting{visibility:hidden}.journey-river .river-moon{animation:none;touch-action:none}.rj-boat-target{position:absolute;left:43%;top:77%;transform:translate(-50%,-50%);width:35%;height:17%;min-height:48px;padding:0;z-index:9;border:2px dashed #fff9d0;border-radius:50%;background:#fff6c522;cursor:pointer;box-shadow:0 0 18px #fff4c844}.rj-boat-target span{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:17px;padding:3px 9px;border-radius:12px;background:#fff9e5ec;color:#42604d}.journey-river[data-berthed="true"][data-chapter="0"] .rj-boat-target{border-style:solid;border-color:#709778;background:#e8f5cd15}.rj-boat-target:disabled{opacity:.72;cursor:default}.rj-light-path{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;opacity:0;transition:opacity .5s}.rj-light-path path{fill:none;stroke:#fff8caa8;stroke-width:.8;stroke-dasharray:1.5 2.4;stroke-linecap:round}.journey-river[data-chapter="2"] .rj-light-path{opacity:1}.journey-river.is-done .rj-light-path{opacity:0}.rj-moving-light{position:absolute;width:16%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#fff4c1a0,#fff2c031 44%,transparent 70%);pointer-events:none;z-index:11}.journey-river.is-light-selected .rj-boat-target{box-shadow:0 0 24px #ffeecb99;border-style:solid}.journey-river .river-verse{top:14%;bottom:auto;left:28%;right:5%;font-size:clamp(23px,3vw,30px);padding:9px 12px;letter-spacing:.08em;background:#ffffebdf}.journey-river .river-verse small{font-family:inherit;font-size:.64em;letter-spacing:.04em}.rj-verse{margin:0;text-align:center;font-size:clamp(25px,4vw,33px);font-weight:600;line-height:1.4;letter-spacing:.09em}.rj-task{margin:0;text-align:center;font-size:19px;line-height:1.45;color:#60755f;text-wrap:pretty}.rj-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.journey-river .gr-audio,.rj-next{min-height:52px;border:1px solid #bfcdb9;border-radius:16px;padding:10px 18px;font-size:21px;font-weight:600;background:#fffdf4;color:#355943;cursor:pointer;line-height:1.3}.rj-next{background:#446d50;border-color:#446d50;color:#fffdf1}.journey-river .gr-audio:disabled{opacity:.62}.rj-stops{display:flex;justify-content:center;gap:10px}.rj-stops span{font-size:17px;padding:4px 10px;border-radius:20px;color:#89987d;background:#edf0e4;transition:background .3s,color .3s}.rj-stops span::before{content:'○';margin-right:5px}.rj-stops span.is-green{color:#3c6c44;background:#e1edcf}.rj-stops span.is-green::before{content:'✓'}.journey-river .gr-feedback{margin:0;min-height:2.8em;font-size:18px;line-height:1.45;text-align:center;color:#55715a;text-wrap:pretty}.journey-river.is-reduced-motion *{animation:none!important;transition:none!important}@media(max-width:420px){.journey-river{gap:10px}.rj-header h3{font-size:22px}.rj-header>div>span{font-size:14px}.rj-verse{font-size:24px;letter-spacing:.04em}.rj-task{font-size:18px}.journey-river .gr-feedback{font-size:17px}.journey-river .gr-audio,.rj-next{font-size:20px;padding:9px 15px;min-height:50px}.rj-boat-target span,.rj-stops span{font-size:15px}.rj-stops{gap:7px}.rj-stops span{padding:4px 8px}.journey-river .river-verse{left:24%;right:4%;font-size:22px}.journey-river .river-moon span{font-size:15px}}
.challenge-type-microgame .rj-header>div>span{display:none}.journey-river .rj-boat-target span{top:80%}

/* poem-games/river-puzzle.css */
.river-puzzle-game{width:100%;max-width:900px;margin-inline:auto;color:#294d43;font-family:var(--sans);display:flex;flex-direction:column;gap:12px;min-width:0}
.river-puzzle-heading{display:flex;align-items:end;justify-content:space-between;gap:14px}.river-puzzle-heading span{display:block;color:#7b765f;font-size:17px;line-height:1.35}.river-puzzle-heading h3{margin:2px 0 0;font:650 clamp(23px,3vw,30px)/1.35 var(--sans);letter-spacing:0}.river-puzzle-heading b{flex:none;min-width:72px;padding:6px 12px;border-radius:18px;background:#edf3e7;color:#41654e;text-align:center;font-size:18px;font-variant-numeric:tabular-nums}
.river-puzzle-work{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(220px,.72fr);align-items:center;gap:18px;min-width:0}.river-puzzle-board{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;width:100%;aspect-ratio:3/2;overflow:hidden;border:1px solid #bccbb8;border-radius:16px;background-color:#e5ece3;background-image:none;background-position:center;background-size:cover;box-shadow:0 5px 18px #34513e14}.river-puzzle-board::after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px #fff9}
.river-puzzle-slot{position:relative;z-index:1;min-width:44px;min-height:44px;overflow:hidden;padding:0;border:1px dashed #66816d78;background:#fffdf159;color:#506d5c;cursor:pointer;touch-action:manipulation}.river-puzzle-slot.has-piece{touch-action:none}.river-puzzle-slot:first-child{border-top-left-radius:14px}.river-puzzle-slot:nth-child(3){border-top-right-radius:14px}.river-puzzle-slot:nth-child(4){border-bottom-left-radius:14px}.river-puzzle-slot:nth-child(6){border-bottom-right-radius:14px}.river-puzzle-slot:hover:not(:disabled),.river-puzzle-slot.is-drop-target{z-index:3;border-color:#d39a49;background:#fff7d88a;box-shadow:inset 0 0 0 3px #f4c86c}.river-puzzle-slot:focus-visible,.river-puzzle-piece:focus-visible,.river-puzzle-actions button:focus-visible{z-index:5;outline:3px solid #176b50;outline-offset:-4px}.river-puzzle-slot:disabled{cursor:default}.river-slot-number{display:grid;place-items:center;width:100%;height:100%;font:600 clamp(20px,3vw,28px)/1 var(--sans);color:#61786670}
.river-puzzle-piece{--piece-position:0 0;display:block;background-image:var(--river-art);background-repeat:no-repeat;background-size:300% 200%;background-position:var(--piece-position);-webkit-tap-highlight-color:transparent}.river-puzzle-slot>.river-puzzle-piece{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.river-puzzle-slot>.river-puzzle-piece>span{display:block;width:100%;height:100%}.river-puzzle-piece.is-selected{box-shadow:inset 0 0 0 4px #f3bc57,0 0 0 2px #fff;filter:saturate(1.08)}.river-puzzle-piece.is-drag-source{opacity:.28}
.river-puzzle-side{display:flex;flex-direction:column;gap:10px;min-width:0}.river-puzzle-instruction{margin:0;font-size:18px;line-height:1.55;color:#526c5d}.river-puzzle-tray{display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:8px;min-height:104px;padding:9px;border:1px solid #d3ddcd;border-radius:14px;background:#f4f6eeee}.river-puzzle-tray>.river-puzzle-piece{width:100%;aspect-ratio:1;padding:0;border:1px solid #fff;border-radius:8px;box-shadow:0 3px 8px #334b3730;cursor:grab;touch-action:none}.river-puzzle-tray>.river-puzzle-piece:active{cursor:grabbing}.river-tray-empty{grid-column:1/-1;align-self:center;text-align:center;font-size:17px;line-height:1.5;color:#66806d}
.river-puzzle-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.river-puzzle-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:9px 17px;border:1px solid #b9cbae;border-radius:14px;background:#fffef7;color:#356148;font:550 19px/1.4 var(--sans);cursor:pointer;touch-action:manipulation}.river-puzzle-actions button:first-child{background:#3d7458;color:#fff;border-color:#3d7458}.river-puzzle-actions button:disabled{opacity:.56;cursor:default}.river-puzzle-status{min-height:1.6em;margin:0;text-align:center;color:#5a6f60;font-size:18px;line-height:1.55}.river-puzzle-preload{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.river-puzzle-ghost{position:fixed;z-index:9999;width:92px;aspect-ratio:1;transform:translate(-50%,-50%) rotate(2deg);border:2px solid #fff;border-radius:10px;background-image:var(--river-art);background-repeat:no-repeat;background-size:300% 200%;background-position:var(--piece-position);box-shadow:0 10px 30px #1e352b59;pointer-events:none}.river-puzzle-game.is-dragging .river-puzzle-slot:not(.is-drop-target){filter:saturate(.82)}
.river-puzzle-game.is-complete .river-puzzle-heading,.river-puzzle-game.is-complete .river-puzzle-side{display:none}.river-puzzle-game.is-complete .river-puzzle-work{display:block}.river-puzzle-game.is-complete .river-puzzle-board{gap:0;max-width:700px;margin-inline:auto;background-image:var(--river-art);box-shadow:0 7px 22px #334f3b22}.river-puzzle-game.is-complete .river-puzzle-slot{border:0}.river-puzzle-game.is-complete .river-puzzle-piece{box-shadow:none}.river-puzzle-game:is(.is-complete,.is-readonly) :is(.river-puzzle-piece,.river-puzzle-slot){touch-action:pan-y}.river-puzzle-game[data-assets=loading] .river-puzzle-board::before,.river-puzzle-game[data-assets=error] .river-puzzle-board::before{content:'春江畫卷正在展開…';position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:20px;background:#edf1e7;color:#536d5c;font-size:19px;text-align:center}.river-puzzle-game[data-assets=error] .river-puzzle-board::before{content:'畫卷還沒打開，請按下方按鈕重試。'}
.challenge-type-microgame .challenge-body:has(.river-puzzle-game.is-complete){justify-content:flex-start}
@media(max-width:700px){.river-puzzle-game{gap:8px}.river-puzzle-heading{align-items:center}.river-puzzle-heading>div>span{display:none}.river-puzzle-heading h3{font-size:23px}.river-puzzle-heading b{min-width:65px;font-size:17px;padding:5px 10px}.river-puzzle-work{display:flex;flex-direction:column;gap:8px}.river-puzzle-board{max-width:330px;border-radius:13px}.river-puzzle-side{width:100%;gap:6px}.river-puzzle-instruction{text-align:center;font-size:17px;line-height:1.4}.river-puzzle-tray{align-self:center;width:min(100%,210px);min-height:78px;padding:6px;gap:6px}.river-puzzle-actions button{min-height:48px;font-size:18px;padding:8px 14px}.river-puzzle-status{font-size:17px;line-height:1.4;text-align:left}.river-puzzle-ghost{width:76px}}
@media(max-width:370px) and (max-height:650px){.river-puzzle-game{gap:7px}.river-puzzle-heading span{display:none}.river-puzzle-heading h3{font-size:21px}.river-puzzle-board{max-height:168px;width:auto;max-width:100%;align-self:center}.river-puzzle-instruction{font-size:16px}.river-puzzle-tray{min-height:66px;gap:5px;padding:5px}.river-puzzle-actions button{min-height:46px}.river-puzzle-status{font-size:16px;min-height:1.45em}}
@media(orientation:landscape) and (max-height:500px){.challenge-type-microgame .river-puzzle-game{gap:7px}.challenge-type-microgame .river-puzzle-heading{display:none}.challenge-type-microgame .river-puzzle-work{grid-template-columns:210px minmax(280px,360px);justify-content:center;gap:12px}.challenge-type-microgame .river-puzzle-board{width:210px;height:140px;aspect-ratio:auto;border-radius:11px}.challenge-type-microgame .river-puzzle-side{gap:5px}.challenge-type-microgame .river-puzzle-instruction{font-size:16px;line-height:1.35;text-align:left}.challenge-type-microgame .river-puzzle-tray{grid-template-columns:repeat(6,minmax(44px,1fr));min-height:58px;padding:5px;gap:5px}.challenge-type-microgame .river-puzzle-actions button{min-height:44px;padding:6px 13px;font-size:17px}.challenge-type-microgame .river-puzzle-status{font-size:16px;min-height:1.4em;line-height:1.4}}
@media(prefers-reduced-motion:reduce){.river-puzzle-ghost{transform:translate(-50%,-50%)}}

/* Six stable tray positions prevent the remaining fragments from resizing and
   spilling out when another piece is moved into the picture. */
.river-puzzle-tray{box-sizing:border-box;grid-template-rows:repeat(2,minmax(0,1fr));align-items:stretch;min-width:0;flex-shrink:0}
.river-puzzle-tray>.river-puzzle-piece,.river-puzzle-tray>.river-tray-space{min-width:0;min-height:0;max-width:100%;width:100%;aspect-ratio:1}
.river-puzzle-tray>.river-tray-space{display:block;border:1px dashed #d9e1d1;border-radius:8px;background:#e9efe330;pointer-events:none}
@media(orientation:landscape) and (max-height:500px){.challenge-type-microgame .river-puzzle-tray{grid-template-rows:minmax(0,1fr)}}

/* poem-games/spring-search.css */
.rain-catcher{
  --rc-ink:#264f48;--rc-green:#39715b;--rc-gold:#b29a64;
  width:100%;max-width:700px;margin:auto;display:grid;gap:10px;
  color:var(--rc-ink);font-family:var(--sans);min-width:0;
}
.rain-catcher *{box-sizing:border-box}
.rain-catcher [hidden]{display:none!important}
.rain-catcher .rc-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rain-catcher .rc-heading h3{font-size:clamp(25px,3vw,30px);font-weight:700;letter-spacing:.05em;line-height:1.3;margin:0}
.rain-catcher .rc-round-count{flex:none;font-size:17px;line-height:1.4;color:#5c7568;letter-spacing:.02em}
.rain-catcher .rc-collection{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:min(100%,430px);justify-self:center;padding:1px 0 3px}
.rain-catcher .rc-collection>span{position:relative;display:grid;place-items:center;min-width:0;height:49px;color:#829487;border:1px solid #d5dfcf;border-radius:15px 15px 18px 18px;background:linear-gradient(160deg,#fffef5,#f0f4e9);box-shadow:inset 0 1px 0 #fff;transition:background .3s,border-color .3s,box-shadow .3s}
.rain-catcher .rc-collection b{font:500 23px/1.2 var(--serif,serif)}
.rain-catcher .rc-collection i{position:absolute;right:7px;bottom:7px;width:5px;height:5px;border-radius:50%;background:#ccd6c6}
.rain-catcher .rc-collection .is-current{color:#2f6854;border-color:#91b6a0;background:linear-gradient(150deg,#fffef5,#e7f2df);box-shadow:inset 0 1px 0 #fff,0 0 0 2px #dcebd15e}
.rain-catcher .rc-collection .is-current i{background:#659078}
.rain-catcher .rc-collection .is-earned{border-color:#aecb9d;color:#355d3b;background:linear-gradient(145deg,#f5f9df,#e5edce)}
.rain-catcher .rc-collection .is-earned b{font-size:27px;font-weight:600}
.rain-catcher .rc-collection .is-earned i{width:9px;height:6px;right:6px;bottom:7px;border-radius:75% 10% 75% 10%;transform:rotate(-23deg);background:#689351}
.rain-catcher .rc-mission{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px;border-radius:17px;background:linear-gradient(105deg,#e9f1e3,#f5f5e9);border:1px solid #e0e8d7;padding:4px 6px 4px 15px;font-size:20px;line-height:1.4}
.rain-catcher .rc-mission strong{font-size:29px;font-weight:700;color:#215c49;padding-inline:5px;letter-spacing:.025em}
.rain-catcher .rc-mission button{flex:none;width:46px;height:46px;display:grid;place-items:center;border:1px solid #c4d4ba;border-radius:50%;background:linear-gradient(#fffef8,#f4f7e9);box-shadow:0 2px 3px #35513b06;color:#35694b;cursor:pointer}
.rain-catcher .rc-mission svg{width:24px;height:24px}
.rain-catcher .rc-field{position:relative;width:100%;aspect-ratio:1.5;max-height:380px;min-height:210px;overflow:hidden;isolation:isolate;background:#e3eddf;border-radius:23px;border:1px solid #cbdacb;box-shadow:inset 0 0 0 1px #ffffff65,0 3px 12px #34554306;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;contain:layout paint}
.rain-catcher .rc-scene{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;pointer-events:none;filter:saturate(.9)}
.rain-catcher .rc-spring-light{position:absolute;inset:0;background:linear-gradient(135deg,#f9eb943b,transparent 55%,#a1d78734);opacity:var(--spring-earned,0);transition:opacity .8s;pointer-events:none}
.rain-catcher .rc-drizzle{position:absolute;inset:-20% 0;pointer-events:none;opacity:.3;background:repeating-linear-gradient(105deg,transparent 0 61px,#edf9ff 62px 63px,transparent 64px 127px);mask-image:linear-gradient(transparent,#0006,transparent);animation:rc-rain 3s linear infinite;animation-play-state:paused}
.rain-catcher[data-phase=falling] .rc-drizzle{animation-play-state:running}
.rain-catcher .rc-lanes{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);pointer-events:none;opacity:.16;background:linear-gradient(90deg,transparent 33.1%,#fcfff566 33.3%,transparent 33.6%,transparent 66.4%,#fcfff566 66.7%,transparent 66.9%)}
.rain-catcher .rc-lanes i{display:none}
.rain-catcher .rc-drops{position:absolute;top:0;inset-inline:0;height:0;pointer-events:none;will-change:transform}
.rain-catcher .rc-drop{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:88px;height:97px;padding:17px 4px 7px;text-align:center;color:#224e48;isolation:isolate;transition:opacity .2s}
.rain-catcher .rc-drop:before{content:'';position:absolute;z-index:-1;width:78%;height:75%;left:11%;top:18%;transform:rotate(45deg);border-radius:12% 67% 67% 67%;border:1px solid #7aaea49c;background:radial-gradient(ellipse at 23% 15%,#fffffffa 0,#ffffffe8 25%,#e5f7edee 57%,#c6e4dbec 100%);box-shadow:inset 2px 2px 3px #ffffffed,inset -2px -3px 5px #6eafa432,2px 4px 6px #24565316;transition:background .2s,box-shadow .2s}
.rain-catcher .rc-drop:after{content:'';position:absolute;width:20%;height:9%;left:22%;top:24%;border-radius:50%;background:#fff9;transform:rotate(-45deg);pointer-events:none}
.rain-catcher .rc-glyph{position:relative;display:grid;place-items:center;width:57px;height:57px;flex:none;font:500 45px/1 var(--serif,serif);color:#244c45;filter:drop-shadow(0 1px 0 #ffffffa8)}
.rain-catcher .rc-character{display:block;width:100%;height:100%;fill:currentColor;overflow:visible}
.rain-catcher .rc-drop>small{position:absolute;left:0;right:0;bottom:1px;min-height:18px;font-size:16px;font-weight:600;line-height:1.2;color:#326350;letter-spacing:.025em;text-shadow:0 1px #ffffffe8}
.rain-catcher .rc-drop-shine{position:absolute;width:5px;height:5px;right:20%;top:35%;border-radius:50%;background:#ffffffb3;pointer-events:none}
.rain-catcher .rc-drop.is-caught:before{border-color:#8ca665;background:radial-gradient(ellipse at 25% 20%,#fffff4,#edf7cce8 55%,#c1dfa6ee);box-shadow:inset 2px 2px 3px #fffefa,inset -2px -3px 5px #71964423,0 0 0 4px #fff9cb46}
.rain-catcher .rc-drop.is-wrong:before{border-color:#bea572;background:radial-gradient(ellipse at 25% 20%,#fffff8,#fff6d8ee 55%,#f1e6c8ee)}
.rain-catcher .rc-catch-line{position:absolute;top:79%;left:10%;right:10%;height:12%;border-radius:50%;background:radial-gradient(ellipse,#f4ffe337 0,#efffdc0a 60%,transparent 72%);pointer-events:none}
.rain-catcher .rc-boat{position:absolute;left:0;top:80%;width:125px;height:70px;transform:translate3d(0,0,0) translate(-50%,-30%);pointer-events:none;transition:transform .14s ease-out;will-change:transform}
.rain-catcher.is-dragging .rc-boat{transition:none}
.rain-catcher .rc-boat img{position:relative;display:block;width:100%;height:100%;object-fit:contain;z-index:1}
.rain-catcher .rc-boat-ripple{position:absolute;left:4%;right:4%;top:64%;height:25%;border-radius:50%;border:1px solid #fffbdcba;box-shadow:0 0 0 5px #e0f3da36;transform:scaleY(.62)}
.rain-catcher .rc-splash{position:absolute;inset:0;pointer-events:none}
.rain-catcher .rc-splash i{position:absolute;left:49%;top:34%;width:5px;height:9px;opacity:0;border-radius:70% 70% 65% 65%;background:#f1fff3;border:1px solid #95c7b8}
.rain-catcher .rc-splash i:first-child{--rc-splash-x:-30px;--rc-splash-y:-18px}
.rain-catcher .rc-splash i:nth-child(2){--rc-splash-x:3px;--rc-splash-y:-28px}
.rain-catcher .rc-splash i:last-child{--rc-splash-x:28px;--rc-splash-y:-15px}
.rain-catcher.is-celebrating .rc-splash i{animation:rc-splash .6s ease-out both}
.rain-catcher.is-celebrating .rc-boat-ripple{animation:rc-ripple .7s ease-out both}
.rain-catcher .rc-intro,.rain-catcher .rc-ending,.rain-catcher .rc-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;text-align:center;z-index:4}
.rain-catcher .rc-intro{background:linear-gradient(180deg,#edf4e80d,#edf4e83b)}
.rain-catcher .rc-intro>div{width:min(100%,370px);padding:20px 16px 18px;border-radius:23px;background:linear-gradient(155deg,#fffef4f5,#f4f8e9eb);border:1px solid #fffffff5;box-shadow:0 8px 28px #385a3310,inset 0 0 0 4px #fffdf533}
.rain-catcher .rc-intro strong,.rain-catcher .rc-ending>strong{display:block;font-size:24px;line-height:1.4;letter-spacing:.015em}
.rain-catcher .rc-intro p{font-size:19px;margin:9px 0 15px;line-height:1.5;color:#5a7462;text-wrap:pretty}
.rain-catcher .rc-intro-icon{display:block;margin:0 auto 9px;width:35px;height:35px;color:#719568}
.rain-catcher .rc-intro-icon svg{width:100%;height:100%}
.rain-catcher button{font-family:var(--sans);line-height:1.3;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.rain-catcher .rc-primary{min-height:49px;padding:10px 20px;border:1px solid #326950;border-radius:15px;background:linear-gradient(155deg,#467e64,#326850);box-shadow:inset 0 1px 0 #ffffff24,0 2px 3px #294d3810;color:#fffef3;font-size:20px;font-weight:600;cursor:pointer}
.workspace .rain-catcher button.rc-primary{color:#fffef3}
.rain-catcher .rc-controls{display:grid;grid-template-columns:58px minmax(0,1fr) 58px;gap:12px;width:min(100%,400px);justify-self:center}
.rain-catcher .rc-controls>button:not(.rc-primary){border:1px solid #bacdb1;border-radius:15px;background:linear-gradient(#fffef6,#f4f5e7);box-shadow:inset 0 1px 0 #fff;color:#38684c;font-size:29px;line-height:1;min-height:49px;cursor:pointer}
.rain-catcher button:disabled{opacity:.5;cursor:default}
.rain-catcher button:focus-visible,.rain-catcher .rc-field:focus-visible{outline:3px solid #b3934a;outline-offset:3px}
.rain-catcher button:active:not(:disabled){filter:brightness(.97)}
.rain-catcher .rc-slow-catch{border:1px solid #d8e1cd;border-radius:12px;background:#f3f6e8;color:#456c4f;font-size:18px;min-height:44px;padding:8px 12px;cursor:pointer;width:min(100%,400px);justify-self:center}
.rain-catcher .rc-status{font-size:18px;line-height:1.6;margin:0;text-align:center;color:#58725d;min-height:1.6em;text-wrap:pretty}
.rain-catcher[data-phase=falling] .rc-status,.rain-catcher[data-phase=paused] .rc-status,.rain-catcher[data-phase=steady] .rc-status{display:none}
.rain-catcher[data-phase=intro] .rc-status,.rain-catcher[data-phase=feedback] .rc-status,.rain-catcher[data-phase=done] .rc-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rain-catcher .rc-feedback{position:absolute;left:7%;right:7%;top:6%;z-index:3;padding:9px 13px;border:1px solid #e1e8ca;border-radius:15px;background:linear-gradient(145deg,#fffef7f5,#f3f8e6f0);text-align:center;color:#315c48;line-height:1.35;box-shadow:0 3px 15px #35513b0d;pointer-events:none}
.rain-catcher .rc-feedback strong{display:block;font-size:23px;font-weight:600}
.rain-catcher .rc-feedback span{display:block;margin-top:3px;font-size:17px;color:#58715b}
.rain-catcher .rc-feedback[data-result=incorrect]{border-color:#e2d8b8;background:linear-gradient(145deg,#fffef5f7,#f9f1dff2)}
.rain-catcher .rc-ending{flex-direction:column;gap:14px;background:linear-gradient(160deg,#f0f6e7e8,#e5f2d8c7)}
.rain-catcher .rc-wordbook{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:min(100%,480px)}
.rain-catcher .rc-wordbook>button{display:grid;place-items:center;gap:4px;min-width:0;min-height:76px;padding:9px 3px;border:1px solid #d3ddbd;border-radius:16px;background:linear-gradient(140deg,#fffef5,#f3f6df);box-shadow:inset 0 1px 0 #fff;color:#355d47;cursor:pointer}
.rain-catcher .rc-wordbook>button>span{font:500 33px/1.1 var(--serif,serif)}
.rain-catcher .rc-word-glyph{display:block;width:40px;height:40px;max-width:100%}
.rain-catcher .rc-wordbook small{font-size:17px;line-height:1.2;color:#657651}
.rain-catcher .rc-replay{justify-self:center;min-height:46px;padding:9px 20px;border:1px solid #aec6a2;border-radius:14px;background:linear-gradient(#fffef6,#edf3e0);color:#3b6950;font-size:19px;font-weight:600;cursor:pointer}
.rain-catcher .rc-ending p{font-size:18px;margin:0;line-height:1.5;color:#597256}
.rain-catcher .rc-loading{flex-direction:column;gap:12px;background:#f2f5e8;font-size:20px}
.rain-catcher .rc-loading button{font-size:19px;min-height:48px;border:1px solid #acbf9f;background:#fffef6;color:#426e49;border-radius:14px;padding:9px 18px}
.rain-catcher.is-done .rc-field,.rain-catcher[data-phase=intro] .rc-field{touch-action:pan-y;overscroll-behavior:auto}
.rain-catcher.is-done .rc-lanes{display:none}
@keyframes rc-rain{from{transform:translateY(-15px)}to{transform:translateY(25px)}}
@keyframes rc-ripple{0%{transform:scale(.9,.62);opacity:1}100%{transform:scale(1.65,1);opacity:0}}
@keyframes rc-splash{0%{transform:translate(0,0) scale(.7);opacity:0}20%{opacity:.95}100%{transform:translate(var(--rc-splash-x),var(--rc-splash-y)) scale(.3);opacity:0}}
@media(max-width:420px){
  .rain-catcher{gap:8px}.rain-catcher .rc-heading h3{font-size:25px}.rain-catcher .rc-round-count{font-size:16px}
  .rain-catcher .rc-collection{gap:7px}.rain-catcher .rc-collection>span{height:44px;border-radius:13px 13px 16px 16px}
  .rain-catcher .rc-collection b{font-size:21px}.rain-catcher .rc-collection .is-earned b{font-size:25px}
  .rain-catcher .rc-mission{font-size:18px;padding-left:10px;min-height:51px}.rain-catcher .rc-mission strong{font-size:28px;padding-inline:3px}
  .rain-catcher .rc-field{aspect-ratio:1.1;max-height:330px;border-radius:19px}
  .rain-catcher .rc-drop{width:77px;height:88px;padding-top:17px}.rain-catcher .rc-glyph{width:49px;height:49px;font-size:40px}.rain-catcher .rc-drop>small{font-size:15px}
  .rain-catcher .rc-boat{width:113px;height:65px}.rain-catcher .rc-status{font-size:17px}
  .rain-catcher .rc-intro>div{padding:17px 12px}.rain-catcher .rc-intro strong{font-size:23px}.rain-catcher .rc-intro p{font-size:18px}
  .rain-catcher .rc-controls{gap:9px;grid-template-columns:55px minmax(0,1fr) 55px}
  .rain-catcher .rc-feedback strong{font-size:21px}.rain-catcher .rc-feedback span{font-size:16px}
  .rain-catcher .rc-ending{padding:14px;gap:12px}.rain-catcher .rc-wordbook{gap:5px}.rain-catcher .rc-wordbook>button{min-height:67px;border-radius:13px}
  .rain-catcher .rc-wordbook>button>span{font-size:29px}.rain-catcher .rc-wordbook small{font-size:15px}
  .rain-catcher .rc-word-glyph{width:34px;height:34px}
}
@media(max-width:360px){
  .rain-catcher .rc-mission{font-size:17px}.rain-catcher .rc-mission strong{font-size:25px}
  .rain-catcher .rc-drop{width:66px;height:79px}.rain-catcher .rc-glyph{width:43px;height:43px;font-size:35px}
  .rain-catcher .rc-boat{width:99px;height:58px}.rain-catcher .rc-intro-icon{display:none}.rain-catcher .rc-ending>strong{font-size:21px}
  .rain-catcher .rc-wordbook>button>span{font-size:27px}.rain-catcher .rc-wordbook small{font-size:13px}
  .rain-catcher .rc-word-glyph{width:31px;height:31px}
}
@media(max-width:520px) and (max-height:700px){
  .rain-catcher{gap:6px}.rain-catcher .rc-heading h3{font-size:23px}
  .rain-catcher .rc-collection{gap:6px;padding:0}.rain-catcher .rc-collection>span{height:36px;border-radius:11px}.rain-catcher .rc-collection b{font-size:18px}.rain-catcher .rc-collection .is-earned b{font-size:23px}
  .rain-catcher .rc-field{height:165px;min-height:165px;max-height:165px;aspect-ratio:auto}
  .rain-catcher .rc-drop{width:60px;height:67px;padding:12px 3px 5px}.rain-catcher .rc-glyph{width:40px;height:40px;font-size:33px}.rain-catcher .rc-drop>small{bottom:-1px;font-size:13px}
  .rain-catcher .rc-boat{width:90px;height:46px}.rain-catcher .rc-intro{padding:6px}.rain-catcher .rc-intro>div{padding:11px}
  .rain-catcher .rc-intro-icon{display:none}.rain-catcher .rc-intro strong{font-size:20px}.rain-catcher .rc-intro p{font-size:16px;margin:5px 0 8px}
  .rain-catcher .rc-primary{min-height:46px;font-size:19px;padding:8px 14px}.rain-catcher .rc-controls>button:not(.rc-primary){min-height:46px}
  .rain-catcher .rc-mission{min-height:46px}.rain-catcher .rc-mission button{width:42px;height:42px}.rain-catcher .rc-status{font-size:16px;line-height:1.45}
  .rain-catcher .rc-feedback{padding:6px 9px;top:5%;border-radius:12px}.rain-catcher .rc-feedback strong{font-size:18px}.rain-catcher .rc-feedback span{font-size:14px;margin-top:1px}
  .rain-catcher .rc-ending{gap:8px;padding:10px}.rain-catcher .rc-ending>strong{font-size:20px}.rain-catcher .rc-wordbook>button{min-height:63px;padding:5px 2px}.rain-catcher .rc-ending p{display:none}
}
@media(min-width:1000px) and (max-height:900px){
  .rain-catcher{max-width:960px;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:10px 24px;align-items:center}
  .rain-catcher .rc-field{grid-column:1;grid-row:1 / span 5;height:340px;min-height:280px;max-height:340px;aspect-ratio:auto}
  .rain-catcher .rc-heading,.rain-catcher .rc-collection,.rain-catcher .rc-mission,.rain-catcher .rc-controls,.rain-catcher .rc-slow-catch,.rain-catcher .rc-replay{grid-column:2}
  .rain-catcher .rc-status{grid-column:1 / -1}
  .rain-catcher .rc-mission{font-size:18px;padding-left:10px}.rain-catcher .rc-mission strong{font-size:27px}
  .rain-catcher .rc-wordbook{gap:7px}.rain-catcher .rc-wordbook small{font-size:16px}
}
@media(orientation:landscape) and (max-height:500px) and (min-width:560px){
  .rain-catcher{grid-template-columns:minmax(210px,.8fr) minmax(285px,1.2fr);align-items:center;gap:5px 12px}
  .rain-catcher .rc-field{height:145px;min-height:145px;max-height:145px;width:238px;max-width:100%;justify-self:center;grid-column:1;grid-row:1 / span 4;aspect-ratio:auto}
  .rain-catcher .rc-heading,.rain-catcher .rc-collection,.rain-catcher .rc-mission,.rain-catcher .rc-controls,.rain-catcher .rc-slow-catch,.rain-catcher .rc-replay{grid-column:2}
  .rain-catcher .rc-heading h3{font-size:20px}.rain-catcher .rc-round-count{font-size:15px}
  .rain-catcher .rc-collection{gap:6px;padding:0}.rain-catcher .rc-collection>span{height:29px;border-radius:10px}.rain-catcher .rc-collection b{font-size:17px}.rain-catcher .rc-collection .is-earned b{font-size:22px}.rain-catcher .rc-collection i{right:5px;bottom:5px;width:4px;height:4px}
  .rain-catcher .rc-mission{min-height:44px;padding:0 5px 0 9px;font-size:16px}.rain-catcher .rc-mission strong{font-size:23px}.rain-catcher .rc-mission button{width:42px;height:42px}
  .rain-catcher .rc-controls{justify-self:stretch;width:100%;gap:8px;grid-template-columns:48px 1fr 48px}.rain-catcher .rc-controls button{min-height:44px;font-size:18px;padding:7px 10px}
  .rain-catcher .rc-controls>button:not(.rc-primary){min-height:44px;font-size:24px}.rain-catcher .rc-controls>.rc-primary{min-height:44px}
  .rain-catcher[data-phase=paused] .rc-controls{grid-row:4;width:calc(100% - 115px);gap:5px;grid-template-columns:44px minmax(0,1fr) 44px;justify-self:start}
  .rain-catcher[data-phase=paused] .rc-controls>.rc-primary{font-size:16px;padding-inline:4px}
  .rain-catcher[data-phase=paused] .rc-slow-catch{grid-row:4;justify-self:end;width:107px;min-height:44px;font-size:15px;line-height:1.2;padding:3px 5px}
  .rain-catcher .rc-drop{width:53px;height:61px;padding:11px 3px 4px}.rain-catcher .rc-glyph{width:35px;height:35px;font-size:30px}.rain-catcher .rc-drop>small{font-size:12px;bottom:-1px}
  .rain-catcher .rc-boat{width:77px;height:41px}.rain-catcher .rc-intro{padding:6px}.rain-catcher .rc-intro>div{padding:10px}
  .rain-catcher .rc-intro-icon{display:none}.rain-catcher .rc-intro strong{font-size:18px}.rain-catcher .rc-intro p{font-size:15px;margin:4px 0 7px}.rain-catcher .rc-intro .rc-primary{min-height:44px;font-size:17px;padding:5px 12px}
  .rain-catcher .rc-feedback{padding:6px;top:5%;border-radius:12px}.rain-catcher .rc-feedback strong{font-size:17px}.rain-catcher .rc-feedback span{font-size:13px;margin-top:1px}
  .rain-catcher .rc-status{grid-column:1 / -1;font-size:16px;line-height:1.4}.rain-catcher .rc-slow-catch{min-height:40px;font-size:16px;padding:5px 8px}
  .rain-catcher .rc-ending{padding:8px;gap:7px}.rain-catcher .rc-ending>strong{font-size:18px}.rain-catcher .rc-ending p{display:none}
  .rain-catcher .rc-wordbook{width:190px;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.rain-catcher .rc-wordbook>button{min-height:47px;padding:4px 2px;border-radius:10px;gap:1px}.rain-catcher .rc-wordbook>button>span{font-size:23px}.rain-catcher .rc-wordbook small{font-size:12px}
  .rain-catcher .rc-word-glyph{width:27px;height:27px}.rain-catcher .rc-replay{min-height:44px;font-size:17px;padding:7px 14px}
}
.rain-catcher.is-reduced .rc-drizzle{display:none}
.rain-catcher.is-reduced .rc-boat,.rain-catcher.is-reduced .rc-spring-light,.rain-catcher.is-reduced .rc-collection>span{transition:none}
.rain-catcher.is-reduced .rc-splash i,.rain-catcher.is-reduced .rc-boat-ripple{animation:none!important}
@media(prefers-reduced-motion:reduce){
  .rain-catcher .rc-drizzle{display:none}
  .rain-catcher .rc-boat,.rain-catcher .rc-spring-light,.rain-catcher .rc-drop,.rain-catcher .rc-collection>span{transition:none}
  .rain-catcher .rc-splash i,.rain-catcher .rc-boat-ripple{animation:none!important}
}

/* poem-games/snow-count.css */
.poem-snow-game{--sc-ink:#2c4858;--sc-soft:#5b7484;--sc-paper:#fffdf8;--sc-line:#d5dee3;--sc-plum:#b4545e;position:relative;display:block;width:100%;max-width:820px;margin-inline:auto;min-width:0;color:var(--sc-ink);font-family:var(--sans)}
.poem-snow-game *{box-sizing:border-box}
.poem-snow-game [hidden]{display:none!important}
.poem-snow-game .sc-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:center;height:100%;min-width:0}
.poem-snow-game .sc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-snow-game .sc-task{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:700;line-height:1.4;text-wrap:balance}
.poem-snow-game .sc-chip{flex:none;padding:4px 12px;border-radius:999px;background:#e8eff3;color:var(--sc-soft);font-size:17px;font-weight:700;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap}
/* overflow:clip (hidden for old Safari): a hidden frame can still be scrolled when a hotspot inside it is focused or scrolled into view, which slid the painting inside its frame. */
.poem-snow-game .sc-stage{position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#e7edf0;border:1px solid #7f97a640;box-shadow:0 14px 28px -20px #23404f99;user-select:none;-webkit-user-select:none;touch-action:manipulation;font-family:var(--sans);container-type:inline-size}
.poem-snow-game .sc-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.3s ease;pointer-events:none;user-select:none;-webkit-user-drag:none}
.poem-snow-game .sc-scene.is-on{opacity:1}
.poem-snow-game .sc-veil{position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(115% 95% at 50% 42%,#fff0 28%,#f2f6f8c4 100%),#ffffff1f;opacity:0;transition:opacity 1.4s ease}
.poem-snow-game .sc-veil.is-on{opacity:1}
.poem-snow-game .sc-fall{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.poem-snow-game .sc-fall[data-level="off"]{display:none}
.poem-snow-game .sc-fall i{position:absolute;top:0;left:var(--x);width:var(--s);height:100%;animation:sc-fall var(--d) linear var(--t) infinite;will-change:transform}
.poem-snow-game .sc-fall i::before{content:"";position:absolute;left:0;top:0;width:var(--s);height:var(--s);border-radius:50%;background:radial-gradient(circle,#fff 0 40%,#ffffffa8 60%,#fff0 76%);box-shadow:0 0 1.5px #4d67794d;opacity:var(--o)}
.poem-snow-game .sc-fall[data-level="0"] i:nth-child(n+19),.poem-snow-game .sc-fall[data-level="1"] i:nth-child(n+39),.poem-snow-game .sc-fall[data-level="2"] i:nth-child(n+65){display:none}
.poem-snow-game .sc-flakes,.poem-snow-game .sc-plums,.poem-snow-game .sc-bigs{position:absolute;inset:0;pointer-events:none}
.poem-snow-game .sc-stage button{-webkit-tap-highlight-color:transparent;font-family:var(--sans)}
.poem-snow-game .sc-flake,.poem-snow-game .sc-plum,.poem-snow-game .sc-big{position:absolute;left:var(--x);top:var(--y);aspect-ratio:1;margin:0;padding:0;border:0;border-radius:50%;background:transparent;pointer-events:auto;cursor:pointer;display:grid;place-items:center}
.poem-snow-game .sc-flake{z-index:3;width:clamp(48px,10%,92px);transform:translate(-50%,-50%);touch-action:manipulation;transition:opacity .3s ease,transform .3s ease}
.poem-snow-game .sc-flake::before,.poem-snow-game .sc-big::before{content:"";position:absolute;inset:2%;border-radius:50%;background:radial-gradient(circle,#ffffffeb 0 17%,#ffffff70 42%,#fff0 69%);transition:opacity .4s,box-shadow .25s}
.poem-snow-game .sc-flake svg{position:relative;width:76%;height:76%;overflow:visible;animation:sc-drift var(--d) ease-in-out var(--t) infinite alternate}
.poem-snow-game .sc-flake:hover:not(:disabled) svg{filter:drop-shadow(0 0 5px #fff)}
.poem-snow-game .sc-flake.is-caught{opacity:0;transform:translate(-50%,-50%) scale(.5);pointer-events:none}
.poem-snow-game .sc-flake:disabled,.poem-snow-game .sc-plum:disabled,.poem-snow-game .sc-big:disabled,.poem-snow-game .sc-sky:disabled{cursor:default}
.poem-snow-game svg .sc-edge{fill:none;stroke:#42617a;stroke-opacity:.5;stroke-width:10;stroke-linecap:round;stroke-linejoin:round}
.poem-snow-game svg .sc-core{fill:none;stroke:#fff;stroke-width:4.6;stroke-linecap:round;stroke-linejoin:round}
.poem-snow-game svg .sc-hub{fill:#fff;stroke:#42617a;stroke-opacity:.45;stroke-width:3}
.poem-snow-game button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-snow-game .sc-sky{position:absolute;inset:0;z-index:3;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;touch-action:manipulation}
.poem-snow-game .sc-sky:focus-visible{outline-offset:-7px}
.poem-snow-game .sc-sky-hint{position:absolute;left:50%;top:20%;transform:translate(-50%,-50%);padding:8px 20px;border-radius:999px;background:#fffdf8e8;color:var(--sc-ink);font-size:clamp(17px,2.3vw,22px);font-weight:700;letter-spacing:.1em;line-height:1.3;white-space:nowrap;box-shadow:0 0 0 6px #ffffff5c,0 8px 18px -10px #23404f99;animation:sc-breathe 2.4s ease-in-out infinite;transition:opacity .4s}
.poem-snow-game .sc-sky:disabled .sc-sky-hint{opacity:0}
.poem-snow-game .sc-ripple{position:absolute;z-index:4;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 8px #ffffff40,inset 0 0 18px #ffffffa0;pointer-events:none;animation:sc-ripple 1s ease-out forwards}
.poem-snow-game .sc-plum{z-index:3;width:clamp(52px,11%,96px);transform:translate(-50%,-50%);touch-action:manipulation}
.poem-snow-game .sc-plum span{position:absolute;inset:8%;border-radius:50%;border:3px dashed #bf5f69;box-shadow:0 0 0 3px #ffffffc4,inset 0 0 0 3px #ffffffa8,0 0 14px 2px #ffffffd0;transition:transform .25s,border-color .25s,box-shadow .25s}
.poem-snow-game .sc-plum:not(:disabled) span{animation:sc-ring 2.8s ease-in-out infinite}
.poem-snow-game .sc-plum:nth-child(2n) span{animation-delay:-1.4s}
.poem-snow-game.is-carrying .sc-plum span{border-style:solid;border-color:#d4943a;animation-duration:1.4s}
.poem-snow-game .sc-plum.is-near span{transform:scale(1.22);border-color:#e08a24;box-shadow:0 0 0 4px #fff,0 0 0 8px #e3a5487a,0 0 26px #fff;animation:none}
.poem-snow-game .sc-task span{display:inline-block}
.poem-snow-game .sc-plum.is-glow::after{content:"";position:absolute;inset:-35%;border-radius:50%;background:radial-gradient(circle,#fffef7 0 18%,#fff3dcb0 40%,#fff0 70%);pointer-events:none;animation:sc-glow 1.5s ease-out forwards}
.poem-snow-game[data-stage="done"] .sc-plums{display:none}
.poem-snow-game .sc-big{z-index:4;width:clamp(56px,12.5%,104px);transform:translate(calc(-50% + var(--dx,0px)),calc(-50% + var(--dy,0px)));cursor:grab;touch-action:none;transition:left .6s cubic-bezier(.3,.7,.3,1),top .6s cubic-bezier(.3,.7,.3,1),transform .6s cubic-bezier(.3,.7,.3,1)}
.poem-snow-game .sc-big-art{position:absolute;inset:11%;display:grid;place-items:center;transition:opacity .8s ease .45s,transform .9s ease .45s,filter .8s ease .45s}
.poem-snow-game .sc-big-art svg{width:100%;height:100%;overflow:visible;animation:sc-drift 8s ease-in-out infinite alternate}
.poem-snow-game .sc-big:nth-child(2n) .sc-big-art svg{animation-duration:9.5s;animation-delay:-3s}
.poem-snow-game .sc-big.is-selected::before{box-shadow:0 0 0 4px #e3a548,0 0 0 10px #ffffff80}
.poem-snow-game .sc-big.is-dragging{z-index:6;cursor:grabbing;transition:none}
.poem-snow-game .sc-big.is-dragging .sc-big-art{transform:scale(1.12);transition:transform .15s}
.poem-snow-game .sc-big.is-gone{pointer-events:none}
.poem-snow-game .sc-big.is-gone::before{opacity:0}
.poem-snow-game .sc-big.is-gone .sc-big-art{opacity:0;transform:scale(.3);filter:blur(3px)}
.poem-snow-game .sc-bigs.is-nudge .sc-big:not(:disabled) .sc-big-art{animation:sc-nudge .8s ease}
.poem-snow-game .sc-end{position:absolute;z-index:5;left:3.5%;top:6%;display:grid;gap:3px;max-width:86%;padding:9px 16px 10px;border-radius:14px;background:#fffdf8eb;box-shadow:0 10px 22px -14px #23404fb3;color:var(--sc-ink);pointer-events:none;animation:sc-appear .9s ease both}
.poem-snow-game .sc-end span{font-size:clamp(18px,4cqw,28px);font-weight:700;letter-spacing:.1em;line-height:1.3}
.poem-snow-game .sc-end small{font-size:clamp(14px,2.3cqw,16px);line-height:1.4;color:var(--sc-soft)}
.poem-snow-game .sc-loading{position:absolute;inset:0;z-index:8;display:grid;place-content:center;justify-items:center;gap:14px;padding:20px;background:#edf2f4ee;font-size:20px;line-height:1.5;text-align:center}
.poem-snow-game .sc-loading button{min-height:48px;padding:10px 22px;border:1px solid #9fb2bd;border-radius:14px;background:var(--sc-paper);color:var(--sc-ink);font-size:19px;font-weight:700;cursor:pointer}
.poem-snow-game .sc-ghost{position:absolute;left:0;top:0;z-index:20;display:block;pointer-events:none;filter:drop-shadow(0 0 6px #fff)}
.poem-snow-game .sc-ghost svg{display:block;width:100%;height:100%;overflow:visible}
.poem-snow-game .sc-card{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 18px;min-width:0;padding:10px 16px;border-radius:18px;background:var(--sc-paper);border:1px solid var(--sc-line);box-shadow:0 3px 0 #e5ebee}
.poem-snow-game .sc-count{display:grid;justify-items:center;align-content:center;min-width:4.4em;min-height:66px;line-height:1.15}
.poem-snow-game .sc-count small{font-size:15px;font-weight:600;color:var(--sc-soft);letter-spacing:.06em}
.poem-snow-game .sc-count b{font-family:var(--serif);font-size:clamp(31px,4.2vw,40px);font-weight:700;letter-spacing:.06em;color:var(--sc-ink);white-space:nowrap}
.poem-snow-game .sc-count b.is-muted{color:#8aa0ad}
.poem-snow-game .sc-marks{display:grid;grid-template-columns:repeat(5,30px);gap:6px 7px}
.poem-snow-game .sc-marks[data-kind="flurry"]{grid-template-columns:repeat(3,auto);gap:8px}
.poem-snow-game .sc-mark{position:relative;width:30px;height:30px;border-radius:50%;border:1.5px dashed #b6c5cd;transition:border-color .3s,background-color .3s}
.poem-snow-game .sc-mark svg{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);overflow:visible;opacity:0;transform:scale(.4);transition:opacity .3s,transform .4s cubic-bezier(.3,1.6,.5,1)}
.poem-snow-game .sc-mark.is-on{border-style:solid;border-color:#9bb2c1;background:#dbe6ed}
.poem-snow-game .sc-mark.is-on svg{opacity:1;transform:none}
.poem-snow-game .sc-marks[data-kind="hide"] .sc-mark{border-style:solid;border-color:#c3d1d9;background:#e3ecf1}
.poem-snow-game .sc-marks[data-kind="hide"] .sc-mark>svg:first-child{opacity:1;transform:none}
.poem-snow-game .sc-marks[data-kind="hide"] .sc-mark.is-on{border-color:#e3bcc0;background:#fbf2f1}
.poem-snow-game .sc-marks[data-kind="hide"] .sc-mark.is-on>svg:first-child{opacity:0;transform:scale(.3)}
.poem-snow-game .sc-bloom circle{fill:#fffdfb;stroke:#c7787f;stroke-width:3.5}
.poem-snow-game .sc-bloom .sc-heart{fill:#e6b24e;stroke:#c7787f;stroke-width:2}
.poem-snow-game .sc-pill{padding:5px 12px;border-radius:999px;border:1.5px dashed #b6c5cd;color:#8ea2ae;font-family:var(--serif);font-size:19px;font-style:normal;font-weight:700;line-height:1.3;letter-spacing:.04em;white-space:nowrap;transition:background-color .3s,border-color .3s,color .3s}
.poem-snow-game .sc-pill.is-on{border-style:solid;border-color:#9bb2c1;background:#dbe6ed;color:var(--sc-ink)}
.poem-snow-game .sc-actionline{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 18px;min-width:0}
.poem-snow-game .sc-verse{display:flex;margin:0;font-family:var(--serif);font-size:clamp(25px,3vw,30px);font-weight:700;line-height:1.3;letter-spacing:.06em;white-space:nowrap}
.poem-snow-game .sc-verse span{color:#2c485830;transition:color .45s ease}
.poem-snow-game .sc-verse span.is-lit{color:var(--sc-ink)}
.poem-snow-game .sc-listen{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:8px 18px;border:1.5px solid #c1cfd7;border-radius:16px;background:var(--sc-paper);color:var(--sc-ink);font-family:inherit;font-size:19px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:0 3px 0 #e0e8ec}
.poem-snow-game .sc-listen svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.poem-snow-game .sc-listen:hover:not(:disabled){background:#f3f7f9}
.poem-snow-game .sc-listen:disabled{cursor:default;opacity:.65}
.poem-snow-game .sc-listen[aria-busy="true"]{opacity:1;background:#e9f0f4}
.poem-snow-game .sc-feedback{margin:0;min-height:2.9em;font-size:19px;line-height:1.45;text-align:center;color:#3d596a;text-wrap:pretty}
.poem-snow-game.is-instant *,.poem-snow-game.is-instant *::before{transition:none!important}
/* Round 4: the poem board. Cells come from the stage width; the gap shrinks so four rows always fit its 16:9 height. */
.poem-snow-game[data-stage="seek"] .sc-veil,.poem-snow-game[data-stage="done"] .sc-veil{background:radial-gradient(120% 100% at 50% 50%,#ffffffb8 30%,#f2f6f8d9 100%)}
.poem-snow-game[data-stage="done"] .sc-fall{z-index:5}
/* Seven tiles always fit across the picture; on the narrowest phones they go just below 44px. */
.poem-snow-game .sc-poem{--sc-cell:clamp(min(44px,13.6cqw),11.6cqw,96px);--sc-gap:max(0px,min(1.6cqw,(56.25cqw - 4 * var(--sc-cell)) / 4));position:absolute;inset:0;z-index:4;display:grid;align-content:center;justify-content:center;gap:var(--sc-gap)}
.poem-snow-game .sc-row{display:grid;grid-template-columns:repeat(7,var(--sc-cell));border-radius:calc(var(--sc-cell) * .28);transition:background-color .35s,box-shadow .35s}
.poem-snow-game .sc-row.is-reading{background:#fde9b0c9;box-shadow:0 0 0 3px #e8c57a8c}
.poem-snow-game .sc-tile{position:relative;width:var(--sc-cell);height:var(--sc-cell);margin:0;padding:0;border:0;border-radius:24%;background:transparent;color:var(--sc-ink);cursor:pointer;touch-action:manipulation}
.poem-snow-game .sc-tile:disabled{cursor:default;opacity:1}
.poem-snow-game .sc-tile:focus-visible{z-index:2;outline-offset:-1px}
.poem-snow-game[data-stage="seek"] .sc-tile{animation:sc-pop .5s cubic-bezier(.3,1.4,.5,1) calc(var(--n) * 22ms) both}
.poem-snow-game .sc-face{position:absolute;inset:max(2px,6%);display:grid;place-items:center;border-radius:22%;background:#fffdf8f5;border:1.5px solid #c6d4dc;box-shadow:0 2px 0 #d2dde4,0 6px 12px -8px #23404f80;transition:background-color .3s,border-color .3s,transform .15s}
.poem-snow-game .sc-face::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(110deg,#fff0 35%,#ffffff 50%,#fff0 65%) no-repeat;background-size:260% 100%;background-position:130% 0;opacity:0;pointer-events:none}
.poem-snow-game .sc-tile:hover:not(:disabled) .sc-face{border-color:#97afbe;transform:translateY(-1px)}
.poem-snow-game .sc-tile:active:not(:disabled) .sc-face{transform:translateY(1px);box-shadow:0 1px 0 #d2dde4}
.poem-snow-game .sc-char{position:relative;z-index:1;font-family:var(--serif);font-size:calc(var(--sc-cell) * .54);font-weight:700;line-height:1}
.poem-snow-game .sc-tile.is-seen .sc-face{background:#ebf3f7f5;border-color:#b3c8d4}
.poem-snow-game .sc-tile.is-seen .sc-face::after{content:"";position:absolute;right:9%;bottom:10%;width:max(6px,15%);height:max(6px,15%);border-radius:50% 0 50% 50%;transform:rotate(-45deg);background:#93bfd8}
.poem-snow-game .sc-tile.is-shimmer .sc-face::before{animation:sc-shimmer .75s ease-out}
.poem-snow-game .sc-poem.is-nudge .sc-tile:not(.is-seen) .sc-char{animation:sc-nudge .8s ease}
.poem-snow-game .sc-melt,.poem-snow-game .sc-cap{position:absolute;right:-9%;top:-13%;z-index:3;width:44%;height:44%;pointer-events:none}
.poem-snow-game .sc-melt svg,.poem-snow-game .sc-cap svg{display:block;width:100%;height:100%;overflow:visible}
.poem-snow-game .sc-melt{animation:sc-melt 1.1s ease-in forwards}
.poem-snow-game .sc-cap{opacity:0}
.poem-snow-game[data-stage="done"] .sc-cap{opacity:1}
.poem-snow-game[data-stage="done"] .sc-tile.is-seen .sc-face{background:#fffdf8f5;border-color:#c6d4dc}
.poem-snow-game[data-stage="done"] .sc-face::after,.poem-snow-game[data-stage="done"] .sc-tile.is-seen .sc-face::after{content:"";position:absolute;left:3%;right:3%;top:-9%;bottom:auto;width:auto;height:30%;border-radius:45% 45% 0 0/90% 90% 0 0;transform:none;transform-origin:50% 100%;background:radial-gradient(ellipse 22% 50% at 17% 50%,#fff 95%,#fff0),radial-gradient(ellipse 26% 56% at 48% 44%,#fff 95%,#fff0),radial-gradient(ellipse 22% 48% at 80% 52%,#fff 95%,#fff0),linear-gradient(#fff,#fff) 50% 0/100% 50% no-repeat;filter:drop-shadow(0 1.5px 0 #b5c8d3)}
.poem-snow-game.is-celebrate .sc-cap{animation:sc-settle 1.5s cubic-bezier(.3,.6,.4,1) calc(var(--k) * 1ms) both}
.poem-snow-game.is-celebrate .sc-face{animation:sc-frost 1.2s ease calc(var(--k) * 1ms + 700ms) both}
.poem-snow-game.is-celebrate .sc-face::after{animation:sc-pile .9s ease-out calc(var(--k) * 1ms + 500ms) both}
.poem-snow-game .sc-ask{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 12px;min-width:0;padding:10px 14px;border-radius:18px;background:var(--sc-paper);border:1px solid var(--sc-line);box-shadow:0 3px 0 #e5ebee}
.poem-snow-game .sc-ask.is-pulse{animation:sc-call 1.2s ease}
.poem-snow-game .sc-want{display:grid;justify-items:center;line-height:1.1;padding-right:2px}
.poem-snow-game .sc-want small{font-size:14px;font-weight:600;color:var(--sc-soft);letter-spacing:.04em;white-space:nowrap}
.poem-snow-game .sc-want b{font-family:var(--serif);font-size:clamp(34px,4.4vw,42px);font-weight:700;color:#3f7ea4}
.poem-snow-game .sc-want.is-pulse b{animation:sc-nudge .6s ease 2}
.poem-snow-game .sc-answer{min-height:56px;min-width:84px;padding:8px 18px;border:2px solid #b7cad5;border-radius:16px;background:#fff;color:var(--sc-ink);font-family:inherit;font-size:22px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:0 4px 0 #cddae2;transition:transform .12s,box-shadow .12s,background-color .2s,border-color .2s}
.poem-snow-game .sc-answer:hover:not(:disabled){background:#f2f8fb;border-color:#8eaec1}
.poem-snow-game .sc-answer:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #cddae2}
.poem-snow-game .sc-answer:disabled{cursor:default;opacity:.6}
.poem-snow-game .sc-count b.is-seal{display:grid;place-items:center;width:1.45em;height:1.45em;margin-top:3px;border-radius:12px;background:var(--sc-plum);color:#fffdf8;font-size:clamp(30px,3.6vw,36px);letter-spacing:0;transform:rotate(-5deg);box-shadow:inset 0 0 0 3px #fffdf84d,0 3px 0 #8e3d46}
.poem-snow-game.is-celebrate .sc-count b.is-seal{animation:sc-stamp .6s cubic-bezier(.3,1.5,.5,1) 1.1s both}
.poem-snow-game .sc-marks[data-kind="done"]{display:block}
.poem-snow-game .sc-wonder{display:grid;gap:2px;font-family:var(--serif);font-size:clamp(20px,2.4vw,24px);font-weight:700;line-height:1.35;letter-spacing:.03em;color:var(--sc-ink)}
.poem-snow-game .sc-wonder span{white-space:nowrap}
.poem-snow-game .sc-task.has-poet{display:flex;align-items:center;gap:12px}
.poem-snow-game .sc-task .sc-say{display:block}
.poem-snow-game .sc-task.has-poet .sc-say{position:relative;padding:6px 13px;border-radius:14px;background:var(--sc-paper);border:1px solid var(--sc-line)}
.poem-snow-game .sc-task.has-poet .sc-say::before{content:"";position:absolute;left:-7px;top:50%;width:12px;height:12px;margin-top:-6px;background:inherit;border-left:1px solid var(--sc-line);border-bottom:1px solid var(--sc-line);transform:rotate(45deg)}
.poem-snow-game .sc-poet{position:relative;flex:none;width:52px;height:52px;border-radius:50%;overflow:hidden;background:#e8eff3;box-shadow:0 0 0 2px #fff,0 0 0 3px #c6d4dc}
.poem-snow-game .sc-poet img{position:absolute;width:220%;max-width:none;height:auto;left:-48.6%;top:-23.4%}
@keyframes sc-fall{from{transform:translate3d(0,-4%,0)}to{transform:translate3d(var(--w),101%,0)}}
@keyframes sc-drift{from{transform:translate(-4px,-5px) rotate(-18deg)}to{transform:translate(4px,6px) rotate(24deg)}}
@keyframes sc-breathe{50%{box-shadow:0 0 0 13px #ffffff33,0 8px 18px -10px #23404f99}}
@keyframes sc-ripple{from{transform:scale(.3);opacity:1}to{transform:scale(3.4);opacity:0}}
@keyframes sc-ring{50%{transform:scale(1.1)}}
@keyframes sc-glow{0%{opacity:0;transform:scale(.4)}25%{opacity:1}100%{opacity:0;transform:scale(1.3)}}
@keyframes sc-fade{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
@keyframes sc-nudge{30%{transform:scale(1.16)}60%{transform:scale(.95)}}
@keyframes sc-appear{from{opacity:0;transform:translateY(6px)}}
@keyframes sc-pop{from{opacity:0;transform:scale(.6)}}
@keyframes sc-shimmer{0%{opacity:1;background-position:130% 0}100%{opacity:1;background-position:-30% 0}}
@keyframes sc-melt{0%{opacity:0;transform:scale(.4) rotate(0deg)}22%{opacity:1;transform:scale(1.05) rotate(30deg)}60%{opacity:.85;transform:translateY(25%) scale(.6) rotate(60deg)}100%{opacity:0;transform:translateY(110%) scale(.12) rotate(80deg)}}
@keyframes sc-settle{0%{opacity:0;transform:translate(-40%,-170%) rotate(-100deg) scale(.6)}35%{opacity:1}100%{opacity:1;transform:none}}
@keyframes sc-frost{40%{background-color:#ffffff;box-shadow:0 0 0 3px #ffffffd0,0 0 16px 4px #ffffffc0}}
@keyframes sc-call{25%,60%{box-shadow:0 0 0 5px #e8c57a99,0 3px 0 #e5ebee}}
@keyframes sc-pile{from{opacity:0;transform:scaleY(0)}}
@keyframes sc-stamp{from{opacity:0;transform:rotate(-5deg) scale(1.8)}to{opacity:1;transform:rotate(-5deg)}}
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
  .poem-snow-game{max-width:1280px}
  .poem-snow-game .sc-layout{grid-template-columns:minmax(0,1.75fr) minmax(250px,.9fr);grid-template-rows:minmax(0,1fr) auto auto minmax(0,1fr);column-gap:22px;row-gap:12px;align-items:center}
  .poem-snow-game .sc-stage{grid-column:1;grid-row:1/5;width:min(100%,calc(100cqh * 16 / 9));align-self:center}
  .poem-snow-game .sc-head{grid-column:2;grid-row:1;align-self:end;flex-direction:column;align-items:flex-start;gap:6px}
  .poem-snow-game .sc-chip{order:-1}
  .poem-snow-game .sc-card,.poem-snow-game .sc-ask{grid-column:2;grid-row:2}
  .poem-snow-game .sc-want{flex-basis:100%;display:flex;align-items:baseline;justify-content:center;gap:10px}
  .poem-snow-game .sc-task.has-poet{font-size:20px;gap:10px}
  .poem-snow-game .sc-poet{width:44px;height:44px}
  .poem-snow-game .sc-actionline{grid-column:2;grid-row:3}
  .poem-snow-game .sc-feedback{grid-column:2;grid-row:4;align-self:start;min-height:0;font-size:18px;line-height:1.45}
}
@media (orientation:landscape) and (max-height:500px){
  .poem-snow-game .sc-layout{grid-template-columns:min(calc(100cqh * 16 / 9),calc((100svh - 200px) * 16 / 9),58%) minmax(0,1fr);column-gap:16px;row-gap:5px}
  .poem-snow-game .sc-stage{width:100%;border-radius:14px}
  .poem-snow-game .sc-head{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
  .poem-snow-game .sc-task{font-size:17px;line-height:1.35}
  .poem-snow-game .sc-chip{order:1;font-size:14px;padding:2px 9px}
  .poem-snow-game .sc-card{justify-content:flex-start;padding:5px 12px;gap:4px 10px;border-radius:14px}
  .poem-snow-game .sc-count{display:flex;align-items:baseline;gap:6px;min-width:0;min-height:0;white-space:nowrap}
  .poem-snow-game .sc-count small{font-size:14px}
  .poem-snow-game .sc-count b{font-size:25px}
  .poem-snow-game .sc-marks{grid-template-columns:repeat(5,22px);gap:3px 4px}
  .poem-snow-game .sc-mark{width:22px;height:22px}
  .poem-snow-game .sc-marks[data-kind="flurry"]{gap:5px}
  .poem-snow-game .sc-pill{font-size:15px;padding:2px 8px}
  .poem-snow-game .sc-actionline{justify-content:flex-start;gap:6px 12px}
  .poem-snow-game .sc-verse{font-size:21px}
  .poem-snow-game .sc-listen{min-height:44px;padding:6px 13px;font-size:17px;border-radius:13px}
  .poem-snow-game .sc-listen svg{width:19px;height:19px}
  .poem-snow-game .sc-feedback{font-size:15px;line-height:1.35;text-align:left}
  .poem-snow-game .sc-loading{font-size:17px}
  .poem-snow-game .sc-ask{justify-content:flex-start;flex-wrap:nowrap;padding:5px 10px;gap:8px;border-radius:14px}
  .poem-snow-game .sc-want{flex-basis:auto;gap:5px}
  .poem-snow-game .sc-want b{font-size:26px}
  .poem-snow-game .sc-answer{min-height:44px;min-width:60px;padding:4px 12px;font-size:18px;border-radius:13px;box-shadow:0 3px 0 #cddae2}
  .poem-snow-game .sc-count b.is-seal{font-size:24px;border-radius:9px;margin-top:0}
  .poem-snow-game .sc-wonder{display:block;font-size:16px;line-height:1.3}
  .poem-snow-game .sc-wonder span{white-space:normal}
  .poem-snow-game .sc-task.has-poet{font-size:17px}
  .poem-snow-game .sc-task.has-poet .sc-say{padding:0;border:0;background:none}
  .poem-snow-game .sc-task.has-poet .sc-say::before,.poem-snow-game .sc-task .sc-poet{display:none}
}
@media (max-width:700px){
  .poem-snow-game .sc-layout{gap:10px}
  .poem-snow-game .sc-stage{border-radius:16px}
}
@media (max-width:420px){
  .poem-snow-game .sc-task{font-size:19px}
  .poem-snow-game .sc-chip{font-size:15px;padding:3px 10px}
  .poem-snow-game .sc-card{padding:8px 12px;gap:6px 12px}
  .poem-snow-game .sc-count{min-height:62px}
  .poem-snow-game .sc-count b{font-size:32px}
  .poem-snow-game .sc-marks{grid-template-columns:repeat(5,28px);gap:6px}
  .poem-snow-game .sc-mark{width:28px;height:28px}
  .poem-snow-game .sc-pill{font-size:17px;padding:4px 8px}
  .poem-snow-game .sc-marks[data-kind="flurry"]{gap:5px}
  .poem-snow-game .sc-verse{font-size:25px;letter-spacing:.04em}
  .poem-snow-game .sc-listen{font-size:18px;padding:8px 14px}
  .poem-snow-game .sc-feedback{font-size:18px}
  .poem-snow-game .sc-end{padding:6px 10px 7px;border-radius:10px}
  .poem-snow-game .sc-sky-hint{padding:6px 15px}
  .poem-snow-game .sc-ask{padding:8px 10px;gap:8px}
  .poem-snow-game .sc-want b{font-size:32px}
  .poem-snow-game .sc-answer{min-width:68px;padding:8px 12px;font-size:20px}
  .poem-snow-game .sc-wonder{font-size:19px}
  .poem-snow-game .sc-poet{width:46px;height:46px}
  .poem-snow-game .sc-task.has-poet{gap:10px}
  .poem-snow-game .sc-task.has-poet .sc-say{padding:5px 10px}
}
@media (max-width:370px){
  .poem-snow-game .sc-task{font-size:18px}
  .poem-snow-game .sc-count{min-width:3.6em;min-height:55px}
  .poem-snow-game .sc-count b{font-size:28px}
  .poem-snow-game .sc-marks{grid-template-columns:repeat(5,25px);gap:5px}
  .poem-snow-game .sc-mark{width:25px;height:25px}
  .poem-snow-game .sc-verse{font-size:22px;letter-spacing:.02em}
  .poem-snow-game .sc-listen{padding:8px 11px;font-size:17px}
  .poem-snow-game .sc-answer{min-width:56px;padding:8px 10px;font-size:18px}
  .poem-snow-game .sc-want b{font-size:28px}
}
.poem-snow-game.is-reduced .sc-fall i{animation:none;transform:translateY(var(--y))}
.poem-snow-game.is-reduced .sc-flake svg,.poem-snow-game.is-reduced .sc-big-art svg,.poem-snow-game.is-reduced .sc-sky-hint,.poem-snow-game.is-reduced .sc-plum span,.poem-snow-game.is-reduced .sc-end,.poem-snow-game.is-reduced .sc-bigs.is-nudge .sc-big-art{animation:none!important}
.poem-snow-game.is-reduced .sc-flake,.poem-snow-game.is-reduced .sc-flake.is-caught{transform:translate(-50%,-50%);transition:opacity .2s}
.poem-snow-game.is-reduced .sc-big{transition:none}
.poem-snow-game.is-reduced .sc-big-art,.poem-snow-game.is-reduced .sc-big.is-dragging .sc-big-art{transform:none;filter:none;transition:opacity .5s ease}
.poem-snow-game.is-reduced .sc-ripple{display:none}
.poem-snow-game.is-reduced .sc-plum.is-glow::after{animation:sc-fade 1.5s ease-out forwards;transform:none}
.poem-snow-game.is-reduced .sc-scene,.poem-snow-game.is-reduced .sc-veil{transition-duration:.4s}
.poem-snow-game.is-reduced .sc-tile,.poem-snow-game.is-reduced .sc-face,.poem-snow-game.is-reduced .sc-face::before,.poem-snow-game.is-reduced .sc-face::after,.poem-snow-game.is-reduced .sc-char,.poem-snow-game.is-reduced .sc-cap,.poem-snow-game.is-reduced .sc-ask,.poem-snow-game.is-reduced .sc-want b,.poem-snow-game.is-reduced .sc-count b.is-seal{animation:none!important}
.poem-snow-game.is-reduced .sc-melt{display:none}
.poem-snow-game.is-reduced .sc-ask.is-pulse{box-shadow:0 0 0 4px #e8c57a99,0 3px 0 #e5ebee}
.poem-snow-game.is-reduced .sc-tile.is-shimmer .sc-face{background:#ffffff;border-color:#97afbe}
.poem-snow-game.is-reduced .sc-want.is-pulse b{text-decoration:underline 3px #e8c57a;text-underline-offset:4px}
@media (prefers-reduced-motion:reduce){
  .poem-snow-game .sc-fall i{animation:none;transform:translateY(var(--y))}
  .poem-snow-game .sc-flake svg,.poem-snow-game .sc-big-art svg,.poem-snow-game .sc-sky-hint,.poem-snow-game .sc-plum span,.poem-snow-game .sc-end,.poem-snow-game .sc-bigs.is-nudge .sc-big-art{animation:none!important}
  .poem-snow-game .sc-ripple{display:none}
  .poem-snow-game .sc-big{transition:none}
  .poem-snow-game .sc-tile,.poem-snow-game .sc-face,.poem-snow-game .sc-face::before,.poem-snow-game .sc-face::after,.poem-snow-game .sc-char,.poem-snow-game .sc-cap,.poem-snow-game .sc-ask,.poem-snow-game .sc-want b,.poem-snow-game .sc-count b.is-seal{animation:none!important}
  .poem-snow-game .sc-melt{display:none}
}

/* poem-games/rooster.css */
.poem-rooster-game{--ink:#3d3125;--red:#a8432c;--soft:#76634d;--d:0;width:100%;max-width:760px;margin-inline:auto;align-self:start;display:grid;gap:12px;color:var(--ink);font-family:inherit;min-width:0}
.poem-rooster-game *{box-sizing:border-box}
.poem-rooster-game [hidden]{display:none!important}
.poem-rooster-game button{font-family:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-rooster-game button:disabled{cursor:default}
.poem-rooster-game button:focus-visible,.poem-rooster-game .rr-range:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-rooster-game .rr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-rooster-game .rr-instruction{margin:0;min-width:0;font-size:clamp(19px,2.4vw,24px);font-weight:600;line-height:1.45;text-wrap:balance}
.poem-rooster-game .rr-instruction span{display:inline-block}
.poem-rooster-game .rr-progress{flex:none;padding:6px 14px;border-radius:999px;background:#fff7e8;border:1px solid #e6d2b0;color:#8a5a2b;font-weight:700;font-size:18px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}

.poem-rooster-game .rr-stage{position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#ebe2d1;border:1px solid #8b6c4a33;box-shadow:0 14px 28px -20px #5b3b1c80;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.poem-rooster-game.is-look .rr-stage{cursor:pointer}
.poem-rooster-game .rr-scene,.poem-rooster-game .rr-layer{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.poem-rooster-game .rr-day{transition:opacity .9s ease}
.poem-rooster-game:not(.is-look) .rr-day{opacity:0}
.poem-rooster-game .rr-sky{opacity:calc((var(--d) - .2) * 1.25);-webkit-mask-image:linear-gradient(180deg,#000 34%,transparent 47%),linear-gradient(90deg,transparent 42%,#000 57%);-webkit-mask-composite:source-in;mask-image:linear-gradient(180deg,#000 34%,transparent 47%),linear-gradient(90deg,transparent 42%,#000 57%);mask-composite:intersect}
.poem-rooster-game .rr-warm{background:linear-gradient(200deg,transparent 30%,#ffb46a 72%,#ffd38c);mix-blend-mode:soft-light;opacity:calc(var(--d) * .75)}
.poem-rooster-game .rr-dark{background:linear-gradient(180deg,#0e1533,#1c2750 58%,#283152);mix-blend-mode:multiply;opacity:calc((1 - var(--d)) * .8)}
.poem-rooster-game .rr-stars{inset:0 0 54% 45%;width:auto;height:auto;opacity:calc(.95 - var(--d) * 1.7);background:
  radial-gradient(circle at 8% 24%,#fffbe8 0 1.4px,transparent 2.6px),radial-gradient(circle at 19% 62%,#fffbe8 0 1px,transparent 2px),radial-gradient(circle at 27% 14%,#fffbe8 0 1.6px,transparent 3px),
  radial-gradient(circle at 38% 40%,#fffbe8 0 1px,transparent 2px),radial-gradient(circle at 47% 9%,#fffbe8 0 1.2px,transparent 2.4px),radial-gradient(circle at 58% 55%,#fffbe8 0 1.4px,transparent 2.6px),
  radial-gradient(circle at 66% 30%,#fffbe8 0 1px,transparent 2px),radial-gradient(circle at 84% 12%,#fffbe8 0 1.6px,transparent 3px),radial-gradient(circle at 91% 46%,#fffbe8 0 1.1px,transparent 2.2px),
  radial-gradient(circle at 74% 70%,#fffbe8 0 .9px,transparent 1.8px),radial-gradient(circle at 33% 80%,#fffbe8 0 .9px,transparent 1.8px)}
.poem-rooster-game .rr-moon{position:absolute;left:73%;top:8%;width:4.4cqi;height:4.4cqi;border-radius:50%;box-shadow:inset -1.2cqi .5cqi 0 0 #f8efcf;filter:drop-shadow(0 0 1cqi #f8efcf99);transform:translateY(calc(var(--d) * 9cqi)) rotate(-18deg);opacity:calc(1 - var(--d) * 1.5);pointer-events:none}
.poem-rooster-game .rr-sunclip{position:absolute;left:0;right:0;top:0;height:44.6%;overflow:hidden;pointer-events:none}
.poem-rooster-game .rr-sun{position:absolute;left:88.4%;top:calc(100% + 3cqi - var(--d) * 3.7cqi);width:3.6cqi;height:3.6cqi;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#fffbe9 0 30%,#ffd67c 62%,#f6a54d);box-shadow:0 0 2.2cqi .8cqi #ffd27a99;opacity:calc(var(--d) * 1.4)}
.poem-rooster-game .rr-glow{position:absolute;left:88.4%;top:44%;width:80cqi;height:50cqi;transform:translate(-50%,-50%);background:radial-gradient(closest-side,#ffd9a0d0,#ffb07a50 45%,transparent);mix-blend-mode:screen;opacity:calc(var(--d) * .7);pointer-events:none}
.poem-rooster-game .rr-dawn{opacity:0;transition:opacity 1.4s ease}
.poem-rooster-game.is-open .rr-dawn{opacity:1}
.poem-rooster-game .rr-veil{background:linear-gradient(180deg,#26305a,#1d2547);mix-blend-mode:multiply;opacity:0;transition:opacity .9s ease}
.poem-rooster-game.is-open .rr-veil{opacity:calc((1 - var(--o)) * .3)}
.poem-rooster-game .rr-walk{position:absolute;left:var(--l);top:var(--t);width:var(--bw);height:var(--bh);display:none;pointer-events:none;-webkit-user-drag:none}
.poem-rooster-game.is-look.is-strut .rr-walk{display:block}
.poem-rooster-game .rr-cock{transform-origin:62% 100%}
.poem-rooster-game.is-strut-in .rr-cock{animation:rr-strut-in 2.9s linear both}
.poem-rooster-game.is-strut-show .rr-cock{animation:rr-strut-show 1.5s ease-in-out both}
.poem-rooster-game.is-strut-in .rr-spot,.poem-rooster-game.is-strut-in .rr-chip{opacity:0;pointer-events:none}
@keyframes rr-strut-in{
  0%{opacity:0;transform:translateX(-100%) scale(.84)}
  6%{opacity:1}
  13%{transform:translateX(-84%) translateY(-3.2%) scale(.86) rotate(-2.5deg)}
  22%{transform:translateX(-70%) scale(.88) rotate(1deg)}
  31%{transform:translateX(-56%) translateY(-3.2%) scale(.9) rotate(-2.5deg)}
  40%{transform:translateX(-43%) scale(.92) rotate(1deg)}
  49%{transform:translateX(-31%) translateY(-3.2%) scale(.94) rotate(-2.5deg)}
  58%{transform:translateX(-20%) scale(.96) rotate(1deg)}
  67%{transform:translateX(-11%) translateY(-2.6%) scale(.98) rotate(-2deg)}
  76%{transform:translateX(-4%) rotate(.6deg)}
  84%{transform:translateY(-1.6%) rotate(-1.2deg) scale(1.02)}
  92%{transform:scale(1.015,.99)}
  100%{opacity:1;transform:none}}
@keyframes rr-strut-show{
  20%{transform:translateY(-2.6%) rotate(-2.2deg)}
  40%{transform:translateX(1.4%) rotate(.8deg)}
  60%{transform:translateX(2.4%) translateY(-2.6%) rotate(-2.2deg)}
  80%{transform:translateX(1%) rotate(.6deg)}}
.poem-rooster-game .rr-nhole,.poem-rooster-game .rr-nhead{position:absolute;left:30.625%;top:7.778%;width:13.4375%;height:23.889%;display:none;background:var(--rr-nhead) 0 0/200% 100% no-repeat;pointer-events:none}
.poem-rooster-game .rr-nhead{background-position:100% 0;transform-origin:48.8% 79.1%}
.poem-rooster-game.is-dawn.is-shake .rr-nhole,.poem-rooster-game.is-dawn.is-shake .rr-nhead{display:block}
.poem-rooster-game.is-dawn.is-shake .rr-nhead{animation:rr-no 1.1s ease-in-out both}
@keyframes rr-no{15%{transform:rotate(-8deg)}35%{transform:rotate(7deg)}55%{transform:rotate(-6deg)}75%{transform:rotate(4deg)}}
.poem-rooster-game .rr-shakes{position:absolute;z-index:3;left:28%;top:5%;width:19%;height:26%;overflow:visible;opacity:0;pointer-events:none}
.poem-rooster-game .rr-shakes path{fill:none;stroke:#fff6dc;stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 2px #0b1233)}
.poem-rooster-game.is-dawn.is-shake .rr-shakes{animation:rr-flash 1.1s ease both}
@keyframes rr-flash{0%,100%{opacity:0}20%,75%{opacity:.95}}
.poem-rooster-game .rr-light{position:absolute;left:var(--x);top:var(--y);width:var(--s);aspect-ratio:1.5;transform:translate(-50%,-50%) scale(.6);border-radius:50%;background:radial-gradient(closest-side,#fff0c0,#ffc36a99 40%,transparent);mix-blend-mode:screen;opacity:0;transition:opacity .8s ease,transform .8s ease;pointer-events:none}
.poem-rooster-game .rr-light.is-on{opacity:.85;transform:translate(-50%,-50%) scale(1)}
.poem-rooster-game .rr-rings{position:absolute;z-index:3;left:41%;top:4.5%;width:9cqi;height:9cqi;overflow:visible;pointer-events:none;opacity:0}
.poem-rooster-game .rr-rings path{fill:none;stroke:#7c3317;stroke-width:3.6;stroke-linecap:round;filter:drop-shadow(0 0 1.6px #fff6dc) drop-shadow(0 0 3px #fff6dc)}
.poem-rooster-game.is-crowing .rr-rings{opacity:1}
.poem-rooster-game.is-crowing .rr-rings path{animation:rr-ring 1.1s ease-out 2 both}
.poem-rooster-game.is-crowing .rr-rings path:nth-child(2){animation-delay:.14s}
.poem-rooster-game.is-crowing .rr-rings path:nth-child(3){animation-delay:.28s}
@keyframes rr-ring{0%{opacity:0;transform:translateX(-4px)}35%{opacity:1}100%{opacity:0;transform:translateX(7px)}}
.poem-rooster-game .rr-hush{position:absolute;z-index:4;left:46.5%;top:8%;display:grid;gap:.3em;padding:.55em .8em .6em;border-radius:.8em;background:#fffaf0f0;box-shadow:0 .5cqi 1.4cqi #0b123355;font-family:var(--sans);font-size:clamp(15px,2.8cqi,26px);font-weight:800;line-height:1.15;color:#5a4a3a;letter-spacing:.06em;white-space:nowrap;opacity:0;transform:scale(.7);transform-origin:0 100%;transition:opacity .25s ease,transform .25s cubic-bezier(.3,1.5,.5,1);pointer-events:none}
.poem-rooster-game .rr-hush b:last-child{color:#a8432c}
.poem-rooster-game .rr-hush::before{content:'';position:absolute;left:-.55em;bottom:.9em;border-style:solid;border-width:.4em .6em .4em 0;border-color:transparent #fffaf0f0 transparent transparent}
.poem-rooster-game .rr-hush.is-on{opacity:1;transform:none}
.poem-rooster-game .rr-tap{position:absolute;z-index:3;inset:0;display:none}
.poem-rooster-game.is-look .rr-tap{display:block}
.poem-rooster-game .rr-sunzone{position:absolute;z-index:3;left:46%;right:0;top:0;bottom:16%;display:none;touch-action:none;cursor:ns-resize}
.poem-rooster-game.is-dawn .rr-sunzone{display:block}
.poem-rooster-game .rr-pull{position:absolute;right:2.4cqi;top:58%;transform:translateY(-50%);display:flex;align-items:center;gap:.8cqi;padding:.7cqi 1.8cqi;border-radius:999px;background:#fff8e8ea;color:#7a4a1e;font-family:var(--sans);font-size:clamp(14px,2.3cqi,20px);font-weight:700;line-height:1.2;white-space:nowrap;box-shadow:0 .5cqi 1.6cqi #0b123366}
.poem-rooster-game .rr-pull i{width:0;height:0;border-style:solid;border-width:0 .9cqi 1.3cqi;border-color:transparent transparent #e2913a}
.poem-rooster-game:not(.is-reduced) .rr-pull{animation:rr-bob 1.8s ease-in-out infinite}
@keyframes rr-bob{50%{transform:translateY(calc(-50% - .8cqi))}}

.poem-rooster-game .rr-spot{position:absolute;z-index:4;left:var(--x);top:var(--y);width:var(--w);height:var(--h);min-width:44px;min-height:44px;transform:translate(-50%,-50%);padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.poem-rooster-game .rr-spot svg{position:absolute;inset:-9%;width:118%;height:118%;overflow:visible;pointer-events:none}
.poem-rooster-game .rr-spot.is-top{top:auto;bottom:calc(100% - var(--y));height:max(6.75cqi,44px);min-width:60px;transform:translateX(-50%);border-radius:50% 50% 40% 40%}
.poem-rooster-game .rr-spot.is-top svg{top:auto;bottom:-10%;height:calc(6.75cqi * 1.2)}
.poem-rooster-game .rr-spot path{fill:none;stroke:#b4472f;stroke-width:3;stroke-linecap:round;stroke-dasharray:1 1;stroke-dashoffset:1;opacity:.92;filter:drop-shadow(0 1px 0 #fffbf2aa)}
.poem-rooster-game .rr-spot.is-found path{stroke-dashoffset:0;transition:stroke-dashoffset .8s ease}
.poem-rooster-game .rr-spot:focus-visible{outline:3px dashed #f2b450;outline-offset:3px}
.poem-rooster-game .rr-spot.is-hint::after{content:'';position:absolute;inset:-4%;border-radius:50%;box-shadow:0 0 0 3px #fff6dcd0,0 0 2.4cqi 1cqi #f6c76a;animation:rr-breathe 1.8s ease-in-out infinite;pointer-events:none}
@keyframes rr-breathe{50%{opacity:.35;transform:scale(1.06)}}
.poem-rooster-game .rr-chip{position:absolute;z-index:5;left:var(--x);top:var(--y);display:grid;gap:.25cqi;padding:.8cqi 1.8cqi 1cqi;border-radius:1.6cqi;background:#fffaf1ee;border:1px solid #d8bf9a;box-shadow:0 .6cqi 1.8cqi -.6cqi #5b3b1c66;font-family:var(--sans);line-height:1.25;pointer-events:none;opacity:0;transform:translateY(.8cqi) scale(.92);transform-origin:0 50%;transition:opacity .35s ease,transform .35s ease}
.poem-rooster-game .rr-chip.is-on{opacity:1;transform:none}
.poem-rooster-game .rr-chip::before{content:'';position:absolute;left:-1cqi;top:50%;width:1.8cqi;height:1.8cqi;background:#fffaf1;border-left:1px solid #d8bf9a;border-bottom:1px solid #d8bf9a;transform:translateY(-50%) rotate(45deg)}
.poem-rooster-game .rr-chip b{font-size:clamp(15px,3.1cqi,28px);color:var(--red);letter-spacing:.08em}
.poem-rooster-game .rr-chip small{font-size:clamp(14px,1.9cqi,17px);color:#6d5a44;font-weight:600}
@container (max-width:470px){.poem-rooster-game .rr-chip small{display:none}.poem-rooster-game .rr-chip{padding:.8cqi 2.2cqi}}
.poem-rooster-game .rr-caption{position:absolute;z-index:5;right:2.2cqi;top:2.2cqi;display:grid;justify-items:end;gap:.2em;padding:1cqi 2.4cqi 1.2cqi;border-radius:1.8cqi;background:#fff8ebe8;border:1px solid #e3c79c;color:#8a3a22;font-family:var(--sans);line-height:1.25;box-shadow:0 .6cqi 2cqi -.8cqi #5b3b1c66;opacity:0;transform:translateY(-1cqi);transition:opacity .6s ease .2s,transform .6s ease .2s;pointer-events:none}
.poem-rooster-game .rr-caption b{font-size:clamp(15px,3cqi,30px);letter-spacing:.06em;white-space:nowrap}
.poem-rooster-game .rr-caption small{font-size:clamp(14px,2.1cqi,20px);font-weight:700;color:#8a6a48;letter-spacing:.14em}
.poem-rooster-game.is-done .rr-caption{opacity:1;transform:none}
.poem-rooster-game .rr-loading{position:absolute;inset:0;z-index:8;display:grid;align-content:center;justify-items:center;gap:14px;padding:20px;background:#f6f0e4eb;font-size:20px;line-height:1.5;text-align:center;color:var(--ink)}
.poem-rooster-game .rr-loading button{min-height:48px;padding:10px 22px;border:1px solid #c7a77d;border-radius:14px;background:#fffdf8;color:var(--ink);font-size:20px;font-weight:600;cursor:pointer}

.poem-rooster-game .rr-panel{display:grid;gap:12px;align-content:start;min-width:0}
.poem-rooster-game .rr-clues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.poem-rooster-game .rr-clue{display:flex;align-items:center;gap:12px;min-width:0;padding:10px 12px;border-radius:18px;background:#fffdf8;border:1.5px dashed #dcc9a8;transition:border-color .3s,background .3s}
.poem-rooster-game .rr-clue.is-found{border-style:solid;border-color:#ddb083;background:#fff5e4}
.poem-rooster-game .rr-thumb{position:relative;flex:none;width:62px;height:62px;border-radius:14px;overflow:hidden;background:var(--rr-scene2) var(--thumb) no-repeat,#ece3d2;box-shadow:inset 0 0 0 1px #8b6c4a26}
.poem-rooster-game .rr-thumb::after{content:'?';position:absolute;inset:0;display:grid;place-items:center;font-size:30px;font-weight:700;color:#8a6f4f;background:#f8f1e3d0;-webkit-backdrop-filter:blur(3px) grayscale(1);backdrop-filter:blur(3px) grayscale(1)}
.poem-rooster-game .rr-clue.is-found .rr-thumb::after{content:none}
.poem-rooster-game .rr-clue span{min-width:0}
.poem-rooster-game .rr-clue b{display:block;font-size:22px;line-height:1.25;color:#6b5a48}
.poem-rooster-game .rr-clue.is-found b{color:var(--red);letter-spacing:.06em}
.poem-rooster-game .rr-clue small{display:block;font-size:16px;line-height:1.35;color:var(--soft);font-weight:600}
.poem-rooster-game .rr-next{min-height:56px;padding:10px 20px;border:0;border-radius:18px;background:linear-gradient(180deg,#44528a,#2d3765);color:#fff8e8;font-size:21px;font-weight:700;cursor:pointer;box-shadow:0 4px 0 #1f2749}
.poem-rooster-game .rr-next.is-wait{background:#d9cfbf;color:#5d4a36;box-shadow:0 4px 0 #b7a78f;cursor:default}
.poem-rooster-game .rr-skybar{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:999px;background:linear-gradient(90deg,#e3e2ef,#fbefdc);border:1px solid #dacdb7}
.poem-rooster-game .rr-step{flex:none;width:52px;height:52px;padding:0;border-radius:50%;border:1.5px solid #d6c3a3;background:#fffdf8;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 0 #eadcc4}
.poem-rooster-game .rr-step:disabled{opacity:.45;box-shadow:none}
.poem-rooster-game .rr-step i{display:block}
.poem-rooster-game .rr-step.is-moon i{width:24px;height:24px;border-radius:50%;box-shadow:inset -7px 3px 0 0 #6b679e;transform:rotate(-15deg)}
.poem-rooster-game .rr-step.is-sun i{width:20px;height:20px;border-radius:50%;background:radial-gradient(circle,#ffeaa8,#f5a640);box-shadow:0 0 0 4px #f8c66a55,0 0 0 8px #f8c66a22}
.poem-rooster-game .rr-range{flex:1;min-width:0;height:52px;margin:0;padding:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer;border-radius:999px}
.poem-rooster-game .rr-range::-webkit-slider-runnable-track{height:14px;border-radius:999px;background:linear-gradient(90deg,#27304f,#5d5a8a 38%,#e7a25e 78%,#f8d27a)}
.poem-rooster-game .rr-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:46px;height:46px;margin-top:-16px;border-radius:50%;border:3px solid #fffaf0;background:radial-gradient(circle at 42% 38%,#fffbe6,#ffd36e 45%,#f19a3c);box-shadow:0 3px 8px #7a3f1366,0 0 0 6px #f7c25a40}
.poem-rooster-game .rr-range::-moz-range-track{height:14px;border-radius:999px;background:linear-gradient(90deg,#27304f,#5d5a8a 38%,#e7a25e 78%,#f8d27a)}
.poem-rooster-game .rr-range::-moz-range-thumb{width:40px;height:40px;border-radius:50%;border:3px solid #fffaf0;background:radial-gradient(circle at 42% 38%,#fffbe6,#ffd36e 45%,#f19a3c);box-shadow:0 3px 8px #7a3f1366,0 0 0 6px #f7c25a40}
.poem-rooster-game .rr-range:disabled{opacity:.6;cursor:default}
.poem-rooster-game .rr-crow{display:flex;align-items:center;justify-content:center;gap:12px;min-height:64px;padding:10px 20px;border-radius:20px;border:1.5px solid #c9b79b;background:#f3eee5;color:#6b5a48;cursor:pointer;box-shadow:0 4px 0 #ddd0bb;transition:background .4s,color .4s,box-shadow .4s,border-color .4s}
.poem-rooster-game .rr-crow span{font-size:26px;font-weight:800;letter-spacing:.14em;line-height:1.2}
.poem-rooster-game .rr-crow small{font-size:16px;font-weight:600;opacity:.85}
.poem-rooster-game.is-bright .rr-crow{background:linear-gradient(180deg,#d4573a,#b3432b);border-color:#a23a24;color:#fff8ec;box-shadow:0 4px 0 #8c2f1c,0 0 0 6px #f6b75a44}
.poem-rooster-game.is-bright:not(.is-reduced) .rr-crow{animation:rr-call 1.8s ease-in-out infinite}
@keyframes rr-call{50%{box-shadow:0 4px 0 #8c2f1c,0 0 0 12px #f6b75a1c}}
.poem-rooster-game .rr-lane{position:relative;overflow:hidden;overflow:clip;container-type:inline-size;border-radius:16px;aspect-ratio:900/360;background:linear-gradient(180deg,#f6d5a3,#fbeedb 75%);border:1px solid #dcc8a6}
.poem-rooster-game .rr-lane::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#1b2346,#3a4068 75%);opacity:calc(1 - var(--d));pointer-events:none}
.poem-rooster-game .rr-lane-art{position:absolute;left:0;right:0;bottom:0;aspect-ratio:900/280;filter:brightness(calc(.5 + var(--d) * .5)) saturate(calc(.55 + var(--d) * .45))}
.poem-rooster-game .rr-lane-img{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.poem-rooster-game .rr-door{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);perspective:220px;transition:box-shadow .8s ease}
.poem-rooster-game .rr-door.is-open{box-shadow:inset 0 5px 6px -2px #7a4a1e66,inset 0 0 8px #c9873a55}
.poem-rooster-game .rr-leaf{position:absolute;top:0;bottom:0;width:50.5%;background:var(--rr-door,linear-gradient(#8f4c2f,#7a3f27)) 0 0/200% 100% no-repeat,#8a4a2e;filter:saturate(.78) brightness(.96);transition:transform 1s cubic-bezier(.3,.7,.25,1),filter 1s ease}
.poem-rooster-game .rr-door.is-open .rr-leaf{filter:saturate(.7) brightness(.66)}
.poem-rooster-game .rr-leaf.is-l{left:0;transform-origin:0 50%}
.poem-rooster-game .rr-leaf.is-r{right:0;background-position:100% 0,0 0;transform-origin:100% 50%}
.poem-rooster-game .rr-door.is-open .rr-leaf.is-l{transform:rotateY(-66deg)}
.poem-rooster-game .rr-door.is-open .rr-leaf.is-r{transform:rotateY(66deg)}
.poem-rooster-game .rr-spill{position:absolute;left:-55%;right:-55%;bottom:-16%;height:30%;border-radius:50%;background:radial-gradient(closest-side,#ffd58acc,#ffd58a00);opacity:0;transition:opacity .8s ease .25s}
.poem-rooster-game .rr-door.is-open .rr-spill{opacity:1}
.poem-rooster-game.is-open:not(.is-done) .rr-door:not(.is-open)::after{content:'';position:absolute;inset:-4% -9%;border-radius:8px;box-shadow:0 0 0 2px #fff3d0e6,0 0 12px 4px #f6c76acc;animation:rr-breathe 1.8s ease-in-out calc(var(--i) * .2s) infinite;pointer-events:none}
.poem-rooster-game .rr-folk{position:absolute;left:7%;right:7%;bottom:1%;height:90%;background:var(--rr-folk) calc(var(--f) * 100% / 3) 100%/400% 100% no-repeat;transform-origin:50% 100%;opacity:0;transform:translateY(12%) scale(.92);transition:opacity .4s ease .35s,transform .55s cubic-bezier(.3,1.5,.5,1) .35s}
.poem-rooster-game .rr-door.is-open .rr-folk{opacity:1;transform:none}
.poem-rooster-game .rr-door.is-new .rr-folk{animation:rr-wave .9s ease-in-out 1s 2}
@keyframes rr-wave{30%{transform:translateY(-4%) rotate(-3deg)}70%{transform:translateY(-1%) rotate(2deg)}}
.poem-rooster-game .rr-win{position:absolute;left:var(--x);top:var(--y);width:5.6%;height:19%;transform:translate(-50%,-50%);border-radius:30%;background:radial-gradient(closest-side,#ffeab0 35%,#ffc8664d 72%,transparent);mix-blend-mode:screen;opacity:0;transition:opacity .8s ease .3s;pointer-events:none}
.poem-rooster-game .rr-win.is-on{opacity:1}
.poem-rooster-game .rr-perch{position:absolute;left:var(--x);top:var(--y);width:8.3%;aspect-ratio:133/150;transform:translate(-50%,-100%);pointer-events:none}
.poem-rooster-game .rr-hop{display:block;width:100%;height:100%;opacity:0;transform:translateY(30%) scale(.8);transform-origin:50% 100%;transition:opacity .3s ease .45s,transform .5s cubic-bezier(.3,1.6,.5,1) .45s}
.poem-rooster-game .rr-perch.is-on .rr-hop{opacity:1;transform:none}
.poem-rooster-game .rr-chick{display:block;width:100%;height:100%;background:var(--rr-chick) calc(var(--f) * 100% / 3) 100%/400% 100% no-repeat;transform-origin:50% 100%;filter:drop-shadow(0 1px 1px #3d312566)}
.poem-rooster-game .rr-perch.is-crow .rr-chick{animation:rr-chirp .9s ease-in-out}
@keyframes rr-chirp{20%{transform:rotate(calc(var(--k) * 8deg)) scale(1.06,1.08)}40%{transform:rotate(calc(var(--k) * 3deg))}60%{transform:rotate(calc(var(--k) * 9deg)) scale(1.06,1.08)}}
.poem-rooster-game .rr-oo{position:absolute;z-index:2;left:var(--x);top:var(--y);padding:.2em .55em .28em;border-radius:1em;background:#fffaf0f4;border:1.5px solid #e2b77a;color:#a8432c;font-family:var(--sans);font-size:clamp(14px,3cqi,19px);font-weight:800;line-height:1.15;letter-spacing:.04em;white-space:nowrap;box-shadow:0 2px 6px #5b3b1c40;opacity:0;transform:translate(0,-50%) scale(.6);transform-origin:0 50%;transition:opacity .2s ease,transform .3s cubic-bezier(.3,1.6,.5,1);pointer-events:none}
.poem-rooster-game .rr-oo.is-left{transform:translate(-100%,-50%) scale(.6);transform-origin:100% 50%}
.poem-rooster-game .rr-oo.is-on{opacity:1;transform:translate(0,-50%)}
.poem-rooster-game .rr-oo.is-left.is-on{transform:translate(-100%,-50%)}
.poem-rooster-game .rr-house{position:absolute;z-index:3;left:var(--x);width:var(--w);top:4%;bottom:6%;margin:0;padding:0;border:0;border-radius:12px;background:transparent;cursor:pointer}
.poem-rooster-game .rr-house:disabled{cursor:default}
.poem-rooster-game .rr-house:focus-visible{outline:3px solid #de9b34;outline-offset:-4px}
.poem-rooster-game .rr-count{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.poem-rooster-game .rr-count li{position:relative;display:grid;place-items:center;min-height:42px;padding:4px 6px;border-radius:12px;border:1.5px dashed #d8c3a0;background:#fffdf8;color:#ad9a82;font-size:16px;font-weight:800;letter-spacing:.1em;line-height:1.2;white-space:nowrap;transition:background .4s,border-color .4s,color .4s}
.poem-rooster-game .rr-count li:nth-child(2){font-size:17px}
.poem-rooster-game .rr-count li:nth-child(3){font-size:19px}
.poem-rooster-game .rr-count li:nth-child(4){font-size:21px}
.poem-rooster-game .rr-count li+li::before{content:'';position:absolute;left:-5px;top:50%;width:6px;height:6px;border-top:2px solid #d8b98c;border-right:2px solid #d8b98c;transform:translate(-50%,-50%) rotate(45deg)}
.poem-rooster-game .rr-count li.is-on{border-style:solid;border-color:#dc9d55;background:linear-gradient(180deg,#fff3d6,#ffdfa4);color:#8a3a22}
.poem-rooster-game .rr-count li.is-new{animation:rr-pop .6s cubic-bezier(.3,1.6,.5,1)}
@keyframes rr-pop{0%{transform:scale(.7)}100%{transform:none}}

.poem-rooster-game .rr-actionline{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap}
.poem-rooster-game .rr-method{font-size:18px;color:var(--soft);font-weight:600;line-height:1.4}
.poem-rooster-game .rr-audio{display:inline-flex;align-items:center;gap:9px;min-height:52px;padding:10px 20px;border-radius:16px;border:1.5px solid #cfa77a;background:#fffaf1;color:#7a3c22;font-size:20px;font-weight:700;cursor:pointer;box-shadow:0 3px 0 #ead8bd}
.poem-rooster-game .rr-audio::before{content:'';width:0;height:0;border-style:solid;border-width:8px 0 8px 12px;border-color:transparent transparent transparent currentColor}
.poem-rooster-game .rr-feedback{margin:0;min-height:3em;font-size:20px;line-height:1.5;text-align:center;color:#5b4a38;text-wrap:pretty}

/* Phones held sideways use the same picture-beside-panel layout as the other games: stacked,
   the sticky picture was taller than the visible area and covered 下一步 and the clue cards. */
@media (min-width:701px) and (orientation:landscape),(orientation:landscape) and (max-height:500px){
  .poem-rooster-game{grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;align-items:start;column-gap:22px}
  .poem-rooster-game .rr-stage{grid-column:1;grid-row:1/5;align-self:start;width:min(100%,calc(100cqh * 16 / 9))}
  .poem-rooster-game .rr-head,.poem-rooster-game .rr-panel,.poem-rooster-game .rr-actionline,.poem-rooster-game .rr-feedback{grid-column:2}
  .poem-rooster-game .rr-head{grid-row:1;align-self:start}
  .poem-rooster-game .rr-panel{grid-row:2;align-self:center}
  .poem-rooster-game .rr-actionline{grid-row:3}
  .poem-rooster-game .rr-feedback{grid-row:4;text-align:left}
  .poem-rooster-game .rr-clues{grid-template-columns:1fr}
  .poem-rooster-game.is-dawn .rr-lane{display:none}
}
@media (min-width:900px) and (min-height:620px) and (orientation:landscape){
  .poem-rooster-game .rr-stage{align-self:center}
  .poem-rooster-game .rr-instruction{font-size:27px}
  .poem-rooster-game .rr-progress{font-size:21px;padding:8px 16px}
  .poem-rooster-game .rr-clue b{font-size:25px}
  .poem-rooster-game .rr-clue small{font-size:18px}
  .poem-rooster-game .rr-thumb{width:72px;height:72px}
  .poem-rooster-game .rr-next{min-height:66px;font-size:24px}
  .poem-rooster-game .rr-crow{min-height:74px}
  .poem-rooster-game .rr-crow span{font-size:30px}
  .poem-rooster-game .rr-method{font-size:20px}
  .poem-rooster-game .rr-audio{font-size:22px;min-height:58px}
  .poem-rooster-game .rr-feedback{font-size:22px}
}
@media (orientation:landscape) and (max-height:500px){
  .poem-rooster-game{gap:8px;column-gap:16px}
  .poem-rooster-game .rr-stage{position:sticky;top:0;z-index:1}
  .poem-rooster-game .rr-instruction{font-size:18px}
  .poem-rooster-game .rr-progress{font-size:15px;padding:4px 10px}
  .poem-rooster-game .rr-panel{gap:8px}
  .poem-rooster-game .rr-clue{padding:6px 10px;gap:10px}
  .poem-rooster-game .rr-thumb{width:46px;height:46px;border-radius:11px}
  .poem-rooster-game .rr-clue b{font-size:19px}
  .poem-rooster-game .rr-clue small{font-size:14px}
  .poem-rooster-game .rr-next{min-height:48px;font-size:18px}
  .poem-rooster-game .rr-skybar{padding:2px 6px}
  .poem-rooster-game .rr-step{width:46px;height:46px}
  .poem-rooster-game .rr-range{height:46px}
  .poem-rooster-game .rr-crow{min-height:50px;padding:6px 14px}
  .poem-rooster-game .rr-crow span{font-size:22px}
  .poem-rooster-game .rr-crow small{font-size:14px}
  .poem-rooster-game .rr-method{display:none}
  .poem-rooster-game .rr-actionline{justify-content:flex-start}
  .poem-rooster-game .rr-audio{min-height:46px;font-size:17px;padding:6px 14px}
  .poem-rooster-game .rr-feedback{font-size:16px;line-height:1.4;min-height:2.8em}
  .poem-rooster-game.is-dawn .rr-lane{display:none}
  .poem-rooster-game .rr-count{gap:6px}
  .poem-rooster-game .rr-count li{min-height:36px;padding:2px 4px}
}
@media (min-width:560px) and (orientation:portrait),(min-width:560px) and (max-width:700px) and (min-height:501px){
  .poem-rooster-game.is-dawn .rr-panel{grid-template-columns:minmax(0,1fr) auto}
  .poem-rooster-game .rr-lane,.poem-rooster-game .rr-count{grid-column:1/-1}
}
@media (max-width:700px){
  .poem-rooster-game .rr-stage{border-radius:16px}
}
@media (max-width:420px){
  .poem-rooster-game{gap:10px}
  .poem-rooster-game .rr-instruction{font-size:19px}
  .poem-rooster-game .rr-progress{font-size:16px;padding:5px 11px}
  .poem-rooster-game .rr-clues{grid-template-columns:1fr;gap:8px}
  .poem-rooster-game .rr-clue{gap:9px;padding:8px 10px;border-radius:16px}
  .poem-rooster-game .rr-thumb{width:48px;height:48px;border-radius:11px}
  .poem-rooster-game .rr-clue b{font-size:20px}
  .poem-rooster-game .rr-clue small{font-size:15px}
  .poem-rooster-game .rr-skybar{gap:6px;padding:4px 6px}
  .poem-rooster-game .rr-step{width:48px;height:48px}
  .poem-rooster-game .rr-crow span{font-size:24px}
  .poem-rooster-game .rr-method{font-size:16px}
  .poem-rooster-game .rr-audio{font-size:18px;padding:8px 16px}
  .poem-rooster-game .rr-feedback{font-size:18px}
  .poem-rooster-game .rr-count{gap:7px}
  .poem-rooster-game .rr-count li{letter-spacing:.04em}
}
@media (max-width:370px){
  .poem-rooster-game .rr-instruction{font-size:17px}
  .poem-rooster-game .rr-crow small{display:none}
  .poem-rooster-game .rr-method{display:none}
  .poem-rooster-game .rr-actionline{justify-content:center}
}
.poem-rooster-game.is-reduced *,.poem-rooster-game.is-reduced *::before,.poem-rooster-game.is-reduced *::after{transition:none!important;animation:none!important}
.poem-rooster-game.is-reduced .rr-walk,.poem-rooster-game.is-reduced .rr-nhole,.poem-rooster-game.is-reduced .rr-nhead,.poem-rooster-game.is-reduced .rr-shakes{display:none!important}
@media (prefers-reduced-motion:reduce){.poem-rooster-game *,.poem-rooster-game *::before,.poem-rooster-game *::after{transition:none!important;animation:none!important}
  .poem-rooster-game .rr-walk,.poem-rooster-game .rr-nhole,.poem-rooster-game .rr-nhead,.poem-rooster-game .rr-shakes{display:none!important}}

/* poem-games/seven-steps.css */
.poem-seven-steps{--ss-ink:#294c3b;--ss-soft:#5f7566;--ss-paper:#fffdf7;--ss-line:#dcd8c8;--ss-gold:#e3a548;--ss-fire:#c9673a;display:block;width:100%;max-width:900px;margin-inline:auto;align-self:start;align-self:safe center;color:var(--ss-ink);font-family:var(--sans);min-width:0}
.poem-seven-steps *{box-sizing:border-box}
.poem-seven-steps [hidden]{display:none!important}
.poem-seven-steps button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-seven-steps button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-seven-steps .ss-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-seven-steps .ss-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-seven-steps .ss-instruction{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42}
.poem-seven-steps .ss-instruction span{display:inline-block}
.poem-seven-steps .ss-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#edf3e7;color:#3c6447;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-seven-steps.is-done .ss-progress{background:#f6e5c8;color:#8a4f24}

/* Stage: the three scene paintings stay 16:9; every overlay is placed in % of that box. */
/* overflow:clip (hidden for old Safari): a hidden frame can still be scrolled when a hotspot inside it is focused or scrolled into view, which slid the painting inside its frame. */
.poem-seven-steps .ss-stage{--zs:1.6;--zl:11.25;container-type:inline-size;grid-area:stage;position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#e9e2d2;border:1px solid #d6d2c1;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
/* s6 camera: zooms into scene-3's bean plant. --zs = scale, --zl = scene % hidden on the left. Big stages (iPad
   portrait, desktop) zoom a little less (1.45×) so the 1600px painting is not blown up as far past its own resolution. */
.poem-seven-steps .ss-cam{position:absolute;inset:0;transform-origin:0 0;transition:transform 1.6s cubic-bezier(.45,.05,.25,1)}
.poem-seven-steps[data-step="5"] .ss-cam{transform:translate(calc(var(--zl) * var(--zs) * -1%),0) scale(var(--zs))}
.poem-seven-steps[data-step="5"] :is(.ss-token,.ss-target-root){touch-action:none}
@container (min-width:640px){.poem-seven-steps .ss-stage>*{--zs:1.45;--zl:8}}
.poem-seven-steps .ss-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.poem-seven-steps .ss-scene-2,.poem-seven-steps .ss-scene-3{opacity:0;transition:opacity 1.1s ease}
.poem-seven-steps .ss-scene.is-on{opacity:1}
.poem-seven-steps .ss-patch{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:auto;opacity:0;pointer-events:none;transition:opacity .9s ease .35s;-webkit-user-drag:none}
.poem-seven-steps .ss-patch.is-on{opacity:1;transition:none}
.poem-seven-steps .ss-glow{position:absolute;left:29%;top:88%;width:34%;height:34%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,#ffb35a70,#ff8a3a2c 55%,transparent);mix-blend-mode:screen;opacity:0;pointer-events:none;transition:opacity 1.2s ease}
.poem-seven-steps .ss-glow.is-on{opacity:1;animation:ss-flicker 2.4s ease-in-out 1.2s 6 alternate}
.poem-seven-steps .ss-tear{position:absolute;left:var(--x);top:var(--y);z-index:2;width:3.1%;min-width:13px;transform:translate(-50%,-50%) translateY(-8px);opacity:0;pointer-events:none;transition:opacity .35s ease,transform .7s cubic-bezier(.3,.7,.4,1);filter:drop-shadow(0 1px 1px #24403555)}
.poem-seven-steps .ss-tear.is-on{opacity:1;transform:translate(-50%,-50%)}
.poem-seven-steps .ss-tear svg,.poem-seven-steps .ss-sob-icons svg{display:block;width:100%;height:auto;fill:#d8eef4;stroke:#5c8fa3;stroke-width:1.4}
.poem-seven-steps .ss-shine{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round}
/* 豆 / 萁 name seals ride on the plant: zoomed spots in s6, the full scene afterwards; left/top use the camera's timing. */
.poem-seven-steps .ss-token{position:absolute;left:var(--x);top:var(--y);z-index:3;display:grid;place-items:center;width:clamp(30px,5.8%,50px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#fffaf0f2;border:2px solid #b5523b;color:#9a3f2c;font-size:clamp(16px,2.4vw,25px);font-weight:700;line-height:1;box-shadow:0 3px 8px #3b2a1a38;opacity:0;pointer-events:none;transition:opacity .5s ease,left 1.6s cubic-bezier(.45,.05,.25,1),top 1.6s cubic-bezier(.45,.05,.25,1),width 1.6s cubic-bezier(.45,.05,.25,1),font-size 1.6s cubic-bezier(.45,.05,.25,1)}
.poem-seven-steps .ss-token[data-ss-token="qi"]{--td:.75s}
.poem-seven-steps .ss-token[data-ss-token="dou"]{--td:1.25s}
.poem-seven-steps[data-step="5"] .ss-token{left:calc((var(--x) - var(--zl) * 1%) * var(--zs));top:calc(var(--y) * var(--zs));width:clamp(38px,7%,62px);font-size:clamp(19px,2.9vw,31px);opacity:1;pointer-events:auto;cursor:pointer;transition:opacity .6s ease 1.1s,left 1.6s cubic-bezier(.45,.05,.25,1),top 1.6s cubic-bezier(.45,.05,.25,1),width 1.6s cubic-bezier(.45,.05,.25,1),font-size 1.6s cubic-bezier(.45,.05,.25,1)}
.poem-seven-steps[data-step="6"] .ss-token,.poem-seven-steps[data-step="7"] .ss-token{opacity:1}
.poem-seven-steps.is-rooted .ss-token{background:#fff3cc;border-color:#cf8a2c;color:#86460f;box-shadow:0 0 0 4px #ffd87a8c,0 0 20px 7px #ffd98aa6;transition:background .45s ease var(--td),border-color .45s ease var(--td),color .45s ease var(--td),box-shadow .45s ease var(--td);animation:ss-pop .55s ease var(--td) both}

/* The light that runs from the one root up to the 萁 and the 豆 (paths traced over scene-3). */
.poem-seven-steps .ss-veins{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;opacity:0;transition:opacity .6s ease}
.poem-seven-steps .ss-veins path{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1.1;stroke-dashoffset:1.05}
.poem-seven-steps .ss-vein-glow path{stroke:#ffcf63;stroke-width:15;opacity:.9}
.poem-seven-steps .ss-vein-line path{stroke:#fff8dc;stroke-width:3.4}
.poem-seven-steps .ss-halo{opacity:0}
.poem-seven-steps.is-rooted .ss-veins{opacity:1;transition:none}
.poem-seven-steps.is-rooted .ss-veins path{stroke-dashoffset:0;transition:stroke-dashoffset .8s cubic-bezier(.4,0,.3,1) var(--d)}
.poem-seven-steps.is-rooted .ss-halo{opacity:1;transition:opacity .8s ease var(--d)}
.poem-seven-steps[data-step="6"] .ss-veins,.poem-seven-steps[data-step="7"] .ss-veins{opacity:.6}
.poem-seven-steps[data-step="6"] .ss-veins path,.poem-seven-steps[data-step="7"] .ss-veins path{stroke-dashoffset:0}
.poem-seven-steps[data-step="6"] .ss-halo,.poem-seven-steps[data-step="7"] .ss-halo{opacity:.75}
.poem-seven-steps .ss-fx{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}
.poem-seven-steps .ss-flare{position:absolute;left:var(--x);top:var(--y);width:23%;height:22%;transform:translate(-50%,-50%);border-radius:50%;border:3px solid #ffe2a4;background:radial-gradient(closest-side,#ffe9b040,#ffd98a14 70%,transparent);box-shadow:0 0 0 3px #ffcf7366,0 0 26px 10px #ffd98a59;opacity:0;animation:ss-flare 3.4s ease 1.5s both}
.poem-seven-steps .ss-flare::before{content:'';position:absolute;inset:-4px;border-radius:50%;border:3px solid #ffe2a4;opacity:0;animation:ss-ripple 1.6s ease-out 1.9s 2}
.poem-seven-steps .ss-flare b{position:absolute;left:100%;top:12%;display:grid;place-items:center;width:clamp(28px,22%,44px);aspect-ratio:1;transform:translate(-30%,-50%);border-radius:50%;background:#fff3cc;border:2px solid #cf8a2c;color:#86460f;font-size:clamp(15px,2.2vw,22px);font-weight:700;line-height:1;box-shadow:0 0 0 3px #ffd87a8c,0 3px 8px #3b2a1a38}

/* Drop targets: soft ink rings with a paper label, only shown when they are useful. */
.poem-seven-steps .ss-target{position:absolute;left:var(--x);top:var(--y);z-index:5;width:var(--w);height:var(--h);min-width:46px;min-height:46px;transform:translate(-50%,-50%);padding:0;border:2.5px dashed #fffaeef2;border-radius:50%;background:radial-gradient(closest-side,#fff8e42e,#fff8e412 70%,transparent);box-shadow:0 0 0 2px #4a332066,inset 0 0 0 2px #4a33204d,0 0 14px 4px #fff4d633;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.poem-seven-steps .ss-target>span{position:absolute;left:50%;top:var(--ly,0%);transform:translate(-50%,-50%);padding:3px 11px;border-radius:999px;background:#fffaf0f0;color:#2d4a3c;font-size:clamp(14px,1.9vw,18px);font-weight:650;line-height:1.35;white-space:nowrap;box-shadow:0 2px 6px #2a1d1033}
.poem-seven-steps .ss-target-stove{--ly:50%}
.poem-seven-steps .ss-target-root{left:calc((var(--x) - var(--zl) * 1%) * var(--zs));top:calc(var(--y) * var(--zs));width:calc(var(--w) * var(--zs));height:calc(var(--h) * var(--zs));border-width:3px;background:radial-gradient(closest-side,#fff8e24d,#fff8e214 70%,transparent)}
.poem-seven-steps .ss-target-root>span{left:100%;top:50%;transform:translate(-22%,-50%);padding:4px 14px;font-size:clamp(16px,2.2vw,21px)}
.poem-seven-steps .ss-target.is-calling{border-color:#ffe2a4;animation:ss-call 1.6s ease-in-out infinite}
.poem-seven-steps .ss-target.is-over,.poem-seven-steps .ss-target:hover:not(:disabled){border-style:solid;border-color:#ffd27a;background:radial-gradient(closest-side,#fff3c94d,#ffe6a01f 70%,transparent);box-shadow:0 0 0 4px #ffcf7366,0 0 22px 8px #ffd98a55}
.poem-seven-steps .ss-target:disabled{cursor:default}
.poem-seven-steps[data-step="4"] .ss-target-pot>span{--ly:0%}
.poem-seven-steps .ss-target-root.is-calling{animation:ss-appear .6s ease 1.1s both,ss-call 1.6s ease-in-out 1.7s infinite}
.poem-seven-steps .ss-target-root.is-hint{border-style:solid;border-color:#ffd27a;box-shadow:0 0 0 4px #ffcf7366,0 0 24px 10px #ffd98a66}
.poem-seven-steps .ss-target-root.is-hint::before,.poem-seven-steps .ss-target-root.is-hint::after{content:'';position:absolute;inset:-4px;border-radius:50%;border:3px solid #ffe2a4;pointer-events:none;animation:ss-ripple 1.8s ease-out infinite}
.poem-seven-steps .ss-target-root.is-hint::after{animation-delay:.9s}
.poem-seven-steps.is-rooted .ss-target-root{opacity:1;border-style:solid;border-color:#ffe08a;background:radial-gradient(closest-side,#fff3c466,#fff3c41c 70%,transparent);box-shadow:0 0 0 3px #ffd27a80,0 0 30px 12px #ffd98a80;animation:none}
.poem-seven-steps.is-rooted .ss-target-root>span{background:#fff3cc;color:#86460f}
.poem-seven-steps .ss-caption{position:absolute;right:3.5%;top:5%;z-index:6;display:flex;flex-direction:column;gap:2px;padding:9px 16px;border-radius:14px;background:#fefbf0e6;color:#315240;font-size:clamp(17px,2.6vw,27px);font-weight:650;line-height:1.45;letter-spacing:.12em;box-shadow:0 4px 14px #2a1d1026;pointer-events:none;animation:ss-rise .7s ease both}
.poem-seven-steps.is-rooted .ss-caption{animation-delay:1.5s;letter-spacing:.14em;font-size:18px;font-size:clamp(15px,4.5cqw,30px)}
.poem-seven-steps .ss-loading{position:absolute;inset:0;z-index:9;display:grid;align-content:center;justify-items:center;gap:14px;padding:20px;background:#f5f2eae8;font-size:20px;line-height:1.5;text-align:center}
.poem-seven-steps .ss-loading button{min-height:48px;padding:10px 22px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-weight:600;font-size:19px;cursor:pointer}

/* Spawned motion (never created when reducedMotion is on). */
.poem-seven-steps .ss-bean{position:absolute;left:var(--x);top:24%;width:2.3%;min-width:7px;aspect-ratio:1.15;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f6e2b0,#d4a85e 60%,#a87a3c);box-shadow:0 1px 1px #5a3d1a55;opacity:0;animation:ss-fall .8s cubic-bezier(.5,0,.8,.6) var(--d) both}
.poem-seven-steps .ss-pour{position:absolute;left:63%;top:31%;width:17%;transform-origin:85% 70%;animation:ss-pour 1.4s ease both}
.poem-seven-steps .ss-pour img,.poem-seven-steps .ss-push img{display:block;width:100%;height:auto}
.poem-seven-steps .ss-drip{position:absolute;left:var(--x);top:71.5%;width:.7%;min-width:4px;aspect-ratio:.7;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:#e9dcc0;box-shadow:inset -1px -1px 0 #b39a6e88;opacity:0;animation:ss-drip .9s ease-in var(--d) 3}
.poem-seven-steps .ss-push{position:absolute;left:44%;top:84%;width:17%;animation:ss-push 1.2s ease both}
.poem-seven-steps .ss-gudu{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);padding:1px 8px;border-radius:999px;background:#fffaf0dd;color:#5c4126;font-size:clamp(14px,1.8vw,18px);font-style:normal;font-weight:700;letter-spacing:.06em;animation:ss-gudu 1.2s ease-out both}

/* Side panel: footprints, materials, action line and feedback. */
.poem-seven-steps .ss-side{grid-area:side;display:flex;flex-direction:column;gap:12px;min-width:0}
.poem-seven-steps .ss-walk{--at:0;position:relative;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));align-items:end;justify-items:center;padding:36px 4px 6px;border-radius:18px;background:linear-gradient(#fbf7ec,#f3eedf);border:1px solid #e3dccb}
.poem-seven-steps .ss-walk::before{content:'';position:absolute;left:8%;right:8%;bottom:9px;height:2px;border-radius:2px;background:repeating-linear-gradient(90deg,#c9bfa6 0 6px,transparent 6px 12px)}
.poem-seven-steps .ss-foot{width:min(22px,64%);display:block;transform:translateY(-3px) rotate(-8deg);transition:transform .4s ease}
.poem-seven-steps .ss-foot.is-right{transform:translateY(3px) scaleX(-1) rotate(-8deg)}
.poem-seven-steps .ss-foot:nth-child(1){grid-column:2}
.poem-seven-steps .ss-foot svg{display:block;width:100%;height:auto;fill:#d8d0bd;transition:fill .45s ease,filter .45s ease}
.poem-seven-steps .ss-foot.is-lit svg{fill:#2f5443;filter:drop-shadow(0 0 4px #f2c76d)}
.poem-seven-steps .ss-seal{display:grid;place-items:center;width:min(34px,90%);aspect-ratio:1;border-radius:7px;border:2px solid #c9b8a0;color:#b9ab95;font-size:18px;line-height:1;font-weight:700;transition:background .4s,color .4s,border-color .4s}
.poem-seven-steps .ss-seal.is-lit{background:#b5523b;border-color:#9a3f2c;color:#fff7ea;box-shadow:0 2px 6px #9a3f2c55}
.poem-seven-steps .ss-walker{position:absolute;top:3px;left:calc((var(--at) + .5) * (100% - 8px) / 9 + 4px);width:32px;height:32px;transform:translateX(-50%);border-radius:50%;overflow:hidden;border:2px solid #fff;background:#efe6d3;box-shadow:0 2px 6px #2a1d1040;transition:left .7s cubic-bezier(.4,1.3,.5,1)}
.poem-seven-steps .ss-walker img{width:100%;height:100%;object-fit:cover;object-position:50% 14%;display:block}
.poem-seven-steps .ss-tray{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:10px;min-height:66px}
.poem-seven-steps .ss-item{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:66px;flex:1 1 150px;max-width:240px;padding:6px 14px;border:1.5px solid var(--ss-line);border-radius:18px;background:var(--ss-paper);font-size:19px;font-weight:650;line-height:1.25;cursor:pointer;box-shadow:0 3px 0 #e6e1d2;transition:border-color .2s,background .2s,box-shadow .2s,opacity .2s,transform .2s;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-seven-steps .ss-item span{white-space:nowrap}
.poem-seven-steps .ss-item img{display:block;height:50px;width:auto;max-width:86px;object-fit:contain;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 2px 2px #3b2a1a2e)}
.poem-seven-steps .ss-item.is-draggable{touch-action:none;cursor:grab}
.poem-seven-steps .ss-item[aria-pressed=true]{border-color:#c98b3a;background:#fff3d9;box-shadow:0 0 0 4px #e3a54870,0 3px 0 #ead7b4;transform:translateY(-2px)}
.poem-seven-steps .ss-item:hover:not(:disabled){border-color:#b9c7b1}
.poem-seven-steps .ss-item.is-source{opacity:.45}
.poem-seven-steps .ss-item:disabled{cursor:default}
/* s6 side card, laid out like the painting (萁 left, 豆 right): both meet at one root. Decorative; the picture is the
   target. Same height as the tray on the other steps, so nothing below it jumps. */
.poem-seven-steps .ss-family{display:flex;align-items:flex-start;justify-content:center;width:100%;max-width:440px;height:66px;padding:6px 14px;border-radius:16px;background:#f6f2e6;border:1px solid #e8e0cc}
.poem-seven-steps .ss-fam{display:flex;align-items:center;gap:6px;flex:none}
.poem-seven-steps .ss-fam img{display:block;height:40px;width:auto;max-width:66px;object-fit:contain;filter:drop-shadow(0 2px 2px #3b2a1a2e)}
.poem-seven-steps .ss-fam b,.poem-seven-steps .ss-fam-root{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;border:2px solid #b5523b;color:#9a3f2c;background:#fffaf0;font-size:21px;font-weight:700;line-height:1}
.poem-seven-steps .ss-fam b[data-ss-fam]{touch-action:none}
.poem-seven-steps .ss-fam-line{flex:1 1 30px;min-width:16px;max-width:64px;height:0;margin-top:20px;border-top:2.5px dashed #cdbfa3;transform-origin:0 0;transform:rotate(16deg);transition:border-color .5s ease 1s}
.poem-seven-steps .ss-fam-line.is-right{transform-origin:100% 0;transform:rotate(-16deg)}
.poem-seven-steps .ss-fam-root{width:40px;height:40px;margin-top:14px;border:2px solid #e4dac6;color:#ab9c84;background:#efe9da;box-shadow:inset 0 1px 3px #6b573a1f;transition:background .5s ease 1s,border-color .5s ease 1s,color .5s ease 1s,box-shadow .5s ease 1s}
.poem-seven-steps .ss-fam-root b{display:none}
.poem-seven-steps .ss-fam-root em{font-style:normal}
.poem-seven-steps.is-rooted .ss-fam-line{border-top-style:solid;border-color:#e3a548}
.poem-seven-steps.is-rooted .ss-fam-root{border-style:solid;border-color:#cf8a2c;background:#fff3cc;color:#86460f;box-shadow:0 0 0 4px #ffd87a66,0 0 14px 4px #ffd98a80}
.poem-seven-steps.is-rooted .ss-fam-root b{display:block}
.poem-seven-steps .ss-fam b{transition:background .45s ease 1.2s,border-color .45s ease 1.2s,color .45s ease 1.2s}
.poem-seven-steps.is-rooted .ss-fam b{border-color:#cf8a2c;background:#fff3cc;color:#86460f}
.poem-seven-steps.is-rooted .ss-fam-root em{display:none}
.poem-seven-steps .ss-sobs{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 14px;border-radius:16px;background:#f3f5ee;font-size:18px;font-weight:600;color:var(--ss-soft)}
.poem-seven-steps .ss-sob-icons{display:flex;gap:6px}
.poem-seven-steps .ss-sob-icons i{width:20px;opacity:.35;filter:grayscale(1);transition:opacity .3s,filter .3s}
.poem-seven-steps .ss-sob-icons i.is-on{opacity:1;filter:none}
.poem-seven-steps .ss-kin{width:100%;display:grid;gap:8px;text-align:center}
.poem-seven-steps .ss-kin div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.poem-seven-steps .ss-kin button{min-height:58px;padding:8px 6px;border:1.5px solid var(--ss-line);border-radius:16px;background:var(--ss-paper);font-size:22px;font-weight:650;letter-spacing:.08em;cursor:pointer;box-shadow:0 3px 0 #e6e1d2}
.poem-seven-steps .ss-kin button:hover:not(:disabled){border-color:#c98b3a;background:#fff6e2}
.poem-seven-steps .ss-kin button:disabled{cursor:default;opacity:.7}
.poem-seven-steps .ss-summary{width:100%;padding:12px 16px;border-radius:16px;background:#fbf4e4;border:1px solid #ecdcbc;text-align:center}
.poem-seven-steps .ss-summary b{display:block;font-size:21px;letter-spacing:.1em;color:#7b3e22}
.poem-seven-steps .ss-summary p{margin:6px 0 0;font-size:17px;line-height:1.55;color:#4b5f50;text-align:left}
.poem-seven-steps .ss-actionline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.poem-seven-steps .ss-method{font-size:17px;line-height:1.4;color:var(--ss-soft)}
.poem-seven-steps .ss-audio{flex:none;display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:8px 16px;border:1px solid #b9cbae;border-radius:999px;background:#fffef7;color:#356148;font-size:18px;font-weight:600;cursor:pointer}
.poem-seven-steps .ss-audio svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.poem-seven-steps .ss-audio svg path:first-child{fill:currentColor}
.poem-seven-steps .ss-feedback{margin:0;min-height:3em;font-size:18px;line-height:1.5;color:#4a6a59;text-align:center;text-wrap:pretty}
.poem-seven-steps .ss-ghost{position:fixed;left:0;top:0;z-index:80;width:112px;transform:translate(-50%,-62%) rotate(-6deg);pointer-events:none;filter:drop-shadow(0 8px 10px #2a1d1045)}
.poem-seven-steps .ss-ghost img{display:block;width:100%;height:auto}
.poem-seven-steps.is-readonly .ss-actionline .ss-method{visibility:hidden}

@keyframes ss-ripple{from{transform:scale(1);opacity:.95}to{transform:scale(1.55);opacity:0}}
@keyframes ss-appear{from{opacity:0}to{opacity:1}}
@keyframes ss-flare{0%{opacity:0}18%{opacity:1}75%{opacity:1}100%{opacity:0}}
@keyframes ss-pop{0%{transform:translate(-50%,-50%) scale(1)}45%{transform:translate(-50%,-50%) scale(1.22)}100%{transform:translate(-50%,-50%) scale(1)}}
@keyframes ss-call{50%{box-shadow:0 0 0 4px #ffd27a59,0 0 20px 8px #ffd98a4d}}
@keyframes ss-flicker{from{opacity:.75}to{opacity:1}}
@keyframes ss-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ss-fall{0%{opacity:0;top:22%}15%{opacity:1}80%{opacity:1}100%{opacity:0;top:50%}}
@keyframes ss-pour{0%{opacity:0;transform:rotate(0)}20%{opacity:1}55%{transform:rotate(-28deg)}85%{opacity:1}100%{opacity:0;transform:rotate(-28deg)}}
@keyframes ss-drip{0%{opacity:0;top:71.5%}20%{opacity:.95}100%{opacity:0;top:80%}}
@keyframes ss-push{0%{opacity:0;transform:translateX(30%)}25%{opacity:1}80%{opacity:1;transform:translateX(-60%) scale(.9)}100%{opacity:0;transform:translateX(-70%) scale(.85)}}
@keyframes ss-gudu{0%{opacity:0;transform:translate(-50%,-30%) scale(.8)}25%{opacity:1;transform:translate(-50%,-60%) scale(1)}100%{opacity:0;transform:translate(-50%,-150%)}}

/* Landscape: picture on the left, the walk and the materials on the right. */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-seven-steps{max-width:1280px}
 .poem-seven-steps .ss-layout{grid-template-columns:minmax(0,1.75fr) minmax(290px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;row-gap:12px;align-items:center}
 .poem-seven-steps .ss-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:center}
 .poem-seven-steps .ss-head{align-self:end}
 .poem-seven-steps .ss-side{align-self:start}
}
@media (orientation:landscape) and (min-width:1100px) and (min-height:700px){
 .poem-seven-steps .ss-instruction{font-size:26px}
 .poem-seven-steps .ss-item{min-height:76px;font-size:21px}
 .poem-seven-steps .ss-item img{height:60px;max-width:100px}
 .poem-seven-steps .ss-tray{min-height:76px}
 .poem-seven-steps .ss-family{height:76px;padding-block:11px}
 .poem-seven-steps .ss-feedback{font-size:20px}
 .poem-seven-steps .ss-walk{padding-top:48px}
 .poem-seven-steps .ss-walker{width:42px;height:42px}
 .poem-seven-steps .ss-foot{width:min(27px,64%)}
 .poem-seven-steps .ss-seal{width:min(40px,90%);font-size:21px}
}
@media (orientation:portrait) and (min-width:701px){
 .poem-seven-steps .ss-walk{padding-top:46px}
 .poem-seven-steps .ss-walker{width:40px;height:40px}
 .poem-seven-steps .ss-foot{width:min(27px,64%)}
 .poem-seven-steps .ss-seal{width:min(40px,90%);font-size:21px}
 .poem-seven-steps .ss-item{min-height:74px;font-size:21px}
 .poem-seven-steps .ss-item img{height:58px;max-width:100px}
 .poem-seven-steps .ss-tray{min-height:74px}
 .poem-seven-steps .ss-family{height:74px;padding-block:10px}
 .poem-seven-steps .ss-fam img{height:46px;max-width:76px}
 .poem-seven-steps .ss-fam-line{margin-top:23px}
}
/* Short phone landscape: the host gives the game only ~180px of height, so the picture
   takes the full height and the right column packs the walk, materials and feedback. */
@media (orientation:landscape) and (max-height:500px){
 .poem-seven-steps .ss-layout{grid-template-columns:min(calc((100cqh - 2px) * 16 / 9),56%) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);column-gap:12px;row-gap:5px;align-items:start}
 .poem-seven-steps .ss-stage{width:100%;border-radius:12px}
 .poem-seven-steps .ss-head{gap:8px;align-self:start}
 .poem-seven-steps .ss-instruction{font-size:17px;line-height:1.3}
 .poem-seven-steps .ss-progress{min-width:50px;padding:2px 8px;font-size:15px}
 .poem-seven-steps .ss-side{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"walk walk" "tray audio" "fb fb";gap:5px 8px;align-items:center}
 .poem-seven-steps .ss-walk{grid-area:walk;min-height:30px;padding:3px 2px;align-items:center;border-radius:12px}
 .poem-seven-steps .ss-walk::before{bottom:5px}
 .poem-seven-steps .ss-walker{top:50%;width:24px;height:24px;transform:translate(-50%,-50%)}
 .poem-seven-steps .ss-foot{width:min(14px,60%)}
 .poem-seven-steps .ss-seal{width:min(23px,90%);font-size:14px;border-radius:5px}
 .poem-seven-steps .ss-tray{grid-area:tray;gap:6px;min-height:46px}
 .poem-seven-steps .ss-item{min-height:46px;max-width:200px;padding:3px 10px;font-size:16px;border-radius:13px;gap:6px;flex-basis:110px}
 .poem-seven-steps .ss-item img{height:34px;max-width:58px}
 .poem-seven-steps .ss-family{min-width:0;height:46px;padding:3px 6px;border-radius:12px}
 .poem-seven-steps .ss-fam{gap:3px}
 .poem-seven-steps .ss-fam img{height:22px;max-width:34px}
 .poem-seven-steps .ss-fam b{width:28px;height:28px;font-size:16px}
 .poem-seven-steps .ss-fam-root{width:30px;height:30px;margin-top:10px;font-size:16px}
 .poem-seven-steps .ss-fam-line{min-width:8px;margin-top:14px}
 .poem-seven-steps .ss-sobs{padding:4px 10px;font-size:15px;gap:8px}
 .poem-seven-steps .ss-sob-icons i{width:15px}
 .poem-seven-steps .ss-kin div{gap:6px}
 .poem-seven-steps .ss-kin button{min-height:46px;font-size:18px}
 .poem-seven-steps .ss-summary{padding:5px 10px;border-radius:12px}
 .poem-seven-steps .ss-summary b{display:none}
 .poem-seven-steps .ss-summary p{margin:0;font-size:14px;line-height:1.45}
 .poem-seven-steps .ss-actionline{display:contents}
 .poem-seven-steps .ss-method{display:none}
 .poem-seven-steps .ss-audio{grid-area:audio;min-height:44px;padding:4px 11px;gap:5px;font-size:15px}
 .poem-seven-steps .ss-audio svg{width:19px;height:19px}
 .poem-seven-steps .ss-feedback{grid-area:fb;min-height:2.8em;font-size:15px;line-height:1.4;text-align:left}
 .poem-seven-steps .ss-target>span{font-size:14px;padding:1px 7px}
 .poem-seven-steps .ss-token,.poem-seven-steps[data-step="5"] .ss-token{font-size:17px}
 .poem-seven-steps .ss-caption{right:3%;top:4%;gap:0;padding:4px 8px;border-radius:9px;font-size:14px;line-height:1.4;letter-spacing:.04em}
 .poem-seven-steps.is-done .ss-walk{display:none}
 .poem-seven-steps.is-done .ss-side{grid-template-areas:"tray tray" "fb audio"}
}
@media (max-width:420px){
 .poem-seven-steps .ss-layout{gap:10px}
 .poem-seven-steps .ss-instruction{font-size:19px}
 .poem-seven-steps .ss-progress{min-width:56px;padding:4px 8px;font-size:16px}
 .poem-seven-steps .ss-stage{border-radius:15px}
 .poem-seven-steps .ss-side{gap:10px}
 .poem-seven-steps .ss-item{flex-basis:140px;padding:6px 10px;font-size:18px;gap:6px}
 .poem-seven-steps .ss-item img{height:44px;max-width:70px}
 .poem-seven-steps .ss-method{font-size:15px}
 .poem-seven-steps .ss-audio{padding:7px 12px;font-size:17px}
 .poem-seven-steps .ss-feedback{font-size:17px;text-align:left}
 .poem-seven-steps .ss-target>span{font-size:14px;padding:2px 8px}
 .poem-seven-steps .ss-caption{padding:5px 9px;border-radius:10px;letter-spacing:.06em}
}
@media (max-width:370px){
 .poem-seven-steps .ss-item{flex-direction:column;gap:2px;padding:5px 6px;font-size:16px}
 .poem-seven-steps .ss-item img{height:38px}
 .poem-seven-steps .ss-kin button{font-size:19px;letter-spacing:0}
 .poem-seven-steps .ss-walker{width:26px;height:26px}
}
.poem-seven-steps.is-reduced .ss-scene,.poem-seven-steps.is-reduced .ss-patch,.poem-seven-steps.is-reduced .ss-tear,.poem-seven-steps.is-reduced .ss-token,.poem-seven-steps.is-reduced .ss-glow,.poem-seven-steps.is-reduced .ss-cam,.poem-seven-steps.is-reduced .ss-veins,.poem-seven-steps.is-reduced .ss-veins path,.poem-seven-steps.is-reduced .ss-halo,.poem-seven-steps.is-reduced .ss-fam-line,.poem-seven-steps.is-reduced .ss-fam-root,.poem-seven-steps.is-reduced .ss-fam b,.poem-seven-steps.is-reduced .ss-walker,.poem-seven-steps.is-reduced .ss-foot svg,.poem-seven-steps.is-reduced .ss-seal{transition:none!important}
.poem-seven-steps.is-reduced .ss-glow,.poem-seven-steps.is-reduced .ss-target,.poem-seven-steps.is-reduced .ss-target::before,.poem-seven-steps.is-reduced .ss-target::after,.poem-seven-steps.is-reduced .ss-caption,.poem-seven-steps.is-reduced .ss-token{animation:none!important}
@media (prefers-reduced-motion:reduce){
 .poem-seven-steps .ss-scene,.poem-seven-steps .ss-patch,.poem-seven-steps .ss-tear,.poem-seven-steps .ss-token,.poem-seven-steps .ss-glow,.poem-seven-steps .ss-cam,.poem-seven-steps .ss-veins,.poem-seven-steps .ss-veins path,.poem-seven-steps .ss-halo,.poem-seven-steps .ss-fam-line,.poem-seven-steps .ss-fam-root,.poem-seven-steps .ss-fam b,.poem-seven-steps .ss-walker,.poem-seven-steps .ss-foot svg,.poem-seven-steps .ss-seal{transition:none!important}
 .poem-seven-steps .ss-glow,.poem-seven-steps .ss-target,.poem-seven-steps .ss-target::before,.poem-seven-steps .ss-target::after,.poem-seven-steps .ss-caption,.poem-seven-steps .ss-token,.poem-seven-steps .ss-fx *{animation:none!important}
 .poem-seven-steps .ss-fx{display:none}
}

/* poem-games/couplet.css */
.poem-couplet-game{--pc-ink:#294c3b;--pc-soft:#5f7566;--pc-paper:#fffdf7;--pc-line:#dcd8c8;display:block;width:100%;max-width:880px;margin-inline:auto;color:var(--pc-ink);font-family:var(--sans);min-width:0}
.poem-couplet-game *{box-sizing:border-box}
.poem-couplet-game [hidden]{display:none!important}
.poem-couplet-game button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-couplet-game button:disabled{opacity:1}
.poem-couplet-game img{max-width:none}
.poem-couplet-game button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-couplet-game .pc-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-couplet-game .pc-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-couplet-game .pc-instruction{margin:0;min-height:2.84em;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance;word-break:keep-all;overflow-wrap:anywhere}
.poem-couplet-game .pc-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#edf3e7;color:#3c6447;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-couplet-game.is-done .pc-progress{background:#f6e5c8;color:#8a4f24}

/* Stage: one 1600×900 painting (the "world") that gains a line of the poem each round; overlays sit in % of it and 1cqw = 16 painting px. */
.poem-couplet-game .pc-stage{grid-area:stage;position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;border-radius:20px;background:#e9e2d2;border:1px solid #d6d2c1;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
/* clip, not just hidden: a hidden box can still be scrolled when a bird inside it is focused or
   scrolled into view, which slid the painting 17px up/left and cut 「兩個黃鸝」 off at the top. */
.poem-couplet-game .pc-world{position:absolute;top:0;left:0;width:100%;height:100%;container-type:inline-size;overflow:hidden;overflow:clip}
.poem-couplet-game.is-live[data-round="0"] .pc-world{touch-action:none;cursor:crosshair}
.poem-couplet-game.is-live[data-round="2"] .pc-world,.poem-couplet-game.is-live[data-round="3"] .pc-world{touch-action:none}
.poem-couplet-game.is-live[data-round="3"] .pc-world{cursor:pointer}
.poem-couplet-game .pc-world img{-webkit-user-drag:none;pointer-events:none}
.poem-couplet-game .pc-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s ease}
.poem-couplet-game .pc-scene.is-on{opacity:1}
.poem-couplet-game .pc-gap{position:absolute;left:25.9375%;top:17.333%;width:16.75%;height:23.889%}
.poem-couplet-game .pc-pale,.poem-couplet-game .pc-canvas{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .9s ease}
.poem-couplet-game .pc-pale.is-on,.poem-couplet-game .pc-canvas.is-on{opacity:1}
.poem-couplet-game .pc-haze{position:absolute;left:48%;top:28%;width:52%;height:42%;border-radius:50%;background:radial-gradient(closest-side,#f7f5efe6,#f3f0e6b3 55%,#f3f0e600);opacity:0;pointer-events:none;transition:opacity .8s ease}
.poem-couplet-game .pc-haze.is-on{opacity:1;animation:poem-couplet-drift 6s ease-in-out infinite}

/* Round 1: the brush, the orioles flying in and singing. */
.poem-couplet-game .pc-brush{position:absolute;left:var(--bx,21%);top:var(--by,86%);width:1.6cqw;height:18.96cqw;transform:translate(-50%,-100%) rotate(var(--br,24deg));transform-origin:50% 100%;pointer-events:none;transition:left .35s ease,top .35s ease,transform .35s ease,opacity .5s ease,visibility 0s}
.poem-couplet-game .pc-brush img{display:block;width:100%;height:100%;filter:drop-shadow(2px 3px 2px #3b2a1a55)}
.poem-couplet-game .pc-brush.is-held{transition:opacity .5s ease}
.poem-couplet-game .pc-fly{position:absolute;left:var(--x);top:var(--y);width:9.4cqw;height:auto;transform:translate(-50%,-50%);opacity:0}
.poem-couplet-game.is-arriving .pc-fly{animation:poem-couplet-arrive 1.45s cubic-bezier(.3,.6,.4,1) var(--d) both}
.poem-couplet-game .pc-bird{position:absolute;padding:0;border:0;background:none;cursor:pointer}
.poem-couplet-game .pc-bird::before{content:'';position:absolute;left:50%;top:50%;width:max(100%,48px);height:max(100%,48px);transform:translate(-50%,-50%);border-radius:50%}
.poem-couplet-game .pc-bird img{display:block;width:100%;height:100%;filter:drop-shadow(0 0 0 #fff0)}
.poem-couplet-game .pc-bird:disabled{cursor:default}
.poem-couplet-game .pc-bird.is-away{visibility:hidden;opacity:0;pointer-events:none}
.poem-couplet-game .pc-bird.is-cue img{animation:poem-couplet-glow 1.8s ease-in-out infinite}
.poem-couplet-game .pc-bird.is-cue::after{content:'';position:absolute;left:50%;top:55%;width:max(125%,58px);aspect-ratio:1;translate:-50% -50%;border-radius:50%;border:3px solid #ffe08a;box-shadow:0 0 12px 3px #ffd36a99,inset 0 0 8px 2px #ffd36a66;pointer-events:none;animation:poem-couplet-ping 1.5s ease-out infinite}
.poem-couplet-game .pc-bird.is-sing img{animation:poem-couplet-sing .9s ease-out}
.poem-couplet-game .pc-chirp{position:absolute;left:50%;bottom:92%;padding:2px 10px;border-radius:14px;background:#fffaf0f5;color:#7b4a12;font-size:clamp(14px,1.6cqw,19px);font-weight:700;line-height:1.4;white-space:nowrap;box-shadow:0 2px 6px #2a1d1033;transform:translate(-50%,0) scale(.6);opacity:0;pointer-events:none}
.poem-couplet-game .pc-bird.is-sing .pc-chirp{animation:poem-couplet-chirp .9s ease-out}
/* While the labels about the orioles (兩個黃鸝, 近景・黃鸝鳴柳, 鳴 ♪) are shown above them, a tapped
   bird sings without its 「啾啾♪」 bubble, which would land under those labels. */
.poem-couplet-game:has(.pc-tag.is-on:is([data-pc-show="r0"],[data-pc-show="final"],[data-pc-show="sound"])) .pc-chirp{visibility:hidden}
/* How green the willow is: three leaves fill up, one per stroke (or a third of the tree each). */
.poem-couplet-game .pc-meter{position:absolute;right:2.2%;top:3.5%;z-index:5;display:flex;align-items:center;gap:7px;padding:6px 12px 6px 14px;border-radius:999px;background:#fffaf0ed;color:#3c6447;box-shadow:0 2px 8px #2a1d1033;pointer-events:none;transition:opacity .5s ease,visibility 0s,background .4s}
.poem-couplet-game .pc-meter-t{margin-right:2px;font-size:clamp(14px,1.6vw,18px);font-weight:700;line-height:1.3;letter-spacing:.04em;white-space:nowrap}
.poem-couplet-game .pc-leaf{display:block;flex:none;width:clamp(18px,2vw,24px);aspect-ratio:1;border:2px solid #5e8f5f;border-radius:0 85% 0 85%;background:linear-gradient(0deg,#4f9b58 calc(var(--f,0)*100%),#eef1e2 0);rotate:-8deg}
.poem-couplet-game .pc-leaf.is-full{animation:poem-couplet-pop .5s ease-out}
.poem-couplet-game .pc-meter.is-full{background:#eef7e6f2}

/* Round 2: egrets on the river bank fly up into the dashed line in the sky. */
.poem-couplet-game .pc-flock{position:absolute;inset:0;pointer-events:none;transition:transform 1.2s cubic-bezier(.3,.7,.3,1),opacity .5s ease,visibility 0s}
.poem-couplet-game .pc-flock.is-low{transform:translate(-2%,6%)}
.poem-couplet-game .pc-flock svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.poem-couplet-game .pc-flock polyline{fill:none;stroke:#fffdf4d9;stroke-width:2.5;stroke-dasharray:3 9;stroke-linecap:round;vector-effect:non-scaling-stroke;transition:opacity .5s}
.poem-couplet-game .pc-flock:not(.is-low) polyline{opacity:0}
.poem-couplet-game .pc-slot{position:absolute;left:var(--x);top:var(--y);width:max(var(--w),26px);height:max(var(--h),26px);transform:translate(-50%,-50%);border:2.5px dashed #fffdf4;border-radius:40%;background:#ffffff2e;box-shadow:0 0 0 1.5px #3d556659;transition:opacity .3s}
.poem-couplet-game .pc-slot.is-full{opacity:0}
.poem-couplet-game .pc-slot.is-next{border-color:#ffe9a8;background:#fff6d64d;animation:poem-couplet-call 1.6s ease-in-out infinite}
.poem-couplet-game .pc-slotimg{position:absolute;opacity:0}
.poem-couplet-game .pc-slotimg.is-on{opacity:1}
.poem-couplet-game .pc-slotimg.is-in{animation:poem-couplet-flyin .8s cubic-bezier(.3,.6,.35,1) both}
.poem-couplet-game .pc-egret{position:absolute;padding:0;border:0;background:none;transform:translate(calc(-50% + var(--dx,0px)),calc(-100% + var(--dy,0px)));touch-action:none;cursor:grab;transition:transform .3s cubic-bezier(.3,1.3,.5,1),filter .2s}
.poem-couplet-game .pc-egret::before{content:'';position:absolute;left:50%;top:50%;width:max(100%,48px);height:max(100%,48px);transform:translate(-50%,-50%)}
.poem-couplet-game .pc-egret img{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 2px #2c3f4a40)}
.poem-couplet-game .pc-egret:not(:disabled) img{animation:poem-couplet-glow 2.4s ease-in-out infinite}
.poem-couplet-game .pc-egret:hover:not(:disabled){filter:brightness(1.06)}
.poem-couplet-game .pc-egret.is-held{z-index:4;cursor:grabbing;transition:none}
.poem-couplet-game .pc-egret.is-held img{animation:none;filter:drop-shadow(3px 10px 6px #2c3f4a55)}
.poem-couplet-game .pc-egret:disabled{cursor:default}

/* Round 3: a window to push open and slide like a viewfinder until it "holds" the snowy 西嶺 (窗含). */
.poem-couplet-game .pc-lens{position:absolute;inset:0;width:100%;height:100%;opacity:0;visibility:hidden;clip-path:inset(calc(var(--wy)*1% - 16.62%) calc(91.21% - var(--wx)*1%) calc(83.46% - var(--wy)*1%) calc(var(--wx)*1% - 8.65%));transition:opacity .5s ease,visibility 0s linear .5s}
.poem-couplet-game .pc-lens.is-on{opacity:1;visibility:visible;transition:opacity .5s ease,visibility 0s}
.poem-couplet-game .pc-window{position:absolute;left:calc(var(--wx)*1% - 11%);top:calc(var(--wy)*1% - 20.62%);width:22%;height:41.24%;padding:0;border:0;border-radius:6px;background:none;perspective:900px;touch-action:none;cursor:grab;transition:opacity .5s ease,visibility 0s}
.poem-couplet-game .pc-window:disabled{cursor:default}
.poem-couplet-game .pc-window:not(.is-open){cursor:pointer}
.poem-couplet-game .pc-window.is-held{cursor:grabbing}
.poem-couplet-game .pc-frame{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 6px 8px #2c1f1255)}
.poem-couplet-game .pc-shutter{position:absolute;top:9.7%;height:80.4%;width:39.65%;transition:transform 1s cubic-bezier(.4,.1,.3,1),opacity .4s ease .7s}
.poem-couplet-game .pc-shutter[data-side=l]{left:10.68%;transform-origin:0 50%}
.poem-couplet-game .pc-shutter[data-side=r]{left:50.33%;transform-origin:100% 50%}
.poem-couplet-game .pc-shutter img{display:block;width:100%;height:100%}
.poem-couplet-game .pc-window:not(.is-open):not(:disabled){animation:poem-couplet-glow 1.8s ease-in-out infinite}
.poem-couplet-game .pc-window:not(.is-open):not(:disabled) [data-side=l]{animation:poem-couplet-knock-l 2.6s ease-in-out infinite}
.poem-couplet-game .pc-window:not(.is-open):not(:disabled) [data-side=r]{animation:poem-couplet-knock-r 2.6s ease-in-out infinite}
.poem-couplet-game .pc-window.is-near .pc-frame{filter:drop-shadow(0 0 10px #ffe39a) drop-shadow(0 0 3px #ffd36a) drop-shadow(0 6px 8px #2c1f1255)}
/* Where the snowy 西嶺 hides: a soft glowing patch that brightens while the window is dragged and lights up when it is close enough. */
.poem-couplet-game .pc-zone{position:absolute;left:52%;top:31.5%;width:42.5%;height:24%;border:3px dashed #fffdf4d9;border-radius:46%/50%;background:radial-gradient(closest-side,#fff8e066,#fff8e000);box-shadow:0 0 0 2px #4a332026,0 0 26px 6px #ffe7a64d;opacity:0;pointer-events:none;transition:opacity .5s ease,border-color .3s,box-shadow .3s}
.poem-couplet-game .pc-zone.is-on{opacity:.7;animation:poem-couplet-breathe 2.4s ease-in-out infinite}
.poem-couplet-game .pc-zone.is-on.is-strong{opacity:1}
.poem-couplet-game .pc-zone.is-on.is-near{opacity:1;border-color:#ffd56a;border-style:solid;box-shadow:0 0 0 2px #4a332026,0 0 34px 12px #ffd56a8c}
.poem-couplet-game .pc-window:not(.is-open):hover:not(:disabled) [data-side=l]{transform:rotateY(-14deg)}
.poem-couplet-game .pc-window:not(.is-open):hover:not(:disabled) [data-side=r]{transform:rotateY(14deg)}
.poem-couplet-game .pc-window.is-open [data-side=l]{transform:rotateY(-72deg);opacity:0}
.poem-couplet-game .pc-window.is-open [data-side=r]{transform:rotateY(72deg);opacity:0}
.poem-couplet-game .pc-glow{position:absolute;left:73.2%;top:35.5%;width:13%;aspect-ratio:1;transform:translate(-50%,-50%) scale(.6);border-radius:50%;background:radial-gradient(closest-side,#ffffffcc,#fff8e080 45%,#fff8e000);opacity:0;pointer-events:none;transition:opacity .6s ease .3s,transform .9s ease .3s}
.poem-couplet-game .pc-glow.is-on{opacity:1;transform:translate(-50%,-50%)}

/* Round 4: follow the flowing arrows to the glowing ring at the door, then tap the post to tie the rope (泊). */
.poem-couplet-game .pc-route{position:absolute;inset:0;width:100%;height:100%;overflow:visible;opacity:0;pointer-events:none;filter:drop-shadow(0 0 1.5px #22343dcc);transition:opacity .5s ease}
.poem-couplet-game .pc-route.is-on{opacity:1}
.poem-couplet-game .pc-route path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.poem-couplet-game .pc-route-glow{stroke:#fff6d673;stroke-width:16}
.poem-couplet-game .pc-route-dash{stroke:#fffdf4;stroke-width:4.5;stroke-dasharray:3 12;animation:poem-couplet-flow .9s linear infinite}
.poem-couplet-game .pc-chevron{stroke:#fffdf4;stroke-width:6;opacity:.95;animation:poem-couplet-blink 1.6s ease-in-out calc(var(--i)*.3s) infinite}
.poem-couplet-game .pc-moor{position:absolute;left:77.125%;top:90.44%;width:17%;aspect-ratio:3.4;translate:-50% -50%;border:3px dashed #fffdf4;border-radius:50%;background:radial-gradient(closest-side,#fff6d64d,#fff6d600);box-shadow:0 0 0 2px #22343d40,0 0 18px 6px #ffe39a66;opacity:0;pointer-events:none;transition:opacity .5s ease}
.poem-couplet-game .pc-moor.is-on{opacity:1;animation:poem-couplet-breathe 1.6s ease-in-out infinite}
.poem-couplet-game .pc-boat{position:absolute;left:var(--bx,88.75%);top:var(--by,75.1%);width:calc(23.75cqw*var(--bs,.12));height:calc(17.22cqw*var(--bs,.12));padding:0;border:0;background:none;transform:translate(-50%,-100%);touch-action:none;cursor:grab;transition:opacity .5s ease,visibility 0s}
.poem-couplet-game .pc-boat::before{content:'';position:absolute;left:50%;top:50%;width:max(100%,56px);height:max(100%,56px);transform:translate(-50%,-50%);border-radius:30%}
.poem-couplet-game .pc-boat img{position:relative;display:block;width:100%;height:100%;filter:drop-shadow(0 3px 3px #1d2b3355)}
.poem-couplet-game .pc-boat:not(:disabled):not(.is-there)::after{content:'';position:absolute;left:50%;top:50%;width:max(130%,60px);height:max(130%,60px);transform:translate(-50%,-50%);border:2.5px dashed #fffdf4;border-radius:50%;pointer-events:none;animation:poem-couplet-call 1.7s ease-in-out infinite}
.poem-couplet-game .pc-boat.is-held{cursor:grabbing}
.poem-couplet-game .pc-boat.is-there{cursor:pointer}
.poem-couplet-game .pc-boat:disabled{cursor:default}
.poem-couplet-game .pc-oar{position:absolute;left:-7%;top:24%;width:28%;height:70%;overflow:visible;opacity:0;transform-origin:78% 22%;pointer-events:none}
.poem-couplet-game .pc-oar path{fill:none;stroke:#5b3d1f;stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.poem-couplet-game .pc-oar .pc-blade{fill:#8a6234}
.poem-couplet-game .pc-boat.is-rowing .pc-oar{opacity:1;animation:poem-couplet-oar .75s ease-in-out both}
.poem-couplet-game .pc-wake{position:absolute;left:50%;bottom:-6%;width:125%;height:26%;translate:-50% 0;border:2px solid #ffffffc0;border-radius:50%;opacity:0;pointer-events:none}
.poem-couplet-game .pc-boat.is-rowing .pc-wake{animation:poem-couplet-wake .75s ease-out}
.poem-couplet-game .pc-post{position:absolute;left:94.06%;top:82.2%;width:3.3cqw;height:9.375cqw;padding:0;border:0;background:none;transform:translateX(-50%);cursor:pointer;transition:opacity .5s ease,visibility 0s}
.poem-couplet-game .pc-post::before{content:'';position:absolute;left:50%;top:50%;width:max(100%,52px);height:max(100%,60px);transform:translate(-50%,-50%)}
.poem-couplet-game .pc-post img{display:block;width:100%;height:100%;filter:drop-shadow(1px 3px 2px #1d2b3355)}
.poem-couplet-game .pc-post.is-cue img{animation:poem-couplet-glow 1.4s ease-in-out infinite}
.poem-couplet-game .pc-post.is-cue::after{content:'';position:absolute;left:50%;top:38%;width:max(240%,62px);aspect-ratio:1;translate:-50% -50%;border:3px solid #ffe08a;border-radius:50%;box-shadow:0 0 12px 3px #ffd36a99;pointer-events:none;animation:poem-couplet-ping 1.5s ease-out infinite}
.poem-couplet-game .pc-post:disabled{cursor:default}
.poem-couplet-game .pc-rope{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .3s ease}
.poem-couplet-game .pc-rope.is-on{opacity:1}
.poem-couplet-game .pc-rope path{fill:none;stroke:#8a6a3c;stroke-width:7;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;filter:drop-shadow(0 1px 0 #3b2a1a80);transition:stroke-dashoffset .8s ease .1s}
.poem-couplet-game .pc-rope.is-on path{stroke-dashoffset:0}

/* The helping hand: shows the gesture (tap, drag or scrub) after a quiet spell or two misses. */
.poem-couplet-game .pc-hint{position:absolute;inset:0;z-index:6;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}
.poem-couplet-game .pc-hint.is-on{opacity:1;visibility:visible;transition:opacity .3s ease}
.poem-couplet-game .pc-hint-line{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 1.5px #22343dcc)}
.poem-couplet-game .pc-hint-line path{fill:none;stroke:#fffdf4;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.poem-couplet-game .pc-hint-path{stroke-dasharray:3 10}
.poem-couplet-game .pc-hint-tap{position:absolute;left:var(--x0);top:var(--y0);width:clamp(46px,6cqw,84px);aspect-ratio:1;translate:-50% -50%;border:3px solid #fffdf4;border-radius:50%;box-shadow:0 0 0 2px #4a332055,0 0 14px 4px #ffe39a99;opacity:0}
.poem-couplet-game .pc-hint.is-on.is-tap .pc-hint-tap{animation:poem-couplet-ping 1.6s ease-out .45s 2}
.poem-couplet-game .pc-hand{position:absolute;left:var(--x0);top:var(--y0);width:clamp(40px,5.2cqw,66px);aspect-ratio:48/56;translate:-42% -5%;transform-origin:42% 5%;filter:drop-shadow(1px 3px 3px #2a1d1066)}
.poem-couplet-game .pc-hand svg{display:block;width:100%;height:100%}
.poem-couplet-game .pc-hand-fill{fill:#fffaf0;stroke:#4a3320;stroke-width:2.2;stroke-linejoin:round}
.poem-couplet-game .pc-hand-line{fill:none;stroke:#4a3320;stroke-width:1.6;stroke-linecap:round}
.poem-couplet-game .pc-hint.is-on.is-tap .pc-hand{animation:poem-couplet-hand-tap 1.6s ease-in-out 2 both}
.poem-couplet-game .pc-hint.is-on.is-drag .pc-hand{animation:poem-couplet-hand-drag 1.6s ease-in-out 2 both}
.poem-couplet-game .pc-hint.is-on.is-scrub .pc-hand{animation:poem-couplet-hand-scrub 3.1s ease-in-out both}

/* Marks: glow rings, paper tags and colour badges. */
.poem-couplet-game .pc-ring{position:absolute;left:var(--x);top:var(--y);width:var(--w);aspect-ratio:var(--a,1);transform:translate(-50%,-50%) rotate(var(--r,0deg)) scale(.85);border-radius:50%;border:2.5px dashed #fffaeef2;background:radial-gradient(closest-side,#fff8e400,#fff8e426);box-shadow:0 0 0 2px #4a332040,0 0 16px 5px #ffdb8a55;opacity:0;pointer-events:none;transition:opacity .5s ease,transform .5s cubic-bezier(.3,1.4,.5,1)}
.poem-couplet-game .pc-ring.is-on{opacity:1;transform:translate(-50%,-50%) rotate(var(--r,0deg));animation:poem-couplet-call 1.8s ease-in-out infinite}
.poem-couplet-game .pc-tag{position:absolute;left:var(--x);top:var(--y);padding:2px 11px;border-radius:999px;background:#fffaf0f2;color:#7b3e22;font-size:clamp(14px,1.75cqw,20px);font-weight:700;line-height:1.4;letter-spacing:.06em;white-space:nowrap;box-shadow:0 2px 6px #2a1d1033;transform:translate(-50%,-50%) scale(.75);opacity:0;pointer-events:none;transition:opacity .3s ease,transform .3s ease}
.poem-couplet-game .pc-tag.is-on{opacity:1;transform:translate(-50%,-50%);transition:opacity .45s ease var(--d),transform .55s cubic-bezier(.3,1.5,.5,1) var(--d)}
@container (max-width:440px){.poem-couplet-game .pc-tag .pc-more{display:none}}
.poem-couplet-game .pc-badge{position:absolute;left:var(--x);top:var(--y);display:grid;place-items:center;width:clamp(30px,3.4cqw,46px);aspect-ratio:1;border-radius:50%;background:var(--bg);color:var(--fg);border:2.5px solid #fffaf0;box-shadow:0 2px 6px #2a1d1055;font-size:clamp(16px,2cqw,24px);font-weight:700;transform:translate(-50%,-50%) scale(.4);opacity:0;pointer-events:none;transition:opacity .3s ease,transform .3s ease}
.poem-couplet-game .pc-badge.is-on{opacity:1;transform:translate(-50%,-50%);transition:opacity .4s ease var(--d),transform .5s cubic-bezier(.3,1.6,.5,1) var(--d)}
.poem-couplet-game .pc-loading{position:absolute;inset:0;z-index:9;display:grid;align-content:center;justify-items:center;gap:14px;padding:20px;background:#f4f0dfeb;font-size:20px;line-height:1.5;text-align:center}
.poem-couplet-game .pc-loading button{min-height:48px;padding:10px 22px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-weight:600;font-size:19px;cursor:pointer}
/* Elements that belong to another round fade out (kept after the element rules so it wins). */
.poem-couplet-game .is-off{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .5s ease,visibility 0s linear .5s}

/* Side panel: the four lines, the action line and feedback. */
.poem-couplet-game .pc-side{grid-area:side;display:flex;flex-direction:column;gap:12px;min-width:0;container:pc-side/inline-size}
.poem-couplet-game .pc-verse{display:grid;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,auto);grid-auto-flow:column;justify-content:center;column-gap:22px;row-gap:2px;margin:0;padding:8px 12px;border:1px solid #dce5ce;border-radius:16px;background:#f3f6e9}
.poem-couplet-game .pc-line{position:relative;display:flex;margin:0;padding:0 4px;border-radius:10px;color:#3d6a52;font-size:clamp(19px,2.6vw,24px);font-weight:600;line-height:1.55;transition:background .3s}
.poem-couplet-game .pc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.poem-couplet-game .pc-ch{display:inline-block;width:1.08em;text-align:center;border-radius:5px;transition:color .5s ease,background .5s ease}
.poem-couplet-game .pc-line:not(.is-done) .pc-ch{color:transparent;background:linear-gradient(transparent 82%,#c9d2bb 82%,#c9d2bb 88%,transparent 88%) center/78% 100% no-repeat}
.poem-couplet-game .pc-line.is-now{background:#fbf3d9}
.poem-couplet-game .pc-line.is-now:not(.is-done) .pc-ch{background-image:linear-gradient(transparent 82%,#dcb76a 82%,#dcb76a 88%,transparent 88%)}
.poem-couplet-game .pc-line.is-done .pc-ch:nth-child(3){transition-delay:.06s}.poem-couplet-game .pc-line.is-done .pc-ch:nth-child(4){transition-delay:.12s}.poem-couplet-game .pc-line.is-done .pc-ch:nth-child(5){transition-delay:.18s}.poem-couplet-game .pc-line.is-done .pc-ch:nth-child(6){transition-delay:.24s}.poem-couplet-game .pc-line.is-done .pc-ch:nth-child(7){transition-delay:.3s}.poem-couplet-game .pc-line.is-done .pc-ch:nth-child(8){transition-delay:.36s}
.poem-couplet-game .pc-line.is-reading{color:#294c3b;background:#f2d58f80}
/* Finale: matching words of each couplet share a tint (對仗) and shimmer twice. */
.poem-couplet-game.is-done .pc-ch[data-p="0"]{background:#f6d98a66}
.poem-couplet-game.is-done .pc-ch[data-p="1"]{background:#bfe0c47a}
.poem-couplet-game.is-done .pc-ch[data-p="2"]{background:#f2b8a066}
.poem-couplet-game.is-done .pc-ch[data-p="3"]{background:#b9d3ef80}
.poem-couplet-game.is-done .pc-ch{animation:poem-couplet-shimmer 1.1s ease-in-out .9s 2}
.poem-couplet-game.is-done .pc-ch[data-p="1"]{animation-delay:1.15s}
.poem-couplet-game.is-done .pc-ch[data-p="2"]{animation-delay:1.4s}
.poem-couplet-game.is-done .pc-ch[data-p="3"]{animation-delay:1.65s}
.poem-couplet-game .pc-pair{margin:-4px 0 0;font-size:14px;line-height:1.45;color:#6b7d6f;text-align:center}
.poem-couplet-game .pc-actionline{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.poem-couplet-game .pc-primary{flex:1 1 150px;min-height:52px;padding:10px 20px;border:0;border-radius:16px;background:#446d50;color:#fff!important;font-size:20px;font-weight:650;letter-spacing:.06em;cursor:pointer;box-shadow:0 3px 0 #2f4f39;transition:background .2s,transform .1s}
.poem-couplet-game .pc-primary:hover:not(:disabled,.is-busy){background:#3a5f45}
.poem-couplet-game .pc-primary:active:not(:disabled,.is-busy){transform:translateY(2px);box-shadow:0 1px 0 #2f4f39}
.poem-couplet-game .pc-primary.is-next{background:#b8743a;box-shadow:0 3px 0 #8a5426}
.poem-couplet-game .pc-primary.is-next:hover:not(:disabled,.is-busy){background:#a6662f}
.poem-couplet-game .pc-primary:disabled,.poem-couplet-game .pc-primary.is-busy{opacity:.5;cursor:default}
.poem-couplet-game .pc-primary.is-help:not(.is-busy){animation:poem-couplet-nudge 1.3s ease-in-out infinite}
.poem-couplet-game .pc-notes{display:flex;gap:8px;flex:none}
.poem-couplet-game .pc-note{width:52px;height:52px;padding:0;border:1.5px solid #d9c9a6;border-radius:50%;background:#fffaf0;color:#7b3e22!important;font-size:23px;font-weight:700;cursor:pointer;box-shadow:0 3px 0 #e6dcc4;transition:background .2s,border-color .2s,transform .1s}
.poem-couplet-game .pc-note:hover{border-color:#c98b3a;background:#fff2d6}
.poem-couplet-game .pc-note[aria-pressed=true]{background:#b8743a;border-color:#b8743a;color:#fff!important;box-shadow:0 3px 0 #8a5426}
.poem-couplet-game .pc-listen{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:52px;margin-left:auto;padding:8px 18px;border:1px solid #b9cbae;border-radius:999px;background:#fffef7;color:#356148!important;font-size:18px;font-weight:600;cursor:pointer}
.poem-couplet-game .pc-listen svg{width:22px;height:22px;flex:none;stroke-linecap:round;stroke-linejoin:round}
.poem-couplet-game .pc-listen svg path{fill:none}
.poem-couplet-game .pc-listen.is-busy{opacity:.7;cursor:default}
.poem-couplet-game .pc-feedback{margin:0;min-height:3em;font-size:19px;line-height:1.5;color:#55715a;text-align:center;text-wrap:pretty}

@keyframes poem-couplet-call{50%{box-shadow:0 0 0 4px #ffd27a59,0 0 22px 8px #ffd98a59}}
@keyframes poem-couplet-glow{0%,100%{filter:drop-shadow(0 0 0 #fff2c000)}50%{filter:drop-shadow(0 0 6px #fff2c0) drop-shadow(0 0 2px #ffd36a)}}
@keyframes poem-couplet-arrive{0%{opacity:0;transform:translate(calc(-50% + var(--fx)),calc(-50% + var(--fy))) scale(.7) rotate(-8deg)}15%{opacity:1}70%{transform:translate(calc(-50% + 1cqw),calc(-50% - 2cqw)) scale(1.05) rotate(4deg)}100%{opacity:1;transform:translate(-50%,-50%)}}
@keyframes poem-couplet-flyin{0%{opacity:.3;transform:translate(var(--fx),var(--fy)) scale(.8)}40%{opacity:1}100%{opacity:1;transform:none}}
@keyframes poem-couplet-sing{0%,100%{transform:none}20%{transform:translateY(-6%) rotate(-5deg)}45%{transform:translateY(0) rotate(4deg)}65%{transform:translateY(-4%) rotate(-3deg)}}
@keyframes poem-couplet-chirp{0%{opacity:0;transform:translate(-50%,10%) scale(.6)}25%,75%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-30%) scale(1)}}
@keyframes poem-couplet-shimmer{50%{box-shadow:0 0 0 2px #fffaf0,0 0 12px 3px #f2c75c99}}
@keyframes poem-couplet-drift{50%{transform:translateX(-2%) scale(1.04)}}
@keyframes poem-couplet-ping{0%{opacity:1;scale:.45}100%{opacity:0;scale:1.2}}
@keyframes poem-couplet-pop{50%{scale:1.35}}
@keyframes poem-couplet-breathe{50%{scale:1.06}}
@keyframes poem-couplet-knock-l{0%,58%,100%{transform:none}68%{transform:rotateY(-28deg)}78%{transform:rotateY(-6deg)}86%{transform:rotateY(-18deg)}}
@keyframes poem-couplet-knock-r{0%,58%,100%{transform:none}68%{transform:rotateY(28deg)}78%{transform:rotateY(6deg)}86%{transform:rotateY(18deg)}}
@keyframes poem-couplet-flow{to{stroke-dashoffset:-15}}
@keyframes poem-couplet-blink{0%,100%{opacity:.35}40%{opacity:1}}
@keyframes poem-couplet-oar{0%{opacity:0;rotate:-24deg}15%{opacity:1}55%{rotate:26deg}85%{opacity:1;rotate:-10deg}100%{opacity:0;rotate:-10deg}}
@keyframes poem-couplet-wake{0%{opacity:.95;scale:.55}100%{opacity:0;scale:1.35}}
@keyframes poem-couplet-nudge{50%{scale:1.04;box-shadow:0 3px 0 #2f4f39,0 0 0 6px #f2c75c99}}
@keyframes poem-couplet-hand-tap{0%{left:calc(var(--x0) + 5%);top:calc(var(--y0) + 10%);opacity:0;scale:1}25%{left:var(--x0);top:var(--y0);opacity:1;scale:1}36%{scale:.82}48%{scale:1}60%{scale:.82}72%{scale:1;opacity:1}100%{left:var(--x0);top:var(--y0);opacity:0;scale:1}}
@keyframes poem-couplet-hand-drag{0%{left:var(--x0);top:var(--y0);opacity:0;scale:1.1}12%{opacity:1;scale:1.1}22%{left:var(--x0);top:var(--y0);scale:.86}55%{left:var(--xm);top:var(--ym)}84%{left:var(--x1);top:var(--y1);opacity:1;scale:.86}92%{scale:1.05}100%{left:var(--x1);top:var(--y1);opacity:0;scale:1.05}}
@keyframes poem-couplet-hand-scrub{0%{left:var(--x0);top:var(--y0);opacity:0;scale:1}8%{left:var(--x0);top:var(--y0);opacity:1;scale:.88}28%{left:var(--x1);top:var(--y1)}48%{left:var(--x0);top:var(--y0)}68%{left:var(--x1);top:var(--y1)}88%{left:var(--x0);top:var(--y0);opacity:1;scale:.88}100%{left:var(--x0);top:var(--y0);opacity:0;scale:1}}

/* Landscape: picture on the left, verse and actions on the right. */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-couplet-game{max-width:1280px}
 .poem-couplet-game .pc-layout{grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;row-gap:12px;align-items:center}
 .poem-couplet-game .pc-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
 .poem-couplet-game .pc-head{align-self:end;align-items:flex-start}
 .poem-couplet-game .pc-side{align-self:start}
 .poem-couplet-game .pc-verse{grid-template-columns:max-content;grid-template-rows:none;grid-auto-flow:row;row-gap:0;padding:8px 14px}
 .poem-couplet-game .pc-line{font-size:clamp(17px,1.9vw,25px)}
}
@media (orientation:landscape) and (min-width:1100px) and (min-height:700px){
 .poem-couplet-game .pc-instruction{font-size:26px}
 .poem-couplet-game .pc-feedback{font-size:20px}
}
/* A narrow side column keeps the four note chips and 聽全詩 on one line. */
@container pc-side (max-width:360px){
 .poem-couplet-game .pc-notes{gap:6px}
 .poem-couplet-game .pc-note{width:46px;height:46px;font-size:21px}
 .poem-couplet-game .pc-listen{padding:8px 13px;font-size:17px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-couplet-game .pc-layout{grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr);column-gap:14px;row-gap:4px}
 .poem-couplet-game .pc-stage{border-radius:14px;width:min(100%,calc((100cqh - 8px) * 16 / 9))}
 .poem-couplet-game .pc-head{gap:8px}
 .poem-couplet-game .pc-instruction{min-height:2.7em;font-size:17px;line-height:1.35}
 .poem-couplet-game .pc-progress{min-width:52px;padding:3px 8px;font-size:15px}
 .poem-couplet-game .pc-side{gap:4px}
 .poem-couplet-game .pc-verse{padding:3px 8px;border-radius:12px}
 .poem-couplet-game .pc-line{font-size:17px;line-height:1.45}
 .poem-couplet-game:not(.is-done) .pc-line:not(.is-now){display:none}
 .poem-couplet-game.is-done .pc-verse{grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,auto);grid-auto-flow:column;column-gap:10px}
 .poem-couplet-game.is-done .pc-line{font-size:15px;padding:0 2px}
 .poem-couplet-game.is-done .pc-instruction{min-height:0}
 .poem-couplet-game.is-done .pc-progress{display:none}
 .poem-couplet-game .pc-pair{display:none}
 .poem-couplet-game .pc-primary{min-height:44px;padding:5px 12px;font-size:17px;flex-basis:100px}
 .poem-couplet-game .pc-note{width:44px;height:44px;font-size:19px}
 .poem-couplet-game .pc-notes{gap:6px}
 .poem-couplet-game .pc-listen{min-height:44px;padding:5px 12px;font-size:15px}
 .poem-couplet-game .pc-feedback{font-size:15px;line-height:1.4;min-height:2.8em;text-align:left}
}
/* Phones held upright: a 4:3 window onto the painting that pans to each round's part of the picture. */
@media (orientation:portrait) and (max-width:700px){
 .poem-couplet-game .pc-stage{aspect-ratio:4/3}
 .poem-couplet-game .pc-world{width:133.333%;left:calc(var(--pan,0) * -33.333%);transition:left .8s cubic-bezier(.4,.1,.3,1)}
}
@media (max-width:420px){
 .poem-couplet-game .pc-layout{gap:10px}
 .poem-couplet-game .pc-instruction{font-size:19px}
 .poem-couplet-game .pc-progress{min-width:56px;padding:4px 8px;font-size:16px}
 .poem-couplet-game .pc-stage{border-radius:15px}
 .poem-couplet-game .pc-side{gap:10px}
 .poem-couplet-game .pc-verse{column-gap:12px;padding:6px 8px}
 .poem-couplet-game .pc-line{font-size:19px;padding:0 2px}
 .poem-couplet-game .pc-primary{font-size:19px;padding:10px 14px}
 .poem-couplet-game .pc-notes{gap:6px}
 .poem-couplet-game .pc-note{width:48px;height:48px;font-size:21px}
 .poem-couplet-game .pc-listen{padding:8px 14px;font-size:17px}
 .poem-couplet-game .pc-feedback{font-size:17px;text-align:left}
}
@media (max-width:370px){
 .poem-couplet-game .pc-line{font-size:17px}
 .poem-couplet-game .pc-listen span{font-size:16px}
}
/* Reduced motion: everything jumps to its end state; cues keep a still glow instead of pulsing. */
.poem-couplet-game.is-reduced *,.poem-couplet-game.is-reduced *::before,.poem-couplet-game.is-reduced *::after{animation:none!important;transition:none!important}
.poem-couplet-game.is-reduced .pc-bird.is-cue img,.poem-couplet-game.is-reduced .pc-egret:not(:disabled) img,.poem-couplet-game.is-reduced .pc-window:not(.is-open):not(:disabled){filter:drop-shadow(0 0 5px #fff2c0) drop-shadow(0 0 2px #ffd36a)}
.poem-couplet-game.is-reduced .pc-bird.is-sing .pc-chirp{opacity:1;transform:translate(-50%,0)}
.poem-couplet-game.is-reduced .pc-post.is-cue img{filter:drop-shadow(0 0 5px #fff2c0) drop-shadow(0 0 2px #ffd36a)}
.poem-couplet-game.is-reduced .pc-hint.is-tap .pc-hint-tap{opacity:.9}
.poem-couplet-game.is-reduced .pc-primary.is-help:not(.is-busy){box-shadow:0 3px 0 #2f4f39,0 0 0 5px #f2c75c}
@media (prefers-reduced-motion:reduce){
 .poem-couplet-game *,.poem-couplet-game *::before,.poem-couplet-game *::after{animation:none!important;transition:none!important}
 .poem-couplet-game .pc-bird.is-cue img,.poem-couplet-game .pc-egret:not(:disabled) img,.poem-couplet-game .pc-window:not(.is-open):not(:disabled){filter:drop-shadow(0 0 5px #fff2c0) drop-shadow(0 0 2px #ffd36a)}
 .poem-couplet-game .pc-bird.is-sing .pc-chirp{opacity:1;transform:translate(-50%,0)}
 .poem-couplet-game .pc-post.is-cue img{filter:drop-shadow(0 0 5px #fff2c0) drop-shadow(0 0 2px #ffd36a)}
 .poem-couplet-game .pc-hint.is-tap .pc-hint-tap{opacity:.9}
 .poem-couplet-game .pc-primary.is-help:not(.is-busy){box-shadow:0 3px 0 #2f4f39,0 0 0 5px #f2c75c}
}

/* poem-games/shoe-market.css */
.poem-shoe-game{--sm-ink:#34433a;--sm-mute:#6b6650;--sm-red:#b3442e;--sm-green:#4d6c4c;--sm-wood:#7b5934;--sm-edge:#e2d0aa;--sm-gold:#e9a93a;position:relative;width:100%;max-width:1120px;margin-inline:auto;min-width:0;color:var(--sm-ink);font-family:var(--sans);display:flex;flex-direction:column;justify-content:safe center}
.poem-shoe-game *{box-sizing:border-box}
.poem-shoe-game [hidden]{display:none!important}
.poem-shoe-game button{font-family:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.poem-shoe-game button:disabled{cursor:default;opacity:1}
.poem-shoe-game button:focus-visible{outline:3px solid #c48a3c;outline-offset:3px}
.poem-shoe-game img{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.poem-shoe-game .sm-frame{display:grid;grid-template-areas:"head" "stage" "side";gap:12px;min-width:0}
.poem-shoe-game .sm-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-shoe-game .sm-say{margin:0;font-size:clamp(18px,2.3vw,23px);font-weight:650;line-height:1.45;text-wrap:pretty}
.poem-shoe-game :is(.sm-say,.sm-moral p,.sm-moral strong,.sm-feedback) span{display:inline-block}
.poem-shoe-game .sm-progress{flex:none;min-width:62px;padding:5px 11px;border-radius:18px;background:#f2e7cf;color:var(--sm-wood);font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}

/* Picture stage: the four story paintings cross-fade; small overlays sit on painted objects. */
.poem-shoe-game .sm-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:20px;background:#eadcbf;border:1px solid #dccaa4;box-shadow:0 8px 24px #4b361a14}
.poem-shoe-game .sm-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s ease;pointer-events:none}
.poem-shoe-game .sm-scene.is-on{opacity:1}
.poem-shoe-game .sm-patch{position:absolute;left:23.0625%;top:50.667%;width:19.3125%;height:7.889%;opacity:0;transition:opacity .8s ease;pointer-events:none;z-index:1}
.poem-shoe-game .sm-patch.is-on{opacity:1}
.poem-shoe-game .sm-mark{position:absolute;left:32.7%;top:49%;z-index:3;width:max-content;font-size:clamp(14px,2.4cqi,18px);transform:translate(-50%,-100%);opacity:0;transition:opacity .4s;pointer-events:none}
.poem-shoe-game .sm-mark b{display:block;padding:.2em .65em;border-radius:10px;background:#fffaf0f2;border:1.5px solid var(--sm-gold);color:#6b4a2b;font-size:1em;font-weight:700;white-space:nowrap;box-shadow:0 3px 8px #3b2a1430}
.poem-shoe-game .sm-mark::after{content:'';position:absolute;left:50%;top:100%;width:10px;height:10px;margin:-6px 0 0 -5px;background:#fffaf0;border:1.5px solid var(--sm-gold);border-top:0;border-left:0;transform:rotate(45deg)}
.poem-shoe-game .sm-mark.is-on{opacity:1}
.poem-shoe-game .sm-sign{position:absolute;left:80.5%;top:34%;z-index:3;transform:translate(-50%,-50%) rotate(-3deg);padding:.3em .7em .3em .9em;font-family:var(--serif);font-size:clamp(14px,3.6cqi,28px);font-weight:700;letter-spacing:.22em;color:#6d3a22;background:linear-gradient(#f4e5c4,#e5cc9b);border:1px solid #b88b55;border-radius:6px;box-shadow:0 5px 12px #2a180a45;opacity:0;transition:opacity .4s;pointer-events:none}
.poem-shoe-game .sm-sign.is-on{opacity:1}
.poem-shoe-game .sm-bubble{position:absolute;z-index:5;margin:0;padding:.42em .78em;border-radius:14px;background:#fffaf0f2;border:1px solid #e4d2ad;color:#3e3224;font-family:var(--serif);font-size:clamp(14px,2.9cqi,22px);font-weight:700;line-height:1.3;white-space:nowrap;box-shadow:0 4px 12px #3b2a1426;opacity:0;transform:translateY(6px);transition:opacity .4s ease,transform .4s ease;pointer-events:none}
.poem-shoe-game .sm-bubble.is-on{opacity:1;transform:none}
.poem-shoe-game .sm-bubble::after{content:'';position:absolute;width:11px;height:11px;background:#fffaf0;border:1px solid #e4d2ad;border-top:0;border-left:0}
.poem-shoe-game .is-forgot{right:57%;top:5%}.poem-shoe-game .is-forgot::after{right:-6px;top:58%;transform:rotate(-45deg)}
.poem-shoe-game .is-ask{left:5%;top:10%}.poem-shoe-game .is-ask::after{right:22%;bottom:-6px;transform:rotate(45deg)}
.poem-shoe-game .is-stubborn{left:69%;top:36%}.poem-shoe-game .is-stubborn::after{left:-6px;top:30%;transform:rotate(135deg)}
.poem-shoe-game .sm-loading{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:16px;text-align:center;background:#f7f0dfe8;color:#5b5140;font-size:19px}
.poem-shoe-game .sm-loading button{min-height:48px;padding:8px 20px;border:1px solid #cdb98f;border-radius:16px;background:#fffaf0;font-size:19px;color:#5b4126}
/* The marked ruler flies from the measuring picture onto the seat (而置之其坐). */
.poem-shoe-game .sm-fly{position:absolute;z-index:50;margin:0;pointer-events:none;filter:drop-shadow(0 6px 8px #3b2a1450)}

/* Work panel */
.poem-shoe-game .sm-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-shoe-game .sm-panel{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:20px;background:#fbf5e6;border:1px solid #ecdfc2;min-width:0}
.poem-shoe-game .sm-text{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px}
.poem-shoe-game .sm-line{margin:0;flex:1 1 240px;font-family:var(--serif);font-size:clamp(18px,2vw,21px);line-height:1.6;letter-spacing:.03em;color:#3c4537;text-wrap:pretty}
.poem-shoe-game .sm-line b{color:var(--sm-red);font-weight:700}
.poem-shoe-game .sm-line span{white-space:nowrap}
.poem-shoe-game .sm-gloss{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:5px 13px;border-radius:22px;border:1px solid #e0cba2;background:#fffaf0;color:#5d4429;font-size:17px;box-shadow:0 2px 0 #eadcbc}
.poem-shoe-game .sm-gloss b{font-size:23px;line-height:1;color:var(--sm-red)}
.poem-shoe-game .sm-gloss i{font-style:normal;color:#8a6a45}
.poem-shoe-game .sm-gloss svg{width:19px;height:19px;flex:none;color:#8a6a45}
.poem-shoe-game :is(.sm-measure,.sm-fit){position:relative;container-type:inline-size;width:100%;max-width:560px;align-self:center;overflow:hidden;border-radius:16px;border:1px solid #eadbbb;background:radial-gradient(120% 95% at 38% 30%,#fffbf2,#f0e2c4)}
.poem-shoe-game :is(.sm-measure,.sm-fit)::before{content:'';position:absolute;inset:0 0 auto;height:22%;z-index:1;pointer-events:none;background:linear-gradient(#fcf6ea,#fcf6ea00)}
.poem-shoe-game .sm-measure .sm-foot,.poem-shoe-game .sm-fit img{position:absolute;max-width:none;pointer-events:none}

/* Measuring: the red marker slides along the ruler under the foot. Tap at the heel, then at the toe tip. */
.poem-shoe-game .sm-measure{--pen:50%;--a:14%;--b:14%;aspect-ratio:1000/640;touch-action:pan-y;cursor:pointer;user-select:none;-webkit-user-select:none}
.poem-shoe-game .sm-measure .sm-foot{left:6%;top:-24.44%;width:80%;height:94.44%}
.poem-shoe-game .sm-ruler{position:absolute;left:5%;top:71%;width:90%;height:8.94%;pointer-events:none;filter:drop-shadow(0 2px 2px #4b361a40)}
.poem-shoe-game .sm-aim{position:absolute;z-index:3;width:12.5%;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;display:none}
.poem-shoe-game .sm-aim.is-heel{left:14.09%;top:55.6%}.poem-shoe-game .sm-aim.is-toe{left:85.82%;top:55%}
.poem-shoe-game .sm-measure[data-marks="0"] .sm-aim.is-heel,.poem-shoe-game .sm-measure[data-marks="1"] .sm-aim.is-toe{display:block}
.poem-shoe-game .sm-aim i{position:absolute;inset:0;border-radius:50%;border:3px dashed var(--sm-gold);background:radial-gradient(closest-side,#ffe9a866,#ffe9a81c 70%,transparent);box-shadow:0 0 0 2px #fff8e2a0;animation:sm-ring 1.8s ease-in-out infinite}
.poem-shoe-game .sm-aim b{position:absolute;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%);padding:.12em .55em;border-radius:10px;background:#fffaf0f2;border:1.5px solid var(--sm-gold);color:#6b4a2b;font-size:clamp(14px,3.6cqi,18px);font-weight:700;line-height:1.35;white-space:nowrap;box-shadow:0 2px 6px #3b2a1428}
.poem-shoe-game .sm-measure.is-near .sm-aim i{border-style:solid;border-color:#d98f1d;background:radial-gradient(closest-side,#ffd76a88,#ffd76a33 70%,transparent);box-shadow:0 0 0 3px #fff8e2,0 0 18px #ffd76a}
.poem-shoe-game.is-help .sm-aim i{border-width:4px;border-style:solid;box-shadow:0 0 0 3px #fff8e2,0 0 22px #ffcf5a}
.poem-shoe-game .sm-aim.is-nudge i{animation:sm-nudge .7s ease}
.poem-shoe-game .sm-guide{position:absolute;left:var(--pen);top:12%;height:59%;z-index:2;border-left:2px dashed #b3442ea0;transform:translateX(-1px);pointer-events:none}
.poem-shoe-game .sm-measure.is-near .sm-guide{border-left:3px solid #d98f1d;transform:translateX(-1.5px)}
.poem-shoe-game .sm-measure:not([data-marks="0"]):not([data-marks="1"]) .sm-guide{display:none}
.poem-shoe-game .sm-cord{position:absolute;left:var(--a);width:calc(var(--b) - var(--a));top:73.6%;height:3.7%;z-index:2;border-radius:3px;background:#c4513acc;box-shadow:0 0 0 1px #fff7e6a0;pointer-events:none;display:none}
.poem-shoe-game .sm-measure:not([data-marks="0"]) .sm-cord{display:block}
.poem-shoe-game .sm-dot{position:absolute;top:75.45%;z-index:3;width:0;height:0;pointer-events:none;display:none}
.poem-shoe-game .sm-dot.is-heel{left:14.09%}.poem-shoe-game .sm-dot.is-toe{left:85.82%}
.poem-shoe-game .sm-measure:not([data-marks="0"]) .sm-dot.is-heel,.poem-shoe-game .sm-measure[data-marks="2"] .sm-dot.is-toe{display:block}
.poem-shoe-game .sm-dot::before{content:'';position:absolute;left:-1.5px;top:-21cqi;width:3px;height:23cqi;border-radius:2px;background:var(--sm-red)}
.poem-shoe-game .sm-dot::after{content:'';position:absolute;left:-8px;top:-8px;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#e4775f,#a5321f 72%);box-shadow:0 0 0 3px #fff7e6,0 2px 4px #0005}
.poem-shoe-game .sm-dot b{position:absolute;top:13px;left:0;transform:translateX(-50%);padding:.05em .5em;border-radius:9px;background:var(--sm-red);color:#fffaf0;font-size:clamp(14px,3.2cqi,16px);font-weight:700;line-height:1.4;white-space:nowrap}
.poem-shoe-game .sm-dot.is-heel b{transform:translateX(-30%)}.poem-shoe-game .sm-dot.is-toe b{transform:translateX(-70%)}
.poem-shoe-game .sm-dot.is-pop::after{animation:sm-pop .5s ease}
.poem-shoe-game .sm-got{position:absolute;left:72%;top:17%;z-index:4;transform:translate(-50%,-50%);padding:.2em .8em;border-radius:14px;background:#eef3e4;border:2px solid var(--sm-green);color:#2f5134;font-size:clamp(16px,4.4cqi,22px);font-weight:800;white-space:nowrap;box-shadow:0 3px 8px #3b2a1428;pointer-events:none;display:none}
.poem-shoe-game .sm-measure[data-marks="2"] .sm-got{display:block}
.poem-shoe-game .sm-got.is-pop{animation:sm-pop .5s ease}
.poem-shoe-game .sm-pen{position:absolute;left:var(--pen);top:75.45%;z-index:5;width:52px;height:52px;margin:0;padding:0;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent;display:grid;place-items:center;touch-action:none;cursor:grab}
.poem-shoe-game .sm-pen i{width:24px;height:24px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#e4775f,#a5321f 72%);box-shadow:0 0 0 3px #fff7e6,0 3px 6px #0006;transition:box-shadow .2s}
.poem-shoe-game .sm-measure.is-near .sm-pen i{box-shadow:0 0 0 3px #fff7e6,0 0 0 6px #e9a93a,0 3px 8px #0006}
.poem-shoe-game .sm-pen:focus-visible{outline-offset:0}
.poem-shoe-game .sm-pen.is-lift i{animation:sm-lift .6s ease}
.poem-shoe-game .sm-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.poem-shoe-game .sm-pen:disabled{display:none}
.poem-shoe-game .sm-measure.is-flying :is(.sm-ruler,.sm-cord,.sm-dot,.sm-got){visibility:hidden}

/* Trying on: the shoe is two layers (back with lining, front without) so the foot sits inside it. */
.poem-shoe-game .sm-fitting{display:grid;gap:10px}
.poem-shoe-game .sm-fit{justify-self:center;aspect-ratio:1350/770;transition:box-shadow .2s}
.poem-shoe-game .sm-fit.is-over{box-shadow:0 0 0 4px #e4c68a,0 0 18px #ffe7a8}
.poem-shoe-game .sm-fit .sm-foot{left:18.2%;top:-17.05%;width:72%;height:95.38%}
.poem-shoe-game .sm-fit :is(.sm-in,.sm-out){left:23.7%;top:27.27%;width:73.93%;height:65.58%;opacity:0}
.poem-shoe-game .sm-fit:not([data-size=none]) :is(.sm-in,.sm-out){opacity:1}
.poem-shoe-game .sm-fit[data-size=small] :is(.sm-in,.sm-out){left:33.45%;top:37.45%;width:59.14%;height:52.47%}
.poem-shoe-game .sm-fit[data-size=big] :is(.sm-in,.sm-out){left:2.54%;top:14.55%;width:92.41%;height:81.98%}
.poem-shoe-game .sm-fit.is-drop :is(.sm-in,.sm-out){animation:sm-drop .45s ease-out}
.poem-shoe-game .sm-ground{position:absolute;left:22%;width:68%;top:75%;height:7%;border-radius:50%;background:radial-gradient(closest-side,#5a3f2038,transparent);pointer-events:none}
.poem-shoe-game .sm-fit[data-size=right] .sm-ground{top:88.5%;left:23%;width:74%}
.poem-shoe-game .sm-fit[data-size=small] .sm-ground{top:85.5%;left:32%;width:61%}
.poem-shoe-game .sm-fit[data-size=big] .sm-ground{top:92.5%;left:2%;width:94%}
.poem-shoe-game .sm-ring{position:absolute;z-index:3;border-radius:50%;border:3px dashed var(--sm-red);transform:translate(-50%,-50%);pointer-events:none;display:none}
.poem-shoe-game .sm-fit[data-size=small] .sm-ring{display:block;left:28.9%;top:58%;width:13.5%;height:38%}
.poem-shoe-game .sm-fit[data-size=big] .sm-ring{display:block;left:17.5%;top:31%;width:21%;height:31%}
.poem-shoe-game .sm-fit[data-size=right] .sm-ring{display:block;left:27.4%;top:57%;width:13.3%;height:40%;border-color:var(--sm-green);border-style:solid}
.poem-shoe-game .sm-cap{position:absolute;right:3.5%;top:6%;z-index:4;margin:0;padding:.2em .75em;border-radius:12px;background:#fffaf0f2;border:2px solid var(--sm-red);color:#8c2f1d;font-size:clamp(14px,4cqi,21px);font-weight:800;line-height:1.35;white-space:nowrap;box-shadow:0 3px 8px #3b2a1428;pointer-events:none}
.poem-shoe-game .sm-fit[data-size=none] .sm-cap{display:none}
.poem-shoe-game .sm-fit[data-size=right] .sm-cap{border-color:var(--sm-green);background:#eef3e4;color:#2f5134}
.poem-shoe-game .sm-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.poem-shoe-game .sm-tray button{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:76px;padding:30px 8px 10px;border-radius:16px;border:1.5px solid var(--sm-edge);background:#fffaf0;box-shadow:0 3px 0 #e8dcc0;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.poem-shoe-game .sm-tray img{display:block;height:auto;pointer-events:none;filter:drop-shadow(0 2px 2px #3b2a1430)}
.poem-shoe-game .sm-tray .is-big img{width:92%}.poem-shoe-game .sm-tray .is-right img{width:72%}.poem-shoe-game .sm-tray .is-small img{width:54%}
.poem-shoe-game .sm-no{position:absolute;left:7px;top:6px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f2e7cf;color:var(--sm-wood);font-size:18px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.poem-shoe-game .sm-tag{position:absolute;right:6px;top:6px;padding:.05em .45em;border-radius:9px;border:1.5px solid #d99a8a;background:#fbe9e4;color:#8c2f1d;font-size:14px;font-style:normal;font-weight:800;line-height:1.35;display:none}
/* Strict order 1, 2, 3: the live shoe glows, the waiting ones are dimmed, the tried ones keep their verdict. */
.poem-shoe-game .sm-tray button[data-turn=next]{border-color:var(--sm-gold);background:#fff7e3;box-shadow:0 3px 0 #e8dcc0,0 0 0 3px #f6dc9c;animation:sm-turn 1.8s ease-in-out infinite}
.poem-shoe-game .sm-tray button[data-turn=next] .sm-no{background:var(--sm-gold);color:#fffdf2}
.poem-shoe-game .sm-tray button[data-turn=wait]{border-style:dashed;background:#f7f1e4;box-shadow:none;cursor:default}
/* Only the live shoe can be dragged; a finger sliding over the others scrolls the page as usual. */
.poem-shoe-game .sm-tray button:not([data-turn=next]){touch-action:pan-y}
.poem-shoe-game .sm-tray button[data-turn=wait] img{opacity:.35;filter:grayscale(.7)}
.poem-shoe-game .sm-tray button[data-turn=wait] .sm-no{background:#ebe3d2;color:#9a8b70}
.poem-shoe-game .sm-tray button[data-turn=tried]{background:#f5efe2;box-shadow:none;cursor:default}
.poem-shoe-game .sm-tray button[data-turn=tried] img{opacity:.55}
.poem-shoe-game .sm-tray button[data-turn=tried] .sm-tag{display:block}
@media (hover:hover){.poem-shoe-game .sm-tray button[data-turn=next]:hover:not(:disabled){background:#fff1d0}}
.poem-shoe-game .sm-tray button.is-on{border-color:#c98a6e;border-style:solid;background:#fbeee6}
.poem-shoe-game .sm-tray button.is-nudge{animation:sm-nudge .7s ease}
.poem-shoe-game .is-dragging{z-index:40;transition:none!important;cursor:grabbing;box-shadow:0 12px 26px #3b2a1445!important;opacity:.94}

/* Ending */
.poem-shoe-game .sm-moral{display:grid;justify-items:center;gap:6px;padding:12px 12px 10px;border-radius:16px;background:#fffaf0;border:1.5px solid var(--sm-edge);text-align:center}
.poem-shoe-game .sm-moral>b{font-family:var(--serif);font-size:22px;letter-spacing:.16em;color:#6d3a22}
.poem-shoe-game .sm-moral p{margin:0;font-size:19px;line-height:1.5;text-wrap:balance}
.poem-shoe-game .sm-moral strong{font-size:20px;line-height:1.5;color:var(--sm-green);text-wrap:balance}
.poem-shoe-game .sm-moral small{display:block;margin-top:2px;padding-top:7px;border-top:1px dashed #dccaa4;font-size:16px;line-height:1.5;color:var(--sm-mute)}
.poem-shoe-game .sm-moral small b{color:var(--sm-red)}
.poem-shoe-game .sm-moral small i{font-style:normal;margin-inline:.45em;color:#c8b48c}
.poem-shoe-game .sm-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.poem-shoe-game .sm-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:10px 18px;border-radius:16px;border:1px solid #d9c7a0;background:#fffaf0;color:#4a3a26;font-size:20px;font-weight:600}
.poem-shoe-game .sm-actions svg{width:22px;height:22px;flex:none}
.poem-shoe-game .sm-actions .sm-next{background:var(--sm-green);border-color:var(--sm-green);color:#fffdf2}
.poem-shoe-game .sm-actions button:disabled,.poem-shoe-game .sm-gloss:disabled{opacity:.6}
.poem-shoe-game .sm-feedback{margin:0;min-height:2.9em;font-size:18px;line-height:1.5;text-align:center;color:#5d5a45;text-wrap:pretty}
@keyframes sm-ring{50%{transform:scale(1.1);box-shadow:0 0 0 2px #fff8e2a0,0 0 16px #ffe08a}}
@keyframes sm-nudge{20%{translate:-5px 0}40%{translate:5px 0}60%{translate:-3px 0}80%{translate:3px 0}}
@keyframes sm-pop{40%{scale:1.3}}
@keyframes sm-lift{35%{scale:1.3;box-shadow:0 0 0 3px #fff7e6,0 0 0 8px #e9a93a99,0 3px 8px #0006}}
@keyframes sm-drop{from{translate:0 -14%;opacity:.2}}
@keyframes sm-turn{50%{box-shadow:0 3px 0 #e8dcc0,0 0 0 5px #f3cf7a,0 0 16px #ffe08a}}

/* Tablets: every picture is capped by the play-area height (cqh of the tablet-play container), so the whole game,
   its buttons and feedback fit on screen in every step instead of growing the page. */
@media (min-width:701px) and (orientation:landscape) and (min-height:501px){
  /* The picture, its buttons and the feedback share the left column; the work panel fills the right one. */
  .poem-shoe-game .sm-frame{grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);grid-template-areas:"head head" "stage panel" "act panel" "fb panel";grid-template-rows:auto auto auto 1fr;column-gap:22px;row-gap:10px;align-items:start}
  .poem-shoe-game .sm-side{display:contents}.poem-shoe-game .sm-panel{grid-area:panel}.poem-shoe-game .sm-actions{grid-area:act}.poem-shoe-game .sm-feedback{grid-area:fb;min-height:0}
  .poem-shoe-game .sm-stage{justify-self:center;width:min(100%,calc((100cqh - 186px) * 16 / 9))}
  .poem-shoe-game .sm-text{justify-content:flex-start}
  .poem-shoe-game .sm-measure{width:min(100%,calc((100cqh - 190px) * 1000 / 640))}
  .poem-shoe-game .sm-fit{width:min(100%,calc((100cqh - 264px) * 1350 / 770))}
  .poem-shoe-game[data-stage=done] .sm-fit{width:min(100%,calc((100cqh - 310px) * 1350 / 770))}
}
@media (min-width:701px) and (orientation:portrait){
  /* Picture on top, work panel under it, then the buttons beside the feedback; the stage and the work picture split
     the height that is left, and the shoes stand in a column beside the foot. */
  .poem-shoe-game .sm-frame{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"head head" "stage stage" "panel panel" "act fb";gap:10px 16px}
  .poem-shoe-game .sm-side{display:contents}.poem-shoe-game .sm-panel{grid-area:panel}.poem-shoe-game .sm-actions{grid-area:act;flex-wrap:nowrap;align-self:center}
  .poem-shoe-game .sm-feedback{grid-area:fb;align-self:center;min-height:2.9em;text-align:left}
  .poem-shoe-game .sm-stage{justify-self:center;width:min(100%,calc((100cqh - 250px) * .55 * 16 / 9))}
  .poem-shoe-game .sm-measure{width:min(100%,calc((100cqh - 250px) * .45 * 1000 / 640))}
  .poem-shoe-game .sm-fitting{grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:12px}
  .poem-shoe-game .sm-fit{width:min(100%,calc((100cqh - 250px) * .45 * 1350 / 770))}
  .poem-shoe-game .sm-tray{grid-template-columns:1fr;gap:8px}
  .poem-shoe-game .sm-tray button{min-height:74px;padding:8px 8px 8px 42px;align-items:center}
  .poem-shoe-game .sm-tray .sm-no{top:50%;transform:translateY(-50%)}
  .poem-shoe-game .sm-tray .sm-tag{top:auto;bottom:5px}
  /* Ending: the fitted shoe beside the moral. */
  .poem-shoe-game[data-stage=done] .sm-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center}
  .poem-shoe-game[data-stage=done] .sm-fitting{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:700px){
  .poem-shoe-game .sm-frame{gap:10px}
  .poem-shoe-game .sm-panel{padding:12px;gap:10px}
}
@media (max-width:420px){
  .poem-shoe-game .sm-say{font-size:18px}
  .poem-shoe-game .sm-progress{min-width:54px;padding:4px 8px;font-size:16px}
  .poem-shoe-game .sm-stage{border-radius:15px}
  .poem-shoe-game .sm-panel{padding:10px;border-radius:16px}
  .poem-shoe-game .sm-line{font-size:18px;flex-basis:100%;text-align:center}
  .poem-shoe-game .sm-gloss{font-size:16px}
  .poem-shoe-game .sm-tray{gap:8px}
  .poem-shoe-game .sm-tray button{min-height:68px;padding:28px 6px 8px}
  .poem-shoe-game .sm-moral p{font-size:18px}.poem-shoe-game .sm-moral strong{font-size:19px}.poem-shoe-game .sm-moral small{font-size:15px}
  .poem-shoe-game .sm-actions button{flex:1;font-size:19px;padding:8px 12px}
  .poem-shoe-game .sm-feedback{font-size:17px}
}
@media (max-width:370px){
  .poem-shoe-game .sm-say{font-size:17px}
  .poem-shoe-game .sm-line{font-size:17px}
  .poem-shoe-game .sm-tray{gap:6px}
  .poem-shoe-game .sm-pen{width:46px;height:46px}
}
@media (orientation:landscape) and (max-height:500px){
  /* Short landscape phones: buttons + feedback go under the picture so each column fits the height. */
  .poem-shoe-game .sm-frame{grid-template-columns:minmax(0,1.08fr) minmax(250px,1fr);grid-template-areas:"stage head" "stage panel" "act panel" "fb panel";grid-template-rows:auto auto auto 1fr;column-gap:14px;row-gap:6px;align-items:start}
  .poem-shoe-game .sm-side{display:contents}.poem-shoe-game .sm-panel{grid-area:panel}.poem-shoe-game .sm-actions{grid-area:act}.poem-shoe-game .sm-feedback{grid-area:fb}
  .poem-shoe-game .sm-stage{border-radius:14px}
  .poem-shoe-game .sm-say{font-size:16px;line-height:1.35}
  .poem-shoe-game .sm-progress{min-width:50px;padding:3px 8px;font-size:15px}
  .poem-shoe-game .sm-panel{padding:8px;gap:7px;border-radius:14px}
  .poem-shoe-game .sm-text{gap:4px 8px;justify-content:flex-start}
  .poem-shoe-game .sm-line{flex-basis:100%;font-size:15px;line-height:1.45}
  .poem-shoe-game .sm-gloss{font-size:14px;padding:3px 10px}.poem-shoe-game .sm-gloss b{font-size:19px}
  .poem-shoe-game .sm-measure{max-width:330px}
  .poem-shoe-game .sm-fitting{grid-template-columns:minmax(0,1fr) 92px;align-items:center;gap:8px}
  .poem-shoe-game[data-stage=done] .sm-fitting{grid-template-columns:minmax(0,1fr)}
  .poem-shoe-game .sm-fit{max-width:330px}
  .poem-shoe-game[data-stage=done] .sm-fit{max-width:250px}
  .poem-shoe-game .sm-tray{grid-template-columns:1fr;gap:6px}
  .poem-shoe-game .sm-tray button{min-height:48px;align-items:center;padding:5px 6px 5px 30px}.poem-shoe-game .sm-tray .sm-no{width:24px;height:24px;font-size:15px;top:50%;left:4px;transform:translateY(-50%)}
  .poem-shoe-game .sm-tray .sm-tag{top:auto;bottom:2px;right:3px}
  .poem-shoe-game .sm-moral{gap:3px;padding:7px 8px}.poem-shoe-game .sm-moral>b{font-size:17px}.poem-shoe-game .sm-moral p{font-size:15px}.poem-shoe-game .sm-moral strong{font-size:16px}.poem-shoe-game .sm-moral small{font-size:14px;padding-top:4px}
  .poem-shoe-game .sm-actions button{min-height:46px;font-size:17px;padding:6px 14px}
  .poem-shoe-game .sm-feedback{font-size:15px;min-height:0;line-height:1.4}
}
.poem-shoe-game.is-reduced *,.poem-shoe-game.is-reduced *::before,.poem-shoe-game.is-reduced *::after{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.poem-shoe-game *,.poem-shoe-game *::before,.poem-shoe-game *::after{transition:none!important;animation:none!important}}

/* poem-games/guest.css */
.poem-guest-game{--gk-ink:#294c3b;--gk-soft:#5f7566;--gk-paper:#fffdf7;--gk-line:#dcd8c8;--gk-gold:#e3a548;display:block;width:100%;max-width:880px;margin-inline:auto;color:var(--gk-ink);font-family:var(--sans);min-width:0}
.poem-guest-game *{box-sizing:border-box}
.poem-guest-game [hidden]{display:none!important}
.poem-guest-game button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-guest-game button:disabled{opacity:1}
.poem-guest-game img{max-width:none}
.poem-guest-game button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-guest-game .gk-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-guest-game .gk-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-guest-game .gk-instruction{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-guest-game .gk-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#edf3e7;color:#3c6447;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-guest-game.is-done .gk-progress{background:#f6e5c8;color:#8a4f24}

/* Stage: three 16:9 scene paintings; every overlay sits in % of the painting. */
/* overflow:clip (hidden for old Safari): a hidden frame can still be scrolled when a hotspot inside it is focused or scrolled into view, which slid the painting inside its frame. */
.poem-guest-game .gk-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#e9e2d2;border:1px solid #d6d2c1;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-guest-game .gk-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;-webkit-user-drag:none;transition:opacity .9s ease}
.poem-guest-game .gk-scene.is-on{opacity:1}
.poem-guest-game .gk-layer{position:absolute;inset:0;z-index:2;visibility:hidden;opacity:0;transition:opacity .5s ease,visibility 0s linear .5s}
.poem-guest-game .gk-layer.is-on{visibility:visible;opacity:1;transition:opacity .6s ease .25s,visibility 0s}
.poem-guest-game .gk-layer img{-webkit-user-drag:none;pointer-events:none}

/* Fallen petals on the flower path. */
.poem-guest-game .gk-pile{position:absolute;left:var(--x);top:var(--y);z-index:3;width:max(44px,9.5%);min-height:44px;aspect-ratio:100/56;padding:0;border:0;border-radius:40%;background:none;transform:translate(-50%,-50%);touch-action:none;cursor:pointer;transition:transform .2s ease,opacity .2s ease}
.poem-guest-game .gk-pile svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 1px 1px #6b4a3a40)}
.poem-guest-game .gk-pile:hover:not(:disabled){transform:translate(-50%,-50%) scale(1.06)}
.poem-guest-game .gk-pile:disabled{cursor:default}
.poem-guest-game .gk-pile::before{content:'';position:absolute;z-index:-1;inset:-8% -4%;border-radius:50%;background:radial-gradient(closest-side,#fffbeccc,#fff6dc80 55%,#fff6dc00);opacity:.25;pointer-events:none}
.poem-guest-game .gk-pile:not(:disabled)::before{animation:gk-breathe 2.4s ease-in-out infinite}
.poem-guest-game .gk-pile.is-swept{pointer-events:none;opacity:0;transform:translate(calc(-50% + var(--fx,60px)),calc(-50% + var(--fy,-20px))) rotate(24deg) scale(.7);transition:transform .6s cubic-bezier(.2,.7,.3,1),opacity .6s ease}
.poem-guest-game .gk-gap{position:absolute;left:23.125%;top:46.667%;width:10%;height:32.444%;pointer-events:none}
.poem-guest-game .gk-broom{position:absolute;z-index:4;left:calc(var(--bx,28.4%) - 2.8%);top:calc(var(--by,76.7%) - 28.9%);width:5.6%;height:28.9%;transform:rotate(var(--br,-13deg));transform-origin:50% 100%;pointer-events:none;transition:left .22s ease,top .22s ease,transform .22s ease}
.poem-guest-game .gk-broom img{display:block;width:100%;height:100%;filter:drop-shadow(1px 2px 1px #3b2a1a40)}
.poem-guest-game .gk-broom.is-active{pointer-events:auto;touch-action:none;cursor:grab}
.poem-guest-game .gk-broom.is-active::before{content:'';position:absolute;inset:-6% -60%}
.poem-guest-game .gk-broom.is-held{cursor:grabbing;transition:left .05s linear,top .05s linear,transform .12s ease}
.poem-guest-game .gk-broom.is-held img{filter:drop-shadow(2px 6px 4px #3b2a1a55)}

/* 蓬門: a closed reed door laid over the painted open one. */
.poem-guest-game .gk-door{position:absolute;left:29.6%;top:33%;z-index:2;width:17.8%;height:38.5%;padding:0;border:0;border-radius:6px;background:none;perspective:700px;cursor:pointer;visibility:visible;transition:visibility 0s linear 1.2s}
.poem-guest-game .gk-door:disabled{cursor:default}
.poem-guest-game .gk-leaf{position:absolute;top:0;bottom:0;left:0;width:50.5%;overflow:hidden;transform-origin:0 50%;transition:transform 1s cubic-bezier(.4,.1,.3,1),opacity .5s ease .65s}
.poem-guest-game .gk-leaf+.gk-leaf{left:auto;right:0;transform-origin:100% 50%}
.poem-guest-game .gk-leaf img{position:absolute;top:0;left:0;width:198%;height:100%;filter:drop-shadow(0 3px 3px #2c1f1240)}
.poem-guest-game .gk-leaf+.gk-leaf img{left:auto;right:0}
.poem-guest-game .gk-door.is-cue{animation:gk-glow 1.8s ease-in-out infinite}
.poem-guest-game .gk-door.is-cue::after{content:'蓬門';position:absolute;left:50%;top:-2%;transform:translate(-50%,-100%);padding:2px 12px;border-radius:999px;background:#fffaf0f2;color:#5c4126;font-size:clamp(14px,2.3cqw,18px);font-weight:700;letter-spacing:.12em;white-space:nowrap;box-shadow:0 2px 6px #2a1d1033}
.poem-guest-game .gk-door:hover.is-cue .gk-leaf:first-child{transform:rotateY(-12deg)}
.poem-guest-game .gk-door:hover.is-cue .gk-leaf+.gk-leaf{transform:rotateY(12deg)}
.poem-guest-game .gk-door.is-open{visibility:hidden;pointer-events:none}
.poem-guest-game .gk-door.is-open .gk-leaf{opacity:0;transform:rotateY(-80deg)}
.poem-guest-game .gk-door.is-open .gk-leaf+.gk-leaf{transform:rotateY(80deg)}

/* Hand-made overlays: glow rings, paper tags, speech bubbles. */
.poem-guest-game .gk-spot{position:absolute;left:var(--x);top:var(--y);z-index:5;width:var(--w);min-width:48px;aspect-ratio:1;transform:translate(-50%,-50%);padding:0;border:2.5px dashed #fffaeef2;border-radius:50%;background:radial-gradient(closest-side,#fff8e436,#fff8e414 70%,transparent);box-shadow:0 0 0 2px #4a332066,inset 0 0 0 2px #4a33204d,0 0 14px 4px #fff4d633;cursor:pointer;animation:gk-call 1.7s ease-in-out infinite;transition:border-color .2s,background .2s}
.poem-guest-game .gk-spot:hover{border-style:solid;border-color:#ffd27a;background:radial-gradient(closest-side,#fff3c955,#ffe6a022 70%,transparent)}
.poem-guest-game .gk-spot>span,.poem-guest-game .gk-mark>b{position:absolute;left:50%;top:0;transform:translate(-50%,-115%);padding:2px 11px;border-radius:999px;background:#fffaf0f2;color:#2d4a3c;font-size:clamp(14px,2.3cqw,18px);font-weight:700;line-height:1.4;letter-spacing:.06em;white-space:nowrap;box-shadow:0 2px 6px #2a1d1033;pointer-events:none}
.poem-guest-game .gk-mark{position:absolute;left:var(--x);top:var(--y);z-index:3;width:var(--w);aspect-ratio:var(--a,1);transform:translate(-50%,-50%) scale(.85);border-radius:50%;border:2px solid #ffe3a6e6;background:radial-gradient(closest-side,#fff1c240,transparent);box-shadow:0 0 16px 5px #ffdb8a66,inset 0 0 10px #fff3d066;opacity:0;pointer-events:none;transition:opacity .5s ease,transform .5s cubic-bezier(.3,1.4,.5,1)}
.poem-guest-game .gk-mark.is-on{opacity:1;transform:translate(-50%,-50%)}
.poem-guest-game .gk-mark>b{top:100%;transform:translate(-50%,5px);color:#7b3e22}
.poem-guest-game .gk-mark[data-gk-mark=wine]>b{top:0;transform:translate(-50%,-112%)}
.poem-guest-game .gk-glow{position:absolute;left:var(--x);top:var(--y);z-index:3;width:var(--w);aspect-ratio:1;transform:translate(-50%,-50%) scale(.6);border-radius:50%;background:radial-gradient(closest-side,#fff8dc00 34%,#fff0c0e6 54%,#ffd36a99 72%,#ffd36a00);opacity:0;pointer-events:none}
.poem-guest-game .gk-glow::after{content:'';position:absolute;left:72%;top:8%;width:30%;aspect-ratio:1;background:#fffbe8;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);filter:drop-shadow(0 0 2px #ffd36a)}
.poem-guest-game.is-toast .gk-glow{animation:gk-cheers 1.6s ease-out var(--d) both}
.poem-guest-game .gk-bubble{position:absolute;left:var(--x);top:var(--y);z-index:6;max-width:44%;padding:5px 13px;border-radius:16px;background:#fffaf0f5;color:#3b2c1c;font-size:clamp(14px,2.6cqw,21px);font-weight:700;line-height:1.4;white-space:nowrap;box-shadow:0 3px 10px #2a1d1033;transform:translate(-50%,-100%) scale(.6);transform-origin:50% 120%;opacity:0;pointer-events:none;transition:opacity .3s ease,transform .4s cubic-bezier(.3,1.5,.5,1)}
.poem-guest-game .gk-bubble::after{content:'';position:absolute;left:50%;top:calc(100% - 1px);width:12px;height:9px;transform:translateX(-50%);background:inherit;clip-path:polygon(0 0,100% 0,40% 100%)}
.poem-guest-game .gk-bubble.is-on{opacity:1;transform:translate(-50%,-100%)}
.poem-guest-game .gk-end{position:absolute;right:3.5%;top:5%;z-index:6;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 16px;border-radius:14px;background:#fefbf0e8;color:#315240;box-shadow:0 4px 14px #2a1d1026;pointer-events:none;opacity:0;transform:translateY(8px);transition:opacity .7s ease 1.2s,transform .7s ease 1.2s}
.poem-guest-game .gk-end b{font-size:clamp(16px,3cqw,28px);letter-spacing:.16em;color:#7b3e22}
.poem-guest-game .gk-end small{font-size:clamp(14px,1.9cqw,17px);font-weight:600;letter-spacing:.04em}
.poem-guest-game .gk-end.is-on{opacity:1;transform:none}
@container (max-width:520px){.poem-guest-game .gk-end{right:2.5%;top:3.5%;padding:3px 12px}.poem-guest-game .gk-end small{display:none}}
.poem-guest-game .gk-loading{position:absolute;inset:0;z-index:9;display:grid;align-content:center;justify-items:center;gap:14px;padding:20px;background:#f4f0dfeb;font-size:20px;line-height:1.5;text-align:center}
.poem-guest-game .gk-loading button{min-height:48px;padding:10px 22px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-weight:600;font-size:19px;cursor:pointer}

/* Side panel: verse, choices, action line, feedback. */
.poem-guest-game .gk-side{grid-area:side;display:flex;flex-direction:column;gap:12px;min-width:0}
.poem-guest-game .gk-verse{margin:0;padding:10px 14px;border:1px solid #dce5ce;border-radius:16px;background:#f3f6e9;color:#93a596;font-size:clamp(21px,2.6vw,25px);font-weight:600;line-height:1.5;letter-spacing:.1em;text-align:center}
.poem-guest-game .gk-verse span{display:inline-block;transition:color .4s}
.poem-guest-game .gk-verse .is-done{color:#3d6a52}
.poem-guest-game .gk-verse .is-now{color:#294c3b;background:linear-gradient(transparent 62%,#f2d58f99 62%)}
.poem-guest-game .gk-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.poem-guest-game .gk-choice{position:relative;display:grid;justify-items:center;align-content:center;gap:4px;min-width:0;min-height:120px;padding:8px 8px 10px;border:1.5px solid var(--gk-line);border-radius:18px;background:var(--gk-paper);font-size:19px;font-weight:650;line-height:1.3;cursor:pointer;box-shadow:0 3px 0 #e6e1d2;transition:border-color .2s,background .2s,opacity .3s,filter .3s,transform .2s}
.poem-guest-game .gk-choice img{display:block;width:100%;height:clamp(64px,10vw,96px);object-fit:contain;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 3px 3px #3b2a1a2e)}
.poem-guest-game .gk-choice:hover:not(:disabled){border-color:#c98b3a;background:#fff6e2;transform:translateY(-2px)}
.poem-guest-game .gk-choice:disabled{cursor:default}
.poem-guest-game .gk-choice.is-right{border-color:#6f9a6d;background:#f1f7ea;box-shadow:0 0 0 3px #a9c9a040,0 3px 0 #d4e3cd}
.poem-guest-game .gk-choice.is-right::after{content:'✓';position:absolute;right:8px;top:6px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#4f7d58;color:#fff;font-size:18px;font-weight:700}
.poem-guest-game .gk-choice.is-wrong{opacity:.55;filter:grayscale(.5);box-shadow:none}
.poem-guest-game .gk-choice.is-shake{animation:gk-shake .45s ease}
.poem-guest-game .gk-summary{padding:12px 16px;border-radius:16px;background:#fbf3e2;border:1px solid #ecdcbc;text-align:center}
.poem-guest-game .gk-summary b{display:block;font-size:21px;letter-spacing:.12em;color:#7b3e22}
.poem-guest-game .gk-summary p{margin:6px 0 0;font-size:17px;line-height:1.6;color:#4b5f50;text-align:left}
.poem-guest-game .gk-actionline{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.poem-guest-game .gk-primary{flex:1 1 150px;min-height:52px;padding:10px 20px;border:0;border-radius:16px;background:#446d50;color:#fff!important;font-size:20px;font-weight:650;letter-spacing:.06em;cursor:pointer;box-shadow:0 3px 0 #2f4f39;transition:background .2s,transform .1s}
.poem-guest-game .gk-primary:hover:not(:disabled,.is-busy){background:#3a5f45}
.poem-guest-game .gk-primary:active:not(:disabled,.is-busy){transform:translateY(2px);box-shadow:0 1px 0 #2f4f39}
.poem-guest-game .gk-primary.is-next{background:#b8743a;box-shadow:0 3px 0 #8a5426}
.poem-guest-game .gk-primary.is-next:hover:not(:disabled,.is-busy){background:#a6662f}
.poem-guest-game .gk-primary:disabled,.poem-guest-game .gk-primary.is-busy{opacity:.5;cursor:default}
.poem-guest-game .gk-listen{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:52px;margin-left:auto;padding:8px 18px;border:1px solid #b9cbae;border-radius:999px;background:#fffef7;color:#356148!important;font-size:18px;font-weight:600;cursor:pointer}
.poem-guest-game .gk-listen svg{width:22px;height:22px;flex:none;stroke-linecap:round;stroke-linejoin:round}
.poem-guest-game .gk-listen svg path{fill:none}
.poem-guest-game .gk-listen:disabled,.poem-guest-game .gk-listen.is-busy{opacity:.7;cursor:default}
.poem-guest-game .gk-feedback{margin:0;min-height:3em;font-size:19px;line-height:1.5;color:#55715a;text-align:center;text-wrap:pretty}

@keyframes gk-call{50%{box-shadow:0 0 0 4px #ffd27a59,0 0 20px 8px #ffd98a4d,inset 0 0 0 2px #4a33204d}}
@keyframes gk-glow{0%,100%{filter:drop-shadow(0 0 0 #ffe2a400)}50%{filter:drop-shadow(0 0 7px #ffe2a4)}}
@keyframes gk-breathe{50%{opacity:1}}
@keyframes gk-shake{20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-4px)}80%{transform:translateX(2px)}}
@keyframes gk-cheers{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}35%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}100%{opacity:.75;transform:translate(-50%,-50%) scale(1)}}

/* Landscape: picture on the left, verse and choices on the right. */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-guest-game{max-width:1280px}
 .poem-guest-game .gk-layout{grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;row-gap:12px;align-items:center}
 .poem-guest-game .gk-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
 .poem-guest-game .gk-head{align-self:end;align-items:flex-start}
 .poem-guest-game .gk-side{align-self:start}
 .poem-guest-game .gk-choice img{height:clamp(56px,7.5vw,92px)}
}
@media (orientation:landscape) and (min-width:1100px) and (min-height:700px){
 .poem-guest-game .gk-instruction{font-size:26px}
 .poem-guest-game .gk-feedback{font-size:20px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-guest-game .gk-layout{grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr);column-gap:14px;row-gap:6px}
 .poem-guest-game .gk-stage{border-radius:14px;width:min(100%,calc((100cqh - 8px) * 16 / 9))}
 .poem-guest-game .gk-head{gap:8px}
 .poem-guest-game .gk-instruction{font-size:17px;line-height:1.35}
 .poem-guest-game .gk-progress{min-width:52px;padding:3px 8px;font-size:15px}
 .poem-guest-game .gk-side{gap:6px}
 .poem-guest-game .gk-verse{padding:4px 8px;font-size:17px;letter-spacing:.04em;border-radius:12px}
 .poem-guest-game .gk-choices{gap:6px}
 .poem-guest-game .gk-choice{min-height:0;padding:4px 4px 6px;font-size:15px;border-radius:14px;gap:2px}
 .poem-guest-game .gk-choice img{height:46px}
 .poem-guest-game .gk-choice.is-right::after{width:22px;height:22px;font-size:14px;right:4px;top:4px}
 .poem-guest-game .gk-summary{padding:6px 10px}.poem-guest-game .gk-summary b{font-size:16px}.poem-guest-game .gk-summary p{font-size:14px;line-height:1.45;margin-top:2px}
 .poem-guest-game .gk-primary{min-height:44px;padding:5px 12px;font-size:17px;flex-basis:100px}
 .poem-guest-game .gk-listen{min-height:44px;padding:5px 12px;font-size:15px}
 .poem-guest-game .gk-feedback{font-size:15px;line-height:1.4;min-height:2.8em;text-align:left}
}
@media (max-width:420px){
 .poem-guest-game .gk-layout{gap:10px}
 .poem-guest-game .gk-instruction{font-size:19px;min-height:2.84em}
 .poem-guest-game .gk-progress{min-width:56px;padding:4px 8px;font-size:16px}
 .poem-guest-game .gk-stage{border-radius:15px}
 .poem-guest-game .gk-side{gap:10px}
 .poem-guest-game .gk-verse{font-size:21px;letter-spacing:.04em;padding:8px 10px}
 .poem-guest-game .gk-choice{min-height:108px;font-size:18px}
 .poem-guest-game .gk-primary{font-size:19px;padding:10px 14px}
 .poem-guest-game .gk-listen{padding:8px 14px;font-size:17px}
 .poem-guest-game .gk-feedback{font-size:17px;text-align:left}
 .poem-guest-game .gk-end{padding:4px 9px;border-radius:10px}
}
@media (max-width:370px){
 .poem-guest-game .gk-verse{font-size:19px;letter-spacing:0}
 .poem-guest-game .gk-choice{font-size:16px}
 .poem-guest-game .gk-listen span{font-size:16px}
}
.poem-guest-game.is-reduced .gk-scene,.poem-guest-game.is-reduced .gk-layer,.poem-guest-game.is-reduced .gk-leaf,.poem-guest-game.is-reduced .gk-door,.poem-guest-game.is-reduced .gk-broom,.poem-guest-game.is-reduced .gk-pile,.poem-guest-game.is-reduced .gk-mark,.poem-guest-game.is-reduced .gk-bubble,.poem-guest-game.is-reduced .gk-end,.poem-guest-game.is-reduced .gk-verse span,.poem-guest-game.is-reduced .gk-choice{transition:none}
.poem-guest-game.is-reduced .gk-spot,.poem-guest-game.is-reduced .gk-door,.poem-guest-game.is-reduced .gk-choice,.poem-guest-game.is-reduced .gk-pile::before{animation:none}
.poem-guest-game.is-reduced .gk-pile:not(:disabled)::before{opacity:.7}
.poem-guest-game.is-reduced.is-toast .gk-glow{animation:none;opacity:.8;transform:translate(-50%,-50%)}
@media (prefers-reduced-motion:reduce){
 .poem-guest-game .gk-scene,.poem-guest-game .gk-layer,.poem-guest-game .gk-leaf,.poem-guest-game .gk-door,.poem-guest-game .gk-broom,.poem-guest-game .gk-pile,.poem-guest-game .gk-mark,.poem-guest-game .gk-bubble,.poem-guest-game .gk-end{transition:none}
 .poem-guest-game .gk-spot,.poem-guest-game .gk-door,.poem-guest-game .gk-choice,.poem-guest-game .gk-pile::before{animation:none}
 .poem-guest-game .gk-pile:not(:disabled)::before{opacity:.7}
 .poem-guest-game.is-toast .gk-glow{animation:none;opacity:.8;transform:translate(-50%,-50%)}
}

/* poem-games/tone-branch.css */
/* 《春曉》「小鳥回枝頭」 (tone-branch.mjs): four tone branches, the bird in the open sky between them; then 夜來風雨聲 and 花落知多少. Built from ear-core.css + spring-birds.css. */
.poem-tone-branch{--tb-ink:#2d4a43;--tb-soft:#5f746d;--tb-paper:#fffdf7;--tb-line:#d9d6c6;--tb-accent:#d98a3a;--tb-accent-soft:#fbeedc;--tb-good:#3f8a5a;display:block;width:100%;max-width:880px;margin-inline:auto;min-width:0;color:var(--tb-ink);font-family:var(--sans)}
.poem-tone-branch *{box-sizing:border-box}
.poem-tone-branch [hidden]{display:none!important}
.poem-tone-branch button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-tone-branch button:disabled{opacity:1}
.poem-tone-branch img{max-width:none;-webkit-user-drag:none}
.poem-tone-branch button:focus-visible{outline:3px solid var(--tb-accent);outline-offset:3px}
.poem-tone-branch svg{flex:none}
.poem-tone-branch .tb-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:10px;height:100%;align-content:center}
.poem-tone-branch .tb-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-tone-branch .tb-task{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:700;line-height:1.4;text-wrap:balance}
.poem-tone-branch .tb-chip{flex:none;min-width:66px;padding:4px 12px;border-radius:999px;background:#edf2ea;color:var(--tb-soft);font-size:18px;font-weight:700;line-height:1.4;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.poem-tone-branch[data-phase="done"] .tb-chip{background:var(--tb-accent-soft);color:#8a4f24}

/* Stage: one 16:9 painting; targets, carrier and cards sit in % of it. */
/* overflow:clip (hidden for old Safari) keeps a focused button from scrolling the painting inside its frame. */
.poem-tone-branch .tb-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#e9e6da;border:1px solid var(--tb-line);box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-tone-branch .tb-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.poem-tone-branch .tb-loading{position:absolute;inset:0;z-index:20;display:grid;place-content:center;justify-items:center;gap:12px;background:#f4f1e8e6;font-size:20px;font-weight:700;color:var(--tb-soft)}
.poem-tone-branch .tb-loading button{min-height:48px;padding:8px 22px;border:2px solid var(--tb-line);border-radius:16px;background:var(--tb-paper);font-size:19px;font-weight:700;cursor:pointer}

/* Targets: big picture buttons (tone branches, bowls, lotus leaves). */
.poem-tone-branch .tb-targets{position:absolute;inset:0;z-index:3}
.poem-tone-branch .tb-target{position:absolute;left:var(--x);top:var(--y);width:var(--w);min-width:96px;min-height:72px;transform:translate(-50%,-50%);display:grid;grid-template-areas:"tag" "art";justify-items:center;align-content:center;gap:.3em;padding:0;border:0;border-radius:24px;background:none;cursor:pointer;transition:transform .18s ease,filter .2s ease}
.poem-tone-branch .tb-target-art{grid-area:art;display:block;width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 3px 3px #2a3a3033)}
.poem-tone-branch .tb-tag{grid-area:tag;z-index:1;display:inline-flex;align-items:center;gap:.35em;padding:.18em .7em;border-radius:999px;background:#fffdf6f0;color:var(--tb-ink);font-size:clamp(14px,2.7cqw,24px);line-height:1.3;white-space:nowrap;box-shadow:0 2px 6px #2a1d1033;border:2px solid transparent;transition:border-color .2s,background-color .2s;pointer-events:none}
.poem-tone-branch .tb-tag b{font-weight:800;letter-spacing:.04em}
.poem-tone-branch .tb-tag small{font-size:.78em;font-weight:700;color:var(--tb-soft);letter-spacing:.02em}
.poem-tone-branch .tb-tone{width:1.5em;height:1.4em;overflow:visible}
.poem-tone-branch .tb-tone path{fill:none;stroke:currentColor;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
.poem-tone-branch .tb-nest{grid-area:art;align-self:center;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;gap:.25em;min-height:0;font-size:clamp(14px,2.6cqw,24px);pointer-events:none}
.poem-tone-branch .tb-nest i{display:grid;place-items:center;width:1.7em;height:1.7em;border-radius:50%;background:#fffdf6f2;color:var(--tb-ink);font-style:normal;font-weight:700;line-height:1;box-shadow:0 2px 4px #2a1d1033}
.poem-tone-branch .tb-target:not(:disabled):hover{transform:translate(-50%,-50%) scale(1.04)}
.poem-tone-branch .tb-target:disabled{cursor:default}
.poem-tone-branch[data-phase="warm"] .tb-target:not(.is-heard) .tb-tag{border-color:var(--tb-accent);animation:tb-call 1.8s ease-in-out infinite}
.poem-tone-branch .tb-target.is-heard .tb-tag{border-color:#cfd8c9}
.poem-tone-branch .tb-target.is-playing .tb-tag,.poem-tone-branch .tb-target.is-hint .tb-tag{border-color:var(--tb-accent);background:var(--tb-accent-soft)}
.poem-tone-branch .tb-target.is-hint .tb-target-art{animation:tb-glow 1.2s ease-in-out 2}
.poem-tone-branch .tb-target.is-bounce{animation:tb-bounce .7s ease}
.poem-tone-branch .tb-target.is-shake{animation:tb-shake .6s ease}

/* The carrier holds the sound being asked; it flies to the target that was tapped. */
.poem-tone-branch .tb-carrier{position:absolute;left:var(--cx,50%);top:var(--cy,40%);width:var(--cw,13%);z-index:4;transform:translate(-50%,-50%);pointer-events:none}
.poem-tone-branch .tb-carrier-art{display:block;width:100%;height:auto;filter:drop-shadow(0 4px 4px #2a3a3033)}
.poem-tone-branch .tb-carrier-char{position:absolute;left:var(--bx,88%);top:var(--by,-6%);display:grid;place-items:center;width:max(44px,6.6cqw);height:max(44px,6.6cqw);border-radius:50%;background:#fffdf6;color:var(--tb-ink);font-size:max(26px,4cqw);font-weight:800;line-height:1;box-shadow:0 3px 8px #2a1d1040;border:2.5px solid var(--tb-accent);transform:scale(0);transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.poem-tone-branch .tb-carrier.is-asking .tb-carrier-char{transform:scale(1)}
.poem-tone-branch .tb-carrier.is-asking .tb-carrier-art{animation:tb-hover 2.4s ease-in-out infinite}
.poem-tone-branch .tb-ghost{z-index:6}
.poem-tone-branch .tb-ghost .tb-carrier-char{transform:scale(1)}


/* The end card. */
.poem-tone-branch .tb-end{position:absolute;left:50%;top:var(--ey,22%);z-index:5;transform:translate(-50%,-50%);animation:tb-pop .6s ease-out}
.poem-tone-branch .tb-end-card{display:grid;justify-items:center;gap:.25em;padding:.5em 1.2em;border-radius:20px;background:#fffdf6f0;box-shadow:0 6px 18px #2a1d1033;text-align:center}
.poem-tone-branch .tb-end-card b{font-family:var(--serif);font-size:clamp(24px,4.4cqw,40px);letter-spacing:.12em;white-space:nowrap}
.poem-tone-branch .tb-end-card span{font-size:clamp(15px,2.4cqw,21px);font-weight:700;color:var(--tb-soft);white-space:nowrap}

/* Side panel: the character card, the buttons, the verse and the feedback. */
.poem-tone-branch .tb-side{grid-area:side;display:grid;gap:10px;align-content:start;min-width:0}
.poem-tone-branch .tb-card{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"char pinyin" "char note";align-items:center;column-gap:16px;min-height:96px;padding:10px 16px;border-radius:18px;background:var(--tb-paper);border:1.5px solid var(--tb-line)}
.poem-tone-branch .tb-card.is-empty{display:none}
.poem-tone-branch .tb-card-char{grid-area:char;font-size:clamp(44px,6vw,64px);font-weight:800;line-height:1.1;letter-spacing:.06em;white-space:nowrap}
.poem-tone-branch .tb-card-char:empty{display:none}
.poem-tone-branch .tb-card-pinyin{grid-area:pinyin;align-self:end;font-size:24px;font-weight:700;color:var(--tb-ink);letter-spacing:.04em}
.poem-tone-branch .tb-card-note{grid-area:note;align-self:start;font-size:18px;line-height:1.45;color:var(--tb-soft);text-wrap:pretty}
.poem-tone-branch .tb-card-pinyin:empty{display:none}
.poem-tone-branch .tb-card-pinyin:empty+.tb-card-note{align-self:center}
.poem-tone-branch .tb-card[data-kind="warm"],.poem-tone-branch .tb-card[data-kind="done"]{grid-template-columns:minmax(0,1fr);grid-template-areas:"char" "pinyin" "note";min-height:0}
.poem-tone-branch .tb-card[data-kind="done"] .tb-card-char{font-size:clamp(28px,3.6vw,40px)}
.poem-tone-branch .tb-actions{display:flex;flex-wrap:wrap;gap:10px}
.poem-tone-branch .tb-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:8px 22px;border-radius:18px;font-size:20px;font-weight:800;line-height:1.2;white-space:nowrap;cursor:pointer}
.poem-tone-branch .tb-hear{border:2px solid #c9d5c3;background:var(--tb-paper);box-shadow:0 4px 0 #dfe6da}
.poem-tone-branch .tb-hear svg{width:24px;height:24px}
.poem-tone-branch .tb-hear.is-playing{border-color:var(--tb-accent);background:var(--tb-accent-soft)}
.poem-tone-branch .tb-go,.poem-tone-branch .tb-again{flex:1 1 auto;border:0;background:var(--tb-accent);color:#fff!important;box-shadow:0 4px 0 #a9662a}
.poem-tone-branch .tb-go.is-pulse{animation:tb-beat .7s ease-in-out 2}
.poem-tone-branch .tb-actions button:disabled{opacity:.55;cursor:default}
.poem-tone-branch .tb-verse{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0;padding:8px 12px;border-radius:16px;background:#f5f2e8}
.poem-tone-branch .tb-verse-text{font-size:clamp(22px,2.6vw,27px);font-weight:700;letter-spacing:.08em;line-height:1.35}
.poem-tone-branch .tb-verse-play{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:6px 14px;border:1.5px solid #cfd6c6;border-radius:999px;background:#fff;font-size:17px;font-weight:700;cursor:pointer;white-space:nowrap}
.poem-tone-branch .tb-verse-play svg{width:20px;height:20px}
.poem-tone-branch .tb-verse-play.is-playing{border-color:var(--tb-accent);background:var(--tb-accent-soft)}
.poem-tone-branch .tb-feedback{margin:0;min-height:2.9em;font-size:19px;font-weight:600;line-height:1.5;color:var(--tb-soft);text-wrap:pretty}
.poem-tone-branch.is-cheer .tb-stage::after,.poem-tone-branch.is-celebrate .tb-stage::after{content:'';position:absolute;inset:0;z-index:7;pointer-events:none;background:radial-gradient(60% 60% at 50% 45%,#fff6d455,#fff6d400 70%);animation:tb-flash 1.2s ease-out}

/* Night and the end: no empty feedback row and no empty button row under the verse. */
.poem-tone-branch .tb-actions:not(:has(button:not([hidden]))){display:none}
.poem-tone-branch:is([data-phase="night"],[data-phase="done"]) .tb-feedback:empty{display:none}
.poem-tone-branch .tb-card-note{white-space:pre-line}

/* The end card is centred with translate(-50%,-50%); the pop keeps that translate in every frame, so it never starts off-centre and jumps. */
@keyframes tb-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}70%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}100%{transform:translate(-50%,-50%) scale(1)}}
@keyframes tb-call{50%{box-shadow:0 0 0 4px #f4c27a66,0 2px 6px #2a1d1033}}
@keyframes tb-glow{50%{filter:drop-shadow(0 0 10px #ffd27a) drop-shadow(0 0 4px #ffe8b0)}}
@keyframes tb-bounce{30%{transform:translate(-50%,-56%)}60%{transform:translate(-50%,-48%)}}
@keyframes tb-shake{20%{transform:translate(calc(-50% - 7px),-50%)}40%{transform:translate(calc(-50% + 6px),-50%)}60%{transform:translate(calc(-50% - 4px),-50%)}80%{transform:translate(calc(-50% + 2px),-50%)}}
@keyframes tb-hover{50%{transform:translateY(-5%)}}
@keyframes tb-beat{50%{transform:scale(1.08)}}
@keyframes tb-flash{0%{opacity:0}30%{opacity:1}100%{opacity:0}}
.poem-tone-branch.is-reduced *,.poem-tone-branch.is-reduced *::before,.poem-tone-branch.is-reduced *::after{animation:none!important;transition:none!important}
@media (prefers-reduced-motion:reduce){.poem-tone-branch *,.poem-tone-branch *::before,.poem-tone-branch *::after{animation:none!important;transition:none!important}}

/* Landscape tablets: painting on the left, task, card and buttons on the right. */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-tone-branch{max-width:1280px}
 .poem-tone-branch .tb-layout{grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";column-gap:20px;row-gap:10px;align-items:center}
 .poem-tone-branch .tb-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
 .poem-tone-branch .tb-head{align-self:end;align-items:flex-start}
 .poem-tone-branch .tb-side{align-self:start}
 .poem-tone-branch .tb-actions button{flex:1 1 auto}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-tone-branch .tb-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);column-gap:14px;row-gap:6px}
 .poem-tone-branch .tb-stage{border-radius:14px;width:min(100%,calc((100cqh - 8px) * 16 / 9))}
 .poem-tone-branch .tb-task{font-size:17px;line-height:1.35}
 .poem-tone-branch .tb-chip{min-width:52px;padding:3px 8px;font-size:15px}
 .poem-tone-branch .tb-side{gap:6px}
 .poem-tone-branch .tb-card{min-height:0;padding:6px 10px}
 .poem-tone-branch .tb-card-char{font-size:40px}
 .poem-tone-branch .tb-card-pinyin{font-size:19px}
 .poem-tone-branch .tb-card-note{font-size:15px}
 .poem-tone-branch .tb-actions button{min-height:44px;padding:5px 12px;font-size:17px}
 .poem-tone-branch .tb-verse{padding:4px 8px}.poem-tone-branch .tb-verse-text{font-size:18px}.poem-tone-branch .tb-verse-play{min-height:40px;font-size:15px}
 .poem-tone-branch .tb-feedback{font-size:15px;min-height:2.6em}
}
/* Portrait tablets: the card and the buttons share one row under the painting. */
@media (orientation:portrait) and (min-width:701px){
 .poem-tone-branch .tb-stage{width:min(100%,calc((100cqh - 250px) * 16 / 9))}
 .poem-tone-branch .tb-side{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"card actions" "card verse" "feedback feedback";column-gap:14px;row-gap:8px}
 .poem-tone-branch .tb-card{grid-area:card;align-self:stretch}
 .poem-tone-branch .tb-actions{grid-area:actions}
 .poem-tone-branch .tb-actions button{flex:1 1 auto}
 .poem-tone-branch .tb-verse{grid-area:verse}
 .poem-tone-branch .tb-feedback{grid-area:feedback;min-height:1.6em;text-align:center}
 .poem-tone-branch .tb-side:has(.tb-card.is-empty){grid-template-areas:"actions actions" "verse verse" "feedback feedback"}
}
/* Spring theme (was spring-birds.css). */
.poem-tone-branch{--tb-accent:#c96a7c;--tb-accent-soft:#fbe9ec;--cx:50%;--cy:50%;--cw:14%;--bx:78%;--by:-14%;--ey:50%}
.poem-tone-branch .tb-go,.poem-tone-branch .tb-again{box-shadow:0 4px 0 #9a4a5a}
.poem-tone-branch .tb-tag .tb-tone{color:#b0475e}
.poem-tone-branch .tb-nest{align-self:start;margin-top:-.4em}
.poem-tone-branch .tb-target:nth-child(2n) .tb-target-art{transform:scaleX(-1)}
/* The bird can be dragged to a branch; its whole body is the handle (at least 48px). */
.poem-tone-branch .tb-carrier.is-grab{pointer-events:auto;cursor:grab;touch-action:none;min-width:48px;min-height:48px}
.poem-tone-branch .tb-carrier.is-drag{cursor:grabbing;z-index:8;transition:none}
.poem-tone-branch .tb-carrier.is-drag .tb-carrier-art{animation:none;transform:scale(1.08)}
.poem-tone-branch .tb-carrier.is-sing .tb-carrier-art{animation:tb-beat .4s ease-in-out 3}
.poem-tone-branch .tb-carrier.is-hop{animation:tb-hop .6s ease}
.poem-tone-branch .tb-target.is-over .tb-tag{border-color:var(--tb-accent);background:var(--tb-accent-soft)}
.poem-tone-branch .tb-target.is-over .tb-target-art{filter:drop-shadow(0 0 8px #ffd27a) drop-shadow(0 3px 3px #2a3a3033)}
/* Idle hint: a soft ring where to tap. */
.poem-tone-branch .tb-ripple{position:absolute;z-index:6;width:max(56px,9cqw);aspect-ratio:1;border-radius:50%;border:3px solid #fffdf6;box-shadow:0 0 0 3px var(--tb-accent);transform:translate(-50%,-50%) scale(.4);opacity:0;pointer-events:none}
.poem-tone-branch .tb-ripple.is-on{animation:tb-ring 1s ease-out 2}
/* Night: the poem's own paintings for lines 3 and 4, cross-faded over the garden. */
.poem-tone-branch .tb-night{position:absolute;inset:0;z-index:9;animation:tb-fade 1.2s ease-out}
.poem-tone-branch .tb-night-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.poem-tone-branch .tb-night.is-now .tb-night-art{animation:tb-push 6s ease-out forwards}
/* No caption on the painting: the verse is written once, in the side strip (.tb-verse). */
.poem-tone-branch .tb-end{z-index:10}
/* A phone-sized painting has no room between the branch rows for the second line: just 真棒！ (the side card has the rule). */
@container (max-width:520px){.poem-tone-branch .tb-end-card span{display:none}}
@keyframes tb-fade{from{opacity:0}to{opacity:1}}
@keyframes tb-push{from{transform:scale(1)}to{transform:scale(1.07)}}
@keyframes tb-ring{0%{opacity:.9;transform:translate(-50%,-50%) scale(.4)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.25)}}
@keyframes tb-hop{30%{transform:translate(-50%,-62%)}60%{transform:translate(-50%,-46%)}}


/* How to play: the header button, the 怎麼玩 card over the painting, the demo finger, the hint glow. */
.poem-tone-branch .tb-layout{position:relative}
.poem-tone-branch .tb-task{flex:1 1 auto;min-width:0}
.poem-tone-branch .tb-howbtn{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:4px 14px;border:2px solid var(--tb-line);border-radius:999px;background:var(--tb-paper);font-size:17px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer}
.poem-tone-branch .tb-howbtn:disabled{opacity:.55;cursor:default}
.poem-tone-branch .tb-how{position:absolute;inset:0;z-index:15;display:grid;place-items:center;padding:clamp(6px,2cqw,18px);background:#f4efe2c4;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:tb-fade .25s ease-out}
.poem-tone-branch.is-how .tb-targets,.poem-tone-branch.is-how .tb-carrier,.poem-tone-branch.is-how .tb-ripple{visibility:hidden}
.poem-tone-branch .tb-how-card{display:grid;grid-template-columns:auto auto;grid-template-areas:"title title" "steps go";align-items:center;column-gap:clamp(10px,3.4cqw,32px);row-gap:clamp(4px,1.4cqw,14px);max-width:100%;max-height:100%;padding:clamp(8px,2.4cqw,24px) clamp(10px,3.2cqw,32px);border-radius:clamp(14px,2.4cqw,24px);background:var(--tb-paper);border:2px solid var(--tb-line);box-shadow:0 8px 24px #2a1d1030}
.poem-tone-branch .tb-how-title{grid-area:title;margin:0;font-size:clamp(17px,3.6cqw,32px);font-weight:800;line-height:1.2;letter-spacing:.06em;color:var(--tb-ink)}
.poem-tone-branch .tb-how-steps{grid-area:steps;display:grid;gap:clamp(2px,1.2cqw,12px);margin:0;padding:0;list-style:none;counter-reset:tbhow}
.poem-tone-branch .tb-how-steps li{display:flex;align-items:center;gap:.35em;font-size:clamp(14px,2.9cqw,25px);font-weight:700;line-height:1.25;white-space:nowrap;counter-increment:tbhow}
.poem-tone-branch .tb-how-no{display:grid;place-items:center;flex:none;width:1.3em;height:1.3em;border-radius:50%;background:var(--tb-accent);color:#fff;font-size:.8em;font-weight:800;line-height:1}
.poem-tone-branch .tb-how-no::before{content:counter(tbhow)}
.poem-tone-branch .tb-how-icon{width:1.35em;height:1.35em;color:#8a4f24}
.poem-tone-branch .tb-how-go{grid-area:go;align-self:center;min-width:max(64px,12cqw);min-height:max(48px,9cqw);padding:.3em .8em;border:0;border-radius:18px;background:var(--tb-accent);color:#fff!important;box-shadow:0 4px 0 #9a4a5a;font-size:clamp(19px,3.6cqw,30px);font-weight:800;line-height:1.2;white-space:nowrap;cursor:pointer}
.poem-tone-branch .tb-how-go:focus-visible{outline:3px solid var(--tb-ink);outline-offset:3px}
/* The demo finger (its tip is the point it shows), over everything, never in the way. */
.poem-tone-branch .tb-finger{position:absolute;left:0;top:0;z-index:30;width:48px;height:52px;pointer-events:none;transform-origin:18px 4px;filter:drop-shadow(0 3px 4px #2a1d1059)}
.poem-tone-branch .tb-finger svg{display:block;width:48px;height:52px}
.poem-tone-branch .tb-ghost.is-demo{pointer-events:none;opacity:.75}
/* The bird is a listen button: a small speaker on its character. */
.poem-tone-branch .tb-carrier-glyph{display:block}
.poem-tone-branch .tb-carrier-ear{position:absolute;right:-.42em;bottom:-.42em;display:grid;place-items:center;width:max(24px,3.4cqw);height:max(24px,3.4cqw);border-radius:50%;background:var(--tb-accent);color:#fff;box-shadow:0 2px 4px #2a1d1040;font-style:normal}
.poem-tone-branch .tb-carrier-ear svg{width:62%;height:62%}
/* Demo "pick a branch", and after two misses the bird and the right branch stay lit. */
.poem-tone-branch .tb-target.is-call .tb-tag{border-color:var(--tb-accent);background:var(--tb-accent-soft)}
.poem-tone-branch .tb-target.is-lit .tb-tag{border-color:var(--tb-accent);background:var(--tb-accent-soft);box-shadow:0 0 0 4px #f4c27a99,0 2px 6px #2a1d1033}
.poem-tone-branch .tb-target.is-lit .tb-target-art{filter:drop-shadow(0 0 10px #ffd27a) drop-shadow(0 0 4px #ffe8b0)}
.poem-tone-branch .tb-carrier.is-lit .tb-carrier-char{box-shadow:0 0 0 5px #f4c27a99,0 3px 8px #2a1d1040}
@media (orientation:landscape) and (max-height:500px){
 .poem-tone-branch .tb-howbtn{font-size:15px;padding:4px 10px}
}

/* 2026-11-02 Side panel uses the picture's full height: task and chip on top, the card and verse in the middle,
   buttons at the bottom; bigger type. The whole game is centred in the play area. */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-tone-branch{max-width:1280px;height:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
 .poem-tone-branch .tb-layout{grid-column:1/-1;width:100%;height:auto;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;row-gap:14px;column-gap:24px}
 .poem-tone-branch .tb-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-tone-branch .tb-head{align-self:start;flex-wrap:wrap;align-items:center;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid var(--tb-line)}
 .poem-tone-branch .tb-task{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-tone-branch .tb-chip{order:2;font-size:19px}
 .poem-tone-branch .tb-howbtn{order:3;margin-left:auto}
 .poem-tone-branch .tb-side{align-self:stretch;display:flex;flex-direction:column;gap:16px}
 .poem-tone-branch .tb-card{min-height:118px;padding:14px 18px}
 .poem-tone-branch .tb-card-char{font-size:clamp(52px,6vw,72px)}
 .poem-tone-branch .tb-card-pinyin{font-size:28px}
 .poem-tone-branch .tb-card-note{font-size:21px}
 .poem-tone-branch .tb-verse{justify-content:center;padding:14px 16px}
 .poem-tone-branch .tb-verse-text{font-size:clamp(26px,2.9vw,34px)}
 .poem-tone-branch .tb-verse-play{min-height:52px;font-size:19px}
 .poem-tone-branch .tb-feedback{order:5;min-height:0;font-size:21px}
 .poem-tone-branch .tb-actions{order:9}
 .poem-tone-branch .tb-side::before,.poem-tone-branch .tb-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-tone-branch .tb-side::before{order:-1}.poem-tone-branch .tb-side::after{order:8}
 .poem-tone-branch .tb-actions button{min-height:62px;font-size:23px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-tone-branch .tb-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);row-gap:6px;column-gap:14px}
 .poem-tone-branch .tb-stage{width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-tone-branch .tb-head{padding-bottom:5px;gap:4px 8px}
 .poem-tone-branch .tb-task{font-size:18px;line-height:1.3}
 .poem-tone-branch .tb-chip{font-size:15px;padding:2px 10px}
 .poem-tone-branch .tb-side{gap:6px}
 .poem-tone-branch .tb-card{min-height:0;padding:5px 10px}
 .poem-tone-branch .tb-card-char{font-size:38px}
 .poem-tone-branch .tb-card-pinyin{font-size:18px}
 .poem-tone-branch .tb-card-note{font-size:15px}
 .poem-tone-branch .tb-verse{padding:4px 8px}.poem-tone-branch .tb-verse-text{font-size:19px}.poem-tone-branch .tb-verse-play{min-height:40px;font-size:15px}
 .poem-tone-branch .tb-feedback{font-size:15px}
 .poem-tone-branch .tb-actions button{min-height:36px;padding:2px 12px;font-size:16px}
 .poem-tone-branch .tb-head{flex-wrap:nowrap;padding-bottom:3px;border-bottom:0}
 .poem-tone-branch .tb-task{flex:1 1 auto;font-size:16px;line-height:1.25}
 .poem-tone-branch .tb-howbtn{min-height:32px;padding:2px 10px;font-size:14px}
 .poem-tone-branch .tb-side{gap:3px}
 .poem-tone-branch .tb-card{padding:0 10px}
 .poem-tone-branch .tb-card-char{font-size:30px;line-height:1.1}
 .poem-tone-branch .tb-verse{padding:2px 8px}.poem-tone-branch .tb-verse-text{font-size:17px}.poem-tone-branch .tb-verse-play{min-height:30px;padding:1px 10px;font-size:14px}
 .poem-tone-branch .tb-feedback{font-size:14px;line-height:1.3}
}

/* poem-games/rice-sweat.css */
/* poem-games/rice-sweat.css：《憫農（其二）》「一滴汗，一粒米」（rice-sweat.mjs）。所有選擇器都以 .poem-rice-sweat 開頭。 */
.poem-rice-sweat{--rs-ink:#3d3426;--rs-accent:#b9782f;display:block;width:100%;max-width:880px;margin-inline:auto;color:var(--rs-ink);font-family:var(--sans);min-width:0}
.poem-rice-sweat *{box-sizing:border-box}
.poem-rice-sweat [hidden]{display:none!important}
.poem-rice-sweat button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-rice-sweat button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-rice-sweat img{max-width:none;-webkit-user-drag:none}
.poem-rice-sweat .rs-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:10px;align-content:center}
.poem-rice-sweat .rs-head{grid-area:head;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;min-width:0}
.poem-rice-sweat .rs-instruction{flex:1 1 11em;min-width:0;margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-rice-sweat .rs-how-btn{flex:none;min-height:44px;padding:6px 14px;border:1px solid #c7ad83;border-radius:22px;background:#fffefa;color:#7a4b1d;font-size:17px;font-weight:600;cursor:pointer}
.poem-rice-sweat .rs-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#f4ead6;color:#80551f;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}

/* 舞台：16:9，所有疊加物用 % 座標；cqi = 舞台寬的 1%。 */
.poem-rice-sweat .rs-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;overflow:hidden;overflow:clip;border-radius:20px;background:#ece3cf;border:1px solid #d9cfb7;box-shadow:0 6px 20px #4a39201a;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-rice-sweat .rs-cam{position:absolute;inset:0}
.poem-rice-sweat .rs-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0;transition:opacity .7s ease,transform 1.4s cubic-bezier(.45,.05,.25,1);transform-origin:var(--ox,50%) var(--oy,50%)}
.poem-rice-sweat .rs-scene.is-on{opacity:1}
/* 第一步 → 第二步：鏡頭推到農夫臉上，再換成臉部特寫。 */
.poem-rice-sweat .rs-scene.is-zoom{transform:scale(2.4)}
.poem-rice-sweat .rs-layer{position:absolute;inset:0;z-index:2;pointer-events:none}
.poem-rice-sweat .rs-layer button{pointer-events:auto}
.poem-rice-sweat.is-moving .rs-layer{opacity:0;transition:opacity .25s}

/* 第一步：太陽、鋤頭、塵土 */
.poem-rice-sweat .rs-sun{position:absolute;left:75%;top:3%;width:16cqi;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#fffbe8f0 0 22%,#ffe9a666 38%,#ffe2a000 68%);opacity:.5;transition:opacity 1s,transform 1s}
.poem-rice-sweat.is-noon .rs-sun{opacity:1;transform:translate(-50%,-50%) scale(1.5);animation:rs-glow 2.4s ease-in-out infinite}
.poem-rice-sweat .rs-hoe{position:absolute;left:var(--x);top:var(--y);width:max(56px,var(--w));aspect-ratio:1;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent;cursor:pointer}
.poem-rice-sweat .rs-hoe::after{content:"";position:absolute;left:62%;top:58%;width:46%;aspect-ratio:1;transform:translate(-50%,-50%);border:3px solid #fff6dcd9;border-radius:50%;box-shadow:0 0 0 4px #c2873a55;animation:rs-ring 1.8s ease-out infinite}
.poem-rice-sweat .rs-hoe:disabled::after{animation:none;opacity:0}
.poem-rice-sweat .rs-dust{position:absolute;left:var(--fx,63%);top:calc(var(--fy,90%) - 2%);width:12cqi;aspect-ratio:2;transform:translate(-50%,-50%) scale(.3);border-radius:50%;opacity:0;pointer-events:none;background:radial-gradient(ellipse at 30% 60%,#a98656cc 0 18%,#a9865600 40%),radial-gradient(ellipse at 70% 50%,#8f6d41b3 0 16%,#8f6d4100 38%),radial-gradient(ellipse at 50% 40%,#c7aa7ca6 0 22%,#c7aa7c00 50%)}
.poem-rice-sweat .rs-dust.is-on{animation:rs-dust .8s ease-out}
.poem-rice-sweat.is-swing [data-rs-scene="0"].is-on{animation:rs-nudge .35s ease-out}
/* 每鋤一下：白色揮動線劈下去、土塊飛起來；翻開的土一直留在地上；右邊小牌子數 1/3 2/3 3/3。 */
.poem-rice-sweat .rs-furrow{position:absolute;left:var(--x);top:var(--y);width:12cqi;transform:translate(-50%,-50%) rotate(var(--r));pointer-events:none;opacity:0}
.poem-rice-sweat .rs-furrow svg{display:block;width:100%;height:auto;filter:drop-shadow(0 .15cqi .2cqi #2b1d0c66)}
.poem-rice-sweat .rs-furrow.is-on{opacity:1;animation:rs-furrow .45s .12s cubic-bezier(.3,1.4,.5,1) both}
.poem-rice-sweat .rs-swish{position:absolute;left:var(--fx,62%);top:var(--fy,90%);width:10cqi;aspect-ratio:1;transform:translate(-40%,-92%);pointer-events:none;opacity:0}
.poem-rice-sweat .rs-swish svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 .3cqi #6b4a2299)}
.poem-rice-sweat .rs-swish path{stroke-dasharray:100;stroke-dashoffset:100}
.poem-rice-sweat .rs-swish.is-on{animation:rs-swish-o .5s ease-out}
.poem-rice-sweat .rs-swish.is-on path{animation:rs-swish .22s ease-in forwards}
.poem-rice-sweat .rs-clods{position:absolute;left:var(--fx,62%);top:var(--fy,90%);width:0;height:0;pointer-events:none}
.poem-rice-sweat .rs-clods i{position:absolute;left:0;top:0;width:max(7px,1.1cqi);aspect-ratio:1.3;border-radius:45% 55% 40% 60%;background:#6e4c2a;box-shadow:inset -.2cqi -.2cqi 0 #4a3118;opacity:0}
.poem-rice-sweat .rs-clods i:nth-child(odd){background:#8a6640;width:max(5px,.8cqi)}
.poem-rice-sweat .rs-clods.is-on i{animation:rs-clod .7s var(--d) cubic-bezier(.2,.6,.4,1) both}
.poem-rice-sweat .rs-sweat{position:absolute;left:52%;top:24%;width:max(12px,1.6cqi);pointer-events:none;opacity:0;transition:opacity .4s}
.poem-rice-sweat .rs-sweat img{display:block;width:100%;height:auto;filter:drop-shadow(0 0 .3cqi #fffef5)}
.poem-rice-sweat.is-sweaty .rs-sweat{opacity:1;animation:rs-sweat 1.6s ease-in infinite}
.poem-rice-sweat .rs-meter{position:absolute;left:80%;top:72%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:max(4px,.6cqi);padding:max(4px,.5cqi) max(8px,1cqi);border-radius:999px;background:#fffaf0e6;border:2px solid #c7ad83;box-shadow:0 2px 6px #3a29163d;pointer-events:none}
.poem-rice-sweat .rs-meter i{width:max(12px,1.6cqi);aspect-ratio:1;border-radius:50%;border:2px solid #a9865a;background:#fffaf0;transition:background .2s,transform .2s}
.poem-rice-sweat .rs-meter i.is-on{background:#6e4c2a;border-color:#6e4c2a;animation:rs-pop .35s cubic-bezier(.3,1.6,.5,1)}
.poem-rice-sweat .rs-meter b{min-width:2.2em;font-size:max(16px,1.9cqi);line-height:1.1;color:#6b4a22;text-align:center;font-variant-numeric:tabular-nums}

/* 第二步：汗珠（可點、可往下拖）→ 沿臉頰滑到下巴 → 滴進泥土濺起 */
.poem-rice-sweat .rs-drop{position:absolute;left:var(--x);top:var(--y);z-index:3;width:max(48px,6cqi);min-height:48px;aspect-ratio:137/220;transform:translate(-50%,-50%);padding:0;border:0;background:transparent;touch-action:none;cursor:pointer}
.poem-rice-sweat .rs-drop img{width:max(26px,4.4cqi);height:auto;display:block;margin:auto;pointer-events:none;filter:drop-shadow(0 0 .6cqi #fffef5) drop-shadow(0 .3cqi .4cqi #3d2a1555);animation:rs-shine 1.6s ease-in-out infinite}
.poem-rice-sweat .rs-drop:disabled img{animation:none}
.poem-rice-sweat .rs-drop.is-gone{opacity:0;visibility:hidden}
.poem-rice-sweat .rs-drop.is-falling{animation:rs-fall 1.5s cubic-bezier(.5,0,.75,.5) forwards;z-index:4}
.poem-rice-sweat .rs-wet{position:absolute;left:43%;top:91%;width:14cqi;aspect-ratio:3;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#3b2a1acc 0 30%,#3b2a1a00 70%);opacity:calc(var(--n,0) * .3)}
.poem-rice-sweat .rs-splash{position:absolute;left:43%;top:90%;width:12cqi;aspect-ratio:2;transform:translate(-50%,-50%) scale(.2);border:.5cqi solid #eaf6ffe6;border-radius:50%;opacity:0;pointer-events:none}
.poem-rice-sweat .rs-splash.is-on{animation:rs-splash .7s ease-out}

/* 第三步：米粒寶寶和兩個碗（碗上寫清楚：翹舌 zh ch sh／平舌 z c s） */
.poem-rice-sweat .rs-bowl{position:absolute;left:var(--x);top:var(--y);width:20cqi;min-width:76px;aspect-ratio:420/294;transform:translate(-50%,-50%);padding:0;border:0;border-radius:40% 40% 48% 48%;background:transparent;cursor:pointer;transition:transform .2s}
.poem-rice-sweat .rs-bowl>img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 .6cqi .6cqi #3a291633)}
.poem-rice-sweat .rs-bowl.is-cue,.poem-rice-sweat .rs-bowl.is-over{transform:translate(-50%,-50%) scale(1.08)}
.poem-rice-sweat .rs-bowl.is-cue>img,.poem-rice-sweat .rs-bowl.is-over>img{filter:drop-shadow(0 0 1.2cqi #ffe9a8) drop-shadow(0 .6cqi .6cqi #3a291633)}
/* 碗裏的米堆（SVG）：底部的碗口中線對準碗口（--k＝碗口中線在 SVG 高度的位置）；放對一粒就高一點。 */
.poem-rice-sweat .rs-heap{position:absolute;left:1%;top:13%;width:98%;transform:translateY(calc(var(--k) * -100%));pointer-events:none;z-index:1}
.poem-rice-sweat .rs-heap svg{display:block;width:100%;height:auto;transform-origin:50% 85%;filter:drop-shadow(0 .2cqi .2cqi #6b4a2233)}
.poem-rice-sweat .rs-heap.is-settle svg{animation:rs-settle .55s .3s cubic-bezier(.3,1.5,.5,1) both}
.poem-rice-sweat .rs-heap4{left:var(--x);top:var(--y);width:var(--w);transform:translate(-50%,calc(var(--k) * -100%));z-index:1}
.poem-rice-sweat .rs-heap4.is-settle svg{animation-delay:.55s}
.poem-rice-sweat .rs-fly{position:absolute;left:0;top:0;z-index:6;height:max(40px,8cqi);width:auto;pointer-events:none}
.poem-rice-sweat .rs-chip{position:absolute;left:50%;bottom:4%;z-index:2;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;padding:.05em .5em .1em;border-radius:.6em;background:#fffaf0eb;font-size:max(18px,2.2cqi);font-weight:700;line-height:1.15;white-space:nowrap;pointer-events:none}
.poem-rice-sweat .rs-chip small{font-size:max(14px,.72em);font-weight:600;font-family:system-ui,sans-serif;letter-spacing:.02em}
.poem-rice-sweat [data-rs-bowl="qiao"] .rs-chip{color:#28508a;border:2px solid #7d9ccb}
.poem-rice-sweat [data-rs-bowl="ping"] .rs-chip{color:#7a4b1d;border:2px solid #c09a6b}
.poem-rice-sweat .rs-grain{position:absolute;left:var(--x);top:var(--y);z-index:4;width:max(52px,8cqi);height:max(96px,17cqi);transform:translate(-50%,-50%);padding:0;border:0;border-radius:2cqi;background:transparent;touch-action:none;cursor:grab;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.poem-rice-sweat .rs-grain img{height:58%;width:auto;pointer-events:none;filter:drop-shadow(0 .4cqi .5cqi #4a361e55)}
.poem-rice-sweat .rs-grain .rs-tag{margin-top:-1%;padding:.05em .35em .1em;border-radius:.5em;background:#fffdf5;border:2px solid #d4b07a;font-size:max(18px,2.3cqi);line-height:1.2;font-weight:600;white-space:nowrap;pointer-events:none}
.poem-rice-sweat .rs-grain.is-glow img{filter:drop-shadow(0 0 1cqi #ffd36b) drop-shadow(0 0 .5cqi #ffb52e)}
.poem-rice-sweat .rs-grain.is-glow .rs-tag{border-color:#e39a1d;box-shadow:0 0 0 3px #ffd36b99}
/* 小喇叭：只有點它才唸米粒上的字。 */
.poem-rice-sweat .rs-say{position:absolute;left:calc(var(--x) + max(34px,5.6cqi) + 6px);top:calc(var(--y) - max(26px,5cqi));z-index:5;width:44px;height:44px;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:2px solid #7d9ccb;border-radius:50%;background:#fffdf5;box-shadow:0 2px 6px #3a29163d;cursor:pointer}
.poem-rice-sweat .rs-say svg{width:24px;height:24px}
.poem-rice-sweat .rs-say:disabled{opacity:.6;cursor:default}
.poem-rice-sweat .rs-grain[aria-pressed="true"] img{filter:drop-shadow(0 0 .9cqi #ffd36b) drop-shadow(0 0 .4cqi #ffd36b)}
.poem-rice-sweat .rs-grain.is-source{opacity:.35}
.poem-rice-sweat .rs-grain.is-hop{animation:rs-hop .7s cubic-bezier(.3,1.4,.5,1)}
.poem-rice-sweat .rs-grain.is-no{animation:rs-no .5s ease-in-out}
.poem-rice-sweat .rs-ghost{position:fixed;z-index:50;transform:translate(-50%,-60%);pointer-events:none;display:flex;flex-direction:column;align-items:center}
.poem-rice-sweat .rs-ghost img{height:100%;width:auto;filter:drop-shadow(0 4px 6px #0004)}
.poem-rice-sweat .rs-ghost b{margin-top:-6px;padding:0 4px;border-radius:6px;background:#fffdf5;border:2px solid #d4b07a;font-size:19px}

/* 第四步：桌上掉下的米粒 → 飯碗 */
.poem-rice-sweat .rs-bowl4{position:absolute;left:var(--x);top:var(--y);width:var(--w);min-width:56px;min-height:44px;aspect-ratio:1.6;transform:translate(-50%,-50%);border:3px dashed #fff6dc00;border-radius:50%;background:transparent;cursor:pointer}
.poem-rice-sweat .rs-bowl4.is-cue,.poem-rice-sweat .rs-bowl4.is-over{border-color:#fff6dce6;background:#fff3c133}
.poem-rice-sweat .rs-spill{position:absolute;left:var(--x);top:var(--y);z-index:3;width:max(48px,6cqi);aspect-ratio:1;transform:translate(-50%,-50%);padding:0;border:0;border-radius:50%;background:radial-gradient(circle,#fff8e055 0 40%,#fff8e000 70%);touch-action:none;cursor:grab;transition:left .6s ease-in,top .6s cubic-bezier(.2,-.6,.6,1),opacity .4s .4s}
.poem-rice-sweat .rs-spill img{height:min(100%,7cqi);width:auto;transform:rotate(var(--r));pointer-events:none;filter:drop-shadow(0 .3cqi .3cqi #4a361e66)}
.poem-rice-sweat .rs-spill[aria-pressed="true"]{background:radial-gradient(circle,#ffe19acc 0 45%,#ffe19a00 72%)}
.poem-rice-sweat .rs-spill.is-source{opacity:.35}
.poem-rice-sweat .rs-spill.is-in{left:40.3%!important;top:69%!important;opacity:0;visibility:hidden;transition:left .6s ease-in,top .6s cubic-bezier(.2,-.6,.6,1),opacity .3s .5s,visibility 0s .8s}
.poem-rice-sweat.is-hint[data-step="3"] .rs-spill:not(:disabled),.poem-rice-sweat.is-hint[data-step="1"] .rs-drop:not(:disabled){animation:rs-pulse 1s ease-in-out 3}
.poem-rice-sweat.is-hint[data-step="0"] .rs-hoe::after{border-color:#fff;box-shadow:0 0 0 7px #e0a13f99}
/* 錯兩次：亮出正確的東西和放的地方。 */
.poem-rice-sweat .rs-bowl.is-glow>img{filter:drop-shadow(0 0 1.4cqi #ffcf55) drop-shadow(0 0 .6cqi #ffb52e)}
.poem-rice-sweat .rs-bowl.is-glow,.poem-rice-sweat .rs-spill.is-glow{animation:rs-pulse 1.4s ease-in-out infinite}
.poem-rice-sweat .rs-spill.is-glow{background:radial-gradient(circle,#ffd66bcc 0 45%,#ffd66b00 72%)}
.poem-rice-sweat .rs-bowl4.is-glow{border-color:#ffd66b;background:#fff3c14d;box-shadow:0 0 0 4px #ffcf5577}

/* 示範手指：位置由程式量出真正按鈕的中心（指尖在 15px,3px）。 */
.poem-rice-sweat .rs-finger{position:absolute;left:0;top:0;z-index:8;width:44px;height:44px;opacity:0;pointer-events:none;transform-origin:15px 3px;filter:drop-shadow(0 3px 4px #2b1d0c66)}
.poem-rice-sweat .rs-finger.is-on{opacity:1}
.poem-rice-sweat .rs-finger svg{position:relative;z-index:1;width:100%;height:100%;display:block}
.poem-rice-sweat .rs-finger img{position:absolute;left:-2px;top:-30px;height:34px;width:auto;opacity:0}
.poem-rice-sweat .rs-finger.is-carry img{opacity:.9}

/* 「怎麼玩」卡片：蓋在舞台上，按「開始」才可以玩。 */
.poem-rice-sweat.is-card .rs-layer,.poem-rice-sweat.is-card .rs-loading{visibility:hidden}
.poem-rice-sweat .rs-how{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:2%;background:#3a2b1652}
.poem-rice-sweat .rs-how-card{display:grid;grid-template-areas:"t" "s" "go";justify-items:center;gap:clamp(6px,1.6cqi,16px);max-width:100%;max-height:100%;padding:clamp(8px,2.4cqi,26px) clamp(10px,3.4cqi,36px);border-radius:clamp(12px,2cqi,22px);background:#fffaf0f7;border:2px solid #e2c48e;box-shadow:0 8px 24px #2b1d0c40;font-size:clamp(14px,2.7cqi,24px)}
.poem-rice-sweat .rs-how-title{grid-area:t;margin:0;font-size:1.2em;font-weight:700;line-height:1.2;color:#7a4b1d}
.poem-rice-sweat .rs-how-steps{grid-area:s;margin:0;padding:0;list-style:none;display:grid;gap:.4em}
.poem-rice-sweat .rs-how-steps li{display:flex;align-items:center;gap:.35em;line-height:1.3;white-space:nowrap;font-weight:600}
.poem-rice-sweat .rs-how-n{flex:none;display:grid;place-items:center;width:1.35em;height:1.35em;border-radius:50%;background:#b9782f;color:#fff;font-size:.8em;line-height:1;font-weight:700}
.poem-rice-sweat .rs-how-steps svg{flex:none;width:1.5em;height:1.5em}
.poem-rice-sweat .rs-how-go{grid-area:go;min-height:48px;min-width:4.6em;padding:6px 26px;border:0;border-radius:24px;background:#7a5a2c;color:#fffaf0;font-size:max(19px,1em);font-weight:700;cursor:pointer;box-shadow:0 3px 0 #523b1a}
@container (max-width:560px){
 .poem-rice-sweat .rs-how-card{grid-template-areas:"t go" "s go";grid-template-columns:auto auto;align-items:center;column-gap:12px;row-gap:6px}
 .poem-rice-sweat .rs-how-title,.poem-rice-sweat .rs-how-steps{justify-self:start}
 .poem-rice-sweat .rs-how-go{padding:6px 14px;min-width:0}
}

/* 側欄 */
.poem-rice-sweat .rs-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-rice-sweat .rs-verse{margin:0;padding:6px 10px 8px;border-radius:14px;background:#fbf5e8;border:1px solid #ecdcbc;font-size:clamp(24px,3vw,30px);text-align:center;letter-spacing:.06em;line-height:1.2}
.poem-rice-sweat .rs-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.poem-rice-sweat .rs-act,.poem-rice-sweat .rs-listen,.poem-rice-sweat .rs-loading button{min-height:48px;padding:8px 18px;border:1px solid #c7ad83;border-radius:14px;background:#fffefa;font-size:19px;font-weight:600;cursor:pointer}
.poem-rice-sweat .rs-act{background:#7a5a2c;border-color:#7a5a2c;color:#fffaf0}
.poem-rice-sweat .rs-act:disabled{opacity:.5;cursor:default}
.poem-rice-sweat .rs-way{margin:0;font-size:17px;line-height:1.4;color:#76674d;text-align:center}
.poem-rice-sweat .rs-way:empty{display:none}
.poem-rice-sweat .rs-summary{padding:10px 14px;border-radius:14px;background:#f8efdc;border:1px solid #e7d3ac}
.poem-rice-sweat .rs-summary b{font-size:22px;color:#8a4f24}
.poem-rice-sweat .rs-summary p{margin:4px 0 6px;font-size:19px;line-height:1.5}
.poem-rice-sweat .rs-summary ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;column-gap:10px;font-size:19px;line-height:1.5;text-align:center;letter-spacing:.06em}
.poem-rice-sweat.is-done .rs-verse{display:none}
.poem-rice-sweat .rs-feedback{margin:0;min-height:1.5em;font-size:18px;line-height:1.5}
.poem-rice-sweat .rs-loading{position:absolute;inset:0;z-index:9;display:grid;place-content:center;gap:10px;background:#f7f3e9e6;font-size:19px;text-align:center}

/* 橫屏：左畫右文。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-rice-sweat{max-width:1280px}
 .poem-rice-sweat .rs-layout{grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;align-items:center}
 .poem-rice-sweat .rs-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
}

@keyframes rs-glow{50%{transform:translate(-50%,-50%) scale(1.62)}}
@keyframes rs-ring{0%{transform:translate(-50%,-50%) scale(.7);opacity:1}100%{transform:translate(-50%,-50%) scale(1.3);opacity:0}}
@keyframes rs-dust{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}25%{opacity:1}100%{opacity:0;transform:translate(-50%,-80%) scale(1.3)}}
@keyframes rs-nudge{30%{transform:translateY(.9%)}60%{transform:translateY(-.2%)}}
@keyframes rs-furrow{0%{transform:translate(-50%,-50%) rotate(var(--r)) scale(.2,.4)}100%{transform:translate(-50%,-50%) rotate(var(--r))}}
@keyframes rs-swish-o{0%,60%{opacity:1}100%{opacity:0}}
@keyframes rs-swish{to{stroke-dashoffset:0}}
@keyframes rs-clod{0%{opacity:1;transform:translate(-50%,-50%)}55%{opacity:1;transform:translate(calc(-50% + var(--dx) * .7),calc(-50% + var(--dy)))}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy) * .3)) rotate(90deg)}}
@keyframes rs-sweat{0%{transform:translateY(0);opacity:0}20%{opacity:1}80%{opacity:1}100%{transform:translateY(160%);opacity:0}}
@keyframes rs-pop{50%{transform:scale(1.35)}}
@keyframes rs-shine{50%{filter:drop-shadow(0 0 1.2cqi #fffef5) drop-shadow(0 0 .5cqi #fff) drop-shadow(0 .3cqi .4cqi #3d2a1555);transform:scale(1.08)}}
@keyframes rs-fall{0%{left:var(--x);top:var(--y)}55%{left:var(--cx);top:var(--cy)}68%{left:var(--cx);top:var(--cy)}100%{left:var(--sx);top:var(--sy);transform:translate(-50%,-50%) scale(.6)}}
@keyframes rs-splash{0%{opacity:1;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.4)}}
@keyframes rs-hop{0%{transform:translate(-50%,20%) scale(.6);opacity:0}60%{transform:translate(-50%,-62%) scale(1.05);opacity:1}100%{transform:translate(-50%,-50%)}}
@keyframes rs-no{20%{transform:translate(-62%,-50%) rotate(-8deg)}40%{transform:translate(-38%,-50%) rotate(8deg)}60%{transform:translate(-58%,-50%) rotate(-5deg)}80%{transform:translate(-44%,-50%) rotate(4deg)}}
@keyframes rs-settle{0%{transform:translateY(-6%) scaleY(.8)}60%{transform:scaleY(1.06)}100%{transform:none}}
@keyframes rs-pulse{50%{transform:translate(-50%,-50%) scale(1.18)}}

.poem-rice-sweat.is-reduced *{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.poem-rice-sweat *{transition:none!important;animation:none!important}}

/* 2026-11-02 橫屏側欄用滿畫面高度：上面是任務，中間是詩句和說明，按鈕在最下面；字和按鈕放大。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-rice-sweat{max-width:1280px;height:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
 .poem-rice-sweat .rs-layout{grid-column:1/-1;width:100%;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;row-gap:14px;column-gap:24px}
 .poem-rice-sweat .rs-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-rice-sweat .rs-head{align-self:start;justify-content:flex-start;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid #e2d4b6}
 .poem-rice-sweat .rs-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-rice-sweat .rs-progress{font-size:19px}
 .poem-rice-sweat .rs-how-btn{margin-left:auto}
 .poem-rice-sweat .rs-side{align-self:stretch;gap:16px}
 .poem-rice-sweat .rs-side::before,.poem-rice-sweat .rs-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-rice-sweat .rs-side::before{order:-1}.poem-rice-sweat .rs-side::after{order:8}
 .poem-rice-sweat .rs-verse{padding:12px 14px;font-size:clamp(30px,3.2vw,38px)}
 .poem-rice-sweat .rs-way{font-size:21px;line-height:1.45}
 .poem-rice-sweat .rs-feedback{min-height:0;font-size:21px;text-align:center}
 .poem-rice-sweat .rs-summary b{font-size:25px}
 .poem-rice-sweat .rs-summary p,.poem-rice-sweat .rs-summary ol{font-size:20px}
 .poem-rice-sweat .rs-actions{order:9;flex-wrap:nowrap}
 .poem-rice-sweat .rs-act,.poem-rice-sweat .rs-listen{flex:1 1 0;min-height:62px;font-size:23px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-rice-sweat .rs-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);row-gap:4px;column-gap:14px}
 .poem-rice-sweat .rs-stage{border-radius:14px}
 .poem-rice-sweat .rs-head{flex-wrap:nowrap;padding-bottom:3px;border-bottom:0;gap:6px}
 .poem-rice-sweat .rs-instruction{flex:1 1 auto;font-size:16px;line-height:1.25}
 .poem-rice-sweat .rs-progress{min-width:0;padding:2px 8px;font-size:14px}
 .poem-rice-sweat .rs-how-btn{min-height:32px;padding:2px 10px;font-size:14px}
 .poem-rice-sweat .rs-side{gap:3px}
 .poem-rice-sweat .rs-verse{padding:2px 8px;font-size:19px}
 .poem-rice-sweat .rs-way,.poem-rice-sweat .rs-feedback{font-size:14px;line-height:1.3}
 .poem-rice-sweat .rs-summary{padding:3px 8px}
 .poem-rice-sweat .rs-summary b{font-size:16px}
 .poem-rice-sweat .rs-summary p{margin:1px 0;font-size:14px;line-height:1.3}
 .poem-rice-sweat .rs-summary ol{font-size:14px;line-height:1.3}
 .poem-rice-sweat .rs-act,.poem-rice-sweat .rs-listen{min-height:36px;padding:2px 10px;font-size:16px}
}

/* poem-games/spring-pond.css */
.poem-spring-pond{--sp-ink:#28473a;--sp-soft:#5b7264;--sp-paper:#fffdf7;--sp-line:#dcd8c8;--sp-gold:#e3a548;--sp-water:#5f9fb0;--k:1;--f:0;--rise:0;display:block;width:100%;max-width:900px;margin-inline:auto;align-self:start;align-self:safe center;color:var(--sp-ink);font-family:var(--sans);min-width:0}
.poem-spring-pond *{box-sizing:border-box}
.poem-spring-pond [hidden]{display:none!important}
.poem-spring-pond button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-spring-pond button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-spring-pond button:disabled{opacity:1}
.poem-spring-pond .sp-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-spring-pond .sp-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-spring-pond .sp-instruction{flex:1 1 auto;min-width:0;margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:pretty}
.poem-spring-pond .sp-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#e6f0ec;color:#2f5f55;font-size:19px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-spring-pond.is-done .sp-progress{background:#f6e5c8;color:#8a4f24}
.poem-spring-pond .sp-help{flex:none;min-height:44px;padding:4px 12px;border:1.5px solid #b2c9c0;border-radius:999px;background:#fffef7;color:#2f5f55;font-size:17px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer}

/* Stage: the four paintings stay 16:9; every overlay sits in % of the painting inside the camera box. */
.poem-spring-pond .sp-stage{container-type:inline-size;grid-area:stage;position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#dfe8e0;border:1px solid #cdd8cc;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-spring-pond .sp-cam{position:absolute;inset:0;transform-origin:0 0;transition:transform 1.6s cubic-bezier(.45,.05,.25,1)}
.poem-spring-pond .sp-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;opacity:0;transition:opacity 1.2s ease}
.poem-spring-pond .sp-scene[data-sp-scene="1"],.poem-spring-pond .sp-scene.is-on{opacity:1}
/* While the shade is dragged, its reflection (scene-2) shows through more the nearer it is to the water. */
.poem-spring-pond[data-step="1"] .sp-scene[data-sp-scene="2"]:not(.is-on){opacity:var(--rv,0);transition:opacity .25s linear}
.poem-spring-pond[data-step="3"] .sp-scene[data-sp-scene="4"]{transition:opacity 1.4s ease 1s}
.poem-spring-pond[data-step="2"] .sp-scene[data-sp-scene="3"]{transition:opacity 1.1s ease .5s}

/* Line 1: the dry patch hides the trickle; it is wiped away from the spring downwards as the water flows. */
.poem-spring-pond .sp-dry{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:auto;z-index:1;pointer-events:none;-webkit-user-drag:none;opacity:0;-webkit-mask-image:linear-gradient(to bottom,transparent calc(2% + var(--f) * 60.7%),#000 calc(5% + var(--f) * 60.7%));mask-image:linear-gradient(to bottom,transparent calc(2% + var(--f) * 60.7%),#000 calc(5% + var(--f) * 60.7%));transition:opacity 1.4s ease .4s}
.poem-spring-pond[data-step="0"] .sp-dry{opacity:1}
.poem-spring-pond[data-step="0"].is-step-done .sp-dry{opacity:0}
.poem-spring-pond .sp-anchor{position:absolute;left:var(--x);top:var(--y);z-index:2;width:0;height:0;pointer-events:none}
.poem-spring-pond .sp-anchor[data-mg-target]{width:max(7%,calc(58px / var(--k)));aspect-ratio:1.6;height:auto;transform:translate(-50%,-50%);border-radius:50%;border:2px dashed #ffffffcc;box-shadow:0 0 0 1.5px #2b4a5a55,0 0 14px 4px #ffffff40;opacity:0;transition:opacity .5s ease}
.poem-spring-pond[data-step="0"]:not(.is-step-done) .sp-anchor[data-mg-target]{opacity:1;animation:sp-breathe 2.2s ease-in-out infinite}
/* The droplet leads the water: it always sits on the front of the trickle. */
.poem-spring-pond .sp-drop{position:absolute;left:22.5%;top:36.67%;translate:calc(var(--f) * 3.63cqw) calc(var(--f) * 15.31cqw);z-index:4;display:grid;place-items:center;width:max(4.6%,calc(56px / var(--k)));aspect-ratio:1;transform:translate(-50%,-50%);padding:0;border:2px solid #ffffffd9;border-radius:50%;background:radial-gradient(closest-side,#eaf8ffcc,#bfe4f088 60%,#9fd2e233);box-shadow:0 0 0 2px #2d5a6a44,0 0 18px 6px #e8fbff80;cursor:grab;touch-action:none;transition:translate .18s linear,transform .2s}
.poem-spring-pond .sp-drop svg{width:48%;height:auto;fill:#d9f1f8;stroke:#3d7f95;stroke-width:1.6}
.poem-spring-pond .sp-shine{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round}
.poem-spring-pond .sp-drop::after{content:'';position:absolute;inset:-3px;border-radius:50%;box-shadow:0 0 26px 10px #e8fbffb3;opacity:0;pointer-events:none}
.poem-spring-pond .sp-drop:not(:disabled)::after{animation:sp-glow 2s ease-in-out infinite}
.poem-spring-pond .sp-drop.is-holding{animation:sp-hold .5s ease-in-out infinite alternate;cursor:grabbing}
.poem-spring-pond.is-step-done .sp-drop{opacity:0;transition:opacity .6s ease}
.poem-spring-pond .sp-drop:disabled{cursor:default}

/* Line 2: the shade lifted off the treetop and laid on the water. */
.poem-spring-pond .sp-shade{position:absolute;left:var(--x);top:var(--y);z-index:4;width:var(--w);min-width:calc(84px / var(--k));padding:0;border:0;background:none;transform:translate(-50%,-50%);cursor:grab;touch-action:none;transition:left .9s cubic-bezier(.4,.1,.3,1),top .9s cubic-bezier(.4,.1,.3,1),opacity 1s ease .7s,filter .3s}
.poem-spring-pond .sp-shade img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 0 2px #fffbe8) drop-shadow(0 0 7px #fff6cf) drop-shadow(0 6px 10px #1d3a2a66)}
.poem-spring-pond .sp-shade::before,.poem-spring-pond .sp-fly::before{content:'';position:absolute;inset:-8%;border-radius:50%;border:2.5px dashed #fffaeef0;box-shadow:0 0 0 1.5px #2b4a3a40,0 0 18px 6px #fff4d64d;pointer-events:none;opacity:0;transition:opacity .4s}
.poem-spring-pond .sp-shade:not(:disabled):not(.is-source)::before,.poem-spring-pond .sp-fly:not(:disabled):not(.is-source):not(.is-flying)::before{opacity:1;box-shadow:0 0 0 1.5px #2b4a3a40,0 0 18px 6px #fff4d680;animation:sp-call 1.8s ease-in-out infinite}
.poem-spring-pond .sp-shade:not(:disabled) img{animation:sp-sway 3s ease-in-out infinite}
.poem-spring-pond .sp-shade>span,.poem-spring-pond .sp-target>span{position:absolute;left:50%;top:var(--ly,100%);transform:translate(-50%,-30%);padding:2px 11px;border-radius:999px;background:#fffaf0f0;color:#2d4a3c;font-size:19px;font-weight:650;line-height:1.35;white-space:nowrap;box-shadow:0 2px 6px #2a1d1033;pointer-events:none}
.poem-spring-pond .sp-shade[aria-pressed=true]{filter:drop-shadow(0 0 6px #ffd98a) drop-shadow(0 0 14px #ffe7a8)}
.poem-spring-pond .sp-shade.is-source{opacity:.35}
.poem-spring-pond .sp-shade.is-placed{opacity:0;animation:none;pointer-events:none}
.poem-spring-pond .sp-sun{position:absolute;right:-6%;top:-14%;z-index:1;width:46%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,#fff6d6a6,#fff1c040 55%,transparent);mix-blend-mode:screen;pointer-events:none;opacity:0;transition:opacity 1.6s ease}
.poem-spring-pond[data-step="1"].is-step-done .sp-sun{opacity:1}

/* Drop targets: soft ink rings on the water with a paper label, only when they are useful. */
.poem-spring-pond .sp-target{position:absolute;left:var(--x);top:var(--y);z-index:3;width:var(--w);height:var(--h);min-width:calc(52px / var(--k));min-height:calc(48px / var(--k));transform:translate(-50%,-50%);padding:0;border:2.5px dashed #fffaeef2;border-radius:50%;background:radial-gradient(closest-side,#fff8e42e,#fff8e412 70%,transparent);box-shadow:0 0 0 2px #2b4a5a55,inset 0 0 0 2px #2b4a5a40,0 0 14px 4px #fff4d633;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s,opacity .3s}
.poem-spring-pond .sp-target.is-cue{border-color:#ffe2a4;box-shadow:0 0 0 4px #ffd27a59,0 0 20px 8px #ffd98a4d;animation:sp-cue 1.6s ease-in-out infinite}
.poem-spring-pond .sp-target.is-over,.poem-spring-pond .sp-target:hover:not(:disabled){border-style:solid;border-color:#ffd27a;background:radial-gradient(closest-side,#fff3c94d,#ffe6a01f 70%,transparent);box-shadow:0 0 0 4px #ffcf7366,0 0 22px 8px #ffd98a55}
.poem-spring-pond .sp-target:disabled{cursor:default}
.poem-spring-pond .sp-water{--ly:50%}
.poem-spring-pond .sp-pad{--ly:0%}
.poem-spring-pond .sp-tipspot{--ly:0%;border-radius:46% 46% 40% 40%}
.poem-spring-pond .sp-tipspot>span{transform:translate(-50%,-115%)}
.poem-spring-pond .sp-pad>span{transform:translate(-50%,-115%)}
/* Line 3: the ripple to tap; rings keep spreading so it reads as water. */
.poem-spring-pond .sp-ripple{border-style:solid;border-color:#ffffff66;background:none;overflow:visible}
.poem-spring-pond .sp-ripple i{position:absolute;inset:0;border-radius:50%;border:2px solid #fffdf2d9;opacity:0;animation:sp-ring 2.4s ease-out infinite}
.poem-spring-pond .sp-ripple i+i{animation-delay:1.2s}
.poem-spring-pond .sp-well{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:var(--h);z-index:2;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .8s ease}
.poem-spring-pond[data-step="2"] .sp-well{opacity:1}
.poem-spring-pond[data-step="2"].is-step-done .sp-well{opacity:0;transition:opacity .8s ease 2.2s}
.poem-spring-pond .sp-tip{position:absolute;left:16.67%;bottom:1.3%;width:65.28%;height:auto;-webkit-user-drag:none;transform:translateY(calc((1 - var(--rise)) * 104%));transition:transform 1s cubic-bezier(.3,1.35,.5,1),filter .6s ease}
.poem-spring-pond[data-step="2"].is-step-done .sp-tip{filter:drop-shadow(0 0 5px #fff3b0) drop-shadow(0 0 12px #ffe58ac0)}

/* Line 4: the dragonfly hovers until it is brought to the tip. */
.poem-spring-pond .sp-fly{position:absolute;left:var(--x);top:var(--y);z-index:5;width:var(--w);min-width:calc(70px / var(--k));padding:0;border:0;background:none;transform:translate(-50%,-50%);cursor:grab;touch-action:none}
.poem-spring-pond .sp-fly img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 0 2px #fffbe8) drop-shadow(0 6px 6px #1d3a2a40);transform-origin:50% 50%}
.poem-spring-pond .sp-fly:not(:disabled):not(.is-flying) img{animation:sp-hover 2.6s ease-in-out infinite}
.poem-spring-pond .sp-fly[aria-pressed=true] img{filter:drop-shadow(0 0 6px #ffd98a) drop-shadow(0 0 14px #ffe7a8)}
.poem-spring-pond .sp-fly.is-source{opacity:.35}
.poem-spring-pond .sp-fly.is-flying{transition:left 1.1s cubic-bezier(.45,.1,.3,1),top 1.1s cubic-bezier(.35,-.25,.4,1),width 1.1s ease}
.poem-spring-pond .sp-fly.is-flying img{animation:sp-buzz .12s linear infinite}
.poem-spring-pond .sp-fly.is-landing img{animation:sp-buzz .12s linear 7}
.poem-spring-pond .sp-fly.is-morph{transition:left 1.4s ease,top 1.4s ease,width 1.4s ease,opacity .7s ease 1.2s}
.poem-spring-pond.is-landed .sp-fly{opacity:0}

/* After two misses in a step: the thing to move and where it goes glow gold. */
.poem-spring-pond.is-help[data-step="0"] .sp-drop,.poem-spring-pond.is-help[data-step="0"] .sp-anchor[data-mg-target],.poem-spring-pond.is-help[data-step="1"] .sp-water,.poem-spring-pond.is-help[data-step="2"] .sp-ripple,.poem-spring-pond.is-help[data-step="3"] .sp-tipspot{border:3px solid #ffc75a;box-shadow:0 0 0 5px #ffcf73b3,0 0 30px 12px #ffd98ad9;animation:sp-cue 1.2s ease-in-out infinite}
.poem-spring-pond.is-help[data-step="0"] .sp-anchor[data-mg-target]{opacity:1}
/* The drop already pulses its halo; scaling it too would push both animations off the GPU. */
.poem-spring-pond.is-help[data-step="0"] .sp-drop{animation:none}
.poem-spring-pond.is-help[data-step="1"] .sp-shade::before,.poem-spring-pond.is-help[data-step="3"] .sp-fly::before{border:3px solid #ffc75a;box-shadow:0 0 0 4px #ffcf7399,0 0 26px 10px #ffd98acc}
.poem-spring-pond.is-help[data-step="1"] .sp-shade img,.poem-spring-pond.is-help[data-step="3"] .sp-fly img{filter:drop-shadow(0 0 6px #ffd98a) drop-shadow(0 0 14px #ffe7a8)}

/* Idle demo: a soft fingertip shows the gesture. */
.poem-spring-pond .sp-hand{position:absolute;left:var(--hx0);top:var(--hy0);z-index:6;width:calc(54px / var(--k));aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,#fffffff2 45%,#ffffff99 62%,transparent 64%);box-shadow:0 0 0 calc(2px / var(--k)) #2b4a3a80,0 0 0 calc(6px / var(--k)) #ffffffb3,0 0 0 calc(12px / var(--k)) #ffffff4d,0 4px 12px #1d3a2a66;pointer-events:none;opacity:0}
.poem-spring-pond.is-demo .sp-hand{animation:sp-demo 3.2s ease-in-out both}
.poem-spring-pond[data-step="2"].is-demo .sp-hand{animation:sp-tapdemo 3.2s ease-in-out both}

.poem-spring-pond .sp-fx{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden}
.poem-spring-pond .sp-rings{position:absolute;left:var(--x);top:var(--y);width:12%;aspect-ratio:2.4;transform:translate(-50%,-50%)}
.poem-spring-pond .sp-rings i{position:absolute;inset:0;border-radius:50%;border:2px solid #fffef4e6;opacity:0;animation:sp-ring 1.6s ease-out both}
.poem-spring-pond .sp-rings i:nth-child(2){animation-delay:.25s}
.poem-spring-pond .sp-rings i:nth-child(3){animation-delay:.5s}
.poem-spring-pond .sp-splash{position:absolute;left:var(--x);top:var(--y);width:0;height:0}
.poem-spring-pond .sp-splash i{position:absolute;left:0;top:0;width:max(.9%,5px);aspect-ratio:.75;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:#e6f7fc;box-shadow:0 0 0 1px #3d7f9566;animation:sp-splash .8s ease-out both}
.poem-spring-pond .sp-splash i:nth-child(1){--dx:-260%;--dy:-320%}
.poem-spring-pond .sp-splash i:nth-child(2){--dx:240%;--dy:-360%}
.poem-spring-pond .sp-splash i:nth-child(3){--dx:-420%;--dy:-80%}
.poem-spring-pond .sp-splash i:nth-child(4){--dx:430%;--dy:-120%}
.poem-spring-pond .sp-splash i:nth-child(5){--dx:-120%;--dy:-470%}
.poem-spring-pond .sp-splash i:nth-child(6){--dx:120%;--dy:-200%}

.poem-spring-pond .sp-caption{position:absolute;left:50%;top:5%;z-index:7;margin:0;padding:8px 18px;border-radius:14px;background:#fefbf0e8;color:#2c4d40;font-size:clamp(19px,3.6cqw,30px);font-weight:650;line-height:1.4;letter-spacing:.14em;white-space:nowrap;box-shadow:0 4px 14px #2a1d1026;pointer-events:none;opacity:0;transform:translate(-50%,8px);transition:opacity .5s ease,transform .5s ease}
.poem-spring-pond .sp-caption.is-on{opacity:1;transform:translate(-50%,0)}
.poem-spring-pond .sp-loading{position:absolute;inset:0;z-index:9;display:grid;align-content:center;justify-items:center;gap:14px;padding:20px;background:#f2f5efe8;font-size:20px;line-height:1.5;text-align:center}
.poem-spring-pond .sp-loading button{min-height:48px;padding:10px 22px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-weight:600;font-size:19px;cursor:pointer}
.poem-spring-pond .sp-ghost{position:fixed;left:0;top:0;z-index:80;transform:translate(-50%,-55%) rotate(-4deg);pointer-events:none;filter:drop-shadow(0 8px 10px #2a1d1045)}
.poem-spring-pond .sp-ghost img{display:block;width:100%;height:auto}
.poem-spring-pond .sp-ghost-fly img{animation:sp-buzz .12s linear infinite}

/* 怎麼玩 card over the picture; the hotspots wait underneath until 開始. */
.poem-spring-pond.is-intro .sp-cam button,.poem-spring-pond.is-intro .sp-hand{visibility:hidden}
.poem-spring-pond .sp-howto{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:12px;background:#22392e5c}
.poem-spring-pond .sp-howto-card{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:min(100%,440px);max-height:100%;padding:14px 20px 16px;border-radius:18px;background:#fffdf7;border:1px solid #e3ddcb;box-shadow:0 10px 30px #1d3a2a40;animation:sp-pop .35s ease both}
.poem-spring-pond .sp-howto-title{margin:0;font-size:24px;font-weight:700;line-height:1.3;text-align:center;color:#7b3e22}
.poem-spring-pond .sp-howto-steps{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.poem-spring-pond .sp-howto-steps li{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:600;line-height:1.35}
.poem-spring-pond .sp-howto-n{flex:none;display:grid;place-items:center;width:1.45em;height:1.45em;border-radius:50%;background:#e6f0ec;color:#2f5f55;font-size:.8em}
.poem-spring-pond .sp-howto-steps svg{flex:none;width:30px;height:30px}
.poem-spring-pond .sp-i-f{fill:#f6d58f;stroke:#8a4f24;stroke-width:1.6}
.poem-spring-pond .sp-i-a{fill:none;stroke:#2f5f55;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.poem-spring-pond .sp-i-r{fill:none;stroke:#5f9fb0;stroke-width:1.8}
.poem-spring-pond .sp-howto-go{justify-self:center;min-width:160px;min-height:52px;padding:6px 30px;border:0;border-radius:999px;background:#2f6b57;color:#fff;font-size:22px;font-weight:700;letter-spacing:.2em;line-height:1.2;cursor:pointer;box-shadow:0 4px 12px #1d3a2a40}
.poem-spring-pond .sp-howto-go:hover{background:#285c4a}
/* Small pictures (phones): title and 開始 share the top row, the steps go below in smaller type. */
@container (max-width:529px){
 .poem-spring-pond .sp-howto{padding:8px}
 .poem-spring-pond .sp-howto-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;padding:8px 12px}
 .poem-spring-pond .sp-howto-title{grid-column:1;grid-row:1;font-size:20px;text-align:left}
 .poem-spring-pond .sp-howto-go{grid-column:2;grid-row:1;min-width:0;min-height:48px;padding:4px 18px;font-size:19px;letter-spacing:.1em}
 .poem-spring-pond .sp-howto-steps{grid-column:1/-1;gap:2px}
 .poem-spring-pond .sp-howto-steps li{gap:6px;font-size:16px}
 .poem-spring-pond .sp-howto-steps svg{width:22px;height:22px}
}

/* Side: the poem lights up character by character as the pond wakes up. */
.poem-spring-pond .sp-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-spring-pond .sp-poem{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 10px;margin:0;padding:10px 12px;list-style:none;border-radius:18px;background:linear-gradient(#fbf8ee,#f2efe2);border:1px solid #e3ddcb}
.poem-spring-pond .sp-poem li{display:flex;justify-content:center;align-items:flex-end;padding:0 4px 2px;border-radius:10px;font-size:23px;line-height:1.3;transition:background .4s}
.poem-spring-pond .sp-poem .sp-ch{display:block;width:1.12em;text-align:center;pointer-events:none}
.poem-spring-pond .sp-poem li.is-current{background:#fffbe9;box-shadow:inset 0 0 0 1.5px #ecd9a8}
.poem-spring-pond .sp-ch{color:#c6c1b2;transition:color .5s ease}
.poem-spring-pond .sp-ch.is-lit{color:var(--sp-ink)}
.poem-spring-pond .sp-summary{width:100%;padding:10px 16px;border-radius:16px;background:#fbf4e4;border:1px solid #ecdcbc;text-align:center}
.poem-spring-pond .sp-summary b{margin-right:.4em;color:#7b3e22}
.poem-spring-pond.is-done .sp-feedback{display:none}
.poem-spring-pond .sp-summary p{margin:0;font-size:19px;line-height:1.55;color:#4b5f50}
.poem-spring-pond .sp-actions{display:flex;justify-content:center}
.poem-spring-pond .sp-listen{display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:8px 18px;border:1px solid #b2c9c0;border-radius:999px;background:#fffef7;color:#2f5f55;font-size:19px;font-weight:600;cursor:pointer}
.poem-spring-pond .sp-listen svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.poem-spring-pond .sp-listen svg path:first-child{fill:currentColor}
.poem-spring-pond .sp-feedback{margin:0;min-height:3em;font-size:19px;line-height:1.5;color:#3f6858;font-weight:600;text-align:center;text-wrap:pretty}
.poem-spring-pond .sp-feedback.is-hint{color:var(--sp-soft);font-weight:400}

@keyframes sp-breathe{50%{transform:translate(-50%,-50%) scale(1.12)}}
@keyframes sp-glow{50%{opacity:1}}
@keyframes sp-hold{to{transform:translate(-50%,-50%) scale(1.15)}}
@keyframes sp-sway{50%{transform:rotate(-2.5deg) translateY(-3%)}}
@keyframes sp-call{50%{opacity:.5}}
@keyframes sp-cue{50%{transform:translate(-50%,-50%) scale(1.07)}}
@keyframes sp-ring{from{transform:scale(.55);opacity:.95}to{transform:scale(1.7);opacity:0}}
@keyframes sp-hover{0%,100%{transform:translate(0,0) rotate(-2deg)}30%{transform:translate(4%,-7%) rotate(2deg)}65%{transform:translate(-4%,-2%) rotate(-1deg)}}
@keyframes sp-buzz{0%,100%{transform:translateY(0)}50%{transform:translateY(-3%)}}
@keyframes sp-splash{0%{opacity:1;transform:translate(-50%,-50%)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.6)}}
@keyframes sp-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.1);opacity:1}100%{transform:none}}
@keyframes sp-demo{0%{opacity:0;transform:translate(-50%,-50%)}15%{opacity:1;transform:translate(-50%,-50%)}80%,100%{transform:translate(-50%,-50%) translate(var(--hdx,0px),var(--hdy,0px))}80%{opacity:1}100%{opacity:0}}
@keyframes sp-tapdemo{0%,100%{opacity:0;transform:translate(-50%,-50%) scale(1)}12%,30%,48%{opacity:1;transform:translate(-50%,-50%) scale(1)}21%,39%,57%{opacity:1;transform:translate(-50%,-50%) scale(.72)}70%{opacity:0}}

/* Landscape: picture on the left, poem and words on the right. */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-spring-pond{max-width:1280px}
 .poem-spring-pond .sp-layout{grid-template-columns:minmax(0,1.75fr) minmax(290px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;row-gap:12px;align-items:center}
 .poem-spring-pond .sp-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:center}
 .poem-spring-pond .sp-head{align-self:end}
 .poem-spring-pond .sp-side{align-self:start}
 .poem-spring-pond .sp-poem{grid-template-columns:minmax(0,1fr)}
}
@media (orientation:landscape) and (min-width:1100px) and (min-height:700px){
 .poem-spring-pond .sp-instruction{font-size:26px}
 .poem-spring-pond .sp-poem li{font-size:26px}
 .poem-spring-pond .sp-feedback{font-size:20px}
}
@media (orientation:portrait) and (min-width:701px){
 .poem-spring-pond .sp-poem{grid-template-columns:repeat(2,minmax(0,1fr))}
 .poem-spring-pond .sp-poem li{font-size:24px}
}
/* Short phone landscape: the picture takes the full height, the right column packs the rest. */
@media (orientation:landscape) and (max-height:500px){
 .poem-spring-pond .sp-layout{grid-template-columns:min(calc((100cqh - 2px) * 16 / 9),56%) minmax(0,1fr);column-gap:12px;row-gap:5px;align-items:start}
 .poem-spring-pond .sp-stage{width:100%;border-radius:12px}
 .poem-spring-pond .sp-instruction{font-size:19px;line-height:1.3}
 .poem-spring-pond .sp-progress{min-width:50px;padding:2px 8px}
 .poem-spring-pond .sp-side{gap:5px}
 .poem-spring-pond .sp-poem{padding:4px 8px}
 .poem-spring-pond .sp-poem li{font-size:19px;line-height:1.35}
 .poem-spring-pond .sp-feedback{min-height:1.5em}
}
@media (max-width:420px){
 .poem-spring-pond .sp-poem{padding:8px;gap:2px 6px}
 .poem-spring-pond .sp-poem li{font-size:21px;padding-inline:0}
 .poem-spring-pond .sp-instruction{font-size:19px;line-height:1.35}
 .poem-spring-pond .sp-side{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 10px;align-items:center}
 .poem-spring-pond .sp-poem,.poem-spring-pond .sp-summary{grid-column:1/-1}
 .poem-spring-pond .sp-listen{width:52px;min-height:52px;padding:0;justify-content:center}
 .poem-spring-pond .sp-listen span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .poem-spring-pond .sp-feedback{min-height:2.4em;text-align:left;line-height:1.35}
 .poem-spring-pond.is-done .sp-actions{grid-column:1/-1}
 .poem-spring-pond .sp-shade>span,.poem-spring-pond .sp-target>span{padding:1px 8px}
}

/* Reduced motion: no looping, no flight; changes are quick fades. */
.poem-spring-pond.is-reduced *,.poem-spring-pond.is-reduced *::before,.poem-spring-pond.is-reduced *::after{animation:none!important}
.poem-spring-pond.is-reduced .sp-cam,.poem-spring-pond.is-reduced .sp-shade,.poem-spring-pond.is-reduced .sp-fly,.poem-spring-pond.is-reduced .sp-tip,.poem-spring-pond.is-reduced .sp-drop{transition-duration:.2s!important;transition-delay:0s!important}
.poem-spring-pond.is-reduced .sp-scene,.poem-spring-pond.is-reduced .sp-dry,.poem-spring-pond.is-reduced .sp-well{transition-duration:.25s!important;transition-delay:0s!important}
.poem-spring-pond.is-reduced.is-demo .sp-hand{opacity:1;left:var(--hx0);top:var(--hy0)}
@media (prefers-reduced-motion:reduce){
 .poem-spring-pond *,.poem-spring-pond *::before,.poem-spring-pond *::after{animation-duration:.01ms!important;animation-iteration-count:1!important}
 .poem-spring-pond .sp-cam,.poem-spring-pond .sp-shade,.poem-spring-pond .sp-fly,.poem-spring-pond .sp-tip,.poem-spring-pond .sp-drop,.poem-spring-pond .sp-scene,.poem-spring-pond .sp-dry,.poem-spring-pond .sp-well{transition-duration:.2s!important;transition-delay:0s!important}
 .poem-spring-pond.is-demo .sp-hand{opacity:1;left:var(--hx0);top:var(--hy0)}
}

/* 2026-11-02 Landscape side panel fills the picture's height: task on top, poem and words in the middle,
   the listen button at the bottom; bigger type. */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-spring-pond{max-width:1280px;height:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
 .poem-spring-pond .sp-layout{grid-column:1/-1;width:100%;height:auto;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);align-items:stretch;row-gap:14px;column-gap:24px}
 .poem-spring-pond .sp-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-spring-pond .sp-head{align-self:start;flex-wrap:wrap;justify-content:flex-start;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid #d6dfd3}
 .poem-spring-pond .sp-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-spring-pond .sp-progress{order:2}
 .poem-spring-pond .sp-help{order:3;margin-left:auto}
 .poem-spring-pond .sp-side{align-self:stretch;gap:16px}
 .poem-spring-pond .sp-side::before,.poem-spring-pond .sp-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-spring-pond .sp-side::before{order:-1}.poem-spring-pond .sp-side::after{order:8}
 .poem-spring-pond .sp-poem{padding:14px 14px;gap:6px}
 .poem-spring-pond .sp-poem li{font-size:clamp(26px,2.7vw,32px)}
 .poem-spring-pond .sp-feedback{min-height:0;font-size:21px}
 .poem-spring-pond .sp-summary p{font-size:21px}
 .poem-spring-pond .sp-actions{order:9}
 .poem-spring-pond .sp-listen{width:100%;justify-content:center;min-height:62px;font-size:23px}
 .poem-spring-pond .sp-listen svg{width:26px;height:26px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-spring-pond .sp-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);row-gap:4px;column-gap:14px}
 .poem-spring-pond .sp-head{flex-wrap:nowrap;padding-bottom:3px;border-bottom:0;gap:6px}
 .poem-spring-pond .sp-instruction{flex:1 1 auto;font-size:16px;line-height:1.25}
 .poem-spring-pond .sp-progress{min-width:0;padding:2px 8px;font-size:14px}
 .poem-spring-pond .sp-help{min-height:32px;padding:2px 10px;font-size:14px}
 .poem-spring-pond .sp-side{gap:3px}
 .poem-spring-pond .sp-poem{padding:2px 8px;gap:0 8px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .poem-spring-pond .sp-poem li{font-size:16px;line-height:1.3}
 .poem-spring-pond .sp-feedback{font-size:14px;line-height:1.3}
 .poem-spring-pond .sp-summary{padding:3px 8px}
 .poem-spring-pond .sp-summary p{font-size:14px;line-height:1.35}
 .poem-spring-pond .sp-listen{min-height:36px;padding:2px 10px;font-size:16px}
 .poem-spring-pond .sp-listen svg{width:20px;height:20px}
}
/* 2026-11-16 r3l iPad Safari landscape is often only 650–720 tall: tighten the side panel so 「聽這句詩」 stays on screen. */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px) and (max-height:780px){
 .poem-spring-pond .sp-layout{row-gap:8px}
 .poem-spring-pond .sp-head{padding-bottom:8px}
 .poem-spring-pond .sp-instruction{font-size:clamp(20px,2vw,24px)}
 .poem-spring-pond .sp-side{gap:10px}
 .poem-spring-pond .sp-poem{padding:8px 12px;gap:3px}
 .poem-spring-pond .sp-poem li{font-size:clamp(22px,2.2vw,26px);line-height:1.25}
 .poem-spring-pond .sp-feedback,.poem-spring-pond .sp-summary p{font-size:18px;line-height:1.4}
 .poem-spring-pond .sp-listen{min-height:52px;font-size:20px}
}

/* poem-games/plum-thirst.css */
/* poem-games/plum-thirst.css：望梅止渴「口渴量表＋想像泡泡」。所有選擇器都以 .poem-plum-thirst 開頭。 */
.poem-plum-thirst{--pt-ink:#3b2f22;--pt-plum:#7a9a3a;--thirst:.5;--dust:0;--zs:1;position:relative;display:block;width:100%;max-width:880px;margin-inline:auto;color:var(--pt-ink);font-family:var(--sans);min-width:0}
.poem-plum-thirst *{box-sizing:border-box}
.poem-plum-thirst [hidden]{display:none!important}
.poem-plum-thirst button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-plum-thirst button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-plum-thirst img{max-width:none}
.poem-plum-thirst .pt-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;align-content:center}
.poem-plum-thirst .pt-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-plum-thirst .pt-instruction{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-plum-thirst .pt-howto-open{flex:none;min-height:44px;padding:6px 12px;border:2px solid #c9b48c;border-radius:14px;background:#fffdf7;font-size:17px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer}
.poem-plum-thirst .pt-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#f3ead6;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}

/* 畫面與鏡頭 */
.poem-plum-thirst .pt-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;overflow:hidden;overflow:clip;border-radius:20px;background:#e8dcc2;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-plum-thirst .pt-cam{position:absolute;inset:0;transform-origin:0 0;transition:transform 1.1s cubic-bezier(.45,.05,.25,1);will-change:transform}
.poem-plum-thirst .pt-cam.is-instant{transition:none}
.poem-plum-thirst .pt-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;opacity:0;transition:opacity .7s ease}
.poem-plum-thirst .pt-scene.is-on{opacity:1}
.poem-plum-thirst .pt-heat{position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(circle at 65% 9%,#ffdc7a99,#ff9a3a40 30%,#d9502226 70%);mix-blend-mode:multiply;opacity:0;transition:opacity 1s}
.poem-plum-thirst.is-hot .pt-heat{opacity:1;animation:pt-shimmer 2.4s ease-in-out infinite}
.poem-plum-thirst .pt-haze-all{position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(180deg,#e9c98a00 20%,#d9b06e88);opacity:var(--dust);transition:opacity .3s}

/* 熱點（曹操、隊伍、士兵）：透明，提示時一圈光。 */
.poem-plum-thirst .pt-hot,.poem-plum-thirst .pt-soldier{position:absolute;left:var(--x);top:var(--y);z-index:3;width:var(--w);height:var(--h);min-width:48px;min-height:48px;transform:translate(-50%,-50%);border:0;border-radius:40%;background:transparent;cursor:pointer;padding:0}
.poem-plum-thirst .pt-hot::after,.poem-plum-thirst .pt-soldier::after{content:"";position:absolute;inset:4%;border-radius:inherit;box-shadow:0 0 0 3px #fff6d8cc,0 0 22px 6px #ffd76a88;opacity:0;animation:pt-glow 2.2s ease-in-out infinite}
.poem-plum-thirst .pt-hot:disabled::after,.poem-plum-thirst .pt-soldier:disabled::after{animation:none;opacity:0}
.poem-plum-thirst .pt-soldier.is-cue::after{opacity:1;animation:none}
.poem-plum-thirst .pt-tag{position:absolute;left:var(--x);top:var(--y);z-index:4;transform:translate(-50%,-50%) scale(.6);padding:4px 12px;border-radius:12px;background:#fffaf0ee;box-shadow:0 2px 10px #3b2f2233;font-size:clamp(13px,2.7cqi,26px);font-weight:700;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .4s,transform .4s}
.poem-plum-thirst .pt-tag.is-on{opacity:1;transform:translate(-50%,-50%) scale(calc(1 / var(--zs)))}

/* 水壺與士兵的嘴 */
.poem-plum-thirst .pt-gourd{position:absolute;left:var(--x);top:var(--y);z-index:5;width:max(48px,6.5%);aspect-ratio:.55;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:0;border-radius:40%;background:transparent;touch-action:none;cursor:grab;transition:left .8s ease,top .8s ease}
.poem-plum-thirst .pt-gourd img{width:84%;height:auto;aspect-ratio:148/300;object-fit:contain;pointer-events:none;-webkit-user-drag:none;transition:transform .8s cubic-bezier(.3,1.4,.5,1);filter:drop-shadow(0 3px 4px #3b2f2255)}
.poem-plum-thirst .pt-gourd.is-cue{animation:pt-bob 1.6s ease-in-out infinite}
.poem-plum-thirst .pt-gourd.is-cue::before{content:"";position:absolute;inset:-6%;border-radius:50%;box-shadow:0 0 0 3px #fff6d8cc,0 0 20px 6px #ffd76a88}
.poem-plum-thirst .pt-gourd[aria-pressed="true"]::before{box-shadow:0 0 0 4px #e3a548,0 0 22px 8px #ffcf5a}
.poem-plum-thirst :is(.pt-gourd,.pt-hot,.pt-soldier,.pt-dream,.pt-mouth,.pt-plum):disabled{opacity:1;cursor:default}
.poem-plum-thirst .pt-gourd.is-source{opacity:.35}
.poem-plum-thirst[data-step="0"][data-sub="1"] .pt-gourd{cursor:pointer;touch-action:manipulation}
/* 拖到嘴邊：水壺飛到嘴邊倒過來，沒水，再放回腰間（蓋住畫裏原來的水壺）。 */
.poem-plum-thirst .pt-gourd.is-drink{animation:pt-drink 1.6s ease-in-out}
.poem-plum-thirst .pt-gourd.is-drink img{animation:pt-drink-img 1.6s ease-in-out}
.poem-plum-thirst .pt-gourd.is-shake img{animation:pt-shake 1.1s ease-in-out}
.poem-plum-thirst .pt-mouth{position:absolute;left:var(--x);top:var(--y);z-index:4;width:var(--w);height:var(--h);min-width:48px;min-height:48px;transform:translate(-50%,-50%);border:3px dashed #fffaeef2;border-radius:50%;background:#fff8dc2e;cursor:pointer;padding:0}
.poem-plum-thirst .pt-mouth.is-cue,.poem-plum-thirst .pt-mouth.is-over{background:#fff3c170;border-style:solid;box-shadow:0 0 18px 4px #ffd76a99}
.poem-plum-thirst .pt-dust{position:absolute;left:var(--px,72%);top:var(--py,53%);z-index:5;width:3%;height:9%;pointer-events:none;opacity:0}
.poem-plum-thirst .pt-dust i{position:absolute;top:0;width:5px;height:5px;border-radius:50%;background:#a07a48}
.poem-plum-thirst .pt-dust i:nth-child(1){left:10%}.poem-plum-thirst .pt-dust i:nth-child(2){left:45%;animation-delay:.25s!important}.poem-plum-thirst .pt-dust i:nth-child(3){left:75%;animation-delay:.5s!important}.poem-plum-thirst .pt-dust i:nth-child(4){left:30%;animation-delay:.8s!important}.poem-plum-thirst .pt-dust i:nth-child(5){left:60%;animation-delay:1.1s!important}
.poem-plum-thirst.is-pour .pt-dust{opacity:1}
.poem-plum-thirst.is-pour .pt-dust i{animation:pt-fall .9s ease-in infinite}

/* 想像泡泡：點一下長大一點。 */
.poem-plum-thirst .pt-trail{position:absolute;left:var(--x);top:var(--y);z-index:3;width:1.4%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#fffdf5;box-shadow:0 0 10px #fff8;pointer-events:none}
.poem-plum-thirst .pt-trail.is-big{width:2.2%}
.poem-plum-thirst .pt-dream{--g:.55;position:absolute;left:var(--x);top:var(--y);z-index:4;width:42%;height:34%;transform:translate(-50%,-50%) scale(var(--g));padding:0;border:0;border-radius:50%;background:radial-gradient(ellipse at 50% 50%,#fffdf6b8 40%,#fffaf080 62%,#fff6e600 72%);cursor:pointer;transition:transform .7s cubic-bezier(.3,1.5,.5,1)}
.poem-plum-thirst .pt-dream[data-grow="0"] [data-g="1"]{opacity:.3}
.poem-plum-thirst .pt-dream[data-grow="1"]{--g:.72}.poem-plum-thirst .pt-dream[data-grow="2"]{--g:.88}.poem-plum-thirst .pt-dream[data-grow="3"]{--g:1}
.poem-plum-thirst .pt-dream.is-cue{animation:pt-breathe 1.8s ease-in-out infinite}
.poem-plum-thirst .pt-dream.is-cue::after{content:"";position:absolute;inset:6%;border-radius:50%;box-shadow:0 0 0 3px #ffe79a,0 0 24px 6px #ffd76a88}
.poem-plum-thirst .pt-dream img{position:absolute;pointer-events:none;-webkit-user-drag:none;opacity:0;transition:opacity .5s,transform .6s cubic-bezier(.3,1.5,.5,1)}
.poem-plum-thirst .pt-dbranch{left:var(--l);top:var(--t);width:48%;height:auto;transform:rotate(var(--r)) scale(.6)}
.poem-plum-thirst .pt-dplum{left:var(--l);top:var(--t);width:13%;height:auto;transform:translate(-50%,-50%) scale(.3);transition-delay:var(--d)!important}
.poem-plum-thirst .pt-dbig{left:50%;top:50%;width:30%;height:auto;transform:translate(-50%,-50%) scale(.3);filter:drop-shadow(0 0 14px #ffe36a)}
.poem-plum-thirst .pt-dream:is([data-grow="1"],[data-grow="2"],[data-grow="3"]) [data-g="1"],.poem-plum-thirst .pt-dream:is([data-grow="2"],[data-grow="3"]) [data-g="2"],.poem-plum-thirst .pt-dream[data-grow="3"] [data-g="3"]{opacity:1}
.poem-plum-thirst .pt-dream:is([data-grow="1"],[data-grow="2"],[data-grow="3"]) .pt-dbranch{transform:rotate(var(--r)) scale(1)}
.poem-plum-thirst .pt-dream:is([data-grow="2"],[data-grow="3"]) .pt-dplum{transform:translate(-50%,-50%) scale(1)}
.poem-plum-thirst .pt-dream[data-grow="3"] .pt-dbig{transform:translate(-50%,-50%) scale(1);animation:pt-pulse 1.4s ease-in-out infinite}

/* 士兵：沒精神時灰灰的，想到梅子就亮起來，嘴邊冒口水。 */
.poem-plum-thirst .pt-haze{position:absolute;left:var(--x);top:var(--y);z-index:2;width:var(--w);height:var(--h);transform:translate(-50%,-50%);pointer-events:none;-webkit-backdrop-filter:saturate(.3) brightness(.92);backdrop-filter:saturate(.3) brightness(.92);-webkit-mask:radial-gradient(ellipse 50% 50%,#000 60%,#0000 100%);mask:radial-gradient(ellipse 50% 50%,#000 60%,#0000 100%);transition:opacity .9s}
.poem-plum-thirst .pt-haze.is-off{opacity:0}
.poem-plum-thirst .pt-think{position:absolute;left:var(--x);top:var(--y);z-index:4;width:8.5%;aspect-ratio:1.15;transform:translate(-50%,-50%) scale(0);display:grid;place-items:center;border-radius:50%;background:#fffdf6f2;box-shadow:0 2px 12px #3b2f2233;pointer-events:none;transition:transform .6s cubic-bezier(.3,1.6,.5,1)}
.poem-plum-thirst .pt-think::before,.poem-plum-thirst .pt-think::after{content:"";position:absolute;border-radius:50%;background:#fffdf6f2}
.poem-plum-thirst .pt-think::before{width:22%;aspect-ratio:1;left:4%;bottom:-14%}
.poem-plum-thirst .pt-think::after{width:12%;aspect-ratio:1;left:-12%;bottom:-34%}
.poem-plum-thirst .pt-think img{width:66%;height:auto}
.poem-plum-thirst .pt-think.is-on{transform:translate(-50%,-50%) scale(1)}
.poem-plum-thirst .pt-spit{position:absolute;left:var(--x);top:var(--y);z-index:4;width:2.2%;transform:translate(-50%,0);pointer-events:none;opacity:0}
.poem-plum-thirst .pt-spit svg{display:block;width:100%;height:auto}
.poem-plum-thirst .pt-spit path{fill:#8fd3f4;stroke:#3d8fbf;stroke-width:1.4}
.poem-plum-thirst .pt-spit .pt-shine{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round}
.poem-plum-thirst .pt-spit.is-on{opacity:1;animation:pt-drip 1.8s ease-in infinite}
.poem-plum-thirst .pt-plum{position:absolute;left:var(--x);top:var(--y);z-index:5;width:max(52px,8%);aspect-ratio:1;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:radial-gradient(circle,#fff8d8e6 40%,#fff8d800 70%);touch-action:none;cursor:grab;animation:pt-bob 1.8s ease-in-out infinite}
.poem-plum-thirst .pt-plum img{width:80%;height:auto;aspect-ratio:220/182;object-fit:contain;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 2px 4px #3b2f2255)}
.poem-plum-thirst .pt-plum[aria-pressed="true"]{box-shadow:0 0 0 4px #e3a548,0 0 22px 8px #ffcf5a}
.poem-plum-thirst .pt-plum.is-source{opacity:.35}
.poem-plum-thirst .pt-plum:disabled{animation:none}
.poem-plum-thirst .pt-spark{position:absolute;left:var(--x);top:var(--y);z-index:3;width:3%;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;opacity:0;background:radial-gradient(circle,#fff 0 12%,#bfeaff 22%,#bfeaff00 60%);border-radius:50%}
.poem-plum-thirst.is-water .pt-spark{animation:pt-twinkle 1.6s ease-in-out infinite;animation-delay:var(--d)}
/* 拖動中的影子：寬高照原圖比例，不拉長。 */
.poem-plum-thirst .pt-ghost{position:fixed;z-index:50;display:block;transform:translate(-50%,-50%);pointer-events:none}
.poem-plum-thirst .pt-ghost.is-gourd{width:auto;height:var(--gh,96px)}
.poem-plum-thirst .pt-ghost.is-plum{width:var(--gw,72px);height:auto}
.poem-plum-thirst .pt-ghost img{display:block;max-width:none;max-height:none;object-fit:contain;filter:drop-shadow(0 4px 8px #3b2f2266)}
.poem-plum-thirst .pt-ghost.is-gourd img{width:auto;height:var(--gh,96px);aspect-ratio:148/300}
.poem-plum-thirst .pt-ghost.is-plum img{width:var(--gw,72px);height:auto;aspect-ratio:220/182}

/* 閒置示範的手 */
.poem-plum-thirst .pt-hand{position:absolute;left:var(--x1,0);top:var(--y1,0);z-index:20;width:48px;pointer-events:none;opacity:0;transform:translate(-45%,-11%)}
.poem-plum-thirst .pt-hand svg{display:block;width:100%;height:auto;fill:#fffdf6;stroke:#3b2f22;stroke-width:2.4;stroke-linejoin:round;filter:drop-shadow(0 2px 4px #3b2f2266)}
.poem-plum-thirst .pt-hand.is-tap{animation:pt-tap 1.4s ease-in-out 3}
.poem-plum-thirst .pt-hand.is-drag{animation:pt-drag 2.1s ease-in-out 2}

/* 怎麼玩卡：蓋在畫面上，按「開始」才玩。窄畫面左文右鈕，寬畫面上下排。 */
.poem-plum-thirst.is-howto :is(.pt-cam button,.pt-tag,.pt-meter,.pt-loading){visibility:hidden}
.poem-plum-thirst .pt-howto{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:6px;background:#3b2f2247}
.poem-plum-thirst .pt-howto-card{display:grid;grid-template-columns:auto auto;grid-template-areas:"t t" "s go";align-items:center;column-gap:10px;row-gap:6px;max-width:100%;max-height:100%;padding:8px;border-radius:16px;background:#fffaf0;box-shadow:0 6px 24px #3b2f2255}
.poem-plum-thirst .pt-howto-title{grid-area:t;margin:0;font-size:18px;line-height:1.2;font-weight:800;text-align:center}
.poem-plum-thirst .pt-howto-steps{grid-area:s;display:grid;gap:3px;margin:0;padding:0;list-style:none}
.poem-plum-thirst .pt-howto-steps li{display:flex;align-items:center;gap:4px;font-size:14px;line-height:1.3;font-weight:650;white-space:nowrap}
.poem-plum-thirst .pt-howto-n{flex:none;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#7a9a3a;color:#fff;font-size:12px;font-weight:800;line-height:1}
.poem-plum-thirst .pt-howto-icon{flex:none;display:grid}
.poem-plum-thirst .pt-howto-icon svg{width:18px;height:18px;fill:none;stroke:#3b2f22;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.poem-plum-thirst .pt-howto-icon svg path:first-child{fill:#fff3d6}
.poem-plum-thirst .pt-howto-go{grid-area:go;min-width:64px;min-height:52px;padding:6px 10px;border:0;border-radius:16px;background:#c4572c;color:#fff;font-size:21px;font-weight:800;letter-spacing:2px;cursor:pointer;box-shadow:0 3px 0 #8e3b1c}
@container (min-width:340px) and (max-width:519.98px){
 .poem-plum-thirst .pt-howto-steps li{font-size:16px}
 .poem-plum-thirst .pt-howto-n{width:20px;height:20px;font-size:13px}
 .poem-plum-thirst .pt-howto-icon svg{width:22px;height:22px}
}
@container (min-width:520px){
 .poem-plum-thirst .pt-howto{padding:12px}
 .poem-plum-thirst .pt-howto-card{grid-template-columns:auto;grid-template-areas:"t" "s" "go";justify-items:center;row-gap:10px;padding:14px 26px 16px}
 .poem-plum-thirst .pt-howto-title{font-size:24px}
 .poem-plum-thirst .pt-howto-steps{gap:8px;justify-self:stretch}
 .poem-plum-thirst .pt-howto-steps li{gap:8px;font-size:20px}
 .poem-plum-thirst .pt-howto-icon svg{width:30px;height:30px}
 .poem-plum-thirst .pt-howto-n{width:26px;height:26px;font-size:16px}
 .poem-plum-thirst .pt-howto-go{min-width:160px;min-height:56px;font-size:24px}
}

/* 錯兩次：正確的東西一直發亮。 */
.poem-plum-thirst.is-help :is(.pt-hot,.pt-soldier):not(:disabled)::after{opacity:1;animation:none;box-shadow:0 0 0 4px #ffd24a,0 0 26px 10px #ffc83a}
.poem-plum-thirst.is-help .pt-gourd:not(:disabled)::before{content:"";position:absolute;inset:-6%;border-radius:50%;box-shadow:0 0 0 4px #ffd24a,0 0 26px 10px #ffc83a}
.poem-plum-thirst.is-help :is(.pt-mouth,.pt-plum):not(:disabled){box-shadow:0 0 0 4px #ffd24a,0 0 26px 10px #ffc83a}
.poem-plum-thirst.is-help .pt-mouth{background:#fff3c170;border-style:solid}
.poem-plum-thirst.is-help .pt-dream::after{content:"";position:absolute;inset:6%;border-radius:50%;box-shadow:0 0 0 4px #ffd24a,0 0 30px 10px #ffc83a}
.poem-plum-thirst.is-help :is(.pt-choice[data-pt-choice="plum"],.pt-march){border-color:#e3a548;box-shadow:0 0 0 4px #ffd24a,0 0 18px 6px #ffc83a}

/* 口渴量表 */
.poem-plum-thirst .pt-meter{position:absolute;left:1.6%;top:8%;z-index:6;width:max(44px,5%);height:80%;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 0;border-radius:16px;background:#fffaf0d9;box-shadow:0 2px 10px #3b2f2233;pointer-events:none}
.poem-plum-thirst .pt-meter b{writing-mode:vertical-rl;font-size:19px;letter-spacing:2px;line-height:1}
.poem-plum-thirst .pt-meter-bar{position:relative;flex:1;width:42%;min-width:14px;border-radius:10px;background:#e7dcc6;overflow:hidden}
.poem-plum-thirst .pt-meter-fill{position:absolute;left:0;right:0;bottom:0;height:calc(var(--thirst) * 100%);border-radius:10px;background:#e0a33a;transition:height .8s ease,background-color .8s}
.poem-plum-thirst .pt-meter[data-level="red"] .pt-meter-fill{background:#d4492f}
.poem-plum-thirst .pt-meter[data-level="red"]{animation:pt-throb 1.2s ease-in-out infinite}
.poem-plum-thirst .pt-meter[data-level="green"] .pt-meter-fill{background:#5aa66b}
.poem-plum-thirst .pt-loading{position:absolute;inset:0;z-index:9;display:grid;place-content:center;gap:10px;background:#f7f1e3e6;font-size:19px;text-align:center}
.poem-plum-thirst .pt-loading button,.poem-plum-thirst .pt-listen{min-height:48px;padding:8px 18px;border:1px solid #b9a27c;border-radius:14px;background:#fffefa;font-size:19px;font-weight:600;cursor:pointer}

/* 側欄 */
.poem-plum-thirst .pt-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-plum-thirst .pt-verse{padding:8px 12px;border-radius:14px;background:#faf3e3}
.poem-plum-thirst .pt-line{margin:0;font-size:clamp(21px,2.4vw,26px);line-height:1.7;text-align:center;letter-spacing:1px}
.poem-plum-thirst .pt-done .pt-line,.poem-plum-thirst.is-done .pt-line{font-size:clamp(19px,2vw,22px);line-height:2}
.poem-plum-thirst .pt-line>*{color:#b7a98f;transition:color .4s}
.poem-plum-thirst .pt-line>.is-on{color:var(--pt-ink)}
.poem-plum-thirst .pt-choices{display:flex;flex-direction:column;gap:8px}
.poem-plum-thirst .pt-choice{min-height:52px;padding:8px 14px;border:2px solid #c9b48c;border-radius:14px;background:#fffdf7;font-size:19px;font-weight:600;line-height:1.4;text-align:left;cursor:pointer}
.poem-plum-thirst .pt-choice.is-wrong{border-color:#d4492f;background:#fbece6}
.poem-plum-thirst .pt-march{position:relative;min-height:68px;overflow:hidden;border:2px solid #8d6a3a;border-radius:18px;background:#fff7e4;font-size:22px;font-weight:700;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none}
.poem-plum-thirst .pt-march-fill{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(var(--p,0));background:linear-gradient(90deg,#f2c46b,#8fd3f4)}
.poem-plum-thirst .pt-march-label{position:relative}
.poem-plum-thirst .pt-march.is-holding{background:#ffeec8;transform:scale(.98)}
.poem-plum-thirst.is-nudge .pt-march,.poem-plum-thirst.is-nudge .pt-choice{animation:pt-nudge .65s ease-in-out 3}
.poem-plum-thirst .pt-method{margin:0;font-size:18px;line-height:1.5;color:#6d5a3d}
.poem-plum-thirst .pt-summary{padding:10px 14px;border-radius:14px;background:#eef6e6}
.poem-plum-thirst .pt-summary b{font-size:20px}
.poem-plum-thirst .pt-summary p{margin:4px 0 0;font-size:19px;line-height:1.55}
.poem-plum-thirst .pt-listen{display:inline-flex;align-items:center;justify-content:center;gap:8px;align-self:flex-start}
.poem-plum-thirst .pt-listen svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.poem-plum-thirst .pt-listen[aria-disabled="true"]{opacity:.6}
.poem-plum-thirst .pt-feedback{margin:0;min-height:1.5em;font-size:19px;line-height:1.5}


/* 重做：搖水壺三下的進度、曹操喊話泡泡、士兵「好酸！」 */
.poem-plum-thirst[data-step="0"][data-sub="1"] .pt-gourd::after{content:"○○○";position:absolute;left:50%;top:-12%;transform:translate(-50%,-100%) scale(calc(1 / var(--zs)));padding:1px 8px;border-radius:10px;background:#fffaf0ee;color:#b0482a;font-size:clamp(13px,1.6cqi,20px);letter-spacing:2px;white-space:nowrap;pointer-events:none}
.poem-plum-thirst[data-step="0"][data-sub="1"][data-shake="1"] .pt-gourd::after{content:"●○○"}
.poem-plum-thirst[data-step="0"][data-sub="1"][data-shake="2"] .pt-gourd::after{content:"●●○"}
.poem-plum-thirst[data-step="0"][data-sub="1"][data-shake="3"] .pt-gourd::after{content:"●●●"}
.poem-plum-thirst .pt-say{position:absolute;left:29%;top:2.5%;z-index:6;padding:.35em .8em;border:3px solid #7a3b22;border-radius:18px;background:#fffdf6f5;box-shadow:0 4px 14px #3b2f2240;font-size:clamp(11px,2.7cqi,30px);font-weight:800;line-height:1.25;color:#5a2a14;white-space:nowrap;pointer-events:none;opacity:0;transform:scale(.4);transform-origin:0 100%;transition:opacity .3s,transform .45s cubic-bezier(.3,1.6,.5,1)}
.poem-plum-thirst .pt-say::after{content:"";position:absolute;left:10px;bottom:-15px;width:18px;height:16px;background:#fffdf6;border-left:3px solid #7a3b22;border-bottom:3px solid #7a3b22;transform:skewX(32deg);transform-origin:0 0}
.poem-plum-thirst .pt-say.is-on{opacity:1;transform:scale(1)}
.poem-plum-thirst .pt-say span{display:none}
.poem-plum-thirst .pt-say span.is-now{display:block;animation:pt-shout .5s cubic-bezier(.3,1.6,.5,1)}
.poem-plum-thirst .pt-sour{position:absolute;left:var(--x);top:var(--y);z-index:5;transform:translate(-50%,-50%) scale(0);padding:2px 10px;border-radius:12px;background:#fff6c8;border:2px solid #9bbf3a;color:#4d6b12;font-size:clamp(13px,2cqi,24px);font-weight:800;white-space:nowrap;pointer-events:none;transition:transform .45s cubic-bezier(.3,1.7,.5,1) .25s}
.poem-plum-thirst .pt-sour.is-on{transform:translate(-50%,-50%) scale(1) rotate(-6deg)}
.poem-plum-thirst .pt-hot.is-cue::after{animation-duration:1.6s}
@keyframes pt-shout{0%{transform:scale(.5)}100%{transform:scale(1)}}
@keyframes pt-glow{0%,100%{opacity:0}50%{opacity:1}}
@keyframes pt-bob{0%,100%{translate:0 0}50%{translate:0 -4px}}
@keyframes pt-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(1.06) drop-shadow(0 0 10px #ffe79a)}}
@keyframes pt-pulse{0%,100%{scale:1}50%{scale:1.08}}
@keyframes pt-shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-168deg)}35%{transform:rotate(-150deg)}50%{transform:rotate(-176deg)}65%{transform:rotate(-152deg)}80%{transform:rotate(-166deg)}}
@keyframes pt-drink{0%,100%{left:var(--x);top:var(--y)}30%,72%{left:75%;top:49%}}
@keyframes pt-drink-img{0%,30%,100%{transform:rotate(0)}45%,72%{transform:rotate(-138deg)}}
@keyframes pt-fall{0%{transform:translateY(0);opacity:1}100%{transform:translateY(900%);opacity:0}}
@keyframes pt-drip{0%{transform:translate(-50%,0) scale(.6);opacity:0}25%{opacity:1;transform:translate(-50%,0) scale(1)}100%{transform:translate(-50%,160%) scale(.9);opacity:0}}
@keyframes pt-twinkle{0%,100%{opacity:0;scale:.6}50%{opacity:1;scale:1.2}}
@keyframes pt-shimmer{0%,100%{opacity:.85}50%{opacity:1}}
@keyframes pt-throb{0%,100%{box-shadow:0 2px 10px #3b2f2233}50%{box-shadow:0 0 0 3px #d4492f88,0 2px 14px #d4492f66}}
@keyframes pt-tap{0%,100%{opacity:0;transform:translate(-45%,-11%) scale(1)}20%,80%{opacity:1}45%{transform:translate(-45%,-11%) scale(.85)}}
@keyframes pt-drag{0%{opacity:0;left:var(--x1);top:var(--y1)}15%{opacity:1;left:var(--x1);top:var(--y1)}75%{opacity:1;left:var(--x2);top:var(--y2)}100%{opacity:0;left:var(--x2);top:var(--y2)}}
@keyframes pt-nudge{0%,100%{transform:none}50%{transform:scale(1.04);box-shadow:0 0 0 4px #ffd76a}}

/* 橫屏：左畫右文。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-plum-thirst{max-width:1280px}
 .poem-plum-thirst .pt-layout{grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;align-items:center}
 .poem-plum-thirst .pt-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
 .poem-plum-thirst .pt-head{flex-wrap:wrap;row-gap:6px}
 .poem-plum-thirst .pt-instruction{flex:1 1 100%}
}
.poem-plum-thirst.is-reduced *{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.poem-plum-thirst *{transition:none!important;animation:none!important}}
/* 減少動畫：示範手不動，直接停在要點的東西上。 */
.poem-plum-thirst.is-reduced .pt-hand:is(.is-tap,.is-drag){opacity:1}
@media (prefers-reduced-motion:reduce){.poem-plum-thirst .pt-hand:is(.is-tap,.is-drag){opacity:1}}

/* 2026-11-03 橫屏側欄用滿畫面高度：上面是任務，中間是詩句、選項和說明，「聽這句詩」在最下面；字和按鈕放大。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-plum-thirst{height:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
 .poem-plum-thirst .pt-layout{grid-column:1/-1;width:100%;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;row-gap:14px;column-gap:24px}
 .poem-plum-thirst .pt-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-plum-thirst .pt-head{align-self:start;justify-content:flex-start;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid #e2d4b6}
 .poem-plum-thirst .pt-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-plum-thirst .pt-progress{order:2;font-size:19px}
 .poem-plum-thirst .pt-howto-open{order:3;margin-left:auto}
 .poem-plum-thirst .pt-side{align-self:stretch;gap:16px}
 .poem-plum-thirst .pt-side::before,.poem-plum-thirst .pt-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-plum-thirst .pt-side::before{order:-1}.poem-plum-thirst .pt-side::after{order:8}
 .poem-plum-thirst .pt-verse{padding:12px 14px}
 .poem-plum-thirst .pt-line{font-size:clamp(24px,2.5vw,30px);line-height:1.5;text-wrap:balance}
 .poem-plum-thirst .pt-done .pt-line,.poem-plum-thirst.is-done .pt-line{font-size:clamp(19px,1.9vw,23px);line-height:1.6}
 .poem-plum-thirst.is-done .pt-feedback{display:none}
 .poem-plum-thirst .pt-choice{min-height:58px;font-size:21px}
 .poem-plum-thirst .pt-march{min-height:72px;font-size:24px}
 .poem-plum-thirst .pt-method{font-size:21px;line-height:1.45;text-align:center}
 .poem-plum-thirst .pt-summary b{font-size:24px}
 .poem-plum-thirst .pt-summary p{font-size:20px}
 .poem-plum-thirst .pt-feedback{min-height:0;font-size:21px;text-align:center}
 .poem-plum-thirst .pt-feedback:empty{display:none}
 .poem-plum-thirst .pt-listen{order:9;align-self:stretch;min-height:62px;font-size:23px}
 .poem-plum-thirst .pt-listen svg{width:26px;height:26px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-plum-thirst .pt-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);row-gap:4px;column-gap:14px}
 .poem-plum-thirst .pt-stage{border-radius:14px}
 .poem-plum-thirst .pt-meter{border-radius:12px;padding:4px 0;gap:3px}
 .poem-plum-thirst .pt-meter b{font-size:14px}
 .poem-plum-thirst .pt-head{flex-wrap:nowrap;padding-bottom:3px;border-bottom:0;gap:6px}
 .poem-plum-thirst .pt-instruction{flex:1 1 auto;font-size:16px;line-height:1.25}
 .poem-plum-thirst .pt-progress{min-width:0;padding:2px 8px;font-size:14px}
 .poem-plum-thirst .pt-howto-open{min-height:32px;padding:2px 10px;font-size:14px}
 .poem-plum-thirst .pt-side{gap:3px}
 .poem-plum-thirst .pt-verse{padding:2px 8px}
 .poem-plum-thirst .pt-line{font-size:18px;line-height:1.35;letter-spacing:0}
 .poem-plum-thirst .pt-done .pt-line,.poem-plum-thirst.is-done .pt-line{font-size:14px;line-height:1.35}
 .poem-plum-thirst .pt-choices{gap:4px}
 .poem-plum-thirst .pt-choice{min-height:36px;padding:2px 8px;font-size:14px;line-height:1.25}
 .poem-plum-thirst .pt-march{min-height:40px;font-size:16px}
 .poem-plum-thirst .pt-method,.poem-plum-thirst .pt-feedback{font-size:14px;line-height:1.3}
 .poem-plum-thirst .pt-summary{padding:3px 8px}
 .poem-plum-thirst .pt-summary b{font-size:15px}
 .poem-plum-thirst .pt-summary p{margin:1px 0 0;font-size:14px;line-height:1.3}
 .poem-plum-thirst .pt-listen{min-height:34px;padding:2px 10px;font-size:16px}
 .poem-plum-thirst .pt-listen svg{width:20px;height:20px}
 .poem-plum-thirst .pt-march{min-height:34px}
 .poem-plum-thirst .pt-side:has(.pt-feedback:not(:empty)) .pt-method{display:none}
 .poem-plum-thirst .pt-done .pt-line,.poem-plum-thirst.is-done .pt-line{font-size:13px;line-height:1.25}
 .poem-plum-thirst.is-done .pt-verse{padding:2px 6px}
 .poem-plum-thirst .pt-summary b{display:none}
 .poem-plum-thirst .pt-say{left:27%;max-width:30%;white-space:normal;padding:.25em .5em;border-width:2px;border-radius:10px}
 .poem-plum-thirst .pt-say::after{left:6px;bottom:-11px;width:12px;height:10px;border-width:2px}
 .poem-plum-thirst .pt-summary p{margin:0;font-size:13px;line-height:1.25}
}

/* 2026-11-03 r3g 第四句：黃昏乾山路地圖，沿路拖軍隊，走到盡頭梅林和泉水出現。 */
.poem-plum-thirst .pt-route{position:absolute;inset:0;z-index:1;width:100%;height:100%;fill:none;pointer-events:none;stroke-linecap:round;stroke-linejoin:round}
.poem-plum-thirst .pt-route-todo{stroke:#fff6d2;stroke-width:6;stroke-dasharray:.01 .016;opacity:.8}
.poem-plum-thirst .pt-route-done{stroke:#d9892e;stroke-width:8;stroke-dasharray:var(--done,0) 2;opacity:.75}
.poem-plum-thirst .pt-grove{position:absolute;left:var(--x);top:var(--y);z-index:2;width:19%;height:auto;pointer-events:none;transform:translate(-50%,-92%) scale(.5);transform-origin:50% 92%;opacity:0;transition:opacity 1s ease,transform 1.2s cubic-bezier(.2,1.4,.4,1);filter:drop-shadow(0 0 .8cqi #fff4b0)}
.poem-plum-thirst.is-grove .pt-grove{opacity:1;transform:translate(-50%,-92%) scale(1)}
.poem-plum-thirst:not([data-step="3"]) :is(.pt-route,.pt-grove,.pt-army){display:none}
.poem-plum-thirst .pt-next{position:absolute;left:var(--x);top:var(--y);width:1px;height:1px;pointer-events:none}
.poem-plum-thirst .pt-army{position:absolute;left:var(--x);top:var(--y);z-index:3;width:17%;aspect-ratio:440/426;padding:0;border:0;background:transparent;transform:translate(-50%,-92%) scale(var(--s,1));transform-origin:50% 92%;touch-action:none;cursor:grab;-webkit-tap-highlight-color:transparent}
.poem-plum-thirst .pt-army[hidden]{display:none}
.poem-plum-thirst .pt-army:disabled{cursor:default}
.poem-plum-thirst .pt-army img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 .3cqi .4cqi #3b2f2288);transition:opacity .5s}
.poem-plum-thirst .pt-army-cheer{opacity:0}
.poem-plum-thirst.is-grove .pt-army-tired{opacity:0}
.poem-plum-thirst.is-grove .pt-army-cheer{opacity:1}
.poem-plum-thirst .pt-army.is-cue img{filter:drop-shadow(0 0 .5cqi #ffe08a) drop-shadow(0 .3cqi .4cqi #3b2f2288)}
.poem-plum-thirst.is-help .pt-army img{filter:drop-shadow(0 0 .6cqi #ffd24a) drop-shadow(0 0 1.2cqi #ffc83a)}
.poem-plum-thirst.is-walking .pt-army img{animation:pt-bob .45s ease-in-out infinite alternate}
@keyframes pt-bob{to{translate:0 -3%}}
.poem-plum-thirst.is-reduced .pt-army img{animation:none}
.poem-plum-thirst .pt-verse[hidden]{display:none}
/* 2026-11-03 r3h iPad Safari 實際可用高度較矮（約 690–780）：收緊側欄，「聽這句詩」不被擠出畫面、側欄不出捲軸。 */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px) and (max-height:780px){
 .poem-plum-thirst .pt-layout{row-gap:8px}
 .poem-plum-thirst .pt-head{padding-bottom:8px}
 .poem-plum-thirst .pt-instruction{font-size:clamp(20px,2vw,24px)}
 .poem-plum-thirst .pt-side{gap:10px}
 .poem-plum-thirst .pt-verse{padding:8px 12px}
 .poem-plum-thirst .pt-line{font-size:clamp(22px,2.2vw,27px)}
 .poem-plum-thirst .pt-choice{min-height:52px;font-size:19px}
 .poem-plum-thirst .pt-march{min-height:60px;font-size:21px}
 .poem-plum-thirst .pt-method,.poem-plum-thirst .pt-feedback{font-size:18px;line-height:1.4}
 .poem-plum-thirst .pt-side:has(.pt-feedback:not(:empty)) .pt-method{display:none}
 .poem-plum-thirst .pt-summary b{font-size:20px}
 .poem-plum-thirst .pt-summary p{font-size:18px}
 .poem-plum-thirst .pt-listen{min-height:52px;font-size:20px}
}

/* poem-games/needle-thread.css */
/* poem-games/needle-thread.css：遊子吟「穿針縫衣」。所有選擇器以 .poem-needle-thread 開頭。 */
.poem-needle-thread{--nt-ink:#2f3f5c;--nt-warm:#8a4f24;display:block;width:100%;max-width:880px;margin-inline:auto;color:var(--nt-ink);font-family:var(--sans);min-width:0}
.poem-needle-thread *{box-sizing:border-box}
.poem-needle-thread [hidden]{display:none!important}
.poem-needle-thread button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-needle-thread button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-needle-thread img{max-width:none;-webkit-user-drag:none}
.poem-needle-thread .nt-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;align-content:center}
.poem-needle-thread .nt-head{grid-area:head;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;min-width:0}
.poem-needle-thread .nt-instruction{flex:1 1 11em;min-width:0;margin:0;font-size:clamp(19px,2.4vw,23px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-needle-thread .nt-head-tools{flex:none;display:flex;align-items:center;gap:8px;margin-left:auto}
.poem-needle-thread .nt-help{min-height:44px;padding:4px 12px;border:1px solid #c9a46b;border-radius:14px;background:#fff8e8;color:var(--nt-warm);font-size:17px;font-weight:650;cursor:pointer}
.poem-needle-thread .nt-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#e8edf5;color:#3c5478;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-needle-thread.is-done .nt-progress{background:#f6e5c8;color:var(--nt-warm)}

/* 畫面 16:9；鏡頭層按步驟推近（--zs 倍數，--zl/--zt 左邊和上邊藏起的 %）。大畫面推近少一點，免得原圖放大到糊。 */
.poem-needle-thread .nt-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;overflow:hidden;overflow:clip;border-radius:20px;background:#e9e2d2;border:1px solid #d6d2c1;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-needle-thread .nt-cam{--zs:1;--zl:0;--zt:0;position:absolute;inset:0;transform-origin:0 0;transform:translate(calc(var(--zl) * var(--zs) * -1%),calc(var(--zt) * var(--zs) * -1%)) scale(var(--zs));transition:transform 1.3s cubic-bezier(.45,.05,.25,1)}
.poem-needle-thread[data-step="thread"] .nt-cam{--zs:1.6;--zl:12;--zt:30}
.poem-needle-thread[data-step="sew"] .nt-cam{--zs:2;--zl:36;--zt:15}
@container (min-width:640px){
 .poem-needle-thread[data-step="thread"] .nt-cam{--zs:1.45;--zl:10;--zt:28}
 .poem-needle-thread[data-step="sew"] .nt-cam{--zs:1.75;--zl:32.5;--zt:11.5}
}
.poem-needle-thread .nt-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0;transition:opacity .8s ease}
.poem-needle-thread .nt-scene.is-on{opacity:1}
.poem-needle-thread .nt-cam>:is(img,div,button):not(.nt-scene){position:absolute}

/* 第一步：線團、針、線頭 */
.poem-needle-thread .nt-ball{left:var(--x);top:var(--y);width:var(--w);height:auto;transform:translate(-50%,-50%);filter:saturate(.15) sepia(.35) brightness(1.45) drop-shadow(0 3px 4px #3b2a1a55);pointer-events:none;transition:opacity .6s}
.poem-needle-thread .nt-needle-big{left:var(--x);top:var(--y);height:var(--h);width:auto;transform:translateX(-50%) rotate(var(--r,0deg));transform-origin:50% 0;filter:drop-shadow(0 0 1px #2b2117) drop-shadow(0 0 2px #fffbe9) drop-shadow(1px 2px 2px #2b211788);pointer-events:none;transition:opacity .6s}
.poem-needle-thread :is(.nt-ball,.nt-needle-big).is-away{opacity:0}
.poem-needle-thread .nt-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}
.poem-needle-thread .nt-svg path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.poem-needle-thread .nt-thread,.poem-needle-thread .nt-thread-tail{stroke:#f6ecd2;stroke-width:3px;filter:drop-shadow(0 0 1px #4a3a22) drop-shadow(0 1px 1px #4a3a2299)}
.poem-needle-thread .nt-eye{left:var(--x);top:var(--y);z-index:4;width:max(48px,var(--w));aspect-ratio:1;transform:translate(-50%,-50%);border:3px dashed #fff6d8;border-radius:50%;background:radial-gradient(circle,#fff6d000 45%,#fff3c455 70%,#fff3c400);box-shadow:0 0 0 2px #6a4b2a33;cursor:pointer;animation:nt-breathe 2.2s ease-in-out infinite}
.poem-needle-thread .nt-eye.is-cue{border-style:solid;background:radial-gradient(circle,#fff6d000 40%,#ffe9a088 72%,#fff3c400)}
.poem-needle-thread .nt-tip{left:var(--x);top:var(--y);z-index:5;width:max(48px,5%);aspect-ratio:1;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:radial-gradient(circle,#fff8e2cc 0 30%,#fff8e200 66%);touch-action:none;cursor:grab;transition:left .35s,top .35s}
.poem-needle-thread .nt-tip span{width:34%;aspect-ratio:1;border-radius:50%;background:#fbf2da;border:2px solid #7a5a35;box-shadow:0 0 0 4px #ffe7a066}
.poem-needle-thread .nt-tip[aria-pressed="true"] span{box-shadow:0 0 0 6px #f2b14a}
.poem-needle-thread :is(.nt-tip,.nt-piece,.nt-pull).is-dragging{transition:none;cursor:grabbing}

/* 第二步：比一比 */
.poem-needle-thread .nt-son{left:var(--x);top:var(--y);z-index:2;width:var(--w);height:var(--h);transform:translate(-50%,-50%);border:3px dashed #0000;border-radius:44% 44% 30% 30%;background:none;cursor:pointer}
.poem-needle-thread[data-step="robe"] .nt-son{border-color:#fff3cfaa}
.poem-needle-thread[data-step="pack"] .nt-cloth:not(.is-packed){outline:3px dashed #fff3cfcc;outline-offset:4px;border-radius:12px}
.poem-needle-thread .nt-son.is-cue{border-color:#fff3cf;background:#fff6d822;box-shadow:0 0 24px #ffe7a088}
.poem-needle-thread .nt-piece{left:var(--x);top:var(--y);z-index:5;width:var(--w);min-width:48px;min-height:48px;padding:0;transform:translate(-50%,-50%);border:0;border-radius:14px;background:none;touch-action:none;cursor:grab;transition:left .35s,top .35s}
.poem-needle-thread .nt-piece img{display:block;width:100%;height:auto;filter:drop-shadow(0 4px 6px #23314d66);pointer-events:none}
.poem-needle-thread .nt-piece[aria-pressed="true"] img{filter:drop-shadow(0 0 6px #f2b14a) drop-shadow(0 0 2px #f2b14a)}
/* 衣服素材偏艷，調淡一點貼近工筆淡彩底圖 */
.poem-needle-thread :is(.nt-robe-piece,.nt-fold) img{filter:saturate(.55) sepia(.12) drop-shadow(0 4px 6px #23314d66)}
.poem-needle-thread :is(.nt-robe-piece,.nt-fold)[aria-pressed="true"] img{filter:saturate(.55) sepia(.12) drop-shadow(0 0 6px #f2b14a) drop-shadow(0 0 2px #f2b14a)}
/* 穿上：衣服飛到他胸前散開；新衣從領口往下穿到他身上（衣服圖的素布用 multiply 疊在原畫上，原畫的衣紋、腰帶、領子都還看得見），再掃過一道柔光 */
.poem-needle-thread .nt-robe-piece.is-worn{animation:nt-wear .9s ease forwards}
@keyframes nt-wear{0%{transform:translate(-50%,-50%) scale(1)}45%{transform:translate(-50%,-50%) scale(1.25);opacity:.9}100%{transform:translate(-50%,-50%) scale(1.35);opacity:0}}
.poem-needle-thread .nt-worn{inset:0;z-index:1;pointer-events:none;overflow:hidden;opacity:0;mix-blend-mode:multiply}
.poem-needle-thread .nt-worn img{position:absolute;max-width:none;height:auto;filter:saturate(1.05) brightness(1.3)}
.poem-needle-thread .nt-worn.is-on{opacity:1}
.poem-needle-thread.is-dressing .nt-worn{-webkit-mask:linear-gradient(#000 0 40%,#0000 60%) 0 0/100% 250% no-repeat;mask:linear-gradient(#000 0 40%,#0000 60%) 0 0/100% 250% no-repeat;animation:nt-puton 1.1s ease-out .3s both}
@keyframes nt-puton{from{-webkit-mask-position:0 100%;mask-position:0 100%}to{-webkit-mask-position:0 0;mask-position:0 0}}
.poem-needle-thread .nt-shine{inset:0;z-index:2;pointer-events:none;opacity:0;mix-blend-mode:screen;background:linear-gradient(100deg,#fff0 0 42%,#fff4d0aa 50%,#fff0 58% 100%) 100% 0/300% 100% no-repeat}
.poem-needle-thread.is-dressing .nt-shine{animation:nt-shine 1s ease-in-out 1.3s both}
@keyframes nt-shine{0%{opacity:1;background-position:100% 0}100%{opacity:1;background-position:0 0}}

/* 第三步：縫（縫在他身上那件新衣的衣襟上） */
.poem-needle-thread .nt-seam{stroke:#fff4d6;stroke-width:2px;stroke-dasharray:1.2 1.6;opacity:.75}
.poem-needle-thread .nt-dot{stroke:#fff4d6;stroke-width:7px;opacity:0;transition:opacity .4s}
.poem-needle-thread .nt-dot.is-show{opacity:.65}
.poem-needle-thread .nt-dot.is-next{opacity:1;stroke:#ffd76a;stroke-width:11px}
.poem-needle-thread .nt-st{stroke:#fbf3dc;stroke-width:4px;filter:drop-shadow(0 1px 0 #1b2742)}
.poem-needle-thread .nt-lst{stroke:#d9c7a3;stroke-width:3px}
.poem-needle-thread.is-loose .nt-loose{animation:nt-unpick 2.6s ease forwards}
@keyframes nt-unpick{0%,55%{opacity:1}100%{opacity:0}}
.poem-needle-thread .nt-sew-layer{left:var(--x);top:var(--y);width:var(--w);height:var(--h);z-index:4;pointer-events:none}
.poem-needle-thread .nt-sew-layer.is-live{pointer-events:auto;touch-action:none;cursor:crosshair}
.poem-needle-thread .nt-needle-small{left:var(--x);top:var(--y);height:12%;width:auto;z-index:6;transform:translate(-50%,-100%) rotate(28deg);transform-origin:50% 100%;filter:drop-shadow(0 0 2px #fffbe9) drop-shadow(1px 2px 2px #1b274288);pointer-events:none;transition:left .25s,top .25s}
.poem-needle-thread.is-tracing .nt-needle-small{transition:none}
.poem-needle-thread .nt-stitch{left:var(--x);top:var(--y);z-index:5;width:max(48px,4.5%);aspect-ratio:1;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:none;touch-action:none;cursor:pointer}
.poem-needle-thread .nt-stitch span{width:40%;aspect-ratio:1;border-radius:50%;border:2px solid #ffd76a;box-shadow:0 0 10px #ffd76a;animation:nt-pulse 1.6s ease-in-out infinite}

/* 第四步：包袱 */
.poem-needle-thread .nt-cloth{left:var(--x);top:var(--y);z-index:3;width:var(--w);min-width:48px;min-height:48px;padding:0;transform:translate(-50%,-50%);border:0;background:none;cursor:pointer}
.poem-needle-thread .nt-cloth img{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 4px #1f2b4455);pointer-events:none}
.poem-needle-thread .nt-cloth.is-cue img{filter:drop-shadow(0 0 7px #ffd76a) drop-shadow(0 0 2px #ffd76a)}
.poem-needle-thread .nt-fold.is-in{animation:nt-in .6s ease forwards}
@keyframes nt-in{to{transform:translate(-50%,-50%) scale(.35);opacity:0}}
.poem-needle-thread .nt-bundle{left:var(--x);top:var(--y);width:var(--w);height:auto;z-index:4;transform:translate(-50%,-50%) scale(.6);opacity:0;filter:drop-shadow(0 4px 5px #1f2b4466);pointer-events:none;transition:opacity .5s,transform .5s cubic-bezier(.3,1.6,.5,1)}
.poem-needle-thread .nt-bundle.is-on{opacity:1;transform:translate(-50%,-50%) scale(1)}

/* 第五步：小草和陽光 */
/* 小草一開始有點垂着、顏色暗一點；太陽照暖以後慢慢挺直、變亮 */
.poem-needle-thread .nt-grass{left:var(--x);top:var(--y);width:var(--w);z-index:3;transform:translate(-50%,-100%) scale(var(--g,1));transform-origin:50% 100%;rotate:-6deg;filter:saturate(.8) brightness(.93);transition:transform .3s ease,rotate 3s ease .6s,filter 3s ease .3s;pointer-events:none}
.poem-needle-thread.is-sunlit .nt-grass{rotate:0deg;filter:saturate(1.15) brightness(1.08)}
.poem-needle-thread .nt-grass img{display:block;height:auto;filter:drop-shadow(0 2px 2px #3d4a2266)}
.poem-needle-thread .nt-grass-small{width:100%;opacity:calc(1 - var(--t,0))}
.poem-needle-thread .nt-grass-tall{position:absolute;left:50%;bottom:0;width:78%;transform:translateX(-50%);opacity:var(--t,0)}
.poem-needle-thread.is-reaching .nt-grass{animation:nt-reach 1.4s ease-in-out}
@keyframes nt-reach{0%,100%{rotate:-6deg}25%{rotate:-1deg}50%{rotate:-7deg}75%{rotate:-2deg}}
.poem-needle-thread .nt-pull{left:var(--x);top:var(--y);z-index:6;width:max(48px,5%);aspect-ratio:1;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:2px solid #fffaf0;border-radius:50%;background:#7aa25fdd;box-shadow:0 3px 8px #2e3d1f55;touch-action:none;cursor:grab;transition:top .3s ease}
.poem-needle-thread .nt-pull svg{width:58%;height:58%;fill:none;stroke:#fffdf3;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.poem-needle-thread .nt-sunglow{inset:0;z-index:2;pointer-events:none;background:radial-gradient(circle at 92% 20%,#fff6c8aa 0,#ffe7a044 9%,#ffe7a000 24%)}
.poem-needle-thread.is-reaching .nt-sunglow{animation:nt-glow 1.4s ease-in-out}
@keyframes nt-glow{50%{opacity:.5}}
/* 照暖：沒有光束。整幅畫慢慢染上暖色，太陽那邊的天空亮一點，越往左下越淡 */
.poem-needle-thread .nt-warmth{inset:0;z-index:2;pointer-events:none;opacity:0;mix-blend-mode:soft-light;background:radial-gradient(ellipse 75% 110% at 92% 18%,#fff2c8 0,#ffd88c 35%,#ffc77000 100%),#ffcc7a;transition:opacity 3.5s ease .2s}
.poem-needle-thread.is-sunlit .nt-warmth{opacity:.75}

/* 共用：亮圈、示範手指 */
.poem-needle-thread .nt-burst{left:var(--x);top:var(--y);z-index:7;width:12%;aspect-ratio:1;transform:translate(-50%,-50%) scale(.2);border:3px solid #ffe08a;border-radius:50%;opacity:0;pointer-events:none}
.poem-needle-thread .nt-burst.is-on{animation:nt-burst .9s ease-out forwards}
.poem-needle-thread .nt-burst.is-soft{width:22%;border-width:2px;border-color:#fff3cf}
@keyframes nt-burst{0%{opacity:1;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}
/* 指尖在圖形 (17,4)/(40,48)：對準 --fx/--fy */
.poem-needle-thread .nt-hand{left:var(--fx);top:var(--fy);z-index:8;width:max(30px,3.6%);opacity:0;pointer-events:none;transform:translate(-42.5%,-8%)}
.poem-needle-thread .nt-hand.is-still{opacity:1}
.poem-needle-thread .nt-hand svg{display:block;width:100%;height:auto;fill:#fffdf6;stroke:#5b4630;stroke-width:2;filter:drop-shadow(0 2px 3px #0005)}
.poem-needle-thread .nt-hand.is-on{animation:nt-demo 2.4s ease-in-out forwards}
@keyframes nt-demo{0%{left:var(--fx);top:var(--fy);opacity:0}15%{left:var(--fx);top:var(--fy);opacity:1}80%{left:var(--tx);top:var(--ty);opacity:1}100%{left:var(--tx);top:var(--ty);opacity:0}}
/* 錯兩次：要拿的和要放的一起亮 */
.poem-needle-thread .nt-glow{outline:4px solid #ffcf4a;outline-offset:3px;box-shadow:0 0 0 7px #ffcf4a55,0 0 22px 8px #ffd76acc;animation:nt-glow-pulse 1.2s ease-in-out infinite}
.poem-needle-thread .nt-tip.nt-glow,.poem-needle-thread .nt-eye.nt-glow,.poem-needle-thread .nt-stitch.nt-glow{border-radius:50%}
@keyframes nt-glow-pulse{50%{box-shadow:0 0 0 11px #ffcf4a33,0 0 30px 12px #ffd76aee}}
@keyframes nt-breathe{50%{transform:translate(-50%,-50%) scale(1.12)}}
@keyframes nt-pulse{50%{transform:scale(1.25)}}

/* 「怎麼玩」卡：蓋住畫面。窄畫面：標題和「開始」同一行，步驟在下面；寬畫面：「開始」放最下面 */
.poem-needle-thread .nt-howto{position:absolute;inset:0;z-index:9;display:grid;place-items:center;padding:clamp(5px,2.2cqw,24px);background:#f4efe2b8}
.poem-needle-thread .nt-howto-card{display:grid;grid-template-columns:auto auto;grid-template-areas:"h go" "ol ol";align-items:center;gap:clamp(8px,2.4cqw,28px);max-width:100%;max-height:100%;padding:clamp(6px,2cqw,24px) clamp(8px,2.6cqw,32px);border:2px solid #e3c98f;border-radius:16px;background:#fffdf6;box-shadow:0 6px 18px #2c443129}
.poem-needle-thread .nt-howto-text{display:contents}
.poem-needle-thread .nt-howto h3{grid-area:h;margin:0;font-size:clamp(17px,3.4cqw,30px);line-height:1.2;color:var(--nt-warm)}
.poem-needle-thread .nt-howto ol{grid-area:ol;display:grid;gap:clamp(2px,1.1cqw,12px);margin:0;padding:0;list-style:none}
.poem-needle-thread .nt-howto li{display:flex;align-items:center;gap:clamp(4px,.9cqw,10px);font-size:clamp(14px,2.7cqw,23px);font-weight:600;line-height:1.25;white-space:nowrap}
.poem-needle-thread .nt-howto li b{flex:none;display:grid;place-items:center;width:1.3em;height:1.3em;border-radius:50%;background:#e8edf5;color:#3c5478;font-size:.82em}
.poem-needle-thread .nt-howto li svg{flex:none;width:1.35em;height:1.35em;fill:none;stroke:#8a4f24;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#8a4f24}
.poem-needle-thread .nt-start{grid-area:go;justify-self:end;min-height:48px;min-width:4em;padding:6px 16px;border:0;border-radius:16px;background:#b8652b;color:#fffaf0!important;font-size:clamp(19px,2.8cqw,26px);font-weight:700;box-shadow:0 3px 0 #7c3f15;cursor:pointer}
.poem-needle-thread .nt-start:active{transform:translateY(2px);box-shadow:0 1px 0 #7c3f15}
@container (min-width:560px){
 .poem-needle-thread .nt-howto-card{grid-template-columns:auto;grid-template-areas:"h" "ol" "go";justify-items:center;row-gap:clamp(8px,1.6cqw,18px)}
 .poem-needle-thread .nt-howto h3{justify-self:start}
 .poem-needle-thread .nt-start{justify-self:center;min-width:6em}
}
.poem-needle-thread .nt-loading{position:absolute;inset:0;z-index:9;display:grid;place-content:center;gap:10px;background:#f7f3e9e6;font-size:19px;text-align:center}
.poem-needle-thread .nt-loading button{min-height:48px;padding:8px 18px;border:1px solid #9aa8bd;border-radius:14px;background:#fffefa;font-size:19px;font-weight:600;cursor:pointer}

/* 側欄 */
.poem-needle-thread .nt-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-needle-thread .nt-verse{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 10px;border-radius:14px;background:#f3f5f9;border:1px solid #dfe4ec}
.poem-needle-thread .nt-half{display:block;text-align:center;font-size:clamp(22px,2.6vw,27px);line-height:1.6;letter-spacing:.06em}
.poem-needle-thread .nt-choice{padding:10px 12px;border-radius:14px;background:#fff8e8;border:1px solid #edd6aa}
.poem-needle-thread .nt-ask{margin:0 0 8px;font-size:19px;font-weight:650;line-height:1.4}
.poem-needle-thread .nt-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.poem-needle-thread .nt-options button{min-height:52px;padding:6px 8px;border:1px solid #c9a46b;border-radius:14px;background:#fffefa;font-size:19px;font-weight:650;cursor:pointer}
.poem-needle-thread .nt-options button:disabled{opacity:.55;cursor:default}
.poem-needle-thread .nt-summary{padding:10px 12px;border-radius:14px;background:#f6e5c8;color:#5d3517}
.poem-needle-thread .nt-summary b{font-size:19px}
.poem-needle-thread .nt-summary p{margin:4px 0 0;font-size:19px;line-height:1.5}
.poem-needle-thread .nt-tools{display:flex;justify-content:center}
.poem-needle-thread .nt-listen{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:8px 18px;border:1px solid #9aa8bd;border-radius:14px;background:#fffefa;font-size:19px;font-weight:600;cursor:pointer}
.poem-needle-thread .nt-listen svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.poem-needle-thread .nt-feedback{margin:0;min-height:1.5em;font-size:19px;line-height:1.5;color:#4a5874}

@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-needle-thread{max-width:1280px}
 .poem-needle-thread .nt-layout{grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;align-items:center}
 .poem-needle-thread .nt-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
}
.poem-needle-thread.is-reduced *{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.poem-needle-thread *{transition:none!important;animation:none!important}}

/* 2026-11-02 橫屏和其他遊戲一致：畫面用滿高度，側欄上面任務、中間詩句和選項、按鈕在最下面。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-needle-thread{height:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
 .poem-needle-thread .nt-layout{grid-column:1/-1;width:100%;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;row-gap:14px;column-gap:24px}
 .poem-needle-thread .nt-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-needle-thread .nt-head{align-self:start;padding-bottom:12px;border-bottom:1.5px solid #dfe4ec}
 .poem-needle-thread .nt-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-needle-thread .nt-progress{font-size:19px}
 .poem-needle-thread .nt-side{align-self:stretch;gap:16px}
 .poem-needle-thread .nt-side::before,.poem-needle-thread .nt-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-needle-thread .nt-side::before{order:-1}.poem-needle-thread .nt-side::after{order:8}
 .poem-needle-thread .nt-half{font-size:clamp(26px,2.8vw,32px)}
 .poem-needle-thread .nt-ask{font-size:21px}
 .poem-needle-thread .nt-options button{min-height:58px;font-size:21px}
 .poem-needle-thread .nt-summary b{font-size:23px}
 .poem-needle-thread .nt-summary p{font-size:20px}
 .poem-needle-thread .nt-feedback{min-height:0;font-size:21px;text-align:center}
 .poem-needle-thread .nt-tools{order:9}
 .poem-needle-thread.is-done .nt-feedback{display:none}
 .poem-needle-thread .nt-listen{width:100%;justify-content:center;min-height:62px;font-size:23px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-needle-thread .nt-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);row-gap:4px;column-gap:14px}
 .poem-needle-thread .nt-stage{border-radius:14px}
 .poem-needle-thread .nt-head{flex-wrap:nowrap;padding-bottom:3px;border-bottom:0;gap:6px}
 .poem-needle-thread .nt-instruction{flex:1 1 auto;font-size:16px;line-height:1.25}
 .poem-needle-thread .nt-head-tools{gap:4px}
 .poem-needle-thread .nt-progress{min-width:0;padding:2px 8px;font-size:14px}
 .poem-needle-thread .nt-help{min-height:32px;padding:2px 10px;font-size:14px}
 .poem-needle-thread .nt-side{gap:3px}
 .poem-needle-thread .nt-verse{flex-direction:row;justify-content:center;gap:0 .5em;padding:2px 8px}
 .poem-needle-thread .nt-half{font-size:17px;line-height:1.35}
 .poem-needle-thread .nt-choice{padding:3px 8px}
 .poem-needle-thread .nt-ask{margin:0 0 3px;font-size:14px}
 .poem-needle-thread .nt-options{gap:6px}
 .poem-needle-thread .nt-options button{min-height:36px;padding:2px 6px;font-size:15px}
 .poem-needle-thread .nt-summary{padding:3px 8px}
 .poem-needle-thread .nt-summary b{font-size:15px;margin-right:.4em}
 .poem-needle-thread .nt-summary p{display:inline;margin:0;font-size:14px;line-height:1.35}
 .poem-needle-thread .nt-feedback{font-size:14px;line-height:1.3}
 .poem-needle-thread .nt-listen{min-height:36px;padding:2px 10px;font-size:16px}
}

/* poem-games/season-dial.css */
/* poem-games/season-dial.css：《贈劉景文》季節盤。所有畫面疊加物都用 16:9 畫面的 % 座標。 */
.poem-season-dial{--sd-ink:#2f4a3c;--sd-soft:#5d7163;--sd-paper:#fffdf7;--sd-line:#ddd6c4;--sd-gold:#e3a548;--sd-wood:#7a4a2c;display:block;width:100%;max-width:900px;margin-inline:auto;align-self:start;align-self:safe center;color:var(--sd-ink);font-family:var(--sans);min-width:0}
.poem-season-dial *{box-sizing:border-box}
.poem-season-dial [hidden]{display:none!important}
.poem-season-dial button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-season-dial button:focus-visible,.poem-season-dial .sd-dial:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-season-dial img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
.poem-season-dial .sd-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-season-dial .sd-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-season-dial .sd-instruction{flex:1 1 auto;min-width:0;margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42}
.poem-season-dial .sd-instruction span{display:inline-block}
.poem-season-dial .sd-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#edf3e7;color:#3c6447;font-size:19px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-season-dial.is-done .sd-progress{background:#f6e5c8;color:#8a4f24}
.poem-season-dial .sd-howbtn{flex:none;min-height:44px;padding:4px 12px;border:1.5px solid #c9b48f;border-radius:22px;background:#fffaf0;color:#7a4a2c;font-size:17px;font-weight:650;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:0 2px 0 #e6dcc4}
/* 「怎麼玩」卡：蓋在畫面上，大小跟着畫面（容器寬 cqw）縮放，最小的手機也放得下。 */
.poem-season-dial .sd-how{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:clamp(4px,1.6cqw,18px);background:#f7f2e4c7;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.poem-season-dial .sd-how-box{display:grid;justify-items:center;gap:clamp(4px,1.6cqw,16px);max-width:100%;max-height:100%;padding:clamp(5px,2cqw,22px) clamp(10px,3.4cqw,34px);border-radius:clamp(12px,2.4cqw,22px);background:var(--sd-paper);border:1.5px solid #e3d5b6;box-shadow:0 8px 24px #2c44312e;animation:sd-rise-in .35s ease both}
.poem-season-dial .sd-how-title{margin:0;font-size:clamp(16px,4cqw,30px);font-weight:750;line-height:1.15;letter-spacing:.12em;color:#7b3e22}
.poem-season-dial .sd-how-steps{display:grid;gap:clamp(2px,1cqw,10px);margin:0;padding:0;list-style:none}
.poem-season-dial .sd-how-steps li{display:flex;align-items:center;gap:clamp(4px,1.2cqw,12px);font-size:clamp(14px,3.3cqw,24px);font-weight:650;line-height:1.25;color:var(--sd-ink)}
.poem-season-dial .sd-how-steps b{flex:none;display:grid;place-items:center;width:1.3em;height:1.3em;border-radius:50%;background:#7a4a2c;color:#fff7e6;font-size:.82em;line-height:1}
.poem-season-dial .sd-how-steps svg{flex:none;width:1.45em;height:1.45em;fill:#fffaf0;stroke:#7a4a2c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.poem-season-dial .sd-how-steps svg .sd-g-ring{fill:none;stroke:#d9893a;stroke-width:2}
.poem-season-dial .sd-how-steps span{white-space:nowrap}
.poem-season-dial .sd-how-go{min-height:48px;min-width:clamp(120px,24cqw,200px);padding:4px 30px;border:0;border-radius:24px;background:#7a4a2c;color:#fff7e6!important;font-size:clamp(18px,3.6cqw,26px);font-weight:750;letter-spacing:.2em;cursor:pointer;box-shadow:0 3px 0 #4f2f1a}
.poem-season-dial .sd-how-go:active{transform:translateY(2px);box-shadow:0 1px 0 #4f2f1a}
.poem-season-dial.is-how .sd-cam :is(button,.sd-bubble){visibility:hidden}

/* 畫面 */
.poem-season-dial .sd-stage{--spr:0;--sum:1;--aut:0;--win:0;container-type:inline-size;grid-area:stage;position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#e6e0cf;border:1px solid #d6d0bd;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
/* 鏡頭：第二步推近菊枝。--zs 放大倍數，--zl/--zt 左邊/上面藏起的 %。 */
.poem-season-dial .sd-cam{--zs:1.4;--zl:28;--zt:28.5;position:absolute;inset:0;transform-origin:0 0;transition:transform 1.6s cubic-bezier(.45,.05,.25,1)}
.poem-season-dial[data-step="1"] .sd-cam{transform:translate(calc(var(--zl) * var(--zs) * -1%),calc(var(--zt) * var(--zs) * -1%)) scale(var(--zs))}
.poem-season-dial .sd-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.poem-season-dial :is(.sd-scene-2,.sd-scene-3,.sd-scene-4){opacity:0;transition:opacity 1.1s ease,filter 1.6s ease}
.poem-season-dial .sd-scene.is-on{opacity:1}
.poem-season-dial[data-step="2"] .sd-scene-4{opacity:var(--win);transition:opacity .6s ease,filter 1.6s ease}
.poem-season-dial .sd-scene-4.is-misty{filter:saturate(.3) brightness(1.1) contrast(.88)}
.poem-season-dial[data-step="2"] .sd-scene-4.is-misty{filter:saturate(.6) brightness(1.05) contrast(.94)}
/* 夏天的荷塘（只蓋左邊荷塘；第三步遮到人物前就淡出）。春天用同一張圖調成淡淡的嫩綠，不另外畫花。 */
.poem-season-dial .sd-season{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity .6s ease}
/* 第一輪（找秋）：四張畫都沒有人；第二輪（找冬）：四張畫都有蘇軾和朋友。 */
.poem-season-dial[data-step="0"] .sd-r1-spring{opacity:var(--spr)}
.poem-season-dial[data-step="0"] .sd-r1-summer{opacity:var(--sum)}
.poem-season-dial[data-step="0"] .sd-r1-winterEmpty{opacity:var(--win)}
.poem-season-dial[data-step="2"] .sd-r2-springFriends{opacity:var(--spr)}
.poem-season-dial[data-step="2"] .sd-r2-summerFriends{opacity:var(--sum)}
/* 菊枝：三節，各自繞節點轉；霜壓下來彎，放開彈回去。 */
.poem-season-dial .sd-branch{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:var(--h);pointer-events:none;display:none;filter:drop-shadow(0 4px 6px #2a1d1040)}
.poem-season-dial[data-step="1"] .sd-branch{display:block}
.poem-season-dial .sd-seg{position:absolute;inset:0}
.poem-season-dial .sd-seg-low{--b:6;transform-origin:49.75% 100%}
.poem-season-dial .sd-seg-mid{--b:10;transform-origin:49.75% 60.36%}
.poem-season-dial .sd-seg-top{--b:16;transform-origin:49.75% 35.41%}
.poem-season-dial .sd-part{position:absolute;left:var(--pl);top:var(--pt);width:var(--pw);height:auto}
.poem-season-dial .sd-bloom{filter:saturate(.72) sepia(.18)}
.poem-season-dial .sd-branch .sd-seg{transition:transform .45s cubic-bezier(.5,0,.8,.6)}
.poem-season-dial .sd-branch.is-press .sd-seg{transform:rotate(calc(var(--b) * 1deg))}
.poem-season-dial .sd-branch.is-spring .sd-seg{animation:sd-spring 1.1s cubic-bezier(.2,.7,.3,1) both}
.poem-season-dial .sd-frost-on{position:absolute;left:27%;top:3%;width:46%;height:auto;opacity:0;filter:saturate(.35) brightness(1.25);transform:translateY(-30%);transition:opacity .25s ease,transform .35s ease-in}
.poem-season-dial .sd-branch.is-press .sd-frost-on{opacity:.8;transform:none}
.poem-season-dial .sd-branch.is-spring .sd-frost-on{opacity:0;transform:translateY(-14%) scale(.8);transition:opacity .9s ease .1s,transform .9s ease}
.poem-season-dial .sd-target{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:var(--h);min-width:48px;min-height:48px;padding:0;border:2.5px dashed transparent;border-radius:46% 46% 40% 40%;background:none;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.poem-season-dial .sd-target.is-cue{border-color:#fffaeef2;box-shadow:0 0 0 2px #4a332055,0 0 16px 5px #fff4d655;animation:sd-call 1.6s ease-in-out infinite}
.poem-season-dial .sd-target.is-over{border-style:solid;border-color:#ffd27a;background:radial-gradient(closest-side,#fff3c94d,#ffe6a01f 70%,transparent);box-shadow:0 0 0 4px #ffcf7366,0 0 22px 8px #ffd98a55}
.poem-season-dial .sd-target:disabled{cursor:default}
.poem-season-dial .sd-frost{position:absolute;left:var(--x);top:var(--y);z-index:3;display:grid;justify-items:center;width:var(--w);min-width:48px;padding:0;border:0;background:none;transform:translate(-50%,-50%);cursor:grab;touch-action:none;transition:transform .2s,opacity .2s;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-season-dial .sd-frost img{display:block;width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 0 6px #ffffffcc) drop-shadow(0 3px 4px #2a3d4a44);animation:sd-float 2.6s ease-in-out infinite alternate}
.poem-season-dial .sd-frost span{margin-top:-8%;padding:1px 10px;border-radius:999px;background:#fffaf0f0;color:#2f4a5c;font-size:clamp(11px,1.6cqw,19px);font-weight:700;line-height:1.35;box-shadow:0 2px 5px #2a1d1033}
.poem-season-dial .sd-frost[aria-pressed=true]{transform:translate(-50%,-50%) scale(1.12)}
.poem-season-dial .sd-frost[aria-pressed=true] img{filter:drop-shadow(0 0 4px #ffe7a6) drop-shadow(0 0 12px #ffd27a)}
.poem-season-dial .sd-frost.is-source{opacity:.35}
.poem-season-dial .sd-frost:disabled{cursor:default}
/* 橙和橘：霜霧裏灰灰的，點一下亮起來。 */
.poem-season-dial .sd-fruit{position:absolute;left:var(--x);top:var(--y);z-index:2;width:5.4%;min-width:48px;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:none;transform:translate(-50%,-50%);cursor:pointer}
.poem-season-dial .sd-fruit img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:saturate(.25) brightness(1.12) opacity(.9);transition:filter .5s ease,transform .5s ease}
.poem-season-dial .sd-fruit:not(:disabled)::before{content:'';position:absolute;inset:-8%;border-radius:50%;border:2px dashed #fffaeecc;animation:sd-call 2s ease-in-out infinite}
.poem-season-dial .sd-fruit.is-lit img{filter:saturate(1.25) brightness(1.06) drop-shadow(0 0 7px #ffe39a) drop-shadow(0 0 16px #ffd36a99);animation:sd-pop .6s ease both}
.poem-season-dial .sd-fruit.is-tangerine.is-lit img{filter:saturate(1.3) brightness(1.06) drop-shadow(0 0 7px #e4ffb0) drop-shadow(0 0 16px #b6e36a99)}
.poem-season-dial .sd-fruit:disabled{cursor:default}
.poem-season-dial .sd-bubble{position:absolute;left:80%;top:15%;z-index:3;margin:0;padding:4px 14px;border-radius:16px;background:#fffaf0f2;color:#7b3e22;font-size:clamp(12px,2.2cqw,24px);font-weight:700;letter-spacing:.08em;line-height:1.4;transform:translate(-50%,-50%);box-shadow:0 3px 10px #2a1d1033;pointer-events:none;opacity:0;transition:opacity .5s ease}
.poem-season-dial .sd-bubble::after{content:'';position:absolute;left:46%;top:100%;border:8px solid transparent;border-top-color:#fffaf0f2}
.poem-season-dial[data-step="2"] .sd-bubble{opacity:1;animation:sd-rise .7s ease .4s both}
.poem-season-dial .sd-fx{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}
.poem-season-dial .sd-spark{position:absolute;left:var(--x);top:var(--y);width:1.2%;min-width:6px;aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:0 0 6px 2px #fff7d6;animation:sd-spark 1.1s ease-out var(--d) both}
.poem-season-dial .sd-touch{position:absolute;left:var(--x1,50%);top:var(--y1,50%);z-index:6;width:4.6%;min-width:30px;aspect-ratio:1;border-radius:50%;background:#ffffffd9;border:2px solid #fff;box-shadow:0 0 0 3px #00000022,0 3px 8px #0003;transform:translate(-50%,-50%);pointer-events:none;display:none}
.poem-season-dial.is-demo:is([data-step="1"],[data-step="3"]) .sd-touch{display:block;animation:sd-touch 2.4s ease-in-out both}
.poem-season-dial.is-demo .sd-touch::after{content:'';position:absolute;inset:-6px;border-radius:50%;border:2px solid #fff;animation:sd-ring 1s ease-out .2s 2}
.poem-season-dial .sd-loading{position:absolute;inset:0;z-index:9;display:grid;align-content:center;justify-items:center;gap:14px;padding:20px;background:#f5f2eae8;font-size:20px;line-height:1.5;text-align:center}
.poem-season-dial .sd-loading button{min-height:48px;padding:10px 22px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-weight:600;font-size:19px;cursor:pointer}
.poem-season-dial .sd-ghost{position:fixed;left:0;top:0;z-index:80;width:96px;transform:translate(-50%,-55%);pointer-events:none;filter:drop-shadow(0 0 8px #fff) drop-shadow(0 8px 10px #2a1d1045)}
.poem-season-dial .sd-ghost img{display:block;width:100%;height:auto}

/* 側欄 */
.poem-season-dial .sd-side{grid-area:side;display:flex;flex-direction:column;gap:12px;min-width:0}
.poem-season-dial .sd-verse{display:block;margin:0;padding:8px 10px;text-align:center;border-radius:16px;background:#fbf7ec;border:1px solid #e8e0cc;font-size:clamp(22px,2.8vw,28px);font-weight:650;letter-spacing:.06em;line-height:1.2}
.poem-season-dial .sd-card{display:grid;justify-items:center;min-height:66px}
/* 季節盤：左邊盤，右邊「現在是哪一季」和「確認」。 */
.poem-season-dial .sd-dialbox{--d:clamp(150px,22vw,190px);display:grid;grid-template-columns:var(--d) auto;grid-template-areas:"dial cap" "dial ok";align-content:center;align-items:center;justify-items:center;gap:10px 14px;padding:4px}
.poem-season-dial .sd-dial{grid-area:dial;position:relative;width:var(--d);aspect-ratio:1;border-radius:50%;touch-action:manipulation;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-season-dial .sd-confirm{grid-area:ok;align-self:start;min-width:128px;min-height:56px;padding:6px 26px;border:0;border-radius:28px;background:#b5523b;color:#fff8ec!important;font-size:24px;font-weight:750;letter-spacing:.18em;line-height:1.2;cursor:pointer;box-shadow:0 4px 0 #7d3424;transition:transform .15s,box-shadow .15s,opacity .2s}
.poem-season-dial .sd-confirm:active{transform:translateY(3px);box-shadow:0 1px 0 #7d3424}
.poem-season-dial .sd-confirm:disabled{opacity:.5;cursor:default}
.poem-season-dial.is-demo-ok .sd-confirm{animation:sd-ok 1.2s ease-in-out 2}
.poem-season-dial .sd-dial[aria-disabled=true]{cursor:default}
.poem-season-dial .sd-nudge{position:absolute;inset:0}
.poem-season-dial .sd-wheel{--rot:0deg;position:absolute;inset:0;transform:rotate(var(--rot));transition:transform .6s cubic-bezier(.3,1.35,.5,1)}
/* 盤面四色不動：春粉、夏綠、秋黃、冬藍，順時針。 */
.poem-season-dial .sd-face{position:absolute;inset:7%;border-radius:50%;background:radial-gradient(closest-side,#fffaf0 0 22%,transparent 60%),conic-gradient(from -45deg,#f6d6dc 0 90deg,#cfe3bf 90deg 180deg,#f3ddb3 180deg 270deg,#d9e6ee 270deg 360deg);box-shadow:inset 0 0 12px #6b4a2a40}
.poem-season-dial .sd-rim{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 4px 6px #3b2a1a40)}
.poem-season-dial .sd-hand{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:#b5523b;stroke:#fff8ea;stroke-width:1.6;stroke-linejoin:round;filter:drop-shadow(0 2px 2px #3b2a1a66)}
.poem-season-dial .sd-hand .sd-hand-pin{fill:#e3a548;stroke:none}
.poem-season-dial .sd-sector{position:absolute;z-index:2;left:var(--sx);top:var(--sy);width:54px;height:54px;padding:0;border:2px solid #fff8ea;border-radius:50%;background:#fffaf0f0;color:var(--sd-wood);font-size:25px;font-weight:700;line-height:1;transform:translate(-50%,-50%);transition:background .3s,color .3s,transform .3s;box-shadow:0 2px 5px #3b2a1a40;cursor:pointer;touch-action:manipulation}
.poem-season-dial .sd-sector.is-summer{color:#2f6b3d}
.poem-season-dial .sd-sector.is-autumn{color:#9a5a1e}
.poem-season-dial .sd-sector.is-winter{color:#3d6b8a}
.poem-season-dial .sd-sector.is-spring{color:#b04a66}
.poem-season-dial .sd-sector::before{content:'';position:absolute;inset:-9px;border-radius:50%}
.poem-season-dial .sd-sector:not(:disabled):active{transform:translate(-50%,-50%) scale(.94)}
.poem-season-dial.is-help .sd-sector.is-goal{background:#ffe7a8;border-color:#e3a548;animation:sd-glow 1.2s ease-in-out infinite}
.poem-season-dial.is-help:is([data-step="0"],[data-step="2"]) .sd-hand{filter:drop-shadow(0 0 6px #ffd27a) drop-shadow(0 2px 2px #3b2a1a55)}
.poem-season-dial.is-help .sd-frost img{filter:drop-shadow(0 0 6px #ffe7a6) drop-shadow(0 0 14px #ffd27a)}
.poem-season-dial.is-help[data-step="1"] .sd-target{border-color:#ffd27a;box-shadow:0 0 0 2px #4a332055,0 0 18px 6px #ffd98a77;animation:sd-call 1.4s ease-in-out infinite}
.poem-season-dial .sd-sector.is-current{background:#7a4a2c;color:#fff7e6;border-color:#f3c77a;box-shadow:0 0 0 3px #e3a54888,0 2px 6px #3b2a1a55;transform:translate(-50%,-50%) scale(1.08)}
.poem-season-dial .sd-sector:disabled{cursor:default}
.poem-season-dial .sd-orbit{--o1:0deg;--o2:90deg;position:absolute;inset:12%;z-index:3;border-radius:50%;pointer-events:none;display:none;transform:rotate(var(--o1))}
.poem-season-dial .sd-orbit b{position:absolute;left:50%;top:0;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:#ffffffc0;border:2px solid #fff;box-shadow:0 0 0 3px #00000026,0 3px 8px #0003}
.poem-season-dial .sd-orbit b::after{content:'';position:absolute;inset:-7px;border-radius:50%;border:2px solid #fff;opacity:0}
.poem-season-dial.is-demo:not(.is-demo-ok):is([data-step="0"],[data-step="2"]) .sd-orbit b{animation:sd-press 2.4s ease-in-out both}
.poem-season-dial.is-demo:not(.is-demo-ok):is([data-step="0"],[data-step="2"]) .sd-orbit b::after{animation:sd-tapring .9s ease-out .9s 2}
.poem-season-dial.is-demo:not(.is-demo-ok):is([data-step="0"],[data-step="2"]) .sd-orbit{display:block;animation:sd-orbit 2.4s ease-in-out both}
.poem-season-dial .sd-cap{grid-area:cap;align-self:end;margin:0;padding:3px 14px;border-radius:999px;background:#f4ecdb;color:#6b4a2a;font-size:19px;font-weight:650;line-height:1.4;white-space:nowrap}
.poem-season-dial :is(.sd-presses,.sd-fruits){display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 16px;border-radius:16px;background:#f3f5ee;font-size:19px;font-weight:600;color:var(--sd-soft)}
.poem-season-dial :is(.sd-press-icons,.sd-fruit-icons){display:flex;gap:6px}
.poem-season-dial :is(.sd-press-icons,.sd-fruit-icons) img{width:34px;height:34px;object-fit:contain;opacity:.35;filter:grayscale(1);transition:opacity .3s,filter .3s}
.poem-season-dial :is(.sd-press-icons,.sd-fruit-icons) img.is-on{opacity:1;filter:none}
.poem-season-dial .sd-summary{width:100%;padding:12px 16px;border-radius:16px;background:#fbf4e4;border:1px solid #ecdcbc;text-align:center}
.poem-season-dial .sd-summary b{display:block;font-size:21px;letter-spacing:.1em;color:#7b3e22}
.poem-season-dial .sd-summary p{margin:6px 0 0;font-size:19px;line-height:1.55;color:#4b5f50;text-align:left}
.poem-season-dial .sd-verserow{display:flex;align-items:center;gap:8px;min-width:0}
.poem-season-dial .sd-verserow .sd-verse{flex:1 1 auto;min-width:0}
.poem-season-dial .sd-listen{flex:none;display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid #b9cbae;border-radius:50%;background:#fffef7;color:#356148;cursor:pointer;box-shadow:0 3px 0 #e2e8da}
.poem-season-dial .sd-listen svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.poem-season-dial .sd-listen svg path:first-child{fill:currentColor}
.poem-season-dial .sd-feedback{margin:0;min-height:3em;font-size:19px;line-height:1.5;color:#4a6a59;text-align:center;text-wrap:pretty}

@keyframes sd-spring{0%{transform:rotate(calc(var(--b) * 1deg))}30%{transform:rotate(calc(var(--b) * -.5deg))}55%{transform:rotate(calc(var(--b) * .25deg))}78%{transform:rotate(calc(var(--b) * -.1deg))}100%{transform:rotate(0)}}
@keyframes sd-float{from{transform:translateY(-3%)}to{transform:translateY(3%)}}
@keyframes sd-call{50%{box-shadow:0 0 0 4px #ffd27a59,0 0 20px 8px #ffd98a4d}}
@keyframes sd-pop{0%{transform:scale(1)}45%{transform:scale(1.25)}100%{transform:scale(1)}}
@keyframes sd-rise{from{opacity:0;transform:translate(-50%,-30%)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes sd-spark{0%{opacity:0;transform:translate(-50%,-50%)}20%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy)))}}
@keyframes sd-touch{0%{left:var(--x1);top:var(--y1);opacity:0;transform:translate(-50%,-50%) scale(1.2)}15%{opacity:1;transform:translate(-50%,-50%) scale(1)}70%{left:var(--x2);top:var(--y2);opacity:1}100%{left:var(--x2);top:var(--y2);opacity:0}}
@keyframes sd-orbit{0%{opacity:0}15%,85%{opacity:1}100%{opacity:0}}
@keyframes sd-press{0%,25%{transform:scale(1.3)}45%{transform:scale(.8)}60%,100%{transform:scale(1)}}
@keyframes sd-tapring{0%{opacity:.9;transform:scale(.6)}100%{opacity:0;transform:scale(1.5)}}
@keyframes sd-ok{50%{transform:scale(1.08);box-shadow:0 4px 0 #7d3424,0 0 0 6px #ffd27a88}}
@keyframes sd-glow{50%{box-shadow:0 0 0 5px #ffd27a99,0 0 18px 6px #ffd98a88}}
@keyframes sd-rise-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* 直立平板：側欄分兩欄，左邊季節盤/計數，右邊詩句和提示。 */
@media (min-width:600px){
 .poem-season-dial .sd-side{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"card verse" "card fb";gap:10px 18px;align-items:start}
 .poem-season-dial .sd-verserow{grid-area:verse}
 .poem-season-dial .sd-card{grid-area:card;align-self:center}
 .poem-season-dial .sd-feedback{grid-area:fb;text-align:left}
 .poem-season-dial.is-done .sd-side{grid-template-columns:minmax(0,1fr);grid-template-areas:"verse" "card" "fb"}
}
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-season-dial{max-width:1280px}
 .poem-season-dial .sd-layout{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;row-gap:12px;align-items:center}
 .poem-season-dial .sd-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:center}
 .poem-season-dial .sd-head{align-self:end}
 .poem-season-dial .sd-side{align-self:start}
 .poem-season-dial .sd-side{display:flex}
 .poem-season-dial .sd-dialbox{--d:clamp(140px,14vw,200px)}
}
@media (orientation:landscape) and (min-width:1100px) and (min-height:700px){
 .poem-season-dial .sd-instruction{font-size:26px}
 .poem-season-dial .sd-feedback{font-size:20px}
}
/* 很矮的手機橫屏：畫面佔滿高度，右欄只留季節盤、詩句和提示。 */
@media (orientation:landscape) and (max-height:500px){
 .poem-season-dial .sd-layout{grid-template-columns:min(calc((100cqh - 2px) * 16 / 9),56%) minmax(0,1fr);column-gap:12px;row-gap:5px;align-items:start}
 .poem-season-dial .sd-stage{width:100%;border-radius:12px}
 .poem-season-dial .sd-head{gap:8px;align-self:start}
 .poem-season-dial .sd-instruction{font-size:17px;line-height:1.3}
 .poem-season-dial .sd-progress{min-width:50px;padding:2px 8px;font-size:15px}
 .poem-season-dial .sd-howbtn{padding:2px 9px;font-size:15px}
 .poem-season-dial .sd-side{gap:5px}
 .poem-season-dial .sd-verse{padding:2px 6px;font-size:19px}
 .poem-season-dial .sd-dialbox{--d:120px;gap:6px 12px;padding:2px}
 .poem-season-dial .sd-sector{width:38px;height:38px;font-size:19px}
 .poem-season-dial .sd-sector::before{inset:-5px}
 .poem-season-dial .sd-cap{font-size:15px;padding:2px 10px}
 .poem-season-dial .sd-confirm{min-width:110px;min-height:48px;padding:4px 18px;font-size:20px}
 .poem-season-dial :is(.sd-presses,.sd-fruits){padding:3px 8px;font-size:15px}
 .poem-season-dial :is(.sd-press-icons,.sd-fruit-icons) img{width:24px;height:24px}
 .poem-season-dial .sd-summary{padding:5px 10px}
 .poem-season-dial .sd-summary b{display:none}
 .poem-season-dial .sd-summary p{margin:0;font-size:14px;line-height:1.45}
 .poem-season-dial .sd-listen{min-height:44px;padding:4px 11px;font-size:15px}
 .poem-season-dial .sd-feedback{min-height:2.8em;font-size:15px;line-height:1.4;text-align:left}
}
@media (max-width:420px){
 .poem-season-dial .sd-layout{gap:10px}
 .poem-season-dial .sd-feedback{font-size:17px;line-height:1.45;text-align:left}
 .poem-season-dial .sd-dialbox{--d:148px;gap:8px 12px}
 .poem-season-dial .sd-verserow{gap:4px}
 .poem-season-dial .sd-verserow .sd-listen{width:44px;height:44px}
 .poem-season-dial .sd-verse{padding:6px 3px;font-size:20px;letter-spacing:0}
 .poem-season-dial .sd-howbtn{padding:2px 10px;font-size:16px}
 .poem-season-dial .sd-head{gap:8px}
}
@media (max-width:360px){
 .poem-season-dial .sd-verse{font-size:18px}
}
.poem-season-dial.is-reduced :is(.sd-cam,.sd-scene,.sd-season,.sd-wheel,.sd-sector,.sd-branch .sd-seg,.sd-frost-on,.sd-fruit img,.sd-bubble){transition:none!important}
.poem-season-dial.is-reduced :is(.sd-confirm,.sd-frost img,.sd-fruit::before,.sd-target,.sd-fruit img,.sd-bubble,.sd-branch .sd-seg,.sd-orbit,.sd-orbit b,.sd-orbit b::after,.sd-touch,.sd-touch::after,.sd-how-box,.sd-sector){animation:none!important}
@media (prefers-reduced-motion:reduce){
 .poem-season-dial :is(.sd-cam,.sd-scene,.sd-season,.sd-wheel,.sd-sector,.sd-branch .sd-seg,.sd-frost-on,.sd-fruit img,.sd-bubble){transition:none!important}
 .poem-season-dial :is(.sd-confirm,.sd-frost img,.sd-fruit::before,.sd-target,.sd-fruit img,.sd-bubble,.sd-branch .sd-seg,.sd-orbit,.sd-orbit b,.sd-orbit b::after,.sd-touch,.sd-touch::after,.sd-how-box,.sd-sector){animation:none!important}
}

/* poem-games/night-bell.css */
/* poem-games/night-bell.css：《楓橋夜泊》「夜半鐘聲」（night-bell.mjs）。所有選擇器都以 .poem-night-bell 開頭。 */
.poem-night-bell{--nb-ink:#2f3446;--nb-gold:#e9b44c;--nb-warm:#ffcf73;display:block;position:relative;width:100%;max-width:880px;margin-inline:auto;color:var(--nb-ink);font-family:var(--sans);min-width:0}
.poem-night-bell *{box-sizing:border-box}
.poem-night-bell [hidden]{display:none!important}
.poem-night-bell button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-night-bell button:focus-visible,.poem-night-bell input:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-night-bell img{max-width:none;-webkit-user-drag:none}
.poem-night-bell .nb-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:10px;align-content:center}
.poem-night-bell .nb-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-night-bell .nb-instruction{flex:1 1 auto;min-width:0;margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-night-bell .nb-howto-open{flex:none;min-height:44px;padding:4px 12px;border:1px solid #9aa3c0;border-radius:14px;background:#fffefa;color:#3c4a73;font-size:17px;font-weight:650;white-space:nowrap;cursor:pointer}
.poem-night-bell .nb-howto-open[aria-expanded="true"]{background:#2f3d68;border-color:#2f3d68;color:#fff7e2}
.poem-night-bell .nb-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#e7ebf4;color:#3c4a73;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}

/* 舞台：16:9，疊層用 % 座標；cqi = 舞台寬的 1%。 */
.poem-night-bell .nb-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;overflow:hidden;overflow:clip;border-radius:20px;background:#1e2638;border:1px solid #c9cfdc;box-shadow:0 6px 20px #1a203a2e;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-night-bell .nb-cam{position:absolute;inset:0;transform-origin:0 0;transition:transform 2.4s cubic-bezier(.45,.05,.25,1)}
.poem-night-bell.is-finale .nb-cam{transform:translate(var(--tx),var(--ty)) scale(var(--zs))}
.poem-night-bell .nb-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0;transition:opacity 1s ease}
.poem-night-bell .nb-scene.is-on{opacity:1}
.poem-night-bell .nb-s1,.poem-night-bell .nb-s2,.poem-night-bell .nb-s3,.poem-night-bell .nb-s4{position:absolute;inset:0;pointer-events:none;display:none}
.poem-night-bell[data-step="0"] .nb-s1,.poem-night-bell[data-step="1"] .nb-s2,.poem-night-bell[data-step="2"] .nb-s3,.poem-night-bell[data-step="3"] .nb-s4,.poem-night-bell[data-step="4"] .nb-s4{display:block}

/* 第一步：夜色、月落、烏啼、霜 */
.poem-night-bell .nb-moon-patch{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:auto}
.poem-night-bell .nb-dusk{position:absolute;inset:0;background:linear-gradient(180deg,#f3a35c 0%,#f6c27e55 45%,#f6c27e00 75%);mix-blend-mode:multiply;opacity:var(--dusk,1)}
.poem-night-bell .nb-darken{position:absolute;inset:0;background:linear-gradient(180deg,#0d1836 0%,#1a2a4d 60%,#22325a 100%);opacity:var(--night,0)}
.poem-night-bell .nb-moon{position:absolute;left:var(--mx,76%);top:var(--my,9%);width:var(--w);aspect-ratio:1;transform:translate(-50%,-50%);opacity:var(--moon,1)}
.poem-night-bell .nb-moon svg{display:block;width:100%;height:100%}
.poem-night-bell .nb-frost{position:absolute;inset:0;width:100%;height:100%;opacity:var(--frost,0);stroke:#f4f8ff;stroke-width:2.2;stroke-linecap:round;fill:none}
.poem-night-bell .nb-crow-glide{position:absolute;left:-14%;top:var(--y);width:10cqi;height:auto;opacity:0}
.poem-night-bell.is-glide:not(.is-crow) .nb-crow-glide{animation:nb-glide 3.2s ease-in-out forwards}
.poem-night-bell .nb-crow{position:absolute;left:var(--x);top:var(--y);width:9cqi;transform:translate(-50%,-50%) scale(.6);opacity:0;transition:opacity .4s,transform .5s cubic-bezier(.3,1.4,.5,1)}
.poem-night-bell.is-crow .nb-crow{opacity:1;transform:translate(-50%,-50%) scale(1)}
.poem-night-bell .nb-crow img{display:block;width:100%;height:auto;filter:drop-shadow(0 .3cqi .4cqi #0006);transform-origin:50% 100%}
.poem-night-bell .nb-crow .nb-crow-fly{position:absolute;left:0;top:10%;opacity:0}
.poem-night-bell.is-crow .nb-crow{animation:nb-flyoff 1.8s ease-in 1.9s forwards}
.poem-night-bell.is-crow .nb-crow-perch{animation:nb-bob .5s ease-in-out .2s 3,nb-hide .2s linear 1.9s forwards}
.poem-night-bell.is-crow .nb-crow-fly{animation:nb-show .2s linear 1.9s forwards,nb-flap .3s ease-in-out 1.9s 6}
.poem-night-bell .nb-crow i{position:absolute;left:8%;top:22%;width:5cqi;aspect-ratio:1;border:.35cqi solid #fff6dccc;border-color:#fff6dccc transparent transparent #fff6dccc;border-radius:50%;transform:translate(-50%,-50%) rotate(-45deg) scale(.4);opacity:0}
.poem-night-bell.is-crow .nb-crow i{animation:nb-caw .5s ease-out .2s 3}
.poem-night-bell.is-crow .nb-crow i:nth-of-type(2){animation-delay:.3s}
.poem-night-bell.is-crow .nb-crow i:nth-of-type(3){animation-delay:.4s}
/* 霜：鋪開以後冰晶一閃一閃 */
.poem-night-bell .nb-frost path{animation:nb-twinkle 2.6s ease-in-out infinite}
.poem-night-bell .nb-frost path:nth-of-type(3n){animation-delay:-.9s}
.poem-night-bell .nb-frost path:nth-of-type(3n+1){animation-delay:-1.7s}
.poem-night-bell .nb-frost path:nth-of-type(4n){animation-duration:3.4s}

/* 第二步：漁火 */
.poem-night-bell .nb-glow{position:absolute;left:var(--x);top:var(--y);width:var(--w);aspect-ratio:1.6;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#ffc76a55 0 25%,#ffc76a00 68%);mix-blend-mode:screen;opacity:0;transition:opacity 1.2s}
.poem-night-bell .nb-glow.is-on{opacity:1}
.poem-night-bell .nb-fire{position:absolute;left:var(--x);top:var(--y);width:4cqi;height:9cqi;transform:translate(-50%,-62%)}
.poem-night-bell .nb-fire .nb-off{position:absolute;left:50%;top:62%;width:7cqi;aspect-ratio:1.3;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#16203acc 0 22%,#16203a80 42%,#16203a00 70%);filter:blur(.4cqi);transition:opacity .8s}
.poem-night-bell .nb-fire .nb-halo{position:absolute;left:50%;top:40%;width:11cqi;aspect-ratio:1;transform:translate(-50%,-50%) scale(.3);border-radius:50%;background:radial-gradient(circle,#ffd98acc 0 14%,#ffb84a55 34%,#ffb84a00 66%);opacity:0;transition:opacity .8s,transform .8s}
.poem-night-bell .nb-fire .nb-streak{position:absolute;left:50%;top:100%;width:2.2cqi;height:14cqi;transform:translateX(-50%) scaleY(.2);transform-origin:50% 0;background:linear-gradient(180deg,#ffcf73cc,#ffcf7300);filter:blur(.3cqi);opacity:0;transition:opacity 1s .3s,transform 1s .3s}
.poem-night-bell .nb-fire img{position:absolute;left:50%;bottom:0;height:100%;width:auto;transform:translateX(-50%) scale(.2);transform-origin:50% 100%;opacity:0;transition:opacity .5s,transform .6s cubic-bezier(.3,1.5,.5,1)}
.poem-night-bell .nb-fire.is-lit .nb-off{opacity:0}
.poem-night-bell .nb-fire.is-lit .nb-halo{opacity:1;transform:translate(-50%,-50%) scale(1);animation:nb-flicker 1.8s ease-in-out infinite}
.poem-night-bell .nb-fire.is-lit .nb-streak{opacity:.85;transform:translateX(-50%) scaleY(1)}
.poem-night-bell .nb-fire.is-lit img{opacity:1;transform:translateX(-50%) scale(1)}

/* 第三步：燈籠照路、姑蘇城、寒山寺 */
.poem-night-bell .nb-dark{position:absolute;inset:0;background:radial-gradient(circle at var(--lx) var(--ly),#0a122400 0 10cqi,#0a122466 18cqi,#0a1224a8 34cqi);transition:opacity 1.4s}
.poem-night-bell.is-outside .nb-dark{background:radial-gradient(circle at var(--lx) var(--ly),#0a122400 0 12cqi,#0a122455 22cqi,#0a122490 40cqi)}
.poem-night-bell.is-revealed .nb-dark{opacity:0}
.poem-night-bell .nb-shine{position:absolute;left:var(--x);top:var(--y);width:22cqi;aspect-ratio:1.6;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#ffd98a66 0 22%,#ffd98a00 68%);mix-blend-mode:screen;opacity:0;transition:opacity 1s}
.poem-night-bell .nb-shine.is-on{opacity:1}
.poem-night-bell .nb-shine::after{content:"";position:absolute;inset:20%;border:.4cqi solid #ffe7a8;border-radius:50%;opacity:0}
.poem-night-bell .nb-shine.is-on::after{animation:nb-burst 1.2s ease-out 2}
.poem-night-bell .nb-chip{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%) scale(.7);padding:.1em .6em;border-radius:1em;background:#fffaf0eb;border:2px solid #d6b06a;color:#6b3d14;font-size:max(19px,2.2cqi);font-weight:700;line-height:1.3;white-space:nowrap;opacity:0;transition:opacity .5s,transform .5s cubic-bezier(.3,1.5,.5,1)}
.poem-night-bell .nb-chip.is-on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.poem-night-bell .nb-chip-out{background:#2b3a62e6;border-color:#ffd98a;color:#fff3d4}

/* 第四步：聲波過江、客船亮起 */
.poem-night-bell .nb-waves{position:absolute;left:var(--x);top:var(--y);width:0;height:0}
.poem-night-bell .nb-waves i{position:absolute;left:0;top:0;width:var(--d);aspect-ratio:2.2;transform:translate(-50%,-50%) scale(.02);border:.5cqi solid #ffe7a8;border-radius:50%;opacity:0;animation:nb-wave 2.8s cubic-bezier(.2,.6,.4,1) forwards;box-shadow:0 0 1.2cqi #ffd98a88}
.poem-night-bell .nb-boat-glow{position:absolute;left:var(--x);top:var(--y);width:34cqi;aspect-ratio:2;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#ffe2a066 0 30%,#ffe2a000 70%);mix-blend-mode:screen;opacity:0}
.poem-night-bell .nb-boat-glow.is-on{animation:nb-boat 1.6s ease-out}
.poem-night-bell.is-done .nb-boat-glow{opacity:.8;animation:none}

/* 可點、可拖的目標（漁船、地方、燈籠） */
.poem-night-bell .nb-hot{position:absolute;inset:0;z-index:3;pointer-events:none}
.poem-night-bell .nb-hot button{pointer-events:auto}
.poem-night-bell .nb-target{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);padding:0;border:0;background:transparent;cursor:pointer}
.poem-night-bell .nb-boat{width:max(56px,8cqi);aspect-ratio:1;border-radius:50%}
.poem-night-bell .nb-boat::after{content:"";position:absolute;inset:14%;border:3px solid #ffe7b099;box-shadow:0 0 1.2cqi #ffd36b66;border-radius:50%;animation:nb-ring 2s ease-in-out infinite}
.poem-night-bell .nb-boat.is-cue::after,.poem-night-bell .nb-boat.is-over::after{border-style:solid;border-color:#ffd36b;box-shadow:0 0 0 5px #ffd36b55,inset 0 0 1.5cqi #ffd36b88}

/* 第三步：蘇州地圖上搖客船（水門 → 石橋 → 寒山寺碼頭） */
.poem-night-bell .nb-route{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#ffe2a0;stroke-width:5;stroke-linecap:round;stroke-dasharray:.012 .018;opacity:.55;filter:drop-shadow(0 0 4px #ffd36b)}
.poem-night-bell.is-route-help .nb-route{stroke-width:9;opacity:1}
.poem-night-bell.is-revealed .nb-route{opacity:0;transition:opacity .8s}
.poem-night-bell .nb-dock{position:absolute;left:var(--x);top:var(--y);width:7cqi;aspect-ratio:2.2;transform:translate(-50%,-50%);border:.35cqi solid #ffe2a0;border-radius:50%;box-shadow:0 0 1.2cqi #ffd36b88;animation:nb-dock 2.2s ease-in-out infinite}
.poem-night-bell.is-revealed .nb-dock{display:none}
.poem-night-bell .nb-ship{position:absolute;left:var(--x);top:var(--y);z-index:1;width:max(84px,10.5cqi);aspect-ratio:360/158;padding:0;border:0;background:transparent;transform:translate(-55%,-86%) scale(var(--s,1));transform-origin:55% 86%;touch-action:none;cursor:grab}
.poem-night-bell .nb-ship:disabled{opacity:1;cursor:default}
.poem-night-bell .nb-ship img{position:relative;display:block;width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 .3cqi .4cqi #0008)}
.poem-night-bell.is-rowing .nb-ship img{animation:nb-row .9s ease-in-out infinite}
.poem-night-bell .nb-ship::before{content:"";position:absolute;right:2%;top:-4%;width:40%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#ffcf7a88,#ffcf7a00 70%);mix-blend-mode:screen;pointer-events:none}
.poem-night-bell .nb-wake{position:absolute;left:-6%;bottom:6%;width:50%;height:22%;border-radius:50%;border-top:.3cqi solid #e6f2ffaa;opacity:0;transition:opacity .4s;pointer-events:none}
.poem-night-bell.is-rowing .nb-wake{opacity:.8;animation:nb-wake 1.1s ease-out infinite}
.poem-night-bell .nb-ship.is-help{filter:drop-shadow(0 0 .6cqi #ffd36b) drop-shadow(0 0 1.4cqi #ffd36b)}
.poem-night-bell .nb-bridge{position:absolute;inset:0;z-index:2;width:100%;height:100%;pointer-events:none;opacity:0}
.poem-night-bell[data-step="2"].is-under .nb-bridge{opacity:1}
@keyframes nb-dock{50%{transform:translate(-50%,-50%) scale(1.15);opacity:.6}}
@keyframes nb-row{50%{transform:translateY(-3%) rotate(-1.2deg)}}
@keyframes nb-wake{from{transform:scaleX(.5);opacity:.9}to{transform:translateX(-30%) scaleX(1.2);opacity:0}}

/* 鐘樓小窗：銅鐘 + 撞鐘木頭 */
.poem-night-bell .nb-leader{position:absolute;inset:0;z-index:3;width:100%;height:100%;pointer-events:none;fill:none;stroke:#ffe7b0;stroke-width:8;stroke-linecap:round;opacity:0;filter:blur(2px);animation:nb-hint 2.6s ease-in-out .6s}
.poem-night-bell .nb-belfry{position:absolute;left:var(--x);top:var(--y);z-index:4;width:var(--w);min-width:112px;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:18px;background:radial-gradient(circle at 50% 40%,#3b4a74f0,#1b2440f5);border:2px solid #d6b06a;box-shadow:0 6px 18px #0008}
.poem-night-bell .nb-bell{position:absolute;left:58%;top:8%;height:80%;width:auto;transform:translateX(-50%);transform-origin:50% 4%;pointer-events:none;filter:drop-shadow(0 .4cqi .6cqi #0008)}
.poem-night-bell.is-hit .nb-bell{animation:nb-bell .9s ease-out}
.poem-night-bell .nb-striker{position:absolute;left:-6%;top:30%;width:max(64px,46%);aspect-ratio:300/274;padding:0;border:0;background:transparent;touch-action:none;cursor:grab;transform:translateX(calc(var(--pull,0) * -38%)) rotate(calc(var(--pull,0) * 8deg));transform-origin:100% 0}
.poem-night-bell .nb-striker img{width:100%;height:auto;display:block;pointer-events:none;filter:drop-shadow(0 .3cqi .4cqi #0008)}
.poem-night-bell .nb-striker:not(:disabled)::after{content:"";position:absolute;inset:-6%;border:3px solid #ffe7b099;box-shadow:0 0 1.2cqi #ffd36b66;border-radius:40%;animation:nb-ring 2s ease-in-out infinite}
.poem-night-bell .nb-striker.is-pulling{transition:none}
.poem-night-bell.is-hit .nb-striker:not(.is-pulling){animation:nb-swing .5s cubic-bezier(.4,1.8,.5,1)}
.poem-night-bell .nb-ring{position:absolute;left:58%;top:50%;width:90%;aspect-ratio:1;transform:translate(-50%,-50%) scale(.3);border:.5cqi solid #ffe7a8;border-radius:50%;opacity:0;pointer-events:none}
.poem-night-bell.is-hit .nb-ring{animation:nb-ringout 1s ease-out}

/* 夜色滑桿 */
.poem-night-bell .nb-band{position:absolute;left:4%;right:4%;bottom:3%;z-index:4;display:flex;align-items:center;gap:10px;padding:4px 14px;border-radius:30px;background:#16203cb3;color:#fff3d4}
.poem-night-bell .nb-band-end{flex:none;font-size:19px;font-weight:700;text-shadow:0 1px 3px #000a}
.poem-night-bell .nb-range{flex:1;min-width:0;height:48px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;touch-action:none;cursor:pointer}
.poem-night-bell .nb-range::-webkit-slider-runnable-track{height:12px;border-radius:6px;background:linear-gradient(90deg,#f3b067,#6d6fa3 55%,#1a2650)}
.poem-night-bell .nb-range::-moz-range-track{height:12px;border-radius:6px;background:linear-gradient(90deg,#f3b067,#6d6fa3 55%,#1a2650)}
.poem-night-bell .nb-range::-webkit-slider-thumb{-webkit-appearance:none;width:44px;height:44px;margin-top:-16px;border-radius:50%;border:3px solid #fff3d4;background:radial-gradient(circle at 40% 40%,#fff9e6,#f6e1ad 60%,#d8b56a);box-shadow:0 0 12px #ffe7a8cc}
.poem-night-bell .nb-range::-moz-range-thumb{width:40px;height:40px;border-radius:50%;border:3px solid #fff3d4;background:radial-gradient(circle at 40% 40%,#fff9e6,#f6e1ad 60%,#d8b56a);box-shadow:0 0 12px #ffe7a8cc}
.poem-night-bell .nb-range:disabled{cursor:default;opacity:.75}

/* 手勢示範、句子字幕、載入 */
.poem-night-bell .nb-hand{position:absolute;left:0;top:0;z-index:20;width:46px;opacity:0;pointer-events:none;transform-origin:37.5% 8.3%;fill:#fffdf5;stroke:#3a3a4a;stroke-width:2.5;filter:drop-shadow(0 2px 4px #0007)}
.poem-night-bell:not(.is-demo) .nb-hand{visibility:hidden;transform:none!important}
.poem-night-bell .nb-hand svg{display:block;width:100%;height:auto}
.poem-night-bell .nb-caption{position:absolute;left:50%;top:6%;z-index:5;margin:0;transform:translate(-50%,-30%);padding:.2em .9em;border-radius:1em;background:#fffaf0e6;color:#5a2f12;font-size:max(20px,3cqi);font-weight:700;letter-spacing:.08em;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .5s,transform .5s}
.poem-night-bell .nb-caption.is-on{opacity:1;transform:translate(-50%,0)}
.poem-night-bell .nb-loading{position:absolute;inset:0;z-index:9;display:grid;place-content:center;gap:10px;background:#eef0f6e6;font-size:19px;text-align:center}
.poem-night-bell .nb-ghost{position:fixed;z-index:50;width:44px;transform:translate(-50%,-70%);pointer-events:none}
.poem-night-bell .nb-ghost img{width:100%;height:auto;display:block;filter:drop-shadow(0 0 10px #ffb84a)}

/* 「怎麼玩」卡：蓋在舞台上，按「開始」才玩。字和間距跟着舞台大小（cqi）縮放，最小的手機也放得下。 */
.poem-night-bell .nb-howto{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:clamp(4px,2cqi,18px);background:#0d1530b3}
.poem-night-bell .nb-howto-card{display:flex;flex-direction:column;align-items:stretch;gap:clamp(4px,1.6cqi,14px);width:min(100%,520px);max-height:100%;padding:clamp(6px,2.2cqi,22px) clamp(10px,3cqi,26px);border-radius:clamp(10px,2cqi,18px);background:#fffaf0;border:2px solid #d6b06a;box-shadow:0 8px 24px #0008;color:#3a2a18}
.poem-night-bell .nb-howto h3{margin:0;font-size:clamp(17px,3.4cqi,28px);line-height:1.15;text-align:center;color:#6b3d14}
.poem-night-bell .nb-howto ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:clamp(2px,1cqi,10px)}
.poem-night-bell .nb-howto li{display:flex;align-items:center;gap:clamp(4px,1.2cqi,10px);font-size:clamp(14px,2.6cqi,21px);font-weight:600;line-height:1.25}
.poem-night-bell .nb-howto li b{flex:none;display:grid;place-items:center;width:1.35em;height:1.35em;border-radius:50%;background:#2f3d68;color:#fff7e2;font-size:.85em}
.poem-night-bell .nb-howto li span{min-width:0}
.poem-night-bell .nb-icon{flex:none;width:1.6em;height:1.6em;fill:none;stroke:#6b3d14;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.poem-night-bell .nb-start{align-self:center;min-height:48px;min-width:min(100%,180px);padding:6px 28px;border:0;border-radius:16px;background:#b4561c;color:#fffaf0;font-size:clamp(18px,3cqi,24px);font-weight:700;letter-spacing:.2em;cursor:pointer;box-shadow:0 3px 0 #7c3a10}
.poem-night-bell .nb-start:active{transform:translateY(2px);box-shadow:0 1px 0 #7c3a10}
@container (max-width:420px){
 .poem-night-bell .nb-howto{padding:3px}
 .poem-night-bell .nb-howto-card{gap:3px;padding:4px 10px;border-width:1px}
 .poem-night-bell .nb-howto ol{gap:1px}
 .poem-night-bell .nb-howto li{line-height:1.2}
 .poem-night-bell .nb-icon{width:1.25em;height:1.25em}
}

/* 錯兩次：正確的東西和目標發光 */
.poem-night-bell .nb-item.is-help{border-radius:16px;box-shadow:0 0 0 5px #ffd36b,0 0 22px 6px #ffd36baa;animation:nb-help 1.4s ease-in-out infinite}
.poem-night-bell .nb-boat.is-help::after,.poem-night-bell .nb-striker.is-help::after{border-style:solid;border-color:#ffd36b;opacity:1;box-shadow:0 0 0 6px #ffd36b66,0 0 20px 6px #ffd36baa}

/* 側欄 */
.poem-night-bell .nb-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-night-bell .nb-poem{display:flex;flex-direction:column;gap:4px;padding:6px 10px 8px;border-radius:14px;background:#f5f6fa;border:1px solid #dde1ec}
.poem-night-bell .nb-line{margin:0;display:flex;justify-content:center;gap:.12em;font-size:clamp(23px,2.8vw,28px);line-height:1.3;color:var(--nb-ink)}
.poem-night-bell .nb-line.is-past{font-size:clamp(19px,2.2vw,22px);color:#4a5070}
.poem-night-bell .nb-line span{display:inline-block;min-width:1.1em;text-align:center}
.poem-night-bell .nb-line b{font-weight:600}
.poem-night-bell .nb-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.poem-night-bell .nb-tools:not(:has(button:not([hidden]),.nb-count:not([hidden]))){display:none}
.poem-night-bell .nb-later,.poem-night-bell .nb-listen,.poem-night-bell .nb-loading button{min-height:48px;padding:8px 18px;border:1px solid #9aa3c0;border-radius:14px;background:#fffefa;font-size:19px;font-weight:600;cursor:pointer}
.poem-night-bell .nb-later{background:#2f3d68;border-color:#2f3d68;color:#fff7e2}
.poem-night-bell .nb-later:disabled,.poem-night-bell .nb-item:disabled{opacity:.5;cursor:default}
.poem-night-bell .nb-item{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:4px 16px 4px 10px;border:2px solid #d6b06a;border-radius:16px;background:#2a3557;color:#fff3d4;font-size:19px;font-weight:700;touch-action:none;cursor:grab}
.poem-night-bell .nb-item img{height:44px;width:auto;pointer-events:none}
.poem-night-bell .nb-item[aria-pressed="true"]{background:#3d4d80;box-shadow:0 0 0 4px #ffd36b88}
.poem-night-bell .nb-item.is-source{opacity:.5}
.poem-night-bell .nb-count{margin:0;font-size:19px;font-weight:600;color:#4a5070;font-variant-numeric:tabular-nums}
.poem-night-bell .nb-actionline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.poem-night-bell .nb-method{flex:1 1 12em;font-size:17px;line-height:1.4;color:#5d6380}
.poem-night-bell .nb-listen{display:inline-flex;align-items:center;gap:6px}
.poem-night-bell .nb-listen svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.poem-night-bell .nb-listen[aria-disabled="true"]{opacity:.65}
.poem-night-bell .nb-summary{padding:10px 14px;border-radius:14px;background:#eef1f8;border:1px solid #cfd6e8}
.poem-night-bell .nb-summary b{font-size:22px;color:#3c4a73}
.poem-night-bell .nb-summary p{margin:4px 0 0;font-size:19px;line-height:1.5}
.poem-night-bell .nb-feedback{margin:0;min-height:1.5em;font-size:18px;line-height:1.5}

/* 橫屏：左畫右文。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-night-bell{max-width:1280px}
 .poem-night-bell .nb-layout{grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;align-items:center}
 .poem-night-bell .nb-stage{align-self:start}
}
@media (max-width:480px){
 .poem-night-bell .nb-band{left:2%;right:2%;bottom:2%;padding:0 8px;gap:6px}
 .poem-night-bell .nb-band-end{font-size:17px}
}

@keyframes nb-glide{0%{left:-14%;opacity:0}12%{opacity:1}100%{left:16%;top:calc(var(--y) + 1%);opacity:0}}
@keyframes nb-caw{0%{opacity:0;transform:translate(-50%,-50%) rotate(-45deg) scale(.4)}30%{opacity:1}100%{opacity:0;transform:translate(-80%,-80%) rotate(-45deg) scale(1.3)}}
@keyframes nb-flicker{50%{transform:translate(-50%,-50%) scale(1.12);opacity:.85}}
@keyframes nb-hint{0%,100%{opacity:0}30%,70%{opacity:.55}}
@keyframes nb-burst{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(1.5)}}
@keyframes nb-bob{50%{transform:translateY(-8%) rotate(-10deg)}}
@keyframes nb-hide{to{opacity:0}}
@keyframes nb-show{to{opacity:1}}
@keyframes nb-flap{50%{transform:scaleY(.7)}}
@keyframes nb-flyoff{0%{transform:translate(-50%,-50%) scale(1);opacity:1}100%{transform:translate(120%,-220%) scale(.55);opacity:0}}
@keyframes nb-twinkle{50%{opacity:.35}}
@keyframes nb-wave{0%{opacity:.95;transform:translate(-50%,-50%) scale(.02)}70%{opacity:.6}100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}
@keyframes nb-boat{0%{opacity:0}35%{opacity:1}100%{opacity:0}}
@keyframes nb-ring{50%{transform:scale(1.1);opacity:.55}}
@keyframes nb-sway{50%{transform:rotate(4deg)}}
@keyframes nb-bell{15%{transform:translateX(-50%) rotate(7deg)}40%{transform:translateX(-50%) rotate(-5deg)}65%{transform:translateX(-50%) rotate(3deg)}85%{transform:translateX(-50%) rotate(-1deg)}}
@keyframes nb-swing{0%{transform:translateX(-30%)}50%{transform:translateX(8%)}100%{transform:translateX(0)}}
@keyframes nb-ringout{0%{opacity:.9;transform:translate(-50%,-50%) scale(.3)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.4)}}
@keyframes nb-help{50%{box-shadow:0 0 0 9px #ffd36b44,0 0 22px 6px #ffd36baa}}

.poem-night-bell.is-reduced *{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.poem-night-bell *{transition:none!important;animation:none!important}}

/* 2026-11-03 橫屏側欄用滿畫面高度：上面是任務，中間是詩句和工具，「聽這句詩」在最下面；字和按鈕放大。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-night-bell{height:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
 .poem-night-bell .nb-layout{grid-column:1/-1;width:100%;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;row-gap:14px;column-gap:24px}
 .poem-night-bell .nb-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-night-bell .nb-head{align-self:start;flex-wrap:wrap;justify-content:flex-start;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid #dde1ec}
 .poem-night-bell .nb-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-night-bell .nb-progress{order:2;font-size:19px}
 .poem-night-bell .nb-howto-open{order:3;margin-left:auto}
 .poem-night-bell .nb-side{align-self:stretch;gap:16px}
 .poem-night-bell .nb-side::before,.poem-night-bell .nb-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-night-bell .nb-side::before{order:-1}.poem-night-bell .nb-side::after{order:8}
 .poem-night-bell .nb-poem{padding:12px 14px;gap:6px}
 .poem-night-bell .nb-line{font-size:clamp(26px,2.7vw,32px)}
 .poem-night-bell .nb-line.is-past{font-size:clamp(20px,2vw,24px)}
 .poem-night-bell.is-done .nb-line{font-size:clamp(20px,2vw,24px)}
 .poem-night-bell .nb-later{min-height:58px;padding:8px 26px;font-size:22px}
 .poem-night-bell .nb-item{min-height:62px;font-size:21px}
 .poem-night-bell .nb-count{font-size:21px}
 .poem-night-bell .nb-actionline{display:contents}
 .poem-night-bell .nb-method{flex:0 0 auto;font-size:21px;line-height:1.45;text-align:center}
 .poem-night-bell .nb-summary b{font-size:24px}
 .poem-night-bell .nb-summary p{font-size:20px}
 .poem-night-bell .nb-feedback{min-height:0;font-size:21px;text-align:center}
 .poem-night-bell .nb-feedback:empty{display:none}
 .poem-night-bell .nb-listen{order:9;justify-content:center;align-self:stretch;min-height:62px;font-size:23px}
 .poem-night-bell.is-done .nb-method,.poem-night-bell.is-done .nb-feedback{display:none}
 .poem-night-bell .nb-listen svg{width:26px;height:26px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-night-bell .nb-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);row-gap:4px;column-gap:14px}
 .poem-night-bell .nb-chip{font-size:max(12px,2.4cqi);border-width:1.5px}
 .poem-night-bell .nb-ship{width:max(60px,10.5cqi)}
 .poem-night-bell .nb-head{flex-wrap:nowrap;padding-bottom:3px;border-bottom:0;gap:6px}
 .poem-night-bell .nb-instruction{flex:1 1 auto;font-size:16px;line-height:1.25}
 .poem-night-bell .nb-progress{padding:2px 8px;font-size:14px}
 .poem-night-bell .nb-howto-open{min-height:32px;padding:2px 10px;font-size:14px}
 .poem-night-bell .nb-side{gap:3px}
 .poem-night-bell .nb-poem{padding:2px 8px;gap:0}
 .poem-night-bell .nb-line{font-size:19px;line-height:1.3}
 .poem-night-bell .nb-line.is-past{display:none}
 .poem-night-bell.is-done .nb-line{display:flex;font-size:13px;line-height:1.25}
 .poem-night-bell .nb-tools{gap:6px}
 .poem-night-bell .nb-later{min-height:34px;padding:2px 14px;font-size:15px}
 .poem-night-bell .nb-item{min-height:36px;padding:1px 10px 1px 6px;font-size:15px}
 .poem-night-bell .nb-item img{height:28px}
 .poem-night-bell .nb-count{font-size:14px}
 .poem-night-bell .nb-method,.poem-night-bell .nb-feedback{font-size:14px;line-height:1.3}
 .poem-night-bell .nb-side:has(.nb-feedback:not(:empty)) .nb-method{display:none}
 .poem-night-bell .nb-summary{padding:2px 8px}
 .poem-night-bell .nb-summary b{display:none}
 .poem-night-bell .nb-summary p{margin:0;font-size:13px;line-height:1.25}
 .poem-night-bell .nb-listen{min-height:34px;padding:2px 10px;font-size:16px}
 .poem-night-bell.is-done .nb-poem{display:grid;grid-template-columns:1fr 1fr;column-gap:8px}
 .poem-night-bell .nb-listen svg{width:20px;height:20px}
}
/* 2026-11-03 r3h iPad Safari 實際可用高度較矮（約 700–780）：收緊側欄，「聽」不被擠出畫面、側欄不出捲軸。 */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px) and (max-height:780px){
 .poem-night-bell .nb-layout{row-gap:8px}
 .poem-night-bell .nb-head{padding-bottom:8px}
 .poem-night-bell .nb-instruction{font-size:clamp(20px,2vw,24px)}
 .poem-night-bell .nb-side{gap:10px}
 .poem-night-bell .nb-poem{padding:8px 12px;gap:4px}
 .poem-night-bell .nb-line{font-size:clamp(23px,2.3vw,28px)}
 .poem-night-bell .nb-line.is-past,.poem-night-bell.is-done .nb-line{font-size:clamp(18px,1.8vw,21px)}
 .poem-night-bell .nb-later{min-height:52px;font-size:20px}
 .poem-night-bell .nb-item{min-height:52px;font-size:19px}
 .poem-night-bell .nb-method,.poem-night-bell .nb-feedback{font-size:18px;line-height:1.4}
 .poem-night-bell .nb-side:has(.nb-feedback:not(:empty)) .nb-method{display:none}
 .poem-night-bell .nb-summary b{font-size:20px}
 .poem-night-bell .nb-summary p{font-size:18px}
 .poem-night-bell .nb-listen{min-height:52px;font-size:20px}
}

/* poem-games/golden-scale.css */
/* poem-games/golden-scale.css：金縷衣「天平和花枝」。所有選擇器以 .poem-golden-scale 開頭。 */
.poem-golden-scale{--gs-ink:#294c3b;--gs-soft:#5f7566;--gs-gold:#e3a548;--tilt:0deg;display:block;width:100%;max-width:880px;margin-inline:auto;color:var(--gs-ink);font-family:var(--sans);min-width:0}
.poem-golden-scale *{box-sizing:border-box}
.poem-golden-scale [hidden]{display:none!important}
.poem-golden-scale button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-golden-scale button:disabled{opacity:1}
.poem-golden-scale button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-golden-scale img{max-width:none;-webkit-user-drag:none}
.poem-golden-scale .gs-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-golden-scale .gs-head{grid-area:head;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;min-width:0}
.poem-golden-scale .gs-instruction{flex:1 1 13em;min-width:0}
.poem-golden-scale .gs-tools{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
.poem-golden-scale .gs-howbtn{min-height:44px;padding:6px 12px;border:1px solid #c9b48a;border-radius:14px;background:#fffaf0;color:#7b3e22;font-size:16px;font-weight:700;cursor:pointer;white-space:nowrap}
.poem-golden-scale .gs-instruction{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-golden-scale .gs-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#edf3e7;color:#3c6447;font-size:19px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-golden-scale.is-done .gs-progress{background:#f6e5c8;color:#8a4f24}

/* 舞台：16:9；overflow:clip 防止聚焦熱點時畫面被捲動。 */
.poem-golden-scale .gs-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#e9e2d2;border:1px solid #d6d2c1;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-golden-scale .gs-cam{position:absolute;inset:0;transform-origin:0 0;transform:translate(var(--tx,0%),var(--ty,0%)) scale(var(--s,1));transition:transform 1.4s cubic-bezier(.45,.05,.3,1)}
.poem-golden-scale .gs-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity .9s ease}
.poem-golden-scale .gs-scene.is-on{opacity:1}

/* 天平：以支點為原點，單位 --u = 秤桿長度。 */
.poem-golden-scale .gs-bal{--bx:80%;--by:40%;--bw:27;--u:calc(var(--bw) * 1cqi);position:absolute;left:var(--bx);top:var(--by);z-index:3;width:0;height:0;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility 0s linear .6s}
.poem-golden-scale .gs-bal.is-on{opacity:1;visibility:visible;transition:opacity .6s ease}
.poem-golden-scale .gs-bal img{display:block;pointer-events:none}
.poem-golden-scale .gs-stand{position:absolute;width:calc(.2926 * var(--u));left:calc(-.1463 * var(--u));top:calc(-.036 * var(--u));filter:drop-shadow(0 4px 4px #3b2a1a40)}
.poem-golden-scale .gs-arm{position:absolute;width:var(--u);height:calc(.122 * var(--u));left:calc(-.5 * var(--u));top:calc(-.0293 * var(--u));transform-origin:50% 24%;transform:rotate(var(--tilt));transition:transform 1.3s cubic-bezier(.3,1.45,.5,1)}
.poem-golden-scale .gs-beam{width:100%;height:100%;filter:drop-shadow(0 2px 2px #3b2a1a40)}
.poem-golden-scale .gs-hang{position:absolute;top:90%;width:0;height:0;transform:rotate(calc(var(--tilt) * -1));transition:transform 1.3s cubic-bezier(.3,1.45,.5,1)}
.poem-golden-scale .gs-hang-l{left:2.8%}
.poem-golden-scale .gs-hang-r{left:97%}
.poem-golden-scale .gs-pan{position:absolute;left:calc(-.215 * var(--u));top:0;width:calc(.43 * var(--u));height:calc(.577 * var(--u))}
.poem-golden-scale .gs-pan-img{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 3px 3px #3b2a1a38)}
.poem-golden-scale .gs-load{position:absolute;z-index:1;opacity:0;transform:translateY(-30%) scale(.9);transform-origin:50% 100%;filter:drop-shadow(0 3px 2px #3b2a1a4d);transition:opacity .35s ease,transform .5s cubic-bezier(.3,1.4,.5,1)}
.poem-golden-scale .gs-load.is-on{opacity:1;transform:none}
.poem-golden-scale .gs-load-robe{width:78%;left:11%;bottom:17%}
.poem-golden-scale .gs-load-glass{width:42%;left:29%;bottom:17%}
/* 哪邊重：秤盤下面一個小牌子 */
.poem-golden-scale .gs-heavy{position:absolute;left:50%;top:100%;z-index:2;padding:1px 10px;border-radius:999px;background:#7b3e22;color:#fffaf0;font-size:max(13px,1.6cqi);font-weight:700;line-height:1.45;letter-spacing:.06em;white-space:nowrap;opacity:0;transform:translate(-50%,2px) scale(.8);transition:opacity .35s ease,transform .35s ease;pointer-events:none;box-shadow:0 2px 6px #3b2a1a40}
.poem-golden-scale .gs-heavy.is-on{opacity:1;transform:translate(-50%,2px);transition-delay:.7s}
.poem-golden-scale .gs-target{position:absolute;z-index:2;left:-4%;right:-4%;bottom:-4%;height:62%;min-width:48px;min-height:48px;padding:0;border:3px dashed #fffaeef2;border-radius:50%;background:radial-gradient(closest-side,#fff8e440,#fff8e414 70%,transparent);box-shadow:0 0 0 2px #8a6a3a33;cursor:pointer;animation:gs-breathe 2.2s ease-in-out infinite}
.poem-golden-scale .gs-target::after{content:'放這裏';position:absolute;left:50%;bottom:22%;transform:translateX(-50%);padding:1px 9px;border-radius:999px;background:#fffaf0e6;color:#7b3e22;font-size:max(13px,1.6cqi);font-weight:700;line-height:1.4;white-space:nowrap;box-shadow:0 1px 4px #3b2a1a33}
.poem-golden-scale .gs-target.is-cue,.poem-golden-scale .gs-target.is-over{border-style:solid;border-color:#ffd27a;background:radial-gradient(closest-side,#fff3c980,#ffe6a033 70%,transparent);box-shadow:0 0 18px 6px #ffdb8a99}

/* 可拖的金縷衣、沙漏 */
.poem-golden-scale .gs-item{position:absolute;z-index:4;padding:0;border:0;background:none;transform:translate(-50%,-50%);touch-action:none;cursor:grab;min-width:48px;min-height:48px}
.poem-golden-scale .gs-item-robe{left:20%;top:80%;width:15cqi}
.poem-golden-scale .gs-item-glass{left:8%;top:70%;width:7.5cqi}
.poem-golden-scale .gs-item-img{display:block;width:100%;pointer-events:none;filter:drop-shadow(0 5px 5px #3b2a1a4d)}
.poem-golden-scale .gs-item::before{content:'';position:absolute;inset:-14%;z-index:-1;border-radius:50%;background:radial-gradient(closest-side,#fff6d0cc,#fff6d000);opacity:0;transition:opacity .3s}
.poem-golden-scale .gs-item.is-cue::before{opacity:.8;animation:gs-breathe 2.2s ease-in-out infinite}
.poem-golden-scale .gs-item[aria-pressed="true"]{transform:translate(-50%,-58%) scale(1.06)}
.poem-golden-scale .gs-item[aria-pressed="true"]::before{opacity:1;background:radial-gradient(closest-side,#ffe9a0,#ffe9a000)}
.poem-golden-scale .gs-item.is-source{opacity:.35}
.poem-golden-scale .gs-tag{position:absolute;left:50%;top:100%;transform:translate(-50%,4px);padding:2px 11px;border-radius:999px;background:#fffaf0f2;color:#7b3e22;font-size:max(14px,1.7cqi);font-weight:700;line-height:1.4;letter-spacing:.08em;white-space:nowrap;box-shadow:0 2px 6px #3b2a1a26;pointer-events:none}
.poem-golden-scale .gs-ghost{position:fixed;z-index:60;transform:translate(-50%,-50%) scale(1.06);pointer-events:none;filter:drop-shadow(0 10px 8px #3b2a1a55)}
.poem-golden-scale .gs-ghost img{display:block;width:100%;height:100%}

/* 花枝：從右邊伸進來；花和枝都用枝條框的 % 座標。 */
.poem-golden-scale .gs-branch{position:absolute;inset:0;z-index:3;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s linear .8s}
.poem-golden-scale .gs-branch.is-on{opacity:1;visibility:visible;transition:opacity .8s ease}
.poem-golden-scale .gs-deco{position:absolute;width:6.5cqi;height:6.5cqi;transform:translate(-50%,-70%);pointer-events:none}
.poem-golden-scale .gs-deco[data-gs-deco="0"]{left:87%;top:14%}
.poem-golden-scale .gs-deco[data-gs-deco="1"]{left:95%;top:25%}
.poem-golden-scale .gs-deco img{position:absolute;left:0;width:100%;pointer-events:none;transition:opacity .5s ease}
.poem-golden-scale .gs-deco-bloom{top:0}
.poem-golden-scale .gs-deco-wilt{top:30%;opacity:0}
.poem-golden-scale .gs-deco.is-gone .gs-deco-bloom{opacity:0}
.poem-golden-scale .gs-deco.is-gone .gs-deco-wilt{animation:gs-drop 1.7s ease-in forwards}
.poem-golden-scale .gs-petal{position:absolute;left:45%;top:40%;width:22%;height:22%;opacity:0;pointer-events:none}
.poem-golden-scale .gs-deco.is-gone .gs-petal{animation:gs-petal 1.6s ease-in calc(var(--i) * .15s) forwards}
.poem-golden-scale .gs-petal:nth-of-type(2n){--dx:-120%}
.poem-golden-scale .gs-petal:nth-of-type(2n+1){--dx:140%}

.poem-golden-scale .gs-fall{position:absolute;pointer-events:none}
.poem-golden-scale .gs-fall-twig .gs-petal path{fill:#c9a46a;stroke:#8a6a3a}
.poem-golden-scale.is-pickfx .gs-fall-flower .gs-petal{animation:gs-petal 1.1s ease-in calc(.3s + var(--i) * .07s) forwards}
.poem-golden-scale.is-snapfx .gs-fall-twig .gs-petal{animation:gs-petal 1.1s ease-in calc(var(--i) * .08s) forwards}
.poem-golden-scale.is-pickfx .gs-card[data-gs-card="0"]{transition-delay:.7s}
.poem-golden-scale.is-snapfx .gs-card[data-gs-card="1"]{transition-delay:.5s}
.poem-golden-scale.is-snapfx .gs-keep{transition-delay:.35s}


/* 折枝：樹枝從右邊樹上伸出（圖片左右翻轉，斷口在右＝連着樹）；--bend 越拉越彎，第三下「啪」折斷。 */
.poem-golden-scale .gs-twig{position:absolute;left:69%;top:12%;z-index:5;width:28cqi;aspect-ratio:380/142;min-height:48px;padding:0;border:0;background:none;cursor:grab;touch-action:none}
.poem-golden-scale .gs-twig:disabled{cursor:default}
.poem-golden-scale .gs-twig-bend{position:absolute;inset:0;transform-origin:97% 50%;transform:rotate(var(--bend,0deg));transition:transform .28s cubic-bezier(.3,1.5,.5,1)}
.poem-golden-scale .gs-twig-bend::before{content:'';position:absolute;inset:-14% -6%;z-index:-1;border-radius:50%;background:radial-gradient(closest-side,#fff6d0d9,#fff6d000);opacity:0;transition:opacity .4s}
.poem-golden-scale .gs-twig.is-cue .gs-twig-bend::before{opacity:.9;animation:gs-glow 2.2s ease-in-out infinite}
.poem-golden-scale .gs-twig.is-help .gs-twig-bend::before{opacity:1;background:radial-gradient(closest-side,#fff0b0f2,#ffe38a00)}
.poem-golden-scale .gs-twig-img{position:absolute;left:0;top:0;width:100%;height:auto;pointer-events:none;transform:scaleX(-1);filter:drop-shadow(0 0 1.5px #fffaf0) drop-shadow(0 0 1.5px #fffaf0) drop-shadow(0 3px 3px #3b2a1a59)}
.poem-golden-scale .gs-twig-bare{top:7.7%}
.poem-golden-scale .gs-twig[data-kind="flowers"] .gs-twig-bare,.poem-golden-scale .gs-twig[data-kind="bare"] .gs-twig-flowers{display:none}
.poem-golden-scale .gs-twig.is-tug .gs-twig-bend{animation:gs-tug .32s ease-out}
.poem-golden-scale .gs-twig.is-broken .gs-twig-bend{transition:transform .3s cubic-bezier(.5,0,.8,.4);translate:-3% 30%}
.poem-golden-scale .gs-pull{position:absolute;left:34%;top:118%;display:inline-flex;align-items:center;gap:.5cqi;padding:.45cqi 1.3cqi;border-radius:999px;background:#fffaf0f2;color:#7b3e22;font-size:max(15px,2cqi);font-weight:700;white-space:nowrap;box-shadow:0 2px 6px #3b2a1a33;transform:translateX(-50%);pointer-events:none}
.poem-golden-scale .gs-pull svg{width:max(11px,1.25cqi);height:auto;animation:gs-down 1.2s ease-in-out infinite}
.poem-golden-scale .gs-dots{display:inline-flex;gap:.35cqi;margin-left:.3cqi}
.poem-golden-scale .gs-dots i{width:max(13px,1.7cqi);height:max(13px,1.7cqi);border-radius:50%;border:2px solid #c78390;background:#fffaf0}
.poem-golden-scale .gs-dots i.is-on{background:#e07f94;border-color:#b85a70}
.poem-golden-scale .gs-twig.is-broken .gs-pull{visibility:hidden}
.poem-golden-scale .gs-crack{position:absolute;left:91%;top:14%;z-index:6;padding:.2cqi 1cqi;border-radius:12px;background:#fffaf0;color:#a23b2a;font-size:max(18px,2.6cqi);font-weight:800;box-shadow:0 3px 8px #3b2a1a40;opacity:0;transform:translate(-50%,-50%);pointer-events:none}
.poem-golden-scale .gs-crack.is-on{opacity:1;animation:gs-crack .45s cubic-bezier(.3,1.6,.5,1)}
.poem-golden-scale .gs-fall-flower{left:70%;top:14%;width:24cqi;height:12cqi}
.poem-golden-scale .gs-fall-twig{left:84%;top:14%;width:12cqi;height:10cqi}
/* 花瓶：折到的花枝插在裏面，一直留在左下角。 */
@keyframes gs-glow{0%,100%{transform:scale(.94)}50%{transform:scale(1.06)}}
@keyframes gs-tug{0%{translate:0 0}40%{translate:0 6%}100%{translate:0 0}}
@keyframes gs-down{0%,100%{transform:translateY(-15%)}50%{transform:translateY(15%)}}
@keyframes gs-crack{0%{transform:translate(-50%,-50%) scale(.3)}100%{transform:translate(-50%,-50%) scale(1)}}

/* 沙漏：點一下翻過來 */
.poem-golden-scale .gs-sand{position:absolute;left:30%;top:75%;z-index:4;width:8cqi;min-width:48px;padding:0;border:0;background:none;transform:translate(-50%,-50%);cursor:pointer}
.poem-golden-scale .gs-sand-img{display:block;width:100%;pointer-events:none;filter:drop-shadow(0 5px 5px #3b2a1a4d);transition:transform .9s cubic-bezier(.5,0,.3,1.2)}
.poem-golden-scale .gs-sand.is-flip .gs-sand-img{transform:rotate(180deg)}
.poem-golden-scale .gs-sand.is-noanim .gs-sand-img{transition:none}
.poem-golden-scale .gs-sand::before{content:'';position:absolute;inset:-18%;z-index:-1;border-radius:50%;background:radial-gradient(closest-side,#fff6d0cc,#fff6d000);opacity:0}
.poem-golden-scale .gs-sand.is-cue::before{opacity:.85;animation:gs-breathe 2.2s ease-in-out infinite}
.poem-golden-scale .gs-sand:disabled .gs-tag{opacity:0}

/* 折到的花枝／空枝：舞台上的小紙卡；完成時並排對比。 */
.poem-golden-scale .gs-got{position:absolute;left:50%;top:44%;z-index:7;display:flex;flex-direction:column;align-items:center;gap:.6cqi;padding:1.4cqi 2.4cqi 1.2cqi;border-radius:18px;background:#fffaf0f2;box-shadow:0 6px 18px #3b2a1a40;opacity:0;transform:translate(-50%,-40%) scale(.6);transition:opacity .4s ease,transform .55s cubic-bezier(.3,1.5,.5,1);pointer-events:none}
.poem-golden-scale .gs-got.is-on{opacity:1;transform:translate(-50%,-50%)}
.poem-golden-scale .gs-got-twig{display:block;width:26cqi;min-width:150px;height:auto;transform:rotate(-12deg);filter:drop-shadow(0 3px 3px #3b2a1a40)}
.poem-golden-scale .gs-got b{color:#b04a62;font-size:max(17px,2.8cqi);letter-spacing:.1em;white-space:nowrap}
.poem-golden-scale .gs-keep{position:absolute;left:2%;bottom:3%;z-index:6;display:flex;gap:1.6cqi;pointer-events:none;transition:left .8s ease,bottom .8s ease,transform .8s ease}
.poem-golden-scale .gs-card{margin:0;width:23cqi;padding:.8cqi 1cqi .6cqi;border-radius:12px;background:#fffaf0f0;border:1px solid #e3d6b8;box-shadow:0 4px 12px #3b2a1a2e;opacity:0;transform:translateY(20%) scale(.8);transition:opacity .5s ease,transform .6s cubic-bezier(.3,1.4,.5,1),width .8s ease}
.poem-golden-scale .gs-card.is-on{opacity:1;transform:none}
.poem-golden-scale .gs-card-img{display:block;width:100%}
.poem-golden-scale .gs-card figcaption{margin-top:.3cqi;font-size:max(12px,1.5cqi);font-weight:700;line-height:1.3;color:#6b3c22;text-align:center}
.poem-golden-scale .gs-keep.is-compare{left:50%;bottom:50%;transform:translate(-50%,62%);gap:3cqi}
.poem-golden-scale .gs-keep.is-compare .gs-card{width:30cqi;padding:1.4cqi 1.6cqi 1cqi}
.poem-golden-scale .gs-keep.is-compare figcaption{font-size:max(15px,2.2cqi)}
.poem-golden-scale .gs-end{position:absolute;left:50%;top:6%;z-index:6;padding:.8cqi 3cqi;border-radius:999px;background:#fffaf0f0;color:#7b3e22;font-size:max(18px,3cqi);letter-spacing:.14em;transform:translate(-50%,-30%);opacity:0;transition:opacity .6s ease .3s,transform .6s ease .3s;box-shadow:0 4px 12px #3b2a1a2e;pointer-events:none;white-space:nowrap}
.poem-golden-scale .gs-end.is-on{opacity:1;transform:translate(-50%,0)}
@container (max-width:520px){
 .poem-golden-scale .gs-keep.is-compare .gs-card{width:40cqi;padding:1.2cqi}
 .poem-golden-scale .gs-keep.is-compare figcaption{font-size:12px}
 .poem-golden-scale .gs-keep:not(.is-compare) figcaption{display:none}
 .poem-golden-scale .gs-tag{top:auto;bottom:100%;transform:translate(-50%,-3px);font-size:12px;padding:1px 8px}
}

/* 閒置示範手勢 */
.poem-golden-scale .gs-hand{position:absolute;left:var(--x0,50%);top:var(--y0,50%);z-index:8;width:max(40px,6.5cqi);opacity:0;pointer-events:none;transform:translate(-45%,-8%)}
.poem-golden-scale .gs-hand svg{display:block;width:100%;filter:drop-shadow(0 3px 3px #2c1f1240)}
.poem-golden-scale .gs-hand.is-on{animation:gs-tap 1.1s ease-in-out 3}
.poem-golden-scale .gs-hand.is-on.is-drag{animation:gs-hand-drag 2.1s ease-in-out 2}

.poem-golden-scale .gs-item.is-help::before{opacity:1;background:radial-gradient(closest-side,#ffe08a,#ffe08a00);animation:gs-breathe 1.2s ease-in-out infinite}
.poem-golden-scale.is-reduced .gs-hand.is-on{opacity:1}
@media (prefers-reduced-motion:reduce){.poem-golden-scale .gs-hand.is-on{opacity:1}}

/* 怎麼玩：蓋在舞台上，按「開始」才玩。 */
.poem-golden-scale .gs-how{position:absolute;inset:0;z-index:9;display:grid;place-items:center;padding:8px;background:#2c3a2f66}
.poem-golden-scale.is-how .gs-tag,.poem-golden-scale.is-how .gs-pull,.poem-golden-scale.is-how .gs-got,.poem-golden-scale.is-how .gs-keep,.poem-golden-scale.is-how .gs-end{visibility:hidden}
.poem-golden-scale .gs-how-card{width:min(100%,430px);max-height:100%;display:grid;gap:10px;padding:14px 18px 16px;border-radius:18px;background:#fffaf0;border:2px solid #e8c178;box-shadow:0 8px 24px #2c1f1240;color:#5b3a22}
.poem-golden-scale .gs-how-h{margin:0;font-size:22px;line-height:1.25;text-align:center;color:#7b3e22;letter-spacing:.12em}
.poem-golden-scale .gs-how-list{margin:0;padding:0;list-style:none;display:grid;gap:7px}
.poem-golden-scale .gs-how-list li{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:650;line-height:1.3}
.poem-golden-scale .gs-how-n{flex:none;width:24px;height:24px;border-radius:50%;background:#3f6b4c;color:#fffdf5;font-size:15px;line-height:24px;text-align:center}
.poem-golden-scale .gs-how-i{flex:none;display:block;width:28px;height:28px}
.poem-golden-scale .gs-how-i svg{display:block;width:100%;height:100%}
.poem-golden-scale .gs-how-t{min-width:0}
.poem-golden-scale .gs-how-foot{position:relative;height:52px}
.poem-golden-scale .gs-how-go{position:absolute;inset:0;width:100%;min-height:48px;border:0;border-radius:14px;background:#3f6b4c;color:#fffdf5;font-size:21px;font-weight:700;letter-spacing:.2em;cursor:pointer;box-shadow:0 3px 0 #2b4d36}
@container (max-width:520px){
 .poem-golden-scale .gs-how{padding:6px}
 .poem-golden-scale .gs-how-card{width:100%;grid-template-columns:minmax(0,1fr) 104px;grid-template-rows:auto auto;gap:4px 10px;padding:6px 10px 7px;border-radius:14px}
 .poem-golden-scale .gs-how-h{grid-column:1;grid-row:1;align-self:center;font-size:17px;text-align:left;letter-spacing:.06em}
 .poem-golden-scale .gs-how-list{grid-column:1 / -1;grid-row:2;gap:3px}
 .poem-golden-scale .gs-how-list li{font-size:14px;gap:5px;line-height:1.25}
 .poem-golden-scale .gs-how-n{width:18px;height:18px;font-size:12px;line-height:18px}
 .poem-golden-scale .gs-how-i{width:20px;height:20px}
 .poem-golden-scale .gs-how-foot{grid-column:2;grid-row:1;height:48px}
 .poem-golden-scale .gs-how-go{font-size:18px;letter-spacing:.1em}
}

.poem-golden-scale .gs-loading{position:absolute;inset:0;z-index:9;display:grid;place-content:center;gap:10px;background:#f7f3e9e6;font-size:19px;text-align:center}
.poem-golden-scale .gs-loading button{min-height:48px;padding:8px 18px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-size:19px;font-weight:600;cursor:pointer}

/* 側欄 */
.poem-golden-scale .gs-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-golden-scale .gs-verse{margin:0;padding:10px 8px;border-radius:14px;background:#f5f8ef;border:1px solid #e1e8d6;font-size:clamp(20px,2.3vw,26px);line-height:1.4;letter-spacing:.08em;text-align:center;white-space:nowrap}
.poem-golden-scale .gs-summary{padding:10px 14px;border-radius:14px;background:#fdf3e1;border:1px solid #efd9b0}
.poem-golden-scale .gs-summary b{font-size:20px;color:#8a4f24}
.poem-golden-scale .gs-summary p{margin:4px 0 0;font-size:19px;line-height:1.5}
.poem-golden-scale .gs-actionline{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.poem-golden-scale .gs-next{min-height:48px;padding:8px 22px;border:0;border-radius:14px;background:#3f6b4c;color:#fffdf5;font-size:19px;font-weight:700;cursor:pointer;box-shadow:0 3px 0 #2b4d36;animation:gs-breathe 2.2s ease-in-out infinite}
.poem-golden-scale .gs-next:disabled{background:#9db3a2;box-shadow:none;animation:none;cursor:default}
.poem-golden-scale .gs-listen{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:8px 18px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-size:19px;font-weight:600;cursor:pointer}
.poem-golden-scale .gs-listen svg{width:20px;height:20px}
.poem-golden-scale .gs-listen.is-busy{opacity:.7}
.poem-golden-scale .gs-feedback{margin:0;min-height:1.5em;font-size:19px;line-height:1.5;color:var(--gs-soft);text-align:center}

@keyframes gs-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(1.12) drop-shadow(0 0 6px #ffe3a0)}}
@keyframes gs-drop{0%{opacity:0;transform:none}18%{opacity:1}55%{opacity:1;transform:none}100%{opacity:0;transform:translateY(260%) rotate(50deg)}}
@keyframes gs-petal{0%{opacity:0;transform:none}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx,80%),700%) rotate(220deg)}}
@keyframes gs-tap{0%{opacity:0;transform:translate(-45%,10%)}30%{opacity:1;transform:translate(-45%,-8%)}50%{transform:translate(-45%,-8%) scale(.9)}70%{opacity:1;transform:translate(-45%,-8%)}100%{opacity:0;transform:translate(-45%,-8%)}}
@keyframes gs-hand-drag{0%{left:var(--x0);top:var(--y0);opacity:0}12%{left:var(--x0);top:var(--y0);opacity:1}75%{left:var(--x1);top:var(--y1);opacity:1}90%{left:var(--x1);top:var(--y1);opacity:1}100%{left:var(--x1);top:var(--y1);opacity:0}}

/* 橫屏：左畫右文；右欄佔滿整個高度（2026-11-02，跟春曉、遊子吟一致）。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-golden-scale{max-width:none;height:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
 .poem-golden-scale .gs-layout{grid-column:1/-1;width:100%;height:100%;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";gap:14px 24px;align-items:stretch;align-content:stretch}
 .poem-golden-scale .gs-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-golden-scale .gs-head{align-self:start;padding-bottom:12px;border-bottom:1px solid #e1e8d6}
 .poem-golden-scale .gs-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px)}
 .poem-golden-scale .gs-howbtn{min-height:48px;font-size:18px}
 .poem-golden-scale .gs-side{align-self:stretch;gap:16px;min-height:0}
 .poem-golden-scale .gs-side::before,.poem-golden-scale .gs-side::after{content:'';flex:1 1 0}
 .poem-golden-scale .gs-side::before{order:-1}
 .poem-golden-scale .gs-side::after{order:8}
 .poem-golden-scale .gs-verse{font-size:clamp(24px,2.6vw,32px);white-space:normal}
 .poem-golden-scale .gs-feedback{font-size:21px}
 .poem-golden-scale .gs-summary p{font-size:20px}
 .poem-golden-scale .gs-actionline{order:9;flex-wrap:nowrap}
 .poem-golden-scale .gs-actionline>button{flex:1 1 0;justify-content:center;min-height:62px;font-size:23px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-golden-scale .gs-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);gap:4px 12px}
 .poem-golden-scale .gs-head{flex-wrap:nowrap;padding-bottom:0;border-bottom:0;gap:6px}
 .poem-golden-scale .gs-instruction{flex:1 1 auto;font-size:16px;line-height:1.3}
 .poem-golden-scale .gs-progress{min-width:0;padding:2px 8px;font-size:14px}
 .poem-golden-scale .gs-howbtn{min-height:32px;padding:2px 8px;font-size:14px}
 .poem-golden-scale .gs-side{gap:3px}
 .poem-golden-scale .gs-verse{padding:3px 6px;font-size:17px;line-height:1.3}
 .poem-golden-scale .gs-summary{padding:3px 8px}
 .poem-golden-scale .gs-summary b{font-size:14px}
 .poem-golden-scale .gs-summary p{margin:1px 0;font-size:14px;line-height:1.3}
 .poem-golden-scale .gs-feedback{min-height:0;font-size:14px;line-height:1.3}
 .poem-golden-scale .gs-actionline{gap:6px}
 .poem-golden-scale .gs-actionline>button{min-height:36px;padding:2px 8px;font-size:16px}
 .poem-golden-scale .gs-listen svg{width:16px;height:16px}
 .poem-golden-scale.is-done .gs-feedback{display:none}
}
.poem-golden-scale.is-reduced *,.poem-golden-scale.is-reduced *::before{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.poem-golden-scale *,.poem-golden-scale *::before{transition:none!important;animation:none!important}}

/* poem-games/lime-kiln.css */
/* poem-games/lime-kiln.css：石灰吟〈石灰的一生〉。所有選擇器都以 .poem-lime-kiln 開頭。 */
/* 舞台上一律不捲頁、不下拉重新整理 */
.poem-lime-kiln{overscroll-behavior:contain;--lk-ink:#2f4a3c;--lk-soft:#5f7566;--lk-gold:#e3a548;display:block;width:100%;max-width:900px;margin-inline:auto;align-self:start;align-self:safe center;color:var(--lk-ink);font-family:var(--sans);min-width:0}
.poem-lime-kiln *{box-sizing:border-box}
.poem-lime-kiln [hidden]{display:none!important}
.poem-lime-kiln button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-lime-kiln button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-lime-kiln img{max-width:none}
.poem-lime-kiln .lk-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-lime-kiln .lk-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-lime-kiln .lk-instruction{flex:1 1 auto;min-width:0;margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-lime-kiln .lk-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#edf3e7;color:#3c6447;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-lime-kiln.is-done .lk-progress{background:#f6e5c8;color:#8a4f24}
.poem-lime-kiln .lk-howbtn{flex:none;min-height:44px;padding:0 12px;border:1px solid #97ad9b;border-radius:22px;background:#fffefa;font-size:16px;font-weight:650;white-space:nowrap;cursor:pointer}

/* 舞台 16:9；overflow:clip 防止聚焦熱點時畫面在框內被捲動。 */
.poem-lime-kiln .lk-stage{--heat:0;--grind:0;--pull:0;grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;overflow:hidden;overflow:clip;border-radius:20px;background:#e9e2d2;border:1px solid #d6d2c1;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;overscroll-behavior:contain}
.poem-lime-kiln .lk-stage :is(button,canvas,img){touch-action:none}
.poem-lime-kiln .lk-cam{position:absolute;inset:0;transform-origin:50% 50%;transition:transform 1.4s cubic-bezier(.45,.05,.25,1)}
.poem-lime-kiln[data-shown="0"] .lk-cam{transform-origin:36% 78%}
.poem-lime-kiln[data-shown="1"] .lk-cam{transform-origin:34% 64%}
.poem-lime-kiln[data-shown="2"] .lk-cam{transform-origin:47% 80%}
.poem-lime-kiln[data-zoom="0"] .lk-cam{transform:scale(1.35)}
.poem-lime-kiln[data-zoom="1"] .lk-cam{transform:scale(1.75)}
.poem-lime-kiln[data-zoom="2"] .lk-cam{transform:scale(1.6)}
@container (min-width:640px){.poem-lime-kiln[data-zoom="1"] .lk-cam{transform:scale(1.6)}.poem-lime-kiln[data-zoom="2"] .lk-cam{transform:scale(1.45)}}
.poem-lime-kiln .lk-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;opacity:0;transition:opacity .9s ease}
.poem-lime-kiln .lk-scene.is-on{opacity:1}
.poem-lime-kiln .lk-layer{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility 0s linear .6s}
.poem-lime-kiln .lk-layer.is-on{opacity:1;visibility:visible;transition:opacity .6s ease .3s,visibility 0s}
.poem-lime-kiln .lk-abs{position:absolute;left:var(--l);top:var(--t);width:var(--w);height:auto;pointer-events:none;-webkit-user-drag:none}
.poem-lime-kiln .lk-tool{position:absolute;left:var(--x);top:var(--y);z-index:6;width:var(--bw);height:var(--bh);min-width:48px;min-height:48px;padding:0;border:0;border-radius:16px;background:transparent;transform:translate(-50%,-50%);cursor:pointer}
.poem-lime-kiln .lk-tool:disabled{cursor:default}
@keyframes lk-glow{0%,100%{filter:drop-shadow(0 0 2px #fff6d8) drop-shadow(0 0 0 #ffe7a0)}50%{filter:drop-shadow(0 0 3px #fff6d8) drop-shadow(0 0 9px #ffd76e)}}

/* ① 千錘萬擊：錘子敲鑿子，裂紋一條條出現，石頭鑿出來後往山路滑出去。 */
.poem-lime-kiln .lk-boulder{transition:opacity .6s ease .2s}
.poem-lime-kiln .lk-boulder.is-shake{animation:lk-shake .26s ease}
@keyframes lk-shake{30%{translate:-.4cqi 0}60%{translate:.35cqi .1cqi}}
.poem-lime-kiln .lk-cracks{aspect-ratio:560/321;overflow:visible}
.poem-lime-kiln .lk-cracks path{fill:none;stroke:#4b4a44;stroke-width:.9;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:60;stroke-dashoffset:60;opacity:0;transition:stroke-dashoffset .35s ease,opacity .1s}
.poem-lime-kiln .lk-cracks path.is-on{stroke-dashoffset:0;opacity:.85}
.poem-lime-kiln .lk-block{opacity:0;transition:opacity .5s ease .25s,translate 1.6s cubic-bezier(.4,.1,.3,1) .5s,scale 1.6s ease .5s}
.poem-lime-kiln.is-quarried .lk-boulder,.poem-lime-kiln.is-quarried .lk-cracks,.poem-lime-kiln.is-quarried .lk-chisel{opacity:0}
.poem-lime-kiln.is-quarried .lk-block{opacity:1;translate:13cqi -1cqi;scale:.82}
.poem-lime-kiln .lk-chisel{transition:opacity .4s}
.poem-lime-kiln .lk-hammer{transform-origin:6% 92%;transition:opacity .4s}
.poem-lime-kiln .lk-hammer img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none}
.poem-lime-kiln[data-shown="0"]:not(.is-step-done):not(.is-done) .lk-hammer img{animation:lk-glow 2s ease-in-out infinite}
.poem-lime-kiln .lk-hammer.is-swing{animation:lk-swing .26s cubic-bezier(.5,0,.8,.4)}
@keyframes lk-swing{0%{rotate:0deg}40%{rotate:-28deg}85%{rotate:2deg}100%{rotate:0deg}}
.poem-lime-kiln.is-quarried .lk-hammer{opacity:0}
.poem-lime-kiln :is(.lk-chips,.lk-dust){position:absolute;inset:0;pointer-events:none}
.poem-lime-kiln :is(.lk-chips,.lk-dust) i{position:absolute;left:var(--x);top:var(--y);width:max(4px,.7cqi);aspect-ratio:1.3;background:var(--c);border:1px solid #8d887a;border-radius:2px 5px 1px 4px;animation:lk-fly .7s cubic-bezier(.2,.7,.4,1) forwards}
.poem-lime-kiln .lk-dust i{border-color:#d8d4c8;border-radius:50%;width:max(5px,1cqi)}
@keyframes lk-fly{0%{transform:translate(-50%,-50%);opacity:1}100%{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy) + 26px)) rotate(200deg);opacity:0}}
.poem-lime-kiln .lk-hit{border-radius:24px}

/* ② 烈火焚燒：風箱一拉一推，窯火越來越旺；窯口的石頭一直很淡定。 */
.poem-lime-kiln .lk-dim{position:absolute;left:27%;top:47%;width:15%;height:33%;border-radius:45% 45% 8% 8%;background:radial-gradient(closest-side,#2d211acc,#3a2b20b0 60%,#3a2b2000);opacity:calc((1 - var(--heat)) * .92);pointer-events:none;transition:opacity .5s}
.poem-lime-kiln .lk-embers{opacity:calc(.55 + var(--heat) * .45)}
.poem-lime-kiln .lk-flame{transform-origin:50% 100%;transform:scale(calc(.32 + var(--heat) * .72));opacity:calc(.25 + var(--heat) * .75);transition:transform .45s cubic-bezier(.3,1.4,.5,1),opacity .4s,filter .3s;animation:lk-flicker 1.1s ease-in-out infinite alternate}
.poem-lime-kiln .lk-flame-b{animation-delay:-.5s;animation-duration:.9s}
@keyframes lk-flicker{0%{rotate:-2.5deg;translate:0 0}100%{rotate:2.5deg;translate:0 -.3cqi}}
.poem-lime-kiln .lk-glow{position:absolute;left:34%;top:66%;width:30%;height:42%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,#ffb35a80,#ff8a3a30 55%,transparent);mix-blend-mode:screen;opacity:var(--heat);pointer-events:none;transition:opacity .5s}
.poem-lime-kiln .lk-stone{z-index:2}
.poem-lime-kiln .lk-stone img{display:block;width:100%;height:auto;filter:drop-shadow(0 0 3px #ffb35a);-webkit-user-drag:none}
.poem-lime-kiln .lk-stone svg{position:absolute;left:0;top:4%;width:100%;height:auto;fill:none;stroke:#4c4840;stroke-width:1.4;stroke-linecap:round}
.poem-lime-kiln .lk-rod{z-index:1;translate:calc(var(--pull) * -5.5cqi) 0}
/* 木柄把手：跟着手指左右走；下面的「⟵拉 推⟶」提示這一下該往哪邊 */
.poem-lime-kiln .lk-knob{position:absolute;left:7.6%;top:81.6%;z-index:3;width:max(28px,4.2cqi);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 38% 34%,#d9a066,#9a5a2a 62%,#6d3b17);border:2px solid #fff3d6;box-shadow:0 2px 6px #2c201480;transform:translate(-50%,-50%);translate:calc(var(--pull) * -5.5cqi) 0;pointer-events:none}
.poem-lime-kiln.is-pumpable .lk-knob{animation:lk-knob 1.6s ease-in-out infinite}
@keyframes lk-knob{50%{box-shadow:0 0 0 .6cqi #ffd36e99,0 2px 6px #2c201480}}
.poem-lime-kiln .lk-track{position:absolute;left:2%;top:63%;z-index:3;display:none;gap:.6cqi;pointer-events:none}
.poem-lime-kiln.is-pumpable .lk-track{display:flex}
.poem-lime-kiln .lk-track b{padding:.2cqi .9cqi;border-radius:999px;background:#fffaf0e8;color:#9a5a2a;font-size:max(14px,2.6cqi);white-space:nowrap;box-shadow:0 1px 4px #2c201440;opacity:.75}
.poem-lime-kiln:not([data-pump="push"]) .lk-track-l,.poem-lime-kiln[data-pump="push"] .lk-track-r{background:#c8692b;color:#fff;opacity:1}
/* 火力：每鼓一下風亮一朵火苗 */
.poem-lime-kiln .lk-fire{position:absolute;left:31.5%;top:29%;z-index:4;display:flex;align-items:center;gap:.5cqi;padding:.5cqi 1.3cqi;border-radius:999px;background:#fffaf0e8;box-shadow:0 2px 6px #2c201440;transform:translateX(-50%);pointer-events:none}
.poem-lime-kiln .lk-fire small{font-size:max(13px,2.4cqi);font-weight:700;color:#7a4a22}
.poem-lime-kiln .lk-fire i{display:block;width:max(14px,2.6cqi)}
.poem-lime-kiln .lk-fire svg{display:block;width:100%;height:auto;fill:#d9d2c3;transition:fill .3s}
.poem-lime-kiln .lk-fire i.is-on svg{fill:#ea6b1e;animation:lk-pop .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes lk-pop{0%{scale:.4}}
.poem-lime-kiln .lk-bellows{z-index:2}
.poem-lime-kiln[data-shown="1"]:not(.is-step-done):not(.is-done) .lk-rod{animation:lk-glow 2s ease-in-out infinite}
.poem-lime-kiln.is-pumping :is(.lk-rod,.lk-knob){animation:lk-pump .4s ease-in-out}
.poem-lime-kiln.is-pumping .lk-bellows{animation:lk-squeeze .4s ease-in-out}
@keyframes lk-squeeze{45%{scale:1 .9;translate:0 .4cqi}}
/* 每鼓一下風，火苗和火光猛地一亮 */
.poem-lime-kiln .lk-stage.is-flare .lk-flame{filter:brightness(1.35) drop-shadow(0 0 1.2cqi #ffb347)}
.poem-lime-kiln .lk-stage.is-flare .lk-glow{animation:lk-flare .6s ease-out}
@keyframes lk-flare{30%{opacity:calc(var(--heat) + .45);scale:1.15}}
@keyframes lk-pump{0%,100%{translate:0 0}45%{translate:-5.5cqi 0}}

/* ③ 粉骨碎身：木杵在石臼裏畫圈，石塊變小，白粉變多。 */
.poem-lime-kiln .lk-lumps{opacity:calc(1 - var(--grind));transform:scale(calc(1 - var(--grind) * .55));transform-origin:50% 70%}
.poem-lime-kiln .lk-powder{opacity:calc(var(--grind) * 1.4);transform:scale(calc(.3 + var(--grind) * .7));transform-origin:50% 80%}
.poem-lime-kiln .lk-pestle{width:7%;height:30%;transform:translate(-50%,-94%) rotate(var(--tilt,0deg));transform-origin:50% 94%;touch-action:none;cursor:grab}
.poem-lime-kiln .lk-pestle img{position:absolute;left:50%;bottom:0;height:88%;width:auto;transform:translateX(-50%);pointer-events:none;-webkit-user-drag:none}
.poem-lime-kiln[data-shown="2"]:not(.is-step-done):not(.is-done) .lk-pestle img{animation:lk-glow 2s ease-in-out infinite}

/* ④ 清白人間：刷子刷過的地方灰色褪去；刷完整面牆變白。 */
.poem-lime-kiln .lk-grime{aspect-ratio:382/516;height:auto;transition:opacity 1.2s ease}
.poem-lime-kiln.is-white .lk-grime{opacity:0}
.poem-lime-kiln .lk-grime-src{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.poem-lime-kiln .lk-wall{position:absolute;left:var(--l);top:var(--t);z-index:4;width:var(--w);height:var(--h);padding:0;border:0;background:transparent;clip-path:polygon(0 18%,100% 0,100% 100%,0 100%);cursor:pointer}
.poem-lime-kiln .lk-wall:disabled{cursor:default}
.poem-lime-kiln .lk-brush{width:5%;height:24%;transform:translate(-50%,-96%);touch-action:none;cursor:grab;transition:left .5s ease,top .5s ease}
.poem-lime-kiln .lk-brush.is-moving,.poem-lime-kiln .lk-brush.is-dragging{transition:none;cursor:grabbing}
.poem-lime-kiln .lk-brush img{position:absolute;left:50%;bottom:0;height:100%;width:auto;transform:translateX(-50%);pointer-events:none;-webkit-user-drag:none}
.poem-lime-kiln[data-shown="3"]:not(.is-step-done):not(.is-done) .lk-brush:not(.is-moving) img{animation:lk-glow 2s ease-in-out infinite}
.poem-lime-kiln.is-done .lk-brush{opacity:0}
.poem-lime-kiln .lk-end{position:absolute;left:3%;top:5%;z-index:5;display:grid;gap:.4cqi;padding:1.2cqi 2cqi;border-radius:1.6cqi;background:#fffdf6e0;box-shadow:0 .4cqi 1.4cqi #2c443120;opacity:0;transform:translateY(1cqi);transition:opacity .9s ease 1s,transform .9s ease 1s;pointer-events:none}
.poem-lime-kiln .lk-end b{font-size:max(18px,3cqi);letter-spacing:.1em;color:#7a4a22}
.poem-lime-kiln .lk-end small{font-size:max(12px,1.6cqi);color:var(--lk-soft)}
.poem-lime-kiln.is-done .lk-end{opacity:1;transform:none}

/* 第 2、4 句舞台右下的大按鈕：鼓風／刷一下 */
.poem-lime-kiln .lk-act{position:absolute;right:2.5%;bottom:4%;z-index:7;display:inline-flex;align-items:center;justify-content:center;gap:.4em;min-width:max(96px,15cqi);min-height:max(52px,8.5cqi);padding:0 max(14px,2cqi);border:0;border-radius:max(16px,2cqi);background:#c8692b;color:#fff!important;font-size:max(20px,2.8cqi);font-weight:750;letter-spacing:.08em;box-shadow:0 4px 0 #8f4517,0 6px 16px #2c443140;cursor:pointer}
.poem-lime-kiln[data-shown="3"] .lk-act{background:#3f7a52;box-shadow:0 4px 0 #2c5a3b,0 6px 16px #2c443140}
.poem-lime-kiln .lk-act svg{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.poem-lime-kiln .lk-act:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #8f4517}
.poem-lime-kiln .lk-act:disabled{opacity:.6;cursor:default}
.poem-lime-kiln.is-howto .lk-act{visibility:hidden}
.poem-lime-kiln.is-help:not(.is-step-done) .lk-act:not(:disabled){animation:lk-act 1s ease-in-out infinite}
@keyframes lk-act{50%{scale:1.08}}

/* 劇情泡泡（在鏡頭裏，跟着推近） */
.poem-lime-kiln .lk-bubble{position:absolute;left:var(--x);top:var(--y);z-index:7;padding:.5cqi 1.1cqi;border-radius:1.2cqi;background:#fffdf6f2;border:1px solid #d9cfb5;color:#6b3e1c;font-size:max(12px,1.5cqi);font-weight:700;white-space:nowrap;transform:translate(-50%,-100%) scale(.6);opacity:0;transition:opacity .4s ease,transform .4s ease;pointer-events:none}
.poem-lime-kiln .lk-bubble::after{content:'';position:absolute;left:50%;bottom:-.6cqi;width:1.1cqi;height:1.1cqi;background:inherit;border-right:1px solid #d9cfb5;border-bottom:1px solid #d9cfb5;transform:translateX(-50%) rotate(45deg)}
.poem-lime-kiln .lk-bubble.is-on{opacity:1;transform:translate(-50%,-100%) scale(1);transition:opacity .5s ease 1.2s,transform .5s cubic-bezier(.3,1.5,.5,1) 1.2s}

/* 錯兩次：工具和目標一起發亮 */
@keyframes lk-help{0%,100%{filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #ffc23d)}50%{filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 18px #ff9a1a)}}
.poem-lime-kiln.is-help:not(.is-step-done)[data-shown="0"] :is(.lk-hammer img,.lk-boulder),
.poem-lime-kiln.is-help:not(.is-step-done)[data-shown="1"] :is(.lk-rod,.lk-knob,.lk-bellows,.lk-embers),
.poem-lime-kiln.is-help:not(.is-step-done)[data-shown="2"] :is(.lk-pestle img,.lk-mortar),
.poem-lime-kiln.is-help:not(.is-step-done)[data-shown="3"] .lk-brush:not(.is-moving) img{filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px #ffb020);animation:lk-help 1s ease-in-out infinite}
.poem-lime-kiln.is-help:not(.is-step-done)[data-shown="3"] .lk-wall:not(:disabled){background:#ffe08a55;animation:lk-wall 1s ease-in-out infinite}
@keyframes lk-wall{50%{background:#ffd76e99}}

/* 手勢示範：一個發光的指尖，從工具開始，落在目標上（位置與工具同一套舞台 %） */
.poem-lime-kiln .lk-demo{position:absolute;left:50%;top:50%;z-index:8;width:max(30px,4.4cqi);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fffef6 0 32%,#fff6d0aa 45%,#fff3c000 70%);box-shadow:0 0 0 2px #ffffffb0;transform:translate(-50%,-50%);opacity:0;pointer-events:none}
.poem-lime-kiln .lk-demo i{position:absolute;inset:-30%;border:2px solid #fff8dd;border-radius:50%;opacity:0}
.poem-lime-kiln.is-demo .lk-demo{opacity:1}
.poem-lime-kiln.is-demo[data-shown="0"] .lk-demo{left:37%;top:66%;animation:lk-d-tap .55s ease-in-out infinite}
.poem-lime-kiln.is-demo[data-shown="0"] .lk-demo i{animation:lk-d-ring .55s ease-out infinite}
.poem-lime-kiln.is-demo[data-shown="1"] .lk-demo{left:8%;top:82%;animation:lk-d-pump 1.1s ease-in-out infinite}
@keyframes lk-d-pump{0%,100%{left:8%}50%{left:3%}}
.poem-lime-kiln.is-demo[data-shown="3"] .lk-demo i{animation:lk-d-ring .55s ease-out infinite}
.poem-lime-kiln.is-demo[data-shown="2"] .lk-demo{left:47%;top:64%;animation:lk-d-circle 1.6s linear infinite}
.poem-lime-kiln.is-demo[data-shown="3"] .lk-demo{left:74%;top:50%;animation:lk-d-tap .55s ease-in-out infinite}
@keyframes lk-d-tap{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-30%) scale(.82)}}
@keyframes lk-d-ring{0%{opacity:.9;transform:scale(.6)}100%{opacity:0;transform:scale(1.4)}}
@keyframes lk-d-circle{0%,100%{left:47%;top:64%}25%{left:50%;top:70%}50%{left:47%;top:76%}75%{left:44%;top:70%}}

/* 「怎麼玩」卡：蓋在舞台上，按「開始」才開始玩 */
.poem-lime-kiln .lk-howto{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:3%;background:#2f4a3c4d}
.poem-lime-kiln.is-howto :is(.lk-tool,.lk-wall,.lk-track,.lk-fire){visibility:hidden}
.poem-lime-kiln.is-howto .lk-tool img{visibility:visible}
.poem-lime-kiln .lk-howto-card{display:grid;grid-template-columns:minmax(0,auto) auto;grid-template-areas:"title go" "steps go";align-items:center;column-gap:clamp(10px,3cqi,30px);row-gap:clamp(3px,1.2cqi,12px);max-width:100%;max-height:100%;padding:clamp(8px,2.4cqi,24px) clamp(10px,3cqi,30px);border:1px solid #e3d6b6;border-radius:clamp(12px,2cqi,22px);background:#fffdf6;box-shadow:0 6px 24px #2c443140;animation:lk-pop .35s ease}
.poem-lime-kiln .lk-howto-title{grid-area:title;font-size:clamp(17px,3.4cqi,30px);line-height:1.2;letter-spacing:.12em;color:#7a4a22}
.poem-lime-kiln .lk-howto-steps{grid-area:steps;display:grid;gap:clamp(3px,1cqi,10px);margin:0;padding:0;list-style:none;counter-reset:lk}
.poem-lime-kiln .lk-howto-steps li{display:flex;align-items:center;gap:clamp(4px,1cqi,10px);font-size:clamp(14px,2.7cqi,22px);font-weight:650;line-height:1.3}
.poem-lime-kiln .lk-howto-steps li::before{counter-increment:lk;content:counter(lk);flex:none;display:grid;place-items:center;width:1.35em;height:1.35em;border-radius:50%;background:#3f7a52;color:#fff;font-size:.78em}
.poem-lime-kiln .lk-howto-steps svg{flex:none;width:1.5em;height:1.5em;fill:none;stroke:#7a4a22;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.poem-lime-kiln .lk-howto-steps .lk-ic-ring{stroke:#e3a548}
.poem-lime-kiln .lk-howto-go{grid-area:go;min-height:max(48px,8cqi);min-width:max(76px,13cqi);padding:0 clamp(12px,2.6cqi,28px);border:0;border-radius:16px;background:#3f7a52;color:#fff;font-size:clamp(19px,3.2cqi,28px);font-weight:700;box-shadow:0 3px 0 #2c5a3b;cursor:pointer}

.poem-lime-kiln .lk-loading{position:absolute;inset:0;z-index:9;display:grid;place-content:center;gap:10px;background:#f7f3e9e6;font-size:19px;text-align:center}
.poem-lime-kiln .lk-loading button{min-height:48px;padding:8px 18px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-size:18px;font-weight:600;cursor:pointer}

/* 側欄：詩句（照常顯示，不標字不加拼音）、故事、進度、按鈕 */
.poem-lime-kiln .lk-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-lime-kiln .lk-verse{display:grid;gap:4px;padding:10px 12px 8px;border-radius:14px;background:#f5f8ef;text-align:center}
.poem-lime-kiln .lk-line{margin:0;font-size:clamp(22px,2.8vw,28px);line-height:1.25;letter-spacing:.06em;white-space:nowrap}
.poem-lime-kiln.is-done .lk-line{font-size:clamp(19px,2.2vw,23px)}
.poem-lime-kiln .lk-story{margin:0;font-size:19px;line-height:1.5;color:var(--lk-soft)}
.poem-lime-kiln .lk-meter{height:12px;border-radius:8px;background:#e7e2d3;overflow:hidden}
.poem-lime-kiln .lk-meter i{display:block;height:100%;width:0;border-radius:8px;background:linear-gradient(90deg,#d9a24c,#f0c66e);transition:width .3s ease}
.poem-lime-kiln .lk-summary{padding:10px 14px;border-radius:14px;background:#fff7e6;border:1px solid #efd9ac}
.poem-lime-kiln .lk-summary b{font-size:20px;color:#8a4f24}
.poem-lime-kiln .lk-summary p{margin:4px 0 0;font-size:19px;line-height:1.55}
.poem-lime-kiln .lk-actions{display:flex;flex-wrap:wrap;gap:10px}
.poem-lime-kiln .lk-next,.poem-lime-kiln .lk-listen{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:8px 18px;border-radius:14px;font-size:19px;font-weight:650;cursor:pointer}
.poem-lime-kiln .lk-next{border:0;background:#3f7a52;color:#fff;box-shadow:0 3px 0 #2c5a3b;animation:lk-pop .5s ease}
.poem-lime-kiln .lk-listen{border:1px solid #97ad9b;background:#fffefa}
.poem-lime-kiln .lk-listen svg{width:22px;height:22px}
.poem-lime-kiln .lk-listen.is-busy{opacity:.7}
@keyframes lk-pop{0%{transform:scale(.85);opacity:0}100%{transform:none;opacity:1}}
.poem-lime-kiln .lk-feedback{margin:0;min-height:1.5em;font-size:19px;line-height:1.5}

@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-lime-kiln{max-width:1280px}
 .poem-lime-kiln .lk-layout{grid-template-columns:minmax(0,1.75fr) minmax(250px,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;align-items:center}
 .poem-lime-kiln .lk-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
}
@media (max-width:500px){.poem-lime-kiln.is-done .lk-story,.poem-lime-kiln.is-done .lk-feedback{display:none}.poem-lime-kiln.is-done .lk-line{font-size:19px}.poem-lime-kiln .lk-layout{gap:8px}}
.poem-lime-kiln.is-reduced *{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.poem-lime-kiln *{transition:none!important;animation:none!important}}

/* 2026-11-03 橫屏側欄用滿畫面高度：上面是任務，中間是詩句和說明，按鈕在最下面；字和按鈕放大。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-lime-kiln .lk-layout{grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;align-content:stretch;row-gap:14px;column-gap:24px}
 .poem-lime-kiln .lk-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-lime-kiln .lk-head{align-self:start;flex-wrap:wrap;justify-content:flex-start;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid #dfe6d6}
 .poem-lime-kiln .lk-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-lime-kiln .lk-progress{order:2;font-size:19px}
 .poem-lime-kiln .lk-howbtn{order:3;margin-left:auto}
 .poem-lime-kiln .lk-side{align-self:stretch;gap:16px}
 .poem-lime-kiln .lk-side::before,.poem-lime-kiln .lk-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-lime-kiln .lk-side::before{order:-1}.poem-lime-kiln .lk-side::after{order:8}
 .poem-lime-kiln .lk-verse{padding:12px 14px}
 .poem-lime-kiln .lk-line{font-size:clamp(26px,2.7vw,32px)}
 .poem-lime-kiln.is-done .lk-line{font-size:clamp(20px,2vw,24px)}
 .poem-lime-kiln .lk-story{font-size:21px;line-height:1.45;text-align:center}
 .poem-lime-kiln .lk-meter{height:16px}
 .poem-lime-kiln .lk-summary b{font-size:24px}
 .poem-lime-kiln .lk-summary p{font-size:20px}
 .poem-lime-kiln .lk-feedback{min-height:0;font-size:21px;text-align:center}
 .poem-lime-kiln .lk-feedback:empty{display:none}
 .poem-lime-kiln .lk-actions{order:9;flex-wrap:nowrap}
 .poem-lime-kiln .lk-next,.poem-lime-kiln .lk-listen{flex:1 1 0;min-height:62px;font-size:23px;white-space:nowrap}
 .poem-lime-kiln .lk-listen svg{width:26px;height:26px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-lime-kiln .lk-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);row-gap:4px;column-gap:14px}
 .poem-lime-kiln .lk-head{flex-wrap:nowrap;padding-bottom:3px;border-bottom:0;gap:6px}
 .poem-lime-kiln .lk-instruction{flex:1 1 auto;font-size:16px;line-height:1.25}
 .poem-lime-kiln .lk-progress{min-width:0;padding:2px 8px;font-size:14px}
 .poem-lime-kiln .lk-howbtn{min-height:32px;padding:0 10px;font-size:14px}
 .poem-lime-kiln .lk-side{gap:3px}
 .poem-lime-kiln .lk-verse{padding:2px 8px;gap:0}
 .poem-lime-kiln .lk-line{font-size:19px;letter-spacing:.02em}
 .poem-lime-kiln.is-done .lk-line{font-size:13px;line-height:1.25}
 .poem-lime-kiln .lk-story,.poem-lime-kiln .lk-feedback{font-size:14px;line-height:1.3}
 .poem-lime-kiln .lk-side:has(.lk-feedback:not(:empty)) .lk-story{display:none}
 .poem-lime-kiln .lk-meter{height:8px}
 .poem-lime-kiln .lk-summary{padding:2px 8px}
 .poem-lime-kiln .lk-summary b{display:none}
 .poem-lime-kiln .lk-summary p{margin:0;font-size:13px;line-height:1.25}
 .poem-lime-kiln .lk-actions{gap:6px}
 .poem-lime-kiln .lk-next,.poem-lime-kiln .lk-listen{min-height:34px;padding:2px 10px;font-size:16px}
 .poem-lime-kiln .lk-listen svg{width:20px;height:20px}
 .poem-lime-kiln.is-done .lk-feedback{display:none}
 .poem-lime-kiln.is-done .lk-verse{grid-template-columns:1fr 1fr;column-gap:6px}
}
/* 2026-11-03 r3h iPad Safari 實際可用高度較矮（約 700–780）：收緊側欄，按鈕不被擠出畫面、側欄不出捲軸。 */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px) and (max-height:780px){
 .poem-lime-kiln .lk-layout{row-gap:8px}
 .poem-lime-kiln .lk-head{padding-bottom:8px}
 .poem-lime-kiln .lk-instruction{font-size:clamp(20px,2vw,24px)}
 .poem-lime-kiln .lk-side{gap:10px}
 .poem-lime-kiln .lk-verse{padding:8px 12px}
 .poem-lime-kiln .lk-line{font-size:clamp(23px,2.3vw,28px)}
 .poem-lime-kiln.is-done .lk-line{font-size:clamp(18px,1.8vw,21px)}
 .poem-lime-kiln .lk-story,.poem-lime-kiln .lk-feedback{font-size:18px;line-height:1.4}
 .poem-lime-kiln .lk-side:has(.lk-feedback:not(:empty)) .lk-story{display:none}
 .poem-lime-kiln .lk-summary{padding:8px 12px}
 .poem-lime-kiln .lk-summary b{font-size:20px}
 .poem-lime-kiln .lk-summary p{font-size:18px;line-height:1.45}
 .poem-lime-kiln.is-done .lk-feedback{display:none}
 .poem-lime-kiln .lk-next,.poem-lime-kiln .lk-listen{min-height:52px;font-size:20px}
}

/* poem-games/east-river.css */
/* poem-games/east-river.css：《長歌行》「百川東到海」。所有選擇器都以 .poem-east-river 開頭。 */
.poem-east-river{--er-ink:#2f4a3a;--er-gold:#e7a63c;display:block;width:100%;max-width:880px;margin-inline:auto;color:var(--er-ink);font-family:var(--sans);min-width:0}
.poem-east-river *{box-sizing:border-box}
.poem-east-river [hidden]{display:none!important}
.poem-east-river button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-east-river button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-east-river img{max-width:none}
.poem-east-river .er-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;align-content:center}
.poem-east-river .er-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-east-river .er-instruction{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-east-river .er-tools{flex:none;display:flex;align-items:center;gap:8px}
.poem-east-river .er-help{min-height:44px;padding:6px 12px;border:2px solid #c9b48a;border-radius:14px;background:#fffaf0;font-size:19px;font-weight:650;white-space:nowrap;cursor:pointer}
.poem-east-river .er-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#edf3e7;font-size:19px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}

/* 畫面與鏡頭 */
.poem-east-river .er-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;overflow:hidden;overflow:clip;border-radius:20px;background:#e9e2d2;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.poem-east-river .er-cam{position:absolute;inset:0;transform-origin:50% 50%;transition:transform 1.6s cubic-bezier(.45,0,.2,1)}
.poem-east-river[data-zoom="dew"] .er-cam{transform-origin:62% 100%;transform:scale(1.5)}
.poem-east-river[data-zoom="sea"] .er-cam{transform-origin:88% 38%;transform:scale(1.45)}
@container (min-width:640px){
 .poem-east-river[data-zoom="dew"] .er-cam{transform:scale(1.35)}
 .poem-east-river[data-zoom="sea"] .er-cam{transform:scale(1.32)}
}
.poem-east-river .er-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;opacity:0;transition:opacity 1s ease}
.poem-east-river .er-scene.is-on{opacity:1}
.poem-east-river [data-er-part]{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s .8s}
.poem-east-river [data-er-part].is-on{opacity:1;visibility:visible;transition:opacity .8s ease .3s,visibility 0s}
.poem-east-river .er-fx{position:absolute;inset:0;z-index:6;pointer-events:none}

/* 第 1 步：露珠 */
.poem-east-river .er-beam{position:absolute;left:30%;top:-10%;width:75%;height:105%;background:linear-gradient(205deg,#fff1b800 25%,#ffe9a04d 48%,#fff6d000 72%);mix-blend-mode:screen;pointer-events:none;opacity:.7}
.poem-east-river .er-drop{position:absolute;left:var(--x);top:var(--y);z-index:3;width:max(48px,var(--w));aspect-ratio:1;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:radial-gradient(circle,#ffffff38 0 40%,#fff0 70%);cursor:pointer}
.poem-east-river .er-drop img{width:var(--wi,72%);height:auto;filter:drop-shadow(0 1px 2px #2b4a2a66);transition:transform .9s ease-in,opacity .9s ease-in;animation:er-glint 2.6s ease-in-out infinite}
.poem-east-river .er-drop:nth-of-type(2) img{animation-delay:.7s}
.poem-east-river .er-drop:nth-of-type(3) img{animation-delay:1.4s}
.poem-east-river .er-drop.is-dry img{transform:scale(.2) translateY(-30%);opacity:0;animation:none}
.poem-east-river .er-drop:disabled{cursor:default}
.poem-east-river .er-drop.is-dry{pointer-events:none;background:none}
@keyframes er-glint{0%,100%{filter:drop-shadow(0 1px 2px #2b4a2a66) brightness(1)}50%{filter:drop-shadow(0 0 6px #fffbe6) brightness(1.12)}}
.poem-east-river .er-ray{position:absolute;left:var(--x);top:var(--y);width:16%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#fff6c8d9 0,#ffd97a66 35%,#ffd97a00 70%);mix-blend-mode:screen;animation:er-ray 1.6s ease-out forwards}
@keyframes er-ray{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}
.poem-east-river .er-mist{position:absolute;left:var(--x);top:var(--y);width:3.5%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#ffffffcc,#fff0 70%);filter:blur(2px);opacity:0;animation:er-mist 2s ease-out var(--d) forwards}
@keyframes er-mist{0%{opacity:0;transform:translate(-50%,0) scale(.6)}30%{opacity:.9}100%{opacity:0;transform:translate(-50%,-260%) scale(1.8)}}

/* 做完動作的小星光（不跳字、不出拼音） */
.poem-east-river .er-spark{position:absolute;left:var(--x);top:var(--y);width:max(22px,3%);color:#fff4c2;filter:drop-shadow(0 0 6px #ffd96a);transform:translate(-50%,-50%);animation:er-spark 1.1s ease-out forwards}
.poem-east-river .er-spark svg{display:block;width:100%;fill:currentColor}
@keyframes er-spark{0%{opacity:0;transform:translate(-50%,-50%) scale(.3) rotate(0)}35%{opacity:1;transform:translate(-50%,-50%) scale(1.15) rotate(30deg)}100%{opacity:0;transform:translate(-50%,-90%) scale(.6) rotate(60deg)}}

/* 第 2 步：春光 */
.poem-east-river .er-light{position:absolute;left:var(--x);top:var(--y);width:calc(var(--r,0%) * 2.2);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#fff3c05c 0,#ffe08a33 38%,#ffe08a14 60%,#ffe08a00 72%);mix-blend-mode:screen;pointer-events:none;transition:width .35s ease-out}
.poem-east-river .er-spring.is-full .er-light{width:200%;opacity:.8;transition:width 1.6s ease-out}
.poem-east-river .er-shine{position:absolute;left:var(--x);top:var(--y);width:2.6%;transform:translate(-50%,-50%) scale(.3);opacity:0;color:#fff4c2;filter:drop-shadow(0 0 5px #ffd96a);transition:opacity .5s ease,transform .5s ease}
.poem-east-river .er-shine svg{display:block;width:100%;fill:currentColor}
.poem-east-river .er-shine.is-lit{opacity:1;transform:translate(-50%,-50%) scale(1);animation:er-twinkle 1.8s ease-in-out var(--d) infinite}
@keyframes er-twinkle{0%,100%{transform:translate(-50%,-50%) scale(1) rotate(0)}50%{transform:translate(-50%,-50%) scale(.6) rotate(45deg)}}
.poem-east-river .er-sun{position:absolute;left:var(--x);top:var(--y);z-index:4;width:max(64px,9%);aspect-ratio:1;transform:translate(-50%,-50%);padding:0;border:0;border-radius:50%;background:radial-gradient(circle,#fffbe6 0,#ffe48f 30%,#ffd36a99 52%,#ffd36a00 70%);touch-action:none;cursor:grab;animation:er-breathe 2.4s ease-in-out infinite}
.poem-east-river .er-sun span{position:absolute;inset:-22%;border-radius:50%;border:3px dashed #fff3c4cc;animation:er-spin 9s linear infinite}
.poem-east-river .er-sun.is-held{cursor:grabbing;animation:none}
.poem-east-river .er-sun:disabled{cursor:default}
@keyframes er-breathe{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.12)}}
@keyframes er-spin{to{transform:rotate(360deg)}}

/* 第 3 步：大樹（樹冠綠色層漸漸褪成黃） */
.poem-east-river .er-crown{position:absolute;left:32.5%;top:0;width:31.875%;height:50%;transform-origin:50% 100%;pointer-events:none}
.poem-east-river .er-crown img{position:absolute;inset:0;width:100%;height:100%}
.poem-east-river .er-crown-green{transition:opacity 1.2s ease}
.poem-east-river .er-crown.is-shake{animation:er-shake .7s ease-out}
.poem-east-river .er-crown.is-shake-r{animation:er-shake-r .7s ease-out}
@keyframes er-shake{0%,100%{transform:none}20%{transform:rotate(2.2deg) skewX(-2deg)}45%{transform:rotate(-1.8deg) skewX(1.6deg)}70%{transform:rotate(1deg)}}
@keyframes er-shake-r{0%,100%{transform:none}20%{transform:rotate(-2.2deg) skewX(2deg)}45%{transform:rotate(1.8deg) skewX(-1.6deg)}70%{transform:rotate(-1deg)}}
.poem-east-river .er-tree{position:absolute;left:31%;top:0;z-index:4;width:35%;height:78%;padding:0;border:0;border-radius:40% 40% 18% 18%;background:transparent;touch-action:none;cursor:ew-resize}
.poem-east-river .er-tree:disabled{cursor:default}
.poem-east-river .er-fall{position:absolute;left:var(--x);top:var(--y);width:3.6%;opacity:0;animation:er-fall 3s ease-in var(--d) forwards}
.poem-east-river .er-fall img{display:block;width:100%;height:auto;filter:drop-shadow(0 2px 2px #4a2c0f44)}
@keyframes er-fall{0%{opacity:0;transform:translate(0,0) rotate(0)}10%{opacity:1}55%{transform:translate(var(--fx),calc(var(--fy) * 2.2)) rotate(calc(var(--fr) * .5))}90%{opacity:1}100%{opacity:0;transform:translate(calc(var(--fx) * -.4),calc(var(--fy) * 4)) rotate(var(--fr))}}

/* 第 4 步：河水東流 */
.poem-east-river.is-busy .er-tag,.poem-east-river[data-zoom="sea"] .er-tag{opacity:0}
.poem-east-river .er-tag{transition:opacity .5s}
.poem-east-river .er-tag{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);padding:2px 10px;border-radius:12px;background:#fffaf0d9;font-family:var(--serif,serif);font-size:max(19px,2.2cqi);font-weight:700;color:#36556a;white-space:nowrap;pointer-events:none}
/* 百川：三條小河，點起點，河水沿河道流向東邊大海 */

/* 第 5 步：讀書／老人 */
.poem-east-river .er-glow{position:absolute;left:var(--x);top:var(--y);width:30%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#ffeeb0a6 0,#ffe08a40 40%,#ffe08a00 70%);mix-blend-mode:screen;opacity:0;pointer-events:none;transition:opacity 1s ease}
.poem-east-river .er-glow-old{width:34%;background:radial-gradient(circle,#dfe6f2a6 0,#b9c6dc40 40%,#b9c6dc00 70%)}
.poem-east-river .er-glow.is-on{opacity:1}

/* 閒置示範手勢 */
.poem-east-river .er-hand{position:absolute;left:var(--x);top:var(--y);z-index:7;width:max(40px,4.8%);opacity:0;pointer-events:none;transform:translate(-46%,-9%)}
.poem-east-river .er-hand svg{display:block;width:100%;fill:#fffaf0;stroke:#5a4a3a;stroke-width:2.2;stroke-linejoin:round;filter:drop-shadow(0 2px 3px #0005)}
.poem-east-river .er-hand.is-tap{animation:er-tap 1.4s ease-in-out 3}
.poem-east-river .er-hand.is-move{animation:er-move 2s ease-in-out 2}
.poem-east-river .er-hand.is-swing{animation:er-swing 2s ease-in-out 2}
@keyframes er-tap{0%,100%{opacity:0}20%,80%{opacity:1}45%{transform:translate(-46%,-9%) scale(.86)}}
@keyframes er-move{0%{opacity:0;left:var(--x);top:var(--y)}15%{opacity:1;left:var(--x);top:var(--y)}80%{opacity:1;left:var(--x2);top:var(--y2)}100%{opacity:0;left:var(--x2);top:var(--y2)}}
@keyframes er-swing{0%{opacity:0;left:var(--x)}15%{opacity:1;left:var(--x)}38%{left:var(--x2)}62%{left:var(--x)}85%{opacity:1;left:var(--x2)}100%{opacity:0;left:var(--x2)}}

/* 念詩時畫面下方的字幕 */
.poem-east-river .er-caption{position:absolute;left:50%;bottom:5%;z-index:8;display:flex;flex-wrap:wrap;justify-content:center;max-width:92%;padding:8px 22px;border-radius:14px;background:#fffaf0e6;box-shadow:0 4px 18px #2a1e0f33;transform:translateX(-50%);font-family:var(--serif,serif);font-size:max(21px,3.6cqi);font-weight:700;letter-spacing:.08em;color:#3a2a18;white-space:nowrap;animation:er-cap .8s ease both}
@keyframes er-cap{from{opacity:0;transform:translate(-50%,30%)}to{opacity:1;transform:translate(-50%,0)}}
.poem-east-river .er-loading{position:absolute;inset:0;z-index:9;display:grid;place-content:center;gap:10px;background:#f7f3e9e6;font-size:19px;text-align:center}
.poem-east-river .er-loading button,.poem-east-river .er-audio{min-height:48px;padding:8px 18px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-size:19px;font-weight:600;cursor:pointer}

/* 側欄 */
.poem-east-river .er-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
.poem-east-river .er-verse{display:flex;flex-direction:column;align-items:center;gap:2px;margin:0;padding:10px 10px 8px;border-radius:14px;background:#f5f8ef;font-family:var(--serif,serif);font-size:28px;line-height:1.2}
.poem-east-river .er-clause{display:block;text-align:center;white-space:nowrap;color:#3a5a48}
.poem-east-river .er-choices{display:grid;gap:10px}
.poem-east-river .er-choices button{min-height:56px;padding:10px 16px;border:2px solid #c9b48a;border-radius:16px;background:#fffaf0;font-size:20px;font-weight:650;text-align:center;cursor:pointer;box-shadow:0 2px 0 #c9b48a}
.poem-east-river .er-choices button:active{transform:translateY(2px);box-shadow:none}
.poem-east-river .er-choices button:disabled{opacity:.55;cursor:default}
.poem-east-river .er-summary{padding:10px 14px;border-radius:14px;background:#fbf4e2;font-size:19px;line-height:1.55}
.poem-east-river .er-summary b{display:block;font-family:var(--serif,serif);font-size:22px;color:#7a3b12}
.poem-east-river .er-summary ol{margin:6px 0;padding-left:1.4em;font-family:var(--serif,serif)}
.poem-east-river .er-summary p{margin:0}
.poem-east-river .er-actionline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.poem-east-river .er-method{font-size:19px;color:#5b6d5f;line-height:1.4}
.poem-east-river .er-audio{display:inline-flex;align-items:center;gap:6px;flex:none}
.poem-east-river .er-audio svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.poem-east-river .er-feedback{margin:0;min-height:1.5em;font-size:19px;line-height:1.5}

/* 橫屏：左畫右文 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-east-river{max-width:1280px}
 .poem-east-river .er-layout{grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;align-items:center}
 .poem-east-river .er-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-east-river .er-layout{gap:6px;column-gap:14px}
 .poem-east-river .er-instruction{font-size:19px;line-height:1.3}
 .poem-east-river .er-verse{font-size:24px;padding:4px 6px}
 .poem-east-river .er-choices button{min-height:48px;font-size:19px;padding:6px 10px}
 .poem-east-river .er-summary{font-size:19px;line-height:1.35;padding:6px 10px}
 .poem-east-river .er-summary ol{display:none}
 .poem-east-river .er-side{max-height:calc(100cqh - 90px);overflow-y:auto;overscroll-behavior:contain}
}
/* 2026-11-03 橫屏側欄用滿畫面高度：上面是任務，中間是詩句、選項和說明，「聽這句詩」在最下面；字和按鈕放大。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-east-river{height:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:center}
 .poem-east-river .er-layout{grid-column:1/-1;width:100%;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;row-gap:14px;column-gap:24px}
 .poem-east-river .er-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-east-river .er-head{align-self:start;flex-wrap:wrap;justify-content:flex-start;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid #e2d4b6}
 .poem-east-river .er-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-east-river .er-tools{margin-left:auto}
 .poem-east-river .er-side{align-self:stretch;gap:16px}
 .poem-east-river .er-side::before,.poem-east-river .er-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-east-river .er-side::before{order:-1}.poem-east-river .er-side::after{order:8}
 .poem-east-river .er-verse{padding:12px 14px;font-size:clamp(28px,2.8vw,34px);gap:4px}
 .poem-east-river .er-choices button{min-height:62px;font-size:22px}
 .poem-east-river .er-summary{font-size:20px}
 .poem-east-river .er-summary b{font-size:24px}
 .poem-east-river .er-actionline{display:contents}
 .poem-east-river .er-method{font-size:21px;line-height:1.45;text-align:center}
 .poem-east-river .er-method:empty{display:none}
 .poem-east-river .er-feedback{min-height:0;font-size:21px;text-align:center}
 .poem-east-river .er-feedback:empty{display:none}
 .poem-east-river .er-audio{order:9;justify-content:center;align-self:stretch;min-height:62px;font-size:23px}
 .poem-east-river.is-done .er-method,.poem-east-river.is-done .er-feedback{display:none}
 .poem-east-river.is-done .er-summary{line-height:1.45}
 .poem-east-river .er-summary ol{margin:4px 0}
 .poem-east-river .er-audio svg{width:26px;height:26px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-east-river .er-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);row-gap:4px;column-gap:14px}
 .poem-east-river .er-head{flex-wrap:nowrap;padding-bottom:3px;border-bottom:0;gap:6px}
 .poem-east-river .er-instruction{flex:1 1 auto;font-size:16px;line-height:1.25}
 .poem-east-river .er-tools{gap:6px}
 .poem-east-river .er-help{min-height:32px;padding:2px 10px;font-size:14px;border-width:1px}
 .poem-east-river .er-progress{min-width:0;padding:2px 8px;font-size:14px}
 .poem-east-river .er-side{max-height:none;overflow:visible;gap:3px}
 .poem-east-river .er-verse{flex-direction:row;flex-wrap:wrap;justify-content:center;padding:2px 8px;font-size:19px;gap:0;line-height:1.25}
 .poem-east-river .er-choices{gap:6px;grid-template-columns:1fr 1fr;display:grid}
 .poem-east-river .er-choices[hidden]{display:none}
 .poem-east-river .er-choices button{min-height:36px;padding:2px 6px;font-size:14px;line-height:1.2}
 .poem-east-river .er-summary{padding:2px 8px;font-size:13px;line-height:1.25}
 .poem-east-river .er-summary b{font-size:15px}
 .poem-east-river .er-method,.poem-east-river .er-feedback{font-size:14px;line-height:1.3}
 .poem-east-river .er-side:has(.er-feedback:not(:empty)) .er-method{display:none}
 .poem-east-river .er-audio{min-height:34px;padding:2px 10px;font-size:16px}
 .poem-east-river .er-audio svg{width:20px;height:20px}
}
.poem-east-river.is-reduced *{transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.poem-east-river *{transition:none!important;animation:none!important}}

/* 拖動目標圓圈 + 做錯兩次後發亮提示 */
.poem-east-river .er-goal{position:absolute;left:var(--x);top:var(--y);z-index:2;width:max(48px,7%);aspect-ratio:1;transform:translate(-50%,-50%);border:3px dashed #fff6c8;border-radius:50%;background:radial-gradient(circle,#fff6c84d 0,#fff6c800 70%);box-shadow:0 0 10px #ffd96a99;pointer-events:none;animation:er-goal 2s ease-in-out infinite}
.poem-east-river.is-busy .er-goal{opacity:0}
.poem-east-river .er-goal-sun{width:max(64px,12%)}
.poem-east-river .er-goal b{position:absolute;left:50%;top:100%;padding:.1em .6em;border-radius:999px;background:#fffaf0ee;color:#9a6a12;font-size:max(13px,1.9cqi);font-weight:700;white-space:nowrap;transform:translate(-50%,10%)}
.poem-east-river.is-near .er-goal-sun,.poem-east-river.is-sunpick .er-goal-sun{border-style:solid;border-color:#ffe58a;box-shadow:0 0 0 5px #ffd96a99,0 0 26px #ffd96a}
.poem-east-river.is-sunpick .er-sun{box-shadow:0 0 0 5px #ffd96acc,0 0 26px #ffd96a}
@keyframes er-goal{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.12)}}
.poem-east-river.is-hint .er-goal{border-style:solid;border-color:#ffe58a;box-shadow:0 0 0 4px #ffd96a88,0 0 22px #ffd96a}
.poem-east-river.is-hint .er-drop:not(.is-dry),.poem-east-river.is-hint .er-sun,.poem-east-river.is-hint .er-wave{box-shadow:0 0 0 4px #ffd96acc,0 0 22px #ffd96a}
/* 大樹永遠不出框：提示只靠示範手和樹搖動，不給按鈕加框或光暈 */
.poem-east-river.is-hint [data-er-choice="study"]{border-color:#e7a63c;box-shadow:0 0 0 4px #ffd96acc,0 0 16px #ffd96a}

/* 「怎麼玩」卡：蓋在畫面上，按「開始」才玩 */
.poem-east-river.is-guide .er-cam button,.poem-east-river.is-guide .er-fx,.poem-east-river.is-guide .er-caption,.poem-east-river.is-guide .er-tag,.poem-east-river.is-guide .er-hand,.poem-east-river.is-guide .er-goal,.poem-east-river.is-guide .er-flow{visibility:hidden}
.poem-east-river .er-guide{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:clamp(6px,2.5cqi,24px);background:#22382c66}
.poem-east-river .er-guide-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title title" "list go";align-items:center;gap:clamp(4px,1.4cqi,14px) clamp(8px,2.4cqi,24px);max-width:100%;max-height:100%;padding:clamp(8px,2cqi,22px) clamp(10px,3cqi,30px);border-radius:18px;background:#fffaf0;box-shadow:0 8px 30px #1a2a1f55;animation:er-guide-in .4s ease both}
@keyframes er-guide-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.poem-east-river .er-guide-title{grid-area:title;margin:0;font-family:var(--serif,serif);font-size:max(19px,3.2cqi);line-height:1.15;color:#7a3b12}
.poem-east-river .er-guide-list{grid-area:list;display:grid;gap:clamp(2px,1cqi,10px);margin:0;padding:0;list-style:none}
.poem-east-river .er-guide-list li{display:flex;align-items:center;gap:clamp(4px,1cqi,10px);font-size:max(16px,2.6cqi);font-weight:650;line-height:1.25;white-space:nowrap}
.poem-east-river .er-guide-num{flex:none;display:grid;place-items:center;width:1.3em;height:1.3em;border-radius:50%;background:#2f4a3a;color:#fffaf0;font-size:.8em}
.poem-east-river .er-guide-ic{flex:none;display:block;width:1.6em;height:1.4em}
.poem-east-river .er-guide-ic svg{display:block;width:100%;height:100%;fill:#fffaf0;stroke:#5a4a3a;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}
.poem-east-river .er-guide-ic .er-ic-ring{fill:none;stroke:#de8f22;stroke-width:3.2}
.poem-east-river .er-guide-go{grid-area:go;min-width:max(88px,13cqi);min-height:max(48px,8cqi);padding:6px 18px;border:0;border-radius:16px;background:#e7a63c;box-shadow:0 3px 0 #b97a1f;font-size:max(22px,3.4cqi);font-weight:750;color:#3a2410!important;cursor:pointer}
.poem-east-river .er-guide-go:active{transform:translateY(2px);box-shadow:none}
@container (max-width:480px){
 .poem-east-river .er-guide{padding:5px}
 .poem-east-river .er-guide-card{grid-template-areas:"title go" "list list";gap:4px 10px;padding:6px 12px 8px}
 .poem-east-river .er-guide-list{gap:2px}
 .poem-east-river .er-guide-go{min-width:84px;min-height:48px;padding:4px 14px}
}

/* 第 4 步：按住水波往東拖 → 河道一路變濕，流進大海（兩張預畫好的河，用遮罩露出濕的那張） */
.poem-east-river .er-rivers{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.poem-east-river .er-rivers-wet{-webkit-mask-image:linear-gradient(90deg,#000 calc(var(--fx,0%) - 2%),#0000 calc(var(--fx,0%) + 6%));mask-image:linear-gradient(90deg,#000 calc(var(--fx,0%) - 2%),#0000 calc(var(--fx,0%) + 6%))}
.poem-east-river .er-flow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;clip-path:inset(0 0 0 calc(var(--fx,0%) + 4%))}
.poem-east-river .er-flow path{fill:none;stroke:#fffaf0;stroke-width:6;stroke-linecap:round;stroke-dasharray:.008 .022;opacity:.9;animation:er-flow 1.6s linear infinite;filter:drop-shadow(0 0 2px #1d3a4a99)}
@keyframes er-flow{to{stroke-dashoffset:-.03}}
.poem-east-river.is-busy .er-flow{opacity:0;transition:opacity .4s}
.poem-east-river .er-wave{position:absolute;left:var(--x);top:var(--y);z-index:4;width:max(60px,7.5%);aspect-ratio:1;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:3px solid #fffaf0;border-radius:50%;background:radial-gradient(circle,#e6fbff 0 32%,#6cc2e4d9 58%,#6cc2e400 74%);box-shadow:0 0 16px #bff0ff;touch-action:none;cursor:grab;animation:er-breathe 2s ease-in-out infinite}
.poem-east-river .er-wave svg{width:60%;height:auto;fill:none;stroke:#1f5f86;stroke-width:3.2;stroke-linecap:round}
.poem-east-river .er-wave.is-held{cursor:grabbing;animation:none}
.poem-east-river .er-wave.is-no{animation:er-no .5s ease}
.poem-east-river .er-wave:disabled{cursor:default}
@keyframes er-no{0%,100%{transform:translate(-50%,-50%)}25%{transform:translate(-64%,-50%)}50%{transform:translate(-40%,-50%)}75%{transform:translate(-56%,-50%)}}
.poem-east-river .er-tree,.poem-east-river .er-tree:focus,.poem-east-river .er-tree:focus-visible,.poem-east-river .er-tree:active,.poem-east-river.is-hint .er-tree{outline:none;box-shadow:none;-webkit-tap-highlight-color:transparent}
/* 2026-11-03 r3h iPad Safari 實際可用高度較矮（約 700–780）：收緊側欄，「聽這句詩」不被擠出畫面、側欄不出捲軸。 */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px) and (max-height:780px){
 .poem-east-river .er-layout{row-gap:8px}
 .poem-east-river .er-head{padding-bottom:8px}
 .poem-east-river .er-instruction{font-size:clamp(20px,2vw,24px)}
 .poem-east-river .er-side{gap:10px}
 .poem-east-river .er-verse{padding:8px 12px;font-size:clamp(24px,2.4vw,29px)}
 .poem-east-river .er-choices{gap:10px}
 .poem-east-river .er-choices button{min-height:52px;font-size:20px}
 .poem-east-river .er-method,.poem-east-river .er-feedback{font-size:18px;line-height:1.4}
 .poem-east-river .er-side:has(.er-feedback:not(:empty)) .er-method{display:none}
 .poem-east-river .er-audio{min-height:52px;font-size:20px}
}

/* poem-games/steady-steps.css */
.poem-steady-steps{--qx-ink:#2f4a3a;--qx-soft:#5f7566;--qx-paper:#fffdf7;--qx-mist:#efeadc;--qx-line:#dcd8c8;--qx-gold:#e3a548;--qx-red:#b5523b;display:block;width:100%;max-width:900px;margin-inline:auto;align-self:start;align-self:safe center;color:var(--qx-ink);font-family:var(--sans);min-width:0}
.poem-steady-steps *{box-sizing:border-box}
.poem-steady-steps [hidden]{display:none!important}
.poem-steady-steps button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-steady-steps button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-steady-steps .qx-layout{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-steady-steps .qx-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-steady-steps .qx-instruction{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42}
.poem-steady-steps .qx-instruction span{display:inline-block}
.poem-steady-steps .qx-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#edf3e7;color:#3c6447;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-steady-steps.is-done .qx-progress{background:#f6e5c8;color:#8a4f24}
.poem-steady-steps .qx-head-r{flex:none;display:flex;align-items:center;gap:8px}
.poem-steady-steps .qx-howbtn{min-height:44px;padding:4px 12px;border:1.5px solid #c98b3a;border-radius:999px;background:#fff6e3;color:#7a4a1e;font-size:16px;font-weight:650;white-space:nowrap;cursor:pointer}
.poem-steady-steps .qx-howbtn:hover{background:#ffedc8}

/* Stage: six 1600×900 paintings, every overlay in % of the 16:9 box. The camera keeps (--cx,--cy) fixed while scaling. */
.poem-steady-steps .qx-stage{container-type:inline-size;grid-area:stage;position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#e9e2d2;border:1px solid #d6d2c1;box-shadow:0 6px 20px #2c443114;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-steady-steps .qx-cam{--cs:1;--cx:50;--cy:50;position:absolute;inset:0;transform-origin:0 0;transform:translate(calc((1 - var(--cs)) * var(--cx) * 1%),calc((1 - var(--cs)) * var(--cy) * 1%)) scale(var(--cs));transition:transform 1.6s cubic-bezier(.45,.05,.25,1)}
.poem-steady-steps .qx-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;opacity:0;transition:opacity 1s ease}
.poem-steady-steps .qx-scene.is-on{opacity:1}
.poem-steady-steps .qx-layer{position:absolute;inset:0;visibility:hidden;opacity:0;transition:opacity .8s ease,visibility 0s .8s}
.poem-steady-steps .qx-layer.is-on{visibility:visible;opacity:1;transition:opacity .8s ease .2s}
.poem-steady-steps .qx-layer>i,.poem-steady-steps .qx-layer>svg,.poem-steady-steps .qx-layer>span,.poem-steady-steps .qx-layer>img{pointer-events:none}


/* drop / tap targets */
.poem-steady-steps .qx-target{position:absolute;left:var(--x);top:var(--y);z-index:4;width:var(--w);height:var(--h);min-width:48px;min-height:48px;transform:translate(-50%,-50%);padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.poem-steady-steps .qx-target::before{content:"";position:absolute;inset:0;border-radius:inherit;border:2.5px dashed #fffbefd0;box-shadow:0 0 0 2px #6d5a3a30,inset 0 0 18px #fff5d855;opacity:0;transition:opacity .3s}
.poem-steady-steps .qx-target>span{position:absolute;left:50%;top:calc(100% + var(--ly,4px));transform:translateX(-50%);padding:2px 10px;border-radius:999px;background:#fffaf0e6;color:#5b4632;font-size:clamp(14px,1.8cqw,19px);font-weight:650;white-space:nowrap;opacity:0;transition:opacity .3s}
.poem-steady-steps .qx-target[data-qx-target="boy"]>span{top:auto;bottom:calc(100% + 2px)}
.poem-steady-steps .qx-target.is-calling::before,.poem-steady-steps .qx-target.is-over::before,.poem-steady-steps .qx-target.is-hint::before,.poem-steady-steps .qx-target.is-glow::before{opacity:1;animation:qx-breathe 1.8s ease-in-out infinite}
.poem-steady-steps .qx-target.is-calling>span,.poem-steady-steps .qx-target.is-over>span,.poem-steady-steps.is-selecting .qx-target:not(:disabled)>span{opacity:1}
.poem-steady-steps.is-selecting .qx-target:not(:disabled)::before{opacity:1}
.poem-steady-steps .qx-target.is-over::before{border-style:solid;border-color:#ffd98a;box-shadow:0 0 0 4px #e3a54866,inset 0 0 30px #ffe2a066}
.poem-steady-steps .qx-target.is-glow::before{border-style:solid;border-color:#ffd98a;box-shadow:0 0 0 5px #e3a548aa,inset 0 0 30px #ffe2a088}
.poem-steady-steps .qx-target.is-hint>span,.poem-steady-steps .qx-target.is-glow>span{opacity:1}
.poem-steady-steps .qx-target:disabled{cursor:default}
.poem-steady-steps .qx-target:disabled::before{animation:none}

/* s1 積土成山 / 積水成淵 */
.poem-steady-steps .qx-fog{position:absolute;opacity:1;transition:opacity 1.4s ease}
.poem-steady-steps .qx-fog-m{left:1%;top:-2%;width:52%;height:70%;background:radial-gradient(closest-side,var(--qx-mist) 0 52%,#efeadce0 68%,#efeadc00);-webkit-mask-image:linear-gradient(to top,transparent calc(var(--qx-rise) * 100% - 18%),#000 calc(var(--qx-rise) * 100% + 14%));mask-image:linear-gradient(to top,transparent calc(var(--qx-rise) * 100% - 18%),#000 calc(var(--qx-rise) * 100% + 14%));transition:opacity 1.4s ease}
.poem-steady-steps.is-soil-done .qx-fog-m{opacity:0}
.poem-steady-steps .qx-rain{position:absolute;left:3%;top:0;width:44%;height:48%;background:repeating-linear-gradient(104deg,transparent 0 13px,#7f97a466 13px 14.5px);-webkit-mask-image:radial-gradient(closest-side,#000 55%,transparent);mask-image:radial-gradient(closest-side,#000 55%,transparent);opacity:0;transition:opacity 1s ease}
.poem-steady-steps .qx-rain{background:repeating-linear-gradient(104deg,transparent 0 16px,#8fa3ad40 16px 17.5px);filter:blur(.7px)}
.poem-steady-steps.is-rain .qx-rain{opacity:.7;animation:qx-rain .6s linear infinite}
.poem-steady-steps.is-dragon .qx-rain{opacity:.28}
.poem-steady-steps .qx-wash{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.poem-steady-steps .qx-cloud{opacity:0;transition:opacity 1.6s ease}
.poem-steady-steps.is-rain .qx-cloud{opacity:1}
.poem-steady-steps.is-dragon .qx-cloud{opacity:.55}
.poem-steady-steps .qx-deep{opacity:0;transform-origin:1120px 800px;transform-box:view-box;transition:opacity 1.6s ease .3s}
.poem-steady-steps.is-dragon .qx-deep{opacity:1;animation:qx-swell 4.5s ease-in-out infinite}
.poem-steady-steps .qx-fog-d{left:44%;top:-10%;width:40%;height:100%;background:radial-gradient(ellipse 26% 15% at 37% 16%,#eeeadf 0 48%,#eeeadfd0 70%,#eeeadf00),radial-gradient(ellipse 22% 14% at 58% 10%,#eeeadf 0 48%,#eeeadfd0 70%,#eeeadf00),radial-gradient(ellipse 32% 17% at 48% 34%,#eeeadf 0 48%,#eeeadfd0 70%,#eeeadf00),radial-gradient(ellipse 30% 16% at 66% 44%,#eeeadf 0 48%,#eeeadfd0 70%,#eeeadf00),radial-gradient(ellipse 34% 17% at 42% 55%,#eeeadf 0 48%,#eeeadfd0 70%,#eeeadf00),radial-gradient(ellipse 30% 16% at 68% 64%,#eeeadf 0 48%,#eeeadfd0 70%,#eeeadf00),radial-gradient(ellipse 36% 16% at 52% 74%,#eeeadf 0 48%,#eeeadfd0 70%,#eeeadf00),radial-gradient(ellipse 34% 14% at 46% 88%,#eeeadf 0 48%,#eeeadfd0 70%,#eeeadf00);-webkit-mask-image:linear-gradient(to top,transparent calc(var(--qx-wv) * 100% - 12%),#000 calc(var(--qx-wv) * 100% + 10%));mask-image:linear-gradient(to top,transparent calc(var(--qx-wv) * 100% - 12%),#000 calc(var(--qx-wv) * 100% + 10%));transition:opacity 1.4s ease .6s}
.poem-steady-steps.is-dragon .qx-fog-d{opacity:0}
@property --qx-wv{syntax:'<number>';inherits:true;initial-value:0}
.poem-steady-steps{transition:--qx-wv 1.6s ease}
.poem-steady-steps .qx-pool{position:absolute;left:30%;top:78%;width:66%;height:26%;border-radius:50%;background:radial-gradient(closest-side,#d4f1f8aa,#bfe3ee55 55%,transparent);opacity:calc(var(--water,0) * .9);transition:opacity 1.2s ease}
.poem-steady-steps .qx-glow{position:absolute;border-radius:50%;opacity:0;transition:opacity 1.2s ease;mix-blend-mode:screen}
.poem-steady-steps .qx-glow-dragon{left:52%;top:6%;width:30%;height:52%;background:radial-gradient(closest-side,#fff1c470,#ffd88a28 60%,transparent)}
.poem-steady-steps.is-dragon .qx-glow-dragon{opacity:1;animation:qx-breathe 2.4s ease-in-out infinite}

/* s2 積善成德 */
.poem-steady-steps .qx-gift{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:auto;transform:translate(-50%,-50%) scale(.6);opacity:0;transition:opacity .5s ease,transform .6s cubic-bezier(.3,1.4,.5,1);filter:drop-shadow(0 3px 3px #3b2a1a40);-webkit-user-drag:none}
.poem-steady-steps .qx-gift.is-on{opacity:1;transform:translate(-50%,-50%)}
.poem-steady-steps .qx-thanks{position:absolute;left:63%;top:44%;z-index:3;padding:.5cqi 1.4cqi;border:2px solid #8c7a5c;border-radius:1.6cqi;background:#fffaf0f2;color:var(--qx-ink);font-size:max(14px,2cqi);white-space:nowrap;opacity:0;transform:translate(-50%,-50%) scale(.6);transition:opacity .4s ease,transform .5s cubic-bezier(.3,1.5,.5,1)}
.poem-steady-steps .qx-thanks::after{content:"";position:absolute;left:18%;bottom:-1.1cqi;border:.6cqi solid transparent;border-top:.8cqi solid #8c7a5c}
.poem-steady-steps.is-thanked .qx-thanks{opacity:1;transform:translate(-50%,-50%)}
.poem-steady-steps .qx-person{position:absolute;left:58%;top:96%;z-index:2;transform:translate(-30%,-100%);opacity:0;pointer-events:none;transition:opacity .6s ease,transform .7s ease}
.poem-steady-steps .qx-person.is-here{opacity:1;transform:translate(-50%,-100%)}
.poem-steady-steps .qx-elder{height:44%;aspect-ratio:300/700}
.poem-steady-steps .qx-boy{height:34%;aspect-ratio:311/420}
.poem-steady-steps .qx-granny{height:38%;aspect-ratio:342/420}
.poem-steady-steps .qx-person img{position:absolute;left:50%;bottom:0;height:100%;width:auto;transform:translateX(-50%);filter:drop-shadow(0 3px 3px #3b2a1a40);transition:opacity .5s ease}
.poem-steady-steps .qx-person .qx-p-happy,.poem-steady-steps .qx-person.is-happy .qx-p-sad{opacity:0}
.poem-steady-steps .qx-person.is-happy .qx-p-happy{opacity:1;animation:qx-glad .6s ease both}
.poem-steady-steps .qx-deedcard{position:absolute;left:70.5%;top:4%;width:24%;height:82%;z-index:2;border:2px solid #b9a682;border-radius:1.4cqi;background:#fffaf0e6;box-shadow:0 .4cqi 1.4cqi #3b2a1a2e}
.poem-steady-steps .qx-stamp{position:absolute;left:50%;top:5%;height:36.6%;width:auto;transform:translateX(-50%);opacity:.38;filter:grayscale(.7) drop-shadow(0 4px 4px #3b2a1a40);transform-origin:50% 100%;transition:opacity .5s ease,filter .5s ease}
.poem-steady-steps.is-deeds-full .qx-stamp{opacity:1;filter:drop-shadow(0 6px 6px #3b2a1a55);animation:qx-bob 1.6s ease-in-out infinite}
.poem-steady-steps.is-stamping .qx-stamp{animation:qx-stamp .95s cubic-bezier(.5,0,.4,1) both}
.poem-steady-steps.is-stamped .qx-stamp{opacity:0;animation:none}
.poem-steady-steps .qx-stampbox{position:absolute;left:50%;top:45%;width:37.5%;aspect-ratio:1;transform:translateX(-50%);border:2px dashed #c9b893;border-radius:.6cqi;display:grid;place-items:center}
.poem-steady-steps .qx-de{display:grid;place-items:center;width:84%;aspect-ratio:1;border:.4cqi solid #b5352b;border-radius:.5cqi;color:#b5352b;font-size:5.4cqi;line-height:1;font-weight:800;font-family:var(--serif,serif);opacity:0;transform:scale(1.25)}
.poem-steady-steps.is-stamping .qx-de{animation:qx-de .5s ease .42s both}
.poem-steady-steps.is-stamped .qx-de{opacity:1;transform:none}
.poem-steady-steps .qx-de-word{position:absolute;left:0;right:0;top:72%;text-align:center;color:#8a2e24;font-size:max(14px,2.1cqi);letter-spacing:.2em;opacity:0;transition:opacity .5s ease .2s}
.poem-steady-steps.is-stamped .qx-de-word{opacity:1}
.poem-steady-steps .qx-deeds{position:absolute;left:0;right:0;top:83%;display:flex;justify-content:center;gap:4%}
.poem-steady-steps .qx-deeds i{display:grid;place-items:center;width:20%;aspect-ratio:1;border:2px dashed #c9b893;border-radius:50%;color:transparent;font-style:normal;font-weight:800;font-size:max(13px,1.8cqi);transition:all .4s}
.poem-steady-steps .qx-deeds i.is-on{border:2px solid #c78a2c;background:radial-gradient(circle,#ffe7a8,#f0b34f);color:#6b3d10;animation:qx-pip .5s ease both}
.poem-steady-steps .qx-sealbtn{border-radius:1.2cqi}
@keyframes qx-bob{50%{transform:translateX(-50%) translateY(-.6cqi)}}
@keyframes qx-stamp{0%{transform:translateX(-50%)}30%{transform:translateX(-50%) translateY(-1.5cqi)}48%{transform:translateX(-50%) translateY(9.6cqi) scaleY(.9) scaleX(1.06)}62%{transform:translateX(-50%) translateY(9.6cqi) scaleY(.94)}100%{transform:translateX(-50%) translateY(-2cqi);opacity:0}}
@keyframes qx-glad{0%{opacity:0;transform:translateX(-50%) scale(.92)}60%{transform:translateX(-50%) scale(1.04)}100%{opacity:1;transform:translateX(-50%)}}
@keyframes qx-pip{0%{transform:scale(.5)}70%{transform:scale(1.15)}100%{transform:none}}
@keyframes qx-de{from{opacity:0;transform:scale(1.25)}to{opacity:1;transform:none}}

/* s3 蹞步 */
.poem-steady-steps .qx-foot{position:absolute;mix-blend-mode:multiply;left:var(--x);top:var(--y);width:var(--w);transform:translate(-50%,-50%) rotate(20deg) scale(.7);opacity:0;transition:opacity .4s ease,transform .45s cubic-bezier(.3,1.5,.5,1)}
.poem-steady-steps .qx-foot img{display:block;width:100%;height:auto;mix-blend-mode:multiply;opacity:.92}
.poem-steady-steps .qx-foot.is-on{opacity:1;transform:translate(-50%,-50%) rotate(20deg)}
.poem-steady-steps .qx-foot.is-trail{transition:opacity .5s ease var(--d)}
.poem-steady-steps.is-far .qx-foot.is-trail{opacity:.65;transform:translate(-50%,-50%) rotate(28deg)}
.poem-steady-steps .qx-flag{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);padding:3px 12px;border:2px solid #8c7a5c;border-radius:8px;background:#fffaf0ee;color:var(--qx-ink);font-size:clamp(17px,2.4cqw,26px);font-weight:700;opacity:0;transition:opacity .6s ease 1s}
.poem-steady-steps.is-far .qx-flag{opacity:1}
.poem-steady-steps .qx-target-foot{border-radius:44%;transition:left .4s ease,top .4s ease}
.poem-steady-steps .qx-walker{position:absolute;left:var(--x);top:var(--y);height:var(--h);aspect-ratio:250/428;transform:translate(-50%,-100%);transition:left .55s ease-out,top .55s ease-out,height .55s ease-out;filter:drop-shadow(0 .4cqi .3cqi #3a302033)}
.poem-steady-steps .qx-walker img{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.poem-steady-steps .qx-walker img.is-on{opacity:1}
.poem-steady-steps.is-far .qx-walker{opacity:.9}

/* s4 小流 → 江海 */
.poem-steady-steps .qx-flowimg{position:absolute;inset:0;width:100%;height:100%;display:block;-webkit-user-drag:none}
.poem-steady-steps .qx-wetimg,.poem-steady-steps .qx-wetall,.poem-steady-steps .qx-seaimg{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;-webkit-user-drag:none}
.poem-steady-steps .qx-wetimg{opacity:0;clip-path:inset(0 100% 0 0);transition:clip-path 2s ease-out,opacity .5s ease}
.poem-steady-steps .qx-wetimg.is-on{opacity:1;clip-path:inset(0 0 0 0)}
.poem-steady-steps .qx-wetall{opacity:0;transition:opacity 2s ease 1s}
.poem-steady-steps .qx-seaimg{opacity:0;clip-path:inset(0 0 0 38%);transform-origin:40% 60%;transform:scale(.96);transition:opacity 1.6s ease .6s,clip-path 2.4s ease-out .6s,transform 2.4s ease-out .6s}
.poem-steady-steps.is-sea .qx-wetall,.poem-steady-steps:not([data-step="3"]) .qx-wetall{opacity:1}
.poem-steady-steps.is-sea .qx-seaimg,.poem-steady-steps:not([data-step="3"]) .qx-seaimg{opacity:1;clip-path:inset(0 0 0 0);transform:none}
.poem-steady-steps .qx-seaglint{position:absolute;left:62%;top:8%;width:30%;height:44%;pointer-events:none;opacity:0;background:radial-gradient(ellipse 30% 60% at 50% 30%,#fffdf0aa,#fffdf000 70%);transition:opacity 1.5s ease 2.2s}
.poem-steady-steps.is-sea .qx-seaglint{opacity:1;animation:qx-glint 4s ease-in-out 3.7s infinite}
@keyframes qx-glint{50%{opacity:.45}}
.poem-steady-steps .qx-spring{border-radius:50%;display:grid;place-items:center}
.poem-steady-steps .qx-spring svg{width:46%;height:auto;fill:#d8eef4;stroke:#4f86a0;stroke-width:1.5;filter:drop-shadow(0 2px 3px #24403566)}
.poem-steady-steps .qx-spring::before{background:radial-gradient(closest-side,#e9f7fb88,transparent)}
.poem-steady-steps .qx-shine{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round}

/* s5 騏驥一躍 / 駑馬十駕 */
.poem-steady-steps .qx-track{position:absolute;left:0;right:0;top:50%;bottom:0;background:linear-gradient(to bottom,#f3ecdc00,#f3ecdce8 30%,#f1e9d6 62%)}
.poem-steady-steps .qx-road{position:absolute;inset:0;width:100%;height:100%}
.poem-steady-steps .qx-road path{fill:none;stroke:#8c7a5c;stroke-width:2.5px;stroke-linecap:round;opacity:.5;stroke-dasharray:60 14 30 10}
.poem-steady-steps .qx-mist{position:absolute;border-radius:50%}
.poem-steady-steps .qx-mist-a{left:-4%;top:16%;width:46%;height:60%;background:radial-gradient(closest-side,#f3ecdc 0 50%,#f3ecdcd0 68%,#f3ecdc00)}
.poem-steady-steps .qx-mist-b{left:56%;top:38%;width:42%;height:50%;background:radial-gradient(closest-side,#f3ecdc 0 50%,#f3ecdcd0 68%,#f3ecdc00)}
.poem-steady-steps .qx-tick{position:absolute;left:var(--x);top:97.4%;transform:translate(-50%,-50%);font-size:clamp(12px,1.5cqw,17px);font-weight:700;color:#9a8a70;opacity:.55;transition:color .3s,opacity .3s}
.poem-steady-steps .qx-tick.is-on{color:var(--qx-ink);opacity:1}
.poem-steady-steps .qx-goal{position:absolute;left:var(--x);top:68%;transform:translate(-50%,-50%);padding:2px 6px;writing-mode:vertical-rl;border:2px solid #8c7a5c;border-radius:6px;background:#fffaf0ee;color:var(--qx-ink);font-size:clamp(14px,1.9cqw,20px);font-weight:700}
.poem-steady-steps.is-goal .qx-goal{background:#ffe8b8;animation:qx-breathe 1.6s ease-in-out 3}
.poem-steady-steps .qx-runner{position:absolute;left:var(--x);padding:0;border:0;background:none;cursor:pointer;min-width:48px;min-height:48px;transition:left .45s cubic-bezier(.3,.7,.4,1)}
.poem-steady-steps .qx-runner img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 4px 3px #3b2a1a30)}
.poem-steady-steps .qx-runner:disabled{cursor:default;opacity:1}
.poem-steady-steps .qx-steed img{filter:drop-shadow(0 3px 3px #3b2a1a55) drop-shadow(0 0 1px #6b5a40)}
.poem-steady-steps .qx-runner.is-calling{filter:drop-shadow(0 0 8px #fffbe8)}
.poem-steady-steps .qx-runner:is(.is-hint,.is-glow){filter:drop-shadow(0 0 6px #ffd98a) drop-shadow(0 0 12px #e3a548)}
.poem-steady-steps .qx-steed{bottom:25%;width:17%}
.poem-steady-steps .qx-steed .qx-steed-leap{display:none}
.poem-steady-steps.is-leaping .qx-steed{transition:left .9s linear}
.poem-steady-steps.is-leaping .qx-steed .qx-steed-rest{display:none}
.poem-steady-steps.is-leaping .qx-steed .qx-steed-leap{display:block;animation:qx-arc .9s ease-in-out}
.poem-steady-steps .qx-cart{bottom:6%;width:21%;z-index:2}
.poem-steady-steps .qx-cart img{transform-origin:70% 100%}
.poem-steady-steps .qx-cart:active:not(:disabled) img{transform:rotate(-2deg)}

/* s6 鍥而不舍 */
.poem-steady-steps .qx-carve{position:absolute;inset:0;width:100%;height:100%}
.poem-steady-steps .qx-carve text{font-family:var(--serif,'Noto Serif HK','Songti TC','PMingLiU',serif);font-size:88px;font-weight:700;text-anchor:middle;dominant-baseline:central}
.poem-steady-steps .qx-plaque rect{fill:#4f5651;fill-opacity:.1;stroke:#3d433f;stroke-opacity:.42;stroke-width:2.5}
.poem-steady-steps .qx-plaque .qx-plaque-hl{fill:none;stroke:#f6f2e6;stroke-opacity:.6;stroke-width:2}
.poem-steady-steps .qx-guide text{fill:none;stroke:#3d433f;stroke-opacity:.38;stroke-width:1.6;stroke-dasharray:6 6}
.poem-steady-steps .qx-cutg text{fill:#343a36;fill-opacity:.9}
.poem-steady-steps .qx-cut-rect{transition:height .12s linear}
.poem-steady-steps .qx-tip{position:absolute;left:68.9%;top:calc((64.9 + var(--carve,0) * 22) * 1%);width:4.4%;transform:translate(-30%,-80%);opacity:0;transition:opacity .3s,top .12s linear}
.poem-steady-steps .qx-tip svg{display:block;width:100%;height:auto;filter:drop-shadow(0 2px 2px #0005)}
.poem-steady-steps.is-holding .qx-tip{opacity:1;animation:qx-chisel .16s linear infinite}
.poem-steady-steps .qx-ch-handle{fill:#8a5a34;stroke:#4c3018;stroke-width:1.5}
.poem-steady-steps .qx-ch-band{fill:#c9a24f}
.poem-steady-steps .qx-ch-blade{fill:#b8c2c6;stroke:#59656a;stroke-width:1.5}
.poem-steady-steps .qx-glow-gold{left:58%;top:58%;width:18.4%;height:36%;background:radial-gradient(closest-side,#fff6dc80,#fff1cf26 60%,transparent)}
.poem-steady-steps.is-carved .qx-glow-gold{opacity:1;animation:qx-breathe 2.4s ease-in-out infinite}
.poem-steady-steps .qx-stone{border-radius:10%;touch-action:none}
.poem-steady-steps .qx-stone::after{content:"";position:absolute;inset:-10% -45%}
.poem-steady-steps .qx-stone>span{top:auto;bottom:calc(100% + 4px)}
.poem-steady-steps.is-holding .qx-stone::before{opacity:1;border-style:solid;border-color:#ffd98a}

/* outside the camera */
.poem-steady-steps .qx-fx{position:absolute;inset:0;z-index:7;pointer-events:none}
.poem-steady-steps .qx-fx>i{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%)}
.poem-steady-steps .qx-clod{width:9%;animation:qx-clod 1s cubic-bezier(.5,0,.8,.6) forwards}
.poem-steady-steps .qx-clod img{display:block;width:100%;height:auto}
.poem-steady-steps .qx-fall{width:2.2%;animation:qx-fall .7s cubic-bezier(.55,0,1,.6) forwards}
.poem-steady-steps .qx-fall svg,.poem-steady-steps .qx-drop-icon svg,.poem-steady-steps .qx-ghost svg{display:block;width:100%;height:auto;fill:#d8eef4;stroke:#4f86a0;stroke-width:1.5}
.poem-steady-steps .qx-ripple{width:14%;aspect-ratio:3/1;border:2px solid #f4fbfd;border-radius:50%;opacity:0;animation:qx-ripple 1s ease-out var(--d) forwards}
.poem-steady-steps .qx-orb{width:4.5%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,#fffbe8,#ffd36acc 50%,#ffd36a00);animation:qx-orb 1.4s cubic-bezier(.45,.05,.3,1) forwards}
.poem-steady-steps .qx-chip{width:.8%;aspect-ratio:1;border-radius:30%;background:#8d9089;animation:qx-chip .7s ease-out forwards}
.poem-steady-steps .qx-dust{width:5%;height:3%}
.poem-steady-steps .qx-dust>i{position:absolute;bottom:0;width:40%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,#d9cdb2cc,#d9cdb200);animation:qx-dust .9s ease-out forwards}
.poem-steady-steps .qx-dust>i:nth-child(1){left:0}.poem-steady-steps .qx-dust>i:nth-child(2){left:30%;animation-delay:.08s}.poem-steady-steps .qx-dust>i:nth-child(3){left:60%;animation-delay:.16s}
.poem-steady-steps .qx-caption{position:absolute;left:50%;top:3%;z-index:8;display:flex;flex-wrap:wrap;justify-content:center;gap:0 .5em;max-width:92%;transform:translateX(-50%);padding:6px 16px;border-radius:12px;background:#fffaf0e8;box-shadow:0 2px 10px #3b2a1a22;font-size:clamp(16px,2.3cqw,25px);font-weight:650;line-height:1.45;letter-spacing:.05em;color:#3a3226;animation:qx-pop .6s ease both}
.poem-steady-steps .qx-caption span{white-space:nowrap}
/* demo finger: positioned in px inside the layout by script, so it can go from the tray to the picture */
.poem-steady-steps .qx-hand{position:absolute;left:0;top:0;z-index:30;width:clamp(38px,5vw,54px);opacity:0;pointer-events:none;transition:opacity .25s;filter:drop-shadow(0 4px 4px #2a1d1040)}
.poem-steady-steps .qx-hand svg{display:block;width:100%;height:auto;fill:#fffaf0;stroke:#3e3a32;stroke-width:2;stroke-linejoin:round}
.poem-steady-steps .qx-hand.is-on{opacity:1}

/* 怎麼玩 card over the stage */
.poem-steady-steps .qx-howto{position:absolute;inset:0;z-index:9;display:grid;place-items:center;padding:12px;background:#f3eee0c4;animation:qx-fade .3s ease both}
.poem-steady-steps .qx-stage[aria-busy="true"] .qx-howto{visibility:hidden}
.poem-steady-steps .qx-howto-card{display:grid;grid-template-columns:minmax(0,auto);justify-items:center;gap:12px;max-width:100%;padding:18px 26px;border:1.5px solid #d8c9a6;border-radius:18px;background:var(--qx-paper);box-shadow:0 8px 24px #3b2a1a2e}
.poem-steady-steps .qx-howto h3{margin:0;font-size:24px;line-height:1.2;color:#7a3a24;letter-spacing:.08em}
.poem-steady-steps .qx-howto ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.poem-steady-steps .qx-howto li{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:650;line-height:1.3;white-space:nowrap}
.poem-steady-steps .qx-howto li b{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#2f4a3a;color:#fffdf7;font-size:16px;line-height:1}
.poem-steady-steps .qx-how-icon{flex:none;width:34px;height:34px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.poem-steady-steps .qx-how-hand{fill:#fffaf0;stroke:#3e3a32;stroke-width:2}
.poem-steady-steps .qx-how-mark{stroke:#c9822f;stroke-width:2.4}
.poem-steady-steps .qx-start{min-height:56px;min-width:150px;padding:8px 36px;border:0;border-radius:999px;background:#c9822f;color:#fff;font-size:22px;font-weight:700;letter-spacing:.2em;box-shadow:0 4px 0 #9a5f1e;cursor:pointer}
.poem-steady-steps .qx-start:active{transform:translateY(2px);box-shadow:0 2px 0 #9a5f1e}
.poem-steady-steps.is-howto :is(.qx-flag,.qx-tick,.qx-goal,.qx-caption,.qx-fx,.qx-target>span){visibility:hidden}
@container (max-width:620px){
 .poem-steady-steps .qx-howto{padding:8px}
 .poem-steady-steps .qx-howto-card{gap:8px;padding:12px 18px;border-radius:14px}
 .poem-steady-steps .qx-howto h3{font-size:19px}
 .poem-steady-steps .qx-howto ol{gap:5px}
 .poem-steady-steps .qx-howto li{gap:7px;font-size:16px}
 .poem-steady-steps .qx-howto li b{width:22px;height:22px;font-size:13px}
 .poem-steady-steps .qx-how-icon{width:26px;height:26px}
 .poem-steady-steps .qx-start{min-height:48px;min-width:120px;font-size:19px;padding:6px 26px}
}
/* small pictures (phones): steps on the left, 開始 on the right, so the card fits a 300×169 stage */
@container (max-width:440px){
 .poem-steady-steps .qx-howto{padding:6px}
 .poem-steady-steps .qx-howto-card{grid-template-columns:auto auto;grid-template-areas:"h b" "l b";justify-items:start;align-items:center;gap:4px 12px;padding:8px 12px}
 .poem-steady-steps .qx-howto h3{grid-area:h;font-size:16px}
 .poem-steady-steps .qx-howto ol{grid-area:l;gap:3px}
 .poem-steady-steps .qx-howto li{gap:5px;font-size:14px;line-height:1.25}
 .poem-steady-steps .qx-howto li b{width:18px;height:18px;font-size:11px}
 .poem-steady-steps .qx-how-icon{width:22px;height:22px}
 .poem-steady-steps .qx-start{grid-area:b;min-width:0;min-height:48px;padding:6px 14px;font-size:18px;letter-spacing:.1em}
}
@keyframes qx-fade{from{opacity:0}to{opacity:1}}
.poem-steady-steps .qx-loading{position:absolute;inset:0;z-index:10;display:grid;align-content:center;justify-items:center;gap:14px;padding:20px;background:#f5f2eae8;font-size:20px;line-height:1.5;text-align:center}
.poem-steady-steps .qx-loading button{min-height:48px;padding:10px 22px;border:1px solid #97ad9b;border-radius:14px;background:#fffefa;font-weight:600;font-size:19px;cursor:pointer}

@container (max-width:479px){.poem-steady-steps .qx-caption{display:none}}

/* side */
.poem-steady-steps .qx-side{grid-area:side;display:flex;flex-direction:column;gap:12px;min-width:0}
.poem-steady-steps .qx-meter{display:flex;align-items:center;gap:12px;min-height:50px;padding:6px 14px;border:1px solid var(--qx-line);border-radius:16px;background:#fbf8ef}
.poem-steady-steps .qx-meter-label{flex:none;min-width:5.5em;font-size:19px;font-weight:650;color:#4a5f50}
.poem-steady-steps .qx-pips{flex:1;display:flex;gap:6px;align-items:center;min-width:0}
.poem-steady-steps .qx-pips>i{flex:1;max-width:28px;height:12px;border-radius:6px;background:#e5e0d1;transition:background .3s}
.poem-steady-steps .qx-pips>i.is-on{background:#c98b3a}
.poem-steady-steps .qx-pips.is-bar>i{max-width:none}
.poem-steady-steps .qx-bar{display:block;position:relative;height:14px;border-radius:7px;background:#e5e0d1;overflow:hidden}
.poem-steady-steps .qx-bar>i{position:absolute;left:0;top:0;bottom:0;border-radius:7px;background:linear-gradient(90deg,#9aa39b,#c98b3a)}
.poem-steady-steps .qx-seal{flex:none;display:grid;place-items:center;min-width:44px;height:44px;padding:0 6px;border:2px solid #cbbfa6;border-radius:8px;font-size:19px;font-weight:700;color:#b3a68c;transition:all .4s}
.poem-steady-steps .qx-seal.is-lit{border-color:#3c6447;background:#3c6447;color:#fffaf0;animation:qx-pop .5s ease both}
.poem-steady-steps .qx-tray{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:10px;min-height:66px}
.poem-steady-steps .qx-item,.poem-steady-steps .qx-act{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:66px;flex:1 1 150px;max-width:260px;padding:6px 14px;border:1.5px solid var(--qx-line);border-radius:18px;background:var(--qx-paper);font-size:19px;font-weight:650;line-height:1.25;cursor:pointer;box-shadow:0 3px 0 #e6e1d2;transition:border-color .2s,background .2s,transform .15s}
.poem-steady-steps .qx-item span,.poem-steady-steps .qx-act span{white-space:nowrap}
.poem-steady-steps .qx-item img{display:block;height:50px;width:auto;max-width:86px;object-fit:contain;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 2px 2px #3b2a1a2e)}
.poem-steady-steps .qx-drop-icon{display:block;width:26px}
.poem-steady-steps[data-step="1"] .qx-item{flex:1 1 0;flex-direction:column;gap:2px;padding:6px 4px;font-size:16px}
.poem-steady-steps[data-step="1"] .qx-item img{height:40px}
.poem-steady-steps .qx-item.is-draggable{touch-action:none;cursor:grab}
.poem-steady-steps .qx-item[aria-pressed=true]{border-color:#c98b3a;background:#fff3d9;box-shadow:0 0 0 4px #e3a54870,0 3px 0 #ead7b4;transform:translateY(-2px)}
.poem-steady-steps .qx-item.is-source{opacity:.45}
.poem-steady-steps :is(.qx-item,.qx-act):is(.is-hint,.is-glow){border-color:#c98b3a;background:#fff6e3;box-shadow:0 0 0 4px #e3a54899,0 3px 0 #ead7b4}
.poem-steady-steps .qx-item.is-given{opacity:.4}
.poem-steady-steps :is(.qx-item,.qx-act):hover:not(:disabled){border-color:#b9c7b1}
.poem-steady-steps :is(.qx-item,.qx-act):disabled{cursor:default}
.poem-steady-steps .qx-act:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #e6e1d2}
.poem-steady-steps .qx-act.qx-next{border-color:#c98b3a;background:#fff3d9;color:#7a4a1e}
.poem-steady-steps .qx-hold{touch-action:none;-webkit-user-select:none;user-select:none}
.poem-steady-steps .qx-hold svg{width:34px;height:34px;flex:none}
.poem-steady-steps.is-holding .qx-hold{background:#f3e7cf;border-color:#c98b3a;transform:translateY(2px);box-shadow:inset 0 2px 6px #6d5a3a30}
.poem-steady-steps .qx-summary{flex:1 1 100%;padding:10px 16px;border:1px solid #e3cfa4;border-radius:16px;background:#fff8e8;text-align:center}
.poem-steady-steps .qx-summary b{display:block;font-size:21px;color:var(--qx-ink);letter-spacing:.06em}
.poem-steady-steps .qx-summary p{margin:4px 0 0;font-size:19px;line-height:1.5;color:#4b4033}
.poem-steady-steps .qx-actionline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.poem-steady-steps .qx-method{font-size:17px;line-height:1.4;color:var(--qx-soft)}
.poem-steady-steps .qx-audio{flex:none;display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:8px 16px;border:1px solid #b9cbae;border-radius:999px;background:#fffef7;color:#356148;font-size:18px;font-weight:600;cursor:pointer}
.poem-steady-steps .qx-audio svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.poem-steady-steps .qx-audio svg path:first-child{fill:currentColor}
.poem-steady-steps .qx-feedback{margin:0;min-height:3em;font-size:18px;line-height:1.5;color:#4a6a59;text-align:center;text-wrap:pretty}
.poem-steady-steps .qx-ghost{position:fixed;left:0;top:0;z-index:80;width:112px;transform:translate(-50%,-62%) rotate(-6deg);pointer-events:none;filter:drop-shadow(0 8px 10px #2a1d1045)}
.poem-steady-steps .qx-ghost img{display:block;width:100%;height:auto}
.poem-steady-steps .qx-ghost .qx-drop-icon{width:40px;margin:auto}
.poem-steady-steps.is-readonly .qx-method{visibility:hidden}

@keyframes qx-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.poem-steady-steps .qx-caption,.poem-steady-steps .qx-seal.is-lit{animation-name:qx-fade}
@keyframes qx-fade{0%{opacity:0}100%{opacity:1}}
@keyframes qx-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(1.18)}}
@keyframes qx-rain{to{background-position:-6px 22px}}
@keyframes qx-shimmer{to{background-position:0 44px}}
@keyframes qx-arc{0%{transform:translateY(0) rotate(0)}45%{transform:translateY(-55%) rotate(-6deg)}100%{transform:translateY(0) rotate(0)}}
@keyframes qx-chisel{0%,100%{transform:translate(-30%,-80%)}50%{transform:translate(-26%,-74%)}}
@keyframes qx-clod{0%{opacity:0;transform:translate(-50%,-160%)}25%{opacity:1}100%{opacity:0;transform:translate(-50%,40%) scale(.7)}}
@keyframes qx-fall{0%{opacity:0;transform:translate(-50%,-300%)}20%{opacity:1}100%{opacity:.8;transform:translate(-50%,900%)}}
@keyframes qx-ripple{0%{opacity:.9;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}
@keyframes qx-orb{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}20%{opacity:1;transform:translate(-50%,-90%) scale(1)}100%{opacity:0;transform:translate(calc(-50% + var(--tx)),-20%) scale(1.4)}}
@keyframes qx-chip{0%{opacity:1;transform:translate(-50%,-50%)}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),120%)}}
@keyframes qx-dust{0%{opacity:0;transform:scale(.4)}30%{opacity:1}100%{opacity:0;transform:translate(-60%,-50%) scale(1.6)}}
@keyframes qx-swell{0%,100%{transform:scale(1)}50%{transform:scale(1.05,1.08)}}

/* Landscape: picture on the left, actions on the right. */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-steady-steps{max-width:1280px}
 .poem-steady-steps .qx-layout{grid-template-columns:minmax(0,1.75fr) minmax(290px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;row-gap:12px;align-items:center}
 .poem-steady-steps .qx-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:center}
 .poem-steady-steps .qx-head{align-self:end}
 .poem-steady-steps .qx-side{align-self:start}
}
@media (orientation:landscape) and (min-width:1100px) and (min-height:700px){
 .poem-steady-steps .qx-instruction{font-size:26px}
 .poem-steady-steps :is(.qx-item,.qx-act){min-height:76px;font-size:21px}
 .poem-steady-steps .qx-item img{height:60px;max-width:100px}
 .poem-steady-steps .qx-feedback{font-size:20px}
}
@media (orientation:portrait) and (min-width:701px){
 .poem-steady-steps :is(.qx-item,.qx-act){min-height:74px;font-size:21px}
 .poem-steady-steps .qx-item img{height:58px;max-width:100px}
}
/* 2026-11-03 平板橫屏側欄用滿畫面高度：上面是任務，中間是進度、材料和說明，「聽這句詩」在最下面；字和按鈕放大。 */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px){
 .poem-steady-steps .qx-layout{grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);align-items:stretch;align-content:stretch;row-gap:14px;column-gap:24px}
 .poem-steady-steps .qx-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-steady-steps .qx-head{align-self:start;flex-wrap:wrap;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid #e2dccb}
 .poem-steady-steps .qx-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-steady-steps .qx-head-r{margin-left:auto}
 .poem-steady-steps .qx-progress{font-size:19px}
 .poem-steady-steps .qx-side{align-self:stretch;gap:16px}
 .poem-steady-steps .qx-side::before,.poem-steady-steps .qx-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-steady-steps .qx-side::before{order:-1}.poem-steady-steps .qx-side::after{order:8}
 .poem-steady-steps .qx-meter{min-height:58px}
 .poem-steady-steps .qx-meter-label{font-size:21px}
 .poem-steady-steps .qx-seal{min-width:50px;height:50px;font-size:22px}
 .poem-steady-steps :is(.qx-item,.qx-act){min-height:78px;font-size:22px}
 .poem-steady-steps .qx-item img{height:60px;max-width:100px}
 .poem-steady-steps .qx-summary b{font-size:24px}
 .poem-steady-steps .qx-summary p{font-size:20px}
 .poem-steady-steps .qx-actionline{display:contents}
 .poem-steady-steps .qx-method{font-size:21px;line-height:1.45;text-align:center}
 .poem-steady-steps .qx-method:empty{display:none}
 .poem-steady-steps .qx-feedback{min-height:0;font-size:21px}
 .poem-steady-steps .qx-feedback:empty{display:none}
 .poem-steady-steps .qx-audio{order:9;justify-content:center;align-self:stretch;min-height:62px;font-size:23px;border-radius:16px}
 .poem-steady-steps .qx-audio svg{width:26px;height:26px}
}
/* Short phone landscape: the picture takes the full height, the right column packs everything. */
@media (orientation:landscape) and (max-height:500px){
 .poem-steady-steps .qx-layout{grid-template-columns:min(calc((100cqh - 2px) * 16 / 9),56%) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);column-gap:12px;row-gap:5px;align-items:start}
 .poem-steady-steps .qx-stage{width:100%;border-radius:12px}
 .poem-steady-steps .qx-head{gap:8px;align-self:start}
 .poem-steady-steps .qx-instruction{font-size:17px;line-height:1.3}
 .poem-steady-steps .qx-progress{min-width:50px;padding:2px 8px;font-size:15px}
 .poem-steady-steps .qx-side{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"meter meter" "tray audio" "fb fb";gap:5px 8px;align-items:center}
 .poem-steady-steps .qx-meter{grid-area:meter;min-height:34px;padding:3px 10px;gap:8px;border-radius:12px}
 .poem-steady-steps .qx-meter-label{font-size:15px;min-width:4.5em}
 .poem-steady-steps .qx-seal{min-width:30px;height:30px;font-size:15px}
 .poem-steady-steps .qx-tray{grid-area:tray;gap:6px;min-height:46px}
 .poem-steady-steps :is(.qx-item,.qx-act){min-height:46px;max-width:200px;padding:3px 10px;font-size:16px;border-radius:13px;gap:6px;flex-basis:110px}
 .poem-steady-steps .qx-item img{height:34px;max-width:58px}
 .poem-steady-steps .qx-hold svg{width:24px;height:24px}
 .poem-steady-steps .qx-summary{padding:5px 10px;border-radius:12px}
 .poem-steady-steps .qx-summary b{display:none}
 .poem-steady-steps .qx-summary p{margin:0;font-size:14px;line-height:1.45}
 .poem-steady-steps .qx-actionline{display:contents}
 .poem-steady-steps .qx-method{display:none}
 .poem-steady-steps .qx-audio{grid-area:audio;min-height:44px;padding:4px 11px;gap:5px;font-size:15px}
 .poem-steady-steps .qx-audio svg{width:19px;height:19px}
 .poem-steady-steps .qx-feedback{grid-area:fb;min-height:2.8em;font-size:15px;line-height:1.4;text-align:left}
 .poem-steady-steps .qx-target>span{font-size:13px;padding:1px 7px}
 .poem-steady-steps .qx-caption{top:2%;padding:3px 8px;border-radius:8px;font-size:13px;line-height:1.35}
 .poem-steady-steps .qx-howbtn{min-height:44px;padding:2px 10px;font-size:14px}
 .poem-steady-steps.is-done .qx-meter{display:none}
 .poem-steady-steps.is-done .qx-side{grid-template-areas:"tray tray" "fb audio"}
 .poem-steady-steps .qx-howbtn{min-height:32px}
 .poem-steady-steps .qx-progress{padding:2px 8px;font-size:14px}
}
@media (max-width:420px){
 .poem-steady-steps .qx-layout{gap:10px}
 .poem-steady-steps .qx-instruction{font-size:19px}
 .poem-steady-steps .qx-progress{min-width:56px;padding:4px 8px;font-size:16px}
 .poem-steady-steps .qx-stage{border-radius:15px}
 .poem-steady-steps .qx-side{gap:10px}
 .poem-steady-steps :is(.qx-item,.qx-act){flex-basis:120px;font-size:18px;padding:6px 10px}
 .poem-steady-steps .qx-item img{height:42px;max-width:66px}
 .poem-steady-steps .qx-meter-label{font-size:17px}
 .poem-steady-steps .qx-method{font-size:15px}
 .poem-steady-steps .qx-howbtn{padding:4px 10px;font-size:15px}
 .poem-steady-steps .qx-caption{font-size:14px;padding:4px 10px}
}

/* reduced motion: no camera travel, no loops, instant states */
.poem-steady-steps.is-reduced .qx-cam,.poem-steady-steps.is-reduced .qx-fog,.poem-steady-steps.is-reduced .qx-runner,.poem-steady-steps.is-reduced .qx-layer,.poem-steady-steps.is-reduced .qx-scene,.poem-steady-steps.is-reduced .qx-wetimg,.poem-steady-steps.is-reduced .qx-wetall,.poem-steady-steps.is-reduced .qx-seaimg,.poem-steady-steps.is-reduced .qx-seaglint,.poem-steady-steps.is-reduced .qx-stamp{transition:none!important}
.poem-steady-steps.is-reduced *,.poem-steady-steps.is-reduced *::before{animation:none!important}
@media (prefers-reduced-motion:reduce){
 .poem-steady-steps .qx-cam,.poem-steady-steps .qx-fog,.poem-steady-steps .qx-runner,.poem-steady-steps .qx-layer,.poem-steady-steps .qx-scene,.poem-steady-steps .qx-wetimg,.poem-steady-steps .qx-wetall,.poem-steady-steps .qx-seaimg,.poem-steady-steps .qx-seaglint{transition:none!important;animation:none!important}
 .poem-steady-steps *,.poem-steady-steps *::before{animation:none!important}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-steady-steps[data-step="1"] .qx-item{flex-direction:row;font-size:14px;padding:3px 4px;gap:3px}
 .poem-steady-steps[data-step="1"] .qx-item img{height:28px;max-width:40px}
 .poem-steady-steps .qx-de-word{display:none}
 .poem-steady-steps .qx-deeds i{font-size:1.8cqi}
 .poem-steady-steps .qx-thanks{font-size:max(11px,2cqi)}
}
/* 2026-11-03 r3h iPad Safari 實際可用高度較矮（約 690–780）：收緊側欄，「聽這句」不被擠出畫面、側欄不出捲軸。 */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px) and (max-height:780px){
 .poem-steady-steps .qx-layout{row-gap:8px}
 .poem-steady-steps .qx-head{padding-bottom:8px}
 .poem-steady-steps .qx-instruction{font-size:clamp(20px,2vw,24px)}
 .poem-steady-steps .qx-side{gap:10px}
 .poem-steady-steps .qx-meter{min-height:50px}
 .poem-steady-steps .qx-meter-label{font-size:19px}
 .poem-steady-steps :is(.qx-item,.qx-act){min-height:64px;font-size:20px}
 .poem-steady-steps .qx-item img{height:48px}
 .poem-steady-steps .qx-method,.poem-steady-steps .qx-feedback{font-size:18px;line-height:1.4}
 .poem-steady-steps .qx-side:has(.qx-feedback:not(:empty)) .qx-method{display:none}
 .poem-steady-steps .qx-summary b{font-size:20px}
 .poem-steady-steps .qx-summary p{font-size:18px}
 .poem-steady-steps .qx-audio{min-height:52px;font-size:20px}
}

/* poem-games/study-desk.css */
.poem-study-desk{--sd-ink:#3b3226;--sd-soft:#6e6250;--sd-paper:#fffcf3;--sd-line:#e2d8c2;--sd-gold:#e3a548;--sd-green:#4e6e58;display:block;width:100%;max-width:880px;margin-inline:auto;color:var(--sd-ink);font-family:var(--sans);min-width:0}
.poem-study-desk *{box-sizing:border-box}
.poem-study-desk [hidden]{display:none!important}
.poem-study-desk button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.poem-study-desk button:disabled{opacity:1}
.poem-study-desk img{max-width:none}
.poem-study-desk button:focus-visible,.poem-study-desk [role=button]:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.poem-study-desk .sd-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side";gap:12px;height:100%;align-content:center}
.poem-study-desk .sd-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.poem-study-desk .sd-instruction{margin:0;font-size:clamp(19px,2.4vw,24px);font-weight:650;line-height:1.42;text-wrap:balance}
.poem-study-desk .sd-progress{flex:none;min-width:66px;padding:5px 12px;border-radius:18px;background:#f1ebdc;color:#6b5132;font-size:18px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.poem-study-desk.is-done .sd-progress{background:#f6e5c8;color:#8a4f24}
.poem-study-desk .sd-tools{flex:none;display:flex;align-items:center;gap:8px}
.poem-study-desk .sd-howbtn{flex:none;min-height:44px;padding:4px 14px;border:1px solid #d3c5a5;border-radius:999px;background:#fffef7;color:#6b5132!important;font-size:17px;font-weight:600;white-space:nowrap;cursor:pointer}

/* 怎麼玩卡：蓋在舞台上，按「開始」才玩。卡開着時畫上的按鈕先藏起來。 */
.poem-study-desk .sd-howto{position:absolute;inset:0;z-index:12;display:grid;place-items:center;padding:3%;background:#2a1d1059;animation:sd-in .25s ease}
.poem-study-desk.is-howto .sd-cam .sd-layer,.poem-study-desk.is-howto .sd-stage>.sd-ui,.poem-study-desk.is-howto .sd-loading,.poem-study-desk.is-howto .sd-hand{visibility:hidden}
.poem-study-desk .sd-howto-card{display:grid;grid-template-areas:"t" "l" "go";justify-items:center;gap:clamp(8px,1.6cqw,14px);max-width:min(94%,470px);max-height:100%;padding:clamp(10px,2.4cqw,22px) clamp(14px,3.4cqw,30px);border-radius:18px;background:#fffaf0;box-shadow:0 8px 26px #2a1d1040,inset 0 0 0 1px #e2d8c2}
.poem-study-desk .sd-howto-title{grid-area:t;margin:0;font-size:clamp(19px,3.2cqw,28px);font-weight:700;letter-spacing:.2em;line-height:1.2;color:#7b3e22}
.poem-study-desk .sd-howto-list{grid-area:l;display:grid;gap:clamp(5px,1.1cqw,10px);margin:0;padding:0;list-style:none}
.poem-study-desk .sd-howto-list li{display:flex;align-items:center;gap:8px;font-size:clamp(16px,2.5cqw,21px);font-weight:600;line-height:1.3;color:#3b3226}
.poem-study-desk .sd-howto-n{flex:none;display:grid;place-items:center;width:1.35em;height:1.35em;border-radius:50%;background:var(--sd-green);color:#fff;font-size:.82em;line-height:1}
.poem-study-desk .sd-howto-ico{flex:none;width:1.7em;height:1.7em}
.poem-study-desk .sd-howto-ico svg{display:block;width:100%;height:100%}
.poem-study-desk .sd-howto-go{grid-area:go;min-height:52px;min-width:150px;padding:8px 30px;border:0;border-radius:16px;background:#b8743a;color:#fff!important;font-size:21px;font-weight:700;letter-spacing:.24em;box-shadow:0 3px 0 #8a5426;cursor:pointer}
.poem-study-desk .sd-howto-go:active{transform:translateY(2px);box-shadow:0 1px 0 #8a5426}
@container (max-width:600px){
 .poem-study-desk .sd-howto{padding:6px}
 .poem-study-desk .sd-howto-card{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t go" "l go";align-items:center;justify-items:start;gap:4px 10px;max-width:100%;padding:8px 10px 8px 12px;border-radius:14px}
 .poem-study-desk .sd-howto-title{font-size:17px;letter-spacing:.12em}
 .poem-study-desk .sd-howto-list{gap:3px}
 .poem-study-desk .sd-howto-list li{gap:5px;font-size:14px;line-height:1.25}
 .poem-study-desk .sd-howto-ico{width:1.5em;height:1.5em}
 .poem-study-desk .sd-howto-go{align-self:center;min-width:72px;min-height:48px;padding:6px 12px;font-size:18px;letter-spacing:.1em}
}
@container (max-width:300px){
 .poem-study-desk .sd-howto{padding:3px}
 .poem-study-desk .sd-howto-card{gap:2px 8px;padding:5px 8px;border-radius:12px}
 .poem-study-desk .sd-howto-title{font-size:15px}
 .poem-study-desk .sd-howto-list{gap:2px}
 .poem-study-desk .sd-howto-list li{gap:4px;font-size:13px;line-height:1.2}
 .poem-study-desk .sd-howto-ico{width:1.4em;height:1.4em}
 .poem-study-desk .sd-howto-go{min-width:62px;padding:6px 8px;font-size:17px}
}
@container (min-width:440px) and (max-width:600px){
 .poem-study-desk .sd-howto-title{font-size:19px}
 .poem-study-desk .sd-howto-list{gap:6px}
 .poem-study-desk .sd-howto-list li{font-size:16px}
 .poem-study-desk .sd-howto-go{min-width:88px;min-height:52px;font-size:20px}
}

/* 錯兩次後：答案的東西和目標發亮。 */
.poem-study-desk .sd-prop.is-hint{animation:none;filter:drop-shadow(0 0 7px #ffb84a) drop-shadow(0 0 3px #fff6d6)}
.poem-study-desk .sd-choice.is-hint{border-color:#f0a64a;animation:sd-hintglow 1.2s ease-in-out infinite;box-shadow:0 0 0 4px #f0a64a99,0 4px 12px #2a1d1033}
.poem-study-desk .sd-ui .sd-badge.is-hint.is-hint{border-color:#f0c070;box-shadow:0 0 18px 8px #ffd98a99}
.poem-study-desk [data-sd-ui="5"]:not([hidden]) .sd-badge.is-hint{animation:sd-in .4s ease 1.5s both,sd-shimmer 1.8s ease-in-out infinite}

/* 舞台：16:9 畫面；鏡頭層 .sd-cam 內的東西跟畫一起縮放，.sd-ui 不縮放。 */
.poem-study-desk .sd-stage{grid-area:stage;position:relative;isolation:isolate;container-type:inline-size;width:100%;aspect-ratio:16/9;justify-self:center;overflow:hidden;overflow:clip;border-radius:20px;background:#ebe3d0;border:1px solid #d9cfb8;box-shadow:0 6px 20px #3a2c1a14;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.poem-study-desk .sd-cam{position:absolute;inset:0;transform-origin:0 0;transition:transform 1.6s cubic-bezier(.4,.1,.2,1)}
.poem-study-desk .sd-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;-webkit-user-drag:none;transition:opacity .9s ease}
.poem-study-desk .sd-scene.is-on{opacity:1}
.poem-study-desk .sd-layer{position:absolute;inset:0;z-index:2}
.poem-study-desk .sd-layer img{-webkit-user-drag:none;pointer-events:none}
.poem-study-desk .sd-ui{z-index:4;pointer-events:none}
.poem-study-desk .sd-ui>*{pointer-events:auto}

/* 第一步：書桌。 */
.poem-study-desk .sd-desk{position:absolute;left:5%;top:75%;width:80%;height:22%;z-index:1;padding:0;border:0;border-radius:18px;background:none;cursor:pointer;transition:box-shadow .3s,background .3s}
.poem-study-desk .sd-desk:disabled{cursor:default;pointer-events:none}
.poem-study-desk .sd-desk.is-cue,.poem-study-desk .sd-desk.is-over{background:#fff6d633;box-shadow:inset 0 0 0 3px #f2c56acc}
.poem-study-desk .sd-spot{position:absolute;left:var(--x);top:var(--y);z-index:2;width:var(--w);transform:translate(-50%,-50%) rotate(var(--r));opacity:0;pointer-events:none;transition:opacity .3s}
.poem-study-desk .sd-spot img{display:block;width:100%;height:auto;filter:grayscale(1) brightness(1.6) opacity(.55) drop-shadow(0 0 3px #fff)}
.poem-study-desk .sd-spot.is-cue{opacity:1}
.poem-study-desk .sd-spot.is-over img{filter:grayscale(1) brightness(1.7) opacity(.8) drop-shadow(0 0 6px #ffd36a)}
.poem-study-desk.is-tidy .sd-prop{opacity:0;transition:opacity .7s ease .25s}
.poem-study-desk .sd-float::before{content:"";position:absolute;left:50%;top:62%;width:calc(var(--sd-peek,0) * 70%);aspect-ratio:1.5;border-radius:50%;background:radial-gradient(closest-side,#fff8dcee,#ffe7a0aa 45%,#ffd36a00);mix-blend-mode:screen;transform:translate(-50%,-50%);transition:width .9s cubic-bezier(.3,1.3,.5,1)}
.poem-study-desk .sd-run span:empty{width:1.1cqw;height:1.1cqw;border-radius:50%;background:radial-gradient(circle,#fffbe8,#ffd36a 60%,#ffd36a00);box-shadow:0 0 10px #ffd36a}
.poem-study-desk.is-tidy .sd-spot{display:none}
.poem-study-desk .sd-prop{position:absolute;left:var(--x);top:var(--y);z-index:3;width:var(--w);min-width:48px;min-height:48px;padding:0;border:0;border-radius:12px;background:none;transform:translate(-50%,-50%) rotate(var(--r));touch-action:none;cursor:grab;transition:left .55s cubic-bezier(.3,1.2,.5,1),top .55s cubic-bezier(.3,1.2,.5,1),transform .55s ease,filter .2s}
.poem-study-desk .sd-prop img{display:block;width:100%;height:auto;filter:drop-shadow(1px 3px 2px #3b2a1a55)}
.poem-study-desk .sd-prop:not(:disabled){animation:sd-wiggle 3.2s ease-in-out infinite}
.poem-study-desk .sd-prop[aria-pressed=true]{animation:none;filter:drop-shadow(0 0 6px #ffd36a) drop-shadow(0 0 2px #fff6d6)}
.poem-study-desk .sd-prop.is-source{opacity:.35}
.poem-study-desk .sd-prop.is-placed{left:var(--tx);top:var(--ty);transform:translate(-50%,-50%) rotate(var(--tr));cursor:default;animation:none;pointer-events:none}
.poem-study-desk .sd-dust{position:absolute;left:var(--x);top:var(--y);z-index:4;width:max(72px,12%);aspect-ratio:80/36;min-height:48px;padding:0;border:0;border-radius:40%;background:none;transform:translate(-50%,-50%);touch-action:none;cursor:pointer;overflow:visible}
.poem-study-desk .sd-dust svg{display:block;width:100%;height:100%;overflow:visible}
/* 灰塵上一道淡淡的光慢慢掃過，提示可以擦（不畫圈、不跳動）。 */
.poem-study-desk .sd-dust .sd-sheen{opacity:0;transform:translateX(-60%);animation:sd-sheen 3.6s ease-in-out infinite}
.poem-study-desk .sd-dust[data-sd-dust="1"] .sd-sheen{animation-delay:1.2s}
.poem-study-desk .sd-dust[data-sd-dust="2"] .sd-sheen{animation-delay:2.4s}
.poem-study-desk .sd-dust:disabled .sd-sheen{animation:none;opacity:0}
.poem-study-desk .sd-dust.is-gone{opacity:0;pointer-events:none}
/* 擦掉：一塊布從左抹到右，灰跟着從左邊淡去，揚起一小陣灰。 */
.poem-study-desk .sd-cloth,.poem-study-desk .sd-puff{position:absolute;pointer-events:none;opacity:0}
.poem-study-desk .sd-cloth{left:0;top:16%;width:32%;height:64%;border-radius:46% 54% 42% 58%/56% 44% 60% 40%;background:radial-gradient(ellipse at 32% 32%,#fffefa 0 26%,#fffefa00 30%),radial-gradient(ellipse at 70% 66%,#fffefa 0 22%,#fffefa00 26%),#e7e3da;box-shadow:inset -2px -2px 0 #cfc9bc,0 2px 3px #2a1d1040}
.poem-study-desk .sd-puff{left:50%;top:40%;width:90%;aspect-ratio:2;border-radius:50%;background:radial-gradient(closest-side,#d8d0bf99,#d8d0bf33 60%,#d8d0bf00);transform:translate(-50%,-50%)}
.poem-study-desk .sd-dust.is-gone.is-wiping{opacity:1}
.poem-study-desk .sd-dust.is-wiping .sd-dirt{-webkit-mask-image:linear-gradient(90deg,#0000 40%,#000 60%);mask-image:linear-gradient(90deg,#0000 40%,#000 60%);-webkit-mask-size:260% 100%;mask-size:260% 100%;animation:sd-wipe .7s ease-in both}
.poem-study-desk .sd-dust.is-wiping .sd-sheen{animation:none;opacity:0}
.poem-study-desk .sd-dust.is-wiping .sd-cloth{animation:sd-cloth .7s ease-in-out both}
.poem-study-desk .sd-dust.is-wiping .sd-puff{animation:sd-puff .9s ease-out .25s both}

/* 第二步：書頁上的字。 */
.poem-study-desk .sd-page{position:absolute;left:50%;bottom:3%;transform:translateX(-50%);padding:1.4cqw 2.4cqw;border-radius:10px;background:#fbf4e1f2;box-shadow:0 4px 14px #3a2c1a33,inset 0 0 0 1px #d8c79f;text-align:center;line-height:1;white-space:nowrap}
.poem-study-desk .sd-char{width:clamp(44px,7cqw,66px);height:clamp(44px,7cqw,66px);margin:2px;padding:0;border:0;border-radius:10px;background:none;color:#b8ab93;font-family:var(--serif,serif);font-size:clamp(24px,4.4cqw,40px);font-weight:700;cursor:default;transition:color .3s,background .3s,box-shadow .3s}
.poem-study-desk .sd-char.is-read{color:#3b3226}
.poem-study-desk .sd-char.is-lit{color:#3b3226;background:#fff0c4;box-shadow:0 0 12px 3px #ffd98a88;cursor:pointer;animation:sd-shimmer 2s ease-in-out infinite}
.poem-study-desk .sd-punct{display:inline-block;width:clamp(16px,2.6cqw,26px);color:#7a6c55;font-family:var(--serif,serif);font-size:clamp(22px,4cqw,36px);font-weight:700;vertical-align:middle}

/* 第三步：小青念的句子，念錯的四處先發亮，點一下就改好。 */
.poem-study-desk .sd-bubble{position:absolute;left:3%;right:3%;bottom:3%;display:flex;align-items:center;gap:1.6cqw;padding:1cqw 1.6cqw;border-radius:18px;background:#fffaf0f5;box-shadow:0 4px 14px #2a1d1033}
.poem-study-desk .sd-bubble::before{content:'';position:absolute;left:30%;bottom:calc(100% - 1px);width:16px;height:12px;background:inherit;clip-path:polygon(0 100%,100% 100%,30% 0)}
.poem-study-desk .sd-model{flex:none;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:56px;min-height:56px;padding:4px 8px;border:1px solid #d8c79f;border-radius:14px;background:#fffef7;color:#6b5132;font-size:clamp(13px,1.6cqw,16px);font-weight:600;cursor:pointer}
.poem-study-desk .sd-model svg,.poem-study-desk .sd-listen svg{width:22px;height:22px;flex:none;stroke-linecap:round;stroke-linejoin:round}
.poem-study-desk .sd-strip{flex:1;min-width:0;text-align:center;line-height:1}
.poem-study-desk .sd-tile{display:inline-grid;place-items:center;width:clamp(36px,6.2cqw,60px);height:clamp(40px,6.4cqw,62px);margin:2px 1px;border-radius:9px;background:#fffdf6;box-shadow:inset 0 0 0 1px #d8c79f,0 2px 0 #d8c79f;font-family:var(--serif,serif);font-size:clamp(22px,4cqw,38px);font-weight:700;vertical-align:middle;color:#3b3226}
.poem-study-desk .sd-tile.is-gap{background:#fff8e2;box-shadow:none;outline:2px dashed #c9862e;outline-offset:-6px}
/* 念錯的地方：一開始就發亮（淡金底＋金框輕輕呼吸），點一下就改好。 */
.poem-study-desk .sd-fix{display:inline-flex;vertical-align:middle;margin:0 2px;padding:2px;border:0;border-radius:12px;background:#ffd98a;box-shadow:0 0 0 2px #e9a640,0 0 10px 2px #ffc87a99;cursor:pointer;animation:sd-breathe 2.2s ease-in-out infinite}
.poem-study-desk .sd-fix .sd-tile{margin:0 1px;background:#fff4d6;box-shadow:none;color:#3b3226}
.poem-study-desk .sd-fix:disabled{cursor:default}
.poem-study-desk .sd-fix.is-hint{animation:sd-pulse 1s ease-in-out infinite;box-shadow:0 0 0 4px #e9a640,0 0 16px 6px #ffc87acc}
.poem-study-desk .sd-fix.is-fixed{background:none;box-shadow:none;cursor:default;animation:none}
.poem-study-desk .sd-fix.is-fixed .sd-tile{color:#3b3226;background:#fffdf6;box-shadow:inset 0 0 0 1px #d8c79f,0 2px 0 #d8c79f}
.poem-study-desk .sd-fix.is-new{animation:sd-pop .45s ease}
.poem-study-desk .sd-fix.is-out{max-width:200px;overflow:hidden;background:none;box-shadow:none;animation:sd-out .5s ease .1s forwards}
.poem-study-desk .sd-fix.is-out .sd-tile{color:#8a7e6a;text-decoration:line-through}
.poem-study-desk .sd-stamp{position:absolute;z-index:7;padding:3px 14px;border-radius:12px;background:#7b3e22;color:#fffaf0;box-shadow:0 4px 12px #2a1d1055;font-family:var(--serif,serif);font-size:clamp(17px,2.8cqw,26px);font-weight:700;letter-spacing:.1em;line-height:1.4;white-space:nowrap;transform:translate(-50%,-100%);pointer-events:none;animation:sd-stamp 2.2s ease both}
.poem-study-desk .sd-strip .sd-punct{width:1em;font-size:clamp(20px,3.4cqw,32px)}
.poem-study-desk .sd-ghost{position:fixed;left:0;top:0;z-index:50;pointer-events:none;transform:translate(-50%,-55%) scale(1.08);filter:drop-shadow(0 6px 6px #3b2a1a55)}
.poem-study-desk .sd-ghost img{display:block;width:100%;height:auto}

/* 第四步：硬背還是多讀？多誦數遍、其義自見。 */
.poem-study-desk .sd-choices{position:absolute;left:50%;bottom:4%;display:flex;gap:2.4cqw;transform:translateX(-50%)}
.poem-study-desk .sd-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:clamp(120px,22cqw,210px);min-height:clamp(64px,11cqw,104px);padding:8px 14px;border:2px solid #d8c79f;border-radius:18px;background:#fffaf0f5;box-shadow:0 4px 12px #2a1d1033;font-size:clamp(17px,2.4cqw,22px);line-height:1.3;cursor:pointer;transition:transform .15s,border-color .2s}
.poem-study-desk .sd-choice b{font-size:clamp(19px,2.9cqw,27px);color:#6b3a1e}
.poem-study-desk .sd-choice:hover:not(:disabled){transform:translateY(-2px);border-color:#e0b46a}
.poem-study-desk .sd-choice.is-shake{animation:sd-shake .45s ease}
.poem-study-desk .sd-book{position:absolute;left:var(--x);top:var(--y);z-index:3;width:var(--w);aspect-ratio:1.4;min-width:56px;padding:0;border:0;border-radius:24%;background:radial-gradient(closest-side,#fff6d600 40%,#fff1c488 70%,#fff1c400);transform:translate(-50%,-50%);cursor:pointer;animation:sd-shimmer 2.2s ease-in-out infinite}
.poem-study-desk .sd-glow{position:absolute;left:var(--x);top:var(--y);z-index:3;width:var(--w);aspect-ratio:1.5;min-width:64px;padding:0;border:0;border-radius:50%;background:radial-gradient(closest-side,#fffbe8ee 20%,#ffe9a8aa 55%,#ffd36a00);transform:translate(-50%,-50%);cursor:pointer;animation:sd-glow 1.8s ease-in-out infinite}
.poem-study-desk .sd-float{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.poem-study-desk .sd-book.is-reading,.poem-study-desk .sd-book:disabled{animation:none;filter:grayscale(1);opacity:.55;background:radial-gradient(closest-side,#fff6d600 40%,#d8cdb066 70%,#d8cdb000);cursor:default}
.poem-study-desk .sd-run{position:absolute;left:50%;top:52%;width:0;height:0}
.poem-study-desk .sd-run span{position:absolute;left:0;top:0;font-family:var(--serif,serif);font-size:clamp(16px,2.7cqw,28px);line-height:1;font-weight:700;color:#7b3e22;text-shadow:0 0 6px #fffbe8,0 0 2px #fff;opacity:0;animation:sd-rise 2.3s ease-out calc(var(--i) * 70ms) both;--dx:calc((var(--i) - 6.5) * 3.1cqw - .5em);--dy:-18cqw}
.poem-study-desk .sd-run.is-r2 span{--dy:-21cqw}
.poem-study-desk .sd-run.is-r3 span{--dy:-15cqw}
.poem-study-desk .sd-count{position:absolute;left:50%;top:5%;margin:0;padding:0 14px;border-radius:14px;background:#fffaf0e0;transform:translateX(-50%);font-size:clamp(17px,2.4cqw,22px);font-weight:700;color:#6b3a1e;line-height:1.7}
.poem-study-desk .sd-count:empty{display:none}
.poem-study-desk .sd-caption{position:absolute;left:50%;top:6%;margin:0;padding:4px 18px;border-radius:14px;background:#fffaf0ee;box-shadow:0 3px 10px #2a1d1026;transform:translate(-50%,8px);font-family:var(--serif,serif);font-size:clamp(19px,3.2cqw,32px);font-weight:700;letter-spacing:.14em;color:#7b3e22;opacity:0;transition:opacity .8s ease .6s,transform .8s ease .6s;pointer-events:none}
.poem-study-desk .sd-caption.is-on{opacity:1;transform:translate(-50%,0)}

/* 第五步：趕走蝴蝶、蟋蟀。 */
.poem-study-desk .sd-critter{position:absolute;left:var(--x);top:var(--y);z-index:3;width:var(--w);min-width:52px;min-height:48px;padding:0;border:0;background:none;transform:translate(-50%,-50%) rotate(var(--r));cursor:pointer;transition:left 1.1s ease-in,top 1.1s ease-in,opacity 1.1s ease,transform 1.1s ease}
.poem-study-desk .sd-critter img{display:block;width:100%;height:auto;filter:drop-shadow(0 2px 2px #2a1d1040)}
.poem-study-desk .sd-critter:not(:disabled) img{animation:sd-flutter 1.1s ease-in-out infinite}
.poem-study-desk .sd-critter[data-sd-critter=cricket]:not(:disabled) img{animation:sd-hop 1.6s ease-in-out infinite}
.poem-study-desk .sd-critter .sd-mark{position:absolute;left:50%;top:50%;z-index:-1;width:calc(100% + 18px);height:calc(100% + 14px);border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(closest-side,#fff6d6aa,#ffe39a55 55%,#ffe39a00);pointer-events:none;animation:sd-shimmer 2.4s ease-in-out infinite}
.poem-study-desk .sd-critter:disabled .sd-mark{display:none}
/* 畫裏的蝴蝶：按鈕蓋在畫上那隻蝴蝶上；趕走時，補丁（取旁邊的天空）蓋住原處，蝴蝶那一塊畫飛走。 */
.poem-study-desk .sd-critter.is-painted{width:max(44px,5.5cqw);min-width:0;min-height:0;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%)}
.poem-study-desk .sd-critter.is-painted .sd-mark{width:max(32px,calc(var(--fw) * .78cqw));height:auto;aspect-ratio:1}
.poem-study-desk .sd-flyer{position:absolute;left:50%;top:50%;width:calc(var(--fw) * 1cqw);height:calc(var(--fh) * .5625cqw);transform:translate(-50%,-50%);background-repeat:no-repeat;background-size:100cqw 56.25cqw;background-position:calc((var(--cx) - var(--fw) / 2) * -1cqw) calc((var(--cy) - var(--fh) / 2) * -.5625cqw);-webkit-mask-image:radial-gradient(closest-side,#000 66%,#0000 100%);mask-image:radial-gradient(closest-side,#000 66%,#0000 100%);opacity:0;pointer-events:none}
.poem-study-desk .sd-critter.is-painted.is-gone .sd-flyer{animation:sd-flyaway 1.1s ease-in both}
.poem-study-desk .sd-patch{position:absolute;z-index:1;left:calc((var(--cx) - var(--pw) / 2) * 1%);top:calc((var(--cy) - var(--ph) / 2) * 1%);width:calc(var(--pw) * 1%);height:calc(var(--ph) * 1%);background-repeat:no-repeat;background-size:100cqw 56.25cqw;background-position:calc((var(--cx) - var(--pw) / 2 + var(--dx)) * -1cqw) calc((var(--cy) - var(--ph) / 2 + var(--dy)) * -.5625cqw);-webkit-mask-image:radial-gradient(closest-side,#000 74%,#0000 98%);mask-image:radial-gradient(closest-side,#000 74%,#0000 98%);opacity:0;pointer-events:none;transition:opacity .12s linear}
.poem-study-desk .sd-patch.is-on{opacity:1}
.poem-study-desk .sd-tally{position:absolute;left:2.5%;top:4%;margin:0;padding:4px 14px;border-radius:14px;background:#fffaf0ee;box-shadow:0 3px 10px #2a1d1026;font-size:clamp(16px,2.6cqw,24px);font-weight:700;color:#6b3a1e;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums;pointer-events:none}
.poem-study-desk .sd-tally b{color:#b8743a}
.poem-study-desk .sd-critter.is-gone{left:92%;top:-12%;opacity:0;transform:translate(-50%,-50%) rotate(30deg) scale(.5);pointer-events:none}
.poem-study-desk .sd-critter[data-sd-critter=cricket].is-gone{left:105%;top:60%}

/* 第六步：眼、口、心。 */
.poem-study-desk .sd-ring{position:absolute;left:var(--x);top:var(--y);width:4.6%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%) scale(.4);background:radial-gradient(closest-side,#fffbe8ee,#ffe39a99 55%,#ffd36a00);opacity:0;pointer-events:none;transition:opacity .6s ease,transform .6s ease}
.poem-study-desk .sd-ring[data-sd-ring=heart]{width:8%}
.poem-study-desk .sd-ring.is-lit{opacity:1;transform:translate(-50%,-50%) scale(1)}
.poem-study-desk .sd-ring.is-flicker{animation:sd-flicker 1.2s ease both}
.poem-study-desk .sd-badge{position:absolute;z-index:5;display:grid;place-items:center;width:clamp(52px,8cqw,76px);height:clamp(52px,8cqw,76px);padding:0;border:3px solid #d8c79f;border-radius:50%;background:#fffaf0f2;box-shadow:0 4px 12px #2a1d1040;font-family:var(--serif,serif);font-size:clamp(24px,4cqw,38px);font-weight:700;color:#6b5132;transform:translate(-50%,-50%);cursor:pointer;transition:background .4s,border-color .4s,color .4s,box-shadow .4s}
.poem-study-desk [data-sd-ui="5"]:not([hidden]) .sd-badge{animation:sd-in .4s ease 1.5s both}
.poem-study-desk .sd-badge[data-sd-badge=heart]{border-color:#e6a6a0;color:#a3423a}
/* 錯點時閃一下；動畫清單保留 sd-in，閃完不會重新淡入、不會消失一下。 */
.poem-study-desk [data-sd-ui="5"]:not([hidden]) .sd-badge.is-flicker{animation:sd-in .4s ease 1.5s both,sd-flicker-b 1.2s ease both}
.poem-study-desk .sd-badge.is-lit{background:#ffe9a8;border-color:#f2b84a;color:#7b3e22;box-shadow:0 0 0 4px #ffd98a88,0 0 20px 6px #ffd36a88}
.poem-study-desk .sd-badge.is-lit:disabled{cursor:default}

.poem-study-desk .sd-hand{position:absolute;left:0;top:0;z-index:8;width:clamp(36px,5.6cqw,52px);opacity:0;pointer-events:none;transform:translate(var(--fx),var(--fy))}
.poem-study-desk .sd-hand svg{display:block;width:100%;height:auto;transform:translate(-30%,-8%);filter:drop-shadow(0 3px 3px #2a1d1055)}
.poem-study-desk .sd-hand.is-on{animation:sd-demo 2.8s ease-in-out both}
.poem-study-desk .sd-end{position:absolute;right:3.5%;top:5%;z-index:6;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 16px;border-radius:14px;background:#fefbf0e8;color:#4a3b28;box-shadow:0 4px 14px #2a1d1026;pointer-events:none;opacity:0;transform:translateY(8px);transition:opacity .7s ease 1.2s,transform .7s ease 1.2s}
.poem-study-desk .sd-end b{font-size:clamp(16px,3cqw,28px);letter-spacing:.16em;color:#7b3e22}
.poem-study-desk .sd-end small{font-size:clamp(14px,1.9cqw,17px);font-weight:600;letter-spacing:.04em}
.poem-study-desk .sd-end.is-on{opacity:1;transform:none}
@container (max-width:520px){.poem-study-desk .sd-end{right:2.5%;top:3.5%;padding:3px 12px}.poem-study-desk .sd-end small{display:none}}
.poem-study-desk .sd-loading{position:absolute;inset:0;z-index:9;display:grid;align-content:center;justify-items:center;gap:14px;padding:20px;background:#f4efe0eb;font-size:20px;line-height:1.5;text-align:center}
.poem-study-desk .sd-loading button{min-height:48px;padding:10px 22px;border:1px solid #b9a882;border-radius:14px;background:#fffefa;font-weight:600;font-size:19px;cursor:pointer}

/* 窄畫面（手機直屏）：舞台很小，字塊縮小、排成兩行。 */
@container (max-width:560px){
 .poem-study-desk .sd-bubble{left:2%;right:2%;bottom:2%;padding:3px 5px;gap:4px;border-radius:12px}
 .poem-study-desk .sd-model{min-width:40px;min-height:40px;padding:2px}
 .poem-study-desk .sd-model span{display:none}
 .poem-study-desk .sd-tile{width:clamp(28px,calc((100cqw - 86px) / 8.8),36px);height:38px;margin:1px 0;border-radius:6px;font-size:21px}
 .poem-study-desk .sd-fix{margin:0 1px;padding:1px;border-radius:8px}
 .poem-study-desk .sd-fix .sd-tile{margin:0}
 .poem-study-desk .sd-stamp{padding:2px 10px;font-size:16px;letter-spacing:.04em}
 .poem-study-desk .sd-strip .sd-punct{width:1em;font-size:18px}
 .poem-study-desk .sd-page{padding:3px 8px}
 .poem-study-desk .sd-char{width:40px;height:40px;margin:1px;font-size:23px}
 .poem-study-desk .sd-page .sd-punct{width:12px;font-size:20px}
 .poem-study-desk .sd-choices{gap:8px;bottom:3%}
 .poem-study-desk .sd-choice{min-width:112px;min-height:54px;padding:3px 8px;font-size:14px;border-radius:12px}
 .poem-study-desk .sd-choice b{font-size:17px}
 .poem-study-desk .sd-badge{width:46px;height:46px;font-size:23px;border-width:2px}
 .poem-study-desk .sd-caption{font-size:17px;padding:2px 10px}
 .poem-study-desk .sd-count{font-size:15px}
 .poem-study-desk .sd-tally{padding:2px 9px;font-size:15px;border-radius:10px}
}

@container (max-width:340px){
 .poem-study-desk .sd-tile{height:34px}
}
/* iPad 橫屏舞台約 440–560px 寬：字塊和書上那句放大，孩子手指點得準、看得清。 */
@container (min-width:440px) and (max-width:560px){
 .poem-study-desk .sd-tile{width:40px;height:46px;margin:1px;font-size:25px}
 .poem-study-desk .sd-strip .sd-punct{width:1em;font-size:22px}
 .poem-study-desk .sd-char{width:44px;height:44px;font-size:26px}
 .poem-study-desk .sd-choice{min-width:132px;min-height:60px;font-size:16px}
 .poem-study-desk .sd-choice b{font-size:19px}
 .poem-study-desk .sd-badge{width:50px;height:50px;font-size:25px}
 .poem-study-desk .sd-caption{font-size:19px}
 .poem-study-desk .sd-count{font-size:17px}
}

/* 側欄 */
.poem-study-desk .sd-side{grid-area:side;display:flex;flex-direction:column;gap:12px;min-width:0}
.poem-study-desk .sd-verse{margin:0;padding:10px 14px;border:1px solid #e6dcc4;border-radius:16px;background:#f8f3e6;color:#4a3b28;font-family:var(--serif,serif);font-size:clamp(20px,2.4vw,23px);font-weight:600;line-height:1.55;letter-spacing:.06em;text-align:left;text-wrap:pretty}
.poem-study-desk .sd-summary{padding:12px 16px;border-radius:16px;background:#fbf3e2;border:1px solid #ecdcbc;text-align:center}
.poem-study-desk .sd-summary b{display:block;font-size:21px;letter-spacing:.12em;color:#7b3e22}
.poem-study-desk .sd-summary p{margin:0;font-size:19px;line-height:1.6;color:#5a4a35;text-align:left}
.poem-study-desk .sd-actionline{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.poem-study-desk .sd-primary{flex:1 1 150px;min-height:52px;padding:10px 20px;border:0;border-radius:16px;background:var(--sd-green);color:#fff!important;font-size:20px;font-weight:650;letter-spacing:.06em;cursor:pointer;box-shadow:0 3px 0 #344b3b;transition:background .2s,transform .1s}
.poem-study-desk .sd-primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #344b3b}
.poem-study-desk .sd-primary.is-next{background:#b8743a;box-shadow:0 3px 0 #8a5426}
.poem-study-desk .sd-primary:disabled{opacity:.5;cursor:default}
.poem-study-desk .sd-listen{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:52px;margin-left:auto;padding:8px 18px;border:1px solid #d3c5a5;border-radius:999px;background:#fffef7;color:#6b5132!important;font-size:19px;font-weight:600;cursor:pointer}
.poem-study-desk .sd-listen.is-busy{opacity:.7;cursor:default}
.poem-study-desk .sd-feedback{margin:0;min-height:3em;font-size:19px;line-height:1.5;color:#6b5a3e;text-align:center;text-wrap:pretty}

@keyframes sd-wiggle{0%,86%,100%{rotate:0deg}90%{rotate:-4deg}95%{rotate:3deg}}
@keyframes sd-in{from{opacity:0}}
@keyframes sd-hintglow{50%{box-shadow:0 0 0 7px #f0a64a55,0 0 22px 8px #ffc87a77}}
@keyframes sd-pulse{50%{transform:scale(1.06)}}
@keyframes sd-pop{40%{transform:scale(1.18)}}
@keyframes sd-breathe{50%{box-shadow:0 0 0 3px #e9a640,0 0 16px 5px #ffc87acc}}
@keyframes sd-out{to{opacity:0;max-width:0;padding:0;margin:0}}
@keyframes sd-stamp{0%{opacity:0;transform:translate(-50%,-70%) scale(.8)}12%{opacity:1;transform:translate(-50%,-100%) scale(1.06)}20%,80%{opacity:1;transform:translate(-50%,-100%) scale(1)}100%{opacity:0;transform:translate(-50%,-110%) scale(1)}}
@keyframes sd-shimmer{0%,100%{opacity:1;filter:brightness(1)}50%{opacity:.82;filter:brightness(1.08)}}
@keyframes sd-sheen{0%,55%{opacity:0;transform:translateX(-60%)}70%{opacity:1}100%{opacity:0;transform:translateX(60%)}}
@keyframes sd-wipe{from{-webkit-mask-position:100% 0;mask-position:100% 0}to{-webkit-mask-position:0 0;mask-position:0 0}}
@keyframes sd-cloth{0%{opacity:0;transform:translate(-30%,0) rotate(-8deg)}15%{opacity:1}50%{transform:translate(90%,-6%) rotate(4deg)}85%{opacity:1}100%{opacity:0;transform:translate(170%,0) rotate(-4deg)}}
@keyframes sd-puff{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}30%{opacity:.9}100%{opacity:0;transform:translate(-30%,-90%) scale(1.25)}}
@keyframes sd-flyaway{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}20%{transform:translate(-50%,-50%) scale(1,.7)}35%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1,.7)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(.9)}}
@keyframes sd-shake{20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-4px)}80%{transform:translateX(2px)}}
@keyframes sd-glow{50%{opacity:.7;transform:translate(-50%,-50%) scale(1.08)}}
@keyframes sd-rise{0%{opacity:0;transform:translate(-.5em,0) scale(.5)}12%{opacity:1}40%,78%{opacity:1;transform:translate(var(--dx),var(--dy)) scale(1)}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy) - 2cqw)) scale(1)}}
@keyframes sd-flutter{50%{transform:translateY(-6%) scaleY(.82)}}
@keyframes sd-hop{0%,70%,100%{transform:none}80%{transform:translateY(-14%)}}
@keyframes sd-flicker{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}25%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(.6)}}
@keyframes sd-flicker-b{25%{background:#ffe9a8;box-shadow:0 0 0 4px #ffd98a88}100%{background:#fffaf0f2}}
@keyframes sd-demo{0%{opacity:0;transform:translate(var(--fx),var(--fy))}15%,30%{opacity:1;transform:translate(var(--fx),var(--fy))}75%{opacity:1;transform:translate(var(--tx),var(--ty))}100%{opacity:0;transform:translate(var(--tx),var(--ty))}}

/* 橫屏：畫在左，詩句和按鈕在右。 */
@media (orientation:landscape) and (min-width:701px),(orientation:landscape) and (max-height:500px){
 .poem-study-desk{max-width:1280px}
 .poem-study-desk .sd-layout{grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage head" "stage side";column-gap:22px;row-gap:12px;align-items:center}
 .poem-study-desk .sd-stage{width:min(100%,calc((100cqh - 24px) * 16 / 9));align-self:start}
 .poem-study-desk .sd-head{align-self:end;align-items:flex-start}
 .poem-study-desk .sd-side{align-self:start}
}
@media (orientation:landscape) and (min-width:1100px) and (min-height:700px){
 .poem-study-desk .sd-instruction{font-size:26px}
 .poem-study-desk .sd-feedback{font-size:20px}
}
/* 2026-11-03 平板橫屏側欄用滿畫面高度：上面是任務，中間是詩句和說明，按鈕在最下面；字和按鈕放大。 */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px){
 .poem-study-desk .sd-layout{grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);align-items:stretch;align-content:stretch;row-gap:14px;column-gap:24px}
 .poem-study-desk .sd-stage{align-self:center;width:min(100%,calc((100cqh - 4px) * 16 / 9))}
 .poem-study-desk .sd-head{align-self:start;flex-wrap:wrap;gap:8px 10px;padding-bottom:12px;border-bottom:1.5px solid #e6dcc4}
 .poem-study-desk .sd-instruction{flex:1 1 100%;font-size:clamp(22px,2.3vw,28px);line-height:1.38}
 .poem-study-desk .sd-tools{margin-left:auto}
 .poem-study-desk .sd-progress{font-size:19px}
 .poem-study-desk .sd-side{align-self:stretch;gap:16px}
 .poem-study-desk .sd-side::before,.poem-study-desk .sd-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-study-desk .sd-side::before{order:-1}.poem-study-desk .sd-side::after{order:8}
 .poem-study-desk .sd-verse{padding:12px 16px;font-size:clamp(23px,2.3vw,27px)}
 .poem-study-desk .sd-summary b{font-size:24px}
 .poem-study-desk .sd-summary p{font-size:20px}
 .poem-study-desk .sd-feedback{min-height:0;font-size:21px}
 .poem-study-desk .sd-feedback:empty{display:none}
 .poem-study-desk .sd-actionline{order:9;flex-wrap:nowrap}
 .poem-study-desk .sd-primary,.poem-study-desk .sd-listen{flex:1 1 0;min-height:62px;font-size:23px;white-space:nowrap}
 .poem-study-desk .sd-listen svg{width:26px;height:26px}
}
@media (orientation:landscape) and (max-height:500px){
 .poem-study-desk .sd-layout{grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr);column-gap:14px;row-gap:6px}
 .poem-study-desk .sd-stage{border-radius:14px;width:min(100%,calc((100cqh - 8px) * 16 / 9))}
 .poem-study-desk .sd-instruction{font-size:17px;line-height:1.35}
 .poem-study-desk .sd-progress{min-width:52px;padding:3px 8px;font-size:15px}
 .poem-study-desk .sd-howbtn{min-height:44px;padding:3px 10px;font-size:15px}
 .poem-study-desk .sd-side{gap:6px}
 .poem-study-desk .sd-verse{padding:4px 8px;font-size:16px;letter-spacing:.02em;border-radius:12px}
 .poem-study-desk .sd-summary{padding:6px 10px}.poem-study-desk .sd-summary b{font-size:16px}.poem-study-desk .sd-summary p{font-size:15px;line-height:1.45;margin-top:0}
 .poem-study-desk .sd-primary{min-height:44px;padding:5px 12px;font-size:17px;flex-basis:100px}
 .poem-study-desk .sd-listen{min-height:44px;padding:5px 12px;font-size:15px}
 .poem-study-desk .sd-feedback{font-size:15px;line-height:1.4;min-height:2.8em;text-align:left}
}
/* 2026-11-03 手機橫屏：畫面用滿高度，右欄緊湊不溢出。 */
@media (orientation:landscape) and (max-height:500px){
 .poem-study-desk .sd-layout{grid-template-columns:min(calc((100cqh - 4px) * 16 / 9),60%) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);row-gap:4px;column-gap:14px;align-items:stretch}
 .poem-study-desk .sd-stage{align-self:center;width:100%}
 .poem-study-desk .sd-head{align-self:start;align-items:center;gap:6px}
 .poem-study-desk .sd-instruction{font-size:16px;line-height:1.25}
 .poem-study-desk .sd-progress{min-width:0;padding:2px 8px;font-size:14px}
 .poem-study-desk .sd-howbtn{min-height:32px;padding:2px 10px;font-size:14px}
 .poem-study-desk .sd-side{align-self:stretch;gap:3px}
 .poem-study-desk .sd-side::before,.poem-study-desk .sd-side::after{content:'';flex:1 1 0;min-height:0}
 .poem-study-desk .sd-side::before{order:-1}.poem-study-desk .sd-side::after{order:8}
 .poem-study-desk .sd-verse{padding:2px 8px;font-size:15px;line-height:1.4}
 .poem-study-desk .sd-summary{padding:2px 8px}
 .poem-study-desk .sd-summary b{display:none}
 .poem-study-desk .sd-summary p{margin:0;font-size:13px;line-height:1.3}
 .poem-study-desk .sd-actionline{order:9;flex-wrap:nowrap;gap:6px}
 .poem-study-desk .sd-primary,.poem-study-desk .sd-listen{flex:1 1 0;min-height:34px;padding:2px 10px;font-size:15px;white-space:nowrap}
 .poem-study-desk .sd-listen svg{width:19px;height:19px}
 .poem-study-desk .sd-feedback{min-height:0;font-size:14px;line-height:1.3;text-align:center}
 .poem-study-desk .sd-feedback:empty{display:none}
 .poem-study-desk.is-done .sd-feedback{display:none}
}
@media (max-width:420px){
 .poem-study-desk .sd-layout{gap:10px}
 .poem-study-desk .sd-instruction{font-size:19px;min-height:2.84em}
 .poem-study-desk .sd-progress{min-width:56px;padding:4px 8px;font-size:16px}
 .poem-study-desk .sd-tools{gap:6px}
 .poem-study-desk .sd-howbtn{padding:4px 10px;font-size:16px}
 .poem-study-desk .sd-stage{border-radius:15px}
 .poem-study-desk .sd-verse{font-size:19px;letter-spacing:0;padding:8px 10px}
 .poem-study-desk .sd-primary{font-size:19px;padding:10px 14px}
 .poem-study-desk .sd-listen{padding:8px 14px;font-size:17px}
 .poem-study-desk .sd-feedback{font-size:17px;text-align:left}
 .poem-study-desk .sd-end{padding:4px 9px;border-radius:10px}
}
.poem-study-desk.is-reduced .sd-cam,.poem-study-desk.is-reduced .sd-scene,.poem-study-desk.is-reduced .sd-prop,.poem-study-desk.is-reduced .sd-dust,.poem-study-desk.is-reduced .sd-critter,.poem-study-desk.is-reduced .sd-ring,.poem-study-desk.is-reduced .sd-badge,.poem-study-desk.is-reduced .sd-caption,.poem-study-desk.is-reduced .sd-end,.poem-study-desk.is-reduced .sd-char{transition:none}
.poem-study-desk.is-reduced .sd-sheen,.poem-study-desk.is-reduced .sd-howto,.poem-study-desk.is-reduced .sd-prop,.poem-study-desk.is-reduced .sd-char,.poem-study-desk.is-reduced .sd-fix,.poem-study-desk.is-reduced .sd-mark,.poem-study-desk.is-reduced .sd-stamp,.poem-study-desk.is-reduced .sd-book,.poem-study-desk.is-reduced .sd-glow,.poem-study-desk.is-reduced .sd-critter img,.poem-study-desk.is-reduced .sd-ring,.poem-study-desk.is-reduced .sd-badge,.poem-study-desk.is-reduced .sd-choice{animation:none!important}
.poem-study-desk.is-reduced .sd-hand.is-on{animation:none;opacity:1;transform:translate(var(--tx),var(--ty))}
.poem-study-desk.is-reduced .sd-fix.is-out,.poem-study-desk.is-reduced .sd-critter.is-painted.is-gone .sd-flyer{animation:none!important;display:none}
@media (prefers-reduced-motion:reduce){
 .poem-study-desk .sd-cam,.poem-study-desk .sd-scene,.poem-study-desk .sd-prop,.poem-study-desk .sd-dust,.poem-study-desk .sd-critter,.poem-study-desk .sd-ring,.poem-study-desk .sd-badge,.poem-study-desk .sd-caption,.poem-study-desk .sd-end,.poem-study-desk .sd-char{transition:none}
 .poem-study-desk .sd-sheen,.poem-study-desk .sd-cloth,.poem-study-desk .sd-puff,.poem-study-desk .sd-dirt,.poem-study-desk .sd-howto,.poem-study-desk .sd-prop,.poem-study-desk .sd-char,.poem-study-desk .sd-fix,.poem-study-desk .sd-mark,.poem-study-desk .sd-stamp,.poem-study-desk .sd-book,.poem-study-desk .sd-glow,.poem-study-desk .sd-critter img,.poem-study-desk .sd-ring,.poem-study-desk .sd-badge,.poem-study-desk .sd-choice,.poem-study-desk .sd-run span{animation:none!important}
 .poem-study-desk .sd-hand.is-on{animation:none;opacity:1;transform:translate(var(--tx),var(--ty))}
 .poem-study-desk .sd-fix.is-out,.poem-study-desk .sd-critter.is-painted.is-gone .sd-flyer{animation:none!important;display:none}
}
/* 2026-11-03 r3h iPad Safari 實際可用高度較矮（約 690–780）：收緊側欄，按鈕不被擠出畫面、側欄不出捲軸。 */
@media (orientation:landscape) and (min-width:701px) and (min-height:501px) and (max-height:780px){
 .poem-study-desk .sd-layout{row-gap:8px}
 .poem-study-desk .sd-head{padding-bottom:8px}
 .poem-study-desk .sd-instruction{font-size:clamp(20px,2vw,24px)}
 .poem-study-desk .sd-side{gap:10px}
 .poem-study-desk .sd-verse{padding:8px 14px;font-size:clamp(20px,2vw,24px)}
 .poem-study-desk .sd-summary{padding:8px 14px}
 .poem-study-desk .sd-summary p{font-size:18px}
 .poem-study-desk .sd-feedback{font-size:18px;line-height:1.4}
 .poem-study-desk .sd-primary,.poem-study-desk .sd-listen{min-height:52px;font-size:20px}
}

/* poem-games/practice-games.css */
/* school74 小老師找錯 / 讀音小偵探: a task panel beside a storybook picture of 小墨. */
.practice-game{--pg-ink:#304c43;--pg-soft:#6b7a70;--pg-paper:#fffdf6;--pg-line:#ded9c8;--pg-coral:#d9775f;--pg-coral-soft:#fbe9e2;--pg-sage:#eaf0e4;--pg-gold:#e3a548;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:18px;width:100%;max-width:1040px;margin-inline:auto;color:var(--pg-ink);font-family:var(--sans);min-width:0;align-items:stretch}
.practice-game *{box-sizing:border-box}
.practice-game [hidden]{display:none!important}
.practice-game button{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.practice-game button:focus-visible{outline:3px solid #de9b34;outline-offset:3px}
.practice-game button:disabled{cursor:default}
.practice-game svg{width:22px;height:22px;flex:none}
.practice-game .pg-panel{display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px 20px;border:1px solid var(--pg-line);border-radius:20px;background:var(--pg-paper);box-shadow:0 6px 20px #2c443110}
.practice-game .pg-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.practice-game .pg-eyebrow{display:block;font-size:14px;font-weight:600;color:var(--pg-coral);letter-spacing:1px}
.practice-game h3{font-size:clamp(21px,2.4vw,26px);line-height:1.4}
.practice-game .pg-progress{flex:none;min-width:62px;padding:4px 12px;border-radius:18px;background:var(--pg-sage);color:#3c6447;font-size:17px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.practice-game .pg-task{font-size:17px;line-height:1.55;color:var(--pg-soft)}
.practice-game .pg-work{display:flex;flex-direction:column;gap:14px;min-height:0}
.practice-game .pg-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}
.practice-game .pg-listen,.practice-game .pg-next,.practice-game .pg-hear{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:10px 20px;border-radius:100px;font-size:18px;font-weight:600;cursor:pointer;transition:background .15s,transform .15s}
.practice-game .pg-listen{border:0;background:#3c6856;color:#fff;box-shadow:0 3px 10px #304c431f}
.practice-game .pg-listen:hover:not(:disabled){background:#315b49}
.practice-game .pg-listen[aria-busy=true]{background:#5b8571}
.practice-game .pg-listen:disabled{opacity:.6}
.practice-game .pg-next{border:2px solid var(--pg-coral);background:#fff;color:#b45a43}
.practice-game .pg-next:hover:not(:disabled){background:var(--pg-coral-soft)}
.practice-game .pg-feedback{min-height:1.6em;font-size:17px;font-weight:600;line-height:1.55;color:#8a4f24}
.practice-game .pg-feedback:empty{min-height:0}

/* Words and lines: big characters, the reading under them once found. */
.practice-game .pg-phrase,.practice-game .pg-line{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:6px 0}
.practice-game .pg-char,.practice-game .pg-tile{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:64px;min-height:76px;padding:6px 8px;border:2px solid var(--pg-line);border-radius:14px;background:#fff;font-family:var(--serif);font-size:38px;line-height:1.1}
.practice-game .pg-work{container-type:inline-size}
.practice-game .pg-line{--pg-w:min(54px,calc((100cqi - 30px - (var(--pg-n,7) - 1) * 6px) / var(--pg-n,7)));gap:6px}
.practice-game .pg-line .pg-tile{min-width:var(--pg-w);min-height:calc(var(--pg-w) * 1.25);padding:4px 2px;border-radius:12px;font-size:calc(var(--pg-w) * .6)}
.practice-game .pg-line .pg-tile small{font-size:15px}
.practice-game .pg-line .pg-punct{font-size:calc(var(--pg-w) * .55)}
.practice-game .pg-break{flex-basis:100%;height:0}
.practice-game .pg-char small,.practice-game .pg-tile small{margin-top:4px;font-family:var(--sans);font-size:16px;color:#3c6447}
.practice-game .pg-tile{cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.practice-game .pg-tile:hover:not(:disabled){border-color:#9fbfa6;transform:translateY(-2px)}
.practice-game .pg-tile:disabled{opacity:1}
.practice-game .is-caught{border-color:var(--pg-coral);background:var(--pg-coral-soft)}
.practice-game .pg-punct{align-self:flex-end;font-family:var(--serif);font-size:30px;color:var(--pg-soft)}
.practice-game .pg-verdicts,.practice-game .pg-options{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.practice-game .pg-verdict,.practice-game .pg-option,.practice-game .pg-take{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:132px;min-height:56px;padding:10px 20px;border:2px solid var(--pg-line);border-radius:16px;background:#fff;font-size:20px;font-weight:600;cursor:pointer;transition:border-color .15s,background .15s}
.practice-game .pg-verdict.is-right{border-color:#a9c9a8}
.practice-game .pg-verdict.is-right span{color:#3c7a52}
.practice-game .pg-verdict.is-wrong{border-color:#e6b5a6}
.practice-game .pg-verdict.is-wrong span{color:#c0583f}
.practice-game .pg-verdict:hover:not(:disabled),.practice-game .pg-option:hover:not(:disabled),.practice-game .pg-take:hover:not(:disabled){background:#fbf6ea}
.practice-game .pg-verdict:disabled,.practice-game .pg-option:disabled,.practice-game .pg-take:disabled{opacity:.45}

/* 讀音小偵探 */
.practice-game .pg-word{text-align:center;font-family:var(--serif);font-size:44px;line-height:1.3}
.practice-game .pg-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.practice-game .pg-choice{display:flex;flex-direction:column;gap:8px;padding:12px;border:2px dashed var(--pg-line);border-radius:16px;background:#fff}
.practice-game .pg-choice.is-heard{border-style:solid;border-color:#b9d0b6}
.practice-game .pg-hear{border:0;background:var(--pg-sage);color:#2f5a45}
.practice-game .pg-hear:hover:not(:disabled){background:#dfe9d8}
.practice-game .pg-hear:disabled{opacity:.6}
.practice-game .pg-hear.is-wide{align-self:center}
.practice-game .pg-take{min-width:0}
.practice-game .pg-cards{display:flex;justify-content:center;gap:8px;min-height:58px}
.practice-game .pg-card{display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;max-width:136px;gap:5px;min-height:58px;padding:8px 10px;white-space:nowrap;border:2px solid var(--pg-line);border-radius:14px;background:#fff;font-family:var(--serif);font-size:28px;cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}
.practice-game .pg-card svg{width:18px;height:18px;color:var(--pg-soft)}
.practice-game .pg-card.is-heard{border-color:#b9d0b6}
.practice-game .pg-card.is-selected{border-color:var(--pg-gold);box-shadow:0 0 0 3px #e3a54840;transform:translateY(-3px)}
.practice-game .pg-baskets{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.practice-game .pg-basket{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:108px;padding:10px;border:2px solid #d8c49b;border-radius:18px 18px 28px 28px;background:repeating-linear-gradient(135deg,#f7ecd4 0 10px,#f2e3c3 10px 20px);font:inherit}
.practice-game button.pg-basket{cursor:pointer;transition:transform .15s,box-shadow .15s}
.practice-game button.pg-basket:not(:disabled){box-shadow:0 0 0 3px #e3a54833}
.practice-game button.pg-basket:hover:not(:disabled){transform:translateY(-2px)}
.practice-game button.pg-basket:disabled{opacity:1}
.practice-game .pg-basket b{font-size:22px;color:#7a5524}
.practice-game .pg-basket span{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.practice-game .pg-basket i{padding:2px 10px;border-radius:10px;background:#fffdf6;font-family:var(--serif);font-size:20px;font-style:normal}
.practice-game .pg-baskets.is-done .pg-basket{min-height:0}
.practice-game .pg-ask{text-align:center;font-size:19px;font-weight:600}
.practice-game .pg-rule{padding:12px 16px;border-left:5px solid var(--pg-gold);border-radius:10px;background:#fff6dd}
.practice-game .pg-rule span{display:block;font-size:14px;font-weight:600;color:#9a6a1c}
.practice-game .pg-rule p{font-size:18px;line-height:1.6}

/* The picture: poses cross-fade. */
.practice-game .pg-stage{position:relative;align-self:start;width:100%;aspect-ratio:3/2;overflow:hidden;border-radius:20px;border:1px solid #d6d2c1;background:#efe7d6;box-shadow:0 6px 20px #2c443114}
.practice-game .pg-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;-webkit-user-drag:none;transition:opacity .6s ease}
.practice-game .pg-scene.is-on{opacity:1}
.practice-game.is-reduced-motion .pg-scene{transition:none}
.practice-game .pg-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#efe7d6;font-size:17px;color:var(--pg-soft)}
.practice-game .pg-loading button{min-height:46px;padding:8px 18px;border:1px solid #cdbf9d;border-radius:100px;background:#fff}

/* In a lesson the challenge header already names the game. */
.challenge-game-holder .practice-game .pg-eyebrow{display:none}
.challenge-game-holder .practice-game .pg-header{align-items:center}

/* Tablets in landscape: the panel and the picture share one height, so the picture never
   leaves a blank under it and the panel never scrolls. The picture column is as wide as the
   play area allows at 3:2 (cover trims a little at the sides when the panel is taller). */
@media (min-width:701px) and (orientation:landscape){
  .workspace.view-quiz .challenge-game-holder>.practice-game{--pg-stage-w:min(calc((100cqh - 4px) * 1.5),calc(100cqw - max(440px,43cqw) - 22px));height:auto;max-width:none;grid-template-columns:minmax(0,1fr) var(--pg-stage-w);align-self:center;align-items:stretch;align-content:center;gap:0 22px}
  .workspace.view-quiz .challenge-game-holder>.practice-game .pg-stage{align-self:stretch;aspect-ratio:auto;min-height:calc(var(--pg-stage-w) / 1.5)}
  .workspace.view-quiz .challenge-game-holder>.practice-game .pg-scene{object-position:60% 50%}
  .workspace.view-quiz .challenge-game-holder>.practice-game .pg-panel{gap:10px;padding:16px 18px}
  .workspace.view-quiz .challenge-game-holder>.practice-game h3{font-size:24px;line-height:1.35}
  .workspace.view-quiz .challenge-game-holder>.practice-game .pg-work{flex:1 0 auto;justify-content:center;gap:12px}
  .workspace.view-quiz .challenge-game-holder>.practice-game .pg-actions{margin-top:0}
}
/* Narrow or upright screens: the picture on top as a wide strip, the panel under it. */
@media (max-width:820px),(orientation:portrait){
  .practice-game{grid-template-columns:minmax(0,1fr);gap:12px}
  .practice-game .pg-stage{order:-1;aspect-ratio:3/2;max-height:44vh}
  .practice-game .pg-scene{object-position:60% 35%}
  .workspace.view-quiz .challenge-game-holder>.practice-game{height:auto;align-self:safe center;grid-template-columns:minmax(0,1fr)}
}
@media (max-width:520px){
  .practice-game .pg-stage{aspect-ratio:2/1;border-radius:16px}
  .practice-game .pg-panel{gap:8px;padding:12px 14px;border-radius:16px}
  .practice-game h3{font-size:21px}
  .practice-game .pg-task,.practice-game .pg-feedback{font-size:16px}
  .practice-game .pg-char{min-width:56px;min-height:68px;font-size:34px}
  .practice-game .pg-verdict,.practice-game .pg-option{min-width:112px;min-height:52px;font-size:19px}
  .practice-game .pg-word{font-size:38px}
  .practice-game .pg-card{font-size:24px;padding:6px 8px;min-height:52px}
  .practice-game .pg-card svg{display:none}
  .practice-game .pg-basket{min-height:92px}
  .practice-game .pg-basket b{font-size:18px}
  .practice-game .pg-listen,.practice-game .pg-next,.practice-game .pg-hear{min-height:48px;font-size:17px}
}

/* 每日溫故: offered once per poem to pupils who have done its practice. */
.warmup-dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:26px;background:#fffaf0;color:var(--ink);box-shadow:0 24px 60px #3a2a1440;overflow:auto}
.warmup-dialog::backdrop{background:#2b231852;backdrop-filter:blur(3px)}
.warmup-dialog .warmup-cover{position:relative;aspect-ratio:3/2;max-height:46dvh;width:100%;overflow:hidden}
.warmup-dialog .warmup-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:62% 40%}
.warmup-dialog .warmup-cover::after{content:"";position:absolute;inset:auto 0 0;height:28%;background:linear-gradient(#fffaf000,#fffaf0)}
.warmup-dialog .warmup-cover-title{position:absolute;left:24px;top:22px;display:flex;flex-direction:column;gap:4px;max-width:48%}
.warmup-dialog .warmup-cover-title .eyebrow{align-self:flex-start;margin:0;padding:3px 10px;border-radius:999px;background:#c0583f;color:#fff;font-size:14px;font-weight:700;letter-spacing:1px}
.warmup-dialog .warmup-cover-title h2{margin:0;font:700 40px/1.15 var(--serif);color:#6b3a1f;letter-spacing:4px;text-shadow:0 2px 0 #fff8,0 0 18px #fff6}
.warmup-dialog .warmup-body{display:flex;flex-direction:column;gap:10px;padding:2px 22px 22px}
.warmup-dialog .warmup-tasks{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;list-style:none}
.warmup-dialog .warmup-tasks li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border:1.5px solid #e9d6b4;border-radius:16px;background:#fff}
.warmup-dialog .warmup-tasks b{font-size:17px;color:var(--ink)}
.warmup-dialog .warmup-tasks span{flex:none;padding:2px 9px;border-radius:999px;background:#fbe9dc;color:#b04d32;font-size:15px;font-weight:700}
.warmup-dialog p{margin:0;font-size:16px;line-height:1.6;color:var(--muted);text-align:center}
.warmup-dialog .dialog-actions{display:flex;gap:10px;margin-top:4px}
.warmup-dialog .dialog-actions .button{flex:1;min-height:52px;font-size:18px}
.warmup-dialog .dialog-actions .button.primary{flex:1.6}
@media (max-width:440px){
  .warmup-dialog .warmup-cover-title{left:16px;top:14px}
  .warmup-dialog .warmup-cover-title h2{font-size:30px;letter-spacing:2px}
  .warmup-dialog .warmup-tasks li{flex-direction:column;gap:4px;padding:10px 8px}
  .warmup-dialog .warmup-tasks b{font-size:16px;white-space:nowrap}
}
.warmup-view{display:flex;flex-direction:column;gap:14px;width:100%;max-width:1040px;margin-inline:auto}
.warmup-view .warmup-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.warmup-view .warmup-top p{font-size:17px;font-weight:600;color:var(--muted)}
.warmup-view .warmup-done{display:flex;flex-direction:column;align-items:center;gap:14px;padding:30px 20px;text-align:center}
.warmup-view .warmup-done img{width:min(420px,100%);border-radius:20px}
.warmup-view .warmup-done h2{font-size:26px}
.view-warmup .lesson-title h1{font:500 22px/1.4 var(--serif)}
.view-warmup .lesson-title p{color:var(--muted);font-size:11px}

/* challenge-game-integration.css */
/* Practice opens directly at its next question. The poem game is question one. */
.workspace .challenge-type-microgame{padding:12px 18px;overflow:hidden}
.workspace .challenge-type-microgame .challenge-header{margin-bottom:4px;padding-bottom:7px}
.workspace .challenge-type-microgame .challenge-header .challenge-eyebrow{font-size:18px;letter-spacing:0}
.workspace .challenge-type-microgame .challenge-count{font-size:24px}
.workspace .challenge-type-microgame .challenge-body{display:block;justify-content:flex-start;overscroll-behavior:contain}
.workspace .challenge-game-holder{min-width:0;width:100%}
/* A two-finger pinch in a game or while writing (say on the 穿鞋 box) must not zoom the whole page; vertical scrolling stays. app.js also stops Safari's pinch gesture there. */
.workspace:is(.view-quiz,.view-write),.workspace .challenge-game-holder{touch-action:pan-y}
.workspace .challenge-game-loading{display:flex;min-height:220px;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px;font-size:20px;line-height:1.6}
.workspace .challenge-type-microgame .challenge-footer{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px;padding-top:8px}
.workspace .challenge-type-microgame .challenge-footer-actions{display:flex;justify-content:center;align-items:center;flex:none;gap:8px;margin-inline:auto}
.workspace .challenge-type-microgame .challenge-footer .challenge-text-button{font-size:18px!important;min-height:46px}
.workspace .challenge-type-microgame .challenge-footer .challenge-primary{font-size:20px;min-width:150px;min-height:50px;justify-content:center}
.workspace .challenge-type-microgame .challenge-feedback{flex:1;min-width:100px;font-size:18px;line-height:1.5;margin:0;text-align:center}
.workspace .challenge-type-microgame .challenge-feedback:empty{display:none}
.workspace .challenge-type-microgame .challenge-feedback strong{font-size:21px}
.workspace .challenge-type-microgame .challenge-feedback .challenge-text-button{display:block;margin:auto}
.workspace .challenge-results-actions:has(>button:only-child){grid-template-columns:minmax(0,1fr);max-width:360px}
.workspace .challenge-results-actions>button{justify-content:center}
@media(max-width:700px){
 .workspace .challenge-type-microgame{padding:9px 10px;border-radius:18px}
 .workspace .challenge-type-microgame .challenge-header{padding-bottom:5px}
 .workspace .challenge-type-microgame .challenge-header .challenge-eyebrow{font-size:17px}
 .workspace .challenge-type-microgame .challenge-count{font-size:22px}
 .workspace .challenge-type-microgame .challenge-feedback{font-size:17px}
 .workspace .challenge-type-microgame .challenge-feedback strong{font-size:19px}
 .workspace .challenge-type-microgame .challenge-footer .challenge-primary{min-width:140px}
 .workspace .challenge-results-actions{grid-template-columns:minmax(0,1fr)!important;max-width:360px;gap:10px}
 .workspace .challenge-results-actions>.challenge-primary{min-height:54px;font-size:21px}
}
@media(max-height:550px) and (orientation:landscape){
 .workspace .challenge-type-microgame{padding:7px 12px}
 .workspace .challenge-type-microgame .challenge-header>div:first-child{margin-bottom:4px}
 .workspace .challenge-type-microgame .challenge-footer{padding-top:4px}
}
@media(max-width:600px) and (max-height:650px) and (orientation:portrait){
 .workspace.view-quiz #view{overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
 .workspace.view-quiz .challenge-type-microgame{height:auto;min-height:100%;overflow:visible}
 .workspace.view-quiz .challenge-type-microgame .challenge-body{flex:none;overflow:visible}
}
@media(max-width:370px) and (max-height:650px) and (orientation:portrait){
 .workspace .challenge-type-microgame .poem-goose-game{gap:8px}
 .workspace .challenge-type-microgame .goose-picture{width:min(100%,220px)}
 .workspace .challenge-type-microgame .goose-paint{flex-direction:row;min-height:48px;padding:8px 5px;gap:5px;font-size:20px}
 .workspace .challenge-type-microgame .goose-paint i{width:18px;height:18px}
}
/* Taller phones give the existing scene and controls more room, without
   adding instructions or forcing the compact layout onto short screens. */
@media(max-width:600px) and (min-height:760px) and (orientation:portrait){
 .workspace .challenge-type-microgame .challenge-body{display:flex;justify-content:safe center}
 .workspace .challenge-type-microgame .garden-picture{aspect-ratio:1.08;max-height:340px}
 .workspace .challenge-type-microgame .poem-garden{padding-block:10px}
 .workspace .challenge-type-microgame .farewell-story{gap:18px}
 .workspace .challenge-type-microgame .fs-stage{aspect-ratio:4/3}
}
/* 跳過 is a small text link in the bottom-right corner of every question: it shares the action row (after 放好了), never gets a centred row of its own. */
.workspace .challenge-shell .challenge-footer .challenge-footer-actions{flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;margin-left:auto;margin-right:0}
.workspace .challenge-shell .challenge-footer .challenge-footer-actions>[data-ch=skip]{order:2;flex:none;font-size:15px!important;line-height:1.2;min-height:36px;min-width:44px;padding:4px 2px 4px 8px;margin:0}
@media(max-width:700px){.workspace .challenge-shell .challenge-footer .challenge-footer-actions>[data-ch=skip]{font-size:14px!important}}

/* student-ui.css */
/* Keep ordinary Chinese text in the same complete, variable-weight family. */
body{font-synthesis:none;text-rendering:optimizeLegibility}
.lesson-heading .poem-heading-audio{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;max-width:100%;min-height:40px;margin:0;padding:2px 4px 2px 0;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-align:left;vertical-align:middle;cursor:pointer;touch-action:manipulation;box-shadow:none}
.lesson-heading p .poem-heading-audio{min-height:36px}
.poem-heading-audio>span:first-child{min-width:0;overflow-wrap:anywhere}
.poem-heading-audio .heading-audio-symbol{position:relative;display:inline-flex;flex:0 0 18px;width:18px;height:18px;align-items:center;justify-content:center;color:#4f7c66}
.poem-heading-audio .heading-audio-symbol svg{width:18px;height:18px}
.poem-heading-audio[data-audio-state=loading] .heading-audio-symbol svg{visibility:hidden}
.poem-heading-audio[data-audio-state=loading] .heading-audio-symbol::after{content:"";position:absolute;inset:1px;border:2px solid #c6d8ca;border-top-color:#39745d;border-radius:50%;animation:heading-audio-spin .8s linear infinite}
.lesson-heading .poem-heading-audio[data-audio-state=playing]{background:#edf5e6;outline:2px solid #75a985;outline-offset:1px;box-shadow:none}
.lesson-heading .poem-heading-audio:focus-visible{outline:3px solid #277e76;outline-offset:2px}
.poem-heading-audio:disabled{cursor:default;opacity:.55}
@keyframes heading-audio-spin{to{transform:rotate(360deg)}}
.library-heading h1{font-family:var(--sans);font-size:clamp(32px,4.2vw,52px);font-weight:700;line-height:1.3;letter-spacing:0;text-wrap:balance}
.workspace .lesson-map-step h3{font-weight:600;line-height:1.45}
.workspace .lesson-map-status{color:#476450;font-weight:400}
.challenge-instruction,.challenge-prompt,.gr-instruction p,.rj-task,.rj-verse,.rc-instruction,.rc-task{font-family:var(--sans);font-synthesis:none}
.school-login-heading{display:flex;align-items:center;gap:20px;margin-bottom:18px}
.school-login-mascot{display:block;flex:none;width:112px;height:162px;padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation;border-radius:16px}
.school-login-sprite{display:block;position:relative;width:100%;height:100%;pointer-events:none}
.school-login-sprite>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.school-login-heading>div{min-width:0}
/* School badge, the partnership line and the platform name stack to the right of 詩詩. */
.school-login-brand{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:-14px}
.school-login-badge{display:block;width:auto;height:84px}
.school-login .school-login-partners{margin:6px 0 8px;font:400 16px/1.45 var(--sans);color:#5d655f;letter-spacing:.04em}
.school-login-partners span{white-space:nowrap}
/* The taller heading still leaves the login button in view on a 768px-high laptop. */
@media(min-width:481px) and (max-height:860px){main.school-login{padding-block:20px}}
.school-login .school-login-eyebrow{font:400 17px/1.5 var(--sans);color:#4e6857;letter-spacing:0}
.school-login #school-login-title{font-family:'Noto Serif HK','Songti TC','PMingLiU',serif;font-size:clamp(29px,calc(8.6vw - 12px),48px);font-weight:700;line-height:1.35;margin:2px 0 0;color:#2d5c4d;text-wrap:balance}
.school-login .school-login-card{width:min(100%,640px)}
.school-login label{font-weight:600;color:#234c41}
.school-login input{font-weight:400}
.school-login input::placeholder{color:#64756b;opacity:1;font-weight:400}
.school-login .school-login-help{font-size:16px;color:#526858}
@media(max-width:480px){.school-login-heading{gap:12px;margin-bottom:12px}.school-login-mascot{width:76px;height:112px}.school-login .school-login-eyebrow{font-size:16px}.school-login #school-login-title{font-size:32px}.library-heading h1{font-size:32px}.workspace .lesson-map-step h3{font-size:23px}.workspace .lesson-map-lower .lesson-map-step h3{font-size:24px}}
@media(max-width:360px){.school-login-heading{gap:8px}.school-login-mascot{width:65px;height:100px}.school-login #school-login-title{font-size:29px}.workspace .lesson-map-step h3{font-size:21px}}

/* Account actions stay separate from the learning archive. */
.account-dialog{width:min(380px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:20px}
.account-dialog .dialog-heading{margin-bottom:22px;gap:16px}
.account-dialog h2{font:600 24px/1.4 var(--sans);overflow-wrap:anywhere}
.account-dialog #account-logout{display:flex;width:100%;min-height:52px;font-size:20px}
.profile-dialog #school-record-sync{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:16px}

/* Score colours: the same three bands wherever a pupil sees a score. Green is 80
   and above, yellow 60 to 79 and red below 60 (each word's status in core.mjs;
   a clearly wrong tone also shows yellow). Text keeps WCAG AA contrast on its
   tint, and the score chips also differ in lightness (white / amber / solid
   red), so the bands do not rest on hue alone. */
.workspace{--score-ok:#15803d;--score-ok-soft:#dcfce7;--score-ok-wash:#f0fdf4;--score-ok-line:#22c55e;--score-ok-pale:#bbf7d0;--score-warn:#a16207;--score-warn-ink:#854d0e;--score-warn-soft:#fef3c7;--score-warn-wash:#fffbeb;--score-warn-line:#f59e0b;--score-warn-pale:#fde68a;--score-error:#b91c1c;--score-error-soft:#fee2e2;--score-error-wash:#fef2f2;--score-error-line:#ef4444;--score-error-pale:#fecaca}
.workspace :is(.word-result,.score-ring,.record-result,.score-chip,.score-legend li){--band:var(--score-ok);--band-ink:var(--score-ok);--band-soft:var(--score-ok-soft);--band-wash:var(--score-ok-wash);--band-line:var(--score-ok-line);--band-pale:var(--score-ok-pale)}
.workspace :is(.word-result,.score-ring,.record-result,.score-chip,.score-legend li):is(.warn,.fair){--band:var(--score-warn);--band-ink:var(--score-warn-ink);--band-soft:var(--score-warn-soft);--band-wash:var(--score-warn-wash);--band-line:var(--score-warn-line);--band-pale:var(--score-warn-pale)}
.workspace :is(.word-result,.score-ring,.record-result,.score-chip,.score-legend li):is(.error,.poor){--band:var(--score-error);--band-ink:var(--score-error);--band-soft:var(--score-error-soft);--band-wash:var(--score-error-wash);--band-line:var(--score-error-line);--band-pale:var(--score-error-pale)}
.workspace :is(.word-result,.score-ring,.record-result,.score-chip).unknown{--band:#57534e;--band-ink:#57534e;--band-soft:#f5f5f4;--band-wash:#fafaf9;--band-line:#a8a29e;--band-pale:#e7e5e4}
/* The sentence score after reading is a badge in its band, and the score above
   the practice words a small chip; no box grows, so nothing moves. */
.workspace.view-record .record-feedback .record-result{padding:0 .34em;border-radius:999px;background:linear-gradient(180deg,var(--band-wash),var(--band-soft));color:var(--band);box-shadow:inset 0 0 0 2px var(--band-line),0 8px 22px #2f4a3a14}
.workspace.view-record .record-feedback .record-result small{color:var(--band-ink)}
.workspace.view-record .record-word-heading .score-chip{padding:.06em .5em;border-radius:999px;background:#fff;color:var(--band);box-shadow:inset 0 0 0 1.5px var(--band-line);font-weight:700;font-variant-numeric:tabular-nums}
.workspace.view-record .record-word-heading .score-chip:is(.warn,.fair){background:var(--band-pale);color:var(--band-ink)}
.workspace.view-record .record-word-heading .score-chip:is(.error,.poor){background:var(--band);color:#fff;box-shadow:none}

/* One score and one selected verse fill the available learning space. */
.workspace.view-report .study-main{width:100%;max-width:1380px}
.workspace.view-report #view{display:grid;grid-template-columns:clamp(160px,17vw,220px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;align-items:stretch;gap:20px 24px;overflow:auto;min-height:0;padding:12px 6px 4px;scrollbar-width:thin;overscroll-behavior:contain}
.workspace.view-report .report-summary{display:flex;align-items:center;justify-content:center;min-width:0;margin:0;padding:20px 8px;border:1px solid #dce5d7;border-radius:28px;background:linear-gradient(160deg,#f2f7ec,#faf9ef);position:relative}
.workspace.view-report .score-ring{display:grid;width:clamp(136px,14vw,178px);height:auto;aspect-ratio:1;min-width:0;place-items:center;border:3px solid var(--band-line);outline:1px solid var(--band-pale);outline-offset:6px;border-radius:50%;padding:12px;background:radial-gradient(circle at 50% 36%,#fff 0 50%,var(--band-wash) 100%);color:var(--band);font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 6px var(--band-soft),0 12px 28px #2f4a3a1c}
.workspace.view-report .score-ring>div{min-width:0;max-width:100%;text-align:center}
.workspace.view-report .score-ring strong{display:block;font:700 clamp(42px,4.3vw,60px)/1.15 var(--sans);letter-spacing:-1px;white-space:nowrap}
.workspace.view-report .score-ring span{display:block;margin-top:8px;font:400 clamp(18px,1.8vw,24px)/1.4 var(--sans);white-space:nowrap}
/* A one-glance key to the three colours under the score, out of flow so the
   score keeps its place. */
.workspace.view-report .score-legend{position:absolute;left:8px;right:8px;top:calc(50% + clamp(68px,7vw,89px) + 30px);display:grid;justify-content:center;gap:8px;margin:0;padding:0;list-style:none;font:600 16px/1.35 var(--sans);color:#4f5d48;pointer-events:none}
.workspace.view-report .score-legend li{display:flex;align-items:center;gap:8px;white-space:nowrap}
.workspace.view-report .score-legend i{flex:none;width:26px;height:16px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 2px var(--band-line)}
.workspace.view-report .score-legend .warn i{background:var(--band-pale)}
.workspace.view-report .score-legend .error i{background:var(--band);box-shadow:none}
.workspace.view-report .word-analysis{min-width:0;min-height:0;display:flex;flex-direction:column;gap:18px}
.workspace.view-report .score-line-tabs{display:flex;flex-wrap:wrap;gap:10px;overflow:visible;padding:0;flex:none}
.workspace.view-report .score-line-tabs button{flex:1;min-width:0;width:auto;height:auto;min-height:56px;padding:10px 14px;font-size:clamp(20px,2.2vw,27px);border-radius:15px;white-space:nowrap;line-height:1.35;background:#fffdf8;border:1px solid #d8e1d2;box-shadow:none}
.workspace.view-report .score-line-tabs button[aria-pressed=true]{background:#e7efdf;border-color:#789c75;color:#315d48;box-shadow:inset 0 -3px #6c956f}
.workspace.view-report .report-line{display:flex;flex:1;flex-direction:column;min-height:0;gap:18px;padding:0;border:0}
.workspace.view-report .report-sentence{display:flex;flex:1;align-items:stretch;position:relative;width:100%;min-height:190px;padding:clamp(14px,2vw,24px);border:1px solid #d5dfcb;border-radius:26px;background:linear-gradient(145deg,#fffef9,#f6f8ef);color:var(--ink);text-align:center;touch-action:manipulation;box-shadow:0 8px 24px #3a664608}
/* Two tracks per word, so a shorter clause row sits centred under a longer one. */
.workspace.view-report .word-analysis .word-grid{display:grid;flex:1;grid-template-columns:repeat(var(--report-tracks,10),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);--word-gap:clamp(7px,1vw,14px);gap:var(--word-gap) 0;overflow:visible;padding:0;width:100%;min-width:0;--ruby-size:clamp(36px,4.7vw,64px);--rt-size:clamp(17px,1.95vw,25px);--chip-size:clamp(23px,2.5vw,32px)}
.workspace.view-report .word-analysis .word-result{display:flex;flex-direction:column;align-items:center;justify-content:center;grid-column:span 2;width:auto;min-width:0;max-width:none;min-height:0;margin:0 calc(var(--word-gap) / 2);padding:20px 4px;border-radius:18px;border:1px solid var(--band-pale);border-bottom:3px solid var(--band-line);background:linear-gradient(180deg,var(--band-wash),var(--band-soft));box-shadow:inset 0 -2px 0 var(--band-line),0 4px 12px #2f4a3a0f;gap:10px}
.workspace.view-report .word-analysis .word-result ruby{font-size:var(--ruby-size);line-height:1.55}
.workspace.view-report .word-analysis .word-result rt{font:400 var(--rt-size)/1.3 var(--sans);color:#526b59}
/* In a narrow card the chip's side padding gives way first, so a two-character 未測 stays inside. */
.workspace.view-report .word-analysis .word-result strong{font:700 var(--chip-size)/1.4 var(--sans);text-align:center;margin:0;white-space:nowrap;min-width:2.3em;padding:0 clamp(0px,calc((100% - 2em) / 2),.42em);border-radius:999px;background:#fff;color:var(--band);box-shadow:inset 0 0 0 2px var(--band-line);font-variant-numeric:tabular-nums}
.workspace.view-report .word-analysis .word-result:is(.warn,.fair) strong{background:var(--band-pale);color:var(--band-ink)}
.workspace.view-report .word-analysis .word-result:is(.error,.poor) strong{background:var(--band);color:#fff;box-shadow:0 2px 6px #b91c1c3d}
.workspace.view-report .word-analysis .word-result.unknown strong{background:var(--band-soft);color:var(--band);box-shadow:inset 0 0 0 2px var(--band-pale)}
.workspace.view-report .word-analysis button.word-result{cursor:pointer;appearance:none;color:inherit;font:inherit;text-align:center;touch-action:manipulation}
.workspace.view-report .word-analysis button.word-result:focus-visible{outline:3px solid #397962;outline-offset:3px}
.workspace.view-report .word-analysis button.word-result[aria-pressed="true"]{box-shadow:inset 0 0 0 3px #397962,inset 0 -2px 0 var(--band-line)}
.workspace.view-report .report-line-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;justify-content:center;gap:12px;flex:none;margin:0}
.workspace.view-report .report-line-actions .button{margin:0;min-height:62px;padding:12px 10px;font-size:clamp(19px,2vw,25px);justify-content:center;border-radius:16px;white-space:nowrap}
.workspace.view-report .report-line-actions .button svg{width:25px;height:25px}
.workspace.view-report .report-next{grid-column:1/-1;display:flex;justify-content:flex-end;padding:0}
.workspace.view-report .report-animation-next{width:min(100%,420px);min-height:68px;border-radius:18px;padding:14px 24px;font-size:26px;gap:14px}
.workspace.view-report .report-animation-next svg{width:28px;height:28px}
.workspace.view-report .report-animation-next svg:last-child{margin-left:auto}
.workspace.view-report .report-empty{grid-column:1/-1;align-self:center}
@media(max-width:700px){
 .workspace.view-report #view{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:8px 2px 4px}
 .workspace.view-report .report-summary{flex:none;align-self:center;border:0;padding:4px;background:none}
 .workspace.view-report .score-ring{width:112px;padding:8px;outline-offset:4px}
 .workspace.view-report .score-ring strong{font-size:36px}
 .workspace.view-report .score-ring span{font-size:17px;margin-top:4px}
 .workspace.view-report .score-legend{left:calc(100% + 14px);right:auto;top:50%;transform:translateY(-50%);gap:6px;font-size:15px}
 .workspace.view-report .word-analysis{flex:1;min-height:auto;gap:12px}
 .workspace.view-report .score-line-tabs{gap:6px}
 .workspace.view-report .score-line-tabs button{min-height:48px;padding:8px 4px;font-size:18px;border-radius:12px}
 .workspace.view-report .report-line{gap:12px;min-height:auto}
 .workspace.view-report .report-sentence{min-height:146px;padding:12px 8px;border-radius:20px}
 .workspace.view-report .word-analysis .word-grid{--word-gap:6px;--ruby-size:34px;--rt-size:17px;--chip-size:22px}
 .workspace.view-report .word-analysis .word-result{min-height:118px;padding:12px 2px;border-radius:12px;gap:2px}
 .workspace.view-report .word-analysis .word-result ruby{line-height:1.5}
 .workspace.view-report .report-line-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .workspace.view-report .report-line-actions .button{min-height:50px;padding:9px 8px;font-size:18px;gap:7px;border-radius:13px}
 .workspace.view-report .report-line-actions .button svg{width:22px;height:22px}
 .workspace.view-report .report-line-actions .report-reread{grid-column:1/-1;justify-self:center;width:min(100%,260px)}
 .workspace.view-report .report-next{flex:none;margin-top:auto;padding-top:2px}
 .workspace.view-report .report-animation-next{width:100%;min-height:58px;font-size:22px;padding:11px 20px;border-radius:15px}
}
/* A narrow phone gives the cards of a seven-character clause every spare pixel. */
@media(max-width:520px){
 .workspace.view-report .report-sentence{padding:12px 4px}
 .workspace.view-report .word-analysis .word-grid{--word-gap:4px}
}
@media(max-width:350px){
 .workspace.view-report .score-legend{display:none}
}
@media(max-width:360px){
 .workspace.view-report .score-line-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:701px) and (max-height:680px){
 .workspace.view-report #view{grid-template-columns:144px minmax(0,1fr);gap:12px 18px;padding-top:4px}
 .workspace.view-report .score-ring{width:122px;padding:8px}
 .workspace.view-report .score-ring strong{font-size:40px}
 .workspace.view-report .score-ring span{font-size:17px}
 .workspace.view-report .score-legend{top:calc(50% + 61px + 22px);gap:5px;font-size:15px}
 .workspace.view-report .word-analysis,.workspace.view-report .report-line{gap:10px}
 .workspace.view-report .score-line-tabs button{min-height:46px;font-size:20px;padding:7px 10px}
 .workspace.view-report .report-sentence{min-height:0;padding:12px}
 .workspace.view-report .word-analysis .word-grid{--ruby-size:36px;--rt-size:17px;--chip-size:22px}
 .workspace.view-report .word-analysis .word-result{padding:8px 2px;border-radius:12px;gap:0}
 .workspace.view-report .word-analysis .word-result ruby{line-height:1.45}
 .workspace.view-report .report-line-actions .button{min-height:48px;font-size:19px;padding:8px}
 .workspace.view-report .report-animation-next{min-height:52px;font-size:22px;padding:9px 20px}
}
@media(min-width:701px) and (max-height:450px){
 .workspace.view-report #view{overflow:auto;grid-template-rows:minmax(178px,1fr) auto;gap:8px 14px}
 .workspace.view-report .report-summary{padding:10px 6px}
 .workspace.view-report .score-legend{display:none}
 .workspace.view-report .report-line-actions .button{min-height:44px;font-size:17px;padding:6px}
 .workspace.view-report .score-line-tabs button{min-height:44px;font-size:18px}
 .workspace.view-report .word-analysis .word-grid{--ruby-size:30px;--rt-size:16px;--chip-size:18px}
}
/* Each clause stays on one row: in a narrow card the character, pinyin and score
   shrink with the card instead of wrapping onto a second row. */
@supports (width:1cqi){
 .workspace.view-report .word-analysis .word-grid{container-type:inline-size}
 .workspace.view-report .word-analysis .word-result{--cell:calc(100cqi / var(--report-columns,5) - var(--word-gap) - 4px)}
 .workspace.view-report .word-analysis .word-result ruby{font-size:min(var(--ruby-size),calc(var(--cell) * .74))}
 .workspace.view-report .word-analysis .word-result rt{font-size:min(var(--rt-size),calc(var(--cell) / var(--pinyin-chars,5) / .56))}
 .workspace.view-report .word-analysis .word-result strong{font-size:min(var(--chip-size),calc(var(--cell) / 2.4))}
}

/* Scores arrive with a short pop; still for pupils who reduce motion. */
@keyframes score-pop{from{opacity:0;transform:scale(.86)}}
@media(prefers-reduced-motion:no-preference){
 .workspace.view-report .score-ring>div,.workspace.view-report .word-analysis .word-result strong,.workspace.view-record .record-feedback .record-result,.workspace.view-record .record-word-heading .score-chip{animation:score-pop .3s cubic-bezier(.2,.8,.2,1) both}
}

.workspace .challenge-shell .challenge-writing .cw-status{font-size:18px;line-height:1.5}

/* Pinyin needs its own space: a syllable wider than the character must not touch
   the next syllable. Keep the whole sentence's existing read action. */
.workspace.view-record .record-tool>.verse ruby{flex:0 0 auto;min-width:0;padding-inline:3px}
/* Paired five-character verses share equal columns. Intrinsic pinyin widths
   must not shift each row's characters independently. */
.workspace.view-record .record-tool>.verse.verse-compound>.verse-clause:has(>ruby:nth-of-type(5)):not(:has(>ruby:nth-of-type(6))){display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 18px;align-items:end;width:100%;max-width:360px}
.workspace.view-record .record-tool>.verse.verse-compound>.verse-clause:has(>ruby:nth-of-type(5)):not(:has(>ruby:nth-of-type(6)))>ruby{width:100%;min-width:0;box-sizing:border-box;text-align:center}
.workspace.view-record .record-tool>.verse.verse-compound>.verse-clause:has(>ruby:nth-of-type(5)):not(:has(>ruby:nth-of-type(6)))>.punct{width:18px}
/* Seven-character paired clauses (客至): equal columns so pinyin width cannot shift them. */
.workspace.view-record .record-tool>.verse.verse-compound>.verse-clause:has(>ruby:nth-of-type(7)){display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) auto;align-items:end;width:100%}
.workspace.view-record .record-tool>.verse.verse-compound>.verse-clause:has(>ruby:nth-of-type(7))>ruby{width:100%;min-width:0;box-sizing:border-box;text-align:center;padding-inline:0}
@media(max-width:360px){
 .workspace.view-record .record-counter:has([data-action="record-feedback"]):has(.extension-entry){grid-template-columns:minmax(0,1fr) auto;gap:0 8px}
 .workspace.view-record .record-counter:has([data-action="record-feedback"])>.extension-entry{grid-column:2;grid-row:1}
 .workspace.view-record .record-counter:has(.extension-entry)>[data-action="record-feedback"]{grid-column:1/-1;grid-row:2;justify-self:center;min-height:44px}
 .workspace.view-record .record-tool>.verse:has(>ruby:nth-of-type(7)){display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px 0;width:100%;max-width:300px;margin-inline:auto}
 .workspace.view-record .record-tool>.verse:has(>ruby:nth-of-type(7))>ruby{grid-column:span 2;min-width:0;padding-inline:0}
 .workspace.view-record .record-tool>.verse:has(>ruby:nth-of-type(7))>ruby:nth-of-type(5){grid-column:2/span 2}
 .workspace.view-record .record-tool>.verse:has(>ruby:nth-of-type(7))>.punct{grid-column:8;grid-row:2;justify-self:start;width:auto}
}

/* The sentence being recorded is the task's primary reading surface. Equal
   character cells keep pinyin from shifting paired five-character lines. */
.workspace.view-record .record-tool[data-step="read"]>.verse{font-size:48px;line-height:1.45;min-height:90px;margin-block:12px 18px}
.workspace.view-record .record-tool[data-step="read"]>.verse ruby{font-size:48px;line-height:1.45;min-width:0;padding-inline:0;text-align:center}
.workspace.view-record .record-tool[data-step="read"]>.verse rt{font-size:18px;line-height:1.3;letter-spacing:0}
/* A full-width mark draws inside half its advance: -.5em spacing keeps a half
   cell, the indent moves the ink into it (「 sits right, 」 left, ，。centred). */
.workspace.view-record .record-tool[data-step="read"]>.verse .punct{font-size:44px;line-height:1.45;width:.5em;letter-spacing:-.5em;text-indent:-.25em;text-align:left}
.workspace.view-record .record-tool[data-step="read"]>.verse .punct.open{width:.54em;padding-right:.04em;text-indent:-.5em}
.workspace.view-record .record-tool[data-step="read"]>.verse .punct.close{width:.54em;padding-left:.04em;text-indent:0}
/* Single seven-character lines: a long syllable (chuāng) widens its own column. */
.workspace.view-record .record-tool[data-step="read"]>.verse:has(>ruby:nth-of-type(7)){display:grid;grid-template-columns:repeat(7,minmax(min-content,1fr)) 22px;align-items:end;width:100%;max-width:500px;margin-inline:auto;gap:0}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-compound{gap:8px;min-height:166px}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-compound>.verse-clause{width:100%;max-width:420px}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-compound>.verse-clause:has(>ruby:nth-of-type(5)):not(:has(>ruby:nth-of-type(6))){grid-template-columns:repeat(5,minmax(0,1fr)) 22px;max-width:420px}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-compound>.verse-clause>.punct{width:22px}
@media(max-width:700px){
 .workspace.view-record .record-tool[data-step="read"]>.verse{min-height:80px;margin-block:8px 14px}
 .workspace.view-record .record-tool[data-step="read"]>.verse ruby{font-size:40px;line-height:1.45}
 .workspace.view-record .record-tool[data-step="read"]>.verse rt{font-size:16px;line-height:1.3}
 .workspace.view-record .record-tool[data-step="read"]>.verse .punct{font-size:36px;width:18px}
 .workspace.view-record .record-tool[data-step="read"]>.verse:has(>ruby:nth-of-type(7)){grid-template-columns:repeat(7,minmax(min-content,1fr)) 18px;max-width:420px}
 .workspace.view-record .record-tool[data-step="read"]>.verse.verse-compound{min-height:142px;gap:6px}
 .workspace.view-record .record-tool[data-step="read"]>.verse.verse-compound>.verse-clause:has(>ruby:nth-of-type(5)):not(:has(>ruby:nth-of-type(6))){grid-template-columns:repeat(5,minmax(0,1fr)) 18px;max-width:360px}
 .workspace.view-record .record-tool[data-step="read"]>.verse.verse-compound>.verse-clause>.punct{width:18px}
}
@media(max-width:360px){
 .workspace.view-record .record-tool[data-step="read"]>.verse ruby{font-size:36px}
 .workspace.view-record .record-tool[data-step="read"]>.verse:has(>ruby:nth-of-type(7)){grid-template-columns:repeat(8,minmax(0,1fr));gap:5px 0;max-width:300px}
}
/* Prose sentences (鄭人買履) wrap between clauses like a paragraph; app.js sets
   --fit (row width in em) so the characters shrink until it takes two rows. */
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose{--prose-max:42px;container-type:inline-size;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;align-items:flex-end;width:100%;max-width:none;gap:6px 0;font-size:16px}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose>.verse-clause{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;max-width:100%}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose .verse-unit{display:flex;align-items:flex-end}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose :is(ruby,.punct){font-size:min(var(--prose-max),calc((100vw - 48px) / var(--fit)));line-height:1.3}
@supports(width:1cqi){.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose :is(ruby,.punct){font-size:min(var(--prose-max),calc(100cqi / var(--fit)))}}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose ruby{padding-inline:.04em}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose rt{font-size:max(12px,.42em);line-height:1.25}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose .punct:not(.open,.close){width:.6em;text-indent:-.2em}
.workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose .punct:is(.open,.close){width:.54em}
@media(min-width:701px) and (max-height:560px) and (orientation:landscape){
 .workspace.view-record .record-tool[data-step="read"]>.record-counter{min-height:32px}
 .workspace.view-record .record-tool[data-step="read"] .practice-motif{width:30px;height:30px}
 .workspace.view-record .record-tool[data-step="read"]>.verse{min-height:64px;margin-block:0 4px}
 .workspace.view-record .record-tool[data-step="read"]>.verse ruby{font-size:36px;line-height:1.15}
 .workspace.view-record .record-tool[data-step="read"]>.verse rt{font-size:16px}
 .workspace.view-record .record-tool[data-step="read"]>.verse .punct{font-size:34px;line-height:1.15}
 .workspace.view-record .record-tool[data-step="read"]>.verse.verse-compound{min-height:126px;gap:4px}
 .workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose{--prose-max:34px;gap:2px 0}
 .workspace.view-record .record-tool[data-step="read"]>.verse.verse-prose :is(ruby,.punct){line-height:1.15}
 .workspace.view-record .record-tool[data-step="read"]>.record-model{margin-bottom:4px}
 .workspace.view-record .record-tool[data-step="read"] #record-controls,
 .workspace.view-record .record-tool[data-step="read"] .record-actions{min-height:58px}
}

/* access-ui.css */
.header-right{display:flex;align-items:center;gap:12px}
.teacher-entry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid #c8d8c5;border-radius:12px;background:#f7faee;color:#315b43;font:600 17px/1.35 var(--sans);text-decoration:none;white-space:nowrap}
.teacher-entry:focus-visible{outline:3px solid #377460;outline-offset:3px}
.library-books:has(>.poem-card:only-child){grid-template-columns:minmax(0,560px);justify-content:center}
@media(max-width:700px){.lesson-tools:has(.teacher-entry){gap:6px}.lesson-tools .teacher-entry{font-size:15px;padding:7px 9px}.lesson-bar:has(.teacher-entry) .lesson-heading h1{font-size:20px}.lesson-bar:has(.teacher-entry) .lesson-portrait{display:none}.header-right{gap:8px}}
/* A teacher has one more action than a pupil. Give the title its own row
   before the controls can squeeze a long poem name into a vertical column. */
@media(max-width:520px){
 .workspace .lesson-bar:has(.teacher-entry){grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto 76px;min-height:0;gap:4px 8px;padding-block:8px}
 .workspace .lesson-bar:has(.teacher-entry)>.lesson-title{grid-column:2/-1;grid-row:1}
 .workspace .lesson-bar:has(.teacher-entry)>.shishi-touch-slot{grid-column:1/3;grid-row:2;justify-self:end}
 .workspace .lesson-bar:has(.teacher-entry)>.lesson-tools{grid-column:3;grid-row:2}
 .workspace .lesson-bar:has(.teacher-entry) .lesson-heading h1{font-size:23px;line-height:1.3;text-wrap:initial}
 .workspace .lesson-bar:has(.teacher-entry) .lesson-title p{overflow-wrap:normal}
 .workspace .lesson-bar:has(.teacher-entry) .shishi-touch-slot{--shishi-width:52px;--shishi-height:72px;width:110px;height:76px}
 .workspace .lesson-bar:has(.teacher-entry) .shishi-guide-button{flex-direction:row;justify-content:flex-start;gap:4px}
 .workspace .lesson-bar:has(.teacher-entry) .shishi-guide-art{order:0}
 .workspace .lesson-bar:has(.teacher-entry) .shishi-poet-label{order:1}
}
@media(max-width:360px){
 .workspace .lesson-bar:has(.shishi-touch-slot){grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto 76px;min-height:0;gap:4px 8px;padding-block:8px}
 .workspace .lesson-bar>.lesson-title{grid-column:2/-1;grid-row:1}
 .workspace .lesson-bar>.shishi-touch-slot{grid-column:1/3;grid-row:2;justify-self:end}
 .workspace .lesson-bar>.lesson-tools{grid-column:3;grid-row:2}
 .workspace .lesson-title h1{font-size:23px;line-height:1.3;text-wrap:initial}
 .workspace .lesson-title p{overflow-wrap:normal}
 .workspace .shishi-touch-slot{--shishi-width:52px;--shishi-height:72px;width:110px;height:76px}
 .workspace .shishi-touch-slot .shishi-guide-button{flex-direction:row;justify-content:flex-start;gap:4px}
 .workspace .shishi-touch-slot .shishi-guide-art{order:0}
 .workspace .shishi-touch-slot .shishi-poet-label{order:1}
 /* The reading task needs room for its microphone on a narrow phone. Keep
    pupil navigation, title and mascot in one compact header row. */
 .workspace.view-record .lesson-bar:has(.shishi-touch-slot):not(:has(.teacher-entry)){grid-template-columns:48px minmax(0,1fr) 46px 44px;grid-template-rows:auto;gap:4px;padding-block:4px;margin-bottom:6px}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry))>.lesson-title{grid-column:2;grid-row:1}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry))>.shishi-touch-slot{grid-column:3;grid-row:1;justify-self:center;--shishi-width:44px;--shishi-height:60px;width:46px;height:80px}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry))>.lesson-tools{grid-column:4;grid-row:1}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry)) .lesson-title h1{font-size:22px;line-height:1.25}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry)) .poem-heading-audio{gap:3px;padding-right:0}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry)) h1 .poem-heading-audio>span:first-child{text-wrap:balance}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry)) .shishi-guide-button{flex-direction:column;justify-content:center;gap:0}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry)) .shishi-poet-label{font-size:14px;line-height:20px}
 .workspace.view-record .lesson-bar:not(:has(.teacher-entry)) .lesson-menu>summary{width:44px;height:48px}
 .workspace.view-record #view{padding-bottom:8px;scroll-padding-bottom:8px}
}
/* The login title is one complete name, including on a 320px phone. Keep the
   mascot and school badge beside it without allowing the later auth stylesheet to wrap it. */
.school-login .school-login-heading #school-login-title{white-space:nowrap;text-wrap:nowrap;letter-spacing:0}
@media(max-width:480px){
 .school-login .school-login-heading{gap:8px}
 .school-login .school-login-heading .school-login-mascot{width:clamp(52px,17vw,76px);height:clamp(78px,25vw,112px)}
 .school-login .school-login-heading .school-login-badge{height:clamp(46px,14vw,62px)}
 .school-login .school-login-heading .school-login-brand{margin-top:-6px}
 .school-login .school-login-heading .school-login-partners{margin-top:4px;margin-bottom:5px;font-size:clamp(12px,3.4vw,14px);letter-spacing:.02em}
 .school-login .school-login-heading #school-login-title{font-size:clamp(21px,calc(9.6vw - 9.2px),34px);line-height:1.35}
}

/* tablet-layout.css */
/* Give landscape tablets the space below a compact lesson bar. The game
   layouts that follow this file keep their own scene/control proportions. */
/* Book covers retain their complete composition even when browser toolbars
   reduce the viewport height. The page can grow instead of cropping artwork. */
.library:not(.credits-page){height:auto;min-height:calc(100dvh - 64px);padding-bottom:calc(32px + env(safe-area-inset-bottom))}
.library .library-books{flex:none;grid-template-rows:none;grid-auto-rows:auto;align-items:start;padding-bottom:18px}
.library .poem-entry{height:100%;min-height:0}
.library .poem-art{flex:none;height:auto;min-height:0;aspect-ratio:16/9;background-size:contain;background-repeat:no-repeat}
.library .poem-art>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform:none}
.library .poem-card-body{flex:none}
.library .library-footer{margin-top:8px;padding-bottom:8px}
.chat-response{display:flex;flex-direction:column;align-items:flex-start;max-width:90%;min-width:0}
.chat-response .chat-bubble{max-width:100%;width:auto}
.chat-message.user .chat-response{align-items:flex-end}
.chat-response .chat-reply-audio{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;width:44px;min-width:44px;height:36px;min-height:36px;margin:3px 0 0;padding:6px 10px;border:0;background:transparent;box-shadow:none;color:#537969}
.chat-response .chat-reply-audio svg{width:19px;height:19px}
@media (min-width:701px) and (max-width:1400px) and (min-height:560px) and (orientation:landscape){
 .workspace.lesson-shell:not(.view-quiz){padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right));padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .workspace.lesson-shell:not(.view-quiz) .lesson-bar:has(.shishi-touch-slot){grid-template-columns:auto minmax(0,1fr) 100px auto;min-height:86px;padding-block:3px;margin-bottom:8px;gap:14px}
 .workspace.lesson-shell:not(.view-quiz) .shishi-touch-slot{--shishi-width:56px;--shishi-height:74px;width:100px;height:78px;flex-basis:100px}
 .workspace.lesson-shell:not(.view-quiz) .shishi-touch-slot .shishi-guide-button{flex-direction:row;justify-content:center;gap:0}
 .workspace.lesson-shell:not(.view-quiz) .shishi-touch-slot .shishi-guide-art{width:56px;height:74px;order:0}
 .workspace.lesson-shell:not(.view-quiz) .shishi-touch-slot .shishi-poet-label{order:1;font-size:15px;line-height:20px}
 .workspace.lesson-shell:not(.view-quiz) .lesson-title h1{font-size:28px;line-height:1.3}
 .workspace.lesson-shell:not(.view-quiz) .lesson-title p{font-size:17px;line-height:1.4;margin-top:3px}
 .workspace.view-lesson .study-main{width:100%;max-width:1200px;min-height:0}
 .workspace.view-lesson #view{align-items:stretch;padding:12px 20px 0;min-height:0}
 .workspace.view-lesson .lesson-map{height:100%;max-width:none;min-height:0;gap:14px}
 .workspace.view-lesson .lesson-map-hero{min-height:44px;flex:none}
 .workspace.view-lesson .lesson-map-hero h2{font-size:27px}
 .workspace.view-lesson .lesson-map-steps{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:16px}
 .workspace.view-lesson .lesson-map-step{min-height:0;padding:18px 24px;justify-content:center}
 .workspace.view-lesson .lesson-map-step-top{margin-bottom:10px}
 .workspace.view-lesson .lesson-map-step h3{font-size:30px;line-height:1.4}
 .workspace.view-lesson .lesson-map-status{font-size:19px;margin-top:8px}
 .workspace.view-lesson .lesson-map-extras{flex:none;padding-top:6px;max-width:320px}
 .workspace.view-lesson .lesson-map-extras a{min-height:46px}
}
/* The observation card uses the same generous type and touch targets as the
   landscape games, while feedback can still flow if text is enlarged. */
@media (min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-explore #view .explore-card{padding:22px 26px;justify-content:center}
 .workspace.view-explore #view .explore-card-top{margin-bottom:12px}
 .workspace.view-explore #view .explore-step{font-size:20px}
 .workspace.view-explore #view .explore-dots{gap:8px}
 .workspace.view-explore #view .explore-dots i{width:9px;height:9px}
 .workspace.view-explore #view .explore-verse{margin-bottom:16px;padding-block:12px}
 .workspace.view-explore #view .explore-verse>p{font-size:29px;line-height:1.5}
 .workspace.view-explore #view .explore-word{min-width:76px;min-height:70px;gap:10px;padding:6px 10px;border-radius:14px}
 .workspace.view-explore #view .explore-word>span{font-size:29px}
 .workspace.view-explore #view .explore-word small{font-size:16px;line-height:1.4}
 .workspace.view-explore #view .explore-word svg{width:23px;height:23px}
 .workspace.view-explore #view .explore-question legend{font-size:26px;line-height:1.45;margin-bottom:14px}
 .workspace.view-explore #view .explore-answers{gap:14px}
 .workspace.view-explore #view .explore-answers button{font-size:24px;min-height:66px;gap:13px;padding:12px 16px;border-radius:15px;line-height:1.45}
 .workspace.view-explore #view .explore-answer-dot{width:24px;height:24px}
 .workspace.view-explore #view .explore-answer-dot svg{width:17px;height:17px}
 .workspace.view-explore #view .explore-feedback{font-size:21px;line-height:1.5;margin-top:16px}
 .workspace.view-explore #view .explore-next{font-size:24px!important;min-height:60px;margin-top:18px}
 .workspace.view-explore #view .explore-finish h3{font-size:30px}
 .workspace.view-explore #view .explore-finish p{font-size:23px;line-height:1.6}
 .workspace.view-explore #view .explore-again{font-size:23px;min-height:58px}
}
@media (min-width:701px) and (max-width:1400px) and (min-height:560px) and (max-height:680px) and (orientation:landscape){
 .workspace.view-lesson #view{padding-top:4px}
 .workspace.view-lesson .lesson-map{gap:8px}
 .workspace.view-lesson .lesson-map-steps{gap:12px}
 .workspace.view-lesson .lesson-map-step{padding:12px 20px}
 .workspace.view-lesson .lesson-map-step h3{font-size:26px}
 .workspace.view-lesson .lesson-map-step-top{margin-bottom:5px}
 .workspace.view-lesson .lesson-map-status{margin-top:5px}
}

@media (min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-explore #view .explore-layout{grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr);align-items:stretch;gap:28px}
 .workspace.view-explore #view .explore-card{justify-content:space-between;padding:24px 28px;gap:12px}
 .workspace.view-explore #view .explore-card-top{margin-bottom:0}
 .workspace.view-explore #view .explore-verse{margin:0;padding-block:14px}
 .workspace.view-explore #view .explore-verse>p{font-size:30px}
 .workspace.view-explore #view .explore-question{margin-block:auto}
 .workspace.view-explore #view .explore-question legend{font-size:28px}
 .workspace.view-explore #view .explore-answers button{font-size:26px;min-height:72px}
 .workspace.view-explore #view .explore-feedback{font-size:23px;margin-top:0}
 .workspace.view-explore #view .explore-next{font-size:26px!important;min-height:66px;margin-top:0}
 .workspace.view-explore #view .explore-finish{margin-block:auto}
 .workspace.view-explore #view .explore-finish-actions{margin-top:auto}
}

/* Browser toolbars leave many tablets less than 700 CSS pixels high. Keep
   their reading controls large as well; scale type before adding empty gaps. */
@media (min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-explore #view .explore-card{gap:10px;padding:18px 22px}
 .workspace.view-explore #view .explore-card h3{font-size:clamp(27px,3.5vh,35px);line-height:1.35;margin-bottom:8px}
 .workspace.view-explore #view .explore-verse>p{font-size:clamp(29px,3.8vh,38px);line-height:1.4}
 .workspace.view-explore #view .explore-word>span{font-size:clamp(30px,4vh,38px)}
 .workspace.view-explore #view .explore-question legend{font-size:clamp(26px,3.4vh,33px);line-height:1.4;margin-bottom:10px}
 .workspace.view-explore #view .explore-answers{gap:10px}
 .workspace.view-explore #view .explore-answers button{font-size:clamp(25px,3.3vh,32px);min-height:clamp(60px,9vh,90px);padding:10px 14px;line-height:1.35}
 .workspace.view-explore #view .explore-feedback{font-size:clamp(23px,3.1vh,30px);line-height:1.45}
 .workspace.view-explore #view .explore-next{font-size:clamp(25px,3.3vh,31px)!important;min-height:clamp(60px,8.5vh,84px)}
}

/* Carry the available activity height through the flex/grid chain. The older
   image layout used flex:none, leaving the bottom third of tall tablets empty. */
@media (min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-explore #view .explore{height:100%;min-height:0;padding-bottom:0;gap:0}
 .workspace.view-explore #view .explore-layout{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);padding-bottom:0;gap:20px}
 .workspace.view-explore #view .explore-visual{height:100%;min-height:0}
 .workspace.view-explore #view .explore-stage{height:auto;min-height:0;flex:1}
 .workspace.view-explore #view .explore-card{height:100%;min-height:0;justify-content:flex-start;gap:clamp(10px,1.7vh,18px);padding:clamp(14px,2.2vh,24px);container:explore-card / size}
 .workspace.view-explore #view .explore-card-top{flex:none}
 .workspace.view-explore #view .explore-verse{flex:none;padding-block:clamp(6px,1.5vh,16px)}
 .workspace.view-explore #view .explore-question{flex:1;min-height:0;display:flex;flex-direction:column;margin:0}
 .workspace.view-explore #view .explore-question legend{margin-bottom:clamp(10px,2vh,20px)}
 .workspace.view-explore #view .explore-answers{flex:1;grid-template-rows:repeat(2,minmax(58px,1fr));gap:clamp(10px,2vh,22px)}
 .workspace.view-explore #view .explore-answers button{height:100%;min-height:58px;font-size:clamp(25px,3.8vh,38px);padding:12px 18px}
 .workspace.view-explore #view .explore-answer-dot{width:clamp(26px,3.3vh,34px);height:clamp(26px,3.3vh,34px);flex:none}
 .workspace.view-explore #view .explore-feedback{flex:none;font-size:clamp(22px,3.1vh,30px);line-height:1.45}
 .workspace.view-explore #view .explore-next{flex:none}
 .workspace.view-explore #view .explore-finish{flex:1;display:flex;flex-direction:column;justify-content:center;margin:0}
 .workspace.view-explore #view .explore-finish p{font-size:clamp(25px,3.4vh,34px);line-height:1.6}
 .workspace.view-explore #view .explore-finish-mark{width:clamp(76px,12vh,124px);height:clamp(76px,12vh,124px)}
 .workspace.view-explore #view .explore-finish-actions{margin:0;gap:12px}
 .workspace.view-explore #view .explore-finish-actions button,.workspace.view-explore #view .explore-finish-actions a{font-size:clamp(24px,3.3vh,32px);min-height:clamp(58px,9vh,88px)}
 .workspace.view-explore #view .explore.is-expanded .explore-layout{display:flex}
 .workspace.view-explore #view .explore.is-expanded .explore-stage{height:auto;min-height:0;flex:1}
}
@media (min-width:900px) and (min-height:620px) and (max-height:740px) and (orientation:landscape){
 .workspace.view-explore #view .explore-card{padding:12px 16px;gap:8px}
 .workspace.view-explore #view .explore-verse{padding-block:4px;min-height:62px}
 .workspace.view-explore #view .explore-verse>p{font-size:27px;line-height:1.4}
 .workspace.view-explore #view .explore-question legend{font-size:25px;line-height:1.35;margin-bottom:8px}
 .workspace.view-explore #view .explore-word{min-width:66px;min-height:62px;padding:4px 7px}
 .workspace.view-explore #view .explore-word>span{font-size:29px}
 .workspace.view-explore #view .explore-feedback{font-size:22px;line-height:1.4}
 .workspace.view-explore #view .explore-next{min-height:54px;font-size:25px!important;padding-block:8px}
 .workspace.view-explore #view .explore-card:has(.explore-next:not(:disabled)) .explore-question{flex:none}
 .workspace.view-explore #view .explore-card:has(.explore-next:not(:disabled)) .explore-question legend,
 .workspace.view-explore #view .explore-card:has(.explore-next:not(:disabled)) .explore-answers button:not(.is-correct){display:none}
 .workspace.view-explore #view .explore-card:has(.explore-next:not(:disabled)) .explore-answers{grid-template-rows:auto}
 .workspace.view-explore #view .explore-card:has(.explore-next:not(:disabled)) .explore-answers button{min-height:54px;padding-block:8px;font-size:25px}
 .workspace.view-explore #view .explore-card:has(.explore-next:not(:disabled)) .explore-feedback{flex:1;display:flex;align-items:center}
}

/* tablet-games.css */
/* Tablets keep the play area and its controls together, using the space below
   the lesson bar rather than sizing a tall scene from the screen width. */
@media (min-width:701px){
 .workspace.view-quiz.lesson-shell{padding-inline:20px;padding-bottom:10px}
 .workspace.view-quiz .lesson-bar:has(.shishi-touch-slot){grid-template-columns:auto minmax(0,1fr) 94px auto;min-height:82px;padding-block:3px;margin-bottom:6px;gap:16px}
 .workspace.view-quiz .shishi-touch-slot{--shishi-width:54px;--shishi-height:70px;width:94px;height:74px;flex-basis:94px}
 .workspace.view-quiz .shishi-touch-slot .shishi-guide-button{flex-direction:row;justify-content:center;gap:0}
 .workspace.view-quiz .shishi-touch-slot .shishi-guide-art{width:54px;height:70px;order:0}
 .workspace.view-quiz .shishi-touch-slot .shishi-poet-label{order:1;font-size:15px;line-height:20px}
 .workspace.view-quiz .lesson-title h1{font-size:28px;line-height:1.25}
 .workspace.view-quiz .lesson-title p{font-size:17px;line-height:1.35;margin-top:4px}
 .workspace.view-quiz .study-main{width:100%;max-width:1440px;min-height:0}
 .workspace.view-quiz #view{overflow:auto;padding:0;min-height:0}
 .workspace.view-quiz .challenge-shell{padding:10px 18px 12px;border-radius:20px;overflow:visible}
 .workspace.view-quiz .challenge-header{max-width:none;margin-bottom:6px;padding:0 0 6px}
 .workspace.view-quiz .challenge-header>div:first-child{margin-bottom:7px}
 .workspace.view-quiz .challenge-header .challenge-eyebrow{font-size:18px;letter-spacing:0}
 .workspace.view-quiz .challenge-count{font-size:24px}
 .workspace.view-quiz .challenge-body{container:tablet-play / size;min-width:0;min-height:0;overflow:auto;justify-content:safe center}
 .workspace.view-quiz .challenge-game-holder{height:100%;display:grid;align-items:safe center;min-height:0}
 .workspace.view-quiz .challenge-type-microgame .challenge-body{display:flex}
 .workspace.view-quiz .challenge-footer{margin-top:8px;padding-top:8px;gap:10px 18px;min-height:54px;flex-wrap:nowrap}
 .workspace.view-quiz .challenge-footer-actions{width:auto;margin-inline:0;flex:none;gap:10px;padding:0}
 .workspace.view-quiz .challenge-footer .challenge-primary{min-height:48px;min-width:150px;font-size:21px;padding:9px 20px}
 .workspace.view-quiz .challenge-footer .challenge-feedback{font-size:18px;line-height:1.4;text-align:left}
 .workspace.view-quiz .challenge-footer .challenge-feedback p{margin:3px 0 0;line-height:1.4}
 .workspace.view-quiz .challenge-footer .challenge-feedback .challenge-text-button{display:inline-flex;min-height:40px;margin:0 0 0 12px;padding:3px 6px}
 .workspace.view-quiz .challenge-footer .challenge-feedback strong{font-size:20px}
 .workspace.view-quiz .challenge-shell .challenge-sound-layout{width:100%;max-width:1000px;gap:30px;padding:8px;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr)}
 .workspace.view-quiz .challenge-shell .challenge-sound-stage.is-walnut-market{width:min(100%,320px);max-height:100cqh;aspect-ratio:6/5}
 .workspace.view-quiz .challenge-shell .challenge-sound-work .challenge-prompt{font-size:28px;line-height:1.4}
 .workspace.view-quiz .challenge-shell .challenge-sound-work .challenge-audio-status{font-size:17px;min-height:0;margin-top:12px}
 .workspace.view-quiz .challenge-shell .challenge-shelves{gap:14px}
 .workspace.view-quiz .challenge-shell .challenge-shelf{min-height:90px}
 .workspace.view-quiz .challenge-writing-layout{min-height:0;max-width:1050px;margin:auto;width:100%;align-items:center}
 .workspace.view-quiz .challenge-writing .cw-board{width:min(100%,300px)}
 .workspace.view-quiz .challenge-writing button{font-size:19px;min-height:48px}
 .workspace.view-quiz .challenge-writing .cw-status{font-size:17px;line-height:1.4}
 .workspace.view-quiz .challenge-shell.challenge-results{padding:18px 28px;overflow:auto}
 .workspace.view-quiz .challenge-results-heading{margin-bottom:14px}
 .workspace.view-quiz .challenge-result-list{max-width:900px;margin-bottom:15px;gap:8px}
 .workspace.view-quiz .challenge-result-row{min-height:60px;padding:8px 14px}
 .workspace.view-quiz .challenge-results-actions{padding:0}
}

@media (min-width:701px) and (orientation:landscape){
 .workspace.view-quiz .challenge-game-holder>section{max-width:none;width:100%;margin:0;min-height:0;gap:10px 24px}
 .workspace.view-quiz .poem-goose-game{grid-template-columns:minmax(0,1.65fr) minmax(240px,.8fr);grid-template-rows:auto auto 1fr;align-content:center;align-items:center}
 .workspace.view-quiz .poem-goose-game .goose-picture{grid-column:1;grid-row:1/4;width:min(100%,calc(100cqh * 1.5));height:auto;aspect-ratio:3/2;align-self:center;justify-self:center}
 .workspace.view-quiz .poem-goose-game .goose-instruction{grid-column:2;align-self:end}
 .workspace.view-quiz .poem-goose-game .goose-instruction p{font-size:24px;line-height:1.45}
 .workspace.view-quiz .poem-goose-game .goose-palette{grid-column:2;display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:12px;padding:0}
 .workspace.view-quiz .poem-goose-game .goose-paint{width:100%;max-width:none;min-height:58px;font-size:25px}
 .workspace.view-quiz .poem-goose-game .goose-feedback{grid-column:2;align-self:start;font-size:19px;line-height:1.4;min-height:0}
 .workspace.view-quiz .farewell-story{grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr);grid-template-rows:auto auto auto auto auto auto;align-content:center;align-items:center}
 .workspace.view-quiz .farewell-story>*{grid-column:2}
 .workspace.view-quiz .farewell-story .fs-stage{grid-column:1;grid-row:1/6;width:min(100%,calc((100cqh - 58px) * 1.5));height:auto;aspect-ratio:3/2;justify-self:center;align-self:center}
 .workspace.view-quiz .farewell-story .fs-verse{grid-column:1;grid-row:6;font-size:27px;line-height:1.4;letter-spacing:.04em}
 .workspace.view-quiz .farewell-story .fs-header{grid-row:1}
 .workspace.view-quiz .farewell-story .fs-header h3{font-size:24px;line-height:1.35}
 .workspace.view-quiz .farewell-story .fs-eyebrow{display:none}
 .workspace.view-quiz .farewell-story .fs-task{grid-row:2;font-size:19px;line-height:1.4}
 .workspace.view-quiz .farewell-story .fs-rhythm,.workspace.view-quiz .farewell-story .fs-compose{grid-row:3}
 .workspace.view-quiz .farewell-story .fs-actions{grid-row:4;gap:8px}
 .workspace.view-quiz .farewell-story .fs-actions button{min-height:48px;padding:8px 15px;font-size:20px}
 .workspace.view-quiz .farewell-story .fs-feedback{grid-row:5/7;min-height:0;font-size:18px;line-height:1.4}
 .workspace.view-quiz .farewell-story .fs-feet button{min-height:55px;width:46%}
 .workspace.view-quiz .farewell-story .fs-compose{gap:8px}
 .workspace.view-quiz .farewell-story .fs-slot{min-width:52px}
 .workspace.view-quiz .poem-view-game{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.9fr);align-content:center;align-items:center}
 .workspace.view-quiz .poem-view-game>*{grid-column:2}
 .workspace.view-quiz .poem-view-game .pvg-stage{grid-column:1;grid-row:1/9;width:min(100%,calc(100cqh * 1.5));height:auto;max-height:none;aspect-ratio:3/2;justify-self:center;align-self:center}
 .workspace.view-quiz .poem-view-game .pvg-heading h3{font-size:25px;margin:0}
 .workspace.view-quiz .poem-view-game .pvg-camera-control{padding:0;gap:10px;font-size:20px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray{gap:8px;flex-wrap:wrap}
 .workspace.view-quiz .poem-view-game .pvg-status{font-size:18px;line-height:1.4;min-height:0}
 .workspace.view-quiz .poem-garden{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.8fr);grid-template-rows:auto auto 1fr;align-content:center;align-items:center}
 .workspace.view-quiz .poem-garden .gr-picture{grid-column:1;grid-row:1/4;width:min(100%,calc(100cqh * 1.5));height:auto;aspect-ratio:3/2;justify-self:center;align-self:center}
 .workspace.view-quiz .poem-garden .gr-instruction{grid-column:2;display:grid;gap:14px;margin:0;align-self:end}
 .workspace.view-quiz .poem-garden .gr-instruction p{font-size:24px;line-height:1.45}
 .workspace.view-quiz .poem-garden .gr-count{justify-self:center;font-size:21px}
 .workspace.view-quiz .poem-garden .gr-actionline{grid-column:2;flex-wrap:wrap;justify-content:center;margin:0}
 .workspace.view-quiz .poem-garden .gr-feedback{grid-column:2;align-self:start;min-height:0;font-size:20px;line-height:1.5;margin:0}
 .workspace.view-quiz .river-puzzle-game{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.9fr);grid-template-rows:auto auto auto auto;align-content:center;align-items:center}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-work{display:contents}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-board{grid-column:1;grid-row:1/5;width:min(100%,calc(100cqh * 1.5));height:auto;max-width:none;aspect-ratio:3/2;justify-self:center;align-self:center}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-heading{grid-column:2;grid-row:1}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-heading>div>span{display:none}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-heading h3{font-size:25px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-side{grid-column:2;grid-row:2;gap:12px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-tray{width:min(100%,280px);align-self:center}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-actions{grid-column:2;grid-row:3}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-status{grid-column:2;grid-row:4;font-size:18px;line-height:1.4;min-height:0}
 .workspace.view-quiz .rain-catcher{grid-template-columns:minmax(0,1.65fr) minmax(280px,.9fr);align-content:center;align-items:center}
 .workspace.view-quiz .rain-catcher>*{grid-column:2}
 .workspace.view-quiz .rain-catcher .rc-field{grid-column:1;grid-row:1/10;width:min(100%,calc(100cqh * 1.5));height:auto;min-height:0;max-height:none;aspect-ratio:3/2;justify-self:center;align-self:center}
 .workspace.view-quiz .rain-catcher .rc-heading h3{font-size:27px}
 .workspace.view-quiz .rain-catcher .rc-collection{gap:7px}
 .workspace.view-quiz .rain-catcher .rc-mission{width:100%;font-size:20px}
 .workspace.view-quiz .rain-catcher .rc-controls{gap:9px;grid-template-columns:52px minmax(0,1fr) 52px}
 .workspace.view-quiz .rain-catcher .rc-status{min-height:0;font-size:18px;line-height:1.4}
 .workspace.view-quiz .challenge-writing-layout{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(440px,1.3fr);gap:24px}
 .workspace.view-quiz .challenge-writing-heading .challenge-prompt{font-size:27px;line-height:1.45}
 .workspace.view-quiz .challenge-writing-holder{min-width:0}
 .workspace.view-quiz .challenge-writing{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:8px 16px;align-items:center}
 .workspace.view-quiz .challenge-writing .cw-board{grid-column:1;grid-row:1/4;width:min(100%,calc(100cqh - 55px));max-width:330px;margin:0;justify-self:center}
 .workspace.view-quiz .challenge-writing .cw-controls{grid-column:2;grid-row:1;flex-direction:column;gap:10px}
 .workspace.view-quiz .challenge-writing .cw-tools,.workspace.view-quiz .challenge-writing .cw-submit{display:flex;flex-direction:column;gap:10px}
 .workspace.view-quiz .challenge-writing .cw-skip{flex-basis:auto;font-size:17px;line-height:1.4;padding:6px 2px}
 .workspace.view-quiz .challenge-writing .cw-status{grid-column:1/-1;grid-row:4;margin:0;min-height:0}
 .workspace.view-quiz .challenge-writing .cw-review{grid-column:2;grid-row:2/4}
 .workspace.view-quiz .challenge-writing .cw-answer{flex-wrap:wrap;gap:6px;margin:0 0 8px}
 .workspace.view-quiz .challenge-writing .cw-review-actions{gap:8px}
 .workspace.view-quiz .challenge-writing.is-answered .cw-board{width:min(100%,calc(100cqh - 55px));max-width:280px}
}

/* On a taller landscape screen, use the right column for comfortable reading
   and touch targets. Scene widths and aspect ratios stay unchanged. */
@media (min-width:1000px) and (min-height:740px) and (orientation:landscape){
 .workspace.view-quiz .challenge-game-holder>section{row-gap:16px}
 .workspace.view-quiz .poem-goose-game .goose-instruction p,
 .workspace.view-quiz .poem-garden .gr-instruction p{font-size:29px;line-height:1.45}
 .workspace.view-quiz .poem-goose-game .goose-progress{font-size:22px}
 .workspace.view-quiz .poem-goose-game .goose-palette{gap:16px}
 .workspace.view-quiz .poem-goose-game .goose-paint{min-height:78px;font-size:29px;gap:16px;border-radius:20px}
 .workspace.view-quiz .poem-goose-game .goose-paint i{width:38px;height:38px}
 .workspace.view-quiz .poem-goose-game .goose-feedback{font-size:22px;line-height:1.5}
 .workspace.view-quiz .farewell-story .fs-header h3{font-size:29px;line-height:1.4}
 .workspace.view-quiz .farewell-story .fs-progress{font-size:22px}
 .workspace.view-quiz .farewell-story .fs-task{font-size:23px;line-height:1.5}
 .workspace.view-quiz .farewell-story .fs-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .workspace.view-quiz .farewell-story .fs-actions button{width:100%;min-height:60px;font-size:22px;padding:11px 9px}
 .workspace.view-quiz .farewell-story .fs-actions svg{width:26px;height:26px}
 .workspace.view-quiz .farewell-story .fs-feedback{font-size:21px;line-height:1.5}
 .workspace.view-quiz .farewell-story .fs-rhythm{gap:16px}
 .workspace.view-quiz .farewell-story .fs-beats i{width:17px;height:17px}
 .workspace.view-quiz .farewell-story .fs-feet button{min-height:78px;font-size:29px}
 .workspace.view-quiz .farewell-story .fs-feet button span{font-size:37px}
 .workspace.view-quiz .farewell-story .fs-compose{gap:16px}
 .workspace.view-quiz .farewell-story .fs-line{font-size:28px;gap:7px}
 .workspace.view-quiz .farewell-story .fs-slot{min-width:58px;min-height:62px}
 .workspace.view-quiz .farewell-story .fs-tickets button{font-size:29px;min-width:80px;min-height:68px}
 .workspace.view-quiz .poem-view-game .pvg-heading h3{font-size:30px;line-height:1.45}
 .workspace.view-quiz .poem-view-game .pvg-camera-control{font-size:24px;gap:12px}
 .workspace.view-quiz .poem-view-game .pvg-camera-control input{height:62px}
 .workspace.view-quiz .poem-view-game .pvg-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .workspace.view-quiz .poem-view-game .pvg-actions button{width:100%;min-height:64px;font-size:24px}
 .workspace.view-quiz .poem-view-game .pvg-actions svg{width:29px;height:29px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray figure{flex-direction:column;gap:8px;padding:10px}
 .workspace.view-quiz .poem-view-game .pvg-photo-image{width:100%;max-width:120px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray figcaption{font-size:23px}
 .workspace.view-quiz .poem-view-game .pvg-status{font-size:21px;line-height:1.5}
 .workspace.view-quiz .poem-garden .gr-instruction{gap:20px}
 .workspace.view-quiz .poem-garden .gr-count{font-size:27px;min-width:102px;padding:9px 18px;border-radius:24px}
 .workspace.view-quiz .poem-garden .gr-actionline{display:grid;justify-content:stretch;gap:16px}
 .workspace.view-quiz .poem-garden .gr-method{font-size:23px;line-height:1.5;text-align:center}
 .workspace.view-quiz .poem-garden .gr-audio{min-height:66px;font-size:25px;width:100%;border-radius:18px}
 .workspace.view-quiz .poem-garden .gr-feedback{font-size:23px;line-height:1.55}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-heading h3{font-size:29px;line-height:1.4}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-heading b{font-size:22px;padding:8px 12px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-side{gap:16px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-instruction{font-size:23px;line-height:1.45}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-tray{width:min(100%,330px);padding:12px;gap:10px;border-radius:18px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-actions button{min-height:60px;font-size:23px;width:100%}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-status{font-size:21px;line-height:1.45}
 .workspace.view-quiz .rain-catcher .rc-heading h3{font-size:31px}
 .workspace.view-quiz .rain-catcher .rc-round-count{font-size:21px}
 .workspace.view-quiz .rain-catcher .rc-collection{gap:10px}
 .workspace.view-quiz .rain-catcher .rc-collection>span{height:66px}
 .workspace.view-quiz .rain-catcher .rc-collection b{font-size:29px}
 .workspace.view-quiz .rain-catcher .rc-collection .is-earned b{font-size:33px}
 .workspace.view-quiz .rain-catcher .rc-mission{font-size:24px;min-height:74px;padding:7px 8px 7px 14px}
 .workspace.view-quiz .rain-catcher .rc-mission strong{font-size:35px;padding-inline:3px}
 .workspace.view-quiz .rain-catcher .rc-mission button{width:56px;height:56px}
 .workspace.view-quiz .rain-catcher .rc-mission svg{width:29px;height:29px}
 .workspace.view-quiz .rain-catcher .rc-controls{width:100%;grid-template-columns:64px minmax(0,1fr) 64px;gap:12px}
 .workspace.view-quiz .rain-catcher .rc-controls>button{min-height:68px;font-size:24px;padding:11px 8px}
 .workspace.view-quiz .rain-catcher .rc-controls>button:not(.rc-primary){font-size:35px}
 .workspace.view-quiz .rain-catcher .rc-slow-catch,.workspace.view-quiz .rain-catcher .rc-replay{width:100%;min-height:62px;font-size:23px}
}

@media (min-width:701px) and (orientation:portrait){
 .workspace.view-quiz .challenge-game-holder>section{max-width:760px;gap:12px}
 .workspace.view-quiz .poem-goose-game .goose-picture{width:min(100%,calc((100cqh - 170px) * 1.5));justify-self:center}
 .workspace.view-quiz .farewell-story .fs-stage{width:min(100%,calc((100cqh - 325px) * 1.5));justify-self:center}
 .workspace.view-quiz .farewell-story .fs-feedback{min-height:0}
 .workspace.view-quiz .poem-view-game .pvg-stage{width:min(100%,calc((100cqh - 270px) * 1.5));height:auto;max-height:none;align-self:center;aspect-ratio:3/2}
 .workspace.view-quiz .poem-garden .gr-picture{width:min(100%,calc((100cqh - 170px) * 1.5));margin-inline:auto}
 .workspace.view-quiz .rain-catcher .rc-field{width:min(100%,calc((100cqh - 300px) * 1.5));height:auto;min-height:210px;max-height:none;justify-self:center;aspect-ratio:3/2}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-work{grid-template-columns:minmax(0,1.4fr) minmax(210px,.8fr);gap:15px}
 .workspace.view-quiz .challenge-writing-layout{gap:14px}
 .workspace.view-quiz .challenge-writing-heading .challenge-prompt{font-size:28px}
}

@media (min-width:1000px) and (max-width:1100px) and (min-height:740px) and (orientation:landscape){
 .workspace.view-quiz .challenge-game-holder>.poem-view-game{row-gap:12px}
 .workspace.view-quiz .poem-view-game .pvg-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .workspace.view-quiz .poem-view-game .pvg-actions button{font-size:23px;padding-inline:10px;gap:7px}
 .workspace.view-quiz .poem-view-game .pvg-photo-image{max-width:105px}
}

/* Very short landscape windows still retain scrolling as a fallback; no
   overflow clipping is used to conceal a scene or an active control. */
@media (min-width:701px) and (orientation:landscape) and (max-height:650px){
 .workspace.view-quiz .lesson-bar:has(.shishi-touch-slot){min-height:74px;padding-block:0;margin-bottom:4px}
 .workspace.view-quiz .shishi-touch-slot{height:70px;--shishi-height:66px}
 .workspace.view-quiz .shishi-touch-slot .shishi-guide-art{height:66px}
 .workspace.view-quiz .challenge-shell{padding:8px 14px}
 .workspace.view-quiz .challenge-header{margin-bottom:4px;padding-bottom:4px}
 .workspace.view-quiz .challenge-game-holder>section{column-gap:20px;row-gap:8px}
 .workspace.view-quiz .challenge-footer{margin-top:6px;padding-top:6px}
 .workspace.view-quiz .challenge-footer .challenge-feedback{font-size:17px}
 .workspace.view-quiz .challenge-shell .challenge-sound-stage.is-walnut-market{width:min(100%,280px)}
 .workspace.view-quiz .poem-goose-game .goose-palette{gap:9px}
 .workspace.view-quiz .poem-goose-game .goose-paint{min-height:52px}
 .workspace.view-quiz .farewell-story .fs-header h3{font-size:22px}
 .workspace.view-quiz .farewell-story .fs-task,.workspace.view-quiz .farewell-story .fs-feedback{font-size:17px}
 .workspace.view-quiz .farewell-story .fs-actions button{font-size:18px;padding:7px 12px}
 .workspace.view-quiz .rain-catcher .rc-intro{padding:12px}
 .workspace.view-quiz .rain-catcher .rc-intro>div{padding:12px 16px}
 .workspace.view-quiz .rain-catcher .rc-intro-icon{width:26px;height:26px;margin-bottom:5px}
 .workspace.view-quiz .rain-catcher .rc-intro p{margin:6px 0 10px;font-size:18px}
 .workspace.view-quiz .rain-catcher .rc-collection>span{height:45px}
 .workspace.view-quiz .rain-catcher .rc-heading h3{font-size:25px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-tray{width:min(100%,230px);gap:6px;padding:7px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-side{gap:8px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-instruction{font-size:17px;line-height:1.4}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-actions button{padding:8px 14px;font-size:18px;min-height:46px}
}

/* The instruction and controls fill the right side of the play board. Explicit
   rows keep the last useful action near its bottom without adding filler. */
@media (min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-quiz .challenge-game-holder>section{height:100%;align-content:stretch;column-gap:28px;row-gap:14px;grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr)}
 .workspace.view-quiz .poem-goose-game{grid-template-rows:auto minmax(0,1fr) auto}
 .workspace.view-quiz .poem-goose-game .goose-instruction{align-self:start}
 .workspace.view-quiz .poem-goose-game .goose-instruction p{font-size:29px}
 .workspace.view-quiz .poem-goose-game .goose-palette{align-self:center;gap:16px;width:100%}
 .workspace.view-quiz .poem-goose-game .goose-paint{min-height:82px;font-size:30px}
 .workspace.view-quiz .poem-goose-game .goose-paint i{width:40px;height:40px}
 .workspace.view-quiz .poem-goose-game .goose-feedback{align-self:end;font-size:23px}
 .workspace.view-quiz .farewell-story{grid-template-rows:auto auto minmax(0,1fr) auto auto auto}
 .workspace.view-quiz .farewell-story .fs-header{align-self:start}
 .workspace.view-quiz .farewell-story .fs-header h3{font-size:30px}
 .workspace.view-quiz .farewell-story .fs-task{font-size:25px}
 .workspace.view-quiz .farewell-story .fs-feedback{align-self:end;font-size:23px}
 .workspace.view-quiz .farewell-story .fs-actions button{font-size:24px;min-height:64px}
 .workspace.view-quiz .poem-view-game{grid-template-rows:auto auto auto minmax(0,1fr) auto}
 .workspace.view-quiz .poem-view-game .pvg-stage{grid-row:1/6}
 .workspace.view-quiz .poem-view-game .pvg-heading{grid-row:1;align-self:start}
 .workspace.view-quiz .poem-view-game .pvg-camera-control{grid-row:2;font-size:25px}
 .workspace.view-quiz .poem-view-game .pvg-actions{grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace.view-quiz .poem-view-game .pvg-actions button{font-size:24px;min-height:66px;padding-inline:8px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray{grid-row:4;align-self:stretch;align-items:stretch}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray figure{justify-content:center;min-width:0;padding:12px 8px}
 .workspace.view-quiz .poem-view-game .pvg-photo-image{width:100%;max-width:145px;min-height:68px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray figcaption{font-size:25px}
 .workspace.view-quiz .poem-view-game .pvg-status{grid-row:5;align-self:end;font-size:22px}
 .workspace.view-quiz .poem-garden{grid-template-rows:auto minmax(0,1fr) auto}
 .workspace.view-quiz .poem-garden .gr-instruction{align-self:start;gap:22px}
 .workspace.view-quiz .poem-garden .gr-instruction p{font-size:31px;text-wrap:balance}
 .workspace.view-quiz .poem-garden .gr-count{font-size:30px;min-width:118px;padding:12px 22px}
 .workspace.view-quiz .poem-garden .gr-actionline{align-self:center;gap:22px;display:grid;justify-content:stretch}
 .workspace.view-quiz .poem-garden .gr-method{font-size:26px;text-align:center}
 .workspace.view-quiz .poem-garden .gr-audio{font-size:27px;min-height:78px;width:100%}
 .workspace.view-quiz .poem-garden .gr-feedback{align-self:end;font-size:25px}
 .workspace.view-quiz .river-puzzle-game{grid-template-rows:auto minmax(0,1fr) auto auto}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-heading{align-self:start}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-side{align-self:stretch;justify-content:space-evenly}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-instruction{font-size:25px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-tray{width:min(100%,350px)}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-actions button{font-size:25px;min-height:66px}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-status{font-size:22px;align-self:end}
 .workspace.view-quiz .rain-catcher{grid-template-rows:auto minmax(78px,1fr) minmax(90px,1fr) auto auto}
 .workspace.view-quiz .rain-catcher .rc-field{grid-row:1/6}
 .workspace.view-quiz .rain-catcher .rc-heading{grid-row:1;align-self:start}
 .workspace.view-quiz .rain-catcher .rc-heading h3{font-size:33px}
 .workspace.view-quiz .rain-catcher .rc-collection{grid-row:2;align-self:center}
 .workspace.view-quiz .rain-catcher .rc-collection>span{height:78px}
 .workspace.view-quiz .rain-catcher .rc-collection b{font-size:32px}
 .workspace.view-quiz .rain-catcher .rc-mission{grid-row:3;align-self:center;font-size:26px;min-height:96px}
 .workspace.view-quiz .rain-catcher .rc-mission strong{font-size:39px}
 .workspace.view-quiz .rain-catcher .rc-controls{grid-row:4;align-self:end}
 .workspace.view-quiz .rain-catcher .rc-controls>button{min-height:76px;font-size:26px}
 .workspace.view-quiz .rain-catcher .rc-slow-catch{grid-row:5;align-self:end;font-size:25px;min-height:66px}
 .workspace.view-quiz .rain-catcher .rc-replay{grid-row:4;font-size:25px;min-height:70px}
}

@media (min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-quiz .challenge-game-holder>section{column-gap:24px;row-gap:12px}
 .workspace.view-quiz .poem-goose-game .goose-instruction p,
 .workspace.view-quiz .poem-garden .gr-instruction p,
 .workspace.view-quiz .farewell-story .fs-header h3,
 .workspace.view-quiz .poem-view-game .pvg-heading h3,
 .workspace.view-quiz .river-puzzle-game .river-puzzle-heading h3{font-size:clamp(28px,4.1vh,38px);line-height:1.4}
 .workspace.view-quiz .poem-goose-game .goose-paint{min-height:clamp(70px,11vh,108px);font-size:clamp(30px,4.1vh,39px)}
 .workspace.view-quiz .farewell-story .fs-task,
 .workspace.view-quiz .farewell-story .fs-feedback,
 .workspace.view-quiz .poem-garden .gr-method,
 .workspace.view-quiz .poem-garden .gr-feedback,
 .workspace.view-quiz .river-puzzle-game .river-puzzle-instruction,
 .workspace.view-quiz .poem-view-game .pvg-camera-control,
 .workspace.view-quiz .poem-view-game .pvg-photo-tray figcaption,
 .workspace.view-quiz .rain-catcher .rc-mission{font-size:clamp(25px,3.5vh,33px);line-height:1.4}
 .workspace.view-quiz .poem-goose-game .goose-feedback,
 .workspace.view-quiz .poem-view-game .pvg-status,
 .workspace.view-quiz .river-puzzle-game .river-puzzle-status{font-size:clamp(23px,3.2vh,30px);line-height:1.4}
 .workspace.view-quiz .poem-garden .gr-count{font-size:clamp(35px,5.3vh,52px);min-width:140px;padding:15px 24px}
 .workspace.view-quiz .poem-garden .gr-audio,
 .workspace.view-quiz .farewell-story .fs-actions button,
 .workspace.view-quiz .poem-view-game .pvg-actions button,
 .workspace.view-quiz .river-puzzle-game .river-puzzle-actions button{font-size:clamp(25px,3.6vh,34px);min-height:clamp(64px,9.5vh,96px)}
 .workspace.view-quiz .rain-catcher .rc-collection>span{height:clamp(70px,10vh,100px)}
 .workspace.view-quiz .rain-catcher .rc-mission strong{font-size:clamp(40px,5.7vh,54px)}
 .workspace.view-quiz .rain-catcher .rc-controls>button{font-size:clamp(26px,3.6vh,33px);min-height:clamp(66px,9vh,90px)}
}

/* The garden's two existing instructions become readable working areas, with
   the real weed counter and listening action filling the right column. */
@media (min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-quiz .poem-garden{grid-template-rows:minmax(0,1.05fr) minmax(0,1fr) auto}
 .workspace.view-quiz .poem-garden .gr-instruction{height:100%;width:100%;align-self:stretch;justify-items:center;align-content:center;gap:clamp(12px,2.5vh,28px);padding:clamp(12px,2vh,22px);border:1px solid #dae3cc;border-radius:24px;background:#f2f6e9}
 .workspace.view-quiz .poem-garden .gr-instruction p{font-size:clamp(28px,4.3vh,42px);text-align:center;line-height:1.4}
 .workspace.view-quiz .poem-garden .gr-count{display:grid;place-items:center;min-width:clamp(148px,19vw,244px);min-height:clamp(70px,12vh,130px);font-size:clamp(42px,7.4vh,76px);line-height:1.15;padding:8px 20px;border:1px solid #d1dfc5;border-radius:24px;background:#fffef6;font-weight:600}
 .workspace.view-quiz .poem-garden .gr-actionline{height:100%;align-self:stretch;grid-template-rows:auto minmax(60px,1fr);gap:clamp(10px,2vh,22px);padding:clamp(10px,1.8vh,20px);border:1px solid #dce4d0;border-radius:24px;background:#fffdf4}
 .workspace.view-quiz .poem-garden .gr-method{font-size:clamp(25px,3.8vh,36px);line-height:1.4;text-wrap:balance}
 .workspace.view-quiz .poem-garden .gr-audio{height:100%;font-size:clamp(28px,4.3vh,40px);min-height:60px;border-radius:20px;background:#eaf3e0}
 .workspace.view-quiz .poem-garden .gr-audio::before{font-size:1.2em}
 .workspace.view-quiz .poem-garden .gr-feedback:empty{display:none}
}
@media (min-width:900px) and (min-height:620px) and (max-height:820px) and (orientation:landscape){
 .workspace.view-quiz .poem-garden{grid-template-rows:minmax(132px,1.05fr) minmax(112px,1fr) auto;row-gap:10px}
 .workspace.view-quiz .poem-garden .gr-instruction{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:10px}
 .workspace.view-quiz .poem-garden .gr-instruction p{font-size:26px;line-height:1.35;text-wrap:pretty}
 .workspace.view-quiz .poem-garden .gr-count{min-width:90px;min-height:70px;padding:7px;font-size:36px;border-radius:20px}
 .workspace.view-quiz .poem-garden .gr-actionline{padding:10px;gap:8px}
 .workspace.view-quiz .poem-garden .gr-method{font-size:25px;line-height:1.35}
 .workspace.view-quiz .poem-garden .gr-feedback{font-size:23px;line-height:1.4}
}
@media (min-width:900px) and (min-height:620px) and (max-height:740px) and (orientation:landscape){
 .workspace.view-quiz .poem-view-game .pvg-camera-control{gap:5px}
 .workspace.view-quiz .poem-view-game .pvg-camera-control input{height:44px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray{gap:8px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray figure{flex-direction:row;gap:7px;padding:8px 6px;min-height:80px}
 .workspace.view-quiz .poem-view-game .pvg-photo-image{width:64px;max-width:64px;min-height:48px}
 .workspace.view-quiz .poem-view-game .pvg-photo-tray figcaption{font-size:23px}
 .workspace.view-quiz .poem-view-game .pvg-status{font-size:23px;line-height:1.35}
 .workspace.view-quiz .poem-view-game .pvg-actions button{font-size:23px;min-height:56px}
}

/* The two collected photos lead the mountain controls, with the full image
   filling each frame instead of a tiny thumbnail in an oversized panel. */
@media(min-width:701px) and (orientation:landscape){
 .workspace.view-quiz .mountain-game{grid-template-rows:auto auto auto minmax(0,1fr);align-content:stretch}
 .workspace.view-quiz .mountain-game .pvg-heading{display:none}
 .workspace.view-quiz .mountain-game .pvg-stage{grid-row:1/5}
 .workspace.view-quiz .mountain-game .pvg-photo-tray{grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;height:auto;min-height:0;align-self:start;align-items:stretch}
 .workspace.view-quiz .mountain-game .pvg-photo-tray figure{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;justify-content:stretch;align-content:stretch;gap:7px;padding:8px;min-height:0;opacity:1}
 .workspace.view-quiz .mountain-game .pvg-photo-image{width:100%;max-width:none;height:auto;min-height:0;aspect-ratio:3/2}
 .workspace.view-quiz .mountain-game .pvg-photo-image img{width:100%;height:100%;object-fit:contain}
 .workspace.view-quiz .mountain-game .pvg-photo-tray figcaption{font-size:clamp(22px,3.1vh,30px);text-align:center;white-space:nowrap}
 .workspace.view-quiz .mountain-game .pvg-camera-control{grid-row:2;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;font-size:clamp(21px,3.2vh,29px)}
 .workspace.view-quiz .mountain-game .pvg-actions{grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .workspace.view-quiz .mountain-game .pvg-actions button{font-size:clamp(22px,3.2vh,29px);min-height:clamp(54px,8vh,74px);padding:8px}
 .workspace.view-quiz .mountain-game .pvg-status{grid-row:4;align-self:center;font-size:clamp(23px,3.5vh,34px);line-height:1.5}
 .workspace.view-quiz .mountain-game .pvg-retry{grid-row:5}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-tray{width:min(100%,350px,calc((100cqh - 228px) * 1.5));min-width:180px;min-height:0;aspect-ratio:3/2;gap:8px;padding:8px;align-self:center}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-tray>.river-puzzle-piece,.workspace.view-quiz .river-puzzle-game .river-puzzle-tray>.river-tray-space{height:100%;aspect-ratio:auto}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-side{min-height:0;gap:12px;justify-content:center}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-actions{position:relative;z-index:1;align-self:center}
 .workspace.view-quiz .farewell-story .fs-header h3{font-size:clamp(28px,4.2vh,40px)}
 .workspace.view-quiz .farewell-story .fs-task,.workspace.view-quiz .farewell-story .fs-feedback{font-size:clamp(25px,3.7vh,35px);line-height:1.4}
 .workspace.view-quiz .farewell-story .fs-verse{font-size:clamp(29px,4.2vh,40px);letter-spacing:.02em}
 .workspace.view-quiz .farewell-story .fs-line{font-size:clamp(28px,4.1vh,38px)}
 .workspace.view-quiz .farewell-story .fs-tickets button{font-size:clamp(29px,4.2vh,40px)}
 .workspace.view-quiz .farewell-story .fs-dock span,.workspace.view-quiz .farewell-story .fs-friend{font-size:clamp(18px,2.7vh,25px)}
}

@media(min-width:701px) and (orientation:landscape){
 .workspace.view-quiz .river-puzzle-game.is-complete{grid-template-rows:auto minmax(0,1fr) auto}
 .workspace.view-quiz .river-puzzle-game.is-complete .river-puzzle-heading{display:flex;grid-row:1;align-self:start}
 .workspace.view-quiz .river-puzzle-game.is-complete .river-puzzle-board{grid-row:1/4}
 .workspace.view-quiz .river-puzzle-game.is-complete .river-puzzle-status{grid-row:2;align-self:center;font-size:clamp(27px,4vh,38px);line-height:1.6;text-wrap:balance}
 .workspace.view-quiz .river-puzzle-game.is-complete .river-puzzle-actions{grid-row:3;align-self:end}
}
/* The tray takes only the height left in its row beside the board. A tray sized
   from a fixed allowance overflowed its row once the status wrapped to two lines
   (a piece put in the wrong cell) and, centred, pushed the instruction up over
   「拼好春江月夜圖」 and the tray down under 聽一聽古詩. Two status lines stay
   reserved so the tray does not change size after each move. */
@media(min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-quiz .river-puzzle-game:not(.is-complete) .river-puzzle-side{display:grid;grid-template-rows:auto minmax(0,233px);align-content:center;justify-items:center;gap:12px;container-type:inline-size}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-instruction{justify-self:stretch}
 .workspace.view-quiz .river-puzzle-game .river-puzzle-tray{width:auto;min-width:0;max-width:100%;height:min(100%,calc(100cqw / 1.5));align-self:center}
 .workspace.view-quiz .river-puzzle-game:not(.is-complete) .river-puzzle-status{min-height:2.8em}
}
/* 《畫雞》: the two clue cards and 下一步 sit in the row left between the heading
   and 聽這句詩. On short landscape tablets (1024x690) fixed sizes made that panel
   taller than its row, so it spread over the heading and the 聽這句詩 line.
   Sizes now follow the play-area height and reach the old sizes on tall screens. */
@media(min-width:900px) and (min-height:620px) and (orientation:landscape){
 .workspace.view-quiz .poem-rooster-game .rr-instruction{font-size:clamp(22px,5.4cqh,27px)}
 .workspace.view-quiz .poem-rooster-game .rr-panel{gap:clamp(8px,2cqh,12px)}
 .workspace.view-quiz .poem-rooster-game .rr-clues{gap:clamp(6px,1.6cqh,10px)}
 .workspace.view-quiz .poem-rooster-game .rr-clue{padding-block:clamp(5px,1.4cqh,10px)}
 .workspace.view-quiz .poem-rooster-game .rr-thumb{width:clamp(48px,10.5cqh,72px);height:clamp(48px,10.5cqh,72px)}
 .workspace.view-quiz .poem-rooster-game .rr-clue b{font-size:clamp(21px,5cqh,25px)}
 .workspace.view-quiz .poem-rooster-game .rr-clue small{font-size:clamp(15px,3.6cqh,18px)}
 .workspace.view-quiz .poem-rooster-game .rr-next{min-height:clamp(50px,12cqh,66px);font-size:clamp(20px,4.6cqh,24px)}
 .workspace.view-quiz .poem-rooster-game .rr-feedback{font-size:clamp(19px,4.4cqh,22px)}
}

/* Each farewell chapter owns the same complete right-hand activity area.
   Hidden controls no longer leave their old rows empty between instructions. */
@media(min-width:701px) and (orientation:landscape){
 .workspace.view-quiz .farewell-story{grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch}
 .workspace.view-quiz .farewell-story .fs-stage{grid-column:1;grid-row:1;width:min(100%,calc(100cqh * 1.5));align-self:center}
 .workspace.view-quiz .farewell-story .fs-control-panel{grid-column:2;grid-row:1;height:100%;min-height:0;gap:clamp(10px,1.6vh,18px)}
 .workspace.view-quiz .farewell-story .fs-header{flex:none;align-items:center}
 .workspace.view-quiz .farewell-story .fs-header h3{font-size:clamp(27px,4vh,37px);line-height:1.3}
 .workspace.view-quiz .farewell-story .fs-progress{font-size:clamp(21px,3vh,28px)}
 .workspace.view-quiz .farewell-story .fs-activity{flex:1;min-height:0;justify-content:center;padding:clamp(14px,2vh,24px);gap:clamp(16px,2.8vh,30px)}
 .workspace.view-quiz .farewell-story .fs-verse{font-size:clamp(30px,4.6vh,47px);line-height:1.45;letter-spacing:0;flex:none}
 .workspace.view-quiz .farewell-story .fs-task{font-size:clamp(23px,3.5vh,33px);line-height:1.45;flex:none}
 .workspace.view-quiz .farewell-story .fs-rhythm,.workspace.view-quiz .farewell-story .fs-compose{flex:1;min-height:0;justify-content:center;gap:clamp(14px,2.5vh,28px)}
 .workspace.view-quiz .farewell-story .fs-beats{gap:clamp(14px,2vw,24px)}
 .workspace.view-quiz .farewell-story .fs-beats i{width:clamp(36px,5.5vh,56px);height:clamp(36px,5.5vh,56px);font-size:clamp(23px,3.3vh,32px)}
 .workspace.view-quiz .farewell-story .fs-feet{flex:1;max-height:180px;gap:14px}
 .workspace.view-quiz .farewell-story .fs-feet button{flex:1;width:100%;max-width:none;height:100%;min-height:76px;font-size:clamp(30px,4.7vh,46px);gap:8px;border-radius:20px}
 .workspace.view-quiz .farewell-story .fs-feet button span{font-size:1.2em}
 .workspace.view-quiz .farewell-story .fs-compose{gap:clamp(18px,3vh,32px)}
 .workspace.view-quiz .farewell-story .fs-line{font-size:clamp(27px,4.3vh,41px);gap:8px;flex:1;max-height:118px}
 .workspace.view-quiz .farewell-story .fs-slot{flex:1;min-width:0;min-height:58px;height:100%;padding:6px 2px}
 .workspace.view-quiz .farewell-story .fs-tickets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:1;max-height:118px}
 .workspace.view-quiz .farewell-story .fs-tickets button{width:100%;min-width:0;min-height:62px;height:100%;font-size:clamp(28px,4.5vh,44px);padding:8px 4px}
 .workspace.view-quiz .farewell-story .fs-actions{flex:none;display:flex;flex-wrap:nowrap;gap:12px}
 .workspace.view-quiz .farewell-story .fs-actions button{flex:1;width:auto;min-height:clamp(56px,8vh,78px);font-size:clamp(24px,3.6vh,34px);padding:9px 8px}
 .workspace.view-quiz .farewell-story .fs-feedback{flex:none;font-size:clamp(22px,3.2vh,30px);line-height:1.4;min-height:0}
 .workspace.view-quiz .farewell-story[data-stage="0"] .fs-activity{gap:clamp(24px,5vh,48px)}
 .workspace.view-quiz .farewell-story[data-complete="true"] .fs-verse{font-size:clamp(33px,5vh,49px)}
 .workspace.view-quiz .farewell-story[data-stage="0"] .fs-control-panel,
 .workspace.view-quiz .farewell-story[data-complete="true"] .fs-control-panel{height:auto;align-self:center}
 .workspace.view-quiz .farewell-story[data-stage="0"] .fs-activity,
 .workspace.view-quiz .farewell-story[data-complete="true"] .fs-activity{flex:none;padding-block:clamp(24px,5vh,54px)}
 .workspace.view-quiz .farewell-story[data-stage="0"] .fs-task{font-size:clamp(26px,4vh,37px)}
}
@media(min-width:701px) and (max-height:740px) and (orientation:landscape){
 .workspace.view-quiz .farewell-story .fs-control-panel{gap:8px}
 .workspace.view-quiz .farewell-story .fs-activity{padding:12px;gap:10px}
 .workspace.view-quiz .farewell-story .fs-verse{font-size:29px}
 .workspace.view-quiz .farewell-story .fs-task{font-size:23px;line-height:1.35}
 .workspace.view-quiz .farewell-story .fs-rhythm,.workspace.view-quiz .farewell-story .fs-compose{gap:12px}
 .workspace.view-quiz .farewell-story .fs-feedback{font-size:21px}
 .workspace.view-quiz .farewell-story .fs-header h3{font-size:27px}
 .workspace.view-quiz .farewell-story .fs-beats i{width:34px;height:34px;font-size:22px}
 .workspace.view-quiz .farewell-story .fs-feet button{min-height:66px;font-size:30px}
 .workspace.view-quiz .farewell-story .fs-slot{min-height:52px;font-size:27px}
 .workspace.view-quiz .farewell-story .fs-tickets button{min-height:58px;font-size:28px}
}

/* 練習成果: auto margins centre the page without clipping its top when the list is long; the
   result (已完成 x / x) sits beside the title as a pill; wide tablets lay the rows in two columns
   so 再練一輪 stays on screen; phones keep one compact column with the buttons side by side. */
.workspace.view-quiz .challenge-shell.challenge-results{justify-content:flex-start}
.workspace.view-quiz .challenge-shell.challenge-results>:first-child{margin-top:auto}
.workspace.view-quiz .challenge-shell.challenge-results>:last-child{margin-bottom:auto}
.workspace.view-quiz .challenge-shell .challenge-results-heading{width:100%;max-width:960px;margin:0 auto 12px;gap:14px;align-items:center}
.workspace.view-quiz .challenge-shell .challenge-results-heading>img{width:54px;height:54px;flex:none}
.workspace.view-quiz .challenge-shell .challenge-results-heading>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;min-width:0}
.workspace.view-quiz .challenge-shell .challenge-results-heading .challenge-eyebrow{display:none}
.workspace.view-quiz .challenge-shell .challenge-results-heading h2{margin:0;font-size:27px;line-height:1.3}
.workspace.view-quiz .challenge-shell .challenge-results-heading .challenge-result-detail{display:inline-block!important;margin:0!important;padding:5px 15px;border-radius:999px;background:#e8f0de;color:#35553a!important;font-size:18px!important;font-weight:600;line-height:1.35}
.workspace.view-quiz .challenge-shell .challenge-result-list{width:100%;max-width:960px;margin:0 auto 14px}
.workspace.view-quiz .challenge-shell .challenge-result-row{min-height:58px;padding:7px 14px;gap:12px;font-size:18px!important}
.workspace.view-quiz .challenge-shell .challenge-result-row small{font-size:15px!important}
.workspace.view-quiz .challenge-shell .challenge-result-row em{margin-left:auto;font-size:17px!important}
.workspace.view-quiz .challenge-shell .challenge-results-actions{flex:none}
@media (min-width:701px) and (orientation:landscape){
 .workspace.view-quiz .challenge-shell.challenge-results{padding:14px 26px}
 .workspace.view-quiz .challenge-shell .challenge-result-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
}
@media (max-width:700px){
 .workspace.view-quiz .challenge-shell.challenge-results{padding:12px 12px 14px}
 .workspace.view-quiz .challenge-shell .challenge-results-heading{gap:10px;margin-bottom:10px}
 .workspace.view-quiz .challenge-shell .challenge-results-heading>img{width:42px;height:42px}
 .workspace.view-quiz .challenge-shell .challenge-results-heading>div{gap:4px 10px}
 .workspace.view-quiz .challenge-shell .challenge-results-heading h2{font-size:22px}
 .workspace.view-quiz .challenge-shell .challenge-results-heading .challenge-result-detail{padding:3px 12px;font-size:16px!important}
 .workspace.view-quiz .challenge-shell .challenge-result-list{gap:5px;margin-bottom:10px}
 .workspace.view-quiz .challenge-shell .challenge-result-row{min-height:48px;padding:4px 10px;gap:8px;font-size:16px!important}
 .workspace.view-quiz .challenge-shell .challenge-result-row small{display:block!important;font-size:14px!important;line-height:1.3}
 .workspace.view-quiz .challenge-shell .challenge-result-row em{font-size:16px!important}
 .workspace.view-quiz .challenge-shell .challenge-result-number{width:26px;height:26px;font-size:15px}
 .workspace.view-quiz .challenge-shell .challenge-results-actions{display:grid;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);max-width:none;width:100%;gap:8px}
 .workspace.view-quiz .challenge-shell .challenge-results-actions>button{min-height:50px;font-size:19px!important;padding:8px 10px}
}

/* dictation-layout.css */
/* One layout for the listening task, handwriting square and its three actions.
   Keep this after the general tablet/game sheets. */
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-body {container:dictation-work / size;}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-layout {
  display:grid;grid-template-columns:minmax(0,1fr);align-items:center;
  width:100%;max-width:720px;min-height:0;margin:auto;gap:18px;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading {
  min-width:0;padding:0;text-align:center;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-prompt {
  margin:0 0 18px;font-family:var(--sans);font-size:30px;font-weight:500;
  line-height:1.5;letter-spacing:0;text-wrap:balance;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  width:100%;max-width:420px;margin-inline:auto;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts button,
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .cw-review button {
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  width:100%;min-width:0;min-height:66px;margin:0;padding:12px 8px;
  border:1px solid #bacdbc;border-radius:17px;background:#f0f6e9;color:#294f3d;
  font:500 23px/1.35 var(--sans);font-size:23px!important;
  cursor:pointer;touch-action:manipulation;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts svg {
  flex:none;width:27px;height:27px;
}
/* 跳過 is small and beside the prompts, out of reach of a palm resting on the board. */
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts:has(.cw-skip:not([hidden])) {
  grid-template-columns:repeat(2,minmax(0,1fr)) auto;max-width:500px;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts button.cw-skip {
  align-self:center;width:auto;min-width:48px;min-height:40px;padding:6px 12px;
  border-color:#dfe5da;border-radius:12px;background:transparent;color:#6b7a69;
  font-size:16px!important;font-weight:400;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-audio-status {
  display:block;min-height:0;margin:12px 0 0;color:#526a58;
  font-size:18px;line-height:1.5;text-align:center;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-audio-status:empty {display:none;}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .cw-review {
  padding:0;text-align:center;grid-area:auto;width:100%;max-width:420px;margin:12px auto 0;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .cw-review-actions {display:grid;grid-template-columns:minmax(0,1fr);gap:0;}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-holder {width:100%;min-width:0;}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing.cw-expanded {
  --cw-pad-size:430px;
  display:grid;grid-template-columns:minmax(0,1fr);align-items:start;
  width:100%;max-width:430px;margin:0 auto;gap:12px;color:#233d32;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-status {
  grid-column:1;grid-row:1;justify-self:center;
  width:min(100%,var(--cw-pad-size));min-height:29px;margin:0;
  font-size:21px!important;line-height:1.45;text-align:center;color:#365846;
  overflow-wrap:anywhere;text-wrap:balance;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-status:empty {display:none;}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-board {
  position:relative;grid-column:1;grid-row:2;justify-self:center;
  width:min(100%,var(--cw-pad-size));max-width:none;aspect-ratio:1;margin:0;
  overflow:hidden;border:1px solid #adc2b3;border-radius:22px;background-color:#fff;
  background-image:linear-gradient(90deg,transparent calc(50% - .5px),#dce4d9 calc(50% - .5px),#dce4d9 calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(transparent calc(50% - .5px),#dce4d9 calc(50% - .5px),#dce4d9 calc(50% + .5px),transparent calc(50% + .5px));
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-board,
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-board * {
  touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing canvas {
  position:absolute;inset:0;display:block;width:100%;height:100%;cursor:crosshair;background:#fff;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-animation {
  position:absolute;inset:0;display:grid;place-items:center;min-width:0;min-height:0;
  background:#fff;font-family:var(--serif);line-height:1;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-animation svg {
  position:absolute;inset:0;display:block;width:100%;height:100%;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-actions {
  grid-column:1;grid-row:3;display:block;min-width:0;width:100%;align-self:center;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-controls {
  grid-area:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);
  align-items:center;gap:10px;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:100%;min-width:0;min-height:56px;margin:0;padding:10px 8px;
  border:1px solid #c9d8c9;border-radius:15px;background:#fffef8;color:#294c3b;
  font:500 22px/1.35 var(--sans);cursor:pointer;touch-action:manipulation;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button.cw-primary {
  min-height:66px;font-size:25px;font-weight:600;color:#fff;background:#286650;border-color:#286650;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button.cw-skip {
  display:inline-flex;flex-basis:auto;background:#f6f7ee;color:#526450;border-color:#d9e2d3;
}
.workspace.view-quiz .challenge-shell.challenge-type-dictation button:focus-visible {outline:3px solid #528b76;outline-offset:3px;}
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button:disabled,
.workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading button:disabled {opacity:.48;cursor:default;}

@media (min-width:701px) {
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing.cw-expanded {
    grid-template-columns:minmax(0,430px) 144px;justify-content:center;max-width:none;gap:12px 22px;
  }
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-actions {grid-column:2;grid-row:2;align-self:start;padding-top:calc(var(--cw-pad-size) * .14);}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-controls {grid-template-columns:minmax(0,1fr);gap:18px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button {min-height:64px;font-size:24px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button.cw-primary {min-height:86px;font-size:28px;}
}
@media (min-width:900px) and (orientation:landscape) {
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-layout {
    grid-template-columns:minmax(270px,.8fr) minmax(0,1.5fr);max-width:1280px;gap:30px;
  }
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-prompt {font-size:34px;line-height:1.6;margin-bottom:28px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts {gap:14px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts button {min-height:76px;font-size:24px!important;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing.cw-expanded {
    --cw-pad-size:min(460px,max(220px,calc(100cqh - 78px)));
    grid-template-columns:minmax(0,460px) 136px;gap:14px 22px;
  }
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-status {font-size:23px!important;}
}
@media (min-width:701px) and (max-width:999px) and (orientation:landscape) {
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-layout {grid-template-columns:minmax(230px,.85fr) minmax(0,1.4fr);gap:18px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-prompt {font-size:28px;margin-bottom:18px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts {gap:9px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts button {gap:5px;font-size:21px!important;min-height:62px;padding-inline:5px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing.cw-expanded {--cw-pad-size:min(380px,max(170px,calc(100cqh - 74px)));grid-template-columns:minmax(0,1fr) 100px;gap:10px 14px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button {font-size:21px;min-height:56px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button.cw-primary {font-size:25px;min-height:72px;}
}
@media (max-width:700px) {
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-layout {gap:14px;flex:none;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-prompt {font-size:27px;line-height:1.4;margin-bottom:12px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts {gap:10px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts button {min-height:56px;font-size:22px!important;border-radius:14px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts:has(.cw-skip:not([hidden])) {gap:8px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts:has(.cw-skip:not([hidden])) button {gap:5px;padding-inline:4px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts:has(.cw-skip:not([hidden])) svg {width:22px;height:22px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts button.cw-skip {min-height:38px;padding:5px 8px;font-size:15px!important;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-audio-status {font-size:16px;line-height:1.4;margin-top:8px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing.cw-expanded {--cw-pad-size:min(350px,max(210px,calc(100cqh - 328px)));gap:10px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation:has(.cw-review:not([hidden])) .challenge-writing.cw-expanded {--cw-pad-size:min(350px,max(200px,calc(100cqh - 392px)));}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation:has(.cw-review:not([hidden])) .challenge-audio-status {display:none;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-status {font-size:19px!important;min-height:0;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-controls {gap:8px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button {min-height:52px;font-size:21px;border-radius:13px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button.cw-primary {min-height:60px;font-size:24px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .cw-review button {min-height:52px;font-size:21px!important;}
}
@media (max-height:600px) and (orientation:landscape) {
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-layout {gap:16px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-body {justify-content:flex-start;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-layout {margin-block:auto;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-prompt {font-size:25px;line-height:1.4;margin-bottom:14px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-heading .challenge-audio-status {display:none;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing-prompts button {min-height:52px;font-size:21px!important;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing.cw-expanded {--cw-pad-size:min(350px,max(160px,calc(100cqh - 68px)));grid-template-columns:minmax(0,1fr) 106px;gap:8px 12px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-controls {gap:10px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button {min-height:46px;font-size:20px;padding-block:8px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing button.cw-primary {min-height:60px;font-size:24px;}
  .workspace.view-quiz .challenge-shell.challenge-type-dictation .challenge-writing .cw-status {font-size:18px!important;}
}

/* pack.css */
/* The school badge and name hold the header's left corner on every screen with a header. */
.school-brand{display:flex;align-items:center;gap:12px;min-width:0}
.school-title{font-family:var(--serif);font-size:21px;font-weight:700;line-height:1.3;letter-spacing:2px;color:#2d6054;white-space:nowrap}
@media(max-width:820px){.school-brand{gap:10px}.school-title{font-size:18px;letter-spacing:1.5px}}
@media(max-width:700px){.school-brand{gap:8px}.school-title{font-size:16px;letter-spacing:1px}}
@media(max-width:360px){.school-title{font-size:15px;letter-spacing:.5px}}
/* ICP filing number, shown only on aiducation.hk.cn (inline script in index.html); the login screen leaves room for it. */
.icp-footer{padding:10px 16px 14px;text-align:center;font-family:var(--sans);font-size:12px;line-height:1.5}
.icp-footer a{color:#6b7d74;text-decoration:none}
.icp-footer a:hover{text-decoration:underline}
body:has(.icp-footer:not([hidden])) .school-login{min-height:calc(100svh - 44px)}
body:has(.lesson-shell) .icp-footer{display:none}
/* Last seen at the login form (index.html head script): the header and poem-loading text stay hidden until the form replaces them. */
html[data-school-boot=login] .site-header{display:none}
html[data-school-boot=login] #app>.loading-page>:is(.spinner,.spinner+p){visibility:hidden}
/* aiducation.hk.cn showcase (showcase.mjs): no school badge, name or header at all, and a dialog explaining account-only features. */
html[data-showcase] .site-header{display:none}
.showcase-dialog p{margin:0 0 20px;color:var(--ink);font:16px/1.75 var(--sans)}
.showcase-dialog .button{width:100%;min-height:48px;justify-content:center}
.school-badge{display:block;flex:none;width:auto;height:48px;margin-block:-4px}
@media(max-width:820px){.school-badge{height:42px}}
@media(max-width:700px){.school-badge{height:40px;margin-block:0}}
/* One-tap resource pack: a small pill under the library title, with a grade filter on its left for teachers (app.js renderPackButtons). */
.library-heading .pack-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}
.pack-filter{min-height:32px;padding:4px 30px 4px 14px;border:1.5px solid #9dbca8;border-radius:100px;background:#fffdf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23286249' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center/12px;color:#286249;font-family:var(--sans,inherit);font-size:13px;font-weight:600;line-height:1.3;letter-spacing:.3px;cursor:pointer;box-shadow:0 2px 6px #203e2510;appearance:none;-webkit-appearance:none}
.pack-filter:hover{background-color:#edf1e6}
.pack-filter:focus-visible{outline:3px solid #c57b13;outline-offset:3px}
.pack-button{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:4px 14px;white-space:nowrap;border:1.5px solid #9dbca8;border-radius:100px;background:#fffdf6;color:#286249;font-family:var(--sans,inherit);font-size:13px;font-weight:600;line-height:1.3;letter-spacing:.3px;cursor:pointer;box-shadow:0 2px 6px #203e2510;transition:background .15s,border-color .15s}
.pack-button::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#c57b13}
.pack-button:hover:not(:disabled){background:#edf1e6}
.pack-button:focus-visible{outline:3px solid #c57b13;outline-offset:3px}
.pack-button[aria-busy=true]::before{background:#286249;animation:pack-pulse 1.2s ease-in-out infinite}
.pack-button[data-state=paused]::before{background:#8a9a8c}
.pack-button[data-state=error]{border-color:#d9a08c;color:#a2492f}
.pack-button[data-state=error]::before{background:#c2533b}
.pack-button[data-state=complete]{border-color:#7fb08f;background:#eef7ee;color:#3c6b4d;cursor:default;box-shadow:none}
.pack-button[data-state=complete]::before{background:#3c8f5a}
.pack-button:disabled{opacity:1}
.pack-button[hidden]{display:none}
@keyframes pack-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@media(max-width:820px){.pack-button,.pack-filter{min-height:30px;font-size:12px}.pack-button{padding:3px 12px}.pack-filter{padding:3px 28px 3px 12px;background-position:right 10px center}}
@media(max-width:380px){.pack-button{gap:5px;padding:3px 10px;letter-spacing:0}.pack-filter{padding-left:10px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){.pack-button[aria-busy=true]::before{animation:none}}
/* Each poem card's round download button sits where the grade ribbon was, in the poem's colour; a ring fills while its files arrive. */
.poem-download{position:absolute;top:15px;right:15px;z-index:3;display:grid;place-items:center;width:38px;height:38px;padding:0;border:2px solid #fffdf6;border-radius:50%;background:var(--poem-color);color:#fff;cursor:pointer;box-shadow:0 2px 7px #2c4e3833;transition:transform .22s,box-shadow .2s,background .2s}
.poem-download::after{content:"";position:absolute;inset:-5px;border-radius:50%}
.poem-download>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.poem-download:focus-visible{outline:3px solid #c57b13;outline-offset:3px}
.poem-download:hover:not(:disabled){box-shadow:0 4px 12px #2c4e3845}
.poem-download[style*=--pack-pct]{background:radial-gradient(closest-side,var(--poem-color) 79%,transparent 81%),conic-gradient(#fff var(--pack-pct),#ffffff59 0)}
.poem-download[data-state=checking]{opacity:.75;cursor:progress}
.poem-download[data-state=error]{background:#c2533b}
.poem-download[data-state=complete]{cursor:default}
.poem-download:disabled{opacity:1}
.poem-download[data-state=checking]:disabled{opacity:.75}
.poem-download[hidden]{display:none}
@media(hover:hover){.poem-card:hover .poem-download{transform:translateY(-4px)}.poem-card:has(.poem-download:hover) .poem-entry{border-color:var(--poem-color);transform:translateY(-4px) rotate(-.3deg)}}
@media(max-width:700px){.poem-download{top:10px;right:10px;width:32px;height:32px}.poem-download>svg{width:17px;height:17px}.poem-download::after{inset:-6px}}
@media(prefers-reduced-motion:reduce){.poem-download{transition:none}}

/* syllable-parts.css */
/* The initial, final and tone of the character being practised after reading. */
.workspace.view-record .syllable-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:340px;margin:8px auto 2px;padding:0;list-style:none}
.workspace.view-record .syllable-part{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:5px 3px 6px;border:1px solid #d6e5da;border-bottom-width:3px;border-radius:12px;background:#f4faf5;text-align:center}
/* Darker than --muted so the part name stays legible (4.8:1 or more) on the green, yellow and red washes. */
.workspace.view-record .syllable-part .part-name{font-size:14px;line-height:1.35;color:#55695c}
.workspace.view-record .syllable-part .part-sound{font:600 21px/1.3 var(--sans);color:var(--ink);white-space:nowrap}
.workspace.view-record .syllable-part .part-state{display:inline-flex;align-items:center;justify-content:center;gap:2px;font-size:14px;font-weight:600;line-height:1.35;color:var(--muted);white-space:nowrap}
.workspace.view-record .syllable-part .part-state svg{width:15px;height:15px;flex-shrink:0;stroke-width:3}
/* Score colours from student-ui.css: green read right, yellow nearly, red to practise. */
.workspace.view-record .syllable-part.ok{background:linear-gradient(180deg,var(--score-ok-wash),var(--score-ok-soft));border-color:var(--score-ok-pale);border-bottom-color:var(--score-ok-line);box-shadow:inset 0 -2px 0 var(--score-ok-line)}
.workspace.view-record .syllable-part.ok .part-state{color:var(--score-ok)}
.workspace.view-record .syllable-part.near{background:linear-gradient(180deg,var(--score-warn-wash),var(--score-warn-soft));border-color:var(--score-warn-pale);border-bottom-color:var(--score-warn-line);box-shadow:inset 0 -2px 0 var(--score-warn-line)}
.workspace.view-record .syllable-part.near .part-state{color:var(--score-warn-ink)}
.workspace.view-record .syllable-part.miss{background:linear-gradient(180deg,var(--score-error-wash),var(--score-error-soft));border-color:var(--score-error-pale);border-bottom-color:var(--score-error-line);box-shadow:inset 0 -2px 0 var(--score-error-line)}
.workspace.view-record .syllable-part.miss .part-state{color:var(--score-error)}
.workspace.view-record .syllable-part:is(.unknown,.none){background:#f7f7f3;border-color:#e4e4dc}
/* Phones: the cards sit beside the character so the next button stays in view. */
@media (max-width:700px) and (orientation:portrait){
.workspace.view-record .record-tool[data-step=words]:has(>.syllable-parts){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center}
.workspace.view-record .record-tool[data-step=words]:has(>.syllable-parts)>*{grid-column:1/-1}
.workspace.view-record .record-tool[data-step=words]:has(>.syllable-parts)>.record-review{grid-column:1}
.workspace.view-record .record-tool[data-step=words]>.syllable-parts{grid-column:2;margin:0;gap:6px}
}
@media (max-width:400px) and (orientation:portrait){
.workspace.view-record .record-tool[data-step=words]:has(>.syllable-parts){column-gap:8px}
.workspace.view-record .syllable-part{padding:4px 2px 5px}
.workspace.view-record .syllable-part .part-name{font-size:13px}
.workspace.view-record .syllable-part .part-sound{font-size:18px}
.workspace.view-record .syllable-part .part-state{font-size:13px}
}
@media (max-width:340px) and (orientation:portrait){
.workspace.view-record .record-tool[data-step=words]>.syllable-parts{gap:4px}
.workspace.view-record .syllable-part .part-name,.workspace.view-record .syllable-part .part-state{font-size:12px}
.workspace.view-record .syllable-part .part-sound{font-size:16px}
.workspace.view-record .syllable-part .part-state svg{display:none}
}
/* Phone landscape: the character already has its own column, and the cards
   carry the hint, so it is left out to keep the next button in view. */
@media (max-width:1180px) and (max-height:550px) and (orientation:landscape){
.workspace.view-record .record-tool[data-step=words]>.syllable-parts{grid-column:2;margin:0 auto;gap:6px}
.workspace.view-record .syllable-part{padding:3px 2px 4px}
.workspace.view-record .syllable-part .part-name{font-size:13px;line-height:1.25}
.workspace.view-record .syllable-part .part-sound{font-size:18px;line-height:1.2}
.workspace.view-record .syllable-part .part-state{font-size:13px;line-height:1.3}
.workspace.view-record .record-tool[data-step=words]:has(>.syllable-parts)>.record-word-hint{display:none}
}
@media (max-width:760px) and (max-height:550px) and (orientation:landscape){
.workspace.view-record .syllable-part .part-sound{font-size:15px}
.workspace.view-record .syllable-part .part-state{font-size:12px}
.workspace.view-record .syllable-part .part-state svg{display:none}
}
/* Each part to practise, one per line under a word's score in the results.
   Always present, so the characters of one line stay level. */
.workspace.view-report .word-analysis .word-result .word-part{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:var(--parts-height,1.35em);font:700 clamp(14px,1.45vw,17px)/1.35 var(--sans);color:var(--score-warn-ink);white-space:nowrap}
.workspace.view-report .word-analysis .word-result:is(.error,.poor) .word-part{color:var(--score-error)}
/* A narrow card keeps at least two characters of a part to a line. */
@supports (width:1cqi){.workspace.view-report .word-analysis .word-result .word-part{font-size:min(clamp(14px,1.45vw,17px),calc(var(--cell) / 2.2));white-space:normal}}
/* Weak-word cards turn sideways (swipe, drag, arrows or arrow keys); dots between
   the arrows show the position. 再讀一次 and 下一句 wait for the last card (app.js). */
.workspace.view-record .record-tool[data-step=words]{touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none}
.workspace.view-record .record-tool[data-step=words]>:is(.record-review,.syllable-parts,.record-word-hint){transform:translateX(var(--card-dx,0px));transition:transform .2s ease-out}
.workspace.view-record .record-tool[data-swiping]>:is(.record-review,.syllable-parts,.record-word-hint){transition:none}
.workspace.view-record .record-tool[data-card-enter=next]>:is(.record-review,.syllable-parts,.record-word-hint){animation:record-card-next .24s ease-out}
.workspace.view-record .record-tool[data-card-enter=previous]>:is(.record-review,.syllable-parts,.record-word-hint){animation:record-card-previous .24s ease-out}
@keyframes record-card-next{from{opacity:.2;transform:translateX(44px)}}
@keyframes record-card-previous{from{opacity:.2;transform:translateX(-44px)}}
.workspace.view-record .record-tool[data-step=words] .record-word-pager{align-items:center;gap:18px}
.workspace.view-record .record-card-dots{display:flex;align-items:center;justify-content:center;gap:7px}
.workspace.view-record .record-card-dots i{width:9px;height:9px;border-radius:5px;background:#ddd6c3;transition:width .2s,background-color .2s}
.workspace.view-record .record-card-dots i.seen{background:#9cbfa5}
.workspace.view-record .record-card-dots i.current{width:22px;background:var(--green)}
.workspace.view-record .record-tool[data-cards-locked=true] [data-action=record-word-step][data-value="1"]:not(:disabled){animation:record-card-hint 1.6s ease-in-out infinite}
@keyframes record-card-hint{50%{box-shadow:0 0 0 7px rgba(60,104,86,.18);background:rgba(60,104,86,.08)}}
.workspace.view-record .record-tool[data-step=words] .record-actions .button{white-space:nowrap}
@media (prefers-reduced-motion:reduce){
.workspace.view-record .record-tool[data-step=words] *{animation:none!important;transition:none!important}
}
.workspace.view-record .record-cards-note{margin:2px 0 6px;font-size:15px;line-height:1.45;color:#7a6a45;text-align:center}
.workspace.view-record .record-tool[data-cards-locked=false] .record-cards-note{color:var(--green)}
/* Phones: a shorter painting keeps both choices under the cards in view. */
@media (max-width:700px) and (orientation:portrait){
.workspace.view-record .record-layout:has(.record-tool[data-step=words]) .record-art{max-height:132px}
.workspace.view-record .record-tool[data-step=words] .record-word-pager{margin:2px 0}
.workspace.view-record .record-cards-note{margin:0 0 4px;font-size:14px}
}

/* chat-voice.css */
/* Speech input in the poet conversation: a quiet microphone beside the send
   button, red while listening, and one line of status below the box. */
.chat-form .chat-voice{background:#eef5e8;color:#3f7a57;border:1px solid #cfe0c6;box-shadow:none}
.chat-form .chat-voice:hover:not(:disabled){background:#e2eed9}
.chat-form .chat-voice.recording{background:#c9503f;border-color:#b0473a;color:#fff;animation:chat-voice-pulse 1.3s ease-in-out infinite}
.chat-form .chat-voice:disabled{opacity:.75;cursor:default}
.chat-form .chat-voice .spinner{width:18px;height:18px;margin:0}
.chat-voice-status{margin:7px 4px 0;font-size:13px;line-height:1.6;color:var(--muted)}
.chat-voice-status:empty{display:none}
.chat-voice-status.live{color:#b0473a;font-variant-numeric:tabular-nums}
.chat-voice-status.done{color:#3f7a57}
.chat-voice-status.error{color:var(--red)}
@keyframes chat-voice-pulse{0%,100%{box-shadow:0 0 0 0 rgba(201,80,63,.45)}50%{box-shadow:0 0 0 7px rgba(201,80,63,0)}}
@media(prefers-reduced-motion:reduce){.chat-form .chat-voice.recording{animation:none}}
@media(max-width:600px){.chat-voice-status{font-size:12px;margin-top:5px}}

/* sound-case.css */
/* Listening choice forms: the police line-up (suspects holding placards), the little
   doctor's clinic (medicine bottles), the beach treasure hunt (chests with name plates)
   and the supermarket (goods with hanging price tags). challenge.mjs picks the form.
   --cell is one sprite cell's width/height, --tall its height/width.
   The case fills the challenge body; its container units size the scene and the
   answer cards so every question fits without page scrolling. */
.challenge-shell .sound-case{--gap:12px;--pad:6px;--cell:255/480;--tall:1.88;flex:1 1 auto;min-height:0;width:100%;max-width:1080px;margin:0 auto;container:sound-case / size;display:grid;grid-template-columns:minmax(0,43fr) minmax(0,57fr);align-items:center;column-gap:clamp(20px,3.6vw,44px)}
.challenge-shell .sound-case.is-police{--cell:255/472}
.challenge-shell .sound-case.is-chest{--cell:279/270;--tall:.97}
.challenge-shell .sound-case.is-shop{--cell:262/660;--tall:2.52}
.challenge-shell .sound-case-scene{position:relative;display:block;justify-self:center;width:min(100%,96cqh);aspect-ratio:1/1;padding:0;border:0;border-radius:26px;overflow:hidden;background:#f3ead6;box-shadow:0 12px 28px rgba(84,66,34,.16);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.sound-case-picture{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;pointer-events:none;-webkit-user-drag:none;user-select:none;transition:opacity .45s ease}
/* Above the question scene: the recovered/caught picture after a right answer, the crying bunny /
   sad puppy after a wrong or skipped one. Both cross-fade in over the scene without moving it. */
.sound-case-picture.is-after,.sound-case-picture.is-missed-pic{opacity:0}
.sound-case.is-solved .sound-case-picture.is-after,.sound-case.is-missed .sound-case-picture.is-missed-pic{opacity:1}
.sound-case-cue{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:9px;min-height:50px;max-width:calc(100% - 20px);padding:7px 18px 7px 8px;border-radius:999px;background:rgba(255,252,243,.95);color:#2f5a49;font:600 17px/1.25 var(--sans);white-space:nowrap;box-shadow:0 6px 16px rgba(70,56,30,.2);pointer-events:none}
.sound-case-cue svg{flex:none;width:36px;height:36px;padding:7px;border-radius:50%;background:#3e7160;color:#fffdf4}
.is-police .sound-case-cue{color:#29406b}.is-police .sound-case-cue svg{background:#2f4a7a}
.is-chest .sound-case-cue{color:#1d5560}.is-chest .sound-case-cue svg{background:#2b7b86}
.is-shop .sound-case-cue{color:#7a3420}.is-shop .sound-case-cue svg{background:#b8573a}
.sound-case:not(.is-heard):not(.is-answered) .sound-case-cue{animation:sound-case-call 1.6s ease-in-out infinite}
.sound-case-scene.is-playing .sound-case-cue svg{animation:sound-case-beat .6s ease-in-out infinite alternate}
.sound-case-scene:active .sound-case-cue{transform:translateX(-50%) scale(.97)}
.sound-case.is-solved .sound-case-scene{box-shadow:0 0 0 4px rgba(116,176,118,.45),0 12px 28px rgba(84,66,34,.16)}
.is-police.is-solved .sound-case-scene,.is-chest.is-solved .sound-case-scene{box-shadow:0 0 0 4px rgba(242,190,70,.55),0 12px 28px rgba(84,66,34,.16)}
.is-shop.is-solved .sound-case-scene{box-shadow:0 0 0 4px rgba(226,140,96,.5),0 12px 28px rgba(84,66,34,.16)}
@keyframes sound-case-call{0%,100%{box-shadow:0 6px 16px rgba(70,56,30,.2),0 0 0 0 rgba(62,113,96,.42)}55%{box-shadow:0 6px 16px rgba(70,56,30,.2),0 0 0 12px rgba(62,113,96,0)}}
@keyframes sound-case-beat{to{transform:scale(1.12)}}

.sound-case-work{min-width:0;display:flex;flex-direction:column;justify-content:center}
.workspace .challenge-shell .sound-case .challenge-prompt{margin:0 0 4px}
.workspace .challenge-shell .sound-case .challenge-instruction{margin:0 0 14px;font-size:15px}
.workspace .challenge-shell .sound-case .challenge-audio-status{display:block;min-height:28px;margin:12px 0 0;font-size:16px;line-height:1.5}
.sound-case-options{--n:4;--w:min(calc((54cqw - (var(--n) - 1) * var(--gap)) / var(--n) - 2 * var(--pad) - 4px),calc(54cqh / var(--tall)),170px);display:flex;justify-content:flex-start;align-items:flex-end;gap:var(--gap);padding-top:8px}
.sound-case-options:has(>:nth-child(3):last-child){--n:3}.sound-case-options:has(>:nth-child(2):last-child){--n:2}
.challenge-shell .sound-case-option{position:relative;flex:none;display:block;width:calc(var(--w) + 2 * var(--pad) + 4px);min-width:56px;padding:var(--pad);border:2px solid #eadfca;border-radius:18px;background:#fffaf0;color:#2c4a3f;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;transition:transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease,opacity .18s ease}
.challenge-shell .sound-case-option:disabled{cursor:default}
.sound-case-figure{position:relative;display:block;width:100%;aspect-ratio:var(--cell);container-type:inline-size}
.sound-case-art{position:absolute;inset:0;overflow:hidden;border-radius:12px}
.sound-case-art img{position:absolute;top:0;left:0;width:400%;max-width:none;height:100%;pointer-events:none;-webkit-user-drag:none;user-select:none}
.sound-case-art.is-cell-1 img{left:-100%}.sound-case-art.is-cell-2 img{left:-200%}.sound-case-art.is-cell-3 img{left:-300%}
.sound-case-tag{position:absolute;left:15%;right:15%;top:42%;bottom:17%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3cqi;font:600 clamp(13px,21cqi,40px)/1.1 var(--sans);text-align:center;letter-spacing:0;color:#2c4a3f;overflow:hidden}
.sound-case-tag>span{max-width:100%;overflow-wrap:anywhere}
.sound-case-tag .challenge-tone{flex:none;width:58cqi;height:29cqi;color:#5c8a69}
.sound-case-tag:has(.challenge-tone)>span{font-size:clamp(11px,17cqi,30px)}
.is-police .sound-case-tag{left:15%;right:15%;top:48%;bottom:27%;gap:1cqi;padding:0 2px;border:1px solid #e3d5bb;border-radius:4px;background:#fffbf3;box-shadow:0 1px 3px rgba(70,50,24,.18);color:#2f3240;font-size:clamp(12px,19cqi,36px)}
.is-police .sound-case-tag .challenge-tone{width:42cqi;height:19cqi;color:#4a628f}
.is-police .sound-case-tag:has(.challenge-tone)>span{font-size:clamp(10px,15cqi,26px)}
.sound-case-mark{position:absolute;top:-10px;right:-10px;z-index:2;display:none;place-items:center;width:40px;height:40px;border-radius:50%;background:#3e7f5c;color:#fff;box-shadow:0 4px 10px rgba(30,60,40,.3)}
.sound-case-mark svg{width:24px;height:24px}
.is-police .sound-case-mark{top:-12px;right:auto;left:50%;transform:translateX(-50%);width:auto;height:auto;min-height:32px;gap:4px;padding:3px 11px 3px 7px;border-radius:999px;background:#2f4a7a;font:700 14px/1 var(--sans);white-space:nowrap;grid-auto-flow:column}
.is-police .sound-case-mark svg{width:22px;height:22px}
.is-police.is-solved .sound-case-mark::after{content:"抓到了"}
.is-police.is-missed .sound-case-mark::after{content:"是他"}
/* Chest: a cream name plate over the painted one; shop: the hanging price tag under the shelf. */
.is-chest .sound-case-tag{left:18%;right:18%;top:49%;bottom:16%;gap:0;padding:0 2px;border:2px solid #b5873d;border-radius:5px;background:#fdf6e2;box-shadow:0 1px 3px rgba(70,50,24,.28);color:#3a2c18;font-size:clamp(12px,17cqi,34px)}
.is-chest .sound-case-tag .challenge-tone{width:34cqi;height:14cqi;color:#8f5d1d}
.is-chest .sound-case-tag:has(.challenge-tone)>span{font-size:clamp(11px,13cqi,24px)}
.is-shop .sound-case-tag{left:26%;right:26%;top:70%;bottom:4%;gap:2cqi;color:#4a2e1e;font-size:clamp(12px,17cqi,34px)}
.is-shop .sound-case-tag .challenge-tone{width:40cqi;height:20cqi;color:#b8573a}
.is-shop .sound-case-tag:has(.challenge-tone)>span{font-size:clamp(11px,13cqi,24px)}
.is-chest .sound-case-mark,.is-shop .sound-case-mark{top:-12px;right:auto;left:50%;transform:translateX(-50%);width:auto;height:auto;min-height:32px;gap:4px;padding:3px 11px 3px 7px;border-radius:999px;font:700 14px/1 var(--sans);white-space:nowrap;grid-auto-flow:column}
.is-chest .sound-case-mark{background:#c8902c}.is-shop .sound-case-mark{background:#b8573a}
.is-chest .sound-case-mark svg,.is-shop .sound-case-mark svg{width:22px;height:22px}
.is-chest.is-solved .sound-case-mark::after{content:"寶藏"}
.is-chest.is-missed .sound-case-mark::after{content:"寶藏在這"}
.is-shop.is-solved .sound-case-mark::after{content:"買對了"}
.is-shop.is-missed .sound-case-mark::after{content:"要買這個"}

.sound-case:not(.is-heard):not(.is-answered) .sound-case-option{opacity:.72}
.challenge-shell .sound-case-option[aria-pressed="true"]{border-color:#4f8a66;background:#eaf2e2;transform:translateY(-6px);box-shadow:0 10px 18px rgba(50,80,60,.18)}
.challenge-shell .is-police .sound-case-option[aria-pressed="true"]{border-color:#d9a52c;background:#fff3d2;box-shadow:0 0 0 4px rgba(244,196,72,.32),0 10px 18px rgba(80,60,20,.2)}
.challenge-shell .is-chest .sound-case-option[aria-pressed="true"]{border-color:#c8902c;background:#fff3d2;box-shadow:0 0 0 4px rgba(244,196,72,.3),0 10px 18px rgba(80,60,20,.2)}
.challenge-shell .is-shop .sound-case-option[aria-pressed="true"]{border-color:#c8673f;background:#fdebdc;box-shadow:0 0 0 4px rgba(226,140,96,.26),0 10px 18px rgba(90,50,30,.18)}
.is-police .sound-case-option[aria-pressed="true"] .sound-case-art::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 72% 52% at 50% 32%,rgba(255,238,170,.42),transparent 72%)}
.sound-case.is-answered .sound-case-option:not(.is-correct){opacity:.55}
.sound-case.is-missed .sound-case-option[aria-pressed="true"]:not(.is-correct){border-color:#d6cdbb;background:#f3f0e8;box-shadow:none;filter:grayscale(.45)}
.challenge-shell .sound-case-option.is-correct{opacity:1;border-color:#4f8a66;background:#e3efd9}
.challenge-shell .is-police .sound-case-option.is-correct{border-color:#2f4a7a;background:#e6ebf5}
.challenge-shell .is-chest .sound-case-option.is-correct{border-color:#c8902c;background:#fff1cc}
.challenge-shell .is-shop .sound-case-option.is-correct{border-color:#b8573a;background:#fbe6d8}
.sound-case-option.is-correct .sound-case-mark{display:grid}
.sound-case.is-solved .sound-case-option.is-correct .sound-case-mark{animation:sound-case-pop .45s ease-out}
.sound-case:is(.is-police,.is-chest,.is-shop).is-solved .sound-case-option.is-correct .sound-case-mark{animation-name:sound-case-pop-centred}
@keyframes sound-case-pop{0%{transform:scale(.3);opacity:0}70%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}
@keyframes sound-case-pop-centred{0%{transform:translateX(-50%) scale(.3);opacity:0}70%{transform:translateX(-50%) scale(1.15);opacity:1}100%{transform:translateX(-50%) scale(1)}}

/* Tablet portrait: a wide scene above the question. */
@media (min-width:701px) and (orientation:portrait){
  .challenge-shell .sound-case{grid-template-columns:minmax(0,1fr);align-content:center;row-gap:22px}
  .challenge-shell .sound-case-scene{width:100%;height:34cqh;aspect-ratio:auto}
  .sound-case-picture{object-position:50% 32%}
  .sound-case-work{align-items:center;text-align:center}
  .sound-case-options{--w:min(calc((100cqw - (var(--n) - 1) * var(--gap)) / var(--n) - 2 * var(--pad) - 4px),calc(32cqh / var(--tall)),190px);justify-content:center}
}
/* Phones: the scene takes the height the cards leave free, so the patient or officer
   stays visible above the listen pill instead of a blank gap under the cards. */
@media (max-width:700px){
  .challenge-shell .sound-case{--gap:8px;--pad:3px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;align-content:stretch;row-gap:10px}
  .challenge-shell .sound-case-scene{width:100%;height:auto;min-height:0;align-self:stretch;aspect-ratio:auto;border-radius:18px}
  .sound-case-picture{object-position:50% 38%}
  .sound-case-cue{bottom:8px;min-height:44px;gap:7px;padding:5px 14px 5px 6px;font-size:15px}
  .sound-case-cue svg{width:32px;height:32px;padding:6px}
  .sound-case-work{align-items:center;text-align:center}
  .workspace .challenge-shell .sound-case .challenge-prompt{font-size:20px;line-height:1.4}
  .workspace .challenge-shell .sound-case .challenge-instruction{display:none}
  .workspace .challenge-shell .sound-case .challenge-audio-status{min-height:22px;margin-top:8px;font-size:14px;text-align:center}
  .sound-case-options{--w:min(calc((100cqw - (var(--n) - 1) * var(--gap)) / var(--n) - 2 * var(--pad) - 4px),calc(38cqh / var(--tall)),150px);justify-content:center;padding-top:10px}
  .sound-case-tag{left:12%;right:12%;font-size:clamp(14px,25cqi,40px)}
  .sound-case-tag .challenge-tone{width:52cqi;height:22cqi}
  .sound-case-tag:has(.challenge-tone)>span{font-size:clamp(12px,20cqi,30px)}
  .is-police .sound-case-tag{left:10%;right:10%;font-size:clamp(13px,23cqi,36px)}
  .is-police .sound-case-tag .challenge-tone{width:40cqi;height:15cqi}
  .is-police .sound-case-tag:has(.challenge-tone)>span{font-size:clamp(11px,17cqi,26px)}
  .is-police .sound-case-mark{top:-10px;min-height:26px;padding:2px 8px 2px 5px;font-size:12px}.is-police .sound-case-mark svg{width:18px;height:18px}
  .is-chest .sound-case-tag{left:6%;right:6%;top:43%;bottom:8%;border-width:1.5px;border-radius:4px;font-size:clamp(12px,19cqi,34px)}
  .is-chest .sound-case-tag .challenge-tone{width:40cqi;height:13cqi}
  .is-chest .sound-case-tag:has(.challenge-tone)>span{font-size:clamp(11px,16cqi,24px)}
  .is-shop .sound-case-tag{left:22%;right:22%;font-size:clamp(12px,19cqi,34px)}
  .is-shop .sound-case-tag:has(.challenge-tone)>span{font-size:clamp(11px,15cqi,24px)}
  :is(.is-chest,.is-shop) .sound-case-mark{top:-10px;min-height:26px;padding:2px 8px 2px 5px;font-size:12px}:is(.is-chest,.is-shop) .sound-case-mark svg{width:18px;height:18px}
  .challenge-shell .sound-case-option{border-radius:14px}
  .sound-case-art{border-radius:10px}
  .sound-case-mark{top:-8px;right:-8px;width:32px;height:32px}.sound-case-mark svg{width:20px;height:20px}
}
@media (max-height:560px) and (orientation:landscape){
  .workspace .challenge-shell .sound-case .challenge-instruction{display:none}
  .sound-case-cue{bottom:8px;min-height:44px;font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  .sound-case *,.sound-case *::after{animation:none!important;transition:none!important}
  .challenge-shell .sound-case-option[aria-pressed="true"]{transform:none}
}

/* self-check.css */
/* school69 輕量自查: Shishi asks which characters felt wrong, then gives a small painting. */
dialog.self-check{--tap:#e2862f;--tap-soft:#fff3e4;width:min(900px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:0;border-radius:28px;background:#fffdf6;color:var(--ink);box-shadow:0 24px 60px #304c4330,0 0 0 1px #e7e2d2}
/* Nearly opaque: the score arriving behind the sheet is not visible while the pupil chooses. */
dialog.self-check::backdrop{background:#f3f1e8f2;backdrop-filter:blur(8px)}
.self-check-sheet{position:relative;padding:26px 30px 26px}
.self-check-sheet::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 12% 0,#f4ead2 0,transparent 42%),radial-gradient(circle at 100% 100%,#eef2e4 0,transparent 40%);pointer-events:none}
.self-check-top{position:relative;display:flex;align-items:flex-end;gap:16px;margin-bottom:22px}
.self-check-shishi{width:118px;height:160px;flex-shrink:0}
.self-check-shishi img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 10px #304c4322)}
.self-check-bubble{position:relative;background:#fff;border:2px solid #e3dcc6;border-radius:22px;padding:16px 22px 15px;margin-bottom:34px;box-shadow:0 6px 0 #ece4cc}
.self-check-bubble::after{content:"";position:absolute;left:-13px;bottom:22px;width:22px;height:22px;background:#fff;border-left:2px solid #e3dcc6;border-bottom:2px solid #e3dcc6;transform:rotate(45deg);border-radius:0 0 0 5px}
.self-check-bubble h2{font:700 25px/1.45 var(--serif);margin:0;color:var(--ink)}
.self-check-bubble p{margin:6px 0 0;font-size:15px;color:var(--muted)}
.self-check-speak{display:inline-flex;align-items:center;gap:6px;margin-left:8px;vertical-align:3px;min-height:32px;border:0;background:var(--green-soft);color:var(--green);border-radius:99px;padding:4px 12px;font:500 14px var(--sans);cursor:pointer}
.self-check-speak svg{width:17px;height:17px}
.self-check-speak[data-audio-state]{background:var(--green);color:#fff}
.self-check-tiles{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;margin:4px 0 26px}
.self-check-clause{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.self-check-tile{--size:92px;position:relative;width:var(--size);border:0;background:none;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font:inherit;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.self-check-tiles[data-size="small"] .self-check-tile{--size:68px}
.self-check-pinyin{font:500 17px 'School Pinyin',var(--sans);color:var(--muted);height:24px;white-space:nowrap}
.self-check-box{position:relative;width:var(--size);height:var(--size);border-radius:16px;background:#fff;border:2px solid #e6e0cc;display:grid;place-items:center;font:600 calc(var(--size)*.58)/1 var(--serif);box-shadow:0 5px 0 #ebe5d0;transition:transform .15s,background .15s}
.self-check-box::before{content:"";position:absolute;inset:10px;background:linear-gradient(#dcdccd,#dcdccd) center/1px 100% no-repeat,linear-gradient(#dcdccd,#dcdccd) center/100% 1px no-repeat;opacity:.55;border-radius:4px}
.self-check-box b{position:relative;font-weight:600}
.self-check-tile.on .self-check-box{background:var(--tap-soft);border-color:#f0c48f;box-shadow:0 5px 0 #f0d8b4;transform:translateY(-2px)}
.self-check-tile.on .self-check-pinyin{color:#b8661c}
.self-check-ring{position:absolute;left:-12%;top:-9%;width:124%;height:118%;pointer-events:none;overflow:visible}
.self-check-ring path{fill:none;stroke:var(--tap);stroke-width:5.5;stroke-linecap:round}
.self-check-tile:not(.on) .self-check-ring{display:none}
.self-check-actions{position:relative;display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.self-check-button{min-width:230px;min-height:62px;border-radius:99px;font:600 20px var(--sans);display:inline-flex;align-items:center;justify-content:center;gap:10px;border:2px solid transparent;padding:10px 26px;cursor:pointer;touch-action:manipulation}
.self-check-button svg{width:24px;height:24px}
.self-check-button.done{background:var(--green);color:#fff;box-shadow:0 5px 0 #0e5a48}
.self-check-button.done:disabled{background:#c9d3c8;box-shadow:0 5px 0 #b5c0b4;color:#fff;cursor:default}
.self-check-button.good{background:#fff;border-color:#d6dccd;color:var(--green);box-shadow:0 5px 0 #e4e6da}
.self-check-button.good:disabled{color:#a9b5ab;cursor:default}
.self-check-skip{position:relative;display:block;margin:12px auto -8px;min-height:36px;font:14px var(--sans);color:#8f978c;border:0;background:none;padding:4px 14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.self-check-skip:disabled{opacity:.45;cursor:default}
.self-check-reward{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:4px 0 6px}
.self-check-reward .self-check-top{justify-content:center;margin-bottom:10px}
.self-check-picture{margin:2px 0 18px;background:#fff;padding:12px 12px 10px;border-radius:14px;box-shadow:0 10px 26px #304c4324,0 0 0 1px #ece6d4;transform:rotate(-1.5deg)}
.self-check-picture img{display:block;width:min(340px,62vw,calc(100dvh - 420px));min-width:200px;height:auto;aspect-ratio:1;border-radius:8px;background:#f1eee2}
.self-check-picture figcaption{font:600 20px var(--serif);letter-spacing:4px;text-align:center;margin-top:8px;color:var(--ink);max-width:min(340px,62vw)}
.self-check-footer{min-height:62px;display:flex;align-items:center;justify-content:center}
.self-check-listen{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:16px;margin:0}
.self-check-dots i{display:inline-block;width:7px;height:7px;margin:0 2px;border-radius:50%;background:var(--green);animation:self-check-dot 1.2s infinite ease-in-out}
.self-check-dots i:nth-child(2){animation-delay:.2s}.self-check-dots i:nth-child(3){animation-delay:.4s}
@keyframes self-check-dot{0%,100%{opacity:.3}50%{opacity:1}}
/* The sheet and the painting spread like ink on paper, the same blot as the 文化村 album on aiducation.asia. */
dialog.self-check[open]{animation:self-check-bleed 2.6s cubic-bezier(.5,.05,.4,1)}
dialog.self-check[open]::backdrop{animation:self-check-fade .9s ease-out}
.self-check-sheet,.self-check-reward{animation:self-check-ink 2s cubic-bezier(.4,.1,.3,1)}
.self-check-picture img{animation:self-check-bleed 2.8s cubic-bezier(.5,.05,.4,1) .2s backwards}
@keyframes self-check-bleed{from{-webkit-mask:url('media/ink-blot.webp') 50% 50%/0% 0% no-repeat;mask:url('media/ink-blot.webp') 50% 50%/0% 0% no-repeat}to{-webkit-mask:url('media/ink-blot.webp') 50% 50%/300% 300% no-repeat;mask:url('media/ink-blot.webp') 50% 50%/300% 300% no-repeat}}
@keyframes self-check-fade{from{opacity:0}}
@keyframes self-check-ink{from{opacity:0;filter:blur(8px)}}
@media (prefers-reduced-motion:reduce){.self-check-dots i{animation:none;opacity:.7}.self-check-box{transition:none}dialog.self-check[open],dialog.self-check[open]::backdrop,.self-check-sheet,.self-check-reward,.self-check-picture img{animation:none}}
/* Phones: a bottom sheet with smaller tiles. */
@media (max-width:600px){
  dialog.self-check{width:100vw;max-height:94dvh;margin:auto 0 0;border-radius:26px 26px 0 0}
  .self-check-sheet{padding:18px 14px 22px}
  .self-check-top{gap:8px;margin-bottom:16px}.self-check-shishi{width:78px;height:108px}
  .self-check-bubble{padding:12px 14px;margin-bottom:22px;border-radius:18px}.self-check-bubble h2{font-size:19px}.self-check-bubble p{font-size:13px}
  .self-check-speak{margin:6px 0 0;display:flex;width:max-content}
  .self-check-clause{gap:6px}.self-check-tiles{gap:10px}
  .self-check-tile,.self-check-tiles[data-size="small"] .self-check-tile{--size:44px}
  .self-check-box{height:52px;border-radius:11px;font-size:30px}.self-check-box::before{inset:6px}
  .self-check-pinyin{font-size:12px;height:18px}
  .self-check-ring path{stroke-width:4.5}
  .self-check-actions{gap:10px}.self-check-button{min-width:0;flex:1;font-size:16px;min-height:54px;padding:8px 12px}
  .self-check-picture img{width:min(72vw,calc(100dvh - 380px))}
  .self-check-picture figcaption{font-size:17px;letter-spacing:2px;max-width:72vw}
}

/* weekly-report.css */
/* 上週學習報告 (school70): header 「我的週報」 button and the weekly card. */
.weekly-bell{position:relative;display:grid;place-items:center;width:56px;height:56px;padding:0;border:0;border-radius:16px;cursor:pointer;
  background:linear-gradient(150deg,#ffd978 0%,#f6b545 55%,#e8913a 100%);color:#6b3a10;
  box-shadow:inset 0 0 0 2px #fff4cf,inset 0 -4px 0 #d07a2a55,0 6px 14px -6px #b8661ccc;transition:transform .18s ease,box-shadow .18s ease}
.weekly-word{display:grid;font-family:var(--serif);font-size:17px;font-weight:800;line-height:1.08;letter-spacing:.06em;text-shadow:0 1px 0 #fff3c8}
@media (hover:hover){.weekly-bell:hover{transform:translateY(-2px) rotate(-3deg);box-shadow:inset 0 0 0 2px #fff4cf,inset 0 -4px 0 #d07a2a55,0 10px 18px -6px #b8661ccc}}
.weekly-bell:active{transform:translateY(1px) scale(.96)}
.weekly-bell:focus-visible{outline:3px solid #3a745f;outline-offset:3px}
.weekly-dot{position:absolute;top:-5px;right:-5px;width:16px;height:16px;border-radius:50%;background:#e2483b;box-shadow:0 0 0 2.5px #fffcf5,0 2px 4px #0003}
.weekly-bell.has-new{animation:weekly-wiggle 2.4s ease-in-out 1s 3}
.weekly-bell.has-new .weekly-dot{animation:weekly-pulse 1.6s ease-in-out infinite}
@keyframes weekly-wiggle{0%,40%,100%{transform:rotate(0)}8%{transform:rotate(-7deg) scale(1.06)}16%{transform:rotate(6deg) scale(1.06)}24%{transform:rotate(-3deg)}32%{transform:rotate(2deg)}}
@keyframes weekly-pulse{50%{transform:scale(1.25)}}
@media (max-width:700px){.weekly-bell{width:50px;height:50px;border-radius:14px}.weekly-word{font-size:15px}}

.weekly-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:28px;background:transparent;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
.weekly-dialog::-webkit-scrollbar{display:none}
.weekly-dialog::backdrop{background:rgb(24 44 38 / .5);backdrop-filter:blur(6px)}
.weekly-dialog[open]{animation:weekly-in .42s cubic-bezier(.2,.9,.3,1.15)}
@keyframes weekly-in{from{opacity:0;transform:translateY(24px) scale(.96)}}
.weekly-card{position:relative;display:grid;gap:14px;padding:0 22px 22px;border-radius:28px;color:#33413a;
 background:radial-gradient(120% 60% at 50% 0,#fff 0,#fffaf0 55%,#fbf3e2 100%);
 box-shadow:0 30px 60px -20px #10302880,inset 0 0 0 1px #ead9b5;font-family:inherit}
.weekly-card::after{content:"";position:absolute;inset:8px;border:1.5px solid #e8d3a6;border-radius:22px;pointer-events:none}
.weekly-hero{position:relative;margin:0 -22px;border-radius:28px 28px 0 0;overflow:hidden;aspect-ratio:3/2;background:#fbf3e2}
.weekly-hero img{display:block;width:100%;height:100%;object-fit:cover}
.weekly-hero::after{content:"";position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(transparent,#fffaf0)}
.weekly-ribbon{margin:0 0 8px}
.weekly-ribbon span{display:inline-block}
.weekly-ribbon span{padding:7px 26px 8px;border-radius:999px;background:#2f5d4f;color:#fff8e6;font-size:17px;font-weight:700;letter-spacing:.18em;box-shadow:0 6px 16px -6px #1d3f35aa,inset 0 0 0 2px #e3c27c}
.weekly-close{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#fffaf0d9;color:#2f5d4f;cursor:pointer;box-shadow:0 4px 12px -4px #0003}
.weekly-close svg{width:22px;height:22px}
.weekly-head{text-align:center;margin-top:-34px;position:relative;z-index:1}
.weekly-range{margin:0;color:#9a7a3c;font-size:15px;letter-spacing:.04em}
.weekly-head h2{margin:4px 0 0;font-size:clamp(23px,5.4vw,28px);line-height:1.35;color:#24493e;font-family:var(--serif);font-weight:700}

.weekly-week{padding:14px 12px 12px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px #efe3c9}
.weekly-week ol{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:0;padding:0;list-style:none;text-align:center}
.weekly-week li{display:grid;justify-items:center;gap:6px;font-size:14px;color:#8a8f84}
.weekly-week i{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:2px dashed #dcd3bf}
.weekly-week li.on{color:#2f5d4f;font-weight:700}
.weekly-week li.on i{border:0;background:radial-gradient(circle at 35% 30%,#f6d98b,#d9a441 70%,#b8842c);box-shadow:0 3px 8px -3px #a4741d}
.weekly-week li.on svg{width:20px;height:20px;fill:none;stroke:#fffdf3;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.weekly-week p{margin:10px 0 0;text-align:center;font-size:16px;color:#55665c}
.weekly-week p b{font-size:22px;color:#c0862a;margin:0 2px}

.weekly-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0;padding:0;list-style:none}
.weekly-stats li{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:12px 14px;border-radius:18px;background:var(--tint);color:var(--ink)}
.weekly-stats svg{grid-row:span 2;width:38px;height:38px;padding:8px;border-radius:12px;background:#fffc;color:var(--ink)}
.weekly-stats span{font-size:14px;opacity:.85}
.weekly-stats b{font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}
.weekly-stats small{font-size:14px;font-weight:500;margin-left:3px}
.weekly-stats [data-kind=read]{--tint:#e5f1e9;--ink:#2f6b55}
.weekly-stats [data-kind=write]{--tint:#e8ecf7;--ink:#2c3f78}
.weekly-stats [data-kind=challenge]{--tint:#fbf0d9;--ink:#9a6a17}
.weekly-stats [data-kind=chat]{--tint:#f9e6e3;--ink:#a2483f}

.weekly-label{margin:0 0 6px;font-size:14px;color:#9a7a3c;letter-spacing:.06em}
.weekly-line{margin:0;font-family:var(--serif);font-size:22px;line-height:1.45;color:#24493e;letter-spacing:.06em}
.weekly-best,.weekly-rise,.weekly-chars,.weekly-next,.weekly-badges{padding:16px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px #efe3c9}
.weekly-best{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center}
.weekly-score{--deg:calc(var(--score) * 3.6deg);display:grid;place-content:center;grid-auto-flow:column;align-items:baseline;width:92px;height:92px;border-radius:50%;
 background:radial-gradient(#fff 0 57%,transparent 58%),conic-gradient(#3a9a72 var(--deg),#e9efe9 0);color:#2f6b55}
.weekly-score b{font-size:34px;line-height:1;font-variant-numeric:tabular-nums}
.weekly-score small{font-size:14px;margin-left:1px}
.weekly-from{margin:4px 0 0;font-size:14px;color:#7c8a80}
.weekly-rise .weekly-line span{display:block;font-family:inherit;font-size:14px;letter-spacing:0;color:#7c8a80}
.weekly-bar{position:relative;display:flex;align-items:center;gap:10px;margin-top:12px}
.weekly-bar i{position:relative;flex:1;height:12px;border-radius:999px;background:#eef1ec;overflow:hidden}
.weekly-bar i::before{content:"";position:absolute;inset:0 auto 0 0;width:calc(var(--to) * 1%);background:linear-gradient(90deg,#f0d9a4 calc(var(--from) / var(--to) * 100%),#e08a5a calc(var(--from) / var(--to) * 100%),#d6604f);border-radius:inherit}
.weekly-bar span{font-size:15px;font-variant-numeric:tabular-nums;color:#8a8f84}
.weekly-bar .to{font-size:20px;font-weight:700;color:#c25444}
.weekly-up{margin:8px 0 0;font-size:15px;color:#55665c}
.weekly-up b{color:#c25444;font-size:20px}
.weekly-chars ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.weekly-chars li{display:grid;place-items:center;height:72px;border-radius:14px;background:linear-gradient(#f4faf6,#e3f1e8);box-shadow:inset 0 0 0 1.5px #b9dcc7}
.weekly-chars ruby{display:inline-flex;flex-direction:column-reverse;align-items:center;font-family:var(--serif);font-size:32px;line-height:1;color:#2f6b55}
.weekly-chars rt{font-family:'School Pinyin',var(--sans);font-size:13px;color:#4a8a6c;margin-bottom:4px}
.weekly-go{margin-top:12px;min-height:44px;padding:0 22px;border:0;border-radius:999px;background:#3a9a72;color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.weekly-badges ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px;margin:0;padding:0;list-style:none;text-align:center}
.weekly-medal{display:grid;justify-items:center;gap:2px}
.weekly-medal-disc svg{width:66px;height:66px;filter:drop-shadow(0 4px 6px #8a63202e)}
.weekly-medal .ribbon{fill:var(--rb);stroke:none}
.weekly-medal .rim{fill:var(--rim)}
.weekly-medal .face{fill:var(--face);stroke:#fff8;stroke-width:1.5}
.weekly-medal .star{fill:#fffbea;stroke:none}
.weekly-medal b{font-size:15px;color:#3b4a42}
.weekly-medal small{font-size:13px;color:#8a8f84}
.weekly-medal[data-hue=gold]{--rb:#c94f45;--rim:#d7a03c;--face:#efc867}
.weekly-medal[data-hue=jade]{--rb:#2f5d4f;--rim:#3f8f6c;--face:#7cc39e}
.weekly-medal[data-hue=rose]{--rb:#2c3f78;--rim:#d2706a;--face:#f1a593}
.weekly-medal[data-hue=navy]{--rb:#d7a03c;--rim:#2c3f78;--face:#6c84c4}
.weekly-shishi{display:grid;grid-template-columns:84px 1fr;align-items:end;gap:6px;margin-top:2px}
.weekly-shishi img{width:84px;height:auto;margin-bottom:-6px}
.weekly-shishi p{position:relative;margin:0 0 14px;padding:13px 16px;border-radius:18px 18px 18px 4px;background:#fdecef;color:#7a3a4a;font-size:17px;line-height:1.6}
.weekly-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:#8a8f84}
.weekly-nav button{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 12px;border:0;border-radius:999px;background:#f1ece0;color:#2f5d4f;font-size:15px;cursor:pointer}
.weekly-nav button:disabled{opacity:.35;cursor:default}
.weekly-nav svg{width:18px;height:18px}
.weekly-empty{justify-items:center;text-align:center;padding:40px 28px 32px}
.weekly-empty img{width:min(260px,70%);height:auto;border-radius:20px}
.weekly-empty h2{margin:0;font-size:24px;color:#24493e}
.weekly-empty p{margin:0;font-size:17px;line-height:1.7;color:#55665c}
@media (max-width:420px){.weekly-card{padding:0 14px 16px}.weekly-hero{margin:0 -14px}.weekly-stats b{font-size:22px}.weekly-line{font-size:20px}.weekly-chars ul{gap:8px;grid-template-columns:repeat(auto-fill,minmax(50px,1fr))}.weekly-badges ul{grid-template-columns:repeat(2,1fr);row-gap:14px}}
@media (prefers-reduced-motion:reduce){.weekly-dialog[open],.weekly-bell,.weekly-bell.has-new,.weekly-bell.has-new .weekly-dot{animation:none;transition:none}}

/* pet-garden.css */
/* Poetry pets (pet2): the head button beside the school name and the garden. */
.pet-entry{--hue:#c9a35a;position:relative;flex:none;width:52px;height:52px;margin-top:8px;padding:0;border:0;border-radius:50%;cursor:pointer;-webkit-tap-highlight-color:transparent;
  background:radial-gradient(circle at 50% 30%,#fffdf6 0,#fdf1d8 58%,#f0d9a8 100%);box-shadow:0 7px 14px -8px #8a6320aa,inset 0 -3px 6px -3px #c99d4f55;transition:transform .2s ease}
.pet-ring{position:absolute;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px);transform:rotate(-90deg);pointer-events:none;overflow:visible}
.pet-ring circle{fill:none;stroke:#ecdcb8;stroke-width:3}
.pet-ring .pet-ring-bar{stroke:var(--hue);stroke-width:3.6;stroke-linecap:round;stroke-dasharray:0 100;transition:stroke-dasharray .9s ease}
.pet-entry.pet-full .pet-ring-bar{stroke:#d9a441}
.pet-entry-pop{position:absolute;left:4px;right:4px;bottom:4px;height:calc((100% - 8px) * 210 / 160);pointer-events:none;transform-origin:50% 100%;transition:transform .25s cubic-bezier(.3,1.5,.5,1)}
.pet-entry-pop img{position:absolute;left:0;bottom:0;width:100%;height:auto;opacity:0;transform-origin:50% 100%;transition:opacity .35s;-webkit-user-drag:none}
.pet-entry-pop img.on{opacity:1}
.pet-entry.pet-cycle .pet-entry-pop img{animation:pet-cycle 20s calc((var(--i) - 5) * 4s) infinite both}
@keyframes pet-cycle{0%{opacity:0;transform:translateY(16%) scale(.9)}4%,19%{opacity:1;transform:none}23%,100%{opacity:0;transform:translateY(4%) scale(.96)}}
.pet-entry .pet-dot{position:absolute;top:-4px;right:-4px;z-index:1;width:15px;height:15px;border-radius:50%;background:#e2483b;box-shadow:0 0 0 2.5px #fffcf5,0 2px 4px #0003;animation:weekly-pulse 1.6s ease-in-out infinite}
.pet-entry.pet-ready .pet-entry-pop{animation:pet-jiggle 1.5s ease-in-out infinite}
@media (hover:hover){.pet-entry:hover .pet-entry-pop{transform:translateY(-3px) scale(1.06)}}
.pet-entry:active{transform:scale(.94)}
.pet-entry:focus-visible{outline:3px solid #3a745f;outline-offset:5px}
@keyframes pet-jiggle{0%,100%{transform:rotate(0)}20%{transform:rotate(-9deg) scale(1.05)}40%{transform:rotate(8deg) scale(1.05)}60%{transform:rotate(-4deg)}80%{transform:rotate(2deg)}}
@media (max-width:700px){.pet-entry{width:44px;height:44px;margin-top:6px}}
@media (max-width:360px){.pet-entry{width:40px;height:40px}}

.pet-dialog{width:min(1120px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:30px;background:transparent;box-shadow:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
.pet-dialog::-webkit-scrollbar{display:none}
.pet-dialog::backdrop{background:rgb(24 44 38 / .55);backdrop-filter:blur(6px)}
.pet-dialog[open]{animation:weekly-in .45s cubic-bezier(.2,.9,.3,1.15)}
.pet-card{position:relative;display:grid;gap:10px;padding:14px 22px 22px;border-radius:30px;color:#33413a;
  background:radial-gradient(90% 50% at 50% 0,#fff 0,#fffaf0 60%,#fbf3e2 100%);box-shadow:0 30px 70px -20px #10302899,inset 0 0 0 1px #ead9b5}
.pet-card::after{content:"";position:absolute;inset:8px;border:1.5px solid #e8d3a6;border-radius:24px;pointer-events:none}
.pet-card.appear .pet-stage{animation:pet-settle .6s cubic-bezier(.2,.8,.3,1)}
@keyframes pet-settle{from{opacity:.4;transform:scale(.97)}}

.pet-top{position:relative;z-index:1;display:flex;justify-content:center;min-height:44px;padding:0 52px}
.pet-title{align-self:center;margin:0;font-family:var(--serif);font-size:17px;font-weight:700;letter-spacing:.5em;padding-left:.5em;color:#9a7a3c}
.pet-close{position:absolute;top:16px;right:18px;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#f3ead6;color:#2f5d4f;cursor:pointer}
.pet-close svg{width:22px;height:22px}
.pet-tabs{display:flex;gap:10px;padding:2px 2px 0}
.pet-tab{display:grid;justify-items:center;gap:3px;width:80px;padding:0;border:0;background:none;color:#8a826f;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pet-tab-pop{position:relative;display:block;width:62px;aspect-ratio:160/210;transform-origin:50% 100%;transition:transform .3s cubic-bezier(.3,1.5,.5,1)}
.pet-tab-pop::before{content:"";position:absolute;left:0;right:0;bottom:0;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 50% 32%,#fffdf8 0,#f8efdc 70%,#eedfbf 100%);box-shadow:inset 0 -3px 6px -3px #b99a5c66,0 4px 8px -5px #6b4a1a77;transition:background .3s,box-shadow .3s}
.pet-tab-pop img{position:absolute;left:0;bottom:0;width:100%;height:auto;filter:saturate(.5);opacity:.8;transition:filter .3s,opacity .3s;-webkit-user-drag:none}
.pet-tab-name{position:relative;font-size:14px;font-weight:600;letter-spacing:.08em;white-space:nowrap;transition:color .3s}
.pet-tab-name::after{content:"";position:absolute;left:50%;bottom:-6px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:var(--hue);transform:scale(0);transition:transform .3s}
.pet-tab[aria-selected=true] .pet-tab-pop{transform:translateY(-2px) scale(1.1)}
.pet-tab[aria-selected=true] .pet-tab-pop::before{background:radial-gradient(circle at 50% 32%,#fff 0,color-mix(in srgb,var(--hue) 16%,#fff7e6) 66%,color-mix(in srgb,var(--hue) 34%,#f3e2bd) 100%);
  box-shadow:inset 0 -3px 6px -3px color-mix(in srgb,var(--hue) 60%,transparent),0 0 0 2.5px #fffaf0,0 0 0 4px color-mix(in srgb,var(--hue) 55%,#fff),0 8px 14px -6px color-mix(in srgb,var(--hue) 70%,#000)}
.pet-tab[aria-selected=true] img{filter:none;opacity:1}
.pet-tab[aria-selected=true] .pet-tab-name{color:var(--hue);font-weight:800}
.pet-tab[aria-selected=true] .pet-tab-name::after{transform:scale(1)}
@media (hover:hover){.pet-tab:hover img{filter:none;opacity:1}.pet-tab:not([aria-selected=true]):hover .pet-tab-pop{transform:translateY(-3px)}}
.pet-tab:focus-visible{outline:3px solid #3a745f;outline-offset:4px;border-radius:14px}

.pet-main{display:grid;grid-template-columns:minmax(0,1fr) 330px;grid-template-rows:auto 1fr;column-gap:22px;row-gap:10px;align-items:start}
.pet-main.from-right .pet-stage,.pet-main.from-right .pet-side{animation:pet-from-right .38s cubic-bezier(.2,.8,.3,1)}
.pet-main.from-left .pet-stage,.pet-main.from-left .pet-side{animation:pet-from-left .38s cubic-bezier(.2,.8,.3,1)}
@keyframes pet-from-right{from{opacity:0;transform:translateX(36px)}}
@keyframes pet-from-left{from{opacity:0;transform:translateX(-36px)}}
.pet-name{grid-column:1;display:flex;align-items:center;justify-content:center;gap:16px;margin:0;font-family:var(--serif);font-size:30px;font-weight:700;line-height:1.3;letter-spacing:.32em;color:#24493e}
.pet-name span{padding-left:.32em;white-space:nowrap}
.pet-name::before,.pet-name::after{content:"";flex:0 1 110px;height:10px;background:radial-gradient(circle,var(--hue) 0 3px,transparent 3.5px) center/10px 10px no-repeat,linear-gradient(#e0c690,#e0c690) center/100% 1.5px no-repeat}
.pet-name::before{background-position:right center,center}
.pet-name::after{background-position:left center,center}

.pet-stage{grid-column:1;grid-row:2;position:relative;aspect-ratio:3/2;border-radius:24px;overflow:hidden;background:#f6efe0;container-type:inline-size;
  box-shadow:0 0 0 1.5px #e8d3a6,0 0 0 6px #fffaf0,0 0 0 7.5px #ead9b5,0 18px 30px -18px #3a2a1066;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.pet-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.pet-bg-next{opacity:0;transition:opacity .9s ease}
.pet-bg-next.in{opacity:1}
.pet-actor{position:absolute;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pet-actor img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.pet-actor:focus-visible{outline:3px dashed #fffaf0;outline-offset:4px;border-radius:30%}
.pet-actor.pet-scene-tap{inset:0;cursor:pointer}
.pet-actor.pet-scene-tap:focus-visible{outline-offset:-8px;border-radius:20px}

/* Birds: the egg grows warm in its nest. */
.pet-egg .pet-rest{transform-origin:50% 92%;animation:pet-breathe 3.4s ease-in-out infinite;
  filter:drop-shadow(0 0 calc(var(--warm,0) * 1.3cqw) rgb(255 196 92 / calc(var(--warm,0) * .95)));transition:filter 1.6s ease}
@keyframes pet-breathe{50%{transform:scale(1.018,1.03)}}
.pet-warm{position:absolute;z-index:0;border-radius:50%;pointer-events:none;transform:translateY(16%) scale(1.75,1.35);
  background:radial-gradient(closest-side,#fff6d6 0,#ffd98af2 30%,#ffbf6699 60%,transparent 100%);mix-blend-mode:screen;transition:opacity 1.6s ease;animation:pet-warm 3.4s ease-in-out infinite}
@keyframes pet-warm{50%{transform:translateY(16%) scale(1.88,1.45);filter:brightness(1.12)}}

/* Deer: a shadow in the misty trees that walks closer. */
.pet-actor .pet-shadow{inset:auto;transform-origin:50% 100%;transition:filter 1.6s ease,opacity 1.2s ease;will-change:transform}
.pet-mist{position:absolute;inset:0;pointer-events:none;transition:opacity 1.8s ease}
.pet-mist i{position:absolute;border-radius:50%;background:radial-gradient(closest-side,#e9eee6e6 0,#dfe7dccc 40%,#d8e1d655 70%,transparent);animation:pet-drift 14s ease-in-out infinite alternate}
.pet-mist i:nth-child(1){left:44%;top:27%;width:40%;height:20%}
.pet-mist i:nth-child(2){left:56%;top:36%;width:34%;height:15%;animation-duration:11s;animation-delay:-4s}
.pet-mist i:nth-child(3){left:38%;top:39%;width:30%;height:13%;animation-duration:17s;animation-delay:-9s;opacity:.8}
@keyframes pet-drift{to{transform:translateX(9%)}}

/* Rabbit: the night moon waxes, then the rabbit leaps out of its light. */
.pet-moon{position:absolute;overflow:visible;pointer-events:none;opacity:0;transition:opacity 1.4s ease}
.pet-moon.up{opacity:1}
.pet-moon-front{position:absolute;pointer-events:none}
.pet-stars{position:absolute;inset:0;pointer-events:none;transition:opacity .9s}
.pet-stars i{position:absolute;width:.42cqw;height:.42cqw;margin:-.21cqw;border-radius:50%;background:#fff6dc;box-shadow:0 0 .8cqw .1cqw #fff3c4aa;animation:pet-twinkle 3.6s ease-in-out infinite}
@keyframes pet-twinkle{50%{opacity:.35;transform:scale(.7)}}
.moon-call .pet-moon{animation:pet-moon-call 1.2s ease-in-out}
@keyframes pet-moon-call{50%{filter:brightness(1.3) drop-shadow(0 0 2cqw #fff1c4)}}
.pet-beam{position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:screen;opacity:0;animation:pet-beam-in 1s ease forwards;
  clip-path:polygon(calc(var(--mx) - 4%) var(--my),calc(var(--mx) + 5%) var(--my),calc(var(--gx) + 15%) var(--gy),calc(var(--gx) - 13%) var(--gy));
  background:linear-gradient(205deg,#fff4cfb0 15%,#ffe9b04d 55%,#ffe9b014 90%)}
.pet-beam.out{animation:pet-beam-out .9s ease forwards}
@keyframes pet-beam-in{to{opacity:1}}
@keyframes pet-beam-out{from{opacity:1}to{opacity:0}}
.dawn .pet-stars,.dawn .pet-moon{opacity:0}
.pet-leaper{position:absolute;z-index:2;object-fit:contain;pointer-events:none}

/* The pouch: light at its mouth grows each reading day. */
.pet-pouch .pet-rest{transform-origin:50% 96%;animation:pet-sway 4.4s ease-in-out infinite}
@keyframes pet-sway{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.2deg) scale(1.01)}}
.pet-pouch.wobble .pet-rest{animation:pet-wobble .9s ease-in-out}
@keyframes pet-wobble{0%,100%{transform:rotate(0)}15%{transform:rotate(-8deg)}35%{transform:rotate(7deg)}55%{transform:rotate(-5deg)}75%{transform:rotate(3deg)}}
.pet-pouch-glow{position:absolute;left:50%;top:9%;width:96%;aspect-ratio:1;margin:-48% 0 0 -48%;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,#fffbe8 0,#ffe7a0f2 18%,#ffcf6a8c 42%,#ffc85a33 66%,transparent 100%);mix-blend-mode:screen;transition:opacity 1.6s ease;animation:pet-halo 2.8s ease-in-out infinite}
@keyframes pet-halo{50%{transform:scale(1.1)}}
.pet-sparks{position:absolute;left:50%;top:6%;width:0;height:0;pointer-events:none;transition:opacity 1.6s ease}
.pet-sparks b{position:absolute;width:1.1cqw;height:1.1cqw;margin:-.55cqw;background:#fff6cf;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:0;animation:pet-spark 2.8s ease-out infinite}
.pet-sparks b:nth-child(2){animation-delay:.7s;--x:-3cqw}.pet-sparks b:nth-child(3){animation-delay:1.4s;--x:2.6cqw}.pet-sparks b:nth-child(4){animation-delay:2.1s;--x:-1cqw}
@keyframes pet-spark{0%{opacity:0;transform:translate(0,0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(var(--x,1.4cqw),-7cqw) scale(1) rotate(90deg)}}
.pet-pouch.open .pet-pouch-glow{animation-duration:2.2s}
.pet-paper{position:absolute;z-index:0;width:max-content;min-width:22cqw;max-width:max(32cqw,124px);margin:0;padding:1.3cqw 1.5cqw 1.5cqw;border-radius:.6cqw;transform:translateX(-50%) rotate(-2deg);
  background:linear-gradient(#fffdf5,#fbf1d9);box-shadow:0 .6cqw 1.6cqw -.6cqw #3a2a1088,inset 0 0 0 .15cqw #e8d3a6;
  font-family:var(--serif);font-size:clamp(14px,2.3cqw,22px);font-weight:700;line-height:1.45;color:#5d4386;text-align:center;overflow-wrap:anywhere}
.pet-paper span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.born .pet-paper{animation:pet-rise 1.6s .3s cubic-bezier(.2,.9,.3,1.1) both}
/* A granted wish glows. */
.pet-paper.yes{box-shadow:0 .6cqw 1.6cqw -.6cqw #3a2a1088,inset 0 0 0 .15cqw #e8d3a6,0 0 2.4cqw .4cqw #ffe39a}
@keyframes pet-rise{from{opacity:0;transform:translate(-50%,70%) rotate(0) scale(.6)}}

/* Arrivals. */
.pet-actor.hatching img{animation:pet-hatch 1.9s ease-in forwards}
.pet-pouch.hatching .pet-pouch-glow,.pet-pouch.hatching .pet-sparks{opacity:1!important;transition:opacity .4s}
@keyframes pet-hatch{0%{transform:rotate(0)}10%{transform:rotate(-5deg)}20%{transform:rotate(5deg)}30%{transform:rotate(-7deg)}40%{transform:rotate(7deg)}50%{transform:rotate(-9deg) scale(1.03)}58%{transform:rotate(10deg) scale(1.05)}66%{transform:rotate(-11deg) scale(1.07)}74%{transform:rotate(12deg) scale(1.09)}82%{transform:rotate(-12deg) scale(1.12)}90%{transform:rotate(10deg) scale(1.16);filter:brightness(1.25)}100%{transform:scale(1.22);filter:brightness(2.4);opacity:.6}}
.born .pet-baby{animation:pet-pop .8s cubic-bezier(.3,1.6,.5,1) both}
.born .pet-actor.granted{animation:pet-pop .8s cubic-bezier(.3,1.6,.5,1) both}
@keyframes pet-pop{0%{opacity:0;transform:scale(.4) translateY(12%)}60%{opacity:1}}
.met .pet-baby{animation:pet-hop .7s cubic-bezier(.3,1.4,.5,1)}
@keyframes pet-hop{40%{transform:translateY(-4%) scale(1.02,.98)}}
.ceremony .pet-arrow,.ceremony .pet-tabs{pointer-events:none;opacity:.4}

.pet-burst{position:absolute;inset:0;pointer-events:none;z-index:3}
.pet-burst .flash{position:absolute;left:var(--x);top:var(--y);width:12cqw;height:12cqw;margin:-6cqw;border-radius:50%;background:radial-gradient(#fff 0 30%,#fff8 55%,transparent 70%)}
.pet-burst b{position:absolute;left:var(--x);top:var(--y);width:calc(1.6cqw * var(--s));height:calc(2.6cqw * var(--s));margin:-1.3cqw -.8cqw;border-radius:60% 0 60% 0;background:linear-gradient(135deg,#fff,var(--glow) 40%,color-mix(in srgb,var(--hue) 55%,#fff));opacity:0}
.pet-burst.go .flash{animation:pet-flash .9s ease-out forwards}
.pet-burst.go b{animation:pet-petal 1.4s cubic-bezier(.15,.7,.3,1) forwards}
@keyframes pet-flash{0%{transform:scale(.2);opacity:1}40%{opacity:1}100%{transform:scale(9);opacity:0}}
@keyframes pet-petal{0%{opacity:1;transform:rotate(var(--a)) translateY(0) rotate(0)}80%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(220deg)}}

.pet-bubble{position:absolute;left:50%;top:5%;z-index:4;width:max-content;max-width:88%;margin:0;padding:.55em 1.1em .6em;border-radius:1.2em;background:#fffdf7f2;color:#24493e;
  font-family:var(--serif);font-size:clamp(17px,2.6cqw,24px);font-weight:600;letter-spacing:.12em;line-height:1.5;text-align:center;text-wrap:balance;
  box-shadow:0 0 0 1.5px #e8d3a6,0 8px 18px -8px #3a2a1066;transform:translateX(-50%);pointer-events:none}
.pet-bubble.show{animation:pet-bubble 3.2s ease forwards}
@keyframes pet-bubble{0%{opacity:0;transform:translate(-50%,10px) scale(.9)}10%,82%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-6px)}}
.pet-banner{position:absolute;left:50%;top:7%;z-index:5;margin:0;padding:.45em 1.6em .5em;border-radius:999px;background:linear-gradient(#3a7562,#2a5649);color:#fff8e6;
  font-family:var(--serif);font-size:clamp(18px,3.4cqw,30px);font-weight:700;letter-spacing:.16em;white-space:nowrap;box-shadow:0 10px 24px -8px #1d3f35cc,inset 0 0 0 2.5px #e3c27c;
  transform:translateX(-50%);animation:pet-banner 3.6s cubic-bezier(.3,1.5,.5,1) forwards;pointer-events:none}
@keyframes pet-banner{0%{opacity:0;transform:translateX(-50%) scale(.5)}12%,85%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) scale(.96)}}

.pet-arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:46px;height:46px;margin-top:-23px;padding:0;border:0;border-radius:50%;background:#fffaf0cc;color:#2f5d4f;cursor:pointer;
  box-shadow:0 4px 12px -4px #0004;backdrop-filter:blur(4px);transition:transform .15s,background .15s}
.pet-arrow svg{width:24px;height:24px}
.pet-arrow.prev{left:12px}.pet-arrow.next{right:12px}
@media (hover:hover){.pet-arrow:hover{background:#fffaf0;transform:scale(1.08)}}
.pet-arrow:active{transform:scale(.92)}

/* The side column: verse, how the pet comes, a fact, the buttons. */
.pet-side{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;gap:12px;min-width:0}
.pet-verse{position:relative;margin:0;padding:14px 16px 12px;border-radius:20px;text-align:center;background:linear-gradient(#fff,#fffaf0);box-shadow:inset 0 0 0 1px #efe3c9}
.pet-verse::before,.pet-verse::after{content:"";position:absolute;width:14px;height:14px;border:2px solid var(--hue);opacity:.55}
.pet-verse::before{left:10px;top:10px;border-right:0;border-bottom:0;border-radius:4px 0 0 0}
.pet-verse::after{right:10px;bottom:10px;border-left:0;border-top:0;border-radius:0 0 4px 0}
.pet-verse blockquote{display:grid;gap:0;margin:0;font-family:var(--serif);font-size:22px;font-weight:600;line-height:1.55;letter-spacing:.1em;color:#24493e}
.pet-verse figcaption{margin-top:4px;font-size:14px;color:#9a7a3c;letter-spacing:.04em}

.pet-panel{display:flex;flex-direction:column;gap:12px;flex:1}
.pet-browse[data-pet-key=mystery] .pet-verse{display:none}
.pet-panel>p{margin:0}
.pet-hint{font-size:14px;line-height:1.6;color:#8a8f84;text-align:center}
@media (max-height:720px) and (min-width:700px){.pet-btn[data-pet="claim"]+.pet-hint{display:none}}
.pet-note{font-size:17px;line-height:1.7;color:#33413a;text-align:center}
.pet-note .pet-spin{margin:30px auto}
.pet-error{padding:10px 14px;border-radius:14px;background:#fdecea;color:#a2483f;font-size:15px;text-align:center}
.pet-from{padding:10px 14px;border-radius:14px;background:color-mix(in srgb,var(--hue) 10%,#fff);color:color-mix(in srgb,var(--hue) 80%,#000);font-size:15px;line-height:1.6;text-align:center}

.pet-way,.pet-fact{padding:14px 16px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px #efe3c9}
.pet-way h3,.pet-fact h3{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 10px;font-size:15px;font-weight:700;color:#9a7a3c;letter-spacing:.14em}
.pet-way>ol{display:grid;margin:0;padding:0;list-style:none}
.pet-way>ol>li{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding-bottom:12px}
.pet-way>ol>li:last-child{padding-bottom:0}
.pet-way>ol>li:not(:last-child)::before{content:"";position:absolute;left:16px;top:38px;bottom:4px;width:2px;background:repeating-linear-gradient(#e2d4b4 0 4px,transparent 4px 8px)}
.pet-way>ol>li.done::before{background:#9fcdb6}
.pet-way-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,var(--hue) 13%,#fff);color:var(--hue);transition:background .3s}
.pet-way-icon svg{width:18px;height:18px}
.pet-way li.done .pet-way-icon{background:#3a9a72;color:#fff}
.pet-way li.now .pet-way-icon{background:var(--hue);color:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--hue) 20%,transparent)}
.pet-way li.ready .pet-way-icon{background:linear-gradient(#f3b84d,#e08a3a);color:#fff;animation:pet-gift 1.6s ease-in-out infinite}
.pet-way li.ready p em{color:#d0731f}
@keyframes pet-gift{50%{box-shadow:0 0 0 5px #f6c66a66}}
.pet-way.live li.later{opacity:.5}
.pet-way li p{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:5px 0 1px;font-size:16px;color:#33413a}
.pet-way li p em{font-style:normal;font-size:15px;font-weight:700;color:#c0862a;font-variant-numeric:tabular-nums}
.pet-way li span{display:block;font-size:14px;line-height:1.55;color:#7a8076}
.pet-way li.done span{color:#6b9a84}
.pet-way small{display:block;font-size:13px;line-height:1.5;color:#8a8f84}

.pet-fact{background:linear-gradient(135deg,#fffaf0,color-mix(in srgb,var(--hue) 7%,#fff))}
.pet-fact h3{justify-content:flex-start;margin-bottom:4px}
.pet-fact h3 i{display:grid;color:#d9a441}
.pet-fact h3 svg{width:18px;height:18px}
.pet-fact p{margin:0;font-size:15px;line-height:1.7;color:#55665c}

.pet-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border:0;border-radius:999px;background:linear-gradient(#3f8f6c,#2f6f55);color:#fff;
  font:inherit;font-size:17px;font-weight:700;letter-spacing:.06em;cursor:pointer;box-shadow:0 6px 14px -6px #1d3f35aa,inset 0 -3px 0 #0002;transition:transform .15s}
.pet-btn.big{width:100%;min-height:54px;font-size:19px}
.pet-btn.ghost{background:#f1ece0;color:#2f5d4f;box-shadow:none}
.pet-btn.big svg{flex:none;width:22px;height:22px}
.pet-btn.glow{background:linear-gradient(#f3b84d,#e08a3a);color:#fff;text-shadow:0 1px 0 #a5581a;animation:pet-ready 1.6s ease-in-out infinite}
@keyframes pet-ready{50%{box-shadow:0 0 0 6px #f6c66a55,0 8px 18px -6px #b8661ccc}}
.pet-btn:disabled{background:#e9e4d8;color:#9a9a8c;box-shadow:none;cursor:default;animation:none;text-shadow:none}
.pet-btn:not(:disabled):active{transform:scale(.97)}
.pet-btn:focus-visible{outline:3px solid #3a745f;outline-offset:3px}
.pet-panel>.pet-btn.big:first-of-type{margin-top:auto}
.pet-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pet-confirm{display:grid;gap:10px;margin-top:auto;padding:18px 16px;border-radius:20px;background:#fff;text-align:center;box-shadow:inset 0 0 0 1.5px var(--hue),0 10px 24px -14px #3a2a1066;animation:weekly-in .3s ease}
.pet-confirm h3{margin:0;font-size:21px;color:#24493e}
.pet-confirm p{margin:0;color:#a2483f;font-size:15px}

.pet-poems{display:grid;gap:6px;margin:8px 0 2px;padding:0;list-style:none}
.pet-poems button{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:8px;width:100%;min-height:42px;padding:4px 12px 4px 8px;border:0;border-radius:14px;background:#f7f3ea;color:#33413a;font:inherit;font-size:15px;text-align:left;cursor:pointer}
.pet-poems i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff;color:#b39a68}
.pet-poems i svg{width:15px;height:15px}
.pet-poems b{font-size:14px;font-weight:600;color:#9a7a3c;font-variant-numeric:tabular-nums}
.pet-poems .done button{background:#e8f3ec;color:#2f6b55}
.pet-poems .done i{background:#3a9a72;color:#fff}
.pet-poems .done b{color:#3a9a72}
.pet-poems.all{grid-template-columns:1fr 1fr;gap:5px}
.pet-poems.all button{grid-template-columns:22px 1fr;min-height:34px;padding:3px 8px 3px 6px;font-size:14px}
.pet-poems.all i{width:22px;height:22px}
.pet-poems.all i svg{width:13px;height:13px}
@media (hover:hover){.pet-poems button:hover{box-shadow:inset 0 0 0 1.5px #d9c79c}}
.pet-days{display:flex;gap:8px;margin:8px 0 6px;padding:0;list-style:none}
.pet-days li{display:grid;place-items:center;flex:1;max-width:40px;aspect-ratio:1;border-radius:50%;border:2px dashed #dcd3bf;color:#b3a88e;font-size:14px;font-weight:700}
.pet-days li.on{border:0;background:radial-gradient(circle at 35% 30%,#f6d98b,#d9a441 70%,#b8842c);color:#fffdf3;box-shadow:0 3px 8px -3px #a4741d}
.pet-days li.ready{border:2px solid #eba54a;background:#fff4dc;color:#d0731f;animation:pet-gift 1.6s ease-in-out infinite}
.pet-days li svg{width:58%;height:58%;stroke-width:3}
.pet-days li.ready svg{stroke-width:2.4}

.pet-wish{display:grid;gap:5px;padding:12px 14px;border-radius:20px;background:linear-gradient(135deg,#f6f3ff,#fff8ea);box-shadow:inset 0 0 0 1.5px #dfdcf3}
.pet-wish label{font-size:16px;font-weight:600;color:#45498a}
.pet-wish label small{font-weight:400;color:#8a8f84;font-size:13px}
.pet-wish input{width:100%;min-height:44px;padding:8px 14px;border:1.5px solid #d6d6ee;border-radius:14px;background:#fff;color:#33413a;font:inherit;font-size:17px}
.pet-wish input:focus{outline:none;border-color:#4f5596;box-shadow:0 0 0 3px #e2e3f6}
.pet-wish-row{display:grid;grid-template-columns:1fr 44px;gap:8px;margin-bottom:2px}
.pet-mic{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#4f5596;color:#fff;cursor:pointer;box-shadow:0 5px 12px -5px #353a78}
.pet-mic svg{width:22px;height:22px}
.pet-mic.recording{background:#d4493d;animation:pet-rec 1.2s ease-in-out infinite}
.pet-mic:disabled{background:#d6d6ea;cursor:default;box-shadow:none}
@keyframes pet-rec{50%{box-shadow:0 0 0 7px #d4493d33}}
.pet-voice-status{min-height:1.4em;margin:0;font-size:14px;color:#6f7090}
.pet-voice-status:empty{display:none}
.pet-voice-status.error{color:#a2483f}
.pet-wish-card{padding:14px 16px;border-radius:20px;text-align:center;background:linear-gradient(135deg,#f3f2ff,#fff6e4);box-shadow:inset 0 0 0 1.5px #dcdcf2}
.pet-wish-card.small{padding:10px 14px}
.pet-wish-label{margin:0;font-size:13px;color:#7576a3;letter-spacing:.12em}
.pet-wish-text{margin:2px 0 0;font-family:var(--serif);font-size:24px;font-weight:700;color:#45498a;overflow-wrap:anywhere}
.pet-wish-card.small .pet-wish-text{font-size:19px}
.pet-wish-looks{margin:4px 0 0;font-size:15px;color:#6f7090;overflow-wrap:anywhere}
.pet-together{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px #efe3c9}
.pet-together>span{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;background:#fde8e6;color:#e2483b}
.pet-together svg{width:24px;height:24px;fill:currentColor;stroke:none}
.pet-together p{margin:0;font-size:17px;color:#55665c}
.pet-together b{font-size:30px;color:#c0862a;margin:0 4px;font-variant-numeric:tabular-nums}
.pet-together small{font-size:14px;color:#8a8f84}
.pet-spin{display:block;width:22px;height:22px;border:3px solid #fff8;border-top-color:#fff;border-radius:50%;animation:pet-spin .8s linear infinite}
.pet-note .pet-spin{border-color:#e6dac0;border-top-color:#2f6f55}
@keyframes pet-spin{to{transform:rotate(1turn)}}

/* pet5: the short card outside the opening hours; Jasper's read-only strip. */
.pet-dialog.small{width:min(440px,calc(100vw - 32px))}
.pet-rest-card{justify-items:center;gap:12px;padding:20px 24px 24px;text-align:center}
.pet-rest-card .pet-title{min-height:44px;display:grid;place-items:center}
.pet-rest-heads{display:flex;justify-content:center;gap:4px}
.pet-rest-heads .pet-tab-pop{width:56px}
.pet-rest-heads .pet-tab-pop:only-child{width:96px}
.pet-rest-heads .pet-tab-pop img{filter:none;opacity:1}
.pet-rest-title{margin:0;font-family:var(--serif);font-size:26px;font-weight:700;letter-spacing:.2em;padding-left:.2em;color:#24493e}
.pet-rest-hours{margin:0;padding:12px 16px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px #efe3c9;font-size:17px;line-height:1.7;color:#33413a;white-space:pre-line}.pet-rest-hours::first-line{font-size:14px;letter-spacing:.2em;color:#8a6a3a}
.pet-rest-card .pet-hint{margin:0}
.pet-watch{margin:0;padding:8px 14px;border-radius:14px;background:#eef1fb;color:#3c4a8a;font-size:15px;line-height:1.6;text-align:center;box-shadow:inset 0 0 0 1.5px #d4dcf5}
.pet-watch.off{background:#fdf1e4;color:#9a5a1c;box-shadow:inset 0 0 0 1.5px #f1d2ad}

@media (min-width:981px) and (orientation:landscape) and (max-height:800px){
  .pet-card{padding-top:8px;gap:6px}
  .pet-tab{width:74px}
  .pet-tab-pop{width:54px}
  .pet-tab-name{font-size:13px}
  .pet-name{font-size:27px}
  .pet-side,.pet-panel{gap:10px}
  .pet-verse{padding:10px 14px 8px}
  .pet-verse blockquote{font-size:19px;line-height:1.5}
  .pet-verse figcaption{font-size:13px;margin-top:2px}
  .pet-way,.pet-fact{padding:11px 14px}
  .pet-way h3{margin-bottom:6px}
  .pet-fact p{font-size:14px;line-height:1.6}
}
@media (max-width:980px),(orientation:portrait){
  .pet-main{grid-template-columns:1fr;grid-template-rows:none}
  .pet-browse[data-pet-key=mystery] .pet-verse{display:block}
  .pet-name,.pet-stage,.pet-side{grid-column:1;grid-row:auto}
  .pet-side{margin-top:6px}
  .pet-verse blockquote{display:flex;flex-wrap:wrap;justify-content:center;column-gap:.2em}
  .pet-browse .pet-panel,.pet-waiting .pet-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(5,auto) 1fr;column-gap:14px;row-gap:12px;align-items:start}
  .pet-browse .pet-panel>*,.pet-waiting .pet-panel>*{grid-column:2}
  .pet-browse .pet-panel>.pet-way,.pet-waiting .pet-panel>.pet-way{grid-column:1;grid-row:1/-1}
}
@media (max-width:640px){
  .pet-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:24px}
  .pet-card{padding:10px 12px 16px;border-radius:24px;gap:8px}
  .pet-card::after{inset:5px;border-radius:20px}
  .pet-top{justify-content:flex-start;padding:0 40px 0 0}
  .pet-title{margin-left:12px}
  .pet-close{top:10px;right:10px;width:36px;height:36px}
  .pet-close svg{width:19px;height:19px}
  .pet-tabs{gap:2px;padding-left:2px}
  .pet-tab{width:56px;gap:1px}
  .pet-tab-pop{width:46px}
  .pet-tab-name{font-size:12px;letter-spacing:0}
  .pet-name{font-size:24px;gap:10px;letter-spacing:.2em}.pet-name span{padding-left:.2em}
  .pet-stage{border-radius:18px}
  .pet-arrow{width:38px;height:38px;margin-top:-19px}.pet-arrow.prev{left:6px}.pet-arrow.next{right:6px}
  .pet-card .pet-panel{display:flex;align-items:stretch}
  .pet-card .pet-verse blockquote{display:grid}
  .pet-verse blockquote{font-size:20px}
}
@media (prefers-reduced-motion:reduce){
  .pet-entry .pet-entry-pop,.pet-entry .pet-dot,.pet-dialog[open],.pet-main .pet-stage,.pet-main .pet-side,.pet-egg .pet-rest,.pet-pouch .pet-rest,.pet-warm,.pet-mist i,.pet-stars i,.pet-pouch-glow,.pet-sparks b,.pet-btn.glow,.pet-mic.recording,.pet-way li.ready .pet-way-icon,.pet-days li.ready{animation:none}
  .pet-entry.pet-cycle .pet-entry-pop img{animation:none;opacity:0}
  .pet-entry.pet-cycle .pet-entry-pop img:first-child{opacity:1}
}
