/* monopoly.css — Nepal Monopoly Antigravity Design */

:root {
  --bg-dark: #0a0f18;
  --bg-panel: rgba(15, 23, 42, 0.92);
  --border-panel: rgba(255, 255, 255, 0.12);
  --gold: #f4b41a;
  --gold-glow: rgba(244, 180, 26, 0.45);
  --blue-accent: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-main: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cinzel', serif;

  /* Monopoly Color Groups */
  --group-brown: #8d5b4c;
  --group-light-blue: #38bdf8;
  --group-pink: #f472b6;
  --group-orange: #fb923c;
  --group-red: #ef4444;
  --group-yellow: #facc15;
  --group-green: #22c55e;
  --group-dark-blue: #1d4ed8;
  --group-airline: #6366f1;
  --group-utility: #06b6d4;
  --group-special: #475569;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at 50% 15%, #182844 0%, #0a0f18 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ── Roster Panel Actions ────────────────────────────────────────────── */
.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-new-game-compact {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #fbbf24;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 9px;
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-new-game-compact:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

/* ── Main Layout ─────────────────────────────────────────────────────── */
.monopoly-container {
  width: 100%;
  max-width: 1480px;
  display: flex;
  gap: 20px;
  padding: 8px 20px 12px;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
}

/* ── Left Sidebar ────────────────────────────────────────────────────── */
.sidebar-players {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.panel-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.panel-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold);
}

.turn-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', 'Courier New', monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid var(--timer-color, #22c55e);
  color: var(--timer-color, #22c55e);
  box-shadow: 0 0 12px var(--timer-glow, rgba(34, 197, 94, 0.45));
  transition: all 0.25s ease;
  user-select: none;
}

.turn-timer-badge .timer-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.turn-timer-badge.timer-green {
  --timer-color: #22c55e;
  --timer-glow: rgba(34, 197, 94, 0.55);
  border-color: #4ade80;
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.turn-timer-badge.timer-yellow {
  --timer-color: #eab308;
  --timer-glow: rgba(234, 179, 8, 0.6);
  border-color: #facc15;
  color: #fde047;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.75);
}

.turn-timer-badge.timer-red {
  --timer-color: #ef4444;
  --timer-glow: rgba(239, 68, 68, 0.75);
  border-color: #f87171;
  color: #fca5a5;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
  animation: timerPulse 0.7s ease-in-out infinite alternate;
}

.turn-timer-badge.timer-idle {
  --timer-color: #94a3b8;
  --timer-glow: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
  text-shadow: none;
}

@keyframes timerPulse {
  from {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  }
  to {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.9);
  }
}

.badge-round {
  background: rgba(244, 180, 26, 0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

.players-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-card {
  background: rgba(30, 41, 59, 0.7);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
}

.player-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(250, 204, 21, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.player-card.active {
  transform: translateX(4px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(244, 180, 26, 0.35);
  background: rgba(30, 41, 59, 0.95);
}

.player-card.active:hover {
  transform: translateX(4px) scale(1.03);
  box-shadow: 0 0 20px rgba(244, 180, 26, 0.5);
}

.player-card.bankrupt {
  opacity: 0.4;
  filter: grayscale(1);
}

.player-card:not(.active) .pcard-bills-row,
.player-card:not(.active):not(.bankrupt) .pcard-money-right {
  display: none;
}

.pcard-bills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 0 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 86px;
}

.pcard-bill-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.pcard-bill {
  width: 34px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  display: block;
}

.pcard-bill-wrap:hover .pcard-bill {
  transform: translateY(-6px) scale(1.12);
  z-index: 30;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.8), 0 0 10px rgba(244, 180, 26, 0.7);
}

.pcard-bill-count {
  position: absolute;
  bottom: 2px;
  right: 1px;
  background: rgba(15, 23, 42, 0.92);
  color: #facc15;
  font-weight: 800;
  font-size: 0.62rem;
  padding: 1px 3px;
  border-radius: 4px;
  border: 1px solid rgba(250, 204, 21, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  line-height: 1;
}

.pcard-no-bills {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

.pcard-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pcard-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pcard-avatar {
  font-size: 1.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  position: relative;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.9));
}

.pcard-avatar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 4px;
  border-radius: 50%;
  background: var(--token-col, #facc15);
  box-shadow: 0 0 8px var(--token-col, #facc15);
}

.pcard-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.pcard-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pcard-money-right {
  text-align: right;
  flex-shrink: 0;
}

.pcard-cash-bold {
  font-weight: 900;
  font-size: 1.12rem;
  color: #4ade80;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(74, 222, 128, 0.4);
  white-space: nowrap;
}

.player-card.bankrupt .pcard-cash-bold {
  color: #ef4444;
  text-shadow: none;
}

.pcard-props {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.event-log-box {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  padding-right: 4px;
}

.event-log-box::-webkit-scrollbar {
  width: 4px;
}
.event-log-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.log-entry {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #475569;
  line-height: 1.35;
}

.log-group {
  padding: 6px 10px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--player-group-color, #facc15);
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.log-group:hover {
  background: rgba(255, 255, 255, 0.055);
}

.log-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--player-group-color, #facc15);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2px;
}

.log-group-header .log-group-avatar {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}

.log-group-header .log-group-name {
  color: inherit;
  letter-spacing: 0.2px;
}

.log-group-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.log-group-action {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.38;
  position: relative;
  padding-left: 12px;
}

.log-group-action::before {
  content: '•';
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--player-group-color, #facc15);
  font-size: 0.9rem;
  line-height: 1.2;
  opacity: 0.85;
}

.log-mention {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  border-radius: 4px;
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: baseline;
}

.log-mention .log-mention-icon {
  font-size: 0.95em;
  display: inline-flex;
}

.log-prop-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  margin: 0 2px;
  border-radius: 5px;
  border: 1.5px solid var(--prop-col, #38bdf8);
  background: rgba(15, 23, 42, 0.72);
  color: var(--prop-col, #38bdf8);
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  vertical-align: baseline;
  white-space: nowrap;
}

.log-prop-badge b {
  color: inherit;
  font-weight: 800;
}

.log-prop-badge:hover {
  filter: brightness(1.15);
}

.log-deck-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  margin: 0 3px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  vertical-align: baseline;
  white-space: nowrap;
}

.log-deck-badge.log-deck-gov {
  background: rgba(185, 28, 28, 0.28);
  border: 1.5px solid #ef4444;
  color: #fca5a5;
}

.log-deck-badge.log-deck-karma {
  background: rgba(109, 40, 217, 0.32);
  border: 1.5px solid #a855f7;
  color: #d8b4fe;
}

.log-entry.roll { border-left: 3px solid #38bdf8; }
.log-entry.buy { border-left: 3px solid #facc15; }
.log-entry.rent { border-left: 3px solid #f87171; }
.log-entry.card { border-left: 3px solid #c084fc; }
.log-entry.jail { border-left: 3px solid #fb923c; }
.log-entry.build { border-left: 3px solid #4ade80; }
.log-entry.bankrupt { border-left: 3px solid #ef4444; }

/* ── Center Arena: Floating Antigravity Board ───────────────────────── */
.board-arena {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.board-wrapper {
  position: relative;
  width: min(836px, calc(100vh - 95px), 92vw);
  height: min(836px, calc(100vh - 95px), 92vw);
  background: #0f172a;
  border: 4px solid #334155;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(244, 180, 26, 0.15);
  overflow: hidden;
}

/* 11x11 Grid Layout for 40 Perimeter Cells */
.monopoly-board {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.4fr repeat(9, 1fr) 1.4fr;
  grid-template-rows: 1.4fr repeat(9, 1fr) 1.4fr;
}

/* Cell Base */
.board-cell {
  position: relative;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}

.board-cell:hover {
  background: #273549;
  z-index: 4;
  box-shadow: inset 0 0 12px rgba(244, 180, 26, 0.4);
}

.cell-color-bar {
  width: 100%;
  height: 18px;
  border-radius: 4px 4px 0 0;
  margin-bottom: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.cell-color-bar.brown { background: #a16207; box-shadow: 0 2px 6px rgba(161, 98, 7, 0.4); }
.cell-color-bar.light_blue { background: #0284c7; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4); }
.cell-color-bar.pink { background: #db2777; box-shadow: 0 2px 6px rgba(219, 39, 119, 0.4); }
.cell-color-bar.orange { background: #ea580c; box-shadow: 0 2px 6px rgba(234, 88, 12, 0.4); }
.cell-color-bar.red { background: #ef4444; box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4); }
.cell-color-bar.yellow { background: #facc15; box-shadow: 0 2px 6px rgba(250, 204, 21, 0.4); }
.cell-color-bar.green { background: #16a34a; box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4); }
.cell-color-bar.dark_blue { background: #2563eb; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4); }
.cell-color-bar.airline { background: #6366f1; box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4); }
.cell-color-bar.utility { background: #06b6d4; box-shadow: 0 2px 6px rgba(6, 182, 212, 0.4); }

/* ── Full Cell Color Group Tinting (Soft subtle body tint + strong vibrant header bar) ── */
.board-cell.cell-group-brown {
  background: linear-gradient(180deg, rgba(161, 98, 7, 0.16) 0%, rgba(161, 98, 7, 0.04) 100%), #0f1624;
  border-color: rgba(180, 83, 9, 0.35);
}
.board-cell.cell-group-brown:hover {
  background: linear-gradient(180deg, rgba(161, 98, 7, 0.28) 0%, rgba(161, 98, 7, 0.10) 100%), #141c2c;
  border-color: #d97706;
}

.board-cell.cell-group-light_blue {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.15) 0%, rgba(2, 132, 199, 0.04) 100%), #0f1726;
  border-color: rgba(56, 189, 248, 0.32);
}
.board-cell.cell-group-light_blue:hover {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.28) 0%, rgba(2, 132, 199, 0.10) 100%), #132034;
  border-color: #38bdf8;
}

.board-cell.cell-group-pink {
  background: linear-gradient(180deg, rgba(219, 39, 119, 0.15) 0%, rgba(219, 39, 119, 0.04) 100%), #141324;
  border-color: rgba(244, 114, 182, 0.32);
}
.board-cell.cell-group-pink:hover {
  background: linear-gradient(180deg, rgba(219, 39, 119, 0.28) 0%, rgba(219, 39, 119, 0.10) 100%), #1b1730;
  border-color: #f472b6;
}

.board-cell.cell-group-orange {
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.16) 0%, rgba(234, 88, 12, 0.04) 100%), #161520;
  border-color: rgba(251, 146, 60, 0.35);
}
.board-cell.cell-group-orange:hover {
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.28) 0%, rgba(234, 88, 12, 0.10) 100%), #1e1a28;
  border-color: #fb923c;
}

.board-cell.cell-group-red {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.16) 0%, rgba(239, 68, 68, 0.04) 100%), #17131b;
  border-color: rgba(239, 68, 68, 0.35);
}
.board-cell.cell-group-red:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.28) 0%, rgba(239, 68, 68, 0.10) 100%), #201722;
  border-color: #f87171;
}

.board-cell.cell-group-yellow {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.18) 0%, rgba(250, 204, 21, 0.05) 100%), #161718;
  border-color: rgba(250, 204, 21, 0.35);
}
.board-cell.cell-group-yellow:hover {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.30) 0%, rgba(250, 204, 21, 0.10) 100%), #22201d;
  border-color: #fde047;
}

.board-cell.cell-group-green {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.16) 0%, rgba(22, 163, 74, 0.04) 100%), #0f1816;
  border-color: rgba(34, 197, 94, 0.35);
}
.board-cell.cell-group-green:hover {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.28) 0%, rgba(22, 163, 74, 0.10) 100%), #13221d;
  border-color: #4ade80;
}

.board-cell.cell-group-dark_blue {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.05) 100%), #0d1526;
  border-color: rgba(96, 165, 250, 0.35);
}
.board-cell.cell-group-dark_blue:hover {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.30) 0%, rgba(37, 99, 235, 0.10) 100%), #111d32;
  border-color: #93c5fd;
}

