:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --border-color: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0284c7;
  --gold: #f59e0b;
  --success: #22c55e;
  --danger: #ef4444;
  --board-light: #e2d5b5;
  --board-dark: #8b5a2b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #8b5cf6;
  background-image:
    radial-gradient(ellipse at center, rgba(216, 180, 254, 0.45) 0%, rgba(192, 132, 252, 0.35) 55%, rgba(147, 51, 234, 0.55) 100%),
    url('/images/green-felt.svg');
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 260px 260px;
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.topbar {
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-profile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.user-profile-group #btnMyProfile {
  padding: 0.15rem 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile-group #btnFriends {
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Quick Audio Dropdown */
.quick-audio-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.audio-quick-btn {
  font-size: 1.15rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
}

.audio-quick-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.quick-audio-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: var(--radius-md, 8px);
  padding: 0.75rem 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quick-audio-dropdown.hidden {
  display: none !important;
}

.quick-audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  padding-bottom: 0.4rem;
}

.quick-audio-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-color, #f8fafc);
}

.quick-audio-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.quick-audio-checkbox-label input {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.quick-audio-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-audio-slider-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.quick-audio-slider-info #quickAudioVolumeLabel {
  font-weight: 700;
  color: var(--primary, #38bdf8);
}

.quick-audio-slider-group input[type="range"] {
  width: 100%;
  cursor: pointer;
}

.elo-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.container {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem;
  flex: 1;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.card-header h2, .card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
}

.btn-primary:hover {
  background: #7dd3fc;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #475569;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-elevated);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--accent);
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: #0f172a;
  padding: 0.3rem;
  border-radius: 0.55rem;
  margin-bottom: 1.25rem;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 0.4rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
}

.auth-form h2 {
  margin-bottom: 0.25rem;
}

.auth-form p {
  margin-bottom: 1.1rem;
}

.demo-login {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.demo-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.demo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 1.25rem;
}

.lobby-main, .lobby-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rooms-card-header {
  flex-wrap: wrap;
}

.rooms-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quick-join {
  display: flex;
  gap: 0.4rem;
}

.quick-join input {
  width: 170px;
  text-transform: uppercase;
}

.game-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.game-filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.15rem;
}

.game-filter-chip {
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-filter-chip:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.game-filter-chip.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent);
  color: #e0f2fe;
}

.game-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.game-option {
  position: relative;
  overflow: hidden;
  height: 185px;
  min-height: 185px;
  max-height: 185px;
  box-sizing: border-box;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.game-option[data-game="schach"] {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.76) 55%, rgba(15, 23, 42, 0.56) 100%),
    url('/images/games/schach.svg');
}

.game-option[data-game="dame"] {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.76) 55%, rgba(15, 23, 42, 0.56) 100%),
    url('/images/games/dame.svg');
}

.game-option[data-game="muehle"] {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.76) 55%, rgba(15, 23, 42, 0.56) 100%),
    url('/images/games/muehle.svg');
}

.game-option[data-game="maumau"] {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.76) 55%, rgba(15, 23, 42, 0.56) 100%),
    url('/images/games/maumau.svg');
}

.game-option[data-game="texas_holdem"] {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.76) 55%, rgba(15, 23, 42, 0.56) 100%),
    url('/images/games/texas_holdem.svg');
}

/* Rote Banderole "Ab 18" in der unteren rechten Ecke */
.game-ribbon-ab18 {
  position: absolute;
  bottom: 15px;
  right: -28px;
  width: 110px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  box-sizing: border-box;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 2px rgba(250, 204, 21, 0.5);
  border-top: 1.5px solid #facc15;
  border-bottom: 1.5px solid #ca8a04;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

.game-option:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.65);
}

.game-option input {
  display: none;
}

.game-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 20px rgba(14, 165, 233, 0.22);
}

/* Favoriten-Hervorhebung in Gold */
.game-option.is-favorite:hover {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.22);
}

.game-option.is-favorite.selected {
  border-color: #facc15;
  box-shadow: 0 0 0 1px #facc15, 0 8px 24px rgba(234, 179, 8, 0.35);
}

.game-option.is-favorite.selected:hover {
  border-color: #fef08a;
  box-shadow: 0 0 0 1px #fef08a, 0 8px 26px rgba(250, 204, 21, 0.42);
}

.game-option-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.25rem;
}

.game-title {
  font-weight: 800;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  display: block;
}

.game-players {
  font-size: 0.86rem;
  font-weight: 600;
  color: #e2e8f0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.2rem;
}

.game-desc-slot {
  margin-bottom: 0.35rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.game-desc {
  font-size: 0.77rem;
  color: #cbd5e1;
  line-height: 1.32;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.65em;
  margin: 0;
}

/* Button zur Spielregel-Seite & Deck-Schmiede: Ersetzen die Beschreibung bei Hover */
.game-option .btn-rules-link,
.game-option .btn-decksmith-link {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.65rem;
  border-radius: 0.45rem;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: all 0.15s ease;
  z-index: 3;
}

.game-option .btn-rules-link {
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid var(--accent);
  color: #38bdf8;
}

.game-option .btn-rules-link:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
  transform: translateY(-1px);
}

.game-option .btn-decksmith-link {
  background: rgba(234, 179, 8, 0.22);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fef08a;
}

.game-option .btn-decksmith-link:hover {
  background: #eab308;
  color: #0f172a;
  border-color: #fef08a;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.6);
  transform: translateY(-1px);
}

.game-option:hover .btn-rules-link:active,
.game-option:hover .btn-decksmith-link:active {
  transform: translateY(0);
}

.game-option:hover .game-desc {
  display: none !important;
}

.game-option:hover .btn-rules-link,
.game-option:hover .btn-decksmith-link {
  display: inline-flex !important;
}

.game-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 0.35rem;
  padding-right: 32px;
}

.game-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.create-room-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.create-room-controls .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.private-room-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease;
}

.private-room-toggle:hover {
  border-color: var(--accent);
}

.private-room-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.room-item {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.room-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.room-item-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.room-item-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.room-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-elevated);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-game {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.badge-waiting {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.online-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.online-heading {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0;
}

#onlineCountBadge {
  white-space: normal;
  text-align: right;
  line-height: 1.2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: fit-content;
  max-width: fit-content;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  flex-shrink: 0;
}

#onlineCountBadge.has-friends {
  border-radius: 0.45rem;
  padding: 0.18rem 0.45rem;
  gap: 0.1rem;
}

.online-count-main,
.online-count-friends,
.online-count-davon {
  white-space: nowrap;
}

.badge-playing {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.leaderboard-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  background: #0f172a;
  padding: 0.25rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.leader-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.leader-tab.active {
  background: var(--bg-card);
  color: var(--accent);
}

.leaderboard-list, .matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: #0f172a;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: background 0.15s;
}

.leader-row:hover {
  background: #172554;
}

.leader-rank {
  font-weight: 700;
  color: var(--gold);
  width: 1.6rem;
}

.online-dot {
  color: var(--success);
  font-size: 0.75rem;
  margin-right: 0.45rem;
}

.leader-user {
  flex: 1;
  font-weight: 600;
}

.leader-stats {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-right: 0.6rem;
}

.match-row {
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.match-row.match-row-won {
  border-left: 3px solid #22c55e;
}

.match-row.match-row-lost {
  border-left: 3px solid #ef4444;
}

.match-header-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  line-height: 1.35;
}

.match-reason-tag {
  color: #94a3b8;
  font-size: 0.82rem;
}

.match-reason-tag.coop-tag {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.78rem;
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

.board-column {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.room-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
}

.room-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #0f172a;
  padding: 0.2rem 0.45rem 0.2rem 0.6rem;
  border-radius: 0.4rem;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-main);
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.copy-code-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent);
}

/* ==========================================================================
   Rechte Spalte: Spieler-Dashboard & Zug-Status
   ========================================================================== */
