:root {
  --bg: #0e1c26;
  --bg-alt: #13293a;
  --panel: #183449;
  --panel-alt: #1f4560;
  --border: #2f5a78;
  --text: #eaf3f8;
  --text-dim: #9db8ca;
  --gold: #f4c95d;
  --gold-bright: #ffdd88;
  --accent: #d63a2f;
  --accent-bright: #ef5347;
  --danger: #e35d6a;
  --success: #3ecf8e;
  --radius: 14px;
  --board-paper: #cfe6d2;
  --board-line: #14261b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #1d4560 0%, var(--bg) 62%);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { margin: 0 0 0.4em 0; }

.hidden { display: none !important; }

.screen {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 14px;
}

#screen-home, #screen-lobby { align-items: center; min-height: 100vh; }
#screen-home { flex-direction: column; gap: 14px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

.home-card { text-align: center; }
.home-card h1 { font-size: 2.3rem; margin-bottom: 0; text-shadow: 0 0 18px rgba(239,83,71,0.55); }
.home-sub { margin: 0 0 8px; color: var(--gold-bright); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; font-weight: 700; }
.subtitle { color: var(--text-dim); margin-bottom: 20px; }
.hint { color: var(--text-dim); font-size: 0.85rem; margin-top: 14px; }
.eyebrow { color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 600;
}
.tab-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.tab-panel label, .lobby-settings label { display: block; font-size: 0.8rem; color: var(--text-dim); margin: 12px 0 4px; text-align: left; }

input, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
input:focus, select:focus { outline: 2px solid var(--accent-bright); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.05s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent-bright), #a8271e); border-color: var(--accent); color: white; width: 100%; margin-top: 16px; }
.btn.secondary { background: linear-gradient(135deg, var(--gold), #d9a53a); border-color: var(--gold); color: #241a05; }
.btn.good { background: linear-gradient(135deg, #3ecf8e, #1f9a63); border-color: #3ecf8e; color: #04170e; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 0.8rem; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn.inline { width: auto; margin-top: 0; }

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-alt);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 999;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  max-width: 90vw;
  text-align: center;
}

/* ---------------- Lobby ---------------- */

.lobby-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.room-code { font-size: 1.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-bright); }
.room-code.small { font-size: 1rem; }

.player-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.player-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border);
}
.player-list li.disconnected { opacity: 0.5; }
.player-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tag { font-size: 0.68rem; padding: 2px 6px; border-radius: 6px; background: var(--panel-alt); color: var(--text-dim); }
.tag.host { background: var(--gold); color: #241a05; }
.tag.bot { background: #4b5f70; color: #fff; }
.remove-bot-btn {
  border: 1px solid var(--border); background: transparent; color: var(--text-dim);
  border-radius: 8px; width: 26px; height: 26px; cursor: pointer;
}
.remove-bot-btn.confirm { background: var(--danger); color: white; border-color: var(--danger); width: auto; padding: 0 10px; font-size: 0.8rem; white-space: nowrap; }
.bot-controls { display: flex; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.lobby-settings { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.rules-btn { margin-top: 12px; }

.tokdot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 3px solid var(--pc, #888);
  font-size: 1.05rem; line-height: 1; flex: none;
}
.tokdot.sm { width: 24px; height: 24px; font-size: 0.85rem; border-width: 2px; }

/* ---------------- Spiel ---------------- */

#screen-game {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  padding: 0; min-height: 0; align-items: stretch;
  overflow: hidden;
}

.game-header {
  flex: none;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 6px 12px;
}
.game-header-left, .game-header-right { display: flex; align-items: center; gap: 8px; }
.turn-badge { font-weight: 700; color: var(--gold-bright); font-size: 0.9rem; }
.turn-badge.mine { color: #04170e; background: var(--success); padding: 2px 10px; border-radius: 999px; }

.game-body {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr) minmax(250px, 340px);
  gap: 12px;
  padding: 8px 12px;
}

.board-col {
  min-width: 0; min-height: 0;
  container-type: size;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Spielbrett ---- */
.board {
  --pad: 1.45fr;
  width: min(100cqw, 100cqh);
  height: min(100cqw, 100cqh);
  container-type: inline-size;
  display: grid;
  grid-template-columns: var(--pad) repeat(9, 1fr) var(--pad);
  grid-template-rows: var(--pad) repeat(9, 1fr) var(--pad);
  background: var(--board-paper);
  color: var(--board-line);
  border: 2px solid var(--board-line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
  position: relative;
  font-size: 1.05cqw;
  user-select: none;
}

.sq {
  position: relative;
  display: flex;
  border: 1px solid var(--board-line);
  background: linear-gradient(160deg, #e8f5ea 0%, #d6eadb 60%, #cbe2d0 100%);
  box-shadow: inset 0 0.15cqw 0 rgba(255,255,255,0.7), inset 0 -0.2cqw 0.3cqw rgba(0,60,30,0.12);
  overflow: hidden;
  line-height: 1.12;
  cursor: pointer;
  min-width: 0; min-height: 0;
}
.sq:hover { filter: brightness(1.06); }
.sq.side-bottom { flex-direction: column; }
.sq.side-top { flex-direction: column-reverse; }
.sq.side-left { flex-direction: row-reverse; }
.sq.side-right { flex-direction: row; }

.sq .band {
  flex: 0 0 24%;
  min-width: 0; min-height: 0; overflow: hidden;
  background: var(--band, transparent);
  border: 0 solid var(--board-line);
  display: flex; align-items: center; justify-content: center; gap: 0.25cqw;
}
.sq.side-bottom .band { border-bottom-width: 1px; }
.sq.side-top .band { border-top-width: 1px; }
.sq.side-left .band { border-left-width: 1px; }
.sq.side-right .band { border-right-width: 1px; }
.sq .band .house { width: 1.35cqw; height: 1.35cqw; background: #1fa855; border: 1px solid #0b4a25; border-radius: 0.2cqw; }
.sq .band .hotel { width: 2.6cqw; height: 1.4cqw; background: #d63a2f; border: 1px solid #6d120c; border-radius: 0.2cqw; }
.sq.side-left .band, .sq.side-right .band { flex-direction: column; }
.sq.side-left .band .hotel, .sq.side-right .band .hotel { width: 1.4cqw; height: 2.6cqw; }
.sq .band .mort { font-size: 1.2cqw; font-weight: 800; color: #fff; text-shadow: 0 0 2px #000; }

.sq .sq-body {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0.2cqw 0.25cqw; gap: 0.15cqw; min-width: 0;
}
.sq .sq-name { font-weight: 800; font-size: 1.4cqw; text-shadow: 0 0 0.35cqw rgba(255,255,255,0.95), 0 0 0.7cqw rgba(255,255,255,0.8); overflow-wrap: anywhere; word-break: normal; hyphens: manual; line-height: 1.1; }
.sq .sq-price { font-size: 1.25cqw; color: #2b4636; text-shadow: 0 0 0.35cqw rgba(255,255,255,0.9); }
.sq .sq-icon { font-size: 2.6cqw; line-height: 1; }
.sq.corner .sq-icon { font-size: 3.4cqw; }
.sq.corner .sq-name { font-size: 1.45cqw; }
.sq.owned::before { content: ''; position: absolute; z-index: 2; background: var(--own); pointer-events: none; box-shadow: 0 0 0.6cqw var(--own); }
.sq.side-bottom.owned::before { left: 0; right: 0; bottom: 0; height: 0.6cqw; }
.sq.side-top.owned::before { left: 0; right: 0; top: 0; height: 0.6cqw; }
.sq.side-left.owned::before { top: 0; bottom: 0; left: 0; width: 0.6cqw; }
.sq.side-right.owned::before { top: 0; bottom: 0; right: 0; width: 0.6cqw; }
.own-badge { position: absolute; z-index: 2; width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #fff; border: 0.22cqw solid var(--own); display: flex; align-items: center; justify-content: center; font-size: 1cqw; line-height: 1; pointer-events: none; }
.sq.side-bottom .own-badge { right: 0.4cqw; bottom: 0.8cqw; }
.sq.side-top .own-badge { right: 0.4cqw; top: 0.8cqw; }
.sq.side-left .own-badge { left: 0.9cqw; bottom: 0.4cqw; }
.sq.side-right .own-badge { right: 0.9cqw; bottom: 0.4cqw; }
.sq.mortgaged .sq-body { opacity: 0.45; }
.sq.mortgaged::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,0.14) 0 0.5cqw, transparent 0.5cqw 1.2cqw);
  pointer-events: none;
}
.sq.t-tax .sq-body { background: rgba(0,0,0,0.04); }
.sq.t-jail .sq-body { background: #f6b04a; }
.sq.t-gotojail .sq-body { background: #c8dcf4; }

.tokens {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center;
  gap: 0; padding: 0.3cqw; pointer-events: none;
}
.tokens .tk + .tk { margin-left: -0.6cqw; }
.tk {
  width: 3.4cqw; height: 3.4cqw; border-radius: 50%;
  background: #fff; border: 0.25cqw solid var(--pc, #888);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4cqw; line-height: 1;
  box-shadow: 0 0.2cqw 0.6cqw rgba(0,0,0,0.5);
}
.tk.turn { animation: tk-pulse 1.1s ease-in-out infinite; }
.tk.jailed { outline: 0.25cqw dashed #b00; }
@keyframes tk-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

.board-center {
  grid-area: 2 / 2 / 11 / 11;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw;
  padding: 2cqw;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35), transparent 70%),
    var(--board-paper);
}
.logo {
  background: linear-gradient(180deg, #e2453a, #b3261c);
  color: #fff; border: 0.35cqw solid #fff; outline: 0.25cqw solid #b3261c;
  padding: 1.2cqw 4cqw; text-align: center; transform: rotate(-4deg);
  box-shadow: 0 0.6cqw 1.6cqw rgba(0,0,0,0.35);
}
.logo .l1 { font-size: 6.4cqw; font-weight: 900; letter-spacing: 0.35cqw; line-height: 1; text-shadow: 0 0.3cqw 0 rgba(0,0,0,0.25); }
.logo .l2 { font-size: 1.7cqw; letter-spacing: 0.7cqw; text-transform: uppercase; margin-top: 0.4cqw; }

.deck {
  position: absolute; width: 17cqw; height: 10.5cqw; border-radius: 1cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3cqw;
  border: 0.3cqw dashed rgba(0,0,0,0.5); font-weight: 700; font-size: 1.15cqw; text-align: center; color: #10231a;
}
.deck .di { font-size: 3.6cqw; line-height: 1; }
.deck.community { left: 5cqw; top: 5cqw; background: #8fd3f4; transform: rotate(35deg); }
.deck.chance { right: 5cqw; bottom: 5cqw; background: #f5a45a; transform: rotate(35deg); }

.dice-row { display: flex; gap: 2cqw; min-height: 8cqw; align-items: center; z-index: 2; }
.die {
  width: 7cqw; height: 7cqw; background: #fff; border-radius: 1.2cqw;
  border: 1px solid #999; box-shadow: 0 0.4cqw 0.8cqw rgba(0,0,0,0.35);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 0.9cqw;
}
.die .pip { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #111; place-self: center; }
.die.rolling { animation: die-shake 0.12s linear infinite; }
@keyframes die-shake { 0% { transform: rotate(-25deg) translateY(0) scale(1.05); } 50% { transform: rotate(20deg) translateY(-1.4cqw) scale(1.12); } 100% { transform: rotate(-25deg) translateY(0) scale(1.05); } }

.status-box {
  z-index: 2; text-align: center; max-width: 46cqw;
  background: rgba(255,255,255,0.72); border: 1px solid rgba(0,0,0,0.25); border-radius: 1cqw;
  padding: 1cqw 2cqw; font-size: 1.7cqw; font-weight: 700; line-height: 1.25;
}
.status-box small { display: block; font-weight: 500; font-size: 1.3cqw; color: #35503f; margin-top: 0.3cqw; }

.center-card {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46cqw; padding: 2.4cqw 2.6cqw; border-radius: 1.4cqw; text-align: center; cursor: pointer;
  box-shadow: 0 1cqw 4cqw rgba(0,0,0,0.55); border: 0.4cqw solid #10231a;
  animation: card-in 0.25s ease-out;
}
.center-card.chance { background: #ffd9b0; }
.center-card.community { background: #cdeeff; }
.center-card .cc-title { font-weight: 800; font-size: 1.5cqw; text-transform: uppercase; letter-spacing: 0.2cqw; margin-bottom: 1cqw; }
.center-card .cc-text { font-size: 2.1cqw; line-height: 1.3; font-weight: 600; }
.center-card .cc-who { font-size: 1.3cqw; margin-top: 1cqw; color: #35503f; }
@keyframes card-in { 0% { transform: translate(-50%, -46%) scale(0.85); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

/* ---- Seitenleiste ---- */
.side-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: auto; }

.players-panel { display: flex; flex-direction: column; gap: 6px; }
.pp-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  background: var(--bg-alt); border: 1px solid var(--border); border-left: 5px solid var(--pc, #888);
  border-radius: 10px; padding: 6px 10px; cursor: pointer;
}
.pp-row:hover { filter: brightness(1.12); }
.pp-row.turn { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.pp-row.me .pp-name::after { content: ' (du)'; color: var(--text-dim); font-weight: 400; }
.pp-row.bankrupt { opacity: 0.4; }
.pp-row.bankrupt .pp-name { text-decoration: line-through; }
.pp-row.offline { opacity: 0.6; }
.pp-name { font-weight: 700; font-size: 0.9rem; }
.pp-sub { font-size: 0.72rem; color: var(--text-dim); }
.pp-money { font-weight: 800; color: var(--gold-bright); font-size: 0.95rem; white-space: nowrap; }

.feed-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-height: 0; }
.feed-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 4px; }
.event-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; }
.event-feed li { color: var(--text-dim); }
.event-feed li:first-child { color: var(--text); }

/* ---- Linke Spalte: meine Sachen ---- */
.center-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.center-col .board-col { flex: 1 1 auto; }
.me-col { min-width: 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, #14303f, #0d2130); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.dock-me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dock-me .who { font-weight: 700; font-size: 1.05rem; }
.dock-money { font-size: 1.7rem; font-weight: 900; color: var(--gold-bright); line-height: 1.1; }
.dock-money small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--text-dim); }
.dock-props-title { margin: 6px 0 2px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.dock-props { display: flex; flex-direction: column; gap: 8px; }
.dock-props .empty { color: var(--text-dim); font-size: 0.85rem; font-style: italic; padding: 8px 0; }
.grp-row { display: flex; gap: 6px; align-items: stretch; }
.grp-bar { flex: 0 0 6px; border-radius: 3px; background: var(--band, #999); }
.grp-cards { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.grp-row .pc { width: 84px; height: 96px; }

/* ---- Aktionsleiste unter dem Brett ---- */
.dock {
  flex: none;
  background: linear-gradient(180deg, #14303f, #0d2130);
  border: 2px solid var(--border); border-radius: 12px;
  padding: 10px 14px; min-height: 66px;
  display: flex; align-items: center;
}
.dock.my-turn { border-color: var(--gold); box-shadow: 0 0 18px rgba(244,201,93,0.3); }
.dock-actions { flex: 1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.dock-actions .msg { color: var(--text-dim); font-size: 0.9rem; }
.dock-actions .msg b { color: var(--text); }
.dock-actions .btn { padding: 10px 16px; }
.bid-input { width: 100px; padding: 8px 10px; }

/* Besitz der Mitspieler (kleine Farbchips) */
.pp-props { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px 8px; padding-top: 4px; }
.pp-grp { display: flex; gap: 2px; }
.pp-chip { width: 15px; height: 20px; border-radius: 3px; background: var(--band, #999); border: 1px solid rgba(0,0,0,0.6);
  font-size: 0.6rem; font-weight: 800; line-height: 18px; text-align: center; color: #fff; text-shadow: 0 0 2px #000; cursor: pointer; }
.pp-chip.light { color: #14261b; text-shadow: none; }
.pp-chip.mortgaged { opacity: 0.35; background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(0,0,0,0.6) 3px 5px); }
.pp-none { font-size: 0.72rem; color: var(--text-dim); font-style: italic; }

/* Grundstückskarte */
.pc {
  flex: 0 0 auto; width: 88px; height: 104px;
  background: #fbfbf1; color: #14261b;
  border-radius: 8px; overflow: hidden; position: relative; cursor: pointer;
  border: 2px solid transparent; box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
}
.pc:hover { transform: translateY(-2px); }
.pc .pc-band { height: 24px; background: var(--band, #999); display: flex; align-items: center; justify-content: center; gap: 2px; border-bottom: 1px solid rgba(0,0,0,0.5); }
.pc .pc-band .house { width: 10px; height: 10px; background: #1fa855; border: 1px solid #0b4a25; border-radius: 2px; }
.pc .pc-band .hotel { width: 20px; height: 11px; background: #d63a2f; border: 1px solid #6d120c; border-radius: 2px; }
.pc .pc-icon { font-size: 1rem; }
.pc .pc-name { flex: 1; font-size: 0.72rem; font-weight: 700; padding: 5px 4px 0; text-align: center; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.pc .pc-meta { font-size: 0.66rem; color: #4a5f52; text-align: center; padding-bottom: 5px; }
.pc.mono { border-color: var(--gold); }
.pc.mortgaged { filter: grayscale(1); opacity: 0.65; }
.pc.mortgaged::after { content: 'Hypothek'; position: absolute; left: 0; right: 0; top: 42%; text-align: center; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.65rem; padding: 2px 0; transform: rotate(-12deg); }
.pc.small { width: 78px; height: 72px; }
.pc.small .pc-band { height: 16px; }
.pc.small .pc-name { font-size: 0.62rem; padding-top: 3px; }
.pc.small .pc-meta { display: none; }
.pc.pick { cursor: pointer; }
.pc.picked { border-color: var(--success); box-shadow: 0 0 0 2px var(--success), 0 3px 8px rgba(0,0,0,0.4); }
.pc.locked { opacity: 0.35; cursor: not-allowed; }

/* ---- Modals ---- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.62); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 14px; }
.modal-content {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; max-width: 520px; width: 100%; max-height: 90vh; max-height: 90dvh; overflow-y: auto;
  position: relative; box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}
.modal-content h2 { padding-right: 40px; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.rules-modal-content { max-width: 640px; }
.prop-modal-content { padding-top: 46px; }
.rules-text h3 { margin-top: 1em; color: var(--gold-bright); }
.rules-text p { color: var(--text); line-height: 1.5; margin: 0.3em 0; }
.log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 4px; font-size: 0.88rem; }
.log-list li { color: var(--text-dim); padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

.deed { background: #fbfbf1; color: #14261b; border-radius: 10px; overflow: hidden; border: 2px solid #14261b; margin-bottom: 14px; }
.deed .deed-head { padding: 12px; text-align: center; background: var(--band, #999); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); border-bottom: 2px solid #14261b; }
.deed .deed-head.lightband { color: #14261b; text-shadow: none; }
.deed .deed-head small { display: block; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.65rem; }
.deed .deed-head b { font-size: 1.25rem; }
.deed table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.deed td { padding: 5px 14px; }
.deed td:last-child { text-align: right; font-weight: 700; }
.deed tr:nth-child(even) { background: rgba(0,0,0,0.045); }
.deed .deed-foot { padding: 8px 14px; font-size: 0.8rem; color: #4a5f52; border-top: 1px solid rgba(0,0,0,0.15); }
.deed tr.cur { background: #fff1b8 !important; }
.btn-col { display: flex; flex-direction: column; gap: 8px; }
.btn-col .btn { width: 100%; }
.reason { font-size: 0.75rem; color: var(--text-dim); text-align: center; margin-top: -4px; }

.pl-cards { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

/* Handel */
.trade-modal-content { max-width: 760px; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.trade-col { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px; min-width: 0; }
.trade-col h4 { margin: 0 0 6px; font-size: 0.85rem; }
.trade-col label { display: block; font-size: 0.75rem; color: var(--text-dim); margin: 8px 0 3px; }
.trade-summary { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 0.92rem; line-height: 1.5; }
.row-btns { display: flex; gap: 8px; margin-top: 12px; }
.row-btns .btn { flex: 1; }

.over-crown { font-size: 3.4rem; text-align: center; }
.rank-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.rank-list li { display: flex; align-items: center; gap: 10px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }

/* ---------------- Mobil / schmal ---------------- */
@media (max-width: 900px) {
  #screen-game { height: 100dvh; }
  .game-body {
    display: flex; overflow-y: auto; padding: 6px 8px 10px;
  }
  .game-body { display: flex; flex-direction: column; gap: 8px; }
  .center-col { display: contents; }
  .board-col { order: 1; width: 100%; aspect-ratio: 1 / 1; height: auto; flex: none; }
  .dock { order: 2; position: sticky; bottom: 0; z-index: 20; padding: 8px 10px; min-height: 0; }
  .me-col { order: 3; overflow: visible; flex: none; }
  .side-col { order: 4; margin-top: 0; overflow: visible; flex: none; }
  .dock-money { font-size: 1.3rem; }
  .game-header { padding: 4px 8px; flex-wrap: nowrap; }
  .game-header .lbl { display: none; }
  .game-header .btn.small { padding: 6px 9px; }
  .room-code.small { letter-spacing: 0.08em; }
  .trade-cols { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

/* Hausregeln in der Lobby */
.rules-h { margin: 16px 0 6px; }
.rule-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.rule-item { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.rule-item input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
.rule-item span { display: flex; flex-direction: column; gap: 2px; }
.rule-item small { color: var(--text-dim); font-size: 0.78rem; line-height: 1.35; }
.rule-item.locked { cursor: default; opacity: 0.85; }
.sq-pot { color: #b3261e; font-weight: 800; }

/* Knast-Animation: Gitter fallen über das Brett */
.jail-anim { position: absolute; inset: 0; overflow: hidden; z-index: 30; pointer-events: none; display: flex; align-items: center; justify-content: center; background: rgba(10,20,40,0); animation: jail-dim 0.4s forwards; transition: opacity 0.4s; }
.jail-anim.out { opacity: 0; }
.jail-bars { position: absolute; inset: 0; display: flex; justify-content: space-around; }
.jail-bars i { width: 2.2%; height: 100%; background: linear-gradient(90deg, #4a4f57, #b8bec8 45%, #4a4f57); border-radius: 0 0 1cqw 1cqw; box-shadow: 0 0 1.5cqw rgba(0,0,0,0.6); transform: translateY(-105%); animation: bar-fall 0.55s cubic-bezier(.4,1.5,.5,1) forwards; animation-delay: calc(var(--i) * 0.07s); }
.jail-text { position: relative; z-index: 2; background: #14261b; color: #fff; padding: 2cqw 4cqw; border-radius: 1.6cqw; border: 0.4cqw solid var(--gold); text-align: center; font-weight: 900; font-size: 3cqw; transform: scale(0.6); opacity: 0; animation: jail-pop 0.4s 0.5s forwards; box-shadow: 0 1cqw 3cqw rgba(0,0,0,0.6); }
.jail-ico { font-size: 6cqw; line-height: 1.1; }
@keyframes bar-fall { to { transform: translateY(0); } }
@keyframes jail-pop { to { transform: scale(1); opacity: 1; } }
@keyframes jail-dim { to { background: rgba(10,20,40,0.45); } }

/* ---- Leben im Spiel ---- */
.tk.hop { animation: tk-hop 0.23s ease-out; }
@keyframes tk-hop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-1.6cqw) scale(1.15); } 75% { transform: translateY(0) scale(0.9, 1.1); } 100% { transform: translateY(0) scale(1); } }

.sq.claimed { animation: sq-claim 1.4s ease-out; z-index: 4; }
@keyframes sq-claim { 0% { transform: scale(1); filter: brightness(1); } 25% { transform: scale(1.18); filter: brightness(1.35); } 55% { transform: scale(0.97); } 100% { transform: scale(1); filter: brightness(1); } }
.sq .band .pop { animation: build-pop 0.6s cubic-bezier(.3,1.6,.5,1); }
@keyframes build-pop { 0% { transform: scale(0) translateY(-1cqw); } 100% { transform: scale(1) translateY(0); } }

.float-text { position: fixed; z-index: 500; pointer-events: none; font-weight: 900; font-size: 1.6rem; transform: translate(-50%, -50%); text-shadow: 0 2px 6px rgba(0,0,0,0.7); animation: float-up 1.6s ease-out forwards; }
.float-text.gain { color: #5df0a5; }
.float-text.loss { color: #ff7a85; }
@keyframes float-up { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); } 15% { opacity: 1; transform: translate(-50%, -80%) scale(1.25); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.coin { position: fixed; z-index: 500; pointer-events: none; font-size: 1.5rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5)); }
.money-up { color: #5df0a5 !important; }
.money-down { color: #ff7a85 !important; }

.splash { position: absolute; left: 50%; top: 30%; z-index: 28; pointer-events: none; white-space: nowrap; transform: translate(-50%, -50%);
  background: rgba(20,38,27,0.94); color: #fff; font-weight: 900; font-size: 3.4cqw; padding: 1.4cqw 3.4cqw; border-radius: 1.6cqw; border: 0.35cqw solid var(--gold);
  box-shadow: 0 1cqw 3cqw rgba(0,0,0,0.5); animation: splash-in 1.4s ease-out forwards; }
.splash.mine { background: #1a7a4c; border-color: #b9ffd9; }
.splash.pasch { background: #c62828; border-color: #ffd54f; font-size: 5cqw; transform: translate(-50%, -50%) rotate(-6deg); animation-name: splash-pasch; }
@keyframes splash-in { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.5); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
@keyframes splash-pasch { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(0.2); } 20% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1.25); } 35% { transform: translate(-50%, -50%) rotate(-6deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1.1); } }

.event-feed li.fresh { animation: feed-in 0.5s ease-out; }
@keyframes feed-in { 0% { opacity: 0; transform: translateX(16px); background: rgba(244,201,93,0.35); } 100% { opacity: 1; transform: none; background: transparent; } }
.pp-row.turn { animation: turn-glow 1.8s ease-in-out infinite; }
@keyframes turn-glow { 0%, 100% { box-shadow: 0 0 0 1px var(--gold) inset, 0 0 0 rgba(244,201,93,0); } 50% { box-shadow: 0 0 0 1px var(--gold) inset, 0 0 14px rgba(244,201,93,0.55); } }
.logo { animation: logo-sway 6s ease-in-out infinite; }
@keyframes logo-sway { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-0.5cqw); } }
.deck { animation: deck-bob 4s ease-in-out infinite; }
@keyframes deck-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.4cqw; } }
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 600; pointer-events: none; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 110vh) rotate(720deg); opacity: 0.9; } }

.build-id { font-size: 0.62rem; color: var(--text-dim); opacity: 0.55; margin: 6px 0 0; text-align: center; }
.game-header .build-id { margin: 0; }
@media (min-width: 901px) {
  /* feste Höhe: wechselnde Aktionen dürfen das Spielfeld nie verschieben */
  .dock { height: 84px; min-height: 84px; overflow-y: auto; }
}
@media (max-width: 900px) { .game-header .build-id { display: none; } }

/* ---- Neue Lobby-Regeln, Timer, Auktion, Statistik ---- */
.rule-item.select-rule { cursor: default; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.rule-item.select-rule select { min-width: 190px; max-width: 100%; }
.tag.persona { background: #3a5266; }
.game-info { font-size: 0.8rem; color: var(--text-dim); font-weight: 700; }
.timer-badge { font-weight: 800; font-size: 0.85rem; padding: 2px 10px; border-radius: 999px; background: #2b4a61; color: #fff; }
.timer-badge.urgent { background: #b3261e; animation: tk-pulse 0.7s ease-in-out infinite; }
.timer-badge.mine { background: #1a7a4c; }
.dock { position: relative; }
.timer-bar { position: absolute; left: 10px; right: 10px; top: 3px; height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: 100%; background: var(--success); transition: width 0.4s linear, background 0.4s; }
.timer-bar.urgent i { background: #ef5347; }

.splash.event { top: 68%; display: flex; align-items: center; gap: 1.4cqw; white-space: normal; font-size: 2cqw; padding: 1cqw 2.4cqw; border-width: 0.25cqw; animation-duration: 2.4s; }
.splash.event .ev-text small { display: block; font-weight: 600; opacity: 0.85; font-size: 1.5cqw; }
.splash.bust { background: #4a0f0f; border-color: #ff5a4d; font-size: 4cqw; animation-name: splash-bust; animation-duration: 2.4s; }
@keyframes splash-bust { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(-3deg); } 20% { transform: translate(-46%, -50%) rotate(3deg); } 28% { transform: translate(-54%, -50%) rotate(-3deg); } 36% { transform: translate(-50%, -50%) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } }
.splash.hammer { background: #5a3b12; border-color: #ffd54f; font-size: 3.4cqw; animation-duration: 2.2s; }

.auction-panel { position: absolute; left: 12%; right: 12%; top: 18%; bottom: 18%; z-index: 12; background: #0f2016; z-index: 15; color: #fff; border: 0.35cqw solid var(--gold); border-radius: 1.6cqw; padding: 1.4cqw 2cqw; display: flex; gap: 2cqw; align-items: center; box-shadow: 0 1cqw 3cqw rgba(0,0,0,0.5); animation: card-fade 0.3s ease-out; }
@keyframes card-fade { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.auction-panel .ap-card { flex: none; width: 15cqw; }
.auction-panel .ap-card .pc { width: 100%; height: auto; min-height: 15cqw; font-size: 1.5cqw; cursor: default; }
.auction-panel .ap-card .pc .pc-name { font-size: 1.6cqw; }
.auction-panel .ap-card .pc .pc-meta { font-size: 1.3cqw; }
.auction-panel .ap-card .pc .pc-band { height: 3.4cqw; }
.ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.8cqw; }
.ap-title { font-size: 1.5cqw; text-transform: uppercase; letter-spacing: 0.2cqw; color: var(--gold-bright); font-weight: 800; }
.ap-price { font-size: 4cqw; font-weight: 900; color: var(--gold-bright); line-height: 1; }
.ap-price.hit { animation: hammer-hit 0.6s ease-out; }
@keyframes hammer-hit { 0% { transform: scale(1.5); color: #fff; } 40% { transform: scale(0.92); } 100% { transform: scale(1); } }
.ap-sub { font-size: 1.5cqw; color: #cfe2d6; }
.ap-hammer { position: absolute; right: 1.5cqw; top: 0.5cqw; font-size: 4cqw; transform-origin: 80% 90%; animation: hammer-swing 0.6s ease-out; }
@keyframes hammer-swing { 0% { transform: rotate(-70deg); opacity: 0; } 50% { transform: rotate(15deg); opacity: 1; } 100% { transform: rotate(0); opacity: 1; } }
.ap-bidders { display: flex; flex-wrap: wrap; gap: 0.6cqw; }
.ap-bidder { display: flex; align-items: center; gap: 0.5cqw; padding: 0.4cqw 1cqw; border-radius: 999px; background: #22412f; font-size: 1.4cqw; border: 0.2cqw solid transparent; }
.ap-bidder.turn { border-color: var(--gold); background: #33593f; }
.ap-bidder.high { background: #1a7a4c; }
.ap-bidder.passed { opacity: 0.4; text-decoration: line-through; }
.ap-bids { font-size: 1.3cqw; color: #a9c4b3; display: flex; flex-direction: column; gap: 0.2cqw; }

.stats-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 10px 0; }
.stats-table th { font-weight: 600; color: var(--text-dim); padding: 4px 6px; text-align: right; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table td { padding: 5px 6px; text-align: right; border-top: 1px solid rgba(255,255,255,0.08); }
.stats-table td.best { color: var(--gold-bright); font-weight: 800; }
.awards { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.award { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; }
#over-modal .modal-content.over-wide { max-width: 680px; }

.trade-tips { background: rgba(244,201,93,0.08); border: 1px solid rgba(244,201,93,0.35); border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; }
.trade-tips h4 { margin: 0 0 6px; font-size: 0.85rem; color: var(--gold-bright); }
.tip-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.85rem; }
.tip-row .pc { width: 44px; height: 34px; flex: none; }
.tip-row .pc .pc-name, .tip-row .pc .pc-meta { display: none; }
.tip-row .pc .pc-band { height: 100%; border: 0; }
.tip-row span { flex: 1; min-width: 0; }
.set-missing { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; font-size: 0.85rem; }
.set-missing h4 { margin: 0 0 4px; font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

.status-box small.status-hint { color: #1a6b3d; font-weight: 700; margin-top: 0.5cqw; }

@media (min-width: 901px) and (max-width: 1280px) {
  .game-body { grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(190px, 240px); gap: 8px; padding: 6px 8px; }
  .me-col { padding: 8px; }
  .grp-row .pc { width: 72px; height: 84px; }
  .dock-money { font-size: 1.35rem; }
  .pp-row { padding: 5px 8px; }
  .dock { height: 78px; min-height: 78px; padding: 6px 10px; }
  .dock-actions .btn { padding: 8px 12px; font-size: 0.85rem; }
}

/* ---- 3D-Ansicht ---- */
.board-col { position: relative; }
.board3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; outline: none; }
.view3d-tools { position: absolute; right: 8px; top: 8px; z-index: 40; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 16px); }
.view3d-tools.hidden { display: none; }
.reset3d { background: rgba(16,35,26,0.8); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.board.mode3d { background: transparent; border-color: transparent; box-shadow: none; pointer-events: none; }
.board.mode3d .sq, .board.mode3d .deck, .board.mode3d .logo, .board.mode3d .dice-row { visibility: hidden; }
.board.mode3d .board-center { position: absolute; inset: 0; grid-area: auto; background: none; padding: 0; display: block; pointer-events: none; }
.board.mode3d .status-box { position: absolute; left: 1cqw; top: 1cqw; transform: none; text-align: left; z-index: 6; max-width: 62cqw; background: rgba(255,255,255,0.88); box-shadow: 0 0.6cqw 2cqw rgba(0,0,0,0.35); }
.board.mode3d .center-card, .board.mode3d .auction-panel, .board.mode3d .splash { pointer-events: auto; }
.board.mode3d .auction-panel { top: 22%; bottom: 22%; }
.board.mode3d .jail-anim, .board.mode3d .splash { pointer-events: none; }
@media (max-width: 900px) { .board.mode3d .status-box { font-size: 2.6cqw; } }
@media (max-width: 520px) { .game-header-right .btn { padding: 4px 7px; } .game-header-right { gap: 4px; } }

.board-col.mode3d::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 48%, rgba(0,0,0,0) 52%, rgba(8,12,10,0.55) 100%); z-index: 2; }
.board.mode3d .jail-bars { display: none; }
.board.mode3d .jail-anim { animation: none; background: none; }
.board.mode3d .center-card { display: none; }

.board3d-canvas { transition: opacity 0.35s ease; }
.tip3d { position: fixed; z-index: 200; pointer-events: none; background: rgba(12,24,18,0.95); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 7px 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 6px 20px rgba(0,0,0,0.5); max-width: 300px; min-width: 190px; }
.tip3d.hidden { display: none; }
.tip3d i { display: block; height: 6px; border-radius: 3px; margin-bottom: 3px; }
.tip3d b { font-size: 15px; }
.tip3d small { font-size: 12px; opacity: 0.85; }
.mode3d-ui .me-col, .mode3d-ui .side-col { background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.28); }
.mode3d-ui .dock { border-radius: 16px; }
.mode3d-ui .board-col { border-radius: 16px; overflow: hidden; }
.board { transition: opacity 0.3s ease; }
.board.mode3d { opacity: 1; }

.jail-chip { background: #f3e2a8; color: #3b2b00; border: 2px solid #c9a53a; border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: 13px; cursor: pointer; }
.jail-chip.picked { border-color: var(--success); box-shadow: 0 0 0 2px var(--success); background: #fff2c2; }
.jail-own { background: rgba(243,226,168,0.14); border: 1px dashed #c9a53a; color: #f3e2a8; border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; font-size: 13px; font-weight: 700; }

/* ---- Große 3D-Ansicht: schmalere Leisten, optional ganz ausblendbar ---- */
.vol { width: 70px; accent-color: #f4c95d; vertical-align: middle; }
#btn-panels { display: none; }
.mode3d-ui #btn-panels { display: inline-flex; }
#btn-panels.active { background: rgba(244,201,93,0.25); }
.mode3d-ui .game-body { grid-template-columns: minmax(200px, 270px) minmax(0, 1fr) minmax(200px, 270px); }
.mode3d-ui.panels-off .game-body { grid-template-columns: minmax(0, 1fr); }
.mode3d-ui.panels-off .me-col, .mode3d-ui.panels-off .side-col { display: none; }
.hud3d { display: none; position: absolute; left: 8px; top: 8px; z-index: 41; flex-direction: column; gap: 5px; }
.mode3d-ui.panels-off .hud3d:not(:empty) { display: flex; }
.hud-chip { display: flex; align-items: center; gap: 7px; background: rgba(12,24,18,0.82); color: #fff; border: 2px solid var(--pc); border-radius: 999px; padding: 3px 12px 3px 4px; cursor: pointer; font: inherit; }
.hud-chip i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hud-chip b { font-size: 14px; }
.hud-chip small { opacity: 0.7; font-size: 11px; }
.hud-chip.turn { box-shadow: 0 0 0 2px rgba(244,201,93,0.9); }
.hud-chip.me b { color: #f4c95d; }
.hud-chip.bust { opacity: 0.45; }
.mode3d-ui.panels-off .board.mode3d .status-box { left: 50%; transform: translateX(-50%); top: 1cqw; text-align: center; }
.build-hint { border-color: #f4c95d; color: #f4c95d; }
@media (max-width: 900px) { #btn-panels, .vol { display: none !important; } }

#btn-hands3d.off { opacity: 0.55; }
.tip3d .tip-rent { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 10px; margin-top: 5px; font-size: 12px; opacity: 0.9; }
.tip3d .tip-rent .cur { color: #ffd54f; font-weight: 700; }

/* Brettmitte: Infos */
.center-info { z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.8cqw; max-width: 50cqw; }
.ci-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7cqw; }
.ci-pill { display: inline-flex; align-items: center; gap: 0.5cqw; background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.2); border-radius: 2cqw; padding: 0.4cqw 1.2cqw; font-size: 1.35cqw; font-weight: 700; color: #16301f; }
.ci-pill i { font-style: normal; }
.ci-last { font-size: 1.3cqw; color: #35503f; text-align: center; line-height: 1.25; min-height: 1.6cqw; }
.board.mode3d .center-info { display: none; }

/* kompaktere Seitenleiste und Dock */
.me-col:has(.dock-props .empty) { align-self: start; }
.dock { padding: 6px 12px; min-height: 52px; }
.dock-actions .btn { padding: 8px 14px; }
.sq .sq-name.long { font-size: 1.15cqw; }

.trade-partner-row { display: flex; gap: 8px; align-items: center; }
.trade-partner-row select { flex: 1 1 auto; min-width: 0; }
.trade-partner-row .btn { flex: none; white-space: nowrap; }
.hint.suggestion { color: var(--gold-bright); margin: 6px 0 0; }

/* Banner (Monopol, Häuserknappheit) */
.splash.banner { display: flex; align-items: center; gap: 1.6cqw; white-space: normal; padding: 1.2cqw 3cqw; border-width: 0.3cqw; border-radius: 2cqw; background: #4b2a68; border-color: #ffd54f; color: #fff; animation-name: splash-bust; animation-duration: 2.5s; max-width: 80cqw; }
.splash.banner .bn-icon { font-size: 5cqw; line-height: 1; }
.splash.banner .bn-text b { display: block; font-size: 3cqw; }
.splash.banner .bn-text small { display: block; font-size: 1.6cqw; font-weight: 600; opacity: 0.9; }
.splash.banner.monopoly { background: linear-gradient(135deg, #3a1f5c, var(--bn, #6a3fa0)); }
.splash.banner.shortage { background: #5a3b12; border-color: #ff9a3c; }
.hl-title { margin: 12px 0 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.highlights { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.highlights li { display: flex; gap: 8px; align-items: baseline; }
.highlights li i { font-style: normal; flex: none; }

.trade-values { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--muted, #b9c3d6); margin: 6px 0; }
.trade-values .bal { font-weight: 800; }
.trade-values .bal.plus { color: #6fdc8c; }
.trade-values .bal.minus { color: #ff8a80; }
.trade-hint { font-size: 0.85rem; margin: 4px 0 0; min-height: 1.2em; }
.trade-hint.yes { color: #6fdc8c; }
.trade-hint.maybe { color: #ffd54f; }
.trade-hint.no { color: #ff8a80; }

#say-bubbles { position: fixed; left: 14px; bottom: 96px; z-index: 60; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: min(360px, calc(100vw - 28px)); }
.say-bubble { display: flex; align-items: center; gap: 10px; background: rgba(20, 28, 44, 0.94); border: 2px solid var(--pc, #888); border-radius: 16px 16px 16px 4px; padding: 8px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.4); animation: sayIn .3s ease-out; transition: opacity .4s, transform .4s; }
.say-bubble.out { opacity: 0; transform: translateY(6px); }
.say-bubble i { font-style: normal; font-size: 1.5rem; }
.say-bubble b { display: block; font-size: .78rem; color: var(--pc, #ccc); }
.say-bubble em { font-style: normal; font-size: .9rem; color: #f2f5fb; }
@keyframes sayIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
