/* GameDraft — styles/components.css (Phase 1, 0.44)
   ═══════════════════════════════════════════════════════════════════════════
   Kernkomponenten des Designsystems. Lädt NACH shell.css, VOR views.css.
   Konsumiert ausschliesslich --gd-*-Tokens (tokens.css).

   Grundsätze (DESIGN-SYSTEM.md):
   - Jede interaktive Komponente definiert ihre Zustände selbst (default/hover/
     focus-visible/active/selected/disabled/loading) und ist damit unabhängig
     von den globalen base.css-Element-Regeln (kein Gegen-!important nötig:
     .gd-* schlägt button:… über Spezifität + Ladeordnung).
   - EIN Fokus-Ring für alles Interaktive (ersetzt den brand.css-Block).
   - Uppercase nur für Label-/Overline-Stufe; Titel sind Mixed Case.
   - Status nie über Farbe allein: Dot/Icon + Textlabel gehören zusammen.
   - Motion über Tokens; prefers-reduced-motion killt global (brand.css).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ==== Utilities ============================================================ */
.gd-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.gd-num { font-variant-numeric: tabular-nums; }
.gd-prose { max-width: var(--gd-measure); line-height: var(--gd-lh-body); }

/* ==== Typografie-Stufen ==================================================== */
/* Skala: display · h1 28 · h2 24 · h3 18 · h4 16 · body 14 · body-sm 13 ·
   label 12 · caption 11. Keine Grössen unter 11px im UI. */
.gd-display { font-size: var(--gd-fs-display); font-weight: 900; line-height: var(--gd-lh-tight); letter-spacing: -.03em; color: var(--gd-text); }
.gd-h1 { font-size: var(--gd-fs-h1); font-weight: 800; line-height: var(--gd-lh-tight); letter-spacing: var(--gd-ls-tight); color: var(--gd-text); margin: 0; }
.gd-h2 { font-size: var(--gd-fs-h2); font-weight: 800; line-height: 1.18; letter-spacing: var(--gd-ls-tight); color: var(--gd-text); margin: 0; }
.gd-h3 { font-size: var(--gd-fs-h3); font-weight: 800; line-height: var(--gd-lh-snug); color: var(--gd-text); margin: 0; }
.gd-h4 { font-size: var(--gd-fs-h4); font-weight: 700; line-height: var(--gd-lh-snug); letter-spacing: .01em; color: var(--gd-text); margin: 0; }
.gd-body { font-size: var(--gd-fs-body); line-height: var(--gd-lh-body); color: var(--gd-text); }
.gd-body-sm { font-size: var(--gd-fs-sm); line-height: var(--gd-lh-body); color: var(--gd-text-mute); }
.gd-caption { font-size: var(--gd-fs-caption); line-height: 1.35; color: var(--gd-text-dim); }
/* Label über Controls/Feldern */
.gd-label { font-size: var(--gd-fs-label); font-weight: 700; line-height: 1.3; color: var(--gd-text-mute); }
/* Overline/Eyebrow — eine der zwei sanktionierten Uppercase-Stufen */
.gd-overline {
  font-size: var(--gd-fs-caption); font-weight: 800; line-height: 1.3;
  letter-spacing: var(--gd-ls-caps); text-transform: uppercase; color: var(--gd-text-dim);
}
/* Sektionslabel IN Karten (Rezept der Referenz-Detailansicht: 13/700/.04em
   + Trennlinie). Für Seiten-/Shelf-Überschriften stattdessen .gd-h4 (Mixed Case). */
.gd-section-label {
  font-size: var(--gd-fs-sm); font-weight: 700; letter-spacing: var(--gd-ls-label);
  text-transform: uppercase; color: var(--gd-text-mute);
  padding-bottom: 7px; border-bottom: 1px solid var(--gd-border-strong);
}

/* ==== Fokus: EIN Ring für alles Interaktive ================================ */
/* Ersetzt den brand.css-Fokusblock (3px/transluzent) durch den Token-Ring
   (2px, solide — klarer bei gleicher Sichtbarkeit). !important bleibt nötig,
   solange legacy.css ~40 eigene Fokus-Regeln trägt (Abbau Phase G). */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
