/* public.css — styles specific to the public area (marketing pages, free
 * tools, game pages, reports, errors), built on theme.css tokens and
 * components. Nothing here changes the shared components. */

/* -- Helpers -------------------------------------------------------------- */

@media (max-width: 620px) { .hide-sm { display: none; } }

.crumbs { display: flex; gap: .4rem; align-items: center; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

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

.hero__form .field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero__form .tool-form { gap: .6rem; }
.hero__note strong { color: var(--text); }

.final-cta .section__title { max-width: 680px; margin-left: auto; margin-right: auto; }
.final-cta__lead { margin-left: auto; margin-right: auto; }
.final-cta__actions { justify-content: center; }

.plans-block { display: flex; flex-direction: column; gap: 1.25rem; }
.plans-switch { display: flex; justify-content: center; }
.plans-switch .badge { margin-left: .35rem; height: 18px; font-size: .68rem; }
.plan__blurb { margin: -.35rem 0 0; min-height: 2.6em; }
.plans-note { margin: 0; }
.compare .compare__label { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 550; color: var(--text); background: transparent; }
.compare .check { color: var(--success); font-weight: 600; }
@media (max-width: 620px) {
    .compare th, .compare td { padding: .5rem; font-size: .82rem; }
}

/* -- Tools ---------------------------------------------------------------- */

.tool-intro { margin-bottom: 1.25rem; }
.tool-card { max-width: 760px; }
.tool-explain h3 { margin-bottom: .25rem; }
.tool-explain p { margin: 0; }

/* Form pages: how it works, the explainer, questions, more tools */
.tool-section { margin-top: 2.75rem; }
.tool-section > h2 { margin-bottom: 1rem; }
.tool-section > .faq { max-width: 820px; }
.tool-prose { max-width: 720px; }
.tool-prose p { color: var(--text-2); margin: 0 0 .9rem; }
.tool-prose p:last-child { margin-bottom: 0; }
.tool-section + .more-tools { margin-top: 2.75rem; }

.more-tools__title { margin-bottom: 1rem; }
.more-tools__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.more-tools__item { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.more-tools__item:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-1px); }
.more-tools__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.more-tools__name { font-weight: 600; }
.more-tools__name::after { content: " \2192"; color: var(--accent); }
.more-tools__text { color: var(--muted); font-size: .9rem; }

.tool-app { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.75rem; }
.tool-app__body { min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.tool-app__body .page__lead { margin: 0; }
@media (max-width: 620px) {
    .tool-app { flex-direction: column; align-items: flex-start; }
    .tool-app .game__capsule--lg { width: 100%; height: auto; aspect-ratio: 460 / 215; }
}

.tool-result h2 { margin-bottom: .75rem; }
.tool-cta { border-color: var(--primary); }
.tool-cta__title { margin: 0 0 .25rem; font-size: 1.15rem; }
.tool-cta p { margin: 0; max-width: 560px; }

/* -- Game pages ----------------------------------------------------------- */

.game-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 1.75rem; align-items: center; margin: 0 0 1.25rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
/* The game's own art, blurred, as a soft colour wash behind the hero; faded into the card on the right. */
.game-hero__backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.game-hero__backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(56px) saturate(1.4); opacity: .32; transform: scale(1.25); }
.game-hero__backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, var(--surface) 85%); }
.game-hero__image { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); box-shadow: 0 10px 30px rgb(0 0 0 / .22), 0 0 0 1px rgb(0 0 0 / .06); }
.game-hero__body { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.game-hero__title { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.game-hero__by { margin: -.2rem 0 0; color: var(--text-2); }
.game-hero__studio { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; max-width: 100%; padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--text-2); font-size: .84rem; text-decoration: none; }
.game-hero__studio:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.game-hero__studio svg { flex: none; color: var(--accent); }
.game-hero__studio span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-hero__studio strong { color: var(--text); font-weight: 600; }
.game-hero__actions { margin-top: .2rem; }
.game-stats { margin-bottom: 1.5rem; }
.game-grid { align-items: start; }
.game-chart { height: 300px; }
.game-about .stack { gap: 1rem; }
.game-about__widget { padding: 0 1.25rem 1.25rem; }
.game-foot { margin-top: 2rem; }
@media (max-width: 520px) {
    .game-about__widget { display: none; }
}
@media (max-width: 1100px) {
    .game-hero { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 900px) {
    .game-hero { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
    .game-hero__backdrop::after { background: linear-gradient(180deg, transparent 0%, var(--surface) 55%); }
}

.week-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.week-list li { display: flex; align-items: center; gap: .1rem; }

.similar-list { list-style: none; margin: 0; padding: .35rem 0; }
.similar-list__item { padding: .5rem 1.25rem; }
.similar-list__item + .similar-list__item { border-top: 1px solid var(--border); }
.similar-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1px; }
.similar-list--grid .similar-list__item { border-top: 0; min-width: 0; }
.similar-list--grid .similar-list__item:nth-child(n + 3) { border-top: 1px solid var(--border); }
@media (max-width: 620px) {
    .similar-list--grid { grid-template-columns: minmax(0, 1fr); }
    .similar-list--grid .similar-list__item:nth-child(2) { border-top: 1px solid var(--border); }
}

/* -- Upcoming games calendar ------------------------------------------------ */

.calendar { display: flex; flex-direction: column; gap: 1rem; }
.calendar__week { margin: 0; scroll-margin-top: 80px; }

/* -- Reports -------------------------------------------------------------- */

.report-head { margin-bottom: 1.25rem; }
.report-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.03em; margin-bottom: .35rem; }
.report-intro { margin-bottom: 2rem; font-size: 1.05rem; }
.report-body h2 { font-size: 1.2rem; }
.report-body ul { margin: 0; padding-left: 1.1rem; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) { .stats--3 { grid-template-columns: 1fr; } }

.heat-chip { display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 .4rem; border-radius: 6px; background: var(--heat); color: var(--heat-fg); font-weight: 650; font-size: .8rem; font-variant-numeric: tabular-nums; }

.bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.bars__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 48px; gap: .75rem; align-items: center; font-size: .88rem; }
.bars__row .bar { height: 10px; }
.bars__value { text-align: right; font-weight: 600; }

/* -- Legal / contact ------------------------------------------------------ */

.legal__value { white-space: normal; }
.contact-alt { margin-top: 1rem; }

/* -- Errors --------------------------------------------------------------- */

.error-page { padding: 4.5rem 0 5rem; overflow: hidden; }
.error-page__code { font-size: clamp(4.5rem, 16vw, 8.5rem); font-weight: 750; letter-spacing: -.06em; color: var(--accent); margin: 0 0 .5rem; line-height: .9; }
.error-page__digits { position: relative; display: inline-block; animation: error-float 5s var(--ease) infinite; }
/* Glitch: two offset copies of the number flicker now and then (transform + opacity only). */
.error-page__digits::before, .error-page__digits::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.error-page__digits::before { color: #1FB8A6; animation: error-glitch-a 4.2s steps(1) infinite; }
.error-page__digits::after { color: var(--mark-lead, #e4294f); mix-blend-mode: multiply; animation: error-glitch-b 4.2s steps(1) infinite; }
:root[data-mode="dark"] .error-page__digits::after { mix-blend-mode: screen; }
.error-page__lead { margin-left: auto; margin-right: auto; margin-bottom: 1rem; max-width: 36rem; }
.error-page__detail { margin: 0 auto 1rem; max-width: 34rem; font-size: .92rem; color: var(--muted); }
.error-page__actions { justify-content: center; margin-top: 1.75rem; }
.error-page__tip { margin: 2.5rem auto 0; max-width: 34rem; font-size: .9rem; color: var(--muted); }
.error-page__tip-label { display: block; margin-bottom: .3rem; font-family: var(--font-mono, ui-monospace, monospace); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.error-achievement { display: inline-flex; align-items: center; gap: .9rem; margin: .75rem auto 0; padding: .7rem 1.1rem .7rem .75rem; text-align: left; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, var(--surface), var(--surface-2)); box-shadow: 0 10px 30px -18px rgba(9, 9, 11, .45); animation: error-pop .7s var(--ease) .35s both; }
.error-achievement__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.error-achievement__icon svg { width: 30px; height: 30px; }
.error-achievement__text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.error-achievement__label { font-family: var(--font-mono, ui-monospace, monospace); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.error-achievement__name { font-size: 1rem; }
.error-achievement__desc { font-size: .86rem; color: var(--muted); }

@keyframes error-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes error-glitch-a { 0%, 86%, 100% { opacity: 0; transform: none; } 87% { opacity: .85; transform: translate(-4px, 2px); } 89% { opacity: .85; transform: translate(3px, -2px); } 91% { opacity: 0; } }
@keyframes error-glitch-b { 0%, 87%, 100% { opacity: 0; transform: none; } 88% { opacity: .8; transform: translate(4px, -1px); } 90% { opacity: .8; transform: translate(-3px, 2px); } 92% { opacity: 0; } }
@keyframes error-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .error-page__digits, .error-page__digits::before, .error-page__digits::after, .error-achievement { animation: none; }
}
@media (max-width: 520px) {
    .error-achievement { display: flex; }
}

/* -- Legal pages ------------------------------------------------------------ */

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.legal-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: .75rem; }
.legal-nav__hub { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.legal-nav__list { display: flex; flex-direction: column; gap: 2px; }
.legal-nav__link { padding: .35rem .6rem; border-radius: var(--radius-sm); color: var(--text-2); font-size: .9rem; }
.legal-nav__link:hover { background: var(--surface-2); text-decoration: none; }
.legal-nav__link--active { background: var(--primary-soft); color: var(--primary-soft-fg); font-weight: 600; }
.legal-doc h1 { margin-bottom: .25rem; }
.legal-doc .table-wrap { margin: 1rem 0; }
.legal-hub { margin-top: .5rem; }
.legal-hub__contact { margin-top: 1.5rem; }
.legal-address { white-space: pre-line; }

@media (max-width: 900px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .legal-nav { position: static; }
    .legal-nav__list { flex-direction: row; flex-wrap: wrap; gap: .35rem; }
    .legal-nav__link { border: 1px solid var(--border); font-size: .82rem; }
}

/* -- Brand & media kit (/brand) -------------------------------------------- */

.kit-only-dark { display: none; }
:root[data-mode="dark"] .kit-only-dark { display: block; }
:root[data-mode="dark"] .kit-only-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root[data-mode="auto"] .kit-only-dark { display: block; }
    :root[data-mode="auto"] .kit-only-light { display: none; }
}

.kit-hero { padding: 2rem 0 0; }
.kit-hero .eyebrow { display: block; margin-top: 1.5rem; }
.kit-hero__lockup { margin: 1.25rem 0 1.5rem; }
.kit-hero__logo { height: clamp(44px, 8vw, 84px); width: auto; }
.kit-hero__lead { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.45; color: var(--text-2); max-width: 680px; margin: 0 0 1.75rem; }
.kit-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: 3rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.kit-nav a { color: var(--text-2); font-size: .92rem; display: inline-flex; gap: .45rem; align-items: baseline; }
.kit-nav a:hover { color: var(--text); text-decoration: none; }
.kit-nav span { font-family: var(--font-mono); font-size: .7rem; color: var(--accent); }

.kit-section { padding: 4rem 0; border-top: 1px solid var(--border); scroll-margin-top: 64px; }
.kit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: 2rem; }
.kit-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.03em; }
.kit-head p { margin: 0; color: var(--muted); flex: 1 1 360px; }
.kit-head__num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; color: var(--accent); }

