/* Components of mockup B «Scena», moved from b-scena.html and extended in its
 * language for what the mockup did not draw (fields, dialogs, stepper, cookies).
 * Every interactive piece has hover / focus / active / disabled. */

.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }

/* ── kicker (signature: mint dot) ────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 var(--fs-xs)/1.2 var(--font-body); letter-spacing: var(--tracking-kicker); text-transform: uppercase;
  color: var(--color-mint);
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none;
  box-shadow: 0 0 0 4px rgba(110, 231, 200, .18);
}
.accent { color: var(--color-brand); }

/* ── headings ────────────────────────────────────────────────────────── */
@media (max-width: 389px) { .h1 { font-size: 2.3rem !important; } }
.h1 { font: 600 var(--fs-h1)/var(--lh-tight) var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.h2 { font: 600 var(--fs-h2)/1.08 var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.h3 { font: 500 var(--fs-h3)/var(--lh-snug) var(--font-display); letter-spacing: -.025em; }
.lead { font-size: var(--fs-lead); color: var(--color-muted); max-width: 60ch; }

.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.sh__title { font: 600 var(--fs-h2)/1.08 var(--font-display); letter-spacing: var(--tracking-display); margin-top: 14px; text-wrap: balance; }
.sh__lead { margin-top: 12px; color: var(--color-muted); max-width: 56ch; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; background: transparent; color: inherit;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-base) var(--ease), background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base), color var(--dur-base);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { background: var(--color-brand); color: var(--color-on-brand); box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--color-brand-hover); }
.btn--primary:active { background: var(--color-brand-active); }
.btn--ghost {
  border-color: var(--color-line-strong); color: var(--color-text);
  background: rgba(243, 239, 230, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(243, 239, 230, .14); border-color: var(--color-text); }
.btn--mint { background: var(--color-mint); color: var(--color-bg); }
.btn--mint:hover { background: color-mix(in srgb, var(--color-mint) 85%, white); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.icon-btn {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 1px solid var(--color-line-strong); background: transparent; color: var(--color-text);
  display: grid; place-items: center; text-decoration: none;
  transition: background var(--dur-base), transform var(--dur-base) var(--ease), border-color var(--dur-base);
}
.icon-btn:hover { background: var(--color-surface-3); transform: scale(1.05); }
.icon-btn:disabled { opacity: .35; cursor: default; transform: none; }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--glass { background: rgba(16, 17, 31, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.icon-btn--user { background: var(--color-mint); color: var(--color-bg); border-color: var(--color-mint); font: 700 1rem/1 var(--font-display); }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--color-text); font: inherit; font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--color-line-strong); text-underline-offset: .2em; position: relative;
  transition: color var(--dur-base), text-decoration-color var(--dur-base);
}
.link-btn:hover { color: var(--color-brand); text-decoration-color: currentColor; }
.link-btn .icon { width: 16px; height: 16px; }
.link-btn::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }

/* ── pills & tags ────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--radius-pill);
  font: 700 var(--fs-xs)/1 var(--font-body); white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-mint); }
.pill--glass { background: rgba(16, 17, 31, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--color-line-strong); color: var(--color-text); }
.pill--brand { background: var(--color-brand); color: var(--color-on-brand); }
.pill--mint { background: var(--color-mint-tint); color: var(--color-mint); }
.pill--muted { background: var(--color-surface-3); color: var(--color-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 700 12px/1 var(--font-body); padding: 5px 9px; border-radius: var(--radius-pill); background: var(--color-surface-2); color: var(--color-muted); }

/* ── favourite ───────────────────────────────────────────────────────── */
.fav {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--color-line-strong);
  background: rgba(16, 17, 31, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--color-text); display: grid; place-items: center;
  transition: transform var(--dur-base) var(--ease), color var(--dur-base), background var(--dur-base);
}
.fav:hover { transform: scale(1.1); color: var(--color-brand); }
.fav .icon { width: 19px; height: 19px; }
.fav[aria-pressed="true"] { color: var(--color-brand); background: rgba(255, 122, 69, .16); border-color: rgba(255, 122, 69, .5); }
.fav[aria-pressed="true"] .icon { fill: currentColor; animation: pop .45s var(--ease); }
.fav--lg { width: 50px; height: 50px; background: var(--color-surface-2); }

