/* ==========================================================================
   Game Hero (detail page) v2 — card-stack + quick facts
   ========================================================================== */
.game-hero {
    position: relative;
    padding: clamp(24px, 6vw, 72px) 0 clamp(32px, 4vw, 56px);
}
.game-hero .game-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--sp-xxxl);
    align-items: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 900px) {
    .game-hero .game-hero-inner {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
    }
}

.game-hero .breadcrumbs {
    /* The hero already pads its top. */
    padding-top: 0;
    font-size: 13px;
    color: rgba(245, 236, 216, 0.6);
    margin-bottom: var(--sp-lg);
}
.game-hero .breadcrumbs span:last-child {
    color: var(--gold-light);
}

.game-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 6.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--text-light);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    margin: 0 0 var(--sp-md);
}

.game-hero .lede {
    margin: 0;
    font-size: clamp(16px, 1.5vw, 19px);
    color: rgba(245, 236, 216, 0.78);
    max-width: 56ch;
    line-height: 1.55;
}

.game-hero .game-byline {
    margin: var(--sp-md) 0 0;
    font-size: 14px;
    color: rgba(245, 236, 216, 0.72);
}

.chip-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--gold-light);
    border-radius: var(--r-xxl);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: var(--sp-lg);
}

.quick-facts {
    margin-top: var(--sp-xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-md);
    max-width: 560px;
}
.quick-fact {
    padding: 14px 16px;
    background: rgba(245, 236, 216, 0.06);
    border: 1px solid rgba(245, 236, 216, 0.15);
    border-radius: var(--r-md);
    color: var(--text-cream);
}
.quick-fact .k {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 236, 216, 0.55);
    margin-bottom: 4px;
    font-weight: 600;
}
.quick-fact .v {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--gold-light);
    line-height: 1.1;
}
@media (max-width: 600px) {
    .quick-facts {
        grid-template-columns: 1fr 1fr;
        max-width: none;
    }
}

.game-hero-actions {
    margin-top: var(--sp-xl);
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    align-items: center;
}
.btn-listen {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    background: rgba(245, 236, 216, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(245, 236, 216, 0.2);
    border-radius: var(--r-xxl);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.btn-listen:hover {
    background: rgba(245, 236, 216, 0.18);
    border-color: var(--gold);
    color: var(--text-light);
}

/* Hero visual: game image as an oversized playing card */
.game-hero-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 5 / 7;
    border-radius: 18px;
    overflow: hidden;
    background: var(--card-surface);
    box-shadow:
        var(--shadow-deep),
        0 0 0 1px rgba(0, 0, 0, 0.25);
    border: 4px solid rgba(255, 255, 255, 0.12);
    transform: rotate(-2deg);
    transition: transform 0.3s var(--ease-spring);
}
.game-hero-visual:hover {
    transform: rotate(0deg) scale(1.02);
}
/* Subtle dark vignette on the bottom so text/badges remain legible on bright images */
.game-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 55%,
        rgba(10, 20, 14, 0.35)
    );
    pointer-events: none;
}
@media (max-width: 900px) {
    .game-hero-visual {
        max-width: 320px;
        transform: rotate(0deg);
    }
}

.quick-ref-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--felt-medium);
    margin-bottom: var(--sp-lg);
    padding-bottom: var(--sp-sm);
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.quick-ref-section {
    margin-bottom: var(--sp-lg);
}

.quick-ref-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: var(--sp-xs);
}

.quick-ref-goal {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
}

.quick-ref ol,
.quick-ref ul {
    padding-left: var(--sp-xl);
    margin: 0;
}

.quick-ref-tip {
    background: rgba(212, 118, 60, 0.08);
    border-radius: var(--r-md);
    padding: var(--sp-md);
    font-size: 0.9rem;
    color: var(--text-dark);
    border: 1px solid rgba(212, 118, 60, 0.35);
}