.menuTile:focus-visible,
.presetCard:focus-visible,
.libraryTile:focus-visible,
.profileChip:focus-visible {
  outline: var(--gd-focus-ring) !important;
  outline-offset: var(--gd-focus-offset) !important;
}
input:focus, select:focus, textarea:focus,
.communityImportRow input:focus-visible {
  border-color: var(--gd-focus-color) !important;
  box-shadow: 0 0 0 3px rgba(134, 169, 255, .18) !important;
}
.card:focus, .card:focus-visible {
  outline: var(--gd-focus-ring) !important;
  outline-offset: 3px !important;
}

/* ==== Buttons ============================================================== */
/* Selbstständig gegen base.css-Element-Regeln (Block 1+2 inkl. hover-Lift,
   active-Scale, disabled): jeder Zustand ist hier explizit definiert. */
.gd-btn, .gd-btn-primary, .gd-btn-ghost, .gd-btn-danger, .gd-btn-premium, .gd-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--gd-r-control);
  font: inherit; font-size: var(--gd-fs-body); font-weight: 700; line-height: 1;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  background: var(--gd-surface-3); border: 1px solid var(--gd-border-strong); color: var(--gd-text);
  box-shadow: none;
  transition: transform var(--gd-dur-1) var(--gd-ease), background var(--gd-dur-2) var(--gd-ease),
              border-color var(--gd-dur-2) var(--gd-ease), color var(--gd-dur-2) var(--gd-ease),
              filter var(--gd-dur-2) var(--gd-ease);
}
.gd-btn svg, .gd-btn-primary svg, .gd-btn-ghost svg, .gd-btn-danger svg, .gd-btn-premium svg, .gd-icon-btn svg {
  width: 16px; height: 16px; flex: 0 0 16px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* Sekundär (Default) */
.gd-btn:hover { background: var(--gd-surface-3); border-color: rgba(255, 255, 255, .22); color: var(--gd-text); transform: translateY(-1px); box-shadow: none; }
/* Primär */
.gd-btn-primary { background: var(--brand-grad-btn, var(--gd-grad)); border: 0; color: var(--gd-text-on-accent); }
.gd-btn-primary:hover { background: var(--brand-grad-btn, var(--gd-grad)); filter: brightness(1.08); transform: translateY(-1px); box-shadow: none; }
/* Ghost */
.gd-btn-ghost { background: none; border: 1px solid transparent; color: var(--gd-text-mute); }
.gd-btn-ghost:hover { color: var(--gd-text); background: var(--gd-surface-3); transform: none; box-shadow: none; }
/* Destruktiv */
.gd-btn-danger { background: var(--gd-err-surface); border-color: rgba(217, 106, 106, .45); color: var(--gd-err); }
.gd-btn-danger:hover { background: rgba(217, 106, 106, .2); border-color: rgba(217, 106, 106, .6); color: #ffb1b1; transform: translateY(-1px); box-shadow: none; }
/* Premium (Lock-CTAs, Upgrade) */
.gd-btn-premium { background: var(--gd-premium-grad); border: 0; color: var(--gd-text-on-premium); }
.gd-btn-premium:hover { background: var(--gd-premium-grad); filter: brightness(1.05); transform: translateY(-1px); box-shadow: none; }
/* Icon-Only (quadratisch; braucht aria-label) */
.gd-icon-btn { width: 40px; padding: 0; flex: 0 0 40px; }
/* Grössen */
.gd-btn.is-sm, .gd-btn-primary.is-sm, .gd-btn-ghost.is-sm, .gd-btn-danger.is-sm, .gd-btn-premium.is-sm { height: 32px; padding: 0 12px; font-size: var(--gd-fs-sm); }
.gd-icon-btn.is-sm { width: 32px; height: 32px; flex-basis: 32px; padding: 0; }
.gd-btn.is-lg, .gd-btn-primary.is-lg, .gd-btn-premium.is-lg { height: 48px; padding: 0 22px; font-size: 15px; }
/* Active */
.gd-btn:active, .gd-btn-primary:active, .gd-btn-ghost:active, .gd-btn-danger:active, .gd-btn-premium:active, .gd-icon-btn:active {
  transform: translateY(0) scale(.985);
}
/* Disabled */
.gd-btn:disabled, .gd-btn-primary:disabled, .gd-btn-ghost:disabled, .gd-btn-danger:disabled, .gd-btn-premium:disabled, .gd-icon-btn:disabled,
.gd-btn[aria-disabled="true"], .gd-btn-primary[aria-disabled="true"], .gd-btn-ghost[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none;
}
.gd-btn:disabled:hover, .gd-btn-primary:disabled:hover, .gd-btn-ghost:disabled:hover { transform: none; filter: none; }
/* Loading (mit aria-busy="true" setzen) */
.gd-btn.is-loading, .gd-btn-primary.is-loading, .gd-btn-danger.is-loading, .gd-btn-premium.is-loading,
.gd-btn[aria-busy="true"], .gd-btn-primary[aria-busy="true"] {
  pointer-events: none; opacity: .8;
}
.gd-btn.is-loading::before, .gd-btn-primary.is-loading::before, .gd-btn-danger.is-loading::before, .gd-btn-premium.is-loading::before,
.gd-btn[aria-busy="true"]::before, .gd-btn-primary[aria-busy="true"]::before {
  content: ""; width: 14px; height: 14px; flex: 0 0 14px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: gdSpin .7s linear infinite;
}
@keyframes gdSpin { to { transform: rotate(360deg); } }
/* Volle Breite (Mobile-Footer, Load-More) */
.gd-btn.is-block { width: 100%; }
.gd-load-more { width: 100%; justify-content: center; }

/* ==== Chips / Tags ========================================================= */
.gd-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: var(--gd-r-pill);
  background: var(--gd-surface-3); border: 1px solid var(--gd-border);
  font-size: var(--gd-fs-label); font-weight: 600; line-height: 1;
  color: var(--gd-text-mute); white-space: nowrap;
}
.gd-chip svg { width: 12px; height: 12px; flex: 0 0 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd-chip.is-premium { color: var(--gd-premium); border-color: var(--gd-premium-border); background: var(--gd-premium-soft); }
.gd-chip.is-accent { color: #cfe0ff; border-color: rgba(91, 140, 255, .45); background: var(--gd-accent-soft); }
.gd-chip.is-ok { color: var(--gd-ok); border-color: rgba(46, 204, 143, .4); background: var(--gd-ok-surface); }
.gd-chip.is-err { color: var(--gd-err); border-color: rgba(217, 106, 106, .45); background: var(--gd-err-surface); }
/* Interaktive Chips (button.gd-chip): Filter, Nudges */
button.gd-chip { cursor: pointer; transition: border-color var(--gd-dur-2) var(--gd-ease), background var(--gd-dur-2) var(--gd-ease), color var(--gd-dur-2) var(--gd-ease); transform: none; box-shadow: none; }
button.gd-chip:hover { border-color: var(--gd-border-strong); color: var(--gd-text); background: var(--gd-surface-3); transform: none; box-shadow: none; }
button.gd-chip.is-accent:hover, button.gd-chip.is-premium:hover { filter: brightness(1.12); }
button.gd-chip:active { transform: scale(.97); }
button.gd-chip:disabled { opacity: .45; cursor: not-allowed; }
.gd-chip.is-selected, button.gd-chip[aria-pressed="true"] {
  color: #fff; border-color: rgba(91, 140, 255, .65); background: var(--gd-accent-soft);
}

/* ==== Status (Dot + Text — nie Farbe allein) =============================== */
.gd-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--gd-fs-label); font-weight: 600; color: var(--gd-text-mute); }
.gd-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: currentColor; }
.gd-status.is-playing { color: var(--st-playing); }
.gd-status.is-played { color: var(--st-played); }
.gd-status.is-dropped { color: var(--st-dropped); }
.gd-status.is-backlog { color: var(--st-backlog); }
.gd-status.is-wishlist { color: var(--st-wishlist); }

