/* RETRO LOTTERY THEME - Color Palette */
:root {
    --cherry-red: #E63946;
    --scratch-gold: #FFD700;
    --deep-blue: #1D3557;
    --paper-white: #F1FAEE;
    --rich-black: #111111;
    --electric-teal: #00F5D4;
    
    /* Legacy color mappings for backward compatibility */
    --primary-color: var(--cherry-red);
    --secondary-color: var(--electric-teal);
    --accent-color: var(--scratch-gold);
    --text-color: var(--rich-black);
    --bg-color: var(--paper-white);
    --white: var(--paper-white);
    --black: var(--rich-black);
    
    /* Retro Effects */
    --ticket-shadow: 0 4px 8px rgba(17, 17, 17, 0.2);
    --retro-border: 3px dashed var(--deep-blue);
    --pixel-border: 2px solid var(--rich-black);
    --gold-glow: 0 0 15px rgba(255, 215, 0, 0.4);
    --red-glow: 0 0 15px rgba(230, 57, 70, 0.4);
    --teal-glow: 0 0 15px rgba(0, 245, 212, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;    
}

  #notification-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
      width: 300px;
      pointer-events: none; /* so clicks go through */
    }

    /* Single notification style */
    .notification {
      background-color: #333;
      color: white;
      padding: 12px 16px;
      margin-top: 10px;
      border-radius: 6px;
      box-shadow: 0 4px 10px rgba(218, 3, 3, 0.3);
      font-family: Arial, sans-serif;
      pointer-events: auto; /* allow interaction on notification */
      overflow: hidden;
      position: relative;
    }

    /* Variants */
    .notification.info {
      background-color: #2196F3; /* blue */
    }
    .notification.success {
      background-color: #4CAF50; /* green */
    }
    .notification.error {
      background-color: #f44336; /* red */
    }

    /* Time bar container */
    .time-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 4px;
      background-color: rgba(255,255,255,0.7);
      width: 100%;
      animation-name: shrink;
      animation-timing-function: linear;
      animation-fill-mode: forwards;
    }

    /* Animation for shrinking the bar from full width to zero */
    @keyframes shrink {
      from { width: 100%; }
      to { width: 0; }
    }
    
 button {
      background-color: #6366f1;
      color: white;
      border: none;
      padding: 12px 24px;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }



    .modal {
      background: white;
      border-radius: 16px;
      width: 320px;
      padding: 20px;
      box-shadow: 0 10px 30px rgba(100, 45, 45, 0.3);
      position: relative;
    }

    .modal h3 {
      margin-top: 0;
      font-size: 18px;
      font-weight: bold;
    }

    .wallet-option {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      border: 1px solid #eee;
      border-radius: 10px;
      margin-top: 10px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .wallet-option:hover {
      background: #f5f5f5;
    }

    .wallet-option img {
      width: 24px;
      height: 24px;
      margin-right: 10px;
    }

    .wallet-name {
      display: flex;
      align-items: center;
      font-size: 15px;
    }

    .wallet-tag {
      background: #eee;
      font-size: 12px;
      padding: 2px 8px;
      border-radius: 8px;
    }

    .modal-footer {
      text-align: center;
      font-size: 12px;
      color: #777;
      margin-top: 16px;
    }

    .close-btn {
      position: absolute;
      right: 12px;
      top: 12px;
      font-size: 18px;
      border: none;
      background: none;
      cursor: pointer;
    }

    .close-btn:hover {
      color: red;
    }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-weight: 400;
    /* Simple dot texture */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(29, 53, 87, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--paper-white) 0%, #e8f3f0 100%);
    padding: 2rem 0;
    text-align: center;
    border-bottom: var(--retro-border);
    position: relative;
    box-shadow: var(--ticket-shadow);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(29, 53, 87, 0.05) 10px,
        rgba(29, 53, 87, 0.05) 11px
    );
    pointer-events: none;
}

header h1 {
    font-family: 'PressStart2P', monospace;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--cherry-red);
    text-shadow: 
        3px 3px 0px var(--deep-blue),
        4px 4px 0px rgba(29, 53, 87, 0.3);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Main Content Sections */
#countdown-section {
    display: none;
}

/* Hero Section */
#hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--paper-white);
    color: var(--rich-black);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: var(--retro-border);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(230, 57, 70, 0.1) 0%, transparent 50%);
    z-index: 0;
}

#hero h1 {
    font-family: 'PressStart2P', monospace;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--cherry-red);
    text-shadow: 
        4px 4px 0px var(--deep-blue),
        5px 5px 0px rgba(29, 53, 87, 0.3);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

#hero p {
    font-family: 'PressStart2P', monospace;
    font-size: 1.3rem;
    max-width: 600px;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* Hero Content Layout */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    gap: 2rem;
    /* Prevent overflow on mobile */
    box-sizing: border-box;
    overflow: hidden;
}

