* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1e1e2f;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background: #2a2a40;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.scoreboard {
    display: flex;
    justify-content: space-between;
    background: #1e1e2f;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #3f3f5a;
}

.score {
    font-weight: bold;
    font-size: 1.1rem;
    color: #14e6e6;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group, .button-group {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 12px;
    border: 2px solid #3f3f5a;
    background: #1e1e2f;
    color: white;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #14e6e6;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #14e6e6;
    color: #000;
}

.btn-primary:hover {
    background-color: #0bd1d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(20, 230, 230, 0.4);
}

.btn-secondary {
    background-color: #ff4757;
    color: white;
}

.btn-secondary:hover {
    background-color: #ff2e43;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
}

#timer {
    font-weight: bold;
    text-align: center;
    color: #ffa502;
    min-height: 24px;
}

.board-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#board {
    display: grid;
    /* Ein sauberes 4x4 Grid */
    grid-template-columns: repeat(4, 80px);
    grid-template-rows: repeat(4, 120px);
    gap: 12px;
}

.cell {
    background-color: #3f3f5a;
    border: 2px solid #2a2a40;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cell:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(20, 230, 230, 0.6);
    background-color: #4a4a6a;
    border-color: #14e6e6;
}