/**
 * news_deck.css — High-Performance GPU-Accelerated Spring Physics & Swipe Deck Styles
 * iShareStuff / TSecurity.de CMS ("News-Tinder" / Requirement R2)
 *
 * CD-B2-Pilot (17.09.2026): komplett in @layer components geschichtet.
 * Beweis der Neutralität: alle 31 Selektoren sind .ts-deck-*-exklusiv
 * (0 Überlappungen mit mobile/theme_3/design_system/default/modern_editorial/
 * community_chat/comments/article), alle :root-Variablen --ts-deck-*-exklusiv;
 * der unlayered-JS-Injektor (#ts-deck-styles, news_deck.js injectStyles) gewinnt
 * gegen components-Layer so wie vorher per Ladeordnung.
 */

@layer components {
:root {
  --ts-deck-border-radius: 1.25rem;
  --ts-deck-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  --ts-deck-card-bg-dark: rgba(15, 23, 42, 0.94);
  --ts-deck-card-border-dark: rgba(148, 163, 184, 0.22);
  --ts-deck-spring-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ts-deck-wrap {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.ts-deck-stack {
  position: relative;
  /* Mobile-First (19.09.2026): 48vh/420px statt 60vh/480px — Navbar+Kopf+
     Chips+Deck-Leiste (~339px) + Stapel + Dock müssen auf iPhone-Klasse
     (844px) in EINEN Viewport passen, sonst liegt das Dock unter dem Fold. */
  height: min(48vh, 420px);
  touch-action: none;
  outline: none;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

@media (min-width: 768px) {
  .ts-deck-stack {
    height: 520px;
  }
}

/* Welle 4 (06.09.): Ladezustand — der leere Stack reservierte 540px reine
   Leere; Skelett-Karte im Stack + Spinner in der Empty-Box machen den
   Zustand lesbar (Spinner via .ts-deck-is-loading aus news_deck.js). */
.ts-deck-stack:empty::before {
  content: "";
  position: absolute;
  inset: 6% 3%;
  border-radius: var(--ts-deck-border-radius, 1.25rem);
  background: linear-gradient(150deg, rgba(100, 116, 139, 0.14), rgba(100, 116, 139, 0.04));
  border: 1px dashed rgba(100, 116, 139, 0.45);
  pointer-events: none;
}

.ts-deck-empty .ts-deck-loading-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(100, 116, 139, 0.3);
  border-top-color: #0284c7;
  display: none;
}

.ts-deck-empty.ts-deck-is-loading .ts-deck-loading-spinner {
  display: block;
  animation: tsDeckSpin 0.9s linear infinite;
}

@keyframes tsDeckSpin {
  to { transform: rotate(360deg); }
}

.ts-deck-stack:focus-visible {
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.55);
  border-radius: var(--ts-deck-border-radius);
}

.ts-deck-card {
  position: absolute;
  inset: 0;
  display: flex;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ts-deck-card.ts-deck-dragging {
  cursor: grabbing;
  transition: none !important;
}

.ts-deck-card.ts-deck-springing {
  transition: transform 0.45s var(--ts-deck-spring-easing), opacity 0.35s ease !important;
}

.ts-deck-card.ts-deck-fly-out {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease !important;
  pointer-events: none;
}

.ts-deck-card-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 0.5rem;
  border-radius: var(--ts-deck-border-radius);
  background: #0f172a;
  border: 1px solid var(--ts-deck-card-border-dark);
  box-shadow: var(--ts-deck-shadow);
  overflow: hidden;
}

body.light .ts-deck-card-inner,
:root[data-bs-theme="light"] .ts-deck-card-inner,
html[data-bs-theme="light"] .ts-deck-card-inner {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

body.light .ts-deck-card-body,
:root[data-bs-theme="light"] .ts-deck-card-body,
html[data-bs-theme="light"] .ts-deck-card-body {
  background: #ffffff !important;
}

body.light .ts-deck-title,
:root[data-bs-theme="light"] .ts-deck-title,
html[data-bs-theme="light"] .ts-deck-title {
  color: #0f172a !important;
}

body.light .ts-deck-excerpt,
:root[data-bs-theme="light"] .ts-deck-excerpt,
html[data-bs-theme="light"] .ts-deck-excerpt {
  color: #334155 !important;
}

.ts-deck-title {
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-deck-excerpt {
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-deck-cover--v0 { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%); }
.ts-deck-cover--v1 { background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #065f46 100%); }
.ts-deck-cover--v2 { background: linear-gradient(135deg, #18181b 0%, #3b0764 50%, #581c87 100%); }
.ts-deck-cover--v3 { background: linear-gradient(135deg, #111827 0%, #1e293b 50%, #0f766e 100%); }

.ts-deck-cover-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.45;
}

.ts-deck-overlay {
  position: absolute;
  top: 1rem;
  padding: 0.45rem 1rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  border: 3px solid currentColor;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 25;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
}

/* v3 (19.09.2026): OBEN = LESEN (cyan), RECHTS = VOR (rot), LINKS und UNTEN =
   ZURÜCK (amber) — die Overlays folgen der neuen Gesten-/Tastatur-Semantik. */
.ts-deck-overlay-read {
  left: 50%;
  top: 1rem;
  transform: translate3d(-50%, 0, 0);
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.18);
}

.ts-deck-overlay-skip,
.ts-deck-overlay-next,
.ts-deck-overlay-like {
  right: 1.25rem;
  left: auto;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  transform: translate3d(0, 0, 0) rotate(10deg);
}

.ts-deck-overlay-back {
  left: 1.25rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  transform: translate3d(0, 0, 0) rotate(-10deg);
}

.ts-deck-overlay-prev,
.ts-deck-overlay-undo {
  left: 50%;
  bottom: 1rem;
  top: auto;
  transform: translate3d(-50%, 0, 0);
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
}

.ts-deck-actions button {
  min-width: 48px;
  min-height: 48px;
  transition: transform 0.2s var(--ts-deck-spring-easing), background-color 0.15s ease, box-shadow 0.15s ease;
}

.ts-deck-actions button:hover {
  transform: scale(1.08);
}

.ts-deck-actions button:active {
  transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-card,
  .ts-deck-card.ts-deck-springing,
  .ts-deck-card.ts-deck-fly-out,
  .ts-deck-actions button {
    transition: none !important;
  }
}

/* ==========================================================================
   ND-Rework (17.09.2026) — Kategorie-Chips, Tastatur-Legende, Voting-
   Popover und Artikel-Reader. Alle Selektoren .ts-deck-*-exklusiv
   (B2-Pilot-Fortführung: 0 Überlappungen mit fremden Zonen).
   ========================================================================== */

.ts-deck-page {
  max-width: 720px;
}

/* --- Tastatur-Legende (Standalone-Seite) --- */
.ts-deck-key-legend kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom-width: 2px;
  color: inherit;
  font-size: 0.85em;
  text-align: center;
}

/* --- RSS-Kategorie-Chips (CMS-Struktur) --- */
.ts-deck-cat-bar {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
}

:root[data-bs-theme="light"] .ts-deck-cat-bar,
html[data-bs-theme="light"] .ts-deck-cat-bar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

.ts-deck-cat-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.ts-deck-cat-scroll::-webkit-scrollbar {
  height: 6px;
}

.ts-deck-cat-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 3px;
}

.ts-deck-cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 0.82rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ts-deck-cat-chip:hover,
.ts-deck-cat-chip:focus-visible {
  color: #e2e8f0;
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(8, 51, 68, 0.65);
}

.ts-deck-cat-chip.active {
  color: #0f172a;
  background: #06b6d4;
  border-color: #06b6d4;
  font-weight: 600;
}

.ts-deck-cat-chip .ts-deck-cat-indent {
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px dotted rgba(148, 163, 184, 0.6);
  border-bottom: 2px dotted rgba(148, 163, 184, 0.6);
  display: inline-block;
}

.ts-deck-cat-chip.active .ts-deck-cat-indent {
  border-color: rgba(15, 23, 42, 0.55);
}

.ts-deck-cat-count {
  font-size: 0.68rem;
  padding: 0.05rem 0.4rem;
  border-radius: 50rem;
  background: rgba(148, 163, 184, 0.2);
  font-variant-numeric: tabular-nums;
}

.ts-deck-cat-chip.active .ts-deck-cat-count {
  background: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-cat-chip,
html[data-bs-theme="light"] .ts-deck-cat-chip {
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.15);
}

:root[data-bs-theme="light"] .ts-deck-cat-chip.active,
html[data-bs-theme="light"] .ts-deck-cat-chip.active {
  background: #0891b2;
  border-color: #0891b2;
  color: #f8fafc;
}

/* --- Voting/Rating-Popover (Taste V) --- */
.ts-deck-vote-popover {
  position: absolute;
  left: 50%;
  bottom: 4.6rem;
  transform: translateX(-50%);
  z-index: 40;
  width: min(92%, 340px);
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:root[data-bs-theme="light"] .ts-deck-vote-popover,
html[data-bs-theme="light"] .ts-deck-vote-popover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(217, 119, 6, 0.35);
}

.ts-deck-vote-title {
  color: #fbbf24;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.ts-deck-vote-title .ts-deck-vote-hint {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
}

.ts-deck-react-btn {
  min-width: 40px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.55);
  transition: transform 0.15s var(--ts-deck-spring-easing), border-color 0.15s ease, background-color 0.15s ease;
}

.ts-deck-react-btn:hover {
  transform: scale(1.08);
  border-color: rgba(6, 182, 212, 0.55);
}

.ts-deck-react-btn.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
}

:root[data-bs-theme="light"] .ts-deck-react-btn,
html[data-bs-theme="light"] .ts-deck-react-btn {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(15, 23, 42, 0.15);
}

.ts-deck-react-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.ts-deck-react-count {
  font-size: 0.66rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.ts-deck-react-btn.active .ts-deck-react-count {
  color: #f59e0b;
}

/* --- Artikel-Reader (Links = Lesen) --- */
.ts-deck-reader {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: tsDeckReaderFade 0.2s ease;
}

@keyframes tsDeckReaderFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.ts-deck-reader-open {
  overflow: hidden;
}

.ts-deck-reader-panel {
  position: relative;
  width: min(100%, 760px);
  height: min(94vh, 940px);
  display: flex;
  flex-direction: column;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: none;
  border-radius: 1.35rem 1.35rem 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: tsDeckReaderSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

@keyframes tsDeckReaderSlide {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

:root[data-bs-theme="light"] .ts-deck-reader-panel,
html[data-bs-theme="light"] .ts-deck-reader-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

.ts-deck-reader-grid {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ts-deck-reader-header {
  padding: 1.1rem 1.25rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, #0b1220 78%, rgba(11, 18, 32, 0));
}

:root[data-bs-theme="light"] .ts-deck-reader-header,
html[data-bs-theme="light"] .ts-deck-reader-header {
  background: linear-gradient(180deg, #f8fafc 78%, rgba(248, 250, 252, 0));
}

.ts-deck-reader-title {
  color: #e2e8f0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

:root[data-bs-theme="light"] .ts-deck-reader-title,
html[data-bs-theme="light"] .ts-deck-reader-title {
  color: #0f172a;
}

.ts-deck-reader-media img,
.ts-deck-reader-media iframe {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  max-height: 340px;
  object-fit: cover;
}

.ts-deck-reader-body {
  padding: 1rem 1.25rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ts-deck-reader-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
}

.ts-deck-reader-body pre {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.6rem;
  padding: 0.85rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

.ts-deck-reader-body a {
  color: #22d3ee;
}

:root[data-bs-theme="light"] .ts-deck-reader-body,
html[data-bs-theme="light"] .ts-deck-reader-body {
  color: #334155;
}

:root[data-bs-theme="light"] .ts-deck-reader-body a,
html[data-bs-theme="light"] .ts-deck-reader-body a {
  color: #0e7490;
}

.ts-deck-reader-footer {
  margin-top: auto;
  padding: 0.9rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  position: sticky;
  bottom: 0;
}

:root[data-bs-theme="light"] .ts-deck-reader-footer,
html[data-bs-theme="light"] .ts-deck-reader-footer {
  background: rgba(241, 245, 249, 0.92);
  border-top-color: rgba(15, 23, 42, 0.1);
}

.ts-deck-reader-votebox {
  margin-bottom: 0.6rem;
}

.ts-deck-reader-error {
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-reader,
  .ts-deck-reader-panel {
    animation: none !important;
  }
}

/* ==========================================================================
   Mobile-First-Umbau (19.09.2026) — Bedienung NACH dem Deck:
   ?-Coach-Button, Gesten-Legende (Smartphone), Tastatur-Legende (Desktop),
   Einmal-Hinweis-Strip und animierter Bedienungs-Coach. Alle Selektoren
   bleiben .ts-deck-*-exklusiv (B2-Pilot-Vertrag).
   ========================================================================== */

/* --- ?-Button in der Deck-Kopfzeile (44px Touch-Ziel) --- */
.ts-deck-help-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.2s var(--ts-deck-spring-easing), border-color 0.15s ease, color 0.15s ease;
}

.ts-deck-help-btn:hover,
.ts-deck-help-btn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.55);
  transform: scale(1.06);
}

:root[data-bs-theme="light"] .ts-deck-help-btn,
html[data-bs-theme="light"] .ts-deck-help-btn {
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.15);
}

:root[data-bs-theme="light"] .ts-deck-help-btn:hover,
:root[data-bs-theme="light"] .ts-deck-help-btn:focus-visible,
html[data-bs-theme="light"] .ts-deck-help-btn:hover,
html[data-bs-theme="light"] .ts-deck-help-btn:focus-visible {
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.55);
}

/* --- Gesten-Legende (Smartphone, <768px — Erklärung ohne JS lesbar) --- */
.ts-deck-gesture-legend {
  margin: 1rem auto 0;
  max-width: 480px;
  padding: 0.85rem 1rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
}

:root[data-bs-theme="light"] .ts-deck-gesture-legend,
html[data-bs-theme="light"] .ts-deck-gesture-legend {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

.ts-deck-gesture-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: #22d3ee;
}

:root[data-bs-theme="light"] .ts-deck-gesture-head,
html[data-bs-theme="light"] .ts-deck-gesture-head {
  color: #0e7490;
}

.ts-deck-gesture-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.ts-deck-gesture-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border-radius: 50rem;
  border: 1px solid rgba(6, 182, 212, 0.45);
  background: rgba(8, 51, 68, 0.5);
  color: #67e8f9;
  font-size: 0.8rem;
  white-space: nowrap;
}

.ts-deck-gesture-more:hover,
.ts-deck-gesture-more:focus-visible {
  border-color: rgba(6, 182, 212, 0.8);
  color: #a5f3fc;
}

:root[data-bs-theme="light"] .ts-deck-gesture-more,
html[data-bs-theme="light"] .ts-deck-gesture-more {
  background: rgba(207, 250, 254, 0.7);
  color: #155e75;
  border-color: rgba(8, 145, 178, 0.4);
}

.ts-deck-gesture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ts-deck-gesture-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.4;
}

:root[data-bs-theme="light"] .ts-deck-gesture-list li,
html[data-bs-theme="light"] .ts-deck-gesture-list li {
  color: #334155;
}

.ts-deck-gesture-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  border: 1.5px solid;
  font-size: 1.05rem;
  background: rgba(30, 41, 59, 0.5);
}

:root[data-bs-theme="light"] .ts-deck-gesture-ico,
html[data-bs-theme="light"] .ts-deck-gesture-ico {
  background: rgba(241, 245, 249, 0.9);
}

/* Richtungs-Kodierung folgt den Karten-Overlays (v3): Oben Lesen cyan,
   Rechts Vor rot, Links/Unten Zurück amber, Tipp neutral. */
.ts-gico-up    { border-color: rgba(6, 182, 212, 0.65); color: #22d3ee; }
.ts-gico-right { border-color: rgba(239, 68, 68, 0.6); color: #f87171; }
.ts-gico-left  { border-color: rgba(245, 158, 11, 0.6); color: #fbbf24; }
.ts-gico-down  { border-color: rgba(245, 158, 11, 0.6); border-style: dashed; color: #fbbf24; }
.ts-gico-tap   { border-color: rgba(148, 163, 184, 0.55); color: #cbd5e1; }

:root[data-bs-theme="light"] .ts-gico-left,
html[data-bs-theme="light"] .ts-gico-left { color: #b45309; }
:root[data-bs-theme="light"] .ts-gico-right,
html[data-bs-theme="light"] .ts-gico-right { color: #dc2626; }
:root[data-bs-theme="light"] .ts-gico-up,
html[data-bs-theme="light"] .ts-gico-up { color: #0e7490; }
:root[data-bs-theme="light"] .ts-gico-down,
html[data-bs-theme="light"] .ts-gico-down { color: #b45309; }
:root[data-bs-theme="light"] .ts-gico-tap,
html[data-bs-theme="light"] .ts-gico-tap { color: #475569; }

.ts-deck-gesture-tap {
  border-bottom: 2px dotted rgba(148, 163, 184, 0.7);
}

.ts-deck-gesture-note {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  font-size: 0.78rem !important;
}

/* --- Einmal-Hinweis-Strip (in-flow unter dem Dock, Smartphone) --- */
.ts-deck-hint-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0.75rem auto 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(8, 51, 68, 0.45);
  animation: tsDeckHintIn 0.35s ease;
}

:root[data-bs-theme="light"] .ts-deck-hint-strip,
html[data-bs-theme="light"] .ts-deck-hint-strip {
  background: rgba(207, 250, 254, 0.55);
  border-color: rgba(8, 145, 178, 0.35);
}

@keyframes tsDeckHintIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ts-deck-hint-ico {
  flex-shrink: 0;
  font-size: 1.3rem;
  animation: tsDeckHintPulse 1.6s ease-in-out infinite;
}

@keyframes tsDeckHintPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ts-deck-hint-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #cbd5e1;
}

:root[data-bs-theme="light"] .ts-deck-hint-text,
html[data-bs-theme="light"] .ts-deck-hint-text {
  color: #155e75;
}

.ts-deck-hint-actions {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ts-deck-hint-btn {
  min-height: 44px;
  padding: 0.3rem 0.8rem;
  border-radius: 50rem;
  border: 1px solid rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  font-size: 0.78rem;
  white-space: nowrap;
}

:root[data-bs-theme="light"] .ts-deck-hint-btn,
html[data-bs-theme="light"] .ts-deck-hint-btn {
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.5);
  background: rgba(8, 145, 178, 0.12);
}

.ts-deck-hint-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -0.6rem -0.75rem -0.6rem 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
}

.ts-deck-hint-close:hover,
.ts-deck-hint-close:focus-visible {
  color: #e2e8f0;
}

/* --- Bedienungs-Coach (Dialog, unten als Sheet) --- */
.ts-deck-coach {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: tsDeckReaderFade 0.2s ease;
}

body.ts-deck-coach-open {
  overflow: hidden;
}

.ts-deck-coach-panel {
  width: min(100%, 460px);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1.35rem 1.35rem 0 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: none;
  background: #0b1220;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
  animation: tsDeckCoachSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

:root[data-bs-theme="light"] .ts-deck-coach-panel,
html[data-bs-theme="light"] .ts-deck-coach-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

@media (min-width: 768px) {
  .ts-deck-coach {
    align-items: center;
  }
  .ts-deck-coach-panel {
    border-radius: 1.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }
}

@keyframes tsDeckCoachSlide {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ts-deck-coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ts-deck-coach-title {
  color: #22d3ee;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

:root[data-bs-theme="light"] .ts-deck-coach-title,
html[data-bs-theme="light"] .ts-deck-coach-title {
  color: #0e7490;
}

.ts-deck-coach-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -0.5rem -0.5rem -0.5rem 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  font-size: 1rem;
}

.ts-deck-coach-close:hover,
.ts-deck-coach-close:focus-visible {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.28);
}

.ts-deck-coach-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ts-deck-coach-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.5);
}

:root[data-bs-theme="light"] .ts-deck-coach-row,
html[data-bs-theme="light"] .ts-deck-coach-row {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

.ts-deck-coach-txt {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

:root[data-bs-theme="light"] .ts-deck-coach-txt,
html[data-bs-theme="light"] .ts-deck-coach-txt {
  color: #0f172a;
}

.ts-deck-coach-sub {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.4;
}

:root[data-bs-theme="light"] .ts-deck-coach-sub,
html[data-bs-theme="light"] .ts-deck-coach-sub {
  color: #475569;
}

/* Demo-Kachel: Mini-Karte + wandernder Punkt (Richtung via data-dir) */
.ts-deck-coach-demo {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 44px;
  border-radius: 0.6rem;
  background: rgba(100, 116, 139, 0.14);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  overflow: hidden;
}

.ts-deck-coach-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 18px;
  margin: -9px 0 0 -13px;
  border-radius: 3px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

:root[data-bs-theme="light"] .ts-deck-coach-card,
html[data-bs-theme="light"] .ts-deck-coach-card {
  background: #e2e8f0;
}

.ts-deck-coach-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.85);
}

.ts-deck-coach-row[data-dir="left"] .ts-deck-coach-dot { animation: tsDeckDotLeft 1.8s ease-in-out infinite; }
.ts-deck-coach-row[data-dir="right"] .ts-deck-coach-dot { animation: tsDeckDotRight 1.8s ease-in-out infinite; }
.ts-deck-coach-row[data-dir="up"] .ts-deck-coach-dot { animation: tsDeckDotUp 1.8s ease-in-out infinite; }
.ts-deck-coach-row[data-dir="down"] .ts-deck-coach-dot { animation: tsDeckDotDown 1.8s ease-in-out infinite; }
.ts-deck-coach-row[data-dir="tap"] .ts-deck-coach-dot { animation: tsDeckDotTap 1.5s ease-in-out infinite; }

@keyframes tsDeckDotLeft {
  0%, 10% { transform: translateX(8px); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateX(-18px); opacity: 1; }
  88%, 100% { transform: translateX(-18px); opacity: 0; }
}

@keyframes tsDeckDotRight {
  0%, 10% { transform: translateX(-8px); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateX(18px); opacity: 1; }
  88%, 100% { transform: translateX(18px); opacity: 0; }
}

@keyframes tsDeckDotUp {
  0%, 10% { transform: translateY(8px); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateY(-13px); opacity: 1; }
  88%, 100% { transform: translateY(-13px); opacity: 0; }
}

@keyframes tsDeckDotDown {
  0%, 10% { transform: translateY(-8px); opacity: 0; }
  22% { opacity: 1; }
  70% { transform: translateY(13px); opacity: 1; }
  88%, 100% { transform: translateY(13px); opacity: 0; }
}

@keyframes tsDeckDotTap {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  45% { transform: scale(2); opacity: 1; }
}

/* Desktop-Variante: kbd-Chips statt Demo-Kachel */
.ts-deck-coach-keys {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 56px;
  min-height: 44px;
  border-radius: 0.6rem;
  background: rgba(100, 116, 139, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ts-deck-coach-keys kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom-width: 2px;
  color: inherit;
  font-size: 0.85em;
  text-align: center;
}

.ts-deck-coach-note {
  margin: 0 0 0.85rem;
  color: #94a3b8;
}

:root[data-bs-theme="light"] .ts-deck-coach-note,
html[data-bs-theme="light"] .ts-deck-coach-note {
  color: #475569;
}

.ts-deck-coach-foot {
  display: flex;
  justify-content: center;
}

.ts-deck-coach-start {
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-coach,
  .ts-deck-coach-panel {
    animation: none !important;
  }
  .ts-deck-coach-dot,
  .ts-deck-hint-ico,
  .ts-deck-hint-strip {
    animation: none !important;
  }
}

  /* ==================================================================
     R9d (19.09.2026) — Walk-v6-Kontrastheiler (8 harte Verletzungen).
     Alles im .ts-deck-*-exklusiven Scope (B2-Pilotvertrag erhalten).

     1) Kategorie-Chips vs. generische a{color:var(--color-text-link)}:
        Diese Datei liegt KOMPLETT in @layer components — die unlayered
        Link-Basisregel schlägt jede Chip-Farbe egal welcher Spezifität
        (css-cascade-5). Walk-Beweis: aktiver Chip Dark trug sky-300 auf
        cyan-500 (1.1:1), Light cyan-900 auf cyan-600 (2.1:1). Layered
        !important schlägt unlayered normal — Farbverträge jetzt durch-
        setzungssicher (Dark: #0f172a auf #06b6d4 5.0:1; Light: #f8fafc
        auf #0891b2 4.6:1).
     ================================================================== */
  .ts-deck-cat-chip { color: #cbd5e1 !important; }
  .ts-deck-cat-chip:hover,
  .ts-deck-cat-chip:focus-visible { color: #e2e8f0 !important; }
  .ts-deck-cat-chip.active { color: #0f172a !important; }
  :root[data-bs-theme="light"] .ts-deck-cat-chip,
  html[data-bs-theme="light"] .ts-deck-cat-chip { color: #334155 !important; }
  :root[data-bs-theme="light"] .ts-deck-cat-chip.active,
  html[data-bs-theme="light"] .ts-deck-cat-chip.active { color: #f8fafc !important; }

  /* 2) Cover = bewusste Dunkel-Insel (Klasse B, CSS_THEME_FLAECHEN_VERTRAG):
        feste Gradient-Flächen in BEIDEN Schemas; die generichen Light-
        Flips machten .text-light-Kinder + Hero-Emoji im Light dunkel
        (1.1-1.3:1, Walk v6). Insel-Ink pinnen statt flippen (W13-/
        #news-popup-Muster). */
  .ts-deck-cover { color: #e2e8f0; }
  html[data-bs-theme="light"] .ts-deck-cover,
  html.light .ts-deck-cover { color: #e2e8f0; }
  html[data-bs-theme="light"] .ts-deck-cover .text-light,
  html.light .ts-deck-cover .text-light,
  body.light .ts-deck-cover .text-light { color: #f8fafc !important; }

  /* 3) Gesten-Overlays im Light: cyan-500/amber-500/red-500 trugen auf
        weißer Karte 2.1-2.4:1. Dunkle 700er-Stufen + dezentere Tints
        (cyan-700 5.5:1, amber-700 5.6:1, red-700 5.9:1 auf Weiß-Blend).
        Dark unverändert (helle Farben auf dunkler Karte). */
  :root[data-bs-theme="light"] .ts-deck-overlay-read,
  html[data-bs-theme="light"] .ts-deck-overlay-read {
    color: #0e7490;
    background: rgba(14, 116, 144, 0.14);
  }
  :root[data-bs-theme="light"] .ts-deck-overlay-back,
  :root[data-bs-theme="light"] .ts-deck-overlay-prev,
  :root[data-bs-theme="light"] .ts-deck-overlay-undo,
  html[data-bs-theme="light"] .ts-deck-overlay-back,
  html[data-bs-theme="light"] .ts-deck-overlay-prev,
  html[data-bs-theme="light"] .ts-deck-overlay-undo {
    color: #b45309;
    background: rgba(180, 83, 9, 0.13);
  }
  :root[data-bs-theme="light"] .ts-deck-overlay-skip,
  :root[data-bs-theme="light"] .ts-deck-overlay-next,
  :root[data-bs-theme="light"] .ts-deck-overlay-like,
  html[data-bs-theme="light"] .ts-deck-overlay-skip,
  html[data-bs-theme="light"] .ts-deck-overlay-next,
  html[data-bs-theme="light"] .ts-deck-overlay-like {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.12);
  }
}
/* R9d (19.09.2026) — Cover-Dunkel-Insel vs. Light-Flip, NACHTRAG:
   Der generische Flip (html[data-theme=light] .text-light {…!important})
   liegt in default.css @layer BOOTSTRAP; css-cascade-5 invertiert die
   Layer-Rangfolge fuer !important — der FRUEHERE Layer gewinnt. components
   (hier) und unlayered verloren beide gegen bootstrap-important (bewiesen:
   addStyleTag-Niederlage, Inline-important-Sieg). bootstrap ist der ERSTE Layer — important dort schlaegt jede
   spaetere/unlayered important-Regel. Einziger verlaesslicher Weg: GLEICHER
   Layer (@layer bootstrap, vereinigt sich mit default.css) + hoehere
   Spezifitaet via .ts-deck-cover-Scope — exakt das W13/#news-popup-Rezept.
   Klasse-B-Vertrag. */
@layer bootstrap {
html[data-bs-theme="light"] .ts-deck-cover .text-light,
html.light .ts-deck-cover .text-light,
body.light .ts-deck-cover .text-light {
  color: #f8fafc !important;
}
}

/* --- Filmstreifen-Modus (20.09.2026): kontinuierlich laufende Karten ---
   Der Streifen ersetzt den Kartenstapel im selben Layout-Slot: Viewport mit
   verstecktem Overflow, Track als Flex-Reihe (GPU-Transform je rAF), die
   mittige Karte .is-current ist hervorgehoben. touch-action: pan-y lässt
   vertikales Seitenscrollen leben, horizontale Drags gehören dem Streifen. */
.ts-deck-strip {
  position: relative;
  height: min(48vh, 420px);
  outline: none;
  margin-bottom: 0.25rem;
}

.ts-deck-strip:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.7);
  outline-offset: 4px;
  border-radius: 1.25rem;
}

.ts-deck-strip-viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  border-radius: 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.ts-deck-strip-viewport:active {
  cursor: grabbing;
}

.ts-deck-strip-track {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 0.35rem 0;
  will-change: transform;
}

.ts-deck-strip-card {
  position: relative;
  flex: 0 0 auto;
  width: min(72vw, 250px);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  opacity: 0.55;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.3s var(--ts-deck-spring-easing), border-color 0.25s ease, box-shadow 0.25s ease;
}

.ts-deck-strip-card.is-current {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(6, 182, 212, 0.65);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.18), 0 10px 28px rgba(0, 0, 0, 0.42);
}

.ts-deck-strip-card:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.8);
  outline-offset: 2px;
}

.ts-deck-strip-media {
  position: relative;
  flex: 0 0 auto;
  height: 46%;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.6);
}

.ts-deck-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ts-deck-strip-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.ts-deck-strip-cover span {
  font-size: 2rem;
  opacity: 0.85;
}

.ts-deck-strip-cover small {
  color: rgba(226, 232, 240, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ts-deck-strip-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem 0.6rem;
  min-height: 0;
}

.ts-deck-strip-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-deck-strip-meta {
  flex: 1 0 auto;
}

.ts-deck-strip-foot {
  margin-top: auto;
  min-height: 1.35rem;
}

.ts-deck-strip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s var(--ts-deck-spring-easing), border-color 0.15s ease, color 0.15s ease;
}

.ts-deck-strip-nav:hover,
.ts-deck-strip-nav:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.ts-deck-strip-nav-prev { left: 0.35rem; }
.ts-deck-strip-nav-next { right: 0.35rem; }

.ts-deck-strip-hud {
  position: absolute;
  top: 0.3rem;
  right: 0.15rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.55rem 0.15rem 0.15rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ts-deck-strip-pausebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1;
}

.ts-deck-strip-pausebtn:hover,
.ts-deck-strip-pausebtn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
}

.ts-deck-strip-counter {
  color: #94a3b8;
  font-size: 0.72rem;
}

/* Modus-Schalter in der Kopfleiste (Filmstreifen ↔ Stapel) — gleiche
   Optik wie der ?-Hilfsknopf daneben. */
.ts-deck-mode-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.2s var(--ts-deck-spring-easing), border-color 0.15s ease, color 0.15s ease;
}

.ts-deck-mode-btn:hover,
.ts-deck-mode-btn:focus-visible {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.6);
  transform: scale(1.08);
}

:root[data-bs-theme="light"] .ts-deck-strip-card,
html[data-bs-theme="light"] .ts-deck-strip-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-bs-theme="light"] .ts-deck-strip-title,
html[data-bs-theme="light"] .ts-deck-strip-title {
  color: #0f172a;
}

:root[data-bs-theme="light"] .ts-deck-strip-nav,
:root[data-bs-theme="light"] .ts-deck-strip-pausebtn,
:root[data-bs-theme="light"] .ts-deck-strip-hud,
:root[data-bs-theme="light"] .ts-deck-mode-btn,
html[data-bs-theme="light"] .ts-deck-strip-nav,
html[data-bs-theme="light"] .ts-deck-strip-pausebtn,
html[data-bs-theme="light"] .ts-deck-strip-hud,
html[data-bs-theme="light"] .ts-deck-mode-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.18);
}

:root[data-bs-theme="light"] .ts-deck-strip-counter,
html[data-bs-theme="light"] .ts-deck-strip-counter {
  color: #64748b;
}

@media (min-width: 768px) {
  .ts-deck-strip-card {
    width: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-deck-strip-track,
  .ts-deck-strip-card {
    transition: none;
  }
}
