/* Games — /magazine/games/…
 *
 * Loaded after detail.css and festival.css, and dependent on both: the --dp-*
 * tokens come from detail.css, and the page shell (fest-page, crumbs, masthead,
 * cards) from festival.css. The Games index is the same shape of page as the
 * festival index, so it wears the same clothes. Only the quiz itself is new.
 */

/* quiz_best.js unhides these when this browser has a score to show. Forced,
 * because a class that sets display would otherwise beat the hidden attribute
 * and show an empty "Your best:". */
[data-quiz-best-for][hidden] { display: none !important; }

/* --- Cards --------------------------------------------------------------- */

/* The share card doubles as the thumbnail: it is already a designed image of
 * the quiz's title, so there is no second artwork to make or keep in step.
 * Shown whole rather than cropped to festival.css's 132px, which cut the title
 * in half. */
.game-card .fest-card-img {
    height: auto;
    aspect-ratio: 40 / 21;
}

.game-card .game-card-count {
    color: var(--dp-red-soft);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.game-card .game-card-best {
    margin-top: -0.6rem;
    color: #fff;
    font-weight: 600;
}

/* --- Quiz page ----------------------------------------------------------- */

/* A tighter masthead than the index pages: on a phone the first question has
 * to be on screen without scrolling past a banner-sized title. */
.quiz-page .fest-masthead {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.quiz-page .fest-title { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }

.quiz-challenge {
    max-width: 720px;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--dp-red-dim);
    border-left: 4px solid var(--dp-red);
    border-radius: 6px;
    background: rgba(255, 0, 0, 0.08);
    color: var(--dp-text);
    line-height: 1.5;
}

.quiz-challenge strong { color: #fff; }

/* Scroll margins clear the sticky site header (88px), which otherwise sits
 * over the progress bar and the result's kicker when the page scrolls to them. */
.quiz-stage {
    max-width: 720px;
    margin: 0 0 2.5rem;
    scroll-margin-top: 6.5rem;
}

/* --- Progress ------------------------------------------------------------ */

.quiz-bar { margin: 0 0 0.9rem; }

.quiz-bar-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    color: var(--dp-muted);
}

.quiz-bar-top strong { color: #fff; }

.quiz-progress {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
}

.quiz-progress li {
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.quiz-progress li.is-current { background: rgba(255, 255, 255, 0.45); }

.quiz-progress li.is-right { background: #2ecc71; }

.quiz-progress li.is-wrong { background: var(--dp-red); }

/* --- Questions ----------------------------------------------------------- */

.quiz {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

/* Stepped mode: one question on screen. Added by the page script, so without
 * JavaScript every question stays visible. */
.quiz.is-stepped .quiz-q { display: none; }

.quiz.is-stepped .quiz-q.is-current {
    display: block;
    animation: quiz-in 0.25s ease-out;
}

.quiz.is-stepped .quiz-q-num { display: none; }

@keyframes quiz-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .quiz.is-stepped .quiz-q.is-current { animation: none; }
}

.quiz-q {
    background: linear-gradient(180deg, var(--dp-surface-2), var(--dp-surface));
    border: 1px solid var(--dp-line);
    border-radius: 10px;
    padding: clamp(1.25rem, 3.5vw, 2rem);
    transition: border-color 0.2s;
}

.quiz-q.is-right { border-color: rgba(46, 204, 113, 0.45); }

.quiz-q.is-wrong { border-color: var(--dp-red-dim); }

.quiz-q-num {
    margin: 0 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dp-red-soft);
}

.quiz-q-text {
    margin: 0 0 1.4rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.25rem, 3.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #fff;
    outline: none;
}

.quiz-options {
    display: grid;
    gap: 0.6rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    font: inherit;
    font-size: 1rem;
    text-align: left;
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--dp-text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--dp-red);
    background: rgba(255, 0, 0, 0.06);
    color: #fff;
    transform: translateX(2px);
}

.quiz-option:focus-visible { outline: 2px solid var(--dp-red-soft); outline-offset: 2px; }

.quiz-option:disabled { cursor: default; opacity: 0.45; }

.quiz-option-key {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--dp-line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--dp-muted);
    transition: inherit;
}

.quiz-option:hover:not(:disabled) .quiz-option-key { border-color: var(--dp-red); color: #fff; }

.quiz-option-label { flex: 1 1 auto; }

/* Marked with a glyph as well as a colour, so right and wrong still read for
 * anyone who can't tell the green from the red. */
.quiz-option.is-correct,
.quiz-option.is-wrong { opacity: 1; color: #fff; }

.quiz-option.is-correct {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
}

.quiz-option.is-correct .quiz-option-key {
    border-color: #2ecc71;
    background: #2ecc71;
    color: #0a0a0a;
}

.quiz-option.is-correct::after { content: '\2713'; font-weight: 800; color: #2ecc71; }

.quiz-option.is-wrong {
    border-color: var(--dp-red);
    background: rgba(255, 0, 0, 0.12);
}

.quiz-option.is-wrong .quiz-option-key {
    border-color: var(--dp-red);
    background: var(--dp-red);
    color: #fff;
}

.quiz-option.is-wrong::after { content: '\2717'; font-weight: 800; color: var(--dp-red-soft); }

/* --- After answering ----------------------------------------------------- */

.quiz-reveal {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--dp-line-soft);
}

.quiz-outcome {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.quiz-outcome:empty { display: none; }

.quiz-q.is-right .quiz-outcome { color: #2ecc71; }

.quiz-q.is-wrong .quiz-outcome { color: var(--dp-red-soft); }

.quiz-fact {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--dp-text);
}

.quiz-links {
    margin: 0.6rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    font-size: 0.85rem;
}

.quiz-links a {
    color: var(--dp-red-soft);
    font-weight: 600;
    text-decoration: none;
}

.quiz-links a:hover { text-decoration: underline; }

.quiz-advance { margin-top: 1.2rem; }

.quiz-hint {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: var(--dp-muted);
}

/* --- Result -------------------------------------------------------------- */

.quiz-result {
    max-width: 720px;
    margin: 0 0 1.5rem;
    padding: clamp(1.25rem, 3.5vw, 2rem);
    background: linear-gradient(180deg, var(--dp-surface-2), var(--dp-surface));
    border: 1px solid var(--dp-red-dim);
    border-radius: 10px;
    scroll-margin-top: 6.5rem;
    animation: quiz-in 0.3s ease-out;
}

.quiz-result-score {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    outline: none;
}

.quiz-result-verdict {
    margin: 0.5rem 0 1rem;
    font-size: 1.05rem;
    color: var(--dp-text);
}

.quiz-progress--result { margin: 0 0 1.25rem; }

.quiz-progress--result li { height: 8px; }

.quiz-result-extra {
    margin: 0 0 1.25rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.5;
}

.quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quiz-missed {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dp-line);
}

.quiz-missed h3 {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dp-red-soft);
}

.quiz-missed ol {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.65rem;
}

.quiz-missed-q {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.4;
}

.quiz-missed-a {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--dp-muted);
}

@media (prefers-reduced-motion: reduce) {
    .quiz-result { animation: none; }
}

/* --- After the result ---------------------------------------------------- */

.quiz-next {
    max-width: 720px;
    margin: 0 0 2.5rem;
}

.quiz-next-text {
    margin: 0;
    color: var(--dp-text);
}

.quiz-next-text a { color: var(--dp-red-soft); }

/* ==========================================================================
 * The Games index -- /magazine/games/
 * ========================================================================== */

.gi-page [hidden] { display: none !important; }

/* --- Hero ---------------------------------------------------------------- */

.gi-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: center;
    margin: 0 0 2rem;
    padding: 1.5rem 0 2.5rem;
    border-bottom: 1px solid var(--dp-line);
}

