/* Mockup: Ihlan – egyptská pyramída v púšti, vrstvy kameňa, zlatý pyramidion, objem v kartuši na oblohe. */
.py-res{--py-sky1:#8fc6e8;--py-sky2:#f9e2b8;--py-sun:#ffd166;--py-halo:#fff1c7;--py-dune2:#e9c98d;--py-sand:#e2b874;--py-sand2:#d3a35c;
  --py-lit:#e7c389;--py-shd:#bf9152;--py-course:#9c7440;--py-edge:#7c5a2c;--py-gold:#f3c54b;--py-gold2:#c9962a;--py-ink:#3d2a12;--py-stroke:#fbefd9;
  --py-cart:#f6e6c4;--py-cartb:#8a5a24;--py-palm:#3f7a4a;--py-trunk:#8a6338;--py-hl:#ff8a3d;--py-star:#fff}
@media(prefers-color-scheme:dark){.py-res{--py-sky1:#0f1838;--py-sky2:#3b3560;--py-sun:#eef0f6;--py-halo:#6c74a8;--py-dune2:#6d5a49;--py-sand:#8a6e4e;--py-sand2:#6f5639;
  --py-lit:#b69565;--py-shd:#7f6240;--py-course:#5d4426;--py-edge:#3f2c14;--py-gold:#e7c05a;--py-gold2:#a98023;--py-ink:#fbefd9;--py-stroke:#3a2f45;
  --py-cart:#3a2f45;--py-cartb:#d9b56a;--py-palm:#2f5a3a;--py-trunk:#5e4426}}
.py-res{border-top-color:var(--py-gold2)}
.lay-shape .py-res .py-fig{position:relative;margin:.9rem 0 .6rem;padding:0;border-radius:18px 18px 6px 6px;overflow:hidden;background:var(--py-sand);border:1px solid var(--line)}
.lay-shape .py-res .py-fig svg{max-width:none;cursor:pointer}
.py-fig .py-ex{position:absolute;bottom:10px;left:12px;z-index:2;font:italic 700 .78rem/1 Georgia,serif;color:var(--py-ink);background:var(--py-cart);border:1.5px solid var(--py-cartb);border-radius:999px;padding:.28rem .6rem;display:none}
.py-fig.is-ex .py-ex{display:block}
.py-fig.is-ex .py-art{opacity:.6;filter:saturate(.6)}
.py-fig.is-ex .py-lbl{opacity:.65}
.py-s1{stop-color:var(--py-sky1)}.py-s2{stop-color:var(--py-sky2)}
.py-sun{fill:var(--py-sun)}.py-halo{fill:var(--py-halo);opacity:.55}
.py-stars{fill:var(--py-star);opacity:0}
@media(prefers-color-scheme:dark){.py-stars{opacity:.85}.py-halo{opacity:.25}}
.py-dune2{fill:var(--py-dune2)}.py-sand{fill:var(--py-sand)}.py-ripple{fill:none;stroke:var(--py-sand2);stroke-width:1.2;stroke-linecap:round;opacity:.7}
.py-palm path.tr{fill:none;stroke:var(--py-trunk);stroke-width:4;stroke-linecap:round}
.py-palm path.fr{fill:var(--py-palm)}
.py-cartb{fill:none;stroke:var(--py-cartb);stroke-width:2.4}.py-carti{fill:var(--py-cart);stroke:var(--py-cartb);stroke-width:1}.py-tie{stroke:var(--py-cartb);stroke-width:3;stroke-linecap:round}
.py-shadow{fill:#000;opacity:.16}
.py-base{fill:none;stroke:var(--py-edge);stroke-width:1.2;stroke-dasharray:4 4;opacity:0;transition:opacity .2s}
.py-front{fill:var(--py-lit)}.py-right{fill:var(--py-shd)}
.py-course{fill:none;stroke:var(--py-course);stroke-width:.9;opacity:.75}
.py-edge{fill:none;stroke:var(--py-edge);stroke-width:1.4;stroke-linejoin:round}
.py-edgehit{fill:none;stroke:transparent;stroke-width:12;stroke-linecap:round}
.py-capf{fill:var(--py-gold)}.py-capr{fill:var(--py-gold2)}
.py-glint{fill:#fff;opacity:.9;transform-box:fill-box;transform-origin:center}
.py-axis{fill:none;stroke:var(--py-ink);stroke-width:1.2;stroke-dasharray:4 3;opacity:.55}
.py-ra{fill:none;stroke:var(--py-ink);stroke-width:1;opacity:.55}
.py-ext{fill:none;stroke:var(--py-ink);stroke-width:.8;stroke-dasharray:2 3;opacity:.55}
.py-dim{fill:none;stroke:var(--py-ink);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.py-rope{fill:none;stroke:#c0392b;stroke-width:1.4;stroke-dasharray:5 3}
.py-stake{stroke:var(--py-trunk);stroke-width:2.6;stroke-linecap:round}
.lay-shape .py-fig text.py-lbl{font:700 14px Georgia,'Times New Roman',serif;fill:var(--py-ink);paint-order:stroke;stroke:var(--py-stroke);stroke-width:4px}
.lay-shape .py-fig text.py-vlbl{font:700 16px Georgia,'Times New Roman',serif;fill:var(--py-cartb);stroke:none;letter-spacing:.02em}
/* zvýraznenie */
.py-fig.hl-0 .py-front{fill:var(--py-gold)}.py-fig.hl-0 .py-right{fill:var(--py-gold2)}
.py-fig.hl-1 .py-edge{stroke:var(--py-hl);stroke-width:3.2}.py-fig.hl-1 .py-base{opacity:1;stroke:var(--py-hl)}
/* stavba: pyramída vyrastie zo zeme, vrchol dosadne, záblesk */
.py-mon{transform-box:fill-box;transform-origin:50% 100%}
.py-fig.run .py-mon{animation:py-rise .8s cubic-bezier(.2,.9,.3,1) both}
.py-fig.run .py-cap{animation:py-cap .5s .7s cubic-bezier(.3,1.5,.6,1) both}
.py-fig.run .py-glint{animation:py-glint 1.6s 1.1s ease-in-out both}
@keyframes py-rise{from{transform:scaleY(.04)}to{transform:none}}
@keyframes py-cap{from{transform:translateY(-26px);opacity:0}to{transform:none;opacity:1}}
@keyframes py-glint{0%,100%{transform:scale(.2);opacity:0}40%{transform:scale(1.3) rotate(45deg);opacity:1}}
@media(prefers-reduced-motion:reduce){.py-fig.run .py-mon,.py-fig.run .py-cap,.py-fig.run .py-glint{animation:none}}
/* dlaždice ako pieskovcové tabuľky s vytesaným textom */
.py-res #out .tile{background:linear-gradient(180deg,color-mix(in srgb,var(--py-lit) 30%,var(--soft)),color-mix(in srgb,var(--py-shd) 22%,var(--soft)));border:1px solid color-mix(in srgb,var(--py-edge) 35%,var(--line));border-radius:4px;box-shadow:inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(0,0,0,.08);transition:box-shadow .2s}
.py-res #out .tile dt{font-variant:small-caps;letter-spacing:.06em}
.py-res #out .tile dd{font-family:Georgia,'Times New Roman',serif}
.py-res #out .tile.py-on{box-shadow:0 0 0 3px var(--py-gold),inset 0 -3px 0 rgba(0,0,0,.08)}
