/* ============================================
   OFICINA ESCOLA - ROLETA DA SORTE FEBRAVA
   Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Brand Colors */
    --navy: #1B2D4F;
    --navy-deep: #0E1A2E;
    --navy-light: #243B5E;
    --gold: #F5A623;
    --gold-light: #FFD166;
    --gold-dark: #D4891A;
    --blue: #4A90D9;
    --blue-light: #6BA8E8;
    --blue-dark: #2E6DB5;

    /* UI Colors (Clean Frosty White Theme) */
    --bg-primary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.9);
    --text-primary: #0E1A2E;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --border-glow: rgba(74, 144, 217, 0.25);
    --shadow-gold: 0 4px 20px rgba(245, 166, 35, 0.2);
    --shadow-blue: 0 8px 25px rgba(74, 144, 217, 0.12);

    /* Wheel Segment Colors */
    --seg-1: #1B2D4F;
    --seg-2: #F5A623;
    --seg-3: #2E6DB5;
    --seg-4: #D4891A;
    --seg-5: #1B4D8F;
    --seg-6: #FFD166;
    --seg-7: #0E1A2E;
    --seg-8: #4A90D9;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FFFFFF;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background gradient overlay - frosty refrigeration atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(224, 242, 254, 0.65) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 100%, rgba(254, 249, 195, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 85%, rgba(219, 234, 254, 0.5) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* --- Copacabana Portuguese Sidewalk Mosaic (Vertical Watermark) --- */
.copacabana-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('calcadao-vertical.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
}

/* --- Realistic Snow Canvas Background --- */
.snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particles {
    display: none;
}

.snowflake {
    position: absolute;
    top: -40px;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
    animation: snowfall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.3));
}

.snowflake svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes snowfall {
    0% {
        transform: translateY(-40px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: var(--snow-opacity, 0.75);
    }
    88% {
        opacity: var(--snow-opacity, 0.75);
    }
    100% {
        transform: translateY(105vh) translateX(var(--drift, 25px)) rotate(var(--spin, 360deg));
        opacity: 0;
    }
}

/* --- App Container --- */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* --- Screens --- */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-md);
    animation: fadeSlideUp 0.6s var(--ease-smooth) both;
}

.screen.active {
    display: flex;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SCREEN 1: FORM
   ============================================ */
.form-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin: auto 0;
    padding: var(--space-md) 0;
}

/* Logo Area */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    text-align: center;
    color: var(--gold);
    line-height: 1.2;
    letter-spacing: 2px;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Febrava Rio Logo */
.febrava-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    margin: -4px 0 2px 0;
}

.febrava-logo-img {
    width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(46, 109, 181, 0.2));
    transition: transform 0.3s var(--ease-smooth);
}

.febrava-logo-img:hover {
    transform: scale(1.04);
}

.wheel-febrava-logo {
    max-width: 160px;
    margin: 0 auto 10px auto;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--navy-deep);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: badgeShine 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.badge-icon {
    font-size: 1rem;
}

@keyframes badgeShine {
    0%, 100% { box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(245, 166, 35, 0.7); }
}

