.mist-poetry-layer { position:fixed; inset:0; z-index:32; pointer-events:none; overflow:hidden; --ink:#38483d; --label:#fff1cc; --accent:#947132; --mist:247,239,212; }
.mist-poetry-layer[hidden] { display:none; }
.poetry-temperature { position:absolute; inset:0; background:#7c98b1; opacity:0; }
.poetry-stage { position:absolute; font-family:'KaiTi','STKaiti','FangSong',serif; font-size:clamp(28px,2.08vw,42px); font-weight:400; line-height:1.7; letter-spacing:.055em; color:var(--ink); }
.poetry-stage[hidden] { display:none; }
.poetry-label { position:relative; width:max-content; max-width:100%; font-size:.84em; line-height:1.7; color:var(--label); letter-spacing:.1em; text-shadow:0 1px 2px #323823bb; }
.poetry-label::before { content:''; position:absolute; z-index:-1; inset:-27px -52px; background:radial-gradient(ellipse at 43% 48%,rgba(var(--mist),.20),rgba(var(--mist),.10) 27%,transparent 65%),radial-gradient(ellipse at 61% 52%,rgba(var(--mist),.17),transparent 62%); }
.poetry-text { position:relative; margin-top:18px; }
.poetry-line { margin:0; height:1.85em; white-space:nowrap; }
.poetry-focus { font-size:1em; color:inherit; font-weight:400; display:inline-block; vertical-align:baseline; }
.poetry-wash { position:absolute; z-index:-1; inset:-60px -78px -54px; opacity:0; background:radial-gradient(ellipse at 42% 45%,rgba(var(--mist),.91) 0%,rgba(var(--mist),.82) 40%,rgba(var(--mist),.44) 68%,transparent 90%),radial-gradient(ellipse at 69% 58%,rgba(var(--mist),.58),transparent 63%),radial-gradient(ellipse at 20% 69%,rgba(var(--mist),.35),transparent 57%); }
.poetry-stage[data-container="mist"] .poetry-wash { background:radial-gradient(ellipse at 48% 53%,rgba(var(--mist),.72),rgba(var(--mist),.36) 38%,transparent 70%); }
.poetry-wash { mask-image:radial-gradient(ellipse closest-side at 48% 49%,#000 45%,#000d 70%,transparent 99%); -webkit-mask-image:radial-gradient(ellipse closest-side at 48% 49%,#000 45%,#000d 70%,transparent 99%); }
.poetry-stage[data-container="air"] .poetry-wash,.poetry-stage[data-container="air"] .poetry-label { display:none; }
.poetry-stage[data-container="air"] { width:max-content; text-align:center; color:#edf0eb; letter-spacing:.14em; text-shadow:0 1px 2px #32485880; }
.poetry-stage[data-container="air"] .poetry-line:first-child { font-size:1.36em; line-height:1.8; }
.poetry-stage[data-container="air"] .poetry-line:nth-child(2) { font-size:.83em; letter-spacing:.12em; color:#dce4e8; margin-top:12px; }
.poetry-cue { position:absolute; width:30px; height:24px; opacity:0; overflow:visible; fill:#d8c68f; }
.poetry-local-mist { position:absolute; width:150px; height:85px; background:radial-gradient(ellipse,rgba(237,235,202,.22),transparent 68%); opacity:0; }
.poetry-ink { position:absolute; width:210px; height:65px; left:7px; bottom:8px; overflow:visible; opacity:0; }
.poetry-ink path { stroke:var(--accent); stroke-width:1.05; fill:none; stroke-linecap:round; }
.mist-poetry-enabled .observation-label { display:none!important; }
.mist-poetry-enabled .hotspot-calibration-toggle { display:none; }
.poetry-teacher { position:fixed; z-index:85; bottom:78px; left:50%; transform:translateX(-50%); display:flex; align-items:center; flex-wrap:wrap; gap:6px; max-width:calc(100% - 30px); padding:9px 12px; color:#39463b; background:#eee8d8ed; border-radius:6px; font:14px/1.6 system-ui,'Microsoft YaHei',sans-serif; }
.poetry-teacher[hidden] { display:none; }
.poetry-teacher button,.poetry-teacher select { font:inherit; color:inherit; cursor:pointer; padding:4px 7px; border:1px solid #8f997966; background:transparent; border-radius:3px; }
.poetry-teacher output { flex-basis:100%; font-size:12px; }
.poetry-debug { position:fixed; left:10px; top:10px; white-space:pre; font:12px monospace; color:#fff; background:#263039; padding:8px; }
@media(max-width:699px) { .poetry-stage { font-size:clamp(23px,5.7vw,32px); letter-spacing:.015em; line-height:1.7; } .poetry-wash { inset:-40px -32px; } .poetry-stage[data-container="air"] .poetry-line:first-child { font-size:1.3em; } .poetry-teacher { width:calc(100% - 42px); bottom:78px; } }
@media(prefers-reduced-motion:reduce) { .poetry-cue,.poetry-ink { display:none; } }

/* A thin poem cue in the upper sky, with only a trace of warm paper. */
.poetry-stage[data-container="verse-frame"] { box-sizing:border-box; padding:18px 28px; font-size:clamp(22px,1.8vw,35px); line-height:1.8; letter-spacing:.045em; color:var(--ink); text-shadow:0 1px 3px #303821a6; }
.poetry-stage[data-container="verse-frame"] .poetry-text { margin:0; }
.poetry-stage[data-container="verse-frame"] .poetry-line { height:auto; min-height:1.8em; white-space:normal; overflow-wrap:anywhere; }
.poetry-stage[data-container="verse-frame"] .poetry-wash { inset:0; border:1px solid rgba(231,196,113,.55); border-radius:7px; background:linear-gradient(105deg,rgba(255,248,227,.10),rgba(255,249,235,.035),rgba(255,248,227,.09)); mask-image:none; -webkit-mask-image:none; }
.mist-poetry-layer[data-state="NEAR"] .poetry-text,.mist-poetry-layer[data-state="LABEL"] .poetry-text { display:none; }
.mist-poetry-layer[data-state="READ"] .poetry-label,.mist-poetry-layer[data-state="FOCUS"] .poetry-label,.mist-poetry-layer[data-state="RETURN"] .poetry-label { display:none; }
@media(max-width:699px) { .poetry-stage[data-container="verse-frame"] { padding:12px 15px; font-size:clamp(17px,4.45vw,23px); letter-spacing:.015em; } }

/* Classroom projection: large, opaque ink with a small warm halo at the glyphs. */
.poetry-stage[data-container="verse-frame"] { padding:22px 38px; font-family:'KaiTi','STKaiti','Microsoft YaHei',sans-serif; font-size:clamp(28px,2.8125vw,54px); font-weight:700; line-height:1.48; letter-spacing:.025em; text-shadow:0 0 2px #fff8e6,0 0 5px #fff8e6,0 0 11px rgba(255,248,230,.85); }
.poetry-stage[data-container="verse-frame"] .poetry-line { min-height:1.48em; }
.poetry-stage[data-container="verse-frame"] .poetry-focus { font-weight:700; }
.poetry-stage[data-container="verse-frame"] .poetry-wash { border-color:rgba(228,193,109,.65); background:linear-gradient(100deg,rgba(255,248,227,.15),rgba(255,249,235,.08),rgba(255,248,227,.12)); }
@media(max-width:699px) { .poetry-stage[data-container="verse-frame"] { padding:14px 15px; font-size:clamp(18px,4.7vw,25px); line-height:1.6; letter-spacing:0; } .poetry-stage[data-container="verse-frame"] .poetry-line { min-height:1.6em; } }

/* Stable classroom typography and a quiet, warm translucent reading area. */
.poetry-stage[data-container="verse-frame"] { font-family:'SimSun','Songti SC','Noto Serif CJK SC',serif; font-size:clamp(28px,2.7083vw,52px); font-weight:700; line-height:1.6; letter-spacing:.01em; color:#fff8e6; text-shadow:0 1px 2px rgba(55,45,30,.8),0 0 4px rgba(80,64,39,.42); -webkit-text-stroke:.35px rgba(88,72,47,.65); }
.poetry-stage[data-container="verse-frame"] .poetry-line { min-height:1.6em; }
.poetry-stage[data-container="verse-frame"] .poetry-wash { background:linear-gradient(110deg,rgba(255,244,218,.26),rgba(249,234,205,.19),rgba(255,245,225,.25)); backdrop-filter:brightness(.68) saturate(.65); -webkit-backdrop-filter:brightness(.68) saturate(.65); border:1px solid rgba(237,202,124,.65); border-radius:7px; }
.mist-poetry-layer[data-state="RETURN"][data-return-from="LABEL"] .poetry-label,.mist-poetry-layer[data-state="RETURN"][data-return-from="NEAR"] .poetry-label { display:block; }
.mist-poetry-layer[data-state="RETURN"][data-return-from="LABEL"] .poetry-text,.mist-poetry-layer[data-state="RETURN"][data-return-from="NEAR"] .poetry-text { display:none; }
.poetry-hotspot-light { position:absolute; width:76px; height:76px; transform:translate(-50%,-50%); pointer-events:none; opacity:0; background:radial-gradient(circle,rgba(255,214,120,.46) 0%,rgba(255,218,137,.23) 24%,rgba(249,211,124,.09) 48%,transparent 72%); }
.poetry-light-core { position:absolute; left:50%; top:50%; width:7px; height:7px; border-radius:50%; background:#ffdf8b; box-shadow:0 0 6px 2px rgba(255,211,110,.26); transform:translate(-50%,-50%) scale(var(--light-scale,1)); }
.poetry-light-ring { position:absolute; left:50%; top:50%; width:22px; height:22px; box-sizing:border-box; border:1px solid #f6d388; border-radius:50%; opacity:0; }
@media(max-width:699px) { .poetry-stage[data-container="verse-frame"] { padding:14px 15px; font-size:clamp(18px,4.7vw,25px); letter-spacing:0; } }
.poetry-light-core { width:16px; height:16px; background:radial-gradient(circle,#ffe6a0 12%,rgba(255,218,127,.92) 46%,rgba(255,216,119,.36) 73%,transparent 100%); box-shadow:0 0 5px 2px rgba(255,220,135,.38),0 0 15px 6px rgba(255,207,105,.18); }
/* Position-only DOM host; all light response is drawn from Technique Lab simulation. */
.poetry-hotspot-light { width:240px; height:240px; background:none; z-index:0; transition:opacity .18s ease; }
.poetry-stage { z-index:1; }
@media(prefers-reduced-motion:reduce) { .poetry-hotspot-light { transition:none; } }
.poetry-hotspot-light canvas { width:240px; height:240px; display:block; pointer-events:none; }
