.monopoly-shell {
  --monopoly-paper: #f6f0dd;
  --monopoly-ink: #1b1814;
  --monopoly-accent: #d4af37;
  --monopoly-border: rgba(27, 24, 20, 0.18);
  --monopoly-green: #2f6f53;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(31, 41, 55, 0.96), rgba(12, 18, 28, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.monopoly-shell,
.monopoly-shell * {
  box-sizing: border-box;
}

.monopoly-marquee,
.monopoly-marquee-pills,
.monopoly-layout,
.monopoly-player-head,
.monopoly-player-stats,
.monopoly-player-properties,
.monopoly-log-item,
.monopoly-center-heading,
.monopoly-center-dice,
.monopoly-center-actions,
.monopoly-summary-grid {
  display: flex;
  gap: 12px;
}

.monopoly-marquee,
.monopoly-center-heading,
.monopoly-center-dice {
  align-items: center;
  justify-content: space-between;
}

.monopoly-marquee {
  flex-wrap: wrap;
}

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

.monopoly-brand {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  color: #f8e39e;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.monopoly-stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 227, 158, 0.28);
  background: rgba(248, 227, 158, 0.1);
  color: #f8e39e;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.monopoly-status-copy {
  max-width: 720px;
  color: rgba(255, 248, 228, 0.82);
  line-height: 1.55;
}

.monopoly-marquee-pills {
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.monopoly-pill,
.monopoly-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 227, 158, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8e4;
  font-size: 0.78rem;
  font-weight: 700;
}

.monopoly-sound-toggle {
  cursor: pointer;
}

.monopoly-layout {
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

/* Office tabs row — below board, stretches board-left to sidebar-right */
.monopoly-office-row {
  width: 100%;
}

.monopoly-office-row .monopoly-office-body {
  max-height: 340px;
}

.monopoly-board-wrap {
  flex: 1 1 720px;
  min-width: min(100%, 680px);
  max-width: 100%;
}

/* Scroll hint visible only on mobile */
.monopoly-board-scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(248, 227, 158, 0.12);
  border: 1px solid rgba(248, 227, 158, 0.2);
  color: rgba(255, 248, 228, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  width: fit-content;
}

.monopoly-board-scroll-hint svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Mobile scroll wrapper for board removed - it now perfectly fits via flex/scale */
.monopoly-board-outer {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.monopoly-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-template-rows: repeat(11, minmax(0, 1fr));
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  gap: clamp(1px, 0.4vw, 4px);
  padding: clamp(2px, 1vw, 8px);
  border-radius: clamp(8px, 2vw, 24px);
  background:
    radial-gradient(circle at center, rgba(255, 248, 228, 0.08) 0%, transparent 80%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(248, 227, 158, 0.18);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  min-width: 0;
}

.monopoly-board-center {
  grid-row: 2 / 11;
  grid-column: 2 / 11;
  padding: 10px;
}

.monopoly-center-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(47, 111, 83, 0.96), rgba(20, 57, 44, 0.98));
  border: 6px solid rgba(246, 240, 221, 0.84);
  box-shadow:
    inset 0 0 0 2px rgba(27, 24, 20, 0.18),
    inset 0 0 80px rgba(212, 175, 55, 0.06);
  color: var(--monopoly-paper);
}

.monopoly-center-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(246, 240, 221, 0.82);
}

.monopoly-center-turn {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  letter-spacing: 0.06em;
}

.monopoly-dice-pair {
  display: flex;
  gap: 10px;
}

@keyframes diceTumble2D {
  0% { transform: scale(0.6) rotate(0deg) translate(0, -20px); filter: blur(2px); opacity: 0; }
  30% { transform: scale(1.1) rotate(90deg) translate(0, 5px); filter: blur(1px); opacity: 1; }
  60% { transform: scale(0.9) rotate(180deg) translate(0, -5px); filter: blur(0px); }
  85% { transform: scale(1.05) rotate(270deg) translate(0, 2px); }
  100% { transform: scale(1) rotate(360deg) translate(0, 0); }
}

