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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(ellipse at top, #0a0a0a, #000000);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Wallet Connection Screen */
.wallet-connect {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
}

.wallet-connect .logo-container {
    margin-bottom: 30px;
}

.wallet-connect .x-logo {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 4px solid #374151;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.wallet-connect .x-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.wallet-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.wallet-logo-img {
    max-width: 1500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.wallet-connect p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #888888;
    font-weight: 600;
}

.connect-btn {
    background: #C9A961;
    color: #000000;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.connect-btn:hover {
    background: #D4AF37;
    transform: translateY(-1px);
}

/* Game Header */
.game-header {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(10, 10, 10, 0.95));
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #C9A961;
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.3),
                0 0 60px rgba(201, 169, 97, 0.15),
                inset 0 0 20px rgba(201, 169, 97, 0.05);
    position: relative;
    overflow: hidden;
}

.game-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(201, 169, 97, 0.1) 50%, transparent 70%);
    animation: headerShine 8s linear infinite;
}

@keyframes headerShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 843px;
}

.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.wallet-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

#wallet-address {
    background: #1a1a1a;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.85rem;
    color: #cccccc;
    border: 1px solid #333333;
}

.disconnect-btn {
    background: #333333;
    border: none;
    padding: 8px 16px;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.disconnect-btn:hover {
    background: #444444;
}

/* X Social Link */
.social-link {
    text-align: right;
}

.x-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #000000;
    border: 2px solid #C9A961;
    border-radius: 8px;
    color: #C9A961;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.x-link:hover {
    background: #C9A961;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.x-link svg {
    width: 20px;
    height: 20px;
}

/* Pot Section */
.pot-section {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(0, 0, 0, 0.9));
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #C9A961;
    box-shadow: 0 0 40px rgba(201, 169, 97, 0.4),
                0 0 80px rgba(201, 169, 97, 0.2),
                inset 0 0 30px rgba(201, 169, 97, 0.1);
    position: relative;
    animation: goldenPulse 3s ease-in-out infinite;
}

@keyframes goldenPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(201, 169, 97, 0.4),
                    0 0 80px rgba(201, 169, 97, 0.2),
                    inset 0 0 30px rgba(201, 169, 97, 0.1);
    }
    50% {
        box-shadow: 0 0 60px rgba(201, 169, 97, 0.6),
                    0 0 120px rgba(201, 169, 97, 0.3),
                    inset 0 0 40px rgba(201, 169, 97, 0.15);
    }
}

.pot-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 500;
}

.total-pot {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #C9A961, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(201, 169, 97, 0.8))
            drop-shadow(0 0 40px rgba(255, 215, 0, 0.5));
    animation: shimmer 2s linear infinite;
}

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

/* Countdown Section */
.countdown-section {
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(26, 26, 26, 0.8));
    border-radius: 16px;
    padding: 40px;
    border: 2px solid #C9A961;
    box-shadow: 0 0 35px rgba(201, 169, 97, 0.35),
                0 0 70px rgba(201, 169, 97, 0.15),
                inset 0 0 25px rgba(201, 169, 97, 0.08);
    position: relative;
}

.countdown-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 500;
}

.countdown {
    font-size: 4rem;
    font-weight: 200;
    color: #FFD700;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
                 0 0 40px rgba(201, 169, 97, 0.4);
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

/* Aggressive countdown animation for 10-0 seconds */
.countdown.critical {
    animation: aggressiveShake 0.3s infinite, glowPulse 0.5s infinite;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.8),
                 0 0 40px rgba(255, 68, 68, 0.6);
}

@keyframes aggressiveShake {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    10% { 
        transform: translate(-3px, -3px) rotate(-2deg) scale(1.05);
    }
    20% { 
        transform: translate(3px, 3px) rotate(2deg) scale(1.08);
    }
    30% { 
        transform: translate(-4px, 2px) rotate(-1deg) scale(1.06);
    }
    40% { 
        transform: translate(4px, -2px) rotate(2deg) scale(1.09);
    }
    50% { 
        transform: translate(-2px, 4px) rotate(-2deg) scale(1.07);
    }
    60% { 
        transform: translate(2px, -4px) rotate(1deg) scale(1.1);
    }
    70% { 
        transform: translate(-3px, 3px) rotate(-2deg) scale(1.06);
    }
    80% { 
        transform: translate(4px, -3px) rotate(2deg) scale(1.08);
    }
    90% { 
        transform: translate(-2px, 2px) rotate(-1deg) scale(1.05);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 68, 68, 0.8));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 30px rgba(255, 68, 68, 1));
    }
}

