/* =========================
   ANIME GAMES / RANKING FANS
   Neo Anime Radio
========================= */

.nav-menu a.active {
    color: #22d3ee;
    text-shadow: 0 0 18px rgba(34, 211, 238, .65);
}

.hidden {
    display: none !important;
}

/* HERO */

.games-hero {
    max-width: 1200px;
    margin: 42px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: stretch;
}

.games-hero-content,
.games-status-card {
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, .22), transparent 38%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, .16), transparent 44%),
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.games-hero-content {
    padding: 42px;
}

.games-hero-content h2 {
    margin: 14px 0 16px;
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.05;
    text-shadow: 0 0 28px rgba(34, 211, 238, .18);
}

.games-hero-content p {
    max-width: 720px;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1.02rem;
}

.games-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.games-status-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 230px;
}

.games-status-card span {
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
}

.games-status-card strong {
    display: block;
    margin: 8px 0;
    color: #67e8f9;
    font-family: "Orbitron", sans-serif;
    font-size: 2.2rem;
}

.games-status-card small {
    color: #cbd5e1;
    line-height: 1.5;
}

/* SECCIONES */

.games-section,
.games-live-section,
.ranking-main-section {
    max-width: 1200px;
    margin: 52px auto 0;
    padding: 0 20px;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading span {
    color: #67e8f9;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
    font-size: .82rem;
}

.section-heading h2 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    margin-top: 8px;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

/* GRID DE JUEGOS */

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.game-card {
    position: relative;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, .12), transparent 42%),
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
    overflow: hidden;
    transition: .25s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, .38);
    box-shadow:
        0 26px 80px rgba(0, 0, 0, .36),
        0 0 34px rgba(34, 211, 238, .11);
}

.game-card.featured {
    border-color: rgba(236, 72, 153, .35);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, .20), transparent 42%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, .15), transparent 44%),
        linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(2, 6, 23, .98));
}

.game-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 24px;
    font-size: 2.4rem;
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, .25), transparent 58%),
        linear-gradient(135deg, rgba(236, 72, 153, .18), rgba(15, 23, 42, .88));
    border: 1px solid rgba(34, 211, 238, .26);
    box-shadow: 0 0 28px rgba(34, 211, 238, .12);
}

.game-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, .14);
    border: 1px solid rgba(59, 130, 246, .34);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.game-status.active {
    color: #bbf7d0;
    background: rgba(34, 197, 94, .14);
    border-color: rgba(34, 197, 94, .38);
}

.game-card h3 {
    color: #f8fafc;
    margin: 14px 0 10px;
    font-family: "Orbitron", sans-serif;
    font-size: 1.25rem;
}

.game-card p {
    color: #cbd5e1;
    line-height: 1.7;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.game-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #c4b5fd;
    background: rgba(124, 58, 237, .14);
    border: 1px solid rgba(124, 58, 237, .28);
    font-size: .78rem;
    font-weight: 800;
}

.game-button,
.ranking-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, .38);
    color: #cffafe;
    background: rgba(34, 211, 238, .10);
    font-weight: 900;
    text-decoration: none;
    transition: .25s ease;
}

.game-button:hover,
.ranking-more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(34, 211, 238, .18);
}

/* TRIVIA */

.games-play-layout {
    display: grid;
    grid-template-columns: 1.5fr .8fr;
    gap: 24px;
    align-items: start;
}

.trivia-panel,
.ranking-panel {
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98)),
        radial-gradient(circle at top left, rgba(236, 72, 153, .18), transparent 40%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, .15), transparent 45%);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
    padding: 26px;
}

.trivia-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.trivia-panel-header h3,
.ranking-panel h3,
.trivia-intro h3,
.trivia-game h3,
.trivia-result h3 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
}

.trivia-score-pill {
    min-width: 76px;
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #67e8f9;
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    background: rgba(34, 211, 238, .10);
    border: 1px solid rgba(34, 211, 238, .35);
    box-shadow: 0 0 24px rgba(34, 211, 238, .12);
}

.trivia-intro,
.trivia-result {
    text-align: center;
    padding: 18px 0 8px;
}

