/* ==========================================================================
   Jumping Arcade — core styles (tokens, layout, components)
   ========================================================================== */

:root {
    --bg: #f6f5fb;
    --bg-alt: #eeecf8;
    --surface: #ffffff;
    --surface-2: #f3f1fc;
    --text: #17152e;
    --text-muted: #53516b;
    --border: #dddaf0;
    --primary: #5b3df5;
    --primary-hover: #4628e0;
    --primary-contrast: #ffffff;
    --primary-soft: #ebe6ff;
    --accent: #ffb400;
    --accent-ink: #3b2a00;
    --coral: #e8434a;
    --green: #16875a;
    --focus: #ff8a00;
    --shadow: 0 1px 2px rgba(23, 21, 46, .06), 0 6px 18px rgba(23, 21, 46, .07);
    --shadow-lg: 0 10px 30px rgba(23, 21, 46, .14);
    --radius: 14px;
    --radius-sm: 9px;
    --container: 1200px;
    --gutter: 16px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
    --diff-easy: #16875a;
    --diff-medium: #a86200;
    --diff-hard: #c42b4a;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e0d1d;
        --bg-alt: #141329;
        --surface: #1a1932;
        --surface-2: #22203f;
        --text: #f1f0ff;
        --text-muted: #b3b1d1;
        --border: #34325a;
        --primary: #a594ff;
        --primary-hover: #bdb0ff;
        --primary-contrast: #120f2b;
        --primary-soft: #2a2552;
        --accent: #ffd24d;
        --accent-ink: #2b1f00;
        --coral: #ff7a80;
        --green: #4fd69c;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
        --shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);
        --diff-easy: #4fd69c;
        --diff-medium: #ffc257;
        --diff-hard: #ff7d98;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0e0d1d;
    --bg-alt: #141329;
    --surface: #1a1932;
    --surface-2: #22203f;
    --text: #f1f0ff;
    --text-muted: #b3b1d1;
    --border: #34325a;
    --primary: #a594ff;
    --primary-hover: #bdb0ff;
    --primary-contrast: #120f2b;
    --primary-soft: #2a2552;
    --accent: #ffd24d;
    --accent-ink: #2b1f00;
    --coral: #ff7a80;
    --green: #4fd69c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);
    --diff-easy: #4fd69c;
    --diff-medium: #ffc257;
    --diff-hard: #ff7d98;
    color-scheme: dark;
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--primary); color: var(--primary-contrast); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--primary-contrast); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--text-muted); }
.section-link { font-weight: 700; white-space: nowrap; }
.muted { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-contrast); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); color: var(--accent-ink); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.1rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--surface); } }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 900; letter-spacing: .02em; font-size: 1.15rem; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text span { color: var(--primary); }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav-list li { margin: 0; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-search { position: relative; }
.header-search input {
    width: 190px; height: 44px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); padding: 0 16px 0 40px; font: inherit; font-size: .95rem;
}
.header-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.nav-toggle { display: none; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon, .theme-toggle .icon-auto { display: none; }
.theme-toggle[data-mode="light"] .icon-sun, .theme-toggle[data-mode="dark"] .icon-moon, .theme-toggle[data-mode="system"] .icon-auto { display: block; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { padding-top: 16px; font-size: .92rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; color: var(--text-muted); }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: var(--text-muted); padding: 0 4px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-kicker { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .03em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem); margin-bottom: .3em; }
.hero h1 .hl { color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 1 / 1; }

/* ---------- search ---------- */
.search-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.search-row { display: flex; gap: 10px; }
.search-field { position: relative; flex: 1; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }
.search-field input {
    width: 100%; height: 52px; border-radius: 999px; border: 2px solid var(--border);
    background: var(--surface-2); color: var(--text); font: inherit; padding: 0 18px 0 48px;
}
.search-field input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.search-hint { margin: 10px 0 0; font-size: .9rem; color: var(--text-muted); }
.search-results { margin-top: 16px; }
.search-results[hidden] { display: none; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.result-item { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.result-item img { width: 96px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.result-thumb-icon { width: 96px; height: 60px; border-radius: 8px; flex: none; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); font-size: .8rem; text-transform: uppercase; }
.result-body { flex: 1; min-width: 0; }
.result-body h3 { font-size: 1.02rem; margin: 0 0 2px; }
.result-body h3 a { color: var(--text); text-decoration: none; }
.result-body h3 a:hover { color: var(--primary); }
.result-body p { margin: 0; font-size: .9rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.result-type { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.no-results { padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--text-muted); }

/* ---------- filters ---------- */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; align-items: end; }
.filter-group label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.filter-group select, .filter-group input {
    width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; padding: 0 12px;
}
.filter-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-count { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card-grid > li { margin: 0; }
.game-card {
    position: relative; height: 100%; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-card[hidden] { display: none; }
.card-thumb { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.1rem; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.card-body h3 a:hover { color: var(--primary); }
.card-body p { margin: 0; font-size: .93rem; color: var(--text-muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700;
    padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.chip-cat { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.diff { font-weight: 800; }
.diff::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 2px; }
.diff-easy { color: var(--diff-easy); }
.diff-easy::before { background: var(--diff-easy); border-radius: 50%; }
.diff-medium { color: var(--diff-medium); }
.diff-medium::before { background: var(--diff-medium); }
.diff-hard { color: var(--diff-hard); }
.diff-hard::before { background: var(--diff-hard); transform: rotate(45deg); }
.card-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; position: relative; z-index: 2; }
.card-actions .btn { flex: 1; }
.fav-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-muted); cursor: pointer; font: inherit; font-weight: 700; padding: 0 12px;
    position: relative; z-index: 2;
}
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn:hover { color: var(--coral); border-color: var(--coral); }
.fav-btn[aria-pressed="true"] { color: var(--coral); border-color: var(--coral); }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.cat-grid li { margin: 0; }
.cat-card {
    display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow);
    transition: border-color .15s, transform .15s;
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.cat-icon { width: 48px; height: 48px; flex: none; }
.cat-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.cat-card p { margin: 0; font-size: .92rem; color: var(--text-muted); }
.cat-count { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--primary); }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.guide-grid li { margin: 0; }
.guide-card {
    display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); position: relative; box-shadow: var(--shadow);
}
.guide-card:hover { border-color: var(--primary); }
.guide-card h3 { margin: 0; font-size: 1.05rem; }
.guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card h3 a:hover { color: var(--primary); }
.guide-card p { margin: 0; font-size: .92rem; color: var(--text-muted); }
.guide-topic { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }

/* ---------- content blocks ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.feature-grid li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.feature-grid h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-grid p { margin: 0; font-size: .95rem; color: var(--text-muted); }
.feature-num { display: inline-flex; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 900; align-items: center; justify-content: center; margin-bottom: 10px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { font-size: 1.02rem; margin: 0; font-family: var(--font); }
.faq .faq-answer { padding-bottom: 14px; color: var(--text-muted); }
.faq .faq-answer p:last-child { margin-bottom: 0; }

.callout { border-left: 4px solid var(--accent); background: var(--surface-2); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4em 0; }
.callout p:last-child { margin-bottom: 0; }
.key-points { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 22px; margin: 2em 0; }
.key-points h2 { font-size: 1.25rem; margin-bottom: .5em; }
.key-points ul { margin: 0; }
blockquote { margin: 1.4em 0; padding: 4px 18px; border-left: 4px solid var(--primary); color: var(--text-muted); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.data-table th { background: var(--surface-2); }
kbd {
    display: inline-block; min-width: 1.8em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border);
    border-bottom-width: 3px; background: var(--surface); font-family: ui-monospace, Consolas, monospace; font-size: .85em; text-align: center; color: var(--text);
}

/* ---------- article layout ---------- */
.page-header { padding-top: 20px; padding-bottom: 8px; }
.page-header .lead { max-width: 46em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-muted); font-size: .92rem; margin-bottom: 8px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; padding-bottom: 40px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.toc { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; }
.toc h2 { font-size: 1rem; margin-bottom: 8px; font-family: var(--font); }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.sidebar-box { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; }
.sidebar-box h2 { font-size: 1rem; font-family: var(--font); }
.sidebar-box ul { margin: 0; padding-left: 1.1em; }
.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 2em 0; }
.author-box .logo-mark { width: 48px; height: 48px; }
.author-box p { margin: 0; font-size: .95rem; color: var(--text-muted); }
.author-box strong { color: var(--text); }

/* ---------- ads (collapsed until an AdSense ID is configured) ---------- */
.ad-container { display: none; }
.ads-enabled .ad-container {
    display: block; margin: 32px auto; min-height: 120px; max-width: 970px; text-align: center;
}
.ads-enabled .ad-container::before { content: "Advertisement"; display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; padding: 44px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font); color: var(--text-muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--primary); text-decoration: underline; }
.footer-about p { color: var(--text-muted); margin-top: 10px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- daily challenge banner (fixed brand gradient, white text passes contrast in both themes) ---------- */
.daily-banner { background: linear-gradient(135deg, #5b3df5, #c2185b); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.daily-banner h2 { margin: 0 0 4px; color: #fff; }
.daily-banner p { margin: 0; color: #fff; }
.daily-banner .btn { background: #fff; color: #2d1b69; }
.daily-banner .btn:hover { color: #2d1b69; background: #f2eeff; }

/* ---------- misc ---------- */
.empty-state { text-align: center; padding: 40px 20px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); }
.empty-state h2 { color: var(--text); }
.notice { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { margin: 0; }
.pill-list a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; color: var(--text); }
.pill-list a:hover { border-color: var(--primary); color: var(--primary); }
.sitemap-cols { columns: 2 280px; column-gap: 40px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 24px; }
.error-hero { text-align: center; padding: 60px 0 30px; }
.error-hero svg { margin: 0 auto 20px; width: 220px; height: auto; }
.error-hero .hero-actions { justify-content: center; }
.toast-global {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
    background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: opacity .2s, transform .2s; z-index: 90;
}
.toast-global.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .game-card:hover, .cat-card:hover { transform: none; }
}