/* Buy Now Button - Prominent Lottery Style */
.buy-now-container {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.buy-now-btn {
    font-family: 'PressStart2P', monospace;
    display: inline-block;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: normal;
    text-decoration: none;
    background: linear-gradient(45deg, var(--cherry-red), #ff4757);
    color: var(--paper-white);
    border: 4px solid var(--rich-black);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: 
        var(--ticket-shadow),
        8px 8px 0px var(--rich-black),
        var(--red-glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: buy-pulse 2s ease-in-out infinite alternate;
}

.buy-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.buy-now-btn:hover::before {
    left: 100%;
}

.buy-now-btn:hover {
    background: linear-gradient(45deg, var(--electric-teal), #00d4aa);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(17, 17, 17, 0.4),
        12px 12px 0px var(--rich-black),
        var(--teal-glow);
    animation: none;
}

.buy-now-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        6px 6px 0px var(--rich-black);
}

.buy-now-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--deep-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    margin-bottom: 0;
    opacity: 0.8;
}

@keyframes buy-pulse {
    0% { 
        box-shadow: 
            var(--ticket-shadow),
            8px 8px 0px var(--rich-black),
            var(--red-glow);
    }
    100% { 
        box-shadow: 
            var(--ticket-shadow),
            8px 8px 0px var(--rich-black),
            0 0 25px rgba(230, 57, 70, 0.6),
            0 0 35px rgba(230, 57, 70, 0.4);
    }
}

/* Hero Social Links */
.hero-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.hero-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 3px solid var(--rich-black);
    background: var(--paper-white);
    color: var(--rich-black);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        4px 4px 0px var(--rich-black),
        var(--ticket-shadow);
}

.hero-social .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.hero-social .social-link svg {
    width: 24px;
    height: 24px;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.hero-social .social-link:hover {
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 0px var(--rich-black),
        0 8px 16px rgba(17, 17, 17, 0.3);
}

.hero-social .social-link:hover::before {
    left: 100%;
}

.hero-social .social-link:hover svg {
    transform: scale(1.1);
}

.hero-social .social-link.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.hero-social .social-link.discord:hover {
    background: #5865F2;
    color: white;
}

.hero-social .social-link:active {
    transform: translateY(0);
    box-shadow: 
        2px 2px 0px var(--rich-black),
        var(--ticket-shadow);
}

/* Jackpot Display - Retro Lottery Ticket Style */
.jackpot-display {
    background: var(--paper-white);
    border: var(--retro-border);
    border-radius: 0;
    padding: 2rem 2rem;
    box-shadow: 
        var(--ticket-shadow),
        inset 0 0 0 3px var(--scratch-gold);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 900px;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 5px,
            rgba(29, 53, 87, 0.03) 5px,
            rgba(29, 53, 87, 0.03) 10px
        );
}

.jackpot-display::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dotted var(--deep-blue);
    pointer-events: none;
}

.jackpot-display::after {
    content: '🎰 DUAL JACKPOT SYSTEM 🎰';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper-white);
    padding: 0 1rem;
    font-family: 'PressStart2P', monospace;
    font-size: 0.6rem;
    color: var(--deep-blue);
    letter-spacing: 0.1em;
}

.jackpot-display:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(17, 17, 17, 0.3),
        inset 0 0 0 3px var(--scratch-gold),
        var(--gold-glow);
}

/* Jackpot Sections */
.jackpot-section {
    margin-bottom: 2rem;
    position: relative;
}

.jackpot-section.major {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px dashed var(--deep-blue);
}

.jackpot-section.minor {
    margin-bottom: 1rem;
}

.jackpot-label {
    font-family: 'PressStart2P', monospace;
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--deep-blue);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 1px 1px 0px rgba(29, 53, 87, 0.3);
}

/* Major Jackpot Styling */
.jackpot-section.major .jackpot-label {
    font-size: 1rem;
    color: var(--cherry-red);
    text-shadow: 2px 2px 0px var(--deep-blue);
}

/* Jackpot Amount Containers */
.jackpot-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--scratch-gold);
    padding: 1.5rem 2rem;
    border: var(--pixel-border);
    margin: 1rem 0;
    gap: 0.3rem;
    overflow: hidden;
    white-space: nowrap;
    min-height: 80px;
}

/* Major Jackpot Amount - Bigger */
.jackpot-amount.major {
    padding: 2rem 3rem;
    margin: 1.5rem 0;
    min-height: 100px;
}

.jackpot-amount.major .currency-symbol {
    font-size: 2.5rem;
    margin-right: 0.4rem;
}

.jackpot-amount.major #major-jackpot-value {
    font-size: 3.5rem;
}

/* Minor Jackpot Amount - Smaller */
.jackpot-amount.minor .currency-symbol {
    font-size: 1.8rem;
    margin-right: 0.3rem;
}

.jackpot-amount.minor #jackpot-value {
    font-size: 2.5rem;
}

