/* Record book. The all-time highest score is the one loud element (dark glass, gold trim, the
   Hall of Fame language); the other headline records and the tables stay in light glass. */
.records { display: grid; gap: 20px; }
.records > * { min-width: 0; }
.records-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.records-hero .hero-sub { max-width: 62ch; }

/* ---- Headline records ---- */
.headline { display: grid; gap: 14px; }
@media (min-width: 900px) { .headline { grid-template-columns: 1.25fr 1fr; } }
.record-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; align-content: space-between; gap: 18px; padding: 24px 26px; border-radius: 28px;
    text-decoration: none; color: #fff; min-height: 300px;
    background:
        radial-gradient(110% 80% at 100% 0%, rgba(245,184,46,.30), rgba(245,184,46,0) 60%),
        linear-gradient(150deg, #2B2008 0%, #17120A 60%, #0F0C06 100%);
    box-shadow: 0 22px 50px rgba(28,22,6,.32), inset 0 0 0 1.5px rgba(245,184,46,.6), inset 0 1px 0 rgba(255,236,170,.3);
    transition: transform .15s ease, box-shadow .15s ease;
}
.record-hero:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 26px 56px rgba(28,22,6,.36), inset 0 0 0 1.5px rgba(245,184,46,.9); }
.record-hero:focus-visible { outline: 3px solid #F5B82E; outline-offset: 3px; }
.record-hero-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .86rem; color: #F3D27A; }
.record-hero-body { display: flex; align-items: center; gap: 20px; }
.record-hero-figure { display: grid; gap: 4px; }
.record-hero-figure strong {
    font-family: 'Bangers', 'Nunito', sans-serif; font-size: clamp(4.5rem, 12vw, 7rem); line-height: .9; letter-spacing: .02em;
    background: linear-gradient(180deg, #FFF4CC 0%, #F5B82E 70%, #C98A0B 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 18px rgba(245,184,46,.35));
}
.record-hero-figure strong sup { font-size: .45em; vertical-align: .9em; }
.record-hero-figure span { color: rgba(255,255,255,.78); font-size: .92rem; }
.record-hero-who { display: grid; gap: 4px; }
.record-hero-name { font-size: 1.5rem; font-weight: 800; overflow-wrap: anywhere; }
.record-hero-team { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: .88rem; }
.record-hero-cta {
    position: absolute; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .82rem;
    background: linear-gradient(135deg, #FFE08A, #F5B82E 45%, #C98A0B); color: #3A2600;
}
@media (max-width: 560px) {
    .record-hero { min-height: 0; padding-bottom: 70px; }
    .record-hero-cta { left: 22px; right: auto; }
}

.headline-side { display: grid; gap: 14px; }
.record-tile {
    display: grid; gap: 6px; padding: 16px 18px; border-radius: 22px; text-decoration: none; color: var(--ink);
    background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.52));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 8px 22px rgba(150,105,10,.14);
    -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
    transition: transform .15s ease;
}
.record-tile:hover { color: var(--ink); transform: translateY(-2px); }
.record-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.record-tile-label { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; color: var(--ink-3); }
.record-tile-label i { color: #C98A0B; }
.record-tile-figure { font-size: 2.2rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.record-tile-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.record-tile-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-tile-who small { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Record book tables ---- */
.record-book { padding: 16px !important; display: grid; gap: 16px; }
.record-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.record-tabs::-webkit-scrollbar { display: none; }
.record-tab {
    flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 0;
    font: inherit; font-weight: 800; font-size: .88rem; color: var(--ink); cursor: pointer;
    background: var(--glass-inlay);
}
.record-tab:hover { background: rgba(255,255,255,.85); }
.record-tab.is-on { background: var(--ink); color: #fff; }
.record-tab.is-on i { color: #F5B82E; }
.record-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.record-cols { display: grid; gap: 16px; }
@media (min-width: 980px) { .record-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .record-cols:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.record-cols--one { grid-template-columns: minmax(0, 1fr) !important; max-width: 720px; }
.record-list h3 { margin: 0 0 8px; font-size: .95rem; font-weight: 800; color: var(--ink); }
.record-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.record-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); text-decoration: none; color: var(--ink);
}
.record-row:hover { background: rgba(255,255,255,.88); color: var(--ink); }
.record-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.record-row-who { display: grid; min-width: 0; }
.record-row-who b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-row-who small { font-size: .74rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-row-val { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.record-row-val strong { font-size: 1.05rem; }
.record-row-val small { font-size: .72rem; color: var(--ink-3); }
.medal--plain { background: var(--ink-4); color: var(--ink-2); box-shadow: none; }
.record-updated { margin: 0; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .record-hero, .record-tile { transition: none; } }
