/*
 * Template 20 — "Gold Lobby": a navy casino lobby with gold pill buttons, a left
 * sidebar menu on desktop, round category tiles and sideways game rows.
 *
 * Every colour on the page comes from the ten variables the template's
 * color_fonts sets (a domain's own color_fonts overrides them), the same names on
 * templates 20, 21 and 22; the fallbacks here are the template's own palette.
 * Nothing below names a colour of its own, so changing a variable recolours every
 * part that uses it:
 *   --primary        buttons, links, highlights
 *   --hover          the light end of the button gradient
 *   --button-text    text on a --primary button
 *   --secondary      cards and tiles
 *   --bg-primary     the page
 *   --bg-secondary   the sidebar
 *   --line           borders
 *   --text-primary   headings and main text
 *   --text-secondary captions and quieter text
 *   --accent         the "Top" badge on game cards
 */
/* The fonts ship with the template (variable woff2, one file per alphabet), so a
 * built site loads them from its own fonts/ folder and links to nothing outside. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/montserrat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --t20-gold: var(--primary, #ffb600);
    --t20-gold-light: var(--hover, #ffd24d);
    --t20-on-gold: var(--button-text, #151a33);
    --t20-tile: var(--secondary, #1d2442);
    --t20-bg: var(--bg-primary, #0e1128);
    --t20-rail: var(--bg-secondary, #070915);
    --t20-line: var(--line, #464b64);
    --t20-text: var(--text-primary, #ffffff);
    --t20-dim: var(--text-secondary, #9fa0a9);
    --t20-accent: var(--accent, #e5322d);
    --t20-body: color-mix(in srgb, var(--t20-text) 55%, var(--t20-dim));
    --t20-gold-gradient: linear-gradient(90deg, var(--t20-gold) 0%, var(--t20-gold-light) 100%);
    --t20-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--t20-bg); color: var(--t20-text); font-family: var(--t20-font); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--t20-text); line-height: 1.2; }
button { font: inherit; }
[hidden] { display: none !important; }

/* ---- Buttons ---- */
.t20-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--t20-gold); color: var(--t20-on-gold); font-size: 15px; font-weight: 700; line-height: 1.1; text-align: center; cursor: pointer; transition: filter .15s ease, transform .15s ease; }
.t20-btn:hover { filter: brightness(1.08); }
.t20-btn--gradient { background: var(--t20-gold-gradient); }
.t20-btn--outline { background: transparent; border: 1px solid var(--t20-gold); color: var(--t20-text); }
.t20-btn--outline:hover { background: color-mix(in srgb, var(--t20-gold) 14%, transparent); filter: none; }
.t20-btn--caps { text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
.t20-btn--sm { min-height: 44px; padding: 0 22px; font-size: 13px; }

/* ---- Top bar ---- */
.t20-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; height: 86px; padding: 0 32px; background: var(--t20-bg); border-bottom: 1px solid color-mix(in srgb, var(--t20-line) 60%, transparent); }
.t20-logo { display: inline-flex; align-items: center; min-width: 0; }
.t20-logo img { display: block; width: auto; max-width: 170px; max-height: 46px; object-fit: contain; }
.t20-logo__text { overflow: hidden; color: var(--t20-text); font-size: 22px; font-weight: 800; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.t20-top__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.t20-burger { display: none; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--t20-text) 14%, var(--t20-bg)); cursor: pointer; }
.t20-burger span, .t20-burger span::before, .t20-burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--t20-text); content: ''; position: relative; }
.t20-burger span::before { position: absolute; top: -6px; }
.t20-burger span::after { position: absolute; top: 6px; }
.t20-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }

/* ---- Shell: sidebar + main ---- */
.t20-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 86px); }
.t20-shell--no-rail { grid-template-columns: minmax(0, 1fr); }
/* The sidebar is its own dark column with a thin edge on its right, as on the original. */
.t20-rail { position: sticky; top: 86px; align-self: start; height: calc(100vh - 86px); overflow-y: auto; padding: 24px 20px 28px; border-right: 1px solid color-mix(in srgb, var(--t20-line) 70%, transparent); background: var(--t20-rail); scrollbar-width: thin; scrollbar-color: var(--t20-line) transparent; }
.t20-rail__card { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 0 0 24px; padding: 26px 16px 24px; border: 1px solid color-mix(in srgb, var(--t20-line) 80%, transparent); border-radius: 10px; background: radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--t20-gold) 10%, transparent), transparent 70%), var(--t20-tile); }
.t20-rail__card img { width: 150px; height: 84px; object-fit: contain; }
.t20-rail__card .t20-logo__text { font-size: 20px; max-width: 100%; }
.t20-rail__card .t20-btn { width: 100%; color: var(--t20-gold); }
.t20-rail__nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.t20-rail__nav a { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; color: color-mix(in srgb, var(--t20-text) 82%, var(--t20-rail)); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; transition: background .15s, border-color .15s, color .15s; }
.t20-rail__nav a::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--t20-dim); }
.t20-rail__nav a:hover { color: var(--t20-text); background: color-mix(in srgb, var(--t20-text) 6%, transparent); }
.t20-rail__nav a[aria-current="page"] { border-color: color-mix(in srgb, var(--t20-gold) 45%, transparent); background: color-mix(in srgb, var(--t20-gold) 20%, var(--t20-rail)); color: var(--t20-gold); }
.t20-rail__nav a[aria-current="page"]::before { background: var(--t20-gold); }
/* The way home leads the list, with a house where the others have a dot. */
.t20-rail__nav a.t20-rail__home::before { width: 16px; height: 16px; border-radius: 0; background: currentColor; -webkit-mask: url(../fonts/home.svg) center / contain no-repeat; mask: url(../fonts/home.svg) center / contain no-repeat; }
.t20-scrim { display: none; }

.t20-main { min-width: 0; padding: 0 32px 40px; }
/* The lobby fills the room beside the sidebar, as on the original; only a very
 * wide screen gets margins. */
.t20-wrap { max-width: 1760px; margin: 0 auto; }

/* ---- Hero ---- */
.t20-hero { position: relative; display: flex; align-items: center; min-height: 360px; margin-top: 0; overflow: hidden; border-radius: 0 0 14px 14px; background: radial-gradient(110% 130% at 85% 10%, color-mix(in srgb, var(--t20-gold) 38%, transparent) 0%, transparent 55%), linear-gradient(135deg, var(--t20-tile) 0%, var(--t20-bg) 100%); }
.t20-hero__media { position: absolute; inset: 0; display: block; }
.t20-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
/* A domain's banner can have anything on its left: the text gets a dark bed under it. */
.t20-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--t20-bg) 94%, transparent) 0%, color-mix(in srgb, var(--t20-bg) 86%, transparent) 38%, color-mix(in srgb, var(--t20-bg) 45%, transparent) 62%, transparent 85%); pointer-events: none; }
.t20-hero__body { position: relative; z-index: 2; max-width: 660px; padding: 40px 0 40px 48px; }
.t20-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.t20-hero__text { margin: 0 0 20px; color: color-mix(in srgb, var(--t20-text) 90%, var(--t20-bg)); font-size: 17px; line-height: 1.6; }
.t20-chip { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px dashed var(--t20-gold); border-radius: 7px; background: color-mix(in srgb, var(--t20-gold) 14%, var(--t20-bg)); color: var(--t20-gold); font-weight: 700; }

/* ---- Category tiles ---- */
.t20-cats { display: flex; gap: 12px; margin: 32px 0 24px; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.t20-cats::-webkit-scrollbar { display: none; }
.t20-cats li { flex: 1 0 96px; }
.t20-cats a { display: flex; flex-direction: column; align-items: center; gap: 12px; color: color-mix(in srgb, var(--t20-text) 70%, var(--t20-bg)); font-size: 12px; font-weight: 600; text-align: center; text-transform: uppercase; }
.t20-cats__icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 88px; padding: 20px; border: 1px solid var(--t20-line); border-radius: 24px; background: var(--t20-tile); transition: border-color .15s, transform .15s; }
.t20-cats__icon img { width: 47px; height: 47px; }
.t20-cats a:hover { color: var(--t20-text); }
.t20-cats a:hover .t20-cats__icon { border-color: var(--t20-gold); transform: translateY(-2px); }

