/* ==============================================================
   3RB Monopoly - Official Classic Board Edition (WikiHow Authentic)
   Authentic Pale Sage Felt, Classic Red Banner, Locomotive SVGs,
   Hand Dice Throw, Title Deeds & In-Game Property Management
   ============================================================== */

:root {
  --mono-felt: #cee5d3;
  --mono-felt-border: #1e293b;
  --mono-tile-bg: #fdfefd;
  --mono-tile-border: #334155;
  --mono-red-logo: #dc2626;
  --mono-gold: #f59e0b;
}

.monopoly-table-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--current-table-felt-url, url('/assets/images/table_bg.jpg')) center center / 100% 100% no-repeat, radial-gradient(circle at center, #0e3d27 0%, #082417 65%, #03130c 100%) !important;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85) !important;
  color: #0f172a;
  font-family: 'Cairo', sans-serif;
  overflow: hidden;
  user-select: none;
}

.monopoly-table-wrapper::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  pointer-events: none;
  z-index: 1;
}

/* --- Top HUD Bar --- */
.monopoly-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  background: rgba(10, 20, 15, 0.95);
  border-bottom: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  z-index: 10;
  backdrop-filter: blur(8px);
}

.monopoly-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.monopoly-crown {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.6));
}

.monopoly-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fef08a, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.monopoly-edition {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
}

/* --- Bank Housing Supply HUD Strip --- */
.monopoly-bank-supply-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px 14px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.monopoly-bank-supply-strip .supply-title {
  color: #fbbf24;
  font-weight: 800;
}

.bank-house-pill {
  background: rgba(22, 163, 74, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.5);
  padding: 2px 8px;
  border-radius: 10px;
  color: #86efac;
}

.bank-hotel-pill {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.5);
  padding: 2px 8px;
  border-radius: 10px;
  color: #fca5a5;
}

