/* List hero countdown and in-season list cards elsewhere. */
.list-hero .hero-countdown {
    margin: 2px 0 14px;
    font-size: 0.9rem;
    padding: 4px 13px;
}
.related-list-card .holiday-countdown {
    align-self: flex-start;
    margin-bottom: 6px;
}
/* crpSeason.front(grid, 3) also hides the evergreen lists past the third. */
.related-list-card[hidden] {
    display: none;
}
/* Ranked lists: holiday FAQ heading gets the same gap as "More ranked lists". */
.list-faq h2 {
    margin-bottom: var(--sp-xl);
}
/* Ranked lists: closing "takeaway" panel (list outro + app link). Felt panel
   in both themes; cream on felt-dark is 9.9:1, gold-light 7.3:1, and the
   button text 11.4:1 (7.9:1 on hover). */
.list-takeaway {
    margin: var(--sp-xxl) 0 var(--sp-xl);
    padding: 28px 28px 26px;
    border-radius: var(--r-xl);
    background-color: var(--felt-dark);
    background-image: var(--felt-texture);
    color: var(--text-cream);
    border-left: 5px solid var(--gold);
}
.list-takeaway .list-takeaway__eyebrow {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.list-takeaway .list-takeaway__text {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text-cream);
}
.list-takeaway .list-takeaway__sub {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-cream);
    opacity: 0.88;
}
.list-takeaway .list-takeaway__app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gold-light);
    color: var(--ink-900);
    font-weight: 700;
    text-decoration: none;
    border: 0;
}
.list-takeaway .list-takeaway__app:hover,
.list-takeaway .list-takeaway__app:focus-visible {
    background: var(--gold);
}
.list-takeaway[data-holiday] {
    border-left-color: var(--holiday-accent);
}
.list-hero[data-holiday] .list-stamp::before {
    border-color: var(--holiday-accent);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 60%),
        var(--holiday-accent);
}
.list-hero[data-holiday] .list-stamp .inner {
    color: var(--holiday-on-accent);
}
.list-hero[data-holiday] .list-stamp .sub {
    opacity: 0.85;
}

.list-hero .byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: rgba(245, 236, 216, 0.6);
}
.list-hero .byline .meta-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.list-hero .byline .meta-block .l {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 236, 216, 0.4);
    font-weight: 600;
}
.list-hero .byline .meta-block .v {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--gold-light);
    font-weight: 600;
}

/* Circular stamp */
.list-stamp {
    position: relative;
    width: clamp(150px, 15vw, 210px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    flex-shrink: 0;
}
.list-stamp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(228, 204, 122, 0.14),
            transparent 60%
        ),
        rgba(15, 45, 30, 0.4);
    box-shadow:
        inset 0 0 0 1px rgba(228, 204, 122, 0.4),
        inset 0 0 24px rgba(228, 204, 122, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.4);
}
.list-stamp .inner {
    position: relative;
    z-index: 1;
    color: var(--gold-light);
    font-family: var(--font-display);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.list-stamp .num {
    font-size: clamp(50px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}
.list-stamp .word {
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 600;
}
.list-stamp .sub {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0.7;
    font-weight: 500;
}
.list-stamp-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: listStampSpin 32s linear infinite;
}
.list-stamp-ring text {
    font-family: var(--font-display);
    font-size: 7.5px;
    letter-spacing: 0.32em;
    fill: rgba(228, 204, 122, 0.55);
    font-weight: 600;
}

/* TOC jump rail */
.list-rail {
    margin-top: 36px;
    padding: 16px 20px;
    background: rgba(245, 236, 216, 0.06);
    border: 1px solid rgba(245, 236, 216, 0.12);
    border-radius: var(--r-xl);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px 24px;
    align-items: center;
}
.list-rail .label {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 700;
    white-space: nowrap;
    border-right: 1px solid rgba(245, 236, 216, 0.12);
    padding-right: 20px;
}
.list-rail .toc-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.toc-jump {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px 6px 7px;
    background: rgba(245, 236, 216, 0.04);
    border: 1px solid rgba(245, 236, 216, 0.1);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(245, 236, 216, 0.85);
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
    text-decoration: none;
}
.toc-jump:hover {
    background: rgba(228, 204, 122, 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
}
.toc-jump .n {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    background: rgba(228, 204, 122, 0.18);
    color: var(--gold-light);
    border-radius: 50%;
    letter-spacing: 0;
}
@media (max-width: 720px) {
    .list-rail {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .list-rail .label {
        border-right: 0;
        padding-right: 0;
    }
}

/* Body layout */
.list-body {
    padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
}
.list-body-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
}
@media (max-width: 1080px) {
    .list-body-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar TOC. Not sticky: Mediavine places its sticky sidebar ad in this column. */
.mini-toc {
    font-family: var(--font-display);
}
.mini-toc h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
.mini-toc ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    counter-reset: toc;
}
.mini-toc ol li {
    counter-increment: toc;
}
.mini-toc ol li:last-child a {
    border-bottom: 0;
}
.mini-toc ol a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.mini-toc ol a:hover {
    color: var(--accent);
    padding-left: 4px;
}
.mini-toc ol a.active {
    color: var(--text-dark);
    font-weight: 700;
}
.mini-toc ol a.active::before {
    color: var(--accent);
}
/* Without the sidebar column (1080px and below) the list would stack right
   under the hero's "Jump to" chips, repeating the same ten links. The chips
   stay; the sidebar list is desktop only. */
@media (max-width: 1080px) {
    .mini-toc {
        display: none;
    }
}

/* Drop-cap intro */
.list-intro {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-dark);
    max-width: 40em;
    margin-bottom: clamp(24px, 3vw, 40px);
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}
.list-intro::first-letter {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 4.2em;
    float: left;
    line-height: 0.88;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--accent);
}