/* Base Currency Symbol Styling */
.currency-symbol {
    font-family: 'PressStart2P', monospace;
    font-weight: normal;
    color: var(--rich-black);
    text-shadow: 2px 2px 0px var(--paper-white);
}

/* Base Jackpot Value Styling */
#jackpot-value, #major-jackpot-value {
    font-family: 'PressStart2P', monospace;
    font-weight: normal;
    color: var(--cherry-red);
    text-shadow: 
        2px 2px 0px var(--paper-white),
        3px 3px 0px var(--deep-blue);
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

/* Jackpot Update Animation */
.jackpot-amount.updating #jackpot-value {
    animation: jackpot-pulse 0.6s ease-in-out;
}

@keyframes jackpot-pulse {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Payout Info Styling - Replaces jackpot counters */
.payout-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--scratch-gold);
    padding: 1.5rem 2rem;
    border: var(--pixel-border);
    margin: 1rem 0;
    gap: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    min-height: 80px;
    font-family: 'PressStart2P', monospace;
}

/* Major Jackpot Payout Info - Bigger */
.payout-info.major {
    padding: 2rem 3rem;
    margin: 1.5rem 0;
    min-height: 100px;
    background: linear-gradient(135deg, var(--cherry-red), #ff6b6b);
    color: var(--paper-white);
    text-shadow: 3px 3px 0px var(--rich-black);
}

.payout-info.minor {
    background: linear-gradient(135deg, var(--scratch-gold), #ffd93d);
    color: var(--rich-black);
    text-shadow: 2px 2px 0px var(--paper-white);
}

.payout-date {
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.payout-time {
    font-size: 0.9rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Payout Schedule Styling */
.payout-schedule {
    font-family: 'PressStart2P', monospace;
    font-size: 0.6rem;
    color: var(--deep-blue);
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--deep-blue);
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: normal;
}

/* Sticky Timer - Retro Style (30-minute timer) */
.sticky-timer {
    position: fixed;
    top: 120px; /* Moved down to make space for daily timer above */
    right: 20px;
    background: var(--paper-white);
    border: var(--pixel-border);
    border-radius: 0;
    padding: 1rem;
    box-shadow: var(--ticket-shadow);
    backdrop-filter: none;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'PressStart2P', monospace;
}

.sticky-timer:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        var(--teal-glow);
}

.sticky-timer-title {
    font-size: 0.6rem;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.sticky-timer-display {
    font-size: 1.2rem;
    color: var(--cherry-red);
    font-weight: normal;
    text-align: center;
    text-shadow: 1px 1px 0px var(--deep-blue);
}

.sticky-timer-display span {
    font-weight: 700;
    min-width: 2ch;
    text-align: center;
}

/* Daily Timer Styles (24-hour timer) - Moved to right side above 30M timer */
.daily-timer {
    position: fixed;
    top: 20px; /* Positioned above the 30-minute timer */
    right: 20px; /* Moved from left to right */
    background: linear-gradient(135deg, var(--scratch-gold) 0%, #FFA500 100%);
    border: var(--pixel-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--ticket-shadow), var(--gold-glow);
    font-family: 'PressStart2P', monospace;
    color: var(--paper-white);
    transition: all 0.3s ease;
    min-width: 200px;
}

.daily-timer:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        var(--gold-glow);
}

.daily-timer-title {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-shadow: 1px 1px 0px var(--rich-black);
}

.daily-timer-display {
    font-size: 0.9rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 0px var(--rich-black);
    word-spacing: 0.2em;
}

.daily-timer-display span {
    font-weight: 700;
    display: inline-block;
    margin: 0 0.1em;
    text-align: center;
}

/* Countdown Timer - much smaller, positioned under jackpot */
.countdown-container {
    margin-top: 1.5rem;
    width: 100%;
}

.countdown-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.countdown-timer {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: rgba(153, 69, 255, 0.1);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(5px);
    margin-bottom: 0.5rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.time-digit {
    font-family: 'Inter', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--timer-green);
    line-height: 1;
    letter-spacing: -0.02em;
}

.time-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.time-separator {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    animation: blink 2s infinite;
}

.countdown-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin: 0;
}

/* Timer Color States */
.timer-warning .time-digit {
    color: var(--timer-yellow);
    animation: pulse-yellow 1s ease-in-out infinite alternate;
}

.timer-critical .time-digit {
    color: var(--timer-red);
    animation: pulse-red 0.8s ease-in-out infinite alternate;
}

@keyframes pulse-yellow {
    from { text-shadow: 0 0 20px var(--timer-yellow); }
    to { text-shadow: 0 0 30px var(--timer-yellow), 0 0 40px rgba(255, 215, 0, 0.5); }
}

@keyframes pulse-red {
    from { text-shadow: 0 0 20px var(--timer-red); }
    to { text-shadow: 0 0 30px var(--timer-red), 0 0 40px rgba(255, 68, 68, 0.5); }
}

/* Tokenomics Section - Retro Lottery Style */
#tokenomics {
    padding: 4rem 0;
    background: var(--paper-white);
    border-top: var(--retro-border);
    margin-top: 0;
    position: relative;
}

.tokenomics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tokenomics-card {
    background: var(--paper-white);
    border: var(--pixel-border);
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--ticket-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1 1 280px;
    max-width: 320px;
    min-width: 280px;
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 8px,
            rgba(29, 53, 87, 0.05) 8px,
            rgba(29, 53, 87, 0.05) 10px
        );
}

