/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
}

/* VARIÁVEIS */
:root {
    --bg-dark: #050505;
    --bg-overlay: rgba(0,0,0,0.7);

    --primary: #ff7518;
    --primary-glow: rgba(255,117,24,0.6);

    --purple: #9333ea;
    --purple-glow: rgba(147,51,234,0.6);

    --text: #ffffff;
    --text-muted: #bfbfbf;

    --font-title: 'Creepster', cursive;
    --font-body: 'Poppins', sans-serif;
}

/* BASE */
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 9999;

    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* NAV */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 24px;
    position: relative;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* LOGIN */
.btn-login {
    border: 1px solid var(--purple);
    background: transparent;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--purple);
}

/* HERO */
.hero {
    min-height: 100vh;
    background: url('/assets/images/bg-halloween.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), #000);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TITULOS */
.hero h1 {
    font-family: var(--font-title);
    font-size: 90px;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero h2 {
    font-size: 40px;
    color: #c084fc;
    margin-top: -10px;
}

.hero h3 {
    font-size: 22px;
    letter-spacing: 8px;
    margin-top: 10px;
}

/* TEXTO */
.subtitle {
    margin-top: 15px;
    color: var(--text-muted);
}

.highlight {
    color: var(--primary);
    margin-top: 5px;
}

/* COUNTDOWN */
.countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.time-box {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 10px;
    min-width: 90px;
}

.time-box span {
    font-size: 30px;
    color: var(--primary);
    font-weight: bold;
}

.time-box small {
    display: block;
    font-size: 12px;
    color: #aaa;
}

/* BOTÕES */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(90deg, #ff7518, #ff8c42);
    color: #fff;
}

.btn-secondary {
    border: 1px solid var(--purple);
    background: transparent;
    color: #fff;
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .hero h1 {
        font-size: 50px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .countdown {
        flex-wrap: wrap;
    }

    .buttons {
        flex-direction: column;
    }

}
/* =========================
   GLOW GLOBAL
========================= */
.glow-orange {
    text-shadow: 0 0 10px rgba(255,117,24,0.7),
                 0 0 20px rgba(255,117,24,0.5);
}

.glow-purple {
    text-shadow: 0 0 10px rgba(147,51,234,0.7),
                 0 0 20px rgba(147,51,234,0.5);
}

/* =========================
   HERO UPGRADE
========================= */
.hero h1 {
    font-family: var(--font-title);
    font-size: 95px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(255,117,24,0.8),
                 0 0 30px rgba(255,117,24,0.5);
}

.hero h2 {
    font-size: 42px;
    color: #c084fc;
    text-shadow: 0 0 15px rgba(147,51,234,0.7);
}

.hero h3 {
    letter-spacing: 10px;
    color: #fff;
}

/* =========================
   COUNTDOWN PREMIUM
========================= */
.time-box {
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(147,51,234,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(147,51,234,0.3);
    transition: 0.3s;
}

.time-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(147,51,234,0.6);
}

/* =========================
   BOTÕES PREMIUM
========================= */
.btn-primary {
    background: linear-gradient(90deg, #ff7518, #ff8c42);
    box-shadow: 0 0 15px rgba(255,117,24,0.5);
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255,117,24,0.8);
}

.btn-secondary {
    border: 1px solid #9333ea;
    box-shadow: 0 0 10px rgba(147,51,234,0.4);
}

.btn-secondary:hover {
    background: rgba(147,51,234,0.2);
    box-shadow: 0 0 20px rgba(147,51,234,0.7);
}

/* =========================
   SEÇÕES
========================= */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section h2 {
    display: flex;
    font-size: 26px;
    margin-bottom: 30px;
    position: relative;
    align-items: center;
    justify-content: center;
}


/* =========================
   CARDS (NEON STYLE)
========================= */
.card {
    background: rgba(10,10,10,0.8);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(147,51,234,0.3);
    box-shadow: 0 0 10px rgba(147,51,234,0.2);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(147,51,234,0.5);
}

/* =========================
   TIMES CARDS
========================= */
.team {
    background: rgba(10,10,10,0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,117,24,0.3);
    box-shadow: 0 0 10px rgba(255,117,24,0.2);
}

.team:nth-child(1) {
    border-color: rgba(147,51,234,0.4);
    box-shadow: 0 0 15px rgba(147,51,234,0.3);
}

.team:nth-child(2) {
    border-color: rgba(255,117,24,0.4);
    box-shadow: 0 0 15px rgba(255,117,24,0.3);
}

/* =========================
   SCOREBOARD
========================= */
.scoreboard {
    background: rgba(10,10,10,0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.scoreboard p {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* =========================
   TAG / BADGE
========================= */
.tag {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(147,51,234,0.2);
    border: 1px solid rgba(147,51,234,0.4);
    font-size: 12px;
}
/* =========================
   MOBILE FIRST AJUSTES
========================= */

@media (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 20px;
    }
    .menu-toggle {
        display: block;
    }
}

/* =========================
   MOBILE (CELULAR)
========================= */
@media (max-width: 768px) {
    
    .menu-toggle {
        display: block;
    }

    /* NAVBAR */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #0b0b0b;
        padding: 20px;
        border-radius: 10px;
        width: 200px;
        border: 1px solid rgba(147,51,234,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 26px;
        cursor: pointer;
    }

    /* HERO */
    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero h3 {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 14px;
    }

    .highlight {
        font-size: 14px;
    }

    /* COUNTDOWN */
    .countdown {
        flex-wrap: wrap;
        gap: 10px;
    }

    .time-box {
        flex: 1 1 40%;
        min-width: 120px;
    }

    /* BOTÕES */
    .buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* SEÇÕES */
    .section {
        padding: 50px 20px;
    }

    .section h2 {
        font-size: 22px;
    }


    /* CARDS */
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
    }

    /* TIMES */
    .teams {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .team {
        width: 100%;
        max-width: 320px;
    }

    /* SCOREBOARD */
    .scoreboard {
        width: 100%;
    }

    .scoreboard p {
        font-size: 14px;
    }

}
.menu-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
    z-index: 999999;
    transition: 0.3s ease;
}
.menu-toggle.open {
    transform: rotate(180deg);
}
.menu-toggle::before {
    content: "☰";
    font-size: 32px;
    color: #fff;
    transition: 0.3s ease;
}

/* quando abre vira X */
.menu-toggle.open::before {
    content: "✕";
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
}
/* =========================
   ANIMAÇÕES BASE
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.2s; }
.reveal-delay-2 { animation-delay: 0.4s; }
.reveal-delay-3 { animation-delay: 0.6s; }

/* =========================
   GLOW PULSANTE
========================= */
@keyframes glowPulse {
    0% {
        text-shadow: 0 0 10px rgba(255,117,24,0.6);
    }
    50% {
        text-shadow: 0 0 25px rgba(255,117,24,1);
    }
    100% {
        text-shadow: 0 0 10px rgba(255,117,24,0.6);
    }
}

.glow-animated {
    animation: glowPulse 2.5s infinite ease-in-out;
}

/* =========================
   BOTÕES PREMIUM
========================= */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    top: 0;
    left: -100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: scale(0.95);
}

/* =========================
   CARDS HOVER AVANÇADO
========================= */
.card {
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(120deg, transparent, rgba(147,51,234,0.3), transparent);
    transition: 0.4s;
}

.card:hover::before {
    opacity: 1;
}

/* =========================
   MENU MOBILE PREMIUM
========================= */
@media (max-width: 768px) {

    .nav-links {
        transform: translateY(-20px);
        opacity: 0;
        transition: 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

/* =========================
   HERO ENTRADA
========================= */
.hero-content {
    animation: fadeUp 1s ease forwards;
}

/* =========================
   COUNTDOWN HOVER
========================= */
.time-box {
    transition: 0.3s;
}

.time-box:hover {
    transform: scale(1.05);
}

/* =========================
   SCROLL SUAVE
========================= */
html {
    scroll-behavior: smooth;
}
/* GRID PRINCIPAL */
.grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* BOX */
.box {
    background: rgba(10,10,10,0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(147,51,234,0.2);
}

/* TIMES */
.teams {
    display: flex;
    gap: 20px;
    width: 100%;
}

.team {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
}

.team-purple {
    border: 1px solid #9333ea;
}

.team-orange {
    border: 1px solid #ff7518;
}

.team ul {
    margin-top: 10px;
    list-style: none;
}

.team li {
    margin: 5px 0;
}

.score {
    margin-top: 10px;
    text-align: right;
}

.score strong {
    font-size: 30px;
}

/* SCOREBOARD */
.scoreboard p {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.highlight-rank {
    color: #ff7518;
}

/* BOTÃO FULL */
.full {
    width: 100%;
    margin-top: 15px;
}

/* VOTAÇÃO */
.vote-img {
    border-radius: 10px;
    margin: 20px 0;
}
.vote-img img {
    width: 60%;
    border-radius: inherit;
}

/* REGRAS */
.rules {
    list-style: none;
}

.rules li {
    margin: 8px 0;
}

.final-text {
    margin-top: 20px;
    color: #ff7518;
    font-weight: bold;
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .grid-main {
        grid-template-columns: 1fr;
    }

}
/* COMO FUNCIONA */
.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* LINHA SUPERIOR */
.top-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


.team {
    padding: 15px;
    border-radius: 12px;
}

.team-purple {
    border: 1px solid #9333ea;
}

.team-orange {
    border: 1px solid #ff7518;
}

.team ul {
    margin-top: 10px;
}

.score {
    text-align: right;
    margin-top: 10px;
}

.score strong {
    font-size: 32px;
}

/* LINHA INFERIOR */
.bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* BOX */
.box {
    background: rgba(10,10,10,0.85);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(147,51,234,0.2);
}

/* PLACAR */
.scoreboard p {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.highlight-rank {
    color: #ff7518;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .cards-row {
        grid-template-columns: 1fr;
    }

    .top-row {
        grid-template-columns: 1fr;
    }

    .teams {
        grid-template-columns: 1fr;
    }

    .bottom-row {
        grid-template-columns: 1fr;
    }
}
/* CARDS COMO FUNCIONA */
.card-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

/* ÍCONE */
.icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.img-icon {
    width: 24px;
    height: 24px;
}
.img-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CORES */
.icon.purple {
    border: 2px solid #9333ea;
    color: #9333ea;
}

.icon.orange {
    border: 2px solid #ff7518;
    color: #ff7518;
}

/* TÍTULOS */
.title-purple {
    color: #c084fc;
    font-weight: 600;
}

.title-orange {
    color: #ff7518;
    font-weight: 600;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .card-flex {
        flex-direction: row;
    }
}

/* =========================
   HEADER DO TIME (SEPARAÇÃO)
========================= */

/* =========================
   LISTA DE JOGADORES
========================= */
.team ul {
    list-style: none;
    margin-top: 10px;
}

.team li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 14px;
}


/* =========================
   CORES POR TIME (JOGADORES)
========================= */
.team-purple li {
    color: #c084fc;
}

.team-orange li {
    color: #ffb36b;
}

/* ÍCONE COM COR DO TIME */
.team-purple li::before {
    color: #9333ea;
}

.team-orange li::before {
    color: #ff7518;
}

/* =========================
   ÁREA DE PONTOS
========================= */
.score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
}

/* TEXTO "PONTOS" */
.score span {
    font-size: 12px;
    letter-spacing: 1px;
}

/* VALOR */
.score strong {
    font-size: 28px;
}

/* =========================
   CORES DOS PONTOS POR TIME
========================= */
.team-purple .score span,
.team-purple .score strong {
    color: #9333ea;
}

.team-orange .score span,
.team-orange .score strong {
    color: #ff7518;
}

/* =========================
   TEAM BASE
========================= */
.team {
    position: relative;
    padding: 20px;
    border-radius: 12px;
    min-height: 220px;
}

/* =========================
   HEADER DO TIME
========================= */
.team-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    padding-bottom: 15px;
}

/* =========================
   ÍCONE DO TIME (CÍRCULO)
========================= */
.team-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* CORES CORRETAS */
.team-purple .team-icon {
    border: 2px solid #9333ea;
    color: #9333ea;
}

.team-orange .team-icon {
    border: 2px solid #ff7518;
    color: #ff7518;
}

/* =========================
   LISTA DE JOGADORES
========================= */
.team ul {
    list-style: none;
}

.team li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}


/* COR POR TIME */
.team-purple li {
    color: #c084fc;
}

.team-orange li {
    color: #ffb36b;
}

.team-purple li::before {
    color: #9333ea;
}

.team-orange li::before {
    color: #ff7518;
}

/* =========================
   SCORE POSIÇÃO CORRETA
========================= */
.score {
    position: absolute;
    right: 20px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-items: center;
}

/* TEXTO */
.score span {
    font-size: 11px;
}

/* VALOR */
.score strong {
    font-size: 26px;
}

/* CORES DO SCORE */
.team-purple .score span,
.team-purple .score strong {
    color: #9333ea;
}

.team-orange .score span,
.team-orange .score strong {
    color: #ff7518;
}


/* =========================
   SOBRE O EVENTO
========================= */
.about-box {
    background: url('/assets/images/sobre_evento.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* overlay escuro pra legibilidade */
.about-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

/* garantir conteúdo acima */
.about-box * {
    position: relative;
}

/* estrutura */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* item */
.about-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ícone */
.about-item .icon {
    font-size: 18px;
    color: var(--primary);
}

/* label (DATA, HORÁRIO...) */
.label {
    color: var(--primary);
    font-size: 16px;
    letter-spacing: 1px;
}

/* valor */
.about-item p {
    color: #fff;
    font-size: 15px;
}

/* =========================
   VOTAÇÃO COM IMAGEM
========================= */
.vote-box {
    background: url('/assets/images/fantasia.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* overlay escuro */
.vote-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

/* conteúdo acima */
.vote-box * {
    position: relative;
}
.about-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* =========================
   IMAGEM DAS REGRAS
========================= */
.rules-image {
    width: 100%;
    aspect-ratio: 341 / 92;
    margin-top: 15px;

    background: url('/assets/images/regras.png') center/cover no-repeat;

    border-radius: 8px;
}

/* =========================
   REGRAS - FUNDO PRETO
========================= */
.box.rules-box {
    background: #000 !important;
}
.logo {
    height: 100px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    transition: 0.3s ease;
}

/* estado quando scrolla */
.navbar.scrolled .logo {
    height: 50px;
}
.logo-container {
    width: 40%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.header-actions {
    display: flex;
    align-items: center;
}

.btn-login {
    background: linear-gradient(135deg, #3b0a5c, #5a189a);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-login:hover {
    background: linear-gradient(135deg, #5a189a, #7b2cbf);
    box-shadow: 0 0 18px rgba(123, 44, 191, 0.6);
    transform: translateY(-2px);
}
.lock {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.6));
}

/* cadeado fechado (padrão) */
.lock-closed {
    background-image: url("../images/icons/cadeado-roxo.png");
}

/* cadeado aberto (fica invisível por padrão) */
.lock-open {
    background-image: url("../images/icons/cadeado-aberto-roxo.png");
    position: absolute;
    left: 10px;
    opacity: 0;
}

/* hover troca os ícones */
.btn-login:hover .lock-closed {
    opacity: 0;
}

.btn-login:hover .lock-open {
    opacity: 1;
}

@media (max-width: 768px) {
    .header-actions {
        display: none;
    }
}

@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 80px;
        right: 20px;

        display: none;
        flex-direction: column;

        background: rgba(0,0,0,0.95);
        padding: 20px;
        border-radius: 10px;

        width: 200px;
        z-index: 99999;
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 0;
        right: -260px; /* escondido fora da tela */

        width: 260px;
        height: 100vh;

        display: flex;
        flex-direction: column;
        gap: 20px;

        padding: 80px 20px;

        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(12px);

        border-left: 1px solid rgba(147, 51, 234, 0.3);

        transition: right 0.3s ease;
        z-index: 99998;
    }

    .nav-links.active {
        right: 0; /* entra na tela */
    }
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);

    opacity: 0;
    pointer-events: none;

    transition: 0.3s ease;
    z-index: 99997;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* padrão (desktop) */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {

    .mobile-only {
        display: inline-flex;
        margin-top: 20px;
        justify-content: center;
        width: 100%;
    }

    .nav-links .btn-login {
        text-align: center;
    }
}

@media (max-width: 768px) {

    .nav-links .btn-login {
        width: 100%;
        justify-content: center;
        padding: 12px;
        border-radius: 10px;
    }
}
.cotent-about-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.flip-number {
    display: inline-block;
    background: linear-gradient(180deg, #1a1a1a 0%, #050505 50%, #111 100%);
    color: var(--primary);
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 70px;
    box-shadow: inset 0 -2px 0 rgba(255,255,255,0.08),
                inset 0 2px 0 rgba(0,0,0,0.8),
                0 0 18px var(--primary-glow);
    position: relative;
    transition: transform 0.25s ease;
}

.flip-number::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.flip-number.flip {
    animation: flipClock 0.35s ease;
}

@keyframes flipClock {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.event-started {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 18px var(--primary-glow);
}

/* =========================
   LOGIN
========================= */
.login-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.9)),
        url('/assets/images/bg-halloween.jpg') center/cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(5,5,5,0.88);
    border: 1px solid rgba(147,51,234,0.35);
    border-radius: 18px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 0 35px rgba(147,51,234,0.25);
    backdrop-filter: blur(10px);
}

.login-logo img {
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.login-card h1 {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 42px;
    letter-spacing: 2px;
    text-shadow: 0 0 18px rgba(255,117,24,0.6);
}

.login-card p {
    color: var(--text-muted);
    margin: 10px 0 25px;
    font-size: 14px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(147,51,234,0.45);
    background: rgba(0,0,0,0.7);
    color: #fff;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255,117,24,0.25);
}

.login-error {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.35);
    color: #ff9b9b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-home {
    margin-top: 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.back-home:hover {
    color: var(--primary);
}

.full {
    width: 100%;
}

.logo-link {
    height: 100px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
}
/* =========================
   ÍCONE PORTA (LOGOUT)
========================= */
.door {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}

/* porta fechada */
.door-closed {
    background: url('../images/icons/porta-fechada-roxo.png') center/contain no-repeat;
}

/* porta aberta */
.door-open {
    background: url('../images/icons/porta-aberta-roxo.png') center/contain no-repeat;
    position: absolute;
    opacity: 0;
}

/* efeito hover igual cadeado */
.btn-login:hover .door-open {
    opacity: 1;
}

.btn-login:hover .door-closed {
    opacity: 0;
}
.btn-login:hover {
    transform: scale(1.05);
    transition: 0.2s;
}

/* =========================
   ADMIN
========================= */
.admin-page {
    min-height: 100vh;
    display: flex;
    background: #050505;
    color: #fff;
}

.admin-sidebar {
    width: 260px;
    background: #080808;
    border-right: 1px solid rgba(147, 51, 234, 0.3);
    padding: 25px;
}

.admin-logo img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 30px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.admin-menu a:hover,
.admin-menu a.active {
    color: #fff;
    border-color: rgba(255, 117, 24, 0.4);
    background: rgba(255, 117, 24, 0.08);
}

.admin-content {
    flex: 1;
    padding: 35px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 48px;
}

.admin-header p {
    color: var(--text-muted);
}

.admin-user {
    border: 1px solid rgba(147, 51, 234, 0.5);
    padding: 10px 14px;
    border-radius: 10px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.admin-card {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 0 18px rgba(147, 51, 234, 0.12);
}

.admin-card span {
    font-size: 28px;
}

.admin-card h3 {
    margin: 12px 0 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.admin-card strong {
    font-size: 34px;
    color: var(--primary);
}

.admin-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ADMIN MOBILE */
@media (max-width: 900px) {
    .admin-page {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    }

    .admin-menu {
        flex-direction: row;
        overflow-x: auto;
    }

    .admin-menu a {
        white-space: nowrap;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .admin-content {
        padding: 22px;
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }

    .admin-header h1 {
        font-size: 38px;
    }
}

/* =========================
   ADMIN - USERS
========================= */
.admin-grid-two {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-panel {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 0 18px rgba(147, 51, 234, 0.12);
    margin-bottom: 25px;
}

.admin-panel h2 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 22px;
}

.admin-form .form-group {
    margin-bottom: 16px;
}

.admin-form label {
    display: block;
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(147, 51, 234, 0.45);
    background: rgba(0,0,0,0.7);
    color: #fff;
    outline: none;
}

.admin-form input:focus,
.admin-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255,117,24,0.25);
}

.admin-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.admin-alert.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.admin-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.admin-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-mini-stats div {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
}

.admin-mini-stats span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

.admin-mini-stats strong {
    display: block;
    color: var(--primary);
    font-size: 28px;
    margin-top: 5px;
}

.admin-note {
    color: var(--text-muted);
    margin-top: 18px;
    font-size: 14px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-table th {
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 600;
}

.admin-table td {
    color: var(--text-muted);
    font-size: 14px;
}

.admin-danger-btn {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.admin-danger-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* MOBILE */
@media (max-width: 900px) {
    .admin-grid-two {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ADMIN - GAMES
========================= */
.admin-form textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(147, 51, 234, 0.45);
    background: rgba(0,0,0,0.7);
    color: #fff;
    outline: none;
    font-family: var(--font-body);
}

.admin-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255,117,24,0.25);
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkbox-group {
    display: flex;
    align-items: end;
}

.checkbox-label {
    width: 100%;
    min-height: 46px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(147, 51, 234, 0.45);
    background: rgba(0,0,0,0.7);
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.admin-cancel-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.admin-cancel-link:hover {
    color: var(--primary);
}

.admin-table-description {
    display: block;
    color: var(--text-muted);
    margin-top: 5px;
    font-size: 12px;
    max-width: 420px;
}

.admin-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-edit-btn {
    display: inline-block;
    background: rgba(255, 117, 24, 0.12);
    border: 1px solid rgba(255, 117, 24, 0.45);
    color: #ffb36b;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
}

.admin-edit-btn:hover {
    background: rgba(255, 117, 24, 0.22);
}

.status-active {
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.12);
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
}

.status-inactive {
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.12);
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
}

@media (max-width: 700px) {
    .admin-form-row {
        grid-template-columns: 1fr;
    }

    .admin-table-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   ADMIN - RESULTS
========================= */
.admin-ranking-block {
    margin-bottom: 24px;
}

.admin-ranking-block h3 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 12px;
}

.admin-ranking-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
}

.admin-ranking-item strong {
    color: var(--primary);
    white-space: nowrap;
}
.status-active {
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.12);
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
}

.status-inactive {
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.12);
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 12px;
}

/* =========================
   ADMIN - DRAW
========================= */
.draw-panel {
    margin-bottom: 25px;
}

.draw-controls {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.draw-animation {
    display: none;
    margin-top: 25px;
    text-align: center;
    color: var(--primary);
}

.draw-animation.active {
    display: block;
}

.draw-dice {
    font-size: 52px;
    animation: diceSpin 0.6s linear infinite;
}

@keyframes diceSpin {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.15);
    }
}

.draw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.draw-team-card {
    min-height: 260px;
}

.draw-team-card h2 {
    font-size: 20px;
}

.draw-player-list {
    list-style: none;
    margin-top: 20px;
}

.draw-player-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
}

.team-purple .draw-player-list li::before {
    content: "👤 ";
    color: #9333ea;
}

.team-orange .draw-player-list li::before {
    content: "👤 ";
    color: #ff7518;
}

.admin-simple-list {
    list-style: none;
}

.admin-simple-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
}

.admin-simple-list.muted li {
    opacity: 0.6;
}

@media (max-width: 800px) {
    .draw-grid {
        grid-template-columns: 1fr;
    }

    .draw-controls {
        flex-direction: column;
    }

    .draw-controls .btn {
        width: 100%;
    }
}
.vote-warning {
    display: none;
    margin-top: 12px;
    color: #ffb36b;
    font-size: 13px;
    text-align: center;
}

.vote-warning.active {
    display: block;
}
/* =========================
   VOTE PAGE
========================= */
.vote-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.95)),
        url('/assets/images/bg-halloween.jpg') center/cover no-repeat;
    padding: 40px 20px;
}