/* Quick-ref list items with inline card chips */
.quick-ref .qr-numbered-list > li,
.quick-ref .qr-bullet-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    flex-wrap: wrap;
}
.quick-ref .qr-numbered-list .nl-body,
.quick-ref .qr-bullet-list .nl-body {
    flex: 1;
    min-width: 0;
}
.quick-ref .qr-numbered-list .nl-cards,
.quick-ref .qr-bullet-list .nl-cards {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 200px;
}

/* Content-level chip row — shown BELOW a paragraph, quote, goal, or tip */
.nl-cards--content {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: var(--sp-sm);
}
@media (max-width: 600px) {
    .quick-ref .qr-numbered-list > li,
    .quick-ref .qr-bullet-list > li {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-xs);
    }
    .quick-ref .qr-numbered-list .nl-cards,
    .quick-ref .qr-bullet-list .nl-cards {
        justify-content: flex-start;
        max-width: 100%;
    }
}

.rules-overview {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0 0 var(--sp-xl);
}

.callout-quote {
    background: linear-gradient(
        135deg,
        var(--parchment-dark),
        var(--card-surface)
    );
    border-left: 3px solid var(--gold);
    font-style: italic;
}

/* Editorial numbered list: big accent number left, bold title + body right,
   separator lines between rows. Used for ordered rule steps. */
.article .numbered-list {
    list-style: none !important;
    margin: var(--sp-xl) 0 !important;
    padding: 0 !important;
    counter-reset: nl;
}
.article .numbered-list > li {
    counter-increment: nl;
    position: relative;
    margin: 0 !important;
    padding: 18px 0 18px 60px;
    border-bottom: 1px solid var(--card-separator);
    line-height: 1.55;
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}
.article .numbered-list > li:last-child {
    border-bottom: 0;
}
.article .numbered-list > li::before {
    content: counter(nl);
    position: absolute;
    left: 0;
    top: 18px;
    width: 40px;
    text-align: right;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.article .numbered-list .nl-body {
    flex: 1;
    min-width: 0;
}
/* If an item leads with `**Title**` / `**Title:**`, promote it to a title line. */
.article .numbered-list > li > .nl-body > strong.nl-lead {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.005em;
    color: var(--text-dark);
    margin-bottom: 3px;
}

/* Mini-card chips shown on the right of a numbered-list row. */
.article .numbered-list .nl-cards {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 200px;
}
@media (max-width: 600px) {
    .article .numbered-list > li {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-sm);
    }
    .article .numbered-list .nl-cards {
        justify-content: flex-start;
        max-width: 100%;
    }
}

/* Subtle bullet list — just a suit glyph marker */
.article .bullet-list {
    list-style: none !important;
    margin: var(--sp-lg) 0 !important;
    padding: 0 !important;
}
.article .bullet-list > li {
    position: relative;
    margin: 0 0 10px !important;
    padding: 0 0 0 22px;
    line-height: 1.55;
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}
.article .bullet-list > li::before {
    content: "\2666"; /* diamond suit */
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 12px;
    line-height: 1;
}
.article .bullet-list .nl-body {
    flex: 1;
    min-width: 0;
}
.article .bullet-list .nl-cards {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 200px;
}
@media (max-width: 600px) {
    .article .bullet-list > li {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-xs);
    }
    .article .bullet-list > li::before {
        top: 10px;
        transform: none;
    }
    .article .bullet-list .nl-cards {
        justify-content: flex-start;
        max-width: 100%;
    }
}

/* ==========================================================================
   Trivia (spoiler-blur reveal)
   ========================================================================== */
.article .trivia-list,
.trivia-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-md);
}

.trivia-item {
    background: var(--card-surface);
    border: 1px solid var(--card-separator);
    border-radius: 10px;
    padding: var(--sp-lg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.trivia-q {
    display: flex;
    gap: var(--sp-md);
    align-items: baseline;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    font-weight: 600;
}

.trivia-num {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
    flex: 0 0 auto;
    line-height: 1;
}

.trivia-q-text {
    flex: 1 1 auto;
}

.trivia-a-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.trivia-a-text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    filter: blur(6px);
    user-select: none;
    transition: filter 0.35s ease;
}

.trivia-reveal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0;
}

