/* Lapisan sinematik "Cabaran Digital" — pembukaan, sektor selesai & kejayaan besar. Dimuat bersama cinematic.js. */
.intro {
  --cy: #22d3ee; --cy2: #38bdf8; --vi: #a78bfa; --rd: #ef4444; --gd: #fde047;
  position: fixed; inset: 0; z-index: 9000; overflow: hidden;
  background: #04070f; color: #e6edf7;
  font-family: 'Orbitron', system-ui, sans-serif;
  opacity: 0; transition: opacity .45s ease;
  -webkit-user-select: none; user-select: none; cursor: pointer;
}
.intro.on { opacity: 1; }
.intro.out { opacity: 0; transition-duration: .6s; pointer-events: none; }
.intro.out .in-stage { transform: scale(1.08); filter: blur(6px) brightness(1.6); transition: transform .6s ease-in, filter .6s ease-in; }

.in-stage { position: absolute; inset: 0; }
.in-stage::before { /* grid perspektif bergerak */
  content: ''; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image: linear-gradient(rgba(34,211,238,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.13) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(420px) rotateX(64deg); transform-origin: center top;
  animation: inGrid 1.6s linear infinite; z-index: 1;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.in-stage::after { /* garis imbasan CRT + vinyet */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 8;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75) 100%);
}
@keyframes inGrid { to { background-position: 0 56px; } }
.in-canvas { position: absolute; inset: 0; z-index: 0; }
.in-fx-flash { position: absolute; inset: 0; z-index: 9; opacity: 0; pointer-events: none; mix-blend-mode: screen; }

/* bar letterbox sinematik */
.in-lb { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 7; transition: height .7s cubic-bezier(.7,0,.2,1); }
.in-lb.top { top: 0; } .in-lb.bot { bottom: 0; }
.intro:not(.at-gate):not(.at-end) .in-lb { height: 7vh; }

/* kawalan */
.in-skip, .in-mute {
  position: absolute; top: 16px; z-index: 12;
  font: 700 11.5px 'Orbitron', system-ui, sans-serif; letter-spacing: 2px;
  color: #cbd5e1; background: rgba(8,14,30,.72); border: 1px solid rgba(56,189,248,.3);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; backdrop-filter: blur(6px);
}
.in-skip { right: 16px; } .in-mute { left: 16px; padding: 7px 12px; font-size: 15px; letter-spacing: 0; }
.in-skip:hover, .in-mute:hover { color: var(--cy); border-color: var(--cy); }
.intro.at-gate .in-skip, .intro.at-end .in-skip, .intro.at-gate .in-tap, .intro.at-end .in-tap, .intro.at-gate .in-segs { display: none; }

/* bar cerita bersegmen (gaya "stories") */
.in-segs { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); width: min(560px, 80vw); display: flex; gap: 6px; z-index: 12; }
.in-segs i { flex: 1; height: 3px; border-radius: 3px; background: rgba(148,163,184,.25); overflow: hidden; }
.in-segs b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cy), var(--vi)); }
.in-segs i.done b { width: 100%; }
.in-segs i.run b { animation: inSeg var(--dur, 3s) linear forwards; }
@keyframes inSeg { to { width: 100%; } }
.in-tap { position: absolute; bottom: calc(7vh + 14px); left: 0; right: 0; text-align: center; z-index: 12; font: 600 11px system-ui, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: rgba(203,213,225,.45); animation: inBlink 2s ease-in-out infinite; pointer-events: none; }
@keyframes inBlink { 50% { opacity: .35; } }

/* babak */
.in-scene { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; z-index: 3; }
.in-scene.act { display: flex; }