.monopoly-turn-announcer {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Main Arena (Board + Sidebar) --- */
.monopoly-arena {
  display: flex;
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  padding: 4px 16px 8px 16px;
  gap: 16px;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* --- The 40-Tile Board Container --- */
.monopoly-board-container {
  height: 100%;
  max-height: min(100%, calc(100vh - 175px));
  width: auto;
  max-width: calc(100% - 460px);
  aspect-ratio: 1.80 / 1;
  box-sizing: border-box;
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.monopoly-board {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  background: var(--mono-felt);
  border: 5px solid var(--mono-felt-border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-template-rows: repeat(11, minmax(0, 1fr));
  overflow: visible;
  direction: ltr;
}

/* --- Authentic Center Stage --- */
.board-center-stage {
  grid-column: 2 / 11;
  grid-row: 2 / 11;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: radial-gradient(circle at center, #daf0df 0%, #cee5d3 70%, #bcd6c2 100%);
  z-index: 2;
  border: 1.5px solid rgba(51, 65, 85, 0.3);
  overflow: hidden;
  box-sizing: border-box;
}

/* Authentic Red Rectangle Logo Banner (Wide Classic Rectangle Filling Center Felt) */
.monopoly-classic-red-banner {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  border: 3px solid #ffffff;
  border-radius: 8px;
  padding: 4px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: none;
  margin: 2px auto 6px auto;
  width: min(92%, 520px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  overflow: hidden;
}

.red-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.brand-crest-mini {
  font-size: 1.15rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.red-banner-text {
  font-family: 'Arial Black', 'Impact', sans-serif;
  font-size: clamp(0.85rem, 2.2cqi, 1.25rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

/* Decks Row - Pure Aesthetic Card Decks on Felt (Non-clickable) */
.center-decks-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  margin: 4px 0;
  gap: 20px;
  pointer-events: none;
}

.deck-box {
  flex: 1;
  height: 66px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  cursor: default;
  pointer-events: none;
  user-select: none;
  box-sizing: border-box;
}

.deck-icon {
  font-size: 1.45rem;
}

.deck-label {
  font-size: 0.82rem;
  font-weight: 900;
}

.deck-sub {
  font-size: 0.62rem;
  opacity: 0.9;
  letter-spacing: 0.8px;
}

.community-deck-box {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 2px solid #38bdf8;
  transform: rotate(12deg);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.chance-deck-box {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border: 2px solid #fb923c;
  transform: rotate(-12deg);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.deck-box:active {
  transform: scale(0.96);
}

.deck-drawn-pulse {
  animation: deckPulseLift 0.4s ease-out;
}

@keyframes deckPulseLift {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.08) translateY(-6px); box-shadow: 0 12px 24px rgba(255, 255, 255, 0.4); }
  100% { transform: scale(1); }
}

.deck-box-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.deck-icon {
  font-size: 1.25rem;
}

.deck-label {
  font-size: 0.72rem;
  font-weight: 800;
}

.deck-sub {
  font-size: 0.55rem;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* --- Dice & Hand Throw Stage --- */
.board-dice-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 80px;
  perspective: 900px;
  perspective-origin: 50% 35%;
}

/* Animated Realistic Tycoon Throwing Hand with Moving Fingers */
.dice-throw-hand-wrapper {
  position: absolute;
  top: -115px;
  right: -215px;
  width: 190px;
  height: 170px;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transform-origin: top right;
}

.dice-throw-hand-wrapper.active {
  animation: manHandThrowAnim 2.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.dice-throw-hand-wrapper .hand-hold-frame,
.dice-throw-hand-wrapper .hand-release-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.65));
  pointer-events: none;
  user-select: none;
}

.dice-throw-hand-wrapper .hand-hold-frame {
  opacity: 1;
}

.dice-throw-hand-wrapper .hand-release-frame {
  opacity: 0;
}

.dice-throw-hand-wrapper.active .hand-hold-frame {
  animation: fingerHoldToReleaseHold 2.2s ease forwards;
}

.dice-throw-hand-wrapper.active .hand-release-frame {
  animation: fingerHoldToReleaseOpen 2.2s ease forwards;
}

.dice-throw-hand-wrapper.active ~ .dice-pair {
  animation: dicePairReveal 2.2s ease forwards;
}

.dice-throw-hand-wrapper.active ~ .dice-sum-badge {
  animation: diceBadgeReveal 2.2s ease forwards;
}

@keyframes dicePairReveal {
  0% { opacity: 0; visibility: hidden; pointer-events: none; }
  52% { opacity: 0; visibility: hidden; pointer-events: none; }
  54% { opacity: 1; visibility: visible; pointer-events: auto; }
  100% { opacity: 1; visibility: visible; pointer-events: auto; }
}

@keyframes diceBadgeReveal {
  0% { opacity: 0; transform: scale(0.7); }
  85% { opacity: 0; transform: scale(0.7); }
  94% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fingerHoldToReleaseHold {
  0% { opacity: 1; }
  52% { opacity: 1; }
  56% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fingerHoldToReleaseOpen {
  0% { opacity: 0; }
  52% { opacity: 0; }
  56% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes manHandThrowAnim {
  0% {
    opacity: 0;
    transform: translate(40px, -25px) scale(0.9) rotate(-14deg);
  }
  12% {
    opacity: 1;
    transform: translate(15px, -10px) scale(1) rotate(-9deg);
  }
  /* Pre-throw natural shakes strictly in side space away from dice landing spot */
  24% {
    opacity: 1;
    transform: translate(5px, -15px) scale(1.02) rotate(-12deg);
  }
  36% {
    opacity: 1;
    transform: translate(18px, -6px) scale(0.99) rotate(-7deg);
  }
  48% {
    opacity: 1;
    transform: translate(10px, -14px) scale(1.02) rotate(-11deg);
  }
  /* 54%: Sharp wrist flick towards felt, releasing dice into flight from side distance */
  54% {
    opacity: 1;
    transform: translate(-5px, 2px) scale(1.04) rotate(0deg);
  }
  /* 58%: Fingers fully open, dice cast */
  58% {
    opacity: 1;
    transform: translate(0px, -2px) scale(1.02) rotate(-3deg);
  }
  /* Immediate swift retreat backwards and upwards away from table center */
  68% {
    opacity: 0.8;
    transform: translate(30px, -20px) scale(0.95) rotate(-8deg);
  }
  78% {
    opacity: 0.3;
    transform: translate(65px, -45px) scale(0.88) rotate(-14deg);
  }
  86% {
    opacity: 0;
    transform: translate(100px, -70px) scale(0.8) rotate(-20deg);
  }
  100% {
    opacity: 0;
    transform: translate(100px, -70px) scale(0.8) rotate(-20deg);
  }
}

.dice-pair {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 10;
  transform-style: preserve-3d;
}

.monopoly-die {
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border-radius: 11px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32), inset 0 2px 4px rgba(255, 255, 255, 0.95);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 6px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateZ(3deg);
}

.monopoly-die:nth-child(2) {
  transform: rotateZ(-4deg);
}

.monopoly-die.rolling {
  opacity: 0;
  animation: diceRealisticPhysics1 2.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.monopoly-die:nth-child(2).rolling {
  opacity: 0;
  animation: diceRealisticPhysics2 2.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Authentic 3D Multi-Axis Throw & Tumble Physics - Harmonized 2.2s Pace */
@keyframes diceRealisticPhysics1 {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(125px, -120px, 90px) scale(0.65) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  52% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(115px, -110px, 70px) scale(0.7) rotateX(90deg) rotateY(60deg) rotateZ(45deg);
  }
  /* 54%: Hand fingers open, launched in an arc from hand on the side */
  54% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(105px, -100px, 60px) scale(1.3) rotateX(170deg) rotateY(130deg) rotateZ(110deg);
    box-shadow: 0 24px 30px rgba(0, 0, 0, 0.22);
  }
  /* 70%: First hard impact on felt - with impact squash! */
  70% {
    opacity: 1;
    transform: translate3d(-10px, 12px, 0px) scale3d(1.18, 0.84, 1) rotateX(460deg) rotateY(320deg) rotateZ(280deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
  }
  /* 80%: Rebound hop into the air */
  80% {
    opacity: 1;
    transform: translate3d(-6px, -7px, 20px) scale3d(0.96, 1.04, 1) rotateX(580deg) rotateY(420deg) rotateZ(340deg);
    box-shadow: 0 14px 18px rgba(0, 0, 0, 0.28);
  }
  /* 89%: Second soft bounce on the felt */
  89% {
    opacity: 1;
    transform: translate3d(2px, 3px, 0px) scale3d(1.04, 0.96, 1) rotateX(700deg) rotateY(520deg) rotateZ(360deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  }
  /* 96%: Rolling friction deceleration */
  96% {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px) scale(0.99) rotateX(720deg) rotateY(540deg) rotateZ(363deg);
  }
  /* 100%: Flat resting on table with subtle 3deg natural tilt */
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0px, 0px, 0px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(3deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28), inset 0 2px 3px rgba(255, 255, 255, 0.95);
  }
}

@keyframes diceRealisticPhysics2 {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(145px, -130px, 100px) scale(0.65) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  52% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(135px, -120px, 80px) scale(0.7) rotateX(60deg) rotateY(90deg) rotateZ(-60deg);
  }
  /* 54%: Released from hand, trailing slightly */
  54% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(125px, -115px, 75px) scale(1.35) rotateX(130deg) rotateY(-160deg) rotateZ(-120deg);
    box-shadow: 0 26px 32px rgba(0, 0, 0, 0.22);
  }
  /* 72%: First impact on felt */
  72% {
    opacity: 1;
    transform: translate3d(-14px, 14px, 0px) scale3d(1.2, 0.82, 1) rotateX(430deg) rotateY(-400deg) rotateZ(-290deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
  }
  /* 81%: Rebound hop */
  81% {
    opacity: 1;
    transform: translate3d(-4px, -6px, 18px) scale3d(0.95, 1.05, 1) rotateX(550deg) rotateY(-520deg) rotateZ(-345deg);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.28);
  }
  /* 90%: Second soft bounce */
  90% {
    opacity: 1;
    transform: translate3d(3px, 2px, 0px) scale3d(1.04, 0.96, 1) rotateX(690deg) rotateY(-680deg) rotateZ(-358deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  }
  /* 96%: Rolling friction halt */
  96% {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px) scale(0.99) rotateX(720deg) rotateY(-720deg) rotateZ(-363deg);
  }
  /* 100%: Flat resting on table with subtle -4deg natural tilt */
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0px, 0px, 0px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(-4deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28), inset 0 2px 3px rgba(255, 255, 255, 0.95);
  }
}

.monopoly-die .dot {
  width: 9.5px;
  height: 9.5px;
  background: #111827;
  border-radius: 50%;
  margin: auto;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

.monopoly-die .dot.red-dot {
  background: #dc2626;
}

.d-tl { grid-area: 1 / 1; }
.d-tr { grid-area: 1 / 3; }
.d-ml { grid-area: 2 / 1; }
.d-center { grid-area: 2 / 2; }
.d-mr { grid-area: 2 / 3; }
.d-bl { grid-area: 3 / 1; }
.d-br { grid-area: 3 / 3; }

.dice-sum-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e293b;
  background: #ffffff;
  padding: 3px 12px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Action Controls Panel */
.board-actions-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  z-index: 10;
  gap: 10px;
  flex-wrap: wrap;
}

.monopoly-btn {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 22px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.monopoly-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.monopoly-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.monopoly-btn.disabled,
.monopoly-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-roll {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
  font-size: 1.05rem;
  padding: 10px 28px;
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-gray {
  background: #334155;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #ffffff;
}

.action-waiting-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 20px;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 50%;
  animation: pulseDot 1.2s infinite ease-in-out;
}

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

.announcer-pawn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.announcer-pawn-dot.pulse {
  animation: pulseDot 1s infinite ease-in-out;
}

.pawn-walking-tag {
  background: rgba(240, 253, 244, 0.95);
  border-color: #86efac;
  color: #14532d;
}

.pawn-walking-tag .pulsing-dot {
  background: #16a34a;
}

.card-waiting-tag {
  background: rgba(254, 243, 199, 0.95);
  border-color: #fde047;
  color: #713f12;
}

.card-waiting-tag .pulsing-dot {
  background: #ca8a04;
}

/* --- 40 Board Tiles Grid --- */
.board-tiles-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-template-rows: repeat(11, minmax(0, 1fr));
  z-index: 5;
  pointer-events: none;
  direction: ltr;
}

.board-tile {
  position: relative;
  border: 1px solid var(--mono-tile-border);
  background: var(--mono-tile-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  cursor: default;
  pointer-events: auto;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
  box-sizing: border-box;
}

.board-tile * {
  min-width: 0;
  min-height: 0;
}

.board-tile.tile-type-property,
.board-tile.tile-type-railroad,
.board-tile.tile-type-utility {
  cursor: pointer;
}

.board-tile.tile-type-property:hover,
.board-tile.tile-type-railroad:hover,
.board-tile.tile-type-utility:hover {
  z-index: 15;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  transform: scale(1.03);
}

/* Color bar for street properties */
.tile-color-bar {
  height: 20%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1.5px solid #0f172a;
}

.tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 1px 2px 2px 2px;
  text-align: center;
  color: #0f172a;
}

.tile-name {
  font-size: clamp(0.48rem, 0.72vw, 0.60rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.12;
  display: block;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}

.tile-price {
  font-size: clamp(0.48rem, 0.7vw, 0.60rem);
  font-weight: 900;
  color: #047857;
  line-height: 1;
}

/* Special Spaces (Railroads, Utilities, Taxes) */
.tile-special-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 2px 2px;
  text-align: center;
  color: #0f172a;
}

/* Railroad & Transportation Vehicle Graphics (WikiHow Authentic) */
.railroad-svg-icon,
.station-vehicle-svg {
  width: 70%;
  height: auto;
  max-height: 15px;
  color: #1e293b;
  margin: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* Corner Spaces (WikiHow Authentic) */
.tile-type-corner {
  background: #f8fafc;
  border: 2px solid #0f172a;
}

/* GO Corner */
.go-corner-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1px;
  text-align: center;
  overflow: hidden;
}

.go-word {
  font-family: 'Arial Black', sans-serif;
  font-size: clamp(0.75rem, 1.8vw, 1.15rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
  line-height: 1;
}

.go-arrow-svg {
  width: 80%;
  height: auto;
  max-height: 11px;
  margin: 1px 0;
}

.go-bonus {
  font-size: clamp(0.42rem, 0.8vw, 0.52rem);
  font-weight: 800;
  color: #dc2626;
  line-height: 1;
  white-space: nowrap;
}

/* Jail Corner */
.jail-corner-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fdba74;
}

.jail-cell-box {
  width: 65%;
  height: 65%;
  background: #ffedd5;
  border: 2px solid #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.jail-cell-bars {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 5px, #0f172a 5px, #0f172a 7px);
  opacity: 0.85;
}

.jail-prisoner {
  font-size: 1.1rem;
  z-index: 2;
}

.jail-cell-label {
  font-size: 0.5rem;
  font-weight: 900;
  color: #991b1b;
  z-index: 2;
}

.jail-visiting-strip {
  font-size: 0.48rem;
  font-weight: 800;
  color: #431407;
  margin-top: 1px;
}

/* Free Parking Corner */
.free-parking-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px;
}

.parking-title {
  font-size: clamp(0.44rem, 0.9vw, 0.52rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.vintage-car-svg {
  width: 75%;
  height: auto;
  max-height: 18px;
  margin: 1px 0;
}

.parking-sub {
  font-size: clamp(0.38rem, 0.8vw, 0.46rem);
  font-weight: 800;
  color: #dc2626;
  line-height: 1;
}

/* Go To Jail Corner */
.go-to-jail-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1px;
  overflow: hidden;
}

.officer-title {
  font-size: clamp(0.44rem, 0.9vw, 0.52rem);
  font-weight: 900;
  color: #991b1b;
  line-height: 1;
}

.police-officer-svg {
  width: 65%;
  height: auto;
  max-height: 18px;
  margin: 1px 0;
}

.officer-sub {
  font-size: clamp(0.38rem, 0.8vw, 0.46rem);
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1;
}

/* Special Icons (WikiHow Authentic) */
.utility-bulb-svg,
.utility-hydrant-svg,
.tax-ring-svg,
.tax-house-svg,
.chest-3d-svg {
  width: 60%;
  height: auto;
  max-height: 15px;
  margin: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.chance-big-q {
  font-family: 'Arial Black', sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chest-3d-box {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

/* Owner Tag & Mortgage */
.tile-owner-badge {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-size: 0.55rem;
  z-index: 10;
}

.tile-mortgage-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  z-index: 12;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* 3D Isometric Houses and Hotels (WikiHow Authentic) */
.house-cluster {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  padding: 1px 0;
}

.svg-3d-house {
  width: 13px;
  height: 13px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  transition: transform 0.15s ease;
}

.svg-3d-house:hover {
  transform: scale(1.3) translateY(-2px);
}

.svg-3d-hotel {
  width: 22px;
  height: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
  transition: transform 0.15s ease;
}

.svg-3d-hotel:hover {
  transform: scale(1.25) translateY(-2px);
}

.tile-house {
  font-size: 0.65rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.tile-hotel {
  font-size: 0.85rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Realistic 3D Player Pawns (WikiHow Authentic - Perfectly Calibrated Size) */
.tile-pawns-container {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  z-index: 20;
  pointer-events: none;
}

.player-pawn {
  position: relative;
  width: 32px;
  height: 44px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  margin: 0 -2px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.48)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.tile-pawns-container.pawns-count-3 .player-pawn {
  width: 26px;
  height: 36px;
  margin: 0 -4px;
}

.tile-pawns-container.pawns-count-4 .player-pawn {
  width: 22px;
  height: 31px;
  margin: 0 -5px;
}

.player-pawn:hover {
  transform: scale(1.22) translateY(-4px);
  z-index: 35;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.player-pawn.pawn-just-landed {
  animation: pawnDropSettle 0.28s ease-out;
}

@keyframes pawnDropSettle {
  0% { transform: scale(1.18) translateY(-6px); opacity: 0.9; }
  60% { transform: scale(0.96) translateY(1px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.classic-3d-pawn-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Animated Hand Grasping Pawn Movement Overlay (Image 1 Authentic Mover) */
.pawn-move-overlay {
  position: absolute;
  inset: 0;
  z-index: 9999;
  overflow: visible;
  pointer-events: none;
}

.active-hand-pawn-mover {
  position: absolute;
  width: 95px;
  height: 184px;
  left: 0;
  top: 0;
  transform: translate(-50.4%, -100%);
  transform-origin: 50.4% 100%;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.65));
  z-index: 10000;
}

.hand-grasping-pawn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.active-hand-pawn-mover.is-hopping {
  animation: pawnHopBounce 0.35s ease-in-out;
}

@keyframes pawnHopBounce {
  0% { transform: translate(-50.4%, -100%) scale(1); }
  50% { transform: translate(-50.4%, -122%) scale(1.08); }
  100% { transform: translate(-50.4%, -100%) scale(1); }
}

.tile-hop-pulse {
  animation: tileHopGlow 0.35s ease-out;
}

@keyframes tileHopGlow {
  0% { box-shadow: inset 0 0 0 3px #16a34a, 0 0 16px rgba(22, 163, 74, 0.85); background: #bbf7d0; }
  100% { box-shadow: none; }
}

/* Floating Monopoly Banknote Bill for Cash Transfers */
.floating-banknote-bill {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3px 5px;
  border-radius: 3px;
  font-family: 'Times New Roman', serif;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: left 0.75s cubic-bezier(0.25, 1, 0.5, 1),
              top 0.75s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.75s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.75s ease;
}

/* --- Sidebar (Players & History) - Side-by-Side 2-Column Grid --- */
.monopoly-sidebar {
  flex: 1 1 0%;
  width: auto;
  min-width: 380px;
  max-width: none;
  height: 100%;
  max-height: min(100%, calc(100vh - 175px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.monopoly-sidebar-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  box-sizing: border-box;
}

.players-card {
  flex: 1.38 1 0%;
  min-height: 0;
}

.history-card {
  flex: 0.62 1 0%;
  min-height: 0;
}

.card-header-title {
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 2-Column Side-by-Side Players Grid: Zero Scrolling Required & Zero Overflow */
.monopoly-players-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-card-item {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 9px 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.player-card-item.is-active-turn {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.player-card-item.is-bankrupt {
  opacity: 0.45;
  filter: grayscale(1);
}

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

.player-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.token-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
}

.sidebar-mini-pawn-wrap {
  position: absolute;
  bottom: -3px;
  right: -5px;
  width: 15px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.sidebar-mini-pawn-wrap .classic-3d-pawn-svg {
  width: 100%;
  height: 100%;
}

.player-meta {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.player-name {
  font-size: clamp(0.78rem, 0.92vw, 0.88rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.you-badge {
  font-size: 0.62rem;
  font-weight: 900;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.5);
}

.player-sub-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.70rem;
  font-weight: 700;
  min-width: 0;
}

.player-token-label {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 0.62rem;
  flex-shrink: 0;
}

.player-role {
  font-size: 0.70rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
}

.player-cash-wrap {
  text-align: left;
  flex-shrink: 0;
  min-width: 55px;
}

.cash-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.net-worth {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  margin-top: 1px;
}

/* Monopoly Banknote Stacks (WikiHow Paper Money) - Clean Rectangular Layout */
.player-wallet-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
  padding: 4px 7px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 6px;
  box-sizing: border-box;
}

.wallet-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wallet-label {
  font-size: 0.74rem;
  color: #f1f5f9;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-badge-count {
  font-size: 0.68rem;
  color: #fbbf24;
  font-weight: 700;
}

.player-banknotes-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  direction: ltr;
  padding: 0;
  width: 100%;
}

.mini-stack-bill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  max-width: 44px;
  min-width: 0;
  height: 20px;
  border-radius: 4px;
  font-size: clamp(0.58rem, 0.8vw, 0.7rem);
  font-weight: 900;
  font-family: 'Consolas', 'Courier New', monospace;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border: 1.5px solid;
  outline: 1px dashed rgba(0, 0, 0, 0.3);
  outline-offset: -2px;
  margin: 0;
  padding: 0;
  transform: none !important;
}

/* Turn Countdown Centered on Monopoly Board */
.monopoly-board .center-turn-countdown-overlay,
.monopoly-board-container .center-turn-countdown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
}

.mini-stack-bill:hover {
  transform: translateY(-3px) scale(1.12) !important;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7);
  z-index: 25;
}

.player-props-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 800;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 0 3px 0;
  margin-top: 2px;
  box-sizing: border-box;
}

.props-dots-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.prop-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  display: inline-block;
}

/* History Logs */
.monopoly-log-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
}

.log-item {
  color: #cbd5e1;
  line-height: 1.25;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 3px;
}

/* --- Title Deed Card Modal (Direct Interactive Engine) --- */
.monopoly-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.15s ease;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 10px;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.monopoly-deed-modal {
  width: 320px;
  max-width: 90vw;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.4);
  overflow: hidden;
  border: 2px solid #b45309;
  position: relative;
}

.deed-card-inner {
  display: flex;
  flex-direction: column;
}

.deed-header {
  padding: 12px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  position: relative;
}

.deed-close-x-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.deed-close-x-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.deed-header-sub {
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 900;
  opacity: 0.9;
}

.deed-header-name {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 2px 0;
}

.deed-header-en {
  font-size: 0.72rem;
  opacity: 0.85;
}

.deed-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.rent-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rent-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.rent-row.bold { font-weight: 800; }
.rent-row.highlight { font-weight: 900; color: #b45309; background: #fef3c7; padding: 2px 4px; border-radius: 4px; }

.deed-costs-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 3px 0;
}

.deed-costs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.74rem;
}

.cost-item {
  display: flex;
  flex-direction: column;
}

.cost-item span { color: #64748b; font-size: 0.68rem; }
.cost-item strong { color: #0f172a; font-size: 0.84rem; }

.deed-owner-status {
  padding: 6px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.78rem;
}

.deed-rule-notice {
  font-size: 0.72rem;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.25;
}

.deed-rule-notice.notice-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.deed-rule-notice.notice-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Deed Action Buttons */
.deed-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.deed-btn {
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 6px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.deed-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.deed-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-build { background: #10b981; color: #ffffff; }
.btn-sell { background: #f59e0b; color: #ffffff; }
.btn-mortgage { background: #475569; color: #ffffff; }
.btn-unmortgage { background: #0284c7; color: #ffffff; }

.deed-close-btn {
  background: #f1f5f9;
  color: #334155;
  border: none;
  padding: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.deed-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* --- Drawn Card Announcement Popup --- */
/* --- Drawn Card Announcement Popup (3D Chest & 3D Card Flip) --- */
.monopoly-card-popup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  cursor: pointer;
  animation: cardModalFadeIn 0.3s ease-out;
  overflow: hidden;
}

@keyframes cardModalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.card-popup-content {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   1. COMMUNITY CHEST (صندوق الحظ): 3D OPENING TREASURE CHEST ANIMATION
   ========================================================================== */
.chest-stage-container {
  position: relative;
  width: 440px;
  max-width: 95vw;
  min-height: 520px;
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 20px;
}

/* Ground shadow beneath chest */
.chest-ground-shadow {
  position: absolute;
  bottom: 25px;
  width: 280px;
  height: 38px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  animation: chestShadowPulse 2.5s ease-in-out infinite;
}

@keyframes chestShadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 0.65; }
}

/* 3D Chest Container */
.chest-3d-box {
  position: absolute;
  bottom: 30px;
  width: 270px;
  height: 155px;
  transform-style: preserve-3d;
  z-index: 5;
}

/* Chest Base (Body) */
.chest-body {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 105px;
  background: linear-gradient(180deg, #5a2810 0%, #3e1908 45%, #240d04 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), inset 0 2px 6px rgba(255, 255, 255, 0.15), inset 0 -6px 14px rgba(0, 0, 0, 0.7);
  border: 2px solid #78350f;
  overflow: hidden;
}

/* Wood Planks Seams */
.chest-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 43px,
    rgba(0, 0, 0, 0.45) 44px,
    rgba(255, 255, 255, 0.06) 45px,
    transparent 46px
  );
  pointer-events: none;
}

/* Brass Corner Bands & Rivets on Base */
.chest-band {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  background: linear-gradient(90deg, #d97706, #fbbf24 45%, #b45309 85%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.chest-band-left { left: 24px; }
.chest-band-right { right: 24px; }

/* Metallic Rivets on Bands */
.chest-band::before,
.chest-band::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #f59e0b 60%, #78350f);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
}
.chest-band::before { top: 18px; }
.chest-band::after { bottom: 18px; }

/* Chest Golden Lock & Plate */
.chest-lock-plate {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 48px;
  background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #854d0e 100%);
  border-radius: 4px 4px 14px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7), inset 0 1px 2px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #713f12;
  z-index: 8;
}

.chest-keyhole {
  width: 8px;
  height: 14px;
  background: #180903;
  border-radius: 4px 4px 2px 2px;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.8), inset 0 1px 2px #000;
  position: relative;
}
.chest-keyhole::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: #180903;
}

/* 3D Chest Lid (Opens backwards!) */
.chest-lid-3d {
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 58px;
  background: linear-gradient(180deg, #713316 0%, #4a1d09 80%, #2e1105 100%);
  border-radius: 45px 45px 0 0 / 55px 55px 0 0;
  border: 2px solid #854d0e;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), inset 0 3px 8px rgba(255, 255, 255, 0.25);
  transform-origin: top center;
  transform-style: preserve-3d;
  animation: chestLidSwingOpen 1.1s cubic-bezier(0.2, 0.85, 0.35, 1) 0.15s forwards;
  z-index: 6;
}

@keyframes chestLidSwingOpen {
  0% {
    transform: rotateX(0deg);
  }
  18% {
    transform: rotateX(10deg);
  }
  75% {
    transform: rotateX(-125deg);
  }
  100% {
    transform: rotateX(-115deg);
  }
}

/* Lid Bands */
.chest-lid-band {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  background: linear-gradient(90deg, #d97706, #fbbf24 45%, #b45309 85%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}
.chest-lid-band-left { left: 24px; border-radius: 12px 0 0 0; }
.chest-lid-band-right { right: 24px; border-radius: 0 12px 0 0; }

.chest-lid-clasp {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 16px;
  background: linear-gradient(135deg, #fef08a, #eab308, #854d0e);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  border: 1px solid #713f12;
}

/* Golden Ray Burst emerging from the chest interior */
.chest-light-burst {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 18deg,
    rgba(251, 191, 36, 0.35) 18deg 36deg,
    transparent 36deg 54deg,
    rgba(245, 158, 11, 0.45) 54deg 72deg,
    transparent 72deg 90deg,
    rgba(251, 191, 36, 0.35) 90deg 108deg,
    transparent 108deg 126deg,
    rgba(245, 158, 11, 0.45) 126deg 144deg,
    transparent 144deg 162deg,
    rgba(251, 191, 36, 0.35) 162deg 180deg,
    transparent 180deg 198deg,
    rgba(245, 158, 11, 0.45) 198deg 216deg,
    transparent 216deg 234deg,
    rgba(251, 191, 36, 0.35) 234deg 252deg,
    transparent 252deg 270deg,
    rgba(245, 158, 11, 0.45) 270deg 288deg,
    transparent 288deg 306deg,
    rgba(251, 191, 36, 0.35) 306deg 324deg,
    transparent 324deg 342deg,
    rgba(245, 158, 11, 0.45) 342deg 360deg
  );
  opacity: 0;
  pointer-events: none;
  animation: chestRaySpin 16s linear infinite, chestRayFadeIn 0.8s ease-out 0.3s forwards;
  z-index: 7;
}

@keyframes chestRaySpin {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes chestRayFadeIn {
  0% { opacity: 0; transform: translateX(-50%) scale(0.4); }
  60% { opacity: 0.95; }
  100% { opacity: 0.75; transform: translateX(-50%) scale(1.15); }
}

/* Floating Golden Particles */
.chest-sparkle {
  position: absolute;
  color: #fde047;
  font-size: 1.3rem;
  pointer-events: none;
  animation: floatSparkle 2s ease-in-out infinite;
  text-shadow: 0 0 10px #f59e0b, 0 0 20px #eab308;
  z-index: 12;
}

@keyframes floatSparkle {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  50% { transform: translateY(-50px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-110px) scale(0.4); opacity: 0; }
}

/* Community Chest Emerging Card */
.chest-card-wrapper {
  position: relative;
  width: 360px;
  max-width: 90vw;
  background: linear-gradient(155deg, #0b2246 0%, #07152d 50%, #020817 100%);
  border: 3px solid #38bdf8;
  border-radius: 20px;
  padding: 24px 22px 20px;
  text-align: center;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 45px rgba(56, 189, 248, 0.4), inset 0 0 25px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: default;
  z-index: 20;
  opacity: 0;
  transform: translateY(60px) scale(0.25);
  animation: cardRiseFromChest 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards, cardHoverLevitate 3.5s ease-in-out infinite 1.3s;
}

@keyframes cardRiseFromChest {
  0% {
    transform: translateY(60px) scale(0.25);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateY(-80px) scale(1);
    opacity: 1;
  }
}

@keyframes cardHoverLevitate {
  0%, 100% {
    transform: translateY(-80px) scale(1);
  }
  50% {
    transform: translateY(-88px) scale(1.02);
  }
}

/* Ornate Victorian Gold Corner Filigrees on Cards */
.card-gold-corners {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 15px;
  pointer-events: none;
}
.card-gold-corners::before,
.card-gold-corners::after {
  content: '❖';
  position: absolute;
  color: #fbbf24;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
}
.card-gold-corners::before { top: 4px; left: 6px; }
.card-gold-corners::after { top: 4px; right: 6px; }

/* ==========================================================================
   2. CHANCE CARDS (فرصة): 3D CARD FLIP ANIMATION
   ========================================================================== */
.chance-flip-stage {
  position: relative;
  width: 370px;
  max-width: 92vw;
  min-height: 480px;
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chance-card-3d {
  width: 350px;
  max-width: 90vw;
  min-height: 440px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.chance-card-3d.flipped {
  transform: rotateY(180deg);
}

/* Card Faces */
.chance-face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.7);
}

/* Card Back (Uses generated authentic vintage chance card back!) */
.chance-face-back {
  background: #ea580c url('/assets/monopoly/chance_card_back.jpg') center/cover no-repeat;
  border: 3px solid #fdba74;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg);
}

.chance-face-back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Card Front Face */
.chance-face-front {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, #c2410c 0%, #9a3412 50%, #681f08 100%);
  border: 3px solid #fb923c;
  padding: 24px 22px 20px;
  text-align: center;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 45px rgba(249, 115, 22, 0.45), inset 0 0 25px rgba(249, 115, 22, 0.2);
  gap: 14px;
}

/* Giant Subtle Background Watermark '?' */
.card-watermark-question {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13rem;
  font-weight: 900;
  font-family: 'Times New Roman', serif;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* ==========================================================================
   3. SHARED CARD ELEMENTS (HEADERS, TITLES, TEXT, BADGES, BUTTONS)
   ========================================================================== */
.drawn-card-top-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 10px;
  position: relative;
  z-index: 2;
}

.card-chance-header {
  color: #ffedd5;
}

.card-chest-header {
  color: #e0f2fe;
}

.card-title-arabic {
  font-size: 1.28rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(251, 191, 36, 0.35);
  margin-top: 4px;
  position: relative;
  z-index: 2;
}

.drawn-card-text-body {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
}

/* Luminous Action Pill Badge */
.card-badge-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.badge-gain {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #dcfce7;
  border: 1px solid #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.4);
}

.badge-pay {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fee2e2;
  border: 1px solid #f87171;
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.4);
}

.badge-move {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #e0f2fe;
  border: 1px solid #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.badge-jail {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  color: #f3e8ff;
  border: 1px solid #c084fc;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.4);
}

/* Bottom Action Bar with "موافق" button and timer ring */
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.card-confirm-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 11px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.card-confirm-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.8);
  filter: brightness(1.1);
}

.card-confirm-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Circular Countdown Timer */
.card-timer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid #fbbf24;
  color: #fbbf24;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* Exit Animation */
.card-dismissing {
  animation: cardFadeOutExit 0.35s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes cardFadeOutExit {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.7) translateY(-30px); }
}

/* --- Local Player "YOU" Visual Identity Glow --- */
.player-card-item.is-me-player {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45), inset 0 0 8px rgba(59, 130, 246, 0.25) !important;
}

/* --- Official Auction UI Card --- */
.auction-active-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 158, 11, 0.35);
  color: #fff;
  text-align: center;
  animation: auctionPulse 2s infinite ease-in-out;
}

@keyframes auctionPulse {
  0%, 100% { border-color: #f59e0b; box-shadow: 0 0 16px rgba(245, 158, 11, 0.35); }
  50% { border-color: #fbbf24; box-shadow: 0 0 24px rgba(251, 191, 36, 0.6); }
}

.auction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 6px;
}

.auction-base-price {
  font-size: 0.8rem;
  color: #94a3b8;
}

.auction-current-bid {
  font-size: 0.9rem;
  color: #f8fafc;
  margin: 4px 0;
}

.auction-buttons-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.auction-winning-tag {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
}

.auction-passed-tag {
  background: rgba(100, 116, 139, 0.25);
  border: 1px solid #64748b;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 8px;
}

/* ==============================================================
   Realistic Two-Hands Handover Stage (Left & Right Hands)
   ============================================================== */
.hands-handover-stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

.hands-handover-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.15) 0%, rgba(2, 6, 23, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hands-handover-stage.active .hands-handover-backdrop {
  opacity: 1;
}

.hands-handover-content {
  position: relative;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transform: scale(0.65) translateY(35px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.45s ease;
}

.hands-handover-stage.active .hands-handover-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.hands-handover-stage.retracting .hands-handover-content {
  transform: scale(0.85) translateY(25px);
  opacity: 0;
  transition: transform 0.5s ease-in, opacity 0.5s ease-in;
}

/* Photorealistic Handshake Stage */
.tycoon-handshake-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: tycoonHandshakePump 1.8s ease-in-out infinite;
}

.tycoon-handshake-image {
  width: 640px;
  max-width: 92vw;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
  user-select: none;
  pointer-events: none;
}

/* Photorealistic Cash Handover Stage */
.tycoon-cash-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: tycoonCashGlide 2s ease-in-out infinite;
}

.tycoon-cash-image {
  width: 640px;
  max-width: 92vw;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
  user-select: none;
  pointer-events: none;
}

/* Golden Deal Burst Crown Badge */
.deal-crest-burst {
  position: absolute;
  top: -22px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef08a, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 6px 26px;
  border-radius: 50px;
  border: 2.5px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.9);
  animation: crestPulse 1.2s ease-in-out infinite;
  white-space: nowrap;
  z-index: 10;
}

@keyframes tycoonHandshakePump {
  0%, 100% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-8px) scale(1.02); }
  45% { transform: translateY(6px) scale(0.99); }
  70% { transform: translateY(-4px) scale(1.01); }
  85% { transform: translateY(2px) scale(1); }
}

@keyframes tycoonCashGlide {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.015); }
}

@keyframes crestPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.7)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 30px rgba(245, 158, 11, 1)); }
}

.handover-info-banner {
  margin-top: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s 0.2s ease, transform 0.5s 0.2s ease;
  z-index: 10;
}

.hands-handover-stage.active .handover-info-banner {
  opacity: 1;
  transform: translateY(0);
}

.hands-handover-stage.retracting .handover-info-banner {
  opacity: 0;
  transform: translateY(-15px);
}

.handover-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.94);
  border: 2px solid rgba(245, 158, 11, 0.75);
  border-radius: 40px;
  padding: 8px 28px;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(10px);
}