/* How It Works Main Section */
.how-it-works-main {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(0, 0, 0, 0.9));
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #C9A961;
    box-shadow: 0 0 35px rgba(201, 169, 97, 0.35),
                0 0 70px rgba(201, 169, 97, 0.18),
                inset 0 0 25px rgba(201, 169, 97, 0.08);
    position: relative;
}

.how-it-works-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #C9A961, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px rgba(201, 169, 97, 0.6));
}

.requirement-note {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #FFD700;
    background: rgba(201, 169, 97, 0.15);
    border: 2px solid #C9A961;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 0 auto 24px;
    max-width: 600px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.3),
                inset 0 0 15px rgba(201, 169, 97, 0.1);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.work-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(201, 169, 97, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.15);
}

.work-step:hover {
    background: rgba(201, 169, 97, 0.15);
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.4),
                0 0 60px rgba(255, 215, 0, 0.2);
}

.work-step-full {
    grid-column: 1 / -1;
    justify-content: center;
}

.work-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C9A961, #FFD700);
    color: #000000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.6),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.work-text {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Betting Section */
.betting-section {
    margin-bottom: 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(15, 15, 15, 0.85));
    border-radius: 16px;
    padding: 40px;
    border: 2px solid #C9A961;
    box-shadow: 0 0 40px rgba(201, 169, 97, 0.4),
                0 0 80px rgba(201, 169, 97, 0.2),
                inset 0 0 30px rgba(201, 169, 97, 0.1);
}

/* Voting Timer */
.voting-timer {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(255, 212, 59, 0.1), rgba(201, 169, 97, 0.1));
    border: 2px solid rgba(255, 212, 59, 0.3);
    border-radius: 8px;
    color: #ffd43b;
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.betting-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.bet-btn {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    height: 180px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.bet-btn:hover {
    transform: translateY(-2px);
}

.bet-btn:active {
    transform: translateY(0);
}

.bet-btn.selected {
    animation: selectedPulse 0.3s ease;
}

@keyframes selectedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.btn-text {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.count {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.red-btn {
    background: #dc2626;
    color: #ffffff;
}

.red-btn:hover {
    background: #b91c1c;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.black-btn {
    background: #1f2937;
    color: #ffffff;
}

.black-btn:hover {
    background: #111827;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Result Section */
.result-section {
    text-align: center;
    margin-top: 40px;
    background: #000000;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #333333;
}

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

.wheel-container::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid #ffffff;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        #ff0000 0deg 180deg,
        #000000 180deg 360deg
    );
    border: 8px solid #374151;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 7s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center;
}

.wheel.spinning {
    animation: wheelSpin 7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(var(--final-rotation, 3600deg)); }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wheel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #ffffff;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #ffffff;
    transform: translate(-50%, -50%) rotate(90deg);
    z-index: 1;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.wheel-pointer {
    display: none;
}

.result-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 24px;
    color: #ffffff;
}

.result-text.win {
    color: #C9A961;
}

.result-text.lose {
    color: #C9A961;
}

/* Game Layout */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.game-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Game Sidebar */
.game-sidebar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.9));
    border-radius: 16px;
    padding: 24px;
    border: 2px solid rgba(201, 169, 97, 0.5);
    box-shadow: 0 0 25px rgba(201, 169, 97, 0.25),
                0 0 50px rgba(201, 169, 97, 0.12),
                inset 0 0 20px rgba(201, 169, 97, 0.05);
    position: sticky;
    top: 20px;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #C9A961, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid rgba(201, 169, 97, 0.3);
    padding-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.4));
}