.trivia-big-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    font-size: 3rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, .26), transparent 55%),
        linear-gradient(135deg, rgba(236, 72, 153, .20), rgba(15, 23, 42, .85));
    border: 1px solid rgba(34, 211, 238, .28);
    box-shadow: 0 0 34px rgba(34, 211, 238, .14);
}

.trivia-intro p,
.trivia-result p {
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 640px;
    margin: 10px auto 22px;
}

.trivia-form-grid {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 16px;
    max-width: 650px;
    margin: 0 auto 22px;
    text-align: left;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #e0f2fe;
    font-weight: 800;
    font-size: .92rem;
}

.form-field input,
.form-field select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 16px;
    background: rgba(2, 6, 23, .72);
    color: #f8fafc;
    padding: 13px 15px;
    outline: none;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.form-field input:focus,
.form-field select:focus {
    border-color: rgba(34, 211, 238, .75);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}

.trivia-question-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.trivia-question-meta span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    color: #c4b5fd;
    background: rgba(124, 58, 237, .14);
    border: 1px solid rgba(124, 58, 237, .32);
    font-weight: 800;
    font-size: .82rem;
}

.trivia-game h3 {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.35;
    margin-bottom: 22px;
}

.trivia-options {
    display: grid;
    gap: 12px;
}

.trivia-option {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .20);
    color: #e2e8f0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .90), rgba(30, 41, 59, .72));
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    transition: .22s ease;
}

.trivia-option span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #67e8f9;
    background: rgba(34, 211, 238, .12);
    border: 1px solid rgba(34, 211, 238, .28);
    font-family: "Orbitron", sans-serif;
}

.trivia-option:hover,
.trivia-option.selected {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, .55);
    box-shadow: 0 0 28px rgba(34, 211, 238, .14);
}

.trivia-option.selected {
    background:
        linear-gradient(135deg, rgba(8, 47, 73, .72), rgba(88, 28, 135, .52));
}

.trivia-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.trivia-status-text {
    margin-top: 18px;
    color: #94a3b8;
    font-weight: 700;
    text-align: center;
}

.trivia-status-text.success {
    color: #86efac;
}

.trivia-status-text.error {
    color: #fecaca;
}

.trivia-result-score {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.trivia-result-score strong,
.trivia-result-score span {
    min-width: 110px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(34, 211, 238, .10);
    border: 1px solid rgba(34, 211, 238, .30);
    color: #67e8f9;
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
}

/* RANKING PREVIEW */

.ranking-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border-radius: 18px;
    background: rgba(2, 6, 23, .58);
    border: 1px solid rgba(148, 163, 184, .16);
}

.ranking-position {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #020617;
    background: linear-gradient(135deg, #22d3ee, #ec4899);
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
}

.ranking-item strong {
    display: block;
    color: #f8fafc;
    font-weight: 900;
}

.ranking-item small {
    color: #94a3b8;
    font-weight: 700;
}

.ranking-empty {
    text-align: center;
    padding: 28px 12px;
    color: #cbd5e1;
}

.ranking-empty span {
    display: block;
    font-size: 2.6rem;
    margin-bottom: 10px;
}

/* RANKING PAGE */

.ranking-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.ranking-stat-card {
    padding: 22px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98)),
        radial-gradient(circle at top left, rgba(34, 211, 238, .16), transparent 45%);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.ranking-stat-card span {
    display: block;
    color: #94a3b8;
    font-weight: 800;
    margin-bottom: 8px;
}

.ranking-stat-card strong {
    display: block;
    color: #67e8f9;
    font-size: 2rem;
    font-family: "Orbitron", sans-serif;
}

.ranking-stat-card small {
    color: #cbd5e1;
}

.ranking-full-list {
    display: grid;
    gap: 14px;
}

.ranking-full-item {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.ranking-full-item.podium {
    border-color: rgba(34, 211, 238, .32);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .28),
        0 0 34px rgba(34, 211, 238, .12);
}

