.reference-guide{padding:14px 16px;background:transparent}
/* The collection and active play share the same paper, ink and state language. */
:root{--muted-strong:#53655c}
.album-resume{display:flex;align-items:center;gap:16px;width:100%;padding:18px 20px;margin:0 0 24px;border:1px solid #99ada0;border-radius:16px;background:#e7ede0;text-align:left;box-shadow:0 6px 22px #356e6409}
.resume-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--teal);color:var(--paper);flex-shrink:0}
.album-resume>span:nth-child(2){display:grid;gap:5px;min-width:0;flex:1}
.album-resume>svg{flex-shrink:0;color:var(--teal)}
.resume-label,.resume-count{font-size:12px;color:var(--muted-strong)}
.album-resume strong{font-size:19px;line-height:1.35;word-break:keep-all}
.album-resume:hover{background:#dde8d6}
.album-book.current{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal),0 10px 24px #356e6412}
.album-book{display:flex;flex-direction:column;align-items:stretch}
.album-book .book-cover{flex-shrink:0}
.album-book .book-info{flex:1}
.current-label{display:block;width:fit-content;background:#f3dfd4;color:#633f33;border-radius:5px;padding:3px 6px;font-weight:600;margin-bottom:7px}
.book-status{font-size:12px;line-height:1.5;color:var(--teal)}
.locked-status{color:var(--muted-strong);display:flex;align-items:center;gap:5px}
.locked-status svg{width:14px;height:14px}
.art-card.active{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal)}
.art-card .thumb.ready{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#e7ede0;color:var(--teal);border:1px solid #becfbb}
.thumb.ready>svg{width:34px;height:34px}
.ready-label{font-size:12px;font-weight:600;text-align:center;padding:0 8px}
.small-card p{word-break:keep-all;overflow-wrap:anywhere;color:var(--muted-strong)}
.small-card>span:not(.card-icon):not(.arrow){min-width:0}
.streak-chip{display:inline-block;margin-top:7px;padding:3px 8px;border-radius:20px;background:#e5eadb;color:var(--teal);font-size:11px;white-space:nowrap}
.start-note{font-size:12px;color:var(--muted-strong)}
.result-collection{display:grid;gap:7px;margin:12px 0 0;color:var(--muted-strong);font-size:12px}
.collection-dots{display:flex;gap:4px;justify-content:center}
.collection-dots i{width:12px;height:6px;border-radius:2px;background:#e0e4d7}
.collection-dots i.collected{background:var(--teal)}
.result-stats span{font-size:11px;color:var(--muted-strong)}
.result h2{word-break:keep-all;text-wrap:balance}
#zoom-label{font-size:12px;min-width:48px}
@media(max-width:600px){
 .hero.has-progress{gap:18px;padding-top:20px}
 .hero.has-progress .hero-art{max-height:165px;border-radius:52px 52px 17px 17px;aspect-ratio:2.1}
 .hero.has-progress h1{font-size:29px;line-height:1.3}
 .hero.has-progress .hero-copy>.eyebrow{display:none}
 .hero.has-progress .start-block{margin-top:16px}
 .small-card .eyebrow{font-size:10px;letter-spacing:1.25px}
 .small-card p,.start-note{font-size:12px}
 .album-resume{padding:14px;gap:12px;margin-bottom:20px}
 .album-resume strong{font-size:17px}
 .album-book .book-status{font-size:11px}
 .album-book.locked-book .book-cover{height:115px}
 .art-card .thumb.ready{gap:8px}
 .ready-label{font-size:11px}
}
.album-gift-panel{display:grid;grid-template-columns:210px 1fr;gap:28px;align-items:center;margin:0 0 26px;padding:22px;background:#fffdf7;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.album-mosaic{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);aspect-ratio:1;overflow:hidden;border-radius:12px;background:#dce5d5}
.album-tile{background:#e4e9dc;border:1px solid #fffdf780;background-size:500% 200%;position:relative}
.album-tile:not(.revealed)::after{content:'';position:absolute;width:6px;height:6px;left:calc(50% - 3px);top:calc(50% - 3px);border:1px solid #95aa97;border-radius:50%}
.album-tile.revealed{border-color:#fffdf730}
.album-gift-copy h3{margin:8px 0;font-size:21px;letter-spacing:-.03em}
.album-gift-copy p{color:var(--muted);font-size:13px;max-width:420px}
.album-gift-progress{display:block;color:var(--teal);font-size:12px;margin:12px 0}
.album-gift-copy button{font-size:13px}
.book-reward-cover{width:100%;height:100%;object-fit:cover;border-radius:10px}
.book-cover:has(.book-reward-cover) .book-number{background:#fffdf7e8;border-radius:20px;padding:2px 8px;font-size:17px;right:10px;bottom:10px}
.album-gift-earned{padding:10px;border-radius:10px;background:#e5ecdc;color:var(--teal);font-size:13px}
.album-announcement{margin-bottom:12px;width:100%}
@media(max-width:600px){
 .album-gift-panel{grid-template-columns:112px minmax(0,1fr);gap:16px;padding:14px;border-radius:16px;align-items:start}
 .album-gift-copy h3{font-size:16px;line-height:1.4;margin:6px 0}
 .album-gift-copy .eyebrow{font-size:11px;letter-spacing:.5px;color:var(--muted-strong)}
 .album-gift-copy p{font-size:12px;line-height:1.5;color:var(--muted-strong)}
 .album-gift-copy button{font-size:11px;min-height:44px;padding:10px;width:100%;gap:6px}
 .album-gift-progress{font-size:11px;line-height:1.5;margin:8px 0}
 .album-gift-copy button svg{width:16px;height:16px}
}
@media(max-width:350px){.album-gift-panel{grid-template-columns:88px minmax(0,1fr);gap:12px;padding:12px}.result h2{font-size:22px}}
.reference-guide>.eyebrow{display:none}
.reference-guide>strong{font-size:13px}
.lesson-guide .guide-detail{display:block}
.quick-rules summary{cursor:pointer;color:var(--teal);font-size:12px;min-height:36px;display:flex;align-items:center;gap:9px}
.quick-rules summary::before{content:'+';font-size:18px;font-weight:500}
.quick-rules[open] summary::before{content:'−'}
.quick-rules summary:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:3px}
.quick-rules p{margin:4px 0;line-height:1.75}
.board-top{padding-bottom:9px;font-variant-numeric:tabular-nums}
#game-progress{font-size:11px;color:var(--teal);white-space:nowrap}
.board-progress{height:4px;margin:0 4px 12px;background:#dfe3d5;border-radius:4px;overflow:hidden}
.board-progress>span{display:block;height:100%;background:var(--teal);border-radius:4px;transition:width .2s ease-out}
.board-frame.erase-mode{box-shadow:inset 0 0 0 2px #b6755c}
.game-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.game-tools .tool{min-width:0}
.game-tools .tool.active{background:#e3ece1;border:2px solid var(--teal);padding-top:14px;padding-bottom:14px;box-shadow:0 3px 10px #356e6412}
.game-tools .tool.active .sub{color:var(--teal);font-weight:600}
.game-tools .tool .sub{font-size:11px;line-height:1.4;text-align:center;color:var(--muted-strong)}
#paint-tool{order:0}#eraser{order:1}#undo{order:2}.tool[data-action="hint"]{order:3}
@media(max-width:600px){
 .reference-guide{margin-top:8px;padding:0;border:0}
 .reference-guide>strong{display:none}
 .quick-rules summary{min-height:38px}
 .quick-rules[open]{padding:0 12px 10px;background:#e9eddc;border:1px solid #dce3cf;border-radius:10px}
 .game-tools .tool{padding:10px 4px;min-height:80px}
 .game-tools .tool.active{padding:9px 3px}
 .board-status{line-height:1.5}
 .game-caption{font-size:10px}
}
@media(max-height:730px) and (max-width:600px){
 .game-screen:has(.lesson-guide) .board-frame{max-width:clamp(190px,calc(100dvh - 398px),320px)}
 .game-tools .tool{flex-direction:column;min-height:58px;padding:7px 2px;gap:4px}
 .game-tools .tool.active{padding:6px 1px}
 .board-progress{margin-bottom:8px}
 .quick-rules summary{min-height:32px}
}
.recovery-dialog{max-height:calc(100dvh - 32px);overflow:auto}.recovery-list{display:grid;gap:10px;max-height:45dvh;overflow-y:auto;overscroll-behavior:contain;margin:18px -4px;padding:4px}.recovery-card{display:grid;gap:7px;text-align:left;padding:15px;background:#f1f3e9;color:var(--ink);border:1px solid var(--line);border-radius:13px;width:100%;min-height:110px}.recovery-card strong{font-size:15px}.recovery-card>span{font-size:12px}.recovery-reason,.recovery-open{color:var(--teal)}.recovery-card:hover{background:#e5ecdc}.recovery-comparison{display:grid;gap:12px;margin:20px 0}.recovery-comparison>section{border:1px solid var(--line);border-radius:12px;padding:13px}.recovery-comparison h3{font-size:13px;color:var(--teal);margin:0 0 10px}.recovery-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.recovery-stats dt{font-size:11px;color:var(--muted)}.recovery-stats dd{font-size:19px;margin:4px 0 0;font-variant-numeric:tabular-nums}.recovery-footnote,.recovery-date{font-size:12px!important;margin-top:12px}.recovery-empty{padding:24px 0}dialog:has(.recovery-comparison){max-height:calc(100dvh - 32px);overflow:auto}
.recovery-dialog[open],.recovery-preview[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}.recovery-dialog>*:not(.recovery-list),.recovery-preview>*:not(.recovery-preview-body){flex-shrink:0}.recovery-dialog .recovery-list{flex:1 1 auto;min-height:0;margin:14px -4px}.recovery-preview-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 3px}.recovery-preview .modal-actions,.recovery-dialog .modal-actions{margin-top:16px}.recovery-preview h2{word-break:keep-all;text-wrap:balance;font-size:24px;line-height:1.35}.recovery-preview .recovery-comparison{gap:8px;margin:14px 0}.recovery-preview .recovery-comparison>section{padding:10px}.recovery-preview .recovery-date{margin:0 0 6px}.recovery-preview .recovery-footnote{margin-top:8px}