/* Airlines Group */
.board-cell.cell-group-airline,
.board-cell.cell-type-airline {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.04) 100%), #101426;
  border-color: rgba(129, 140, 248, 0.30);
}
.board-cell.cell-group-airline:hover,
.board-cell.cell-type-airline:hover {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0.09) 100%), #151a32;
  border-color: #818cf8;
}

/* Utilities Group */
.board-cell.cell-group-utility,
.board-cell.cell-type-utility {
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.15) 0%, rgba(8, 145, 178, 0.04) 100%), #0e1820;
  border-color: rgba(34, 211, 238, 0.30);
}
.board-cell.cell-group-utility:hover,
.board-cell.cell-type-utility:hover {
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.28) 0%, rgba(8, 145, 178, 0.09) 100%), #12222c;
  border-color: #22d3ee;
}

/* Karma, Government, Taxes */
.board-cell.cell-type-karma {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.16) 0%, rgba(168, 85, 247, 0.04) 100%), #141122;
  border-color: rgba(192, 132, 252, 0.30);
  position: relative;
  justify-content: flex-end;
  padding-bottom: 5px;
}
.board-cell.cell-type-karma:hover {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.28) 0%, rgba(168, 85, 247, 0.10) 100%), #1a152d;
  border-color: #c084fc;
}

.board-cell.cell-type-government {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.04) 100%), #161514;
  border-color: rgba(251, 191, 36, 0.30);
  position: relative;
  justify-content: flex-end;
  padding-bottom: 5px;
}
.board-cell.cell-type-government:hover {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.28) 0%, rgba(245, 158, 11, 0.10) 100%), #1e1c18;
  border-color: #fbbf24;
}

/* 2x Centered Icons for Karma and Government on board cells */
.board-cell.cell-type-karma .cell-icon,
.board-cell.cell-type-government .cell-icon,
.board-cell.edge-vertical.cell-type-karma .cell-icon,
.board-cell.edge-vertical.cell-type-government .cell-icon {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.85rem !important;
  line-height: 1;
  opacity: 0.95;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
  pointer-events: none;
  margin: 0;
}

.board-cell.cell-type-karma .cell-name,
.board-cell.cell-type-government .cell-name,
.board-cell.edge-vertical.cell-type-karma .cell-name,
.board-cell.edge-vertical.cell-type-government .cell-name {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 2px;
  font-size: 0.65rem;
  font-weight: 800;
  max-width: 96%;
  line-height: 1.15;
}

.board-cell.cell-type-tax {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.16) 0%, rgba(244, 63, 94, 0.04) 100%), #171115;
  border-color: rgba(251, 113, 133, 0.30);
}
.board-cell.cell-type-tax:hover {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.28) 0%, rgba(244, 63, 94, 0.10) 100%), #21151c;
  border-color: #fb7185;
}

/* Corner Cells Specialty Tints */
.board-cell.corner-cell.cell-type-start {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.32) 0%, rgba(6, 78, 59, 0.45) 100%), #0a1813;
  border: 2px solid rgba(52, 211, 153, 0.6);
}
.board-cell.corner-cell.cell-type-jail {
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.30) 0%, rgba(30, 58, 138, 0.45) 100%), #0c1426;
  border: 2px solid rgba(96, 165, 250, 0.6);
}
.board-cell.corner-cell.cell-type-parking {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.30) 0%, rgba(21, 94, 117, 0.45) 100%), #0b1a20;
  border: 2px solid rgba(34, 211, 238, 0.6);
}
.board-cell.corner-cell.cell-type-go_to_jail {
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.35) 0%, rgba(127, 29, 29, 0.50) 100%), #1f0f13;
  border: 2px solid rgba(248, 113, 113, 0.75);
}