/* ---- Offer banner ---- */
.t20-offer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 300px; margin: 0 0 40px; overflow: hidden; border: 1px solid var(--t20-line); border-radius: 24px; background: radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--t20-gold) 26%, transparent), transparent 60%), radial-gradient(70% 110% at 100% 0%, color-mix(in srgb, var(--t20-gold-light) 18%, transparent), transparent 60%), var(--t20-tile); text-align: center; }
.t20-offer__body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px; }
.t20-offer__label { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.t20-offer__value { max-width: 18ch; margin: 0; background: var(--t20-gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.15; }
.t20-offer__value--long { max-width: 26ch; font-size: clamp(22px, 2.6vw, 32px); }
.t20-offer .t20-btn { min-width: 280px; margin-top: 8px; }

/* ---- Game rows ---- */
.t20-panel { margin: 0 0 40px; }
/* The tiles jump here: the heading lands below the sticky top bar. */
.t20-panel, .t20-faq { scroll-margin-top: 104px; }
.t20-panel__head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.t20-panel__head img { width: 34px; height: 34px; flex: none; }
.t20-panel__head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.t20-panel__nav { display: flex; gap: 8px; margin-left: auto; }
.t20-panel__nav button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--t20-text) 20%, var(--t20-bg)); color: var(--t20-text); cursor: pointer; }
.t20-panel__nav button:disabled { opacity: .4; cursor: default; }
.t20-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.t20-track::-webkit-scrollbar { display: none; }
.t20-game { position: relative; display: block; aspect-ratio: 4 / 4.1; overflow: hidden; border-radius: 12px; background: var(--t20-tile); scroll-snap-align: start; }
.t20-game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.t20-game:hover img { transform: scale(1.05); }
.t20-game::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--t20-bg) 92%, transparent)); }
.t20-game__badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 7px; border-radius: 999px; background: var(--t20-accent); color: var(--t20-bg); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.t20-game__badge--new { background: var(--t20-gold); color: var(--t20-on-gold); }
.t20-game__meta { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 10px; }
.t20-game__name { display: block; overflow: hidden; color: var(--t20-text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.t20-game__prov { display: block; overflow: hidden; color: var(--t20-dim); font-size: 10px; font-weight: 600; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

/* ---- Promotion cards ---- */
.t20-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 40px; }
.t20-promo { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 260px; padding: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--t20-gold) 25%, var(--t20-line)); border-radius: 12px; background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--t20-gold) 22%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--t20-gold) 40%, #000) 0%, color-mix(in srgb, var(--t20-gold) 20%, #000) 100%); }
.t20-promo__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--t20-gold); color: var(--t20-on-gold); }
.t20-promo__img { position: absolute; right: 12px; bottom: 60px; max-width: 45%; max-height: 120px; object-fit: contain; }
.t20-promo__text { position: relative; margin: 0; color: var(--t20-text); font-size: 14px; font-weight: 700; line-height: 1.35; text-transform: uppercase; }
.t20-promo .t20-btn { position: relative; align-self: flex-start; min-height: 36px; padding: 0 16px; font-size: 12px; text-transform: uppercase; }

/* ---- Providers and payment methods ---- */
.t20-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.t20-logos__item { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 96px; padding: 16px; border: 1px solid var(--t20-line); border-radius: 12px; background: var(--t20-tile); color: var(--t20-text); font-size: 16px; text-align: center; }
.t20-logos__item img { width: auto; max-width: 48%; max-height: 40px; object-fit: contain; }
.t20-logos__item span { min-width: 0; overflow-wrap: anywhere; }
.t20-logos-toggle { display: block; margin: 16px auto 0; padding: 8px 18px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--t20-text) 20%, var(--t20-bg)); color: var(--t20-text); font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer; }