.ranking-full-position {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #020617;
    background: linear-gradient(135deg, #22d3ee, #ec4899);
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
}

.ranking-full-player strong {
    display: block;
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 900;
}

.ranking-full-player small {
    color: #94a3b8;
    font-weight: 700;
}

.ranking-full-score {
    text-align: right;
}

.ranking-full-score strong {
    display: block;
    color: #67e8f9;
    font-family: "Orbitron", sans-serif;
    font-size: 1.3rem;
}

.ranking-full-score span {
    color: #f0abfc;
    font-weight: 900;
}

.ranking-empty-big {
    text-align: center;
    padding: 46px 24px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
}

.ranking-empty-big span {
    display: block;
    font-size: 4rem;
    margin-bottom: 14px;
}

.ranking-empty-big h3 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    margin-bottom: 10px;
}

.ranking-empty-big p {
    color: #cbd5e1;
    margin-bottom: 22px;
}

/* CALLOUT */

.games-callout {
    max-width: 1200px;
    margin: 52px auto 0;
    padding: 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, .18), transparent 40%),
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
}

.games-callout h2 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    margin: 10px 0;
}

.games-callout p {
    color: #cbd5e1;
    line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .games-hero {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .games-play-layout {
        grid-template-columns: 1fr;
    }

    .ranking-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .games-grid,
    .ranking-stats-grid {
        grid-template-columns: 1fr;
    }

    .trivia-form-grid {
        grid-template-columns: 1fr;
    }

    .trivia-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ranking-full-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ranking-full-position {
        margin: 0 auto;
    }

    .ranking-full-score {
        text-align: center;
    }

    .games-hero-content {
        padding: 28px;
    }
}

/* =========================
   PANEL PRIVADO ANIME GAMES
========================= */

.admin-hero {
    margin-top: 40px;
}

.admin-panel-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-message {
    max-width: 1200px;
    margin: 24px auto;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
    backdrop-filter: blur(16px);
}

.admin-message.error {
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, .45);
    background: rgba(127, 29, 29, .35);
    box-shadow: 0 0 30px rgba(248, 113, 113, .15);
}

.admin-message.success {
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, .45);
    background: rgba(20, 83, 45, .35);
    box-shadow: 0 0 30px rgba(34, 197, 94, .15);
}

.admin-form {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98)),
        radial-gradient(circle at top left, rgba(236, 72, 153, .18), transparent 38%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, .14), transparent 42%);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.login-form {
    max-width: 460px;
    margin-top: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-field label {
    color: #e0f2fe;
    font-weight: 700;
    font-size: .95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 16px;
    background: rgba(2, 6, 23, .72);
    color: #f8fafc;
    padding: 13px 15px;
    outline: none;
    font-family: "Poppins", sans-serif;
    transition: .25s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(34, 211, 238, .75);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-weight: 700;
    margin: 12px 0 22px;
}

.check-line input {
    width: 18px;
    height: 18px;
    accent-color: #22d3ee;
}

.admin-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.spaced-actions {
    margin-bottom: 22px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.admin-stat-card {
    padding: 20px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .9), rgba(2, 6, 23, .96));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.admin-stat-card span {
    display: block;
    color: #94a3b8;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-stat-card strong {
    display: block;
    color: #67e8f9;
    font-size: 2rem;
    font-family: "Orbitron", sans-serif;
}

.admin-stat-card small {
    color: #cbd5e1;
}

.admin-question-list,
.admin-ranking-list {
    display: grid;
    gap: 16px;
}

.admin-question-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.admin-question-item.inactive {
    opacity: .66;
}

.admin-question-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.admin-question-main h3 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    margin-bottom: 16px;
    line-height: 1.45;
}

.admin-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    color: #c4b5fd;
    background: rgba(124, 58, 237, .14);
    border: 1px solid rgba(124, 58, 237, .32);
    font-weight: 800;
    font-size: .82rem;
}

.admin-options-list {
    display: grid;
    gap: 8px;
}

.admin-options-list div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, .48);
    border: 1px solid rgba(148, 163, 184, .14);
}

.admin-options-list div.correct {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .10);
}

.admin-options-list strong {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #020617;
    background: linear-gradient(135deg, #22d3ee, #ec4899);
    font-family: "Orbitron", sans-serif;
}

.admin-options-list span {
    color: #e2e8f0;
    font-weight: 700;
}

.admin-row-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-row-actions form {
    margin: 0;
}

.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, .35);
    background: rgba(34, 211, 238, .10);
    color: #cffafe;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition: .25s ease;
}