/* ==== Badges =============================================================== */
/* Zähler (Tabs, Nav) */
.gd-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--gd-r-pill);
  background: var(--gd-accent-soft); color: #cfe0ff;
  font-size: var(--gd-fs-caption); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* Premium-Marke (ersetzt langfristig die 7 Gold-Chip-Varianten der brand-Ära) */
.gd-badge-premium {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px; border-radius: var(--gd-r-pill);
  background: var(--gd-premium-grad); color: var(--gd-text-on-premium);
  font-size: var(--gd-fs-caption); font-weight: 800; letter-spacing: .02em; line-height: 1;
}

/* ==== Cards ================================================================ */
.gd-card {
  background: var(--gd-surface-2); border: 1px solid var(--gd-border);
  border-radius: var(--gd-r-card);
  transition: border-color var(--gd-dur-2) var(--gd-ease), transform var(--gd-dur-2) var(--gd-ease), box-shadow var(--gd-dur-2) var(--gd-ease);
}
.gd-card:hover { border-color: var(--gd-border-strong); }
.gd-card.is-clickable { cursor: pointer; }
.gd-card.is-clickable:hover { transform: translateY(-1px); box-shadow: var(--gd-shadow-1); }
.gd-card.is-clickable:active { transform: translateY(0); box-shadow: none; }
.gd-card.is-selected { border-color: rgba(91, 140, 255, .65); box-shadow: 0 0 0 2px var(--gd-accent-soft); }
button.gd-card:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
/* Game-Cards (gd-poster 3:4, gd-wide-card 16:10 — Basisdefinition views.css):
   Fokus-Äquivalent zum Hover-Lift, damit Tastatur denselben Effekt bekommt. */