/* ==============================================================
   Payment Toast Notification
   ============================================================== */
.monopoly-toast-container {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.monopoly-payment-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 20px;
  padding: 6px 18px;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 12px rgba(245, 158, 11, 0.25);
  backdrop-filter: blur(8px);
}

.animate-toast-in {
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-toast-out {
  animation: toastSlideOut 0.4s ease-in forwards;
}

@keyframes toastSlideIn {
  0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-15px) scale(0.9); }
}

/* ==============================================================
   Trade Window & Negotiation Modal
   ============================================================== */
.monopoly-trade-modal {
  background: linear-gradient(145deg, #0b1329, #1e293b);
  border: 2px solid #3b82f6;
  border-radius: 16px;
  width: min(680px, 95vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(59, 130, 246, 0.3);
  color: #fff;
  direction: rtl;
}

.trade-modal-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trade-modal-header .deed-close-x-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.trade-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  align-items: stretch;
}

.trade-col {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trade-divider-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 2rem;
  color: #fbbf24;
}

.trade-props-box {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px;
  border-radius: 8px;
}

.trade-prop-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-right: 4px solid #fff;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
}

.trade-prop-check-label:hover {
  background: rgba(255, 255, 255, 0.12);
}

.trade-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.incoming-trade-box {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 20px;
  width: min(520px, 94vw);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(34, 197, 94, 0.35);
  color: #fff;
  direction: rtl;
}