.gi-title {
    margin: 0 0 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.75rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #fff;
}

.gi-title em { font-style: normal; color: var(--dp-red); }

.gi-strap {
    max-width: 46ch;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--dp-muted);
}

.gi-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gi-stats li {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--dp-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: var(--dp-muted);
}

.gi-stats strong { margin-right: 0.2rem; color: #fff; }

/* The radar, with band photos pinned around it. The sweep is the site mark's
 * device; the tiles are whoever is in the games' pool this hour. */
.gi-hero-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.85;
    max-width: 100%;
}

.gi-rings {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.gi-rings span,
.gi-sweep {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
}

.gi-rings span:nth-child(1) { width: 88%; border: 1px solid rgba(255, 0, 0, 0.3); }

.gi-rings span:nth-child(2) { width: 62%; border: 1px solid rgba(255, 0, 0, 0.22); }

.gi-rings span:nth-child(3) { width: 36%; border: 1px solid rgba(255, 0, 0, 0.16); }

.gi-sweep {
    width: 88%;
    background: conic-gradient(from 0deg, rgba(255, 0, 0, 0.16), rgba(255, 0, 0, 0) 18%);
    animation: gi-spin 6s linear infinite;
}

@keyframes gi-spin { to { transform: rotate(360deg); } }

.gi-tile {
    position: absolute;
    width: 28%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    filter: grayscale(0.3) contrast(1.05);
}

.gi-tile--1 { left: 2%; top: 8%; transform: rotate(-8deg); }

.gi-tile--2 { left: 37%; top: 0; width: 24%; transform: rotate(5deg); }

.gi-tile--3 { right: 1%; top: 16%; transform: rotate(9deg); }

.gi-tile--4 { left: 8%; bottom: 6%; width: 24%; transform: rotate(6deg); }

.gi-tile--5 { left: 40%; bottom: 0; transform: rotate(-4deg); }

.gi-tile--6 { right: 5%; bottom: 8%; width: 22%; transform: rotate(-10deg); }

.gi-hero-glyph {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--dp-red);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 0 0 8px rgba(255, 0, 0, 0.18), 0 0 48px rgba(255, 0, 0, 0.55);
}

