html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background-image: url('../img/background-game.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.tabuleiro {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    max-width: 450px;

    margin: 0 auto;
}


.celula {
    aspect-ratio: 1;

    border: 2px solid #dee2e6;

    border-radius: 15px;

    background: white;

    font-size: 4rem;

    font-weight: bold;

    cursor: pointer;

    transition: transform 0.15s ease;

    display: flex;

    align-items: center;

    justify-content: center;
}


.celula:hover {
    transform: scale(1.03);
}


.celula.x {
    color: #0d6efd;
}


.celula.o {
    color: #dc3545;
}


.status-box {
    background: #f8f9fa;

    border-radius: 15px;

    padding: 15px;

    display: flex;

    flex-direction: column;
}


.status-box span {
    color: #6c757d;

    font-size: 0.9rem;
}


.status-box strong {
    font-size: 1.8rem;
}

/* =========================
   SCROLL DO RANKING
========================= */

.ranking-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}


/* Barra de scroll - Chrome / Edge / Safari */

.ranking-scroll::-webkit-scrollbar {
    width: 8px;
}


.ranking-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}


.ranking-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}


.ranking-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.logo-jogada {
    width: 75%;
    height: 75%;

    object-fit: contain;

    display: block;

    margin: auto;

    pointer-events: none;
}
.cadastro-card {
    background: #000c1c;
    border: none;
    border-radius: 24px;
    box-shadow: none;
    color: #ffffff;
    overflow: hidden;
}

/* Título */

/* Subtítulo */
.cadastro-card .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Labels */
.cadastro-card .form-label {
    color: #ffffff;
    font-weight: 700;
}

/* Inputs e select */
.cadastro-card .form-control,
.cadastro-card .form-select {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 10px;
}

.cadastro-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.cadastro-card .form-control:focus,
.cadastro-card .form-select:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ff7a00;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.15);
}

.cadastro-card .form-select option {
    background: #063b67;
    color: #ffffff;
}

/* Botão */
.cadastro-card .btn {
    background: #ff7a00;
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
}

.cadastro-card .btn:hover {
    background: #e86f00;
    color: #ffffff;
}


/* =========================
   RANKING
========================= */

.ranking-card {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.ranking-card h2 {
    color: #063b67;
    font-weight: 800;
}

.ranking-card .text-muted {
    color: #6c757d !important;
}

.ranking-card .list-group-item {
    background: transparent;
    border-color: rgba(6, 59, 103, 0.12);
}

.ranking-card .badge {
    background: #063b67 !important;
    color: #ffffff;
}

.ranking-card .fw-bold {
    color: #063b67;
}

.cadastro-header {
    margin-bottom: 42px;
}

.cadastro-header-icon {
    display: block;
    font-size: 58px;
    line-height: 1;
    color: #ff7a00;
    margin-bottom: 24px;
}

.cadastro-card .cadastro-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.cadastro-card .cadastro-title span {
    color: #ff7a00;
}

.cadastro-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 400;
}

.cadastro-subtitle span {
    color: #ff7a00;
    font-weight: 700;
}
.ranking-card {
    background: #17191d;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    color: #ffffff;
}

.ranking-card h2 {
    color: #0d6efd;
    font-weight: 800;
}

.ranking-card .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.ranking-card .list-group-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ranking-card .list-group-item .fw-semibold {
    color: #ffffff;
}

/* Número da posição */
.ranking-card .badge {
    background: #0d6efd !important;
    color: #ffffff;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

/* Pontuação */
.ranking-card .fw-bold {
    color: #0d6efd;
}

/* Scroll */
.ranking-card .ranking-scroll {
    scrollbar-width: thin;
    scrollbar-color: #0d6efd rgba(255, 255, 255, 0.08);
}

.ranking-card .ranking-scroll::-webkit-scrollbar {
    width: 7px;
}

.ranking-card .ranking-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.ranking-card .ranking-scroll::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}
.ranking-header-icon {
    display: block;
    font-size: 52px;
    line-height: 1;
    color: #0d6efd;
    margin-bottom: 14px;
}