.monopoly-dice-pair.is-rolling .monopoly-die-face {
  animation: diceTumble2D 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.monopoly-dice-pair.is-rolling .monopoly-die-face:nth-child(2) {
  animation-delay: 0.05s;
}

.monopoly-dice-pair--hero .monopoly-die-face {
  width: clamp(28px, 4vw, 42px);
  height: clamp(28px, 4vw, 42px);
}

.monopoly-die-face {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(2px, 0.3vw, 4px);
  width: clamp(28px, 4vw, 42px);
  height: clamp(28px, 4vw, 42px);
  padding: clamp(4px, 0.8vw, 8px);
  border-radius: clamp(8px, 1.5vw, 16px);
  background: linear-gradient(135deg, #fffdf7, #e4ded0);
  box-shadow: 
    inset 0 -3px 0 rgba(27, 24, 20, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.7);
}

.monopoly-die-face.is-empty {
  place-items: center;
  color: rgba(27, 24, 20, 0.78);
}

.monopoly-die-face.is-empty svg {
  width: clamp(16px, 2vw, 24px);
  height: clamp(16px, 2vw, 24px);
}

.monopoly-die-dot {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 999px;
  background: transparent;
}

.monopoly-die-dot.is-visible {
  background: radial-gradient(circle at 30% 30%, #3a362f, #1b1814);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}

.monopoly-roll-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.monopoly-roll-total {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}

.monopoly-roll-copy {
  color: rgba(246, 240, 221, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.monopoly-spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(246, 240, 221, 0.11);
  border: 1px solid rgba(246, 240, 221, 0.18);
}

.monopoly-spotlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--spotlight), rgba(255, 255, 255, 0.82));
  color: #1c1917;
}

.monopoly-spotlight-icon svg {
  width: 26px;
  height: 26px;
}

.monopoly-spotlight-label {
  color: rgba(246, 240, 221, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.monopoly-spotlight-name {
  margin-top: 6px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  letter-spacing: 0.04em;
}

.monopoly-spotlight-copy {
  margin-top: 6px;
  line-height: 1.5;
  color: rgba(246, 240, 221, 0.9);
}

.monopoly-spotlight-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(246, 240, 221, 0.14);
  color: #fff8e4;
  font-size: 0.76rem;
  font-weight: 700;
}

.monopoly-center-actions {
  flex-wrap: wrap;
  margin-top: auto;
}

.monopoly-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.monopoly-action-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.monopoly-action-btn:not(:disabled):active {
  transform: translateY(0);
  transition-duration: 80ms;
}

.monopoly-action-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.monopoly-action-btn:focus-visible {
  outline: 2px solid rgba(248, 227, 158, 0.7);
  outline-offset: 2px;
}

.monopoly-action-btn.play {
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

.monopoly-action-btn.play:not(:disabled):hover {
  box-shadow: 0 16px 28px rgba(217, 119, 6, 0.34);
}

.monopoly-winner-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(248, 227, 158, 0.18);
  color: #fff8e4;
  font-weight: 700;
}

.monopoly-space {
  appearance: none;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1px, 0.3vw, 4px);
  padding: clamp(2px, 0.5vw, 8px);
  overflow: hidden;
  border-radius: clamp(4px, 1.2vw, 12px);
  background: linear-gradient(135deg, rgba(246, 240, 221, 0.92), rgba(226, 218, 195, 0.98));
  color: var(--monopoly-ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 4px 10px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.18s ease, transform 0.12s ease;
}

.monopoly-space.active {
  box-shadow: 0 0 0 clamp(2px, 0.4vw, 3px) rgba(217, 119, 6, 0.6), 0 8px 16px rgba(17, 24, 39, 0.3);
}

.monopoly-space.is-selected {
  box-shadow: 0 0 0 clamp(2px, 0.4vw, 3px) rgba(59, 130, 246, 0.5), 0 10px 20px rgba(17, 24, 39, 0.3);
}

.monopoly-space.is-owned {
  background: linear-gradient(180deg, rgba(235, 235, 255, 0.96), rgba(220, 215, 245, 0.98));
}

.monopoly-space--corner {
  padding: clamp(4px, 1vw, 10px);
}

.monopoly-space-accent {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: clamp(6px, 1.5vw, 14px);
  background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent), var(--space-accent);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.monopoly-space--left .monopoly-space-accent,
.monopoly-space--right .monopoly-space-accent {
  width: clamp(6px, 1.5vw, 14px);
  height: 100%;
  border-bottom: none;
}

.monopoly-space--bottom .monopoly-space-accent {
  inset: auto auto 0 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: none;
}

.monopoly-space--right .monopoly-space-accent {
  inset: 0 0 0 auto;
  border-left: 1px solid rgba(0,0,0,0.1);
}

.monopoly-space-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-top: clamp(8px, 2vw, 14px);
}

.monopoly-space-name {
  margin-top: clamp(6px, 1vw, 12px);
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(0.48em, 0.75vw, 0.8em);
  text-align: center;
  letter-spacing: 0em;
  line-height: 1.1;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.monopoly-space-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-family: "Oswald", sans-serif;
  font-size: clamp(0.8rem, 2vw, 2.5rem);
  font-weight: 900;
  color: rgba(220, 38, 38, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-align: center;
}

.monopoly-player-dice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.monopoly-space-owner {
  color: #854d0e;
  font-weight: 700;
  display: none; /* Hide explicit owner text on small grids, rely on borders/tokens */
}

.monopoly-space-ribbon {
  position: absolute;
  top: 10px;
  right: -28px;
  transform: rotate(38deg);
  min-width: 108px;
  padding: 4px 0;
  text-align: center;
  background: rgba(185, 28, 28, 0.9);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.monopoly-space-icon,
.monopoly-inline-icon,
.monopoly-log-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.monopoly-space-icon svg,
.monopoly-inline-icon svg,
.monopoly-log-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monopoly-space-icon {
  color: rgba(27, 24, 20, 0.72);
}

.monopoly-space-tokens {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  min-height: 20px;
}

.monopoly-token,
.monopoly-token-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
}

.monopoly-token {
  background: var(--token);
  color: #111827;
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.18);
}

.monopoly-token--large {
  width: 34px;
  height: 34px;
  font-size: 0.88rem;
}

.monopoly-token-slot {
  border: 1px dashed rgba(27, 24, 20, 0.14);
}

.monopoly-sidepanels {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.monopoly-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.monopoly-summary-card,
.monopoly-panel-card,
.monopoly-player-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(248, 227, 158, 0.12);
  background: rgba(8, 13, 21, 0.72);
}

.monopoly-summary-label {
  color: rgba(255, 248, 228, 0.66);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.monopoly-summary-value {
  margin-top: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  color: #fff8e4;
  letter-spacing: 0.05em;
}

.monopoly-player-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.monopoly-player-card.active {
  border-color: rgba(248, 227, 158, 0.38);
  box-shadow: inset 0 0 0 1px rgba(248, 227, 158, 0.18);
}

.monopoly-player-card.bankrupt {
  opacity: 0.62;
}

.monopoly-player-head {
  align-items: center;
}

.monopoly-player-name {
  color: #fff8e4;
  font-weight: 700;
}

.monopoly-player-meta {
  color: rgba(255, 248, 228, 0.64);
  font-size: 0.78rem;
}

.monopoly-player-stats {
  flex-wrap: wrap;
  margin-top: 10px;
  color: #fffdf7;
  font-size: 0.78rem;
}

.monopoly-player-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.monopoly-player-properties {
  flex-wrap: wrap;
  margin-top: 10px;
}

.monopoly-property-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 227, 158, 0.1);
  background: rgba(248, 227, 158, 0.12);
  color: #fff8e4;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.monopoly-property-chip:hover {
  background: rgba(248, 227, 158, 0.2);
  border-color: rgba(248, 227, 158, 0.28);
}

.monopoly-property-chip:focus-visible {
  outline: 2px solid rgba(248, 227, 158, 0.7);
  outline-offset: 2px;
}

.monopoly-property-chip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.22);
  color: #d1fae5;
  font-size: 0.62rem;
  font-weight: 700;
}

