* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: #0b0c10;
    color: #f8f8f8;
    display: flex;
    justify-content: center;
}
.game-container {
    width: 100%;
    max-width: 720px;
    padding: 20px;
}
.back-btn { color: #8be9fd; text-decoration: none; font-weight: 600; }
.stats { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tip { color: #b7c6d9; }
.board {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.card {
    background: #1f2833;
    border-radius: 10px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    color: #0b0c10;
    position: relative;
    transition: transform 0.2s;
}
.card:hover { transform: scale(1.02); }
.card.front { background: #45a29e; }
.card.matched { background: #ffb703; cursor: default; }
.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; }

