/* MCV UX polish — microanimaciones, páginas públicas, login, live, tickets, tracker */

:root {
    --mcv-red-dark: #991b1b;
    --ease-mcv: cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Global microinteractions —— */
.btn-primary,
.btn-secondary,
.btn-outline-red,
.home-feature-card,
.bento-grid .card,
.equipo-card,
.events-card,
.events-hof-card,
.video-card,
.live-stream-card--ux {
    transition:
        transform 0.22s var(--ease-mcv),
        border-color 0.22s var(--ease-mcv),
        box-shadow 0.22s var(--ease-mcv),
        background 0.22s var(--ease-mcv);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 28px rgba(250, 166, 26, 0.35), 0 16px 34px rgba(250, 166, 26, 0.18);
}

.home-feature-card:hover,
.bento-grid .card:hover {
    transform: translateY(-4px);
    border-color: rgba(250, 166, 26, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(250, 166, 26, 0.1);
}

a:not(.btn-primary):not(.btn-secondary) {
    transition: color 0.2s ease;
}

/* —— Toast —— */
.mcv-toast-host {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.mcv-toast {
    pointer-events: auto;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(250, 166, 26, 0.45);
    background: rgba(10, 10, 10, 0.94);
    color: var(--foreground);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s var(--ease-mcv), transform 0.25s var(--ease-mcv);
}
.mcv-toast.is-in {
    opacity: 1;
    transform: translateY(0);
}
.mcv-toast--ok { border-color: rgba(74, 222, 128, 0.5); }
.mcv-toast--err { border-color: rgba(239, 68, 68, 0.55); }

/* —— Home hero —— */
.home-hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.home-hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(250, 166, 26, 0.35);
    filter: blur(1px);
    animation: mcvParticleDrift 18s linear infinite;
}
.home-hero-particles span:nth-child(odd) {
    background: rgba(255, 255, 255, 0.12);
    animation-duration: 24s;
}
@keyframes mcvParticleDrift {
    0% { transform: translate3d(0, 110%, 0); opacity: 0; }
    12% { opacity: 0.7; }
    88% { opacity: 0.5; }
    100% { transform: translate3d(40px, -20%, 0); opacity: 0; }
}

.home-mark {
    position: relative;
}
.home-mark::after {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(250, 166, 26, 0.22), transparent 68%);
    z-index: -1;
    animation: mcvLogoGlow 4s ease-in-out infinite;
}
@keyframes mcvLogoGlow {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

.home-stats .stat-box {
    transition:
        transform 0.22s var(--ease-mcv),
        border-color 0.22s var(--ease-mcv),
        background 0.22s var(--ease-mcv),
        box-shadow 0.22s var(--ease-mcv);
}
.home-stats .stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 166, 26, 0.45);
    background: linear-gradient(180deg, rgba(250, 166, 26, 0.06), rgba(8, 8, 8, 0.9));
    box-shadow: inset 0 0 0 1px rgba(250, 166, 26, 0.12);
}

/* Home event strip (migrado desde admin) */
.home-event-strip {
    margin-top: 28px;
    max-width: 640px;
}
.home-event-strip[hidden] { display: none !important; }
.home-event-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 14px 18px;
    border: 1px solid rgba(250, 166, 26, 0.22);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}
.home-event-badge {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(250, 166, 26, 0.35);
    padding: 4px 8px;
    border-radius: 4px;
}
.home-event-title {
    flex: 1;
    min-width: 140px;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--foreground);
}
.home-event-cta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--primary);
    text-decoration: none;
}
.home-event-cta:hover { text-decoration: underline; }