/* Round History */
.round-history {
    max-height: 200px;
    overflow-y: auto;
}

/* How It Works */
.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.1);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #C9A961, #FFD700);
    color: #000000;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

.step-text {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.4;
    flex: 1;
}

.round-item {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.1);
    transition: all 0.3s ease;
}

.round-item:hover {
    border-color: rgba(201, 169, 97, 0.6);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.2);
}

.round-item:last-child {
    margin-bottom: 0;
}

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.round-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.round-result {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.round-result.red {
    background: #dc2626;
    color: #ffffff;
}

.round-result.black {
    background: #1f2937;
    color: #ffffff;
}

.round-result.green {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.round-details {
    font-size: 0.8rem;
    color: #888888;
    line-height: 1.4;
}

.round-winner {
    color: #10b981;
    font-weight: 500;
}

.round-participants {
    color: #cccccc;
}

.round-hash {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.75rem;
    color: #666666;
    word-break: break-all;
    margin-top: 4px;
}

/* Current Round Info */
.current-round-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.1);
}

.info-label {
    font-size: 0.85rem;
    color: #888888;
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

/* Fair Hash Info */
.fair-hash-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hash-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.1);
}

.hash-label {
    font-size: 0.8rem;
    color: #888888;
    font-weight: 500;
}

.hash-value {
    font-size: 0.75rem;
    color: #ffffff;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
    word-break: break-all;
}

/* Provably Fair Section */
.provably-fair-section {
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(15, 15, 15, 0.85));
    border-radius: 16px;
    padding: 32px;
    border: 2px solid #C9A961;
    box-shadow: 0 0 35px rgba(201, 169, 97, 0.35),
                0 0 70px rgba(201, 169, 97, 0.18),
                inset 0 0 25px rgba(201, 169, 97, 0.08);
}

.provably-fair-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #C9A961, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    filter: drop-shadow(0 0 15px rgba(201, 169, 97, 0.6));
}

.fair-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.fair-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.1);
}

.fair-label {
    font-size: 0.9rem;
    color: #888888;
    font-weight: 500;
}

.fair-value {
    font-size: 0.85rem;
    color: #ffffff;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
    word-break: break-all;
    text-align: right;
    max-width: 200px;
}

.fair-explanation {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.1);
}

.fair-explanation p {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
    margin: 0;
}

/* Airdrop Notification */
.airdrop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.airdrop-notification.error-notification {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.notification-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.notification-content p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Color Box */
.color-box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.color-box {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    border: 8px solid #374151;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.1s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background-image: url('https://i.ibb.co/XfDKgh7x/photo-2025-10-23-4-12-52-pm.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.color-box.red {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    background-image: none !important;
}

.color-box.black {
    background: linear-gradient(135deg, #1f2937, #111827) !important;
    background-image: none !important;
}

.color-box.flipping {
    animation: colorFlip 0.1s infinite;
}

.color-box.slowing {
    animation: colorFlipSlow 0.3s infinite;
}

.color-box.final {
    animation: colorFlipFinal 0.8s infinite;
}

@keyframes colorFlip {
    0% { 
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, #1f2937, #111827);
        transform: scale(1.02);
    }
    100% { 
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: scale(1);
    }
}

@keyframes colorFlipSlow {
    0% { 
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, #1f2937, #111827);
        transform: scale(1.01);
    }
    100% { 
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: scale(1);
    }
}

@keyframes colorFlipFinal {
    0% { 
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, #1f2937, #111827);
        transform: scale(1.005);
    }
    100% { 
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-image {
        max-width: 100%;
        order: 2;
    }
    
    .wallet-info {
        order: 1;
        justify-content: center;
    }
    
    .portfolio {
        order: 3;
        text-align: center;
    }
    
    .game-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .portfolio {
        text-align: left;
    }
    
    .betting-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bet-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .countdown {
        font-size: 3rem;
    }
    
    .wallet-connect h1 {
        font-size: 2.5rem;
    }
    
    .wheel-container {
        width: 250px;
        height: 250px;
    }
    
    .fair-info {
        grid-template-columns: 1fr;
    }
    
    .fair-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fair-value {
        text-align: left;
        max-width: 100%;
    }
    
    .game-sidebar {
        padding: 16px;
    }
    
    .sidebar-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .wallet-connect {
        padding: 20px 16px;
    }
    
    .wallet-connect h1 {
        font-size: 2rem;
    }
    
    .countdown-section,
    .betting-section,
    .result-section {
        padding: 24px;
    }
}

/* Airdrop Notifications */
.airdrop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.4);
    z-index: 9999;
    animation: slideIn 0.5s ease-out;
    max-width: 400px;
    font-weight: 600;
}

.airdrop-notification.error-notification {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(255, 68, 68, 0.4);
}

.notification-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.notification-content p {
    margin: 5px 0;
    font-size: 0.95rem;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Video Section */
.video-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(0, 0, 0, 0.95));
    border: 2px solid #C9A961;
    box-shadow: 0 0 25px rgba(201, 169, 97, 0.25),
                0 0 50px rgba(201, 169, 97, 0.12),
                inset 0 0 20px rgba(201, 169, 97, 0.05);
    border-radius: 12px;
}