/* Hero Text */
.hero-text {
    text-align: center;
    max-width: 340px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.title-glow {
    display: block;
    background: linear-gradient(135deg, #0E1A2E, #1B4D8F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    display: block;
    background: linear-gradient(135deg, #D4891A, #F5A623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-subtitle strong {
    color: #B45309;
    font-weight: 700;
}

/* Lead Form */
.lead-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94A3B8;
    z-index: 2;
    transition: color 0.3s var(--ease-smooth);
    pointer-events: none;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 14px 14px 14px 46px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: var(--radius-md);
    color: #0E1A2E;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s var(--ease-smooth);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.lead-form input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.lead-form select {
    color: #94A3B8;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
}

.lead-form select optgroup {
    font-weight: 700;
    color: #1B2D4F;
    background: #F8FAFC;
    padding: 6px 0;
}

.lead-form select option {
    background: #FFFFFF;
    color: #0E1A2E;
    padding: 10px;
    font-weight: 500;
}

.lead-form select:valid {
    color: #0E1A2E;
}

.lead-form input:focus,
.lead-form select:focus {
    border-color: #2E6DB5;
    box-shadow: 0 0 0 3px rgba(46, 109, 181, 0.15);
    background: #FFFFFF;
}

.form-group:focus-within .input-icon {
    color: #2E6DB5;
}

/* WhatsApp Notice Card */
.whatsapp-notice-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(37, 211, 102, 0.08);
    border: 1.5px solid rgba(37, 211, 102, 0.35);
    border-radius: var(--radius-md);
    margin-top: -4px;
    margin-bottom: 2px;
    transition: all 0.3s var(--ease-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.whatsapp-notice-card:hover {
    border-color: rgba(37, 211, 102, 0.6);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.12);
}

.whatsapp-notice-card .notice-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
    margin-top: 2px;
}

.whatsapp-notice-card .notice-icon svg {
    width: 17px;
    height: 17px;
}

.whatsapp-notice-card .notice-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.whatsapp-notice-card .notice-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #065F46;
    letter-spacing: 0.2px;
}

.whatsapp-notice-card .notice-desc {
    font-size: 0.77rem;
    color: #166534;
    line-height: 1.42;
}

.whatsapp-notice-card .notice-desc strong {
    font-weight: 700;
    color: #047857;
    text-decoration: underline;
    text-decoration-color: rgba(4, 120, 87, 0.3);
}

/* Spin Button */
.btn-spin {
    position: relative;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: var(--radius-md);
    color: var(--navy-deep);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
    margin-top: var(--space-sm);
}

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

.btn-spin:hover {
    box-shadow: 0 6px 30px rgba(245, 166, 35, 0.6);
    transform: translateY(-2px);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

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

/* Disclaimer */
.disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* ============================================
   SCREEN 2: WHEEL
   ============================================ */
.screen-wheel {
    justify-content: center;
    align-items: center;
}

.wheel-wrapper {
    width: 100%;
    max-width: min(96vw, 680px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.4vh, 14px);
    margin: auto 0;
    padding: clamp(2px, 0.8vh, 10px) 0;
}

.wheel-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1vh, 8px);
    width: 100%;
}

.spins-left {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 7px 16px;
    background: #FFFFFF;
    border: 1.5px solid rgba(245, 166, 35, 0.45);
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #B45309;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.15);
}

.spins-icon {
    font-size: 1rem;
}

.wheel-instruction {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    animation: pulseText 2s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Wheel Container - Responsive Auto-Scale up to 620px */
.wheel-container {
    position: relative;
    width: min(94vw, calc(88vh - 120px), 620px);
    height: min(94vw, calc(88vh - 120px), 620px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-glow {
    position: absolute;
    width: 108%;
    height: 108%;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.06); opacity: 1; }
}

/* Pointer/Arrow */
.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(28px, 7vw, 36px);
    height: clamp(36px, 9vw, 46px);
    z-index: 15;
    filter: drop-shadow(0 4px 10px rgba(255, 45, 45, 0.5));
    animation: pointerBounce 1s ease-in-out infinite;
}

.wheel-pointer svg {
    width: 100%;
    height: 100%;
}

@keyframes pointerBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(4px); }
}

.wheel-spinning .wheel-pointer {
    animation: none;
}

/* Canvas Wheel */
#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    filter: drop-shadow(0 6px 25px rgba(27, 45, 79, 0.2));
    will-change: transform;
}

