/* ==========================================================================
   TABLE.CSS - Vollständige Tisch-Engine, 3D-SVG-Layer & Stadion-Jumbotron
   ========================================================================== */

/* Responsives Contain-Scaling */
.table-stage {
  flex: 1;
  width: 100%;
  height: calc(100% - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 20;
}

.table-stage-box {
  position: absolute;
  width: 1080px;
  height: 520px;
  transform-origin: center center;
  transition: transform 0.3s ease;
}

.poker-table-wrapper {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 405px;
  transition: all 0.3s ease;
}

/* Im Haifischbecken den Tisch runder und größer darstellen */
.theme-haie-active .poker-table-wrapper {
  width: 920px;
  height: 450px;
}

/* Kompakte runde Tische: Dschungel & Disney */
.theme-dschungel-active .poker-table-wrapper,
.theme-disney-active .poker-table-wrapper {
  top: 57% !important;
  width: 700px !important;
  height: 430px !important;
}

/* Schnee: Etwas größeres Oval für die Schneelichtung */
.theme-schnee-active .poker-table-wrapper {
  top: 56% !important;
  width: 760px !important;
  height: 430px !important;
}

/* WSOP & Kappadokien: Schönes breites Oval passend zum Bühnenring / Sandplateau */
.theme-wsop-active .poker-table-wrapper,
.theme-kappadokien-active .poker-table-wrapper {
  top: 56% !important;
  width: 820px !important;
  height: 420px !important;
}

/* Im Gletscher UND in der Arena den Tisch kreisrund direkt in die Boden-Arena setzen */
.theme-gletscher-active .poker-table-wrapper {
  top: 50% !important;
  width: 640px !important;
  height: 490px !important;
}

.theme-arena-active .poker-table-wrapper {
  top: 55% !important;
  left: 49% !important;
  width: 650px !important;
  height: 490px !important;
}

/* Dschungel auf Breitbild-PC-Monitoren: Hintergrund oben ausrichten, damit die Papageien sichtbar bleiben */
@media screen and (min-width: 1200px) and (min-aspect-ratio: 16/10) {
  .casino-room-bg.theme-dschungel,
  body.theme-dschungel-active .casino-room-bg {
    background-position: center 8% !important;
    background-size: cover !important;
  }
}

/* ==========================================================================
   HOLODECK 3D-RAUM (Basis-Container für das 3D-SVG aus table-themes.js)
   ========================================================================== */

.casino-room-bg.theme-holodeck,
body.theme-holodeck-active .casino-room-bg {
  background-color: #030712 !important;
  background-image: none !important;
  overflow: hidden !important;
}

/* SVG Overlay Layer im Tisch */
.table-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 14;
  overflow: visible;
  border-radius: inherit;
}

/* ==========================================================================
   TISCHFLÄCHEN (FELTS) & THEMES
   ========================================================================== */

