/* ==========================================================================
   LMH Top v2 — neon flyer / poster leaderboard
   ========================================================================== */

body.lmh-neon-ui .lmh-top-v2 {
    position: relative;
    margin-top: var(--neon-gap);
    padding: 14px 14px 16px;
    border: none;
    border-radius: calc(var(--neon-radius) + 4px);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(212, 255, 77, 0.09), transparent 55%),
        radial-gradient(80% 60% at 0% 100%, rgba(255, 107, 74, 0.06), transparent 50%),
        linear-gradient(160deg, rgba(16, 18, 24, 0.97), rgba(8, 9, 12, 0.99));
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 40px rgba(212, 255, 77, 0.05);
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s var(--neon-ease), transform 0.45s var(--neon-ease);
}

body.lmh-neon-ui .lmh-top-v2.is-in {
    opacity: 1;
    transform: translateY(0);
}

body.lmh-neon-ui .lmh-top-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-accent), transparent 42%, var(--neon-hot) 68%, var(--neon-accent-dim));
    background-size: 200% 200%;
    animation: neon-border-flow 7s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

body.lmh-neon-ui .lmh-top-v2::after {
    display: none;
}

body.lmh-neon-ui .lmh-top-v2__inner {
    position: relative;
    z-index: 1;
}

/* --- FX layer (hero-style) --- */
body.lmh-neon-ui .lmh-top-v2__fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
    z-index: 0;
}

body.lmh-neon-ui .lmh-top-v2__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background: radial-gradient(ellipse 80% 60% at 80% 10%, rgba(212, 255, 77, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255, 107, 74, 0.04), transparent 50%);
    animation: none;
}

body.lmh-neon-ui .lmh-top-v2__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 255, 77, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 255, 77, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 15%, transparent 72%);
    opacity: 0.6;
}

body.lmh-neon-ui .lmh-top-v2__beam {
    display: none !important;
}

body.lmh-neon-ui .lmh-top-v2__sparks {
    position: absolute;
    inset: 0;
}

body.lmh-neon-ui .lmh-top-v2__sparks i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--neon-accent);
    box-shadow: 0 0 8px var(--neon-glow);
    animation: lmh-top-v2-spark 4s ease-in-out infinite;
}

body.lmh-neon-ui .lmh-top-v2__sparks i:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
body.lmh-neon-ui .lmh-top-v2__sparks i:nth-child(2) { top: 22%; right: 12%; animation-delay: -1.2s; }
body.lmh-neon-ui .lmh-top-v2__sparks i:nth-child(3) { bottom: 30%; left: 15%; animation-delay: -2.4s; }
body.lmh-neon-ui .lmh-top-v2__sparks i:nth-child(4) { top: 45%; right: 22%; animation-delay: -0.8s; }
body.lmh-neon-ui .lmh-top-v2__sparks i:nth-child(5) { bottom: 18%; right: 8%; animation-delay: -1.8s; }
body.lmh-neon-ui .lmh-top-v2__sparks i:nth-child(6) { top: 65%; left: 42%; animation-delay: -3s; }

/* --- Corner ribbon (clipped inside box) --- */
body.lmh-neon-ui .lmh-top-v2__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    width: 72px;
    height: 72px;
    overflow: hidden;
    pointer-events: none;
    border-radius: 0 calc(var(--neon-radius) + 4px) 0 0;
}

body.lmh-neon-ui .lmh-top-v2__ribbon-text {
    display: block;
    position: absolute;
    top: 12px;
    right: -32px;
    width: 120px;
    padding: 5px 0;
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-align: center;
    text-transform: uppercase;
    color: #0a0b0e;
    background: linear-gradient(90deg, #c5e84a, var(--neon-accent) 45%, #e8ff8a);
    transform: rotate(45deg);
    transform-origin: center center;
    box-shadow: 0 2px 10px rgba(212, 255, 77, 0.35);
}

/* --- Header --- */
body.lmh-neon-ui .lmh-top-v2__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 36px;
}