@media (max-width: 820px) {
    .gi-hero { grid-template-columns: 1fr; padding-top: 0.5rem; }
    .gi-hero-art { max-width: 440px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .gi-sweep { animation: none; }
}

/* --- Today's puzzle ------------------------------------------------------ */

.gi-daily {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem 2rem;
    align-items: center;
    margin: 0 0 2rem;
    padding: 1.5rem 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(241, 196, 15, 0.35);
    border-radius: 14px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(241, 196, 15, 0.16), rgba(241, 196, 15, 0) 55%),
        linear-gradient(135deg, #15120a, #0d0d0d 60%);
    color: var(--dp-text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.gi-daily:hover { border-color: rgba(241, 196, 15, 0.75); transform: translateY(-2px); }

.gi-daily-board {
    display: grid;
    grid-template-columns: repeat(5, 22px);
    gap: 5px;
}

.gi-daily-board span {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.09);
}

.gi-daily-board .is-hit,
.gia-gtb-board .is-hit { background: #2ecc71; }

.gi-daily-board .is-near,
.gia-gtb-board .is-near { background: #f1c40f; }

.gi-daily-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f1c40f;
}

.gi-daily-title {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}

.gi-daily-text { margin: 0.35rem 0 0; color: var(--dp-muted); }

.gi-daily-text strong { color: #fff; font-variant-numeric: tabular-nums; }

.gi-daily-cta { white-space: nowrap; }

@media (max-width: 720px) {
    .gi-daily { grid-template-columns: 1fr; padding: 1.25rem; }
    .gi-daily-board { grid-template-columns: repeat(5, 18px); }
    .gi-daily-board span { width: 18px; height: 18px; }
    .gi-daily-cta { justify-self: start; }
}

/* --- Filter -------------------------------------------------------------- */

.gi-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
}

.gi-chip {
    padding: 0.5rem 1rem;
    font: inherit;
    font-size: 0.85rem;
    color: var(--dp-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dp-line);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.gi-chip span { margin-left: 0.35rem; font-weight: 700; color: var(--dp-text); }

.gi-chip:hover { color: #fff; border-color: var(--dp-red-dim); }

.gi-chip.is-active { color: #fff; background: var(--dp-red); border-color: var(--dp-red); }

.gi-chip.is-active span { color: #fff; }

.gi-chip:focus-visible { outline: 2px solid var(--dp-red-soft); outline-offset: 2px; }

/* --- Sections and cards -------------------------------------------------- */

.gi-section { margin: 0 0 3rem; }

.gi-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    margin: 0 0 1.25rem;
}

.gi-section-head h2 {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}

.gi-section-head p { margin: 0; font-size: 0.9rem; color: var(--dp-muted); }

.gi-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.1rem;
}

.gi-card { --accent: var(--dp-red); min-width: 0; }

.gi-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--dp-surface);
    border: 1px solid var(--dp-line);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gi-card-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.gi-card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gi-art,
.gi-thumb {
    position: relative;
    overflow: hidden;
    background: #0b0b0b;
    border-bottom: 1px solid var(--dp-line);
}

.gi-art {
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        #0b0b0b;
}

.gi-thumb { aspect-ratio: 40 / 21; }

.gi-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gi-card-link:hover .gi-thumb img { transform: scale(1.04); }

/* Top right, where the share card has only its rings: bottom right sat on
 * the end of a two-line title. */
.gi-count {
    position: absolute;
    right: 0.6rem;
    top: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid var(--accent);
    border-radius: 999px;
}

.gi-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem 1.1rem;
}

.gi-card-meta {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.gi-card-title {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff;
}

.gi-card-blurb { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--dp-muted); }

.gi-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.8rem;
}

.gi-play {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.gi-play i { color: var(--accent); transition: transform 0.2s; }

.gi-card-link:hover .gi-play i { transform: translateX(3px); }

.gi-best { font-size: 0.78rem; color: var(--dp-muted); }

.gi-best span { font-weight: 700; color: #fff; }

/* --- Card artwork -------------------------------------------------------- */

.gia-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 3.2rem;
    color: var(--accent);
    opacity: 0.85;
}

/* Higher or Lower: two bands, head to head. */
.gia-hol {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.gia-hol figure { position: relative; margin: 0; overflow: hidden; }

.gia-hol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 0.4s;
}

.gi-card-link:hover .gia-hol img { transform: scale(1.05); }

.gia-hol figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 65%);
}

.gia-hol figcaption {
    position: absolute;
    z-index: 1;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dp-text);
}

