/* Nonograms specific styles */
.game-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
}

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

.premium-btn {
    opacity: 0.6;
}

.premium-btn.active-mode {
    opacity: 1;
    border-color: #a5b4fc;
    box-shadow: 0 0 15px rgba(165, 180, 252, 0.4);
}

.board-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nonogram-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.corner-empty {
    border-right: 2px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.col-clues {
    display: grid;
    /* inline styles will set columns */
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.row-clues {
    display: grid;
    /* inline styles will set rows */
    border-right: 2px solid rgba(255,255,255,0.2);
    padding-right: 5px;
}

.clue-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #a5b4fc;
}

.col-clue-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 5px;
    gap: 2px;
}

.row-clue-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 5px;
    gap: 5px;
}

.nonogram-grid {
    display: grid;
    /* inline styles will set cols/rows */
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.1);
}

.cell {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #9ca3af;
    cursor: pointer;
    transition: background-color 0.1s, transform 0.1s;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add slightly thicker borders for 5x5 blocks if we do larger boards later */
.cell.right-edge { border-right: 2px solid #4b5563; }
.cell.bottom-edge { border-bottom: 2px solid #4b5563; }

.cell.filled {
    background: #111827;
    border-color: #000;
}

.cell.crossed::after {
    content: '✕';
    color: #ef4444;
    font-size: 1.2rem;
    font-weight: 900;
}

.win-message {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
}

.win-message.hidden {
    display: none;
}

.win-message h2 {
    font-size: 2rem;
    color: #4ade80;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

.reveal-art {
    margin: 15px 0;
    display: grid;
    /* inline set */
    gap: 1px;
    background: #4ade80;
    padding: 2px;
    border: 2px solid #fff;
    box-shadow: 0 0 20px #4ade80;
}

.reveal-cell {
    width: 25px;
    height: 25px;
    background: #111827;
}

.reveal-cell.filled {
    background: #4ade80;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stats {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #a5b4fc;
}