.incoming-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

/* Rolling balance pulse */
.cash-gain-pulse {
  color: #34d399 !important;
  transform: scale(1.15);
  transition: transform 0.25s, color 0.25s;
}

.cash-loss-pulse {
  color: #f87171 !important;
  transform: scale(0.9);
  transition: transform 0.25s, color 0.25s;
}

/* --- Responsive Layout for Mobile / Discord Activity --- */
@media (max-width: 1024px) {
  .monopoly-arena {
    padding: 10px 10px 6px 10px;
    gap: 12px;
  }
  .monopoly-board-container {
    max-width: calc(100% - 370px);
  }
  .monopoly-sidebar {
    width: clamp(340px, 34vw, 420px);
  }
}

@media (max-width: 860px) {
  .monopoly-arena {
    flex-direction: column;
    overflow-y: auto;
    padding: 6px;
    gap: 8px;
  }
  .monopoly-board-container {
    width: min(540px, 95vw);
    height: min(540px, 95vw);
    max-width: 100%;
  }
  .monopoly-sidebar {
    width: min(540px, 95vw);
    height: auto;
    max-height: 240px;
    flex-direction: row;
  }
}

/* =========================================================
   3RB MONOPOLY - TOKEN SELECTION MODAL & PEWTER MINIS (Image 1)
   ========================================================= */