.gia-hol figcaption b {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #fff;
}

.gia-vs {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 42%;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #0a0a0a;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.65);
}

/* Real or Fake: two name tags, stamped. */
.gia-rof {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.gia-tag {
    position: relative;
    margin: 0;
    padding: 0.7rem 4.6rem 0.7rem 0.9rem;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.gia-tag:nth-child(1) { margin-right: 1.25rem; transform: rotate(1.2deg); }

.gia-tag:nth-child(2) { margin-left: 1.25rem; transform: rotate(-1.5deg); }

.gia-stamp {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    padding: 0.1rem 0.45rem;
    transform: translateY(-50%) rotate(-12deg);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: #0b0b0b;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.gia-stamp--real { color: #2ecc71; }

.gia-stamp--fake { color: var(--dp-red-soft); }

/* Guess the Band: a clue board closing in on the answer. */
.gia-gtb {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.gia-gtb-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    width: 58%;
}

.gia-gtb-board span {
    aspect-ratio: 1;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.09);
}

.gia-gtb-mark {
    position: absolute;
    right: 11%;
    top: 12%;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    transform: rotate(10deg);
    border-radius: 50%;
    background: var(--accent);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #0a0a0a;
    box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 55%, transparent);
}

.gia-gtb-num {
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dp-muted);
}

