* { /* root file */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0f172a;
    min-height: 100vh;
    padding: 20px;
}

.max-w-6xl {
    max-width: 72rem;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 48px;
}

.header .subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 8px;
}

.header h1 {
    font-size: 3.75rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.header .score {
    font-size: 1.875rem;
    font-weight: 700;
    color: #60a5fa;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(var(--board-columns, 5), 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.category-header {
    background-color: #1e40af;
    color: #ffffff;
    padding: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.box {
    aspect-ratio: 1;
    background-color: #2563eb;
    border: 3px solid #1e40af;
    border-radius: 8px;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.box:hover:not(.used) {
    background-color: #1d4ed8;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.box:active:not(.used) {
    transform: scale(0.95);
}

.box.used {
    background-color: #1e293b;
    border-color: #475569;
    color: #64748b;
    opacity: 0.5;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 28rem;
    border: 4px solid #2563eb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #0f172a;
}

.question {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.6;
}

.decision-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2563eb;
    text-align: center;
    margin-bottom: 32px;
}

.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 12px 30px;
    font-size: 1rem;
}

.btn-accept {
    background-color: #22c55e;
    color: #ffffff;
}

.btn-accept:hover {
    background-color: #16a34a;
    transform: scale(1.05);
}

.btn-accept:active {
    transform: scale(0.95);
}

.btn-skip {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-skip:hover {
    background-color: #dc2626;
    transform: scale(1.05);
}

.btn-skip:active {
    transform: scale(0.95);
}

#gameOverScreen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-over {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 48px;
    max-width: 28rem;
    border: 4px solid #2563eb;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.game-over h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 24px;
}

.game-over p {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

.final-score {
    font-size: 3.75rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 32px;
}

.btn-play-again {
    background-color: #2563eb;
    color: #ffffff;
    padding: 16px 32px;
    font-size: 1.25rem;
}

.btn-play-again:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.btn-play-again:active {
    transform: scale(0.95);
}