/* Media cards */
.video-card .video-thumb img {
    transition: transform 0.25s var(--ease-mcv);
}
.video-card:hover .video-thumb img {
    transform: scale(1.05);
}
.video-platform {
    display: inline-block;
    margin-top: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

/* Footer — layout corregido (pulse fuera del flex de footer-content) */
.footer {
    padding: 48px 50px 24px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px 56px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.footer-links {
    flex-shrink: 0;
}
.footer-pulse {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 0 0 24px;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
}
.footer-pulse-item {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}
.footer-pulse-label {
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.footer-pulse-value {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--foreground);
    line-height: 1.2;
    word-break: break-word;
}
.footer-pulse-value.is-online { color: #4ade80; }
.footer-bottom {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

@media (max-width: 900px) {
    .footer { padding: 40px 24px 20px; }
    .footer-content { flex-direction: column; gap: 28px; }
    .footer-pulse { grid-template-columns: 1fr; }
}

/* —— Equipo —— */
.equipo-card {
    transition: transform 0.22s var(--ease-mcv), border-color 0.22s, box-shadow 0.22s;
}
.equipo-card:hover {
    transform: none;
    border-color: rgba(250, 166, 26, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(250, 166, 26, 0.1);
}
.equipo-card-avatar,
.equipo-card-avatar-link img {
    transition: transform 0.22s var(--ease-mcv);
}
.equipo-card:hover .equipo-card-avatar,
.equipo-card:hover .equipo-card-avatar-link img {
    transform: scale(1.05);
}
.equipo-rank-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--border);
}
.equipo-rank-badge--leader {
    color: var(--primary);
    border-color: rgba(250, 166, 26, 0.55);
    background: rgba(250, 166, 26, 0.1);
}
.equipo-rank-badge--coleader {
    color: #f87171;
    border-color: rgba(153, 27, 27, 0.65);
    background: rgba(153, 27, 27, 0.15);
}
.equipo-rank-badge--member {
    color: var(--muted);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
}
.equipo-soc[data-soc="twitch"]:hover {
    box-shadow: 0 0 16px rgba(145, 70, 255, 0.55);
    border-color: #9146ff;
}
.equipo-soc[data-soc="kick"]:hover {
    box-shadow: 0 0 16px rgba(83, 252, 24, 0.45);
    border-color: #53fc18;
}
.equipo-soc[data-soc="youtube"]:hover {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
}
.equipo-soc[data-soc="tiktok"]:hover {
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
    border-color: #22d3ee;
}

/* —— Events —— */
.events-page .events-hero {
    position: relative;
    overflow: hidden;
}
.events-hero-bg {
    position: absolute;
    inset: 0;
    background: url("banner.png") center / cover no-repeat;
    opacity: 0.22;
    z-index: 0;
}
.events-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0.92));
    z-index: 1;
}
.events-hero-inner {
    position: relative;
    z-index: 2;
}
.events-card-past-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 8px 0 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: var(--muted);
}
.events-card-past-details span strong {
    color: var(--foreground);
    font-weight: 500;
}
.events-empty-card {
    text-align: center;
    padding: 36px 24px;
    border: 1px dashed rgba(250, 166, 26, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(250, 166, 26, 0.05), transparent);
}
.events-empty-card p {
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    margin: 0 0 18px;
}
.events-empty-card .btn-primary {
    text-decoration: none;
}

/* —— Tracker —— */
.tracker-examples {
    max-width: 720px;
    margin: -28px auto 32px;
    text-align: left;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: var(--muted);
}
.tracker-examples code {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.45);
    color: var(--foreground);
    word-break: break-all;
}
.tracker-example-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.45);
    color: var(--foreground);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
    word-break: break-all;
    transition: border-color 0.2s, background 0.2s;
}
.tracker-example-btn:hover {
    border-color: rgba(250, 166, 26, 0.5);
    background: rgba(250, 166, 26, 0.08);
}

/* Estados API / banners */
.mcv-api-banner {
    max-width: 1180px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border: 1px dashed rgba(250, 166, 26, 0.35);
    border-radius: 8px;
    background: rgba(250, 166, 26, 0.06);
}
.mcv-api-banner p {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}
.mcv-data-warn { color: var(--primary) !important; }
.mcv-data-err { color: #f87171 !important; }
.footer-pulse-value.mcv-data-err { color: #f87171 !important; }

/* Tickets */
.ticket-type-badge.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(250, 166, 26, 0.12);
    box-shadow: 0 0 16px rgba(250, 166, 26, 0.15);
}
.ticket-id-success {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.08);
    text-align: center;
}
.ticket-id-success strong {
    display: block;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 2.4rem;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin: 8px 0;
}
.ticket-id-copy {
    margin-top: 10px;
}

/* Events — CTA principal */
.events-card-actions--open .events-card-register {
    font-size: 0.88rem;
}
.events-api-banner-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}
.home-stats-hint {
    max-width: 1180px;
    margin: -24px auto 12px;
    padding: 0 16px;
}