.players-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.players-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.players-card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Status-Kasten für den aktuellen Zug & Spielhinweise */
.turn-status-box {
  background: linear-gradient(180deg, #131c2e 0%, #0c1322 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.65rem;
  padding: 0.75rem 0.95rem;
  text-align: left;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.turn-status-box.my-turn {
  border-color: #38bdf8;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.14) 0%, #0c1322 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.status-main {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* Liste der Spieler:innen */
.players-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Einzelner Spieler-Eintrag */
.player-entry {
  background: #111a2e;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.player-entry[data-profile-username] {
  cursor: pointer;
}

.player-entry:hover {
  background: #15223c;
  border-color: rgba(148, 163, 184, 0.3);
}

.player-entry[data-profile-username]:hover .player-entry-name {
  color: #38bdf8;
}

.player-entry[data-profile-username]:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.player-entry.active-turn {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.22);
}

.player-entry.offline {
  opacity: 0.65;
}

.player-entry-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

/* Farb-/Rollen-Indikator */
.player-role-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-role-indicator.white-role {
  background: radial-gradient(circle at 35% 35%, #ffffff, #cbd5e1);
  color: #0f172a;
  border: 2px solid #94a3b8;
}

.player-role-indicator.black-role {
  background: radial-gradient(circle at 35% 35%, #475569, #0f172a);
  color: #f8fafc;
  border: 2px solid #64748b;
}

.player-role-indicator.seat-role {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.player-entry-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.player-name-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.player-entry-name {
  font-size: 0.88rem;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  transition: color 0.15s;
}

.player-entry-name:hover,
.player-entry-name:focus-visible {
  outline: none;
}

.player-me-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 0.3rem;
}

.player-offline-badge {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  font-size: 0.68rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.3rem;
}

.player-entry-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-entry-elo {
  color: var(--gold);
  font-weight: 600;
}

/* Rechte Seite der Spieler-Karte */
.player-entry-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.active-turn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.turn-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

.player-entry-extra {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.mau-alert-pill {
  color: #f59e0b;
  font-weight: 700;
}

.promotion-choice-box {
  max-width: 340px;
}

.promotion-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  width: 100%;
}

.promotion-piece-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.65rem;
}

.promotion-piece-symbol {
  font-size: 2rem;
  line-height: 1;
}

.board-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0b1120;
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1.25rem;
}

.board-container {
  position: relative;
  width: 100%;
  max-width: min(100%, 80vh, 800px);
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.board-waiting-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 0.4rem;
  z-index: 10;
}

.board-container.maumau-mode,
.board-container.poker-mode,
.board-container.bomb-busters-mode,
.board-container:has(.maumau-table),
.board-container:has(.poker-table),
.board-container:has(.bb-stage),
.board-container:has(.ftq-stage),
.board-container:has(.trio-table) {
  aspect-ratio: auto;
  max-width: 100%;
  width: 100%;
  height: auto;
}

.board-stage:has(.ftq-stage),
.board-container:has(.ftq-stage) {
  align-items: flex-start;
}

.grid-board {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 6px solid #475569;
  border-radius: 0.4rem;
  overflow: hidden;
  user-select: none;
}

.square {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.square.light {
  background-color: var(--board-light);
  color: #1e293b;
}

.square.dark {
  background-color: var(--board-dark);
  color: #f8fafc;
}

.square.selected {
  background-color: #38bdf8 !important;
}

.square.last-move {
  box-shadow: inset 0 0 0 4px rgba(250, 204, 21, 0.65);
}

.square.in-check {
  background-color: #ef4444 !important;
}

.square.legal-target::after {
  content: '';
  width: 28%;
  height: 28%;
  background: rgba(16, 185, 129, 0.85);
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.square.legal-capture::after {
  content: '';
  width: 82%;
  height: 82%;
  border: 4px solid rgba(239, 68, 68, 0.85);
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
}

.coord-rank {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.75;
}

.coord-file {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.75;
}

.chess-piece {
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1;
  transition: transform 0.1s;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.chess-piece.white {
  color: #ffffff;
  text-shadow: 0 0 2px #000, 0 1px 3px #000;
}

.chess-piece.black {
  color: #111827;
  text-shadow: 0 0 1px #ffffff88;
}

.dame-piece {
  width: 74%;
  height: 74%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.5);
}

.dame-piece.white {
  background: radial-gradient(circle at 30% 30%, #ffffff, #cbd5e1);
  border: 3px solid #64748b;
  color: #b45309;
}

.dame-piece.black {
  background: radial-gradient(circle at 30% 30%, #334155, #0f172a);
  border: 3px solid #94a3b8;
  color: #fbbf24;
}

.muehle-svg {
  width: 100%;
  height: 100%;
  background: #e2d5b5;
  border: 6px solid #475569;
  border-radius: 0.4rem;
}

.muehle-line {
  stroke: #451a03;
  stroke-width: 1.3;
  fill: none;
}

.muehle-node-hit {
  cursor: pointer;
}

/* ==========================================
   DRAG & DROP STYLES (Schach, Dame, Mühle)
   ========================================== */

.drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0) scale(1.15);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
  user-select: none;
  opacity: 0.95;
  transition: transform 0.04s ease-out;
}

.drag-ghost.chess-piece-ghost {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
}

.drag-ghost.dame-piece-ghost {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.drag-ghost.muehle-piece-ghost {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.piece-dragging-source {
  opacity: 0.25 !important;
  filter: grayscale(40%);
}

.draggable-piece {
  cursor: grab !important;
  touch-action: none !important;
  user-select: none;
}

.draggable-piece:active {
  cursor: grabbing !important;
}

.square.drag-hover-valid {
  box-shadow: inset 0 0 0 4px #10b981 !important;
  background-color: rgba(16, 185, 129, 0.28) !important;
}

.square.drag-hover-invalid {
  box-shadow: inset 0 0 0 3px rgba(239, 68, 68, 0.7) !important;
}

.muehle-node-hit.drag-hover-valid circle:first-child {
  r: 4.8 !important;
  fill: #10b981 !important;
}

.muehle-reserve-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 0.6rem;
}

.muehle-reserve-stone {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid;
  cursor: grab;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}

.muehle-reserve-stone:hover {
  transform: scale(1.1);
}

.muehle-reserve-stone.white {
  background: radial-gradient(circle at 35% 35%, #ffffff, #cbd5e1);
  border-color: #64748b;
  color: #1e293b;
}

.muehle-reserve-stone.black {
  background: radial-gradient(circle at 35% 35%, #334155, #0f172a);
  border-color: #94a3b8;
  color: #f8fafc;
}

/* Mau-Mau Kartentisch */
.maumau-table {
  width: 100%;
  height: auto;
  min-height: 540px;
  background: radial-gradient(circle at center, #14532d 0%, #064e3b 70%, #022c22 100%);
  border: 7px solid #334155;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.15rem;
  user-select: none;
  overflow: visible;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.35);
}

.maumau-hand-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.maumau-zone-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.maumau-zone-label.active-turn-label {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
  border: 1px solid #22c55e;
}

.maumau-opponents-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.maumau-opponent-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  padding: 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 115px;
}

.maumau-opponent-box.active-turn-seat {
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
  background: rgba(20, 83, 45, 0.65);
}

.opponent-cards-compact {
  gap: 0.2rem !important;
  align-items: center;
}

.maumau-more-cards {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-left: 0.2rem;
}

.maumau-waiting-box {
  margin: auto;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  transition: max-width 0.2s ease;
}

.maumau-waiting-box.has-config {
  max-width: 780px;
}

.waiting-box-columns {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}

.waiting-column-seats {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(30, 27, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
  text-align: left;
}

.waiting-column-config {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.waiting-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.waiting-column-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

@media (max-width: 720px) {
  .waiting-box-columns {
    flex-direction: column;
  }
}

.maumau-waiting-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

/* TISCH-KONFIGURATION IM WARTEZUSTAND */
.waiting-settings-section {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: rgba(30, 27, 46, 0.75);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.12), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.waiting-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.waiting-settings-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* DEBUG-OPTIONEN UNTERHALB DES SPIELTISCHS */
.waiting-debug-panel {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 27, 75, 0.4);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 0.75rem;
  box-sizing: border-box;
  text-align: left;
}

.waiting-debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.waiting-debug-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: #f59e0b;
  letter-spacing: 0.5px;
}

.waiting-debug-row {
  margin-top: 0.5rem;
}

.waiting-setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.waiting-setting-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.waiting-setting-explainer {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

.waiting-length-btns {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.waiting-length-btns .game-filter-chip {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.waiting-readonly-field {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.45rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.waiting-readonly-icon {
  font-size: 1rem;
}

.waiting-readonly-text {
  font-weight: 600;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waiting-length-btns .game-filter-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.waiting-length-btns .game-filter-chip.active:disabled {
  opacity: 1 !important;
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
  cursor: default !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.waiting-host-note {
  font-size: 0.78rem;
  margin: 0;
  text-align: center;
  font-style: italic;
  color: #94a3b8;
}

.waiting-start-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn-start-game-waiting {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-start-game-waiting:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.waiting-start-hint {
  font-size: 0.78rem;
  text-align: center;
  margin: 0;
  line-height: 1.35;
}

.waiting-start-hint.ready {
  color: #4ade80;
  font-weight: 600;
}

.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

.maumau-seats-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.maumau-seat-pill {
  padding: 0.45rem 0.75rem;
  border-radius: 0.45rem;
  font-size: 0.85rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.seat-pill-info {
  flex: 1;
  min-width: 0;
}

.seat-action-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.maumau-seat-pill.seated {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #f8fafc;
}

.maumau-seat-pill.empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.maumau-cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
}

.maumau-center-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  margin: 0.25rem 0;
}

.maumau-pile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.playing-card {
  width: 80px;
  aspect-ratio: 100 / 144;
  height: auto;
  box-sizing: border-box;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.32rem 0.38rem;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  overflow: hidden;
}

.playing-card.suit-red {
  color: #dc2626;
}

.playing-card.suit-black {
  color: #0f172a;
}

.playing-card.playable {
  cursor: pointer;
  border-color: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

.playing-card.playable:hover {
  transform: translateY(-8px) scale(1.04);
}

.playing-card.selected-card {
  transform: translateY(-10px);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.85);
}

.playing-card.just-drawn-card {
  outline: 2px dashed #fbbf24;
  outline-offset: 2px;
}

.drawn-card-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.maumau-pass-btn {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
}

.playing-card.card-back {
  background: #09111e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  aspect-ratio: 100 / 144;
  height: auto;
  box-sizing: border-box;
  flex-shrink: 0;
}

.playing-card.card-back .card-back-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  pointer-events: none;
}

.playing-card.card-back.mini {
  width: 30px;
  aspect-ratio: 100 / 144;
  height: auto;
  font-size: 0.9rem;
  padding: 0;
  border-radius: 0.3rem;
  border-width: 1px;
}

.playing-card.card-back.small {
  width: 48px;
  aspect-ratio: 100 / 144;
  height: auto;
  padding: 0;
  border-radius: 0.4rem;
}

.card-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-size: 0.82rem;
  z-index: 2;
  user-select: none;
  pointer-events: none;
}

.card-corner.top-left {
  top: 0.32rem;
  left: 0.36rem;
}

.card-corner.bottom-right {
  bottom: 0.32rem;
  right: 0.36rem;
  transform: rotate(180deg);
  transform-origin: center center;
}

.card-center-suit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.1rem;
  opacity: 0.9;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

/* Bildkarten-Design (Bube, Dame, König) */
.card-court-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 62px;
  background: rgba(248, 250, 252, 0.96);
  border: 1.5px solid #d97706;
  border-radius: 0.4rem;
  box-shadow: inset 0 0 6px rgba(217, 119, 6, 0.25), 0 2px 4px rgba(0, 0, 0, 0.12);
  padding: 0.15rem;
  pointer-events: none;
  z-index: 1;
}

.court-emblem {
  font-size: 1.35rem;
  line-height: 1;
}

.court-title {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #78350f;
  margin-top: 0.1rem;
  text-transform: uppercase;
}

.court-suit-pip {
  font-size: 0.85rem;
  line-height: 1;
  margin-top: 0.05rem;
}

/* Ass-Spezialdesign */
.card-ace-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.ace-large-suit {
  font-size: 2.7rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Tarot-Karten-Design */
.card-tarot-layout {
  position: absolute;
  inset: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #fdfbf7;
  border: 1.5px solid #b45309;
  border-radius: 0.45rem;
  padding: 0.25rem 0.2rem;
  pointer-events: none;
}

.tarot-roman-header {
  font-size: 0.72rem;
  font-weight: 900;
  color: #92400e;
  letter-spacing: 0.08em;
}

.tarot-symbol-box {
  font-size: 2rem;
  line-height: 1;
}

.tarot-title-banner {
  font-size: 0.52rem;
  font-weight: 800;
  text-align: center;
  color: #78350f;
  background: #fef3c7;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  border: 0.5px solid #d97706;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-info-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  z-index: 2;
  pointer-events: none;
}

.deck-count {
  font-size: 1.2rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.deck-action-label {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.92);
  color: #38bdf8;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
  white-space: nowrap;
}

.maumau-suit-badge {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.maumau-suit-badge.suit-red {
  color: #fca5a5;
}

.maumau-suit-badge.suit-black {
  color: #f8fafc;
}

.maumau-wish-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--accent);
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
  justify-content: center;
}

.wish-suit-btn.suit-red {
  color: #fca5a5;
}

/* ==========================================================================
   Texas Hold'em Poker Table & Player Seats
   ========================================================================== */

.poker-table.strip-poker {
  background: radial-gradient(ellipse at center, #fce7f3 0%, #fbcfe8 25%, #f472b6 60%, #ec4899 85%, #db2777 100%);
  border-color: #9d174d;
  outline-color: #f472b6;
  box-shadow: inset 0 0 50px rgba(190, 24, 93, 0.35), 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 40px rgba(244, 114, 182, 0.35);
}

.poker-table.strip-poker .poker-center-felt {
  background: rgba(219, 39, 119, 0.22);
  border-color: rgba(253, 242, 248, 0.55);
  box-shadow: inset 0 0 24px rgba(219, 39, 119, 0.25), 0 0 15px rgba(244, 114, 182, 0.2);
}

.poker-table.strip-poker .poker-waiting-settings {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: inset 0 1px 0 rgba(244, 114, 182, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.poker-table.strip-poker .poker-waiting-settings .waiting-settings-header {
  border-bottom-color: rgba(236, 72, 153, 0.25);
}

.poker-table {
  width: 100%;
  height: auto;
  min-height: 560px;
  background: radial-gradient(ellipse at center, #15803d 0%, #166534 35%, #052e16 80%, #021f0f 100%);
  border: 14px solid #3b1d11;
  outline: 3px solid #78350f;
  border-radius: 4rem;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  position: relative;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.75), 0 14px 34px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.poker-opponents-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.poker-top-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.poker-middle-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex: 1;
}

.poker-side-wing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 115px;
  max-width: 165px;
  flex: 1;
}

.poker-left-wing {
  flex-direction: column-reverse;
}

.poker-right-wing {
  flex-direction: column;
}

.poker-side-wing .poker-seat {
  width: 100%;
  max-width: 155px;
}

@media (max-width: 720px) {
  .poker-middle-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .poker-side-wing {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
  }
}

.poker-seat {
  background: rgba(15, 23, 42, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  padding: 0.45rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.2s ease;
}

.poker-seat.active-turn {
  border-color: #facc15;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.55);
  background: rgba(30, 41, 59, 0.94);
}

.poker-seat.folded {
  opacity: 0.42;
  filter: grayscale(0.5);
}

.poker-seat.winner {
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.65);
  background: rgba(20, 83, 45, 0.9);
}

.poker-seat-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  justify-content: center;
}

.poker-seat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.15s, text-decoration 0.15s;
}

.poker-seat-name:hover,
.poker-seat-name:focus-visible {
  color: #38bdf8;
  text-decoration: underline;
  outline: none;
}

.poker-chips-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.poker-badge-dealer,
.poker-badge-blind,
.poker-badge-allin {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  line-height: 1.1;
  text-transform: uppercase;
  flex-shrink: 0;
}

.poker-badge-dealer {
  background: #f8fafc;
  color: #0f172a;
  border: 1.5px solid #ca8a04;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.poker-badge-blind.sb {
  background: #3b82f6;
  color: #ffffff;
}

.poker-badge-blind.bb {
  background: #f97316;
  color: #ffffff;
}

.poker-badge-allin {
  background: #dc2626;
  color: #ffffff;
  animation: pulseAllIn 1.5s infinite;
}

@keyframes pulseAllIn {
  0%, 100% { box-shadow: 0 0 6px #ef4444; }
  50% { box-shadow: 0 0 16px #f87171; }
}

.poker-current-bet {
  font-size: 0.74rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  margin-top: 0.1rem;
}

.poker-seat-cards {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

/* Center Felt & Board */
.poker-center-felt {
  width: 100%;
  max-width: 580px;
  background: rgba(2, 44, 23, 0.65);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.poker-table-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
}

.poker-stage-pill {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.poker-pot-display {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.45);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.poker-sidepots-info {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
}

.poker-community-cards-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 86px;
}

.poker-card-slot {
  width: 58px;
  aspect-ratio: 100 / 144;
  height: auto;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.4rem;
}

.poker-announcement-banner {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-align: center;
  max-width: 90%;
}

.poker-announcement-banner.showdown-banner {
  border-color: #eab308;
  background: rgba(30, 41, 59, 0.95);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.35);
}

/* Bottom Hero Zone */
.poker-hero-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.poker-hero-cards-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
}

.poker-hero-hand-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #4ade80;
  background: rgba(20, 83, 45, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.45);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hero Action Bar */
.poker-action-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  padding: 0.65rem 0.95rem;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.poker-action-btns-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.poker-btn-fold {
  background: #7f1d1d !important;
  border-color: #991b1b !important;
  color: #fee2e2 !important;
}

.poker-btn-fold:hover {
  background: #991b1b !important;
}

.poker-btn-check {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

.poker-btn-check:hover {
  background: #334155 !important;
}

.poker-btn-call {
  background: #065f46 !important;
  border-color: #059669 !important;
  color: #d1fae5 !important;
}

.poker-btn-call:hover {
  background: #059669 !important;
}

.poker-btn-raise {
  background: #d97706 !important;
  border-color: #b45309 !important;
  color: #fef3c7 !important;
}

.poker-btn-raise:hover {
  background: #b45309 !important;
}

.poker-raise-slider-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.poker-slider {
  flex: 1;
  min-width: 130px;
  accent-color: #f59e0b;
}

.poker-presets-row {
  display: flex;
  gap: 0.3rem;
}

.poker-btn-preset {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  cursor: pointer;
}

.poker-btn-preset:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.poker-raise-input {
  width: 70px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 0.35rem;
  color: #fef08a;
  padding: 0.2rem;
}

/* ==========================================================================
   Tribüne für Zuschauer (Stilisierte Oberkörper / Lounge-Atmosphäre)
   ========================================================================== */
.spectator-tribune {
  background: linear-gradient(180deg, #182234 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem 0.6rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.spectator-tribune.tribune-highlight {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.spectator-tribune.collapsed {
  padding-bottom: 0.75rem;
}

.spectator-tribune .tribune-header {
  transition: margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.spectator-tribune.collapsed .tribune-header {
  margin-bottom: 0;
}

/* Flüssige Auf- und Zuklapp-Animation per CSS-Grid */
.tribune-collapse-wrapper {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.28s ease,
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.tribune-collapse-wrapper > .tribune-stage {
  min-height: 0;
  overflow: hidden;
}

.spectator-tribune.collapsed .tribune-collapse-wrapper {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.tribune-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.tribune-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  user-select: none;
  padding: 0.2rem 0.45rem;
  margin: -0.2rem -0.45rem;
  border-radius: 0.4rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tribune-title:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
}

.tribune-word {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(56, 189, 248, 0.5);
  transition: text-decoration-color 0.15s ease;
}

.tribune-title:hover .tribune-word {
  text-decoration-color: #38bdf8;
}

.tribune-toggle-arrow {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-muted);
}

.spectator-tribune.collapsed .tribune-toggle-arrow {
  transform: rotate(-90deg);
}

.tribune-badge {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.tribune-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Stufen / Tribünen-Bereich */
.tribune-stage {
  position: relative;
  background: linear-gradient(180deg, #1e293b 0%, #151d2f 45%, #0b1120 100%);
  border-radius: 0.6rem;
  padding: 0.9rem 0.8rem 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Gestufte Bänke im Hintergrund */
.tribune-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 14px,
    rgba(0, 0, 0, 0.3) 15px,
    rgba(0, 0, 0, 0.3) 18px
  );
  pointer-events: none;
  border-top-left-radius: 0.6rem;
  border-top-right-radius: 0.6rem;
}

.tribune-crowd {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  padding: 0.2rem 0.5rem 0.4rem 0.5rem;
  max-height: 180px;
  overflow-y: auto;
}

/* Einzelner Zuschauer / Stilisierter Oberkörper */
.tribune-spectator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  animation: spectatorPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spectatorPop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tribune-spectator:hover {
  transform: translateY(-4px) scale(1.06);
}

.spectator-bust {
  width: 48px;
  height: 42px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  transition: filter 0.2s ease;
}

.tribune-spectator:hover .spectator-bust {
  filter: drop-shadow(0 6px 12px rgba(56, 189, 248, 0.45));
}

.spectator-name-tag {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

/* Messing/Holz-Brüstung vor den Zuschauern */
.tribune-railing {
  position: relative;
  z-index: 3;
  margin-top: 0.25rem;
  padding-top: 0.15rem;
}

.railing-handrail {
  height: 6px;
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 25%, #d97706 50%, #f59e0b 75%, #b45309 100%);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), 0 0 10px rgba(245, 158, 11, 0.25);
  position: relative;
}

.railing-bars {
  display: flex;
  justify-content: space-around;
  padding: 0 1rem;
  margin-top: 1px;
}

.railing-bar {
  width: 3px;
  height: 10px;
  background: linear-gradient(180deg, #d97706 0%, #78350f 100%);
  border-radius: 1px;
  opacity: 0.85;
}

.game-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.1rem;
}

.control-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.spectators-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.spectators-count {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.82rem;
}

.room-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.move-history-list {
  height: 210px;
  overflow-y: auto;
  background: #0f172a;
  border-radius: 0.5rem;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: monospace;
  font-size: 0.85rem;
}

.move-entry {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

.move-entry:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.chat-messages {
  height: 250px;
  overflow-y: auto;
  background: #0f172a;
  border-radius: 0.5rem;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.chat-msg {
  line-height: 1.35;
}

.chat-msg.system {
  color: #38bdf8;
  font-style: italic;
}

.chat-sender {
  font-weight: 700;
  color: #e2e8f0;
  margin-right: 0.35rem;
  transition: color 0.15s;
}

.chat-sender[data-profile-username]:hover,
.chat-sender[data-profile-username]:focus-visible {
  color: #38bdf8;
  text-decoration: underline;
  outline: none;
}

.chat-form {
  display: flex;
  gap: 0.4rem;
}

.chat-form input {
  flex: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  padding: 1rem;
}

#confirmModal.modal-backdrop {
  z-index: 1000;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
}

.confirm-modal-card {
  max-width: 440px;
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.confirm-modal-message {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0;
}

.confirm-modal-hint {
  font-size: 0.82rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
  margin-top: -0.25rem;
  line-height: 1.4;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.admin-modal-card {
  max-width: 660px;
}

.admin-game-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-select-label {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-game-select {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-game-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.admin-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.9rem;
}

.admin-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-toggle-label input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-game-form textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 0.75rem;
  border-radius: 0.45rem;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.admin-game-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.stat-box {
  background: #0f172a;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-num {
  color: var(--accent);
  font-weight: 700;
}

.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2000;
}

.toast {
  background: #1e293b;
  border-left: 4px solid var(--accent);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  font-size: 0.88rem;
}

.toast.error {
  border-left-color: var(--danger);
}

@media (max-width: 980px) {
  .lobby-grid, .room-layout {
    grid-template-columns: 1fr;
  }
  .create-room-controls {
    grid-template-columns: 1fr;
  }
  .game-selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .board-stage {
    padding: 0.5rem;
  }
  .maumau-table {
    min-height: 390px;
    padding: 0.7rem 0.5rem 0.95rem;
    border-width: 4px;
    gap: 0.7rem;
  }
  .maumau-center-zone {
    gap: 1.2rem;
  }
  .playing-card {
    width: 58px;
    aspect-ratio: 100 / 144;
    height: auto;
    padding: 0.22rem 0.3rem;
  }
  .card-corner {
    font-size: 0.72rem;
  }
  .card-corner.top-left {
    top: 0.22rem;
    left: 0.26rem;
  }
  .card-corner.bottom-right {
    bottom: 0.22rem;
    right: 0.26rem;
  }
  .card-center-suit {
    font-size: 1.65rem;
  }
  .maumau-opponent-box {
    min-width: 96px;
    padding: 0.3rem 0.45rem;
  }
}

/* ==========================================================================
   Karten-Vergrößerung (Hover mit gedrückter CTRL-Taste)
   ========================================================================== */
.card-zoom-preview,
.card-zoom-preview * {
  pointer-events: none !important;
}

.card-zoom-preview {
  position: fixed;
  z-index: 99999;
  display: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.9));
  will-change: left, top;
}

.card-zoom-preview.active {
  display: block;
}

.card-zoom-preview .playing-card {
  width: 240px;
  aspect-ratio: 100 / 144;
  height: auto;
  border-radius: 1.15rem;
  border-width: 2.5px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.8);
  padding: 0.9rem 1.05rem;
  animation: cardZoomIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  transform: none !important;
}

@keyframes cardZoomIn {
  from {
    transform: scale(0.92);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.card-zoom-preview .card-corner {
  font-size: 2.5rem;
}

.card-zoom-preview .card-corner.top-left {
  top: 0.95rem;
  left: 1.1rem;
}

.card-zoom-preview .card-corner.bottom-right {
  bottom: 0.95rem;
  right: 1.1rem;
}

.card-zoom-preview .card-center-suit {
  font-size: 6.5rem;
}

.card-zoom-preview .card-court-center {
  width: 135px;
  height: 190px;
  border-width: 3px;
  border-radius: 1rem;
  padding: 0.5rem;
}

.card-zoom-preview .court-emblem {
  font-size: 4.2rem;
}

.card-zoom-preview .court-title {
  font-size: 1.5rem;
  margin-top: 0.35rem;
  letter-spacing: 0.08em;
}

.card-zoom-preview .court-suit-pip {
  font-size: 2.6rem;
  margin-top: 0.25rem;
}

.card-zoom-preview .card-ace-center .ace-large-suit {
  font-size: 8.5rem;
}

.card-zoom-preview .card-tarot-layout {
  padding: 0.8rem 0.6rem;
  border-radius: 0.95rem;
  border-width: 3px;
}

.card-zoom-preview .tarot-roman-header {
  font-size: 1.9rem;
}

.card-zoom-preview .tarot-symbol-box {
  font-size: 5rem;
}

.card-zoom-preview .tarot-title-banner {
  font-size: 1.15rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
}

.card-zoom-preview .deck-info-overlay {
  gap: 0.75rem;
}

.card-zoom-preview .deck-count {
  font-size: 3.5rem;
  padding: 0.4rem 1.4rem;
  border-width: 2.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.card-zoom-preview .deck-action-label {
  font-size: 1.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0.75rem;
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.card-zoom-preview .drawn-card-badge {
  top: -12px;
  right: -10px;
  font-size: 1.1rem;
  padding: 0.25rem 0.8rem;
}

/* ── ZOOM-PREVIEW STYLES FÜR FDK-TAROTKARTEN & KÖNIGINNEN (#cardZoomPreview) ── */
.card-zoom-preview .ftq-queen-zoomable {
  width: 300px !important;
  height: 430px !important;
  object-fit: contain !important;
  background: #000 !important;
  margin: 0 !important;
  border-radius: 1rem !important;
  border: 3px solid rgba(234, 179, 8, 0.75) !important;
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  animation: cardZoomIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-zoom-preview .ftq-tarot-card {
  width: 360px !important;
  height: 617px !important;
  aspect-ratio: auto !important;
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.5), 0 25px 60px rgba(0, 0, 0, 0.95);
  animation: cardZoomIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  transform: none !important;
}

.card-zoom-preview .ftq-tarot-card.flipped {
  transform: rotateY(180deg) !important;
}

.card-zoom-preview .ftq-tarot-card.is-revealing {
  animation: cardZoomIn 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-zoom-preview .ftq-tarot-card .ftq-card-inner-frame {
  padding: 1.25rem 1.15rem;
}

.card-zoom-preview .ftq-tarot-card .ftq-card-prompt-text {
  font-size: 1.55rem;
  line-height: 1.6;
  max-height: 500px;
}

.card-zoom-preview .ftq-tarot-card .ftq-card-prompt-text.is-long-text {
  font-size: 1.3rem;
  line-height: 1.5;
}

.card-zoom-preview .ftq-tarot-card .ftq-card-prompt-text.is-very-long-text {
  font-size: 1.12rem;
  line-height: 1.45;
}

.card-zoom-preview .ftq-tarot-card .ftq-card-cat-badge {
  font-size: 0.95rem;
}

/* ==========================================================================
   FREUNDESYSTEM STYLES
   ========================================================================== */

/* ==========================================================================
   FAVORITENSYSTEM STYLES
   ========================================================================== */

.game-favorite-btn {
  position: absolute;
  top: 1px;
  right: 2px;
  z-index: 2;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.game-option:hover .game-favorite-btn,
.game-favorite-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.game-favorite-btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

.game-favorite-btn:hover {
  transform: scale(1.25);
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
}

.game-favorite-btn.active {
  opacity: 1;
  pointer-events: auto;
  color: #fbbf24;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.6));
}

@media (hover: none) {
  .game-favorite-btn {
    opacity: 0.85;
    pointer-events: auto;
  }
}

.game-filter-chip.favorite-chip {
  border-color: rgba(251, 191, 36, 0.4);
}

.game-filter-chip.favorite-chip.active {
  background: rgba(251, 191, 36, 0.22);
  color: #fef08a;
  border-color: #facc15;
}

.profile-favorites-section {
  margin: 1.1rem 0;
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
}

.profile-favorites-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #fef08a;
}

.profile-favorites-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-favorite-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.profile-favorite-pill .fav-star {
  color: #fbbf24;
}

.profile-favorite-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.profile-best-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 0.65rem;
  margin: 0.9rem 0;
}

.profile-best-game-row .best-game-icon-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fef08a;
}

.profile-best-game-row .best-game-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.stat-box.is-profile-fav {
  border-color: rgba(234, 179, 8, 0.45);
}

.friends-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  vertical-align: -2.5px;
  fill: currentColor;
  flex-shrink: 0;
}

.friends-icon-sm {
  width: 0.95rem;
  height: 0.95rem;
  vertical-align: -1.5px;
}

.friends-icon-lg {
  width: 1.45rem;
  height: 1.45rem;
  vertical-align: -3px;
}

.friends-icon-pink {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  vertical-align: -2.5px;
  color: #f472b6;
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.55));
  margin-right: 0.35rem;
}

.friends-icon-red {
  color: #ef4444;
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.55));
}

.friend-row {
  background: rgba(234, 179, 8, 0.08) !important;
  border-left: 3px solid #eab308 !important;
}

.friend-row:hover {
  background: rgba(234, 179, 8, 0.15) !important;
}

.friend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.22);
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.friends-modal-card {
  max-width: 540px;
}

.friends-modal-body {
  padding: 1.25rem;
}

.friends-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.friends-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.friends-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.friends-tab.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.friends-list,
.friends-requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 400px;
  overflow-y: auto;
}

.friend-item-card,
.friend-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  transition: all 0.2s ease;
}

.friend-item-card {
  cursor: pointer;
}

.friend-item-card:hover,
.friend-request-card:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.3);
}

.friend-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.friend-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-friendship-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  margin-bottom: 1.1rem;
}

.admin-points-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(79, 70, 229, 0.1));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-points-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-points-badge {
  font-weight: 600;
  font-size: 0.82rem;
  color: #c084fc;
  letter-spacing: 0.02em;
}

.admin-points-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f3e8ff;
}

.admin-points-explainer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   FÜR DIE KÖNIGIN & DECK-SCHMIEDE
   ========================================================================== */

.ftq-room-options {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  background: rgba(42, 18, 40, 0.4);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.deck-smith-modal-card {
  max-width: 820px;
  width: 100%;
}

.deck-smith-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.5);
}

.deck-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
}

.deck-tab.active {
  background: rgba(234, 179, 8, 0.15);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.deck-smith-content {
  padding: 1.25rem;
  max-height: 70vh;
  overflow-y: auto;
}

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

.deck-card-item {
  background: linear-gradient(145deg, #1e1b2e 0%, #161224 100%);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.deck-card-item:hover {
  border-color: rgba(234, 179, 8, 0.5);
}

.deck-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.deck-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fef08a;
  margin: 0;
  white-space: pre-line;
}

.deck-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0.25rem 0 0 0;
  white-space: pre-line;
}

.deck-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FTQ TISCH-ANSICHT & TAROT-KARTEN (7:12) */
.ftq-stage {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 40%, #2e102e 0%, #1a0a1a 60%, #0d040e 100%);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(254, 240, 138, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ftq-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.ftq-queen-badge-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 0.6rem;
  padding: 0.4rem 0.8rem;
}

.ftq-queen-avatar-mini {
  width: 44px;
  height: 44px;
  border-radius: 0.4rem;
  border: 1px solid #eab308;
  object-fit: cover;
}

.ftq-queen-info-mini h4 {
  margin: 0;
  font-size: 0.92rem;
  color: #fef08a;
  font-family: 'Cinzel', Georgia, serif;
}

.ftq-queen-info-mini span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ftq-seats-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.ftq-seat-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.ftq-seat-pill.active-turn {
  background: rgba(234, 179, 8, 0.18);
  border-color: #eab308;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
}

.ftq-seat-char-name {
  font-weight: 700;
  color: #fef08a;
}

.ftq-seat-char-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ftq-table-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 520px;
  position: relative;
  perspective: 1200px;
}

.ftq-tarot-card {
  width: 280px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border-radius: 0.95rem;
  user-select: none;
}

.ftq-tarot-card.flipped {
  transform: rotateY(180deg);
}

.ftq-tarot-card.is-revealing {
  animation: ftqCardFlip3D 0.75s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

@keyframes ftqCardFlip3D {
  0% {
    transform: rotateY(0deg) scale(0.96);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  }
  50% {
    transform: rotateY(90deg) scale(1.06) translateZ(40px);
    box-shadow: 0 25px 60px rgba(234, 179, 8, 0.3), 0 35px 80px rgba(0, 0, 0, 0.85);
  }
  100% {
    transform: rotateY(180deg) scale(1) translateZ(0);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  }
}

.ftq-action-bar.is-revealing {
  animation: ftqActionBarFadeIn 0.45s ease 0.4s both;
}

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

.ftq-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0.95rem;
  border: 2px solid rgba(234, 179, 8, 0.45);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.ftq-card-back {
  background: radial-gradient(circle at 50% 50%, #291024 0%, #150616 100%);
  cursor: pointer;
  border-color: rgba(234, 179, 8, 0.5);
}

.ftq-card-back-ornament {
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 0.55rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
}

.ftq-card-front {
  background: linear-gradient(155deg, #1c1822 0%, #120e18 100%);
  transform: rotateY(180deg);
}

.ftq-card-front.is-attack {
  background: linear-gradient(155deg, #380808 0%, #1f0404 100%);
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.45);
}

.ftq-card-inner-frame {
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 0.65rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem 0.85rem;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.ftq-card-front.is-attack .ftq-card-inner-frame {
  border-color: rgba(239, 68, 68, 0.4);
}

.ftq-card-cat-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #eab308;
  font-weight: 700;
}

.ftq-card-prompt-text {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.55;
  color: #fef9c3;
  font-weight: 600;
  margin: auto 0;
  padding: 0.5rem 0.25rem;
  overflow-y: auto;
  max-height: 380px;
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 179, 8, 0.4) transparent;
  word-break: break-word;
  white-space: pre-line;
}

.ftq-card-prompt-text.is-long-text {
  font-size: 0.98rem;
  line-height: 1.45;
}

.ftq-card-prompt-text.is-very-long-text {
  font-size: 0.88rem;
  line-height: 1.38;
}

.ftq-card-front.is-attack .ftq-card-prompt-text {
  color: #fee2e2;
  font-size: 1.2rem;
}

.ftq-card-front.is-attack .ftq-card-prompt-text.is-long-text {
  font-size: 1.02rem;
  line-height: 1.45;
}

.ftq-card-front.is-attack .ftq-card-prompt-text.is-very-long-text {
  font-size: 0.88rem;
  line-height: 1.38;
}

.ftq-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(254, 240, 138, 0.6);
  border-top: 1px solid rgba(234, 179, 8, 0.2);
  padding-top: 0.4rem;
}

.ftq-x-card-btn {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ftq-x-card-btn:hover {
  background: rgba(220, 38, 38, 0.35);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.ftq-action-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
}

.ftq-answer-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.ftq-answer-textarea {
  flex: 1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 0.5rem;
  color: #fef08a;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.ftq-answer-textarea:focus {
  outline: none;
  border-color: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.35);
}

.ftq-verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.ftq-verdict-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #ffffff;
}

.ftq-verdict-btn:hover {
  border-color: #eab308;
  transform: translateY(-2px);
}

.ftq-verdict-btn.selected {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.2);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

.ftq-chronicle-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 0.75rem;
  padding: 1rem;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ftq-chronicle-item {
  border-left: 3px solid #eab308;
  padding-left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ftq-chronicle-item.skipped {
  border-left-color: #ef4444;
  opacity: 0.7;
}

.ftq-chronicle-prompt {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fef08a;
}

.ftq-chronicle-answer {
  font-size: 0.82rem;
  font-style: italic;
  color: #e2e8f0;
}

/* ==========================================================================
   SITE FOOTER & INFO MODAL
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem 0.55rem 1.5rem;
  color: var(--text-muted);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
  z-index: 10;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.footer-container {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Einklappbarer Inhaltsbereich (erscheint erst bei Hover über der Fußzeile) */
.footer-expand-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.35s ease;
}

.footer-expand-inner {
  overflow: hidden;
}

.site-footer:hover,
.site-footer:focus-within,
.site-footer.expanded {
  padding-top: 1.15rem;
  padding-bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.98);
}

.site-footer:hover .footer-expand-wrap,
.site-footer:focus-within .footer-expand-wrap,
.site-footer.expanded .footer-expand-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  margin-bottom: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.5fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 0.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.footer-logo {
  font-size: 1.35rem;
  line-height: 1;
}

.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  max-width: 380px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.footer-version-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #94a3b8;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

button.footer-game-bubble,
.footer-game-bubble {
  border: 1px solid rgba(56, 189, 248, 0.25);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  line-height: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.footer-game-bubble:hover,
.footer-game-bubble:hover {
  background: rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

button.footer-game-bubble:active,
.footer-game-bubble:active {
  transform: translateY(0);
}

.footer-link,
.footer-btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  padding: 0.1rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-link:hover,
.footer-btn-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.discord-link {
  color: #a5b4fc;
  font-weight: 600;
}

.discord-link:hover {
  color: #c7d2fe;
}

.footer-icon-discord {
  flex-shrink: 0;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s ease, padding 0.25s ease;
}

.site-footer:hover .footer-bottom,
.site-footer:focus-within .footer-bottom,
.site-footer.expanded .footer-bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  padding-top: 0.65rem;
}

.footer-copyright {
  color: #94a3b8;
}

.footer-copyright strong {
  color: #f8fafc;
}

.footer-expand-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-bottom:hover .footer-expand-indicator {
  opacity: 1;
}

.footer-expand-arrow {
  display: inline-block;
  font-size: 0.68rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer:hover .footer-expand-arrow,
.site-footer:focus-within .footer-expand-arrow,
.site-footer.expanded .footer-expand-arrow {
  transform: rotate(180deg);
}

.footer-note {
  font-size: 0.75rem;
  color: #64748b;
}

/* Info Modal */
.info-modal-card {
  max-width: 740px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.info-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.info-modal-body h4 {
  color: #f8fafc;
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-modal-body h4:first-child {
  margin-top: 0;
}

.info-modal-body p {
  margin-bottom: 0.85rem;
}

.info-modal-body ul,
.info-modal-body ol {
  margin-left: 1.4rem;
  margin-bottom: 0.95rem;
}

.info-modal-body li {
  margin-bottom: 0.35rem;
}

.info-modal-body strong {
  color: #f1f5f9;
}

.info-callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1.15rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.15rem 0;
  color: #e0f2fe;
}

.info-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--gold);
  color: #fef3c7;
}

.info-modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.4);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 580px) {
  .site-footer {
    padding: 1rem 0.85rem 0.75rem 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ==========================================
   BOMB BUSTERS STYLES
   ========================================== */

.bb-stage {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
  background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #0f172a 65%, #020617 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  user-select: none;
}

/* Kopfbereich / Missions-Banner */
.bb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
}

.bb-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bb-mission-badge {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #fff;
  font-weight: 900;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  letter-spacing: 1px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.bb-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.bb-status-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.bb-status-pill.my-turn {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
  animation: pulse-turn 2s infinite;
}

.bb-status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}

@keyframes pulse-turn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* Missions-Ergebnis-Banner (Erfolg / Scheitern) */
.bb-mission-result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  animation: bb-banner-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bb-banner-pop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.bb-mission-result-banner.is-won {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.95), rgba(4, 120, 87, 0.9));
  border: 2px solid #34d399;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.bb-mission-result-banner.is-lost {
  background: linear-gradient(135deg, rgba(69, 10, 10, 0.95), rgba(153, 27, 27, 0.9));
  border: 2px solid #f87171;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

