/* =========================================================
   Pět vizuálních světů – platí JEN uvnitř .style-scope (hero).
   Mění prostředí, textury a světlo. Logo, Marty, navigace a CTA zůstávají.
   ========================================================= */
.style-scope{position:relative;isolation:isolate;overflow:hidden;background-color:var(--bg);color:var(--text);
  transition:none}
.style-scope::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}

/* ---------- 1 · Retro Terminal ---------- */
.style-scope[data-style="terminal"]{
  --bg:#0C0D0B; --bg-alt:#121410; --card:#10120F; --card-2:#161913;
  --text:#E9E4D4; --muted:#9A9C88; --accent:#FFB000; --accent-h:#FFC233; --on-accent:#0C0D0B; --accent-soft:rgba(255,176,0,.12); --hl:#5BE08F;
  --border:rgba(233,228,212,.16); --border-d:rgba(233,228,212,.5); --line:1px; --r:4px; --r-lg:6px; --hard:0 0 0 1px var(--accent);
  --fd:"Geist Mono",ui-monospace,monospace; --fd-stretch:100%; --fh:"Geist Mono",ui-monospace,monospace;
  --glow:rgba(255,176,0,.35); --ok:#5BE08F; --ok-soft:rgba(91,224,143,.12);
  color-scheme:dark;
}
.style-scope[data-style="terminal"]::before{background:repeating-linear-gradient(0deg,rgba(0,0,0,.22) 0 1px,transparent 1px 3px),radial-gradient(ellipse at 30% 40%,rgba(255,176,0,.07),transparent 60%)}
.style-scope[data-style="terminal"] h1{font-weight:600;letter-spacing:-.06em;line-height:1.04;font-size:clamp(1.9rem,3.5vw,3.2rem)}
.style-scope[data-style="terminal"] h1::before{content:"> ";color:var(--accent)}
.style-scope[data-style="terminal"] h1 .mark{background:none;color:var(--accent)}
.style-scope[data-style="terminal"] .btn-primary{--b:transparent;--c:var(--accent);--bd:var(--accent)}

