/* Panggung 1080x1920 untuk TikTok LIVE potret, gaya grafis dokumenter.
   Sudut tajam, garis rambut, angka monospace, satu warna sinyal.
   Konten penting di antara y 160 (UI atas TikTok) dan y 1150: di HP, kolom komentar
   mulai sekitar 60% tinggi layar. Klasemen mini di bawahnya boleh tertutup sebagian. */
:root {
  --ink: #050608;
  --paper: #f2efe8;
  --muted: #9c978c;
  --hair: rgba(var(--paper-rgb), 0.2);
  --hair-strong: rgba(var(--paper-rgb), 0.42);
  --signal: #ff5b23;
  --plum: #7d1d4f;
  --pink: #e2508f;
  --lime: #c6ff3d;
  --ink-rgb: 5, 6, 8;
  --paper-rgb: 242, 239, 232;
  --cond: 'Archivo', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--ink); }
body { color: var(--paper); font-family: var(--cond); }

#stage { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; overflow: hidden; transform-origin: 0 0; background: var(--ink); color: var(--paper); }
/* Warna teks dihitung ulang di dalam #spot dan #look supaya ikut palet gelapnya sendiri di tema terang. */
#spot, #look { color: var(--paper); }
#backdrop { position: absolute; inset: 0; overflow: hidden; }
.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim.heavy {
  background: linear-gradient(to bottom, rgba(var(--ink-rgb), 0.55) 0, rgba(var(--ink-rgb), 0.9) 260px, rgba(var(--ink-rgb), 0.86) 900px,
    rgba(var(--ink-rgb), 0.55) 1300px, rgba(var(--ink-rgb), 0.2) 1600px, rgba(var(--ink-rgb), 0.5) 1920px);
}
.scrim.light {
  background: linear-gradient(to bottom, rgba(var(--ink-rgb), 0.6) 0, rgba(var(--ink-rgb), 0.7) 300px, rgba(var(--ink-rgb), 0.35) 760px,
    rgba(var(--ink-rgb), 0.1) 1200px, rgba(var(--ink-rgb), 0.45) 1920px);
}
.grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Lapisan scene berdiri sendiri: hiasan skin (stiker, selotip) tidak bisa naik ke atas sorotan gift. */
#scene { position: absolute; inset: 0; isolation: isolate; }
.ui { position: absolute; left: 64px; right: 64px; }
.mono { font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.user { text-transform: none; letter-spacing: 0.02em; }

/* Avatar: foto profil, atau inisial kalau tidak ada / gagal dimuat */
.av { position: relative; flex: none; border-radius: 50%; overflow: hidden; background: #2a2723; border: 2px solid var(--hair-strong); display: grid; place-items: center; }
.av .ini { font-family: var(--mono); font-weight: 700; color: var(--paper); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Kepala */
.head { top: 160px; display: flex; justify-content: space-between; align-items: flex-end; }
.mark { font-size: 34px; font-weight: 850; font-stretch: 72%; letter-spacing: 0.16em; line-height: 1; }
.mark small { display: block; margin-top: 10px; font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.qcount { font-family: var(--mono); font-size: 17px; color: var(--muted); text-align: right; letter-spacing: 0.14em; }
.qcount b { display: block; font-family: var(--cond); font-size: 64px; font-weight: 800; font-stretch: 70%; letter-spacing: 0; color: var(--paper); line-height: 0.9; }
.qcount b span { color: var(--muted); font-weight: 500; }

/* Penggaris waktu: tiap ruas = 1 detik */
.ruler { top: 248px; height: 40px; display: flex; align-items: center; gap: 18px; }
.ticks { flex: 1; height: 10px; display: grid; gap: 6px; }
.ticks i { display: block; background: var(--hair); }
.ticks i.on { background: var(--paper); }
.ticks.low i.on { background: var(--signal); }
.clock { font-family: var(--mono); font-size: 36px; font-weight: 700; letter-spacing: 0.02em; min-width: 132px; text-align: right; }
.clock.low { color: var(--signal); }

.cat { top: 300px; display: flex; gap: 22px; align-items: center; font-size: 19px; color: var(--muted); }
.cat .sq { width: 12px; height: 12px; background: var(--signal); }
.cat b { color: var(--paper); font-weight: 600; }
.tapgoal { top: 296px; left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 15px; line-height: 1; color: var(--muted); transform-origin: 100% 50%; }
.tapgoal .tbar { display: flex; align-items: center; gap: 12px; }
.tapgoal b { color: var(--paper); font-size: 22px; }
.tseg { display: grid; grid-template-columns: repeat(10, 14px); gap: 3px; height: 14px; }
.tseg i { background: var(--hair); }
.tseg i.on { background: var(--paper); }
.tapgoal.near, .tapgoal.near b { color: var(--signal); }
.tapgoal.near .tseg i.on { background: var(--signal); }

/* Soal */
.question { top: 344px; height: 290px; font-size: 70px; line-height: 1.04; font-weight: 760; font-stretch: 84%; text-wrap: balance; }
.question .w { display: inline-block; }

/* Opsi: baris dipisah garis rambut, tanpa kartu. Penonton mengetik teksnya. */
.options { top: 650px; list-style: none; border-top: 1px solid var(--hair-strong); }
.opt { position: relative; height: 100px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--hair-strong); }
.options.two .opt { height: 140px; }
.opt .mk { width: 14px; height: 14px; flex: none; border: 2px solid var(--paper); margin-left: 4px; }
.opt .t { flex: 1; min-width: 0; font-size: 50px; font-weight: 640; font-stretch: 90%; white-space: nowrap; overflow: hidden; }
.options.two .opt .t { font-size: 64px; }
.opt .p { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.opt .bar { position: absolute; left: 0; bottom: -1px; height: 5px; width: 100%; background: var(--hair-strong); transform-origin: 0 50%; }
.opt.removed .t { text-decoration: line-through; text-decoration-thickness: 3px; }
.opt.removed > * { opacity: 0.25; }
.opt .ph { display: none; }
.opt.locked .t { visibility: hidden; }
.options .opt.locked .ph { display: block; position: absolute; left: 46px; top: 50%; width: 46%; height: 26px; margin-top: -13px;
  background: repeating-linear-gradient(-45deg, var(--hair-strong) 0 6px, transparent 6px 14px); }
.opt.locked .mk { border-color: var(--muted); }
.opt.opened .t { color: var(--signal); }
.optlock { position: absolute; right: 0; top: 50%; transform-origin: 100% 50%; margin-top: -58px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  padding: 18px 24px; background: var(--ink); border: 1px solid var(--signal); font-size: 20px; color: var(--muted); pointer-events: none; }
.optlock b { font-size: 34px; color: var(--signal); }
.options.compact .optlock { margin-top: -50px; padding: 12px 18px; }

/* Kaki */
.foot { top: 1068px; display: flex; justify-content: space-between; align-items: center; font-size: 19px; color: var(--muted); }
.foot b { color: var(--paper); }
.count { display: flex; align-items: center; gap: 16px; }
.count b { font-size: 26px; }
.stack { display: flex; }
.stack .av { width: 44px; height: 44px; margin-left: -12px; border-color: var(--ink); }
.stack .av:first-child { margin-left: 0; }
.stack .av .ini { font-size: 16px; }

.assist { top: 1120px; display: flex; align-items: center; gap: 18px; font-size: 16px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(10, 22px); gap: 4px; height: 14px; }
.seg i { background: var(--hair); }
.seg i.on { background: var(--paper); }
.assist.done { color: var(--paper); }
.assist.done .seg i { background: var(--signal); }

/* ---- Buka jawaban ---- */
.rev-note { top: 248px; height: 40px; display: flex; align-items: center; gap: 16px; font-size: 19px; color: var(--muted); }
.rev-note .line { flex: 1; height: 1px; background: var(--hair-strong); transform-origin: 0 50%; }
.qsmall { top: 344px; font-size: 36px; line-height: 1.15; font-weight: 600; font-stretch: 88%; color: var(--muted); }
.mapbox { top: 430px; height: 270px; border: 1px solid var(--hair-strong); background: rgba(var(--ink-rgb), 0.6); overflow: hidden; }
.mapbox canvas { display: block; width: 100%; height: 100%; }
.mapbox .coord { position: absolute; left: 18px; bottom: 14px; font-size: 16px; color: var(--muted); }
.mapbox .tag { position: absolute; right: 18px; top: 14px; font-size: 16px; color: var(--muted); }

.fakta { top: 718px; display: grid; grid-template-columns: auto 1fr; gap: 0 26px; }
.fakta.solo { top: 440px; }
.fakta .lbl { grid-row: span 2; align-self: start; padding: 10px 14px; background: var(--signal); color: var(--ink); font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: 0.16em; }
.fakta p { font-size: 40px; line-height: 1.16; font-weight: 600; font-stretch: 90%; }
.fakta.solo p { font-size: 54px; line-height: 1.1; }
.fakta .src { margin-top: 14px; font-size: 16px; color: var(--muted); }

.options.compact { top: 860px; }
.options.compact .opt { height: 64px; gap: 22px; padding-right: 20px; }
.options.compact.two .opt { height: 110px; }
.options.compact .t { font-size: 36px; }
.options.compact.two .t { font-size: 48px; }
.options.compact .p { font-size: 26px; }
.opt.dim { opacity: 0.4; }
.opt .win-bg { position: absolute; inset: 0; background: var(--paper); transform-origin: 0 50%; transform: scaleX(0); }
.opt > :not(.win-bg):not(.bar) { position: relative; }
.opt.win .bar { background: var(--signal); height: 6px; }
.opt .stamp { font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: 0.16em; padding: 6px 10px; background: var(--signal); color: var(--ink); }

.stats { top: 1132px; display: flex; justify-content: space-between; font-size: 18px; color: var(--muted); }
.stats b { color: var(--paper); }

/* ---- Judul halaman (pemenang, papan, podium, klasemen, cara main) ---- */
.btitle { top: 250px; font-size: 92px; font-weight: 820; font-stretch: 68%; line-height: 0.95; text-transform: uppercase; white-space: nowrap; }
.btitle em { font-style: normal; color: var(--signal); }
.bsub { top: 352px; font-size: 19px; color: var(--muted); }

/* ---- Tercepat benar ---- */
.cards { top: 404px; display: flex; flex-direction: column; gap: 16px; }
.card { height: 136px; display: flex; align-items: center; gap: 26px; padding: 0 26px 0 22px; background: rgba(var(--ink-rgb), 0.72); border: 1px solid var(--hair-strong); }
.card:first-child { border-color: var(--paper); border-left: 6px solid var(--signal); }
.card .r { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--muted); width: 44px; }
.card:first-child .r { color: var(--signal); }
.card .av { width: 96px; height: 96px; }
.card .av .ini { font-size: 34px; }
.card .who { flex: 1; min-width: 0; }
.card .n { font-size: 50px; font-weight: 720; font-stretch: 88%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { margin-top: 6px; font-size: 16px; color: var(--muted); display: flex; gap: 14px; }
.card .streak { color: var(--ink); background: var(--signal); padding: 2px 8px; font-weight: 700; }
.card .pts { font-family: var(--mono); font-size: 40px; font-weight: 700; }

.wall-title { top: 878px; display: flex; justify-content: space-between; font-size: 18px; color: var(--muted); border-top: 1px solid var(--hair-strong); padding-top: 18px; }
.wall-title b { color: var(--paper); }
.wall { top: 930px; display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 18px; }
.wall .cell { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.wall .av { width: 72px; height: 72px; }
.wall .av .ini { font-size: 24px; }
.wall .nm { font-family: var(--mono); font-size: 14px; color: var(--muted); max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Papan skor / klasemen ---- */
.board { top: 404px; list-style: none; border-top: 1px solid var(--hair-strong); }
.board li { height: 118px; display: grid; grid-template-columns: 72px 92px 1fr auto 150px; align-items: center; border-bottom: 1px solid var(--hair-strong); }
.board .r { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--muted); }
.board .av { width: 72px; height: 72px; }
.board .av .ini { font-size: 26px; }
.board .n { font-size: 50px; font-weight: 680; font-stretch: 88%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .c { font-family: var(--mono); font-size: 17px; color: var(--muted); padding-right: 24px; }
.board .s { font-family: var(--mono); font-size: 36px; font-weight: 700; text-align: right; }
.board li:first-child .r { color: var(--signal); }
.board { overflow: hidden; }
.board .scan { position: absolute; left: 0; right: 0; top: -140px; height: calc(100% + 140px); pointer-events: none; }
.board .scan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 140px;
  background: linear-gradient(to bottom, rgba(var(--paper-rgb), 0), rgba(var(--paper-rgb), 0.07), rgba(var(--paper-rgb), 0)); }
.board.dense li { height: 68px; grid-template-columns: 64px 70px 1fr auto 140px; }
.board.dense .av { width: 52px; height: 52px; }
.board.dense .av .ini { font-size: 20px; }
.board.dense .n { font-size: 38px; }
.board.dense .s { font-size: 30px; }
.next { top: 1090px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--hair-strong); padding-top: 22px; font-size: 19px; color: var(--muted); }
.next b { font-size: 40px; color: var(--paper); }
.next .countdown { position: absolute; left: 0; right: 0; top: -3px; height: 6px; background: var(--paper); transform-origin: 0 50%; }
.pcol .halo { position: relative; }
.pcol .halo .ring { position: absolute; inset: 0; border: 6px solid var(--signal); border-radius: 50%; opacity: 0; }
.empty { top: 430px; font-size: 44px; font-weight: 600; font-stretch: 90%; color: var(--muted); }

/* ---- Podium ---- */
.podium { top: 400px; height: 700px; }
.pcol { position: absolute; bottom: 0; width: 300px; display: flex; flex-direction: column; align-items: center; }
.pcol .av { border-width: 3px; }
.pcol.first .av { border-color: var(--signal); }
.pcol .n { margin-top: 18px; font-size: 40px; font-weight: 720; font-stretch: 86%; max-width: 290px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcol.first .n { font-size: 50px; }
.pcol .s { margin-top: 6px; font-family: var(--mono); font-size: 24px; color: var(--muted); }
.pcol .ped { margin-top: 22px; width: 100%; border: 1px solid var(--hair-strong); border-bottom: none; background: rgba(var(--paper-rgb), 0.06); display: flex; justify-content: center; transform-origin: 50% 100%; }
.pcol.first .ped { border-top: 6px solid var(--signal); background: rgba(var(--paper-rgb), 0.1); }
.pcol .ped span { font-size: 150px; font-weight: 850; font-stretch: 62%; line-height: 1.1; color: var(--hair-strong); }
.pcol.first .ped span { color: var(--paper); }
.pcol .crown { margin-bottom: 14px; font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: 0.16em; padding: 6px 12px; background: var(--signal); color: var(--ink); }
.podium-base { top: 1100px; height: 1px; background: var(--hair-strong); }

/* ---- Cara main ---- */
.steps { top: 400px; list-style: none; border-top: 1px solid var(--hair-strong); }
.steps li { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair-strong); }
.steps .no { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--signal); }
.steps .tx { font-size: 37px; line-height: 1.12; font-weight: 600; font-stretch: 90%; }
.steps .tx b { font-weight: 800; }

/* ---- Pembuka soal ---- */
.intro-no { top: 440px; font-size: 22px; color: var(--muted); }
.intro-cat { top: 490px; font-size: 150px; line-height: 0.9; font-weight: 850; font-stretch: 62%; text-transform: uppercase; }
.intro-meta { top: 800px; display: flex; gap: 22px; align-items: center; font-size: 24px; }
.intro-meta .d { padding: 8px 14px; border: 2px solid var(--paper); font-weight: 700; }
.intro-meta .d.sulit { border-color: var(--signal); color: var(--signal); }
.intro-line { top: 880px; height: 2px; background: var(--paper); transform-origin: 0 50%; }


#conn { position: absolute; left: 64px; top: 140px; font-size: 14px; color: var(--muted); }

/* ---- Soal tebak lokasi: peta besar, pilihan padat ---- */
.question.short { height: 80px; font-size: 50px; }
.mapbox.shapeq { top: 434px; height: 350px; }
.options.compact.shapeq { top: 798px; }
.clock.frozen { color: var(--muted); }

.boost { display: inline-block; padding: 2px 8px; background: var(--signal); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }

/* ---- Voting tema ---- */
.votes { top: 404px; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.vrow { position: relative; height: 140px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border: 1px solid var(--hair-strong); background: rgba(var(--ink-rgb), 0.6); overflow: hidden; }
.vrow .vbar { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(var(--paper-rgb), 0.1); transform-origin: 0 50%; transform: scaleX(0); }
.vrow.lead { border-color: var(--paper); border-left: 6px solid var(--signal); }
.vrow.lead .vbar { background: rgba(255, 91, 35, 0.22); }
.vrow .vw { position: relative; display: flex; flex-direction: column; gap: 6px; }
.vrow .kw { font-size: 64px; font-weight: 820; font-stretch: 70%; line-height: 1; }
.vrow .lb { font-size: 17px; color: var(--muted); }
.vrow .vn { position: relative; font-family: var(--mono); font-size: 48px; font-weight: 700; }

/* ---- Zona bawah: klasemen live mini (di bawah area kuis, di atas kolom komentar) ---- */
#lower { position: absolute; left: 0; right: 0; top: 1160px; height: 640px; pointer-events: none; }
.lower { position: absolute; inset: 0; padding: 0 64px; background: linear-gradient(to bottom, rgba(var(--ink-rgb), 0) 0, rgba(var(--ink-rgb), 0.6) 30px, rgba(var(--ink-rgb), 0.6) 600px, rgba(var(--ink-rgb), 0) 640px); }
.lsec.round { margin-top: 14px; }
.lsec.round .chips5 { padding-top: 10px; }
.lsec.round .c5n { font-size: 14px; }
.lsec.round .c5s { font-size: 16px; }
.lsec.round .lower-head b { color: var(--signal); }
.lower-head { display: flex; justify-content: space-between; align-items: center; height: 44px; padding-top: 12px; font-size: 16px; color: var(--muted); border-bottom: 1px solid var(--hair); }
.lower-head b { color: var(--paper); }
.lower-toast { max-width: 560px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding-top: 14px; }
.chip5 { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.c5top { position: relative; display: flex; align-items: center; gap: 8px; }
.c5r { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--muted); }
.chip5:first-child .c5r { color: var(--signal); }
.c5top .boost { position: absolute; right: -14px; top: -6px; font-size: 13px; padding: 1px 5px; }
.c5n { font-family: var(--mono); font-size: 16px; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c5s { font-family: var(--mono); font-size: 18px; font-weight: 700; }

/* ---- Daftar boost gift di zona bawah: kartu berjalan ke kiri, berulang ---- */
.lsec.gifts { margin-top: 14px; }
.gstrip { position: relative; margin-top: 12px; height: 96px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.gtrack { position: absolute; left: 0; top: 0; display: flex; gap: 14px; }
.gcard { position: relative; flex: none; width: 358px; height: 96px; display: flex; align-items: center; gap: 18px; padding: 0 18px 0 16px;
  background: rgba(var(--ink-rgb), 0.85); border: 1px solid var(--hair-strong); overflow: hidden; }
.gcard.besar { border-color: var(--paper); border-left: 6px solid var(--signal); }
.gstripes { position: absolute; inset: 0; opacity: 0.1; background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, transparent 14px 28px); background-size: 56px 56px; }
.gx { position: relative; flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; }
.gx b { font-size: 62px; font-weight: 850; font-stretch: 62%; line-height: 0.85; color: var(--signal); }
.gx span { margin-top: 4px; font-size: 12px; color: var(--muted); }
.gtx { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gt { font-size: 28px; font-weight: 800; font-stretch: 72%; line-height: 1; }
.ge { font-size: 18px; font-weight: 600; font-stretch: 90%; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp { font-size: 13px; color: var(--paper); white-space: nowrap; }

/* ---- Pendukung live di halaman klasemen ---- */
.fans { top: 1170px; }
.fans-title { font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.fans-title b { color: var(--paper); }
.fans-row { display: flex; gap: 18px; }
.fans-row .fan { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; }
.fans-row .av { border-color: var(--signal); }
.fans-row .nm { font-family: var(--mono); font-size: 13px; color: var(--muted); max-width: 92px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Sorotan gift: kartu kertas. Foto kotak penuh, nama besar, tab boost menonjol di atas,
   keuntungan khusus menggantung di bawah. Slot bawah (y 1150-1440), tidak menutupi soal;
   hanya kartu hero sultan yang mengambil tengah layar sebentar (timer kuis berhenti). ---- */
#spot { position: absolute; inset: 0; pointer-events: none; }
.gc { position: absolute; left: 64px; right: 64px; }
.gc-face { position: relative; height: 100%; display: flex; background: var(--paper); color: var(--ink); overflow: hidden; }
.gc-ph { position: relative; flex: none; height: 100%; aspect-ratio: 1; overflow: hidden; background: #2a2723; display: grid; place-items: center; }
.gc-ph .ini { font-family: var(--mono); font-size: 64px; font-weight: 700; color: var(--paper); }
.gc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gc-ph.has-img .ini { visibility: hidden; }
.gc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 30px; }
.gc-lbl { font-size: 17px; font-weight: 700; color: #6b665c; }
.gc-name { margin-top: 6px; font-size: 76px; font-weight: 850; font-stretch: 64%; line-height: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-gift { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 20px; color: #3d3a34; transform-origin: 0 50%; white-space: nowrap; }
.gc-life { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--ink); transform-origin: 0 50%; }
.gc-tab { position: absolute; right: 0; bottom: 100%; display: flex; align-items: flex-end; gap: 14px; padding: 10px 22px 8px;
  background: var(--signal); color: var(--ink); transform-origin: 100% 100%; }
.gc-tab b { font-size: 80px; font-weight: 850; font-stretch: 60%; line-height: 0.8; }
.gc-tab span { padding-bottom: 6px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.gc-perk { position: absolute; right: 0; top: 100%; padding: 8px 14px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--paper); border-top: 0; font-size: 17px; font-weight: 700; }
.gc.kecil { top: 1244px; height: 150px; }
.gc.sedang { top: 1238px; height: 186px; }
.gc.besar { top: 1250px; height: 200px; }
.gc.besar .gc-lbl { color: var(--signal); }
.gc.besar .gc-tab b { font-size: 100px; }

/* Takeover sultan: poster esports. Blok warna penuh layar, huruf raksasa dibengkokkan,
   foto duotone bertepi sobek, coretan garis, segitiga, glitch. Dikunci ke ketukan musik. */
.st { position: absolute; inset: 0; overflow: hidden; }
.st-layer { position: absolute; inset: 0; }
.st-tri i { position: absolute; width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent;
  border-top: 26px solid var(--signal); }
.st-scrib { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; }
.st-scrib path { fill: none; stroke: var(--lime); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.st-line { position: absolute; left: 56px; right: 56px; font-family: var(--cond); font-weight: 900; font-stretch: 62%;
  line-height: 0.8; text-transform: uppercase; white-space: nowrap; transform-origin: 50% 50%; }
.st-s1 { font-size: 640px; color: var(--ink); }
.st-s1.a { top: 280px; }
.st-s1.b { top: 790px; text-align: right; }
.st-s2 { color: var(--signal); text-transform: none; }
.st-photo { position: absolute; left: 650px; top: 1430px; width: 360px; height: 430px; padding: 16px; background: var(--paper); transform-origin: 50% 50%; }
.st-photo .in { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--pink); }
.st-photo .gc-ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; background: transparent; }
.st-photo .gc-ph .ini { font-size: 260px; color: var(--ink); mix-blend-mode: multiply; }
.st-photo .gc-ph img { filter: grayscale(1) contrast(1.35) brightness(1.08); mix-blend-mode: multiply; }
.st-photo .dots { position: absolute; inset: 0; opacity: 0.45; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(var(--ink-rgb), 0.7) 1.8px, transparent 2.3px); background-size: 10px 10px; }
.st-big { position: absolute; left: 56px; right: 56px; top: 470px; text-align: center; font-weight: 900; font-stretch: 58%;
  line-height: 0.8; white-space: nowrap; transform-origin: 50% 50%; }
.st-s3 { font-size: 900px; color: var(--signal); }
.st-s4 { font-size: 560px; color: var(--ink); }
.st-strip { position: absolute; left: 64px; right: 64px; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: var(--ink); color: var(--paper); font-size: 24px; }
.st-strip b { font-family: var(--cond); font-size: 56px; font-weight: 900; font-stretch: 62%; letter-spacing: 0; color: var(--signal); }
.st-strip b { max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-s3s { top: 1260px; }
.st-s4s { top: 1180px; }
.st-s4l { top: 1300px; background: var(--paper); color: var(--ink); }
.st-s4l b { color: var(--ink); }
.st-pre { position: absolute; left: 64px; right: 64px; top: 860px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-size: 26px; color: var(--muted); }
.st-pre .user { align-self: stretch; text-align: center; white-space: nowrap; overflow: hidden; font-family: var(--cond); font-size: 90px; font-weight: 900; font-stretch: 62%; letter-spacing: 0; color: var(--paper); }
.st-pre b { color: var(--signal); }
/* Gema: kembaran garis di belakang kata raksasa; warnanya mengikuti latar adegan */
.st .echo { color: transparent; -webkit-text-stroke: 4px var(--paper); }
.st[data-scene="2"] .echo { -webkit-text-stroke-color: var(--pink); }
.st[data-scene="3"] .echo { -webkit-text-stroke-color: var(--signal); opacity: 0.8; }
.st-who { position: absolute; left: 56px; top: 1470px; width: 540px; display: flex; flex-direction: column; gap: 12px; font-size: 24px; color: var(--ink); }
.st-who .user { font-family: var(--cond); font-size: 76px; font-weight: 900; font-stretch: 62%; letter-spacing: 0; line-height: 0.95;
  white-space: nowrap; overflow: hidden; }
.st-who b { align-self: flex-start; padding: 8px 12px; background: var(--ink); color: var(--paper); font-size: 22px; }
.st-cap { position: absolute; left: 56px; display: flex; flex-direction: column; gap: 8px; font-size: 24px; color: var(--paper); }
.st-cap b { font-size: 30px; color: var(--signal); }
.st-bars i { position: absolute; left: -100px; right: -100px; opacity: 0; }
.st-top { position: absolute; left: 64px; right: 64px; top: 248px; height: 44px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 14px; background: var(--ink); font-size: 20px; color: var(--paper); }
.st-top b { font-size: 34px; color: var(--signal); }

/* ---- Kartu topik seperti kartu remi (layar vote) ---- */
.vhand { top: 420px; height: 400px; }
.pcard { position: absolute; top: 0; width: 222px; height: 330px; border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); transform-origin: 50% 100%; }
.pcard .pc-frame { position: absolute; inset: 10px; border: 1px solid rgba(var(--ink-rgb), 0.22); border-radius: 8px; }
.pcard .pc-corner { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: color-mix(in srgb, var(--tc) 70%, #000); }
.pcard .pc-corner b { font-size: 38px; font-weight: 850; font-stretch: 70%; line-height: 0.9; }
.pcard .pc-corner.tl { left: 18px; top: 16px; }
.pcard .pc-corner.br { right: 18px; bottom: 16px; transform: rotate(180deg); }
.pcard .pc-mini { width: 24px; height: 24px; }
.pcard .pc-mini svg, .pcard .pc-icon svg { width: 100%; height: 100%; display: block; }
.pcard .pc-icon { position: absolute; left: 50%; top: 64px; width: 112px; height: 112px; margin-left: -56px;
  color: color-mix(in srgb, var(--tc) 70%, #000); }
.pcard .pc-kw { position: absolute; left: 14px; right: 14px; top: 196px; text-align: center; font-size: 44px; font-weight: 850;
  font-stretch: 66%; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pc-lb { position: absolute; left: 14px; right: 14px; top: 246px; text-align: center; font-size: 12px; color: #6b665c; }
.pcard .pc-tag { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); padding: 5px 10px; background: var(--signal);
  color: var(--ink); font-size: 14px; font-weight: 700; opacity: 0; }
.pcard.lead { box-shadow: 0 0 0 4px var(--signal), 0 26px 50px rgba(0, 0, 0, 0.6); }
.pcard.lead .pc-tag { opacity: 1; }
.vtally { top: 850px; height: 120px; }
.vt-col { position: absolute; top: 0; width: 222px; display: flex; flex-direction: column; align-items: center; }
.vt-n { font-family: var(--mono); font-size: 56px; font-weight: 700; line-height: 1; }
.vt-track { margin-top: 14px; width: 100%; height: 8px; background: var(--hair); }
.vt-bar { margin-top: -8px; width: 100%; height: 8px; background: var(--tc); transform-origin: 0 50%; transform: scaleX(0); }

/* ---- Lencana topik di layar cara main: kartu mini bermuka kertas ---- */
.topic-badge { top: 258px; left: auto; right: 64px; max-width: 420px; display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 14px;
  border-radius: 10px; background: var(--paper); color: var(--ink); transform-origin: 100% 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.topic-badge .vicon { width: 56px; height: 56px; color: color-mix(in srgb, var(--tc) 70%, #000); }
.topic-badge .vicon svg { width: 100%; height: 100%; display: block; }
.topic-badge .tb-text { display: flex; flex-direction: column; gap: 4px; }
.topic-badge .tb-text span { font-size: 12px; color: #6b665c; }
.topic-badge .tb-text b { font-size: 32px; font-weight: 850; font-stretch: 68%; line-height: 1; max-width: 300px; }

/* ---- Tebak bendera ---- */
.mapbox.flagq { display: grid; place-items: center; background: rgba(var(--ink-rgb), 0.75); }
.mapbox.flagq .flag { height: 270px; width: auto; max-width: 90%; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); outline: 1px solid var(--hair-strong); }

/* ---- Strip sultan: hak pilih topik ---- */
.st-s3p { top: 1380px; background: var(--paper); color: var(--ink); }
.st-s3p b { font-size: 48px; }

/* ---- Info bonus pendukung (layar jeda dan pilih topik): tangga lima tingkat ----
   Makin ke kanan makin tinggi dan makin panas warnanya. Hanya di jeda, nadanya informatif. */
.perks { height: 218px; }
.pk-top { display: flex; justify-content: space-between; align-items: baseline; height: 30px; font-size: 15px; color: var(--muted); }
.pk-top b { color: var(--paper); font-size: 17px; }
.pk-stair { position: relative; height: 188px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; overflow: hidden; }
.pk-step { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 0 14px 12px;
  transform-origin: 50% 100%; overflow: hidden; border: 1px solid var(--hair-strong); background: rgba(var(--ink-rgb), 0.82); }
.pk-coin { position: absolute; left: 14px; top: 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
.pk-x { font-size: 72px; font-weight: 850; font-stretch: 60%; line-height: 0.82; transform-origin: 0 100%; }
.pk-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; transform-origin: 0 50%; }
.pk-step.s2 { background: rgba(var(--paper-rgb), 0.12); }
.pk-step.s3 { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pk-step.s3 .pk-coin { color: rgba(var(--ink-rgb), 0.6); }
.pk-step.s4 { background: var(--signal); color: #050608; border-color: var(--signal); }
.pk-step.s4 .pk-coin { color: rgba(5, 6, 8, 0.65); }
.pk-step.s5 { background: var(--signal); color: #050608; border: 3px solid var(--paper); }
.pk-step.s5::before { content: ""; position: absolute; inset: 0; opacity: 0.16;
  background: repeating-linear-gradient(-45deg, #050608 0 10px, transparent 10px 22px); }
.pk-step.s5 .pk-coin { color: rgba(5, 6, 8, 0.7); }
.pk-step.s5 .pk-tag { align-self: flex-start; padding: 3px 7px; background: #050608; color: var(--signal); }
.pk-step > * { position: relative; }
/* Label koin ikut mengalir di atas angka (bukan absolut): beri jarak supaya tidak menempel. */
.pk-step .pk-coin { margin-bottom: 10px; }
.pk-glint { position: absolute; top: -20px; bottom: -20px; left: 0; width: 120px; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); }

/* ---- Vote: hak pilih topik pengirim gift sultan ---- */
.pick-note { top: 984px; height: 86px; display: flex; align-items: center; gap: 16px; padding: 0 18px 0 0;
  background: var(--paper); color: var(--ink); overflow: hidden; }
.pick-note .pn-tag { align-self: stretch; display: flex; align-items: center; padding: 0 16px; background: var(--signal); color: #050608;
  font-size: 16px; font-weight: 700; letter-spacing: 0.14em; }
.pick-note .av { border-color: var(--ink); }
.pick-note .pn-tx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pick-note .pn-tx b { font-size: 38px; font-weight: 850; font-stretch: 66%; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-note .pn-tx span { font-size: 14px; color: rgba(var(--ink-rgb), 0.7); white-space: nowrap; }

/* ---- Topik pilihan sultan: kartu dibalik, dibanting, dicap ---- */
.pk-table { top: 420px; height: 640px; }
.pk-table .pcard { top: 270px; }
.pcard.back, .pcard .pc-back { background-color: #050608; border: 3px solid #f2efe8;
  background-image: repeating-linear-gradient(45deg, rgba(242, 239, 232, 0.1) 0 8px, transparent 8px 18px); }
.pcard .pc-back, .pcard .pc-front { position: absolute; inset: 0; border-radius: 14px; }
.pcard .pc-back .pc-frame, .pcard.back .pc-frame { border-color: var(--signal); }
.pcard.chosen { z-index: 3; }
.pk-rays { position: absolute; left: 50%; top: 345px; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tc) 55%, transparent) 0 8deg, transparent 8deg 22deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 18%, transparent 100%); mask-image: radial-gradient(closest-side, #000 18%, transparent 100%); }
.pk-stamp { position: absolute; left: 50%; top: 520px; z-index: 5; display: flex; align-items: center; gap: 16px;
  padding: 14px 26px 14px 14px; margin-left: -300px; width: 600px; background: #050608; border: 5px solid var(--signal);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transform-origin: 50% 50%; }
.pk-stamp .av { border-color: var(--signal); }
.pk-stamp .ps-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pk-stamp .ps-tx span { font-size: 16px; font-weight: 700; color: var(--signal); }
.pk-stamp .ps-tx b { font-size: 54px; font-weight: 850; font-stretch: 64%; line-height: 1; white-space: nowrap; overflow: hidden; color: #f2efe8; }

/* ---- Ganti tema tiap kelipatan like: tiga balok diagonal + angka tap tap ---- */
#look { position: absolute; inset: 0; pointer-events: none; }
.lk { position: absolute; inset: 0; visibility: hidden; }
.lk-band { position: absolute; inset: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.lk-band.b3 { background: #050608; }
.lk-band.b2 { background: #f2efe8; }
.lk-band.b1 { background: #ff5b23; }
.lk-mid { position: absolute; left: 0; right: 0; top: 560px; display: flex; flex-direction: column; align-items: center; }
.lk-num { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 330px; font-weight: 900; font-stretch: 58%;
  line-height: 0.82; color: #050608; letter-spacing: -0.01em; transform-origin: 50% 50%; }
.lk-num.echo { color: transparent; -webkit-text-stroke: 4px #f2efe8; }
.lk-tap { margin-top: 300px; padding: 6px 28px; background: #050608; color: #f2efe8; font-size: 150px; font-weight: 900; font-stretch: 58%; line-height: 0.95; }
.lk-strip { margin-top: 26px; display: flex; align-items: center; gap: 18px; padding: 16px 26px; background: #f2efe8; color: #050608; font-size: 26px; font-weight: 700; }
.lk-strip .lk-from { color: #6b665c; text-decoration: line-through; text-decoration-thickness: 3px; }
.lk-strip .lk-arrow { font-size: 30px; }
.lk-strip b { font-family: var(--cond); font-size: 46px; font-weight: 900; font-stretch: 62%; letter-spacing: 0; color: #ff5b23; }

/* ---- Tema terang (setiap kelipatan ganjil 10.000 like) ----
   Variabel warna dibalik: --ink jadi latar krem terang, --paper jadi tinta gelap. Turunan warna
   (--hair) ikut ditulis ulang karena nilainya dihitung di tempat variabel itu dideklarasikan. */
#stage.terang {
  --ink: #f4f0e7;
  --paper: #111215;
  --muted: #5e594f;
  --signal: #f04a12;
  --ink-rgb: 244, 240, 231;
  --paper-rgb: 17, 18, 21;
  --hair: rgba(17, 18, 21, 0.18);
  --hair-strong: rgba(17, 18, 21, 0.38);
}
#stage.terang .grain { opacity: 0.05; mix-blend-mode: multiply; }
#stage.terang .av { background: #d9d2c4; }
#stage.terang .mapbox { background: rgba(5, 6, 8, 0.8); }
/* Kartu topik, lencana, dan catatan hak sultan: kertas putih bersih supaya menonjol di latar krem */
#stage.terang .pcard, #stage.terang .topic-badge, #stage.terang .pick-note { --paper: #ffffff; --ink: #050608; --ink-rgb: 5, 6, 8; }
#stage.terang .pcard { box-shadow: 0 0 0 1px rgba(5, 6, 8, 0.12), 0 18px 40px rgba(60, 50, 30, 0.28); }
#stage.terang .pcard.lead { box-shadow: 0 0 0 4px var(--signal), 0 26px 50px rgba(60, 50, 30, 0.35); }
/* Sorotan gift dan sapuan ganti tema tetap memakai palet gelap aslinya */
#stage.terang #spot, #stage.terang #look {
  --ink: #050608;
  --paper: #f2efe8;
  --muted: #9c978c;
  --signal: #ff5b23;
  --ink-rgb: 5, 6, 8;
  --paper-rgb: 242, 239, 232;
  --hair: rgba(242, 239, 232, 0.2);
  --hair-strong: rgba(242, 239, 232, 0.42);
  color: var(--paper);
}
