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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0F212E;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 440px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    text-align: center;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1A2C38;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #2F4553;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
}

.stake-logo {
    height: 26px;
    width: auto;
}

.badge {
    background: #1475E1;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}

/* Title */
.title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #fff;
}

.highlight {
    color: #1475E1;
}

.subtitle {
    color: #B1BAD3;
    font-size: 13px;
    margin-bottom: 24px;
}

/* Wheel */
.wheel-section {
    background: #213743;
    border-radius: 16px;
    padding: 24px 16px;
    margin-bottom: 16px;
    border: 1px solid #2F4553;
}

.wheel-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
}

#wheelCanvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow:
        0 0 0 5px #2F4553,
        0 0 0 8px #1475E1,
        0 0 0 11px #2F4553,
        0 0 30px rgba(20, 117, 225, 0.15);
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid #1475E1;
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(20, 117, 225, 0.5));
}

.spin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1475E1;
    color: #fff;
    border: none;
    padding: 14px 52px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 1.5px;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.spin-btn:hover {
    background: #1068CA;
}

.spin-btn:active {
    transform: scale(0.98);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.spin-icon {
    font-size: 18px;
    animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Timer */
.timer-section {
    background: #213743;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #2F4553;
}

.timer-label {
    color: #B1BAD3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.time-block {
    background: #0F212E;
    border: 1px solid #2F4553;
    border-radius: 8px;
    padding: 8px 16px;
    min-width: 60px;
}

.time-block span {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.time-block small {
    display: block;
    font-size: 9px;
    color: #B1BAD3;
    letter-spacing: 2px;
    margin-top: 2px;
}

.time-sep {
    font-size: 26px;
    font-weight: 800;
    color: #B1BAD3;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Social proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 20px;
    background: #213743;
    border-radius: 12px;
    border: 1px solid #2F4553;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-count {
    font-size: 18px;
    font-weight: 800;
    color: #00E701;
}

.proof-label {
    font-size: 11px;
    color: #B1BAD3;
}

.proof-dot {
    width: 4px;
    height: 4px;
    background: #2F4553;
    border-radius: 50%;
}

/* Popup */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 33, 46, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup {
    position: relative;
    width: 100%;
    max-width: 380px;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, #1475E1, #00E701, #1475E1);
    z-index: -1;
    animation: glowRotate 3s linear infinite;
    background-size: 300% 300%;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.popup-content {
    position: relative;
    background: #1A2C38;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.confetti-icon {
    font-size: 44px;
    margin-bottom: 8px;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

.popup-title {
    font-size: 26px;
    font-weight: 900;
    color: #00E701;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.popup-prize {
    color: #B1BAD3;
    font-size: 14px;
    margin-bottom: 4px;
}

.prize-value {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.1;
}

.popup-desc {
    color: #B1BAD3;
    font-size: 14px;
    margin-bottom: 24px;
}

.claim-btn {
    display: block;
    background: #1475E1;
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    transition: all 0.2s;
    animation: claimPulse 2s ease-in-out infinite;
}

@keyframes claimPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 117, 225, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(20, 117, 225, 0); }
}

.claim-btn:hover {
    background: #1068CA;
}

.popup-note {
    color: #557086;
    font-size: 11px;
    margin-bottom: 12px;
}

.popup-timer {
    color: #ED4163;
    font-size: 13px;
    font-weight: 600;
}

.popup-timer span {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 380px) {
    .title { font-size: 20px; }
    .prize-value { font-size: 32px; }
    .wheel-wrapper { width: 260px; height: 260px; }
    #wheelCanvas { width: 260px; height: 260px; }
}