.bb-result-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.bb-result-info {
  flex: 1 1 280px;
}

.bb-result-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.bb-mission-result-banner.is-won .bb-result-title {
  color: #6ee7b7;
}

.bb-mission-result-banner.is-lost .bb-result-title {
  color: #fca5a5;
}

.bb-result-desc {
  font-size: 0.85rem;
  color: #f1f5f9;
  line-height: 1.4;
}

.bb-result-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Zentrales Bomben-Tableau */
.bb-tableau {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.bb-tableau-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Zündschnur-Leiste */
.bb-fuse-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-fuse-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.bb-fuse-steps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bb-fuse-step {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.bb-fuse-step.burned {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #fef08a;
  border-color: #f87171;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.bb-fuse-step.danger-end {
  background: #450a0a;
  color: #ef4444;
  border-color: #dc2626;
}

.bb-fuse-step.danger-end.burned {
  animation: explode-blink 0.8s infinite;
}

@keyframes explode-blink {
  0%, 100% { opacity: 1; filter: brightness(1.2); }
  50% { opacity: 0.4; }
}

/* Prüfleiste 1–12 mit grünen Bestätigungsmarkern */
.bb-pruefleiste-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bb-pruefleiste-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.bb-pruefleiste {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem;
}

.bb-pruef-slot {
  position: relative;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.5rem;
  background: #1e293b;
  border: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.bb-pruef-slot.danger-red {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.bb-pruef-slot.danger-red .bb-danger-flame {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.8));
  user-select: none;
  pointer-events: none;
}

/* Zwischen-Anzeigen für gelbe & rote Kabel auf der Prüfleiste */
.bb-pruef-between-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.bb-pruef-between-pill.yellow {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #713f12;
  border: 1.5px solid #ca8a04;
}

.bb-pruef-between-pill.yellow.is-cut {
  background: #251605;
  color: #854d0e;
  border-color: #3d2306;
  box-shadow: none;
  filter: brightness(0.65);
  text-decoration: line-through;
}

.bb-pruef-between-pill.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: 1.5px solid #b91c1c;
}

.bb-pruef-between-pill.red.is-cut {
  background: #200808;
  color: #991b1b;
  border-color: #3b0d0d;
  box-shadow: none;
  filter: brightness(0.65);
  text-decoration: line-through;
}

.bb-pruef-between-pill.is-discarded {
  opacity: 0.35;
  filter: grayscale(0.8);
  text-decoration: line-through;
}

/* Transparente grüne Bestätigungsscheibe */
.confirmed-green-disc {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(52, 211, 153, 0.85), rgba(16, 185, 129, 0.75) 60%, rgba(5, 150, 105, 0.9));
  border: 2px solid #6ee7b7;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #064e3b;
  font-weight: 900;
  font-size: 0.9rem;
  z-index: 2;
  /* Keine Animation beim Re-Rendering, um Flackern/Einblenden zu verhindern */
}