.trivia-reveal span {
    background: var(--parchment);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    box-shadow: 0 2px 8px var(--accent-glow);
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.trivia-a:hover .trivia-reveal span,
.trivia-a:focus-visible .trivia-reveal span {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.trivia-a.revealed {
    cursor: default;
}
.trivia-a.revealed .trivia-a-text {
    filter: none;
    user-select: text;
}
.trivia-a.revealed .trivia-reveal {
    display: none;
}

.variant-games,
.similar-games {
    margin-bottom: var(--sp-xxl);
}

.variant-games h2,
.similar-games h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: var(--sp-lg);
}

/* Variant family comparison table (partials/variant-family.ts). Scrolls inside
   its own wrapper on narrow screens so the page never scrolls sideways. */
.variant-games h3 {
    margin: var(--sp-xl) 0 var(--sp-md);
}
.family-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--card-separator);
    border-radius: 8px;
    background: var(--card-surface);
}
.family-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
.family-table th,
.family-table td {
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--card-separator);
}
.family-table tbody tr:last-child th,
.family-table tbody tr:last-child td {
    border-bottom: 0;
}
.family-table thead th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-label);
}
.family-table tbody th {
    font-weight: 600;
    white-space: normal;
    min-width: 9em;
}
.family-table td {
    color: var(--text-secondary);
}
/* Current-game row. The tint is kept light so the row's text stays at WCAG
   AA (axe-core flagged the earlier --accent-glow fill: tag 4.41:1 light /
   3.6:1 dark, cells 4.22:1 dark); the inset bar marks the row instead.
   Measured: light tag 6.13:1, cells 5.29:1; dark tag 7.33:1, cells 5.93:1. */
.family-table tbody tr.is-current {
    background: rgba(212, 118, 60, 0.12);
    box-shadow: inset 3px 0 0 var(--accent);
}
[data-theme="dark"] .family-table tbody tr.is-current {
    background: rgba(212, 118, 60, 0.14);
}
.family-current {
    color: var(--text-dark);
}
/* Rules sections rendered as a table (RULE_TABLES in website/data/game-seo.ts),
   e.g. a contract-rummy round order. Reuses the family-table look, but cells
   wrap so a long contract never forces sideways scrolling on a phone. */
.rules-table-wrap {
    margin: var(--sp-md) 0;
}
.rules-table th,
.rules-table td {
    white-space: normal;
}
.rules-table tbody th {
    min-width: 0;
    white-space: nowrap;
}
.family-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-strong-hover);
    vertical-align: 1px;
    white-space: nowrap;
}
[data-theme="dark"] .family-tag {
    color: #f2b48a;
}
@media (max-width: 520px) {
    .family-table {
        font-size: 14px;
    }
    .family-table th,
    .family-table td {
        padding: 8px 7px;
    }
    .family-table tbody th {
        min-width: 0;
    }
    .family-table thead th {
        font-size: 11px;
        letter-spacing: 0.03em;
    }
    /* Deck is the least decision-relevant column; dropping it lets Game,
       Players, Difficulty and Length fit a 390px phone without sideways
       scrolling inside the table. */
    .family-table th:nth-child(5),
    .family-table td:nth-child(5) {
        display: none;
    }
}
@media (max-width: 360px) {
    .family-table {
        font-size: 13px;
    }
    .family-table th,
    .family-table td {
        padding: 7px 5px;
    }
}

/* Related hubs: link block from a game page to every category / collection /
   list / region that features it. A plain nav footer, not a numbered section. */
.related-hubs {
    margin-top: clamp(40px, 5vw, 56px);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--card-separator);
}
.article > .related-hubs > h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--sp-md);
    padding: 0;
    border: 0;
}
.related-hub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.related-hub-link {
    display: inline-block;
    padding: 7px 14px;
    background: var(--parchment-dark);
    border: 1px solid var(--card-separator);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition:
        border-color 0.15s,
        color 0.15s,
        transform 0.15s;
}
.related-hub-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
@media print {
    .related-hubs {
        display: none !important;
    }
}

