/* Homepage cinematic layer: opening shot, pointer parallax, scene hotspots and slide-in sheets.
   Loaded after home-reference.css. The underlying page still works with this file and home-cinema.js absent. */

/* ---------- Opening shot (once per session) ---------- */
.cine-intro{position:fixed;inset:0;z-index:200;display:grid;place-items:center;pointer-events:auto;background:radial-gradient(60% 50% at 50% 50%,#1a0d06,#050507 70%);animation:cine-out .7s cubic-bezier(.7,0,.2,1) 1.75s forwards}
.cine-intro:before,.cine-intro:after{content:'';position:absolute;left:0;right:0;height:50%;background:#030304;animation:cine-bar .9s cubic-bezier(.7,0,.2,1) 1.45s forwards}
.cine-intro:before{top:0;transform-origin:top}.cine-intro:after{bottom:0;transform-origin:bottom}
.cine-intro-mark{position:relative;z-index:2;display:flex;align-items:center;gap:16px;opacity:0;transform:scale(.92);filter:blur(6px);animation:cine-mark 1.2s cubic-bezier(.16,1,.3,1) .15s forwards}
.cine-intro-mark img{width:72px;height:72px;filter:drop-shadow(0 0 22px #ff7a2e)}
.cine-intro-mark span{font-family:'Unbounded',var(--font);font-weight:800;font-size:clamp(30px,4vw,54px);letter-spacing:-1px;color:#fff;text-shadow:0 0 30px #ff7a2e66}
.cine-intro-mark span b{color:#ff9d57}
.cine-intro-line{position:absolute;z-index:2;left:50%;top:calc(50% + 62px);width:0;height:2px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#ff8a3c,transparent);animation:cine-line 1s ease .5s forwards}
.cine-intro-skip{position:absolute;z-index:3;right:24px;bottom:22px;padding:8px 12px;border:1px solid #ffffff2b;border-radius:6px;background:#0008;color:#d8cfc8;font-size:11px;letter-spacing:1.5px}
@keyframes cine-mark{to{opacity:1;transform:none;filter:none}}
@keyframes cine-line{to{width:min(460px,70vw)}}
@keyframes cine-bar{to{transform:scaleY(.12)}}
@keyframes cine-out{to{opacity:0;visibility:hidden}}
.cine-intro.done{display:none}

/* The scene gently follows the pointer (vars set by home-cinema.js). */
.home-page.cine-parallax{background-size:calc(100% + 36px) auto;background-position:calc(50% + var(--px,0) * -18px) calc(var(--py,0) * -10px)}
.home-page.cine-parallax .hero-content{transform:translate3d(calc(var(--px,0) * 6px),calc(var(--py,0) * 4px),0);transition:transform .4s ease-out}

/* ---------- Scene hotspots (mngamehost style) ---------- */
.cine-spots{position:absolute;inset:0;z-index:5;container-type:inline-size;pointer-events:none;transform:translate3d(calc(var(--px,0) * -18px),calc(var(--py,0) * -10px),0)}
.cine-spot{position:absolute;left:calc(var(--x) * 100%);top:calc(66.667cqw * var(--y));display:flex;align-items:center;gap:10px;padding:0;border:0;background:none;color:#fff;font:inherit;pointer-events:auto;cursor:pointer;transform:translate(-22px,-50%)}
.cine-spot .dot{position:relative;flex:0 0 44px;height:44px;border-radius:50%;display:grid;place-items:center}
.cine-spot .dot:before{content:'';width:14px;height:14px;border-radius:50%;background:#ff8a3c;box-shadow:0 0 0 3px #ffd2a6aa,0 0 18px 4px #ff7a2e}
.cine-spot .dot:after{content:'';position:absolute;inset:6px;border-radius:50%;border:2px solid #ffb070;animation:cine-pulse 2.2s ease-out infinite}
.cine-spot .tag{padding:7px 13px 7px 12px;border:1px solid #ffc08955;border-radius:8px;background:linear-gradient(#120c09e8,#0b0809d9);box-shadow:0 8px 22px #000b,inset 0 1px #ffd9b222;font-size:13px;font-weight:800;letter-spacing:-.2px;white-space:nowrap;transition:transform .25s ease,border-color .25s}
.cine-spot .tag small{display:block;margin-top:1px;color:#ffb27a;font-size:10px;font-weight:600;letter-spacing:.3px}
.cine-spot:hover .tag,.cine-spot:focus-visible .tag{transform:translateX(4px);border-color:#ffb070}
.cine-spot:nth-child(2) .dot:after{animation-delay:.55s}.cine-spot:nth-child(3) .dot:after{animation-delay:1.1s}.cine-spot:nth-child(4) .dot:after{animation-delay:1.65s}
@keyframes cine-pulse{0%{transform:scale(.6);opacity:1}100%{transform:scale(1.9);opacity:0}}
@media(max-width:1099px){.cine-spots{display:none}}

/* ---------- Slide-in sheets (zolweb style) ---------- */
.cine-scrim{position:fixed;inset:0;z-index:120;background:#030406a8;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;transition:opacity .35s}
.cine-scrim.open{opacity:1}
.cine-sheet{position:fixed;z-index:121;top:12px;right:12px;bottom:12px;width:min(480px,calc(100vw - 24px));display:flex;flex-direction:column;overflow:hidden;border-radius:14px;background:linear-gradient(160deg,#17110de6,#0a0a0ef2 55%);box-shadow:0 30px 70px #000d,0 0 0 1px #ffb07038,inset 0 1px #ffd9b22a;transform:translateX(calc(100% + 30px));transition:transform .55s cubic-bezier(.16,1,.3,1);color:#f4ede7}
.cine-sheet.open{transform:none}
.cine-sheet[hidden]{display:none}
.cine-sheet-art{position:relative;flex:0 0 auto;height:clamp(230px,40vh,360px);overflow:hidden}
.cine-sheet-art img{width:100%;height:100%;object-fit:cover;transform:scale(1.08);transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.cine-sheet.open .cine-sheet-art img{transform:none}
.cine-sheet-art:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,#0e0b0a 100%)}
.cine-sheet-body{flex:1;overflow:auto;padding:4px 28px 28px;display:flex;flex-direction:column;gap:14px}
.cine-sheet-body .kicker{color:#ffb27a;font-size:11px;font-weight:700;letter-spacing:1.6px}
.cine-sheet-body h2{margin:0;font-family:'Unbounded',var(--font);font-weight:800;font-size:30px;line-height:1.08;letter-spacing:-1px}
.cine-sheet-body h2 span{color:#ff9d57}
.cine-sheet-body p{margin:0;color:#d4cbc4;font-size:14px;line-height:1.6}
.cine-sheet-body .note{padding:12px 14px;border:1px solid #ffb0702e;border-radius:9px;background:#ff8a3c0d;color:#cfc4bc;font-size:12.5px}
.cine-sheet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.cine-sheet-actions a{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 18px;border-radius:8px;font-weight:800;font-size:14px}
.cine-sheet-actions .go{background:linear-gradient(#ffa34f,#ff7425);color:#120a05;box-shadow:0 0 22px #ff6e2455,inset 0 1px #ffc788}
.cine-sheet-actions .go:hover{background:linear-gradient(#ffb365,#ff8b34)}
.cine-sheet-actions .ghost{border:1px solid #ffffff30;color:#fff;background:#ffffff08}
.cine-sheet-actions .ghost:hover{border-color:#ffb070;color:#ffc089}
.cine-sheet-close{position:absolute;z-index:2;top:12px;right:12px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff2e;border-radius:10px;background:#07080ab8;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.cine-sheet-close:hover{border-color:#ffb070;color:#ffc089}
.cine-sheet .shots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cine-sheet .shots img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px;box-shadow:0 0 0 1px #ffb07030}
.cine-sheet .meta{display:flex;flex-wrap:wrap;gap:8px}
.cine-sheet .meta span{padding:5px 10px;border:1px solid #ffffff22;border-radius:6px;color:#e2d8d1;font-size:11px;font-weight:600}
.cine-sheet .meta span:first-child{border-color:#5fd58a66;color:#8ff0b0}
body.cine-locked{overflow:hidden}
@media(max-width:600px){
  .cine-sheet{top:auto;left:0;right:0;bottom:0;width:100%;height:min(88svh,720px);border-radius:16px 16px 0 0;transform:translateY(102%)}
  .cine-sheet-art{height:190px}
  .cine-sheet-body{padding:2px 20px 24px}
  .cine-sheet-body h2{font-size:26px}
}
@media(prefers-reduced-motion:reduce){
  .cine-intro{display:none}
  .cine-sheet,.cine-scrim,.cine-sheet-art img{transition:none}
  .cine-spot .dot:after{animation:none}
  .home-page.cine-parallax{background-size:100% auto;background-position:center top}
  .home-page.cine-parallax .hero-content,.cine-spots{transform:none}
}