.vote-container {
    max-width: 1100px;
    margin: 0 auto;
}

.vote-container h1 {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 52px;
    text-align: center;
    text-shadow: 0 0 18px rgba(255,117,24,0.6);
}

.vote-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.vote-panel {
    background: rgba(10,10,10,0.9);
    border: 1px solid rgba(147,51,234,0.25);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.vote-panel h2 {
    color: var(--primary);
    margin-bottom: 18px;
}

.my-costume-photo {
    width: 100%;
    max-width: 360px;
    display: block;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.costume-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.costume-card {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(147,51,234,0.25);
    border-radius: 14px;
    padding: 16px;
}

.costume-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.costume-card h3 {
    margin-bottom: 12px;
    color: #fff;
}

@media (max-width: 850px) {
    .costume-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .costume-grid {
        grid-template-columns: 1fr;
    }

    .vote-container h1 {
        font-size: 40px;
    }
}

/* =========================
   ADMIN - COSTUME VOTES
========================= */
.costume-ranking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.costume-ranking-card {
    position: relative;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(147,51,234,0.25);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.costume-ranking-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.costume-ranking-card h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 6px;
}

.costume-ranking-card strong {
    color: var(--primary);
}

.costume-position {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,117,24,0.5);
    color: var(--primary);
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 2;
}

@media (max-width: 1100px) {
    .costume-ranking-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 750px) {
    .costume-ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .costume-ranking-grid {
        grid-template-columns: 1fr;
    }
}
.icon-img-admin{
    width: 25px;
}
/* =========================
   INNER PAGES
========================= */
.inner-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.96)),
        url('/assets/images/bg-halloween.jpg') center/cover fixed no-repeat;
    padding: 130px 20px 70px;
}

