/* ==========================================================================
   WHEEL OF NAMES — NAVY + WHITE EDITION
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

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

:root {
    --c-navy:         #283b75;
    --c-navy-dark:    #1a2850;
    --c-navy-mid:     #3a54a5;
    --c-navy-light:   #5a7bd4;
    --c-white:        #ffffff;
    --c-white-90:     rgba(255,255,255,0.90);
    --c-white-70:     rgba(255,255,255,0.70);
    --c-white-40:     rgba(255,255,255,0.40);
    --c-white-15:     rgba(255,255,255,0.15);
    --c-white-08:     rgba(255,255,255,0.08);
    --c-gold:         #f0a500;
    --c-gold-light:   #ffc740;
    --c-danger:       #e05252;
	    --c-brand: #09347a;  /* ← tambahkan ini */


    --font-body:   'Nunito', 'Segoe UI', sans-serif;
    --font-title:  var(--font-body);

    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --wheel-size:  560px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--c-navy-dark);
    color: var(--c-white-90);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════
   BACKGROUND SYSTEM — 5 LAYER
   ══════════════════════════════════════════ */
.bg-image {
    position: fixed;
    inset: -8%; width: 116%; height: 116%;
    z-index: 0;
    background: url('background1.png') center center / cover no-repeat;
    transform-origin: center center;
    animation: bgSway 22s ease-in-out infinite;
    will-change: transform;
}
@keyframes bgSway {
    0%   { transform: translate(0%,0%)      scale(1.00); }
    20%  { transform: translate(1.2%,-0.8%) scale(1.04); }
    40%  { transform: translate(-1.0%,0.6%) scale(1.02); }
    60%  { transform: translate(0.8%,-1.0%) scale(1.05); }
    80%  { transform: translate(-0.6%,0.4%) scale(1.03); }
    100% { transform: translate(0%,0%)      scale(1.00); }
}

.bg-parallax {
    position: fixed;
    inset: -12%; width: 124%; height: 124%;
    z-index: 0;
    background: url('background1.png') center center / cover no-repeat;
    opacity: 0.15;
    transform-origin: center center;
    animation: bgParallax 30s ease-in-out infinite reverse;
    will-change: transform;
    mix-blend-mode: screen;
}
@keyframes bgParallax {
    0%   { transform: translate(0%,0%)       scale(1.08); }
    25%  { transform: translate(-1.5%,1.0%)  scale(1.12); }
    50%  { transform: translate(1.2%,-0.8%)  scale(1.09); }
    75%  { transform: translate(-0.8%,0.6%)  scale(1.11); }
    100% { transform: translate(0%,0%)       scale(1.08); }
}

.bg-overlay {
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 70% at 50% 50%,
            rgba(255,255,255,0.07) 0%,
            transparent 65%),
        radial-gradient(ellipse 100% 100% at 50% 50%,
            transparent 35%,
            rgba(20,32,72,0.60) 100%),
        linear-gradient(160deg,
            rgba(20,32,72,0.55) 0%,
            rgba(40,59,117,0.25) 50%,
            rgba(20,32,72,0.55) 100%);
    animation: overlayBreath 20s ease-in-out infinite;
}
@keyframes overlayBreath {
    0%,100% { opacity: 1; }
    50%     { opacity: 0.88; }
}

.bg-shimmer {
    position: fixed; inset: 0; z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.bg-shimmer::before {
    content: '';
    position: absolute;
    top: -60%; left: -60%;
    width: 55%; height: 220%;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(255,255,255,0.03) 40%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.03) 60%,
        transparent 100%);
    animation: shimmerSweep 14s ease-in-out infinite;
    will-change: transform;
}
.bg-shimmer::after {
    content: '';
    position: absolute;
    top: -60%; left: -60%;
    width: 35%; height: 220%;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(240,165,0,0.025) 45%,
        rgba(240,165,0,0.055) 50%,
        rgba(240,165,0,0.025) 55%,
        transparent 100%);
    animation: shimmerSweep 20s ease-in-out infinite 8s;
    will-change: transform;
}
@keyframes shimmerSweep {
    0%   { transform: translateX(-20%) skewX(-8deg); opacity:0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateX(260%) skewX(-8deg); opacity:0; }
}