.video-container {
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    border-radius: 8px;
    display: block;
}

.video-description {
    font-size: 0.75rem;
    color: #FFD700;
    line-height: 1.4;
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Green Button */
.green-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    position: relative;
}

.green-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.green-btn.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
}

.bonus-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fbbf24;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    border: 2px solid #000;
}

/* Rolling Blocks Interface */
.rolling-blocks-container {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background: #000;
    border: 2px solid #C9A961;
    border-radius: 16px;
}

.blocks-track-wrapper {
    position: relative;
    overflow: hidden;
    height: 120px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 2px solid #333;
}

.indicator-arrow {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #C9A961;
    z-index: 10;
    text-shadow: 0 0 10px rgba(201, 169, 97, 0.8);
    animation: arrowBounce 0.8s infinite;
}

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

.blocks-track {
    display: flex;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: left 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.blocks-track.rolling {
    transition: left 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.block {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    margin: 0 4px;
    border: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.block.red {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border-color: #7f1d1d;
}

.block.black {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    border-color: #374151;
}

.block.green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    border-color: #065f46;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

/* Result Section Adjustments */
.result-section {
    margin-top: 30px;
}

.betting-section h2 {
    text-align: center;
    color: #C9A961;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.betting-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.betting-hint {
    text-align: center;
    color: #10b981;
    font-size: 0.95rem;
    margin-top: 15px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Rollover Notification */
.rollover-notification {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.6) !important;
    border: 2px solid #34d399;
}

.rollover-notification h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rollover-notification .hint {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.9;
}

/* Rollover Result Message */
.result-text.rollover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: rolloverPulse 2s infinite;
}

.rollover-message {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

.rollover-message h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.rollover-message p {
    font-size: 1.1rem;
    margin: 8px 0;
}

.rollover-message .pot-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    margin: 15px 0;
}

.rollover-message .hint {
    font-style: italic;
    opacity: 0.8;
    margin-top: 12px;
    font-size: 0.95rem;
}

@keyframes rolloverPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.8);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Last 5 Rounds Section */
.last-rounds-section {
    margin: 1.5rem auto;
    text-align: center;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.95));
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #C9A961;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
                0 0 35px rgba(201, 169, 97, 0.3),
                0 0 70px rgba(201, 169, 97, 0.15),
                inset 0 0 20px rgba(201, 169, 97, 0.08);
    max-width: 600px;
}

