* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: #0b0c10;
    color: #f8f8f8;
    display: flex;
    justify-content: center;
}
.game-container {
    max-width: 640px;
    width: 100%;
    padding: 24px;
}
header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.back-btn {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 600;
}
.score-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.score-box {
    background: #1f2833;
    padding: 10px 14px;
    border-radius: 10px;
    min-width: 100px;
}
.game-board {
    margin-top: 16px;
    background: #1f2833;
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.tile {
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background: #2d3542;
    color: #eee;
    text-align: center;
    padding: 6px;
}
.instructions {
    margin-top: 12px;
    color: #b7c6d9;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal.hidden { display: none; }
.modal-content {
    background: #1f2833;
    padding: 20px;
    border-radius: 12px;
    width: 280px;
    text-align: center;
}
button {
    background: #45a29e;
    color: #0b0c10;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}
button:hover {
    background: #63c5c1;
}