/* kinetik: huruf & perkataan */
.kt { display: inline-block; white-space: nowrap; }
.kt .sp { display: inline-block; width: .3em; }
.kt .ch { display: inline-block; opacity: 0; }
.wd { display: inline-block; opacity: 0; }
.act .wd { animation: inWord .45s cubic-bezier(.2,1.3,.4,1) forwards; animation-delay: calc(var(--d, 0s) + var(--i) * var(--s, .14s)); }
@keyframes inWord { 0% { opacity: 0; transform: translateY(26px) scale(1.4); filter: blur(8px); } 100% { opacity: 1; transform: none; filter: none; } }
.in-line { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: clamp(16px, 3.4vw, 26px); color: #cbd5e1; max-width: 860px; line-height: 1.45; }
.in-line em { font-style: normal; color: var(--cy); text-shadow: 0 0 16px rgba(34,211,238,.6); }

/* ---------- 0 · GERBANG ---------- */
.in-hex { position: relative; width: clamp(120px, 24vw, 170px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 26px; }
.in-hex img { width: 62%; filter: drop-shadow(0 0 24px rgba(34,211,238,.7)); animation: inBreath 2.4s ease-in-out infinite; }
.in-hex-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(34,211,238,.55); animation: inSpin 9s linear infinite; }
.in-hex-ring.r2 { inset: 12%; border-style: solid; border-color: rgba(167,139,250,.35) transparent; animation-duration: 3.5s; animation-direction: reverse; }
@keyframes inSpin { to { transform: rotate(360deg); } }
@keyframes inBreath { 50% { transform: scale(1.08); filter: drop-shadow(0 0 40px rgba(34,211,238,.95)); } }
.in-gate-k { font-size: clamp(10px, 2.3vw, 13px); letter-spacing: .5em; color: var(--rd); animation: inBlink 1.1s steps(2) infinite; }
.in-gate-op { margin: 12px 0 30px; font-size: clamp(15px, 3.6vw, 24px); font-weight: 900; letter-spacing: .18em; color: #fff; }
.in-gate-btn {
  font: 800 clamp(14px, 3.2vw, 17px) 'Orbitron', system-ui, sans-serif; letter-spacing: .18em; color: #04121f;
  background: linear-gradient(90deg, var(--cy), #818cf8); border: 0; border-radius: 14px; padding: 18px 34px; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(34,211,238,.5); animation: inPulse 1.6s ease-in-out infinite;
}
.in-gate-tip { margin-top: 18px; font: 600 12.5px system-ui, sans-serif; color: #93a4c0; }
@keyframes inPulse { 50% { box-shadow: 0 0 0 14px rgba(34,211,238,0), 0 0 46px rgba(34,211,238,.55); transform: scale(1.03); } }

/* ---------- 1 · BUT ---------- */
.in-stamp { position: absolute; top: calc(7vh + 34px); font: 600 clamp(10px, 2.2vw, 12px) ui-monospace, monospace; letter-spacing: .25em; color: rgba(103,232,249,.7); }
.in-term { width: min(640px, 92vw); text-align: left; padding: 22px 24px; border: 1px solid rgba(34,211,238,.3); border-radius: 12px; background: rgba(4,10,24,.82); box-shadow: 0 0 60px rgba(34,211,238,.12), inset 0 0 30px rgba(34,211,238,.06); font: 600 clamp(12px, 2.5vw, 16px)/2.1 ui-monospace, 'Courier New', monospace; color: #67e8f9; }
.in-term .ln { opacity: 0; white-space: nowrap; overflow: hidden; width: 0; }
.act .in-term .ln { animation: inType .5s steps(30) forwards; animation-delay: calc(var(--i) * .62s); }
.in-term .ln b { color: #4ade80; float: right; }
.in-term .ln.bad, .in-term .ln.bad b { color: #f87171; text-shadow: 0 0 12px rgba(248,113,113,.7); }
.act .in-term .ln.bad { animation-delay: 1.95s; }
@keyframes inType { 0% { opacity: 1; width: 0; } 100% { opacity: 1; width: 100%; } }
.in-load { width: min(640px, 92vw); height: 4px; margin-top: 16px; background: rgba(34,211,238,.12); border-radius: 4px; overflow: hidden; }
.in-load i { display: block; height: 100%; width: 0; background: var(--cy); box-shadow: 0 0 12px var(--cy); }
.act .in-load i { animation: inLoad 1.9s cubic-bezier(.4,0,.2,1) forwards, inLoadBad .2s 2s forwards; }
@keyframes inLoad { to { width: 78%; } }
@keyframes inLoadBad { to { background: var(--rd); box-shadow: 0 0 14px var(--rd); width: 79%; } }
/* koyakan skrin (screen tear) */
.in-stage.tear .in-scene.act { animation: inTear .18s steps(2) infinite; }
@keyframes inTear {
  0% { clip-path: inset(0 0 60% 0); transform: translateX(-14px); filter: hue-rotate(90deg); }
  33% { clip-path: inset(40% 0 20% 0); transform: translateX(18px); }
  66% { clip-path: inset(70% 0 0 0); transform: translateX(-8px); filter: hue-rotate(-60deg) saturate(3); }
  100% { clip-path: inset(0); transform: none; }
}

/* ---------- 2 · AMARAN ---------- */
.in-alert { background: radial-gradient(ellipse at center, rgba(239,68,68,.38), rgba(60,6,10,.4) 50%, transparent 75%); }
.act.in-alert { animation: inStrobe .42s steps(2) infinite; }
@keyframes inStrobe { 50% { background-color: rgba(239,68,68,.14); } }
.in-hazard { position: absolute; left: 0; right: 0; height: 30px; z-index: 6; background: repeating-linear-gradient(-45deg, #facc15 0 22px, #111 22px 44px); background-size: 62px 62px; animation: inHaz 0.9s linear infinite; opacity: .92; }
.in-hazard.top { top: 7vh; } .in-hazard.bot { bottom: 7vh; animation-direction: reverse; }
@keyframes inHaz { to { background-position: 62px 0; } }
.in-alert-ico { font-size: clamp(40px, 9vw, 70px); color: #fecaca; text-shadow: 0 0 30px var(--rd); animation: inBlink .42s steps(2) infinite; font-family: system-ui; }
.in-alert-big { position: relative; font-size: clamp(56px, 17vw, 200px); font-weight: 900; letter-spacing: .04em; line-height: 1; color: #fff; text-shadow: 0 0 40px var(--rd), 0 0 120px var(--rd); }
.act .in-alert-big { animation: inSlam .55s cubic-bezier(.15,1.6,.35,1) both; }
.in-alert-big::before, .in-alert-big::after { content: attr(data-t); position: absolute; inset: 0; mix-blend-mode: screen; }
.in-alert-big::before { color: #f00; animation: inSplitA 1.4s steps(1) infinite; }
.in-alert-big::after { color: #0ff; animation: inSplitB 1.4s steps(1) infinite; }
@keyframes inSplitA { 0%, 100% { transform: translate(-4px, 0); clip-path: inset(0); } 30% { transform: translate(-12px, 2px); clip-path: inset(20% 0 50% 0); } 60% { transform: translate(-3px, -1px); clip-path: inset(0); } }
@keyframes inSplitB { 0%, 100% { transform: translate(4px, 0); clip-path: inset(0); } 30% { transform: translate(12px, -2px); clip-path: inset(55% 0 10% 0); } 60% { transform: translate(3px, 1px); clip-path: inset(0); } }
@keyframes inSlam { 0% { opacity: 0; transform: scale(5); filter: blur(20px); } 60% { opacity: 1; filter: none; } 100% { transform: scale(1); } }
.in-alert-sub { margin-top: 14px; font-size: clamp(12px, 3vw, 22px); letter-spacing: .55em; color: #fca5a5; }
.act .in-alert-sub { animation: inFadeUp .5s .45s both; }
.in-integ { margin-top: 30px; width: min(420px, 86vw); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: end; font-size: 11px; letter-spacing: .3em; color: #fca5a5; text-align: left; }
.act .in-integ { animation: inFadeUp .4s .7s both; }
.in-integ b { font-size: clamp(22px, 5vw, 34px); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.in-integ-bar { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(239,68,68,.18); overflow: hidden; }
.in-integ-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--rd), #f97316); box-shadow: 0 0 14px var(--rd); }
@keyframes inFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 3 · PENJAHAT ---------- */
.in-villain { background: radial-gradient(ellipse at 50% 38%, rgba(124,58,237,.35), transparent 60%); }
.in-smoke { position: absolute; width: 140vmax; height: 140vmax; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(124,58,237,.18), transparent 30%, rgba(167,139,250,.12), transparent 60%); animation: inSpin 14s linear infinite; filter: blur(40px); }
.in-vport { position: relative; width: clamp(130px, 26vw, 220px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--vi); box-shadow: 0 0 0 8px rgba(124,58,237,.15), 0 0 90px rgba(167,139,250,.7); }
.in-vport img { width: 100%; height: 100%; object-fit: cover; }
.act .in-vport { animation: inEmerge 1.3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes inEmerge { 0% { opacity: 0; transform: scale(.25) rotate(-25deg); filter: blur(24px) brightness(3) hue-rotate(120deg); } 55% { opacity: 1; filter: blur(0) brightness(1.4) hue-rotate(40deg); } 100% { transform: none; filter: none; } }
.in-scanline { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(167,139,250,.55), transparent); animation: inScan 1.4s linear infinite; mix-blend-mode: screen; }
@keyframes inScan { from { top: -30%; } to { top: 100%; } }
.in-kicker { margin: 22px 0 6px; font-size: clamp(10px, 2.3vw, 13px); letter-spacing: .5em; color: #c4b5fd; opacity: 0; }
.act .in-kicker { animation: inFadeUp .5s .5s forwards; }
.in-vname { position: relative; font-size: clamp(40px, 11vw, 120px); font-weight: 900; letter-spacing: .04em; line-height: 1.05; color: #fff; text-shadow: 4px 0 #ef4444, -4px 0 #22d3ee, 0 0 50px rgba(167,139,250,.8); opacity: 0; font-variant-numeric: tabular-nums; }
.act .in-vname { animation: inFade .1s .75s forwards, inJolt 2.6s 1.8s infinite; }
@keyframes inFade { to { opacity: 1; } }
@keyframes inJolt { 0%, 88%, 100% { transform: none; } 90% { transform: skewX(14deg) translateX(-6px); text-shadow: -10px 0 #ef4444, 10px 0 #22d3ee; } 94% { transform: skewX(-10deg) translateX(8px); } }
.in-threat { margin-top: 16px; }
.in-taunt { margin-top: 18px; min-height: 1.6em; font: italic 700 clamp(14px, 2.8vw, 19px) system-ui, sans-serif; color: #c4b5fd; text-shadow: 0 0 14px rgba(167,139,250,.7); }
.in-caret { display: inline-block; width: 9px; height: 1em; margin-left: 3px; vertical-align: -2px; background: #c4b5fd; animation: inBlink .7s steps(2) infinite; }

/* ---------- 4 · VERSUS (pecahan diagonal) ---------- */
.in-vs { padding: 0; }
.in-vs-side { position: absolute; top: 0; bottom: 0; width: 58%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 4vw; }
.in-vs-side.l { left: 0; align-items: flex-start; text-align: left; background: linear-gradient(120deg, rgba(8,47,73,.95), rgba(14,116,144,.75)); clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); }
.in-vs-side.r { right: 0; align-items: flex-end; text-align: right; background: linear-gradient(240deg, rgba(46,16,101,.95), rgba(109,40,217,.7)); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
.act .in-vs-side.l { animation: inFromL .55s cubic-bezier(.7,0,.2,1) both; }
.act .in-vs-side.r { animation: inFromR .55s .2s cubic-bezier(.7,0,.2,1) both; }
@keyframes inFromL { from { transform: translateX(-100%); } }
@keyframes inFromR { from { transform: translateX(100%); } }
.in-vs-tag { font-size: clamp(10px, 2vw, 13px); letter-spacing: .45em; color: rgba(255,255,255,.75); padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.in-vs-name { font-size: clamp(26px, 6.4vw, 78px); font-weight: 900; line-height: .95; color: #fff; letter-spacing: .02em; text-shadow: 0 6px 30px rgba(0,0,0,.5); max-width: 60%; }
.in-vs-side.l .in-vs-name { color: #cffafe; }
.in-vs-side.r .in-vs-name { color: #ede9fe; }
.in-vs-cast { display: flex; flex-wrap: nowrap; gap: 8px; }
.in-vs-cast figure { margin: 0; width: clamp(46px, 6.2vw, 86px); text-align: center; opacity: 0; }
.act .in-vs-cast figure { animation: inPop .4s cubic-bezier(.2,1.6,.4,1) forwards; animation-delay: calc(.45s + var(--i) * .09s); }
.in-vs-cast img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid rgba(165,243,252,.8); background: #0b1630; box-shadow: 0 0 18px rgba(34,211,238,.5); }
.in-vs-cast figcaption { margin-top: 4px; font: 700 clamp(8px, 1.4vw, 11px) system-ui, sans-serif; color: #e0f2fe; white-space: nowrap; }
.in-vs-villain { width: clamp(110px, 22vw, 230px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--vi); box-shadow: 0 0 60px rgba(167,139,250,.8); }
.act .in-vs-villain { animation: inPop .5s .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes inPop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.in-vs-slash { position: absolute; top: -10%; bottom: -10%; left: 50%; width: 6px; background: #fff; box-shadow: 0 0 30px #fff, 0 0 80px var(--cy); transform: translateX(-50%) rotate(16deg) scaleY(0); z-index: 4; }
.act .in-vs-slash { animation: inSlash .35s 1.1s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes inSlash { to { transform: translateX(-50%) rotate(16deg) scaleY(1); } }
.in-vs-badge { position: relative; z-index: 5; font-size: clamp(64px, 15vw, 170px); font-weight: 900; font-style: italic; color: #fff; -webkit-text-stroke: 3px #0f172a; text-shadow: 6px 6px 0 var(--rd), -4px -4px 0 var(--cy), 0 0 60px rgba(255,255,255,.7); opacity: 0; }
.act .in-vs-badge { animation: inVS .5s 1.15s cubic-bezier(.15,1.8,.35,1) forwards; }
@keyframes inVS { 0% { opacity: 0; transform: scale(6) rotate(-30deg); } 100% { opacity: 1; transform: rotate(-8deg); } }

/* gelang kejutan (shockwave) */
.in-ring { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 4px solid #fff; opacity: 0; pointer-events: none; z-index: 4; }
.in-ring.gold { border-color: var(--gd); }
.in-ring.go { animation: inRing .9s cubic-bezier(.1,.6,.3,1) forwards; }
@keyframes inRing { 0% { opacity: 1; transform: scale(.2); border-width: 14px; } 100% { opacity: 0; transform: scale(40); border-width: 1px; } }

/* ---------- 5 · TARUHAN ---------- */
.in-ghost { position: absolute; font-size: clamp(220px, 60vw, 640px); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(34,211,238,.16); letter-spacing: -.04em; z-index: -1; }
.act .in-ghost { animation: inGhost 3.8s ease-out both; }
@keyframes inGhost { from { transform: scale(1.5); opacity: 0; } 20% { opacity: 1; } to { transform: scale(1); } }
.in-stakes-k { font-size: clamp(11px, 2.6vw, 16px); letter-spacing: .5em; color: var(--cy); margin-bottom: 30px; opacity: 0; }
.act .in-stakes-k { animation: inFadeUp .5s .05s forwards; }
.in-nums { display: flex; gap: clamp(12px, 4vw, 54px); flex-wrap: wrap; justify-content: center; }
.in-num { min-width: 110px; padding: 18px 22px; border: 1px solid rgba(34,211,238,.25); border-radius: 18px; background: rgba(8,16,36,.7); opacity: 0; }
.act .in-num { animation: inStamp .45s cubic-bezier(.15,1.7,.35,1) forwards; animation-delay: calc(.35s + var(--i) * .52s); }
@keyframes inStamp { 0% { opacity: 0; transform: scale(2.6) translateY(-20px); filter: blur(10px); } 100% { opacity: 1; transform: none; filter: none; } }
.in-num b { display: block; font-size: clamp(42px, 11vw, 96px); font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 0 30px rgba(34,211,238,.7); font-variant-numeric: tabular-nums; }
.in-num span { display: block; margin-top: 8px; font-size: clamp(11px, 2.4vw, 14px); letter-spacing: .45em; color: var(--cy2); }
.in-stakes-f { margin-top: 34px; opacity: 0; }
.act .in-stakes-f { animation: inFadeUp .6s 2.1s forwards; }

/* ---------- 6 · KIRA DETIK + TAJUK ---------- */
.in-cd { position: absolute; font-size: clamp(120px, 34vw, 340px); font-weight: 900; color: #fff; text-shadow: 0 0 60px var(--cy), 0 0 140px var(--cy); z-index: 4; }
.in-cd.pop { animation: inCd .7s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes inCd { 0% { opacity: 0; transform: scale(3); filter: blur(16px); } 25% { opacity: 1; transform: scale(1); filter: none; } 100% { opacity: 0; transform: scale(.6); } }
.in-reveal { position: relative; display: flex; flex-direction: column; align-items: center; visibility: hidden; }
.in-final.revealed .in-reveal { visibility: visible; }
.in-pre { font-size: clamp(10px, 2.2vw, 13px); letter-spacing: .5em; color: var(--gd); opacity: 0; }
.revealed .in-pre { animation: inFadeUp .5s .1s forwards; }
.in-title { margin: 14px 0 0; display: flex; flex-direction: column; align-items: center; font-size: clamp(42px, 12vw, 136px); font-weight: 900; line-height: .98; letter-spacing: .02em; }
.in-title .row { position: relative; display: block; }
.in-title .ch {
  color: #fff;
  background-image: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%), linear-gradient(180deg, #fff 0%, #a5f3fc 45%, #38bdf8 70%, #a78bfa 100%);
  background-size: 400% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(56,189,248,.55));
}
.revealed .in-title .ch {
  animation: inChar .6s cubic-bezier(.12,1.6,.3,1) forwards, inShine 3.2s ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) + var(--i) * var(--s, .05s)), calc(1.4s + var(--d, 0s) * .5 + var(--i) * .07s);
}
@keyframes inChar { 0% { opacity: 0; transform: scale(4) translateY(-.3em); filter: blur(14px) drop-shadow(0 0 22px rgba(56,189,248,.55)); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 22px rgba(56,189,248,.55)); } }
/* sapuan kilau merentas huruf (lapisan latar pertama bergerak) */
@keyframes inShine { 0% { background-position: 130% 0, 0 0; } 40%, 100% { background-position: -30% 0, 0 0; } }
.in-op { margin-top: 20px; padding: 9px 28px; border-radius: 999px; border: 1px solid rgba(34,211,238,.5); background: rgba(8,16,36,.8); font-size: clamp(11px, 2.8vw, 18px); font-weight: 700; letter-spacing: .4em; color: #67e8f9; box-shadow: 0 0 30px rgba(34,211,238,.25); opacity: 0; }
.revealed .in-op { animation: inFadeUp .5s .9s forwards; }
.in-goal { margin-top: 22px; opacity: 0; }
.revealed .in-goal { animation: inFadeUp .5s 1.3s forwards; }
.in-dcs { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font: 700 clamp(10px, 2.2vw, 13px) system-ui, sans-serif; letter-spacing: .2em; color: #fde68a; opacity: 0; }
.in-dcs span { font-family: 'Orbitron', system-ui, sans-serif; font-weight: 900; color: #0b0f1a; background: var(--gd); padding: 3px 10px; border-radius: 6px; letter-spacing: .15em; box-shadow: 0 0 18px rgba(253,224,71,.6); }
.revealed .in-dcs { animation: inFadeUp .5s 1.7s forwards; }
.in-go { margin-top: 30px; opacity: 0; font: 900 clamp(15px, 3.4vw, 19px) 'Orbitron', system-ui, sans-serif; letter-spacing: .16em; color: #04121f; background: linear-gradient(90deg, var(--cy), #818cf8, var(--vi)); background-size: 200% 100%; border: 0; border-radius: 16px; padding: 18px 40px; cursor: pointer; }
.revealed .in-go { animation: inFadeUp .5s 2.1s forwards, inPulse 1.6s 2.6s ease-in-out infinite, inGrad 3s linear infinite; }
@keyframes inGrad { to { background-position: 200% 0; } }
.in-go:hover { filter: brightness(1.15); }


/* ================== SINEMATIK SEKTOR SELESAI ================== */
.cine-sector { background: radial-gradient(ellipse at 50% 30%, rgba(14,116,144,.35), transparent 70%), #04070f; }
.cs-wrap { position: relative; z-index: 3; height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 16px 28px; }
.cs-kicker { font-size: clamp(10px, 2.2vw, 13px); letter-spacing: .45em; color: var(--cy); animation: inFadeUp .5s both; }
.cs-head { position: relative; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; }
.cs-code { font-size: clamp(40px, 10vw, 104px); font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 0 34px rgba(34,211,238,.6); }
.cs-code .ch { animation: inChar .55s cubic-bezier(.12,1.6,.3,1) forwards; animation-delay: calc(var(--d, 0s) + var(--i) * var(--s, .05s)); }
.cs-stamp { font-size: clamp(16px, 3.6vw, 30px); font-weight: 900; letter-spacing: .12em; color: #052e16; background: #4ade80; padding: 8px 16px; border-radius: 10px; box-shadow: 0 0 34px rgba(74,222,128,.7); transform: rotate(-6deg); animation: csStamp .45s .35s cubic-bezier(.15,1.8,.35,1) both; }
@keyframes csStamp { from { opacity: 0; transform: scale(3.5) rotate(-20deg); filter: blur(8px); } to { opacity: 1; transform: rotate(-6deg); } }
.cs-name { margin-top: 12px; font: 800 clamp(16px, 3.2vw, 24px) system-ui, sans-serif; color: #cffafe; animation: inFadeUp .5s .6s both; }
.cs-chips { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; animation: inFadeUp .5s .8s both; }
.cs-chips span { font: 700 12.5px system-ui, sans-serif; color: #e0f2fe; background: rgba(14,23,48,.8); border: 1px solid rgba(56,189,248,.3); border-radius: 999px; padding: 6px 12px; }
.cs-meter { width: min(560px, 92vw); margin-top: 22px; animation: inFadeUp .5s 1s both; }
.cs-meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .35em; color: #67e8f9; }
.cs-meter-top b { font-size: clamp(20px, 4.6vw, 30px); letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(34,211,238,.7); }
.cs-bar { margin-top: 6px; height: 12px; border-radius: 8px; background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.25); overflow: hidden; }
.cs-bar i { display: block; height: 100%; background: linear-gradient(90deg, #0ea5e9, #22d3ee, #a5f3fc); box-shadow: 0 0 18px #22d3ee; }
.cs-cells { display: flex; gap: 5px; margin-top: 8px; }
.cs-cells em { flex: 1; height: 6px; border-radius: 3px; background: rgba(148,163,184,.2); transition: background .3s, box-shadow .3s; }
.cs-cells em.on { background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.cs-cells em.now.on { background: #4ade80; box-shadow: 0 0 14px #4ade80; }
.cs-story { width: min(640px, 94vw); margin-top: 22px; display: grid; gap: 10px; text-align: left; }
.cs-ally, .cs-villain { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s; }
.cs-ally-on .cs-ally, .cs-villain-on .cs-villain { opacity: 1; transform: none; }
.cs-ally { background: rgba(8,47,73,.75); border: 1px solid rgba(34,211,238,.35); }
.cs-villain { background: rgba(46,16,101,.7); border: 1px solid rgba(167,139,250,.4); }
.cs-villain-on .cs-villain { animation: csGlitch .5s steps(2); }
@keyframes csGlitch { 0% { transform: translateX(-8px); filter: hue-rotate(90deg); } 50% { transform: translateX(6px); } 100% { transform: none; filter: none; } }
.cs-ally img, .cs-villain img { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; background: #0b1630; border: 2px solid rgba(165,243,252,.7); }
.cs-villain img { border-color: var(--vi); }
.cs-ally b, .cs-villain b { display: block; font: 800 11px 'Orbitron', system-ui, sans-serif; letter-spacing: .15em; color: #67e8f9; margin-bottom: 4px; }
.cs-villain b { color: #c4b5fd; }
.cs-ally p, .cs-villain p { font: 600 clamp(13.5px, 2.4vw, 15.5px)/1.5 system-ui, sans-serif; color: #e2e8f0; min-height: 1.5em; }
.cs-villain p { font-style: italic; color: #ddd6fe; }
.cs-foot { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transition: opacity .4s; }
.cs-end .cs-foot { opacity: 1; }
.cs-next { font: 700 12px system-ui, sans-serif; letter-spacing: .12em; color: #93a4c0; }
.cs-next b { color: #fde68a; font-family: 'Orbitron', system-ui, sans-serif; }
.cs-go { font: 900 clamp(14px, 3vw, 17px) 'Orbitron', system-ui, sans-serif; letter-spacing: .14em; color: #04121f; background: linear-gradient(90deg, var(--cy), #818cf8); border: 0; border-radius: 14px; padding: 15px 30px; cursor: pointer; animation: inPulse 1.6s ease-in-out infinite; }
.cs-head .in-ring { z-index: -1; }

/* ================== SINEMATIK KEJAYAAN BESAR ================== */
.cine-final { background: radial-gradient(ellipse at 50% 40%, #12123a, #04070f 70%); }
.cf-k { font-size: clamp(10px, 2.2vw, 13px); letter-spacing: .45em; color: #c4b5fd; }
.act .cf-k { animation: inFadeUp .5s .2s both; }
.cf-k.gold { color: var(--gd); }

/* 0 · Serangan Terakhir */
.cf-vwrap { position: relative; margin-top: 22px; width: clamp(150px, 30vw, 250px); aspect-ratio: 1; }
.cf-villain { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--vi); box-shadow: 0 0 80px rgba(167,139,250,.7); }
.act .cf-villain { animation: inEmerge .9s both; }
.cf-charge .cf-villain { animation: cfQuake .09s linear infinite; box-shadow: 0 0 0 6px rgba(253,224,71,.25), 0 0 120px rgba(253,224,71,.6), 0 0 80px rgba(167,139,250,.9); }
@keyframes cfQuake { 0% { transform: translate(2px, 1px); filter: hue-rotate(0); } 50% { transform: translate(-3px, -2px); filter: hue-rotate(40deg) brightness(1.3); } 100% { transform: translate(1px, -1px); } }
.cf-fire .cf-villain { visibility: hidden; }
.cf-last { margin-top: 16px; min-height: 1.6em; font: italic 700 clamp(15px, 3vw, 22px) system-ui, sans-serif; color: #ddd6fe; text-shadow: 0 0 16px rgba(167,139,250,.8); max-width: 760px; }
.cf-fire .cf-last { opacity: 0; transition: opacity .3s; }
.cf-beam { position: absolute; left: 50%; top: -10%; bottom: -10%; width: clamp(60px, 12vw, 140px); transform: translateX(-50%) scaleX(0); z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(253,224,71,.5) 20%, #fff 45%, #fff 55%, rgba(34,211,238,.5) 80%, transparent); filter: blur(2px); mix-blend-mode: screen; }
.cf-fire .cf-beam { animation: cfBeam 1.1s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes cfBeam { 0% { transform: translateX(-50%) scaleX(0); opacity: 1; } 12% { transform: translateX(-50%) scaleX(1.4); } 40% { transform: translateX(-50%) scaleX(1); opacity: 1; } 100% { transform: translateX(-50%) scaleX(.1); opacity: 0; } }
.cf-ko { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 6; visibility: hidden; pointer-events: none; }
.cf-ko .kt { font-size: clamp(34px, 9vw, 96px); font-weight: 900; color: #fff; text-shadow: 5px 0 #ef4444, -5px 0 #22d3ee, 0 0 40px rgba(167,139,250,.9); }
.cf-ko b { font-size: clamp(18px, 4.6vw, 44px); font-weight: 900; letter-spacing: .3em; color: #0b0f1a; background: var(--gd); padding: 6px 18px; border-radius: 10px; box-shadow: 0 0 40px rgba(253,224,71,.8); transform: rotate(-4deg); opacity: 0; }
.cf-fire .cf-ko { visibility: visible; }
.cf-fire .cf-ko .ch { animation: inChar .45s cubic-bezier(.12,1.6,.3,1) forwards; animation-delay: calc(.55s + var(--i) * .035s); }
.cf-fire .cf-ko b { animation: csStamp .45s 1.1s cubic-bezier(.15,1.8,.35,1) forwards; }

/* sinar cahaya berputar (god rays) */
.cf-rays { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; z-index: -1; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(125,211,252,.13) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 38%); mask-image: radial-gradient(circle, #000 0%, transparent 38%);
  animation: inSpin 26s linear infinite; transition: opacity 1s; }
.cf-rays.gold, .solar .cf-rays { background: repeating-conic-gradient(from 0deg, rgba(253,224,71,.16) 0deg 5deg, transparent 5deg 15deg); }
.cf-lit .cf-core .cf-rays, .act.cf-win .cf-rays, .cf-landed .cf-rank-sc .cf-rays { opacity: 1; }

/* 1 · teras pulih */
.cf-core-wrap { position: relative; width: clamp(150px, 30vw, 240px); aspect-ratio: 1; display: grid; place-items: center; }
.cf-core-img { width: 64%; filter: grayscale(1) brightness(.45); transition: filter .6s ease; z-index: 2; }
.cf-lit .cf-core-img { filter: drop-shadow(0 0 40px rgba(34,211,238,1)) brightness(1.2); animation: inBreath 2.2s ease-in-out infinite; }
.cine-final.solar.cf-lit .cf-core-img { filter: sepia(1) saturate(6) hue-rotate(5deg) drop-shadow(0 0 50px rgba(253,224,71,1)) brightness(1.3); animation: cfBreathSolar 2.2s ease-in-out infinite; }
@keyframes cfBreathSolar { 50% { transform: scale(1.08); filter: sepia(1) saturate(7) hue-rotate(5deg) drop-shadow(0 0 70px rgba(253,224,71,1)) brightness(1.5); } }
.cf-halo { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.55), transparent 62%); opacity: .15; transition: opacity .6s; }
.solar .cf-halo { background: radial-gradient(circle, rgba(253,224,71,.7), rgba(249,115,22,.25) 45%, transparent 65%); }
.cf-lit .cf-halo { opacity: 1; animation: inBreath 2.2s ease-in-out infinite; }
.cf-orbit { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(34,211,238,.6); animation: inSpin 3s linear infinite; }
.cf-orbit.o2 { inset: 14%; border-style: solid; border-color: rgba(167,139,250,.5) transparent; animation-duration: 1.4s; animation-direction: reverse; }
.solar .cf-orbit { border-color: rgba(253,224,71,.7); }
/* cincin sapuan radar (arka bercahaya berputar, hanya pada lingkaran nipis) */
.cf-hex { position: absolute; inset: -22%; border-radius: 50%; opacity: 0; animation: inSpin 2.4s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(34,211,238,.15) 75%, #67e8f9 98%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.cf-hex.h2 { inset: -38%; animation-duration: 4.2s; animation-direction: reverse;
  background: conic-gradient(from 180deg, transparent 0 70%, rgba(167,139,250,.2) 82%, #c4b5fd 98%, transparent 100%); }
.solar .cf-hex { background: conic-gradient(from 0deg, transparent 0 62%, rgba(253,224,71,.2) 75%, #fde047 98%, transparent 100%); }
.cf-lit .cf-hex { opacity: 1; transition: opacity .6s; }
.cf-meter { width: min(440px, 86vw); margin-top: 26px; display: grid; gap: 6px; text-align: center; }
.cf-meter b { font-size: clamp(36px, 9vw, 70px); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(34,211,238,.8); line-height: 1; }
.solar .cf-meter b { text-shadow: 0 0 30px rgba(253,224,71,.9); }
.solar .cs-bar i { background: linear-gradient(90deg, #f97316, #facc15, #fef08a); box-shadow: 0 0 18px #facc15; }
.cf-meter span { font-size: 11px; letter-spacing: .4em; color: #67e8f9; }
.cf-online { margin-top: 18px; font-size: clamp(18px, 4.6vw, 40px); font-weight: 900; letter-spacing: .06em; color: #fff; visibility: hidden; text-shadow: 0 0 26px rgba(34,211,238,.9); }
.solar .cf-online { text-shadow: 0 0 26px rgba(253,224,71,.95); color: #fef9c3; }
.cf-lit .cf-online { visibility: visible; }
.cf-lit .cf-online .ch { animation: inChar .5s cubic-bezier(.12,1.6,.3,1) forwards; animation-delay: calc(var(--i) * .035s); }
.in-ring.r2 { border-color: #fff; } .in-ring.r3 { border-color: var(--cy); }

/* 2 · OPERASI BERJAYA */
.cf-pre { font-size: clamp(10px, 2.2vw, 13px); letter-spacing: .45em; color: var(--gd); opacity: 0; }
.act .cf-pre { animation: inFadeUp .5s .6s forwards; }
.cf-title { margin: 12px 0 0; display: flex; flex-direction: column; align-items: center; font-size: clamp(46px, 13vw, 150px); font-weight: 900; line-height: .98; perspective: 600px; }
.cf-title .ch { background-image: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%), linear-gradient(180deg, #fffbeb, #fde047 45%, #f59e0b 80%, #b45309);
  background-size: 400% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 #78350f) drop-shadow(0 0 30px rgba(253,224,71,.65)); }
.act .cf-title .ch { animation: cfSlam3d .7s cubic-bezier(.12,1.5,.3,1) forwards, inShine 2.6s ease-in-out infinite;
  animation-delay: calc(var(--d, 0s) + var(--i) * var(--s, .05s)), calc(2.2s + var(--i) * .06s); }
@keyframes cfSlam3d { 0% { opacity: 0; transform: translateZ(400px) rotateX(-70deg) scale(2); filter: blur(12px); } 70% { opacity: 1; filter: drop-shadow(0 4px 0 #78350f) drop-shadow(0 0 30px rgba(253,224,71,.65)); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 4px 0 #78350f) drop-shadow(0 0 30px rgba(253,224,71,.65)); } }
.cf-cast { display: flex; gap: clamp(6px, 1.6vw, 14px); margin-top: 24px; }
.cf-cast img { width: clamp(46px, 8vw, 84px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid rgba(253,224,71,.8); background: #0b1630; box-shadow: 0 0 24px rgba(253,224,71,.45); opacity: 0; }
.act .cf-cast img { animation: inPop .45s cubic-bezier(.2,1.6,.4,1) forwards, cfHop .9s ease-in-out infinite; animation-delay: calc(1.7s + var(--i) * .11s), calc(2.3s + var(--i) * .13s); }
@keyframes cfHop { 50% { transform: translateY(-12px) rotate(-4deg); } }
.cf-praise { margin-top: 20px; }
/* imej latar kejayaan ikut modul — di bawah kanvas (bunga api & konfeti kekal di atas) */
.cf-bg { position: absolute; inset: 0; z-index: 0; background: #04070f center / cover no-repeat; opacity: 0; transform: scale(1.12); transition: opacity 1s ease, transform 7s cubic-bezier(.2,.6,.3,1); pointer-events: none; }
.cf-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(4,7,15,.62), rgba(4,7,15,.2) 70%), linear-gradient(to bottom, rgba(4,7,15,.35), transparent 30%, transparent 62%, rgba(4,7,15,.85)); }
.cf-win-on .cf-bg { opacity: 1; transform: scale(1); }
.has-bg.cf-win-on .in-stage::before { opacity: 0; }
.has-bg .cf-win .cf-cast { display: none; }
.has-bg .cf-win .cf-rays { opacity: .5; }
.has-bg .cf-praise, .has-bg .cf-pre { text-shadow: 0 2px 12px #000, 0 0 24px rgba(4,7,15,.9); }

/* 3 · Upacara Kenaikan Pangkat */
.cf-medal { margin-top: clamp(64px, 10vh, 96px); width: clamp(140px, 26vw, 220px); aspect-ratio: 1; perspective: 900px; position: relative; }
.cf-medal::before { content: ''; position: absolute; left: 50%; top: -38%; width: 30%; height: 44%; transform: translateX(-50%); z-index: -1;
  background: linear-gradient(90deg, #1d4ed8 0 33%, #fde047 33% 66%, #dc2626 66%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); opacity: 0; }
.cf-landed .cf-medal::before { opacity: 1; transition: opacity .3s .1s; }
.cf-medal-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; opacity: 0; }
.act .cf-medal-in { animation: cfMedalDrop 1.15s var(--land, 1.5s) cubic-bezier(.25,.75,.3,1) forwards; }
.cf-landed .cf-medal-in { animation: cfMedalIdle 3.4s ease-in-out infinite; opacity: 1; }
@keyframes cfMedalDrop { 0% { opacity: 0; transform: translateY(-75vh) rotateY(1440deg) scale(1.8); } 12% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes cfMedalIdle { 0%, 100% { transform: rotateY(-18deg); } 50% { transform: rotateY(18deg) translateY(-6px); } }
.cf-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 34% 28%, #fffbeb, #fde047 28%, #f59e0b 60%, #92400e);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.28), inset 0 0 0 13px #b45309, inset 0 -12px 24px rgba(120,53,15,.6), 0 0 70px rgba(253,224,71,.65); }
.cf-face span { font-size: clamp(54px, 11vw, 100px); font-family: system-ui; filter: drop-shadow(0 4px 6px rgba(120,53,15,.6)); }
.cf-face.back { transform: rotateY(180deg); } .cf-face.back span { font-size: clamp(60px, 12vw, 110px); color: #92400e; }
.cf-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.7) 48%, transparent 60%); background-size: 300% 100%; animation: cfGloss 2.6s ease-in-out infinite; }
@keyframes cfGloss { 0% { background-position: 120% 0; } 50%, 100% { background-position: -40% 0; } }
.cf-rankname { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: clamp(11px, 2.4vw, 14px); letter-spacing: .5em; color: #fde68a; opacity: 0; }
.cf-rankname b { font-size: clamp(24px, 6vw, 54px); letter-spacing: .06em; color: #fff; text-shadow: 0 0 30px rgba(253,224,71,.9), 0 3px 0 #92400e; }
.cf-landed .cf-rankname { animation: csStamp2 .55s .15s cubic-bezier(.15,1.8,.35,1) forwards; }
@keyframes csStamp2 { from { opacity: 0; transform: scale(3); filter: blur(8px); } to { opacity: 1; transform: none; } }
.cf-tiers { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cf-tier { width: clamp(64px, 12vw, 104px); padding: 8px 4px; border-radius: 12px; border: 1px solid rgba(148,163,184,.25); background: rgba(8,16,36,.7); opacity: .35; filter: grayscale(1); transition: all .35s; }
.cf-tier span { display: block; font-size: clamp(20px, 4vw, 28px); font-family: system-ui; }
.cf-tier small { display: block; margin-top: 4px; font: 800 clamp(7.5px, 1.4vw, 9.5px) system-ui, sans-serif; letter-spacing: .04em; color: #cbd5e1; }
.cf-tier.on { opacity: 1; filter: none; border-color: rgba(253,224,71,.6); box-shadow: 0 0 18px rgba(253,224,71,.35); animation: cfTierPop .4s cubic-bezier(.2,1.8,.4,1); }
.cf-tier.on.me { background: linear-gradient(160deg, rgba(253,224,71,.3), rgba(245,158,11,.15)); box-shadow: 0 0 34px rgba(253,224,71,.7); transform: translateY(-6px) scale(1.08); }
@keyframes cfTierPop { from { transform: scale(1.5); } }

/* 4 · Laporan Ejen */
.cf-sum { overflow-y: auto; justify-content: flex-start; padding-top: max(60px, 7vh); }
.cf-card { position: relative; margin: auto 0; width: min(720px, 94vw); padding: clamp(18px, 3vw, 30px); padding-top: clamp(40px, 6vw, 52px); border-radius: 22px; background: linear-gradient(160deg, rgba(14,23,48,.94), rgba(30,16,70,.9)); border: 1px solid rgba(253,224,71,.4); box-shadow: 0 0 70px rgba(253,224,71,.18), inset 0 0 40px rgba(34,211,238,.06); }
.act .cf-card { animation: inStamp .6s cubic-bezier(.15,1.5,.35,1) both; }
.cf-card-medal { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-family: system-ui;
  background: radial-gradient(circle at 34% 28%, #fffbeb, #fde047 30%, #f59e0b 65%, #92400e); box-shadow: inset 0 0 0 4px #b45309, 0 0 30px rgba(253,224,71,.7); }
.cf-card-k { font-size: clamp(9.5px, 2vw, 12px); letter-spacing: .35em; color: var(--gd); }
.cf-name { margin: 8px 0 0; font: 900 clamp(20px, 4.4vw, 34px) system-ui, sans-serif; color: #fff; }
.cf-rank { display: inline-flex; margin-top: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(253,224,71,.12); border: 1px solid rgba(253,224,71,.5); }
.cf-rank b { font-size: clamp(11px, 2.6vw, 15px); letter-spacing: .12em; color: #fde68a; }
.cf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.cf-stats div { padding: 14px 8px; border-radius: 14px; background: rgba(4,10,24,.6); border: 1px solid rgba(56,189,248,.22); opacity: 0; }
.act .cf-stats div { animation: inStamp .45s cubic-bezier(.15,1.7,.35,1) forwards; animation-delay: calc(.5s + var(--i) * .22s); }
.cf-stats b { display: block; font-size: clamp(22px, 5vw, 36px); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(34,211,238,.5); }
.cf-stats span { display: block; margin-top: 4px; font: 700 clamp(10px, 2vw, 12px) system-ui, sans-serif; color: #93c5fd; }
.cf-xp { margin-top: 16px; text-align: left; opacity: 0; }
.act .cf-xp { animation: inFadeUp .5s 1.8s forwards; }
.cf-xp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font: 800 clamp(9.5px, 2vw, 11.5px) system-ui, sans-serif; letter-spacing: .14em; color: #fde68a; }
.cf-xp-top b { font-family: 'Orbitron', system-ui, sans-serif; color: #0b0f1a; background: var(--gd); padding: 2px 8px; border-radius: 5px; margin-right: 6px; }
.cf-xp-top em { font-style: normal; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.cf-xp-bar { margin-top: 6px; height: 12px; border-radius: 8px; background: rgba(253,224,71,.1); border: 1px solid rgba(253,224,71,.3); overflow: hidden; }
.cf-xp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f59e0b, #fde047, #fffbeb); box-shadow: 0 0 16px #fde047; transition: width 1.1s cubic-bezier(.4,0,.2,1); }
.cf-go { opacity: 0; margin-top: 18px; }
.act .cf-go { animation: inFadeUp .5s 3.1s forwards, inPulse 1.6s 3.6s ease-in-out infinite, inGrad 3s linear infinite; }

@media (max-width: 640px) {
  .in-vs-side { width: 100%; height: 56%; padding: 0 20px; }
  .in-vs-side.l { top: 0; bottom: auto; clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%); justify-content: flex-start; padding-top: calc(7vh + 60px); }
  .in-vs-side.r { top: auto; bottom: 0; clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%); justify-content: flex-end; padding-bottom: calc(7vh + 40px); }
  @keyframes inFromL { from { transform: translateY(-100%); } }
  @keyframes inFromR { from { transform: translateY(100%); } }
  .in-vs-name { max-width: 100%; }
  .in-vs-cast figure { width: 52px; }
  .in-vs-villain { width: 96px; }
  .in-vs-slash { transform: translateX(-50%) rotate(78deg) scaleY(0); }
  @keyframes inSlash { to { transform: translateX(-50%) rotate(78deg) scaleY(1); } }
  .in-integ { font-size: 9px; }
  .cf-stats { grid-template-columns: repeat(2, 1fr); }
  .cf-tiers { gap: 5px; }
  .cf-tier { width: 62px; }
  .cf-cast img { width: 50px; }
  .cs-wrap { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .intro *, .intro *::before, .intro *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .in-stage::before { animation: none !important; }
}