/* ── game card ───────────────────────────────────────────────────────── */
.gcard {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--color-surface-1); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  transition: transform .4s var(--ease), border-color var(--dur-base), box-shadow .4s var(--ease);
}
.gcard:hover { transform: translateY(-6px); border-color: var(--color-line-strong); box-shadow: var(--shadow-card); }
.gcard__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--color-surface-2); }
.gcard__pic, .gcard__pic img { display: block; width: 100%; height: 100%; }
.gcard__pic img { object-fit: cover; transition: transform 1s var(--ease); }
.gcard:hover .gcard__pic img { transform: scale(1.07); }
.gcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 17, 31, .55)); pointer-events: none; }
.gcard__badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; }
.gcard .fav { position: absolute; top: 10px; right: 10px; z-index: 3; }
.gcard__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.gcard__mech { font: 700 var(--fs-xs)/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--color-mint); }
.gcard__title { font: 500 1.2rem/1.2 var(--font-display); letter-spacing: -.025em; }
.gcard__sum { font-size: .93rem; color: var(--color-muted); line-height: 1.5; }
.gcard__cta {
  margin-top: auto; padding: 8px 0 0; border: 0; background: none; color: var(--color-text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 700 .95rem/1.2 var(--font-body); text-align: left;
}
/* the whole card is the hit area of its CTA; the heart sits above it */
.gcard__cta::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.gcard__cta:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 4px; border-radius: 8px; }
.go {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--color-line-strong);
  display: grid; place-items: center;
  transition: background var(--dur-base), transform var(--dur-base) var(--ease), color var(--dur-base), border-color var(--dur-base);
}
.go .icon { width: 18px; height: 18px; }
.gcard:hover .go, .is-active > .go { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); transform: rotate(-45deg); }
.gcard--shelf { scroll-snap-align: start; }
.gcard--compact .gcard__sum, .gcard--compact .tags { display: none; }

.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ── shelf (carousel) ────────────────────────────────────────────────── */
.shelf { position: relative; }
.shelf__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px 2px 28px; margin-inline: -2px;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__bar { display: flex; align-items: center; gap: 14px; }
.shelf__arrows { display: flex; gap: 8px; margin-left: auto; }
.progress { height: 3px; flex: 1; border-radius: 3px; background: var(--color-line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 30%; border-radius: 3px; background: var(--color-brand); transition: transform .3s var(--ease), width .3s; }

/* ── segments (signature: progress segments) ─────────────────────────── */
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.segments > * { position: relative; height: 24px; border: 0; padding: 0; background: none; }
.segments > *::before, .segments > * > span { content: ""; position: absolute; left: 0; top: 50%; height: 3px; border-radius: 3px; transform: translateY(-50%); }
.segments > *::before { right: 0; background: rgba(243, 239, 230, .2); }
.segments > * > span { width: 0; background: var(--color-brand); transition: width .35s var(--ease); }
.segments > .is-done > span { width: 100%; }
.segments > .is-on > span { width: 100%; }

/* ── chips / segmented ───────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 4px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-strong); background: var(--color-surface-1); color: var(--color-text);
  font: 600 .92rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base), transform var(--dur-base) var(--ease);
}
.chip:hover { border-color: var(--color-text); transform: translateY(-2px); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.chip .n { font-variant-numeric: tabular-nums; font-size: .8rem; opacity: .7; }
.chip[aria-pressed="true"] .n, .chip[aria-current] .n { opacity: .85; }

.select {
  position: relative; display: inline-flex; align-items: center;
}
.select select {
  appearance: none; min-height: 46px; padding: 0 44px 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-strong); background: var(--color-surface-1); color: var(--color-text);
  font: 600 .92rem/1 var(--font-body);
  transition: border-color var(--dur-base);
}
.select select:hover { border-color: var(--color-text); }
.select select:focus { outline: none; border-color: var(--color-brand); box-shadow: var(--focus-ring); }
.select .icon { position: absolute; right: 14px; width: 18px; height: 18px; pointer-events: none; color: var(--color-muted); }

/* ── fields ──────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field__label { font-size: var(--fs-small); font-weight: 600; color: var(--color-muted); }
.field input:not(.visually-hidden):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-line-strong); background: var(--color-bg); color: var(--color-text);
  transition: border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; padding-block: 12px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243, 239, 230, .35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-brand); box-shadow: var(--focus-ring); background: var(--color-surface-1); }
.field__hint { font-size: var(--fs-xs); color: var(--color-subtle); margin: -6px 0 14px; }
.field__error { color: var(--color-error); font-size: var(--fs-small); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; }
.field--check input {
  appearance: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; flex: none;
  border: 1.5px solid var(--color-line-strong); background: var(--color-bg); display: grid; place-items: center;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.field--check input::before { content: ""; width: 10px; height: 6px; border: 2px solid var(--color-on-brand); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform var(--dur-fast) var(--ease); }
.field--check input:checked { background: var(--color-brand); border-color: var(--color-brand); }
.field--check input:checked::before { transform: rotate(-45deg) scale(1); }
.field--check input:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.field--check .field__label { color: var(--color-text); font-weight: 500; line-height: 1.45; }
.field--check .field__error { grid-column: 2; }
.form__error { color: var(--color-error); font-size: var(--fs-small); margin-bottom: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 138, 138, .1); }
.form__success { color: var(--color-success); }

/* ── switch ──────────────────────────────────────────────────────────── */
.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: var(--color-surface-3); transition: background var(--dur-base); }
.switch span::before { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-text); transition: transform var(--dur-base) var(--ease); }
.switch input:checked + span { background: var(--color-brand); }
.switch input:checked + span::before { transform: translateX(20px); background: var(--color-on-brand); }
.switch input:focus-visible + span { box-shadow: var(--focus-ring); }
.switch.is-locked { opacity: .7; }
.switch.is-locked input { cursor: not-allowed; }