/* ---------- 2 · Paper Cut Out ---------- */
.style-scope[data-style="paper"]{
  --bg:#EFE7D6; --bg-alt:#E6DBC4; --card:#FFFCF5; --card-2:#F8F1E2; --text:#1C1813; --muted:#655C4E;
  --border:#D8CBB0; --border-d:#2A241B; --line:0px; --r:6px; --r-lg:10px; --fd-stretch:86%;
  --hard:0 2px 0 rgba(0,0,0,.08),0 14px 22px -8px rgba(60,40,10,.4); --glow:rgba(255,190,60,.35);
}
.style-scope[data-style="paper"]::before{background:
  radial-gradient(120% 70% at 85% 110%,#E2C88F 0 40%,transparent 41%),
  radial-gradient(90% 60% at 100% 100%,#D9B46A 0 38%,transparent 39%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E")}
.style-scope[data-style="paper"] .reel-frame{border:0;box-shadow:0 2px 0 #fff inset,0 26px 40px -16px rgba(60,40,10,.5);transform:rotate(-.6deg)}
.style-scope[data-style="paper"] .btn{border:0;box-shadow:0 2px 0 rgba(0,0,0,.12),0 10px 16px -6px rgba(60,40,10,.4)}
.style-scope[data-style="paper"] h1 .mark{background:none;position:relative;z-index:0}
.style-scope[data-style="paper"] h1 .mark::after{content:"";position:absolute;left:-.08em;right:-.08em;bottom:.08em;height:.34em;background:var(--accent);z-index:-1;transform:rotate(-1.4deg);border-radius:3px}

/* ---------- 3 · Pixel Explainer ---------- */
.style-scope[data-style="pixel"]{
  --bg:#FFF6D8; --bg-alt:#F5E7B5; --card:#FFFDF2; --card-2:#FFF3C9; --text:#121110; --muted:#5B564C;
  --accent:#FFB000; --border:#121110; --border-d:#121110; --line:3px; --r:0; --r-lg:0; --r-sm:0;
  --hard:5px 5px 0 #121110; --fd-stretch:100%; --glow:rgba(255,176,0,.45);
}
.style-scope[data-style="pixel"]::before{background-image:radial-gradient(rgba(18,17,16,.13) 1.6px,transparent 1.7px);background-size:16px 16px}
.style-scope[data-style="pixel"] h1{text-shadow:4px 4px 0 var(--accent)}
.style-scope[data-style="pixel"] h1 .mark{background:none}
.style-scope[data-style="pixel"] .reel-frame,.style-scope[data-style="pixel"] .btn{box-shadow:var(--hard)}
.style-scope[data-style="pixel"] .reel-frame canvas{image-rendering:pixelated}

/* ---------- 4 · Isometric ---------- */
.style-scope[data-style="iso"]{
  --bg:#EEF0EC; --bg-alt:#E1E5DF; --card:#FFFFFF; --card-2:#F5F7F3; --text:#1B1E1A; --muted:#556052;
  --border:#C9CFC6; --border-d:#1B1E1A; --line:1.5px; --r:10px; --r-lg:14px; --fd-stretch:80%;
  --block:1px 1px 0 #1B1E1A,2px 2px 0 #1B1E1A,3px 3px 0 #1B1E1A,4px 4px 0 #1B1E1A,5px 5px 0 #1B1E1A,6px 6px 0 #1B1E1A,7px 7px 0 #1B1E1A,8px 8px 0 #1B1E1A;
  --hard:var(--block); --glow:rgba(245,177,30,.35);
}
.style-scope[data-style="iso"]::before{background-image:repeating-linear-gradient(30deg,rgba(27,30,26,.08) 0 1px,transparent 1px 30px),repeating-linear-gradient(150deg,rgba(27,30,26,.08) 0 1px,transparent 1px 30px)}
.style-scope[data-style="iso"] .reel-frame{box-shadow:var(--block)}
.style-scope[data-style="iso"] .btn-primary{box-shadow:1px 1px 0 #1B1E1A,2px 2px 0 #1B1E1A,3px 3px 0 #1B1E1A,4px 4px 0 #1B1E1A}

/* ---------- 5 · CGI Product ---------- */
.style-scope[data-style="cgi"]{
  --bg:#0A0A0B; --bg-alt:#121214; --card:#141416; --card-2:#1B1B1E; --text:#F4F1EA; --muted:#A39E93;
  --accent:#F5B11E; --on-accent:#0A0A0B; --accent-soft:rgba(245,177,30,.12); --hl:#FF7A1A;
  --border:rgba(255,255,255,.08); --border-d:rgba(255,255,255,.18); --line:1px; --r:16px; --r-lg:24px;
  --fd-stretch:90%; --fd-case:none; --hard:0 10px 30px -8px rgba(245,177,30,.4); --glow:rgba(255,180,40,.55);
  color-scheme:dark;
}
.style-scope[data-style="cgi"]::before{background:radial-gradient(900px 520px at 72% 10%,rgba(245,177,30,.18),transparent 60%),radial-gradient(700px 400px at 10% 90%,rgba(255,255,255,.05),transparent 60%)}
.style-scope[data-style="cgi"] h1{font-weight:700;letter-spacing:-.035em}
.style-scope[data-style="cgi"] h1 .mark{background:none;color:var(--accent)}
.style-scope[data-style="cgi"] .btn{border-radius:999px}
.style-scope[data-style="cgi"] .btn-primary{background:linear-gradient(180deg,#FFD36B,#F5B11E 55%,#D9920A);border:0;box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 10px 24px -8px rgba(245,177,30,.6)}
.style-scope[data-style="cgi"] .reel-frame{border:1px solid rgba(255,255,255,.12);box-shadow:0 40px 80px -30px rgba(0,0,0,.9),0 0 0 1px rgba(245,177,30,.15),0 0 120px -40px rgba(245,177,30,.45)}

/* ---------- Přechodová stěna ---------- */
.wall{position:absolute;inset:0;z-index:50;pointer-events:none;overflow:hidden;perspective:1400px;visibility:hidden}
.wall.on{visibility:visible}
.wall i{position:absolute;top:-12%;bottom:-12%;left:-25%;width:150%;display:block;transform:translateX(-140%);backface-visibility:hidden}
.wall .w-trail{background:var(--w2,#F5B11E)}
.wall .w-main{background:var(--w1,#121110);box-shadow:-40px 0 80px rgba(0,0,0,.35)}
/* světelná hrana na čele stěny */
.wall .w-main::after{content:"";position:absolute;top:0;bottom:0;right:-2px;width:120px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.0) 30%,rgba(255,255,255,.55) 80%,rgba(255,255,255,.9));mix-blend-mode:overlay}
.wall .w-main::before{content:"";position:absolute;top:0;bottom:0;right:-60px;width:60px;background:linear-gradient(90deg,rgba(0,0,0,.35),transparent)}

/* ---------- Přepínač vzhledu v liště ---------- */
.look-switch{position:relative;display:flex;align-items:center;gap:8px}
.look-lbl{font:500 .7rem/1 var(--fm);text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.look-switch select{appearance:none;-webkit-appearance:none;height:38px;padding:0 28px 0 12px;border:var(--line) solid var(--border-d);border-radius:10px;background:var(--card);color:var(--text);font:500 .78rem/1 var(--fm);cursor:pointer}
.look-switch::after{content:"▾";position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:.75rem}
@media (max-width:760px){.look-lbl{display:none}.look-switch select{max-width:132px}}
@media (max-width:420px){.look-switch select{max-width:104px;padding:0 22px 0 8px;font-size:.7rem}}

/* ---------- Retro Terminal: blikání jako v programu ze 70. let (plynulý fade) ---------- */
.style-scope[data-style="terminal"] h1::after{content:"_";color:var(--accent);margin-left:.06em}
.style-scope[data-style="terminal"] h1::before,
.style-scope[data-style="terminal"] h1::after,
.style-scope[data-style="terminal"] .arrow,
.style-scope[data-style="terminal"] .reel-count{text-shadow:0 0 6px rgba(255,176,0,.55),0 0 18px rgba(255,176,0,.25)}
.style-scope[data-style="terminal"] .lead::before{content:"$ ";color:var(--hl)}
.style-scope[data-style="terminal"] .reel-count::before{content:"▸ ";color:var(--accent)}
@media (prefers-reduced-motion:no-preference){
  .style-scope[data-style="terminal"] h1::after{animation:crt-cursor 1.05s ease-in-out infinite}
  .style-scope[data-style="terminal"] h1::before{animation:crt-fade 2.4s ease-in-out infinite}
  .style-scope[data-style="terminal"] .arrow,
  .style-scope[data-style="terminal"] .lead::before,
  .style-scope[data-style="terminal"] .reel-count::before{display:inline-block;animation:crt-fade 1.8s ease-in-out infinite}
  .style-scope[data-style="terminal"] .btn:hover .arrow{animation-duration:.9s}
  .style-scope[data-style="terminal"]::before{animation:crt-flicker 6s steps(1) infinite}
}
@keyframes crt-cursor{0%,100%{opacity:1}45%{opacity:1}55%{opacity:.08}90%{opacity:.08}}
@keyframes crt-fade{0%,100%{opacity:1}50%{opacity:.25}}
@keyframes crt-flicker{0%,100%{opacity:1}47%{opacity:1}48%{opacity:.85}49%{opacity:1}}
@media (prefers-reduced-motion:reduce){.wall{display:none}}