.mini-btn:hover {
    transform: translateY(-2px);
    background: rgba(34, 211, 238, .20);
    box-shadow: 0 0 24px rgba(34, 211, 238, .18);
}

.mini-btn.danger {
    color: #fecaca;
    border-color: rgba(248, 113, 113, .35);
    background: rgba(248, 113, 113, .10);
}

.mini-btn.danger:hover {
    background: rgba(248, 113, 113, .20);
    box-shadow: 0 0 24px rgba(248, 113, 113, .18);
}

.admin-ranking-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .90), rgba(2, 6, 23, .96));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.admin-ranking-item strong {
    display: block;
    color: #67e8f9;
    font-weight: 900;
    margin-bottom: 4px;
}

.admin-ranking-item p {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    margin: 0 0 4px;
}

.admin-ranking-item small {
    color: #94a3b8;
    font-weight: 700;
}

@media (max-width: 980px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-question-item,
    .admin-ranking-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .admin-stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   TOP 3 DE LA SEMANA
   Versión Épica Cyberpunk
========================= */

.weekly-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.weekly-podium-card {
    position: relative;
    overflow: hidden;
    padding: 34px 24px 30px;
    border-radius: 34px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .99));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
    isolation: isolate;
    transition: .28s ease;
}

.weekly-podium-card:hover {
    transform: translateY(-6px) scale(1.015);
}

/* Aura de fondo */
.weekly-podium-aura {
    position: absolute;
    inset: -35%;
    z-index: -3;
    opacity: .95;
    filter: blur(30px);
    pointer-events: none;
    animation: weeklyAuraPulse 4.5s ease-in-out infinite;
}

/* Brillo diagonal que pasa por arriba */
.weekly-podium-card::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -90%;
    width: 70%;
    height: 240%;
    z-index: -1;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, .04) 35%,
        rgba(255, 255, 255, .20) 50%,
        rgba(255, 255, 255, .04) 65%,
        transparent 100%
    );
    transform: rotate(10deg);
    animation: weeklyCardShine 5.5s ease-in-out infinite;
}

/* Partículas / textura de energía */
.weekly-podium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .55;
    background-image:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.18) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 22%, rgba(255,255,255,.14) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 76%, rgba(255,255,255,.13) 0 1px, transparent 2px),
        radial-gradient(circle at 28% 82%, rgba(255,255,255,.10) 0 1px, transparent 2px);
    animation: weeklyParticles 6s ease-in-out infinite;
}

/* Primer puesto - Dorado legendario */
.weekly-top-1 {
    border-color: rgba(250, 204, 21, .70);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .42),
        0 0 42px rgba(250, 204, 21, .24),
        0 0 90px rgba(250, 204, 21, .13),
        inset 0 0 34px rgba(250, 204, 21, .06);
    background:
        radial-gradient(circle at top, rgba(250, 204, 21, .24), transparent 42%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, .14), transparent 46%),
        linear-gradient(135deg, rgba(24, 17, 4, .94), rgba(2, 6, 23, .99));
}

.weekly-top-1 .weekly-podium-aura {
    background:
        radial-gradient(circle, rgba(250, 204, 21, .52) 0%, rgba(236, 72, 153, .18) 38%, transparent 70%);
}

/* Segundo puesto - Plateado neón */
.weekly-top-2 {
    border-color: rgba(203, 213, 225, .58);
    box-shadow:
        0 28px 82px rgba(0, 0, 0, .38),
        0 0 40px rgba(203, 213, 225, .18),
        0 0 76px rgba(34, 211, 238, .10),
        inset 0 0 30px rgba(203, 213, 225, .05);
    background:
        radial-gradient(circle at top, rgba(203, 213, 225, .19), transparent 44%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, .13), transparent 46%),
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .99));
}

.weekly-top-2 .weekly-podium-aura {
    background:
        radial-gradient(circle, rgba(203, 213, 225, .40) 0%, rgba(34, 211, 238, .15) 38%, transparent 70%);
}