.monopoly-token-select-modal {
  width: 780px;
  max-width: 95vw;
  max-height: 94vh;
  margin: auto;
  background: radial-gradient(circle at 50% 15%, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(245, 158, 11, 0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

@keyframes modalScaleUp {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.token-modal-header {
  padding: 8px 16px 6px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.token-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.token-modal-subtitle {
  margin: 1px 0 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.token-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 12px;
  overflow: visible;
}

@media (max-width: 680px) {
  .token-selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 6px;
  }
}

.token-pick-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.22s ease;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.token-pick-card:hover:not(.taken):not(.selected-mine) {
  background: rgba(51, 65, 85, 0.9);
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(245, 158, 11, 0.35);
}

.token-pick-card.selected-mine {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.16);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.45), inset 0 0 12px rgba(34, 197, 94, 0.25);
}

.token-pick-card.taken {
  opacity: 0.55;
  filter: grayscale(0.5);
  cursor: not-allowed;
  border-color: rgba(239, 68, 68, 0.3);
}

.token-card-preview {
  width: 44px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.token-img-spotlight {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 60%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.token-modal-piece-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.75));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  user-select: none;
  pointer-events: none;
}

.token-card-pedestal-glow {
  position: absolute;
  bottom: 0px;
  width: 40px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--pedestal-color, #f59e0b) 0%, transparent 75%);
  opacity: 0.55;
  filter: blur(1.5px);
  z-index: 1;
  transition: all 0.25s ease;
}

.token-pick-card:hover:not(.taken) .token-card-preview {
  transform: translateY(-4px);
}

.token-pick-card:hover:not(.taken) .token-modal-piece-img {
  transform: scale(1.15);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

.token-pick-card:hover:not(.taken) .token-card-pedestal-glow {
  opacity: 0.85;
  transform: scale(1.15);
}

.token-card-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0px;
  line-height: 1.15;
}

.token-card-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 3px;
  line-height: 1.1;
}