.last-rounds-title {
    background: linear-gradient(135deg, #C9A961, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(201, 169, 97, 0.6));
}

.rounds-history {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    align-items: center;
}

.round-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8), rgba(60, 60, 60, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.round-bubble:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.round-bubble.red {
    background: linear-gradient(145deg, #de4c41, #c0392b);
    border-color: rgba(222, 76, 65, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(222, 76, 65, 0.4);
}

.round-bubble.black {
    background: linear-gradient(145deg, #31353c, #272b33);
    border-color: rgba(49, 53, 60, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(49, 53, 60, 0.4);
}

.round-bubble.green {
    background: linear-gradient(145deg, #00c74d, #00913c);
    border-color: rgba(0, 199, 77, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(0, 199, 77, 0.6),
                0 0 40px rgba(0, 199, 77, 0.3);
}

.round-bubble.empty {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8), rgba(60, 60, 60, 0.6));
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.round-bubble.empty::after {
    content: '?';
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.round-bubble.new-result {
    animation: newResultPulse 0.8s ease-out;
}

@keyframes newResultPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 169, 97, 0.6); }
    100% { transform: scale(1); }
}

/* Reel Roller Styles */
.roller-container {
    position: relative;
    margin: 3rem auto;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.9));
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #C9A961;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(201, 169, 97, 0.35),
                0 0 80px rgba(201, 169, 97, 0.18),
                inset 0 1px 0 rgba(201, 169, 97, 0.15);
    max-width: 800px;
    opacity: 1 !important;
    visibility: visible !important;
}

.roller-wrapper {
    position: relative;
    height: 70px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid rgba(201, 169, 97, 0.4);
    box-shadow: inset 0 0 15px rgba(201, 169, 97, 0.1);
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.reel {
    display: flex;
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
    height: 100%;
    min-width: 24000px; /* 300 tiles * ~80px each = 24000px */
    opacity: 1 !important;
    visibility: visible !important;
}

.reel-item {
    line-height: 70px;
    height: 70px;
    width: 70px;
    margin: 0 0.1rem;
    border-radius: 0.625rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
}

.reel-item.red {
    background-color: #de4c41;
    box-shadow: inset 0 2px 0 #e5564b, inset 0 -2px 0 #ad362d;
}

.reel-item.green {
    background-color: #00c74d;
    box-shadow: inset 0 2px 0 #35d87b, inset 0 -2px 0 #00913c;
}

.reel-item.black {
    background-color: #31353c;
    box-shadow: inset 0 2px 0 0 #3b3f47, inset 0 -2px 0 0 #272b33;
}

.roller-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 70px;
    background: linear-gradient(180deg, #C9A961 0%, #D4AF37 50%, #C9A961 100%);
    border-radius: 3px;
    box-shadow: 0 0 25px rgba(201, 169, 97, 0.9), 0 0 50px rgba(201, 169, 97, 0.4);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: indicatorPulse 2s ease-in-out infinite;
}

.roller-indicator::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -5px;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #C9A961 0%, #D4AF37 70%, #C9A961 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(201, 169, 97, 1), 0 0 60px rgba(201, 169, 97, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.roller-indicator::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -5px;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #C9A961 0%, #D4AF37 70%, #C9A961 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(201, 169, 97, 1), 0 0 60px rgba(201, 169, 97, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: dotPulse 1.5s ease-in-out infinite 0.5s;
}

@keyframes indicatorPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(201, 169, 97, 0.9), 0 0 50px rgba(201, 169, 97, 0.4); }
    50% { box-shadow: 0 0 35px rgba(201, 169, 97, 1), 0 0 70px rgba(201, 169, 97, 0.6); }
}

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