.cell-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.72;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.cell-name {
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  line-height: 1.15;
  max-width: 95%;
  word-break: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

.cell-price {
  font-size: 0.62rem;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  flex-shrink: 0;
  z-index: 2;
  line-height: 1.1;
  white-space: nowrap;
  margin-bottom: 2px;
}

/* Vertical perimeter cells (Left column 11-19, Right column 31-39) */
.board-cell.edge-vertical {
  padding: 3px 2px 2px 2px;
  justify-content: space-between;
}

.board-cell.edge-vertical .cell-color-bar {
  height: 13px;
  margin-bottom: 2px;
}

.board-cell.edge-vertical .cell-upgrades {
  top: 3px;
  height: 13px;
  font-size: 0.58rem;
  gap: 1px;
}

.board-cell.edge-vertical .cell-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.board-cell.edge-vertical .cell-name {
  font-size: 0.60rem;
  line-height: 1.1;
  max-width: 96%;
}

.board-cell.edge-vertical .cell-price {
  font-size: 0.60rem;
  line-height: 1.1;
  margin-top: auto;
  margin-bottom: 2px;
  flex-shrink: 0;
}

/* Corner Cells */
.board-cell.corner-cell {
  background: #0f1d32;
  border: 2px solid rgba(244, 180, 26, 0.4);
  padding: 8px 4px;
}

.corner-cell .cell-icon {
  font-size: 1.8rem;
}

.corner-cell .cell-name {
  font-size: 0.72rem;
  font-weight: 900;
}

/* Lodges & Hotels Badges (drawn directly on top of the sector color bar) */
.cell-upgrades {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5px;
  font-size: 0.72rem;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

/* Owner color strip */
.cell-owner-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
}

/* ── Photoshop-style Marching Ants Marquee Selection for Active Player's Cells ── */
.board-cell.active-owner-cell {
  position: relative;
  z-index: 12 !important;
  overflow: visible;
}

.board-cell.active-owner-cell::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 15;
  box-sizing: border-box;
  --ants-c1: var(--ants-color, #facc15);
  --ants-c2: #ffffff;
  background-image: 
    linear-gradient(90deg, var(--ants-c1) 50%, var(--ants-c2) 50%),
    linear-gradient(90deg, var(--ants-c1) 50%, var(--ants-c2) 50%),
    linear-gradient(0deg, var(--ants-c1) 50%, var(--ants-c2) 50%),
    linear-gradient(0deg, var(--ants-c1) 50%, var(--ants-c2) 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 14px 2.5px, 14px 2.5px, 2.5px 14px, 2.5px 14px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: photoshopMarchingAnts 0.65s linear infinite;
  box-shadow: 0 0 12px var(--ants-glow, rgba(250, 204, 21, 0.7)), inset 0 0 6px var(--ants-glow, rgba(250, 204, 21, 0.35));
}

@keyframes photoshopMarchingAnts {
  0% {
    background-position: 
      0 0,
      0 100%,
      0 0,
      100% 0;
  }
  100% {
    background-position: 
      14px 0,
      -14px 100%,
      0 -14px,
      100% 14px;
  }
}

/* Player Tokens Layer inside Board */
.cell-tokens-box {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  padding: 8px 2px;
}

.cell-tokens-box.tokens-1,
.cell-tokens-box[data-token-count="1"] {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cell-tokens-box.tokens-2,
.cell-tokens-box[data-token-count="2"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.cell-tokens-box.tokens-2 .board-token,
.cell-tokens-box[data-token-count="2"] .board-token {
  font-size: 1.65rem;
}

/* 3 or 4 tokens: 2-column grid layout (1st top-left, 2nd bottom-left, 3rd top-right, 4th bottom-right) */
.cell-tokens-box.tokens-multi,
.cell-tokens-box[data-token-count="3"],
.cell-tokens-box[data-token-count="4"],
.cell-tokens-box:has(> .board-token:nth-child(3)) {
  display: grid !important;
  grid-template-rows: 1fr 1fr !important;
  grid-template-columns: 1fr 1fr !important;
  grid-auto-flow: column !important;
  justify-content: center !important;
  align-content: center !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 2px 4px !important;
  padding: 4px 2px !important;
}

.cell-tokens-box.tokens-multi .board-token,
.cell-tokens-box[data-token-count="3"] .board-token,
.cell-tokens-box[data-token-count="4"] .board-token,
.cell-tokens-box:has(> .board-token:nth-child(3)) .board-token {
  font-size: 1.35rem;
  line-height: 1;
}

.corner-cell .cell-tokens-box.tokens-multi .board-token,
.corner-cell .cell-tokens-box[data-token-count="3"] .board-token,
.corner-cell .cell-tokens-box[data-token-count="4"] .board-token,
.corner-cell .cell-tokens-box:has(> .board-token:nth-child(3)) .board-token {
  font-size: 1.55rem;
}

.cell-tokens-box.tokens-multi .board-token::after,
.cell-tokens-box[data-token-count="3"] .board-token::after,
.cell-tokens-box[data-token-count="4"] .board-token::after,
.cell-tokens-box:has(> .board-token:nth-child(3)) .board-token::after {
  width: 13px;
  height: 4px;
  bottom: -1px;
}

.board-token {
  font-size: 2.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter:
    drop-shadow(1px 0 0 rgba(255, 255, 255, 0.92))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.92))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.92))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.92))
    drop-shadow(0 5px 8px rgba(0, 0, 0, 0.95));
  animation: tokenFloat 2.6s ease-in-out infinite;
  user-select: none;
  cursor: default;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.2s;
}

/* Colored glowing pedestal ring underneath each player's token */
.board-token::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 5px;
  border-radius: 50%;
  background: var(--token-col, #facc15);
  box-shadow: 0 0 8px var(--token-col, #facc15);
  opacity: 0.9;
  pointer-events: none;
}

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

/* ── Token Stepping & Hopping Animation ── */
.board-token.token-hop-lift {
  animation: none !important;
  transform: translateY(-22px) scale(1.45) !important;
  filter:
    drop-shadow(1px 0 0 rgba(255, 255, 255, 0.95))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 22px 16px rgba(0, 0, 0, 0.85)) !important;
  transition: transform 0.08s ease-out, filter 0.08s ease-out !important;
  z-index: 50 !important;
  position: relative;
  pointer-events: none;
}

.board-token.token-hop-lift::after {
  transform: translateX(-50%) scale(0.6);
  opacity: 0.35;
  box-shadow: 0 0 14px var(--token-col, #facc15);
}

.board-token.token-hop-dip {
  animation: none !important;
  transform: translateY(-4px) scale(1.15) !important;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.95)) !important;
  transition: transform 0.08s ease-in, filter 0.08s ease-in !important;
  z-index: 50 !important;
  position: relative;
  pointer-events: none;
}

.board-token.token-landing {
  animation: none !important;
  transform: translateY(0) scale(1.0) !important;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.9)) !important;
  transition: transform 0.14s cubic-bezier(0.18, 0.89, 0.32, 1.28), filter 0.14s ease !important;
  position: relative;
}

/* Cell highlight while token is counting through it */
.board-cell.cell-hop-active {
  box-shadow: inset 0 0 16px rgba(244, 180, 26, 0.6), 0 0 10px rgba(244, 180, 26, 0.45) !important;
  border-color: #f4b41a !important;
  z-index: 20 !important;
}

.board-cell.cell-land-active {
  box-shadow: inset 0 0 24px rgba(244, 180, 26, 0.85), 0 0 18px rgba(244, 180, 26, 0.65) !important;
  border-color: #fbbf24 !important;
  z-index: 20 !important;
  animation: cellLandPulse 0.45s ease-out !important;
}

@keyframes cellLandPulse {
  0% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ── Center Stage (Occupies center 9x9 area of the board) ───────────────── */
.board-center-stage {
  position: absolute;
  top: 11.9%;
  left: 11.9%;
  right: 11.9%;
  bottom: 11.9%;
  background: radial-gradient(circle at 50% 40%, #16253d 0%, #0a1120 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 16px 12px;
  overflow: visible;
  z-index: 5;
  border-radius: 6px;
}

/* ── Vector Center Stage: Mountains & Rhododendrons ── */
.center-stage-artwork {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
}

.center-stage-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ── Classic Authentic Diagonal Monopoly Banner ── */
.center-diagonal-banner {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-31deg);
  z-index: 3;
  pointer-events: none;
  width: min(520px, 88%);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.yeti-banner-mascot {
  position: absolute;
  bottom: 80%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(115px, 28%, 160px);
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.75));
}