/* Entries */
.entries {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 5vw, 72px);
}
.entry {
    position: relative;
    scroll-margin-top: 100px;
}

.entry-rank-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.entry-rank-mark .num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(52px, 6.5vw, 88px);
    line-height: 0.9;
    color: var(--gold);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
/* --gold is 2.0:1 on the light page background, below the 3:1 WCAG minimum
   for large text (axe-core color-contrast, every list entry). #8a6d1f keeps
   the antique-gold hue at 4.28:1; dark mode keeps --gold (8.04:1). */
:root:not([data-theme="dark"]) .entry-rank-mark .num {
    color: #8a6d1f;
}
.entry-rank-mark .num .of {
    font-size: 0.32em;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-left: 4px;
    vertical-align: super;
}
.entry-rank-mark .rule {
    flex: 1;
    height: 1px;
    background: var(--rule);
    position: relative;
}
.entry-rank-mark .rule::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.entry-rank-mark .tag {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: stretch;
}
.entry:nth-child(even) .entry-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.entry:nth-child(even) .entry-media {
    order: 2;
}
@media (max-width: 760px) {
    .entry-grid,
    .entry:nth-child(even) .entry-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .entry:nth-child(even) .entry-media {
        order: 0;
    }
}

.entry-media {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--felt-medium);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--card-separator);
    min-width: 0;
    max-width: 100%;
}
.entry-body {
    min-width: 0;
}
.entry-media:hover img {
    transform: scale(1.04);
}
.entry-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(15, 30, 20, 0.5) 100%
    );
    pointer-events: none;
}
.entry-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--card-surface);
    color: var(--text-dark);
    border-radius: 999px;
    padding: 4px 11px 4px 5px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.entry-ribbon .suit-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--suit-dark);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
}
.entry-ribbon.red .suit-circle {
    background: var(--suit-red);
}

.entry-body {
    display: flex;
    flex-direction: column;
}
.entry-body .game-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 3.2vw, 40px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.entry-vitals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-body);
}
.entry-vital {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-right: 1px solid var(--rule);
}
.entry-vital:first-child {
    padding-left: 0;
}
.entry-vital:last-child {
    border-right: 0;
}
.entry-vital svg {
    flex-shrink: 0;
    opacity: 0.6;
}
.entry-vital.diff-easy strong {
    color: var(--diff-easy);
}
.entry-vital.diff-medium strong {
    color: var(--diff-medium);
}
.entry-vital.diff-hard strong {
    color: var(--diff-hard);
}

.entry-blurb {
    font-family: var(--font-display);
    font-size: clamp(15.5px, 1.3vw, 18px);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.entry-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.entry-btn-rules {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--felt-dark);
    color: var(--text-light);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    transition:
        background 0.15s,
        transform 0.15s;
    text-decoration: none;
}
.entry-btn-rules:hover {
    background: var(--accent);
    transform: translateY(-1px);
}
.entry-btn-quick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--rule-strong);
    color: var(--text-dark);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none;
}
.entry-btn-quick:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Top pick treatment for entry #1 */
.entry.top-pick .entry-grid {
    background:
        radial-gradient(
            ellipse at top right,
            rgba(228, 204, 122, 0.14),
            transparent 55%
        ),
        var(--card-surface);
    border: 1px solid var(--gold);
    border-radius: var(--r-xxl);
    padding: clamp(22px, 3vw, 40px);
    box-shadow:
        0 0 0 1px rgba(228, 204, 122, 0.14),
        var(--shadow-elevated);
}
.entry.top-pick .entry-rank-mark .num {
    font-size: clamp(68px, 8.5vw, 112px);
}
.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--ink-900);
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px var(--gold-glow);
}

/* Mid-article ornament */
.list-break {
    margin: clamp(20px, 3vw, 36px) 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 18px;
}
.list-break::before,
.list-break::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--rule-strong),
        transparent
    );
}
.list-break .ornament {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 0.12em;
}

/* Related lists */
.related-lists {
    padding: 0 0 clamp(48px, 6vw, 80px);
}
.related-lists h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 24px;
    color: var(--text-dark);
}
.related-lists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 880px) {
    .related-lists-grid {
        grid-template-columns: 1fr;
    }
}
.related-list-card {
    display: flex;
    flex-direction: column;
    background: var(--card-surface);
    border: 1px solid var(--card-separator);
    border-radius: var(--r-xl);
    padding: 22px;
    transition: all 0.2s var(--ease-out-expo);
    text-decoration: none;
}
.related-list-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}
.related-list-card .badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--ink-900);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px var(--gold-glow);
}
.related-list-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.related-list-card .link {
    margin-top: auto;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Listicle page: the ad slot / Wrecked banner sits first in the article, and
   the affiliate block right after the intro. Both would otherwise stack
   their own margin-top on top of spacing already provided elsewhere (the
   grid layout doesn't collapse a first child's margin against its own top
   edge; .list-intro's generous margin-bottom already creates the section
   break before whatever follows it) — so both get their redundant top
   margin zeroed here rather than trimming the shared component globally. */
.list-body-layout article > .ad-slot:first-child,
.list-body-layout article > .wrecked-inline:first-child {
    margin-top: 0;
}
.list-body-layout article > .list-intro + .gear-check {
    margin-top: 0;
}

/* Mediavine CSS Adjustments - START */
/*Sidebar Fix*/
@media (min-width: 1081px) {
    .list-body-layout {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }
}
