@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Ubuntu:wght@400;500;700&display=swap');

:root {
    --bg: #060907;
    --bg-soft: #0b100c;
    --card: rgba(255, 255, 255, 0.045);
    --card-strong: rgba(255, 255, 255, 0.075);
    --border: rgba(255, 255, 255, 0.1);
    --lime: #ccff66;
    --lime-soft: rgba(204, 255, 102, 0.12);
    --lime-border: rgba(204, 255, 102, 0.35);
    --text: #eef3ea;
    --muted: #97a593;
    --danger: #ff5c6c;
    --gold: #ffd166;
    --radius: 18px;
    --font-display: 'Bebas Neue', 'Ubuntu', sans-serif;
    --font-body: 'Ubuntu', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(204, 255, 102, 0.07), transparent 60%),
        radial-gradient(900px 500px at -10% 5%, rgba(34, 197, 94, 0.06), transparent 55%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 90px, transparent 90px 180px);
    pointer-events: none;
}

::selection { background: var(--lime); color: #0b1207; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(204, 255, 102, 0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(204, 255, 102, 0.45); }

a { color: inherit; }
img { max-width: 100%; }

main { min-height: 62vh; }

.center { text-align: center; }

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px clamp(16px, 5vw, 48px);
    background: rgba(6, 9, 7, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 2px;
    text-decoration: none;
    white-space: nowrap;
}

.brand em {
    font-style: normal;
    color: var(--lime);
    text-shadow: 0 0 18px rgba(204, 255, 102, 0.45);
}

.brand .ball {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    border-radius: 11px;
    background: linear-gradient(135deg, #e2ff9b, var(--lime) 55%, #9edb3f);
    box-shadow: 0 0 20px rgba(204, 255, 102, 0.35);
}

.nav nav { display: flex; gap: 4px; }

.nav nav a {
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.nav nav a:hover { color: var(--text); background: var(--card-strong); }

.nav nav a[aria-current='page'] { color: #0b1207; background: var(--lime); font-weight: 700; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #e2ff9b, var(--lime) 55%, #9edb3f);
    color: #0b1207;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(204, 255, 102, 0.22);
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(204, 255, 102, 0.38); }
.btn:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-ghost:hover { border-color: var(--lime-border); color: var(--lime); box-shadow: none; }

.btn-block { width: 100%; margin-top: 26px; }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 48px) clamp(48px, 7vw, 80px);
}

.fb {
    position: absolute;
    z-index: -1;
    opacity: 0.13;
    filter: drop-shadow(0 0 16px rgba(204, 255, 102, 0.5));
    animation: floaty 6s ease-in-out infinite;
}

.fb1 { top: 10%; left: 3%; font-size: 2.6rem; }
.fb2 { top: 18%; right: 5%; font-size: 1.5rem; animation-delay: 1.2s; }
.fb3 { bottom: 16%; left: 10%; font-size: 2rem; animation-delay: 2.2s; }
.fb4 { bottom: 7%; right: 20%; font-size: 1.25rem; animation-delay: 0.6s; }

.hero-kicker {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--lime-border);
    border-radius: 999px;
    background: var(--lime-soft);
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.hero-title {
    margin: 22px 0 18px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(4rem, 11vw, 8.2rem);
    line-height: 0.9;
    letter-spacing: 3px;
}

.hero-title .glow {
    color: var(--lime);
    text-shadow: 0 0 34px rgba(204, 255, 102, 0.5);
}

.hero-sub {
    max-width: 540px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 34px; }

.chip {
    min-width: 108px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}

.chip b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1px;
    color: var(--lime);
}

.chip span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
}

.chip.name b {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.chip.name span { color: var(--lime); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; display: grid; place-items: center; }

.hero-art::before {
    content: '';
    position: absolute;
    width: min(75%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 255, 102, 0.16), transparent 65%);
}

.hero-art img {
    width: min(100%, 360px);
    filter: invert(1) drop-shadow(0 12px 50px rgba(204, 255, 102, 0.28));
    animation: floaty 5.5s ease-in-out infinite;
}

.ticker {
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: rgba(204, 255, 102, 0.04);
}

.ticker-track {
    display: inline-flex;
    gap: 44px;
    padding: 13px 0;
    white-space: nowrap;
    animation: tick 26s linear infinite;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--lime);
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 48px);
}

.kicker {
    margin: 0 0 6px;
    color: var(--lime);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 34px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    letter-spacing: 2px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.card {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--lime-border);
    background: var(--card-strong);
}