/* Genre Sorter: a band and the two genres it might be. */
.gia-sorter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.gia-sorter img {
    flex: none;
    width: 38%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.gia-sorter-side { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }

.gia-sorter-name {
    margin: 0 0 0.2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    overflow-wrap: anywhere;
}

.gia-pill {
    align-self: flex-start;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--dp-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dp-line);
    border-radius: 999px;
}

.gia-pill.is-on {
    color: #fff;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    border-color: var(--accent);
}

/* --- Sign-off ------------------------------------------------------------ */

.gi-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(120deg, #121212, #0c0c0c);
    border: 1px solid var(--dp-line);
    border-radius: 12px;
}

.gi-more p { margin: 0; color: var(--dp-text); }

.gi-more strong { color: #fff; }

/* ==========================================================================
 * Games built from artist data (games.py)
 * ========================================================================== */

/* Several of these classes set display (the links row, images, the combobox
 * list), which would beat the hidden attribute the scripts toggle. */
.game-page [hidden] { display: none !important; }

.game-how { max-width: 720px; margin-bottom: 2.5rem; }

.game-how-list {
    margin: 0;
    padding-left: 1.2rem;
    max-width: 62ch;
    line-height: 1.7;
    color: var(--dp-text);
}

.game-resting { max-width: 720px; margin-bottom: 2rem; }

.quiz-q.is-entering { animation: quiz-in 0.25s ease-out; }

@media (prefers-reduced-motion: reduce) {
    .quiz-q.is-entering { animation: none; }
}

/* --- Round games (Real or Fake, Genre Sorter) ---------------------------- */

.game-round-name {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.game-round-options { grid-template-columns: 1fr 1fr; }

@media (max-width: 540px) {
    .game-round-options { grid-template-columns: 1fr; }
}

.game-round-img {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 0 1rem;
    object-fit: cover;
    border-radius: 8px;
    background: var(--dp-surface-2);
}

.quiz-missed .game-recap {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.game-recap-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.game-recap-mark { flex: 0 0 1rem; font-weight: 800; }

.game-recap-item.is-right .game-recap-mark { color: #2ecc71; }

.game-recap-item.is-wrong .game-recap-mark { color: var(--dp-red-soft); }

.game-recap-name { color: #fff; font-weight: 600; text-decoration: none; }

a.game-recap-name:hover { text-decoration: underline; }

.game-recap-tag {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dp-muted);
    white-space: nowrap;
}

/* --- Higher or Lower ----------------------------------------------------- */

.quiz-stage.hol { max-width: 900px; }

.hol-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.hol-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(270px, 36vw, 380px);
    overflow: hidden;
    border: 1px solid var(--dp-line);
    border-radius: 10px;
    background: var(--dp-surface-2);
    transition: border-color 0.2s;
}

.hol-card.is-entering { animation: quiz-in 0.3s ease-out; }

.hol-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hol-body {
    position: relative;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 40%, rgba(0, 0, 0, 0));
}

.hol-genre {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dp-red-soft);
}

.hol-name {
    margin: 0 0 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    overflow-wrap: anywhere;
}

.hol-name a { color: #fff; text-decoration: none; }

.hol-name a:hover { text-decoration: underline; }

.hol-label { margin: 0; font-size: 0.85rem; color: var(--dp-text); }

.hol-count {
    margin: 0.1rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.hol-card.is-right { border-color: #2ecc71; }

.hol-card.is-right .hol-count { color: #2ecc71; }

.hol-card.is-wrong { border-color: var(--dp-red); }

.hol-card.is-wrong .hol-count { color: var(--dp-red-soft); }

.hol-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.55rem 0;
}

.hol-choice { min-width: 7rem; justify-content: center; }

.hol-vs {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--dp-line);
    border-radius: 50%;
    background: var(--dp-surface);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dp-muted);
}

.hol-last { margin: 0 0 1.25rem; color: var(--dp-muted); }

.quiz-result-score small {
    font-size: 0.3em;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--dp-muted);
}

@media (max-width: 640px) {
    .hol-board { grid-template-columns: 1fr; gap: 0; }
    .hol-card { min-height: 215px; }
    .hol-vs {
        position: relative;
        z-index: 1;
        justify-self: center;
        width: 2.4rem;
        height: 2.4rem;
        margin: -1.2rem 0;
    }
}

/* --- Guess the Band ------------------------------------------------------ */

.quiz-stage.gtb { max-width: 760px; }

.gtb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.gtb-form {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0 0.5rem;
}

.gtb-combo { position: relative; flex: 1 1 auto; min-width: 0; }

.gtb-input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: #fff;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-line);
    border-radius: 8px;
}