.monopoly-property-chip-badge.mortgage {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

.monopoly-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  margin-top: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 227, 158, 0.28) transparent;
}

.monopoly-log-list::-webkit-scrollbar {
  width: 5px;
}

.monopoly-log-list::-webkit-scrollbar-track {
  background: transparent;
}

.monopoly-log-list::-webkit-scrollbar-thumb {
  background: rgba(248, 227, 158, 0.28);
  border-radius: 999px;
}

.monopoly-log-item {
  align-items: flex-start;
  padding: 10px 0 0;
  border-top: 1px solid rgba(248, 227, 158, 0.08);
}

.monopoly-log-item:first-child {
  padding-top: 0;
  border-top: none;
}

.monopoly-log-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(248, 227, 158, 0.1);
  color: #f8e39e;
  flex: 0 0 auto;
}

.monopoly-log-copy {
  min-width: 0;
}

.monopoly-building-strip {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  min-height: 18px;
}

.monopoly-building {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #16a34a;
  color: #f0fdf4;
}

.monopoly-building--hotel {
  width: 20px;
  background: #b91c1c;
}

.monopoly-building svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.monopoly-token-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes tokenPulse {
  0%, 100% { box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25), 0 0 0 0 var(--token); }
  50% { box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25), 0 0 0 5px rgba(255,255,255,0.12); }
}