/* Center Button */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.btn-go {
    width: clamp(68px, 18vw, 88px);
    height: clamp(68px, 18vw, 88px);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 4px solid rgba(255, 255, 255, 0.4);
    color: var(--navy-deep);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(245, 166, 35, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-go:active {
    transform: scale(0.92);
}

.btn-go:hover {
    box-shadow:
        0 6px 30px rgba(245, 166, 35, 0.7),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

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

/* Lights Ring (Concentric to wheel) */
.lights-ring {
    position: absolute;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    border-radius: var(--radius-full);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.light-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-full);
    background: #F5A623;
    box-shadow: 0 0 8px #F5A623, 0 0 16px rgba(245, 166, 35, 0.7);
    transition: opacity 0.15s, transform 0.15s;
}

.light-dot.off {
    background: rgba(212, 137, 26, 0.25);
    box-shadow: none;
    transform: translate(-50%, -50%) scale(0.85);
}

/* ============================================
   PRIZE MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 26, 46, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #FFFFFF;
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    animation: modalAppear 0.5s var(--ease-spring) both;
    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.2),
        0 0 30px rgba(74, 144, 217, 0.1);
    overflow: hidden;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    animation: iconBounce 0.6s var(--ease-bounce) 0.3s both;
    position: relative;
    z-index: 1;
}

@keyframes iconBounce {
    from {
        transform: scale(0) rotate(-20deg);
    }
    to {
        transform: scale(1) rotate(0);
    }
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #0E1A2E;
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
}

.modal-prize {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: #B45309;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Coupon Box */
.coupon-box {
    background: #FFFBEB;
    border: 2px dashed #D4891A;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.coupon-label {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.coupon-code {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: #B45309;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--gold);
    border: none;
    border-radius: 50px;
    color: var(--navy-deep);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.btn-copy svg {
    width: 14px;
    height: 14px;
}

.btn-copy:active {
    transform: scale(0.95);
}

.btn-copy.copied {
    background: #16A34A;
    color: white;
}

.modal-instructions {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.btn-spin-again {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: var(--radius-md);
    color: var(--navy-deep);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

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

.btn-spin-again:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-share {
    width: 100%;
    padding: 12px;
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    border-radius: var(--radius-md);
    color: #0E1A2E;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all 0.3s var(--ease-smooth);
}

.btn-share svg {
    width: 18px;
    height: 18px;
}

.btn-share:hover {
    background: #F1F5F9;
}

.btn-share:active {
    transform: scale(0.97);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #64748B;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 2;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #0E1A2E;
}

/* No prize variant */
.modal-content.no-prize {
    border-color: #CBD5E1;
}

.modal-content.no-prize .modal-prize {
    color: #2E6DB5;
    background: none;
    -webkit-text-fill-color: initial;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--navy);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 200;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s var(--ease-spring);
    white-space: nowrap;
}

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

/* ============================================
   SCREEN TRANSITIONS
   ============================================ */
.screen-exit {
    animation: fadeSlideOut 0.4s var(--ease-smooth) forwards;
}

@keyframes fadeSlideOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============================================
   RESPONSIVE - TABLET & UP
   ============================================ */
@media (min-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .logo-placeholder {
        width: 140px;
        height: 140px;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .form-wrapper {
        padding: var(--space-2xl) 0;
    }
}

/* Small phones (< 375px) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .logo-placeholder {
        width: 100px;
        height: 100px;
    }

    .modal-content {
        padding: var(--space-xl) var(--space-md);
    }

    .coupon-code {
        font-size: 1.4rem;
    }
}

/* Handle notch / safe area */
@supports (padding-top: env(safe-area-inset-top)) {
    .app-container {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Disable selection during spin */
.wheel-spinning {
    user-select: none;
    -webkit-user-select: none;
}

/* Haptic feedback simulation via vibration animation */
@keyframes haptic {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.wheel-spinning .wheel-pointer {
    animation: haptic 0.05s linear infinite;
}

/* Scroll lock on body when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ============================================
   SCREEN 3: ALREADY WON
   ============================================ */
.already-won-card {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    box-shadow:
        0 15px 35px rgba(14, 26, 46, 0.08),
        0 0 20px rgba(245, 166, 35, 0.12);
    animation: modalAppear 0.5s var(--ease-spring) both;
}

.already-won-card .modal-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.already-won-card .modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.btn-new-participant {
    margin-top: var(--space-md);
    width: 100%;
    padding: 12px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-md);
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.btn-new-participant:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: #EFF6FF;
}

