#sudoku-game {
    text-align: center;
    margin: 20px auto;
    font-family: sans-serif;
    position: relative;
}

/* Controls: Schweregrad + Timer */
#sudoku-controls {
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

#sudoku-controls label {
    font-weight: bold;
}

#sudoku-difficulty {
    font-size: 15px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 2px solid #3a6abf;
    cursor: pointer;
}

#sudoku-timer {
    font-size: 18px;
    font-weight: bold;
    color: #3a6abf;
    min-width: 80px;
}

/* Board */
#sudoku-board {
    display: inline-block;
    border: 3px solid #3a6abf;
}

.sudoku-row {
    display: flex;
}

.sudoku-cell {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #999 !important;
    box-sizing: border-box;
    outline: none !important;
    background: #fff !important;
    color: #555;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
}

.sudoku-cell-fixed {
    background: #f5f5f5 !important;
    color: #222 !important;
    font-weight: bold;
    cursor: default;
}

.sudoku-cell:not(.sudoku-cell-fixed):focus {
    background: #eef3ff !important;
    border-color: #3a6abf !important;
}

.sudoku-cell-error {
    background: #fff0f0 !important;
    border-color: #cc0000 !important;
    color: #cc0000 !important;
}

.sudoku-cell[data-col="2"],
.sudoku-cell[data-col="5"] {
    border-right: 3px solid #3a6abf !important;
}

.sudoku-row:nth-child(3) .sudoku-cell,
.sudoku-row:nth-child(6) .sudoku-cell {
    border-bottom: 3px solid #3a6abf !important;
}

/* Buttons */
#sudoku-buttons {
    margin-top: 12px;
}

#sudoku-buttons button {
    margin: 4px 6px;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 6px;
    border: 2px solid #3a6abf;
    background: #fff;
    color: #3a6abf;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

#sudoku-buttons button:hover {
    background: #3a6abf;
    color: #fff;
}

#sudoku-message {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    min-height: 28px;
}

/* Overlay */
#sudoku-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

#sudoku-summary {
    background: #fff;
    border-radius: 16px;
    padding: 36px 48px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 260px;
}

#summary-trophy {
    font-size: 56px;
    margin-bottom: 8px;
}

#sudoku-summary h2 {
    font-size: 28px;
    color: #3a6abf;
    margin: 0 0 20px 0;
}

#summary-table {
    margin: 0 auto 24px auto;
    border-collapse: collapse;
    font-size: 17px;
    width: 100%;
}

#summary-table td {
    padding: 8px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#summary-table td:first-child {
    color: #666;
    font-weight: bold;
}

#summary-table td:last-child {
    color: #222;
    font-weight: bold;
    text-align: right;
}

#summary-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

#summary-buttons button {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 8px;
    border: 2px solid #3a6abf;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

#summary-new-game {
    background: #3a6abf;
    color: #fff;
}

#summary-new-game:hover {
    background: #2a529f;
}

#summary-close {
    background: #fff;
    color: #3a6abf;
}

#summary-close:hover {
    background: #eef3ff;
}
