

:root{--bg:#f7f0de;--primary:#151a3d;--primary-dark:#0c0f26;--accent:#c8402a;--accent-ink:#b13620;--soft:#f08a1c;--good:#1b6f3e;--good-bg:#dff1e4;--bad:#a8321f;--bad-bg:#f9e0da;--line:#d9cfb6;--fs:20px;--fs-s:17px;--fs-t:38px;--fs-b:20px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;height:100%;background:var(--primary-dark);font-family:Inter,system-ui,sans-serif;color:var(--primary);overscroll-behavior:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.player{position:fixed;inset:0;display:flex;flex-direction:column;background:var(--primary-dark)}
.prog{height:4px;background:#ffffff1f;flex:none}.prog i{display:block;height:100%;width:0;background:var(--accent);transition:width .3s}
.area{flex:1;min-height:0;position:relative;overflow:hidden}
.stage{position:absolute;left:0;top:0;transform-origin:0 0;background:var(--bg);overflow:hidden;font-size:var(--fs)}
.stage.land{width:1280px;height:720px}
.stage.port{width:720px;height:1280px;--fs:28px;--fs-s:24px;--fs-t:50px;--fs-b:27px}
.stage.vid{background:var(--primary-dark)}
.vwrap{position:absolute;background:#000}
.land .vwrap{left:0;top:0;width:1280px;height:720px}
.port .vwrap{left:0;width:720px}
.vwrap video{width:100%;height:100%;object-fit:cover;display:block}
.bigplay{position:absolute;left:50%;top:50%;width:120px;height:120px;margin:-60px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:48px;cursor:pointer;box-shadow:0 8px 30px #0008}
.layer{position:absolute;inset:0}
.vid .layer{pointer-events:none}.vid .layer>*{pointer-events:auto}
/* buttons */
.btn{font:inherit;font-weight:700;font-size:var(--fs-b);padding:.7em 1.4em;border-radius:999px;border:2px solid var(--primary);background:transparent;color:var(--primary);cursor:pointer;min-height:48px}
.btn.main{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.main:hover{background:var(--accent-ink)}
.btn:disabled{opacity:.45;cursor:default}
:focus-visible{outline:3px solid var(--soft);outline-offset:2px}
/* slides */
.slide{position:absolute;inset:0;padding:40px 64px;display:flex;flex-direction:column;gap:18px;overflow:hidden}
.port .slide{padding:44px 44px}
.eyebrow{display:flex;align-items:center;gap:14px;font-size:.78em;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink)}
.eyebrow:before{content:"";width:36px;height:4px;background:var(--accent);border-radius:2px}
h1,h2{margin:0;font-size:var(--fs-t);line-height:1.1;font-weight:800;letter-spacing:-.01em;outline:none}
p{margin:0;line-height:1.45}
.lead{font-size:1em}
.intro{flex-direction:row;align-items:center;gap:48px}
.port .intro{flex-direction:column;align-items:stretch;gap:24px;justify-content:center}
.intro .txt{flex:1;display:flex;flex-direction:column;gap:20px}
.intro h1{font-size:56px}.port .intro h1{font-size:62px}
.obj{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.obj li{padding-left:34px;position:relative;line-height:1.35}
.obj li:before{content:"✓";position:absolute;left:0;color:var(--accent-ink);font-weight:800}
.meta{font-size:.85em;opacity:.75}
/* video side panels */
.side{position:absolute;top:0;bottom:0;width:437px;padding:44px 36px;color:#f7f0de;display:flex;flex-direction:column;gap:14px}
.side.l{left:0}.side.r{right:0}
.side h3{margin:0;font-size:.8em;letter-spacing:.14em;text-transform:uppercase;color:#f08a1c}
.chs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.chs li{padding:12px 16px;border-radius:12px;border:2px solid #f7f0de33;font-weight:700;opacity:.7}
.chs li.on{background:#f7f0de;color:var(--primary);opacity:1;border-color:#f7f0de}
.keyidea{font-size:1.35em;font-weight:700;line-height:1.3;color:#fff}
.port .side{display:none}
/* pause overlay */
.pause{position:absolute;inset:0;background:#0c0f26e6;display:flex;align-items:center;justify-content:center;padding:40px;backdrop-filter:blur(6px)}
.pcard{background:var(--bg);border-radius:22px;padding:40px 44px;max-width:620px;display:flex;flex-direction:column;gap:16px;box-shadow:0 20px 60px #0009}
.port .pcard{max-width:none}
.pcard ul{margin:0;padding-left:1.2em;line-height:1.5}
.row{display:flex;gap:14px;flex-wrap:wrap;margin-top:6px}
/* hotspot */
.hs-wrap{position:relative;align-self:center;border-radius:16px;overflow:hidden;box-shadow:0 10px 30px #151a3d33}
.land .hs-wrap{height:400px}.land .hs-wrap img{height:100%;width:auto;display:block}
.port .hs-wrap{width:600px}.port .hs-wrap img{width:100%;display:block}
.hs-cell{position:absolute;background:transparent;border:0;cursor:pointer;border-radius:12px}
.hs-cell:hover{background:#ffffff1f}
.hs-cell.ok{background:#1b6f3e55;box-shadow:inset 0 0 0 5px #5fd18a}
.hs-cell.ok:after{content:"✓";position:absolute;top:8px;right:12px;font-size:34px;font-weight:800;color:#8cf0b0}
.hs-cell.no{background:#a8321f55;box-shadow:inset 0 0 0 5px #ff8a73}
.hs-cell.no:after{content:"✗";position:absolute;top:8px;right:12px;font-size:34px;font-weight:800;color:#ffb1a3}
.fb{border-radius:14px;padding:14px 20px;font-weight:600;line-height:1.4;display:flex;gap:12px;align-items:flex-start;min-height:64px}
.fb:empty{display:none}
.fb.good{background:var(--good-bg);color:var(--good)}.fb.bad{background:var(--bad-bg);color:var(--bad)}.fb.info{background:#fff;color:var(--primary);border:2px solid var(--line)}
.fb b{font-size:1.2em}
.count{font-weight:800;color:var(--accent-ink)}
/* quiz */
.qgrid{display:grid;grid-template-columns:1fr 1fr;gap:36px;flex:1;min-height:0;align-items:stretch}
.qleft{display:flex;flex-direction:column;gap:18px;min-height:0}.qright{display:flex;flex-direction:column;gap:16px;min-height:0}
.qvis{flex:1;min-height:0;border-radius:20px;background:radial-gradient(120% 90% at 30% 20%,#2a2f66 0%,#14173b 55%,#0c0f26 100%);display:flex;align-items:center;justify-content:space-evenly;gap:12px;padding:14px;overflow:hidden;position:relative;box-shadow:inset 0 0 0 2px #ffffff14}
.qvis .qv{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:0;height:100%}
.qvis img{min-height:0;max-height:calc(100% - 34px);max-width:100%;object-fit:contain;filter:drop-shadow(0 10px 22px #0008)}
.qvis.n1 img{max-height:100%}
.qvis figcaption{font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.8em;color:#f7f0de;background:#f08a1c;padding:3px 12px;border-radius:999px;flex:none}
.port .qvis{min-height:240px}
.port .qgrid{grid-template-columns:1fr;gap:20px}
.situ{font-size:1.25em;font-weight:700;line-height:1.35}
.port .situ{font-size:1.15em}
.ans{display:flex;flex-direction:column;gap:12px}
.a{display:flex;gap:14px;align-items:center;text-align:left;font:inherit;font-weight:600;padding:14px 18px;border-radius:14px;border:2px solid var(--line);background:#fff;color:var(--primary);cursor:pointer;min-height:54px}
.a:hover:not(:disabled){border-color:var(--primary)}
.a i{flex:none;width:36px;height:36px;border-radius:50%;background:var(--bg);display:grid;place-items:center;font-style:normal;font-weight:800;font-size:.9em}
.a.good{background:var(--good-bg);border-color:var(--good);color:var(--good)}.a.bad{background:var(--bad-bg);border-color:var(--bad);color:var(--bad)}
.a:disabled{cursor:default}
.qnav{margin-top:auto;display:flex;justify-content:flex-end}
/* scenario */
.sc{position:absolute;inset:0;display:flex;background:var(--bg);border:0}
.port .sc{flex-direction:column}
.sc.cons{box-shadow:inset 0 0 0 10px var(--bad)}.sc.fin{box-shadow:inset 0 0 0 10px var(--good)}
.sc .pic{flex:1.35;position:relative;background:#000;min-height:0}
.sc .pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.sc.cons .pic img{filter:saturate(.25) brightness(.8)}
.sc .pan{width:560px;padding:40px 44px;display:flex;flex-direction:column;gap:16px;justify-content:center}
.port .sc .pic{flex:none;height:560px}.port .sc .pan{width:auto;flex:1;padding:30px 44px;justify-content:flex-start}
.path{display:flex;gap:8px;font-size:.7em;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.path span{padding:5px 10px;border-radius:999px;border:2px solid var(--line);opacity:.7}.path span.on{background:var(--primary);color:#fff;border-color:var(--primary);opacity:1}
.choices{display:flex;flex-direction:column;gap:12px}
.sc h2{font-size:calc(var(--fs-t) - 6px)}
/* summary */
.motto{background:var(--primary);color:#f7f0de;border-radius:18px;padding:22px 30px;font-size:1.5em;font-weight:800;line-height:1.25}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.port .cards{grid-template-columns:1fr;gap:12px}
.card{background:#fff;border:2px solid var(--line);border-radius:16px;padding:16px 20px;display:flex;flex-direction:column;gap:6px}
.card b{color:var(--accent-ink);text-transform:uppercase;letter-spacing:.1em;font-size:.78em}
.card p{font-size:.95em}
.tr{display:flex;flex-direction:column;gap:8px}
.tr h3{margin:0;font-size:1.05em}
textarea,input.name{font:inherit;width:100%;border:2px solid var(--line);border-radius:12px;padding:12px 16px;background:#fff;color:var(--primary)}
textarea{resize:none;height:80px}
/* certificate */
.cert{flex-direction:row;gap:40px;align-items:center}.port .cert{flex-direction:column;align-items:stretch;gap:20px}
.cert .ctl{width:380px;display:flex;flex-direction:column;gap:16px}.port .cert .ctl{width:auto}
.cert-card{flex:1;background:#fff;border:3px solid var(--primary);outline:2px solid var(--soft);outline-offset:-12px;border-radius:12px;padding:36px;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;aspect-ratio:1.414}
.port .cert-card{flex:none;padding:30px}
.cert-card h3{margin:0;font-size:.9em;letter-spacing:.2em;text-transform:uppercase;color:var(--accent-ink)}
.cert-card .nm{font-size:1.9em;font-weight:800;border-bottom:3px solid var(--accent);padding:0 .5em .1em;min-width:60%;min-height:1.3em}
.cert-card .sc2{font-weight:700}.cert-card .step{font-size:.9em;font-style:italic;max-width:90%}
.cert-card .iss{font-size:.7em;opacity:.7;margin-top:auto;align-self:flex-end}
/* bar */
.bar{flex:none;background:var(--primary-dark);color:#f7f0de;border-top:1px solid #ffffff1f;padding-bottom:env(safe-area-inset-bottom)}
.nrow,.mrow{display:flex;align-items:center;gap:10px;padding:6px 12px;min-height:52px}
.mrow{flex:3;min-width:0;padding:0;min-height:0;gap:8px}.mrow[hidden]{display:none}.nrow:has(.mrow:not([hidden])) .ttl{flex:1 1 0;min-width:0}
.ib{font:inherit;font-weight:700;font-size:15px;min-width:44px;height:44px;padding:0 12px;border-radius:10px;border:2px solid #f7f0de44;background:transparent;color:#f7f0de;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.ib:hover:not(:disabled){background:#ffffff1a}.ib:disabled{opacity:.35;cursor:default}
.ib.main{background:var(--accent);border-color:var(--accent);color:#fff}.ib.main:disabled{background:transparent;color:#f7f0de;border-color:#f7f0de44}
.ib[aria-pressed=true].txt{background:#f7f0de;color:var(--primary)}
.ttl{flex:1;font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}.cnt{font-size:14px;opacity:.7;font-variant-numeric:tabular-nums}
.time{font-size:13px;font-variant-numeric:tabular-nums;opacity:.85;min-width:84px;text-align:right}
.seek{flex:1;min-width:0;-webkit-appearance:none;appearance:none;height:8px;border-radius:4px;background:linear-gradient(90deg,#f08a1c var(--w,0%),#ffffff2e var(--w,0%));outline-offset:6px}
.seek::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#f7f0de;border:3px solid var(--accent)}
.seek::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#f7f0de;border:3px solid var(--accent)}
.menuwrap{position:relative}
.menu{position:absolute;bottom:52px;left:0;margin:0;padding:6px;list-style:none;background:#f7f0de;color:var(--primary);border-radius:12px;min-width:270px;box-shadow:0 10px 40px #000a;z-index:9}
.menu button{width:100%;text-align:left;font:inherit;font-weight:600;font-size:15px;padding:10px 12px;border:0;background:transparent;border-radius:8px;color:inherit;cursor:pointer}
.menu button:hover:not(:disabled){background:#fff}.menu button:disabled{opacity:.4;cursor:default}.menu button.cur{font-weight:800;color:var(--accent-ink)}
@media(max-width:900px){.nrow:has(.mrow:not([hidden])) .ttl{display:none}}
@media(max-width:700px){.ib.wide span{display:none}.ttl{display:none}.cnt{margin-left:auto}.time{min-width:48px}.nrow{gap:6px;padding:6px 8px}}
@media(max-width:640px){#bMute,.cnt{display:none}}
@media(max-width:560px){#bFs{display:none}.time{font-size:12px;min-width:0;white-space:nowrap}.seek{min-width:40px}.mrow{gap:6px}.ib{min-width:40px;padding:0 8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
#print-area{display:none}
@media print{
 @page{size:A4 landscape;margin:10mm}
 html,body{background:#fff;height:auto}
 .player{display:none}
 #print-area{display:flex;align-items:center;justify-content:center;height:185mm}
 #print-area .cert-card{width:100%;font-size:18px;aspect-ratio:auto;height:100%;color:#151a3d;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* 16:9 video: portrait panel under the video */
.under{position:absolute;left:0;right:0;top:405px;bottom:0;padding:34px 44px;color:#f7f0de;display:flex;flex-direction:column;gap:14px}
.under h3{margin:0;font-size:.8em;letter-spacing:.14em;text-transform:uppercase;color:#f08a1c}
.facts{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.facts li{padding:12px 16px;border-radius:12px;border:2px solid #f7f0de33;font-weight:600;line-height:1.35}
.port .vwrap video{object-fit:cover}
/* hub */
.slide.hub{flex-direction:row;gap:40px;align-items:stretch}
.port .slide.hub{flex-direction:column;gap:14px}
.hubtxt{width:330px;display:flex;flex-direction:column;gap:16px;flex:none;justify-content:center}
.port .hubtxt{width:auto;gap:10px}
.port .hubtxt .lead,.port .hubtxt .meta{display:none}
.tiles{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;min-height:0}
.tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#0c0f26;border:3px solid #0c0f26;border-radius:18px;color:#f7f0de;font:inherit;cursor:pointer;padding:6px;overflow:hidden;min-height:0}
.tile img{width:62%;max-height:58%;object-fit:contain;transition:transform .2s}
.tile:hover img{transform:scale(1.07)}
.tile:hover{border-color:var(--soft)}
.tile .nm{font-weight:800;letter-spacing:.06em;text-transform:uppercase;font-size:.95em}
.tile .gr{font-size:.62em;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:#f08a1c;color:#fff}
.tile .gr.blue{background:#4c7ae6}.tile .gr.star{background:#c9860f}
.tile.seen{border-color:var(--good)}
.tile .ck{position:absolute;top:8px;right:10px;width:34px;height:34px;border-radius:50%;background:var(--good);color:#fff;display:grid;place-items:center;font-weight:800}
.port .tile img{max-height:52%}

/* start card: full-bleed solar system behind the text */
.slide.intro{padding:0;gap:0;flex-direction:row;align-items:center;background:#0c0f26;color:#f7f0de}
.intro .bgimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;box-shadow:none;object-position:70% 50%;transform-origin:70% 50%;animation:kb 28s ease-in-out infinite alternate;filter:brightness(1.5) saturate(1.25)}
@keyframes kb{from{transform:scale(1.02)}to{transform:scale(1.12)}}
.intro::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#0c0f26ee 0%,#0c0f26d0 30%,#0c0f2666 58%,#0c0f2600 100%)}
.intro .txt{position:relative;z-index:2;max-width:700px;padding:0 0 0 76px;gap:18px;flex:none}
.intro .eyebrow{color:#f08a1c}.intro .eyebrow::before{background:#f08a1c}
.intro h1{font-size:68px;line-height:1.02;margin:0;color:#fff;text-shadow:0 4px 30px #0009}
.intro .lead{font-size:1.3em;margin:0;color:#f7f0de}
.intro p{color:#f7f0de;margin:0}
.intro .obj{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.intro .obj li{padding:9px 14px 9px 16px;border-left:4px solid #f08a1c;background:#ffffff14;border-radius:0 10px 10px 0;font-size:.92em;line-height:1.3}
.intro .obj li::before{content:none}
.intro .meta{font-size:.8em;opacity:.75}
.intro .btn{border-color:#f7f0de88;color:#f7f0de}.intro .btn.main{background:var(--accent);border-color:var(--accent);color:#fff}
.port .slide.intro{flex-direction:column;justify-content:flex-end;align-items:stretch}
.port .intro .bgimg{object-position:38% 40%}
.port .intro::before{background:linear-gradient(0deg,#0c0f26f2 0%,#0c0f26e6 50%,#0c0f2666 68%,#0c0f2600 100%)}
.port .intro .txt{max-width:none;padding:0 48px 64px}
.port .intro h1{font-size:64px}
@media(prefers-reduced-motion:reduce){.intro .bgimg{animation:none}}
/* portrait + 16:9 video: centred group, larger picture */
.port .vwrap{top:170px;height:480px}
.under{top:auto}
.port .under{top:670px}
/* v6: language switch, full-bleed portrait video */
#bLang{font-weight:700;font-size:13px;letter-spacing:.02em}
.port .vwrap.full{top:0;height:1280px}
.port .vwrap.full video{object-fit:cover}
@media(max-width:560px){.nrow{flex-wrap:wrap}.mrow{order:-1;flex:1 1 100%}.nrow>.menuwrap{order:0}#bLang{margin-left:auto}.cnt{display:inline;margin-left:0}.nrow{row-gap:4px}.nrow>.ttl{display:none}}
.cert .ctl h2{font-size:30px;overflow-wrap:anywhere;hyphens:auto}
.slide{overflow-y:auto}
/* explore map */
.slide.explore{gap:22px}
.explore .hubtxt{width:250px}
.tiles.x7{grid-template-columns:repeat(4,1fr);gap:10px}
.port .tiles.x7{grid-template-columns:repeat(3,1fr)}
.tile.topic img{width:88%;max-height:52%;object-fit:cover;border-radius:10px}
.tile .gr.topicg{background:#6a5acd}
.explore .tile .nm{font-size:.8em;text-align:center;line-height:1.1}

/* explorer step */
.slide.xplr{padding:0!important;overflow:hidden}
.xplr iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#0b0a1c}
.xchip{position:absolute;right:18px;top:112px;display:flex;align-items:center;gap:14px;background:#f7f0de;color:#211c24;padding:8px 10px 8px 18px;border-radius:999px;box-shadow:0 6px 24px #0007;font-size:18px;z-index:3;white-space:nowrap}
.xchip b{font-weight:800}.xchip .xc{opacity:.75}.xchip .btn{padding:8px 16px;font-size:16px}
.port .xchip{right:auto;left:50%;transform:translateX(-50%);top:14px;flex-wrap:wrap;justify-content:center;white-space:normal;max-width:94%;border-radius:22px;font-size:20px}
