/* ── Container ──────────────────────────────────── */
.ge-wheel-container {
    max-width: 560px;
    margin: 40px auto;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

/* ── Canvas wrapper ─────────────────────────────── */
.ge-wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}

.ge-wheel-wrapper canvas {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

/* ── Pointer ────────────────────────────────────── */
.ge-wheel-pointer {
    position: absolute;
    top: 50%;
    right: -18px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-right: 36px solid #1a1a2e;
    z-index: 10;
    filter: drop-shadow(2px 0 4px rgba(0,0,0,0.4));
}

/* ── Controls ───────────────────────────────────── */
.ge-wheel-controls {
    margin-top: 28px;
}

.ge-user-points {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.ge-current-points {
    color: #4361ee;
    font-size: 22px;
    font-weight: 700;
    transition: all 0.4s ease;
}

/* ── Spin Button ────────────────────────────────── */
.ge-spin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(67,97,238,0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    position: relative;
    overflow: hidden;
}

.ge-spin-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: inherit;
}

.ge-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(67,97,238,0.55);
}

.ge-spin-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

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

/* ── Cooldown message ───────────────────────────── */
.ge-cooldown-msg {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

/* ── Toast notification ─────────────────────────── */
.ge-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    min-width: 280px;
    max-width: 420px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.ge-toast.ge-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ge-toast--win {
    background: linear-gradient(135deg, #06d6a0, #1b9aaa);
}

.ge-toast--lose {
    background: linear-gradient(135deg, #ef233c, #b5179e);
}

.ge-toast--neutral {
    background: linear-gradient(135deg, #4361ee, #7209b7);
}

/* ── Confetti ───────────────────────────────────── */
.ge-confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    z-index: 99998;
    animation: ge-fall 3s ease-in forwards;
    pointer-events: none;
}

@keyframes ge-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── Point balance pop animation ────────────────── */
@keyframes ge-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.ge-points-pop {
    animation: ge-pop 0.5s ease;
}

/* ── Guest Email Capture ────────────────────────── */
.ge-guest-email-capture {
    margin: 0 auto 24px auto;
    max-width: 320px;
    position: relative;
}

.ge-guest-email-capture label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.ge-guest-email-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ge-guest-email-input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 15px;
    color: #2d3748;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ge-guest-email-input-wrapper input:focus {
    border-color: #4361ee;
    box-shadow: 0 4px 12px rgba(67,97,238,0.15);
}

.ge-guest-email-input-wrapper svg {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    pointer-events: none;
}

.ge-guest-email-input-wrapper input:focus + svg {
    color: #4361ee;
}
