.dm-body{--dm-ink:#173c38;--dm-green:#086f5b;color:var(--dm-ink)}.dm-welcome{border-radius:24px;padding:clamp(20px,3vw,36px);background:linear-gradient(110deg,#e5f6ed,#fff8dd);margin-bottom:22px}.dm-welcome h1{font-size:clamp(1.5rem,3vw,2.2rem);margin:.4em 0}.dm-worlds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.dm-world{display:flex;flex-direction:column;gap:8px;padding:22px;border:1px solid #d9e8df;border-radius:22px;background:#fff;box-shadow:0 8px 24px #173c3806;text-decoration:none;color:inherit;min-width:0}.dm-world h3,.dm-world p{margin:0}.dm-world p,.dm-world small{color:#526860}.dm-world-icon{font-size:2rem}.dm-world footer{display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding-top:18px;font-size:.85rem}.dm-levels{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px}.dm-level{display:grid;place-content:center;gap:4px;min-height:65px;background:#fff;border:1px solid #cbded4;border-radius:14px;color:#145848;font:inherit;cursor:pointer}.dm-level:disabled{opacity:.5;cursor:default}.dm-level small{color:#9c7100}.dm-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.dm-profile-grid input{display:block;width:100%;margin:8px 0 18px;padding:12px;border:1px solid #cbded4;border-radius:12px}.dm-game{position:fixed;inset:0;margin:auto;width:min(1050px,100%);height:min(760px,100dvh);max-width:100%;max-height:100dvh;padding:clamp(10px,2vw,24px);border:1px solid #c9ded3;border-radius:24px;background:linear-gradient(140deg,#f7fcf7,#fffdf3);color:#173c38;overflow:auto}.dm-game::backdrop{background:#0b2929bd;backdrop-filter:blur(5px)}.dm-game[open]{display:flex;flex-direction:column;gap:12px}.dm-game header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.dm-game header small{display:block}.dm-game .ds-btn{font-size:.9rem;padding:10px 16px;min-height:40px}.dm-game #dm-play{display:flex;flex-direction:column;gap:12px;min-height:0;flex:1}.dm-game [hidden]{display:none!important}.dm-reading{padding:14px;background:#e9f4ed;border-radius:16px;overflow:auto;max-height:28vh;white-space:pre-line;font-size:clamp(.85rem,1.8vw,1.05rem)}.dm-question-area{display:flex;flex-direction:column;justify-content:center;flex:1;min-height:0}.dm-question-area h2{font-size:clamp(1rem,2.2vw,1.6rem);margin:6px 0 14px}.dm-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dm-option{padding:clamp(12px,2vw,22px);min-height:60px;border:2px solid #c7ddd1;border-radius:16px;background:#fff;text-align:left;color:#173c38;font:inherit;font-weight:600;cursor:pointer;overflow-wrap:anywhere}.dm-option:hover{background:#e4f4ea;border-color:#38856a}.dm-option:focus-visible,.dm-level:focus-visible{outline:3px solid #ce8e00;outline-offset:3px}.dm-option:disabled{opacity:.65}.dm-feedback,#dm-results{margin:auto 0;text-align:center;padding:20px;overflow:auto}.dm-feedback h2{font-size:clamp(1.15rem,2.5vw,1.7rem)}#dm-reference{font-size:.85rem;color:#526860}#dm-results h2{color:#9a7000}#dm-results .ds-btn{margin:6px}#dm-status{margin:0;font-size:.9rem}.dm-landing .dm-editorial-note{border-left:4px solid #168365;padding:16px;background:#edf7f0;border-radius:0 16px 16px 0}.dm-landing .dm-worlds{grid-template-columns:repeat(3,minmax(0,1fr))}.dm-landing .dm-world-icon{font-size:2.2rem}.dm-landing .dm-preview{border-radius:28px;padding:28px;background:linear-gradient(140deg,#e3f6eb,#fff6da);box-shadow:0 20px 55px #2a6b4912}.dm-landing .dm-preview .dm-option{width:100%;margin-top:10px}.dm-landing .en-public-hero h1{font-size:clamp(2rem,4vw,3.5rem)}
@media(max-width:900px){.dm-worlds{grid-template-columns:repeat(3,minmax(0,1fr))}.dm-landing .dm-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.dm-worlds{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dm-world{padding:16px;gap:8px}.dm-world h3{font-size:1rem}.dm-world p{font-size:.85rem}.dm-world footer{flex-wrap:wrap}.dm-levels{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.dm-level{min-height:56px}.dm-profile-grid{grid-template-columns:1fr}.dm-game{border-radius:0}.dm-game .dm-options{gap:8px}.dm-game .dm-option{padding:12px;font-size:.9rem;min-height:65px}.dm-reading{padding:10px;max-height:25vh}.dm-landing .dm-worlds{grid-template-columns:1fr 1fr}.dm-landing .dm-preview{padding:18px}}
@media(max-height:450px) and (orientation:landscape){.dm-game{border-radius:0;height:100dvh}.dm-game #dm-play{flex-direction:row}.dm-reading{flex:0 0 32%;max-height:none}.dm-question-area{flex:1}.dm-question-area h2{font-size:1rem;margin:0 0 8px}.dm-option{padding:9px;min-height:50px;font-size:.9rem}.dm-game header .ds-btn{min-height:32px;padding:6px 12px}.dm-game{gap:6px;padding:10px}}
@media(prefers-reduced-motion:reduce){.dm-body *,.dm-landing *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.dm-body,.dm-landing{--ds-primary:#0b7058}.dm-body[data-accent=blue],.dm-landing[data-accent=blue]{--ds-primary:#2455a4}.dm-body[data-accent=purple],.dm-landing[data-accent=purple]{--ds-primary:#6752af}.dm-body[data-accent=amber],.dm-landing[data-accent=amber]{--ds-primary:#975809}.dm-body.ds-child-shell .ds-header{background:var(--ds-primary);color:#fff}.dm-body.ds-child-shell .ds-header .ds-brand,.dm-body.ds-child-shell .ds-header .ds-brand small{color:#fff}.dm-body .ds-main>h2{color:#173c38;text-shadow:none}.dm-body .ds-eyebrow{color:var(--ds-primary)}.dm-body .ds-header .ds-menu{background:#ffffffed;color:var(--ds-primary)}.en-landing.dm-landing .ds-btn{background:var(--ds-primary)}.en-landing.dm-landing .ds-btn.secondary{background:#fff;color:var(--ds-primary)}.dm-body .ds-btn.secondary{color:var(--ds-primary)}.dm-admin-nav{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}

.dm-game #dm-question{max-height:15dvh;overflow:auto;flex-shrink:0}.dm-game .dm-option{max-height:18dvh;overflow:auto}.dm-game .dm-options{flex-shrink:1;min-height:0}.dm-game .dm-question-area{overflow:hidden}.dm-game .game-confetti{pointer-events:none}

.dm-game #dm-play{justify-content:center;gap:22px}.dm-game .dm-question-area{flex:0 1 auto;justify-content:flex-start;gap:8px}.dm-game #dm-world-symbol{font-size:3rem;align-self:center;line-height:1.2;margin-bottom:8px}.dm-game #dm-progress{appearance:none;width:100%;height:6px;border:0;border-radius:99px;overflow:hidden;flex-shrink:0}.dm-game #dm-progress::-webkit-progress-bar{background:#e3eee6}.dm-game #dm-progress::-webkit-progress-value{background:#16836a;border-radius:99px}.dm-game #dm-progress::-moz-progress-bar{background:#16836a}.dm-game #dm-question{font-size:clamp(1.1rem,2.2vw,1.6rem)}.dm-game header strong{font-size:.9rem}.dm-game .dm-reading{border:1px solid #d4e6d9}.dm-game .dm-option{box-shadow:0 4px 0 #d9e9df66}.dm-game #dm-question{margin-bottom:10px}
@media(max-height:450px) and (orientation:landscape){.dm-game #dm-play{gap:14px}.dm-game #dm-world-symbol{display:none}.dm-game .dm-question-area{flex:1;justify-content:center}.dm-game #dm-question{font-size:1rem}.dm-reading{align-self:stretch}.dm-game #dm-progress{height:4px}}

.dm-public-close{display:none}.dm-public-backdrop{position:fixed;inset:0;background:#102c2a80;z-index:40;border:0}.dm-landing>header{z-index:50}.dm-landing .en-sticky{z-index:30}.dm-public-open{overflow:hidden}@media(max-width:800px){.dm-public-close{display:inline-flex!important}.dm-landing header nav.is-open{max-height:calc(100dvh - 100px);overflow:auto;align-items:stretch}.dm-landing header nav.is-open a{padding:5px 10px}}
/* Keep all answer controls reachable on short portrait screens; long reading stays internally scrollable. */
@media(max-width:600px) and (max-height:650px) and (orientation:portrait){.dm-game[open]{gap:8px;padding:10px}.dm-game #dm-play{gap:12px}.dm-game #dm-world-symbol{font-size:2rem;margin-bottom:0}.dm-game .dm-reading{max-height:20dvh;padding:10px}.dm-game #dm-question{font-size:1rem;max-height:14dvh;margin:0 0 6px}.dm-game .dm-question-area{gap:6px}.dm-game .dm-options{gap:8px}.dm-game header strong{font-size:.82rem}.dm-game header .ds-btn{min-height:36px;padding:8px 12px}}