.tokenomics-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px dotted var(--deep-blue);
    pointer-events: none;
}

.tokenomics-card::after {
    content: '🎟️';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    background: var(--scratch-gold);
    border: var(--pixel-border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tokenomics-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 16px rgba(17, 17, 17, 0.3),
        var(--gold-glow);
}

.tokenomics-card h3 {
    font-family: 'PressStart2P', monospace;
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: var(--cherry-red);
    text-shadow: 1px 1px 0px var(--deep-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tokenomics-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--rich-black);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Jackpot Counter Section */
#jackpot-counter {
    display: none;
}

/* Footer - Retro Style */
footer {
    background: rgba(230, 57, 70, 0.85);
    color: var(--paper-white);
    padding: 3rem 0 1rem;
    border-top: var(--retro-border);
    border-color: var(--scratch-gold);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 215, 0, 0.05) 10px,
            rgba(255, 215, 0, 0.05) 12px
        );
    pointer-events: none;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-social {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--scratch-gold);
    border: var(--pixel-border);
    border-color: var(--paper-white);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ticket-shadow);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px dotted var(--deep-blue);
    pointer-events: none;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--deep-blue);
    z-index: 1;
    position: relative;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--electric-teal);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        var(--teal-glow);
}

.social-link.twitter:hover {
    background: #1DA1F2;
}

.social-link.telegram:hover {
    background: #0088cc;
}

.footer-disclaimer {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(241, 250, 238, 0.1);
    border: 1px dashed var(--scratch-gold);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.footer-disclaimer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(241, 250, 238, 0.8);
    margin: 0;
}

.footer-copyright {
    border-top: 1px dashed var(--scratch-gold);
    padding-top: 1rem;
}

.footer-copyright p {
    font-family: 'PressStart2P', monospace;
    font-size: 0.6rem;
    color: var(--scratch-gold);
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    /* Ensure container doesn't overflow on mobile */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* FAQ Section - Retro Style */
#faq {
    padding: 4rem 0;
    background: var(--paper-white);
    border-top: var(--retro-border);
    margin-top: 0;
}

.faq-title {
    font-family: 'PressStart2P', monospace;
    text-align: center;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--cherry-red);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 0px var(--deep-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    background: var(--paper-white);
    border: var(--pixel-border);
    border-radius: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--ticket-shadow);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dotted var(--deep-blue);
    pointer-events: none;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        var(--teal-glow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--rich-black);
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 1;
}

.faq-question:hover {
    background: rgba(29, 53, 87, 0.05);
}

.faq-toggle {
    font-family: 'PressStart2P', monospace;
    font-size: 1rem;
    font-weight: normal;
    color: var(--cherry-red);
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--rich-black);
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

/* Retro Buttons */
.btn {
    font-family: 'PressStart2P', monospace;
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: normal;
    text-decoration: none;
    border: var(--pixel-border);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--scratch-gold);
    color: var(--rich-black);
    box-shadow: var(--ticket-shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        var(--gold-glow);
}

.btn-accent {
    background: var(--cherry-red);
    color: var(--paper-white);
    border-color: var(--rich-black);
}

.btn-accent:hover {
    background: var(--electric-teal);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        var(--teal-glow);
}

.btn-outline {
    background: transparent;
    color: var(--deep-blue);
    border-color: var(--deep-blue);
    border-width: 2px;
}

.btn-outline:hover {
    background: var(--deep-blue);
    color: var(--paper-white);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        0 0 15px rgba(29, 53, 87, 0.4);
}

/* Previous Winners Section - Retro Style */
#previous-winners {
    padding: 4rem 2rem;
    background: var(--paper-white);
    border-top: var(--retro-border);
    border-bottom: var(--retro-border);
    width: 100%;
    overflow-x: hidden;
}

.winners-title {
    font-family: 'PressStart2P', monospace;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--cherry-red);
    text-shadow: 2px 2px 0px var(--deep-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.total-winnings {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--scratch-gold);
    border: var(--pixel-border);
    padding: 1.5rem;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--ticket-shadow);
}

.total-winnings-label {
    font-family: 'PressStart2P', monospace;
    font-size: 0.7rem;
    color: var(--rich-black);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.total-winnings-amount {
    font-family: 'PressStart2P', monospace;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--cherry-red);
    text-shadow: 1px 1px 0px var(--paper-white);
    letter-spacing: 0.05em;
}