.monopoly-diagonal-plate {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 25%, #dc2626 50%, #b91c1c 75%, #991b1b 100%);
  border: 3.5px solid #ffffff;
  outline: 2.5px solid #f59e0b;
  outline-offset: -7px;
  border-radius: 8px;
  padding: 8px 30px 10px 30px;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  text-align: center;
  white-space: nowrap;
}

.diagonal-plate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.diagonal-plate-top-decor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  line-height: 1;
  color: #fef08a;
  opacity: 0.9;
  margin-bottom: 2px;
}

.plate-star {
  color: #facc15;
  font-size: 0.7rem;
}

.plate-flag-icon {
  font-size: 0.85rem;
}

.diagonal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
  text-shadow: none;
  filter: none;
}

.diagonal-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  width: 100%;
  justify-content: center;
}

.sub-line {
  flex: 1 1 20px;
  max-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fde047, transparent);
}

.sub-text {
  font-size: clamp(0.52rem, 1.1vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #fef08a;
  text-transform: uppercase;
  text-shadow: none;
}

/* ── 3D Dual Dice Physics Arena (Fixed Absolute Position on Table) ── */
.dice-arena {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92%);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  cursor: pointer;
  perspective: 1200px;
  z-index: 5;
  overflow: visible;
}

.dice-3d-stage {
  position: relative;
  width: 52px;
  height: 52px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.dice-3d-cube {
  position: relative;
  width: 52px;
  height: 52px;
  transform-style: preserve-3d;
  will-change: transform;
}

.dice-3d-shadow {
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 52px;
  height: 15px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 72%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  will-change: transform, opacity;
  transition: opacity 0.15s ease;
}

.dice-arena:hover .dice-3d-shadow {
  transform: translateX(-50%) scale(1.1);
  opacity: 0.9;
}

.cube-face {
  position: absolute;
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #ffffff, #e2e8f0);
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 5px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15);
}

.face-1 { transform: rotateY(0deg) translateZ(26px); }
.face-2 { transform: rotateX(-90deg) translateZ(26px); }
.face-3 { transform: rotateY(90deg) translateZ(26px); }
.face-4 { transform: rotateY(-90deg) translateZ(26px); }
.face-5 { transform: rotateX(90deg) translateZ(26px); }
.face-6 { transform: rotateY(180deg) translateZ(26px); }

.pip {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e293b;
  align-self: center;
  justify-self: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}

.face-1 .pip.center { background: #dc2626; width: 12px; height: 12px; }

.pip.top-left { grid-column: 1; grid-row: 1; }
.pip.top-right { grid-column: 3; grid-row: 1; }
.pip.mid-left { grid-column: 1; grid-row: 2; }
.pip.mid-right { grid-column: 3; grid-row: 2; }
.pip.center { grid-column: 2; grid-row: 2; }
.pip.bottom-left { grid-column: 1; grid-row: 3; }
.pip.bottom-right { grid-column: 3; grid-row: 3; }

/* ── Center Controls & Status Bar ───────────────────────────────────── */
.center-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 4px 10px;
  z-index: 2;
  box-shadow: none;
  transition: all 0.25s ease;
  max-width: 92%;
}

.center-status-bar.your-turn-active {
  background: transparent;
  border: none;
  box-shadow: none;
  animation: none;
}

.center-status-bar.your-turn-active .status-message {
  color: #fef08a;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.75), 0 0 24px rgba(245, 158, 11, 0.45);
}

.center-status-bar.your-turn-active .status-indicator-dot {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: none;
}

@keyframes yourTurnPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
    border-color: #fbbf24;
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.8), 0 0 35px rgba(245, 158, 11, 0.35);
    border-color: #fef08a;
  }
}

@keyframes pulseDotGreen {
  0%, 100% { opacity: 1; transform: scale(1.2); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulseDot 1.8s infinite;
}

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

.status-message {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.center-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 6px;
  z-index: 10;
  max-width: 96%;
}

.btn-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-panel);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-action.btn-roll {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fbbf24;
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-action.btn-roll:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-action.btn-roll.btn-roll-active {
  animation: btnRollActiveGlow 1.5s ease-in-out infinite;
}

@keyframes btnRollActiveGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    border-color: #fbbf24;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 26px rgba(250, 204, 21, 0.85), 0 0 16px #fbbf24;
    border-color: #fef08a;
  }
}

.btn-action.btn-buy {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  color: #fff;
}

.btn-action.btn-highlight {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-color: #c4b5fd;
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}

.btn-action.btn-highlight:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-action.btn-decline {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.btn-action.btn-end {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #bae6fd;
}

.btn-action.btn-redeem {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-color: #fcd34d;
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-action.btn-exchange {
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  border-color: #7dd3fc;
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.exchange-modal-card {
  max-width: 530px;
  width: 95%;
}

.exchange-header-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.exchange-prop-card {
  margin: 10px 0 12px 0;
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(250, 204, 21, 0.06);
}

.exchange-bids-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.exchange-bids-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.exchange-top-bid-tag {
  color: #38bdf8;
  font-size: 0.78rem;
}

.exchange-top-bid-tag b {
  color: #fde047;
}

.exchange-no-bids {
  font-size: 0.82rem;
  color: #94a3b8;
  font-style: italic;
  padding: 6px 0;
  text-align: center;
}

.exchange-my-bid-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exchange-my-bid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
  color: #e2e8f0;
}

.exchange-my-cash b {
  color: #4ade80;
}

.exchange-stepper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-step {
  width: 44px;
  height: 38px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fde047;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-step:hover:not(:disabled) {
  background: rgba(250, 204, 21, 0.25);
  border-color: #fde047;
  transform: scale(1.05);
}

.btn-step:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-step:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.22);
  color: #64748b;
  background: rgba(15, 23, 42, 0.4);
  box-shadow: none;
}

.exchange-bid-val-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 170px;
}

.exchange-bid-input {
  width: 100%;
  height: 38px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 8px;
  color: #4ade80;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
  padding: 0 40px 0 12px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.exchange-bid-input:focus {
  border-color: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.exchange-bid-currency {
  position: absolute;
  right: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
  pointer-events: none;
}

.exchange-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-chip {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-chip:hover:not(:disabled) {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.5);
  color: #fde047;
}

.exchange-risk-tip {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  transition: all 0.2s ease;
  text-align: center;
}

.exchange-risk-tip.risk-warning {
  background: rgba(234, 88, 12, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fed7aa;
}

.exchange-risk-tip.risk-warning b {
  color: #fb923c;
  font-weight: 800;
}

.exchange-risk-tip.risk-safe {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.exchange-risk-tip.risk-safe b {
  color: #4ade80;
  font-weight: 800;
}

.btn-chip:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.2);
  color: #64748b;
  background: rgba(15, 23, 42, 0.3);
}

.exchange-lot-card {
  border: 2px solid #facc15;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.75);
  margin-top: 8px;
}

.exchange-lot-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: 6px;
}

.exchange-lot-price {
  font-size: 0.92rem;
  color: #e2e8f0;
}

.exchange-lot-price b {
  color: #fde047;
}

.exchange-lot-price span {
  font-size: 0.78rem;
  color: #94a3b8;
}

.exchange-lot-cash {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 4px;
}

.exchange-lot-cash b {
  color: #4ade80;
}

.exchange-bids-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  margin-top: 8px;
}

.exchange-bid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.88rem;
  animation: fadeIn 0.2s ease-out;
}

.exchange-bid-item.is-leader {
  background: rgba(30, 58, 88, 0.85);
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.12);
}

.exchange-bid-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.exchange-bid-name {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exchange-bid-dash {
  color: #64748b;
  font-weight: 700;
  padding: 0 2px;
}

.exchange-bid-amt {
  font-weight: 800;
  color: #fde047;
  white-space: nowrap;
}

.exchange-bid-leader-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fef08a;
  background: rgba(250, 204, 21, 0.2);
  border: 1px solid rgba(250, 204, 21, 0.45);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.redeem-modal-card {
  max-width: 500px;
  width: 94%;
}

.redeem-header-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.redeem-bank-banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.3);
  margin: 10px 0 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.redeem-bank-banner img {
  display: block;
  width: 100%;
  max-height: 155px;
  object-fit: cover;
}

