* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #121215;
    color: #eee;
    font-family: "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
}

/* Header */
.header {
    width: min(380px, 100%);
    height: 64px;
    border: 1px solid #51515f;
    border-radius: 9999px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #09090a55;
}

.menu {
    list-style: none;
    display: flex;
    gap: 32px;
}

.menu .item {
    cursor: pointer;
    color: #ccc;
    font-weight: 600;
    transition: color 0.3s, border 0.3s;
}

.menu .item:hover {
    color: #fff;
    border-bottom: 2px solid #fff;
}

.menu{
    font-size: 24px;
    cursor: default;
    user-select: none;
}

/* Main */
.main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.player {
    background: #0f0f11;
    border: 1px solid #000;
    border-radius: 24px;
    width: 240px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: border-color 0.3s;
}

.player.active {
    border-color: #51515f;
}

.player h2 {
    font-size: 18px;
    font-weight: 400;
}

.player strong {
    font-size: 48px;
    color: #fff;
}

/* Board */
.board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.board {
    --size: 320px;
    width: var(--size);
    height: var(--size);
    background: #000;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-radius: 8px;
    padding: 8px;
}

.cell {
    width: calc((var(--size) - 32px) / 3);
    height: calc((var(--size) - 32px) / 3);
    background: #0f0f11;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.cell:hover {
    background-color: #212129;
}

.cell img {
    width: 60%;
    height: 60%;
}

/* Escolha inicial */
.choose {
    text-align: center;
    background: #09090a55;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
}

.choose p {
    margin-bottom: 12px;
}

.choose button {
    background: transparent;
    border: 1px solid #51515f;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    width: 80px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 6px;
}

.choose button:hover {
    background: #1a1a1d;
}

/* Mensagem */
.mensagem {
    font-size: 18px;
    background: #09090a55;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #51515f;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-bottom: 32px;
}

.button-start-game {
    width: 200px;
    height: 50px;
    border: 1px solid #51515f;
    background: transparent;
    color: #fff;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.button-start-game:hover {
    background: #1a1a1d;
}

/* Destaque */
.destacar {
    background-color: #ffcccc !important;
}

/* Modais */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000bb;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    z-index: 10;
}

.modal.hidden {
    display: none;
}

.modal .container {
    width: min(600px, 90%);
    background: #121212;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}

.modal ._header {
    background: #09090a;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal ._header h2 {
    font-size: 22px;
}

.modal .close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.modal ._main {
    padding: 24px;
}

.modal ._main p, .modal ._main li {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 12px;
}