.t20-cta { display: flex; justify-content: center; margin: 0 0 48px; }
.t20-cta .t20-btn { min-height: 48px; padding: 0 32px; }

/* ---- Text ---- */
.t20-text { margin: 0 0 40px; color: var(--t20-body); font-size: 16px; line-height: 1.7; }
.t20-text h2 { margin: 40px 0 16px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.t20-text > h2:first-child { margin-top: 0; }
.t20-text h3 { margin: 28px 0 12px; font-size: 20px; font-weight: 700; }
.t20-text p { margin: 0 0 16px; }
.t20-text a { color: var(--t20-gold); }
.t20-text a:hover { text-decoration: underline; }
.t20-text strong, .t20-text b { color: var(--t20-text); }
.t20-text ul, .t20-text ol { margin: 0 0 16px; padding-left: 22px; }
.t20-text li { margin: 0 0 6px; }
.t20-text img { display: block; max-width: 100%; height: auto !important; margin: 20px auto; border-radius: 14px; }
.t20-text figure { margin: 20px 0; }
.t20-text figcaption { margin-top: 8px; color: var(--t20-dim); font-size: 14px; text-align: center; }
.t20-text blockquote { margin: 20px 0; padding: 14px 20px; border-left: 3px solid var(--t20-gold); border-radius: 0 12px 12px 0; background: var(--t20-tile); }
/* The box the views put round every content table: it scrolls on a narrow screen. */
.table-scroll { width: 100%; max-width: 100%; margin: 20px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.t20-text table { width: 100% !important; border-collapse: collapse; font-size: 15px; }
.t20-text th { padding: 11px 14px; background: var(--t20-tile); color: var(--t20-text); font-weight: 600; text-align: left; }
.t20-text td { padding: 11px 14px; border-bottom: 1px solid var(--t20-line); }
.t20-text tr:last-child td { border-bottom: 0; }

/* ---- FAQ ---- */
.t20-faq { margin: 0 0 40px; }
.t20-faq h2 { margin: 0 0 16px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.t20-faq__item { margin: 0 0 10px; border: 1px solid var(--t20-line); border-radius: 12px; background: var(--t20-tile); }
.t20-faq__item summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--t20-text); font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.t20-faq__item summary::-webkit-details-marker { display: none; }
.t20-faq__item summary::after { content: '+'; margin-left: auto; color: var(--t20-gold); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s; }
.t20-faq__item[open] summary::after { transform: rotate(45deg); }
.t20-faq__item p { margin: 0; padding: 0 20px 18px; color: var(--t20-body); line-height: 1.7; }

/* ---- Last updated ---- */
.t20-updated { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 16px 20px; border: 1px solid var(--t20-line); border-radius: 12px; background: var(--t20-tile); color: var(--t20-body); font-size: 15px; }
.t20-updated svg { color: var(--t20-gold); }
.t20-updated time { color: var(--t20-text); font-weight: 700; }

/* ---- Footer ---- */
.t20-footer { padding: 0; }
.t20-footer hr { height: 0; margin: 0; border: 0; border-top: 1px solid var(--t20-line); }
.t20-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 32px 0; }
.t20-footer__brand p { margin: 16px 0 0; color: var(--t20-dim); font-size: 14px; line-height: 1.6; }
.t20-footer__title { margin: 0 0 14px; color: var(--t20-text); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.t20-footer__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.t20-footer__list a { color: color-mix(in srgb, var(--t20-text) 88%, var(--t20-bg)); font-size: 14px; text-transform: uppercase; }
.t20-footer__list a:hover { color: var(--t20-gold); }
.t20-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 24px 0; }
.t20-footer__badges img { width: auto; max-width: 120px; max-height: 48px; object-fit: contain; }
.t20-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--t20-line); border-radius: 999px; color: var(--t20-dim); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.t20-badge--age { min-width: 36px; padding: 0; border-color: var(--t20-gold); color: var(--t20-gold); }
.t20-footer__copy { padding-top: 24px; color: var(--t20-dim); font-size: 13px; line-height: 1.6; }