.redeem-cash-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.redeem-cash-pill b {
  color: #4ade80;
}

.redeem-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  text-align: left;
}

.redeem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.redeem-row-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.redeem-color-dot {
  width: 12px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}

.redeem-row-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #f8fafc;
}

.redeem-row-sub {
  font-size: 0.76rem;
  color: #94a3b8;
}

.redeem-row-btn {
  padding: 7px 12px !important;
  font-size: 0.8rem !important;
  flex-shrink: 0;
}

.redeem-row-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.6);
  transform: none !important;
  box-shadow: none !important;
}

.redeem-empty {
  text-align: center;
  color: #94a3b8;
  padding: 16px;
}

/* ── Modals ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(540px, 92vw);
  background: #0f172a;
  border: 1px solid var(--border-panel);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(244, 180, 26, 0.2);
}

/* ── Toss Modal Display (Жеребьевка первого хода как в Лудо) ── */
.modal-card.toss-modal-card {
  max-width: 620px;
  width: 95%;
}

.toss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.toss-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-panel);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.toss-card.winner {
  border-color: var(--gold);
  background: rgba(244, 180, 26, 0.15);
  box-shadow: 0 0 16px rgba(244, 180, 26, 0.35);
}

.toss-dice-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
}

.toss-dice-stage {
  width: 52px;
  height: 52px;
  perspective: 450px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin-left: 6px;
  transform: scale(0.72);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toss-dice-stage.enlarged {
  transform: scale(0.92);
  filter: drop-shadow(0 0 10px rgba(244, 180, 26, 0.7));
}

.toss-dice-stage .dice-3d-cube {
  margin: 0;
}

.toss-dice-stage .dice-3d-shadow {
  bottom: -5px;
  width: 48px;
  height: 12px;
}

.btn-toss-action {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 1.05rem;
  padding: 14px 20px;
}

@media (max-width: 540px) {
  .toss-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Rules Modal Styling ── */
#modalRules {
  padding: 58px 16px 16px;
  box-sizing: border-box;
}

.modal-card.rules-card {
  width: min(940px, 95vw);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  padding: 20px 26px 18px;
}

.rules-card .rules-body {
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.rules-card .rules-body::-webkit-scrollbar {
  width: 6px;
}
.rules-card .rules-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.rules-card .rules-body::-webkit-scrollbar-thumb {
  background: rgba(244, 180, 26, 0.3);
  border-radius: 4px;
}
.rules-card .rules-body::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.rules-intro-card {
  width: 100%;
  background: rgba(244, 180, 26, 0.08);
  border: 1px solid rgba(244, 180, 26, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e2e8f0;
  text-align: center;
  box-sizing: border-box;
}

.rules-intro-card strong {
  color: var(--gold);
}

.rules-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .rules-columns-grid {
    grid-template-columns: 1fr;
  }
}

.rules-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-section-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.rules-section-box:hover {
  border-color: rgba(244, 180, 26, 0.35);
  transform: translateY(-1px);
}

.rules-section-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 7px;
}

.rules-section-title span {
  font-size: 1.05rem;
}

.rules-section-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.rules-section-text strong {
  color: #fff;
}

.rules-section-text em {
  color: #93c5fd;
  font-style: normal;
  font-weight: 600;
}

.rules-note {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.77rem;
  line-height: 1.4;
}

.rules-note.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.rules-note.alert-danger strong {
  color: #f87171;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.config-section {
  margin-bottom: 14px;
}

.config-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.btn-group-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-group-select.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.btn-opt {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-panel);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-opt-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 6px;
  gap: 4px;
  min-height: 56px;
}

.btn-opt-stacked .opt-primary {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.btn-opt-stacked.active .opt-primary {
  color: var(--gold);
}

.btn-opt-stacked .opt-secondary {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
}

.btn-opt-stacked.active .opt-secondary {
  color: rgba(250, 204, 21, 0.9);
}

.btn-opt.active {
  background: rgba(244, 180, 26, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(244, 180, 26, 0.3);
}

.btn-primary-action {
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #fbbf24;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* Property Modal Details */
.property-card-modal {
  padding: 0;
  overflow: hidden;
}

/* ── Monopoly Multi-Card Construction Modal ── */
.property-card-modal.is-monopoly-group {
  width: min(860px, 96vw);
  max-width: 880px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(250, 204, 21, 0.2);
}

.property-card-modal.is-monopoly-group.count-2 {
  width: min(640px, 94vw);
  max-width: 660px;
}

.property-card-modal.is-monopoly-group .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 30;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.property-card-modal.is-monopoly-group .modal-close:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  transform: scale(1.1);
}

.mono-group-banner {
  padding: 12px 64px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  gap: 12px;
  flex-wrap: wrap;
}

.mono-group-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mono-group-badge {
  background: rgba(0, 0, 0, 0.35);
  color: #fef08a;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.mono-group-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.mono-group-track {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.mono-group-header-right {
  display: flex;
  align-items: center;
  margin-right: 24px;
}

.mono-group-wallet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  font-size: 0.85rem;
  color: #facc15;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mono-group-intro {
  padding: 10px 20px 4px;
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mono-cards-grid {
  display: grid;
  gap: 14px;
  padding: 12px 18px 20px;
}

.mono-cards-grid.count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mono-cards-grid.count-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 680px) {
  .mono-cards-grid.count-3,
  .mono-cards-grid.count-2 {
    grid-template-columns: 1fr;
  }
}

.mono-prop-card {
  display: flex;
  flex-direction: column;
  background: rgba(24, 32, 47, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.mono-prop-card:hover,
.mono-prop-card.is-active,
.mono-prop-card.is-focused {
  border-color: var(--prop-col, #38bdf8);
  box-shadow: 0 0 20px var(--prop-col, rgba(56, 189, 248, 0.45)), 0 8px 24px rgba(0, 0, 0, 0.55);
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.95);
}

.mono-prop-card.is-mortgaged {
  opacity: 0.82;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(69, 26, 26, 0.35);
}

.mono-card-top {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 0.94rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mono-card-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.mono-card-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mono-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mono-card-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
}

.mono-lodges-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mono-slots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.mono-slot {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.95rem;
  opacity: 0.22;
  filter: grayscale(1);
  transition: all 0.2s;
}

.mono-slot.active {
  opacity: 1;
  filter: none;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.5);
  transform: scale(1.05);
}

.mono-slot.active.hotel {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.6);
}

.mono-slot.mortgaged {
  opacity: 0.95;
  filter: none;
  border-radius: 50% !important;
  border: 2px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.18) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
  position: relative;
}

.mono-slot.mortgaged::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
  height: 2.5px;
  background: #ef4444;
  border-radius: 2px;
  transform: translateY(-50%) rotate(-45deg);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.mono-lvl-status {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

.mono-rent-box {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.77rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mono-rent-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mono-rent-line .rent-lbl {
  color: #94a3b8;
}

.mono-rent-line .rent-val.current {
  color: #4ade80;
  font-weight: 800;
}

.mono-rent-line .rent-val.next {
  color: #38bdf8;
  font-weight: 700;
}

.mono-rent-line .rent-val.max {
  color: #facc15;
  font-weight: 800;
}

.mono-cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #94a3b8;
  padding: 0 4px;
}

.mono-cost-line b {
  color: #f1f5f9;
}

.mono-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.btn-mono-build {
  width: 100%;
  padding: 9px 8px;
  border-radius: 8px;
  border: none;
  font-weight: 800;
  font-size: 0.81rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.btn-mono-build.is-lodge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
}

.btn-mono-build.is-lodge:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.55);
}

.btn-mono-build.is-hotel {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
}

.btn-mono-build.is-hotel:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(245, 158, 11, 0.55);
}

.btn-mono-build:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #334155 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

.btn-mono-mortgage {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mono-mortgage:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
}