/* ── AUSRÜSTUNGSKARTEN IM TABLEAU (ab Szenario 3) ── */
.bb-equipment-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  margin-top: 0.35rem;
}

.bb-equipment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bb-equipment-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.bb-equipment-subinfo {
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bb-equipment-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

/* Kartenbasis: kompaktes Verhältnis, damit bis zu 5 Karten in eine Reihe passen */
.bb-equipment-card {
  position: relative;
  flex: 1 1 0;
  max-width: 145px;
  min-width: 90px;
  min-height: 155px;
  aspect-ratio: 100 / 140;
  border-radius: 0.65rem;
  padding: 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.bb-equipment-card:hover {
  transform: translateY(-2px);
}

/* Gesperrter Zustand (Vorderseite) */
.bb-equipment-card.is-locked {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1.5px solid #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  opacity: 0.88;
}

/* Freigeschalteter Zustand (Vorderseite) */
.bb-equipment-card.is-unlocked {
  background: linear-gradient(145deg, #1e293b, #0c4a6e);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35), 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Verbrauchte Karte (ORANGE RÜCKSEITE MIT SCHRAUBENDREHER) */
.bb-equipment-card.is-used {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  border: 2px solid #fdba74;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.45);
  cursor: default;
}

.bb-equip-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  position: relative;
}

.bb-equip-corner {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  line-height: 1;
}

.bb-equip-corner-num {
  font-size: 0.95rem;
  font-weight: 900;
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.bb-equip-corner-icon {
  font-size: 0.8rem;
}

.bb-equip-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  margin: 0.2rem 0;
}

.bb-equip-main-icon {
  font-size: 1.5rem;
  line-height: 1.1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.bb-equip-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
  margin-top: 0.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bb-equip-desc {
  display: none;
}

.bb-equip-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: stretch;
}

.bb-equip-timing-badge {
  font-size: 0.58rem;
  font-weight: 750;
  text-align: center;
  padding: 0.15rem 0.25rem;
  border-radius: 0.35rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-equip-timing-badge.timing-anytime {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.bb-equip-timing-badge.timing-turn-start {
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.bb-equip-timing-badge.timing-in-turn {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.bb-equip-status-badge {
  font-size: 0.62rem;
  font-weight: 850;
  text-align: center;
  padding: 0.2rem 0.25rem;
  border-radius: 0.35rem;
  line-height: 1;
}

.bb-equip-status-badge.locked {
  background: rgba(100, 116, 139, 0.25);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.bb-equip-status-badge.unlocked {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: pulseUnlocked 2s infinite ease-in-out;
}

@keyframes pulseUnlocked {
  0%, 100% { box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.85); }
}

.bb-equip-use-btn {
  margin-top: 0.2rem;
  padding: 0.22rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  border: 1px solid #38bdf8;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
  width: 100%;
}

.bb-equip-use-btn:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

/* Rückseite Styles (Orange mit Schraubendreher) */
.bb-equip-card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  border-radius: 0.45rem;
  padding: 0.3rem;
  box-sizing: border-box;
  text-align: center;
  color: #ffffff;
}

.bb-equip-screwdriver-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  margin-bottom: 0.15rem;
}

.bb-equip-back-title {
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #ffedd5;
  opacity: 0.9;
}

.bb-equip-back-status {
  font-size: 0.7rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.bb-equip-back-sub {
  font-size: 0.55rem;
  color: #fed7aa;
  margin-top: 0.1rem;
}

/* ── ZOOM-PREVIEW STYLES FÜR AUSRÜSTUNGSKARTEN (#cardZoomPreview) ── */
.card-zoom-preview .bb-equipment-card {
  width: 240px !important;
  max-width: 240px !important;
  aspect-ratio: 100 / 144 !important;
  height: auto !important;
  padding: 1rem 1.1rem !important;
  border-radius: 1.15rem !important;
}

.card-zoom-preview .bb-equipment-card .bb-equip-corner-num {
  font-size: 1.7rem;
}

.card-zoom-preview .bb-equipment-card .bb-equip-corner-icon {
  font-size: 1.4rem;
}

.card-zoom-preview .bb-equipment-card .bb-equip-main-icon {
  font-size: 3.5rem;
}

.card-zoom-preview .bb-equipment-card .bb-equip-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-top: 0.5rem;
  -webkit-line-clamp: 3;
}

.card-zoom-preview .bb-equipment-card .bb-equip-desc {
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.card-zoom-preview .bb-equipment-card .bb-equip-timing-badge {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
}

.card-zoom-preview .bb-equipment-card .bb-equip-status-badge {
  font-size: 0.95rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
}

.card-zoom-preview .bb-equipment-card .bb-equip-screwdriver-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.card-zoom-preview .bb-equipment-card .bb-equip-back-title {
  font-size: 0.9rem;
  letter-spacing: 1.5px;
}

.card-zoom-preview .bb-equipment-card .bb-equip-back-status {
  font-size: 1.25rem;
  margin-top: 0.4rem;
}

.card-zoom-preview .bb-equipment-card .bb-equip-back-sub {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Doppelter Boden (Ausrüstungskarte GELB) */
.bb-equipment-card.is-yellow {
  border-color: rgba(234, 179, 8, 0.55);
}

.bb-equipment-card.is-yellow.is-unlocked {
  border-color: #facc15;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45), 0 3px 8px rgba(0, 0, 0, 0.5);
}

.bb-equip-corner-square.is-yellow {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
  border: 1.5px solid #fef08a;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  vertical-align: middle;
}

.card-zoom-preview .bb-equipment-card .bb-equip-corner-square.is-yellow {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border-width: 2.5px;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.9);
}

/* Aufliegende Zahlenkarte (Szenario 12: Verschollene Ausrüstung) */
.bb-equip-overlay-card {
  position: relative;
  z-index: 5;
  margin: 0.15rem auto 0.25rem auto;
  width: 90%;
  border-radius: 0.4rem;
  padding: 0.2rem 0.35rem;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.bb-equip-overlay-card.is-active {
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  color: #0f172a;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.45);
}

.bb-equip-overlay-card.is-active .bb-eoc-top {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  line-height: 1;
}

.bb-equip-overlay-card.is-active .bb-eoc-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: #0369a1;
  line-height: 1.1;
  font-family: system-ui, -apple-system, sans-serif;
}

.bb-equip-overlay-card.is-active .bb-eoc-prog {
  font-size: 0.6rem;
  font-weight: 700;
  color: #475569;
  line-height: 1;
}

.bb-equip-overlay-card.is-done {
  background: rgba(34, 197, 94, 0.15);
  border: 1px dashed rgba(34, 197, 94, 0.6);
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.15rem 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
}

.bb-equip-overlay-card.is-done .bb-eoc-check {
  font-size: 0.72rem;
}

.card-zoom-preview .bb-equip-overlay-card.is-active .bb-eoc-top {
  font-size: 0.85rem;
}

.card-zoom-preview .bb-equip-overlay-card.is-active .bb-eoc-num {
  font-size: 2rem;
}

.card-zoom-preview .bb-equip-overlay-card.is-active .bb-eoc-prog {
  font-size: 0.9rem;
}

.card-zoom-preview .bb-equip-overlay-card.is-done {
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
}

/* Marker-Zähler & Pins */
.bb-pool-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.bb-pool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #0f172a;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  color: #f1f5f9;
}

/* Die Halter-Bänke (untereinander angeordnet, damit alle Kabel ohne horizontales Scrollen Platz haben) */
.bb-racks-teammates {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.bb-racks-hero {
  margin-top: 0.5rem;
}

.bb-rack-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #2b1810 0%, #1e110b 60%, #140b07 100%);
  border: 2px solid #3d2316;
  border-radius: 0.85rem;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.bb-rack-card.is-hero {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 60%, #020617 100%);
  border: 2px solid #334155;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.bb-rack-card.is-hero.is-turn-active {
  border: 2.5px solid #facc15 !important;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.55), 0 8px 32px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(250, 204, 21, 0.15) !important;
  animation: bbGoldTurnGlow 2.5s ease-in-out infinite;
}

@keyframes bbGoldTurnGlow {
  0%, 100% {
    border-color: #facc15;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.45), 0 8px 30px rgba(0, 0, 0, 0.75), inset 0 0 10px rgba(250, 204, 21, 0.1);
  }
  50% {
    border-color: #fde047;
    box-shadow: 0 0 32px rgba(250, 204, 21, 0.75), 0 8px 36px rgba(0, 0, 0, 0.8), inset 0 0 16px rgba(250, 204, 21, 0.25);
  }
}

.bb-turn-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.65);
  color: #fef08a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.18rem 0.6rem;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
  letter-spacing: 0.02em;
}

.bb-rack-card.is-hero .bb-rack-header {
  border-bottom-color: rgba(56, 189, 248, 0.2);
}

.bb-rack-card.is-hero .bb-rack-user {
  color: #38bdf8;
}

.bb-rack-card.is-hero .bb-groove-slot {
  background: #080e1a;
  border-color: rgba(15, 23, 42, 0.9);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9);
}

.bb-rack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bb-rack-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fef3c7;
}

.bb-captain-star {
  color: #eab308;
  font-size: 1rem;
}

/* Scroll- und Zentrier-Container für die Halter-Leiste */
.bb-rack-slots-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 119, 6, 0.4) rgba(15, 23, 42, 0.3);
}