.token-card-desc {
  font-size: 0.64rem;
  color: #64748b;
  margin-bottom: 4px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92%;
}


/* Real Pewter Token Pawn on Tiles & Sidebar */
.monopoly-token-pawn-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: auto;
}

.monopoly-token-disc-pedestal {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 5px var(--player-glow, #16a34a));
}

.monopoly-token-pewter-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.75)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
  user-select: none;
  pointer-events: none;
}

.player-pawn:hover .monopoly-token-pewter-img {
  transform: translateY(-4px) scale(1.18);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px var(--player-glow, #ffffff));
}

.token-card-btn {
  width: 100%;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-select-piece {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
}

.btn-select-piece:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.token-badge-status {
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

.badge-my-choice {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.badge-taken {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-modal-footer {
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.token-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.token-waiting-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
}

.token-waiting-status .pulsing-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulseDot 1.2s infinite ease-in-out;
}

.token-countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  font-size: 0.75rem;
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.token-countdown-chip .countdown-val {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.token-countdown-chip.urgent {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fecaca;
  animation: pulseDot 0.8s infinite alternate;
}

.token-countdown-chip.urgent .countdown-val {
  color: #f87171;
}

.token-countdown-chip.finalizing {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #a7f3d0;
  animation: pulseDot 1s infinite alternate;
}

.token-countdown-chip.finalizing .countdown-val {
  color: #34d399;
}

.token-all-ready-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ready-badge-text {
  color: #34d399;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}

.btn-start-now-glow {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #34d399;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-start-now-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.8);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-start-now-glow:active {
  transform: scale(0.97);
}

/* Player Roster Cards inside Token Modal */
.token-roster-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .token-roster-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.token-roster-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  min-width: 0;
}

.token-roster-pill.ready {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.token-roster-pill.pending {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.token-roster-pill.is-me {
  box-shadow: 0 0 0 1.5px #38bdf8, 0 4px 12px rgba(56, 189, 248, 0.25);
}

.roster-avatar-box {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.roster-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.roster-check-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.65rem;
  line-height: 1;
}

.roster-pending-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  border: 1px solid #0f172a;
}

.roster-info-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.roster-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.roster-player-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.roster-bot-tag {
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 4px;
  background: #475569;
  color: #cbd5e1;
  font-weight: 700;
}

.roster-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
}

.roster-token-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4ade80;
  font-weight: 600;
}

.roster-token-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.roster-waiting-tag {
  color: #f59e0b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pending-spinner {
  display: inline-block;
  animation: spinSlow 3s infinite linear;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================
   TOKEN SELECTION TIMEOUT VOTE MODAL
   ========================================================= */
.monopoly-token-vote-modal {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 580px;
  width: 90%;
  color: #f8fafc;
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.vote-modal-crest {
  font-size: 2.8rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.4));
}

.vote-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 8px;
}

.vote-modal-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.vote-roster-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  text-align: right;
}

.vote-roster-column {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}

.vote-roster-column.ready-col {
  border-color: rgba(52, 211, 153, 0.4);
}

.vote-roster-column.unready-col {
  border-color: rgba(245, 158, 11, 0.4);
}

.vote-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f8fafc;
}

.vote-pill-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vote-player-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.6);
  font-size: 0.78rem;
}