[data-theme="dark"] .quick-ref {
    background: var(--card-surface);
}

.quick-ref::before {
    content: "\2660  \2665  \2666  \2663";
    position: absolute;
    top: var(--sp-lg);
    right: var(--sp-xl);
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--card-separator);
    pointer-events: none;
}
/* The Prime logo is white artwork; it needs Amazon's blue behind it. */
.gear-check__prime img {
    width: 36px;
    height: auto;
    padding: 4px 5px;
    border-radius: 5px;
    background: #0a5c97;
}
.gear-check__prime:hover span {
    color: var(--text-dark);
    text-decoration: underline;
}

/* ==========================================================================
   Game page v2 — 3-column article layout
   ========================================================================== */

.article-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    gap: var(--sp-xxxl);
    padding-top: var(--sp-xxxl);
    padding-bottom: calc(var(--sp-xxxl) + var(--sp-xxl));
}
@media (max-width: 1100px) {
    .article-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-xxl);
    }
    .article-wrap .toc-rail,
    .article-wrap .side-rail {
        display: none;
    }
}

/* Belt-and-braces: block horizontal overflow from long strings or wide
   content (e.g., markdown URLs) inside the article on narrow viewports. */
.article,
.article section,
.article .quick-ref,
.article .rules-section {
    min-width: 0;
}
.article img,
.article iframe,
.article pre {
    max-width: 100%;
}
.article pre {
    overflow-x: auto;
}

/* Left TOC rail */
.toc-rail {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.toc-rail h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 var(--sp-md);
    padding-bottom: var(--sp-sm);
    border-bottom: 1px solid var(--card-separator);
}
.toc-rail ol {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0;
}
.toc-rail li {
    counter-increment: toc;
    margin-bottom: 2px;
}
.toc-rail a::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0.02em;
    top: 9px;
}
.toc-rail a.active::before {
    color: var(--accent);
    opacity: 1;
}

/* Article body */
.article {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
}
/* When the rails are hidden there's no reason to cap the article width —
   let it fill the container so it aligns with the hero above. This rule
   must come AFTER the .article default to win the cascade. */
@media (max-width: 1100px) {
    .article {
        max-width: none;
    }
}
.article section {
    scroll-margin-top: 80px;
    margin-bottom: clamp(40px, 5vw, 56px);
    counter-increment: article-section;
}
.article {
    counter-reset: article-section;
}
.article h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 2.8vw, 32px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-dark);
    margin: 0 0 var(--sp-md);
    padding-bottom: var(--sp-sm);
    border-bottom: 1px solid var(--card-separator);
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.article > section > h2::before,
.article > section > .quick-ref > h2::before,
.article > section > .rules-section > h2::before,
.article > section > .content-section > h2::before,
.article > section > .variant-games > h2::before,
.article > section > .similar-games > h2::before {
    content: counter(article-section, decimal-leading-zero);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    padding: 3px 8px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
    align-self: center;
    display: inline-block;
    margin-right: 14px;
}

/* Inside the article, content-section / rules-section / quick-ref style their own h2,
   but the numbered badge is prepended via ::before. Make sure those headings
   use the same flex-row layout so the badge sits neatly next to the text. */
.article > section > .quick-ref > h2,
.article > section > .rules-section > h2,
.article > section > .content-section > h2,
.article > section > .variant-games > h2,
.article > section > .similar-games > h2 {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 2.8vw, 32px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-dark);
    padding-bottom: var(--sp-sm);
    border-bottom: 1px solid var(--card-separator);
    margin: 0 0 var(--sp-md);
}
.article h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
    margin: var(--sp-xl) 0 var(--sp-sm);
    color: var(--text-dark);
}
.article p {
    margin: 0 0 var(--sp-lg);
    color: var(--text-dark);
    text-wrap: pretty;
}
.article p strong {
    color: var(--text-dark);
    font-weight: 700;
}
:where(.article) a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-glow);
    transition: border-color 0.15s;
}
[data-theme="dark"] .article a.game-mention:hover,
[data-theme="dark"] .family-table a:hover {
    color: var(--gold-light);
    text-decoration-color: currentColor;
}
.article ul,
.article ol {
    margin: 0 0 var(--sp-xl) var(--sp-xl);
    padding: 0;
}
.article li {
    margin-bottom: 6px;
}