/* Live — offline global + links */
.live-offline-banner {
    margin-bottom: 22px;
    padding: 20px;
    text-align: center;
    border: 1px dashed rgba(250, 166, 26, 0.35);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
}
.live-offline-banner[hidden] { display: none !important; }
.live-offline-banner p {
    margin: 0 0 14px;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
}
.live-external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    text-decoration: none;
}
.live-external-link:hover {
    border-color: rgba(250, 166, 26, 0.5);
    background: rgba(250, 166, 26, 0.08);
}
.tracker-error-card {
    max-width: 520px;
    margin: 24px auto 0;
    padding: 20px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 10px;
    background: rgba(153, 27, 27, 0.12);
    text-align: center;
}
.tracker-error-card[hidden] { display: none !important; }
.tracker-error-card h3 {
    margin: 0 0 8px;
    font-family: "Bebas Neue", Impact, sans-serif;
    color: #fca5a5;
    letter-spacing: 0.06em;
}
.tracker-error-card p {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: var(--muted);
}

/* —— Tickets —— */
.ticket-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.ticket-type-badge {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}
.ticket-type-badge--recruit { border-color: rgba(250, 166, 26, 0.45); color: var(--primary); }
.ticket-type-badge--support { border-color: rgba(59, 130, 246, 0.4); color: #93c5fd; }
.ticket-type-badge--report { border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; }
.ticket-type-badge--tournament { border-color: rgba(168, 85, 247, 0.4); color: #d8b4fe; }

.tickets-page .tickets-intro {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.tickets-page .page-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 24px 80px;
}
.tickets-lookup {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.tickets-lookup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tickets-form-msg.ok { color: #4ade80; }
.tickets-form-msg.err { color: #f87171; }

/* —— Live / Streams —— */
.live-page .page-section.live-layout {
    min-height: 0;
    padding: 0;
    background: transparent;
}
.live-hero {
    position: relative;
    padding: 100px 24px 36px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.live-hero-bg {
    position: absolute;
    inset: 0;
    background: url("banner.png") center / cover no-repeat;
    opacity: 0.2;
}
.live-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 0.92));
}
.live-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.live-hero-inner .section-label {
    justify-content: center;
    margin-bottom: 12px;
}
.live-page .live-heading {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    margin: 0 0 12px;
    line-height: 1;
}
.live-page .live-heading span { color: var(--primary); }
.live-page .live-lead {
    color: var(--muted);
    max-width: 56ch;
    margin: 0 auto;
    line-height: 1.55;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
}
.live-page .live-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px 80px;
}
.live-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.live-stream-card--ux {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #080808;
}
.live-stream-card--ux.is-featured {
    border-color: rgba(250, 166, 26, 0.35);
}
.live-stream-card--ux:hover {
    transform: translateY(-4px);
    border-color: rgba(250, 166, 26, 0.45);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}
.live-stream-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
}
.live-stream-head h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}
.live-stream-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.live-platform-pill {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
}
.live-platform-pill--kick { color: #53fc18; border-color: rgba(83, 252, 24, 0.4); }
.live-platform-pill--twitch { color: #9146ff; border-color: rgba(145, 70, 255, 0.4); }
.live-viewers {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: var(--muted);
}
.stream-frame-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #050505;
}
.stream-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.stream-frame-wrap #twitch-mount {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.stream-frame-wrap #twitch-mount iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.live-stream-card--ux.is-featured .stream-frame-wrap {
    padding-bottom: 50%;
}
@media (min-width: 900px) {
    .live-stream-card--ux.is-featured .stream-frame-wrap {
        padding-bottom: 42%;
    }
}
.live-offline-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.85)),
        url("banner.png") center / cover no-repeat;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
}
.live-offline-placeholder strong {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.6rem;
    color: var(--foreground);
    letter-spacing: 0.06em;
}
.live-status-badge {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
}
.live-status-badge.is-live {
    border-color: rgba(239, 68, 68, 0.55);
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
}
.live-status-badge.is-offline { color: var(--muted); }