.vote-player-pill .pill-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.vote-player-pill .pill-name {
  font-weight: 700;
  color: #e2e8f0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote-player-pill .pill-token-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4ade80;
  font-size: 0.74rem;
}

.vote-player-pill .pill-token-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.vote-player-pill .pill-status-tag {
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 600;
}

.vote-empty-hint {
  font-size: 0.76rem;
  color: #64748b;
  padding: 4px;
  text-align: center;
}

.vote-tally-box {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.84rem;
  color: #e2e8f0;
}

.vote-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.btn-vote-choice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-vote-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-vote-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-vote-exit {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #f87171;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-vote-exit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-vote-choice.voted-active {
  box-shadow: 0 0 0 3px #fbbf24, 0 8px 24px rgba(0, 0, 0, 0.6);
  filter: brightness(1.1);
}

.voted-checkmark {
  font-size: 0.74rem;
  color: #fef08a;
}

.vote-footer-note {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* =========================================================
   DEBT & BANKRUPTCY RESOLUTION CONTROLS
   ========================================================= */
.debt-warning-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.35));
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  text-align: center;
  color: #fecaca;
}

.debt-warning-banner .debt-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 3px;
}

.debt-warning-banner .debt-desc {
  font-size: 0.82rem;
  color: #fca5a5;
}

.debt-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #7f1d1d !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%) !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6) !important;
  transform: translateY(-2px);
}

.bankrupt-banner-box {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bankrupt-banner-box .bankrupt-icon {
  font-size: 2.2rem;
}

.bankrupt-banner-box .bankrupt-msg {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.4;
}

/* =========================================================
   VICTORY / MATCH GAME OVER CELEBRATION MODAL
   ========================================================= */
.monopoly-victory-modal {
  width: 520px;
  max-width: 92vw;
  background: radial-gradient(circle at 50% 15%, #1e293b 0%, #090d16 100%);
  border: 3px solid #f59e0b;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(245, 158, 11, 0.4);
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.victory-crown-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  animation: bounceCrest 1.8s infinite ease-in-out;
}

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

.victory-title {
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.victory-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.victory-winner-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.winner-token-box {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.winner-details {
  text-align: right;
}

.winner-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
}

.winner-cash {
  font-size: 1.05rem;
  font-weight: 700;
  color: #22c55e;
}

.btn-victory-lobby {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 12px 32px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.btn-victory-lobby:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

.monopoly-waiting-start-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 9999px;
  color: #fde047;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  animation: pulseBadge 2.2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.02); opacity: 1; border-color: rgba(245, 158, 11, 0.9); }
}