.card .icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    font-size: 1.6rem;
    border-radius: 16px;
    background: var(--lime-soft);
    border: 1px solid var(--lime-border);
}

.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.copa {
    display: block;
    height: 150px;
    margin: 0 auto 10px;
    filter: invert(1) sepia(1) saturate(4) hue-rotate(8deg) drop-shadow(0 10px 34px rgba(255, 209, 102, 0.35));
    animation: floaty 5s ease-in-out infinite;
}

.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
    max-width: 880px;
    margin: 0 auto;
}

.p-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 18px 26px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    transition: transform 0.18s;
}

.p-card:hover { transform: translateY(-5px); }

.p-card .medal {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.p1 .medal { background: rgba(255, 209, 102, 0.14); border-color: rgba(255, 209, 102, 0.55); }
.p2 .medal { background: rgba(215, 222, 230, 0.12); border-color: rgba(215, 222, 230, 0.45); }
.p3 .medal { background: rgba(224, 153, 95, 0.12); border-color: rgba(224, 153, 95, 0.5); }

.p1 {
    order: 2;
    transform: translateY(-16px);
    border-color: rgba(255, 209, 102, 0.45);
    background: linear-gradient(180deg, rgba(255, 209, 102, 0.1), var(--card));
}

.p1:hover { transform: translateY(-21px); }
.p2 { order: 1; }
.p3 { order: 3; }

.p-name { margin: 4px 0 0; font-size: 1.08rem; }
.p-badge { font-size: 0.8rem; letter-spacing: 2px; }

.p-pts {
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: 1;
    color: var(--lime);
}

.p2 .p-pts, .p3 .p-pts { color: var(--text); }

.p-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
}

.podium-cta { margin: 30px 0 0; text-align: center; }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

table { width: 100%; min-width: 700px; border-collapse: collapse; }

thead th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

thead th:first-child, thead th:nth-child(2) { text-align: left; }

tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.035); }

td.pos { font-weight: 700; white-space: nowrap; }
td.team { font-weight: 700; }
.t-badge { font-weight: 400; font-size: 0.72rem; letter-spacing: 1.5px; margin-left: 6px; }

.num {
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

td.pt { color: var(--lime); font-weight: 700; font-size: 1.08rem; }
td.pf { color: var(--text); }

.row-top td { background: rgba(204, 255, 102, 0.03); }
.row-down td.pos, .row-down .t-name { color: var(--danger); }
.pos-top { color: var(--lime); }
.pos-europa { color: var(--gold); }
.down-arrow { font-size: 0.7rem; }

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.jornada {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}

.jornada summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    transition: background 0.15s;
}

.jornada summary::-webkit-details-marker { display: none; }
.jornada summary:hover { background: var(--card-strong); }

.jornada summary::after {
    content: '▾';
    margin-left: auto;
    color: var(--lime);
    transition: transform 0.2s;
}

.jornada[open] summary::after { transform: rotate(180deg); }

.jornada .j-n {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 1.5px;
}

.jornada .j-meta {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.j-matches { border-top: 1px solid var(--border); }

.match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    font-size: 0.95rem;
}

.match:last-child { border-bottom: 0; }
.match .home { text-align: right; }
.match .away { text-align: left; }
.match .winner { color: var(--lime); font-weight: 700; }
.match .loser { color: var(--muted); }

.score {
    min-width: 78px;
    padding: 4px 12px;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
}

.cta-card {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 70px) 28px;
    text-align: center;
    border: 1px solid var(--lime-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(204, 255, 102, 0.08), rgba(204, 255, 102, 0.015));
}

.cta-card h2 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: 2px;
}

.cta-card p { margin: 0 auto; max-width: 520px; color: var(--muted); }

.cta-card .btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.cta-card::after {
    content: '⚽';
    position: absolute;
    right: -30px;
    bottom: -46px;
    font-size: 12rem;
    opacity: 0.05;
    transform: rotate(-18deg);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    max-width: 1020px;
    margin: 0 auto;
    align-items: start;
}