.inner-container {
    max-width: 1200px;
    margin: 0 auto;
}

.inner-container h1 {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 56px;
    text-align: center;
    text-shadow: 0 0 18px rgba(255,117,24,0.6);
}

.inner-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 10px 0 40px;
}

/* =========================
   GAMES PAGE
========================= */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.game-card {
    background: rgba(10,10,10,0.92);
    border: 1px solid rgba(147,51,234,0.28);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(147,51,234,0.14);
}

.game-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    display: block;
    background: #000;
    padding: 10px;
}

.game-card-content {
    padding: 18px;
}

.game-card h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.game-type {
    display: inline-block;
    color: var(--primary);
    border: 1px solid rgba(255,117,24,0.45);
    background: rgba(255,117,24,0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 18px;
}

/* =========================
   GAME MODAL
========================= */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.game-modal.active {
    display: block;
}

.game-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(6px);
}

.game-modal-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
    margin: 6vh auto;
    background: rgba(8,8,8,0.96);
    border: 1px solid rgba(147,51,234,0.4);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 0 35px rgba(147,51,234,0.25);
}

.game-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.game-modal-content > img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #000;
    border-radius: 14px;
    margin-bottom: 18px;
    padding: 10px;
}

.game-modal-content h2 {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 8px;
}

.game-modal-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0 22px;
    color: var(--text-muted);
}