.felt-surface {
  position: absolute;
  inset: 0;
  background-color: #092c1a;
  background-image: radial-gradient(ellipse at 50% 48%, #19633e 0%, #11492e 58%, #072214 100%);
  border: 22px solid #2e130a;
  border-radius: 999px;
  transform: perspective(1050px) rotateX(34deg);
  transform-origin: center center;
  box-shadow: 
    inset 0 0 0 4px #1a0a05,
    inset 0 0 80px rgba(0,0,0,0.9),
    0 38px 0 #0d0402,
    0 75px 105px rgba(0,0,0,1),
    0 120px 160px rgba(0,0,0,0.95);
  z-index: 10;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Kappadokien Tisch: Exakt die helle Sand-/Tuffsteinfarbe der Felsen im Vordergrund */
.felt-surface.kappadokien-table {
  border-radius: 50% / 46% !important;
  background-color: #785230 !important;
  background-image: radial-gradient(ellipse at 50% 48%, #d4af7a 0%, #b08452 52%, #785230 90%, #4a3019 100%) !important;
  border: 22px solid #d6b88a !important;
  box-shadow: 
    inset 0 0 0 4px #8c6239,
    inset 0 0 65px rgba(45, 25, 10, 0.75),
    0 30px 0 #8c6d46,
    0 60px 85px rgba(0,0,0,0.8) !important;
}

/* Arena Tisch: Kreisrunder Gladiatoren-Schieferstein & dunkle Blutrot-Eisenbande */
.felt-surface.arena-table {
  border-radius: 50% !important;
  background-color: #1c1917 !important;
  background-image: radial-gradient(circle at 50% 50%, #44403c 0%, #292524 62%, #1c1917 95%, #0c0a09 100%) !important;
  border: 20px solid #450a0a !important;
  transform: perspective(1050px) rotateX(30deg) !important;
  box-shadow: 
    inset 0 0 0 4px #b45309,
    inset 0 0 80px rgba(0,0,0,0.92),
    0 24px 0 #1c1917,
    0 50px 80px rgba(0,0,0,0.95) !important;
}

/* Holodeck Tisch: Plastischer 3D-Tisch mit dickem Unterbau & tiefem Bodenschatten auf dem Gitterboden */
.felt-surface.holodeck-table {
  background-color: #050811 !important;
  background-image: radial-gradient(ellipse at 50% 46%, #172554 0%, #0b132b 58%, #030712 100%) !important;
  border: 24px solid #1e293b !important;
  box-shadow: 
    inset 0 0 0 4px #38bdf8,
    inset 0 0 65px rgba(2, 6, 23, 0.95),
    0 0 0 3px #38bdf8,
    0 38px 0 #091024,
    0 42px 0 #38bdf8,
    0 85px 115px rgba(0, 0, 0, 1),
    0 110px 150px rgba(0, 0, 0, 0.98) !important;
}

/* WSOP (Harmonisches Stadion-Oval, passend zum blauen Bühnenring) */
.felt-surface.wsop-table {
  border-radius: 50% / 46% !important;
  background-color: #081a36 !important;
  background-image: radial-gradient(ellipse at 50% 48%, #1d4ed8 0%, #0f2b5c 55%, #051024 100%) !important;
  border: 22px solid #181c26 !important;
  box-shadow: 
    inset 0 0 0 3px #3b82f6,
    inset 0 0 0 6px #0b1120,
    inset 0 0 85px rgba(2, 6, 23, 0.95),
    0 32px 0 #090d16,
    0 65px 95px rgba(0, 0, 0, 0.95) !important;
}

/* Strand */
.felt-surface.strand-table {
  background-color: #0284c7 !important;
  background-image: radial-gradient(ellipse at 50% 48%, #38bdf8 0%, #0284c7 55%, #0369a1 90%, #0c4a6e 100%) !important;
  border: 24px solid #d6c5a0 !important;
  box-shadow: 
    inset 0 0 0 4px #fef08a,
    inset 0 0 75px rgba(14, 165, 233, 0.55),
    0 38px 0 #a8946e,
    0 75px 105px rgba(0, 0, 0, 0.65) !important;
}

/* China */
.felt-surface.china-table {
  background-color: #064e3b !important;
  background-image: radial-gradient(ellipse at 50% 48%, #10b981 0%, #059669 45%, #047857 75%, #064e3b 100%) !important;
  border: 24px solid #7f1d1d !important;
  box-shadow: 
    inset 0 0 0 3.5px #facc15,
    inset 0 0 0 7px #991b1b,
    inset 0 0 80px rgba(6, 78, 59, 0.9),
    0 38px 0 #450a0a,
    0 75px 105px rgba(0, 0, 0, 0.95) !important;
}

/* Disney (Rund/kompakt angepasst an den Dorfplatz) */
.felt-surface.disney-table {
  border-radius: 50% / 47% !important;
  background-color: #14532d !important;
  background-image: radial-gradient(circle at 50% 50%, #22c55e 0%, #15803d 48%, #14532d 100%) !important;
  border: 20px solid #854d0e !important;
  box-shadow: 
    inset 0 0 0 3px #fef08a,
    inset 0 0 0 7px #a16207,
    inset 0 0 75px rgba(20, 83, 45, 0.9),
    0 28px 0 #451a03,
    0 60px 90px rgba(0, 0, 0, 0.85) !important;
}

/* Schnee (Größeres Oval angepasst an die Schneelichtung) */
.felt-surface.schnee-table {
  border-radius: 50% / 46% !important;
  background-color: #0369a1 !important;
  background-image: radial-gradient(ellipse at 50% 50%, #38bdf8 0%, #0284c7 48%, #0369a1 80%, #0c4a6e 100%) !important;
  border: 22px solid #475569 !important;
  box-shadow: 
    inset 0 0 0 3px #e0f2fe,
    inset 0 0 0 7px #1e293b,
    inset 0 0 80px rgba(2, 132, 199, 0.9),
    0 30px 0 #0f172a,
    0 65px 95px rgba(0, 0, 0, 0.95) !important;
}

/* Boxing Ring (Training) */
.felt-surface.boxing-ring {
  border-radius: 16px !important;
  background-color: #111827 !important;
  background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 70%, #05070c 100%) !important;
  border: 18px solid #1e293b !important;
  box-shadow: 
    inset 0 0 80px rgba(0,0,0,0.95),
    0 38px 0 #090d16,
    0 75px 110px rgba(0,0,0,1) !important;
}

/* Raft Table (Haifischbecken) */
.felt-surface.raft-table {
  border-radius: 50% / 48% !important;
  background-color: #141820 !important;
  background-image: radial-gradient(circle at 50% 50%, #262b36 0%, #151821 70%, #0a0c10 100%) !important;
  border: 26px solid #1e2430 !important;
  box-shadow: 
    inset 0 0 0 3px #94a3b8,
    inset 0 0 85px rgba(0,0,0,0.95),
    0 35px 70px rgba(0, 5, 15, 0.9) !important;
}

/* Vault Table (Tresor) */
.felt-surface.vault-table {
  background-color: #15120e !important;
  background-image: radial-gradient(ellipse at 50% 48%, #2b241d 0%, #17130f 58%, #080605 100%) !important;
  border: 22px solid #3d2f21 !important;
  box-shadow: 
    inset 0 0 0 4px #080605,
    inset 0 0 0 9px #8c6d46,
    inset 0 0 85px rgba(0,0,0,0.95),
    0 38px 0 #050403,
    0 75px 105px rgba(0,0,0,1) !important;
}

/* Dschungel */
.felt-surface.dschungel-table {
  border-radius: 50% / 47% !important;
  background-color: #163822 !important;
  background-image: radial-gradient(circle at 50% 50%, #1f4e30 0%, #12301c 58%, #07190f 100%) !important;
  border: 18px solid #2d1d10 !important;
  box-shadow: 
    inset 0 0 0 3.5px #152c1a,
    inset 0 0 75px rgba(0,0,0,0.92),
    0 24px 0 #170f08,
    0 52px 75px rgba(0,0,0,1) !important;
}

/* Gletscher */
.felt-surface.glacier-table {
  border-radius: 50% !important;
  background-color: #0b1d35 !important;
  background-image: radial-gradient(circle at 50% 50%, #173b69 0%, #0a1931 68%, #040c18 100%) !important;
  border: 18px solid #38bdf8 !important;
  transform: perspective(1050px) rotateX(30deg) !important;
  box-shadow: 
    inset 0 0 0 4px #e0f2fe,
    inset 0 0 0 8px #0284c7,
    inset 0 0 80px rgba(56, 189, 248, 0.45),
    0 20px 0 #0369a1,
    0 40px 65px rgba(0, 40, 90, 0.85) !important;
}

/* Vulkan */
.felt-surface.volcano-table {
  border-radius: 50% / 46% !important;
  background-color: #180303 !important;
  background-image: radial-gradient(circle at 50% 50%, #581c87 0%, #450a0a 40%, #180303 75%, #080101 100%) !important;
  border: 20px solid #ea580c !important;
  box-shadow: 
    inset 0 0 0 4px #fed7aa,
    inset 0 0 0 9px #c2410c,
    inset 0 0 80px rgba(239, 68, 68, 0.5),
    0 25px 45px rgba(120, 20, 0, 0.7) !important;
}

.table-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24%;
  max-width: 215px;
  min-width: 80px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
  z-index: 15;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.center-pot-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}

.board-cards { 
  display: flex; 
  justify-content: center; 
  gap: 7px; 
  min-height: 95px;
  transform: perspective(400px) rotateX(12deg);
  transform-origin: center center;
}

/* 3D Start Button */
.center-deal-pod {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.btn-start-deal-3d {
  background: linear-gradient(180deg, #334155 0%, #1e293b 50%, #0f172a 100%);
  border: 2px solid #64748b;
  border-top: 2.5px solid #94a3b8;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 900;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 
    0 6px 0 #090d16,
    0 12px 25px rgba(0,0,0,0.9),
    inset 0 1px 1px rgba(255,255,255,0.35);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-start-deal-3d:hover {
  background: linear-gradient(180deg, #475569 0%, #334155 50%, #1e293b 100%);
  border-color: #cbd5e1;
  color: #facc15;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 0 #090d16,
    0 15px 30px rgba(0,0,0,0.95),
    inset 0 1px 2px rgba(255,255,255,0.45);
}
.btn-start-deal-3d:active {
  transform: translateY(4px);
  box-shadow: 
    0 2px 0 #090d16,
    0 5px 12px rgba(0,0,0,0.85),
    inset 0 2px 4px rgba(0,0,0,0.6);
}

.angie-pot-badge {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c2d12 0%, #431407 100%);
  border: 2px solid #fb923c;
  color: #ffedd5;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  box-shadow: 0 6px 16px rgba(251, 146, 60, 0.25), inset 0 1px 2px rgba(255,255,255,0.15);
  z-index: 75;
  pointer-events: none;
  white-space: nowrap;
}

.equity-container { display: none; width: 230px; margin: 0 auto 5px; background: #0b0e14; border: 1.5px solid #334155; border-radius: 6px; overflow: hidden; height: 17px; position: relative; }
.equity-fill-p1 { height: 100%; width: 50%; background: #ec4899; float: left; transition: width 0.4s ease; }
.equity-fill-p2 { height: 100%; width: 50%; background: #0284c7; float: left; transition: width 0.4s ease; }
.equity-text { position: absolute; width: 100%; text-align: center; line-height: 17px; font-weight: 600; font-size: 0.72rem; color: #fff; text-shadow: 0 1px 3px #000; }

/* Sitz-Slots */
.seat-slot { 
  position: absolute; 
  width: 170px; 
  height: 170px; 
  z-index: 50; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: auto;
  transform-origin: center center;
}
.seat-slot:hover { z-index: 150 !important; }

.btn-sit-pod { 
  width: 95px; 
  height: 95px; 
  border-radius: 50%; 
  background: radial-gradient(circle, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%); 
  border: 2.5px dashed rgba(56, 189, 248, 0.75); 
  color: #cbd5e1; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 3px; 
  cursor: pointer; 
  box-shadow: 0 8px 22px rgba(0,0,0,0.85); 
  transition: all 0.2s ease; 
  margin-top: 15px;
  pointer-events: auto;
}
.btn-sit-pod:hover { border-color: #facc15; color: #facc15; transform: scale(1.08); }

.avatar-medallion {
  position: relative;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 4.5px solid #d4af37;
  box-shadow: 0 0 0 3px #0f172a, 0 12px 28px rgba(0,0,0,0.95);
  background: radial-gradient(circle at 50% 30%, #1e293b, #090e17);
  overflow: hidden;
  flex-shrink: 0;
  z-index: 60;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.avatar-medallion.active {
  border-color: #38bdf8;
  box-shadow: 0 0 32px rgba(56, 189, 248, 1);
}
.avatar-medallion.winner {
  border-color: #facc15 !important;
  box-shadow: 0 0 38px rgba(250, 204, 21, 1) !important;
}
.avatar-medallion.folded {
  opacity: 0.35;
  filter: grayscale(85%);
}

.avatar-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pocket-cards-fan {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 80px;
  width: 115px;
  z-index: 64 !important;
  pointer-events: none;
}
.pocket-cards-fan .card-standard {
  margin: 0 !important;
  flex-shrink: 0;
}
.pocket-cards-fan .card-standard:first-child {
  transform: scale(0.85) rotate(-10deg) translateX(12px);
  transform-origin: bottom center;
  box-shadow: -3px 3px 11px rgba(0,0,0,0.9);
  z-index: 1;
}
.pocket-cards-fan .card-standard:last-child {
  transform: scale(0.85) rotate(10deg) translateX(-12px);
  transform-origin: bottom center;
  box-shadow: 3px 3px 13px rgba(0,0,0,0.95);
  z-index: 2;
}

.player-plaque {
  position: relative;
  margin-top: -10px;
  background: linear-gradient(180deg, #162032 0%, #090d16 100%);
  border: 1.5px solid #64748b;
  border-radius: 6px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 155px;
  height: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.95);
  z-index: 68 !important;
  overflow: hidden;
  gap: 6px;
}
.player-plaque .p-name {
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-plaque .p-stack {
  font-size: 0.82rem;
  font-weight: 900;
  color: #facc15;
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.avatar-hand-badge {
  margin-top: 2px;
  background: rgba(9, 14, 26, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.85);
  white-space: nowrap;
  pointer-events: none;
  z-index: 70;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.plaque-timer-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(15, 23, 42, 0.9);
}
.plaque-timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #facc15);
  transition: width 0.1s linear;
}
.plaque-timer-fill.warning {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.seat-hud-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: rgba(9, 14, 26, 0.98);
  border: 1.5px solid #38bdf8;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.95);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 300;
  text-align: left;
}
.seat-slot:hover .seat-hud-popup {
  opacity: 1;
  visibility: visible;
}
.hud-pop-title {
  font-size: 0.70rem;
  font-weight: 900;
  color: #facc15;
  text-transform: uppercase;
  border-bottom: 1px solid #334155;
  padding-bottom: 3px;
  margin-bottom: 5px;
}
.hud-pop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  color: #cbd5e1;
  margin-bottom: 3px;
}
.hud-pop-bar {
  width: 88px;
  height: 4px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
}
.hud-pop-fill { height: 100%; background: #38bdf8; }
.hud-pop-fill.gold { background: #facc15; }
.hud-pop-fill.red { background: #ef4444; }

.dealer-chip { 
  position: absolute; 
  top: 4px; 
  right: 12px; 
  width: 26px; 
  height: 26px; 
  background: radial-gradient(circle, #fff 30%, #e2e8f0 100%); 
  color: #dc2626; 
  border: 2px solid #dc2626; 
  border-radius: 50%; 
  font-size: 0.80rem; 
  font-weight: 900; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 3px 8px rgba(0,0,0,0.9); 
  z-index: 75; 
}

.felt-bet-badge { 
  position: absolute; 
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); 
  border: 2px solid #facc15; 
  color: #facc15; 
  padding: 3px 12px; 
  border-radius: 15px; 
  font-size: 0.90rem; 
  font-weight: 900; 
  z-index: 75; 
  pointer-events: none; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.95); 
  white-space: nowrap; 
  display: flex; 
  align-items: center; 
  gap: 4px; 
}
.felt-bet-badge::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 4px #facc15;
}

#status-overlay {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  color: #facc15;
  font-weight: 600;
  text-shadow: 0 2px 4px #000;
  background: rgba(5, 7, 12, 0.94);
  padding: 3px 14px;
  border-radius: 12px;
  border: 1px solid rgba(250,204,21,0.28);
  pointer-events: none;
  white-space: nowrap;
  z-index: 85;
}

/* Steuerungsbereich & Solver-Integration */
.corner-right-stack {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.solver-box {
  width: 215px;
  background: rgba(10, 15, 28, 0.94);
  border: 1.5px solid #38bdf8;
  border-radius: 8px;
  padding: 5px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  text-align: left;
  display: none;
}
.solver-box.mobile-visible { display: block; }

/* Stadion-Anzeigetafel (Jumbotron) im Trainingsraum */
.solver-box.jumbotron-mode {
  position: fixed !important;
  top: 44px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(88vw, 520px) !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(5, 7, 12, 0.98) 100%) !important;
  border: 2px solid #facc15 !important;
  border-top: 3px solid #ef4444 !important;
  border-radius: 0 0 12px 12px !important;
  padding: 6px 14px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.95), 0 0 18px rgba(250, 204, 21, 0.22) !important;
  z-index: 180 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 10px;
  align-items: center;
}
.solver-box.jumbotron-mode .solver-title {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: #facc15;
  border-bottom: 1px solid rgba(250, 204, 21, 0.3);
  padding-bottom: 3px;
  margin-bottom: 1px;
}
.solver-box.jumbotron-mode .solver-line {
  font-size: 0.68rem;
  background: rgba(30, 41, 59, 0.65);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}
.solver-box.jumbotron-mode .solver-advice {
  grid-column: 1 / -1;
  font-size: 0.70rem;
  padding: 3px 8px;
  letter-spacing: 0.4px;
}

@media screen and (max-height: 520px), screen and (max-width: 920px) {
  .solver-box.jumbotron-mode {
    top: 42px !important;
    width: min(68vw, 360px) !important;
    padding: 3px 8px !important;
    gap: 2px 6px !important;
    transform: translateX(-50%) scale(0.82) !important;
    transform-origin: top center !important;
  }
  .solver-box.jumbotron-mode .solver-title {
    font-size: 0.60rem;
    padding-bottom: 1px;
  }
  .solver-box.jumbotron-mode .solver-line {
    font-size: 0.58rem;
    padding: 1px 4px;
  }
  .solver-box.jumbotron-mode .solver-advice {
    font-size: 0.60rem;
    padding: 2px 4px;
  }
}

.solver-title {
  font-size: 0.65rem;
  font-weight: 900;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding-bottom: 2px;
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
}
.solver-line {
  font-size: 0.65rem;
  color: #cbd5e1;
  margin-bottom: 1px;
  display: flex;
  justify-content: space-between;
}
.solver-val { font-weight: bold; color: #facc15; }
.solver-advice {
  margin-top: 2px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid #16a34a;
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: bold;
  text-align: center;
}

.corner-controls {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  background: rgba(10, 14, 22, 0.95);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  max-width: 215px;
}
.preset-row { display: flex; gap: 3px; width: 100%; justify-content: space-between; }
.btn-preset { background: #1e293b; color: #38bdf8; border: 1px solid #334155; padding: 3px 5px; font-size: 0.68rem; border-radius: 4px; font-weight: bold; cursor: pointer; flex: 1; text-align: center; }
.slider-row { display: flex; align-items: center; gap: 4px; width: 100%; }
input[type=range] { width: 110px; cursor: pointer; accent-color: #38bdf8; height: 4px; flex: 1; }
input[type=number] { padding: 2px; font-size: 0.74rem; width: 50px; border-radius: 4px; border: 1px solid #555; background: #222; color: #fff; text-align: center; }

.action-row { display: flex; gap: 3px; width: 100%; }
.btn-action-main { padding: 5px 8px; font-size: 0.76rem; cursor: pointer; border: none; border-radius: 4px; font-weight: bold; flex: 1; text-align: center; }
.btn-action-main:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-fold { background: #dc2626; color: #fff; }
.btn-call { background: #2563eb; color: #fff; }
.btn-raise { background: #16a34a; color: #fff; }

.pre-action-row {
  display: none;
  gap: 6px;
  align-items: center;
  padding: 3px 5px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 4px;
  border: 1px solid #334155;
  width: 100%;
}
.pre-action-label {
  font-size: 0.66rem;
  font-weight: bold;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.pre-action-label input { accent-color: #38bdf8; cursor: pointer; }