body.lmh-neon-ui .lmh-top-v2__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 4px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-accent-dim);
}

body.lmh-neon-ui .lmh-top-v2__title {
    margin: 0;
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f4f6f8;
    text-shadow: 0 0 24px rgba(212, 255, 77, 0.2);
}

body.lmh-neon-ui .lmh-top-v2__title-accent {
    display: block;
    color: var(--neon-accent);
}

body.lmh-neon-ui .lmh-top-v2__lead {
    margin: 6px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.48);
}

/* --- Toolbar: filters + sort --- */
body.lmh-neon-ui .lmh-top-v2__toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

body.lmh-neon-ui .lmh-top-v2__sort {
    margin-top: 0;
}

body.lmh-neon-ui .lmh-top-v2__sort-arrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-accent);
}

/* --- F1-style 3D Podium --- */
body.lmh-neon-ui .lmh-top-v2__podium-arena {
    position: relative;
    margin: 4px 0 18px;
    padding: 0 4px 8px;
    perspective: 1100px;
    perspective-origin: 50% 35%;
}

body.lmh-neon-ui .lmh-top-v2__podium-spotlight {
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 42%;
    height: 75%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 55% 70% at 50% 100%, rgba(255, 215, 0, 0.18), transparent 68%);
    opacity: 0.85;
    pointer-events: none;
    animation: lmh-top-v2-spot-pulse 4s ease-in-out infinite;
    z-index: 0;
}

body.lmh-neon-ui .lmh-top-v2__podium-spotlight--p1 {
    left: 50%;
}

body.lmh-neon-ui .lmh-top-v2__podium {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: flex-end;
    gap: 6px;
    min-height: 240px;
    padding: 0 2px 28px;
    transform: rotateX(10deg);
    transform-style: preserve-3d;
}

body.lmh-neon-ui .lmh-top-v2__podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2px 0;
    opacity: 0;
    transform: translateY(24px) translateZ(0);
    animation: lmh-top-v2-card-in 0.65s var(--neon-ease) forwards;
    animation-delay: calc(var(--neon-i, 0) * 90ms + 140ms);
}