.game-modal-info strong {
    color: var(--primary);
}

.game-modal-section {
    margin-top: 18px;
}

.game-modal-section h3 {
    color: #c084fc;
    margin-bottom: 6px;
}

.game-modal-section p {
    color: var(--text-muted);
    line-height: 1.6;
    white-space: pre-line;
}

.empty-state {
    grid-column: 1 / -1;
    background: rgba(10,10,10,0.9);
    border: 1px solid rgba(147,51,234,0.25);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
}

/* RESPONSIVO */
@media (max-width: 950px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .inner-container h1 {
        font-size: 42px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-modal-content {
        margin: 4vh auto;
        max-height: 92vh;
        padding: 18px;
    }
}
.admin-current-image {
    margin-top: 12px;
}

.admin-current-image span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.admin-current-image img {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(147,51,234,0.35);
}

.admin-game-thumb {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(147,51,234,0.35);
}
/* =========================
   RULES PAGE
========================= */
.rules-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.rule-card {
    background: rgba(10,10,10,0.92);
    border: 1px solid rgba(147,51,234,0.28);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 0 18px rgba(147,51,234,0.14);
}

.rule-card h2 {
    color: var(--primary);
    margin-bottom: 12px;
}

.rule-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 720px) {
    .rules-page-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   SCOREBOARD PAGE
========================= */
.scoreboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.scoreboard-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.scoreboard-full {
    background: rgba(10,10,10,0.9);
    border: 1px solid rgba(147,51,234,0.3);
    border-radius: 16px;
    padding: 20px;
}

.scoreboard-full h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.scoreboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    color: #fff;
}

.score-row.leader {
    border: 1px solid var(--primary);
    background: rgba(255,117,24,0.1);
}

@media (max-width: 800px) {
    .scoreboard-teams {
        grid-template-columns: 1fr;
    }
}