.gtb-input:focus { outline: none; border-color: var(--dp-red); }

.gtb-list {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 18rem;
    margin: 0;
    padding: 0.3rem;
    overflow: auto;
    list-style: none;
    background: #141414;
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.gtb-option {
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--dp-text);
}

.gtb-option.is-active,
.gtb-option:hover { background: rgba(255, 0, 0, 0.12); color: #fff; }

.gtb-error { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--dp-red-soft); }

.gtb-guesses {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.gtb-row {
    padding: 0.75rem;
    border: 1px solid var(--dp-line);
    border-radius: 8px;
    background: var(--dp-surface);
    animation: quiz-in 0.25s ease-out;
}

.gtb-row.is-solved { border-color: #2ecc71; }

.gtb-row-name { margin: 0 0 0.55rem; font-weight: 800; color: #fff; }

.gtb-row-name a { color: #fff; text-decoration: none; }

.gtb-row-name a:hover { text-decoration: underline; }

.gtb-cells {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
}

.gtb-cell {
    min-width: 0;
    padding: 0.45rem 0.35rem;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.gtb-cell.is-hit { background: rgba(46, 204, 113, 0.18); border-color: rgba(46, 204, 113, 0.6); }

.gtb-cell.is-near { background: rgba(241, 196, 15, 0.16); border-color: rgba(241, 196, 15, 0.55); }

.gtb-cell-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dp-muted);
}

.gtb-cell-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    overflow-wrap: anywhere;
}

.gtb-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0.5rem 0 0.9rem;
    font-size: 0.75rem;
    color: var(--dp-muted);
}

.gtb-swatch {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.3rem;
    vertical-align: -1px;
    border-radius: 3px;
}

.gtb-swatch.is-hit { background: #2ecc71; }

.gtb-swatch.is-near { background: #f1c40f; }

.gtb-swatch.is-miss { background: rgba(255, 255, 255, 0.15); }

.gtb-answer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.gtb-answer-img {
    flex: none;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--dp-surface-2);
}

.gtb-answer-name {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    outline: none;
}

.gtb-answer-name a { color: #fff; text-decoration: none; }

.gtb-answer-name a:hover { text-decoration: underline; }

.gtb-answer-meta { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--dp-muted); }

.gtb-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.gtb-stat {
    padding: 0.6rem 0.3rem;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.gtb-stat strong { display: block; font-size: 1.5rem; font-weight: 900; color: #fff; }

.gtb-stat span {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dp-muted);
}

@media (max-width: 540px) {
    .gtb-form { flex-wrap: wrap; }
    .gtb-form .dp-btn { width: 100%; justify-content: center; }
    .gtb-cell-label { font-size: 0.5rem; }
    .gtb-cell-value { font-size: 0.72rem; }
}