.btn-mono-mortgage.is-redeem {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

.btn-mono-mortgage.is-sell-building {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.btn-mono-mortgage.is-sell-building:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.btn-mono-build.is-redeem {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: #34d399;
}

.btn-mono-mortgage:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: transparent;
}

.mono-group-footer {
  padding: 10px 18px 18px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-mono-group-close {
  min-width: 180px;
  padding: 10px 24px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fde047;
  font-family: var(--font-main);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-mono-group-close:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fde047;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-mono-group-close:active {
  transform: translateY(0);
}

.prop-color-banner {
  padding: 12px;
  text-align: center;
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: var(--group-brown);
}

.prop-modal-body {
  padding: 18px 24px 24px;
}

.prop-modal-icon {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 4px;
}

.prop-modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  text-align: center;
  color: #fff;
}

.prop-modal-sub {
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Owner & Status Row */
.prop-modal-owner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  text-align: center;
}

.prop-owner-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.prop-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.prop-owner-badge.status-free {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.prop-owner-badge.status-owned {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--owner-col, rgba(250, 204, 21, 0.5));
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}

.prop-owner-token {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  position: relative;
}

.prop-owner-name {
  color: #fff;
}

.rent-table {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
}

.rent-row, .price-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.82rem;
}

.price-row.main-price {
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.rent-row.hotel-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin-top: 4px;
  padding-top: 6px;
}

.rent-row.active-rent {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid #fbbf24;
  border-radius: 6px;
  padding: 5px 10px;
  margin: 3px -10px;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  position: relative;
}

.rent-row.active-rent span {
  color: #fef08a !important;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rent-row.active-rent span::before {
  content: '▶';
  color: #f59e0b;
  font-size: 0.8rem;
  line-height: 1;
}

.rent-row.active-rent b {
  color: #4ade80 !important;
  font-size: 0.95rem;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.prop-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.prop-modal-actions .btn-action.btn-build {
  background: linear-gradient(135deg, #10b981, #047857);
  border-color: #34d399;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.prop-modal-actions .btn-action.btn-build:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.prop-modal-actions .btn-action.btn-mortgage {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
  font-weight: 600;
}

.prop-modal-actions .btn-action.btn-mortgage:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.25);
  transform: translateY(-1px);
}

/* ── Special Non-Property (Tax, Retreat, Parking, Start) Notice Card ──── */
.prop-special-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 6px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(239, 68, 68, 0.08);
}

.prop-special-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.prop-special-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f1f5f9;
  margin-bottom: 14px;
  text-align: center;
}

.prop-special-amount-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 16px;
}

.spec-amount-label {
  font-size: 0.85rem;
  color: #fca5a5;
  font-weight: 700;
}

