:root {
    --primary: #ff006e;
    --secondary: #fb5607;
    --accent: #ff69eb;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #252541;
    --lighter: #2d2d4a;
    --pink-glow: rgba(255, 0, 110, 0.3);
    --text-light: #f0f0f5;
    --text-dim: #b0b0c0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 0, 110, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(251, 86, 7, 0.1) 0px, transparent 50%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-light);
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--primary);
    filter: drop-shadow(0 0 20px var(--pink-glow));
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 300;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    font-size: 1rem;
    border: 2px solid var(--primary);
    border-radius: 12px;
    cursor: pointer;
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 110, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--pink-glow);
}

.btn-secondary {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 4px 12px rgba(251, 86, 7, 0.15);
}

.btn-secondary:hover {
    background: var(--secondary);
    box-shadow: 0 6px 20px rgba(251, 86, 7, 0.3);
}

.win-message {
    display: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    animation: glow 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 30px var(--pink-glow);
}

.win-message.show {
    display: block;
}

@keyframes glow {
    from { 
        box-shadow: 0 0 20px var(--pink-glow);
        transform: scale(1);
    }
    to { 
        box-shadow: 0 0 30px var(--pink-glow);
        transform: scale(1.02);
    }
}

.bingo-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    background: var(--dark);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 40px rgba(255, 0, 110, 0.03);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 0, 110, 0.15);
}

.bingo-cell {
    aspect-ratio: 1;
    background: var(--light);
    border: 2px solid rgba(255, 0, 110, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    color: var(--text-light);
}

.bingo-cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.15), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bingo-cell:hover::before {
    width: 200%;
    height: 200%;
}

.bingo-cell:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    background: var(--lighter);
    box-shadow: 0 4px 16px rgba(255, 0, 110, 0.2);
}

.bingo-cell.free {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 3rem;  /* Much bigger emoji */
    cursor: default;
    border-color: transparent;
    box-shadow: 0 0 30px var(--pink-glow);
    font-weight: 800;
}

.bingo-cell.free:hover {
    transform: none;
}

.bingo-cell.marked {
    background: var(--primary);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--pink-glow);
    animation: pulse 0.3s ease-out;
}

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

.bingo-cell.marked::after {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    font-weight: 900;
}

footer {
    text-align: center;
    color: var(--text-dim);
    margin-top: 20px;
}

footer p {
    margin: 5px 0;
}

.credits {
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .bingo-board {
        gap: 6px;
        padding: 12px;
    }
    
    .bingo-cell {
        font-size: 0.55rem;
        padding: 4px;
        line-height: 1.1;
    }
    
    .bingo-cell.free {
        font-size: 2rem;  /* Smaller on mobile but still prominent */
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}

@media (min-width: 768px) {
    .bingo-board {
        max-width: 650px;
        margin: 0 auto 20px;
        gap: 12px;
    }
    
    .bingo-cell {
        font-size: 0.82rem;
        padding: 10px;
    }
    
    .bingo-cell.free {
        font-size: 3.5rem;  /* Even bigger on desktop */
    }
}


/* Win Animation */
.win-animation {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.win-animation.show {
    display: block;
}

/* Clouds */
.cloud {
    position: absolute;
    top: -150px;
    animation: cloudSlideIn 1s ease-out forwards;
}

.cloud-left {
    left: 20%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.cloud-center {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.15s;
}

.cloud-right {
    left: 80%;
    transform: translateX(-50%);
    animation-delay: 0.3s;
}

@keyframes cloudSlideIn {
    to {
        top: -80px;
    }
}

.cloud-part {
    position: absolute;
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cloud-part1 {
    width: 80px;
    height: 80px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.cloud-part2 {
    width: 65px;
    height: 65px;
    top: 20px;
    left: 10%;
}

.cloud-part3 {
    width: 65px;
    height: 65px;
    top: 20px;
    right: 10%;
}

/* Rain */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    top: 0;
    width: 3px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--accent));
    border-radius: 50%;
    animation: rainFall linear infinite;
    opacity: 0;
    box-shadow: 0 0 8px var(--pink-glow);
}

@keyframes rainFall {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.3;
        transform: translateY(100vh);
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .cloud-part1 {
        width: 50px;
        height: 50px;
    }
    
    .cloud-part2,
    .cloud-part3 {
        width: 40px;
        height: 40px;
        top: 12px;
    }
    
    .rain-drop {
        height: 60px;
        width: 2px;
    }
}

/* Navigation */
.bingo-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 20px;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 0, 110, 0.3);
    border-radius: 10px;
    background: var(--light);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-link:hover {
    border-color: var(--primary);
    background: var(--lighter);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-tertiary {
    border-color: #666;
    color: #999;
}

.btn-tertiary:hover {
    background: #666;
    color: white;
}
