﻿/* =====================================================================
   SKIN: HALLOWEEN NIGHT — landing page & TV leaderboard
   Untuk event berikutnya dengan tema lain, cukup buat skin baru dengan
   mengganti variabel di bawah + video teaser. Struktur halaman tetap.
   ===================================================================== */
:root {
    --m-bg: #050408;
    --m-night: #0c0716;
    --m-surface: rgba(18, 13, 30, .72);
    --m-line: rgba(155, 107, 255, .22);
    --m-text: #f3effc;
    --m-muted: #a49cbb;
    --m-slime: #8dff3a;
    --m-slime-deep: #3f9c0c;
    --m-haunt: #9b6bff;
    --m-haunt-deep: #3b1d78;
    --m-ember: #ff8a1f;
    --m-blood: #ff4d6d;
    --m-drip: 'Creepster', 'Barlow Condensed', fantasy;
    --m-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --m-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.monster {
    margin: 0;
    background: var(--m-bg);
    color: var(--m-text);
    font: 16px/1.6 var(--m-body);
    overflow-x: hidden;
}
.monster a { color: inherit; }
.monster img, .monster video { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografi ---------- */
.kicker {
    display: inline-block;
    font: 700 13px/1 var(--m-display);
    letter-spacing: .38em;
    text-transform: uppercase;
    color: #cdb6ff;
}
.section-title {
    font: 400 clamp(44px, 8vw, 84px)/.95 var(--m-drip);
    letter-spacing: .02em;
    margin: 10px 0 14px;
    color: var(--m-slime);
    text-shadow: 0 0 30px rgba(141, 255, 58, .35);
}
.section-title .alt { color: var(--m-haunt); text-shadow: 0 0 30px rgba(155, 107, 255, .45); }
.section-lead { color: var(--m-muted); max-width: 620px; margin: 0 0 34px; font-size: 17px; }
section.block { position: relative; padding: clamp(72px, 12vw, 130px) 0; }

/* ---------- Tombol ---------- */
.m-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 28px;
    font: 800 18px/1 var(--m-display); letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px; border: 1.5px solid var(--m-line);
    color: var(--m-text); background: rgba(10, 7, 18, .5);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.m-btn:hover { transform: translateY(-2px); border-color: var(--m-haunt); }
.m-btn.slime { background: var(--m-slime); color: #0b1702; border-color: var(--m-slime); box-shadow: 0 0 0 0 rgba(141, 255, 58, .5), 0 10px 40px rgba(141, 255, 58, .35); }
.m-btn.slime:hover { box-shadow: 0 0 0 6px rgba(141, 255, 58, .15), 0 16px 50px rgba(141, 255, 58, .5); }

/* ---------- Bar atas: brand + akses staff ---------- */
.m-topbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px clamp(16px, 3vw, 32px);
    padding-top: max(16px, env(safe-area-inset-top));
}
.m-brand { font: 800 20px/1 var(--m-display); letter-spacing: .2em; color: var(--m-slime); text-decoration: none; text-shadow: 0 0 16px rgba(141, 255, 58, .45); }
.staff-link {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--m-line);
    background: rgba(10, 7, 18, .6);
    backdrop-filter: blur(6px);
    color: var(--m-text);
    font: 700 13px/1 var(--m-display); letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none;
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.staff-link:hover, .staff-link:focus-visible { border-color: var(--m-slime); color: var(--m-slime); box-shadow: 0 0 20px rgba(141, 255, 58, .25); outline: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding: 90px 0 70px;
}
.hero-video {
    position: absolute; inset: 0; z-index: -3;
    width: 100%; height: 100%; object-fit: cover;
    opacity: .55;
    filter: saturate(1.15) contrast(1.05);
}
.hero::before {           /* bayangan supaya teks tetap terbaca di atas video */
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(5, 4, 8, .15), rgba(5, 4, 8, .82) 75%),
        linear-gradient(180deg, rgba(5, 4, 8, .6) 0%, transparent 25%, transparent 65%, var(--m-bg) 100%);
}
.moon {
    position: absolute; z-index: -2;
    top: max(8%, 84px); right: 10%;
    width: clamp(90px, 14vw, 180px); aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #fff 0%, #e6dcff 35%, #b49cff 70%, #7c58e0 100%);
    box-shadow: 0 0 60px 20px rgba(155, 107, 255, .45), 0 0 160px 60px rgba(155, 107, 255, .25);
    opacity: .85;
    animation: moonPulse 7s ease-in-out infinite;
}
@keyframes moonPulse { 50% { box-shadow: 0 0 80px 26px rgba(155, 107, 255, .55), 0 0 200px 80px rgba(155, 107, 255, .3); } }

.fog { position: absolute; left: -20%; right: -20%; bottom: -8%; height: 46%; z-index: -1; pointer-events: none; filter: blur(30px); opacity: .8; }
.fog i {
    position: absolute; bottom: 0; width: 60%; height: 100%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(155, 107, 255, .45), transparent 65%);
    animation: drift 26s linear infinite;
}
.fog i:nth-child(2) { left: 30%; background: radial-gradient(ellipse at center, rgba(141, 255, 58, .22), transparent 65%); animation-duration: 34s; animation-direction: reverse; }
.fog i:nth-child(3) { left: 55%; animation-duration: 40s; opacity: .7; }
@keyframes drift { from { transform: translateX(-20%); } 50% { transform: translateX(25%); } to { transform: translateX(-20%); } }