.monopoly-token-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--token);
  color: #111827;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
  pointer-events: auto;
  cursor: pointer;
  transition: none;
}

.monopoly-token-marker.is-active-player {
  animation: tokenPulse 1.6s ease-in-out infinite;
}

.monopoly-token-marker.is-live {
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Player Cards — colourful ──────────────────────────────── */
.monopoly-player-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--player-token, #d4af37) 30%, transparent);
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--player-token, #d4af37) 18%, transparent) 0%, transparent 55%),
    rgba(8, 13, 21, 0.82);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.monopoly-player-card.active {
  border-color: color-mix(in srgb, var(--player-token, #d4af37) 55%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--player-token, #d4af37) 22%, transparent) inset,
    0 6px 24px -8px color-mix(in srgb, var(--player-token, #d4af37) 35%, transparent);
}

/* Left accent stripe */
.monopoly-player-card-accent {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  border-radius: 18px 0 0 18px;
  background: var(--player-token, #d4af37);
  opacity: 0.7;
}

.monopoly-player-card.active .monopoly-player-card-accent {
  opacity: 1;
}

/* Cash balance bar */
.monopoly-player-cashbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--player-token, #d4af37) 12%, rgba(0,0,0,0.4));
  border: 1px solid color-mix(in srgb, var(--player-token, #d4af37) 22%, transparent);
}

.monopoly-player-cashbar-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--player-token, #d4af37) 70%, rgba(255,248,228,0.6));
  font-weight: 700;
}

.monopoly-player-cashbar-value {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--player-token, #d4af37) 80%, #fff8e4);
  letter-spacing: 0.04em;
}

.monopoly-you-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--player-token, #d4af37) 22%, transparent);
  color: color-mix(in srgb, var(--player-token, #d4af37) 90%, #fff8e4);
  border: 1px solid color-mix(in srgb, var(--player-token, #d4af37) 30%, transparent);
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Office Card (tabbed container) ─────────────────────────── */
.monopoly-office-card {
  border-radius: 18px;
  border: 1px solid rgba(248, 227, 158, 0.14);
  background: rgba(8, 13, 21, 0.72);
  overflow: visible;
}

.monopoly-office-tabs {
  display: flex;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(248, 227, 158, 0.1);
  overflow: hidden;
}

.monopoly-office-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 248, 228, 0.52);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.monopoly-office-tab:hover {
  color: rgba(255, 248, 228, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.monopoly-office-tab.is-active {
  color: #f8e39e;
  border-bottom-color: #f8e39e;
  background: rgba(248, 227, 158, 0.06);
}

.monopoly-office-tab:focus-visible {
  outline: 2px solid rgba(248, 227, 158, 0.7);
  outline-offset: -2px;
}

.monopoly-office-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(248, 227, 158, 0.14);
  color: #f8e39e;
  line-height: 1;
}

.monopoly-office-tab-badge.is-live {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  animation: monopolyBadgePulse 1.4s ease-in-out infinite;
}

@keyframes monopolyBadgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.monopoly-office-body {
  padding: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.monopoly-office-body::-webkit-scrollbar {
  width: 5px;
}

.monopoly-office-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}

.monopoly-office-body::-webkit-scrollbar-track {
  background: transparent;
}

.monopoly-office-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Live trade banner inside trade tab */
.monopoly-trade-live-banner {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(239, 68, 68, 0.16) 0%, transparent 55%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.24);
}

.monopoly-trade-live-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(252, 165, 165, 0.82);
}

/* ── Property Office rows ────────────────────────────────────── */
.monopoly-property-office-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(248, 227, 158, 0.1);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--prop-color, #94a3b8) 14%, transparent),
      rgba(15, 23, 42, 0.55));
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.monopoly-property-office-row:hover {
  border-color: color-mix(in srgb, var(--prop-color, #94a3b8) 42%, transparent);
  box-shadow: 0 4px 18px -6px color-mix(in srgb, var(--prop-color, #94a3b8) 40%, transparent);
}

/* colour swatch — left accent bar */
.monopoly-property-office-color {
  width: 5px;
  align-self: stretch;
  border-radius: 4px;
  flex: 0 0 5px;
  background: var(--prop-color, #94a3b8);
  box-shadow: 0 0 8px color-mix(in srgb, var(--prop-color, #94a3b8) 70%, transparent);
}

/* ── End new styles ──────────────────────────────────────────── */

.monopoly-trade-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.monopoly-trade-form.is-disabled {
  opacity: 0.65;
}

.monopoly-trade-form label {
  display: grid;
  gap: 6px;
  color: rgba(255, 248, 228, 0.82);
  font-size: 0.76rem;
}

.monopoly-trade-form select,
.monopoly-trade-form input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 227, 158, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8e4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.monopoly-trade-form select:focus,
.monopoly-trade-form select:focus-visible,
.monopoly-trade-form input:focus,
.monopoly-trade-form input:focus-visible {
  outline: none;
  border-color: rgba(248, 227, 158, 0.5);
  box-shadow: 0 0 0 3px rgba(248, 227, 158, 0.1);
}

.monopoly-trade-live {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.monopoly-trade-title {
  color: #fff8e4;
  font-weight: 700;
}

.monopoly-trade-copy {
  color: rgba(255, 248, 228, 0.76);
  line-height: 1.5;
}

.monopoly-trade-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.monopoly-auction-card {
  border-color: rgba(249, 115, 22, 0.2);
}

.monopoly-auction-summary,
.monopoly-property-office-list,
.monopoly-property-office-actions {
  display: grid;
  gap: 10px;
}

/* property office list inside the tabbed office body */
.monopoly-office-body .monopoly-property-office-list {
  margin-top: 0;
}

.monopoly-auction-summary {
  margin-top: 12px;
}

.monopoly-auction-title,
.monopoly-property-office-name {
  color: #fff8e4;
  font-weight: 700;
}

.monopoly-auction-copy,
.monopoly-property-office-copy,
.monopoly-property-office-meta {
  color: rgba(255, 248, 228, 0.74);
  line-height: 1.5;
}

.monopoly-auction-roster {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.monopoly-auction-player {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 248, 228, 0.82);
}

.monopoly-auction-player.leading {
  border: 1px solid rgba(248, 227, 158, 0.24);
  background: rgba(248, 227, 158, 0.1);
}

.monopoly-auction-player.passed {
  opacity: 0.55;
}

.monopoly-auction-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.monopoly-auction-actions label {
  display: grid;
  gap: 6px;
  color: rgba(255, 248, 228, 0.82);
  font-size: 0.76rem;
}

.monopoly-auction-actions input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 227, 158, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8e4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.monopoly-auction-actions input:focus,
.monopoly-auction-actions input:focus-visible {
  outline: none;
  border-color: rgba(248, 227, 158, 0.5);
  box-shadow: 0 0 0 3px rgba(248, 227, 158, 0.1);
}

.monopoly-auction-buttons,
.monopoly-property-office-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.monopoly-property-office-list {
  margin-top: 12px;
}

.monopoly-property-office-actions {
  grid-auto-flow: row;
  justify-items: end;
}

.monopoly-deed-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
}

.monopoly-deed-popover {
  width: min(680px, calc(100vw - 32px));
  max-height: min(calc(100vh - 40px), 85dvh);
  overflow: auto;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(248, 227, 158, 0.16);
  background: linear-gradient(180deg, rgba(7, 12, 19, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.monopoly-deed-close {
  margin-left: auto;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 227, 158, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8e4;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.monopoly-deed-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(248, 227, 158, 0.3);
}

.monopoly-deed-close:focus-visible {
  outline: 2px solid rgba(248, 227, 158, 0.7);
  outline-offset: 2px;
}

.monopoly-deed-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--deed), rgba(255, 255, 255, 0.84));
  color: #111827;
}

.monopoly-deed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.monopoly-deed-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.monopoly-deed-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.monopoly-deed-title {
  margin-top: 6px;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.monopoly-deed-meta {
  margin-top: 6px;
  line-height: 1.45;
}

.monopoly-deed-status-row,
.monopoly-deed-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.monopoly-deed-warning {
  color: #fecaca;
  font-size: 0.78rem;
  font-weight: 700;
}

.monopoly-deed-buildings {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  color: #fff8e4;
}

.monopoly-deed-building-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.monopoly-rent-ladder {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.monopoly-rent-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 248, 228, 0.82);
}

.monopoly-rent-row.active {
  border: 1px solid rgba(248, 227, 158, 0.28);
  background: rgba(248, 227, 158, 0.12);
  color: #fff8e4;
}

@media (max-width: 1350px) {
  .monopoly-layout {
    flex-direction: column;
  }

  .monopoly-board-wrap,
  .monopoly-sidepanels {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monopoly-dice-pair.is-rolling .monopoly-die-face { animation: none; }
  .monopoly-token-marker.is-active-player { animation: none; }
  .monopoly-token-marker.is-live { transition: none; }
  .monopoly-action-btn,
  .monopoly-deed-close,
  .monopoly-property-chip { transition: none; }
}

@media (max-width: 860px) {
  .monopoly-shell {
    padding: 14px;
  }

  .monopoly-board {
    gap: 4px;
    padding: 6px;
  }

  .monopoly-space {
    padding: 6px;
    border-radius: 12px;
  }

  .monopoly-space-name {
    font-size: 0.7rem;
  }

  .monopoly-space-meta,
  .monopoly-space-owner,
  .monopoly-space-index {
    font-size: 0.58rem;
  }

  .monopoly-summary-grid {
    grid-template-columns: 1fr;
  }

  .monopoly-center-heading,
  .monopoly-center-dice,
  .monopoly-spotlight {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .monopoly-spotlight {
    display: flex;
  }

  .monopoly-deed-head {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile board: fit all spaces in-view while preserving tappable labels ── */
@media (max-width: 700px) {
  .monopoly-shell {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .monopoly-board-scroll-hint {
    display: flex;
  }

  .monopoly-layout {
    gap: 10px;
    width: 100%;
    overflow: hidden;
  }

  .monopoly-board-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
    overflow: hidden;
  }

  .monopoly-sidepanels,
  .monopoly-office-row,
  .monopoly-office-card,
  .monopoly-panel-card,
  .monopoly-player-card,
  .monopoly-summary-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .monopoly-player-grid,
  .monopoly-log-list,
  .monopoly-player-properties {
    min-width: 0;
    max-width: 100%;
  }

  .monopoly-property-chip {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .monopoly-board-outer {
    overflow: hidden;
  }

  .monopoly-board {
    width: min(100%, calc(100vw - 28px));
    min-width: 0;
    max-width: calc(100vw - 28px);
    aspect-ratio: 1 / 1;
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
  }

  .monopoly-space {
    gap: 1px;
    min-width: 0;
    min-height: 0;
    padding: 3px;
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  .monopoly-space-name {
    display: -webkit-box;
    margin-top: 7px;
    font-size: clamp(0.38rem, 1.45vw, 0.56rem);
    line-height: 1;
    letter-spacing: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .monopoly-space-meta,
  .monopoly-space-owner,
  .monopoly-space-index {
    font-size: 0.52rem;
  }

  .monopoly-space-accent {
    height: 5px;
  }

  .monopoly-space--left .monopoly-space-accent,
  .monopoly-space--right .monopoly-space-accent {
    width: 5px;
    height: 100%;
  }

  .monopoly-space--left .monopoly-space-name,
  .monopoly-space--right .monopoly-space-name {
    margin-top: 0;
    margin-left: 5px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .monopoly-space--corner {
    padding: 4px;
  }

  .monopoly-space--corner .monopoly-space-name {
    margin-top: 2px;
    font-size: clamp(0.42rem, 1.55vw, 0.58rem);
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .monopoly-building-strip {
    gap: 1px;
    min-height: 8px;
  }

  .monopoly-building {
    width: 8px;
    height: 8px;
    border-radius: 2px;
  }

  .monopoly-building svg {
    width: 6px;
    height: 6px;
  }

  .monopoly-building--hotel {
    width: 10px;
  }

  .monopoly-token-marker {
    width: 18px;
    height: 18px;
    border-width: 1px;
    font-size: 0.54rem;
  }

  .monopoly-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monopoly-board-center {
    padding: 4px;
  }

  .monopoly-center-card {
    padding: 10px;
    border-width: 3px;
    border-radius: 16px;
    overflow: hidden;
  }

  .monopoly-center-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .monopoly-center-turn {
    font-size: 1rem;
    line-height: 1.1;
  }

  .monopoly-center-heading,
  .monopoly-center-dice {
    gap: 7px;
  }

  .monopoly-dice-pair,
  .monopoly-player-dice {
    gap: 5px;
  }

  .monopoly-die-face,
  .monopoly-dice-pair--hero .monopoly-die-face {
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 8px;
  }

  .monopoly-roll-total {
    font-size: 1.3rem;
  }

  .monopoly-roll-copy {
    font-size: 0.56rem;
  }

  .monopoly-spotlight {
    margin-top: 8px;
    padding: 9px;
    gap: 8px;
    border-radius: 13px;
  }

  .monopoly-spotlight-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .monopoly-spotlight-icon svg {
    width: 18px;
    height: 18px;
  }

  .monopoly-spotlight-label {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .monopoly-spotlight-name {
    margin-top: 3px;
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .monopoly-spotlight-copy {
    display: none;
  }

  .monopoly-spotlight-badge {
    margin-top: 5px;
    padding: 4px 7px;
    font-size: 0.58rem;
  }
}

@media (max-width: 480px) {
  .monopoly-shell {
    gap: 10px;
    padding: 8px;
    border-radius: 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .monopoly-brand {
    font-size: 1.35rem;
  }

  .monopoly-status-copy {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .monopoly-marquee,
  .monopoly-marquee-pills {
    gap: 8px;
  }

  .monopoly-pill,
  .monopoly-sound-toggle {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .monopoly-board {
    width: min(100%, calc(100vw - 16px));
    min-width: 0;
    max-width: calc(100vw - 16px);
    gap: 1px;
    padding: 3px;
  }

  .monopoly-space {
    padding: 2px;
    border-radius: 5px;
  }

  .monopoly-space-name {
    display: -webkit-box;
    margin-top: 6px;
    font-size: clamp(0.34rem, 1.38vw, 0.48rem);
    line-height: 0.98;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .monopoly-space--corner .monopoly-space-name {
    display: -webkit-box;
    font-size: clamp(0.38rem, 1.45vw, 0.52rem);
  }

  .monopoly-space-meta,
  .monopoly-space-owner,
  .monopoly-space-index {
    display: none;
  }

  .monopoly-space-tokens {
    min-height: 10px;
  }

  .monopoly-token-marker {
    width: 15px;
    height: 15px;
    font-size: 0.48rem;
  }

  .monopoly-board-center {
    padding: 2px;
  }

  .monopoly-center-card {
    padding: 7px;
    border-width: 2px;
    border-radius: 12px;
  }

  .monopoly-panel-card,
  .monopoly-player-card,
  .monopoly-summary-card {
    padding: 10px;
    border-radius: 14px;
  }

  .monopoly-deed-popover {
    border-radius: 18px;
    padding: 14px;
  }

  .monopoly-center-actions {
    gap: 6px;
  }

  .monopoly-center-actions > * {
    flex: 1 1 100%;
    min-height: 36px;
    justify-content: center;
    padding: 7px 9px;
    font-size: 0.72rem;
  }
}