.bg-glow {
    position: fixed; z-index: 2; pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform, opacity;
}
.glow-1 {
    width: 600px; height: 600px; top: -180px; left: -150px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(58,84,165,0.25) 50%, transparent 70%);
    animation: orbFloat1 18s ease-in-out infinite;
}
.glow-2 {
    width: 500px; height: 500px; bottom: -120px; right: -100px;
    background: radial-gradient(circle, rgba(40,59,117,0.5) 0%, transparent 70%);
    animation: orbFloat2 22s ease-in-out infinite;
}
.glow-3 {
    width: 400px; height: 400px; top: 30%; left: 48%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(240,165,0,0.06) 50%, transparent 70%);
    animation: orbFloat3 16s ease-in-out infinite;
}
.glow-4 {
    width: 300px; height: 300px; top: 8%; right: 12%;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, rgba(90,123,212,0.15) 60%, transparent 70%);
    animation: orbFloat1 24s ease-in-out infinite 4s;
}
@keyframes orbFloat1 {
    0%,100% { transform: translate(0,0) scale(1);        opacity: .8; }
    33%     { transform: translate(30px,-40px) scale(1.1); opacity: 1;  }
    66%     { transform: translate(-20px,25px) scale(.95); opacity: .7; }
}
@keyframes orbFloat2 {
    0%,100% { transform: translate(0,0) scale(1);         opacity: .7; }
    40%     { transform: translate(-35px,-30px) scale(1.08); opacity: 1; }
    70%     { transform: translate(25px,20px) scale(.92);  opacity: .6; }
}
@keyframes orbFloat3 {
    0%,100% { transform: translate(-50%,0) scale(1);             opacity: .6; }
    50%     { transform: translate(calc(-50% + 40px),-30px) scale(1.15); opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
    .bg-image, .bg-parallax, .bg-glow, .bg-overlay { animation: none; }
    .bg-shimmer::before, .bg-shimmer::after { display: none; }
}

/* ══════════════════════════════════════════
   LAYOUT — CENTERED WHEEL ONLY
   ══════════════════════════════════════════ */
.page-wrap {
    position: relative; z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 48px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

/* ── HEADER ── */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 18px;
    margin-bottom: 28px;
    width: 100%;
background: rgba(255, 255, 255, 1);
border: 1px solid rgba(255,255,255,0.22);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute; top:0; left:0; right:0; height:2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.6) 30%,
        var(--c-gold) 50%,
        rgba(255,255,255,0.6) 70%,
        transparent);
    background-size: 200% 100%;
    animation: shimmerLine 5s linear infinite;
}
@keyframes shimmerLine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.logos-row img {
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)) brightness(1.05);
    transition: transform 0.3s var(--ease);
}
.logos-row img:hover { transform: scale(1.07) translateY(-2px); }
.logo-divider {
    width: 1px; height: 36px;
    background: var(--c-white-40);
}

.event-title-block { text-align: center; }
.event-name {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
color: var(--c-brand);
text-shadow: none;
    line-height: 1.2;
    letter-spacing: 0.04em;
}
.event-title-img {
    max-height: 80px; max-width: 500px; width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(255,255,255,0.25));
}
.event-sub {
    font-size: 0.85rem;
    color: var(--c-white-70);
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ── MAIN CONTENT: roda saja, center ── */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
}

/* ══════════════════════════════════════════
   WHEEL
   ══════════════════════════════════════════ */
.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.wheel-wrap {
    position: relative;
    width: var(--wheel-size);
    height: var(--wheel-size);
    max-width: 100%;
}

.wheel-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}
.outer-ring {
    width: calc(var(--wheel-size) + 36px);
    height: calc(var(--wheel-size) + 36px);
    border: 1.5px solid rgba(255,255,255,0.25);
    animation: ringPulse 4s ease-in-out infinite;
}
.mid-ring {
    width: calc(var(--wheel-size) + 18px);
    height: calc(var(--wheel-size) + 18px);
    border: 1px solid rgba(240,165,0,0.35);
    animation: ringPulse 4s ease-in-out infinite 2s;
}
@keyframes ringPulse {
    0%,100% { opacity:.5; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity:1;  transform: translate(-50%,-50%) scale(1.012); }
}