/* Drop cap on the first paragraph of "How to Play" */
.article #overview .rules-overview::first-letter {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 62px;
    line-height: 0.85;
    float: left;
    margin: 4px 10px 0 0;
    color: var(--accent);
}

/* Callout */
.callout {
    margin: var(--sp-xl) 0;
    padding: 18px 20px;
    background: linear-gradient(
        135deg,
        var(--parchment-dark),
        var(--card-surface)
    );
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md);
    font-size: 15px;
    color: var(--text-dark);
}
.callout p {
    margin: 0;
    color: var(--text-dark);
}
[data-theme="dark"] .callout {
    background: var(--card-surface);
}

/* In-article FAQ details (overrides generic .faq-item in main) */
.article details {
    border: 1px solid var(--card-separator);
    background: var(--card-surface);
    border-radius: var(--r-md);
    padding: 14px 18px;
    margin-bottom: 10px;
}
.article details[open] {
    border-color: var(--accent);
}
.article details summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15.5px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.article details summary::-webkit-details-marker {
    display: none;
}
.article details summary::after {
    content: "+";
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    line-height: 1;
    transition: transform 0.2s;
}
.article details[open] summary::after {
    transform: rotate(45deg);
}
.article details p {
    margin: 10px 0 0;
    font-size: 15px;
}

/* Right side rail: cheat sheet. Not sticky: Mediavine places its sticky
   sidebar ad in this column. */
.side-rail {
    align-self: start;
}
.cheat {
    background: var(--card-surface);
    border: 1px solid var(--card-separator);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.cheat-head {
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--felt-medium), var(--felt-dark));
    color: var(--text-light);
    border-bottom: 2px solid var(--gold);
}
.cheat-head .label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 2px;
}
.cheat-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--text-light);
}
.cheat-body {
    padding: 16px 18px;
}
.cheat-row {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-md);
    padding: 8px 0;
    border-bottom: 1px solid var(--card-separator);
    font-size: 13.5px;
}
.cheat-row:last-child {
    border-bottom: 0;
}
.cheat-row .k {
    color: var(--text-secondary);
}
.cheat-row .v {
    color: var(--text-dark);
    font-weight: 600;
    font-family: var(--font-display);
    text-align: right;
}
.cheat-progress {
    padding: 14px 18px;
    background: var(--parchment-dark);
    border-top: 1px solid var(--card-separator);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}
.cheat-progress .bar {
    height: 3px;
    background: var(--card-separator);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.cheat-progress .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .article-wrap {
        display: block !important;
        padding: 0 !important;
    }
    .article {
        max-width: none !important;
    }
}

/* Light theme: orange text on cream needs the stronger accent */
:root:not([data-theme="dark"]) .toc-rail a.active,
:root:not([data-theme="dark"]) .toc-rail a.active::before {
    color: var(--accent-strong);
}

/* Touch targets on game pages and shared chrome */
@media (pointer: coarse) {
    .toc-rail a {
        min-height: 44px;
    }
    /* Breadcrumbs open the hero, so a 44px line box would push the headline
       down. Grow the hit area instead of the layout. */
    .game-hero .breadcrumbs a {
        position: relative;
    }
    .game-hero .breadcrumbs a::after {
        content: "";
        position: absolute;
        inset: calc((100% - 44px) / 2) 0;
    }
}

/* Light theme: trivia reveal prompt needs the stronger accent on cream */
:root:not([data-theme="dark"]) .trivia-reveal {
    color: var(--accent-strong);
}
:root:not([data-theme="dark"]) .trivia-reveal span {
    border-color: var(--accent-strong);
}