.gd-poster:focus-visible, .gd-wide-card:focus-visible { transform: translateY(-3px); }
.gd-poster:active, .gd-wide-card:active { transform: none; }

/* ==== Formulare ============================================================ */
.gd-field { display: grid; gap: 6px; }
.gd-field > .gd-label { display: block; }
.gd-input, .gd-select, .gd-textarea {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--gd-surface-1); border: 1px solid var(--gd-border-strong);
  border-radius: var(--gd-r-control); color: var(--gd-text);
  font: inherit; font-size: var(--gd-fs-body); outline: none;
  box-shadow: none;
  transition: border-color var(--gd-dur-2) var(--gd-ease), box-shadow var(--gd-dur-2) var(--gd-ease);
}
.gd-textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: var(--gd-lh-body); resize: vertical; }
.gd-input::placeholder, .gd-textarea::placeholder { color: var(--gd-text-dim); }
.gd-input:hover, .gd-select:hover, .gd-textarea:hover { border-color: rgba(255, 255, 255, .2); }
.gd-input:disabled, .gd-select:disabled, .gd-textarea:disabled { opacity: .5; cursor: not-allowed; }
.gd-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gd-text-mute) 50%), linear-gradient(135deg, var(--gd-text-mute) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.gd-select option { background: var(--gd-surface-1); color: var(--gd-text); }
/* Fehler-/Erfolgszustand: Rahmen + Textzeile (nie Farbe allein) */
.gd-input.is-invalid, .gd-textarea.is-invalid, .gd-select.is-invalid,
.gd-input[aria-invalid="true"], .gd-textarea[aria-invalid="true"] {
  border-color: rgba(217, 106, 106, .65) !important;
  box-shadow: 0 0 0 3px var(--gd-err-surface) !important;
}
.gd-field-error { font-size: var(--gd-fs-label); font-weight: 600; color: var(--gd-err); }
.gd-field-hint { font-size: var(--gd-fs-label); color: var(--gd-text-dim); }
.gd-field.is-ok .gd-input, .gd-field.is-ok .gd-textarea { border-color: rgba(46, 204, 143, .55); }

/* ==== Tabs ================================================================= */
/* Zustand über aria-selected (Quelle der Wahrheit); .active bleibt als
   Übergangs-Alias der Alt-Verdrahtung erhalten. */
.gd-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--gd-border); }
.gd-tab {
  position: relative; height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; border-radius: var(--gd-r-control) var(--gd-r-control) 0 0;
  color: var(--gd-text-mute); font: inherit; font-size: var(--gd-fs-body); font-weight: 600;
  cursor: pointer; white-space: nowrap; box-shadow: none;
  transition: color var(--gd-dur-2) var(--gd-ease), background var(--gd-dur-2) var(--gd-ease);
}
.gd-tab:hover { color: var(--gd-text); background: var(--gd-surface-2); transform: none; box-shadow: none; }
.gd-tab:active { transform: none; }
.gd-tab:disabled { opacity: .45; cursor: not-allowed; }
.gd-tab[aria-selected="true"], .gd-tab.active { color: #fff; }
.gd-tab[aria-selected="true"]::after, .gd-tab.active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--gd-accent);
}
.gd-tab .gd-badge { margin-left: 2px; }

