/* Hall of Fame. One loud element — the reigning champion, a dark glass card with gold trim —
   and everything else in the site's light glass with gold / silver / bronze medal accents. */
.fame { display: grid; gap: 22px; }
/* Grid items default to min-width:auto; without this the scrolling titles row widens the page. */
.fame > *, .fame-block > * { min-width: 0; }
.fame-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.fame-h i { color: #C98A0B; }

/* ---- Reigning champion ---- */
.champion {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px 28px;
    padding: 30px 32px; border-radius: 28px; color: #fff;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(245,184,46,.30), rgba(245,184,46,0) 55%),
        linear-gradient(150deg, #2B2008 0%, #17120A 60%, #0F0C06 100%);
    box-shadow: 0 22px 50px rgba(28,22,6,.35), inset 0 0 0 1.5px rgba(245,184,46,.65), inset 0 1px 0 rgba(255,236,170,.35);
}
.champion-glow {
    position: absolute; z-index: -1; inset: auto auto -40% -10%; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(245,184,46,.38), rgba(245,184,46,0)); pointer-events: none;
}
/* Portrait wearing the crown, framed by the laurel wreath (both generated art, images/fame). */
.champion-portrait { position: relative; margin: 44px 18px 10px; display: inline-flex; border-radius: 50%; isolation: isolate; }
.champion-portrait .portrait { position: relative; z-index: 1; }
.champion-laurel { position: absolute; z-index: 0; left: 50%; top: 50%; width: 158%; height: auto; max-width: none; transform: translate(-50%, -47%); pointer-events: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.champion-crown {
    position: absolute; z-index: 2; left: 50%; top: -48px; width: 82px; height: auto; pointer-events: none;
    transform: translateX(-58%) rotate(-12deg); transform-origin: 50% 100%;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(245,184,46,.45));
}
.champion-portrait .portrait { box-shadow: 0 0 0 4px #F5B82E, 0 0 0 9px rgba(245,184,46,.22), 0 14px 34px rgba(0,0,0,.45); }
.champion-portrait:focus-visible { outline: 3px solid #F5B82E; outline-offset: 6px; }
.champion-text { display: grid; gap: 8px; min-width: 0; }
.champion-kicker { font-size: .85rem; color: #F3D27A; font-weight: 700; }
.champion-name {
    font-family: 'Bangers', 'Nunito', sans-serif; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .03em; line-height: 1;
    color: #fff; text-decoration: none; overflow-wrap: anywhere;
    text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 24px rgba(245,184,46,.35);
}
.champion-name:hover { color: #FFE08A; }
.champion-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.champion-stats span {
    padding: 6px 12px; border-radius: 999px; font-size: .86rem; color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(245,184,46,.35);
}
.champion-stats strong { color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .champion { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 18px; }
    .champion-stats { justify-content: center; }
    .champion .portrait--xl { width: 104px; height: 104px; font-size: 2.4rem; }
}

/* ---- Most titles ---- */
.titles-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.title-card {
    flex: none; display: grid; justify-items: center; gap: 6px; min-width: 132px; padding: 16px 14px; border-radius: 22px;
    text-decoration: none; color: var(--ink);
    background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.5));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 8px 20px rgba(150,105,10,.14);
}
.title-card.is-first { background: linear-gradient(180deg, rgba(255,240,196,.95), rgba(255,226,140,.7)); box-shadow: inset 0 0 0 1.5px rgba(245,184,46,.8), 0 10px 24px rgba(201,138,11,.25); }
.title-card:hover { transform: translateY(-2px); }
.title-name { font-weight: 800; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-count { display: inline-flex; align-items: center; gap: 2px; font-size: .72rem; color: #C98A0B; }
.title-count strong { margin-left: 4px; font-size: .95rem; color: var(--ink); }

/* ---- Cricket legends ---- */
.legends { display: grid; gap: 14px; }
@media (min-width: 860px) { .legends { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legend-card { padding: 16px !important; }
.legend-card h3 { margin: 0 0 10px; font-size: .98rem; font-weight: 800; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.legend-card h3 i { color: #C98A0B; }
.legend-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--glass-inlay); }
.legend-row a { color: var(--ink); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-row a:hover { color: var(--ember); }
.legend-row strong { font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---- Season podiums ---- */
.seasons { display: grid; gap: 16px; }
@media (min-width: 900px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.season-card { padding: 16px 14px 12px !important; overflow: hidden; }
.season-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.season-head h3 { margin: 0; font-family: 'Bangers', 'Nunito', sans-serif; font-size: 1.5rem; letter-spacing: .03em; color: var(--ink); }
/* The podium art is 900x322; in it the step tops sit at 0% (gold), 16% (silver) and 32% (bronze)
   of its height, and the engraved laurels are centred at 58% / 66% / 76%. Each winner's column
   is pushed down by its step's offset so they stand on their own block. */
.podium { container-type: inline-size; margin-top: 14px; }
.podium-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.podium-step {
    --drop: 0; display: grid; justify-items: center; gap: 2px; padding: 0 4px; min-width: 0;
    text-decoration: none; color: var(--ink);
    /* + 1.5%: the name and score rest on the back edge of the block's top face */
    transform: translateY(calc(100cqw / 2.795 * (var(--drop) + .015)));
}
.podium-step--silver { --drop: .16; }
.podium-step--bronze { --drop: .32; }
.podium-avatar { position: relative; display: inline-flex; margin-bottom: 4px; }
.podium-crown { position: absolute; z-index: 2; left: 50%; top: -30px; width: 50px; height: auto; transform: translateX(-56%) rotate(-12deg); transform-origin: 50% 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); pointer-events: none; }
.podium-step--gold .podium-avatar { margin-top: 28px; }
.podium-name { font-weight: 800; font-size: .86rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-score { font-size: .78rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.podium-base { position: relative; }
.podium-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(120, 80, 0, .25)); }
/* Rank numbers set into the laurel on each block's face, like an engraving. */
.podium-rank {
    position: absolute; transform: translate(-50%, -50%);
    font-family: 'Bangers', 'Nunito', sans-serif; font-size: clamp(1.4rem, 7cqw, 2.4rem); line-height: 1;
    color: rgba(60, 40, 0, .38); text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(0, 0, 0, .18);
}
.podium-rank--silver { left: 16.5%; top: 66%; color: rgba(40, 46, 56, .38); }
.podium-rank--gold   { left: 50%;   top: 58%; }
.podium-rank--bronze { left: 83%;   top: 76%; color: rgba(70, 30, 6, .4); }
.podium-step:hover .podium-name { color: var(--ember); }
.podium-step:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .title-card:hover { transform: none; } }

/* ---- Champion card: trophy art, one-time sheen, twinkling sparks ---- */
.champion { min-height: 230px; }
.champion-art {
    position: absolute; z-index: -1; right: -40px; top: 50%; width: min(420px, 62%); height: auto; transform: translateY(-50%);
    pointer-events: none; user-select: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
    opacity: .92;
}
.champion-text { position: relative; }
/* Gold-foil shine: a soft diagonal band of light crosses the WHOLE card corner to corner, then
   rests; repeats every 6s. The band is taller than the card and rotated, so it never shows an
   edge, and only its transform animates (compositor, no repaint). */
.champion-sheen { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.champion-sheen::before {
    content: ""; position: absolute; top: -60%; left: 0; width: 42%; height: 220%;
    background: linear-gradient(90deg, rgba(255,236,170,0) 0%, rgba(255,236,170,.14) 28%, rgba(255,250,225,.46) 50%, rgba(255,236,170,.14) 72%, rgba(255,236,170,0) 100%);
    transform: translateX(-130%) rotate(18deg);
    animation: fame-sheen 6.5s ease-in-out 1.2s infinite;
}
@keyframes fame-sheen {
    0%        { transform: translateX(-130%) rotate(18deg); }
    42%, 100% { transform: translateX(340%) rotate(18deg); }
}
.champion-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.champion-sparks i {
    position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #FFE08A;
    box-shadow: 0 0 8px 2px rgba(245,184,46,.7); opacity: 0;
    animation: fame-twinkle 3.6s ease-in-out infinite;
}
.champion-sparks i:nth-child(1) { left: 58%; top: 18%; animation-delay: .2s; }
.champion-sparks i:nth-child(2) { left: 72%; top: 30%; animation-delay: 1.1s; }
.champion-sparks i:nth-child(3) { left: 86%; top: 22%; animation-delay: 2.0s; }
.champion-sparks i:nth-child(4) { left: 64%; top: 72%; animation-delay: .7s; }
.champion-sparks i:nth-child(5) { left: 92%; top: 64%; animation-delay: 1.6s; }
.champion-sparks i:nth-child(6) { left: 79%; top: 84%; animation-delay: 2.6s; }
.champion-sparks i:nth-child(7) { left: 12%; top: 16%; animation-delay: 3.0s; }
@keyframes fame-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1); } }
@media (max-width: 640px) {
    /* Phones stack the card: the trophy art would sit right behind the crowned portrait. */
    .champion-art { display: none; }
}
/* Same switch as the rest of the site (motion.js): motion runs unless the page sets data-motion="off". */
html[data-motion="off"] .champion-sparks i { animation: none; opacity: .5; }
html[data-motion="off"] .champion-sheen::before { animation: none; }