.kit-grid { display: grid; gap: 1.25rem; }
.kit-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kit-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kit-grid--type { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.kit-rules { margin-top: 1.25rem; }

.kit-label { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.kit-data { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.kit-accent { color: var(--accent); }
.kit-card { padding: 1.4rem; margin: 0; }
.kit-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.kit-card__top .kit-label { margin-bottom: .6rem; }
.kit-files { display: inline-flex; gap: .35rem; flex: none; }
.kit-files a, a.kit-files { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; padding: .3rem .55rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); }
.kit-files a:hover, a.kit-files:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.kit-more { margin: 1rem 0 0; }

/* fixed brand grounds (they show the logo as it should look, whatever the theme) */
.kit-ground--ink { background: #09090B; }
.kit-ground--paper { background: #F5F4F1; }
.kit-ground--paper-2 { background: #E9E8E4; }
.kit-ground--ruby { background: #E4294F; }

.kit-tile { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.kit-tile__stage { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kit-tile__img { display: block; width: 68%; height: auto; }
.kit-tile__img--stacked { width: 46%; }
.kit-tile__img--mark { width: 24%; }
.kit-tile__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border-top: 1px solid var(--border); }
.kit-tile__foot > span:first-child { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }

.kit-mark { display: block; flex: none; stroke: none; }
.kit-mark__lead { fill: var(--mark-lead); }
.kit-mark__rival { fill: var(--mark-rival); }
.kit-wordmark { font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--text); }

.kit-clear { display: grid; place-items: center; padding: 1.5rem 0 1.25rem; }
.kit-clear__box { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 44px; border: 1px dashed var(--accent); }
.kit-clear__box .kit-mark { width: 44px; height: 44px; }
.kit-clear__box .kit-wordmark { font-size: 36px; }
.kit-clear__x { position: absolute; font-family: var(--font-mono); font-size: .68rem; color: var(--accent); }
.kit-clear__x--top { top: 14px; left: 50%; transform: translateX(-50%); }
.kit-clear__x--left { left: 14px; top: 50%; transform: translateY(-50%); }

.kit-min { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.kit-min li { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.kit-min .kit-data { color: var(--muted); font-size: .7rem; }
.kit-min__lockup { display: inline-flex; align-items: center; gap: 6px; }
.kit-min__lockup .kit-mark { width: 20px; height: 20px; }
.kit-min__lockup .kit-wordmark { font-size: 16px; }
.kit-min__mark .kit-mark { width: 16px; height: 16px; }
.kit-min__glyph { display: inline-flex; gap: 2px; }
.kit-min__glyph .kit-mark { width: 12px; height: 12px; }

.kit-donts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.kit-dont { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.kit-dont__stage { aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.kit-dont__stage .kit-mark { width: 40%; height: 40%; }
.kit-dont__label { display: block; padding: .6rem .7rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; color: var(--accent); border-top: 1px solid var(--border); }
.kit-dont--stretch .kit-mark { transform: scale(1.7, .7); }
.kit-dont--rotate .kit-mark { transform: rotate(-28deg); }
.kit-dont--recolor .kit-mark__lead { fill: #3b82f6; }
.kit-dont--recolor .kit-mark__rival { fill: #22c55e; }
.kit-dont--glow .kit-mark { filter: drop-shadow(0 0 10px var(--ruby-bright)) drop-shadow(4px 6px 0 rgb(0 0 0 / .35)); }
.kit-dont--contain .kit-dont__stage::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border: 3px solid var(--text); border-radius: 50%; }
.kit-dont--busy .kit-dont__stage { background: repeating-linear-gradient(45deg, #2F6F7A 0 10px, #D8783D 10px 20px, #7E8C5A 20px 30px); }

.kit-swatches { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.kit-swatch { width: 100%; display: flex; flex-direction: column; gap: .2rem; padding: 0; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.kit-swatch__chip { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: .45rem; transition: transform .15s var(--ease); }
.kit-swatch:hover .kit-swatch__chip { transform: translateY(-2px); }
.kit-swatch .kit-data { color: var(--text-2); }
.kit-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.kit-c--ink-950 { background: #09090B; } .kit-c--ink-900 { background: #0E0E11; } .kit-c--ink-800 { background: #1B1B1F; }
.kit-c--ink-700 { background: #27272C; } .kit-c--ink-500 { background: #6F6F78; } .kit-c--ink-300 { background: #A7A7AE; }
.kit-c--paper { background: #F5F4F1; } .kit-c--paper-2 { background: #E9E8E4; }
.kit-c--ruby-bright { background: #FF5D7C; } .kit-c--ruby { background: #E4294F; } .kit-c--ruby-deep { background: #A3122F; }
.kit-c--quiet { background: #2F6F7A; } .kit-c--mild { background: #7E8C5A; } .kit-c--busy { background: #D8783D; } .kit-c--packed { background: #E4294F; }

.kit-heat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 1rem; }
.kit-heat__step { display: flex; flex-direction: column; gap: .3rem; padding: 0; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.kit-heat__bar { display: block; height: 56px; }
.kit-heat__step:first-child .kit-heat__bar { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.kit-heat__step:last-child .kit-heat__bar { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.kit-heat .kit-data { font-size: .68rem; }

.kit-pairs { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.kit-pair { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 500; }
.kit-pair--paper-on-ink { background: #09090B; color: #F5F4F1; }
.kit-pair--bright-on-ink { background: #09090B; color: #FF5D7C; }
.kit-pair--deep-on-paper { background: #F5F4F1; color: #A3122F; box-shadow: inset 0 0 0 1px #DEDCD6; }
.kit-pair--paper-on-ruby { background: #E4294F; color: #F5F4F1; }

.kit-specimen__display { margin: 0 0 1.5rem; font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.kit-specimen__display em { font-style: italic; color: var(--accent); }
.kit-specimen__heading { margin: 0 0 1rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.kit-specimen__body { margin: 0 0 1.5rem; max-width: 60ch; font-size: 1.05rem; color: var(--text-2); }
.kit-specimen__data { margin: 0; color: var(--muted); line-height: 2; }
.kit-specimen__data .kit-accent { margin: 0 1.25rem; }
.kit-type-specs { margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.kit-type-specs dd { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.kit-type-specs dt.kit-label { margin-bottom: .25rem; }
.kit-type { color: var(--text); line-height: 1.15; }
.kit-type--display { font-size: 1.6rem; font-weight: 600; letter-spacing: -.04em; }
.kit-type--heading { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.kit-type--body { font-size: 1.05rem; }
.kit-type--data { font-family: var(--font-mono); font-size: .9rem; letter-spacing: .08em; }
.kit-type-specs__links { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: .5rem; border-top: 1px solid var(--border); font-size: .9rem; }

.kit-quote { margin: 0; color: var(--text-2); }
.kit-quote--big { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; color: var(--text); }
.kit-voice { margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 1.1rem; }
.kit-voice dt { font-weight: 600; margin-bottom: .2rem; }
.kit-voice dd { margin: 0; color: var(--text-2); }
.kit-name { margin: 0; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text-2); }

.kit-avatars { list-style: none; margin: 0; padding: 0; }
.kit-avatar { display: flex; flex-direction: column; gap: .3rem; }
.kit-avatar__img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: .5rem; }
.kit-avatar__img--paper { box-shadow: inset 0 0 0 1px var(--border); outline: 1px solid var(--border); outline-offset: -1px; }
.kit-avatar__img--clear { padding: 12%; background: var(--surface-2); }
.kit-avatar .kit-files { margin-top: .35rem; }

.kit-shot, .kit-frame { margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.kit-shot img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--border); }
.kit-shot--wide { grid-column: 1 / -1; }
.kit-banner figcaption { flex-direction: column; align-items: flex-start; gap: .55rem; }
.kit-banner .kit-files { flex-wrap: wrap; flex: initial; }
.kit-shot figcaption, .kit-frame figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); }
.kit-frame__window { border: 1px solid #27272C; border-radius: 14px; overflow: hidden; background: #0E0E11; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55); }
.kit-frame__bar { display: flex; align-items: center; gap: 6px; padding: .6rem .8rem; border-bottom: 1px solid #1B1B1F; }
.kit-frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #27272C; }
.kit-frame__bar i:nth-child(3) { background: #E4294F; }
.kit-frame__bar span { margin-left: .6rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .15rem .55rem; border-radius: 5px; background: #1B1B1F; color: #A7A7AE; font-family: var(--font-mono); font-size: .68rem; }
.kit-frame__window img { display: block; width: 100%; height: auto; }
.kit-frame--paper .kit-frame__ground { background: #F5F4F1; padding: 32px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border); }
.kit-frame--paper .kit-frame__window { box-shadow: 0 30px 60px -24px rgb(9 9 11 / .5); }

.kit-end__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; }
.kit-end h2 { margin: 0 0 .35rem; font-size: 1.6rem; letter-spacing: -.03em; }
.kit-end p { margin: 0; }
.kit-end__legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--border); }

@media (max-width: 1000px) {
    .kit-grid--3, .kit-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kit-grid--type { grid-template-columns: minmax(0, 1fr); }
    .kit-donts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .kit-section { padding: 2.75rem 0; }
    .kit-grid--2, .kit-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .kit-donts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kit-clear__box { padding: 28px; gap: 9px; }
    .kit-clear__box .kit-mark { width: 28px; height: 28px; }
    .kit-clear__box .kit-wordmark { font-size: 23px; }
    .kit-clear__x--top { top: 6px; } .kit-clear__x--left { left: 4px; }
    .kit-end__inner { grid-template-columns: minmax(0, 1fr); }
    .kit-frame--paper .kit-frame__ground { padding: 16px; }
    .kit-specimen__data .kit-accent { display: block; margin: 0; }
}

/* -- Homepage hero: live launch-week card (HomeShowcase) ------------------- */

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3.5rem; align-items: center; }
.hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.hero__copy { min-width: 0; }

.hero-visual { position: relative; min-width: 0; perspective: 1400px; }
.launch-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.15rem; box-shadow: var(--shadow-lg); transform: rotateY(-9deg) rotateX(3deg); transform-origin: left center; transition: transform .5s var(--ease); }
.hero-visual:hover .launch-card { transform: rotateY(-3deg) rotateX(1deg); }
.launch-card__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.launch-card__week { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); }
.launch-card__badge { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; padding: .25rem .55rem; border-radius: 999px; background: var(--heat); color: var(--heat-fg); }
.launch-card__count { margin: .55rem 0 .9rem; font-size: .95rem; color: var(--text-2); }
.launch-card__count strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; color: var(--text); margin-right: .2rem; font-variant-numeric: tabular-nums; }
.launch-card__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.launch-card__cell { position: relative; min-width: 0; }
.launch-card__cell a { display: block; position: relative; height: 100%; border-radius: 9px; overflow: hidden; }
.launch-card__cell img { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; background: var(--surface-2); transition: transform .3s var(--ease); }
.launch-card__cell a:hover img { transform: scale(1.04); }
.launch-card__followers { position: absolute; left: .4rem; bottom: .4rem; padding: .12rem .4rem; border-radius: 4px; background: rgb(9 9 11 / .78); color: #F5F4F1; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .04em; }
.launch-card__cell--you a { display: flex; align-items: center; justify-content: center; gap: .45rem; aspect-ratio: 460 / 215; border: 1.5px dashed var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); font-weight: 600; font-size: .85rem; text-decoration: none; transition: background .2s var(--ease); }
.launch-card__cell--you a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.launch-card__plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--surface); font-size: 1rem; line-height: 1; }
.launch-card__more { margin: .55rem 0 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.launch-card__strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; margin-top: 1rem; }
.launch-card__wk { position: relative; height: 26px; border-radius: 4px; background: var(--heat, var(--surface-2)); }
.launch-card__wk i { position: absolute; top: calc(100% + 4px); left: 0; font-style: normal; font-family: var(--font-mono); font-size: .56rem; color: var(--muted); white-space: nowrap; }
.launch-card__wk:nth-child(even) i { visibility: hidden; }
.launch-card__wk.is-featured { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }
.launch-card__wk.is-quiet { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--success); }
.launch-card__foot { display: flex; align-items: center; gap: .45rem; margin: 1.6rem 0 0; font-size: .82rem; color: var(--text-2); }
.launch-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }

.launch-toast { position: absolute; left: -2.75rem; top: 58%; display: flex; flex-direction: column; gap: .15rem; max-width: 280px; padding: .7rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); color: var(--text); text-decoration: none; animation: toast-in .6s .4s var(--ease) both; }
.launch-toast:hover { text-decoration: none; border-color: var(--accent); }
.launch-toast__label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.launch-toast__text { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .launch-card, .hero-visual:hover .launch-card { transform: none; }
    .launch-toast { animation: none; }
}

@media (max-width: 1000px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .hero-visual { max-width: 560px; }
    .launch-card, .hero-visual:hover .launch-card { transform: none; }
    .launch-toast { left: auto; right: -.75rem; top: auto; bottom: -1.5rem; }
    .launch-card { padding-bottom: 2.4rem; }
}
@media (max-width: 620px) {
    .launch-toast { position: static; margin-top: .75rem; max-width: none; }
    .launch-card { padding-bottom: 1.15rem; }
    .launch-card__wk i { display: none; }
    .launch-card__foot { margin-top: 1rem; }
}

/* -- Questions block (homepage + pricing) ------------------------------------ */

.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 3rem; align-items: start; }
.faq-layout__intro { position: sticky; top: 88px; display: flex; flex-direction: column; gap: .35rem; }
.faq-layout__intro .section__title { margin-bottom: .25rem; }
.faq-layout__intro > p { margin: 0 0 1rem; }
.faq-ask { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.faq-ask p { margin: 0 0 .4rem; }
@media (max-width: 900px) {
    .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .faq-layout__intro { display: contents; }
    .faq-layout__intro > :not(.faq-ask) { order: 0; }
    .faq-layout > .faq { order: 1; }
    .faq-ask { order: 2; }
    .faq-layout { gap: .35rem; }
    .faq-layout > .faq { margin: 1rem 0 .6rem; }
}

/* Guides */

.guide-list { margin-bottom: 2rem; }
.guide-card__more { margin-top: auto; padding-top: .35rem; color: var(--accent); font-weight: 600; }
.guide-head { margin-bottom: 1.5rem; }
.guide-head .page__title { margin-bottom: .35rem; }
.guide { max-width: none; }
.guide > h2:first-of-type { margin-top: 1.5rem; }
.guide-cta { margin: 2.5rem 0 2rem; }
.guide-related { margin-bottom: 1.5rem; }
.guide-related__title { font-size: 1.05rem; margin: 0 0 .5rem; }
.guide-related ul { margin: 0; padding-left: 1.25rem; }
.guide-related li + li { margin-top: .3rem; }

.guide-live { margin: 1.25rem 0 1.5rem; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.guide-live__label { margin: 0 0 .75rem; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.guide-live__foot { margin: .85rem 0 0; font-size: .82rem; color: var(--muted); }

.prose .guide-dates { list-style: none; margin: 0; padding: 0; }
.prose .guide-date + .guide-date { margin-top: 0; }
.guide-date { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .25rem 1rem; padding: .6rem 0; border-top: 1px solid var(--border); }
.guide-date:first-child { border-top: 0; padding-top: 0; }
.guide-date__when { font-family: var(--font-mono); font-size: .85rem; color: var(--text-2); white-space: nowrap; }
.guide-date__body { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.guide-date__name { font-weight: 600; }
.guide-date__note { flex-basis: 100%; font-size: .85rem; color: var(--muted); }

.prose .guide-tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.25rem; counter-reset: guide-tag; }
.prose .guide-tags li + li { margin-top: 0; }
.guide-tags__item { display: flex; align-items: baseline; gap: .5rem; counter-increment: guide-tag; }
.guide-tags__item::before { content: counter(guide-tag); min-width: 1.4rem; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.guide-tags__name { font-weight: 600; }
.guide-tags__count { margin-left: auto; font-family: var(--font-mono); font-size: .8rem; color: var(--text-2); white-space: nowrap; }

.prose .guide-checklist { list-style: none; padding-left: 0; }
.guide-checklist > li { position: relative; padding-left: 1.75rem; }
.guide-checklist > li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border: 1.5px solid var(--border-strong); border-radius: 4px; background: var(--surface); }

.prose .guide-tools { list-style: none; padding-left: 0; }
.guide-tools > li { padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prose .guide-tools > li + li { margin-top: .5rem; }

@media (max-width: 620px) {
    .guide-date { grid-template-columns: minmax(0, 1fr); }
    .prose .guide-tags { grid-template-columns: minmax(0, 1fr); }
}

/* Header dropdowns (Free tools, Resources). */
.nav__menu > summary { display: flex; align-items: center; gap: .25rem; }
.nav__menu > summary svg { opacity: .6; }
.nav__menu .menu__panel { left: 0; right: auto; }

/* Game pages: our own summary, Steam's description as a quote. */
.game-summary { margin: 0; font-size: 1.02rem; line-height: 1.65; }
figure.game-blurb { margin: 0; color: var(--text-2); }
.game-blurb blockquote { margin: 0 0 .35rem; padding: .15rem 0 .15rem 1rem; border-left: 3px solid var(--primary); font-style: italic; }

/* Public data pages (views/seo): events, tags, release calendars. */
.event-list { list-style: none; margin: 0; padding: .25rem 1.25rem 1rem; display: flex; flex-direction: column; }
.event-list__item { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: .75rem; padding: .7rem 0; align-items: baseline; }
.event-list__dates { white-space: nowrap; }
.event-list__item + .event-list__item { border-top: 1px solid var(--border); }
.event-list__dates { color: var(--muted); }
.event-list__what { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; min-width: 0; }
.event-list__note { flex-basis: 100%; }
.seo-callout { margin-bottom: 1.25rem; }
.date-moves .game__meta { white-space: normal; overflow: visible; text-overflow: clip; }
.seo-facts { margin-bottom: 1.25rem; }
.seo-facts .stats--3, .stats.seo-facts.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat__value--sm { font-size: 1.3rem; }
.section .container > .card + .card, .section .container > .card + section, .section .container > section + .card { margin-top: 1.25rem; }
.seo-related { margin-top: 2.5rem; }
.seo-related h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.seo-related__card { display: block; color: var(--text); text-decoration: none; transition: border-color .15s var(--ease); }
.seo-related__card .card__body { display: flex; flex-direction: column; gap: .3rem; }
.section .container > .tool-prose + p, .section .container > .card + p.muted { margin-top: 1rem; }
.seo-related__card:hover { border-color: var(--border-strong); text-decoration: none; }
.seo-pager { margin: 1.5rem 0 1rem; }
.seo-months .tag-gaps { padding: .25rem 1.25rem 1rem; }
@media (max-width: 620px) {
    .event-list__item { grid-template-columns: 1fr; gap: .2rem; }
    .stats.seo-facts.stats--3 { grid-template-columns: 1fr; }
}

/* -- Tag Combo Checker ------------------------------------------------------ */
.tag-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.tag-verdict { border-left: 4px solid var(--border-strong); }
.tag-verdict--packed { border-left-color: var(--heat-10); }
.tag-verdict--busy { border-left-color: var(--heat-7); }
.tag-verdict--room { border-left-color: var(--heat-1); }
.tag-verdict--fresh { border-left-color: var(--primary); }
.tag-verdict__text { margin: .35rem 0 0; font-size: 1.05rem; }
@media (max-width: 900px) { .tag-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tag-picks { grid-template-columns: 1fr; } }

/* -- Capsule Preview: mock store layouts on a dark storefront ground --------- */
.capsule-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.capsule-stage { margin-top: 1.5rem; }
.steam-frame { background: #1b2433; color: #c7d5e0; border-radius: var(--radius, 12px); padding: 1rem; overflow: hidden; }
.steam-search { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 720px; }
.steam-search__row { display: flex; align-items: center; gap: .75rem; padding: 4px; background: rgb(255 255 255 / .04); border-radius: 2px; }
.steam-search__img { width: 120px; height: 45px; object-fit: cover; flex: none; }
.steam-search__name { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steam-search__row.is-you, .steam-tile.is-you img, .steam-library__item.is-you { outline: 2px solid #FF5D7C; outline-offset: 2px; }
.steam-frame--feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.steam-main { width: 100%; aspect-ratio: 1232 / 706; object-fit: cover; display: block; }
.steam-feature__side { display: grid; gap: .5rem; }
.steam-feature__thumb { width: 100%; aspect-ratio: 920 / 430; object-fit: cover; display: block; opacity: .9; }
.steam-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.steam-tile, .capsule-mine img { width: 100%; aspect-ratio: 920 / 430; object-fit: cover; display: block; }
.steam-library { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; max-width: 760px; }
.steam-library__item { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 3px; }
.steam-library__blank { background: linear-gradient(160deg, #2a3546, #1f2836); }
.capsule-squint { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.capsule-squint figure { margin: 0; padding: .75rem; background: #1b2433; border-radius: 8px; color: #c7d5e0; }
.capsule-squint figure.squint-light { background: #F5F4F1; color: #3a3a40; }
.capsule-squint figcaption { font-size: .78rem; margin-top: .4rem; }
.squint--tiny { width: 120px; height: 45px; object-fit: cover; display: block; }
.squint--blur { filter: blur(1.5px); }
.squint--gray { filter: grayscale(1); }
@media (max-width: 900px) {
    .capsule-inputs { grid-template-columns: 1fr; }
    .steam-frame--feature { grid-template-columns: 1fr; }
    .steam-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steam-library { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* -- Discount Planner --------------------------------------------------------- */
.planner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.planner-events { border: 0; padding: 0; margin: .5rem 0 0; }
.planner-events__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; margin: .4rem 0; }
.planner-event { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 40px; }
.planner-event__label { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; cursor: pointer; }
.planner-event--seasonal .planner-event__label > span:first-of-type { font-weight: 600; }
.field__input--sm { height: 34px; width: auto; min-width: 7rem; padding: 0 .5rem; font-size: .85rem; flex: none; }
.planner-customs { display: flex; flex-direction: column; gap: .5rem; }
.planner-custom { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.planner-timeline { position: relative; height: 64px; margin: 1rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.planner-tick { position: absolute; bottom: -1.4rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); transform: translateX(-50%); }
.planner-release { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); }
.planner-wait { position: absolute; top: 20px; height: 24px; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--muted) 25%, transparent) 6px 12px); }
.planner-bar { position: absolute; top: 20px; height: 24px; border-radius: 4px; background: var(--heat-1); }
.planner-bar--launch { background: var(--primary); }
.planner-bar--seasonal { background: var(--heat-7); }
.planner-bar--fest { background: var(--heat-4); }
.planner-bar.is-bad { outline: 2px solid var(--danger); outline-offset: 1px; }
.planner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.planner-item { padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.planner-item.is-bad { border-color: var(--danger); }
.planner-item p { margin: .3rem 0 0; }
.planner-item__problem { color: var(--danger); font-size: .9rem; }
.planner-item__ok { color: var(--success); }
.planner-summary { padding: .75rem 1rem; border-radius: 10px; font-weight: 600; }
.planner-summary.is-ok { background: var(--success-soft); color: var(--success); }
.planner-summary.is-bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
@media (max-width: 900px) {
    .planner-grid, .planner-events__list { grid-template-columns: 1fr; }
    .planner-custom { grid-template-columns: 1fr 1fr; }
}

/* Key Request Checker (tools/key-request-checker.php) */
.key-check__head { display: flex; gap: 1.1rem; align-items: center; }
.key-check__avatar { width: 96px; height: 96px; border-radius: var(--radius); border: 1px solid var(--border); flex: none; }
.key-check__who { min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.key-check__who .page__title { margin: 0; overflow-wrap: anywhere; }
.key-verdict { border-width: 1px; border-left-width: 4px; }
.key-verdict--good { border-color: var(--success); background: var(--success-soft); }
.key-verdict--warn { border-color: var(--warning); background: var(--warning-soft); }
.key-verdict--bad { border-color: var(--danger); background: var(--danger-soft); }
.key-verdict__title { margin: 0 0 .3rem; font-size: 1.35rem; }
.key-verdict__text { margin: 0; max-width: 680px; color: var(--text-2); }
.key-check__cols { align-items: start; }
.key-signals { list-style: none; margin: 0; padding: 0; }
.key-signal { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 1.1rem; border-top: 1px solid var(--border); }
.key-signal:first-child { border-top: 0; }
.key-signal__dot { width: 10px; height: 10px; margin-top: .4rem; border-radius: 50%; flex: none; background: var(--muted); }
.key-signal--good .key-signal__dot { background: var(--success); }
.key-signal--warn .key-signal__dot { background: var(--warning); }
.key-signal--bad .key-signal__dot { background: var(--danger); }
.key-signal__body { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; font-size: .92rem; }
.key-signal .badge { margin-top: .15rem; }
.key-tips { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; font-size: .92rem; }
@media (max-width: 620px) {
    .key-check__avatar { width: 64px; height: 64px; }
    .key-signal { padding: .75rem .9rem; flex-wrap: wrap; }
    .key-signal .badge { margin-left: calc(10px + .75rem); }
}

/* Game page: Steam store widget + the SteamDB-style data block (games/_steamdata.php).
   Without JS every .sd-panel shows in turn; app.js [data-tabs] adds .is-tabbed and hides the others. */
.steam-widget { display: block; width: 100%; max-width: 646px; height: 190px; border: 0; border-radius: var(--radius); background: #1b2838; }
.steamdata { margin-top: 2.75rem; }
.steamdata__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.steamdata__title { margin: 0; font-size: 1.45rem; letter-spacing: -.01em; }
.steamdata__sub { margin: .2rem 0 0; }
.steamdata__head .btn svg { margin-right: .3rem; }

/* Tab bar: one scrolling row, icon + label + count, ruby underline on the open tab. */
.sd-tabs { position: relative; display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.sd-tabs::-webkit-scrollbar { display: none; }
.sd-tab { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .85rem .75rem; color: var(--text-2); font-size: .9rem; font-weight: 550; text-decoration: none; white-space: nowrap; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.sd-tab svg { color: var(--muted); flex: none; }
.sd-tab:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.sd-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sd-tab.is-active { color: var(--text); }
.sd-tab.is-active svg { color: var(--accent); }
.sd-tab.is-active::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.sd-tab__count { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; padding: .08rem .42rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.sd-tab.is-active .sd-tab__count { background: var(--primary-soft); color: var(--accent); }

/* Panels */
.sd-panels { display: grid; gap: 2rem; }
.steamdata.is-tabbed .sd-panels { display: block; }
.sd-panel { display: grid; gap: 1.1rem; align-content: start; scroll-margin-top: 5rem; }
.sd-panel[hidden] { display: none; }
.sd-panel:focus-visible { outline: none; }
.sd-panel__title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.1rem; }
.sd-panel__title svg { color: var(--accent); }
.steamdata--single .sd-panel__title, .steamdata.is-tabbed .sd-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sd-collecting { margin-bottom: 1.25rem; }
.sd-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.1rem; align-items: start; }
.sd-stack { display: grid; gap: 1.1rem; min-width: 0; }
.sd-split > *, .sd-stack > * { min-width: 0; }
.sd-stats .stat { min-width: 0; }
.sd-stats .stat__value { overflow-wrap: anywhere; }
.stat__of { font-size: .9rem; font-weight: 500; color: var(--muted); }
.sd-stats--inset { padding: 1rem 1.25rem 0; }
.sd-stats--inset .stat { background: var(--surface-2); border-color: transparent; }
.steamdata .datalist.card__body { padding-top: .75rem; padding-bottom: .75rem; }
.steamdata .card__title svg { vertical-align: -3px; margin-right: .3rem; color: var(--muted); }
.sd-links { display: flex; flex-wrap: wrap; gap: .25rem .7rem; }
.sd-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.sd-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-bottom: 0; }
.sd-platform { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; font-weight: 550; }
.sd-platform svg { color: var(--muted); }
.sd-score { display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.7rem; padding: 0 .4rem; border-radius: 6px; background: var(--success); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.sd-related { list-style: none; margin: 0; padding: .25rem 1.25rem 1rem; display: grid; gap: .45rem; font-size: .9rem; }
.sd-related li { display: flex; gap: .6rem; align-items: baseline; }
.sd-related__kind { min-width: 4.5rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sd-yes svg { color: var(--up); }
.sd-contact { display: inline-flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
.sd-contact svg { flex: none; color: var(--muted); }
.sd-contact--locked { color: var(--text-2); }
.sd-profile { display: flex; align-items: flex-start; gap: .4rem; }
.sd-profile svg { flex: none; margin-top: .2rem; }
.sd-profile--yes svg { color: var(--up); }
.sd-profile--no svg { color: var(--warning); }
.badge--icon { display: inline-flex; align-items: center; gap: .3rem; }
.badge--icon svg { stroke-width: 2.4; }
.sd-more { border-top: 1px solid var(--border); }
.sd-more > summary { padding: .7rem 1.25rem; cursor: pointer; font-size: .9rem; font-weight: 550; }
.sd-note { margin: .6rem 0 0; }
.sd-wrap { overflow-wrap: anywhere; word-break: break-word; max-width: 420px; }
.sd-args { max-width: 520px; }
.sd-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart--sm { height: 240px; }

/* Prices: flag + currency badges, region cards grouped by area */
.sd-flag { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--border); background: var(--surface-2); }
.sd-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sd-flag--multi { color: var(--muted); }
.sd-cur { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .45rem; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .03em; white-space: nowrap; }
.sd-cur__sym { color: var(--text); font-family: var(--font-sans, inherit); font-size: .8rem; font-weight: 650; letter-spacing: 0; }
.sd-chart-head { flex-wrap: wrap; gap: .75rem; }
.sd-region-name { display: flex; align-items: center; gap: .55rem; }
.sd-region { display: flex; align-items: center; gap: .5rem; margin: 0; }
.sd-region-group { display: grid; gap: .6rem; }
.sd-region-group__title { margin: .4rem 0 0; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.sd-region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .6rem; }
.sd-region-card { display: grid; gap: .35rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sd-region-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06)); }
.sd-region-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sd-region-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.sd-region-card__head { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.sd-region-card__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 550; }
.sd-region-card__price { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sd-region-card.is-sale .sd-region-card__price { color: var(--up); }
.sd-region-card__low { display: flex; align-items: center; gap: .3rem; min-width: 0; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-region-card__low svg { flex: none; }

/* Timelines: patches, update history, news */
.sd-timeline { list-style: none; margin: 0; padding: .6rem 1.25rem 1rem; }
.sd-timeline__item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .8rem; padding: .55rem 0; }
.sd-timeline__item::before { content: ""; position: absolute; left: 13.5px; top: 2.3rem; bottom: -.55rem; width: 1px; background: var(--border); }
.sd-timeline__item:last-child::before { display: none; }
.sd-timeline__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--accent); box-shadow: 0 0 0 4px var(--surface); }
.sd-timeline__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding-top: .2rem; }
.sd-timeline__title { font-weight: 600; color: var(--text); }
a.sd-timeline__title:hover { color: var(--accent); }
.sd-timeline__body p { margin: .2rem 0 0; }
.sd-changes { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .25rem; }
.sd-changes li { display: flex; flex-wrap: wrap; gap: .2rem .6rem; overflow-wrap: anywhere; }
.sd-changes__path { padding: .05rem .35rem; border-radius: 4px; background: var(--surface-2); }
.sd-changes del { color: var(--muted); }
.sd-branch { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .45rem; border-radius: 999px; background: var(--surface-2); font-size: .8rem; }
.sd-branch svg { color: var(--muted); }
.sd-branch--public { background: var(--primary-soft); }
.sd-branch--public svg { color: var(--accent); }

/* Configuration */
.sd-path { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sd-path svg { color: var(--muted); }
.sd-path code { font-family: var(--font-mono); font-size: .85rem; overflow-wrap: anywhere; }

/* Achievements */
.sd-ach { list-style: none; margin: 0; padding: .6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .3rem .8rem; }
.sd-ach__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: .75rem; padding: .55rem .6rem; border-radius: var(--radius-sm); }
.sd-ach__item:hover { background: var(--surface-2); }
.sd-ach__item img, .sd-ach__blank { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2); }
.sd-ach__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; font-size: .88rem; }
.sd-ach__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-ach__text .muted { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sd-ach__bar { display: grid; grid-template-columns: minmax(0, 1fr) 3.2rem; align-items: center; gap: .5rem; margin-top: .25rem; }
.sd-ach__bar .bar { min-width: 0; height: 5px; }
.sd-ach__bar .mono { text-align: right; color: var(--text-2); }

/* Screenshots */
.sd-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.sd-shots a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.sd-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: transform .2s; }
.sd-shots a:hover img { transform: scale(1.02); }

@media (max-width: 900px) {
    .sd-split { grid-template-columns: minmax(0, 1fr); }
    .steam-widget { height: 200px; }
}
@media (max-width: 620px) {
    .steamdata__head { align-items: flex-start; flex-direction: column; gap: .5rem; }
    .sd-tabs { margin-left: -1rem; margin-right: -1rem; padding: 0 .5rem; }
    .sd-tab { padding: .65rem .7rem; font-size: .86rem; }
    .sd-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-region-card { padding: .7rem; }
    .sd-region-card__price { font-size: 1.05rem; flex-wrap: wrap; gap: .3rem; }
    .sd-cur { display: none; }
    .sd-region-name .sd-cur { display: inline-flex; }
    .sd-ach { grid-template-columns: minmax(0, 1fr); }
    .sd-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}

/* Steam regional pricing table (seo/regional-prices.php) */
.world-prices tbody th { background: transparent; color: var(--text); font-family: inherit; font-size: .9rem; font-weight: 550; letter-spacing: normal; text-transform: none; }
.world-prices__region { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.world-prices td { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Shop checkout (checkout/show.php) */
.shop-checkout__head .page__title { overflow-wrap: anywhere; }
.shop-checkout__price { font-size: 2.1rem; font-weight: 650; letter-spacing: -.03em; margin: .5rem 0 0; font-variant-numeric: tabular-nums; }
.shop-checkout__choices { display: grid; gap: .5rem; }
.shop-checkout__ask { margin: 0 0 .15rem; font-weight: 600; }
.shop-checkout__method {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label go" "hint go"; align-items: center; column-gap: .75rem; row-gap: .1rem;
    width: 100%; min-height: 56px; padding: .65rem .9rem; text-align: left; cursor: pointer; font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    transition: border-color .15s var(--ease), background .15s var(--ease);
}
.shop-checkout__method:hover { border-color: var(--primary); background: var(--surface-2); }
.shop-checkout__method:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.shop-checkout__label { grid-area: label; font-weight: 600; }
.shop-checkout__hint { grid-area: hint; font-size: .8rem; color: var(--muted); }
.shop-checkout__go { grid-area: go; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .6; }
.notice--success { border-left-color: var(--success); background: var(--success-soft); }
.notice--danger { border-left-color: var(--danger); background: var(--danger-soft); }

/* Free Steam data page (pages/steam-data.php) */
.steam-data__inside .card__title { margin: 0; }
.steam-data__icon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steam data API docs (pages/steam-data-docs.php) */
.api-docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.api-docs__nav { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.api-toc { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.api-toc a { color: var(--text); padding: .2rem .5rem; border-radius: var(--radius-sm); text-decoration: none; }
.api-toc a:hover { background: var(--surface-2); }
.api-toc__heading { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .9rem 0 .2rem .5rem; }
.api-toc__heading:first-child { margin-top: 0; }
.api-docs__main { max-width: none; min-width: 0; }
.api-docs__main h2 { scroll-margin-top: 5rem; }
.api-key-box { margin: 1.25rem 0 .75rem; }
.api-lang { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 1rem; }
.api-lang__btn.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.api-code { position: relative; }
.api-code__copy { position: absolute; top: .4rem; right: .4rem; z-index: 1; }
.api-code .code-block { padding-right: 4.5rem; margin: 0 0 .75rem; }
.api-endpoint { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2rem; scroll-margin-top: 5rem; }
.api-endpoint__route { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.api-endpoint__route code { overflow-wrap: anywhere; }
.api-try { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem; margin: .5rem 0 1rem; background: var(--surface); }
.api-try__fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: .75rem; }
.api-try__field { display: flex; flex-direction: column; gap: .25rem; }
.api-try__result { margin-top: .75rem; }
.api-try__status { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.api-try__body { max-height: 420px; overflow: auto; margin: 0; }
.api-sample summary { cursor: pointer; font-weight: 600; margin-bottom: .5rem; }
.api-sample .code-block { max-height: 520px; overflow: auto; }
@media (max-width: 900px) {
    .api-docs { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .api-docs__nav { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem; }
    .api-toc { flex-direction: row; flex-wrap: wrap; gap: .25rem .5rem; }
    .api-toc__heading { width: 100%; margin: .5rem 0 0; }
}

/* -- Help centre (/help) ----------------------------------------------------- */

.kb-hero { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--border);
    background: radial-gradient(60% 90% at 85% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 65%),
                radial-gradient(50% 80% at 5% 100%, color-mix(in srgb, #2F6F7A 18%, transparent), transparent 70%), var(--bg-subtle); }
.kb-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 120px; height: 380px; transform: skewX(-22deg); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 6px; pointer-events: none; }
.kb-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0; }
.kb-hero__title em { font-style: italic; color: var(--accent); }
.kb-hero__lead { font-size: 1.1rem; color: var(--text-2); margin: 0; }
.kb-hero__hint a { font-weight: 600; }

.kb-search { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .35rem .35rem .35rem .9rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.kb-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.kb-search > svg { flex: none; color: var(--muted); }
.kb-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--text); padding: .55rem 0; outline: none; }
.kb-search .btn { flex: none; }
.kb-search--lg { max-width: 640px; margin: .5rem auto 0; padding: .45rem .45rem .45rem 1.1rem; border-radius: 16px; }
.kb-search--lg input { font-size: 1.08rem; padding: .7rem 0; }

.kb-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.kb-topic { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.15rem 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.kb-topic:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kb-topic__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .35rem; border-radius: 12px; background: var(--primary-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); transition: background .2s, color .2s, transform .2s var(--ease); }
.kb-topic:hover .kb-topic__icon { background: var(--primary); color: #fff; transform: rotate(-5deg); }
.kb-topic__name { font-size: 1.02rem; letter-spacing: -.01em; }
.kb-topic__line { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.kb-topic__count { margin-top: auto; padding-top: .45rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.kb-list { display: flex; flex-direction: column; gap: .55rem; }
.kb-card { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, background .15s; }
.kb-card:hover { text-decoration: none; border-color: var(--primary); }
.kb-card__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); transition: background .15s, color .15s; }
.kb-card:hover .kb-card__icon { background: var(--primary-soft); color: var(--accent); }
.kb-card__text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.kb-card__text strong { font-size: .97rem; letter-spacing: -.01em; }
.kb-card__text small { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.kb-card__go { flex: none; color: var(--muted); transition: transform .15s var(--ease), color .15s; }
.kb-card:hover .kb-card__go { transform: translateX(3px); color: var(--accent); }

.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; margin-top: 1rem; }
.kb-side { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1rem; }
.kb-side .kb-search { box-shadow: none; }
.kb-side .kb-search .btn { display: none; }
.kb-side__card { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; padding: 1.1rem; border-radius: 14px; background: var(--bg-subtle); border: 1px solid var(--border); }
.kb-nav { display: flex; flex-direction: column; gap: .1rem; }
.kb-nav__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 .6rem .4rem; }
.kb-nav__item { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 9px; color: var(--text-2); font-size: .9rem; }
.kb-nav__item svg { flex: none; color: var(--muted); }
.kb-nav__item:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.kb-nav__item.is-active { background: var(--primary-soft); color: var(--accent); font-weight: 600; }
.kb-nav__item.is-active svg { color: var(--accent); }
.kb-nav__item--q { font-size: .86rem; line-height: 1.35; }
.kb-nav__more { font-size: .86rem; font-weight: 600; color: var(--accent); }

.kb-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.kb-head__icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px var(--primary); }
.kb-head .page__title { margin: 0; }

.kb-article__head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.kb-article__title { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.08; letter-spacing: -.035em; }
.kb-article__summary { margin: 0; padding: .9rem 1.1rem; border-radius: 12px; background: var(--primary-soft); color: var(--text); border-left: 3px solid var(--primary); font-size: 1.04rem; }
.kb-article__body { font-size: 1.02rem; }
.kb-article__body ol, .kb-article__body ul { padding-left: 1.3rem; }
.kb-article__body li + li { margin-top: .35rem; }

.kb-vote { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 2rem 0; padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); scroll-margin-top: 6rem; }
.kb-vote form { display: flex; gap: .5rem; }
.kb-vote__q { font-weight: 600; }
.kb-vote__thanks { margin: 0; flex: 1; }
.kb-related h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.kb-none { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; padding: 1.4rem; border-radius: 16px; border: 1px dashed var(--border-strong); background: var(--bg-subtle); }
.kb-none p { margin: 0; }

.kb-contact { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.75rem 2rem; border-radius: 18px; color: #F5F4F1;
    background: radial-gradient(110% 120% at 100% 0%, rgb(228 41 79 / .5), transparent 60%), radial-gradient(80% 90% at 0% 100%, rgb(47 111 122 / .45), transparent 65%), #0E0E11; }
.kb-contact h2 { margin: 0 0 .35rem; font-size: 1.4rem; letter-spacing: -.02em; }
.kb-contact p { margin: 0; color: #C9C9CF; max-width: 46ch; }

/* -- "These might answer it" box in the ticket and contact forms ------------- */

.kb-suggest { border-radius: 16px; padding: 1rem; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); background: linear-gradient(180deg, var(--primary-soft), transparent 140%); animation: kb-in .25s var(--ease); }
.kb-suggest.is-empty { border-style: dashed; border-color: var(--border); background: var(--bg-subtle); }
@keyframes kb-in { from { opacity: .4; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.kb-suggest__head { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .75rem; }
.kb-suggest__head strong { display: block; }
.kb-suggest__head small { color: var(--muted); }
.kb-suggest__spark { flex: none; width: 10px; height: 10px; margin-top: .4rem; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.kb-suggest__list { display: flex; flex-direction: column; gap: .45rem; }
.kb-suggest .kb-card { padding: .7rem .85rem; }
.kb-suggest__solved { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; font-weight: 600; font-size: .9rem; color: var(--success); }
.kb-suggest__empty { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .9rem; }

/* -- Support: new request, threads, your requests ------------------------------ */

.support-new__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.support-new__head { margin-bottom: 1.25rem; }
.support-form { display: flex; flex-direction: column; gap: 1.15rem; }
.support-topics { border: 0; margin: 0; padding: 0; }
.support-topics__list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.support-topic { position: relative; cursor: pointer; }
.support-topic input { position: absolute; opacity: 0; pointer-events: none; }
.support-topic span { display: inline-flex; align-items: center; min-height: 38px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .9rem; color: var(--text-2); transition: border-color .15s, background .15s, color .15s; }
.support-topic:hover span { border-color: var(--border-strong); color: var(--text); }
.support-topic input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.support-topic input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring); }
.support-new__aside { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: .9rem; }
.support-promise { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.support-promise p { margin: 0; color: var(--muted); font-size: .9rem; }
.support-promise__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--accent); margin-bottom: .3rem; }
.support-mine { font-weight: 600; }
.support-sent__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--success-soft); color: var(--success); }

.support-list { display: flex; flex-direction: column; gap: .5rem; }
.support-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.05rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.support-row:hover { text-decoration: none; border-color: var(--primary); }
.support-row__main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }

.support-thread__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.support-thread__head .page__title { margin: .2rem 0 0; }
.support-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.support-msg { padding: 1rem 1.15rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.support-msg--staff { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 70%); }
.support-msg--note { border-style: dashed; background: var(--warning-soft); }
.support-msg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.support-msg__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .8rem; color: var(--text-2); }
.support-msg--staff .support-msg__avatar { background: var(--primary); color: #fff; }
.support-msg__body { line-height: 1.6; overflow-wrap: anywhere; }

/* admin: one ticket */
.admin-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.admin-dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; }
.admin-orders-mini { padding-left: 1rem; margin: 0; }
.admin-support__search { max-width: 280px; }

@media (max-width: 900px) {
    .kb-layout, .support-new__grid, .admin-ticket { grid-template-columns: minmax(0, 1fr); }
    .kb-side, .support-new__aside { position: static; }
    .kb-contact { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
    .kb-hero { padding: 3rem 0 2.5rem; }
}
@media (max-width: 520px) {
    .kb-search--lg .btn { display: none; }
    .support-row { flex-direction: column; align-items: flex-start; }
}

/* -- Free to keep on Steam (/steam/free-games) -------------------------------- */

.freebie-hero { position: relative; overflow: hidden; padding: 1.5rem 0 3rem; border-bottom: 1px solid var(--border);
    background: radial-gradient(55% 90% at 90% 10%, rgb(52 195 138 / .22), transparent 65%), radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%), var(--bg-subtle); }
.freebie-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; margin-top: 2rem; }
.freebie-hero__title { margin: 0; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.freebie-hero__title em { font-style: italic; color: var(--accent); }
.freebie-hero__lead { margin: 0; max-width: 56ch; font-size: 1.1rem; color: var(--text-2); }
.freebie-live { display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start; padding: .4rem .85rem; border-radius: 999px; background: rgb(52 195 138 / .14); border: 1px solid rgb(52 195 138 / .4); color: var(--success); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.freebie-live i { width: 8px; height: 8px; border-radius: 50%; background: #34c38a; box-shadow: 0 0 0 0 rgb(52 195 138 / .6); animation: freebie-pulse 1.8s infinite; }
@keyframes freebie-pulse { 0% { box-shadow: 0 0 0 0 rgb(52 195 138 / .55); } 80%, 100% { box-shadow: 0 0 0 9px rgb(52 195 138 / 0); } }
.freebie-worth { display: flex; flex-direction: column; align-items: flex-end; padding: 1.1rem 1.4rem; border-radius: 18px; color: #F5F4F1; text-align: right;
    background: radial-gradient(120% 120% at 100% 0%, rgb(52 195 138 / .45), transparent 60%), #0E0E11; border: 1px solid rgb(255 255 255 / .08); }
.freebie-worth__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #A7A7AE; }
.freebie-worth__value { font-size: 2.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; text-decoration: line-through; text-decoration-color: #FF5D7C; text-decoration-thickness: 3px; }
.freebie-worth__note { color: #7fe3b0; font-weight: 600; }

.freebie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.freebie { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.freebie:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgb(52 195 138 / .55); }
.freebie__art { position: relative; display: block; aspect-ratio: 460 / 215; background: linear-gradient(135deg, #1b1b1f, #27272c); }
.freebie__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.freebie__badge { position: absolute; top: .7rem; left: .7rem; padding: .3rem .65rem; border-radius: 8px; background: #34c38a; color: #06281a; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgb(52 195 138 / .9); }
.freebie__kind { position: absolute; bottom: .6rem; left: .6rem; max-width: calc(100% - 1.2rem); padding: .25rem .6rem; border-radius: 999px; background: rgb(9 9 11 / .78); color: #F5F4F1; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.freebie__body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.freebie__name { margin: 0; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.015em; }
.freebie__dev { margin: -.25rem 0 0; }
.freebie__price { display: flex; align-items: baseline; gap: .55rem; }
.freebie__price s { color: var(--muted); }
.freebie__price strong { font-size: 1.35rem; color: var(--success); letter-spacing: -.02em; }
.freebie__off { padding: .1rem .45rem; border-radius: 6px; background: var(--success-soft); color: var(--success); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; }
.freebie__timer { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; padding: .5rem .7rem; border-radius: 10px; background: var(--warning-soft); color: var(--text); font-size: .88rem; font-weight: 600; flex-wrap: wrap; }
.freebie__timer svg { color: var(--warning); flex: none; }
.freebie__timer .muted { font-weight: 400; }
.freebie__body .btn { margin-top: auto; }

.freebie-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 3rem 1.5rem; border-radius: 18px; border: 1px dashed var(--border-strong); background: var(--bg-subtle); }
.freebie-empty h2 { margin: .5rem 0 0; }
.freebie-empty p { max-width: 46ch; margin: 0; }
.freebie-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--success-soft); color: var(--success); }

.freebie-past { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .6rem; margin-top: 1rem; }
.freebie-past__item { display: flex; align-items: center; gap: .8rem; padding: .55rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.freebie-past__item:hover { text-decoration: none; border-color: var(--border-strong); }
.freebie-past__item img { flex: none; width: 96px; height: 45px; object-fit: cover; border-radius: 6px; filter: grayscale(.6); }
.freebie-past__item span { display: flex; flex-direction: column; min-width: 0; }
.freebie-past__item strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.freebie-note { margin-top: 2rem; }
.weekend-section { border-top: 1px solid var(--border); }
.weekend-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.weekend-head .section__lead { margin-bottom: 0; }
.weekend-chip { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .7rem; padding: .35rem .8rem; border-radius: 999px; background: rgb(91 141 239 / .14); border: 1px solid rgb(91 141 239 / .4); color: #3b6fd8; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.weekend-chip svg { fill: none; stroke: currentColor; stroke-width: 2; }
.weekend-count { padding: .6rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.weekend-count strong { font-size: 1.4rem; color: var(--text); letter-spacing: -.03em; margin-right: .2rem; }
.freebie--weekend:hover { border-color: rgb(91 141 239 / .6); }
.freebie--weekend .freebie__badge { background: #5b8def; color: #fff; box-shadow: 0 6px 16px -6px rgb(91 141 239 / .9); }
.weekend-price { color: var(--text) !important; }
.weekend-off { background: rgb(91 141 239 / .14); color: #3b6fd8; }
.weekend-timer { background: rgb(91 141 239 / .12); }
.weekend-timer svg { color: #5b8def; }
.weekend-empty { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 16px; border: 1px dashed var(--border-strong); background: var(--bg-subtle); }
.weekend-empty p { margin: 0; }
.weekend-empty__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgb(91 141 239 / .14); color: #3b6fd8; }
.weekend-empty__icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.weekend-soon__title { margin: 2rem 0 0; font-size: 1.05rem; }
.weekend-soon img { filter: none; }
:root[data-mode="dark"] .weekend-chip, :root[data-mode="dark"] .weekend-off, :root[data-mode="dark"] .weekend-empty__icon { color: #8fb1f5; }
@media (prefers-color-scheme: dark) { :root[data-mode="auto"] .weekend-chip, :root[data-mode="auto"] .weekend-off, :root[data-mode="auto"] .weekend-empty__icon { color: #8fb1f5; } }
@media (max-width: 700px) { .freebie-hero__grid { grid-template-columns: 1fr; } .freebie-worth { align-items: flex-start; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .freebie-live i { animation: none; } }

/* -- Free tools: colourful hero, example art, numbered cards ----------------- */

.tool-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem; align-items: center; margin-bottom: .5rem; padding: 2.25rem; border-radius: 24px; border: 1px solid var(--border);
    background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 65%), radial-gradient(55% 85% at 0% 100%, rgb(47 111 122 / .2), transparent 70%), var(--bg-subtle); }
.tool-hero::after { content: ""; position: absolute; right: 38%; bottom: -120px; width: 90px; height: 320px; transform: skewX(-22deg); border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent); border-radius: 6px; pointer-events: none; }
.tool-hero--solo { grid-template-columns: minmax(0, 1fr); }
/* The hero clips its slanted decoration; while the game list is open it must hang below the hero instead. */
.tool-hero:has([data-game-search] [aria-expanded="true"]) { overflow: visible; z-index: 5; }
.tool-hero:has([data-game-search] [aria-expanded="true"])::after { opacity: 0; }
.tool-hero--solo::after { right: 4%; }
.tool-hero__main { position: relative; z-index: 1; min-width: 0; }
.tool-hero .tool-intro { margin-bottom: 1.25rem; }
.tool-hero .page__title { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.04; letter-spacing: -.04em; }
.tool-hero .tool-card { max-width: none; box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.tool-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; padding: 0; }
.tool-chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; color: var(--text-2); }
.tool-chips svg { color: var(--success); stroke-width: 2.6; }

.tool-art { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .85rem; padding: 1.35rem; border-radius: 20px; color: #F5F4F1; transform: rotate(-1.2deg);
    background: radial-gradient(90% 80% at 100% 0%, rgb(228 41 79 / .38), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgb(47 111 122 / .4), transparent 65%), #0E0E11;
    border: 1px solid rgb(255 255 255 / .09); box-shadow: 0 30px 70px -30px rgb(9 9 11 / .65), inset 0 1px 0 rgb(255 255 255 / .06); transition: transform .4s var(--ease); }
.tool-hero:hover .tool-art { transform: rotate(0deg) translateY(-2px); }
.tool-art__label { position: absolute; top: .9rem; right: .9rem; padding: .15rem .45rem; border-radius: 6px; border: 1px solid rgb(255 255 255 / .16); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: #A7A7AE; }
.ta-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding-right: 4.5rem; }
.ta-head b { font-size: .95rem; letter-spacing: -.01em; }
.ta-head span { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: #A7A7AE; }
.ta-head--sub { padding-right: 0; margin-top: .15rem; }
.ta-note { padding: .5rem .75rem; border-radius: 10px; font-size: .84rem; font-weight: 600; }
.ta-note--teal { background: rgb(79 179 191 / .14); color: #9fe6ee; border: 1px solid rgb(79 179 191 / .35); }
.ta-note--orange { background: rgb(216 120 61 / .16); color: #ffbe8f; border: 1px solid rgb(216 120 61 / .4); }

.ta-bars { display: flex; align-items: flex-end; gap: 5px; height: 130px; }
.ta-bars i { flex: 1; background: var(--heat); border-radius: 5px 5px 2px 2px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); }
.ta-bars i.is-pick { box-shadow: 0 0 0 2px #9fe6ee, 0 0 18px rgb(79 179 191 / .9); }
.ta-h-1 { height: 10%; } .ta-h-2 { height: 20%; } .ta-h-3 { height: 30%; } .ta-h-4 { height: 40%; } .ta-h-5 { height: 50%; }
.ta-h-6 { height: 60%; } .ta-h-7 { height: 70%; } .ta-h-8 { height: 80%; } .ta-h-9 { height: 90%; } .ta-h-10 { height: 100%; }
.ta-scale { display: flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #A7A7AE; }
.ta-scale i { position: relative; flex: 1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #2F6F7A, #7E8C5A, #D8783D, #E4294F); }
.ta-scale--marker b { position: absolute; left: 64%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px #D8783D, 0 0 14px rgb(216 120 61 / .8); }

.ta-cap { display: block; aspect-ratio: 460 / 215; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.ta-cap--1 { background: radial-gradient(60% 90% at 30% 100%, #ff9f43, transparent 60%), linear-gradient(135deg, #3b1d5e, #c0392b); }
.ta-cap--2 { background: radial-gradient(50% 70% at 70% 30%, #7ef0ff, transparent 60%), linear-gradient(135deg, #0b2e4a, #1f7a8c); }
.ta-cap--3 { background: radial-gradient(70% 60% at 50% 110%, #f9e45b, transparent 60%), linear-gradient(135deg, #1e3a1e, #5f8f3a); }
.ta-cap--4 { background: radial-gradient(60% 80% at 80% 80%, #ff5d7c, transparent 60%), linear-gradient(135deg, #12121a, #44203a); }
.ta-cap--5 { background: radial-gradient(60% 80% at 20% 20%, #b28dff, transparent 60%), linear-gradient(135deg, #1a1035, #3d2b7a); }
.ta-cap--6 { background: radial-gradient(70% 70% at 60% 40%, #ffd1a1, transparent 55%), linear-gradient(135deg, #5a2a12, #b5562a); }
.ta-cap--sm { flex: none; width: 92px; }
.ta-cap--tall { aspect-ratio: 2 / 3; }
.ta-cap.is-you { box-shadow: 0 0 0 2px #FF5D7C, 0 0 18px rgb(228 41 79 / .6); }
.ta-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.ta-capcard { display: flex; flex-direction: column; gap: .3rem; }
.ta-match { font-family: var(--font-mono); font-size: .62rem; color: #7fe3b0; }
.ta-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ta-tags span { padding: .25rem .6rem; border-radius: 999px; background: rgb(255 255 255 / .08); font-size: .74rem; }
.ta-tags--check .is-ok { background: rgb(52 195 138 / .16); color: #7fe3b0; }
.ta-tags--check .is-add { background: rgb(228 41 79 / .2); color: #ffb3c2; }

.ta-range { position: relative; height: 10px; margin: .4rem 0 1.6rem; border-radius: 99px; background: rgb(255 255 255 / .08); }
.ta-range i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #2F6F7A, #4FB3BF); }
.ta-range b { position: absolute; }
.ta-range--price i { left: 22%; width: 48%; }
.ta-range--price b { left: 58%; top: 16px; transform: translateX(-50%); padding: .1rem .45rem; border-radius: 6px; background: #F5F4F1; color: #09090B; font-size: .72rem; }
.ta-range--est { margin-bottom: .2rem; }
.ta-range--est i { left: 18%; width: 62%; }
.ta-range--est b { left: 44%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px #4FB3BF, 0 0 14px rgb(79 179 191 / .8); }
.ta-big { display: flex; align-items: baseline; gap: .65rem; font-size: 2.9rem; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.ta-big small { font-size: .82rem; font-weight: 400; letter-spacing: 0; color: #A7A7AE; }
.ta-spark { display: block; width: 100%; height: 70px; }
svg.ta-spark .ta-spark__fill { fill: rgb(255 93 124 / .2); stroke: none; }
svg.ta-spark .ta-spark__line { fill: none; stroke: #FF5D7C; stroke-width: 3; }

.ta-combo { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ta-combo span { padding: .35rem .75rem; border-radius: 999px; background: rgb(228 41 79 / .2); border: 1px solid rgb(255 93 124 / .4); font-size: .82rem; font-weight: 600; }
.ta-combo em { font-style: normal; color: #A7A7AE; }
.ta-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.ta-stats div { padding: .6rem .7rem; border-radius: 10px; background: rgb(255 255 255 / .05); }
.ta-stats b { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
.ta-stats span { font-size: .72rem; color: #A7A7AE; }

.ta-rows { display: flex; flex-direction: column; gap: .4rem; }
.ta-row { position: relative; display: flex; align-items: center; gap: .65rem; padding: .4rem; border-radius: 9px; background: rgb(255 255 255 / .04); }
.ta-row span { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.ta-row span i { display: block; height: 7px; border-radius: 4px; background: rgb(255 255 255 / .18); }
.ta-row span i + i { width: 60%; background: rgb(255 255 255 / .1); }
.ta-row.is-you { background: rgb(228 41 79 / .14); box-shadow: inset 0 0 0 2px #FF5D7C; }
.ta-row b { position: absolute; right: .55rem; top: .35rem; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: #FF5D7C; }
.ta-lib { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }

.ta-timeline { position: relative; height: 76px; border-radius: 10px; background: rgb(255 255 255 / .04); }
.ta-ev { position: absolute; display: flex; align-items: center; justify-content: center; height: 26px; padding: 0 .3rem; border-radius: 7px; font-size: .66rem; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ta-ev:nth-child(1) { left: 2%; width: 16%; top: 9px; }
.ta-ev:nth-child(2) { left: 19%; width: 22%; top: 9px; }
.ta-ev:nth-child(3) { left: 42%; width: 18%; top: 41px; }
.ta-ev:nth-child(4) { left: 62%; width: 14%; top: 9px; }
.ta-ev:nth-child(5) { left: 80%; width: 18%; top: 41px; }
.ta-ev--you { background: #E4294F; color: #fff; }
.ta-ev--wait { background: repeating-linear-gradient(45deg, rgb(255 255 255 / .08) 0 6px, transparent 6px 12px); color: #A7A7AE; border: 1px dashed rgb(255 255 255 / .22); }
.ta-ev--sale { background: #2F6F7A; color: #e6fbfd; }
.ta-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); text-align: center; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: #A7A7AE; }

.ta-verdicts { display: flex; flex-direction: column; gap: .5rem; }
.ta-verdict { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .85rem; border-radius: 12px; border-left: 3px solid; }
.ta-verdict span { font-size: .78rem; color: #C9C9CF; }
.ta-verdict--ok { background: rgb(52 195 138 / .13); border-color: #34c38a; } .ta-verdict--ok b { color: #7fe3b0; }
.ta-verdict--look { background: rgb(216 120 61 / .14); border-color: #D8783D; } .ta-verdict--look b { color: #ffbe8f; }
.ta-verdict--no { background: rgb(228 41 79 / .15); border-color: #E4294F; } .ta-verdict--no b { color: #ffb3c2; }

/* "What you get": numbered, coloured cards instead of plain columns */
.tool-explain { counter-reset: tool-explain; gap: 1rem; }
.tool-explain > div { counter-increment: tool-explain; position: relative; padding: 1.3rem 1.3rem 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .2s var(--ease), border-color .2s; }
.tool-explain > div:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.tool-explain > div::before { content: counter(tool-explain, decimal-leading-zero); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .85rem; border-radius: 12px; font-family: var(--font-mono); font-weight: 600; color: #fff; background: #2F6F7A; box-shadow: 0 10px 22px -12px #2F6F7A; }
.tool-explain > div:nth-child(2)::before { background: #D8783D; box-shadow: 0 10px 22px -12px #D8783D; }
.tool-explain > div:nth-child(3)::before { background: var(--primary); box-shadow: 0 10px 22px -12px var(--primary); }
.tool-explain h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.tool-section > h2 { display: flex; align-items: center; gap: .6rem; }
.tool-section > h2::before { content: ""; flex: none; width: 6px; height: 1.05em; border-radius: 3px; background: linear-gradient(180deg, var(--primary), #D8783D); }
.tool-prose { padding: 1.4rem 1.6rem; border-radius: 18px; background: var(--bg-subtle); border: 1px solid var(--border); border-left: 4px solid var(--primary); max-width: 820px; }
.tool-prose > h2::before { display: none; }

/* "More free tools": coloured icon tiles */
.more-tools__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .45rem; border-radius: 12px; color: #fff; background: var(--primary); transition: transform .2s var(--ease); }
.more-tools__item:nth-child(5n+2) .more-tools__icon { background: #2F6F7A; }
.more-tools__item:nth-child(5n+3) .more-tools__icon { background: #D8783D; }
.more-tools__item:nth-child(5n+4) .more-tools__icon { background: #7E8C5A; }
.more-tools__item:nth-child(5n+5) .more-tools__icon { background: #6b4fd8; }
.more-tools__item:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.more-tools__item:hover .more-tools__icon { transform: rotate(-6deg) scale(1.05); }

@media (max-width: 960px) {
    .tool-hero { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; gap: 1.75rem; }
    .tool-art { transform: none; }
    .tool-hero::after { display: none; }
}
@media (max-width: 520px) {
    .tool-hero { padding: 1.15rem; border-radius: 18px; margin-left: -.25rem; margin-right: -.25rem; }
    .ta-big { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) { .tool-art, .tool-explain > div, .more-tools__icon { transition: none; } }
