:root, .guide-light {
    color-scheme: light;
    --background: #f7f5fc;
    --surface: #fff;
    --ink: #241737;
    --muted: #574b65;
    --line: #e5ddef;
    --accent: #592cc5;
    --on-accent: #fff;
    --panel: #ede6fa;
    --hero: #27164c;
    --lime: #e3fb8d;
    --favorite-ink: #89325f;
    --shadow: 0 10px 28px rgba(34, 18, 66, .07);
    --body-font: "DM Sans", system-ui, -apple-system, sans-serif;
    --display-font: "Bricolage Grotesque", var(--body-font);
}
:root[data-theme="dark"], .guide-dark { color-scheme: dark; --background: #171124; --surface: #241a36; --ink: #f8f2ff; --muted: #c8bbd8; --line: #40324f; --accent: #e3fb8d; --on-accent: #231834; --panel: #2d2044; --favorite-ink: #ffadd7; --shadow: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) { color-scheme: dark; --background: #171124; --surface: #241a36; --ink: #f8f2ff; --muted: #c8bbd8; --line: #40324f; --accent: #e3fb8d; --on-accent: #231834; --panel: #2d2044; --favorite-ink: #ffadd7; --shadow: none; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 400 1rem/1.55 var(--body-font); }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 3; inset: .75rem auto auto 1rem; padding: .7rem 1rem; border-radius: .75rem; background: var(--surface); }

.site-header { background: var(--background); }
.header-inner { min-height: 5rem; display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font: 770 1.25rem/1 var(--display-font); text-decoration: none; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { width: 2.2rem; height: 2.2rem; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: .16rem; border-radius: .65rem; padding: .38rem; background: #592cc5; transform: rotate(-8deg); }
.brand-mark i { display: block; border-radius: .16rem; background: #ede2ff; }
.brand-mark i:nth-child(2) { background: var(--lime); }
.brand-mark i:nth-child(3) { background: #ffb58f; }
.header-inner nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 4vw, 2rem); }
.header-inner nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
.header-inner nav a:hover, .footer a:hover { color: var(--accent); }
.theme-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); }
.theme-button:hover { background: var(--panel); }
.theme-glyph { width: 1.95rem; height: 1.95rem; overflow: visible; }
.theme-disc, .theme-rays { transform-origin: 20px 20px; }
.theme-disc { transform: scale(1.38); }
.theme-shadow { transform: translate(5px, -5px); }
.theme-rays { transform: rotate(-57deg) scale(.55); opacity: 0; }
.theme-sparks { opacity: 0; transform-origin: 30px 14px; }
.theme-button[data-icon="sun"] .theme-disc { transform: scale(1); }
.theme-button[data-icon="sun"] .theme-shadow { transform: translate(22px, -19px); }
.theme-button[data-icon="sun"] .theme-rays { transform: rotate(0) scale(1); opacity: 1; }
.theme-button[data-animated] .theme-shadow { transition: transform .53s cubic-bezier(.24,.67,.29,1); }
.theme-button[data-animated] .theme-disc { transition: transform .53s cubic-bezier(.25,1.4,.4,1); }
.theme-button[data-animated] .theme-rays { transition: transform .55s cubic-bezier(.22,.8,.3,1), opacity .28s ease; }
.theme-button[data-animated][data-icon="moon"] .theme-sparks { animation: theme-sparks .57s .15s ease-out both; }
@keyframes theme-sparks {
    0% { opacity: 0; transform: translate(-3px, 3px) scale(.3); }
    36% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(2px, -2px) scale(.6); }
}