#wheelCanvas {
    width: 100%; height: 100%;
    border-radius: 50%;
    cursor: pointer;
    display: block;
    filter: drop-shadow(0 10px 50px rgba(20,32,72,0.7)) drop-shadow(0 0 20px rgba(255,255,255,0.1));
    transition: filter .3s;
}
#wheelCanvas:hover {
    filter: drop-shadow(0 10px 50px rgba(20,32,72,0.7)) drop-shadow(0 0 30px rgba(255,255,255,0.18)) brightness(1.04);
}

.pointer-wrap {
    position: absolute;
    top: 50%; right: -22px;
    transform: translateY(-50%);
    z-index: 10;
    filter: drop-shadow(-3px 0 10px rgba(240,165,0,0.6));
}
.pointer {
    width: 0; height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-right: 44px solid var(--c-gold);
    animation: pointerPulse 2.5s ease-in-out infinite;
}
@keyframes pointerPulse {
    0%,100% { transform: translateX(0); }
    50%      { transform: translateX(-5px); }
}

.wheel-center-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 3px solid var(--c-gold);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 20;
    color: var(--c-navy);
    box-shadow: 0 0 0 4px rgba(240,165,0,0.2), 0 4px 20px rgba(0,0,0,0.3);
    transition: all .2s var(--ease);
}
.wheel-center-btn:hover {
    transform: translate(-50%,-50%) scale(1.12);
    background: var(--c-gold-light);
    box-shadow: 0 0 0 6px rgba(240,165,0,0.3), 0 6px 28px rgba(0,0,0,0.4);
}

.spin-button {
    position: relative; overflow: hidden;
    padding: 15px 64px;
    font-size: 1.1rem; font-weight: 800;
    letter-spacing: 0.14em;
    font-family: var(--font-body);
    color: var(--c-navy-dark);
    background: linear-gradient(135deg, var(--c-white) 0%, rgba(255,255,255,0.88) 100%);
    border: none; border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(255,255,255,0.25), 0 2px 10px rgba(0,0,0,0.3);
    transition: transform .2s var(--ease-bounce), box-shadow .2s;
}
.spin-button::before {
    content: '';
    position: absolute; inset: 2px;
    border-radius: 48px;
    background: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold) 100%);
    opacity: 0;
    transition: opacity .25s;
}
.spin-button:hover::before { opacity: 1; }
.spin-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 40px rgba(255,255,255,0.3), 0 4px 20px rgba(0,0,0,0.3);
}
.spin-button:hover .spin-btn-text { color: var(--c-navy-dark); }
.spin-btn-text { position: relative; z-index: 1; }
.spin-button:active { transform: scale(.97); }
.spin-button:disabled {
    background: rgba(255,255,255,0.12);
    color: var(--c-white-40);
    cursor: not-allowed;
    box-shadow: none; transform: none;
}
.spin-button:disabled::before { display: none; }
.spin-btn-shine {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: btnShine 3.5s ease-in-out infinite;
    border-radius: 50px;
}
.spin-button:disabled .spin-btn-shine { display: none; }
@keyframes btnShine {
    0%,100% { background-position: 200% 0; }
    50%      { background-position: -200% 0; }
}

.hint-text {
    font-size: 0.8rem;
    color: var(--c-white-70);
    text-align: center;
    letter-spacing: .03em;
}

/* ══════════════════════════════════════════
   FAB GROUP — Floating Action Buttons
   ══════════════════════════════════════════ */
.fab-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 4px;
}

.fab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--c-white-90);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .22s var(--ease-bounce);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
    letter-spacing: 0.03em;
}
.fab-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.fab-btn:active { transform: scale(.97); }

.fab-participants:hover {
    background: rgba(90,123,212,0.3);
    border-color: rgba(90,123,212,0.6);
}
.fab-winners:hover {
    background: rgba(240,165,0,0.2);
    border-color: rgba(240,165,0,0.5);
}

.fab-label {
    font-size: 0.82rem;
}

.fab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: rgba(255,255,255,0.25);
    color: var(--c-white);
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    transition: transform .2s var(--ease-bounce);
}
.fab-btn:hover .fab-count { transform: scale(1.15); }
.fab-count-gold {
    background: rgba(240,165,0,0.35);
    color: var(--c-gold-light);
}