.winners-controls {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-controls {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.filter-controls label {
    font-family: 'PressStart2P', monospace;
    font-size: 0.7rem;
    color: var(--deep-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.filter-dropdown {
    font-family: 'Inter', sans-serif;
    background: var(--paper-white);
    border: var(--pixel-border);
    border-radius: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--rich-black);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: var(--ticket-shadow);
}

.filter-dropdown:hover {
    background: #e8f3f0;
    box-shadow: 
        0 4px 8px rgba(17, 17, 17, 0.3),
        var(--teal-glow);
}

.filter-dropdown:focus {
    border-color: var(--electric-teal);
    box-shadow: var(--teal-glow);
}

.filter-dropdown option {
    background: var(--paper-white);
    color: var(--rich-black);
    padding: 0.5rem;
}

/* Winners Container - New scrollable list design */
.winners-container {
    background: var(--paper-white);
    border: var(--pixel-border);
    border-radius: 8px;
    box-shadow: var(--ticket-shadow);
    margin: 2rem 0;
    overflow: hidden;
}

.winners-list-header {
    display: grid;
    grid-template-columns: 60px 2fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--deep-blue), #1a365d);
    color: var(--paper-white);
    font-family: 'PressStart2P', monospace;
    font-size: 0.6rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--rich-black);
}

.winners-scrollable {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.winners-scrollable::-webkit-scrollbar {
    width: 8px;
}

.winners-scrollable::-webkit-scrollbar-track {
    background: var(--paper-white);
}

.winners-scrollable::-webkit-scrollbar-thumb {
    background: var(--deep-blue);
    border-radius: 4px;
}

.winners-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--cherry-red);
}

/* Winner Row Styling */
.winner-row {
    display: grid;
    grid-template-columns: 60px 2fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    align-items: center;
    transition: all 0.2s ease;
}

.winner-row:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transform: translateX(4px);
}

.winner-rank {
    font-family: 'PressStart2P', monospace;
    font-size: 0.7rem;
    color: var(--deep-blue);
    text-align: center;
    font-weight: normal;
}

.winner-wallet {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--rich-black);
    font-weight: 600;
}

.winner-amount {
    font-family: 'PressStart2P', monospace;
    font-size: 0.7rem;
    color: var(--cherry-red);
    font-weight: normal;
    text-align: right;
}

.winner-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.winner-type.major {
    background: linear-gradient(135deg, var(--cherry-red), #ff6b6b);
    color: var(--paper-white);
}

.winner-type.minor {
    background: linear-gradient(135deg, var(--scratch-gold), #ffd93d);
    color: var(--rich-black);
}

.winner-transaction {
    text-align: center;
}

.winner-transaction a {
    font-size: 0.7rem;
    color: var(--deep-blue);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--deep-blue);
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.winner-transaction a:hover {
    background: var(--deep-blue);
    color: var(--paper-white);
    transform: translateY(-1px);
}

.winners-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--paper-white));
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.winners-grid.expanded::after {
    opacity: 0;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin: 2rem auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.view-more-btn {
    font-family: 'PressStart2P', monospace;
    background: var(--cherry-red);
    color: var(--paper-white);
    border: var(--pixel-border);
    border-color: var(--rich-black);
    padding: 1rem 2rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: var(--ticket-shadow);
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    background: var(--electric-teal);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(17, 17, 17, 0.3),
        var(--teal-glow);
}

.view-more-btn:active {
    transform: translateY(0);
}

.view-more-btn.hidden {
    display: none;
}

/* Winner Ticket - Raffle Ticket Style */
.winner-ball {
    background: var(--paper-white);
    border: 2px solid var(--deep-blue);
    border-radius: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--ticket-shadow);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    /* Raffle ticket perforated edge pattern */
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            var(--deep-blue) 8px,
            var(--deep-blue) 10px,
            transparent 10px,
            transparent 18px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            var(--deep-blue) 8px,
            var(--deep-blue) 10px,
            transparent 10px,
            transparent 18px
        );
    background-size: 100% 6px, 6px 100%;
    background-position: 0 0, 0 0;
    background-repeat: repeat-x, repeat-y;
}

/* Raffle ticket stub line */
.winner-ball::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--deep-blue) 0px,
        var(--deep-blue) 6px,
        transparent 6px,
        transparent 12px
    );
    z-index: 1;
}

/* Raffle ticket number badge */
.winner-ball::after {
    content: 'WINNER';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cherry-red);
    color: var(--paper-white);
    padding: 0.3rem 0.8rem;
    font-family: 'PressStart2P', monospace;
    font-size: 0.4rem;
    letter-spacing: 0.1em;
    border: 2px solid var(--rich-black);
    box-shadow: 2px 2px 0px var(--rich-black);
}

