:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#eef8fb;background:#040a12}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% 0,#12314a,#050b14 48rem)}button,a{font:inherit}.lesson-shell{width:min(2400px,100%);min-height:100vh;margin:auto;padding:clamp(10px,1.4vw,22px)}.lesson-header{height:clamp(52px,7vh,78px);display:flex;align-items:center;justify-content:space-between;gap:20px}.lesson-header p,.slide-eyebrow{margin:0;color:#6fdbed;font-weight:900;letter-spacing:.13em;font-size:clamp(10px,.8vw,13px)}.lesson-header h1{margin:2px 0 0;font-size:clamp(22px,2.2vw,38px)}.header-actions{display:flex;gap:8px}.header-actions a,.header-actions button,.lesson-nav button,.scene-menu button,.detective button{border:1px solid #36536c;border-radius:10px;padding:9px 14px;background:#10243a;color:#eef8fb;text-decoration:none;font-weight:800;cursor:pointer}.lesson-stage{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(100%,calc((100vh - clamp(86px,12vh,136px))*16/9));max-height:calc(100vh - clamp(86px,12vh,136px));aspect-ratio:16/9;margin:auto;overflow:hidden;border:1px solid #29485f;border-radius:18px;background:#07111f;box-shadow:0 24px 90px #000a}.lesson-stage:fullscreen{width:min(100vw,calc(100vh*16/9));height:min(100vh,calc(100vw*9/16));max-height:100vh;border:0;border-radius:0}.lesson-stage::backdrop{background:#040a12}.lesson-nav{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #28445a;background:#081522}.lesson-nav button{min-width:42px;min-height:38px;padding:6px 11px}.scene-status{display:flex;align-items:baseline;gap:12px;min-width:0}.scene-status strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(14px,1.2vw,19px)}.scene-status span{color:#a9c2cf;font-size:clamp(11px,.85vw,14px);white-space:nowrap}.scene-menu{position:absolute;z-index:20;inset:56px 12px 34px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px;overflow:auto;border:1px solid #3b5d74;border-radius:14px;background:#07111ff5;box-shadow:0 20px 50px #000}.scene-menu[hidden]{display:none}.scene-menu button{text-align:left}.scene-menu button b{display:inline-grid;place-items:center;width:25px;height:25px;margin-right:6px;border-radius:50%;background:#1b5269}.scene-menu button span{display:block;margin:5px 0 0 32px;color:#9fb8c5;font-size:11px}.scene{min-height:0;overflow:hidden}.slide{position:relative;display:grid;grid-template-columns:minmax(260px,.64fr) minmax(0,1.36fr);grid-template-rows:minmax(0,1fr);height:100%;min-height:0}.slide-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(20px,3vw,50px);border-right:1px solid #29485f;background:linear-gradient(145deg,#0b1b2b,#08131f)}.slide-copy h2{margin:10px 0;font-size:clamp(32px,4.2vw,72px);line-height:.98}.big-question{margin:10px 0;color:#ffd46c;font-size:clamp(20px,2.3vw,38px);font-weight:850;line-height:1.15}.teacher-cue{position:absolute;z-index:4;bottom:10px;left:10px;max-width:38%;padding:8px 11px;border:1px solid #45647a;border-radius:9px;background:#07111fea;color:#bad0da;font-size:clamp(10px,.75vw,13px);line-height:1.3}.teacher-cue b{display:block;color:#76d9ee;text-transform:uppercase;font-size:10px;letter-spacing:.1em}.primary-visual{display:grid;place-items:center;min-width:0;min-height:0;padding:3%;background:radial-gradient(circle,#143752,#07111f 68%)}.primary-visual svg{width:100%;height:100%;max-height:100%}.reveal-list{position:absolute;right:clamp(16px,2vw,32px);bottom:clamp(18px,2vw,32px);width:min(48%,660px);display:grid;gap:7px}.reveal-list p{margin:0;padding:10px 14px;border-left:4px solid #70deef;border-radius:8px;background:#0d2539eF;font-size:clamp(13px,1.1vw,19px);font-weight:750}.zoom-chain{display:flex;align-items:center;gap:clamp(8px,1.2vw,22px);width:94%}.zoom-chain>span{font-size:38px;color:#76d9ee}.zoom-node{aspect-ratio:1;flex:1;display:grid;place-items:center;border:3px solid #6bd6e9;border-radius:50%;background:#163d57;font-size:clamp(18px,2vw,34px);font-weight:900}.zoom-node.liquid{background:#642819}.zoom-node.molecular{position:relative;grid-template-columns:repeat(3,1fr);padding:14px}.zoom-node.molecular i{aspect-ratio:1;border-radius:50%;background:#ef626d}.zoom-node.molecular b{position:absolute;bottom:14%;text-align:center;font-size:clamp(10px,1vw,16px)}.element-cards,.compare-panels{display:grid;grid-template-columns:repeat(2,1fr);align-content:center;gap:clamp(14px,2vw,30px);padding:clamp(25px,4vw,70px);background:radial-gradient(circle,#143752,#07111f 70%)}.element-cards>div,.compare-panels>div{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:55%;padding:24px;border:2px solid #3e718a;border-radius:22px;background:#0d2437;text-align:center}.element-cards strong,.compare-panels strong{font-size:clamp(55px,8vw,130px);line-height:1}.element-cards b,.compare-panels b{font-size:clamp(18px,2vw,32px)}.element-cards span,.compare-panels span{margin-top:8px;color:#c0d3dc;font-size:clamp(13px,1.2vw,20px)}.slide-focus{display:block}.slide-focus>.slide-copy{position:absolute;z-index:3;top:12px;left:18px;padding:0;border:0;background:none;pointer-events:none}.slide-focus>.slide-copy h2{margin:3px 0;font-size:clamp(22px,2vw,34px)}.embedded-focus{height:100%}.embedded-focus .focus-card{grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr)}.embedded-focus .focus-copy{padding:clamp(24px,2.4vw,44px);padding-top:70px}.embedded-focus .focus-copy h2{font-size:clamp(26px,2.7vw,46px)}.embedded-focus .teacher-cue{display:none}.molecule-summary{display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,#163b56,#07111f 68%)}.linear-model{display:flex;align-items:center}.linear-model i{display:grid;place-items:center;width:clamp(70px,8vw,120px);aspect-ratio:1;border-radius:50%;background:#e95e69;font-size:clamp(26px,3vw,46px);font-style:normal;font-weight:900}.linear-model i:nth-of-type(2){background:#506776}.linear-model span{width:clamp(35px,4vw,70px);height:12px;border-block:3px solid #dce9ee}.molecule-summary>strong{margin-top:15px;font-size:clamp(45px,6vw,95px)}.molecule-summary>b{font-size:clamp(18px,1.8vw,28px)}.molecule-summary small{color:#b9cfda}.atom-key,.count-strip{position:absolute;right:22px;display:flex;gap:10px}.atom-key{top:22px}.atom-key span{padding:8px 12px;border-radius:9px;background:#112c41}.atom-key i{margin-right:6px;font-style:normal;font-weight:900}.count-strip{bottom:22px}.count-strip b{min-width:100px;padding:12px;border-radius:12px;background:#123149;text-align:center;font-size:clamp(24px,2.5vw,40px)}.count-strip span{display:block;color:#b8ccd6;font-size:12px;text-transform:uppercase}.pressure-compare,.object-pair{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;width:94%;text-align:center}.pressure-compare>div{display:grid;gap:12px}.pressure-compare>i{color:#78dced;font-size:26px;font-style:normal;font-weight:900}.liquid-box{display:grid;place-items:center;min-height:220px;padding:20px;border:4px solid #bde7ef;border-top:0;background:#632a1d;line-height:3;color:#ddf8ff}.liquid-box.escape em{transform:translateY(-50px);color:#fff}.object-pair{grid-template-columns:1fr 1fr}.pencil,.diamond{display:flex;flex-direction:column;align-items:center;gap:20px}.pencil i{display:block;width:80%;height:48px;background:linear-gradient(#efcb66 0 38%,#24333c 38% 62%,#efcb66 62%);clip-path:polygon(0 0,85% 0,100% 50%,85% 100%,0 100%)}.diamond i{color:#bceeff;font-size:clamp(100px,14vw,220px);font-style:normal;text-shadow:0 0 35px #63cae7}.safety-scene{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:30px;padding:5%;background:linear-gradient(145deg,#102d43,#07111f)}.detector{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:1;border-radius:50%;background:#eef4f5;color:#21313a;box-shadow:0 12px 40px #0008}.detector i{width:36%;height:12%;margin-bottom:12%;border-radius:8px;background:#9fb2b8}.detector b{font-size:clamp(10px,1vw,16px)}.detector span{margin-top:8px;color:#b82331;font-size:clamp(24px,3vw,50px);font-weight:900}.home-context{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.home-context span{display:grid;place-items:center;min-height:95px;padding:10px;border:1px solid #4d7085;border-radius:12px;background:#16364b;font-weight:850}.home-context small{color:#9fe2ae}.lattice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:18px;background:#07111f}.lattice-grid>div{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;border:1px solid #315268;border-radius:14px;overflow:hidden}.lattice-grid h3,.lattice-grid p{margin:0;padding:8px 12px;background:#0d2233;text-align:center}.lattice-grid p{color:#c7d8df;font-size:12px}.lattice-viewer{position:relative;min-height:0}.detective{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:8%;background:radial-gradient(circle,#183f59,#07111f 70%);text-align:center}.detective>div>strong{font-size:clamp(90px,15vw,240px)}.detective p{font-size:clamp(17px,1.6vw,28px)}.detective button{font-size:clamp(16px,1.4vw,23px)}#caseAnswer{margin:18px;padding:14px;border-radius:12px;background:#143c52;color:#ffdd7d;font-size:clamp(20px,2vw,34px);font-weight:900}.periodic-poster{display:grid;place-items:center;min-height:0;padding:2.5%;background:radial-gradient(circle,#163d58,#07111f)}.periodic-poster img{width:100%;height:100%;object-fit:contain;border-radius:10px}.slide-final{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5%;text-align:center;background:radial-gradient(circle,#17425e,#07111f 70%)}.slide-final .slide-copy{padding:0;border:0;background:none}.final-statement{max-width:1050px;font-size:clamp(22px,2.7vw,46px);font-weight:800;line-height:1.2}.final-flow{display:flex;align-items:center;gap:clamp(10px,2vw,30px)}.final-flow b{padding:clamp(12px,1.5vw,24px);border:2px solid #70deef;border-radius:15px;background:#102b40;font-size:clamp(15px,1.5vw,26px)}.final-flow span{color:#ffd46c;font-size:32px}.lesson-footer{display:flex;align-items:center;gap:12px;padding:5px 12px;color:#91aab6;font-size:10px;background:#07111f}.progress{flex:1;height:4px;background:#1a3141}.progress i{display:block;height:100%;background:#67d8eb;transition:width .25s ease}button:focus-visible,a:focus-visible{outline:3px solid #ffd166;outline-offset:3px}@media(max-width:850px),(orientation:portrait){.lesson-shell{padding:10px}.lesson-header{height:auto;min-height:78px}.header-actions a{display:none}.lesson-stage,.lesson-stage:fullscreen{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;overflow:visible}.lesson-nav{position:sticky;top:0;z-index:10}.scene{overflow:visible}.slide{display:block;height:auto}.slide-copy{min-height:240px;border-right:0;border-bottom:1px solid #29485f}.primary-visual,.element-cards,.compare-panels,.molecule-summary,.safety-scene,.detective,.periodic-poster,.gallery-panel{min-height:440px}.gallery-grid{grid-template-columns:repeat(4,1fr)}.reveal-list,.teacher-cue,.atom-key,.count-strip{position:static;width:auto;max-width:none;margin:12px}.lattice-grid{grid-template-columns:1fr}.lattice-viewer{height:390px}.embedded-focus{height:auto}.embedded-focus .focus-card{grid-template-columns:1fr}.scene-menu{position:fixed;inset:60px 10px;grid-template-columns:1fr}.lesson-footer{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.real-photo{display:block;width:100%;height:100%;max-height:100%;object-fit:cover;border-radius:14px;box-shadow:0 18px 60px #0009}.primary-visual .real-photo{max-width:100%;max-height:100%}.detector-photo{display:grid;place-items:center;min-height:0}.detector-photo .real-photo{aspect-ratio:4/3}
.slide-intro{margin:10px 0 0;color:#c7d9e2;font-size:clamp(13px,1.05vw,18px);line-height:1.45}
.gallery-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(8px,1vw,16px);min-height:0;padding:clamp(12px,1.6vw,26px);background:radial-gradient(circle,#143752,#07111f 70%);overflow:hidden}
.gallery-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:clamp(6px,.8vw,12px)}
.gallery-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:clamp(6px,.7vw,12px) 4px;border-radius:10px;background:var(--chip);color:#0b1b2b;text-align:center;box-shadow:0 4px 14px #0006}
.gallery-chip strong{font-size:clamp(16px,1.9vw,32px);line-height:1}
.gallery-chip span{font-size:clamp(8px,.75vw,13px);font-weight:700}
.gallery-ptable{display:grid;grid-template-columns:repeat(18,1fr);grid-template-rows:repeat(7,1fr);gap:3px;min-height:0}
.gallery-ptable i{display:grid;place-items:center;border:1px solid #1d3448;border-radius:4px;background:#0c1e30;color:transparent;font-style:normal;font-weight:800;font-size:clamp(7px,.85vw,15px)}
.gallery-ptable i.hit{background:#3fd0c4;border-color:#3fd0c4;color:#062a28;box-shadow:0 0 10px #3fd0c488}
.gallery-ptable i.known{background:#0c1e30;border:2px solid #ffd46c;color:#ffd46c}
.gallery-legend{display:flex;gap:18px;justify-content:center;color:#9fb8c5;font-size:clamp(10px,.85vw,14px)}
.gallery-legend i{display:inline-block;width:12px;height:12px;margin-right:6px;border-radius:3px;vertical-align:-1px}
.gallery-legend i.hit{background:#3fd0c4}
.gallery-legend i.known{border:2px solid #ffd46c;background:transparent}
.slide-element-gallery .reveal-list{width:min(36%,500px);bottom:clamp(52px,5.2vw,74px)}
.embedded-demo{min-height:0;overflow:auto;padding:clamp(10px,1.4vw,24px);background:#0a1826}
.embedded-demo .hw-card{margin:0 auto;max-width:940px;color:#16324a}
.embedded-demo .hw-m3-slot-label{color:#5b7186;font-weight:600}
.ec-wrap{display:grid;grid-template-rows:minmax(0,1fr);min-height:0;height:100%;background:#0a1826}
.ec-viewer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(8px,1vw,16px);align-items:center;min-height:0;padding:clamp(10px,1.4vw,24px)}
.ec-viewer>button{width:52px;height:52px;border:1px solid #36536c;border-radius:50%;background:#10243a;color:#eef8fb;font-size:22px;font-weight:900;cursor:pointer}
.ec-viewer>button:disabled{opacity:.25;cursor:default}
.ec-stage{min-height:0;max-height:100%;overflow:auto}
.ec-card{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(0,1.15fr);gap:clamp(12px,1.6vw,26px);align-items:start;max-width:1000px;margin:0 auto}
.ec-img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;box-shadow:0 18px 60px #0009}
.ec-media{display:block;min-width:0}
.ec-cap{margin-top:8px;font-size:clamp(12px,1vw,16px);line-height:1.45;color:#cfe3ee}
.ec-cap-lg{font-size:clamp(15px,1.4vw,22px);color:#ffe1a1;font-weight:700}
.ec-dots{display:flex;gap:10px;justify-content:center;margin-top:12px}
.ec-dots button{width:13px;height:13px;border-radius:50%;border:2px solid #6fdbed;background:transparent;padding:0;cursor:pointer}
.ec-dots button.on{background:#ffd46c;border-color:#ffd46c}
.ec-focus{display:block;max-width:740px;margin:0 auto;text-align:center}
.ec-focus h3{margin:0 0 14px;font-size:clamp(24px,2.6vw,44px);line-height:1.05}
.ec-kicker{margin:0 0 6px;color:#6fdbed;font-weight:900;letter-spacing:.13em;font-size:clamp(10px,.8vw,13px);text-transform:uppercase}
.ec-body h3{margin:0 0 10px;font-size:clamp(24px,2.6vw,44px);line-height:1.05}
.ec-sym{color:#ffd46c}
.ec-num{font-size:.6em;font-weight:800;color:#ffd46c;margin-right:.12em}

.ec-hook{margin:0 0 10px;color:#ffd46c;font-size:clamp(15px,1.4vw,22px);font-weight:800}
.ec-body p{margin:0 0 10px;color:#d7e6ee;font-size:clamp(13px,1.15vw,19px);line-height:1.5}
.ec-fact{background:#0d2539;border-left:4px solid #70deef;border-radius:8px;padding:10px 14px}
.ec-fact b{color:#76d9ee}
.ec-mini{margin:16px auto 6px;max-width:600px}
.ec-mini-grid{display:grid;grid-template-columns:repeat(18,1fr);gap:3px}
.ec-mini-grid i{display:block;aspect-ratio:1;border-radius:3px;background:#13293d;opacity:.32;font-style:normal}
.ec-mini-grid i.on{opacity:1;background:#3a2f10;border:1px solid #ffd46c;box-shadow:0 0 14px #ffd46c66;display:grid;place-items:center;color:#ffd46c;font-weight:900;font-size:15px;line-height:1}
.ec-mini-cap{margin:8px 0 0;text-align:center;color:#91aab6;font-size:clamp(11px,.9vw,14px)}
.ec-mini-cap strong{color:#ffd46c}

/* Cover scene (Scene 0) */
.cover-screen{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:0;text-align:center;padding:40px;background:radial-gradient(circle at 50% 28%,#14334e,#050b14 72%)}
.cover-brand{position:absolute;top:26px;left:30px;display:flex;align-items:center;gap:12px}
.cover-logo{height:46px;width:auto}
.cover-brand-text{font-size:clamp(20px,2vw,30px);font-weight:900;color:#fff;letter-spacing:.02em}
.cover-brand-chem{color:#ff8c42}
.cover-main{display:flex;flex-direction:column;align-items:center}
.cover-title{margin:0;font-size:clamp(52px,7.5vw,118px);font-weight:900;letter-spacing:.1em;color:#fff;line-height:1.1}
.cover-lesson{margin:20px 0 0;color:#ffd46c;font-size:clamp(19px,2.1vw,34px);font-weight:800}
.cover-qr-wrap{margin-top:36px;display:flex;flex-direction:column;align-items:center}
.cover-qr{width:clamp(160px,20vh,220px);height:auto;border-radius:12px;border:4px solid #fff;background:#fff}
.cover-qr-text{margin:12px 0 0;color:#a9c2cf;font-size:clamp(13px,1.1vw,17px)}
.cover-hint{position:absolute;bottom:24px;color:#5b7a8d;font-size:13px;letter-spacing:.12em}

/* === New modes (2026-10-03) === */
/* CO2 vs CO side-by-side 3D */
.c3d-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start}
.c3d-panel{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1.2rem;text-align:center}
.c3d-panel h3{font-size:2.2rem;margin:0;color:#fff}
.c3d-name{color:#c7d9e2;margin:.3rem 0 .8rem;font-size:1.1rem}
.c3d-viewer{position:relative;width:100%;height:320px;min-height:280px;border-radius:8px;overflow:hidden}
.c3d-meta{display:flex;justify-content:center;gap:1.5rem;margin-top:.8rem;color:#8fa8b8}
.c3d-prop{color:#ffb347;font-weight:600}

/* Concept overview (atom/element/molecule) */
.concept-grid{display:flex;align-items:stretch;justify-content:center;gap:1rem;flex-wrap:wrap}
.concept-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:1.5rem;flex:1;min-width:200px;max-width:280px;text-align:center}
.concept-card h3{color:#ffd166;margin:0 0 .6rem;font-size:1.3rem}
.concept-analogy{color:#c7d9e2;font-style:italic;margin:.4rem 0}
.concept-def{color:#8fa8b8;margin:.4rem 0 0}
.concept-arrow{align-self:center;font-size:2rem;color:#4d6577}

/* Single element card (flattened) */
.ec-single{max-width:900px;margin:0 auto}

/* Dual photos (combustion, oxygen-life) */
.dual-photo{display:grid;grid-template-columns:.82fr 1.18fr;gap:1rem;width:100%;height:100%}
.triple-photo{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.triple-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.dual-photo .real-photo{width:100%;height:100%;object-fit:cover;border-radius:8px}

/* === Mobile responsive (basic, 2026-10-03) === */
@media (max-width:768px){
  .slide{padding:1rem}
  .slide h2{font-size:1.4rem}
  .big-question{font-size:1.1rem}
  .c3d-grid{grid-template-columns:1fr;gap:1rem}
  .c3d-viewer{height:240px}
  .lattice-grid{grid-template-columns:1fr;gap:1rem}
  .lattice-viewer{height:240px}
  .concept-grid{flex-direction:column;align-items:center}
  .concept-arrow{transform:rotate(90deg)}
  .dual-photo{grid-template-columns:1fr;height:auto}  .dual-photo .real-photo{height:auto}
  .ec-card{flex-direction:column}
  .compare-panels{grid-template-columns:1fr}
  .cover-title{font-size:2.2rem}
  .cover-qr{width:140px;height:140px}
  #sceneMenu{max-width:90vw}
}

/* compare-3d: vertical layout, title on top */
.slide-compare-3d{display:flex;flex-direction:column}
.slide-compare-3d .slide-copy{text-align:center;max-width:none;margin-bottom:1rem}
.slide-compare-3d .c3d-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:1.5rem;align-items:stretch;width:100%}
.c3d-vs{align-self:center;font-size:2rem;font-weight:800;color:#ffd166}
.c3d-viewer{min-height:280px}

.slide-concept{display:flex;flex-direction:column}
.slide-concept .slide-copy{flex:0 0 auto;text-align:center;max-width:none;border-right:0;border-bottom:1px solid #29485f;padding:clamp(18px,2vw,32px)}
.slide-concept .concept-grid{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;gap:1.25rem;padding:2rem}

.concept-img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;margin-bottom:.8rem}

/* ===== Final Big Idea (redesigned 2026-10-04) ===== */
.final-big-idea { text-align: center; padding: 2vh 3vw; max-width: 1600px; margin: 0 auto; }
.final-eyebrow { color: #5fd4f0; font-size: clamp(18px, 1.5vw, 28px); letter-spacing: 0.2em; margin: 0 0 1vh; font-weight: bold; }
.final-headline { color: #fff; font-size: clamp(36px, 4vw, 72px); margin: 0 0 3vh; font-weight: 800; line-height: 1.1; }
.final-cards { display: flex; gap: 2vw; justify-content: center; margin-bottom: 3vh; }
.final-card { flex: 1; max-width: 480px; background: rgba(26,43,74,0.6); border: 2px solid #5fd4f0; border-radius: 16px; padding: 2vh 1.5vw; }
.final-card-q { color: #fff; font-size: clamp(24px, 2vw, 36px); margin: 0 0 1.5vh; font-weight: 700; }
.final-card-visual { margin: 1vh 0; }
.final-svg { width: 100%; height: auto; max-height: 28vh; }
.final-card-cap { color: #ffd54f; font-size: clamp(18px, 1.4vw, 26px); margin: 1vh 0 0; font-weight: 600; }
.final-flow-strip { display: flex; align-items: center; justify-content: center; gap: 1.5vw; padding: 1.5vh 2vw; background: rgba(95,212,240,0.08); border-radius: 12px; margin-top: 2vh; }
.final-flow-strip b { color: #8ab4d8; font-size: clamp(16px, 1.2vw, 22px); font-weight: 600; letter-spacing: 0.05em; }
.final-arrow { color: #f0c040; font-size: clamp(20px, 1.8vw, 32px); font-weight: bold; }
/* Staged reveal animations */
.final-card[data-reveal-step] { transition: opacity 0.5s ease, transform 0.5s ease; }
.final-card[data-reveal-step][hidden] { display: none; }
.final-card:not([hidden]) { animation: cardSlideUp 0.6s ease; }
.final-card-cap { animation: capFadeIn 0.5s ease 0.3s both; }
@keyframes cardSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes capFadeIn { from { opacity: 0; } to { opacity: 1; } }
.final-flow-strip:not([hidden]) { animation: flowDraw 0.8s ease; }
@keyframes flowDraw { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
/* Gentle continuous animations */
.pulse-ring { animation: pulseRing 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulseRing { 0%,100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.15); } }
.graphite-slide { animation: graphiteSlide 8s ease-in-out infinite; }
@keyframes graphiteSlide { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.diamond-rotate { animation: diamondRotate 12s linear infinite; transform-origin: 240px 70px; }
@keyframes diamondRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pulse-ring, .graphite-slide, .diamond-rotate,
  .final-card:not([hidden]), .final-card-cap, .final-flow-strip:not([hidden]) { animation: none !important; }
}
.l7x button:disabled{opacity:.4;cursor:default}
.l7x-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}
.l7x-presets{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.l7x-count{color:#9fb8cc;font-weight:700;margin:4px 0}
.l7x-ask{font-size:18px;font-weight:750}
.l7x-meter{color:#cfe0f0;font-weight:700}
.l7x-note{color:#cfe0f0}
.l7x-status .ok,.l7x-note.ok{color:#8affc1}
.l7x-status .warn{color:#ffd46c}
.l7x-tray{display:flex;gap:7px;flex-wrap:wrap;min-height:44px;padding:10px;border:1.5px dashed #36536c;border-radius:12px;margin:10px 0;align-items:center}
.l7x-chip{padding:7px 12px;border-radius:9px;font-weight:800;cursor:pointer}
.l7x-chip.cat{background:#1d4ed8;color:#fff}
.l7x-chip.an{background:#8a2a2a;color:#fff}
.l7x-empty{color:#7d99ad}
.l7x-formula{font-size:44px;font-weight:900;color:#ffd46c;text-align:center;margin:12px 0}
.l7x-formula sub{font-size:24px}
.l7x-choices{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0;align-items:center}
.l7x-choices button.right{background:#1d5c38;border-color:#8affc1}
.l7x-choices button.wrong{background:#5c1d1d;border-color:#ff9a9a}
.l7x-verdict{margin:10px 0;padding:11px 14px;border-left:4px solid #ffd46c;border-radius:8px;background:#0d2539}
.l7x-atom{display:inline-flex;flex-direction:column;align-items:center;padding:10px 18px;border:1.5px solid #36536c;border-radius:12px;background:#10243a}
.l7x-atom b{font-size:26px}
.l7x-atom small{color:#9fb8cc}
.l7x-plus{font-size:26px;font-weight:900;color:#ffd46c}
.l7x-cups{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.l7x-cup{flex:1;min-width:110px}
.l7x-bulb{font-size:21px;font-weight:900;padding:12px;border-radius:10px;text-align:center;background:#0d2539}
.l7x-bulb.lv0{color:#7d99ad}
.l7x-bulb.lv1{color:#ffe9a8;background:#3a3418}
.l7x-bulb.lv2{color:#10243a;background:#ffd46c}
.l7x-results p{margin:6px 0}
.l7x .diagram-svg{width:100%;height:auto}
.l7x-choices button.picked{border-color:#ffd46c;background:#1d3a1d}
.l7x input[type=range]{accent-color:#5fd4f0;width:180px;vertical-align:middle}
.l7x-presets{display:flex;gap:8px;flex-wrap:wrap}
.l7x-presets button.picked{border-color:#ffd46c;background:#1d3a1d}

/* ===== Lesson 7B scroll layout (trial, 2026-11-11) ===== */
#stageWrap[hidden],#scrollView[hidden]{display:none}
.scroll-hint{width:min(96vw,1500px);margin:0 auto 14px;color:#9fc6d8;font-size:13px}
.scroll-hint b{color:#e8f6fb}
#scrollView{width:min(96vw,1500px);margin:0 auto}
.scene-block{margin:0 0 clamp(20px,4vh,40px);border:1px solid #29485f;border-radius:18px;background:#07111f;overflow:hidden;box-shadow:0 18px 50px #0007}
.block-index{padding:8px 14px;color:#9fc6d8;font-size:12px;font-weight:800;letter-spacing:.08em;border-bottom:1px solid #28445a;background:#081522}
.scene-block .slide{height:auto;min-height:480px}
.scene-block .slide-copy{justify-content:flex-start}
.scene-block .primary-visual{min-height:440px}
.scene-block .dual-photo{height:auto}
.scene-block .real-photo{height:auto}
.scene-block .reveal-list{position:static;width:auto;max-width:none;margin:14px}
.scene-block .teacher-cue{position:static;max-width:none;margin:14px}
.scene-block .atom-key,.scene-block .count-strip{position:static;margin:10px 14px;justify-content:flex-end}
.scene-block .cover-screen{min-height:62vh}
.scene-block .l7x{padding:clamp(16px,3vw,40px);align-self:center;width:100%}
.scene-block .final-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:850px),(orientation:portrait){
  .scene-block .slide{display:block;height:auto;min-height:0}
  .scene-block .primary-visual{min-height:300px}
  .scene-block .final-cards{grid-template-columns:1fr}
}

/* 7B fallback: in-page slide view when real fullscreen is not granted */
body.slide-inline #stageWrap{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:#040a12}
body.slide-inline .lesson-stage{width:min(100vw,calc(100vh*16/9));height:min(100vh,calc(100vw*9/16));max-height:100vh}
.principle-box{margin-top:12px;padding:12px 16px;border:1px solid #2b4a63;border-left:4px solid #ffb84d;border-radius:10px;background:#0d2539;text-align:left}
.principle-label{font-size:11px;font-weight:900;letter-spacing:.14em;color:#ffb84d;margin-bottom:6px}
.principle-eq{font-size:clamp(15px,1.25vw,21px);font-weight:800;color:#fff;text-align:center;padding:2px 0 8px}
.principle-box p{margin:0;color:#cfe0f0;font-size:clamp(12.5px,1vw,16px);line-height:1.55;font-weight:600}
.lesson-stage .slide .principle-box{position:absolute;left:clamp(20px,3vw,50px);bottom:16px;width:min(29%,430px);z-index:6;margin-top:0}
@media(max-width:850px),(orientation:portrait){.lesson-stage .slide .principle-box{position:static;width:auto;margin-top:12px}}
.scene-block .principle-box{position:static;width:auto;margin-top:14px}