.bb-rack-slots-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem 0.25rem 0.35rem;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}

/* Ein zusammenhängender Slot: Nummer + Kabel + Hinweismarker-Rille */
.bb-slot-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 42px;
  width: 42px;
  box-sizing: border-box;
}

.bb-slot-num {
  font-size: 0.65rem;
  font-family: monospace;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
  user-select: none;
  z-index: 2;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.bb-wire-card {
  width: 42px;
  height: 68px;
  border-radius: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.2rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
}

.bb-wire-card:hover {
  transform: translateY(-5px);
}

.bb-wire-card.can-start-clue {
  cursor: pointer;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.35);
}

.bb-wire-card.can-start-clue:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

.bb-wire-card.cannot-start-clue {
  opacity: 0.55;
  cursor: not-allowed !important;
  filter: grayscale(0.2);
}

.bb-wire-card.cannot-start-clue:hover {
  transform: none !important;
}

/* Anonyme Rückseite (100% gleicher Look) */
.bb-wire-card.wire-back {
  justify-content: space-between;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid #334155;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.bb-back-top {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #64748b;
  font-family: monospace;
}

.bb-back-icon {
  font-size: 1.15rem;
  opacity: 0.5;
}

.bb-back-bot {
  font-size: 0.55rem;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
}

/* Offene Kabel (Eigene oder gekappte) */
.bb-wire-card.wire-blue {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 60%, #075985 100%);
  border: 2px solid #38bdf8;
  color: #fff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.bb-wire-card.wire-yellow {
  background: linear-gradient(180deg, #eab308 0%, #ca8a04 60%, #a16207 100%);
  border: 2px solid #fef08a;
  color: #422006;
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
}

.bb-wire-card.wire-red {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 60%, #7f1d1d 100%);
  border: 2px solid #f87171;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.bb-wire-val {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.bb-wire-val.decimal {
  font-size: 1.25rem;
}

/* Gekappter / Aufgedeckter Zustand: Sieht aus wie eigenes Kabel, nach oben verschoben, aber ein wenig dunkler */
.bb-wire-card.is-cut {
  transform: translateY(-16px) !important;
  cursor: default;
  filter: brightness(0.72);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Letzte erfolgreiche Schnittaktion: Auf allen Racks graphisch markiert mit leuchtender Umrandung */
.bb-wire-card.is-cut.is-last-cut {
  outline: 3px solid #22c55e !important;
  outline-offset: 3px !important;
  border-color: #4ade80 !important;
  filter: brightness(0.92) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.85), 0 6px 14px rgba(0, 0, 0, 0.6) !important;
  z-index: 5;
  animation: bbPulseLastCut 2s ease-in-out infinite;
}

@keyframes bbPulseLastCut {
  0%, 100% {
    outline-color: #22c55e;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.7), 0 6px 14px rgba(0, 0, 0, 0.6);
  }
  50% {
    outline-color: #86efac;
    box-shadow: 0 0 24px rgba(74, 222, 128, 0.95), 0 6px 14px rgba(0, 0, 0, 0.6);
  }
}

.bb-wire-card.is-cut:hover {
  transform: translateY(-16px) !important;
}

/* Bei Bomben-Explosion: ALLE Kabel aufdecken, aber NICHT nach oben schieben */
.bb-stage.is-exploded .bb-wire-card {
  transform: none !important;
}
.bb-stage.is-exploded .bb-wire-card:hover {
  transform: none !important;
}

/* Ausgewählt für Schnitt */
.bb-wire-card.is-selected {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
  transform: translateY(-8px);
}

/* Ziel-Hover beim Schneiden */
.bb-wire-card.is-targetable {
  cursor: crosshair;
}

.bb-wire-card.is-targetable:hover {
  outline: 3px dashed #f59e0b;
  outline-offset: 2px;
}

/* Detektor-Zielauswahl direkt auf dem Tisch */
.bb-wire-card.is-detector-selected {
  outline: 3px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7), inset 0 0 10px rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-8px) scale(1.04) !important;
  border-color: #38bdf8 !important;
}

.bb-detector-pin {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #0284c7;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 10;
  animation: pulse-glow 1.5s infinite;
}

/* Riskanter Schnitt (Szenario 13: Roter Alarm!) */
.bb-wire-card.is-risky-selected {
  outline: 3px solid #ef4444 !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.85), inset 0 0 10px rgba(239, 68, 68, 0.5) !important;
  transform: translateY(-8px) scale(1.04) !important;
  border-color: #ef4444 !important;
  animation: pulse-glow-red 1.2s infinite alternate;
}