/* Raffle ticket color variations - Solid gradients */
.winner-ball:nth-child(1),
.winner-ball:nth-child(9),
.winner-ball:nth-child(17),
.winner-ball:nth-child(25) {
    background: linear-gradient(135deg, var(--scratch-gold), #e6c200);
    border-color: var(--deep-blue);
}

.winner-ball:nth-child(2),
.winner-ball:nth-child(10),
.winner-ball:nth-child(18),
.winner-ball:nth-child(26) {
    background: linear-gradient(135deg, var(--electric-teal), #00d4aa);
    border-color: var(--rich-black);
}

.winner-ball:nth-child(3),
.winner-ball:nth-child(11),
.winner-ball:nth-child(19),
.winner-ball:nth-child(27) {
    background: linear-gradient(135deg, var(--cherry-red), #d63031);
    border-color: var(--paper-white);
}

.winner-ball:nth-child(4),
.winner-ball:nth-child(12),
.winner-ball:nth-child(20),
.winner-ball:nth-child(28) {
    background: linear-gradient(135deg, var(--deep-blue), #2d3436);
    border-color: var(--scratch-gold);
}

.winner-ball:nth-child(5),
.winner-ball:nth-child(13),
.winner-ball:nth-child(21),
.winner-ball:nth-child(29) {
    background: linear-gradient(135deg, #8b5cf6, #6c5ce7);
    border-color: var(--paper-white);
}

.winner-ball:nth-child(6),
.winner-ball:nth-child(14),
.winner-ball:nth-child(22),
.winner-ball:nth-child(30) {
    background: linear-gradient(135deg, #f59e0b, #e17055);
    border-color: var(--rich-black);
}

.winner-ball:nth-child(7),
.winner-ball:nth-child(15),
.winner-ball:nth-child(23),
.winner-ball:nth-child(31) {
    background: linear-gradient(135deg, #10ac84, #00b894);
    border-color: var(--deep-blue);
}

.winner-ball:nth-child(8),
.winner-ball:nth-child(16),
.winner-ball:nth-child(24),
.winner-ball:nth-child(32) {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    border-color: var(--paper-white);
}

.winner-ball:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 
        0 8px 16px rgba(17, 17, 17, 0.4),
        4px 4px 0px var(--deep-blue);
}

.wallet-address {
    font-family: 'PressStart2P', monospace;
    font-size: 0.65rem;
    color: var(--rich-black);
    text-shadow: none;
    letter-spacing: 0.05em;
    z-index: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 0.5rem;
    border: 1px dashed var(--deep-blue);
    margin: 0.5rem 1rem 1rem 1rem;
}

.prize-amount {
    font-family: 'PressStart2P', monospace;
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--cherry-red);
    text-shadow: 2px 2px 0px var(--paper-white);
    margin: 1rem 0;
    z-index: 1;
    position: relative;
    background: var(--scratch-gold);
    padding: 1rem;
    border: 2px solid var(--rich-black);
    letter-spacing: 0.05em;
    box-shadow: 3px 3px 0px var(--rich-black);
}

.solscan-link {
    font-family: 'Inter', sans-serif;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--deep-blue);
    color: var(--paper-white);
    text-decoration: none;
    border: 2px solid var(--rich-black);
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    box-shadow: 3px 3px 0px var(--rich-black);
    margin-top: auto;
}

.solscan-link:hover {
    background: var(--cherry-red);
    transform: translateY(-2px);
    box-shadow: 3px 5px 0px var(--rich-black);
}

/* Jackpot type badges */
.jackpot-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0.4rem 0.8rem;
    font-family: 'PressStart2P', monospace;
    font-size: 0.4rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid var(--rich-black);
    box-shadow: 2px 2px 0px var(--rich-black);
    z-index: 2;
    transform: rotate(5deg);
    transition: all 0.3s ease;
}

.jackpot-badge.major-jackpot {
    background: linear-gradient(135deg, var(--scratch-gold), #ffd700);
    color: var(--rich-black);
    border-color: var(--cherry-red);
    box-shadow: 2px 2px 0px var(--cherry-red);
}

.jackpot-badge.minor-jackpot {
    background: linear-gradient(135deg, var(--electric-teal), #00d4aa);
    color: var(--rich-black);
    border-color: var(--deep-blue);
    box-shadow: 2px 2px 0px var(--deep-blue);
}

.winner-ball:hover .jackpot-badge {
    transform: rotate(0deg) scale(1.1);
}

/* Major jackpot winner glow effect */
.winner-ball:has(.major-jackpot) {
    animation: majorWinnerGlow 2s ease-in-out infinite alternate;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        var(--ticket-shadow);
}

.winner-ball:has(.major-jackpot):hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.6),
        0 0 75px rgba(255, 215, 0, 0.4),
        0 8px 16px rgba(17, 17, 17, 0.4),
        4px 4px 0px var(--deep-blue);
    animation: majorWinnerGlow 1s ease-in-out infinite alternate;
}

@keyframes majorWinnerGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.2),
            0 0 45px rgba(255, 215, 0, 0.1),
            var(--ticket-shadow);
    }
    100% {
        box-shadow: 
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 50px rgba(255, 215, 0, 0.6),
            0 0 75px rgba(255, 215, 0, 0.4),
            var(--ticket-shadow);
    }
}