/* ---- Popup ---- */
.t20-popup { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.72); }
.t20-popup.is-open { display: flex; }
.t20-popup__box { position: relative; width: min(520px, 100%); max-height: min(80vh, 720px); overflow: auto; padding: 28px; border: 1px solid var(--t20-line); border-radius: 24px; background: var(--t20-tile); color: var(--t20-text); text-align: center; }
.t20-popup__close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: var(--t20-text); font-size: 28px; cursor: pointer; }
.t20-popup__text { margin: 10px 0 20px; color: var(--t20-body); line-height: 1.65; }

/* ---- Inner page ---- */
.t20-article { max-width: 1200px; margin: 32px auto 0; }
/* Beside the sidebar the text starts where the lobby does, not mid-screen. */
.t20-shell:not(.t20-shell--no-rail) .t20-article { margin-left: 0; }
.t20-crumbs { margin: 0 0 16px; color: var(--t20-dim); font-size: 14px; }
.t20-crumbs a { color: var(--t20-gold); }
.t20-article h1 { margin: 0 0 24px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.t20-article__offer { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 40px; padding: 28px 20px; border: 1px solid var(--t20-line); border-radius: 24px; background: radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--t20-gold) 22%, transparent), transparent 60%), var(--t20-tile); text-align: center; }
.t20-article__offer p { margin: 0; background: var(--t20-gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 24px; font-weight: 800; line-height: 1.25; }

/* ---- The shared phone "Play" bar (admin.landing._mobile-play) in this theme ---- */
body .mobile-play { background: var(--t20-bg); border-top: 1px solid var(--t20-line); box-shadow: none; }
body .mobile-play > a { border-radius: 999px; background: var(--t20-gold); color: var(--t20-on-gold); box-shadow: none; font-family: var(--t20-font); }
body:has(.t20-menu-toggle:checked) .mobile-play { display: none; }

/* ---- Wider screens: more cards in a row ---- */
@media (min-width: 1600px) {
    .t20-track { grid-auto-columns: calc((100% - 6 * 12px) / 7); }
}

@media (min-width: 1900px) {
    .t20-track { grid-auto-columns: calc((100% - 7 * 12px) / 8); }
}

/* ---- Narrower screens ---- */
@media (max-width: 1280px) {
    .t20-track { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
}

@media (max-width: 1099px) {
    .t20-top { padding: 0 20px; height: 72px; }
    .t20-panel, .t20-faq { scroll-margin-top: 88px; }
    .t20-burger { display: flex; }
    .t20-shell { grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 72px); }
    /* The sidebar becomes a drawer the burger opens. */
    .t20-rail { position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: 280px; max-width: 86vw; height: 100dvh; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.55); }
    body:has(.t20-menu-toggle:checked) .t20-rail { transform: none; }
    body:has(.t20-menu-toggle:checked) .t20-scrim { position: fixed; inset: 0; z-index: 89; display: block; background: rgba(0,0,0,.55); }
    .t20-main { padding: 0 20px 32px; }
    .t20-hero__body { padding: 32px 0 32px 32px; }
    .t20-track { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
    .t20-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .t20-footer__grid { grid-template-columns: 1fr 1fr; }
    .t20-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .t20-top { gap: 10px; height: 64px; padding: 0 14px; }
    /* Both buttons stay: the logo gives up room for them. */
    .t20-top__actions { flex: none; gap: 6px; }
    .t20-top .t20-btn { min-height: 38px; padding: 0 12px; font-size: 11px; }
    .t20-logo img { max-width: 100px; max-height: 36px; }
    .t20-logo__text { max-width: 100px; font-size: 17px; }
    .t20-shell { min-height: calc(100vh - 64px); }
    .t20-main { padding: 0 14px 28px; }
    .t20-hero { flex-direction: column; align-items: stretch; min-height: 0; margin: 0 -14px; border-radius: 0; }
    .t20-hero__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
    .t20-hero::after { inset: auto 0 0; height: 70%; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--t20-bg) 75%, transparent) 55%, var(--t20-bg) 100%); }
    /* The picture itself fades into the page, so there is no seam where it ends. */
    .t20-hero:has(.t20-hero__media) { background: var(--t20-bg); }
    .t20-hero:has(.t20-hero__media)::after { display: none; }
    .t20-hero__media::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--t20-bg) 70%, transparent) 60%, var(--t20-bg) 100%); pointer-events: none; }
    .t20-hero:not(:has(.t20-hero__media))::after { display: none; }
    .t20-hero__body { margin-top: -28px; padding: 0 14px 24px; }
    .t20-hero:not(:has(.t20-hero__media)) .t20-hero__body { margin-top: 0; padding-top: 28px; }
    .t20-hero h1 { font-size: clamp(22px, 6.4vw, 30px); }
    .t20-hero__text { font-size: 15px; }
    .t20-cats { gap: 8px; margin: 24px -14px 20px; padding: 0 14px; }
    .t20-cats li { flex: 0 0 84px; }
    .t20-cats__icon { height: 72px; padding: 14px; border-radius: 20px; }
    .t20-cats__icon img { width: 40px; height: 40px; }
    .t20-offer { min-height: 0; border-radius: 18px; }
    .t20-offer__body { padding: 28px 18px; }
    .t20-offer__value { font-size: clamp(24px, 7vw, 32px); }
    .t20-offer__value--long { font-size: clamp(18px, 5vw, 24px); }
    .t20-offer .t20-btn { width: 100%; min-width: 0; }
    .t20-panel { margin-bottom: 32px; }
    .t20-panel__head { margin-bottom: 12px; }
    .t20-panel__head img { width: 28px; height: 28px; }
    .t20-promos { grid-template-columns: minmax(0, 1fr); }
    .t20-promo { min-height: 200px; }
    .t20-panel__nav { display: none; }
    /* Three and a bit cards across, so a row reads as a row and the next card peeks in. */
    .t20-track { grid-auto-columns: calc((100% - 3 * 10px) / 3.3); gap: 10px; margin: 0 -14px; padding: 0 14px; scroll-padding: 0 14px; }
    .t20-game { border-radius: 10px; }
    .t20-game__meta { padding: 8px; }
    .t20-game__name { font-size: 12px; }
    .t20-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .t20-logos__item { flex-direction: column; gap: 8px; min-height: 84px; padding: 12px; font-size: 14px; }
    .t20-logos__item img { max-width: 80%; }
    .t20-cta .t20-btn { width: 100%; }
    .t20-text h2 { margin-top: 32px; }
    .t20-text th, .t20-text td { min-width: 120px; padding: 10px 12px; font-size: 14px; }
    .t20-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .t20-article { margin-top: 20px; }
    .t20-article h1 { font-size: clamp(24px, 7vw, 30px); }
    .t20-article__offer p { font-size: 20px; }
}

@media (max-width: 360px) {
    .t20-top { gap: 6px; padding: 0 8px; }
    .t20-burger { width: 36px; height: 36px; }
    .t20-top .t20-btn { padding: 0 10px; }
    .t20-logo img, .t20-logo__text { max-width: 80px; }
}

/* A phone held upright: two and a bit cards across. */
@media (max-width: 480px) {
    .t20-track { grid-auto-columns: calc((100% - 2 * 10px) / 2.35); }
    .t20-cats li { flex-basis: 76px; }
    .t20-cats__icon { height: 64px; padding: 12px; border-radius: 18px; }
    .t20-cats__icon img { width: 34px; height: 34px; }
    .t20-cats a { gap: 8px; font-size: 11px; }
}