body.lmh-neon-ui .lmh-top-v2__podium-card--gold {
    --ped-h: 64px;
    --ped-depth: 22px;
    --ped-light: #3d3520;
    --ped-mid: #2a2418;
    --ped-dark: #14120c;
    --ped-top: linear-gradient(145deg, #ffe566, #c9a227 45%, #8b6914);
    --ped-front: linear-gradient(180deg, #ffd700 0%, #c9a227 18%, #5a4a12 55%, #2a2418 100%);
    --ped-side: linear-gradient(180deg, #8b6914, #1a1608);
    --podium-glow: rgba(255, 215, 0, 0.45);
    --podium-accent: #ffd700;
}

body.lmh-neon-ui .lmh-top-v2__podium-card--silver {
    --ped-h: 44px;
    --ped-depth: 18px;
    --ped-light: #3a4048;
    --ped-mid: #252a30;
    --ped-dark: #121418;
    --ped-top: linear-gradient(145deg, #f0f4f8, #a8b4c0 50%, #6a7580);
    --ped-front: linear-gradient(180deg, #e8ecf0 0%, #9aa8b4 20%, #4a5560 60%, #1e2228 100%);
    --ped-side: linear-gradient(180deg, #6a7580, #14181c);
    --podium-glow: rgba(192, 200, 208, 0.35);
    --podium-accent: #d0d8e0;
}

body.lmh-neon-ui .lmh-top-v2__podium-card--bronze {
    --ped-h: 34px;
    --ped-depth: 16px;
    --ped-light: #3d2a18;
    --ped-mid: #281c10;
    --ped-dark: #120c08;
    --ped-top: linear-gradient(145deg, #e8a86a, #b87333 50%, #7a4a1a);
    --ped-front: linear-gradient(180deg, #cd7f32 0%, #a05a20 22%, #5a3410 58%, #1e1408 100%);
    --ped-side: linear-gradient(180deg, #7a4a1a, #140c06);
    --podium-glow: rgba(205, 127, 50, 0.35);
    --podium-accent: #cd7f32;
}

body.lmh-neon-ui .lmh-top-v2__podium-card--slot-1 {
    z-index: 3;
}

body.lmh-neon-ui .lmh-top-v2__podium-card--slot-1.lmh-top-v2__podium-card {
    animation-name: lmh-top-v2-card-in-p1;
}

body.lmh-neon-ui .lmh-top-v2__podium-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 10px;
}

body.lmh-neon-ui .lmh-top-v2__podium-card--slot-1 .lmh-top-v2__podium-stage { min-height: 188px; }
body.lmh-neon-ui .lmh-top-v2__podium-card--slot-2 .lmh-top-v2__podium-stage { min-height: 158px; }
body.lmh-neon-ui .lmh-top-v2__podium-card--slot-3 .lmh-top-v2__podium-stage { min-height: 148px; }

body.lmh-neon-ui .lmh-top-v2__podium-can-wrap {
    position: relative;
    z-index: 4;
    margin-bottom: -6px;
    transform: translateZ(28px);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55));
}

body.lmh-neon-ui .lmh-top-v2__pedestal-3d {
    position: relative;
    width: 86%;
    height: calc(var(--ped-h) + 14px);
    transform-style: preserve-3d;
    transform: rotateY(-14deg);
}

body.lmh-neon-ui .lmh-top-v2__pedestal-front {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--ped-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ped-front);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -8px 16px rgba(0, 0, 0, 0.35),
        0 0 24px var(--podium-glow);
    transform: translateZ(calc(var(--ped-depth) / 2));
}

body.lmh-neon-ui .lmh-top-v2__pedestal-num {
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.55);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35),
        0 0 20px var(--podium-glow);
}

body.lmh-neon-ui .lmh-top-v2__podium-card--slot-1 .lmh-top-v2__pedestal-num {
    font-size: clamp(2.2rem, 6vw, 3rem);
    color: rgba(0, 0, 0, 0.5);
}

body.lmh-neon-ui .lmh-top-v2__pedestal-top {
    position: absolute;
    left: 0;
    bottom: var(--ped-h);
    width: 100%;
    height: 14px;
    background: var(--ped-top);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    transform-origin: center bottom;
    transform: rotateX(52deg) translateZ(calc(var(--ped-depth) / 2 + 4px));
    box-shadow: 0 -2px 12px var(--podium-glow);
}

body.lmh-neon-ui .lmh-top-v2__pedestal-side {
    position: absolute;
    right: -8px;
    bottom: 0;
    width: var(--ped-depth);
    height: var(--ped-h);
    background: var(--ped-side);
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-left: none;
    transform-origin: left bottom;
    transform: rotateY(72deg) translateZ(2px);
    filter: brightness(0.75);
}

body.lmh-neon-ui .lmh-top-v2__pedestal-glow {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -4px;
    height: 12px;
    background: radial-gradient(ellipse 80% 100% at 50% 0%, var(--podium-glow), transparent 70%);
    transform: rotateX(80deg);
    opacity: 0.7;
}

body.lmh-neon-ui .lmh-top-v2__can {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.25s var(--neon-ease), filter 0.25s ease;
}

body.lmh-neon-ui .lmh-top-v2__can:hover,
body.lmh-neon-ui .lmh-top-v2__can:focus-visible {
    transform: translateY(-6px) scale(1.05) translateZ(8px);
    filter: drop-shadow(0 12px 20px rgba(212, 255, 77, 0.3));
}

body.lmh-neon-ui .lmh-top-v2__podium-card--gold .lmh-top-v2__can { width: 92px; height: 138px; }
body.lmh-neon-ui .lmh-top-v2__podium-card--silver .lmh-top-v2__can,
body.lmh-neon-ui .lmh-top-v2__podium-card--bronze .lmh-top-v2__can { width: 74px; height: 112px; }

body.lmh-neon-ui .lmh-top-v2__can-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

body.lmh-neon-ui .lmh-top-v2__can-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 48px;
    border-radius: 6px;
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 1.4rem;
    color: var(--neon-accent);
    background: rgba(212, 255, 77, 0.08);
    border: 1px dashed rgba(212, 255, 77, 0.25);
}

body.lmh-neon-ui .lmh-top-v2__can:has(.lmh-top-v2__can-img) .lmh-top-v2__can-ph {
    display: none;
}

body.lmh-neon-ui .lmh-top-v2__podium-name {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #eef0f2;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

body.lmh-neon-ui .lmh-top-v2__podium-name:hover,
body.lmh-neon-ui .lmh-top-v2__podium-name:focus-visible {
    color: var(--neon-accent);
}

body.lmh-neon-ui .lmh-top-v2__podium-line {
    display: block;
    margin-top: 2px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.lmh-neon-ui .lmh-top-v2__podium-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

body.lmh-neon-ui .lmh-top-v2__podium-rating {
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--neon-accent);
    text-shadow: 0 0 12px var(--neon-glow);
}

body.lmh-neon-ui .lmh-top-v2__podium-reviews {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
}

body.lmh-neon-ui .lmh-top-v2__podium-card--unrated .lmh-top-v2__podium-rating {
    color: rgba(255, 255, 255, 0.28);
    text-shadow: none;
}

/* --- List rows --- */
body.lmh-neon-ui .lmh-top-v2__toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

body.lmh-neon-ui .lmh-top-v2__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(212, 255, 77, 0.14);
    background: rgba(0, 0, 0, 0.35);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.lmh-neon-ui .lmh-top-v2__search:focus-within {
    border-color: rgba(212, 255, 77, 0.35);
    box-shadow: 0 0 0 2px rgba(212, 255, 77, 0.08);
}

body.lmh-neon-ui .lmh-top-v2__search-icon {
    display: flex;
    color: rgba(212, 255, 77, 0.55);
    flex-shrink: 0;
}

body.lmh-neon-ui .lmh-top-v2__search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #eef0f2;
    font-size: 0.82rem;
    outline: none;
}

body.lmh-neon-ui .lmh-top-v2__search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

body.lmh-neon-ui .lmh-top-v2__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(50vh, 420px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 255, 77, 0.4) rgba(0, 0, 0, 0.25);
}

body.lmh-neon-ui .lmh-top-v2__list::-webkit-scrollbar {
    width: 5px;
}

body.lmh-neon-ui .lmh-top-v2__list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

body.lmh-neon-ui .lmh-top-v2__list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-accent), rgba(139, 195, 74, 0.65));
    border-radius: 4px;
}