/* Tercer puesto - Bronce fuego */
.weekly-top-3 {
    border-color: rgba(251, 146, 60, .60);
    box-shadow:
        0 28px 82px rgba(0, 0, 0, .38),
        0 0 40px rgba(251, 146, 60, .20),
        0 0 76px rgba(236, 72, 153, .10),
        inset 0 0 30px rgba(251, 146, 60, .05);
    background:
        radial-gradient(circle at top, rgba(251, 146, 60, .21), transparent 44%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, .13), transparent 46%),
        linear-gradient(135deg, rgba(30, 14, 5, .94), rgba(2, 6, 23, .99));
}

.weekly-top-3 .weekly-podium-aura {
    background:
        radial-gradient(circle, rgba(251, 146, 60, .42) 0%, rgba(236, 72, 153, .14) 38%, transparent 70%);
}

/* Corona animada especial para el #1 */
.weekly-top-1 .weekly-podium-medal {
    position: relative;
    font-size: 0;
    line-height: 1;
    min-height: 72px;
    margin-bottom: 14px;
    filter: none;
    animation: none;
}

.weekly-top-1 .weekly-podium-medal::before {
    content: "👑";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    line-height: 1;
    filter:
        drop-shadow(0 0 10px rgba(250, 204, 21, .85))
        drop-shadow(0 0 24px rgba(250, 204, 21, .45))
        drop-shadow(0 0 42px rgba(250, 204, 21, .25));
    animation: crownFloat 2.6s ease-in-out infinite;
}

/* Rank */
.weekly-podium-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    font-size: .82rem;
    font-weight: 900;
    margin-bottom: 18px;
    backdrop-filter: blur(14px);
}

.weekly-top-1 .weekly-podium-rank {
    color: #fef3c7;
    border-color: rgba(250, 204, 21, .42);
    background: rgba(250, 204, 21, .10);
}

.weekly-top-2 .weekly-podium-rank {
    color: #e2e8f0;
    border-color: rgba(203, 213, 225, .34);
    background: rgba(203, 213, 225, .08);
}

.weekly-top-3 .weekly-podium-rank {
    color: #fed7aa;
    border-color: rgba(251, 146, 60, .36);
    background: rgba(251, 146, 60, .09);
}

/* Medalla */
.weekly-podium-medal {
    position: relative;
    display: block;
    font-size: 3.3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(255,255,255,.16));
    animation: medalPulse 3.2s ease-in-out infinite;
}

/* Nombre */
.weekly-podium-card h3 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    margin-bottom: 8px;
    letter-spacing: .02em;
    text-shadow: 0 0 18px rgba(255, 255, 255, .08);
}

.weekly-top-1 h3 {
    color: #fef3c7;
    text-shadow:
        0 0 16px rgba(250, 204, 21, .32),
        0 0 32px rgba(250, 204, 21, .14);
}

.weekly-top-2 h3 {
    color: #f8fafc;
    text-shadow:
        0 0 16px rgba(203, 213, 225, .24),
        0 0 30px rgba(34, 211, 238, .10);
}

.weekly-top-3 h3 {
    color: #ffedd5;
    text-shadow:
        0 0 16px rgba(251, 146, 60, .26),
        0 0 30px rgba(236, 72, 153, .10);
}

