:root {
    --primary-red: #C41E3A;
    --dark-red: #8B0000;
    --chocolate-brown: #4B2C20;
    --tan-bg: #F5E6D3;
    --peach-card: #FF9E80;
    --gold: #FFD700;
    --white: #FFFFFF;
    --black: #000000;
    --purple-btn: #8E44AD;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-image: url('Gemini_Generated_Image_r7vof5r7vof5r7vossa.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, .logo-text, .connect-btn, .cta-btn, .game-info h3 {
    font-family: 'Luckiest Guy', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 30px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 70px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    animation: float 4s ease-in-out infinite;
}

.logo-labels {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.kitcat-label {
    font-size: 28px;
    color: #FFEB3B; /* Yellow */
    -webkit-text-stroke: 1.5px var(--chocolate-brown);
    text-shadow: 2px 2px 0 var(--chocolate-brown);
}

.casino-label {
    font-size: 24px;
    color: var(--white);
    -webkit-text-stroke: 1.5px var(--chocolate-brown);
    text-shadow: 2px 2px 0 var(--chocolate-brown);
    margin-top: -5px;
}

.nav-icons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: var(--chocolate-brown);
    border: 3px solid #6D4C41;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 0 #2D1A12;
}

.nav-btn:hover {
    transform: translateY(-2px);
    background: #5D4037;
}

.nav-btn.active {
    background: var(--primary-red);
    border-color: #FF5252;
    box-shadow: 0 4px 0 #7B0000;
}

.icon-home, .icon-close {
    font-style: normal;
    font-size: 24px;
}