@keyframes pulse-glow-red {
  0% {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6), inset 0 0 8px rgba(239, 68, 68, 0.4);
  }
  100% {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.95), inset 0 0 12px rgba(239, 68, 68, 0.6);
  }
}

.bb-risky-pin {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 10;
}

/* Walkie-Talkies (#2): Getauschtes Kabel (bis zum Ende des jeweiligen Zuges markiert) */
.bb-wire-card.is-exchanged {
  outline: 2.5px solid #c084fc !important;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.75), inset 0 0 10px rgba(192, 132, 252, 0.4) !important;
  border-color: #c084fc !important;
  animation: pulse-glow-purple 1.4s infinite alternate;
}

@keyframes pulse-glow-purple {
  0% {
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.6), inset 0 0 6px rgba(192, 132, 252, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.95), inset 0 0 12px rgba(192, 132, 252, 0.55);
  }
}

.bb-exchanged-pin {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #9333ea;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

/* Neben die Bank gelegte Infomarker (z. B. Szenario 13) */
.bb-aside-markers-container {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: 0.5rem;
  padding: 2px 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  vertical-align: middle;
}

.bb-aside-marker {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #1e293b;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}

.bb-aside-marker-x {
  font-size: 0.65rem;
  color: #ef4444;
}

/* Radar-Badges für Halter & Zusammenfassung */
.bb-rack-radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-left: 0.5rem;
}
.bb-rack-radar-badge.hit {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}
.bb-rack-radar-badge.miss {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.bb-radar-summary-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  margin: 0.5rem 0;
  font-size: 0.82rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Label-Marker (≠ und =) zwischen benachbarten Kabeln */
.bb-label-divider {
  position: relative;
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 25;
  margin: 0 -0.225rem;
  align-self: stretch;
  min-height: 100px;
}

.bb-rack-label-token {
  position: absolute;
  bottom: 8px;
  transform: translateX(-50%);
  left: 50%;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  cursor: default;
  user-select: none;
  z-index: 30;
}

.bb-rack-label-token.not-equal {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  border: 1.5px solid #fca5a5;
  color: #fff;
}

.bb-rack-label-token.equal {
  background: linear-gradient(135deg, #10b981, #065f46);
  border: 1.5px solid #a7f3d0;
  color: #fff;
}

.bb-rack-label-btn {
  position: absolute;
  bottom: 6px;
  transform: translateX(-50%);
  left: 50%;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 35;
  animation: pulse-glow 1.5s infinite;
  white-space: nowrap;
}

.bb-rack-label-btn.not-equal {
  background: #ef4444;
  border: 1.5px solid #fff;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.bb-rack-label-btn.equal {
  background: #10b981;
  border: 1.5px solid #fff;
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* Holz-Rille & Infomarker */
.bb-groove-slot {
  width: 42px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a0403;
  border-radius: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.95);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9);
  box-sizing: border-box;
  flex-shrink: 0;
}

.bb-infomarker {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef08a, #ca8a04 70%, #854d0e);
  border: 1.5px solid #fef9c3;
  color: #451a03;
  font-weight: 900;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  user-select: none;
  flex-shrink: 0;
}

.bb-infomarker.marker-yellow {
  background: radial-gradient(circle at 35% 30%, #fef08a, #eab308 70%, #ca8a04);
  font-size: 0.75rem;
}

/* Aktions-Leiste unten (Hero) */
.bb-hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pending Reveal Overlay für befragten Spieler */
.bb-pending-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bb-pending-box {
  background: #1e293b;
  border: 2px solid #f59e0b;
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bb-pending-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bb-pending-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.bb-pending-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ── Lügenbaron Modal: Einheitliche Button-Größe für alle Zahlen ── */
.bb-btn-liar-number {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

.bb-btn-liar-number .liar-btn-sym {
  font-size: 0.85rem !important;
  opacity: 0.9;
  line-height: 1 !important;
}

.bb-btn-liar-number .liar-btn-num {
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* ── Mini Kartenhalter-Präsentation im Modal (Pending Reveal) ── */
.bb-pending-box.has-mini-racks {
  max-width: 620px;
}

.bb-mini-racks-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  margin: 0.35rem 0;
}

.bb-mini-rack-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(30, 41, 59, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
}

.bb-mini-rack-card.is-target-rack {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
}

.bb-mini-rack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.bb-mini-target-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
}

.bb-mini-slots-track {
  display: flex;
  gap: 0.35rem;
  align-items: flex-end;
  justify-content: center;
  overflow-x: auto;
  padding: 0.55rem 0.25rem 0.25rem 0.25rem;
}

.bb-mini-slot-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.bb-mini-slot-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
}

.bb-mini-wire-card {
  position: relative;
  width: 32px;
  height: 48px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  user-select: none;
}

.bb-mini-wire-card.wire-blue {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  border-color: #7dd3fc;
}

.bb-mini-wire-card.wire-yellow {
  background: linear-gradient(180deg, #fde047 0%, #ca8a04 100%);
  color: #1c1917;
  border-color: #fef08a;
}

.bb-mini-wire-card.wire-red {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #fca5a5;
}

.bb-mini-wire-card.is-cut {
  background: #334155 !important;
  color: #64748b !important;
  border-color: #475569 !important;
  opacity: 0.45;
  transform: translateY(-4px);
}

.bb-mini-wire-val {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.bb-mini-wire-val.decimal {
  font-size: 0.72rem;
}

.bb-mini-wire-marker {
  position: absolute;
  bottom: -4px;
  background: #0284c7;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0 3px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bb-mini-wire-card.is-candidate {
  outline: 2.5px solid #f59e0b !important;
  border-color: #fde047 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.85), inset 0 0 8px rgba(254, 240, 138, 0.5) !important;
  transform: translateY(-6px) scale(1.08);
  z-index: 5;
  cursor: pointer;
  animation: pulse-mini-candidate 1.2s infinite alternate;
}

@keyframes pulse-mini-candidate {
  0% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.7), inset 0 0 6px rgba(254, 240, 138, 0.4);
    transform: translateY(-6px) scale(1.06);
  }
  100% {
    box-shadow: 0 0 18px rgba(245, 158, 11, 1), inset 0 0 10px rgba(254, 240, 138, 0.7);
    transform: translateY(-8px) scale(1.12);
  }
}

.bb-mini-wire-card.is-candidate:hover,
.bb-mini-wire-card.is-candidate.is-hovered {
  outline-color: #fbbf24 !important;
  box-shadow: 0 0 22px rgba(251, 191, 36, 1) !important;
  transform: translateY(-9px) scale(1.16) !important;
}

.bb-mini-candidate-pin {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 9999px;
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.bb-pending-actions .btn.is-btn-hovered {
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.8) !important;
  border-color: #f59e0b !important;
  transform: translateY(-2px);
}

.bb-mini-wire-card.is-selectable {
  cursor: pointer;
}

.bb-mini-wire-card.is-selectable:hover {
  outline: 2px solid #c084fc !important;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.7) !important;
  transform: translateY(-4px) scale(1.06);
}

.bb-mini-wire-card.is-exchange-selected {
  outline: 2.5px solid #c084fc !important;
  border-color: #e9d5ff !important;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.95), inset 0 0 8px rgba(233, 213, 255, 0.5) !important;
  transform: translateY(-6px) scale(1.1);
  z-index: 5;
  cursor: pointer;
  animation: pulse-mini-exchange 1.3s infinite alternate;
}

@keyframes pulse-mini-exchange {
  0% {
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.7), inset 0 0 6px rgba(233, 213, 255, 0.4);
    transform: translateY(-6px) scale(1.08);
  }
  100% {
    box-shadow: 0 0 18px rgba(192, 132, 252, 1), inset 0 0 10px rgba(233, 213, 255, 0.7);
    transform: translateY(-8px) scale(1.13);
  }
}

.bb-mini-exchange-pin {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #a855f7;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 9999px;
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .bb-slot-unit {
    flex: 0 0 38px;
    width: 38px;
  }
  .bb-wire-card {
    width: 38px;
    height: 62px;
  }
  .bb-wire-val {
    font-size: 1.15rem;
  }
  .bb-groove-slot {
    width: 38px;
  }
}

/* ── Explosions-Modal bei Bomben-Detonation ("BUMMMMM....!") ── */
.bb-explosion-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 4, 4, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.35s ease;
  cursor: pointer;
  padding: 1.5rem;
  animation: bb-boom-fadein 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bb-explosion-modal-backdrop.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes bb-boom-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bb-explosion-modal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 4rem;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.4) 0%, rgba(15, 23, 42, 0.9) 75%);
  border: 3px solid rgba(239, 68, 68, 0.6);
  border-radius: 2rem;
  box-shadow: 0 0 80px rgba(239, 68, 68, 0.6), inset 0 0 40px rgba(220, 38, 38, 0.35);
  animation: bb-boom-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, bb-boom-rumble 1s 0.6s infinite ease-in-out;
  user-select: none;
  max-width: 90vw;
}

@keyframes bb-boom-pop {
  0% { transform: scale(0.3) rotate(-3deg); opacity: 0; }
  50% { transform: scale(1.12) rotate(2deg); opacity: 1; }
  75% { transform: scale(0.96) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes bb-boom-rumble {
  0%, 100% { transform: scale(1) translate(0, 0); }
  20% { transform: scale(1.02) translate(-3px, 2px); }
  40% { transform: scale(0.98) translate(3px, -2px); }
  60% { transform: scale(1.02) translate(-2px, -2px); }
  80% { transform: scale(0.99) translate(2px, 3px); }
}

.bb-explosion-emoji {
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  margin-bottom: 0.75rem;
  animation: bb-boom-pulse 0.8s infinite alternate ease-in-out;
}

@keyframes bb-boom-pulse {
  from { transform: scale(0.92); filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.8)); }
  to { transform: scale(1.12); filter: drop-shadow(0 0 40px rgba(239, 68, 68, 1)); }
}

.bb-explosion-title {
  font-size: clamp(3.2rem, 13vw, 8rem);
  font-weight: 950;
  font-family: 'Impact', 'Arial Black', -apple-system, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 25%, #f97316 65%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.95)) drop-shadow(0 0 70px rgba(220, 38, 38, 0.8));
  margin: 0;
  padding: 0;
  line-height: 1.05;
  text-align: center;
}

.bb-explosion-subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ── Erfolgs-Modal bei erfolgreicher Entschärfung ("ENTSCHÄRFT!") ── */
.bb-defused-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 18, 10, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.35s ease;
  cursor: pointer;
  padding: 1.5rem;
  animation: bb-defused-fadein 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bb-defused-modal-backdrop.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes bb-defused-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bb-defused-modal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 4rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(6, 78, 59, 0.85) 60%, rgba(15, 23, 42, 0.95) 100%);
  border: 3px solid rgba(52, 211, 153, 0.7);
  border-radius: 2rem;
  box-shadow: 0 0 80px rgba(16, 185, 129, 0.6), inset 0 0 40px rgba(5, 150, 105, 0.4);
  animation: bb-defused-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, bb-defused-glow 2s infinite alternate ease-in-out;
  user-select: none;
  max-width: 90vw;
}