/* ══════════════════════════════════════════
   DRAWER / POPUP PANEL
   ══════════════════════════════════════════ */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(10,18,50,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: drawerFadeIn .22s var(--ease);
}
.drawer-overlay.visible {
    display: flex;
}
@keyframes drawerFadeIn {
    from { opacity:0; }
    to   { opacity:1; }
}

.drawer-panel {
    background: rgba(20, 32, 72, 0.96);
    border: 1px solid rgba(255,255,255,0.18);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
    animation: drawerSlideUp .3s var(--ease-bounce);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}
@keyframes drawerSlideUp {
    from { transform: translateY(60px); opacity:0; }
    to   { transform: translateY(0); opacity:1; }
}

/* Top handle bar */
.drawer-panel::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
    position: relative;
}
.drawer-header::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.25) 30%,
        var(--c-gold) 50%,
        rgba(255,255,255,0.25) 70%,
        transparent);
}

.drawer-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-white-90);
    letter-spacing: .07em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.08);
    color: var(--c-white-70);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .18s var(--ease);
    flex-shrink: 0;
}
.drawer-close:hover {
    background: rgba(255,255,255,0.18);
    color: var(--c-white);
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.4);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.drawer-body::-webkit-scrollbar { width: 3px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* ══════════════════════════════════════════
   PANEL SHARED COMPONENTS
   ══════════════════════════════════════════ */
.count-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 5px;
    background: rgba(255,255,255,0.25);
    color: var(--c-white);
    border-radius: 20px;
    font-size: 0.7rem; font-weight: 700;
}
.count-badge-gold {
    background: rgba(240,165,0,0.3);
    color: var(--c-gold-light);
}

.btn-clear {
    font-size: 0.68rem;
    color: rgba(255,120,120,0.85);
    background: none;
    border: 1px solid rgba(255,100,100,0.25);
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all .2s;
}
.btn-clear:hover { background: rgba(224,82,82,0.15); border-color: var(--c-danger); color: #ff9090; }

/* Input row */
.input-row {
    display: flex; gap: 8px;
}
#nameInput {
    flex: 1;
    padding: 9px 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: var(--c-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
#nameInput::placeholder { color: var(--c-white-40); }
#nameInput:focus {
    border-color: rgba(255,255,255,0.55);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.16);
}
.btn-add {
    width: 38px; height: 38px;
    border-radius: 8px; border: none;
    background: rgba(255,255,255,0.20);
    color: var(--c-white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .2s, transform .15s var(--ease-bounce);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-add:hover { background: rgba(255,255,255,0.35); transform: scale(1.08); }

.error-msg {
    font-size: 0.72rem;
    color: #ff9090;
    min-height: 16px;
}

/* Daftar nama */
.names-list {
    display: flex; flex-direction: column; gap: 5px;
}

.empty-state {
    text-align: center; padding: 18px 0;
    color: var(--c-white-40);
}
.empty-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.empty-state p { font-size: 0.78rem; }

.name-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    transition: all .18s var(--ease);
    animation: itemIn .2s var(--ease-bounce);
}
@keyframes itemIn {
    from { opacity:0; transform: translateY(-4px) scale(.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}
.name-item:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.25);
    transform: translateX(2px);
}
.name-num {
    font-size: 0.65rem; color: var(--c-white-40);
    min-width: 16px; text-align: right; font-weight: 600;
}
.name-text {
    flex: 1; font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--c-white-90);
}
.btn-delete-item {
    background: none; border: none;
    color: rgba(255,120,120,0.4);
    cursor: pointer; padding: 2px; border-radius: 4px;
    font-size: 0.8rem; line-height: 1;
    transition: color .2s, background .2s; flex-shrink: 0;
}
.btn-delete-item:hover { color: var(--c-danger); background: rgba(224,82,82,0.15); }