/* —— Login minimal —— */
.login-body .login-diag,
.login-body .login-hint,
.login-body .login-hint-api {
    display: none !important;
}
.login-body .login-brand h2 {
    font-size: 2.6rem;
    letter-spacing: 0.08em;
}
.login-body .login-brand .tagline {
    color: var(--primary);
}
.login-body .input-group label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.login-body #login-password::placeholder {
    color: #52525b;
}
.login-body .login-subtitle {
    margin: -8px 0 20px;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* —— Home quick paths (hero CTAs) —— */
.home-quick-paths {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    max-width: min(920px, 100%);
    width: 100%;
}
.home-path-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.42);
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.22s var(--ease-mcv),
        border-color 0.22s var(--ease-mcv),
        box-shadow 0.22s var(--ease-mcv),
        background 0.22s var(--ease-mcv);
}
.home-path-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 166, 26, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.home-path-card--primary {
    border-color: rgba(250, 166, 26, 0.35);
    background: linear-gradient(165deg, rgba(250, 166, 26, 0.12), rgba(0, 0, 0, 0.5));
}
.home-path-card i,
.home-path-card svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}
.home-path-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.home-path-card strong {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.55rem;
    letter-spacing: 0.05em;
    color: var(--foreground);
    line-height: 1.1;
}
.home-path-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
}
@media (max-width: 820px) {
    .home-quick-paths {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* —— Tournament público (recap + registro móvil) —— */
.winner-showcase {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(250, 166, 26, 0.08), transparent);
}
.winner-showcase-head {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 24px 12px;
    text-align: center;
}
.winner-showcase-head h2 {
    font-size: clamp(2.25rem, 6.5vw, 3.5rem);
    line-height: 1.05;
    margin: 0.2em 0 0.15em;
    text-transform: uppercase;
}
.winner-showcase-inner {
    max-width: min(680px, 94vw);
    margin: 0 auto;
    padding: 12px 16px 40px;
}
.winner-recap-frame {
    border: 2px solid rgba(250, 166, 26, 0.45);
    border-radius: 20px;
    background: rgba(5, 5, 5, 0.72);
    padding: 18px 20px;
}
.winner-recap-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px);
    align-items: start;
    justify-content: center;
    gap: 16px 20px;
}
@media (max-width: 640px) {
    .winner-recap-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}
.winner-sub { color: var(--muted); font-family: "JetBrains Mono", monospace; }
.winner-champions-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(165deg, rgba(28, 24, 16, 0.98) 0%, #0c0c0c 55%, #080808 100%);
    overflow: hidden;
}
.winner-champions-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 10px;
}
.winner-champions-trophy { width: 28px; height: 28px; color: var(--primary); }
.winner-champions-badge {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.14em;
    color: #fff;
}
.winner-roster {
    list-style: none;
    margin: 0;
    padding: 0 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.winner-roster li {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
}
.winner-recap-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(140px, 200px) !important;
    align-items: start !important;
}
.winner-poster-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(250, 166, 26, 0.22);
    background: #050505;
    max-height: 200px !important;
    width: 100%;
}
.winner-poster-wrap--recap {
    height: auto !important;
    max-height: 200px !important;
    align-self: start !important;
}
.winner-poster-wrap--photo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 200px !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
}
.winner-poster-wrap--photo img {
    width: 100%;
    height: auto !important;
    max-height: 200px !important;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.winner-poster-iframe-shell {
    position: relative;
    width: 100%;
    max-height: 200px !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.winner-poster-iframe-shell iframe.winner-poster-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    transform: none;
}
.tournament-live-offline {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.88rem;
    text-align: center;
}
.tournament-live-offline a { color: var(--primary); }
.t-hero-status {
    margin-top: 18px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    max-width: min(520px, 94vw);
    margin-left: auto;
    margin-right: auto;
}
.t-reg-closed {
    font-family: "JetBrains Mono", monospace;
    color: var(--muted);
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
}
.t-reg-closed a { color: var(--primary); }
.t-reg-success {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid rgba(74, 222, 128, 0.45);
    background: rgba(74, 222, 128, 0.08);
}
.t-reg-success[hidden] { display: none !important; }
.t-countdown {
    margin: 14px 0 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 0.06em;
}
.t-countdown[hidden] { display: none !important; }

@media (max-width: 720px) {
    .tournament-register {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 100px;
    }
    .tournament-register .squad-form {
        padding: 20px 16px;
    }
    .tournament-register .form-row.team-row,
    .tournament-register .player-row {
        grid-template-columns: 1fr;
        padding: 14px 16px;
        gap: 12px;
    }
    .tournament-register .player-num {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    .tournament-form-footer {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 16px -16px -20px;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.92) 18%, #0a0a0a 100%);
        border-top: 1px solid var(--border);
    }
    .tournament-form-footer .btn-primary {
        width: 100%;
        justify-content: center;
    }
    .tournament-form-footer p {
        font-size: 0.78rem;
        margin-bottom: 12px;
    }
    .tournament-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .tournament-actions .btn-primary,
    .tournament-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