/* Balance & Connect */
.balance-container {
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.balance-value {
    font-weight: 700;
    font-size: 14px;
    color: var(--gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.connect-btn {
    background: linear-gradient(180deg, #FF5252 0%, #C41E3A 100%);
    border: 3px solid #7B0000;
    color: white;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 6px 0 #7B0000;
    transition: all 0.1s;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.connect-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #7B0000;
}

.connect-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #7B0000;
}

/* Hero Section */
.hero-section {
    margin-bottom: 50px;
}

.hero-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-card.static-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: radial-gradient(circle at 30% 50%, #FFB08E 0%, #FF5252 100%);
    border-radius: 30px;
    padding: 30px 40px;
    border: 8px solid #4E342E;
    box-shadow: 0 15px 0 #2D1A12, 0 20px 40px rgba(0, 0, 0, 0.5);
    min-height: 420px;
    gap: 40px;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h2 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
    -webkit-text-stroke: 2.5px var(--chocolate-brown);
    text-shadow: 4px 4px 0 var(--chocolate-brown);
}

.hero-text .highlight {
    color: #FFEB3B;
    display: block;
}

.cta-btn {
    background: linear-gradient(180deg, #8E44AD 0%, #673AB7 100%);
    border: 4px solid #4E342E;
    color: white;
    padding: 18px 45px;
    border-radius: 15px;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 0 #2D1A12;
    transition: all 0.2s;
    align-self: flex-start;
}

.cta-btn:hover {
    transform: translateY(2px) scale(1.05);
    box-shadow: 0 6px 0 #2D1A12;
}

.hero-image-container {
    flex: 1.6;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 110%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 235, 59, 0.3)) drop-shadow(0 15px 30px rgba(0,0,0,0.5));
    transform: translateX(-40px);
}

/* Hover animation removed */

/* Games Grid */
.games-section {
    text-align: center;
}

.section-title {
    font-size: 56px;
    color: #FFEB3B;
    margin-bottom: 40px;
    -webkit-text-stroke: 3px var(--chocolate-brown);
    text-shadow: 6px 6px 0 var(--chocolate-brown);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

.game-card {
    background: #FFAB91; /* Light peach/red */
    border: 8px solid #4E342E;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 0 #2D1A12;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 0 #2D1A12;
}

.game-thumb {
    flex: 1;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-thumb img {
    transform: scale(1.1);
}

.game-info {
    padding: 10px;
    background: #4E342E;
    text-align: center;
    border-top: 4px solid #3E2723;
}

.game-info h3 {
    font-size: 24px;
    color: white;
    -webkit-text-stroke: 1px rgba(0,0,0,0.5);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* Footer Support */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    pointer-events: none;
}

.support-bar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-weight: bold;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.support-icon {
    font-size: 20px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.logo-img {
    animation: float 3s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }

    .main-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5px;
        margin-bottom: 20px;
    }

    .logo-img {
        height: 50px;
    }

    .logo-labels {
        display: none; /* Hide labels to save space in header on mobile */
    }

    .nav-icons {
        gap: 8px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .connect-btn {
        padding: 8px 15px;
        font-size: 16px;
        box-shadow: 0 4px 0 #7B0000;
    }

    /* Hero Banner Mobile */
    .hero-section {
        margin-bottom: 30px;
    }

    .hero-card.static-hero {
        flex-direction: column;
        padding: 20px;
        min-height: auto;
        gap: 20px;
        border-width: 5px;
        border-radius: 20px;
    }

    .hero-text {
        text-align: center;
        align-items: center;
        order: 2;
    }

    .hero-text h2 {
        font-size: 32px;
        margin-bottom: 15px;
        -webkit-text-stroke: 1.5px var(--chocolate-brown);
        text-shadow: 2px 2px 0 var(--chocolate-brown);
    }

    .cta-btn {
        padding: 12px 30px;
        font-size: 20px;
        align-self: center;
    }

    .hero-image-container {
        order: 1;
        width: 100%;
    }

    .hero-img {
        width: 80%;
        max-height: 250px;
        transform: translateX(0); /* Center on mobile */
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-bottom: 80px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 25px;
    }
}

/* Game Modal & Roulette Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #FF6B6B 0%, #D63031 100%);
    width: 100%;
    max-width: 900px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Roulette UI */
.game-ui {
    display: flex;
    flex-direction: column;
    gap: 25px;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.game-header {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.stat-box span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-bar {
    background: rgba(0, 0, 0, 0.3);
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
    overflow-x: auto;
}

.history-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.betting-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.number-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    display: flex;
    gap: 10px;
}

.bet-btn {
    flex: 1;
    height: 60px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.bet-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.bet-btn.selected {
    border: 3px solid #FFEB3B;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.5);
    transform: translateY(-2px);
}

.bet-btn.pink { background-color: #FD4D6D; }
.bet-btn.dark { background-color: #1A1F2C; }
.bet-btn.orange { background-color: #FF9F43; }
.bet-btn.special { background-color: rgba(255, 255, 255, 0.15); font-size: 14px; }
.bet-btn.red { background-color: #FD4D6D; }
.bet-btn.black { background-color: #1A1F2C; }

.special-bets {
    display: flex;
    gap: 10px;
}

.game-footer {
    margin-top: 10px;
}

.bet-control {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    border-radius: 20px;
}

.amount-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1A1F2C;
    padding: 8px 15px;
    border-radius: 12px;
    flex: 1;
}

.amount-selector img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.amount-selector input {
    background: none;
    border: none;
    color: white;
    width: 60px;
    font-size: 16px;
    font-weight: 700;
}

.primary-btn {
    background: #FFEB3B;
    color: #4E342E;
    border: none;
    padding: 12px 40px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 0 #B8860B;
    transition: all 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #B8860B;
}

.primary-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #B8860B;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
}

/* Outcome Highlight Animation */
@keyframes highlight-win {
    0% { transform: scale(1); background-color: initial; }
    50% { transform: scale(1.1); background-color: #FFEB3B; color: #000; }
    100% { transform: scale(1); background-color: initial; }
}

.winning-bet {
    animation: highlight-win 0.5s ease-in-out 3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 15px;
        border-radius: 20px;
    }
    
    .row {
        gap: 5px;
    }
    
    .bet-btn {
        height: 50px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .game-header {
        gap: 20px;
    }
    
    .stat-box span {
        font-size: 18px;
    }
    
    .bet-control {
        flex-direction: column;
        gap: 15px;
    }
    
    .amount-selector {
        width: 100%;
    }
    
    .primary-btn {
        width: 100%;
    }
}

/* Wallet Selector Styles */
.wallet-selector {
    background: linear-gradient(135deg, #2D1A12 0%, #1A1F2C 100%);
    max-width: 450px;
    text-align: center;
}

.modal-title {
    font-family: 'Luckiest Guy', cursive;
    color: #FFEB3B;
    font-size: 32px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.wallet-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wallet-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.wallet-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #FFEB3B;
}

.wallet-option img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.wallet-option span {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Flip & Slots Game Styles */
.flip-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    perspective: 1000px;
}

.kitcat-coin {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 2.5, 0.6, 1);
}

.side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFD700;
    border: 8px solid #B8860B;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.side img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.side.tails {
    transform: rotateY(180deg);
}

.side-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.side-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.side-btn.active {
    background: #FFEB3B;
    color: #4E342E;
    border-color: #FFEB3B;
    box-shadow: 0 0 15px #FFEB3B;
}

/* Slots Styles */
.slots-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.reel {
    width: 100px;
    height: 120px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
    border: 4px solid #4E342E;
    transition: transform 0.1s;
}

.reel img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