.beams { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.beams i {
    position: absolute; bottom: -10%; left: 50%;
    width: 120px; height: 130%;
    transform-origin: 50% 100%;
    background: linear-gradient(0deg, rgba(141, 255, 58, .26), transparent 75%);
    filter: blur(8px);
    animation: sweep 9s ease-in-out infinite;
}
.beams i:nth-child(1) { left: 12%; --a: -18deg; }
.beams i:nth-child(2) { left: 82%; --a: 16deg; animation-delay: -3s; background: linear-gradient(0deg, rgba(155, 107, 255, .32), transparent 75%); }
.beams i:nth-child(3) { left: 48%; --a: -6deg; animation-delay: -6s; opacity: .6; }
@keyframes sweep { 0%, 100% { transform: rotate(var(--a)); } 50% { transform: rotate(calc(var(--a) * -1)); } }

.hero-content { position: relative; z-index: 2; padding: 0 16px; }
.event-title { margin: 18px 0 6px; line-height: .86; font-weight: 400; }
.event-title .w {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto;
    font: 400 clamp(64px, 15vw, 190px)/.9 var(--m-drip);
    letter-spacing: .02em;
    color: var(--m-slime);
    background: linear-gradient(180deg, #d7ffaa 0%, var(--m-slime) 45%, var(--m-slime-deep) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(141, 255, 58, .45));
}
.event-title .w + .w {
    background: linear-gradient(180deg, #e6dbff 0%, var(--m-haunt) 50%, var(--m-haunt-deep) 100%);
    -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 0 26px rgba(155, 107, 255, .55));
}
/* tetesan lendir (diposisikan oleh JS) */
.drip {
    position: absolute; top: 78%;
    width: var(--dw, 8px); height: 0;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(180deg, var(--m-slime), var(--m-slime-deep));
    animation: drip var(--dt, 4s) cubic-bezier(.5, 0, .7, 1) var(--dd, 0s) infinite;
    box-shadow: 0 0 10px rgba(141, 255, 58, .5);
}
.w + .w .drip { background: linear-gradient(180deg, var(--m-haunt), var(--m-haunt-deep)); box-shadow: 0 0 10px rgba(155, 107, 255, .5); }
.drip::after {
    content: ""; position: absolute; left: 50%; bottom: -6px;
    width: calc(var(--dw, 8px) * 1.5); aspect-ratio: 1; border-radius: 50%;
    transform: translateX(-50%);
    background: inherit;
}
@keyframes drip {
    0% { height: 0; opacity: 1; }
    65% { height: var(--dh, 40px); opacity: 1; }
    100% { height: calc(var(--dh, 40px) + 6px); opacity: 0; }
}

.hero-meta { display: flex; justify-content: center; gap: 10px 22px; flex-wrap: wrap; font: 700 clamp(15px, 2.2vw, 20px)/1.2 var(--m-display); letter-spacing: .22em; text-transform: uppercase; color: var(--m-text); margin: 26px 0 30px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span + span::before { content: "✦"; color: var(--m-slime); margin-right: 14px; font-size: .8em; }

.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 16px); margin: 0 0 34px; }
.countdown .unit {
    min-width: clamp(68px, 15vw, 104px);
    padding: 12px 6px 10px;
    border: 1px solid var(--m-line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(155, 107, 255, .14), rgba(10, 7, 18, .65));
    backdrop-filter: blur(6px);
}
.countdown b { display: block; font: 800 clamp(34px, 7vw, 58px)/1 var(--m-display); font-variant-numeric: tabular-nums; color: var(--m-text); }
.countdown small { display: block; margin-top: 4px; font: 700 11px var(--m-display); letter-spacing: .3em; text-transform: uppercase; color: var(--m-muted); }
.countdown-label { font: 700 13px var(--m-display); letter-spacing: .4em; text-transform: uppercase; color: var(--m-muted); margin-bottom: 12px; }

.live-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 22px; margin-bottom: 30px;
    border-radius: 999px;
    border: 1.5px solid var(--m-blood);
    background: rgba(255, 77, 109, .14);
    font: 800 20px/1 var(--m-display); letter-spacing: .3em; text-transform: uppercase;
    color: #ffd1da;
    animation: flicker 3.2s infinite;
}
.live-pill::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--m-blood); box-shadow: 0 0 14px var(--m-blood); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .5; } }
@keyframes flicker { 0%, 100%, 7%, 9%, 52%, 54% { opacity: 1; } 8%, 53% { opacity: .55; } }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; font: 700 11px var(--m-display); letter-spacing: .4em; color: var(--m-muted); text-transform: uppercase; text-decoration: none; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 36px; margin: 10px auto 0; background: linear-gradient(var(--m-slime), transparent); animation: hint 2s infinite; }
@media (max-height: 760px) { .scroll-hint { display: none; } }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Kilat saat halaman dibuka */
.lightning { position: fixed; inset: 0; z-index: 100; background: #e9e0ff; pointer-events: none; opacity: 0; animation: strike 1.4s ease-out .2s 1; }
@keyframes strike { 0% { opacity: 0; } 6% { opacity: .85; } 10% { opacity: 0; } 16% { opacity: .55; } 30% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 3; overflow: hidden; background: var(--m-slime); color: #0b1702; transform: rotate(-1.6deg) scale(1.03); box-shadow: 0 0 40px rgba(141, 255, 58, .35); }
.ticker-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ticker span { padding: 14px 0; font: 800 clamp(16px, 2.4vw, 22px)/1 var(--m-display); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: "✦"; margin: 0 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   FIND YOUR FATE
   ===================================================================== */
.find-box {
    position: relative;
    display: flex; gap: 10px;
    max-width: 680px;
    padding: 8px;
    border-radius: 999px;
    border: 1.5px solid var(--m-line);
    background: rgba(18, 13, 30, .8);
    box-shadow: 0 0 0 0 rgba(141, 255, 58, 0);
    transition: box-shadow .25s, border-color .25s;
}
.find-box:focus-within { border-color: var(--m-slime); box-shadow: 0 0 0 6px rgba(141, 255, 58, .12), 0 0 50px rgba(141, 255, 58, .2); }
.find-box input {
    flex: 1; min-width: 0;
    border: 0; outline: 0; background: transparent;
    padding: 0 18px;
    color: var(--m-text);
    font: 600 18px var(--m-body);
}
.find-box input::placeholder { color: #6f6787; }
.find-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 28px; }
.fate {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--m-line);
    background:
        radial-gradient(circle at 100% 0%, rgba(155, 107, 255, .25), transparent 55%),
        var(--m-surface);
    overflow: hidden;
    animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.fate .fate-cat { font: 700 12px var(--m-display); letter-spacing: .3em; text-transform: uppercase; color: #cdb6ff; }
.fate h3 { font: 800 30px/1.05 var(--m-display); margin: 6px 0 4px; letter-spacing: .02em; text-transform: uppercase; }
.fate .fate-members { color: var(--m-muted); font-size: 14px; }
.fate .fate-wave { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 8px; }
.fate .fate-wave b { font: 400 54px/1 var(--m-drip); color: var(--m-slime); text-shadow: 0 0 22px rgba(141, 255, 58, .45); }
.fate .fate-wave span { font: 800 24px var(--m-display); letter-spacing: .06em; }
.fate .fate-mates { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--m-line); font-size: 14px; color: var(--m-muted); }
.fate .fate-mates b { color: var(--m-text); font-weight: 600; }
.fate .fate-result { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 138, 31, .12); border: 1px solid rgba(255, 138, 31, .35); }
.fate .fate-result b { font: 800 40px/1 var(--m-display); color: var(--m-ember); }
.fate-empty { color: var(--m-muted); margin-top: 22px; }

/* =====================================================================
   FLASHLIGHT — teks tersembunyi di kegelapan
   ===================================================================== */
.flashlight {
    position: relative;
    min-height: 70vh;
    display: grid; place-items: center;
    background: #000;
    overflow: hidden;
    cursor: none;
    touch-action: pan-y;
    --x: 50%; --y: 50%;
}
.flashlight .hidden-layer {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    padding: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 70%, rgba(141, 255, 58, .18), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(155, 107, 255, .3), transparent 35%),
        #0b0714;
    -webkit-mask: radial-gradient(circle 170px at var(--x) var(--y), #000 0%, rgba(0, 0, 0, .9) 45%, transparent 100%);
            mask: radial-gradient(circle 170px at var(--x) var(--y), #000 0%, rgba(0, 0, 0, .9) 45%, transparent 100%);
}
.flashlight .hidden-layer p { font: 400 clamp(48px, 10vw, 120px)/.95 var(--m-drip); color: var(--m-slime); margin: 0; text-shadow: 0 0 30px rgba(141, 255, 58, .5); }
.flashlight .hidden-layer p span { color: var(--m-haunt); }
.flashlight .eyes { position: absolute; display: flex; gap: 14px; }
.flashlight .eyes i { width: 18px; height: 10px; border-radius: 50%; background: var(--m-ember); box-shadow: 0 0 16px var(--m-ember); animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.flashlight .hint { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font: 700 12px var(--m-display); letter-spacing: .4em; text-transform: uppercase; color: #3d3550; pointer-events: none; }

/* =====================================================================
   KATEGORI — batu nisan
   ===================================================================== */
.graveyard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 34px 22px;
    align-items: end;
    padding-bottom: 30px;
    position: relative;
}
.graveyard::after { /* tanah */
    content: ""; position: absolute; left: -16px; right: -16px; bottom: 0; height: 80px; z-index: -1;
    background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(155, 107, 255, .25), transparent 70%);
}
.tomb {
    position: relative;
    min-height: 260px;
    padding: 46px 18px 26px;
    text-align: center;
    border-radius: 110px 110px 12px 12px;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .09), transparent 40%),
        linear-gradient(180deg, #3a3350 0%, #241e33 55%, #16121f 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, .55), 0 30px 50px rgba(0, 0, 0, .55);
    transform: translateY(70px);
    opacity: 0;
    transition: transform 1s cubic-bezier(.2, .9, .2, 1.15), opacity .6s ease;
}
.tomb.in { transform: none; opacity: 1; }
.tomb::before { /* retakan */
    content: ""; position: absolute; top: 12%; right: 18%; width: 22px; height: 34px;
    border-left: 2px solid rgba(0, 0, 0, .45); border-bottom: 2px solid rgba(0, 0, 0, .35);
    transform: skew(-25deg) rotate(10deg);
}
.tomb::after { /* lumut lendir */
    content: ""; position: absolute; left: 8%; right: 8%; bottom: -2px; height: 16px; border-radius: 0 0 12px 12px;
    background: linear-gradient(90deg, transparent, rgba(141, 255, 58, .55) 20%, rgba(141, 255, 58, .2) 50%, rgba(141, 255, 58, .55) 80%, transparent);
    filter: blur(4px);
}
.tomb .rip { font: 400 26px var(--m-drip); color: #6e6587; letter-spacing: .1em; }
.tomb h3 { font: 800 clamp(26px, 3vw, 32px)/1 var(--m-display); text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 10px; color: #ece6fb; text-shadow: 0 2px 0 #000, 0 0 18px rgba(155, 107, 255, .45); }
.tomb .size { font: 700 13px var(--m-display); letter-spacing: .3em; text-transform: uppercase; color: var(--m-slime); }
.tomb .souls { margin-top: 14px; color: var(--m-muted); font-size: 14px; }

/* =====================================================================
   TRIALS — station
   ===================================================================== */
.trials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; counter-reset: trial; }
.trial {
    position: relative;
    padding: 26px 22px 24px;
    border-radius: 20px;
    border: 1px solid var(--m-line);
    background: linear-gradient(160deg, rgba(155, 107, 255, .12), rgba(10, 7, 18, .7) 60%);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease;
}
.trial:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--m-slime); }
.trial .num { position: absolute; right: 14px; top: -14px; font: 400 110px/1 var(--m-drip); color: rgba(155, 107, 255, .14); pointer-events: none; }
.trial .t-name { font: 400 34px/1 var(--m-drip); color: var(--m-slime); letter-spacing: .02em; }
.trial .t-real { margin-top: 8px; font: 700 13px var(--m-display); letter-spacing: .28em; text-transform: uppercase; color: #cdb6ff; }
.trial p { color: var(--m-muted); font-size: 15px; margin: 12px 0 0; }

/* =====================================================================
   ROADMAP — jalan berlentera
   ===================================================================== */
.path { position: relative; max-width: 760px; margin: 0 auto; padding-left: 46px; }
.path::before {
    content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--m-haunt), rgba(141, 255, 58, .6), var(--m-haunt));
    box-shadow: 0 0 18px rgba(155, 107, 255, .5);
}
.stop { position: relative; padding: 14px 18px; margin-bottom: 14px; border-radius: 16px; border: 1px solid var(--m-line); background: var(--m-surface); display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; }
.stop::before { /* lentera */
    content: ""; position: absolute; left: -38px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 6px;
    background: var(--m-haunt); box-shadow: 0 0 14px var(--m-haunt), 0 0 30px rgba(155, 107, 255, .6);
}
.stop.running { border-color: var(--m-slime); }
.stop.running::before { background: var(--m-slime); box-shadow: 0 0 14px var(--m-slime), 0 0 40px var(--m-slime); animation: pulse 1.2s infinite; }
.stop.finished { opacity: .55; }
.stop.finished::before { background: #3a3350; box-shadow: none; }
.stop time { font: 800 26px/1 var(--m-display); font-variant-numeric: tabular-nums; color: var(--m-text); }
.stop .s-label { font: 800 20px/1.1 var(--m-display); text-transform: uppercase; letter-spacing: .06em; }
.stop .s-cats { grid-column: 2 / 4; color: var(--m-muted); font-size: 13px; }
.stop .s-state { font: 700 11px var(--m-display); letter-spacing: .25em; text-transform: uppercase; color: var(--m-muted); }
.stop.running .s-state { color: var(--m-slime); }

/* =====================================================================
   HALL OF MONSTERS — leaderboard
   ===================================================================== */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--m-line);
    background: transparent;
    color: var(--m-muted);
    font: 700 15px var(--m-display); letter-spacing: .16em; text-transform: uppercase;
    cursor: pointer;
}
.cat-tabs button.active { background: var(--m-haunt); border-color: var(--m-haunt); color: #fff; box-shadow: 0 0 24px rgba(155, 107, 255, .5); }
.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid var(--m-line);
    background: var(--m-surface);
    animation: rise .4s ease both;
}
.lb-row .pos { font: 800 30px/1 var(--m-display); color: var(--m-muted); text-align: center; font-variant-numeric: tabular-nums; }
.lb-row .who b { display: block; font: 800 22px/1.1 var(--m-display); text-transform: uppercase; letter-spacing: .03em; }
.lb-row .who span { color: var(--m-muted); font-size: 13px; }
.lb-row .time { text-align: right; font: 800 26px/1 var(--m-display); font-variant-numeric: tabular-nums; }
.lb-row .time small { display: block; margin-top: 4px; font: 600 12px var(--m-body); color: var(--m-muted); }
.lb-row.p1 { border-color: rgba(255, 138, 31, .7); background: linear-gradient(90deg, rgba(255, 138, 31, .22), var(--m-surface) 60%); box-shadow: 0 0 40px rgba(255, 138, 31, .18); }
.lb-row.p1 .pos { color: var(--m-ember); font-size: 38px; text-shadow: 0 0 18px rgba(255, 138, 31, .7); }
.lb-row.p2 .pos, .lb-row.p3 .pos { color: var(--m-slime); }
.lb-row.racing .time { color: var(--m-slime); }
.lb-row.out { opacity: .5; }
.lb-note { margin: 14px 0 0; font-size: 13px; color: var(--m-muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 11px var(--m-display); letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--m-line); color: var(--m-muted); }
.tag.live { color: var(--m-slime); border-color: rgba(141, 255, 58, .5); }
.tag.final { color: var(--m-ember); border-color: rgba(255, 138, 31, .5); }

