/* Krawallstadt – Brett & Serie (Präfix .board-). Cartoon + Retro: dicke Konturen, kräftige Farben. */
.board-root {
  --b-outline: var(--c-outline, #1b1b2f);
  --b-panel: var(--c-panel, #fff8e7);
  --b-ink: var(--c-ink, #1b1b2f);
  --b-accent: var(--c-accent, #ff4d4d);
  --b-good: var(--c-good, #0ead69);
  --b-bad: var(--c-bad, #ff4d4d);
  --b-gold: var(--c-gold, #ffd23f);
  --board-sidebar-w: 300px;
  position: fixed; inset: 0; overflow: hidden;
  background: #4fa63a; color: var(--b-ink);
  touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* color-scheme:dark (index.html) gibt Buttons sonst weiße UA-Schrift -> Farbe erben (niedrige Spezifität) */
:where(.board-root, .board-series) button {
  color: inherit;
}
.board-title { font-family: var(--font-pixel, "Press Start 2P", monospace); letter-spacing: .5px; }
.board-canvas-wrap { position: absolute; inset: 0; }
.board-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.board-fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.board-fx-layer > * { pointer-events: auto; }
.board-fx-layer .board-popup, .board-fx-layer .board-flycard { pointer-events: none; }

/* Buttons */
.board-btn {
  min-width: var(--btn-min, 48px); min-height: var(--btn-min, 48px); padding: 8px 16px;
  border: 3px solid var(--b-outline); border-radius: 14px; background: #fff; color: var(--b-ink);
  font-weight: 800; font-size: 16px; box-shadow: 0 4px 0 var(--b-outline); cursor: pointer;
  touch-action: manipulation;
}
.board-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--b-outline); }
.board-btn:disabled { opacity: .45; filter: grayscale(.6); }
.board-btn-good { background: var(--b-good); color: #fff; text-shadow: 0 2px 0 var(--b-outline); }
.board-btn-ghost { background: #e7e2d4; }
.board-btn-small { min-height: 44px; min-width: 44px; padding: 4px 10px; font-size: 14px; }
.board-btn-round { border-radius: 50%; padding: 0; width: 48px; }

/* Obere Leiste (Handy) */
.board-topbar {
  position: absolute; z-index: 20; top: var(--safe-top, 0px); left: var(--safe-left, 0px); right: var(--safe-right, 0px);
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  background: rgba(27, 27, 47, .82); border-bottom: 3px solid var(--b-outline);
}
.board-topbar .board-round { color: var(--b-gold); font-size: 11px; white-space: nowrap; }
.board-players-top { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; touch-action: pan-x; }
.board-players-top::-webkit-scrollbar { display: none; }
.board-teams-top { display: flex; gap: 6px; }
.board-teams-top .board-team { min-width: 110px; }

.board-pl {
  position: relative; display: flex; align-items: center; gap: 4px; flex: 0 0 auto;
  padding: 3px 8px 3px 4px; border: 3px solid var(--b-outline); border-radius: 12px;
  background: #fff; border-left: 8px solid var(--pl-color, #888); cursor: pointer; font-size: 12px;
}
.board-pl.is-turn { background: var(--b-gold); animation: board-pulse 1.2s ease-in-out infinite; }
.board-pl.is-actor { background: #ffe9a8; }
.board-pl.is-me .board-pl-name { text-decoration: underline; }
.board-pl.is-offline { opacity: .55; }
.board-pl-place {
  position: absolute; top: -8px; left: -10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--b-outline); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 800;
}
.board-pl-fig svg { display: block; }
.board-pl-info { display: flex; flex-direction: column; line-height: 1.15; }
.board-pl-name { font-weight: 800; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-pl-stats { white-space: nowrap; }
.board-pl-flags { font-size: 12px; }
.board-pl.is-compact .board-pl-name { max-width: 60px; }

/* Seitenleiste (Tablet) */
.board-sidebar { display: none; }
.board-root.is-tablet .board-topbar, .layout-tablet .board-root:not(.board-series) .board-topbar { display: none; }
.board-root.is-tablet .board-canvas-wrap { right: var(--board-sidebar-w); }
.board-root.is-tablet .board-sidebar {
  display: flex; flex-direction: column; gap: 6px; position: absolute; z-index: 20; top: 0; right: 0; bottom: 0;
  width: var(--board-sidebar-w); padding: calc(var(--safe-top, 0px) + 8px) calc(var(--safe-right, 0px) + 8px) 8px 8px;
  background: var(--b-panel); border-left: 4px solid var(--b-outline); overflow-y: auto; touch-action: pan-y;
}
.board-side-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.board-side-head .board-round { font-size: 13px; }
.board-side-title { font-weight: 900; font-size: 13px; margin-top: 4px; }
.board-players-side { display: flex; flex-direction: column; gap: 6px; padding-left: 10px; }
.board-players-side .board-pl { font-size: 14px; }
.board-players-side .board-pl-name { max-width: 140px; }
.board-team {
  border: 3px solid var(--b-outline); border-left: 10px solid var(--pl-color); border-radius: 10px;
  background: #fff; padding: 4px 8px; display: flex; flex-direction: column; font-size: 12px;
}
.board-teams { display: flex; flex-direction: column; gap: 4px; }
.board-log-side { font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.board-log-line { padding: 2px 4px; border-bottom: 1px dashed #c9bfa6; }

/* Status, Kamera, Ticker */
.board-status {
  position: absolute; z-index: 21; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-top, 0px) + 62px); padding: 6px 14px; border: 3px solid var(--b-outline); border-radius: 999px;
  background: #fff; font-weight: 800; font-size: 14px; white-space: nowrap; max-width: 70vw; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.board-status.is-me { background: var(--b-gold); }
.board-countdown.is-low { color: var(--b-bad); }
.board-root.is-tablet .board-status { top: calc(var(--safe-top, 0px) + 10px); left: calc((100% - var(--board-sidebar-w)) / 2); }
.board-cam { position: absolute; z-index: 21; top: calc(var(--safe-top, 0px) + 110px); left: calc(var(--safe-left, 0px) + 8px); display: flex; flex-direction: column; gap: 6px; }
.board-root.is-tablet .board-cam { top: calc(var(--safe-top, 0px) + 10px); }
.board-ticker {
  position: absolute; z-index: 19; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom, 0px) + 6px);
  max-width: 46vw; font-size: 12px; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; text-align: center; pointer-events: none;
}
.board-ticker div { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; } /* 2 Zeilen statt abgeschnitten */
.board-root.is-tablet .board-ticker { display: none; }
.board-emotes { position: absolute; z-index: 22; left: calc(var(--safe-left, 0px) + 8px); bottom: calc(var(--safe-bottom, 0px) + 8px); transform-origin: left bottom; }

/* Aktionsbereich (Daumen rechts unten) */
.board-actions {
  position: absolute; z-index: 22; right: calc(var(--safe-right, 0px) + 12px); bottom: calc(var(--safe-bottom, 0px) + 12px);
  display: flex; align-items: flex-end; gap: 10px;
}
.board-root.is-tablet .board-actions { right: calc(var(--board-sidebar-w) + 16px); }
.board-roll {
  width: 112px; height: 112px; border-radius: 26px; border: 4px solid var(--b-outline);
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--b-accent) 19%); color: #fff;
  font-weight: 900; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 7px 0 var(--b-outline); text-shadow: 0 2px 0 var(--b-outline); animation: board-hop 1s ease-in-out infinite;
  touch-action: manipulation; cursor: pointer;
}
.board-roll-die { font-size: 46px; line-height: 1; }
.board-roll:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--b-outline); }
.board-roll:disabled { opacity: .5; animation: none; }
.board-cards-btn.is-hot { background: var(--b-gold); animation: board-pulse 1s infinite; }

/* Hand / Drawer */
.board-drawer {
  position: absolute; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 70%;
  background: var(--b-panel); border-top: 4px solid var(--b-outline); border-radius: 20px 20px 0 0;
  padding: 10px calc(var(--safe-right, 0px) + 12px) calc(var(--safe-bottom, 0px) + 10px) calc(var(--safe-left, 0px) + 12px);
  overflow-y: auto; touch-action: pan-y; animation: board-slideup .2s ease-out;
}
.board-drawer-close { margin-top: 8px; width: 100%; }
.board-hand-title { font-weight: 900; margin: 6px 0 4px; font-size: 14px; }
.board-hand-title small { font-weight: 500; }
.board-hand-cards, .board-hand-items { display: flex; flex-wrap: wrap; gap: 8px; }
.board-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; min-height: 48px; padding: 4px;
  border: 3px solid transparent; border-radius: 12px; background: none; font-weight: 800; font-size: 12px; cursor: pointer;
  color: var(--b-outline, #1b1b2f); /* Beschriftung auf hellem Panel lesbar (erbte sonst Weiß) */
}
.board-card.is-sel { border-color: var(--b-gold); background: #fff3c4; }
.board-card.is-disabled { opacity: .55; }
.board-item {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 10px;
  border: 3px solid var(--b-outline); border-radius: 12px; background: #fff; font-weight: 700; font-size: 13px;
}
.board-item small { opacity: .7; }
.board-item.is-disabled { opacity: .55; }
.board-item-icon { font-size: 22px; }
.board-empty { opacity: .65; font-size: 13px; padding: 4px; }
.board-side-hand { border-top: 3px dashed #c9bfa6; padding-top: 4px; }
.board-unofallback {
  width: 44px; height: 64px; border: 3px solid var(--b-outline); border-radius: 8px; display: grid; place-items: center;
  font-weight: 900; font-size: 18px; color: #fff; text-shadow: 0 2px 0 var(--b-outline);
}
.board-uno-red { background: #ff4d4d; } .board-uno-green { background: #0ead69; }
.board-uno-blue { background: #3a86ff; } .board-uno-yellow { background: #ffd23f; }
.board-uno-wild { background: conic-gradient(#ff4d4d 0 25%, #ffd23f 0 50%, #0ead69 0 75%, #3a86ff 0); }

/* Dialoge */
.board-modal, .board-sheet {
  position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(27, 27, 47, .55); padding: calc(var(--safe-top, 0px) + 10px) calc(var(--safe-right, 0px) + 10px) calc(var(--safe-bottom, 0px) + 10px) calc(var(--safe-left, 0px) + 10px);
}
.board-modal[hidden], .board-sheet[hidden], .board-drawer[hidden], .board-popover[hidden], .board-gameover[hidden] { display: none; }
.board-modal.is-steal { background: none; justify-content: flex-end; pointer-events: none; }
.board-modal.is-steal .board-dialog { pointer-events: auto; max-width: min(360px, 46vw); }
.board-root.is-tablet .board-modal { right: var(--board-sidebar-w); }
.board-dialog {
  position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto; touch-action: pan-y;
  background: var(--b-panel); border: 4px solid var(--b-outline); border-radius: 22px; padding: 14px 16px;
  box-shadow: 0 8px 0 var(--b-outline); animation: board-pop .22s cubic-bezier(.3, 1.6, .5, 1);
}
.board-sheet .board-dialog { width: 100%; height: 100%; }
.board-dlg-min {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 3px solid var(--b-outline);
  border-radius: 12px; background: #fff; font-size: 20px; cursor: pointer;
}
.board-dlg-head h2 { margin: 0 52px 6px 0; font-size: 16px; line-height: 1.4; }
.board-dlg-sub { font-size: 14px; margin: 4px 0; }
.board-dlg-text { font-size: 14px; margin: 6px 0; }
.board-dlg-cash { font-size: 14px; margin: 6px 0; }
.board-dlg-card { display: flex; justify-content: center; margin: 6px 0; }
.board-dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.board-info-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.board-info-table th { text-align: left; padding: 4px 8px 4px 0; width: 40%; }
.board-info-table td { padding: 4px 0; font-weight: 700; }
.board-district { display: inline-block; padding: 1px 8px; border: 2px solid var(--b-outline); border-radius: 999px; background: var(--d-color); font-size: 12px; font-weight: 800; }
.board-choice-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.board-choice {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 84px; min-height: 48px; padding: 6px;
  border: 3px solid var(--b-outline); border-radius: 14px; background: #fff; font-weight: 800; cursor: pointer;
}
.board-choice.is-sel { background: var(--b-gold); transform: translateY(-3px); }
.board-choice small { font-weight: 600; }
.board-vs { align-items: center; }
.board-vs-label { font-family: var(--font-pixel, monospace); font-size: 18px; color: var(--b-accent); }
.board-tabs { display: flex; gap: 6px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.board-tab { min-height: 44px; padding: 4px 12px; border: 3px solid var(--b-outline); border-radius: 12px; background: #e7e2d4; font-weight: 800; }
.board-tab.is-sel { background: var(--b-gold); }
.board-tab:disabled { opacity: .4; }
.board-stepper { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0; }
.board-stepper-val { min-width: 110px; text-align: center; font-weight: 900; font-size: 18px; }
.board-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.board-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 6px 10px;
  border: 3px solid var(--b-outline); border-radius: 12px; background: #fff; font-weight: 700; text-align: left; cursor: pointer;
}
.board-list-item.is-sel { background: var(--b-gold); }
.board-list-item small { font-size: 12px; }
.board-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.board-shop-offer {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 100px; padding: 8px;
  border: 3px solid var(--b-outline); border-radius: 14px; background: #fff; font-weight: 700; cursor: pointer;
}
.board-shop-offer.is-disabled { opacity: .45; filter: grayscale(.8); }
.board-shop-icon { font-size: 32px; }
.board-shop-label { font-size: 13px; text-align: center; }
.board-shop-price { font-weight: 900; }
.board-bets { font-size: 13px; margin: 6px 0; padding-left: 18px; }

/* Popover (Tablet) */
.board-popover {
  position: absolute; z-index: 45; background: var(--b-panel); border: 4px solid var(--b-outline); border-radius: 16px;
  padding: 10px 12px; box-shadow: 0 6px 0 var(--b-outline); animation: board-pop .18s ease-out;
}
.board-popover-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 3px solid var(--b-outline); border-radius: 10px; background: #fff; font-weight: 900; }
.board-popover .board-dlg-head h2 { font-size: 13px; margin-right: 44px; }

/* Banner, Ereigniskarte, Duell */
.board-banner {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 2;
  background: #fff; border: 4px solid var(--b-outline); border-radius: 20px; padding: 12px 22px; text-align: center;
  box-shadow: 0 6px 0 var(--b-outline); animation: board-pop .3s cubic-bezier(.3, 1.6, .5, 1); max-width: 90%;
}
.board-banner.is-out { animation: board-out .26s ease-in forwards; }
.board-banner-icon { font-size: 40px; }
.board-banner-title { font-size: 16px; line-height: 1.4; }
.board-banner-text { font-size: 14px; font-weight: 700; margin-top: 4px; }
.board-banner-bad { background: #ffd6d6; }
.board-banner-big { background: var(--b-gold); }
.board-banner-big .board-banner-title { font-size: 22px; }
.board-banner-small { top: auto; bottom: 26%; padding: 6px 14px; }
.board-banner-small .board-banner-icon { font-size: 24px; }
.board-eventcard { background: #8338ec; color: #fff; width: min(360px, 86%); }
.board-eventcard-icon { font-size: 54px; }
.board-eventcard p { font-weight: 700; }
.board-eventcard small { opacity: .8; }
.board-duel { background: #ff4d4d; color: #fff; }
.board-duel-inner { display: flex; align-items: center; gap: 16px; }
.board-duel-side { display: flex; flex-direction: column; align-items: center; text-shadow: 0 2px 0 var(--b-outline); }
.board-duel-vs { font-size: 22px; line-height: 1.3; color: var(--b-gold); text-shadow: 0 3px 0 var(--b-outline); }

/* Würfel */
.board-dice-layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none !important; }
.board-dice-layer.is-out { animation: board-out .3s ease-in forwards; }
.board-dice-row { display: flex; gap: 18px; }
.board-die {
  width: 96px; height: 96px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 12px; gap: 4px; background: linear-gradient(145deg, #fff 60%, #ddd); border: 4px solid var(--b-outline);
  border-radius: 20px; box-shadow: 6px 8px 0 var(--b-outline), inset -6px -6px 0 rgba(0, 0, 0, .12);
}
.board-die i { border-radius: 50%; }
.board-die i.on { background: var(--b-outline); }
.board-die.is-rolling { animation: board-tumble .3s linear infinite; }
.board-die.is-landed { animation: board-land .35s cubic-bezier(.3, 1.8, .5, 1); }
.board-die-num { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; font-size: 44px; font-family: var(--font-pixel, monospace); }
.board-dice-total { margin-top: 12px; color: #fff; font-size: 26px; text-shadow: 0 3px 0 var(--b-outline); }

/* Glücksrad */
.board-wheel-layer {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(27, 27, 47, .6); gap: 6px; z-index: 5;
}
.board-wheel-layer.is-out { animation: board-out .3s ease-in forwards; }
.board-wheel-title { color: var(--b-gold); font-size: 20px; text-shadow: 0 3px 0 var(--b-outline); }
.board-wheel-result { color: #fff; font-size: 18px; text-shadow: 0 3px 0 var(--b-outline); min-height: 1.4em; opacity: 0; }
.board-wheel-result.is-in { opacity: 1; animation: board-pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.board-wheel canvas { display: block; }

/* Fliegende Karte, Popups */
.board-flycard { position: absolute; left: -28px; top: -40px; transition: transform .7s cubic-bezier(.5, -0.2, .4, 1.3); z-index: 3; }
.board-flycard.is-blocked { animation: board-out .5s ease-in forwards; }
.board-flycard.is-hit { animation: board-hit .5s ease-out forwards; }
.board-popup {
  position: absolute; transform: translate(-50%, -50%); font-size: 15px; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 0 var(--b-outline), 0 0 4px var(--b-outline); animation: board-float 1.3s ease-out forwards;
}

/* Siegerehrung / Podest */
.board-gameover {
  position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #3a86ff, #1b1b2f 75%);
}
.board-gameover-inner { position: relative; z-index: 2; text-align: center; color: #fff; max-height: 100%; overflow-y: auto; padding: 12px; touch-action: pan-y; }
.board-gameover-title { font-size: 20px; color: var(--b-gold); text-shadow: 0 3px 0 var(--b-outline); margin: 6px 0 10px; }
.board-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding-top: 30px; /* Platz für die Krone */ }
@media (max-height: 430px) {
  .board-podium-p1 .board-podium-block { height: 72px !important; }
  .board-podium-p2 .board-podium-block { height: 52px !important; }
  .board-podium-p3 .board-podium-block { height: 38px !important; }
}
.board-podium-col { display: flex; flex-direction: column; align-items: center; width: 130px; }
.board-podium-figs { position: relative; display: flex; justify-content: center; animation: board-hop 1.2s ease-in-out infinite; }
.board-podium-crown { position: absolute; top: -26px; font-size: 26px; }
.board-podium-name { font-weight: 900; text-shadow: 0 2px 0 var(--b-outline); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-podium-value { font-size: 13px; font-weight: 700; color: var(--b-gold); }
.board-podium-block {
  width: 100%; border: 4px solid var(--b-outline); border-radius: 10px 10px 0 0; display: grid; place-items: center;
  font-family: var(--font-pixel, monospace); font-size: 24px; color: var(--b-outline); margin-top: 4px;
}
.board-podium-p1 .board-podium-block { height: 110px; background: var(--b-gold); }
.board-podium-p2 .board-podium-block { height: 80px; background: #d9d9e3; }
.board-podium-p3 .board-podium-block { height: 56px; background: #e09a5b; }
.board-podium-rest { list-style: none; padding: 0; margin: 10px auto 0; max-width: 360px; text-align: left; }
.board-podium-rest li { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border-radius: 10px; padding: 2px 8px; margin: 3px 0; }
.board-podium-rest li span { margin-left: auto; }
.board-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.board-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border: 2px solid var(--b-outline); animation: board-confetti linear infinite; }

/* Serie */
.board-series { background: repeating-linear-gradient(45deg, #3a86ff 0 40px, #4a92ff 40px 80px); overflow-y: auto; touch-action: pan-y; }
.board-series-main {
  max-width: 980px; margin: 0 auto; padding: calc(var(--safe-top, 0px) + 10px) calc(var(--safe-right, 0px) + 12px) 90px calc(var(--safe-left, 0px) + 12px);
}
.board-series-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.board-series-title { color: #fff; font-size: 18px; text-shadow: 0 3px 0 var(--b-outline); margin: 4px 0; }
.board-series-progress { min-width: 200px; color: #fff; font-weight: 800; text-shadow: 0 2px 0 var(--b-outline); }
.board-series-bar { height: 16px; border: 3px solid var(--b-outline); border-radius: 999px; background: #fff; overflow: hidden; margin-top: 4px; }
.board-series-bar i { display: block; height: 100%; background: var(--b-gold); transition: width .5s; }
.board-series-body { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.board-series-table { flex: 1; }
.board-score { width: 100%; border-collapse: separate; border-spacing: 0 5px; }
.board-score th { color: #fff; text-align: left; font-size: 12px; text-shadow: 0 1px 0 var(--b-outline); padding: 0 6px; }
.board-score td { background: var(--b-panel); padding: 4px 6px; border-top: 3px solid var(--b-outline); border-bottom: 3px solid var(--b-outline); font-weight: 700; }
.board-score td:first-child { border-left: 3px solid var(--b-outline); border-radius: 12px 0 0 12px; }
.board-score td:last-child { border-right: 3px solid var(--b-outline); border-radius: 0 12px 12px 0; }
.board-score tr.is-me td { background: #fff3c4; }
.board-score tr.is-offline td { opacity: .6; }
.board-score-place { font-family: var(--font-pixel, monospace); }
.board-score-pts { font-size: 18px; font-weight: 900; }
.board-score svg { display: block; }
.board-series-next {
  width: 250px; background: var(--b-panel); border: 4px solid var(--b-outline); border-radius: 18px; padding: 8px;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 5px 0 var(--b-outline);
}
.board-series-next[hidden] { display: none; }
.board-series-nextname { font-size: 12px; text-align: center; margin-top: 4px; }
.board-series-history { margin-top: 10px; color: #fff; }
.board-series-history .board-side-title { text-shadow: 0 1px 0 var(--b-outline); }
.board-series-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.board-series-chip { background: var(--b-panel); color: var(--b-ink); border: 3px solid var(--b-outline); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.board-series .board-emotes { position: fixed; }
.layout-phone .board-series-next { width: 180px; }

/* Globale Effekte, Host-Abbruch */
.board-effects { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.board-effects:empty { display: none; }
.board-effects-top {
  position: absolute; z-index: 21; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-top, 0px) + 100px); justify-content: center;
}
.board-root.is-tablet .board-effects-top { display: none; }
.board-effect {
  padding: 3px 10px; border: 3px solid var(--b-outline); border-radius: 999px; font-size: 12px; font-weight: 800;
  background: #fff; white-space: nowrap; animation: board-pulse 1.6s ease-in-out infinite;
}
.board-effect-blackout { background: #2b2b44; color: var(--b-gold); }
.board-effect-buildBoom { background: #ff9f1c; }
.board-abort { background: #ffd6d6; }
.board-bad { color: var(--b-bad); }
.board-roll.is-item { background: radial-gradient(circle at 35% 30%, #fff 0 18%, #8338ec 19%); }

/* Animationen */
@keyframes board-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); } }
@keyframes board-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes board-pop { from { transform: translateX(var(--tx, 0)) scale(.6); opacity: 0; } to { transform: translateX(var(--tx, 0)) scale(1); opacity: 1; } }
.board-banner { --tx: -50%; }
@keyframes board-out { to { opacity: 0; transform: translateX(var(--tx, 0)) scale(.8); } }
@keyframes board-slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes board-tumble { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(20deg) translateY(-14px); } 50% { transform: rotate(-10deg) translateY(0); } 75% { transform: rotate(-25deg) translateY(-10px); } 100% { transform: rotate(0) translateY(0); } }
@keyframes board-land { from { transform: scale(1.4) rotate(15deg); } to { transform: scale(1) rotate(0); } }
@keyframes board-float { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -160%); } }
@keyframes board-hit { 50% { transform: var(--hit, none) scale(1.4); } to { opacity: 0; } }
@keyframes board-confetti { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(110vh) rotate(720deg); } }

/* Hochkant-/kleine Höhen: kompakter */
@media (max-height: 420px) {
  .board-roll { width: 92px; height: 92px; }
  .board-roll-die { font-size: 36px; }
  .board-die { width: 72px; height: 72px; padding: 8px; }
  .board-status { top: calc(var(--safe-top, 0px) + 56px); font-size: 12px; }
  .board-cam { top: calc(var(--safe-top, 0px) + 96px); }
  .board-effects-top { top: calc(var(--safe-top, 0px) + 90px); }
}

/* ---- Host-Menü in der Spielerliste ---- */
.board-pl .board-pl-host { margin-left: auto; align-self: center; }
.board-pl .player-presence { display: block; }
.board-score .host-menu-btn { margin: 0; }

/* Mystery Box: Öffnungs-Animation */
.board-mbox-layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(27, 27, 47, 0.55); z-index: 40; pointer-events: auto; animation: board-mbox-in 0.25s ease-out; }
.board-mbox-layer.is-out { opacity: 0; transition: opacity 0.3s; }
.board-mbox-title { color: #fff; font-size: 20px; text-shadow: 0 3px 0 #1b1b2f; }
.board-mbox-chest { font-size: 96px; line-height: 1; filter: drop-shadow(0 6px 0 #1b1b2f); }
.board-mbox-chest.is-shaking { animation: board-mbox-shake 0.35s ease-in-out infinite; }
.board-mbox-chest.is-open .board-mbox-lid { display: inline-block; animation: board-mbox-pop 0.5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.board-mbox-result { max-width: min(90vw, 420px); padding: 10px 16px; border: 4px solid #1b1b2f; border-radius: 14px; background: #fff6e0; color: #1b1b2f; text-align: center; font-size: 14px; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.35s cubic-bezier(.2, 1.6, .4, 1); }
.board-mbox-result.is-in { opacity: 1; transform: scale(1); }
.board-mbox--jackpot .board-mbox-result, .board-mbox--mgWin .board-mbox-result { background: #ffd23f; box-shadow: 0 0 24px #ffd23f; }
@keyframes board-mbox-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes board-mbox-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.05); } 75% { transform: rotate(12deg) scale(1.05); } }
@keyframes board-mbox-pop { 0% { transform: translateY(0) scale(1); } 60% { transform: translateY(-40px) scale(1.3) rotate(-15deg); } 100% { transform: translateY(-24px) scale(1.15) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .board-mbox-chest.is-shaking, .board-mbox-chest.is-open .board-mbox-lid { animation: none; } }

/* Flaschendrehen */
.board-bottle-layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(27, 27, 47, 0.55); z-index: 40; pointer-events: auto; }
.board-bottle-layer.is-out { opacity: 0; transition: opacity 0.3s; }
.board-bottle-title { color: #fff; font-size: 18px; text-shadow: 0 3px 0 #1b1b2f; }
.board-bottle-ring { position: relative; border-radius: 50%; background: radial-gradient(circle, #fff6e0 0 55%, #ffd23f 56% 60%, #fff6e0 61%); border: 4px solid #1b1b2f; box-shadow: 0 5px 0 #1b1b2f; }
.board-bottle-fig { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; font-size: 10px; max-width: 70px; text-align: center; }
.board-bottle-fig small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.board-bottle-layer.is-done .board-bottle-fig.is-target { animation: board-bottle-hit 0.5s ease-in-out 3; }
.board-bottle-spinner { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(0deg); }
.board-bottle-shape { position: absolute; left: -14px; top: -78px; width: 28px; height: 110px; }
.board-bottle-shape::before { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 70px; border-radius: 10px 10px 8px 8px; background: #2e9d5a; border: 3px solid #1b1b2f; box-sizing: border-box; }
.board-bottle-shape::after { content: ''; position: absolute; left: 9px; top: 0; width: 10px; height: 44px; border-radius: 4px; background: #2e9d5a; border: 3px solid #1b1b2f; box-sizing: border-box; }
.board-bottle-shape i { position: absolute; left: 4px; bottom: 18px; width: 20px; height: 14px; background: #ffd23f; border-radius: 3px; z-index: 1; }
.board-bottle-result { max-width: min(90vw, 420px); padding: 8px 14px; border: 4px solid #1b1b2f; border-radius: 14px; background: #fff6e0; color: #1b1b2f; text-align: center; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.35s cubic-bezier(.2, 1.6, .4, 1); }
.board-bottle-result small { font-family: system-ui, sans-serif; font-size: 13px; }
.board-bottle-result.is-in { opacity: 1; transform: scale(1); }
.board-bottle--bad .board-bottle-result { background: #ffd6d6; }
.board-bottle--chaos .board-bottle-result { background: #e5d4ff; }
@keyframes board-bottle-hit { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .board-bottle-layer.is-done .board-bottle-fig.is-target { animation: none; } }

/* Übersichtskarte (Minimap) – antippen für Übersicht */
.board-minimap { display: block; width: 150px; height: 110px; margin-bottom: 6px; border: 3px solid #1b1b2f; border-radius: 10px; box-shadow: 0 3px 0 #1b1b2f; background: #7ccf5b; cursor: pointer; touch-action: manipulation; pointer-events: auto; }
.layout-phone .board-minimap { width: 112px; height: 82px; }