/* Grade-4 HUD and native-learning styles are reused verbatim; these rules adapt U0 & U1 content. */
#hud button{pointer-events:auto}#hud #journal,.hud-help-button{font:16px Jua;color:var(--leather);background:var(--paper);border:1px solid var(--rim);border-radius:10px;padding:8px 12px;cursor:pointer}#goal{gap:6px}.spellbar .slots{display:flex}.spellbar .slot{flex:1}.element-note{text-align:center}#sky-minimap{padding:0;cursor:pointer}#sky-minimap span{position:absolute;bottom:3px;left:0;right:0;text-align:center;color:var(--leather);font:13px Jua;background:#fbf4e3cc}#toast{z-index:70}#toast.show{opacity:1;animation:none}#panel{max-height:90vh;overflow:auto}#panel .actions{display:grid;gap:10px;margin-top:18px}#panel button{font:19px Jua;background:#fff8e8;color:var(--leather);border:2px solid var(--rim);border-radius:12px;padding:12px;cursor:pointer}#panel button.primary{background:var(--orange);color:white;border-color:var(--leather)}#panel .eyebrow{color:var(--soft)}#panel .sub{font-size:15px}.map-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.route-row{padding:12px;border:1px solid var(--rim);border-radius:12px;font:16px/1.6 Nanum}.mb-journal-photo img{object-fit:cover;max-height:250px;width:100%}.mb-study-body{user-select:text}body:not([data-state="play"]) #hud .cross,body:not([data-state="play"]) #interact{display:none}.mb-study[hidden]{display:none!important}.help{top:auto;bottom:150px;right:22px}.talk-prompt{cursor:pointer}.talk-prompt[hidden]{display:none!important}#stage canvas{cursor:default}
#sky-minimap .mini-key{transform:none;width:auto;left:0;right:0;bottom:3px;top:auto;padding:3px;border:0;border-radius:0;background:#fbf4e3bb;white-space:nowrap}.world-map-overlay[hidden]{display:none!important}.world-map-sheet canvas{max-height:64vh;object-fit:contain}.world-map-card{width:min(880px,94vw)}
.world-map-sheet{width:min(760px,80vw);height:auto;aspect-ratio:5/4;max-height:65vh;background:#f3dca4}.world-map-sheet canvas{width:100%;height:100%;display:block;object-fit:contain;max-height:65vh}

/* The unlocked-pointer fallback must not leave a crosshair cursor over play. */
body[data-state="play"] #stage canvas{cursor:none}

.scene-veil{position:fixed;inset:0;background:#3d2b1f;color:#f5ead2;display:grid;place-content:center;text-align:center;white-space:pre-line;line-height:2;font-size:28px;z-index:20000;opacity:0;pointer-events:none;transition:opacity .2s ease;letter-spacing:.05em}.scene-veil.show{opacity:1;pointer-events:all}
.island-choices{display:flex;gap:10px;align-items:center;padding:10px 18px;background:#e7dfce}.island-choices button{flex:1;background:#f6f1e2;border:1px solid #b5ad94;padding:10px 14px;border-radius:8px;color:#3d2b1f;cursor:pointer}.island-choices button[aria-current]{background:#a85a26;color:#fff8df}.island-choices b,.island-choices small{display:block}.island-choices span{font-size:12px;color:#6c6d60}.world-map-sheet canvas{max-height:48vh}.world-map-card{max-height:94vh;overflow:auto}
@media(prefers-reduced-motion:reduce){.scene-veil{transition:none}}

.sky-cinema{display:none;position:fixed;inset:0;z-index:19000;pointer-events:none}.sky-cinema.active{display:block}.cinema-top,.cinema-bottom{position:absolute;left:0;right:0;height:8vh;background:#2a1d14}.cinema-top{top:0}.cinema-bottom{bottom:0}.cinema-caption{position:absolute;left:0;right:0;bottom:11vh;text-align:center;color:#fff5df;font-size:24px;text-shadow:0 2px 8px #2a1d14}.cinema-skip{position:absolute;right:24px;top:10vh;pointer-events:auto;background:#3d2b1fdd;border:1px solid #eee2c6;color:#fff5df;border-radius:9px;padding:10px 18px;cursor:pointer}body.cinematic #hud{visibility:hidden}
.meadow-battle{position:fixed;z-index:25;top:20px;left:50%;transform:translateX(-50%);width:420px;max-width:46vw;padding:12px 18px;background:#2a1d14eb;border:1px solid #a39570;border-radius:10px;color:#f8ebd0;text-align:center;box-shadow:0 8px 28px #0005}.meadow-battle[hidden]{display:none}.meadow-battle-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.meadow-battle small{display:block;font-size:11px;color:#c5bdac}.meadow-flask-hint{font-size:11px;color:#9ff3c6;background:#3d2b1f;padding:2px 8px;border-radius:99px;border:1px solid #e38a3f}.meadow-battle b{display:block;font-size:18px;margin:6px 0}.battle-meter{height:7px;background:#080f17;border-radius:4px;overflow:hidden}.battle-meter i{display:block;height:100%;background:linear-gradient(90deg,#d89f64,#f0be7a);transition:width .15s}.battle-ward-meter{height:5px;background:#2a1d14;border-radius:4px;overflow:hidden;margin-top:4px}.battle-ward-meter i{display:block;height:100%;background:#e0b45a;transition:width .15s}.battle-ward-meter i[data-phase="open"]{background:#ffe27a}.battle-link-chips{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:6px}.link-chip{font-size:11px;padding:2px 8px;border-radius:99px;background:#3d2b1f;color:#b8c7c2;border:1px solid #a85a26}.link-chip.done{background:#3d2b1f;color:#dfffe8;border-color:#e0b45a}.meadow-battle p{font-size:12px;margin:7px 0 5px;color:#ded8c8}.meadow-battle button{background:transparent;border:0;color:#c5bdac;font:inherit;font-size:11px;cursor:pointer;padding:2px 10px}
body:not([data-state="play"]) .meadow-battle{display:none}
.meadow-place{position:fixed;left:24px;bottom:190px;z-index:9;padding:9px 15px;border:1px solid #d4ceaa;border-radius:6px;background:#a85a26e8;color:#fff2d3;font-size:13px;pointer-events:none}.meadow-place[data-zone="battle"]{background:#69515ee8}.meadow-place[hidden],body:not([data-state="play"]) .meadow-place{display:none}.meadow-story-cinema .cinema-caption{max-width:920px;width:80%;font-size:22px;line-height:1.6;text-wrap:balance}
.world-map-card .world-map-sheet{width:min(100%,680px,calc((100dvh - 270px)*1.25));height:auto;aspect-ratio:5/4;max-height:none}.world-map-card .world-map-sheet canvas{width:100%;height:auto;max-height:none;aspect-ratio:5/4}.meadow-story-cinema .cinema-caption{background:#3d2b1fe8;padding:12px 20px;border-radius:6px;text-shadow:none;left:50%;right:auto;transform:translateX(-50%)}