.weekly-podium-label {
    color: #cbd5e1;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Score */
.weekly-podium-score {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.weekly-podium-score strong,
.weekly-podium-score span {
    min-width: 100px;
    padding: 13px 15px;
    border-radius: 20px;
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    backdrop-filter: blur(14px);
}

.weekly-top-1 .weekly-podium-score strong,
.weekly-top-1 .weekly-podium-score span {
    color: #fde68a;
    background: rgba(250, 204, 21, .13);
    border: 1px solid rgba(250, 204, 21, .38);
    box-shadow:
        0 0 22px rgba(250, 204, 21, .14),
        inset 0 0 16px rgba(250, 204, 21, .05);
}

.weekly-top-2 .weekly-podium-score strong,
.weekly-top-2 .weekly-podium-score span {
    color: #e2e8f0;
    background: rgba(203, 213, 225, .10);
    border: 1px solid rgba(203, 213, 225, .30);
    box-shadow:
        0 0 20px rgba(203, 213, 225, .10),
        inset 0 0 14px rgba(203, 213, 225, .04);
}

.weekly-top-3 .weekly-podium-score strong,
.weekly-top-3 .weekly-podium-score span {
    color: #fdba74;
    background: rgba(251, 146, 60, .11);
    border: 1px solid rgba(251, 146, 60, .32);
    box-shadow:
        0 0 20px rgba(251, 146, 60, .11),
        inset 0 0 14px rgba(251, 146, 60, .04);
}

.weekly-podium-card small {
    display: block;
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 700;
}

.weekly-empty {
    margin-top: 0;
}

/* Animaciones */
@keyframes weeklyAuraPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: .72;
    }

    50% {
        transform: scale(1.08) rotate(6deg);
        opacity: 1;
    }
}

@keyframes weeklyCardShine {
    0% {
        left: -95%;
        opacity: 0;
    }

    18% {
        opacity: .85;
    }

    38% {
        left: 125%;
        opacity: 0;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

@keyframes weeklyParticles {
    0%, 100% {
        opacity: .38;
        transform: translateY(0);
    }

    50% {
        opacity: .75;
        transform: translateY(-6px);
    }
}

@keyframes crownFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    50% {
        transform: translateX(-50%) translateY(-8px) scale(1.06);
    }
}

@keyframes medalPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@media (max-width: 980px) {
    .weekly-podium-grid {
        grid-template-columns: 1fr;
    }

    .weekly-podium-card {
        padding: 32px 22px;
    }
}

/* =========================
   ANIME GAMES CON CUENTAS
========================= */

.trivia-login-required {
    text-align: center;
    padding: 28px 18px 12px;
}

.trivia-login-required h3 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    margin-bottom: 10px;
}

.trivia-login-required p {
    max-width: 680px;
    margin: 0 auto 22px;
    color: #cbd5e1;
    line-height: 1.7;
}

.trivia-login-required.blocked {
    opacity: .86;
}

.trivia-player-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, .12), transparent 45%),
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.trivia-player-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 2rem;
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, .25), transparent 58%),
        linear-gradient(135deg, rgba(236, 72, 153, .18), rgba(15, 23, 42, .88));
    border: 1px solid rgba(34, 211, 238, .26);
}

.trivia-player-card span {
    display: block;
    color: #94a3b8;
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.trivia-player-card strong {
    display: block;
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    font-size: 1.1rem;
    margin: 4px 0;
}

.trivia-player-card small {
    color: #cbd5e1;
    font-weight: 700;
}

.trivia-player-xp {
    padding: 10px 14px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(250, 204, 21, .10);
    border: 1px solid rgba(250, 204, 21, .28);
    font-weight: 900;
    white-space: nowrap;
}

.account-trivia-options {
    max-width: 360px;
}

/* Vista rápida del ranking dentro de Anime Games */
.account-ranking-item {
    grid-template-columns: 54px 44px 1fr;
}

.ranking-user-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(34, 211, 238, .10);
    border: 1px solid rgba(34, 211, 238, .24);
    font-size: 1.25rem;
}

.account-ranking-item strong a {
    color: #f8fafc;
    text-decoration: none;
}

.account-ranking-item strong a:hover {
    color: #67e8f9;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .trivia-player-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .trivia-player-avatar {
        margin: 0 auto;
    }

    .trivia-player-xp {
        justify-self: center;
    }

    .account-ranking-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ranking-user-avatar,
    .ranking-position {
        margin: 0 auto;
    }
}

.trivia-player-avatar.has-image,
.ranking-user-avatar.has-image {
    padding: 0;
    overflow: hidden;
}

.trivia-player-avatar-img,
.ranking-user-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.trivia-player-avatar-emoji,
.ranking-user-avatar-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.trivia-player-avatar.has-image,
.ranking-user-avatar.has-image {
    padding: 0;
    overflow: hidden;
}

.trivia-player-avatar-img,
.ranking-user-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.trivia-player-avatar-emoji,
.ranking-user-avatar-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}