/* ==== Dropdown-Menü ======================================================== */
/* Rezept des Topbar-Sprach-/Konto-Menüs, generalisiert. */
.gd-menu {
  position: absolute; min-width: 180px; padding: 6px;
  background: var(--gd-surface-2); border: 1px solid var(--gd-border-strong);
  border-radius: 12px; box-shadow: var(--gd-shadow-1); z-index: 30;
}
.gd-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--gd-text); font: inherit; font-size: var(--gd-fs-body); font-weight: 600;
  text-align: left; cursor: pointer; box-shadow: none;
}
.gd-menu-item:hover, .gd-menu-item:focus-visible { background: var(--gd-surface-3); transform: none; box-shadow: none; }
.gd-menu-item[aria-selected="true"], .gd-menu-item.is-active { color: #fff; background: var(--gd-accent-soft); }
.gd-menu-item:disabled { opacity: .45; cursor: not-allowed; }

/* ==== Tooltip ============================================================== */
/* [data-gd-tip]-Attribut; rein ergänzend — der zugängliche Name kommt IMMER
   zusätzlich über aria-label/title (Tooltip ist für Sehende, nicht Ersatz). */
[data-gd-tip] { position: relative; }
[data-gd-tip]:hover::after, [data-gd-tip]:focus-visible::after {
  content: attr(data-gd-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 240px; white-space: normal; text-align: center;
  background: var(--gd-surface-3); border: 1px solid var(--gd-border-strong);
  color: var(--gd-text); font-size: var(--gd-fs-label); font-weight: 600; line-height: 1.35;
  padding: 6px 9px; border-radius: 8px;
  box-shadow: var(--gd-shadow-1); z-index: var(--gd-z-tooltip); pointer-events: none;
}

/* ==== Skeletons ============================================================ */
.gd-skeleton {
  position: relative; overflow: hidden;
  background: var(--gd-surface-3); border-radius: var(--gd-r-card);
}
.gd-skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent);
  transform: translateX(-100%);
  animation: gdShimmer 1.4s var(--gd-ease) infinite;
}
.gd-skeleton-line { height: 12px; border-radius: 6px; }
.gd-skeleton-line.is-title { height: 16px; width: 40%; }
.gd-skeleton-poster { aspect-ratio: 3 / 4; }
.gd-skeleton-wide { aspect-ratio: 16 / 10; }
@keyframes gdShimmer { to { transform: translateX(100%); } }

/* ==== Empty / Error States ================================================= */
.gd-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 36px 20px; text-align: center;
  border: 1px dashed var(--gd-border-strong); border-radius: var(--gd-r-card);
}
.gd-empty-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--gd-surface-3); color: var(--gd-text-dim); }
.gd-empty-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gd-empty-title { font-size: 15px; font-weight: 700; color: var(--gd-text); }
.gd-empty-text { font-size: var(--gd-fs-sm); line-height: var(--gd-lh-body); color: var(--gd-text-mute); max-width: 46ch; }
.gd-empty-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
/* Fehlervariante: gleiche Anatomie, klare Fehlersprache (Icon + Titel + Retry) */
.gd-empty.is-error { border-color: rgba(217, 106, 106, .45); }
.gd-empty.is-error .gd-empty-icon { background: var(--gd-err-surface); color: var(--gd-err); }

