/* v7.8 — interaktívne podzemné laboratórium */
.origins-section{--origin-accent:#ee7448;--origin-deep:#271f1b;position:relative;overflow:hidden;padding:122px max(18px,6vw) 112px;background:#eee9dc;color:#21372d}
.origins-section:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 86% 8%,#fff9 0 2%,transparent 24%),repeating-linear-gradient(168deg,transparent 0 84px,#6e665711 85px 86px)}
.origins-intro{position:relative;z-index:1;max-width:1390px;margin:0 auto 55px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:70px;align-items:end}
.origins-intro>div>span{font-size:.73rem;letter-spacing:.18em;font-weight:950;color:#aa4c35}.origins-intro h2{font:clamp(3rem,5.7vw,6.2rem)/.91 Georgia,serif;letter-spacing:-.052em;margin:17px 0 0;text-wrap:balance}.origins-intro h2 em{font-weight:400;color:#9c4c38}.origins-intro>p{font-size:1.06rem;line-height:1.78;color:#5f6e66;margin:0 0 8px}
.origins-shell{position:relative;z-index:2;max-width:1460px;margin:auto;border-radius:39px;background:#173229;box-shadow:0 42px 110px #3c382d45,0 1px 0 #fff8 inset;overflow:hidden;transition:background .5s}
.origins-shell[data-origin-world=sedimentary]{--origin-accent:#efbd55;--origin-deep:#172f32;background:#17383d}.origins-shell[data-origin-world=metamorphic]{--origin-accent:#e6aa55;--origin-deep:#211d2a;background:#252536}
.origin-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#ffffff17;border-bottom:1px solid #ffffff1c}.origin-tabs button{position:relative;min-height:126px;border:0;background:#173229;color:#b8c8c0;display:grid;grid-template-columns:58px 1fr auto;gap:17px;align-items:center;text-align:left;padding:22px 28px;cursor:pointer;overflow:hidden;transition:background .35s,color .35s}.origins-shell[data-origin-world=sedimentary] .origin-tabs button{background:#17383d}.origins-shell[data-origin-world=metamorphic] .origin-tabs button{background:#252536}.origin-tabs button:before{content:"";position:absolute;left:0;right:100%;bottom:0;height:4px;background:var(--origin-accent);transition:right .42s cubic-bezier(.2,.8,.2,1)}.origin-tabs button:hover,.origin-tabs button:focus-visible{background:#ffffff0c;color:white;outline:none}.origin-tabs button.active{background:#ffffff10;color:white}.origin-tabs button.active:before{right:0}.origin-tabs button>span{display:block}.origin-tabs small,.origin-tabs b,.origin-tabs em{display:block}.origin-tabs small{font-style:normal;font-size:.58rem;letter-spacing:.15em;color:var(--origin-accent);font-weight:950}.origin-tabs b{font:1.38rem/1.05 Georgia,serif;margin:6px 0}.origin-tabs em{font-style:normal;font-size:.72rem;color:#98aaa1}.origin-tabs button>strong{font:2.1rem/1 Georgia,serif;color:#ffffff12}.origin-tab-icon{position:relative;width:55px;height:55px;display:grid;place-items:center;border-radius:18px;background:#ffffff0d;border:1px solid #ffffff17}.fire-icon:before{content:"";width:29px;height:37px;background:linear-gradient(#ffd35b,#e45a36 62%,#9b2f2a);clip-path:polygon(52% 0,67% 30%,85% 19%,81% 47%,100% 60%,72% 80%,53% 100%,36% 78%,7% 83%,23% 53%,12% 36%,39% 39%);filter:drop-shadow(0 5px 7px #ff6d3a55)}.water-icon:before{content:"";width:34px;height:34px;border-radius:55% 45% 60% 40%;background:repeating-linear-gradient(170deg,#f0ca69 0 7px,#8bb6b4 8px 13px,#b37b55 14px 19px);transform:rotate(-9deg)}.pressure-icon:before{content:"";width:34px;height:30px;background:repeating-linear-gradient(18deg,#aeb5b2 0 5px,#5e6871 6px 10px,#d2ab68 11px 13px);clip-path:polygon(10% 8%,83% 0,100% 50%,75% 100%,20% 91%,0 45%)}
.origin-stage{background:var(--origin-deep);transition:background .5s}.origin-world{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);min-height:770px;animation:originReveal .55s both}.origin-world[hidden]{display:none}.origin-scene{position:relative;min-height:770px;overflow:hidden;isolation:isolate}.origin-console{position:relative;padding:clamp(42px,5vw,74px) clamp(30px,4.4vw,65px);background:#faf6ed;color:#21372d;display:flex;flex-direction:column;justify-content:center}.origin-console:before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:#ffffff70}.console-kicker{font-size:.66rem;letter-spacing:.17em;font-weight:950;color:#ad4f38}.origin-console h3{font:clamp(2.3rem,4vw,4rem)/.96 Georgia,serif;letter-spacing:-.04em;margin:14px 0 20px;text-wrap:balance}.origin-console>p{line-height:1.7;color:#64716a;margin:0 0 28px}.scene-topline{position:absolute;z-index:20;top:25px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:center;color:#fff;text-shadow:0 2px 10px #0007}.scene-topline span,.scene-topline b{background:#17271fb8;border:1px solid #ffffff25;padding:9px 12px;border-radius:99px;backdrop-filter:blur(10px);font-size:.61rem;letter-spacing:.12em}.scene-topline span{font-weight:900}.scene-topline span i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--origin-accent);margin-right:6px;box-shadow:0 0 0 5px color-mix(in srgb,var(--origin-accent),transparent 72%)}.scene-topline b{color:#ffe19a}.scene-caption{position:absolute;z-index:21;left:28px;right:28px;bottom:28px;display:flex;gap:13px;align-items:flex-start;background:#11251ddc;color:#dce7e0;border:1px solid #ffffff25;border-radius:17px;padding:15px 17px;box-shadow:0 15px 35px #08130d8a;backdrop-filter:blur(12px)}.scene-caption p{font-size:.78rem;line-height:1.55;margin:0}.scene-caption b{color:#fff}.scene-dot{flex:0 0 auto;width:10px;height:10px;margin-top:4px;border-radius:50%;background:var(--origin-accent);box-shadow:0 0 0 6px color-mix(in srgb,var(--origin-accent),transparent 75%)}
.geo-control{padding:19px 20px 17px;border-radius:19px;background:#eee8da;border:1px solid #203c2e12;box-shadow:0 1px 0 #fff inset}.control-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:14px}.control-head label{font-weight:900;font-size:.82rem}.control-head output{padding:6px 10px;border-radius:99px;background:#b6543c;color:white;font-size:.69rem;font-weight:900;white-space:nowrap}.geo-control input[type=range]{width:100%;height:26px;margin:0;appearance:none;background:transparent;cursor:pointer}.geo-control input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:10px;background:linear-gradient(90deg,#ef6a3e,#e8b855 48%,#607a84)}.geo-control input[type=range]::-webkit-slider-thumb{appearance:none;width:27px;height:27px;border-radius:50%;background:#fff;border:6px solid #b6543c;box-shadow:0 4px 12px #24342c54;margin-top:-9px}.geo-control input[type=range]::-moz-range-track{height:8px;border-radius:10px;background:linear-gradient(90deg,#ef6a3e,#e8b855 48%,#607a84)}.geo-control input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:6px solid #b6543c;box-shadow:0 4px 12px #24342c54}.range-legend{display:flex;justify-content:space-between;color:#737d77;font-size:.59rem;margin-top:4px}.geo-control>p{font-size:.68rem;color:#9a614f;margin:9px 0 0}.origin-result{display:grid;grid-template-columns:100px 1fr;gap:17px;align-items:center;margin-top:21px;padding:16px;border-radius:20px;background:#203a30;color:white;box-shadow:0 15px 35px #28382e24;min-height:145px}.result-rock{height:105px;border-radius:15px;display:grid;place-items:center;background:radial-gradient(circle at 42% 35%,#ffffff24,transparent 49%),#162a22;overflow:hidden}.result-rock img{width:94%;height:94%;object-fit:contain;filter:drop-shadow(0 11px 8px #07110b99);transition:opacity .22s,transform .4s}.origin-result small{font-size:.55rem;letter-spacing:.14em;color:#f2c965;font-weight:950}.origin-result h4{font:1.34rem/1.08 Georgia,serif;margin:5px 0 7px}.origin-result p{font-size:.69rem;line-height:1.45;color:#bdcbc4;margin:0 0 10px}.origin-result button{border:0;background:#f0c65d;color:#26382f;border-radius:99px;padding:8px 11px;font-size:.64rem;font-weight:900;cursor:pointer}.origin-result button:hover,.origin-result button:focus-visible{background:#fff;outline:3px solid #f2ca65;outline-offset:2px}.science-note{font-size:.65rem!important;line-height:1.5!important;margin:14px 3px 0!important;color:#7d817e!important}.science-note b{color:#a14b36}
/* Oheň */
.magma-scene{background:linear-gradient(#789ca2 0 36%,#273931 36%)}.magma-sky{position:absolute;inset:0 0 58%;background:radial-gradient(circle at 23% 25%,#ffe09e 0 5%,transparent 5.5%),linear-gradient(#5d8994,#b8b895)}.magma-sky:after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:47%;background:#385647;clip-path:polygon(0 74%,12% 43%,24% 69%,39% 28%,50% 61%,65% 32%,78% 68%,90% 39%,100% 55%,100% 100%,0 100%)}.magma-sky i{position:absolute;width:70px;height:15px;border-radius:50%;background:#d9e1d5aa;filter:blur(1px)}.magma-sky i:nth-child(1){left:12%;top:27%}.magma-sky i:nth-child(2){right:17%;top:18%;scale:1.4}.magma-sky i:nth-child(3){right:39%;top:42%;scale:.65}.volcano{position:absolute;z-index:5;left:13%;right:9%;top:18%;height:31%;background:linear-gradient(115deg,#3f493f,#6b5e4c 44%,#3b443d);clip-path:polygon(0 100%,27% 55%,41% 47%,50% 4%,58% 5%,69% 54%,100% 100%)}.volcano:before{content:"";position:absolute;left:45%;top:4%;width:14%;height:11%;border-radius:50%;background:#1d221f;box-shadow:0 4px #f15f32 inset}.lava-flow{position:absolute;left:51%;top:8%;width:4%;height:95%;background:linear-gradient(#ffd159,#ef5c2f 35%,#9f3328);clip-path:polygon(24% 0,100% 0,54% 28%,86% 46%,35% 66%,65% 82%,0 100%,29% 73%,5% 55%,49% 36%);filter:drop-shadow(0 0 7px #ef6039)}.smoke{position:absolute;z-index:2;left:50%;top:-10%;width:40px;height:40px;border-radius:50%;background:#d9ded2aa;filter:blur(3px);animation:smokeRise 5s infinite}.smoke.s2{animation-delay:-1.6s;left:55%}.smoke.s3{animation-delay:-3.2s;left:47%}.earth-cut{position:absolute;z-index:6;left:0;right:0;top:48%;bottom:0;background:linear-gradient(#5e4938,#372d2b 49%,#251f25);overflow:hidden}.crust-layer{position:absolute;left:-5%;width:110%;height:13%;border-radius:50%;transform:rotate(-2deg)}.layer-a{top:7%;background:#86684b}.layer-b{top:24%;background:#534a41}.magma-chamber{position:absolute;left:23%;bottom:13%;width:55%;height:36%;border-radius:48% 52% 42% 58%/56% 39% 61% 44%;background:radial-gradient(circle at 35% 25%,#ffd763,#ef6334 46%,#ad2928 77%);box-shadow:0 0 38px #f0643b99,inset 0 0 22px #ffe56f99;animation:magmaBreathe 4s ease-in-out infinite}.magma-chamber i{position:absolute;width:13px;height:13px;border:2px solid #ffd77a;border-radius:50%;animation:bubble 3.3s infinite}.magma-chamber i:nth-child(1){left:25%;bottom:20%}.magma-chamber i:nth-child(2){left:56%;bottom:24%;animation-delay:-1s}.magma-chamber i:nth-child(3){left:73%;bottom:46%;animation-delay:-2s}.magma-pipe{position:absolute;left:50%;top:-38%;bottom:42%;width:6%;background:linear-gradient(90deg,#9e2e29,#f66b36,#9e2e29);clip-path:polygon(37% 0,75% 0,100% 100%,0 100%);filter:drop-shadow(0 0 8px #f46539)}.crystal-lens{position:absolute;z-index:15;right:5%;top:42%;width:175px;aspect-ratio:1;border-radius:50%;background:#1c2625;border:5px solid #e9d6ac;box-shadow:0 20px 35px #0b120fa8,0 0 0 1px #fff inset;display:grid;place-items:center;overflow:hidden}.crystal-lens small{position:absolute;top:17px;z-index:3;color:#fff;font-size:.46rem;letter-spacing:.12em}.crystal-lens>b{position:absolute;bottom:16px;z-index:3;color:#ffe08b;font-size:.66rem}.crystal-field{position:absolute;inset:0;background-color:#313536;transition:.5s;background-image:radial-gradient(ellipse at 16% 27%,#e6c777 0 2%,transparent 3%),radial-gradient(ellipse at 43% 19%,#a7bbac 0 2%,transparent 3%),radial-gradient(ellipse at 70% 38%,#e4d7ba 0 2.4%,transparent 3.4%),radial-gradient(ellipse at 32% 63%,#c26d4a 0 2%,transparent 3%),radial-gradient(ellipse at 77% 72%,#cfb671 0 2%,transparent 3%);background-size:22px 19px}.crystal-lens[data-crystals=medium] .crystal-field{background-size:42px 38px;filter:contrast(1.1)}.crystal-lens[data-crystals=large] .crystal-field{background-size:74px 68px;filter:contrast(1.2) brightness(1.1)}
/* Voda a čas */
.sediment-scene{background:#6d9e9d}.sed-sky{position:absolute;inset:0 0 43%;background:linear-gradient(#73a6b0,#c5c7a3)}.sed-sky:before{content:"";position:absolute;left:10%;top:16%;width:64px;height:64px;border-radius:50%;background:#f4d16f;box-shadow:0 0 35px #f8d777}.sed-sky span,.sed-sky span:before,.sed-sky span:after{position:absolute;width:90px;height:22px;border-radius:50%;background:#e8ece2c4}.sed-sky span{right:16%;top:23%}.sed-sky span:before,.sed-sky span:after{content:""}.sed-sky span:before{left:-35px;top:11px}.sed-sky span:after{right:-28px;top:8px}.sed-mountains{position:absolute;z-index:3;inset:22% 0 auto;height:38%;background:linear-gradient(140deg,#526656,#87916d);clip-path:polygon(0 82%,11% 44%,22% 72%,35% 18%,47% 63%,61% 35%,72% 75%,88% 29%,100% 54%,100% 100%,0 100%)}.sed-mountains i{position:absolute;background:#d9d6c4;clip-path:polygon(50% 0,100% 100%,0 100%)}.sed-mountains i:first-child{width:14%;height:28%;left:29%;top:20%}.sed-mountains i:last-child{width:10%;height:20%;right:8%;top:32%}.sed-river{position:absolute;z-index:5;left:27%;top:43%;width:70%;height:35%;background:linear-gradient(135deg,#a5d4d4,#4d959b);clip-path:polygon(5% 0,33% 9%,25% 27%,57% 33%,46% 54%,89% 70%,100% 100%,63% 91%,29% 70%,4% 43%);filter:drop-shadow(0 7px 0 #e5d7b8)}.sed-river i{position:absolute;width:12px;height:8px;border-radius:50%;background:#dfc68e;box-shadow:0 1px 2px #52605a;opacity:0}.sediment-scene[data-sediment-step="2"] .sed-river i,.sediment-scene[data-sediment-step="3"] .sed-river i,.sediment-scene[data-sediment-step="4"] .sed-river i{opacity:1;animation:grainTravel 2.7s linear infinite}.sed-river i:nth-child(2){animation-delay:-.6s}.sed-river i:nth-child(3){animation-delay:-1.1s}.sed-river i:nth-child(4){animation-delay:-1.8s}.sed-river i:nth-child(5){animation-delay:-2.3s}.sed-basin{position:absolute;z-index:6;left:0;right:0;bottom:0;height:35%;background:linear-gradient(#b89d6c,#695346 60%)}.sed-layer{position:absolute;left:0;right:0;height:13%;bottom:0;transform:scaleY(0);transform-origin:bottom;transition:.8s cubic-bezier(.2,.8,.2,1)}.sed-layer.l1{background:#c9a25c}.sed-layer.l2{bottom:12%;background:#8f7858}.sed-layer.l3{bottom:24%;background:#d6bc84}.sed-layer.l4{bottom:36%;background:#76685a}.sediment-scene[data-sediment-step="3"] .sed-layer,.sediment-scene[data-sediment-step="4"] .sed-layer{transform:scaleY(1)}.fossil-trace{position:absolute;z-index:3;left:33%;bottom:28%;color:#4a4038;font-size:3rem;opacity:0;transform:rotate(-9deg);transition:.7s}.sediment-scene[data-sediment-step="3"] .fossil-trace,.sediment-scene[data-sediment-step="4"] .fossil-trace{opacity:.7}.press-plate{position:absolute;left:5%;right:5%;height:9px;background:#2d2d2b;border-radius:50%;opacity:0;transition:.8s}.press-plate.top{top:8%}.press-plate.bottom{bottom:5%}.sediment-scene[data-sediment-step="4"] .press-plate{opacity:.8}.sediment-scene[data-sediment-step="4"] .press-plate.top{transform:translateY(130px)}.sed-process-labels{position:absolute;z-index:16;left:25px;top:90px;display:flex;gap:7px;flex-wrap:wrap}.sed-process-labels span{background:#14271fc2;color:#d9e4de;border:1px solid #ffffff21;padding:7px 9px;border-radius:99px;font-size:.52rem;font-weight:900;opacity:.48;transition:.3s}.sediment-scene[data-sediment-step="1"] [data-sed-label="1"],.sediment-scene[data-sediment-step="2"] [data-sed-label="2"],.sediment-scene[data-sediment-step="3"] [data-sed-label="3"],.sediment-scene[data-sediment-step="4"] [data-sed-label="4"]{opacity:1;background:#edbd56;color:#2d392f}.sediment-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:0 0 13px}.sediment-steps button{border:1px solid #21392e18;border-radius:14px;background:#eee8db;color:#68746d;padding:12px 5px;cursor:pointer}.sediment-steps button b,.sediment-steps button span{display:block}.sediment-steps button b{font-size:.58rem;color:#a78543}.sediment-steps button span{font-size:.68rem;font-weight:850;margin-top:3px}.sediment-steps button.active{background:#d9ad52;color:#29372f;box-shadow:0 7px 18px #725b2538}.sediment-steps button.done{background:#27483c;color:white}.process-play{display:grid;grid-template-columns:35px 1fr;grid-template-rows:auto auto;border:0;border-radius:17px;padding:12px 16px;background:#24473c;color:white;text-align:left;cursor:pointer;width:100%;margin-bottom:0}.play-mark{grid-row:1/3;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#f0c75f;color:#26382f;font-size:.66rem}.process-play b{font-size:.74rem}.process-play small{font-size:.59rem;color:#a9bbb2}.process-play.running .play-mark{animation:playPulse 1s infinite}.sediment-result{margin-top:15px}.result-actions{display:flex;gap:5px;flex-wrap:wrap}.result-actions button{padding:7px 9px}
/* Tlak a teplo */
.pressure-scene{background:linear-gradient(#718c86 0 17%,#654e45 17% 39%,#463741 39% 66%,#271f2d 66%);}.pressure-surface{position:absolute;z-index:2;inset:8% 0 auto;height:18%;background:#526c55;clip-path:polygon(0 63%,13% 29%,27% 58%,40% 17%,54% 61%,72% 24%,86% 59%,100% 37%,100% 100%,0 100%)}.pressure-surface:after{content:"";position:absolute;inset:58% 0 0;background:#6d8f57}.pressure-depth-lines{position:absolute;inset:17% 0 0;z-index:3;display:grid;grid-template-rows:repeat(4,1fr);pointer-events:none}.pressure-depth-lines i{border-top:1px dashed #ffffff24;color:#ffffff65;font-style:normal;font-size:.52rem;padding:7px}.buried-rock{--depth:8%;position:absolute;z-index:10;left:40%;top:calc(21% + var(--depth)*.54);width:20%;aspect-ratio:1.2;transition:top .45s cubic-bezier(.2,.8,.2,1),filter .45s,transform .45s;background:linear-gradient(150deg,#b78278,#664f50);clip-path:polygon(13% 5%,78% 0,100% 36%,81% 93%,27% 100%,0 58%);filter:drop-shadow(0 17px 12px #1410169c)}.buried-rock span{position:absolute;inset:10%;background:repeating-linear-gradient(12deg,transparent 0 13px,#ead5af55 14px 18px);transition:.5s}.buried-rock i{position:absolute;width:8px;height:70%;top:12%;background:#e2c37699;border-radius:50%;transform:rotate(15deg) scaleY(.2);transition:.5s}.buried-rock i:nth-child(2){left:28%}.buried-rock i:nth-child(3){left:52%}.buried-rock i:nth-child(4){left:72%}.pressure-scene[data-pressure-state=phyllite] .buried-rock{background:linear-gradient(145deg,#82908e,#3f4d4f)}.pressure-scene[data-pressure-state=phyllite] .buried-rock span{background:repeating-linear-gradient(16deg,#d6d8ca30 0 3px,transparent 4px 10px)}.pressure-scene[data-pressure-state=gneiss] .buried-rock{background:linear-gradient(145deg,#a89c86,#4f5860)}.pressure-scene[data-pressure-state=gneiss] .buried-rock span{background:repeating-linear-gradient(14deg,#e4d9bb99 0 6px,#4b525acc 7px 15px,#a78266aa 16px 20px)}.pressure-scene[data-pressure-state=gneiss] .buried-rock i{transform:rotate(15deg) scaleY(1)}.pressure-scene[data-pressure-state=melt] .buried-rock{background:linear-gradient(#ffd25a,#ef6635 48%,#9d2d2a);border-radius:45%;clip-path:none;filter:drop-shadow(0 0 24px #ef693a);transform:scale(.86)}.pressure-scene[data-pressure-state=melt] .buried-rock span,.pressure-scene[data-pressure-state=melt] .buried-rock i{opacity:0}.pressure-arrows i{position:absolute;z-index:11;width:50px;height:16px;opacity:.2;transition:.4s}.pressure-arrows i:before{content:"";position:absolute;background:#efc866}.pressure-arrows i:after{content:"";position:absolute;border:7px solid transparent}.pressure-arrows i:nth-child(1),.pressure-arrows i:nth-child(2){top:52%;}.pressure-arrows i:nth-child(1){left:26%;}.pressure-arrows i:nth-child(2){right:26%;transform:rotate(180deg)}.pressure-arrows i:nth-child(1):before,.pressure-arrows i:nth-child(2):before{left:0;top:6px;width:40px;height:3px}.pressure-arrows i:nth-child(1):after,.pressure-arrows i:nth-child(2):after{right:0;top:0;border-left-color:#efc866}.pressure-arrows i:nth-child(3),.pressure-arrows i:nth-child(4){left:47%;transform:rotate(90deg)}.pressure-arrows i:nth-child(3){top:34%}.pressure-arrows i:nth-child(4){top:68%;transform:rotate(-90deg)}.pressure-arrows i:nth-child(3):before,.pressure-arrows i:nth-child(4):before{left:0;top:6px;width:40px;height:3px}.pressure-arrows i:nth-child(3):after,.pressure-arrows i:nth-child(4):after{right:0;top:0;border-left-color:#efc866}.pressure-scene[data-pressure-state=phyllite] .pressure-arrows i{opacity:.6}.pressure-scene[data-pressure-state=gneiss] .pressure-arrows i,.pressure-scene[data-pressure-state=melt] .pressure-arrows i{opacity:1}.heat-glow{position:absolute;z-index:1;left:20%;right:20%;bottom:-15%;height:45%;border-radius:50%;background:#dc5639;filter:blur(45px);opacity:.08;transition:.4s}.pressure-scene[data-pressure-state=phyllite] .heat-glow{opacity:.17}.pressure-scene[data-pressure-state=gneiss] .heat-glow{opacity:.36}.pressure-scene[data-pressure-state=melt] .heat-glow{opacity:.78}.meters{position:absolute;z-index:14;right:24px;top:90px;width:115px;background:#171922a8;border:1px solid #ffffff22;border-radius:14px;padding:12px;color:white;backdrop-filter:blur(8px)}.meters>div+div{margin-top:11px}.meters span{font-size:.47rem;letter-spacing:.13em;font-weight:900}.meters b{display:block;height:6px;border-radius:7px;background:#ffffff20;margin-top:5px;overflow:hidden}.meters b i{display:block;width:8%;height:100%;background:linear-gradient(90deg,#edc25e,#e85e39);border-radius:inherit;transition:.45s}.pressure-control input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#7d908e,#e7b35b 72%,#e45839)}.pressure-control input[type=range]::-webkit-slider-thumb{border-color:#5d6870}.melt-warning{display:none;align-items:center;gap:11px;margin-top:13px;padding:11px 13px;background:#f6ded4;color:#84402f;border-radius:14px}.melt-warning.show{display:flex;animation:originReveal .3s}.melt-warning>span{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#c85438;color:white;font-weight:950}.melt-warning p{font-size:.64rem;line-height:1.4;margin:0}
.cycle-ribbon{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:10px;align-items:center;padding:24px 31px;color:#b8cbc2;background:#0e241c;border-top:1px solid #ffffff18;text-align:center}.cycle-ribbon span{font-size:.67rem;line-height:1.4}.cycle-ribbon b{color:#f0cb68}.cycle-ribbon i{font-style:normal;color:#f0cb68;font-weight:950}
@keyframes originReveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes smokeRise{0%{opacity:0;transform:translateY(10px) scale(.5)}35%{opacity:.65}100%{opacity:0;transform:translate(-28px,-100px) scale(1.7)}}@keyframes magmaBreathe{50%{transform:scale(1.035);filter:brightness(1.12)}}@keyframes bubble{0%{opacity:0;transform:translateY(15px) scale(.5)}40%{opacity:.8}100%{opacity:0;transform:translateY(-55px) scale(1.2)}}@keyframes grainTravel{0%{left:0;top:0;transform:rotate(0)}100%{left:91%;top:74%;transform:rotate(720deg)}}@keyframes playPulse{50%{box-shadow:0 0 0 8px #f0c75f33}}
@media(max-width:1120px){.origin-world{grid-template-columns:1fr}.origin-scene{min-height:650px}.origin-console{min-height:0}.origins-intro{grid-template-columns:1fr;gap:25px}.origin-tabs button{padding:20px;grid-template-columns:50px 1fr auto}.origin-tab-icon{width:49px;height:49px}}
@media(max-width:720px){.origins-section{padding:78px 10px 70px}.origins-intro{padding:0 10px;margin-bottom:35px}.origins-intro h2{font-size:clamp(2.6rem,13vw,4.2rem)}.origins-intro>p{font-size:.96rem}.origins-shell{border-radius:25px}.origin-tabs{grid-template-columns:repeat(3,minmax(105px,1fr));overflow-x:auto}.origin-tabs button{min-height:105px;padding:15px 12px;grid-template-columns:37px 1fr;gap:8px}.origin-tabs button>strong{display:none}.origin-tab-icon{width:37px;height:42px;border-radius:12px}.fire-icon:before{width:22px;height:29px}.water-icon:before,.pressure-icon:before{width:25px;height:24px}.origin-tabs small,.origin-tabs em{display:none}.origin-tabs b{font-size:.92rem;margin:0}.origin-scene{min-height:565px}.origin-console{padding:38px 20px 34px}.origin-console h3{font-size:2.5rem}.origin-result{grid-template-columns:82px 1fr;padding:12px;gap:12px}.result-rock{height:94px}.origin-result h4{font-size:1.15rem}.scene-topline{top:16px;left:15px;right:15px}.scene-topline span{font-size:.51rem}.scene-caption{left:14px;right:14px;bottom:14px;padding:12px}.crystal-lens{width:125px;right:4%;top:39%;border-width:4px}.crystal-lens small{top:12px;font-size:.38rem}.crystal-lens>b{bottom:12px;font-size:.54rem}.sed-process-labels{left:14px;right:14px;top:67px;gap:4px}.sed-process-labels span{font-size:.44rem;padding:6px}.sediment-steps button{padding:10px 2px}.sediment-steps button span{font-size:.57rem}.meters{right:13px;top:67px;width:94px;padding:9px}.buried-rock{width:27%;left:36.5%}.cycle-ribbon{grid-template-columns:1fr;gap:5px;padding:22px 20px}.cycle-ribbon i{transform:rotate(90deg)}.range-legend{font-size:.5rem;gap:4px}.science-note{font-size:.61rem!important}.sediment-result{margin-top:14px}}
@media(prefers-reduced-motion:reduce){.origin-world,.smoke,.magma-chamber,.magma-chamber i,.sed-river i,.process-play.running .play-mark{animation:none!important}.buried-rock,.sed-layer,.crystal-field{transition:none!important}}
.buried-rock{top:var(--depth-pos,25%)!important}

/* v7.9 — ručne vedené obrazové scény namiesto plošných CSS kulís */
.origin-scene{background-color:#172c25;background-repeat:no-repeat;background-size:cover;background-position:center;box-shadow:inset 0 0 90px #08140d42}
.origin-scene:after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(180deg,#0c181018 0 13%,transparent 34% 73%,#0b17104a 100%),radial-gradient(circle at 50% 48%,transparent 48%,#0b16112e 100%)}
.magma-scene{background-image:url('images/geology-fire-premium-v1.webp');background-position:center 48%}
.magma-scene .magma-sky,.magma-scene .volcano,.magma-scene .earth-cut{display:none}
.magma-scene .crystal-lens{z-index:15;border-color:#f3e4c1;background:#182322;box-shadow:0 22px 45px #07100bc7,0 0 0 1px #fff inset,0 0 0 8px #15271ca6}
.sediment-scene{background-image:url('images/geology-sediment-premium-v1.webp');background-position:center 48%}
.sediment-scene .sed-sky,.sediment-scene .sed-mountains{display:none}
.sediment-scene .sed-river{background:transparent;filter:none;z-index:7}
.sediment-scene .sed-basin{background:transparent;z-index:6}
.sediment-scene .sed-layer{opacity:.42;mix-blend-mode:multiply;box-shadow:inset 0 1px #fff4}
.sediment-scene .fossil-trace{color:#efe3be;text-shadow:0 2px 5px #2e211b;mix-blend-mode:screen}
.sediment-scene .press-plate{background:#f1ca67;box-shadow:0 0 12px #271f17}
.pressure-scene{background-image:url('images/geology-pressure-premium-v1.webp');background-position:center 48%}
.pressure-scene .pressure-surface{display:none}
.pressure-scene .pressure-depth-lines{z-index:4;background:linear-gradient(90deg,#0d182016,transparent 15% 85%,#0d182016)}
.pressure-scene .buried-rock{z-index:12;box-shadow:0 0 0 1px #ffffff21 inset}
.pressure-scene .heat-glow{z-index:2;mix-blend-mode:screen}
.pressure-scene[data-pressure-state=melt]{background-position:center 56%}
.scene-topline,.scene-caption,.sed-process-labels,.meters{z-index:25}
@media(max-width:720px){.origin-scene{min-height:470px;background-size:auto 100%}.magma-scene{background-position:48% center}.sediment-scene{background-position:47% center}.pressure-scene{background-position:50% center}.scene-caption{background:#10231de8}.sed-process-labels{max-width:75%}}

/* v7.10 — skutočné obrazové fázy procesov */
.crystal-field{background-image:url('images/origins/texture-igneous-fine.webp')!important;background-size:cover!important;background-position:center!important;filter:brightness(.9) contrast(1.14)!important;transition:background-image .25s,filter .35s!important}
.crystal-lens[data-crystals=medium] .crystal-field{background-image:url('images/origins/texture-igneous-porphyritic.webp')!important;filter:brightness(.92) contrast(1.08)!important}
.crystal-lens[data-crystals=large] .crystal-field{background-image:url('images/origins/texture-igneous-coarse.webp')!important;filter:brightness(.94) contrast(1.06)!important}
.crystal-field:after{content:"";position:absolute;inset:0;background:radial-gradient(circle,transparent 47%,#0c1715a8 100%);box-shadow:inset 0 0 20px #07100b66}
.sed-river i{width:34px;height:28px;border-radius:0;background:transparent center/contain no-repeat!important;box-shadow:none;filter:drop-shadow(0 3px 2px #29392c80)}
.sed-river i:nth-child(1){background-image:url('images/stones/kamen-34.webp')!important}.sed-river i:nth-child(2){background-image:url('images/stones/kamen-35.webp')!important}.sed-river i:nth-child(3){background-image:url('images/stones/kamen-33.webp')!important}.sed-river i:nth-child(4){background-image:url('images/stones/kamen-24.webp')!important}.sed-river i:nth-child(5){background-image:url('images/stones/kamen-36.webp')!important}
.buried-rock,.pressure-scene[data-pressure-state=phyllite] .buried-rock,.pressure-scene[data-pressure-state=gneiss] .buried-rock,.pressure-scene[data-pressure-state=melt] .buried-rock{width:24%;aspect-ratio:.75;background:transparent!important;clip-path:none!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 18px 12px #120e128c)!important;transform:none!important;overflow:visible}
.buried-rock>span,.buried-rock>i{display:none!important}.buried-rock>img{display:block;width:100%;height:100%;object-fit:contain;filter:saturate(.98) contrast(1.03);transition:opacity .18s,transform .45s cubic-bezier(.2,.8,.2,1);pointer-events:none}.pressure-scene[data-pressure-state=phyllite] .buried-rock>img{transform:rotate(-2deg) scale(1.02)}.pressure-scene[data-pressure-state=gneiss] .buried-rock>img{transform:rotate(2deg) scale(1.06)}.pressure-scene[data-pressure-state=melt] .buried-rock>img{transform:rotate(-1deg) scale(1.08);filter:saturate(1.08) drop-shadow(0 0 15px #e8874966)}
.metamorph-compare{margin-top:15px;padding:13px;border-radius:18px;background:#e9e2d5;border:1px solid #23382f15}.compare-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 2px 9px}.compare-head span{font-size:.55rem;font-weight:950;letter-spacing:.13em;color:#aa503a}.compare-head b{font-size:.62rem;color:#6f7873}.compare-window{position:relative;height:118px;overflow:hidden;border-radius:14px;background:radial-gradient(circle at 50% 40%,#8a897e,#343b3a);box-shadow:inset 0 0 0 1px #ffffff44}.compare-window>img,.compare-after img{position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);object-fit:contain;filter:drop-shadow(0 8px 6px #10181599)}.compare-after{position:absolute;z-index:2;inset:0 0 0 50%;overflow:hidden;background:radial-gradient(circle at 50% 40%,#7f837c,#2e3736)}.compare-after img{width:calc(200% - 20px);max-width:none;left:calc(-100% + 15px)}.compare-label{position:absolute;z-index:4;top:9px;padding:5px 8px;border-radius:99px;background:#13271fcf;color:white;font-size:.48rem;font-weight:950;letter-spacing:.12em}.compare-label.before{left:9px}.compare-label.after{right:9px;background:#e2b557;color:#24372e}.compare-divider{position:absolute;z-index:5;left:50%;top:0;bottom:0;width:2px;background:#fff;box-shadow:0 0 0 1px #1b3028,0 0 15px #0e1913}.compare-divider:after{content:'↔';position:absolute;left:50%;top:50%;translate:-50% -50%;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#30473d;font-style:normal;font-weight:950;box-shadow:0 5px 15px #0d171399}.compare-window input{position:absolute;z-index:8;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}
.origin-challenge{display:grid;grid-template-columns:130px minmax(0,1fr) 220px;gap:30px;align-items:center;padding:42px clamp(25px,5vw,70px);background:radial-gradient(circle at 91% 20%,#8ba27324,transparent 24%),linear-gradient(135deg,#19382d,#10281f);color:white;border-top:1px solid #ffffff16;position:relative;overflow:hidden}.origin-challenge:before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(165deg,transparent 0 55px,#ffffff05 56px 57px)}.challenge-badge{position:relative;z-index:2;aspect-ratio:1;border:1px solid #ffffff28;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at 35% 25%,#466656,#1a392e);box-shadow:0 18px 35px #06110b66,inset 0 0 0 8px #ffffff08}.challenge-badge span{color:#edc45d;font-size:1.4rem}.challenge-badge b{font:2.8rem/.9 Georgia,serif}.challenge-badge i{font-style:normal;font-size:.48rem;letter-spacing:.2em;color:#edc45d;margin-top:7px}.challenge-copy{position:relative;z-index:2}.challenge-copy>small{font-size:.6rem;letter-spacing:.17em;color:#edc45d;font-weight:950}.challenge-copy h3{font:clamp(1.8rem,3vw,3rem)/1 Georgia,serif;margin:9px 0 12px}.challenge-copy>p{font-size:.79rem;line-height:1.55;color:#bdcbc4;max-width:620px}.challenge-answers{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.challenge-answers button{border:1px solid #ffffff26;background:#ffffff0d;color:white;border-radius:99px;padding:10px 13px;font-size:.68rem;font-weight:850;cursor:pointer;transition:.2s}.challenge-answers button:hover,.challenge-answers button:focus-visible{background:#ffffff1d;outline:2px solid #edc45d;outline-offset:2px}.challenge-answers button.correct{background:#edc45d;color:#21372d;border-color:#edc45d}.challenge-answers button.wrong{background:#a84e3b;border-color:#c36b55}.challenge-feedback{min-height:22px;margin-top:11px;font-size:.68rem;color:#9fb4aa}.challenge-feedback.success{color:#f3d578;font-weight:900}.challenge-specimen{position:relative;z-index:2;height:180px;border-radius:22px;display:grid;place-items:center;background:radial-gradient(circle at 45% 42%,#60715f,#1b3027 70%);border:1px solid #ffffff1f;box-shadow:inset 0 0 35px #07100b55}.challenge-specimen>span{position:absolute;top:12px;left:13px;font-size:.48rem;letter-spacing:.13em;color:#d5e0da;font-weight:900}.challenge-specimen img{width:76%;height:76%;object-fit:contain;filter:drop-shadow(0 13px 9px #08100b99);animation:challengeFloat 4s ease-in-out infinite}.challenge-specimen i{position:absolute;inset:15%;border-radius:50%;border:1px dashed #f0c65c55;animation:challengeSpin 16s linear infinite}
@keyframes challengeFloat{50%{transform:translateY(-6px) rotate(1deg)}}@keyframes challengeSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){.origin-challenge{grid-template-columns:95px 1fr}.challenge-specimen{grid-column:1/-1;height:150px}.challenge-specimen img{width:45%;height:90%}}
@media(max-width:720px){.buried-rock,.pressure-scene[data-pressure-state=phyllite] .buried-rock,.pressure-scene[data-pressure-state=gneiss] .buried-rock,.pressure-scene[data-pressure-state=melt] .buried-rock{width:30%;left:35%}.origin-challenge{grid-template-columns:70px 1fr;gap:17px;padding:30px 18px}.challenge-badge{width:70px}.challenge-badge b{font-size:2rem}.challenge-copy h3{font-size:1.75rem}.challenge-answers button{font-size:.59rem;padding:9px}.challenge-specimen{height:130px}.challenge-specimen img{width:55%}.compare-window{height:105px}}
@media(prefers-reduced-motion:reduce){.challenge-specimen img,.challenge-specimen i{animation:none}}
.challenge-answers button:disabled{opacity:.35;cursor:not-allowed;filter:grayscale(.6)}