@keyframes bb-defused-pop {
  0% { transform: scale(0.3) rotate(3deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(-2deg); opacity: 1; }
  75% { transform: scale(0.97) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes bb-defused-glow {
  from { box-shadow: 0 0 60px rgba(16, 185, 129, 0.5), inset 0 0 30px rgba(5, 150, 105, 0.3); }
  to { box-shadow: 0 0 100px rgba(52, 211, 153, 0.8), inset 0 0 50px rgba(16, 185, 129, 0.5); }
}

.bb-defused-emoji {
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  margin-bottom: 0.75rem;
  animation: bb-defused-bounce 0.8s infinite alternate ease-in-out;
}

@keyframes bb-defused-bounce {
  from { transform: scale(0.92) translateY(0); filter: drop-shadow(0 0 15px rgba(52, 211, 153, 0.8)); }
  to { transform: scale(1.12) translateY(-8px); filter: drop-shadow(0 0 40px rgba(16, 185, 129, 1)); }
}

.bb-defused-title {
  font-size: clamp(3.2rem, 13vw, 8rem);
  font-weight: 950;
  font-family: 'Impact', 'Arial Black', -apple-system, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #bbf7d0 25%, #4ade80 65%, #15803d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.95)) drop-shadow(0 0 70px rgba(16, 185, 129, 0.8));
  margin: 0;
  padding: 0;
  line-height: 1.05;
  text-align: center;
}

.bb-defused-subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Bomb Busters Briefing Wire Previews */
.bb-briefing-wires-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bb-briefing-wire {
  width: 50px;
  height: 81px;
  aspect-ratio: 42 / 68;
  border-radius: 0.45rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.2rem;
  box-sizing: border-box;
  text-align: center;
  user-select: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.bb-briefing-wire:hover {
  transform: translateY(-2px);
}

.bb-briefing-wire::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.bb-briefing-wire::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.bb-briefing-wire.wire-blue {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 60%, #075985 100%);
  border: 2px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.4);
}

.bb-briefing-wire.wire-yellow {
  background: linear-gradient(180deg, #eab308 0%, #ca8a04 60%, #a16207 100%);
  border: 2px solid #fef08a;
  color: #422006;
  box-shadow: 0 3px 8px rgba(234, 179, 8, 0.4);
}

.bb-briefing-wire.wire-red {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 60%, #7f1d1d 100%);
  border: 2px solid #f87171;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.45);
  animation: pulse-red 2s infinite;
}

.bb-briefing-wire.wire-sequence {
  border-radius: 0.65rem;
  background: radial-gradient(circle at 50% 48%, #9fe0e5 0%, #86c9cf 55%, #6eb4bb 100%);
  border: 2px solid #a5f3fc;
  color: #172126;
  box-shadow: 0 3px 8px rgba(95, 183, 191, 0.4);
}

.bb-briefing-wire.wire-sequence::before,
.bb-briefing-wire.wire-sequence::after {
  display: none !important;
}

.bb-briefing-wire.wire-marker {
  border-radius: 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.bb-briefing-wire.wire-marker::before,
.bb-briefing-wire.wire-marker::after {
  display: none !important;
}

.bb-briefing-wire.wire-marker.side-2 {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #eab308 100%);
  border-color: #fde047;
  color: #713f12;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.bb-briefing-wire.wire-marker.side-4 {
  background: linear-gradient(135deg, #fed7aa 0%, #fb923c 50%, #f97316 100%);
  border-color: #fdba74;
  color: #431407;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.bb-briefing-wire-main {
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.bb-briefing-wire-sub {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.3rem;
  opacity: 0.95;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.bb-briefing-2p-inline {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.bb-briefing-2p-inline.is-active {
  background: rgba(234, 179, 8, 0.12);
  border: 1.5px solid #facc15;
  color: #fef08a;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25), inset 0 0 8px rgba(250, 204, 21, 0.08);
}

.bb-briefing-2p-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #38bdf8;
  user-select: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bb-briefing-2p-inline.is-active .bb-briefing-2p-icons {
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.bb-2p-svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.bb-briefing-2p-item {
  font-weight: 700;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.bb-briefing-wire-val {
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.bb-briefing-wire-val.is-text {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   BOMB BUSTERS: BOX 1 ZAHLENKARTEN & PRIORITÄTS-SEQUENZ
   ========================================================================== */
.bb-sequence-container {
  margin-top: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.bb-sequence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.bb-sequence-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bb-sequence-badge {
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bb-sequence-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.bb-sequence-status {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.bb-sequence-cards-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.6rem 0.2rem;
}

.bb-seq-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.bb-seq-marker-slot {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.bb-seq-marker-chip {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
  cursor: default;
  transition: all 0.25s ease;
}

.bb-seq-marker-chip.side-2 {
  background: linear-gradient(135deg, #facc15 0%, #eab308 50%, #ca8a04 100%);
  color: #0f172a;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.bb-seq-marker-chip.side-4 {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  color: #0f172a;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.bb-seq-marker-arrow {
  width: 14px;
  height: 14px;
}

.bb-seq-marker-done {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  border: 1.5px solid #22c55e;
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
}

.bb-seq-marker-locked {
  font-size: 0.9rem;
  opacity: 0.4;
}

.bb-number-card {
  width: 70px;
  height: 102px;
  border-radius: 14px;
  position: relative;
  background: radial-gradient(circle at 50% 48%, #9fe0e5 0%, #86c9cf 55%, #6eb4bb 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-number-card.is-active {
  transform: translateY(-4px) scale(1.04);
  border-color: #facc15;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.6), 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 0 8px rgba(250, 204, 21, 0.2);
}

.bb-number-card.is-locked {
  filter: grayscale(0.65) brightness(0.6);
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.1);
}

.bb-card-digit {
  font-family: ui-rounded, 'Nunito', 'Comfortaa', 'Arial Rounded MT Bold', -apple-system, sans-serif;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #222629;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  user-select: none;
  position: relative;
  z-index: 2;
}

.bb-card-progress {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.35rem;
  color: #cbd5e1;
  text-align: center;
  white-space: nowrap;
}

.bb-card-progress.is-done {
  color: #4ade80;
}

.bb-card-progress.is-locked {
  color: #64748b;
}

.bb-wire.is-priority-locked {
  opacity: 0.45;
  filter: grayscale(0.5);
  cursor: not-allowed !important;
}

/* ── Bomb Busters: Letzte Aktion Ticker ── */
.bb-last-action-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  margin: 0.75rem auto;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.88rem;
  animation: bbPulseBar 0.35s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bb-last-action-bar.is-hit {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.18) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1.5px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.bb-last-action-bar.is-solo {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.22) 0%, rgba(59, 130, 246, 0.14) 100%);
  border: 1.5px solid rgba(14, 165, 233, 0.6);
  color: #bae6fd;
}

.bb-last-action-bar.is-miss {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

.bb-last-action-bar.is-risky-cut {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.25) 0%, rgba(185, 28, 28, 0.15) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.7);
  color: #fecaca;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.bb-la-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-la-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  line-height: 1.35;
}

.bb-la-badge {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.bb-la-badge.is-hit {
  background: #15803d;
  color: #f0fdf4;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.bb-la-badge.is-solo {
  background: #0284c7;
  color: #f0f9ff;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.45);
}

.bb-la-badge.is-miss {
  background: #b91c1c;
  color: #fef2f2;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.bb-la-badge.is-risky-cut {
  background: #dc2626;
  color: #fff;
  border: 1px solid #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.bb-la-text {
  color: #e2e8f0;
}

.bb-la-text strong {
  color: #f8fafc;
}

.bb-la-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  margin: 0 0.15rem;
}

.bb-la-val.is-called {
  background: rgba(250, 204, 21, 0.2);
  border: 1px solid rgba(250, 204, 21, 0.6);
  color: #fef08a;
  font-size: 0.95rem;
}

.bb-la-val.is-actual {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #bae6fd;
  font-size: 0.95rem;
}

.bb-la-val.is-hit {
  background: rgba(74, 222, 128, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.6);
  color: #86efac;
  font-size: 0.95rem;
}

.bb-la-val.is-solo {
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(14, 165, 233, 0.65);
  color: #7dd3fc;
  font-size: 0.95rem;
}

.bb-la-val.is-red {
  background: rgba(239, 68, 68, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.85);
  color: #fca5a5;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.bb-la-stabilized {
  display: inline-flex;
  align-items: center;
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid #3b82f6;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  margin-left: 0.35rem;
}

@keyframes bbPulseBar {
  0% {
    transform: scale(0.98);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   Spielregeln-Seite (Rules Page Layout)
   ========================================================================== */
.rules-page-layout {
  display: block;
  width: 100%;
  padding-bottom: 3rem;
  animation: fadeIn 0.2s ease-in-out;
}

.rules-page-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Kopfzeile */
.rules-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.rules-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-rules-back {
  font-weight: 600;
}

.rules-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rules-main-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rules-subtitle {
  font-size: 0.85rem;
}

/* 2-Spalten-Grid: Sidebar mit Spielen & Hauptartikel */
.rules-content-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .rules-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar mit Spiele-Tabs */
.rules-games-sidebar {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rules-sidebar-heading {
  margin: 0 0 0.25rem 0.25rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.rules-games-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 860px) {
  .rules-games-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}

.rules-game-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.rules-game-tab:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateX(2px);
}

.rules-game-tab.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(14, 165, 233, 0.2);
}

.rules-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.rules-tab-text {
  flex: 1;
}

.rules-tab-arrow {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 800;
}

.rules-game-tab.active .rules-tab-arrow {
  color: var(--accent);
}

/* Hauptartikel */
.rules-main-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 2rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.rules-bg-watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-position: center 25%;
  background-size: min(520px, 80%);
  opacity: 0.24;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0) 75%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
  z-index: 0;
  transition: background-image 0.3s ease, opacity 0.3s ease;
}

.rules-article-header,
.rules-article-body,
.rules-article-footer {
  position: relative;
  z-index: 1;
}

.rules-article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.rules-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.rules-header-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.rules-article-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.rules-article-summary {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.4;
}

.rules-header-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rules-article-body {
  font-size: 0.96rem;
  line-height: 1.68;
  color: #e2e8f0;
  flex: 1;
}

.rules-article-body h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 1.5rem 0 0.5rem 0;
  border-left: 3px solid var(--accent);
  padding-left: 0.55rem;
}

.rules-article-body h3:first-child {
  margin-top: 0;
}

.rules-article-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 1.2rem 0 0.35rem 0;
}

.rules-article-body p {
  margin: 0.4rem 0 0.8rem 0;
}

.rules-article-body ul,
.rules-article-body ol {
  margin: 0.4rem 0 1rem 1.25rem;
  padding: 0;
}

.rules-article-body li {
  margin-bottom: 0.45rem;
}

.rules-poker-hands {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem 0.75rem 1.75rem;
  margin: 0.75rem 0;
}

.rules-article-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}





/* ==========================================================================
   TRIO (Kaya Miyano / Cocktail Games) STYLING
   ========================================================================== */

.trio-table {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem;
  user-select: none;
}

.trio-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color, #334155);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(8px);
}

.trio-turn-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.trio-turn-indicator.my-turn {
  color: #38bdf8;
}

.trio-turn-indicator .turn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.trio-turn-indicator.my-turn .turn-dot {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-glow 1.5s infinite;
}

.trio-mode-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.trio-mode-badge.mode-mild {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.trio-mode-badge.mode-picante {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.trio-mode-badge.mode-team {
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.trio-team-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
  border: 1px solid;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.trio-swap-banner {
  background: rgba(147, 51, 234, 0.25);
  border: 1.5px solid #a855f7;
  color: #f3e8ff;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  margin-top: 0.25rem;
}

.trio-hero-section.is-swap-active {
  border: 2px solid #a855f7 !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 10px rgba(168, 85, 247, 0.15) !important;
}

.trio-card-selected-swap {
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.95), 0 0 24px rgba(168, 85, 247, 0.8) !important;
  transform: translateY(-10px) scale(1.05) !important;
  border-color: #facc15 !important;
  z-index: 10;
}

.marker-swap {
  background: #a855f7 !important;
  color: #ffffff !important;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.trio-team-scoreboard {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 650px;
}

.trio-team-scorecard {
  background: rgba(15, 23, 42, 0.75);
  border: 2px solid;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.trio-team-scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.35rem;
}

.trio-team-name {
  font-weight: 800;
  font-size: 0.92rem;
}

.trio-team-members {
  font-size: 0.75rem;
  color: #94a3b8;
}

.trio-team-scorecard-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.trio-team-trios-count {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.trio-team-trios-list {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.trio-team-no-trios {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
}

.trio-log-pill {
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.7);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.trio-mismatch-banner {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  border-radius: 0.6rem;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── TRIO KARTEN 3D & SVG ── */
.trio-card,
.playing-card.trio-card {
  width: 82px;
  height: 118px;
  perspective: 1000px;
  position: relative;
  display: inline-block;
  cursor: default;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 7px;
  overflow: visible !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.trio-card.interactive {
  cursor: pointer;
}

.trio-card.interactive:hover {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

.trio-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  background: transparent !important;
}

.trio-card.face-down .trio-card-inner {
  transform: rotateY(180deg);
}

.trio-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  background: transparent !important;
}

.trio-card-front {
  transform: rotateY(0deg);
}

.trio-card-back {
  transform: rotateY(180deg);
}

.trio-card-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trio-card.claimed {
  opacity: 0.15;
  pointer-events: none;
  filter: grayscale(1);
}

.trio-mini-card,
.playing-card.trio-card.trio-mini-card {
  width: 48px !important;
  height: 69px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.card-zoom-preview .trio-card,
.card-zoom-preview .playing-card.trio-card {
  width: 240px !important;
  height: 345.6px !important;
  aspect-ratio: 100 / 144 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.85)) !important;
}

.card-zoom-preview .trio-card .trio-card-face {
  border-radius: 14px;
}

/* ── GEGENSPIELER ── */
.trio-opponents-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trio-opponent-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color, #334155);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trio-opponent-box.active-turn-seat {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.trio-opp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #94a3b8;
  gap: 0.5rem;
}

.trio-opp-name {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.88rem;
}

.trio-opp-cards-container {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 72px;
  align-items: center;
}

.trio-opp-actions-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.trio-collected-trios-mini {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.trio-set-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── TISCHMITTE (GRID) ── */
.trio-center-area {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.trio-center-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trio-table-grid {
  display: grid;
  grid-template-columns: repeat(var(--trio-grid-cols, 6), 82px);
  justify-content: center;
  gap: 14px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 640px) {
  .trio-table-grid[data-cols="6"] {
    grid-template-columns: repeat(3, 72px);
    gap: 8px;
  }
  .trio-table-grid[data-cols="4"] {
    grid-template-columns: repeat(4, 70px);
    gap: 8px;
  }
  .trio-table-grid[data-cols="3"] {
    grid-template-columns: repeat(3, 72px);
    gap: 8px;
  }
}

/* ── EIGENER BEREICH (HERO HAND) ── */
.trio-hero-section {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border-color, #334155);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.trio-hero-section.is-turn-active {
  border: 2.5px solid #facc15 !important;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.55), 0 8px 32px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(250, 204, 21, 0.15) !important;
  animation: bbGoldTurnGlow 2.5s ease-in-out infinite;
}

.trio-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.trio-hero-title {
  font-weight: 700;
  color: #f8fafc;
}

.trio-hero-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.trio-hero-cards-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.trio-hero-hand {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 0;
}

.hero-card-marker {
  position: absolute;
  top: -8px;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trio-mini-card .hero-card-marker {
  top: -7px;
  font-size: 0.52rem;
  padding: 1px 4px;
}

.trio-card.interactive:hover .hero-card-marker {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.marker-min {
  left: 2px;
  background: #0284c7;
  color: #ffffff;
}

.marker-max {
  right: 2px;
  background: #d97706;
  color: #ffffff;
}

.hero-revealed-active {
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.8) !important;
  transform: translateY(-6px);
}

.trio-hero-trios-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.trio-collected-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px solid #fbbf24;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
}

.trio-box-badge {
  font-weight: 800;
  font-size: 0.8rem;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── SCHARFER MODUS: FEHLENDE TRIOS ZUM SIEG ── */
.trio-missing-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 0.5rem;
  font-size: 0.78rem;
}

.trio-missing-row.trio-missing-hero {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  margin-top: 0.5rem;
}

.trio-missing-row.trio-missing-won {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.15);
}

.trio-missing-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.trio-missing-hero .trio-missing-label {
  font-size: 0.76rem;
}

.trio-missing-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.trio-missing-badge {
  font-size: 0.75rem;
  font-weight: 900;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.trio-missing-badge.badge-gold {
  background: linear-gradient(135deg, #c5a059 0%, #e2c98a 50%, #9b7f36 100%) !important;
  color: #18181b !important;
  border: 1px solid #fef08a;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

.trio-missing-badge.badge-blocked {
  opacity: 0.35;
  text-decoration: line-through;
  filter: grayscale(0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.trio-missing-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
}

/* ── Bomb Busters: Countdown-Timer & Schnipp!-Modul (Szenario 10) ── */
.bb-timer-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin: -0.75rem auto 0.75rem auto;
  width: 100%;
}

.bb-timer-trapezoid {
  pointer-events: auto;
  position: relative;
  width: 260px;
  background: linear-gradient(180deg, #090e17 0%, #030712 100%);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
  padding: 10px 26px 15px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.88), 0 0 20px rgba(56, 189, 248, 0.15);
  border-bottom: 2px solid rgba(56, 189, 248, 0.25);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
}

.bb-timer-screen-bezel {
  background: #020609;
  border: 2px solid #0f2936;
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.95), 0 1px 1px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-7seg-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.bb-7seg-svg {
  display: block;
}

.bb-7seg-svg.is-tenth {
  align-self: flex-end;
  margin-bottom: 3px;
  margin-left: 1px;
}

.bb-7seg-seg.is-lit {
  fill: var(--accent, #38bdf8);
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 7px rgba(56, 189, 248, 0.6));
}

.bb-7seg-seg.is-unlit {
  fill: rgba(56, 189, 248, 0.1);
}

.bb-btn-schnipp {
  background: var(--accent, #38bdf8);
  color: #000000;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  padding: 0.3rem 1.6rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.bb-btn-schnipp:hover:not(:disabled) {
  background: var(--accent-hover, #0284c7);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(56, 189, 248, 1);
}

.bb-btn-schnipp:active:not(:disabled) {
  transform: scale(0.96);
}

.bb-btn-schnipp:disabled,
.bb-btn-schnipp.is-disabled {
  background: #1e293b;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.bb-btn-schnipp.is-my-turn {
  background: rgba(250, 204, 21, 0.2);
  color: #fef08a;
  border: 1px solid #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
  cursor: default;
  font-size: 0.82rem;
  padding: 0.25rem 1rem;
}

.bb-btn-schnipp.is-busy {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  cursor: not-allowed;
  font-size: 0.82rem;
  padding: 0.25rem 1rem;
}

.bb-briefing-wire.wire-timer {
  background: linear-gradient(180deg, #090e17 0%, #030712 100%);
  border: 2px solid var(--accent, #38bdf8);
  color: var(--accent, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  border-radius: 0.65rem;
}
.bb-briefing-wire.wire-timer::before,
.bb-briefing-wire.wire-timer::after {
  display: none !important;
}

.bb-briefing-wire.wire-schnipp {
  background: var(--accent, #38bdf8);
  color: #000000;
  border: 2px solid #7dd3fc;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  border-radius: 0.65rem;
}
.bb-briefing-wire.wire-schnipp::before,
.bb-briefing-wire.wire-schnipp::after {
  display: none !important;
}

.bb-briefing-wire.wire-rookie {
  background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  border: 2px solid #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  border-radius: 0.65rem;
}
.bb-briefing-wire.wire-rookie::before,
.bb-briefing-wire.wire-rookie::after {
  display: none !important;
}

.bb-rookie-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.bb-turn-badge-rookie {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
  animation: bb-rookie-pulse 1.8s infinite ease-in-out;
}

.bb-briefing-wire.wire-liar {
  background: linear-gradient(180deg, #2e1065 0%, #0f172a 100%);
  border: 2px solid #a855f7;
  color: #e9d5ff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  border-radius: 0.65rem;
}
.bb-briefing-wire.wire-liar::before,
.bb-briefing-wire.wire-liar::after {
  display: none !important;
}

.bb-liar-badge {
  background: rgba(147, 51, 234, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.6);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.bb-turn-badge-liar {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6) !important;
}

.bb-infomarker.is-liar-marker {
  background: linear-gradient(135deg, #3b0764 0%, #581c87 100%);
  color: #f5d0fe;
  border: 1.5px solid #c084fc;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.bb-infomarker.is-liar-marker .liar-neq {
  color: #f43f5e;
  font-size: 0.8em;
  font-weight: 900;
}

.bb-mini-wire-marker.is-liar-marker {
  background: #581c87 !important;
  color: #f5d0fe !important;
  border-color: #c084fc !important;
}

.bb-briefing-wire.wire-mystery {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #818cf8;
  color: #c7d2fe;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.35);
  border-radius: 0.65rem;
}
.bb-briefing-wire.wire-mystery::before,
.bb-briefing-wire.wire-mystery::after {
  display: none !important;
}

.bb-equipment-card.is-mystery {
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
  border: 2px solid #52525b;
  color: #e4e4e7;
  position: relative;
  min-height: 155px;
  padding: 0.35rem 0.4rem;
  box-sizing: border-box;
}

.bb-equipment-card.is-mystery.can-reveal {
  border-color: #eab308;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.6);
  animation: bb-mystery-glow 1.5s infinite ease-in-out;
}

@keyframes bb-mystery-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.85);
    transform: translateY(-2px);
  }
}

.bb-mystery-box-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0 !important;
  box-sizing: border-box;
  text-align: center;
  gap: 0.15rem;
}

.bb-mystery-cyrillic-tag {
  font-size: 0.52rem;
  font-weight: 800;
  color: #a1a1aa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.1rem 0.2rem;
  border-radius: 0.2rem;
  margin-bottom: 0.1rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-mystery-box-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin: 0.05rem 0;
}

.bb-mystery-box-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #f43f5e;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.05rem;
}

.bb-mystery-box-sub {
  font-size: 0.56rem;
  color: #94a3b8;
  line-height: 1.1;
  margin-bottom: 0.05rem;
}

.bb-mystery-box-desc {
  display: none;
}

.bb-btn-reveal-box {
  width: 100% !important;
  padding: 0.22rem 0.35rem !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  border-radius: 0.35rem !important;
  background: linear-gradient(135deg, #eab308, #ca8a04) !important;
  color: #000000 !important;
  border: 1px solid #fde047 !important;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.7) !important;
  cursor: pointer !important;
  animation: bb-btn-pulse 1.4s infinite ease-in-out;
  box-sizing: border-box !important;
}

@keyframes bb-btn-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.5);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.9);
  }
}

.bb-equipment-card.is-mystery .bb-equip-footer {
  margin-top: auto;
  padding-top: 0.15rem;
  width: 100%;
}

.card-zoom-preview .bb-equipment-card.is-mystery .bb-mystery-box-desc {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
  margin-top: 0.4rem;
}
.card-zoom-preview .bb-equipment-card.is-mystery .bb-mystery-box-icon {
  font-size: 3rem;
}
.card-zoom-preview .bb-equipment-card.is-mystery .bb-mystery-box-title {
  font-size: 1.15rem;
}
.card-zoom-preview .bb-equipment-card.is-mystery .bb-mystery-box-sub {
  font-size: 0.9rem;
}
.card-zoom-preview .bb-equipment-card.is-mystery .bb-mystery-cyrillic-tag {
  font-size: 0.75rem;
}

.bb-mystery-deck-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(30, 27, 75, 0.45);
  border: 1.5px solid rgba(129, 140, 248, 0.45);
  border-radius: 0.65rem;
  padding: 0.35rem 0.85rem;
  margin: 0 auto 0.4rem auto;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.2);
}

.bb-mystery-deck-pile {
  position: relative;
  width: 32px;
  height: 46px;
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
  border: 1px solid #6366f1;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #1e1b4b, 4px 4px 0 #0f172a;
}

.bb-mystery-open-card {
  width: 34px;
  height: 46px;
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
  border: 2px solid #38bdf8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.bb-mystery-card-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.bb-mystery-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: #f8fafc;
  line-height: 1.3;
}

@keyframes bb-rookie-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.8);
    transform: scale(1.02);
  }
}

.bb-last-action-bar.is-schnipp {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, rgba(2, 132, 199, 0.1) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  color: #bae6fd;
}
.bb-la-badge.is-schnipp {
  background: var(--accent-hover, #0284c7);
  color: #f0f9ff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.bb-batman-deck-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(234, 179, 8, 0.5);
  border-radius: 0.65rem;
  padding: 0.35rem 0.85rem;
  margin: 0 auto 0.4rem auto;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.bb-batman-deck-pile {
  position: relative;
  width: 34px;
  height: 48px;
  background: linear-gradient(135deg, #1e293b 0%, #090d16 100%);
  border: 1px solid #eab308;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #0f172a, 4px 4px 0 #020617;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.bb-batman-pile-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.bb-batman-pile-count {
  font-size: 0.7rem;
  font-weight: 800;
  color: #facc15;
  line-height: 1;
}

.bb-batman-open-card {
  width: 34px;
  height: 48px;
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
  border: 2px solid #eab308;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.45);
}

.bb-batman-open-card.is-empty {
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px dashed rgba(234, 179, 8, 0.4);
  box-shadow: none;
}

.bb-batman-card-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.bb-batman-open-card.is-empty .bb-batman-card-val {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
}

.bb-batman-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: #f8fafc;
  line-height: 1.3;
}

/* ── Bomb Busters: Funk-Soundtrack & Interruption (Szenario 19) ── */
.bb-audio-control-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  color: #94a3b8;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.bb-audio-control-pill.is-interrupted {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  animation: bb-radio-alert 1s infinite alternate;
}

@keyframes bb-radio-alert {
  0% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.3); }
  100% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.85); }
}

.bb-audio-status-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bb-audio-status-label strong {
  color: #e2e8f0;
}

.bb-audio-btn-mute {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.15s;
}

.bb-audio-btn-mute:hover {
  transform: scale(1.2);
}

.bb-audio-vol-slider {
  width: 50px;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.bb-audio-vol-slider::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #38bdf8);
  cursor: pointer;
}

/* Interruption Overlay Modal */
.bb-interruption-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: auto;
  animation: bb-fade-in 0.3s ease;
}

.bb-interruption-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(180deg, #1f1315 0%, #0c0708 100%);
  border: 2px solid #ef4444;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.5), inset 0 0 15px rgba(239, 68, 68, 0.2);
  animation: bb-interruption-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bb-interruption-bounce {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.bb-interruption-icon-badge {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: bb-badge-pulse 1.2s infinite ease-in-out;
}

@keyframes bb-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 10px #ef4444); }
}

.bb-interruption-headline {
  font-size: 1.25rem;
  font-weight: 900;
  color: #f87171;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.bb-interruption-body {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fecaca;
  margin-bottom: 0.75rem;
}

.bb-interruption-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 1rem;
}

.bb-interruption-radio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 20px;
}

.bb-interruption-radio-wave span {
  width: 4px;
  height: 100%;
  background: #ef4444;
  border-radius: 2px;
  animation: bb-wave-anim 1s infinite ease-in-out alternate;
}

.bb-interruption-radio-wave span:nth-child(1) { animation-delay: 0.1s; height: 30%; }
.bb-interruption-radio-wave span:nth-child(2) { animation-delay: 0.3s; height: 70%; }
.bb-interruption-radio-wave span:nth-child(3) { animation-delay: 0.5s; height: 100%; }
.bb-interruption-radio-wave span:nth-child(4) { animation-delay: 0.2s; height: 60%; }
.bb-interruption-radio-wave span:nth-child(5) { animation-delay: 0.4s; height: 40%; }

@keyframes bb-wave-anim {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.bb-interruption-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.bb-btn-skip-stop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bb-btn-skip-stop:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.bb-btn-skip-stop:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Szenario 19: Extra-Texte in Animation & Modal ── */
.bb-scenario19-extra-text {
  max-width: 580px;
  margin-top: 1rem;
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.bb-scenario19-extra-text.is-lost {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
  border: 1.5px solid rgba(239, 68, 68, 0.6);
}

.bb-scenario19-extra-text.is-won {
  color: #dcfce7;
  background: rgba(20, 83, 45, 0.45);
  border: 1.5px solid rgba(34, 197, 94, 0.6);
}

.bb-modal-dismiss-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 1rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  animation: bb-hint-pulse 1.8s infinite ease-in-out;
}

@keyframes bb-hint-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