/* Pemenang sesi */
.history-list {
    display: flex; flex-direction: column; gap: 5px;
}
.history-empty {
    font-size: 0.75rem; color: var(--c-white-40);
    text-align: center; padding: 24px 0;
}
.history-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    background: rgba(240,165,0,0.08);
    border: 1px solid rgba(240,165,0,0.18);
    border-radius: 7px;
    font-size: 0.78rem;
    animation: itemIn .25s var(--ease-bounce);
}
.history-num {
    font-size: 0.68rem; font-weight: 800;
    color: var(--c-gold);
    background: rgba(240,165,0,0.15);
    border-radius: 4px; padding: 1px 5px; min-width: 22px; text-align: center;
}
.history-name { flex: 1; font-weight: 600; color: var(--c-white-90); }
.history-time { font-size: 0.65rem; color: var(--c-white-40); }

/* ══════════════════════════════════════════
   MODAL PEMENANG
   ══════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 950;
    background: rgba(10,18,50,0.80);
    backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
    animation: fadeIn .25s var(--ease);
}
.modal-overlay.visible { display: flex; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-box {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 24px;
    padding: 40px 36px 32px;
    max-width: 420px; width: 90%;
    text-align: center;
    position: relative; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.5);
    animation: modalIn .4s var(--ease-bounce);
    color: var(--c-navy-dark);
}
@keyframes modalIn {
    from { transform: scale(.8) translateY(30px); opacity:0; }
    to   { transform: scale(1) translateY(0); opacity:1; }
}
.modal-box::before {
    content: '';
    position: absolute; top:0; left:0; right:0; height:4px;
    background: linear-gradient(90deg, var(--c-navy), var(--c-gold), var(--c-navy));
    background-size: 200% 100%;
    animation: shimmerLine 3s linear infinite;
}

.trophy-icon {
    font-size: 3.5rem; display: block; margin-bottom: 4px;
    animation: trophyIn .6s var(--ease-bounce) .1s both;
}
@keyframes trophyIn {
    from { transform: scale(0) rotate(-15deg); opacity:0; }
    to   { transform: scale(1) rotate(0); opacity:1; }
}

.modal-label {
    font-size: 0.7rem; font-weight: 800;
    letter-spacing: .3em; color: var(--c-navy-mid);
    text-transform: uppercase; margin-bottom: 6px;
}
.modal-winner-name {
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 5vw, 2.1rem);
    font-weight: 700;
    color: var(--c-navy-dark);
    margin: 10px 0 16px;
    padding: 14px 20px;
    background: rgba(40,59,117,0.07);
    border: 2px solid rgba(40,59,117,0.15);
    border-radius: 12px;
    word-break: break-word;
    animation: namePulse 1.5s ease-in-out infinite;
}
@keyframes namePulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(40,59,117,0.2); }
    50%      { box-shadow: 0 0 0 10px rgba(40,59,117,0); }
}
.modal-question {
    font-size: 0.88rem; color: rgba(40,59,117,0.65);
    margin-bottom: 22px;
}
.modal-actions { display: flex; gap: 12px; justify-content: center; }
.btn-modal {
    padding: 12px 28px; border-radius: 10px; border: none;
    font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: all .2s var(--ease);
}
.btn-delete {
    background: var(--c-danger); color: white;
    box-shadow: 0 4px 16px rgba(224,82,82,0.3);
}
.btn-delete:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(224,82,82,0.5); }
.btn-keep {
    background: rgba(40,59,117,0.08);
    color: var(--c-navy);
    border: 1.5px solid rgba(40,59,117,0.25);
}
.btn-keep:hover { background: rgba(40,59,117,0.14); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 700px) {
    :root { --wheel-size: 380px; }
    .fab-btn { padding: 9px 16px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
    :root { --wheel-size: 300px; }
    .page-wrap { padding: 12px 12px 32px; }
    .site-header { padding: 16px; gap: 10px; }
    .event-name { font-size: 1.3rem; }
    .event-title-img { max-height: 55px; }
    .logos-row img { height: 38px !important; }
    .spin-button { padding: 13px 44px; font-size: 1rem; }
    .modal-box { padding: 28px 18px 22px; }
    .modal-actions { flex-direction: column; }
    .btn-modal { width: 100%; }
    .fab-group { gap: 8px; }
    .fab-btn { padding: 8px 13px; gap: 6px; }
    .fab-label { display: none; }
    .fab-btn svg { flex-shrink: 0; }
}
@media (max-width: 360px) {
    :root { --wheel-size: 260px; }
}