/* ================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Game screen layout */
    .game-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .wallet-info {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats sections */
    .stats-section, .total-pot-section, .countdown-section, .betting-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .stats-section h2, .total-pot-section h2, .countdown-section h2, .betting-section h2 {
        font-size: 1.2rem;
    }
    
    /* Betting buttons */
    .betting-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .bet-btn {
        min-width: 100%;
        max-width: 100%;
        height: 120px;
    }
    
    .btn-text {
        font-size: 1.5rem;
    }
    
    .count {
        font-size: 0.9rem;
    }
    
    /* Countdown */
    .countdown {
        font-size: 3rem;
    }
    
    /* Total pot */
    .total-pot {
        font-size: 2rem;
    }
    
    /* Round history */
    .last-rounds-section {
        padding: 15px;
    }
    
    .rounds-history {
        gap: 8px;
    }
    
    .round-bubble {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
    
    /* Result roller */
    .result-section {
        padding: 20px 15px;
    }
    
    .roller-container {
        padding: 15px;
    }
    
    .roller-wrapper {
        height: 60px;
    }
    
    .reel-item {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.2rem;
        margin: 0 0.05rem;
    }
    
    .roller-indicator {
        width: 4px;
        height: 60px;
    }
    
    .roller-indicator::before,
    .roller-indicator::after {
        width: 12px;
        height: 12px;
        left: -4px;
    }
    
    /* Voting timer */
    .voting-timer {
        font-size: 0.95rem;
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    
    /* How It Works */
    .how-it-works-main {
        padding: 20px;
    }
    
    .how-it-works-title {
        font-size: 1.5rem;
    }
    
    .how-it-works-grid {
        gap: 12px;
    }
    
    .work-step {
        padding: 12px 16px;
    }
    
    .work-text {
        font-size: 0.9rem;
    }
}

/* Mobile phones (480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Wallet connect screen */
    .wallet-connect .x-logo {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .wallet-logo-img {
        max-width: 250px;
    }
    
    .wallet-connect p {
        font-size: 0.95rem;
    }
    
    .connect-btn {
        font-size: 0.9rem;
        padding: 14px 24px;
    }
    
    /* Game header */
    .game-header {
        padding: 10px;
    }
    
    .wallet-address {
        font-size: 0.85rem;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item h3 {
        font-size: 0.8rem;
    }
    
    .stat-item .value {
        font-size: 1.5rem;
    }
    
    /* Sections */
    .stats-section, .total-pot-section, .countdown-section, .betting-section {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .stats-section h2, .total-pot-section h2, .countdown-section h2, .betting-section h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Betting buttons */
    .betting-buttons {
        gap: 12px;
    }
    
    .bet-btn {
        height: 100px;
        min-width: 100%;
    }
    
    .btn-text {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .count {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    /* Countdown */
    .countdown {
        font-size: 2.5rem;
    }
    
    /* How It Works */
    .how-it-works-main {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .how-it-works-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .work-step {
        padding: 12px 14px;
    }
    
    .work-number {
        min-width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .work-text {
        font-size: 0.85rem;
    }
    
    /* Total pot */
    .total-pot {
        font-size: 1.8rem;
    }
    
    /* X Link */
    .x-link {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .x-link svg {
        width: 16px;
        height: 16px;
    }
    
    /* Round history */
    .last-rounds-section {
        padding: 12px;
    }
    
    .last-rounds-title {
        font-size: 0.9rem;
    }
    
    .rounds-history {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .round-bubble {
        width: 32px;
        height: 32px;
        font-size: 0.65rem;
    }
    
    /* Result section */
    .result-section {
        padding: 15px 10px;
    }
    
    .roller-container {
        padding: 12px;
    }
    
    .roller-wrapper {
        height: 50px;
    }
    
    .reel-item {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1rem;
    }
    
    .roller-indicator {
        width: 3px;
        height: 50px;
    }
    
    .roller-indicator::before,
    .roller-indicator::after {
        width: 10px;
        height: 10px;
        left: -3.5px;
    }
    
    /* Betting hint */
    .betting-hint {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Voting timer */
    .voting-timer {
        font-size: 0.85rem;
        padding: 8px 12px;
        margin-bottom: 12px;
    }
    
    /* Notifications */
    .airdrop-notification {
        width: 90%;
        margin: 10px auto;
        padding: 12px 15px;
    }
    
    .airdrop-notification h3 {
        font-size: 1rem;
    }
    
    .airdrop-notification p {
        font-size: 0.85rem;
    }
}

/* Very small phones (360px) */
@media (max-width: 360px) {
    .wallet-logo-img {
        max-width: 200px;
    }
    
    .connect-btn {
        font-size: 0.85rem;
        padding: 12px 20px;
    }
    
    .bet-btn {
        height: 90px;
    }
    
    .btn-text {
        font-size: 1.2rem;
    }
    
    .countdown {
        font-size: 2rem;
    }
    
    .total-pot {
        font-size: 1.5rem;
    }
    
    .roller-wrapper {
        height: 45px;
    }
    
    .reel-item {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 0.9rem;
    }
    
    .round-bubble {
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
    }
}