.spec-amount-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ── Physical Event Card Modal (Karma & Government) ───────────────────── */
.physical-card-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: min(440px, 94vw) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-physical-card {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 20px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-draw-deck-stage {
  position: relative;
  z-index: 1;
  margin-bottom: -36px;
  transform: scale(0.76) rotate(-5deg);
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

@media (min-width: 720px) {
  .card-draw-deck-stage {
    position: absolute;
    left: -130px;
    top: 50%;
    margin-bottom: 0;
    transform: translateY(-50%) rotate(-6deg);
  }
}

.physical-card-wrapper.is-drawing .game-physical-card,
.physical-card-wrapper.is-drawing .game-physical-card.card-drawn {
  animation: cardDrawFromDeck 1.25s cubic-bezier(0.18, 0.9, 0.25, 1) 0.08s both;
}

.physical-card-wrapper.is-drawing .card-draw-deck-stage .deck-stack {
  animation: deckRecoil 1.0s ease-out 0.08s both;
}

@keyframes cardDrawFromDeck {
  0% {
    opacity: 0.05;
    transform: translate(-210px, 18px) scale(0.26) rotate(-12deg);
  }
  42% {
    opacity: 1;
    transform: translate(-36px, -16px) scale(0.84) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@keyframes deckRecoil {
  0% { transform: scale(1); }
  35% { transform: scale(0.94) translateX(-5px); }
  100% { transform: scale(1) translateX(0); }
}

.game-physical-card.card-drawn {
  animation: cardDrawFlip 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardDrawFlip {
  0% {
    transform: perspective(800px) rotateY(65deg) scale(0.65) translateY(45px);
    opacity: 0;
  }
  60% {
    transform: perspective(800px) rotateY(-8deg) scale(1.03) translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: perspective(800px) rotateY(0deg) scale(1) translateY(0);
    opacity: 1;
  }
}

/* Inner Filigree Ornamental Border */
.card-inner-border {
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(244, 180, 26, 0.4);
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 14px rgba(244, 180, 26, 0.15);
}

/* ── Deck: Karma (Mystic Buddhist Wheel & Violet Cosmos) ── */
.game-physical-card.deck-karma {
  background: radial-gradient(circle at 50% 25%, #2d1252 0%, #17092c 60%, #0a0314 100%);
  border: 2px solid #eab308;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.9), 
    0 0 35px rgba(168, 85, 247, 0.4), 
    inset 0 0 40px rgba(168, 85, 247, 0.18);
}

.game-physical-card.deck-karma .card-inner-border {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: inset 0 0 18px rgba(168, 85, 247, 0.25);
}

.game-physical-card.deck-karma .card-ribbon {
  background: linear-gradient(90deg, #581c87 0%, #7e22ce 50%, #581c87 100%);
  border: 1.5px solid #c084fc;
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.45);
}

.game-physical-card.deck-karma .card-medallion-circle {
  background: radial-gradient(circle at 40% 35%, #9333ea, #3b0764);
  border: 2.5px solid #facc15;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.6), inset 0 0 12px rgba(250, 204, 21, 0.4);
}

/* ── Deck: Government (Imperial Nepal Crimson & Gold Directive) ── */
.game-physical-card.deck-government {
  background: radial-gradient(circle at 50% 25%, #4c0f18 0%, #28060d 60%, #120205 100%);
  border: 2px solid #f59e0b;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.9), 
    0 0 35px rgba(239, 68, 68, 0.4), 
    inset 0 0 40px rgba(239, 68, 68, 0.18);
}

.game-physical-card.deck-government .card-inner-border {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: inset 0 0 18px rgba(239, 68, 68, 0.25);
}

.game-physical-card.deck-government .card-ribbon {
  background: linear-gradient(90deg, #881337 0%, #b91c1c 50%, #881337 100%);
  border: 1.5px solid #fca5a5;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.45);
}

.game-physical-card.deck-government .card-medallion-circle {
  background: radial-gradient(circle at 40% 35%, #b91c1c, #450a0a);
  border: 2.5px solid #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), inset 0 0 12px rgba(251, 191, 36, 0.4);
}

/* Card Drawer Header Banner (Who drew the card) */
.card-drawer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10, 15, 29, 0.75);
  border: 1.5px solid var(--drawer-col, #f59e0b);
  border-radius: 12px;
  padding: 8px 18px;
  margin-bottom: 12px;
  z-index: 3;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 0 14px rgba(255, 255, 255, 0.05);
}

.drawer-token-large {
  font-size: 2.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9));
  position: relative;
  flex-shrink: 0;
}

.drawer-token-large::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 4px;
  border-radius: 50%;
  background: var(--drawer-col, #facc15);
  box-shadow: 0 0 8px var(--drawer-col, #facc15);
}

.drawer-text-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.drawer-notice-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--drawer-col, #fde047);
}

.drawer-bot-name {
  font-size: 1.12rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Top Ribbon Header */
.card-ribbon {
  padding: 6px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  z-index: 2;
}

.ribbon-text {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.ribbon-icon-left,
.ribbon-icon-right {
  font-size: 0.95rem;
}

/* Central Medallion */
.card-medallion-box {
  margin-bottom: 12px;
  z-index: 2;
}

.card-medallion-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.medallion-icon {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

/* Narrative Lore Box */
.card-narrative-box {
  z-index: 2;
  margin-bottom: 10px;
  padding: 0 8px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.card-lore {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Ornamental Divider */
.card-divider {
  z-index: 2;
  color: rgba(244, 180, 26, 0.6);
  font-size: 0.8rem;
  letter-spacing: 6px;
  margin: 4px 0 12px;
}

/* Action Directive Box ("ниже сообщается что нужно сделать") */
.card-action-directive {
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.directive-header {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.directive-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.directive-icon {
  font-size: 1.9rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.directive-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}

.directive-label {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  text-align: center;
}

.directive-val {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

/* Directive States */
.directive-box.directive-gain {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 78, 59, 0.5) 100%);
  border: 1.5px solid #34d399;
}
.directive-box.directive-gain .directive-val {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

.directive-box.directive-pay {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(127, 29, 29, 0.5) 100%);
  border: 1.5px solid #f87171;
}
.directive-box.directive-pay .directive-val {
  color: #fca5a5;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.6);
}

.directive-box.directive-move {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(12, 74, 110, 0.5) 100%);
  border: 1.5px solid #38bdf8;
}
.directive-box.directive-move .directive-val {
  color: #7dd3fc;
  font-size: 1rem;
}

.directive-box.directive-danger {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.32) 0%, rgba(136, 19, 55, 0.5) 100%);
  border: 1.5px solid #fb7185;
}
.directive-box.directive-danger .directive-val {
  color: #fda4af;
  font-size: 0.95rem;
}

@keyframes card-earthquake-shake {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  10%, 50%, 90% { transform: translateY(-3px) translateX(-3px) rotate(-1deg); }
  20%, 60% { transform: translateY(3px) translateX(3px) rotate(1deg); }
  30%, 70% { transform: translateY(-2px) translateX(2px) rotate(-0.5deg); }
  40%, 80% { transform: translateY(2px) translateX(-2px) rotate(0.5deg); }
}

.game-physical-card.card-earthquake {
  border-color: #ef4444 !important;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.5), 0 25px 60px rgba(0, 0, 0, 0.8) !important;
  animation: card-earthquake-shake 0.5s ease-in-out 3;
}

.directive-box.directive-artifact {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32) 0%, rgba(120, 53, 15, 0.5) 100%);
  border: 1.5px solid #fbbf24;
}
.directive-box.directive-artifact .directive-val {
  color: #fde68a;
  font-size: 0.95rem;
}

/* Card Bottom Action Button */
.btn-card-accept {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1.5px solid #fbbf24;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-card-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

/* Victory Modal */
#modalVictory {
  padding: 58px 16px 16px;
  box-sizing: border-box;
}

.victory-card {
  text-align: center;
  width: min(960px, 95vw);
  max-width: 960px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  border-radius: 18px;
  padding: 14px 22px;
  background: radial-gradient(circle at top center, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98) 75%);
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(250, 204, 21, 0.2);
}

/* ── Victory Capital History Chart ── */
.victory-chart-card {
  margin: 10px 0 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.victory-chart-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.vchart-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vchart-icon {
  font-size: 1.15rem;
}

.vchart-title {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fde047;
}

.vchart-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.vchart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vchart-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--chip-color, rgba(255, 255, 255, 0.2));
  font-size: 0.76rem;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.vchart-chip:hover {
  background: rgba(51, 65, 85, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.vchart-chip.is-dimmed {
  opacity: 0.35;
  filter: grayscale(0.5);
}

.vchart-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--chip-color, #38bdf8);
  box-shadow: 0 0 6px var(--chip-color, rgba(56, 189, 248, 0.6));
}

.vchart-chip-val {
  font-weight: 800;
  color: var(--chip-color, #facc15);
  margin-left: 2px;
}

.vchart-stage-wrap {
  position: relative;
  width: 100%;
}

.vchart-stage {
  width: 100%;
  height: auto;
  min-height: 150px;
}

.vchart-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 175px;
  overflow: visible;
}

.vchart-grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-dasharray: 4 4;
}

.vchart-axis-text {
  fill: #64748b;
  font-size: 10px;
  font-family: var(--font-main);
  font-weight: 600;
}

.vchart-line {
  fill: none;
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s, stroke-width 0.2s;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.vchart-line.is-dimmed {
  opacity: 0.15 !important;
}

.vchart-line.is-highlighted {
  stroke-width: 4px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px var(--line-col, rgba(250, 204, 21, 0.7)));
}

.vchart-area {
  transition: opacity 0.2s;
}

.vchart-dot {
  transition: r 0.2s, stroke-width 0.2s;
}

.vchart-dot:hover,
.vchart-dot.is-active {
  r: 6px;
  stroke-width: 2.5px;
  stroke: #ffffff;
}

.vchart-guide-line {
  stroke: rgba(250, 204, 21, 0.45);
  stroke-width: 1.5px;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.vchart-tooltip {
  position: absolute;
  top: 10px;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(250, 204, 21, 0.2);
  min-width: 170px;
  z-index: 50;
  backdrop-filter: blur(8px);
  transform: translate(-50%, -100%);
  margin-top: -12px;
  transition: left 0.08s ease, top 0.08s ease;
}

.vchart-tooltip-header {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fde047;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vchart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  padding: 2px 0;
  color: #cbd5e1;
}

.vchart-tt-player {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vchart-tt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-col, #38bdf8);
}

.vchart-tt-val {
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace, sans-serif;
}

.vchart-tt-diff {
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 4px;
}
.vchart-tt-diff.pos { color: #4ade80; }
.vchart-tt-diff.neg { color: #f87171; }

.victory-trophy {
  font-size: 2.2rem;
  margin-bottom: 2px;
  animation: trophyBounce 1.5s infinite alternate;
}

@keyframes trophyBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.winner-name-banner {
  font-size: 1.45rem;
  color: var(--gold);
  margin: 2px 0;
}

.victory-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.vstat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  padding: 7px 10px;
  text-align: center;
}

.vstat-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vstat-val {
  font-size: 1rem;
  color: #fff;
}

.vstat-score {
  color: var(--gold);
  font-size: 1.2rem;
}

.victory-card--loss {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65), 0 0 28px rgba(239, 68, 68, 0.2);
}

.victory-card--loss .winner-name-banner {
  color: #fca5a5;
}

/* ── Retreat / Jail Modal (Styled to match Himalayan theme) ──────────── */
.jail-modal-card {
  max-width: 470px;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.97) 65%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 32px rgba(245, 158, 11, 0.15);
  padding: 22px 24px 22px;
}

.jail-monastery-banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  margin: 0 0 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(245, 158, 11, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.jail-monastery-banner img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
  object-position: center 30%;
}

.jail-medallion {
  width: 66px;
  height: 66px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.35));
  border: 2px solid rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.jail-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}

.jail-info-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 20px;
}

.jail-turns-pill {
  display: inline-block;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0 0 10px;
}

.jail-hint {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

.jail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.jail-actions .btn-action {
  min-width: 175px;
  justify-content: center;
}

.jail-actions .btn-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.6);
  transform: none !important;
  box-shadow: none !important;
}

.btn-sell-assets {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: 1px solid rgba(252, 211, 77, 0.5);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-sell-assets:hover {
  filter: brightness(1.08);
}

/* ── Sell / Mortgage Assets Modal ────────────────────────────────────── */
.sell-assets-card {
  max-width: 580px;
  width: 94vw;
  background: radial-gradient(circle at top center, rgba(239, 68, 68, 0.1), rgba(15, 23, 42, 0.98) 65%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  padding: 24px;
}

.sell-header-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 8px;
}

.sell-summary-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.sell-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-panel);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sell-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sell-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
}

.sell-val-needed { color: #fca5a5; }
.sell-val-cash { color: #4ade80; }

.sell-asset-list {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-right: 4px;
}

.sell-asset-row {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sell-asset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sell-asset-name {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.92rem;
}

.sell-asset-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sell-asset-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-mini-asset {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}

.btn-mini-asset:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: rgba(250, 204, 21, 0.5);
  transform: translateY(-1px);
}

.btn-mini-asset.is-mortgage {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}

.btn-mini-asset.is-sell-player {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
}

.sell-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sell-actions .btn-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .monopoly-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  .sidebar-players {
    width: 100%;
    max-width: 880px;
  }
}

/* ── Karma & Government Stacked Card Deck Visual ─────────────────────── */
.prop-deck-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0 18px;
}

.deck-stack {
  position: relative;
  width: 108px;
  height: 148px;
}

.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.6);
  transition: transform 0.25s ease;
}

