body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
main {
    animation: fadeIn 0.6s ease-out both;
    will-change: transform, opacity;
}

.panel {
    background: white; padding: 15px 25px; border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); margin-bottom: 20px;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    width: 100%; max-width: 800px;
}

/* Board */
#board-container {
    display: grid;
    gap: 0;
    user-select: none;
}

.ng-cell {
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.1s;
    position: relative;
    background: white;
}

.ng-cell:hover {
    background-color: #e0f2fe;
}

.ng-cell.filled {
    background-color: #1d4ed8;
}

.ng-cell.xmark {
    background-color: #f1f5f9;
    color: #94a3b8;
}

.ng-cell.xmark::after {
    content: '×';
    font-size: 1em;
    font-weight: bold;
    color: #94a3b8;
}

/* Clue cells */
.ng-clue-cell {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 0.75em;
    font-weight: bold;
    color: #475569;
    background: transparent;
    pointer-events: none;
}

.ng-clue-cell.row-clue {
    justify-content: flex-end;
    padding-right: 4px;
}

.ng-clue-cell.col-clue {
    justify-content: flex-end;
    flex-direction: column;
    padding-bottom: 2px;
}

.ng-clue-cell .clue-num {
    display: block;
    line-height: 1.3;
}

/* Corner cell */
.ng-corner {
    border: none;
    background: transparent;
}

/* Clue number styling */
.ng-clue-cell.satisfied {
    color: #86efac;
}

/* Status */
#status {
    text-align: center;
}

#game-status {
    text-align: center;
    min-height: 1.2em;
}

/* Mode buttons */
.mode-btn {
    background: #e2e8f0;
    color: #475569;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.mode-btn.active {
    background: #1d4ed8;
    color: white;
}

/* Completed puzzle highlight */
.ng-cell.correct-hint {
    background-color: #dcfce7 !important;
}

.ng-cell.filled.correct-hint {
    background-color: #86efac;
}