.hero { position: relative; isolation: isolate; min-height: 27rem; overflow: hidden; display: flex; align-items: stretch; border-radius: clamp(1rem, 2vw, 1.9rem); background: var(--hero); color: #fff; }
.hero-copy { position: relative; z-index: 1; width: 54%; padding: clamp(2rem, 5.1vw, 4.5rem); align-self: center; }
.hero h1 { margin: .5rem 0 .95rem; font: 830 clamp(3.6rem, 7.2vw, 7.25rem)/.88 var(--display-font); text-wrap: balance; letter-spacing: -.063em; }
.hero h1 span { color: var(--lime); }
.hero p { max-width: 22rem; margin: 0 0 1.6rem; color: #e6ddf6; font-size: clamp(1rem, 1.55vw, 1.14rem); }
.hero-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.25rem; border-radius: .75rem; background: var(--lime); color: #21143a; font-weight: 780; text-decoration: none; }
.hero-button:hover { background: #efffb4; }
.hero-button:focus-visible { outline-color: #fff; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 37%; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 26%); }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }

.section-heading h2 { margin: 0; color: var(--ink); font: 770 clamp(1.65rem, 3.5vw, 2.7rem)/1.13 var(--display-font); letter-spacing: -.042em; }
.section-heading p { margin: .45rem 0 0; color: var(--muted); }
.game-shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; margin: clamp(2rem, 5vw, 3.75rem) 0; }
.game-shelves:not(:has(.favorites:not([hidden]))) { grid-template-columns: 1fr; }
.game-shelf { padding: clamp(1rem, 2.5vw, 1.65rem); border-radius: 1.35rem; background: var(--panel); }
.game-shelf .section-heading { min-height: 2.25rem; display: flex; align-items: center; gap: .65rem; margin-bottom: .95rem; }
.game-shelf .section-heading h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.featured-links, .favorites-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.featured-link { min-height: 3.65rem; display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: .8rem; background: var(--surface); text-decoration: none; font-weight: 740; line-height: 1.2; overflow-wrap: anywhere; }
.featured-link:hover { box-shadow: var(--shadow); color: var(--accent); }
.geo-mark { width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; display: grid; place-items: center; border-radius: .55rem; background: #ebe0ff; color: #52249b; font-size: 1.25rem; font-weight: 760; }
.geo-3 { background: #e7f9ad; color: #40560f; font-size: .85rem; }
.geo-4 { background: #d7eefb; color: #224f85; }
.geo-5 { background: #f4e2fb; color: #712986; }
.favorites-heading { justify-content: space-between; }
.favorites-count { flex: none; padding: .23rem .55rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); color: var(--muted); font-size: .85rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.favorites-empty { display: flex; align-items: center; gap: .9rem; min-height: 7.85rem; padding: .95rem; border: 1px dashed var(--line); border-radius: .8rem; color: var(--muted); background: var(--surface); }
.favorites-empty p { margin: 0 0 .16rem; font-weight: 690; color: var(--ink); }
.favorites-empty a { color: var(--accent); font-size: .9rem; text-underline-offset: .19em; }
.favorites-empty-mark { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--panel); color: var(--favorite-ink); }
.favorites-empty-mark svg { width: 1.2rem; height: 1.2rem; }
.favorites-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.favorite-game { display: flex; align-items: stretch; min-height: 3.65rem; border-radius: .8rem; background: var(--surface); }
.favorite-game a { flex: 1; min-width: 0; display: flex; align-items: center; padding: .5rem .15rem .5rem .75rem; border-radius: .8rem; text-decoration: none; font-weight: 740; line-height: 1.2; overflow-wrap: anywhere; }
.favorite-game a:hover { color: var(--accent); }
.favorite-remove { flex: 0 0 2.75rem; display: grid; place-items: center; margin: .15rem; padding: 0; border: 0; border-radius: .65rem; color: var(--favorite-ink); background: transparent; }
.favorite-remove:hover { background: var(--panel); }
.favorite-remove svg, .favorite-toggle svg { width: 1.05rem; height: 1.05rem; flex: none; }
.favorite-remove svg, .favorite-toggle.is-saved svg { fill: currentColor; }
.favorite-notice { position: fixed; z-index: 4; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); width: min(calc(100% - 2rem), 24rem); margin: 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .8rem; box-shadow: var(--shadow); color: var(--ink); background: var(--panel); font-weight: 650; pointer-events: none; }

.catalogue { scroll-margin-top: 1rem; }
.catalogue-heading { margin-bottom: 1.35rem; }
.categories { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1rem; }
.categories button, .more, .empty button { min-height: 2.75rem; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); font-weight: 680; }
.categories button[aria-pressed="false"]:hover, .more:hover, .empty button:hover { background: var(--panel); }
.categories [aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
.search { position: relative; display: block; }
.filter-row input { width: 100%; min-height: 3rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: .8rem; color: var(--ink); background: var(--surface); }
.search input { padding-left: 2.6rem; }
.search input::placeholder { color: var(--muted); }
.search-mark { pointer-events: none; position: absolute; top: 1rem; left: .95rem; width: .8rem; height: .8rem; border: 2px solid var(--muted); border-radius: 50%; }
.search-mark::after { content: ""; position: absolute; top: .55rem; left: .54rem; width: .36rem; height: 2px; background: var(--muted); transform: rotate(45deg); transform-origin: 0 50%; }
.random-button, .contact input[type="submit"] { min-height: 3rem; padding: .65rem 1.05rem; border: 0; border-radius: .8rem; background: var(--accent); color: var(--on-accent); font-weight: 750; }
.random-button:hover:not(:disabled), .contact input[type="submit"]:hover { filter: brightness(.92); }
.random-button:disabled { opacity: .56; cursor: default; }
.results { margin: .8rem 0 .7rem; min-height: 1.55em; color: var(--muted); font-size: .9rem; }

.game-grid { display: grid; gap: .85rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 13.1rem; padding: 1rem 1.15rem; border-radius: 1.15rem; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.game-card:has(h3 a):hover { border-color: var(--accent); }
.card-top { display: flex; align-items: center; gap: .7rem; }
.game-mark { width: 2.6rem; height: 2.6rem; flex: 0 0 2.6rem; display: grid; place-items: center; border-radius: .75rem; color: #51269d; background: #ede3ff; font: 800 1.28rem/1 var(--display-font); }
.tone-geografija .game-mark { background: #e0f4a8; color: #3b5510; }
.tone-kvizovi .game-mark { background: #ffe0d5; color: #902c40; }
.tone-logika .game-mark { background: #f1e2fc; color: #762d8e; }
.tone-brojevi .game-mark { background: #dbeafc; color: #224f8d; }
.tone-istorija .game-mark { background: #fff0c9; color: #7d4610; }
.tone-sah .game-mark { background: #d7f6eb; color: #105b4d; }
.card-category { font-size: .875rem; font-weight: 650; color: var(--muted); }
.game-card h3 { margin: .75rem 0 .22rem; font: 770 clamp(1.25rem, 2.2vw, 1.52rem)/1.17 var(--display-font); letter-spacing: -.025em; overflow-wrap: anywhere; }
.game-card h3 a { text-decoration: none; }
.game-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.game-card h3 a:hover { color: var(--accent); }
.game-card h3 a:focus-visible { outline: none; }
.game-card h3 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.game-card p { margin: .1rem 0 .8rem; color: var(--muted); line-height: 1.43; }
.card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .2rem .55rem; margin-top: auto; }
.card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .12rem .6rem; color: var(--muted); font-size: .875rem; line-height: 1.3; }
.card-meta span:first-child { font-weight: 640; }
.favorite-toggle { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; margin-inline-start: auto; padding: .3rem .5rem; border: 0; border-radius: .65rem; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.2; }
.favorite-toggle svg, .favorite-toggle.is-saved { color: var(--favorite-ink); }
.favorite-toggle:hover { color: var(--favorite-ink); background: var(--panel); }
.more { display: block; margin: 1.4rem auto 0; }
.empty { padding: 2rem 1rem; border-radius: 1rem; background: var(--panel); text-align: center; }
.empty h3,.empty p { margin: 0 0 .65rem; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2rem; margin-top: 3rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer a { text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1rem; }
.di-content-page { min-height: 100vh; display: flex; flex-direction: column; }
.di-content-page main { flex: 1; }
.content-panel { max-width: 49rem; margin: clamp(1.15rem, 5vw, 3.5rem) auto 0; padding: clamp(1.15rem, 5vw, 2.5rem); border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.content-panel :is(h1,h2,h3), .missing-copy h1 { font-family: var(--display-font); line-height: 1.12; }
.content-panel h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.035em; }
.content-panel h2 { margin: 1.65rem 0 .55rem; font-size: 1.42rem; }
.content-panel p, .content-panel li { color: var(--muted); }
.content-panel p { margin: .7rem 0; }
.content-panel a { color: var(--accent); text-underline-offset: .18em; }
.content-panel img { max-width: 100%; height: auto; }
.content-panel pre { overflow: auto; }
.entry-list { display: grid; gap: .65rem; padding: 0; list-style: none; }
.entry-list a { display: block; padding: .75rem; border: 1px solid var(--line); border-radius: .8rem; }
.di-content-page.error404 main { flex: none; }
.error404 .footer { max-width: 58rem; margin-top: 1.5rem; }
.missing-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); align-items: center; gap: clamp(.75rem, 3vw, 2rem); max-width: 58rem; margin: .75rem auto 0; padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: clamp(1rem, 2vw, 1.5rem); background: radial-gradient(ellipse at 82% 85%, #481951 0, transparent 62%), linear-gradient(150deg, var(--hero) 27%, #331447 100%); color: #fff; }
.missing-code { margin: 0 0 .45rem; color: var(--lime); font-size: .875rem; font-weight: 750; }
.missing-copy h1 { margin: 0; font-size: clamp(1.85rem, 4vw, 3.2rem); font-weight: 790; letter-spacing: -.045em; text-wrap: balance; }
.missing-copy > p:not(.missing-code) { max-width: 35ch; margin: .65rem 0 1rem; color: #e6ddf6; }
.missing-copy a:focus-visible { outline-color: var(--lime); }
.missing-art { display: block; width: 100%; max-width: 19rem; height: auto; justify-self: center; }
.guide-palettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.guide-palette { display: grid; gap: .5rem; padding: .85rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--background); color: var(--ink); }
.guide-palette h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.guide-palette span { display: flex; align-items: center; gap: .55rem; min-height: 1.7rem; font-size: .875rem; }
.guide-palette i { width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--swatch); }
.guide-type-sample { font: 770 clamp(1.65rem, 4vw, 2.3rem)/1.12 var(--display-font); letter-spacing: -.035em; color: var(--ink); }
.guide-components { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.guide-components .hero-button { color: #21143a; }
.guide-components .hero-button:focus-visible { outline-color: var(--accent); }
.guide-components .featured-link { min-height: 3rem; border: 1px solid var(--line); }

@media (max-width: 700px) {
    .wrap { width: min(100% - 2rem, 75rem); }
    .header-inner { min-height: 4rem; gap: 1rem; }
    .di-catalogue-page .header-inner .nav-catalogue { display: none; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-shelves { grid-template-columns: 1fr; gap: .75rem; }
    .hero { flex-direction: column; min-height: 0; background: radial-gradient(ellipse at 80% 82%, #481951 0, transparent 59%), linear-gradient(150deg, var(--hero) 27%, #331447 100%); }
    .hero-copy { width: 100%; align-self: start; padding: 1.8rem 1.65rem .25rem; }
    .hero-art { position: relative; z-index: 0; inset: auto; height: auto; margin: .65rem 1rem 1rem; mask-image: none; }
    .hero-art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
    .missing-page { grid-template-columns: 1fr; gap: .85rem; text-align: center; }
    .missing-copy > p:not(.missing-code) { margin-inline: auto; }
    .missing-art { max-width: 12rem; }
}
@media (max-width: 510px) {
    .header-inner { gap: .55rem; }
    .brand { font-size: 1.09rem; gap: .5rem; }
    .brand-mark { width: 1.85rem; height: 1.85rem; }
    .header-inner nav a { font-size: .84rem; line-height: 1.18; text-align: right; }
    .di-content-page .header-inner nav { gap: .7rem; }
    .guide-palettes { grid-template-columns: 1fr; }
    .hero-copy { padding: 1.6rem 1.35rem .15rem; }
    .hero h1 { font-size: clamp(3.55rem, 13.8vw, 5rem); }
    .hero p { margin-bottom: 1.1rem; }
    .featured-link { gap: .45rem; font-size: .9rem; }
    .featured-link .geo-mark { flex-basis: 1.8rem; width: 1.8rem; height: 1.8rem; }
    .filter-row { grid-template-columns: 1fr; }
    .header-inner nav a[href*="/srbija-na-dlanu/"] { display: none; }
    .categories { gap: .4rem; }
    .categories button { padding-inline: .66rem; font-size: .875rem; }
    .game-grid { grid-template-columns: 1fr; }
    .game-card { min-height: 0; }
}

@media (max-width: 370px) {
    .di-content-page .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: .65rem; }
    .di-content-page .header-inner nav { grid-row: 2; grid-column: 1 / -1; margin-left: 0; }
    .di-content-page .theme-button { grid-row: 1; grid-column: 2; }
}
 
.contact {
    --contact-error: #952639;
    --contact-success: #215b3d;
    width: min(100%, 46rem);
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    scroll-margin-top: 1rem;
}
.contact .section-heading { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.contact .section-heading h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.contact .section-heading p { margin-top: .35rem; }
.contact .wpcf7 { min-width: 0; }
.contact-fields, .contact-pair, .proposal-fields { display: grid; gap: .95rem; }
.contact-pair, .proposal-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-fields label { display: grid; gap: .32rem; min-width: 0; font-size: .93rem; font-weight: 680; line-height: 1.4; }
.contact-fields p { margin: 0; }
.contact-fields .wpcf7-form-control-wrap { display: block; min-width: 0; }
.contact-fields :is(input:not([type=submit]), select, textarea) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 2.8rem;
    padding: .58rem .75rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    color: var(--ink);
    background: var(--background);
    font: 400 1rem/1.4 var(--body-font);
}
.contact-fields :is(input, textarea)::placeholder { color: var(--muted); opacity: .82; }
.contact-fields select {
    appearance: none;
    padding-right: 2.2rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 1.1rem) 1.15rem, calc(100% - .78rem) 1.15rem;
    background-size: .35rem .35rem;
    background-repeat: no-repeat;
}
.contact-fields textarea { height: 6.5rem; min-height: 6.5rem; resize: vertical; }
.contact-fields .wpcf7-not-valid { border-color: var(--contact-error) !important; }
.contact .wpcf7-not-valid-tip { margin-top: .25rem; color: var(--contact-error); font-size: .85rem; font-weight: 500; }
.contact-submit { display: flex; align-items: center; justify-content: flex-end; padding-top: .15rem; }
.contact-submit input { order: 1; }
.contact-submit .wpcf7-spinner { margin: 0 .65rem 0 0; }
.contact form .wpcf7-response-output {
    --response-color: var(--contact-error);
    display: flex; align-items: flex-start; gap: .65rem; margin: 0; padding: .6rem .75rem; border: 0; border-radius: .7rem;
    background: color-mix(in srgb, var(--response-color) 10%, var(--surface));
    color: var(--response-color); font-size: .92rem; font-weight: 680; line-height: 1.45;
}
.contact form .wpcf7-response-output:empty,
.contact form:is(.init, .resetting, .submitting) .wpcf7-response-output { display: none; }
.contact form .wpcf7-response-output::before {
    content: "!" / ""; display: grid; place-items: center; flex: 0 0 1.3rem; height: 1.3rem;
    border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); font-size: .8rem; line-height: 1;
}
.contact form.sent .wpcf7-response-output { --response-color: var(--contact-success); }
.contact form.sent .wpcf7-response-output::before { content: "✓" / ""; }
.contact input[type="submit"] { cursor: pointer; }
.contact input[type="submit"]:disabled { opacity: .56; cursor: wait; }
:root[data-theme="dark"] .contact { --contact-error: #ffc0c9; --contact-success: #b6e9c8; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .contact { --contact-error: #ffc0c9; --contact-success: #b6e9c8; }
}
@media (max-width: 510px) {
    .contact-pair, .proposal-fields { grid-template-columns: 1fr; }
    .contact-submit { position: relative; }
    .contact-submit input { width: 100%; }
    .contact-submit .wpcf7-spinner { position: absolute; left: .65rem; }
}


.site-loader {
    position: fixed; inset: 0; z-index: 8; pointer-events: none;
    display: grid; place-items: center;
    background: var(--background);
    opacity: 0; visibility: hidden;
    transition: opacity .22s ease, visibility 0s linear .22s;
}
.di-loading .site-loader { opacity: 1; visibility: visible; transition-delay: 0s; }
.site-loader .brand-mark { width: 3.7rem; height: 3.7rem; padding: .56rem; gap: .21rem; border-radius: 1rem; box-shadow: 0 .6rem 1.4rem rgba(64, 25, 146, .2); }
.site-loader .brand-mark i { border-radius: .26rem; animation: tile-load .72s ease-in-out infinite alternate; }
.site-loader .brand-mark i:nth-child(2) { animation-delay: .09s; }
.site-loader .brand-mark i:nth-child(3) { animation-delay: .18s; }
.site-loader .brand-mark i:nth-child(4) { animation-delay: .27s; }
@keyframes tile-load {
    from { opacity: .65; transform: scale(.78) rotate(-7deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes settle-in {
    from { opacity: 0; transform: translateY(.55rem); }
    to { opacity: 1; transform: translateY(0); }
}
html:not(.di-loading) .hero-copy { animation: settle-in .43s ease-out both; }
.game-card.is-entering { animation: settle-in .28s cubic-bezier(.2,.7,.3,1) backwards; }
.game-card.is-entering:nth-child(3n + 2) { animation-delay: .028s; }
.game-card.is-entering:nth-child(3n) { animation-delay: .055s; }

:where(body, .site-header, .section-heading h2, .section-heading p, .header-inner nav a, .game-shelf, .featured-link, .favorite-game, .favorite-toggle, .favorite-remove, .favorites-count, .favorites-empty, .favorites-empty-mark, .contact, .contact .wpcf7, .contact-fields label, .contact form .wpcf7-response-output, .card-category, .card-meta, .game-card p, .theme-button, .categories button, .more, .empty, .empty button, .random-button, .results, .filter-row input, .contact-fields input, .contact-fields select, .contact-fields textarea, .footer, .content-panel, .content-panel :is(p,li,a)) {
    transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.game-card { transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .18s ease; }
@media (hover: hover) and (pointer: fine) {
    .game-card:has(h3 a):hover, .featured-link:hover { transform: translateY(-2px); }
    .featured-link { transition: transform .18s ease, background-color .28s ease, color .28s ease, box-shadow .28s ease; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-loader { display: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