body.lmh-neon-ui .lmh-top-v2__row {
    display: grid;
    grid-template-columns: 32px 52px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 255, 77, 0.08);
    background: rgba(0, 0, 0, 0.28);
    touch-action: pan-y;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

body.lmh-neon-ui .lmh-top-v2__row:hover {
    border-color: rgba(212, 255, 77, 0.22);
    background: rgba(212, 255, 77, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.lmh-neon-ui .lmh-top-v2__row-rank {
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
}

body.lmh-neon-ui .lmh-top-v2__row-can .lmh-top-v2__can {
    width: 48px;
    height: 68px;
    touch-action: pan-y;
}

body.lmh-neon-ui .lmh-top-v2__row-name {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: #eef0f2;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

body.lmh-neon-ui .lmh-top-v2__row-name:hover,
body.lmh-neon-ui .lmh-top-v2__row-name:focus-visible {
    color: var(--neon-accent);
}

body.lmh-neon-ui .lmh-top-v2__row-line {
    display: block;
    margin-top: 1px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.lmh-neon-ui .lmh-top-v2__row-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 52px;
}

body.lmh-neon-ui .lmh-top-v2__row-rating {
    font-family: var(--lmh-display, "Bebas Neue", sans-serif);
    font-size: 1rem;
    letter-spacing: 0.03em;
    color: var(--neon-accent);
}

body.lmh-neon-ui .lmh-top-v2__row-reviews {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.38);
}

body.lmh-neon-ui .lmh-top-v2__row--unrated .lmh-top-v2__row-rating,
body.lmh-neon-ui .lmh-top-v2__row--unrated .lmh-top-v2__row-reviews {
    color: rgba(255, 255, 255, 0.25);
}

body.lmh-neon-ui .lmh-top-v2__row--unrated .lmh-top-v2__row-name {
    color: rgba(255, 255, 255, 0.55);
}

/* --- Footer toggle --- */
body.lmh-neon-ui .lmh-top-v2__footer {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

body.lmh-neon-ui .lmh-top-v2__toggle {
    min-width: 160px;
}

/* --- Empty --- */
body.lmh-neon-ui .lmh-top-v2__empty {
    margin: 8px 0 0;
    padding: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    border: 1px dashed rgba(212, 255, 77, 0.15);
    background: rgba(0, 0, 0, 0.2);
}

/* --- Keyframes --- */
@keyframes lmh-top-v2-mesh-spin {
    to { transform: rotate(360deg); }
}

@keyframes lmh-top-v2-beam {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.75; }
}

@keyframes lmh-top-v2-spark {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
    50% { transform: translateY(-10px) scale(1.4); opacity: 1; }
}

@keyframes lmh-top-v2-card-in {
    to { opacity: 1; transform: translateY(0) translateZ(0); }
}

@keyframes lmh-top-v2-card-in-p1 {
    to { opacity: 1; transform: translateY(-8px) translateZ(16px); }
}

@keyframes lmh-top-v2-spot-pulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

@keyframes lmh-top-v2-row-in {
    to { opacity: 1; transform: translateX(0); }
}

/* --- Responsive --- */
@media (max-width: 560px) {
    body.lmh-neon-ui .lmh-top-v2__podium-arena {
        perspective: 800px;
    }

    body.lmh-neon-ui .lmh-top-v2__podium {
        gap: 3px;
        min-height: 200px;
        padding-bottom: 22px;
        transform: rotateX(8deg);
    }

    body.lmh-neon-ui .lmh-top-v2__podium-card--gold { --ped-h: 48px; }
    body.lmh-neon-ui .lmh-top-v2__podium-card--silver { --ped-h: 34px; }
    body.lmh-neon-ui .lmh-top-v2__podium-card--bronze { --ped-h: 28px; }

    body.lmh-neon-ui .lmh-top-v2__podium-card--gold .lmh-top-v2__can { width: 76px; height: 114px; }
    body.lmh-neon-ui .lmh-top-v2__podium-card--silver .lmh-top-v2__can,
    body.lmh-neon-ui .lmh-top-v2__podium-card--bronze .lmh-top-v2__can { width: 62px; height: 94px; }

    body.lmh-neon-ui .lmh-top-v2__pedestal-num { font-size: 1.5rem; }

    body.lmh-neon-ui .lmh-top-v2__row-can .lmh-top-v2__can {
        width: 42px;
        height: 58px;
    }

    body.lmh-neon-ui .lmh-top-v2__podium-name { font-size: 0.68rem; }

    body.lmh-neon-ui .lmh-top-v2__row {
        grid-template-columns: 26px 36px 1fr auto;
        gap: 8px;
        padding: 7px 8px;
    }

    body.lmh-neon-ui .lmh-top-v2__ribbon {
        top: 14px;
        right: -40px;
        width: 140px;
        font-size: 0.62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.lmh-neon-ui .lmh-top-v2__mesh,
    body.lmh-neon-ui .lmh-top-v2__beam,
    body.lmh-neon-ui .lmh-top-v2__sparks i,
    body.lmh-neon-ui .lmh-top-v2__podium-card {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}