/* ── overlays ────────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center;
  padding: 16px; background: rgba(8, 9, 18, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--dur-base) var(--ease); overflow-y: auto;
}
.overlay.is-open { opacity: 1; }
.overlay__panel {
  position: relative; width: min(100%, 480px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: var(--color-surface-1); border: 1px solid var(--color-line-strong); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-card);
  transform: translateY(14px) scale(.98); transition: transform .4s var(--ease);
}
.overlay.is-open .overlay__panel { transform: none; }
.overlay--gate { z-index: var(--z-gate); }

.auth__close { position: absolute; top: 16px; right: 16px; }
.auth__title { font: 600 1.9rem/1.08 var(--font-display); letter-spacing: var(--tracking-display); margin: 12px 0 10px; }
.auth__lead { color: var(--color-muted); margin-bottom: 20px; font-size: .97rem; }
.auth__lead.is-reason { color: var(--color-text); padding: 10px 14px; border-radius: var(--radius-sm); background: var(--color-brand-tint); }
.auth__perks { display: grid; gap: 8px; margin: 0 0 20px; }
.auth__perks li { display: flex; align-items: center; gap: 10px; color: var(--color-muted); font-size: .95rem; }
.auth__perks .icon { width: 18px; height: 18px; color: var(--color-mint); }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin-top: 18px; font-size: var(--fs-small); color: var(--color-muted); }
.auth__done { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: var(--radius-md); background: var(--color-mint-tint); }
.auth__done .icon { width: 26px; height: 26px; color: var(--color-mint); }

/* ── age gate ────────────────────────────────────────────────────────── */
.gate { width: min(100%, 520px); text-align: center; padding: 40px 32px 28px; }
.gate__badge {
  display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  font: 800 1.6rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--color-brand);
  border: 1.5px solid var(--color-brand); margin-bottom: 18px;
}
.gate__title { font: 600 clamp(1.5rem, 3vw, 2rem)/1.1 var(--font-display); letter-spacing: var(--tracking-display); margin-bottom: 12px; }
.gate p { color: var(--color-muted); }
.gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.gate__actions .btn { flex: 1 1 180px; }
.gate__retry { margin-top: 16px; }
.gate__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-line); font-size: var(--fs-xs); }
.gate__note .icon { width: 16px; height: 16px; }

/* ── game dialog ─────────────────────────────────────────────────────── */
.overlay--game .overlay__panel { width: min(100%, 880px); padding: 0; }
.gd__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--color-surface-2); }
.gd__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s linear both; }
.gd__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--color-surface-1)); }
.gd__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.gd__demo { position: absolute; top: 18px; left: 18px; z-index: 2; }
.gd__body { padding: 0 32px 32px; margin-top: -40px; position: relative; z-index: 1; }
.gd__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gd__title { font: 600 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--font-display); letter-spacing: var(--tracking-display); margin-top: 10px; }
.gd .tags { margin-top: 14px; }
.gd__desc { color: var(--color-muted); margin-top: 14px; max-width: 68ch; }
.gd__cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; margin-top: 24px; }
.gd__h { display: flex; align-items: center; gap: 8px; font: 600 1rem/1.2 var(--font-display); margin-bottom: 12px; }
.gd__h .icon { width: 18px; height: 18px; color: var(--color-mint); }
.gd__rules ol { counter-reset: r; display: grid; gap: 10px; }
.gd__rules li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: .95rem; }
.gd__rules li::before { content: counter(r, decimal-leading-zero); font: 500 .85rem/1.6 var(--font-display); color: var(--color-brand); }
.gd__note, .gd__nodemo { display: flex; gap: 8px; margin-top: 16px; font-size: var(--fs-xs); color: var(--color-subtle); line-height: 1.5; }
.gd__note .icon, .gd__nodemo .icon { width: 16px; height: 16px; margin-top: 1px; }
.gd__nodemo { align-self: start; padding: 16px; border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-line); font-size: var(--fs-small); color: var(--color-muted); margin: 0; }

