/* Home page. The hero (generated cricket art + headline) is the loud element; tiles, the today
   strip and the podium follow the site's light glass with the gold/ink accents. */
.home { display: grid; gap: 22px; }
.home > * { min-width: 0; }

.home-hero {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; min-height: 360px;
    display: flex; align-items: center; padding: 34px 36px;
    box-shadow: 0 22px 50px rgba(150, 105, 10, .3), inset 0 0 0 1.5px rgba(255, 255, 255, .75);
}
.home-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; z-index: -2; }
.home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(255, 246, 214, .92) 0%, rgba(255, 240, 190, .74) 38%, rgba(255, 236, 170, 0) 66%);
}
.home-hero-text { display: grid; gap: 14px; max-width: 520px; }
.home-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.home-hero p { margin: 0; font-size: 1.02rem; color: var(--ink-2); max-width: 44ch; }
.home-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.home-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
    font-weight: 800; font-size: .8rem; color: var(--ink);
}
.home-chip .live-pulse { background: var(--ink-3); animation: none; }
.home-chip.is-live { background: var(--rose, #FF4D6A); color: #fff; }
.home-chip.is-live .live-pulse { background: #fff; animation: live-pulse 1.4s ease-in-out infinite; }
.home-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) {
    .home-hero { min-height: 0; padding: 26px 20px 30px; align-items: flex-end; }
    .home-hero::before { background: linear-gradient(0deg, rgba(255, 246, 214, .95) 0%, rgba(255, 240, 190, .8) 55%, rgba(255, 236, 170, .2) 100%); }
    .home-hero-art { object-position: 80% 40%; }
}

.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.home-tile {
    display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 22px; text-decoration: none; color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .5));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 20px rgba(150, 105, 10, .13);
    font-weight: 800; font-size: .88rem; transition: transform .15s ease;
}
.home-tile i { font-size: 1.6rem; color: var(--ink); }
.home-tile:hover { color: var(--ink); transform: translateY(-2px); }
.home-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 560px) { .home-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .home-tile { padding: 12px 4px; font-size: .7rem; border-radius: 16px; } .home-tile i { font-size: 1.3rem; } }

.home-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .home-today { gap: 6px; } .home-today .home-stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; } }
.home-stat {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: var(--ink);
    background: var(--glass-inlay); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.home-stat i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #F5B82E; font-size: 1.1rem; flex: none; }
.home-stat span { display: grid; font-size: .76rem; color: var(--ink-3); }
.home-stat strong { font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
a.home-stat:hover { color: var(--ink); background: rgba(255, 255, 255, .85); }

.home-block { display: grid; gap: 12px; }
.home-block-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.home-block-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.home-block-head h2 i { color: #C98A0B; }

.home-podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 12px; }
.podium-card {
    position: relative; display: grid; justify-items: center; gap: 6px; padding: 18px 10px 16px; border-radius: 24px; text-decoration: none; color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .5));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 24px rgba(150, 105, 10, .14);
    min-width: 0;
}
.podium-card--gold {
    padding-top: 42px; color: #fff;
    background: radial-gradient(120% 80% at 50% 0%, rgba(245, 184, 46, .35), rgba(245, 184, 46, 0) 60%), linear-gradient(160deg, #2B2008, #120E07);
    box-shadow: 0 18px 40px rgba(28, 22, 6, .3), inset 0 0 0 1.5px rgba(245, 184, 46, .7);
}
.podium-card:hover { transform: translateY(-2px); color: inherit; }
.podium-card--gold:hover { color: #fff; }
/* The richest player wears the crown (images/fame/crown.webp, shared with the Hall of Fame). */
.home-podium-avatar { position: relative; display: inline-flex; }
.home-crown { position: absolute; z-index: 1; left: 50%; top: -30px; width: 52px; height: auto; transform: translateX(-56%) rotate(-12deg); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.podium-card-name { font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card-val { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.05rem; }
.podium-card--gold .podium-card-val { color: #FFE08A; font-size: 1.3rem; }
.home-rest { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 760px) { .home-rest { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .home-tile, .podium-card { transition: none; } .home-chip.is-live .live-pulse { animation: none; } }
