/* Chapter-first navigation; existing game/quiz layouts keep their own styles. */
.navigation{grid-template-columns:repeat(2,minmax(0,1fr))!important}.navigation .nav-item{font-size:16px;justify-content:center}
.learning-hub-view .gb-workspace{display:block!important}.learning-hub-view #goose-rail{display:none!important}.learning-hub-view #surface{height:100%;padding:0!important}
.learning-hub{box-sizing:border-box;height:100%;max-width:660px;margin:auto;padding:clamp(14px,3vw,26px);display:flex;flex-direction:column;justify-content:flex-start;gap:22px;overflow-y:auto;color:#355e4b}
.lh-qr{display:flex;align-items:center;justify-content:center;gap:22px;padding:24px 18px;background:#eff6e5;border:1px solid #d4e3bf;border-radius:24px}.lh-qr-icon{width:104px;height:104px;flex:0 0 104px}.lh-qr-icon svg{width:100%;height:100%}.lh-qr h1{font-size:22px;margin:0 0 6px}.lh-qr p{font-size:15px;margin:0 0 14px;color:#64816c}.lh-qr .btn{min-height:46px;font-size:16px;background:#3f7968;color:#fff;border:1px solid #3f7968;gap:7px}.lh-qr .btn svg{width:20px}
.lh-chapter label{font-size:18px;font-weight:700;display:block;margin-bottom:10px}.lh-chapter select{appearance:none;width:100%;font:inherit;font-size:17px;padding:16px 42px 16px 17px;border:1.5px solid #bad0ba;border-radius:15px;color:#355e4b;background:#fffdf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23355e4b' stroke-width='2'/%3E%3C/svg%3E") right 15px center/19px no-repeat}
.lh-activities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.lh-activity{aspect-ratio:1;min-width:0;border-radius:24px;border:2px solid #e0c989;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 8px;gap:9px;background:#fff2cb;color:#5f4c2e;font:inherit;cursor:pointer;box-shadow:0 4px 0 #e9d9ad}.lh-activity:active{transform:translateY(2px);box-shadow:0 2px 0 #e9d9ad}.lh-activity:focus-visible{outline:3px solid #2d837e;outline-offset:4px}.lh-games{background:#e1f1e7;border-color:#a9cdb8;box-shadow:0 4px 0 #c6dccb;color:#325c4b}.lh-activity strong{font-size:clamp(17px,3.7vw,22px);line-height:1.3}.lh-activity small{font-size:14px;line-height:1.5}.lh-duo,.lh-game-art{height:clamp(64px,14vh,140px);max-height:53%;display:flex;align-items:flex-end;justify-content:center;position:relative;width:80%;gap:4px}.lh-duo img{width:44%;height:100%;object-fit:contain}.lh-duo img:first-child{height:75%}.lh-game-art img{width:80%;height:100%;object-fit:contain}.lh-game-art>span{position:absolute;font-size:29px;color:#e7ac24;right:8%;top:10%}.lh-empty{color:#68806e;text-align:center;font-size:16px;line-height:1.7;margin:10px 0}#lh-status:empty{display:none}#lh-status{font-size:15px;text-align:center}
.lh-camera[hidden]{display:none!important}.lh-camera{position:fixed;inset:0;z-index:10000;background:#1e3b32ba;display:grid;place-items:center;padding:18px;backdrop-filter:blur(5px)}.lh-camera-card{box-sizing:border-box;background:#fffdf5;border-radius:24px;width:min(440px,100%);padding:22px;text-align:center;max-height:95dvh;overflow:auto}.lh-camera h2{font-size:19px;margin:0 0 18px}.lh-camera-window{position:relative;aspect-ratio:1;width:100%;background:#1a2c28;border-radius:18px;overflow:hidden}.lh-camera #qr-video88{display:block;width:100%;height:100%;max-height:none!important;object-fit:cover;aspect-ratio:1;border-radius:0}.lh-scan-outline{position:absolute;inset:13%;border:3px solid #fff9d7;border-radius:14px;box-shadow:0 0 0 80px #142a2233;pointer-events:none}.lh-camera p{font-size:15px;line-height:1.6;min-height:48px}.lh-camera .btn{min-height:46px}.lh-game-chapter{text-align:center;font-size:16px;color:#567361;margin:0 0 12px}.lh-game-chapter button{font-size:14px}.df-chapter-picture{width:100%;height:100%;min-height:0;display:flex;justify-content:center}.df-chapter-picture>.sr-art{width:min(100%,170px);height:100%}.mz-hints>.sr-art,.mz-lock-art>.sr-art{width:100%;height:100%;max-height:160px}.mz-recap .sr-art{width:100%;height:80px}.mz-letter-slot{min-width:0}.mz-password{flex-wrap:wrap}
.sr-stage .sr-action-icon{width:48px;height:48px;object-fit:contain;flex:0 0 48px}.sr-stage [data-sr="start"],.sr-stage [data-sr="exam"]{box-sizing:border-box;width:min(100%,350px)!important;height:66px;min-height:66px!important;border-radius:18px!important;display:flex;justify-content:center;align-items:center;gap:12px;padding:8px 18px;font-size:20px!important;border:2px solid #bea44d;background:#f5d66f;color:#534326}.sr-stage [data-sr="exam"]{background:#73b4a4;border-color:#5b9c8e;color:#133e35}.sr-stage [data-sr="start"]:disabled,.sr-stage [data-sr="exam"]:disabled{opacity:.65}.sr-selection footer>.btn{box-sizing:border-box;width:min(100%,350px)!important;min-height:66px!important;border-radius:18px!important}.sr-welcome .sr-hint{font-size:18px}.sr-welcome>.sr-text{min-height:32px;padding:4px 12px}
@media(max-width:550px){.learning-hub{gap:18px;padding:14px}.lh-qr{padding:18px 12px;gap:12px}.lh-qr-icon{width:78px;height:78px;flex-basis:78px}.lh-qr h1{font-size:19px}.lh-qr p{font-size:14px}.lh-qr .btn{font-size:14px;padding:10px}.lh-activities{gap:12px}.lh-activity{border-radius:20px;gap:7px}.lh-activity small{font-size:12px}.lh-duo,.lh-game-art{height:78px}.lh-activity strong{font-size:17px}.sr-welcome{gap:12px}.sr-welcome h1{font-size:25px}.sr-welcome .sr-goose{height:110px}}
@media(max-height:650px){.learning-hub{justify-content:flex-start;gap:12px}.lh-qr{padding:12px}.lh-qr-icon{width:65px;height:65px;flex-basis:65px}.lh-activities{max-width:440px;width:100%;align-self:center}.lh-activity{max-height:195px}.sr-welcome .sr-goose{height:75px}.sr-welcome{gap:8px}.sr-welcome>.btn{height:58px;min-height:58px!important}.sr-welcome .sr-action-icon{height:40px;width:40px;flex-basis:40px}}

.sr-welcome>.btn{box-sizing:border-box;width:min(100%,350px)!important;min-height:66px!important;border-radius:18px!important}

/* v11: keep picture and Korean meaning visible together in game clues. */
.df-quiz{flex-basis:275px;min-height:275px;max-height:275px;grid-template-rows:46px 100px 4px 100px}
.df-question-cue{max-height:100px}
.df-paired-cue{display:grid;grid-template-columns:minmax(80px,110px) minmax(0,260px);align-items:center;justify-content:center;gap:18px;width:min(100%,430px);height:100%;margin:auto}
.df-paired-cue .df-chapter-picture,.df-paired-cue .df-word-art{width:100%;max-width:110px;height:100%;max-height:100px;min-height:0}
.df-paired-cue .df-chapter-picture>.sr-art{width:100%;height:100%;max-height:100px}
.df-paired-cue>strong{font-size:clamp(22px,5.2vw,28px);line-height:1.35;word-break:keep-all;overflow-wrap:anywhere;color:#295e54;text-align:left}
.df-boss .df-monster-health{background:#67496e;background-image:none;border-radius:8px}
.df-boss .df-monster-health::before,.df-boss .df-monster-health::after{display:none}
.df-start-panel h2{line-height:1.4}.df-start-panel p{line-height:1.55}
#mz-modal .mz-poster{width:min(88vw,360px)}
.mz-poster .mz-hints{grid-template-columns:minmax(76px,100px) minmax(0,1fr);gap:16px}
.mz-clue-art{height:110px;min-width:0;display:flex;align-items:center;justify-content:center}
.mz-clue-art>.sr-art,.mz-clue-art>.mz-drawing{width:100%;height:100%;object-fit:contain;max-height:110px}
.mz-poster .mz-meaning-list{list-style:none;padding:0;margin:0;font-size:23px;font-weight:700;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}
#mz-clue-picture{width:clamp(58px,18%,76px);padding:5px}
#mz-clue-picture>.sr-art{width:100%;height:100%;display:block}
#mz-clue-notes{width:clamp(120px,39%,185px);padding:9px}
#mz-clue-notes .mz-meaning-list{list-style:none;padding:0;font-size:clamp(16px,4vw,19px);font-weight:700;line-height:1.35;word-break:keep-all;overflow-wrap:anywhere}
@media(min-width:761px){.df-quiz{flex-basis:251px;min-height:251px;max-height:251px;grid-template-rows:46px 120px 4px 48px}.df-question-cue{max-height:120px}.df-paired-cue .df-chapter-picture,.df-paired-cue .df-word-art,.df-paired-cue .df-chapter-picture>.sr-art{max-height:120px}}
@media(max-height:650px){.df-quiz{flex-basis:241px;min-height:241px;max-height:241px;grid-template-rows:40px 80px 4px 92px}.df-question-cue{max-height:80px}.df-paired-cue{grid-template-columns:80px minmax(0,260px);gap:12px}.df-paired-cue .df-chapter-picture,.df-paired-cue .df-word-art,.df-paired-cue .df-chapter-picture>.sr-art{max-height:80px}.df-paired-cue>strong{font-size:21px}}
/* Reserve a column per clue so longer Korean meanings never cover GP. */
.mz-top-clues{display:grid;grid-template-columns:clamp(58px,18vw,76px) minmax(60px,1fr) minmax(120px,39%);gap:6px;align-items:start}
.mz-top-clues #mz-clue-picture,.mz-top-clues #mz-clue-notes,.mz-top-clues .mz-stage-hud{position:static;transform:none;width:100%;min-width:0;grid-row:1}
.mz-top-clues #mz-clue-picture{grid-column:1}.mz-top-clues .mz-stage-hud{grid-column:2;justify-content:center;flex-wrap:wrap}.mz-top-clues #mz-clue-notes{grid-column:3}
.mz-mapbox #mz-slots{top:92px;bottom:auto;max-width:94%;white-space:normal}

/* Equal clue halves: picture at 25%, meaning starts at the midpoint. */
.df-paired-cue{grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;max-width:none;gap:0}
.df-paired-cue>:first-child{justify-self:center;align-self:center}
.df-paired-cue>strong{box-sizing:border-box;align-self:stretch;display:flex;align-items:center;justify-content:flex-start;padding:10px 16px;background:#e7efdf;border-radius:14px;color:#315c4e}
#mz-modal .mz-hints{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;align-items:stretch}
#mz-modal .mz-clue-art{width:100%;height:120px;padding:8px;box-sizing:border-box;justify-self:center;align-self:center}
#mz-modal .mz-meaning-list{display:flex;flex-direction:column;justify-content:center;padding:14px;background:#eee2c5;border-radius:12px;text-align:left;box-sizing:border-box;min-width:0}
@media(max-width:550px){.df-paired-cue>strong{padding:8px 12px}#mz-modal .mz-meaning-list{font-size:21px;padding:12px}}

/* v14: chapter choice is explicit, while both next steps remain discoverable. */
.lh-activity{transition:filter .2s,opacity .2s,background-color .2s}
.lh-activity:disabled{filter:grayscale(1);opacity:.56;cursor:default;transform:none}
.df-paired-cue>strong{background:linear-gradient(145deg,#fffdf6,#f7ecd5);border:1px solid #e5d5b8;border-radius:18px 18px 18px 7px;box-shadow:inset 0 2px 0 #ffffff,0 3px 8px #4e49340b;color:#594d39}

/* Uploaded full character icons: no cropping or costume changes. */
.lh-activity{aspect-ratio:auto;min-height:230px}.lh-new-art{height:140px;width:90%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.lh-new-art img{width:100%;height:100%;object-fit:contain;object-position:center;display:block;padding:4px;box-sizing:border-box}
@media(max-width:550px){.lh-activity{min-height:207px}.lh-new-art{height:110px}}
@media(max-height:650px){.lh-activity{min-height:175px}.lh-new-art{height:85px}}

/* Three horizontal game choices, in reading order on every viewport. */
.mz-hub{width:min(100%,650px);margin:auto;padding:20px;box-sizing:border-box;overflow-y:auto;height:100%}
.mz-hub .mz-cards{display:flex;flex-direction:column;gap:16px;width:100%;max-width:none}
.mz-hub .mz-cards>button{display:grid;grid-template-columns:72px minmax(0,1fr) 20px;align-items:center;column-gap:18px;min-height:116px;height:auto;aspect-ratio:auto;width:100%;padding:18px 22px;text-align:left;border-radius:23px;border:1.5px solid #cad9bc;background:#f2f7e9;color:#345442;box-shadow:0 5px 0 #e0e8d5;font:inherit}
.mz-hub .mz-cards>button:first-child{background:#fff2d3;border-color:#e4cd94;box-shadow:0 5px 0 #eddfb9}
.mz-hub .mz-cards>button:nth-child(2){background:#e6f3ed;border-color:#bad8ca;box-shadow:0 5px 0 #d4e6dc}
.mz-hub .mz-cards>button:active{transform:translateY(2px)}
.mz-game-emoji{display:grid;place-items:center;width:72px;height:72px;font-size:43px;background:#ffffff8f;border-radius:22px;grid-row:1/3}
.mz-game-copy{min-width:0}.mz-game-copy b{display:block;font-size:23px;line-height:1.3;margin:0 0 7px}.mz-game-copy small{display:block;font-size:14px;line-height:1.5;color:#627866}.mz-game-arrow{font-size:27px;color:#77917c}
.gr-host{position:fixed;inset:0;z-index:5000;background:#eef3e6;display:flex;flex-direction:column;align-items:center;overflow:hidden}
.gr-host>header{width:min(100%,600px);height:52px;flex:0 0 52px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;box-sizing:border-box;color:#345442}
.gr-host>header button{border:1px solid #cad9bc;border-radius:13px;background:#fffdf4;color:#345442;font:inherit;font-size:15px;padding:8px 10px;min-height:40px;cursor:pointer}.gr-host>header strong{font-size:14px}
.gr-host iframe{border:0;display:block;width:min(100%,450px);height:calc(100dvh - 52px);max-height:900px;background:#fffdf0;border-radius:18px 18px 0 0}
@media(max-width:550px){.mz-hub{padding:16px}.mz-hub .mz-cards{gap:14px}.mz-hub .mz-cards>button{grid-template-columns:58px minmax(0,1fr) 14px;gap:12px;padding:16px;min-height:110px}.mz-game-emoji{width:58px;height:62px;font-size:35px;border-radius:18px}.mz-game-copy b{font-size:20px}.mz-game-copy small{font-size:13px}.gr-host iframe{border-radius:0}}

.lh-chapter .lh-picker-label,.lh-chapter label{display:block;font-size:1.125rem;font-weight:700;margin:0 0 8px}
.lh-volumes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.lh-volumes button{appearance:none;min-height:44px;margin:0;border:1px solid #a9bda7;border-radius:11px;background:white;color:#294931;font:inherit;font-weight:700;cursor:pointer}
.lh-volumes button[aria-pressed="true"]{background:#285934;border-color:#285934;color:white}
.lh-volumes button:focus-visible,.lh-chapter select:focus-visible{outline:3px solid #427744;outline-offset:2px}
.lh-chapter select{background-color:white;border-color:#537854;border-radius:12px;min-height:46px}