.panel {
    padding: clamp(20px, 5vw, 30px);
    overflow-wrap: anywhere;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.panel h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.panel .p-desc {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.93rem;
}

label {
    display: block;
    margin: 20px 0 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

select, textarea, input[type='password'] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2397a593' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

select option { background: var(--bg-soft); }

textarea {
    min-height: 160px;
    resize: vertical;
    font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    word-break: break-all;
}

select:focus, textarea:focus, input[type='password']:focus {
    border-color: var(--lime-border);
    box-shadow: 0 0 0 3px rgba(204, 255, 102, 0.14);
}

.steps {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    counter-reset: paso;
}

.steps li {
    position: relative;
    padding: 0 0 16px 46px;
    color: var(--muted);
    font-size: 0.93rem;
    counter-increment: paso;
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--lime-soft);
    border: 1px solid var(--lime-border);
    color: var(--lime);
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-data { grid-column: 1 / -1; }

.data-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.warn {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed rgba(255, 209, 102, 0.5);
    border-radius: 12px;
    background: rgba(255, 209, 102, 0.06);
    color: #ffd98a;
    font-size: 0.88rem;
}

.result-box { max-width: 780px; margin: 0 auto; }

.banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 26px 28px;
    border-radius: var(--radius);
    border: 1px solid;
}

.banner .b-icon { font-size: 2rem; line-height: 1; }

.banner h1 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 1.5px;
}

.banner p { margin: 0; color: var(--muted); }

.banner.ok {
    border-color: rgba(46, 204, 113, 0.45);
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0.03));
}

.banner.err {
    border-color: rgba(255, 92, 108, 0.45);
    background: linear-gradient(180deg, rgba(255, 92, 108, 0.12), rgba(255, 92, 108, 0.03));
}

.banner.err h1, .banner.err .b-icon { color: var(--danger); }

.result-note {
    margin: 14px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.result-note b { color: var(--lime); }

.result-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.empty {
    padding: 64px 24px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 1.02rem;
}

.empty a { color: var(--lime); }

.footer {
    margin-top: 70px;
    padding: 40px 20px 46px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.footer-brand {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--text);
}

.footer-brand em { font-style: normal; color: var(--lime); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--lime); }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 14px 0 0;
}

.footer-links a { text-decoration: none; }

.fade-in {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-16px) rotate(6deg); }
}

@keyframes tick {
    to { transform: translateX(-50%); }
}

.data-meta {
    margin: 14px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

.btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-stats, .hero-cta { justify-content: center; }
    .hero-art { order: -1; }
    .hero-art img { width: min(58%, 260px); }
    .admin-grid { grid-template-columns: minmax(0, 1fr); }
    .rules-grid { grid-template-columns: repeat(2, 1fr); }
    .fb3, .fb4 { display: none; }
}

@media (max-width: 640px) {
    .nav { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 12px; }
    .nav nav { width: 100%; justify-content: space-between; gap: 6px; }
    .nav nav a { flex: 1; text-align: center; }
    table { min-width: 0; }
    thead th, tbody td { padding: 10px 3px; }
    thead th:first-child, tbody td:first-child { padding-left: 8px; }
    thead th:last-child, tbody td:last-child { padding-right: 8px; }
    thead th { font-size: 0.6rem; letter-spacing: 0.3px; }
    tbody td { font-size: 0.76rem; }
    td.pt { font-size: 0.92rem; }
    tbody td.num { white-space: nowrap; }
    .t-badge { display: block; margin: 2px 0 0; font-size: 0.6rem; letter-spacing: 0; }
    .match { gap: 8px; padding: 10px 12px; font-size: 0.86rem; }
    .score { min-width: 64px; padding: 4px 8px; }
    .jornada summary { padding-inline: 14px; }
}

@media (max-width: 560px) {
    .brand { font-size: 1.15rem; letter-spacing: 1px; }
    .nav nav a { padding: 8px 10px; font-size: 0.85rem; }
    .rules-grid { grid-template-columns: 1fr; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .chip { min-width: 0; padding: 10px 8px; }
    .chip.name { grid-column: 1 / -1; }
    .chip span { letter-spacing: 1px; }
    .podium { gap: 8px; }
    .p1 { transform: translateY(-10px); }
    .p1:hover { transform: translateY(-14px); }
    .p-card { gap: 4px; padding: 18px 6px 16px; border-radius: 14px; }
    .p-card .medal { width: 40px; height: 40px; font-size: 1.25rem; }
    .p-name { font-size: 0.82rem; line-height: 1.25; overflow-wrap: anywhere; }
    .p-badge { font-size: 0.66rem; letter-spacing: 1px; }
    .p-pts { font-size: 2.3rem; }
    .p-sub { font-size: 0.6rem; letter-spacing: 0.6px; }
    .copa { height: 110px; }
}

@media (max-width: 340px) {
    thead th, tbody td { padding-inline: 2px; }
    thead th:first-child, tbody td:first-child { padding-left: 6px; }
    thead th:last-child, tbody td:last-child { padding-right: 6px; }
    tbody td { font-size: 0.7rem; }
    td.pt { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .fade-in { opacity: 1; }
}