/* =====================================================================
   MONSTER CARD (preview CSS)
   ===================================================================== */
.card-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.mcard-wrap { perspective: 1000px; display: grid; place-items: center; }
.mcard {
    position: relative;
    width: min(100%, 340px); aspect-ratio: 4 / 5;
    border-radius: 24px;
    padding: 26px 22px;
    background:
        radial-gradient(circle at 80% 12%, rgba(230, 220, 255, .55), rgba(155, 107, 255, .25) 22%, transparent 45%),
        linear-gradient(180deg, #170c2e, #07050c 70%);
    border: 1px solid rgba(155, 107, 255, .45);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(155, 107, 255, .25);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .15s ease-out;
    overflow: hidden;
    text-align: center;
}
.mcard::after { /* kilau hologram */
    content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35;
    background: linear-gradient(115deg, transparent 20%, rgba(141, 255, 58, .5) 40%, rgba(155, 107, 255, .6) 50%, transparent 65%);
    background-size: 250% 250%;
    background-position: var(--gx, 50%) var(--gy, 50%);
}
.mcard .mc-top { display: flex; justify-content: space-between; font: 700 11px var(--m-display); letter-spacing: .3em; color: #cdb6ff; }
.mcard .mc-title { font: 400 34px/1 var(--m-drip); color: var(--m-slime); margin: 14px 0 0; text-shadow: 0 0 18px rgba(141, 255, 58, .5); }
.mcard .mc-rank { font: 800 96px/1 var(--m-display); color: var(--m-ember); text-shadow: 0 0 30px rgba(255, 138, 31, .7); margin-top: 18px; }
.mcard .mc-cat { font: 700 14px var(--m-display); letter-spacing: .3em; text-transform: uppercase; }
.mcard .mc-name { font: 800 34px/1 var(--m-display); text-transform: uppercase; margin-top: 18px; }
.mcard .mc-time { margin: 16px auto 0; padding: 10px; width: 80%; border-radius: 14px; border: 1px solid rgba(255, 138, 31, .5); font: 800 34px/1 var(--m-display); font-variant-numeric: tabular-nums; }
.mcard .mc-foot { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; justify-content: space-between; font: 800 13px var(--m-display); letter-spacing: .2em; color: var(--m-slime); }
.wa-bubble { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: #0f2a1a; border: 1px solid rgba(37, 211, 102, .4); color: #c9f5d8; font-size: 14px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.m-footer { position: relative; padding: 90px 0 40px; text-align: center; overflow: hidden; }
.m-footer::before { content: ""; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(155, 107, 255, .35), transparent 65%); z-index: -1; }
.m-footer .big { font: 400 clamp(40px, 7vw, 76px)/1 var(--m-drip); color: var(--m-slime); }
.m-footer .big span { color: var(--m-haunt); }
.m-footer .brand { margin-top: 40px; font: 800 22px var(--m-display); letter-spacing: .4em; color: var(--m-text); }
.m-footer .tiny { margin-top: 8px; color: var(--m-muted); font-size: 13px; }

/* ---------- Animasi umum ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsif ---------- */
@media (max-width: 820px) {
    .card-stage { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .lb-row { grid-template-columns: 44px 1fr auto; padding: 12px 14px; gap: 10px; }
    .lb-row .pos { font-size: 24px; }
    .lb-row .who b { font-size: 18px; }
    .lb-row .time { font-size: 20px; }
    .find-box { border-radius: 20px; flex-direction: column; padding: 10px; }
    .find-box input { min-height: 48px; }
    .stop { grid-template-columns: 1fr auto; }
    .stop time { grid-row: 1; }
    .stop .s-cats { grid-column: 1 / 3; }
}

/* ---------- Hormati pengguna yang sensitif terhadap gerakan ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, .tomb { opacity: 1; transform: none; }
    .drip { display: none; }
    .lightning { display: none; }
}

/* =====================================================================
   TV
   ===================================================================== */
body.tv { height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.tv-head { display: flex; align-items: center; gap: 2vw; padding: 1.6vh 2.4vw; border-bottom: 1px solid var(--m-line); background: linear-gradient(180deg, rgba(155, 107, 255, .14), transparent); }
.tv-head .t-event { font: 400 4.4vh/1 var(--m-drip); color: var(--m-slime); text-shadow: 0 0 20px rgba(141, 255, 58, .45); }
.tv-head .t-cat { font: 800 4.4vh/1 var(--m-display); text-transform: uppercase; letter-spacing: .08em; }
.tv-head .t-clock { margin-left: auto; font: 800 4.4vh/1 var(--m-display); font-variant-numeric: tabular-nums; color: var(--m-muted); }
.tv-main { display: grid; grid-template-columns: 1fr 26vw; gap: 2vw; padding: 2vh 2.4vw; min-height: 0; }
.tv-lb { display: flex; flex-direction: column; gap: .9vh; min-height: 0; overflow: hidden; }
.tv-lb .lb-row { grid-template-columns: 6vw 1fr auto; padding: 1.1vh 1.6vw; border-radius: 1.6vh; }
.tv-lb .lb-row .pos { font-size: 4.2vh; }
.tv-lb .lb-row .who b { font-size: 3.4vh; }
.tv-lb .lb-row .who span { font-size: 1.9vh; }
.tv-lb .lb-row .time { font-size: 3.8vh; }
.tv-lb .lb-row .time small { font-size: 1.7vh; }
.tv-side { display: flex; flex-direction: column; gap: 1.6vh; min-height: 0; }
.tv-panel { border: 1px solid var(--m-line); border-radius: 2vh; background: var(--m-surface); padding: 2vh 1.6vw; }
.tv-panel h4 { margin: 0 0 1.2vh; font: 700 1.8vh var(--m-display); letter-spacing: .35em; text-transform: uppercase; color: #cdb6ff; }
.tv-wave { display: flex; justify-content: space-between; align-items: baseline; padding: .8vh 0; border-bottom: 1px dashed var(--m-line); }
.tv-wave:last-child { border-bottom: 0; }
.tv-wave b { font: 800 2.8vh var(--m-display); text-transform: uppercase; }
.tv-wave span { font: 800 3.2vh var(--m-display); color: var(--m-slime); font-variant-numeric: tabular-nums; }
.tv-foot { padding: 1.4vh 2.4vw; font: 700 2.2vh var(--m-display); letter-spacing: .3em; text-transform: uppercase; color: #0b1702; background: var(--m-slime); display: flex; justify-content: space-between; }
.tv-dots { display: flex; gap: .6vw; }
.tv-dots i { width: 1.2vh; height: 1.2vh; border-radius: 50%; background: rgba(11, 23, 2, .3); }
.tv-dots i.on { background: #0b1702; }