/* ==== Premium-Lock (EIN Muster statt dwPaywall + discoverLock) ============= */
.gd-lock {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--gd-r-card);
  border: 1px solid var(--gd-premium-border);
  background: linear-gradient(160deg, var(--gd-premium-soft), rgba(232, 194, 104, .02));
}
.gd-lock-icon {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 12px; background: var(--gd-premium-grad); color: var(--gd-text-on-premium);
}
.gd-lock-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd-lock-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.gd-lock-title { font-size: var(--gd-fs-body); font-weight: 700; color: var(--gd-text); }
.gd-lock-text { font-size: var(--gd-fs-sm); line-height: var(--gd-lh-snug); color: var(--gd-text-mute); }
.gd-lock .gd-btn-premium { flex: 0 0 auto; }
/* Gestapelte Variante (Wizard-Ergebnis, Kalender-Sperre) */
.gd-lock.is-stack { flex-direction: column; align-items: center; text-align: center; padding: 22px 20px; }
.gd-lock.is-stack .gd-lock-body { justify-items: center; }
/* Cover-Teaser über dem Lock (Wizard) */
.gd-lock-covers { display: flex; gap: 8px; justify-content: center; }
.gd-lock-covers .gd-lock-cover {
  width: 58px; aspect-ratio: 3 / 4; border-radius: 8px;
  background-size: cover; background-position: center;
  border: 1px solid var(--gd-border-strong);
  filter: blur(2px) saturate(.85); opacity: .8;
}
/* «Für dich»-Teaser-Reihe (Discover, Free): Blur-Versprechen einlösen —
   Karten bleiben fokussier-/klickbar, wirken aber klar als Vorschau. */
.discoverTeaserRow { position: relative; }
.discoverTeaserRow > * { filter: blur(2px) saturate(.85); opacity: .8; }
/* :focus-within statt :focus-visible — das direkte Kind ist ein nicht
   fokussierbarer Row-Wrapper; aufgehellt wird, sobald ein Button darin
   Fokus hat (symmetrisch zu :hover, das ebenfalls am Wrapper hängt). */
.discoverTeaserRow > *:hover, .discoverTeaserRow > *:focus-within { filter: blur(1px) saturate(.95); opacity: .92; }
/* Lock-Abstand im Discover-/Stats-Kontext (ersetzt margin des alten discoverLock) */
.discoverSection .gd-lock { margin-top: 12px; }

/* ==== Toast ================================================================ */
/* Region wird von js/toast.js beim Boot erzeugt (aria-live=polite auf der
   Region — Ansage über Inhalts-Einfügung). Mobil über der Bottom-Bar,
   Desktop unten mittig. Auto-Dismiss pausiert bei Hover/Fokus. */
.gd-toast-region {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: var(--gd-z-toast);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: min(420px, calc(100vw - 32px));
}
@media (max-width: 640px) {
  .gd-toast-region { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
.gd-toast {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; padding: 12px 12px 12px 14px;
  background: var(--gd-surface-3); border: 1px solid var(--gd-border-strong);
  border-radius: var(--gd-r-card); box-shadow: var(--gd-shadow-2);
  color: var(--gd-text); font-size: var(--gd-fs-sm); line-height: var(--gd-lh-snug); font-weight: 600;
  pointer-events: auto;
  animation: gdToastIn var(--gd-dur-3) var(--gd-ease);
}
.gd-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity var(--gd-dur-2) var(--gd-ease), transform var(--gd-dur-2) var(--gd-ease); }
.gd-toast-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: var(--gd-info); }
.gd-toast-icon svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd-toast.is-ok .gd-toast-icon { color: var(--gd-ok); }
.gd-toast.is-err .gd-toast-icon { color: var(--gd-err); }
.gd-toast.is-premium .gd-toast-icon { color: var(--gd-premium); }
.gd-toast.is-err { border-color: rgba(217, 106, 106, .45); }
.gd-toast-msg { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.gd-toast-close {
  flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center;
  border: 0; border-radius: 7px; background: none; color: var(--gd-text-dim);
  cursor: pointer; padding: 0; box-shadow: none;
}
.gd-toast-close:hover { background: var(--gd-surface-2); color: var(--gd-text); transform: none; box-shadow: none; }
.gd-toast-close svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@keyframes gdToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==== Touch-Ziele =========================================================== */
/* Topbar-Cluster bleibt visuell 36px (0.43-Linie); auf Touch wird die
   Trefffläche per Overlay auf 44px erweitert — ohne Layout-Sprung. */
@media (pointer: coarse) {
  .gd-topbar .headerTopActions .settingBtn,
  .gd-topbar .headerTopActions .iconButton,
  .gd-topbar-toggle,
  .gd-search-btn,
  .gd-toast-close { position: relative; }
  .gd-topbar .headerTopActions .settingBtn::after,
  .gd-topbar .headerTopActions .iconButton::after,
  .gd-topbar-toggle::after,
  .gd-search-btn::after,
  .gd-toast-close::after {
    content: ""; position: absolute; inset: -4px; border-radius: inherit;
  }
}
