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

html {
    height: 100%;
}

body {
    height: 100%;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: "Comic Relief", system-ui;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 600px;
    width: 100%;
}

h1 {
    color: var(--bs-body-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.lead {
    color: var(--bs-body-color);
    opacity: 0.8;
    margin-bottom: 20px;
}

.info-box {
    background-color: var(--bs-tertiary-bg);
    border: 2px solid var(--bs-border-color);
    border-radius: 10px;
    padding: 15px 25px;
    min-width: 120px;
}

.info-label {
    font-size: 0.9rem;
    color: var(--bs-body-color);
    opacity: 0.7;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--bs-body-color);
}

.form-select {
    background-color: var(--bs-card-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

#game-container {
    position: relative;
    background-color: var(--bs-tertiary-bg);
    border: 2px solid var(--bs-border-color);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#wrapper {
    display: grid;
    gap: 8px;
    background-color: var(--bs-secondary-bg);
    border-radius: 10px;
    padding: 8px;
}

.pedina {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--bs-border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pedina:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pedina.off {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #666;
}

.pedina.off::before {
    content: '⚫';
    opacity: 0.3;
}

.pedina.on {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    color: #f8b500;
}

.pedina.on::before {
    content: '💡';
}

.pedina.clicked {
    animation: pulse 0.3s ease;
}

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

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#game-over.hidden {
    display: none;
}

.game-over-content {
    text-align: center;
    color: white;
    padding: 30px;
}

.game-over-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.game-over-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
}