.stepper { padding: 18px; border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-line); }
.stepper__top { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-xs); font-weight: 700; color: var(--color-muted); margin-bottom: 6px; }
.stepper .segments { margin-bottom: 12px; }
.stepper__screen { position: relative; min-height: 118px; padding-right: 56px; animation: stepIn .4s var(--ease); }
.stepper__screen b { display: block; font: 500 1.05rem/1.3 var(--font-display); margin-bottom: 6px; }
.stepper__screen p { font-size: .93rem; color: var(--color-muted); }
.stepper__num { position: absolute; right: 0; top: -4px; font: 800 2.8rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(243, 239, 230, .3); }
.stepper__screen.is-end b { color: var(--color-mint); }
.stepper__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ── cookie bar & panel ──────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; left: calc(var(--rail) + 16px); right: 16px; bottom: 16px; z-index: var(--z-banner);
  animation: barIn .5s var(--ease) both .3s;
}
.cookie-bar__in {
  max-width: 1040px; margin-inline: auto; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius-lg); background: var(--color-glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--color-line-strong); box-shadow: var(--shadow-card);
}
.cookie-bar__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--color-brand-tint); color: var(--color-brand); flex: none; }
.cookie-bar p { flex: 1 1 320px; font-size: var(--fs-small); color: var(--color-muted); }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-panel { width: min(100%, 560px); }
.ck-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--color-line); }
.ck-opt b { font-family: var(--font-display); font-weight: 500; }
.ck-opt p { font-size: var(--fs-small); color: var(--color-muted); margin-top: 4px; }
.cookie-panel__meta { font-size: var(--fs-xs); color: var(--color-subtle); padding: 12px 0; border-top: 1px solid var(--color-line); }
.cookie-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── toast ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--color-text); color: var(--color-bg); font-weight: 700; font-size: .93rem; box-shadow: var(--shadow-card);
  transform: translate(-50%, 160%); transition: transform .45s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast .icon { width: 18px; height: 18px; color: #1a8f6f; }

/* ── empty state, accordion, misc ────────────────────────────────────── */
.empty { display: grid; justify-items: center; gap: 14px; padding: 56px 20px; text-align: center; border-radius: var(--radius-lg); border: 1px dashed var(--color-line-strong); color: var(--color-muted); }
.empty__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-text); }

.acc { border-top: 1px solid var(--color-line); }
.acc__item { border-bottom: 1px solid var(--color-line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; border: 0; background: none; color: var(--color-text); text-align: left;
  font: 500 1.08rem/1.35 var(--font-display); letter-spacing: -.015em; transition: color var(--dur-base), padding var(--dur-base) var(--ease);
}
.acc__btn:hover { color: var(--color-brand); padding-left: 10px; }
.acc__btn .go { width: 38px; height: 38px; }
.acc__btn[aria-expanded="true"] { color: var(--color-brand); }
.acc__btn[aria-expanded="true"] .go { transform: rotate(180deg); background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.acc__body > div > div { padding: 0 4px 22px; color: var(--color-muted); max-width: 76ch; }
.acc__body p + p { margin-top: 10px; }

.img-missing { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3)); }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .shelf__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 760px) {
  .sh { flex-direction: column; align-items: flex-start; }
  .shelf__track { grid-auto-columns: 78%; gap: 14px; }
  .shelf__arrows { display: none; }
  .overlay__panel { padding: 26px 20px; }
  .overlay--game { padding: 0; align-items: end; }
  .overlay--game .overlay__panel { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92dvh; }
  .gd__body { padding: 0 20px 24px; }
  .gd__cols { grid-template-columns: 1fr; }
  .gd__media { aspect-ratio: 16 / 9; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer__data { grid-template-columns: 1fr; }
  .cookie-bar { left: 10px; right: 10px; bottom: calc(var(--tabbar) + 10px); }
  .cookie-bar__in { background: rgba(22, 24, 41, .96); }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1 1 auto; }
  .toast { bottom: calc(var(--tabbar) + 16px); max-width: calc(100% - 32px); }
}
