* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: #0a0a0f;
  color: #f2f2f5;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

#app { min-height: 100vh; display: flex; flex-direction: column; padding: 18px 24px 12px; }

/* ---------- Header: banner atas model contoh Mr Yonz ----------
   HANYA teks berjalan + mahkota + bendera. TIDAK ADA label tetap
   PILIHAN/SUARA — keduanya adalah bagian dari teks berjalan (pill ungu di
   dalam ticker): screenshot contoh membekukan ticker di tengah jalan
   sehingga kelihatan seperti label tetap. */
header { display: flex; flex-direction: column; gap: 8px; padding: 6px 4px 10px; }
.top-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #1d1d2b, #12121c);
  border: 2px solid #3a3a48; border-radius: 12px;
  padding: 7px 12px; overflow: hidden;
}
.banner-crown { width: 26px; height: 26px; flex-shrink: 0; }

/* Teks berjalan (ticker): kanan ke kiri, ~18 detik per putaran. Track berisi
   3 salinan teks yang sama; animasi menggeser -1/3 lebar track (= 1 salinan)
   sehingga loop-nya mulus tanpa lompatan. PILIHAN dan SUARA adalah pill ungu
   DI DALAM teks berjalan (bukan label tetap). */
.subtitle.ticker {
  flex: 1; min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 18s linear infinite;
}
.ticker-text { padding-right: 80px; display: inline-flex; align-items: center; }
.tick-pill {
  display: inline-block; vertical-align: middle;
  background: #7c3aed; color: #fff; font-weight: 900; font-size: 16px;
  letter-spacing: 1px; padding: 4px 10px; border-radius: 7px; margin: 0 10px;
  flex-shrink: 0;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

/* Baris 2 model contoh: donasi kiri, kotak tanggal kanan (tanpa countdown). */
.header-mid { display: flex; justify-content: space-between; align-items: stretch; gap: 12px; }

.stat-box {
  background: #17171f; border: 2px solid #2c2c38; border-radius: 12px;
  padding: 10px 20px; text-align: center; min-width: 130px;
}
.stat-label { display: block; font-size: 13px; letter-spacing: 2px; color: #9a9aa8; text-transform: uppercase; }
.stat-value { display: block; font-size: 38px; font-weight: 900; line-height: 1.1; color: #ffffff; font-variant-numeric: tabular-nums; }
.daily-box { border-color: #f5c518; min-width: 170px; display: flex; flex-direction: column; justify-content: center; }
.daily-box .stat-value { color: #f5c518; }
.daily-value { font-size: 26px; letter-spacing: 1px; white-space: nowrap; }
.countdown-value { font-size: 34px; letter-spacing: 2px; color: #fff; white-space: nowrap; }

/* Bendera Merah Putih yang berkibar pelan (di ujung banner atas) */
.flag-wrap { flex-shrink: 0; }
.flag-cloth {
  width: 56px; height: 37px; border-radius: 4px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 4px 14px rgba(0, 0, 0, 0.45);
  transform-origin: left center;
  animation: none;
}
.flag-red { height: 50%; background: #e62117; }
.flag-white { height: 50%; background: #ffffff; }
.flag-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: none;
}
@keyframes flagWave {
  0%, 100% { transform: perspective(220px) rotateY(-7deg) skewY(0deg); }
  50% { transform: perspective(220px) rotateY(7deg) skewY(1.5deg); }
}
@keyframes flagShine {
  0%, 100% { background-position: 130% 0; }
  50% { background-position: -30% 0; }
}

.hidden { display: none !important; }

/* ---------- Bar donasi kecil (kiri, mengikuti contoh Mr Yonz) ----------
   Teks + bar tipis yang KELIHATAN (track abu-abu gelap) + link Saweria.
   Isi (fill) tetap 0% — tidak ada total donasi yang bisa diverifikasi,
   jadi tidak ada angka yang dikarang. */
#donasiBar {
  flex: 0 1 260px; min-width: 0;
  text-align: left;
}
.donasi-top {
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  color: #ffffff; text-transform: uppercase; white-space: nowrap;
}
.donasi-track {
  height: 8px; margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px;
  background: #2a2a35; overflow: hidden;
}
.donasi-fill { height: 100%; width: 0%; background: #f5c518; }
.donasi-url { margin-top: 6px; font-size: 14px; font-weight: 700; color: #ffffff; }

/* ---------- Main layout: SATU kolom, hanya grid kartu ----------
   Umpan SUARA SAH + KOMENTAR MASUK DIHAPUS (keputusan final Deni):
   tidak ada lagi sidebar/feed di HTML maupun di CSS ini. */
main { display: flex; flex-direction: column; margin-top: 18px; flex: 1; min-height: 0; }

/* ---------- Kartu peserta model contoh: foto besar, lalu seg-bar, nama,
   jumlah + persentase di baris bawah. Nomor badge kiri atas, WIN kanan atas
   (WIN di atas angka, seperti contoh). Border warna kandidat.
   Urutan kartu = urutan suara (auto-sort di app.js): juara #1 selalu kiri atas.
   Foto dikecilkan DIKIT (gap lebih lega + strip bawah lebih tinggi) supaya
   ada ruang lebih; wajah tetap besar dan jelas (foto close-up). */
#board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 360px; gap: 14px; flex: 1; min-height: 0; }
.candidate:nth-child(1), .candidate:nth-child(2) { grid-column: span 3; }
.candidate:nth-child(n+3) { grid-column: span 2; }

.candidate {
  position: relative; overflow: hidden; cursor: pointer;
  background: #17171f; border: 3px solid var(--cand, #2c2c38); border-radius: 14px;
  display: flex; flex-direction: column;
  box-shadow: 0 0 8px var(--cand, #2c2c38);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.candidate:hover { box-shadow: 0 0 18px rgba(255, 255, 255, 0.18); }
.candidate.flash { animation: flash 0.6s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.9); } 100% { box-shadow: none; } }
.candidate.leader { box-shadow: 0 0 0 1px #f5c518, 0 0 22px rgba(245, 197, 24, 0.25); }
/* Efek rebut posisi (Deni 21:36 WIB, diperkuat 21:52 WIB: "Enggak ada
   tegang nya" — efeknya harus dramatis). Naik: kartu bergoyang + kilat
   hijau terang 2 detik. Turun: kilat merah redup 1.2 detik. */
.candidate.rank-up { animation: rankUpFlash 2s ease; }
.candidate.rank-down { animation: rankDownFlash 1.2s ease; }
@keyframes rankUpFlash {
  0% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 1), 0 0 40px rgba(34, 197, 94, 0.9); transform: scale(1.08) rotate(-1.5deg); }
  15% { transform: scale(1.08) rotate(1.5deg); }
  30% { transform: scale(1.08) rotate(-1.5deg); }
  45% { transform: scale(1.06) rotate(1deg); }
  60% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.6), 0 0 24px rgba(34, 197, 94, 0.5); transform: scale(1.03) rotate(0deg); }
  100% { box-shadow: 0 0 8px var(--cand, #2c2c38); transform: scale(1); }
}
@keyframes rankDownFlash {
  0% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.9), 0 0 22px rgba(239, 68, 68, 0.6); transform: scale(0.97); }
  60% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45), 0 0 12px rgba(239, 68, 68, 0.3); transform: scale(0.99); }
  100% { box-shadow: 0 0 8px var(--cand, #2c2c38); transform: scale(1); }
}

.cand-num {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  background: var(--cand, #2c2c38); color: #fff; font-weight: 900;
  font-size: 26px; line-height: 1; padding: 6px 11px; border-radius: 9px;
  font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.win-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; line-height: 1.05;
  background: rgba(0, 0, 0, 0.72); border: 1px solid rgba(245, 197, 24, 0.65);
  padding: 3px 8px; border-radius: 8px; white-space: nowrap;
}
/* Lingkaran muter di bawah nomor peserta (model contoh Mr Yonz): cincin
   warna kandidat yang berputar terus, supaya kartu terasa hidup. */
.spin-ring {
  position: absolute; top: 52px; left: 8px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--cand, #2c2c38);
  border-top-color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 10px var(--cand, #2c2c38);
  animation: none;
}
@keyframes spinring { to { transform: rotate(360deg); } }
.spin-icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: #fff; font-size: 13px; font-weight: 900; line-height: 1;
  animation: none;
}
@keyframes spinring-rev { to { transform: rotate(-360deg); } }
.win-label { font-size: 9px; font-weight: 900; letter-spacing: 1px; color: #f5c518; }
.win-num { font-size: 14px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }

.avatar {
  position: relative; flex: 1; min-height: 0; display: block;
  overflow: hidden;
}
.avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%; z-index: 1;
  animation: kenburns 10s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -2%); }
}
.avatar .avatar-initials {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 900; color: #fff;
}
/* Overlay di bawah foto (model contoh Mr Yonz): seg-bar + nama menempel di
   bawah foto dengan gradien gelap supaya terbaca; hanya jumlah + persen yang
   duduk di strip bawah foto. Foto jadi jauh lebih tinggi, wajah utuh. */
.avatar-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: block; text-align: center;
  padding: 16px 8px 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.82) 100%);
}
.avatar-overlay .seg-bar { margin-bottom: 3px; }
.cand-info {
  padding: 2px 10px 6px; text-align: center; flex-shrink: 0;
}
.seg-bar { display: flex; gap: 3px; margin-bottom: 6px; }
.seg-bar i { flex: 1; height: 10px; border-radius: 5px; background: #4a4a58; }
.seg-bar i.on { background: var(--cand, #f5c518); }
.cand-name {
  display: block;
  font-size: 24px; font-weight: 900; letter-spacing: 1px; color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.cand-stats { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; margin-top: 2px; }
.cand-count {
  font-size: 30px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.cand-pct {
  font-size: 26px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Kartu tengah/bawah (lebih kecil): huruf ikut mengecil. */
.candidate:nth-child(n+3) .cand-num { font-size: 20px; padding: 5px 9px; top: 6px; left: 6px; }
.candidate:nth-child(n+3) .spin-ring { top: 42px; left: 6px; width: 20px; height: 20px; border-width: 2px; }
.candidate:nth-child(n+3) .spin-icon { font-size: 10px; }
.candidate:nth-child(n+3) .win-badge { top: 6px; right: 6px; padding: 2px 6px; }
.candidate:nth-child(n+3) .win-label { font-size: 8px; }
.candidate:nth-child(n+3) .win-num { font-size: 12px; }
.candidate:nth-child(n+3) .cand-name { font-size: 17px; }
.candidate:nth-child(n+3) .cand-count { font-size: 24px; }
.candidate:nth-child(n+3) .cand-pct { font-size: 21px; }
.candidate:nth-child(n+3) .seg-bar i { height: 8px; }

/* ---------- Control bar ---------- */
#controlBar {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px;
  margin-top: 18px; padding: 14px 16px;
  background: #121218; border: 2px solid #2c2c38; border-radius: 14px;
}
.control-group { display: flex; flex-direction: column; gap: 5px; }
.control-group label { font-size: 13px; color: #9a9aa8; letter-spacing: 0.5px; }
.control-group input {
  background: #0a0a0f; color: #fff; border: 2px solid #3a3a48; border-radius: 8px;
  padding: 9px 12px; font-size: 17px; width: 150px; outline: none;
}
.control-group input:focus { border-color: #f5c518; }
.control-group input.error { border-color: #ff5252; animation: shake 0.3s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
#voteNumber { width: 90px; text-align: center; font-weight: 900; font-size: 20px; }

.btn {
  background: #26262f; color: #fff; border: 2px solid #3a3a48; border-radius: 9px;
  padding: 10px 16px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn:hover { border-color: #f5c518; }
.btn-primary { background: #e62117; border-color: #e62117; }
.btn-primary:hover { border-color: #ff6b61; }
.btn-danger { background: #3a1512; border-color: #7f1d1d; color: #fca5a5; }
.btn-ghost { background: transparent; }
.btn-toggle { opacity: 0.65; }
.btn-toggle.active { opacity: 1; border-color: #4ade80; color: #4ade80; }
.divider { width: 2px; align-self: stretch; background: #2c2c38; }

#obsHint { margin-top: 10px; font-size: 13px; color: #7a7a88; text-align: center; }
#obsHint code { background: #1c1c26; padding: 2px 6px; border-radius: 5px; color: #c9c9d4; }

/* Mode bersih untuk OBS: sembunyikan panel kontrol dan petunjuk */
body.clean #controlBar, body.clean #obsHint { display: none; }
body.clean main { flex: 1; }

/* Layar kecil tetap terbaca */
@media (max-width: 1100px) {
  #board { grid-template-rows: 320px; }
}

/* ---------- HP dulu (<=480px): grid 2+3+3 model contoh ---------- */
@media (max-width: 480px) {
  #app { padding: 12px 12px 10px; }

  header { gap: 8px; padding-bottom: 8px; }
  .top-banner { gap: 8px; padding: 6px 10px; }
  .banner-crown { width: 22px; height: 22px; }
  .subtitle.ticker { font-size: 20px; }
  .tick-pill { font-size: 14px; padding: 3px 8px; margin: 0 8px; }
  .flag-cloth { width: 40px; height: 27px; }
  .header-mid { gap: 8px; }
  #donasiBar { flex: 1 1 auto; }
  .donasi-top { font-size: 11px; }
  .donasi-url { font-size: 13px; }
  .daily-box { min-width: 140px; padding: 6px 10px; }
  .daily-value { font-size: 18px; }
  .stat-label { font-size: 11px; letter-spacing: 1px; }
  .stat-value { font-size: 30px; }

  main { margin-top: 12px; }

  #board { grid-template-rows: 300px; gap: 7px; }
  .cand-num { font-size: 22px; padding: 5px 9px; }
  .candidate:nth-child(n+3) .cand-num { font-size: 18px; padding: 4px 7px; top: 6px; left: 6px; }
  .win-label { font-size: 8px; }
  .win-num { font-size: 12px; }
  .candidate:nth-child(n+3) .win-label { font-size: 7px; }
  .candidate:nth-child(n+3) .win-num { font-size: 11px; }
  .cand-info { padding: 2px 8px 6px; }
  .seg-bar { margin-bottom: 4px; }
  .seg-bar i { height: 8px; }
  .candidate:nth-child(n+3) .seg-bar i { height: 7px; }
  .cand-name { font-size: 22px; }
  .candidate:nth-child(n+3) .cand-name { font-size: 16px; }
  .cand-count { font-size: 26px; }
  .candidate:nth-child(n+3) .cand-count { font-size: 20px; }
  .cand-pct { font-size: 23px; }
  .candidate:nth-child(n+3) .cand-pct { font-size: 18px; }

  /* Panel kontrol: semua kontrol selebar layar, tombol setinggi jempol */
  #controlBar { gap: 10px; padding: 12px; }
  .control-group { flex: 1 1 45%; }
  .control-group label { font-size: 13px; }
  .control-group input { width: 100%; padding: 12px; font-size: 18px; min-height: 48px; }
  #voteNumber { width: 100%; font-size: 22px; }
  .btn { min-height: 48px; padding: 12px 18px; font-size: 16px; }
  #sendVoteBtn { flex: 1 1 100%; }
  .divider { display: none; }

  #obsHint { font-size: 12px; }
}

/* EFEK HIDUP: animasi dibiarkan menyala supaya video tidak kelihatan diam.
   Semua animasi berbasis transform/opacity (murah untuk Chromium VM) dan
   hanya pada elemen kecil: foto (ken-burns), kilat kartu, bendera. */

/* STREAMER COPY ONLY: sembunyikan kursor mouse di layar live. */
* { cursor: none !important; }

/* ---------- STREAMER COPY ONLY: layout vertikal 9:16 (?vertikal=1) ---------- */
/* ---------- VERTIKAL COMPACT v2: isi papan HANYA di 65% ATAS frame ----------
   Masalah v1: grid pakai baris fr sehingga kartu MEMBESAR mengisi seluruh
   960px; baris bawah (05/07/08) jatuh di zona chat YouTube (~35% bawah
   layar HP Deni) dan tertutup komentar ("Masa komentar numpang di peserta").
   Perbaikan: grid pakai baris px TETAP (atas 180, tengah/bawah 130) dan
   main TIDAK flex:1, sehingga konten berakhir ~596px dan ~364px bawah
   dibiarkan KOSONG gelap khusus area chat. #app TETAP 960px (scrollHeight
   960 → zoom live tetap ~1, tidak membesar). Proporsi ikut contoh Mr Yonz:
   atas 2 kartu lebih besar, tengah/bawah 3 kartu lebih kecil. */
body.vertical #app { padding: 40px 32px 0; overflow-x: hidden; max-width: 540px; margin: 0 auto; height: 960px; min-height: 0; }
body.vertical header { gap: 6px; padding: 0 0 6px; }
body.vertical .top-banner { gap: 8px; padding: 5px 10px; border-radius: 10px; }
body.vertical .banner-crown { width: 20px; height: 20px; }
body.vertical .subtitle.ticker { font-size: 21px; }
body.vertical .tick-pill { font-size: 14px; padding: 3px 8px; margin: 0 8px; }
body.vertical .flag-cloth { width: 36px; height: 24px; }
body.vertical .header-mid { gap: 8px; }
body.vertical #donasiBar { flex: 1 1 auto; min-width: 0; }
body.vertical .donasi-top { font-size: 11px; }
body.vertical .donasi-url { font-size: 13px; }
body.vertical .donasi-track { height: 7px; }
body.vertical .daily-box { flex: 0 0 auto; min-width: 140px; padding: 5px 10px; }
body.vertical .daily-box .stat-label { font-size: 10px; }
body.vertical .daily-value { font-size: 21px; }
body.vertical .countdown-value { font-size: 28px; }
/* main TIDAK flex:1 — grid tinggi tetap, sisa main kosong (zona chat). */
body.vertical main { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; margin-top: 8px; }
/* Grid 2+3+3, baris px tetap: atas 180px, tengah/bawah 130px, gap 8px.
   Total grid 456px; konten berakhir ~596px, ~364px bawah kosong. */
body.vertical #board { flex: 0 0 auto; min-height: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 280px; gap: 8px; }
body.vertical .candidate:nth-child(1), body.vertical .candidate:nth-child(2) { grid-column: span 3; }
body.vertical .candidate:nth-child(n+3) { grid-column: span 2; }
body.vertical .cand-num { font-size: 28px; padding: 6px 10px; }
body.vertical .candidate:nth-child(n+3) .cand-num { font-size: 19px; padding: 4px 8px; top: 6px; left: 6px; }
body.vertical .win-label { font-size: 8px; }
body.vertical .win-num { font-size: 13px; }
body.vertical .candidate:nth-child(n+3) .win-label { font-size: 7px; }
body.vertical .candidate:nth-child(n+3) .win-num { font-size: 11px; }
body.vertical .avatar-overlay { padding: 18px 8px 5px; }
body.vertical .candidate:nth-child(n+3) .avatar-overlay { padding: 12px 6px 4px; }
body.vertical .cand-info { padding: 2px 10px 4px; }
body.vertical .candidate:nth-child(n+3) .cand-info { padding: 2px 8px 4px; }
body.vertical .seg-bar { margin-bottom: 2px; gap: 2px; }
body.vertical .seg-bar i { height: 4px; }
body.vertical .candidate:nth-child(n+3) .seg-bar i { height: 3px; }
body.vertical .avatar img { object-position: center 50%; animation: none; }
body.vertical .cand-name { font-size: 14px; line-height: 1.1; }
body.vertical .candidate:nth-child(n+3) .cand-name { font-size: 11px; line-height: 1.1; }
body.vertical .cand-count { font-size: 24px; line-height: 1.1; }
body.vertical .candidate:nth-child(n+3) .cand-count { font-size: 18px; line-height: 1.1; }
body.vertical .cand-pct { font-size: 20px; line-height: 1.1; }
body.vertical .candidate:nth-child(n+3) .cand-pct { font-size: 16px; line-height: 1.1; }
body.vertical .cand-stats { margin-top: 1px; }

/* Saweria alert overlay: iframe transparan menutupi board, hanya muncul saat ada donasi. */
#saweriaAlert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
}

/* Efek pemenang (seperti contoh Mr Yonz): overlay penuh saat ronde habis. */
.win-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.72);
}
.win-overlay.show { display: flex; animation: winfade 8s ease forwards; }
@keyframes winfade {
  0% { opacity: 0; } 5% { opacity: 1; }
  85% { opacity: 1; } 100% { opacity: 0; }
}
.win-card { text-align: center; animation: winpop 0.5s ease; }
@keyframes winpop {
  0% { transform: scale(0.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); }
}
.win-trophy { font-size: 90px; line-height: 1; filter: drop-shadow(0 0 18px rgba(245, 197, 24, 0.8)); }
.win-photo-wrap {
  width: 300px; height: 300px; margin: 8px auto; overflow: hidden;
  border-radius: 18px; border: 4px solid #f5c518;
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.55);
}
.win-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.win-title {
  font-size: 34px; font-weight: 900; letter-spacing: 2px; color: #f5c518;
  text-shadow: 0 0 16px rgba(245, 197, 24, 0.6);
}
.win-name { font-size: 44px; font-weight: 900; color: #fff; letter-spacing: 1px; }
.win-confetti {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-image:
    radial-gradient(circle, #f5c518 3px, transparent 4px),
    radial-gradient(circle, #e62117 3px, transparent 4px),
    radial-gradient(circle, #22c55e 3px, transparent 4px),
    radial-gradient(circle, #3b82f6 3px, transparent 4px),
    radial-gradient(circle, #ec4899 3px, transparent 4px);
  background-size: 90px 90px, 120px 120px, 70px 70px, 100px 100px, 80px 80px;
  background-position: 0 -40px, 30px -80px, 60px -20px, 10px -60px, 50px -100px;
  animation: winconfetti 2.2s linear infinite;
}
@keyframes winconfetti { to { background-position: 0 500px, 30px 460px, 60px 520px, 10px 480px, 50px 440px; } }