/* Fallback for browsers that don't support :has() selector */
.winner-ball.major-winner {
    animation: majorWinnerGlow 2s ease-in-out infinite alternate;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        var(--ticket-shadow);
}

.winner-ball.major-winner:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.6),
        0 0 75px rgba(255, 215, 0, 0.4),
        0 8px 16px rgba(17, 17, 17, 0.4),
        4px 4px 0px var(--deep-blue);
    animation: majorWinnerGlow 1s ease-in-out infinite alternate;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Remove old animations */
.jackpot-amount.updating #jackpot-value {
    /* Slot machine reels handle their own animations */
}

.jackpot-subtitle {
    font-family: 'PressStart2P', monospace;
    font-size: 1.3rem;
    color: var(--deep-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    animation: retro-blink 2s ease-in-out infinite;
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    margin-bottom: 0.5rem;
}

@keyframes retro-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Main Timer Display in Hero Section */
.main-timer {
    margin-top: 20px;
    text-align: center;
}

.timer-label {
    color: var(--deep-blue);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.countdown-display {
    font-family: 'PressStart2P', monospace;
    font-size: 2rem;
    color: var(--cherry-red);
    font-weight: bold;
    text-shadow: 
        2px 2px 0px var(--deep-blue),
        3px 3px 0px rgba(29, 53, 87, 0.3);
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.countdown-display span {
    display: inline-block;
    padding: 0.2em 0.1em;
    transition: all 0.15s ease;
}

.countdown-display.timer-warning {
    color: var(--scratch-gold);
    animation: pulse-yellow 1s ease-in-out infinite alternate;
}

.countdown-display.timer-critical {
    color: var(--cherry-red);
    animation: pulse-red 0.5s ease-in-out infinite alternate;
}

/* Blockchain View Buttons */
.blockchain-view-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.blockchain-view-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.6);
    color: var(--paper-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    font-family: 'PressStart2P', monospace;
    font-size: 0.6rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-align: center;
}

.blockchain-view-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 215, 0, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.blockchain-view-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .blockchain-view-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blockchain-view-btn {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }
}

/* Large screens - use 4 columns for more space */
@media screen and (min-width: 1200px) {
    .winners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

/* Medium screens - stick with 3 columns */
@media screen and (max-width: 1199px) and (min-width: 769px) {
    .winners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 1000px) {
    /* Removed winners-grid rules - using auto-fit approach instead */
    
    #previous-winners {
        padding: 3rem 1.5rem;
    }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE STYLES ===== */

/* Large Mobile / Small Tablet - 768px and below */
@media screen and (max-width: 768px) {
    /* Hero Section Mobile */
    #hero {
        padding: 1.5rem 1rem;
        min-height: 70vh;
    }
    
    #hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    #hero p {
        font-family: 'PressStart2P', monospace;
        font-size: 1.3rem;
        max-width: 600px;
        font-weight: 600;
        color: var(--deep-blue);
        margin-bottom: 3rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        position: relative;
        z-index: 1;
    }
    
    .hero-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Buy Button Mobile */
    .buy-now-btn {
        font-size: 0.9rem;
        padding: 1.2rem 2rem;
        letter-spacing: 0.1em;
    }
    
    /* Hero Social Mobile */
    .hero-social {
        gap: 0.8rem;
    }
    
    .hero-social .social-link {
        width: 45px;
        height: 45px;
    }
    
    .hero-social .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    /* Jackpot Display Mobile */
    .jackpot-display {
        padding: 1.5rem 1rem;
        max-width: 95%;
        width: 100%;
    }
    
    .jackpot-amount {
        padding: 1rem 1.5rem;
        min-height: 60px;
    }
    
    .jackpot-amount.major {
        padding: 1.5rem 2rem;
        min-height: 80px;
    }

    .jackpot-section {
        gap: 0.8rem;
    }

    .jackpot-label {
        font-size: 0.7rem;
    }

    .jackpot-amount.major #major-jackpot-value {
        font-size: 2.2rem;
    }
    
    .jackpot-amount.minor #jackpot-value {
        font-size: 1.8rem;
    }

    .currency-symbol {
        font-size: 1.5rem !important;
    }

    /* Payout Info Mobile */
    .payout-info {
        padding: 1rem 1.5rem;
        min-height: 60px;
    }

    .payout-info.major {
        padding: 1.5rem 2rem;
        min-height: 80px;
    }

    .payout-date {
        font-size: 1.2rem;
    }

    .payout-time {
        font-size: 0.8rem;
    }
    
    /* Timer Mobile */
    .sticky-timer,
    .daily-timer {
        padding: 0.8rem 1rem;
        margin: 0.5rem;
        font-size: 0.8rem;
    }
    
    .sticky-timer-display,
    .daily-timer-display {
        font-size: 0.9rem;
    }
    
    /* Blockchain Buttons Mobile */
    .blockchain-view-container {
        flex-direction: column;
        gap: 0.8rem;
        margin: 0 1rem;
    }
    
    .blockchain-view-btn {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
        flex: 1;
    }
    
    /* Winners Section Mobile */
    #previous-winners {
        padding: 2rem 1rem;
        width: 100%;
    }
    
    .winners-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .total-winnings {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .total-winnings-label {
        font-size: 0.9rem;
    }
    
    .total-winnings-amount {
        font-size: 1.2rem;
    }
    
    .winners-controls {
        margin-bottom: 1.5rem;
    }
    
    .filter-dropdown {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .winners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding: 0.5rem;
        max-width: 100%;
    }
    
    .winner-ball {
        padding: 1rem;
        min-height: 120px;
    }
    
    .wallet-address {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .prize-amount {
        font-size: 0.9rem;
    }
    
    /* Tokenomics Mobile */
    #tokenomics {
        padding: 2rem 1rem;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tokenomics-card {
        padding: 1.5rem;
    }
    
    .tokenomics-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .tokenomics-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* FAQ Mobile */
    #faq {
        padding: 2rem 1rem;
    }
    
    .faq-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-container {
        gap: 0.8rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Footer Mobile */
    footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-disclaimer p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
}

/* Small Mobile - 480px and below */
@media screen and (max-width: 480px) {
    /* Hero Extra Small Mobile */
    #hero {
        padding: 1rem 0.5rem;
        min-height: 60vh;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    #hero p {
        font-family: 'PressStart2P', monospace;
        font-size: 1.3rem;
        max-width: 600px;
        font-weight: 600;
        color: var(--deep-blue);
        margin-bottom: 3rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        position: relative;
        z-index: 1;
    }
    
    .hero-content {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Buy Button Extra Small */
    .buy-now-btn {
        font-size: 0.8rem;
        padding: 1rem 1.5rem;
        letter-spacing: 0.05em;
    }
    
    /* Jackpot Extra Small */
    .jackpot-display {
        padding: 1rem;
        margin: 0 auto;
        gap: 1rem;
        min-width: auto;
        max-width: 95%;
        width: 100%;
    }
    
    .jackpot-amount.major #major-jackpot-value,
    .jackpot-amount.minor #jackpot-value {
        font-size: 2rem;
    }
    
    .currency-symbol {
        font-size: 1.5rem;
    }
    
    .jackpot-label {
        font-size: 0.8rem;
    }

    /* Payout Info Small Mobile */
    .payout-date {
        font-size: 1rem;
    }

    .payout-time {
        font-size: 0.7rem;
    }
    
    /* Timer Extra Small */
    .sticky-timer,
    .daily-timer {
        padding: 0.6rem 0.8rem;
        margin: 0.3rem;
        font-size: 0.7rem;
    }
    
    .sticky-timer-display,
    .daily-timer-display {
        font-size: 0.9rem;
    }
    
    /* Winners Grid Single Column */
    .winners-list-header {
        grid-template-columns: 40px 1.5fr 1fr 60px 60px;
        padding: 0.8rem 1rem;
        font-size: 0.5rem;
    }

    .winners-scrollable {
        max-height: 300px;
    }

    .winner-row {
        grid-template-columns: 40px 1.5fr 1fr 60px 60px;
        padding: 0.8rem 1rem;
        font-size: 0.75rem;
    }

    .winner-wallet {
        font-size: 0.7rem;
    }

    .winner-amount {
        font-size: 0.6rem;
    }

    .winner-type {
        font-size: 0.5rem;
        padding: 0.1rem 0.3rem;
    }

    .winner-transaction a {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
    }
    
    .winner-ball {
        padding: 0.8rem;
        min-height: 100px;
    }
    
    /* Blockchain Buttons Stack */
    .blockchain-view-btn {
        font-size: 0.7rem;
        padding: 0.6rem 1rem;
    }
    
    /* Container Padding */
    .container {
        padding: 0 0.5rem;
    }
    
    /* Section Padding Reduction */
    #previous-winners,
    #tokenomics,
    #faq {
        padding: 1.5rem 0.5rem;
    }
}

/* Extra Small Mobile - 320px and below */
@media screen and (max-width: 320px) {
    #hero h1 {
        font-size: 1.5rem;
    }
    
    .buy-now-btn {
        font-size: 0.7rem;
        padding: 0.8rem 1.2rem;
    }
    
    .jackpot-amount.major #major-jackpot-value,
    .jackpot-amount.minor #jackpot-value {
        font-size: 1.8rem;
    }
    
    .currency-symbol {
        font-size: 1.2rem;
    }
    
    .sticky-timer-display,
    .daily-timer-display {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 0.3rem;
    }
} 