.deck-card-back3 {
  transform: translate(-10px, 8px) rotate(-9deg);
  opacity: 0.65;
}

.deck-card-back2 {
  transform: translate(9px, 5px) rotate(7deg);
  opacity: 0.8;
}

.deck-card-back1 {
  transform: translate(-3px, 3px) rotate(-3deg);
  opacity: 0.92;
}

.deck-card-top {
  transform: translate(0, 0);
  padding: 7px;
  overflow: hidden;
}

.deck-card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.deck-stack:hover .deck-card-top {
  transform: translateY(-4px) rotate(1deg);
}

.deck-karma .deck-card {
  background: linear-gradient(145deg, #5b21b6, #2e1065);
  border-color: rgba(250, 204, 21, 0.72);
}

.deck-government .deck-card {
  background: linear-gradient(145deg, #991b1b, #450a0a);
  border-color: rgba(251, 191, 36, 0.72);
}

.deck-card-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  border: 1.5px dashed rgba(253, 224, 71, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.deck-card-emblem {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.deck-card-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #fde68a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.deck-card-corner {
  position: absolute;
  font-size: 0.6rem;
  color: rgba(253, 224, 71, 0.75);
  line-height: 1;
}

.deck-card-corner.tl { top: 5px; left: 6px; }
.deck-card-corner.tr { top: 5px; right: 6px; }
.deck-card-corner.bl { bottom: 5px; left: 6px; }
.deck-card-corner.br { bottom: 5px; right: 6px; }

/* ── Victory / Loss FX & Token Badge ─────────────────────────────────── */
#modalVictory .victory-card {
  position: relative;
  z-index: 2;
}

.winner-name-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.winner-token-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid var(--token-col, #facc15);
  box-shadow: 0 0 12px color-mix(in srgb, var(--token-col, #facc15) 45%, transparent);
  font-size: 1.25rem;
}

.victory-fx-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.sad-leaf {
  position: absolute;
  top: -10vh;
  opacity: 0.78;
  filter: saturate(0.75) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: sadLeafFall linear infinite;
  user-select: none;
}

@keyframes sadLeafFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  50% {
    transform: translate3d(26px, 55vh, 0) rotate(140deg);
  }
  90% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(-18px, 115vh, 0) rotate(290deg);
    opacity: 0;
  }
}

.firework-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor, 0 0 22px rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: fireworkBurst 1.75s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes fireworkBurst {
  0% {
    transform: translate(0, 0) scale(0.3);
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx, 60px), var(--ty, -60px)) scale(1.1);
    opacity: 0;
  }
}

/* ── Flying Banknotes Animation ──────────────────────────────────────── */
.flying-bill {
  position: fixed;
  width: 118px;
  height: 38px;
  overflow: hidden;
  border-radius: 3px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(2, 6, 23, 0.72));
  animation: flyingBillFlight 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.flying-bill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

@keyframes flyingBillFlight {
  0% {
    transform: translate(-50%, -50%) rotate(var(--rot0, 0deg)) scale(0.42);
    opacity: 0.15;
  }
  20% {
    transform: translate(-50%, -50%) rotate(var(--rot0, 0deg)) scale(1.18);
    opacity: 1;
  }
  75% {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) rotate(var(--rot1, 0deg)) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) rotate(var(--rot1, 0deg)) scale(0.32);
    opacity: 0;
  }
}

.flying-amount-pill {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  transform: translate(-50%, 0);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  animation: floatAmountPill 1.05s ease-out forwards;
}

.flying-amount-pill.pos {
  background: rgba(21, 128, 61, 0.92);
  color: #dcfce7;
  border: 1px solid #4ade80;
}

.flying-amount-pill.neg {
  background: rgba(185, 28, 28, 0.92);
  color: #fee2e2;
  border: 1px solid #f87171;
}

@keyframes floatAmountPill {
  0% {
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.9);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -26px) scale(0.95);
  }
}

/* ── MODAL 4E: PLAYER ASSETS DOSSIER ──────────────────────────────── */
.player-assets-modal-card {
  max-width: 540px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(244, 180, 26, 0.15);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.player-assets-header-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.player-assets-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-assets-avatar-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.9);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(250, 204, 21, 0.25);
  flex-shrink: 0;
}

.player-assets-hero-meta {
  flex: 1;
  min-width: 0;
}

.player-assets-hero-meta .modal-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-assets-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-assets-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.assets-chip {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.assets-chip-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assets-chip-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}

.assets-chip-val.text-green {
  color: #4ade80;
}

.assets-chip-val.text-gold {
  color: var(--gold);
}

.assets-chip-val.text-amber {
  color: #fbbf24;
}

.player-assets-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.player-assets-list::-webkit-scrollbar {
  width: 6px;
}
.player-assets-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 3px;
}
.player-assets-list::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.35);
  border-radius: 3px;
}
.player-assets-list::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 204, 21, 0.6);
}


/* Monopoly Unified Frame in Player Assets Dossier */
.assets-monopoly-frame {
  display: flex;
  flex-direction: column;
  /* Keep the full dossier group intact inside the scrolling list. */
  min-height: max-content;
  background: rgba(22, 33, 53, 0.85);
  border: 1.5px solid var(--sector-color, #facc15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.assets-monopoly-frame.new-group {
  margin-top: 10px;
}

.assets-monopoly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1.5px solid var(--sector-color, rgba(255, 255, 255, 0.12));
  transition: background 0.2s;
}

.assets-monopoly-header:hover {
  background: linear-gradient(90deg, rgba(45, 60, 85, 0.95), rgba(20, 30, 50, 0.95));
}

.assets-monopoly-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.assets-monopoly-header-name {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.assets-monopoly-header-track {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assets-monopoly-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.assets-monopoly-multiplier {
  font-size: 0.72rem;
  font-weight: 800;
  color: #facc15;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.assets-monopoly-rows {
  display: flex;
  flex-direction: column;
}

.assets-monopoly-rows .assets-prop-row {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  margin: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.assets-monopoly-rows .assets-prop-row:last-child {
  border-bottom: none !important;
}

.assets-monopoly-rows .assets-prop-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  transform: none !important;
}

.assets-monopoly-rows .assets-prop-row.is-mortgaged {
  background: rgba(69, 26, 26, 0.45) !important;
}

.assets-monopoly-rows .assets-prop-row.is-mortgaged:hover {
  background: rgba(69, 26, 26, 0.6) !important;
}

.assets-prop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.assets-prop-row:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

.assets-prop-row.new-group {
  margin-top: 10px;
  position: relative;
}

.assets-prop-row.new-group::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 6px;
  right: 6px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.assets-prop-row.is-mortgaged {
  background: rgba(69, 26, 26, 0.35);
  border-color: rgba(239, 68, 68, 0.3);
  opacity: 0.9;
}

.assets-prop-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.assets-color-pill {
  width: 8px;
  height: 38px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.assets-prop-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.assets-prop-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.assets-prop-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.assets-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.assets-badge.badge-mortgaged {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.assets-badge.badge-hotel {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.assets-badge.badge-lodges {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.assets-badge.badge-monopoly {
  background: rgba(250, 204, 21, 0.18);
  color: #fef08a;
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.assets-badge.badge-group {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.assets-prop-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.assets-rent-val {
  font-weight: 800;
  font-size: 0.92rem;
  color: #4ade80;
}

.assets-rent-val.is-zero {
  color: #ef4444;
  text-decoration: line-through;
  opacity: 0.75;
}

.assets-rent-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.assets-price-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

.player-assets-empty {
  text-align: center;
  padding: 32px 16px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.player-assets-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.player-assets-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.player-assets-empty-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-assets-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-assets-close {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fde047;
  font-family: var(--font-main);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(250, 204, 21, 0.08);
  transition: all 0.22s ease-in-out;
  outline: none;
}

.btn-assets-close .btn-assets-close-icon {
  font-size: 0.85rem;
  opacity: 0.85;
}

.btn-assets-close:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fde047;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-assets-close:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-cancel {
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.btn-cancel:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
