@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap");
:root {
  font-size: 16px;
  color-scheme: dark;
  --bg: #130f1d;
  --panel: #29203f;
  --muted: #a698c8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #edeaf3;
  font-family: Cairo, "Segoe UI", sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
button,
input,
select {
  font: inherit;
}
button {
  color: #fff;
  cursor: pointer;
  padding: 0.65em 1em;
  background: linear-gradient(to top left, #6647e0, #8c47e0);
  border: 0;
  border-radius: 4px;
  line-height: 1.1;
  transition:
    filter 0.15s,
    transform 0.15s;
}
button:hover {
  filter: brightness(1.12);
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.small {
  font-size: 0.8rem;
  padding: 0.55em 0.7em;
}
.muted {
  background: #1e182e;
}
.danger {
  background: linear-gradient(35deg, #d95753, #d97953);
}
.full {
  width: 100%;
}
input,
select {
  background: #34294f;
  color: inherit;
  border: 0;
  border-radius: 5px;
  padding: 0.65em;
  min-width: 0;
}
input::placeholder {
  color: #a698c8;
}
[hidden] {
  display: none !important;
}
.lobby {
  display: flex;
  min-height: 100vh;
  align-items: center;
  flex-direction: column;
  padding: 20px 16px 48px;
  gap: 32px;
}
.lobby-topbar {
  width: min(1040px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lobby-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
}
.lobby h1 {
  font-size: 64px;
  line-height: 1;
  margin: 0;
}
.lobby h1 span,
.wordmark span {
  color: #b1b2f2;
  margin-inline-start: 5px;
}
.lobby-hero p {
  color: #a698c8;
  margin-bottom: 24px;
}
.floating-die {
  font: 110px Arial;
  animation: float 4s ease-in-out infinite;
  text-shadow:
    3px 8px 0 #aaa,
    0 12px 24px #000;
}
.lobby-hero > input,
.lobby-hero > .big {
  width: 260px;
}
.lobby-secondary {
  display: flex;
  gap: 8px;
  width: 260px;
}
.lobby-secondary button {
  flex: 1;
  font-size: 13px;
  padding: 10px 8px;
}
.big {
  font-size: 22px;
  padding: 18px;
}
.join {
  display: flex;
  gap: 8px;
  width: 260px;
}
.join input {
  flex: 1;
}
@keyframes float {
  50% {
    transform: translateY(-10px) rotate(12deg);
  }
}
#game {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  grid-template-areas: "left board right";
  align-items: start;
  gap: 16px;
  padding: 16px;
  width: 100%;
  min-width: 0;
  margin: auto 0;
  box-shadow: 0 0 32px #000b;
}
.left-panel,
.right-panel {
  direction: rtl;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.left-panel {
  grid-area: left;
}
.right-panel {
  grid-area: right;
  gap: 16px;
}
.board-wrap {
  grid-area: board;
  position: relative;
  transform-origin: 0 0;
  width: 820px;
  height: 820px;
}
.board {
  direction: ltr;
  position: absolute;
  top: 0;
  left: 0;
  width: 820px;
  height: 820px;
  display: grid;
  grid-template-columns: 104px repeat(9, 68px) 104px;
  grid-template-rows: 104px repeat(9, 68px) 104px;
  transform-origin: 0 0;
}
.center {
  grid-column: 2/11;
  grid-row: 2/11;
  background: var(--bg);
  position: relative;
  z-index: 1;
  border-radius: 8px;
  box-shadow: 0 0 0 8px var(--bg);
  text-align: center;
}
.timer {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #f3b84e;
  border-radius: 24px;
  background: #302248;
  font: 600 14px Arial;
  padding: 10px 14px;
}
.play-area {
  position: absolute;
  inset: 87px 10px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.dice-row {
  direction: ltr;
  display: flex;
  position: relative;
  z-index: 12;
  margin: 0 0 15px;
  cursor: pointer;
}
.z8cEagq4,
.Zbc4gzb- {
  will-change: transform;
}
.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}
.buttons button {
  font-size: 14px;
}
#turnText {
  font-size: 13px;
  margin: 12px 0;
  min-height: 24px;
}
#turnText:empty {
  display: none;
}
.log {
  direction: rtl;
  margin-top: 12px;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff26 transparent;
  padding-bottom: 80px;
  mask-image: linear-gradient(#000 55%, transparent);
  font-size: 11px;
  color: #a99fc2;
  line-height: 1.5;
}
.log::-webkit-scrollbar {
  width: 5px;
}
.log::-webkit-scrollbar-track {
  background: transparent;
}
.log::-webkit-scrollbar-thumb {
  background: #ffffff24;
  border-radius: 999px;
}
.log::-webkit-scrollbar-thumb:hover {
  background: #ffffff44;
}
.log p {
  margin: 0;
  padding: 4px 8px;
  overflow-wrap: break-word;
}
.log p.log-enter {
  animation: log-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.log p:first-child,
.log p.log-highlight {
  color: #f3effb;
  font-weight: 700;
}
.log p.log-room-joined {
  color: #7d7496;
  font-weight: 400;
}
.log-player,
.log-cell {
  display: inline;
  vertical-align: baseline;
}
.log-player-name {
  font-weight: 600;
  color: #d6ceea;
}
.log p:first-child .log-player-name {
  color: #fff;
  font-weight: 700;
}
.log .pawn {
  display: inline-block;
  width: 14px;
  height: 14px;
  transform: none;
  vertical-align: -3px;
  margin-inline-end: 4px;
}
.log img {
  width: 13px;
  vertical-align: -2px;
}
.log .log-flag {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -3px;
  margin-inline-end: 4px;
}
.log .log-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  object-fit: contain;
  vertical-align: -2px;
  margin-inline-end: 3px;
}
@keyframes log-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.tile {
  direction: rtl;
  position: relative;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #262a4c, #2f264c);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  min-width: 0;
}
.tile:hover {
  box-shadow: inset 0 0 0 60px #ffffff09;
}
.tile .tile-inner {
  position: relative;
  width: 68px;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.tile.corner .tile-inner {
  width: 104px;
  height: 104px;
}
.tile .blur-flag {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.175;
  border-radius: inherit;
}
.tile .blur-flag img {
  position: absolute;
  width: 125%;
  height: 125%;
  object-fit: cover;
  left: -12.5%;
  top: -12.5%;
  filter: blur(4px);
}
.flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  left: 18px;
  z-index: 3;
}
.tile.top .flag {
  bottom: -16px;
}
.tile.bottom .flag {
  top: -16px;
}
.tile b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 0 8px #262a4c;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 0 1px;
}
.tile.top b {
  position: absolute;
  bottom: 21px;
}
.tile.bottom b {
  position: absolute;
  top: 24px;
}
.price-zone {
  position: absolute;
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}
.top .price-zone {
  top: 0;
}
.bottom .price-zone {
  bottom: 0;
}
.price {
  font:
    600 12px "Segoe UI",
    Arial;
  background: #fff3;
  border-radius: 4px;
  padding: 3px 7px;
}
.price:after {
  content: "$";
  opacity: 0.75;
  margin-left: 2px;
}
.owner {
  position: absolute;
  inset: 0;
  background: radial-gradient(#ffffff90, transparent), var(--owner);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171321;
  font-size: 19px;
}
.tile.right .tile-inner {
  position: absolute;
  left: 18px;
  top: -18px;
  transform: rotate(-90deg);
}
.tile.left .tile-inner {
  position: absolute;
  left: 18px;
  top: -18px;
  transform: rotate(90deg);
}
.tile.right .tile-inner,
.tile.left .tile-inner {
  height: 104px;
  width: 68px;
}
.tile.right .flag,
.tile.left .flag {
  top: -16px;
}
.tile.right b,
.tile.left b {
  position: absolute;
  top: 24px;
}
.tile.right .price-zone,
.tile.left .price-zone {
  bottom: 0;
}
.tile .special-icon {
  position: absolute;
  top: 28px;
  height: 38px;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  filter: drop-shadow(0 2px 4px #0003);
}
.special-icon img {
  height: 38px;
  max-width: 40px;
  object-fit: contain;
}
.tile.top.special b {
  top: 13px;
  bottom: auto;
  font-size: 13px;
  color: #d6a868;
}
.tile.top.special .special-icon {
  top: 48px;
}
.tile.bottom.special b {
  top: auto;
  bottom: 13px;
  font-size: 13px;
  color: #d391ab;
}
.tile.bottom.special .special-icon {
  top: 10px;
}
.tile.left.special .tile-inner,
.tile.right.special .tile-inner {
  transform: none;
  inset: 0;
  width: 104px;
  height: 68px;
  flex-direction: row;
}
.tile.left.special .special-icon,
.tile.right.special .special-icon {
  left: 35px;
  top: 14px;
  width: 40px;
}
.tile.left.special b,
.tile.right.special b {
  font-size: 13px;
  writing-mode: vertical-rl;
  width: 20px;
  left: 11px;
  top: 8px;
  color: #c995ae;
}
.tile.right.special .tile-inner {
  transform: rotate(180deg);
}
.tile.corner b {
  top: auto;
  bottom: 14px;
  position: absolute;
  font-size: 14px;
}
.tile.corner .special-icon {
  top: 15px;
}
.tile.start .special-icon {
  color: #b0de2d;
  font: bold 34px Arial;
}
.tile.start b {
  top: 13px;
  bottom: auto;
  color: #b0de2d;
  font-size: 20px;
}
.tile.start .special-icon {
  top: 40px;
}
.prison-bars {
  font-size: 44px;
  color: #bdd2d9;
  letter-spacing: -7px;
}
.tile.utility {
  background: radial-gradient(#408597, #262a4c);
}
.tile.airport {
  background: radial-gradient(#4a6f80, #262a4c);
}
.pawn-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
.board-pawn {
  position: absolute;
  width: 32px;
  height: 32px;
  transform-origin: center;
  will-change: transform;
}
.pawn {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 32px;
  color: var(--pawn);
  flex-shrink: 0;
  line-height: 0;
}
.pawn svg {
  width: 100%;
  height: 100%;
}
.board-pawn .pawn {
  filter: drop-shadow(0 2px 3px #0005);
}
.board-pawn.active .pawn:before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  box-shadow: 0 0 14px var(--pawn);
  opacity: 0.2;
  animation: glow 1.5s infinite alternate;
}
@keyframes glow {
  to {
    opacity: 0.6;
  }
}
.landed {
  animation: landed 0.4s;
}
@keyframes landed {
  50% {
    filter: brightness(1.4);
  }
}
.box {
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
}
.box h3 {
  font-size: 14px;
  color: #b4a5ce;
  font-weight: 700;
  margin: 0;
  padding: 16px;
  text-align: center;
}
.under {
  direction: ltr;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wordmark {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.icon {
  background: transparent;
  color: #9c90ad;
  font: 24px Arial;
  padding: 0 5px;
}
.share {
  padding: 0 16px 16px;
  margin-bottom: 16px;
}
.share > div {
  display: flex;
  gap: 8px;
  direction: ltr;
  margin-bottom: 8px;
}
.share code {
  flex: 1;
  background: #130f1d;
  border-radius: 5px;
  padding: 10px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 12px Arial;
}
.ad-space {
  flex: 1;
  min-height: 160px;
}
.chat-box {
  display: flex;
  flex-direction: column;
  height: 356px;
  margin-top: 16px;
}
.chatlog {
  flex: 1;
  overflow: auto;
  min-height: 100px;
  padding: 16px;
  font-size: 12px;
}
.chatlog:empty:after {
  content: "💬 لا توجد رسائل بعد";
  display: block;
  text-align: center;
  color: #847796;
}
.chatlog p {
  padding: 8px;
  background: #49366d;
  border-radius: 6px;
  margin: 5px 0;
}
.chatlog strong {
  color: #baa7e2;
  font-size: 10px;
}
.chat-box form {
  display: flex;
  border-top: 1px solid #34294f;
  padding: 16px;
  gap: 8px;
}
.chat-box form input {
  min-width: 0;
  flex: 1;
  border-radius: 32px;
  font-size: 12px;
  background: #1e182e;
  padding: 10px 16px;
}
.chat-box form button {
  border-radius: 50%;
  width: 40px;
  padding: 0;
  background: #1e182e;
  color: #a698c8;
}
.players {
  padding: 16px;
  flex-shrink: 0;
}
.player {
  display: flex;
  direction: ltr;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  position: relative;
  border-radius: 4px;
  min-height: 54px;
}
.player.active {
  background: #20192f;
}
.player.active:before {
  content: "";
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--pawn);
}
.player .pawn {
  transform: rotate(-90deg);
}
.player .info {
  font-size: 13px;
  flex: 1;
  min-width: 0;
}
.player .cash {
  font: 600 14px Arial;
}
.player .host {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-inline-start: 4px;
}
.player .host img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.player.bankrupt {
  opacity: 0.4;
}
.right-panel > .danger {
  align-self: flex-end;
}
.box label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 16px;
  padding: 13px 0;
  border-top: 1px solid #ffffff0b;
}
.box label select {
  font-size: 13px;
  padding: 5px 10px;
  background: #34294f;
}
.box input[type="checkbox"] {
  appearance: none;
  width: 42px;
  height: 23px;
  border-radius: 20px;
  background: #41374e;
  position: relative;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.box input[type="checkbox"]:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3.5px;
  left: 4px;
  border-radius: 50%;
  background: #93899f;
  transition: 0.2s;
}
.box input[type="checkbox"]:checked {
  background: #7046d5;
}
.box input[type="checkbox"]:checked:before {
  left: 22px;
  background: #bda9eb;
}
#bot {
  width: calc(100% - 32px);
  margin: 0 16px 12px;
}
hr {
  border: 0;
  border-top: 1px solid #ffffff0b;
  margin: 16px;
}
#properties {
  padding: 0 12px 12px;
  max-height: 300px;
  overflow: auto;
}
.property-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 2px;
  border-top: 1px solid #ffffff17;
  font-size: 13px;
  cursor: pointer;
}
.property-row img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.property-row:hover {
  background: #ffffff09;
}
#tradeBox h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#trades {
  padding: 0 12px 12px;
  font-size: 12px;
}
.trade {
  padding: 12px;
  background: #34294f;
  margin: 4px;
  border-radius: 5px;
}
.trade button {
  margin: 4px;
  font-size: 12px;
}
#modal {
  position: fixed;
  inset: 0;
  background: #090611bb;
  z-index: 100;
  display: grid;
  place-items: center;
  backdrop-filter: blur(3px);
}
.dialog {
  position: relative;
  width: min(420px, 90vw);
  background: #262a4c;
  border-radius: 8px;
  box-shadow: 0 0 64px #0008;
  padding: 20px;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
}
.dialog .close {
  position: absolute;
  left: 6px;
  top: 6px;
  background: transparent;
  color: #b8a8cf;
}
.dialog h2 {
  font-size: 24px;
}
.rent-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.rent-table td {
  text-align: start;
  padding: 8px;
}
.rent-table td:last-child {
  text-align: end;
}
.rent-table tr.current {
  background: #fff2;
}
.rent-table tr:nth-child(even) {
  background: #ffffff08;
}
.detail-color {
  height: 8px;
  border-radius: 3px;
}
.dialog .buttons {
  margin-top: 15px;
}
.dialog p {
  font-size: 13px;
}
.trade-form {
  display: grid;
  gap: 14px;
  text-align: start;
}
.trade-form label {
  font-size: 13px;
}
.trade-form select,
.trade-form input {
  width: 100%;
  margin-top: 6px;
}
.checklist {
  max-height: 130px;
  overflow: auto;
  background: #1c203b;
  padding: 8px;
  border-radius: 4px;
}
.checklist label {
  display: block;
}
.checklist input {
  width: auto;
  margin: 0 5px;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 20px;
  background: #493467;
  border-radius: 8px;
  padding: 12px 20px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
}
#chatFloat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 32px;
  z-index: 30;
  box-shadow: 0 8px 16px #0004;
}
.chat-floating {
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 35;
  width: min(500px, calc(100vw - 32px));
  box-shadow: 0 8px 40px #0008;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
/* Keep the inner flag discs above the board's dark inset. */
.tile {
  z-index: 2;
}
.tile.top.airport b {
  top: 48px;
  bottom: auto;
  font-size: 12px;
  color: #fff;
}
.tile.top.airport .special-icon {
  top: 74px;
  height: 25px;
}
.tile.top.airport svg {
  height: 24px;
}
.tile.bottom.airport b,
.tile.bottom.utility b {
  top: 40px;
  bottom: auto;
  color: #fff;
  font-size: 11px;
  line-height: 1.05;
  padding: 0 3px;
}
.tile.bottom.airport .special-icon,
.tile.bottom.utility .special-icon {
  top: 5px;
  height: 30px;
}
.tile.left.special .tile-inner {
  left: 18px;
  top: -18px;
  right: auto;
  bottom: auto;
  width: 68px;
  height: 104px;
  transform: rotate(90deg);
}
.tile.right.special .tile-inner {
  left: 18px;
  top: -18px;
  right: auto;
  bottom: auto;
  width: 68px;
  height: 104px;
  transform: rotate(-90deg);
}
.tile.left.special b,
.tile.right.special b {
  writing-mode: horizontal-tb;
  left: 0;
  top: 46px;
  width: 68px;
  font-size: 12px;
  color: #fff;
}
.tile.left.airport b,
.tile.right.airport b,
.tile.left.utility b,
.tile.right.utility b {
  top: 37px;
  font-size: 11px;
  line-height: 1.05;
  padding: 0 3px;
}
.tile.left.special .special-icon,
.tile.right.special .special-icon {
  left: 0;
  top: 8px;
  width: 68px;
  transform: rotate(-90deg);
  height: 32px;
}
.tile.left.airport .special-icon,
.tile.right.airport .special-icon,
.tile.left.utility .special-icon,
.tile.right.utility .special-icon {
  top: 6px;
  height: 28px;
}
.tile.left.utility .special-icon img,
.tile.right.utility .special-icon img,
.tile.left.airport .special-icon img,
.tile.right.airport .special-icon img {
  max-height: 28px;
}
.tile.right.special .special-icon {
  transform: rotate(90deg);
}
.tile.left.chest .price-zone,
.tile.right.chest .price-zone,
.tile.left.chance .price-zone,
.tile.right.chance .price-zone {
  display: none;
}
.tile.left.chest b,
.tile.right.chest b,
.tile.left.chance b,
.tile.right.chance b {
  top: 73px;
  color: #d7a660;
}
.tile.left.chest .special-icon,
.tile.right.chest .special-icon,
.tile.left.chance .special-icon,
.tile.right.chance .special-icon {
  top: 28px;
}
.tile .blur-flag img {
  transform: none;
}
.tile.corner.jail .special-icon {
  top: 30px;
}
.tile.corner.jail b {
  top: 12px;
  bottom: auto;
  font-size: 12px;
}
.tile.corner.jail {
  background: linear-gradient(135deg, #414b5a, #334b54);
}
.tile.corner.gojail .special-icon {
  font-size: 32px;
}
.tile.corner.rest .special-icon {
  top: 18px;
}
.play-area {
  inset: auto 32px 32px;
  height: calc((100% - 64px) * 0.86);
}
.play-area > .buttons {
  min-height: 64px;
}
.play-area > .buttons:not(:has(button:not([hidden]))) {
  display: none;
}
.play-area > .dice-row {
  margin-bottom: 16px;
}
.play-area > #turnText {
  margin: 12px 0;
}
.play-area > .log {
  margin-top: 12px;
}
.play-area > #turnText:empty {
  display: none;
}
#modal.property-modal {
  background: transparent;
  backdrop-filter: none;
  display: block;
  pointer-events: none;
}
.property-modal .dialog {
  pointer-events: all;
  position: fixed;
  width: 224px;
  padding: 12px 8px;
  max-height: calc(100vh - 16px);
  border-radius: 8px;
  box-shadow:
    0 0 64px -24px #000,
    0 0 8px #0004;
  background: linear-gradient(90deg, #41445e, #3c2c49);
}
.property-modal .dialog h2 {
  font-size: 19px;
  margin: 6px 0 18px;
}
.property-modal .dialog p {
  font-size: 12px;
  margin: 12px 2px;
}
.property-modal .rent-table {
  font-size: 12px;
  margin-bottom: 16px;
}
.property-modal .rent-table td {
  padding: 7px 8px;
}
.property-modal .dialog .buttons {
  min-height: 0;
  gap: 4px;
}
.property-modal .dialog button {
  font-size: 11px;
  padding: 6px 8px;
}
.property-modal .dialog .close {
  padding: 3px;
  color: #bfb4d0;
}
.property-modal .detail-color {
  display: none;
}
.property-modal .dialog .pawn {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
html {
  height: 100%;
  touch-action: manipulation;
}
body {
  min-height: 100dvh;
  overflow: auto;
  background-image: linear-gradient(135deg, #130f1d, #1a0f1d);
  background-attachment: fixed;
}
body::-webkit-scrollbar {
  background: transparent;
  width: 14px;
  height: 14px;
}
body::-webkit-scrollbar-thumb {
  background: #ffffff4d padding-box content-box;
  border: 4.6667px solid transparent;
  border-radius: 14px;
}
body::-webkit-scrollbar-corner {
  background: transparent;
}
#game {
  flex-shrink: 0;
}
.tax-percent {
  position: absolute;
  bottom: -13px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.tile.top.tax .special-icon {
  top: 50px;
}
.tile.top.tax b {
  top: 16px;
  bottom: auto;
  color: #fff;
}
.tile.right.utility .special-icon img {
  width: 24px;
  height: 32px;
}
.tile .special-icon img[src$="airplane.svg"] {
  width: 34px;
  height: 30px;
}
.tile .special-icon img[src$="faucet.svg"] {
  height: 28px;
  width: 27px;
}
.tile.start .special-icon {
  font-size: 0;
}
.tile.start .special-icon:after {
  content: "⏩";
  font-size: 32px;
  filter: grayscale(1) sepia(1) hue-rotate(20deg) saturate(4);
}
.appearance {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #130f1dbf;
  backdrop-filter: blur(6px);
  border-radius: 8px;
  text-align: center;
  direction: rtl;
}
.appearance > div {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.appearance p {
  font-size: 16px;
  margin-bottom: 24px;
}
.color-choices {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 24px;
  margin-bottom: 32px;
}
.color-choices button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--choice);
  transition: transform 0.2s;
}
.color-choices button:hover {
  transform: scale(1.1);
}
.color-choices .pawn {
  width: 44px;
  height: 44px;
}
.appearance #appearanceDone {
  font-size: 16px;
}
.trade-modal .dialog {
  width: min(544px, 96vw);
  background: #130f1d;
  padding: 20px 16px;
}
.trade-modal .dialog h2 {
  font-size: 16px;
  color: #b4a5ce;
  margin: 0 0 24px;
}
.trade-columns {
  direction: ltr;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.trade-columns section {
  min-width: 0;
  text-align: center;
}
.trade-player {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  font-size: 14px;
  margin-bottom: 20px;
}
.trade-player .pawn {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}
.trade-player select {
  max-width: 100%;
  background: transparent;
  padding: 4px;
  font-size: 13px;
}
.trade-columns input[type="range"] {
  width: 100%;
  accent-color: #8762e9;
  height: 6px;
  padding: 0;
  background: #352b4b;
}
.range-label {
  direction: ltr;
  display: flex;
  justify-content: space-between;
  color: #a698c8;
  font: 11px Arial;
  margin-top: 3px;
}
.cash-entry {
  display: inline-flex;
  border-radius: 20px;
  background: #6647e0;
  align-items: center;
  margin: 8px 0 30px;
  padding: 2px 8px;
  font: 13px Arial;
}
.cash-entry input {
  width: 48px;
  background: transparent;
  padding: 0;
  text-align: center;
  border-radius: 0;
}
.trade-modal .checklist {
  background: none;
  max-height: 300px;
  padding: 0;
  min-height: 150px;
}
.trade-property {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #ffffff18;
  border-radius: 7px;
  padding: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  cursor: pointer;
  text-align: start;
  direction: rtl;
}
.trade-property:has(:checked) {
  border-color: #8b6ee5;
  background: #5b398c;
}
.trade-property input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.trade-property img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.trade-property span {
  flex: 1;
}
.trade-property small {
  font: 12px Arial;
  opacity: 0.8;
}
.send-trade {
  margin-top: 24px;
  padding: 13px 20px;
}
.empty-properties {
  color: #a698c8;
}
.trade-modal .dialog > .buttons {
  display: none;
}
@media (max-width: 450px) {
  .trade-columns {
    gap: 16px;
  }
  .trade-modal .dialog {
    padding: 20px 12px;
  }
  .trade-property {
    font-size: 11px;
    padding: 6px;
    gap: 4px;
  }
}
.card-prices {
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 2px;
}
.card-prices span {
  min-width: 40px;
}
.property-modal .dialog .buttons:empty {
  display: none;
}
.trade-columns {
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 20px;
}
.trade-divider {
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(#352251, #1c162b);
  font: 24px Arial;
  min-height: 100%;
  padding-top: 10px;
}
.trade-columns .trade-player {
  font-family: Cairo, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 22px;
}
.trade-property {
  direction: ltr;
}
.trade-property span {
  direction: rtl;
  text-align: left;
}
.trade-property:has(:checked) {
  background: linear-gradient(100deg, #512de5, #6842e7);
  border-color: #7258d5;
}
.trade-property.readonly {
  cursor: default;
}
.trade-columns .checklist {
  min-height: 0;
  max-height: 320px;
  padding: 0;
}
.trade-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.trade-actions button {
  font-size: 14px;
  min-width: 95px;
  padding: 11px;
}
.success {
  background: #4caf69;
}
.trade-actions .danger {
  background: #ff572c;
}
.trade-view .dialog {
  width: min(544px, 96vw);
}
.trade-view .trade-columns {
  margin-top: 20px;
}
.trade-note {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 20px;
  align-items: center;
}
.trade-note button {
  background: none;
  color: #a698c8;
  font-size: 18px;
  padding: 4px;
}
.trade-note input {
  flex: 1;
  font-size: 12px;
}
.trade-message {
  background: #34294f;
  border-radius: 6px;
  padding: 10px;
}
.trade-picker .dialog {
  width: 260px;
  padding: 16px 14px;
}
.trade-picker .dialog h2 {
  font-size: 14px;
  margin: 0 0 8px;
}
.picker-instruction {
  font-size: 12px !important;
  margin: 10px 0 18px !important;
}
.trade-player-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trade-player-choices button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #34264b;
  padding: 10px;
  font-size: 13px;
}
.trade-player-choices .pawn {
  height: 16px;
  width: 16px;
  transform: rotate(-90deg);
}
.trade-player-choices button:hover {
  background: #483257;
}
.trade-modal .dialog .close {
  top: -14px;
  right: -14px;
  left: auto;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #171120;
  color: white;
  box-shadow: 0 4px 8px #0004;
}
.trade-modal .dialog {
  overflow: visible;
}
.trade-view .cash-entry {
  padding: 4px 8px;
}
.trade-picker .dialog > .buttons {
  display: none;
}
.property-modal .buttons button {
  background: #ffffff10;
  font-size: 18px;
  min-width: 38px;
  padding: 8px;
}
.property-modal .buttons button:disabled {
  opacity: 0.25;
}
.property-modal .buttons button:not(:disabled):hover {
  background: #ffffff25;
}
@media (max-width: 450px) {
  .trade-columns {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  }
  .trade-actions button {
    font-size: 12px;
    min-width: 0;
    padding: 10px 12px;
  }
  .trade-modal .dialog .close {
    right: 0;
    top: -12px;
  }
}
.pawn-rotator {
  width: 32px;
  height: 32px;
  transition: transform 0.2s;
  transform-origin: center;
}
.board-pawn .pawn {
  transition:
    transform 0.2s,
    filter 0.2s;
  filter: drop-shadow(0 0 8px #000) drop-shadow(0 0 12px #0004);
}
.board-pawn.moving .pawn {
  transform: scale(1.25);
}
.board-pawn.active .pawn:before {
  display: none;
}
.board-pawn.active .pawn-rotator {
  animation: current-pawn 0.75s infinite;
}
@keyframes current-pawn {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}
.tile.start .special-icon:after {
  display: none;
}
.tile.start .special-icon {
  top: 45px;
  height: 32px;
  font-size: inherit;
}
.tile.start .special-icon img {
  width: 36.4px;
  height: 28.1px;
  max-width: none;
  filter: drop-shadow(0 0 3px #b3d23d33);
}
.tile.start b {
  font-weight: 900;
  font-size: 21px;
  color: #c1db4b;
  top: 18px;
}
/* Property controls and prison construction observed in the reference. */
.property-modal .buttons {
  direction: ltr;
  justify-content: flex-start;
  padding: 0 6px;
}
.property-modal .buttons button img {
  width: 15px;
  height: 20px;
  vertical-align: middle;
}
.property-modal #sell {
  margin-left: auto;
  background: linear-gradient(to top left, #6647e0, #8c47e0);
}
.property-modal #mortgage {
  width: 100%;
  order: -1;
  font-size: 13px;
  background: #a77932;
}
.property-footer {
  display: none;
}
.property-modal .property-footer {
  display: block;
}
.property-modal .property-footer .owner-caption {
  font-size: 12px;
  margin: 20px 0 12px;
}
.property-modal .property-footer .owner-caption small {
  margin-inline-end: 12px;
  opacity: 0.7;
}
.property-modal .dialog {
  background: linear-gradient(135deg, #262a4c, #41445e);
}
.property-modal .rent-table tr {
  background: transparent;
}
.property-modal .rent-table tr.current {
  background: transparent;
}
.property-modal .rent-table thead {
  font-size: 11px;
  opacity: 0.55;
}
.property-modal .rent-table td {
  padding: 6px 8px;
}
.property-modal .dialog h2 img {
  display: none;
}
.property-modal .dialog .close {
  display: none;
}
.property-modal .card-prices {
  direction: ltr;
}
.property-modal .card-prices small {
  opacity: 0.65;
}
.property-modal .mortgage-banner {
  background: #130f1d80;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.trade-property.unavailable {
  opacity: 0.35;
  cursor: default;
}
.trade-modal {
  backdrop-filter: none !important;
  background: #000b !important;
}
.trade-modal .dialog {
  width: min(512px, calc(100vw - 32px));
  padding: 16px;
}
.trade-player {
  direction: ltr !important;
}
.trade-columns .trade-player .pawn {
  width: 16px;
  height: 16px;
}
.trade-columns .trade-player {
  margin-bottom: 22px;
  min-height: 28px;
}
.trade-columns {
  gap: 20px;
}
.trade-property {
  padding: 6px 8px;
  height: 32px;
  margin-bottom: 6px;
  line-height: 1.1;
}
.cash-entry {
  margin: 8px 0 28px;
}
.trade-note {
  position: absolute;
  bottom: 18px;
  left: 24px;
  margin: 0;
}
.trade-note input {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: min(350px, 75vw);
}
.send-trade {
  margin-top: 24px;
  font-size: 14px;
  padding: 10px 16px;
}
.trade-picker .dialog {
  width: 256px;
  padding: 16px 14px;
}
.trade-view .dialog {
  width: min(544px, calc(100vw - 32px));
}
.tile.corner.jail .special-icon {
  left: 0;
  top: 34.6667px;
  width: 69.3333px;
  height: 69.3333px;
  display: block;
}
.prison-square {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #607d8b;
}
.prison-bars {
  position: absolute;
  inset: 0;
  letter-spacing: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 4px,
    #c8c8c8 4.8px,
    #c8c8c8 6.4px,
    transparent 7.2px
  );
}
.prison-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #607d8b);
  font-size: 12px;
  color: white;
}
.tile.corner.jail b {
  top: 6px;
  font-size: 12px;
}
.tile.corner.gojail img {
  width: 32px;
  height: 36px;
}
@media (max-width: 450px) {
  .trade-modal .dialog {
    padding: 16px 10px;
  }
  .trade-columns {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  }
  .trade-columns .trade-player {
    font-size: 12px;
  }
  .trade-picker .dialog {
    padding: 16px 14px;
  }
  .trade-note {
    left: 12px;
  }
  .trade-property small {
    font-size: 11px;
  }
  .trade-property img {
    width: 14px;
    height: 14px;
  }
}
.trade-modal .trade-property {
  display: flex;
}
.trade-columns input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  cursor: pointer;
  outline: none;
  margin: 0;
  height: 4px;
  border-radius: 4px;
  background: #493762;
}
.trade-columns input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  border: 1px solid #ccc;
}
.trade-columns input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  border: 0;
}
.trade-columns input[type="range"]:disabled {
  opacity: 1;
  cursor: default;
}
.cash-entry input::-webkit-inner-spin-button,
.cash-entry input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cash-entry input {
  appearance: textfield;
  field-sizing: content;
  width: auto;
  min-width: 1ch;
  max-width: 9ch;
  font: inherit;
  outline: none;
}
.trade-modal .dialog h2 {
  line-height: 1.5;
}
.player .pawn,
.trade-player .pawn,
.trade-player-choices .pawn {
  transform: none;
}
.trade-player-choices button,
.trade-actions {
  direction: ltr;
}
.tile.left .flag {
  transform: rotate(-90deg);
}
.tile.right .flag {
  transform: rotate(90deg);
}

/* Richup.io parity additions */
.how-to-play {
  width: min(960px, 100%);
  margin-top: 24px;
  text-align: center;
}
.how-to-play h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.how-card {
  background: #221a35;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: start;
}
.how-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6647e0;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.how-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.how-card p {
  margin: 0;
  font-size: 13px;
  color: #a698c8;
  line-height: 1.5;
}
.rule-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rule-row small {
  font-size: 11px;
  color: #a698c8;
  line-height: 1.35;
}
.p-badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #3e315c;
  margin-inline-start: 4px;
}
.p-badge.pardon {
  background: #5c4a1e;
  color: #ffd966;
}
.mini-btn {
  padding: 4px;
  font-size: 14px;
  line-height: 1;
  background: transparent;
  border-radius: 6px;
  min-width: 0;
  opacity: 0.82;
  transition:
    background 0.15s,
    opacity 0.15s,
    transform 0.15s;
}
.mini-btn:hover {
  background: #ffffff14;
  opacity: 1;
  filter: none;
}
.kick-btn {
  color: #e87a8c;
}
.kick-btn:hover {
  background: #d957532e;
  color: #fff;
}
.tile.mortgaged {
  opacity: 0.65;
}
.tile.mortgaged .owner {
  background: #61557a !important;
}
.is-mortgaged {
  opacity: 0.65;
}
.card-banner {
  background: linear-gradient(135deg, #3c2c66, #281f44);
  border: 1px solid #8c6be6;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  box-shadow: 0 8px 24px #0007;
}
.card-banner strong {
  color: #f3b84e;
}
.debt-warning {
  background: #5e2228;
  border: 1px solid #d95753;
  color: #ffd6d6;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  max-width: 420px;
}
.property-modal .dialog h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.property-modal .dialog h2 .card-flag,
.auction-card-preview h2 .card-flag {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.tile-desc {
  color: #d2c8e8;
  line-height: 1.5;
}
.pot-info {
  color: #7ee38d;
}
.trade-tip {
  background: #34294f;
  margin: 0 12px 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #d6cbed;
}
.trade-tip p {
  margin: 0 0 8px;
  line-height: 1.45;
}
.chat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-inline-end: 5px;
}
.wide-modal .dialog {
  width: min(640px, 95vw);
  background: #1b152b;
  text-align: start;
}
.wide-modal .dialog > .buttons {
  display: none;
}
.rules-modal-list p {
  font-size: 13px;
  line-height: 1.6;
  color: #d8cef0;
  margin: 10px 0;
}
.rooms-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.rooms-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #271f3e;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 12px;
}
.rooms-filters label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}
.room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #29203f;
  padding: 10px 12px;
  border-radius: 6px;
}
.room-card.full-room {
  opacity: 0.6;
}
.room-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.room-dots {
  display: flex;
  gap: 4px;
}
.slot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.room-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.room-tags span {
  font-size: 11px;
  background: #3a2e59;
  padding: 2px 6px;
  border-radius: 4px;
}
.muted-note {
  color: #a698c8;
  text-align: center;
  padding: 16px;
}
.auction-modal .dialog {
  width: min(580px, 95vw);
  background: #1b152b;
  padding: 20px;
}
.auction-modal .dialog > .buttons,
.auction-modal .dialog .close {
  display: none;
}
.auction-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: start;
}
.auction-controls h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
.auction-current {
  background: #271f3d;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.auction-current small {
  color: #a698c8;
  display: block;
}
.auction-current strong {
  font-size: 32px;
  color: #7ee38d;
  display: block;
  margin: 4px 0;
}
.auction-bidder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}
.auction-bidder .pawn {
  width: 18px;
  height: 18px;
}
.auction-progress {
  height: 6px;
  background: #362b52;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.auction-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #6647e0, #f3b84e);
  transition: width 0.25s linear;
}
.auction-timer {
  font-size: 12px;
  color: #f3b84e;
  margin: 0 0 12px;
}
.auction-bids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.auction-bids button {
  padding: 10px 6px;
  font-size: 13px;
}
.auction-bids small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
}
.auction-card-preview {
  background: linear-gradient(135deg, #262a4c, #41445e);
  border-radius: 8px;
  padding: 12px 10px;
}
.auction-card-preview h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
  margin: 4px 0 12px;
}
@media (max-width: 560px) {
  .auction-grid {
    grid-template-columns: 1fr;
  }
}
.gameover-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #130f1de6;
  backdrop-filter: blur(6px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}
.gameover-card {
  width: min(460px, 100%);
  background: #241c38;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 16px 48px #0009;
}
.gameover-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}
.gameover-winner {
  color: #7ee38d;
  margin: 0 0 16px;
  font-size: 15px;
}
.gameover-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}
.gameover-table th,
.gameover-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #ffffff10;
  text-align: start;
}
.gameover-table .pawn {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.winner-row {
  background: #7ee38d18;
}
.winner-badge {
  background: #4caf69;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-inline-start: 6px;
}
.gameover-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.gameover-stats > div {
  background: #1b152b;
  border-radius: 6px;
  padding: 8px 6px;
}
.gameover-stats small {
  display: block;
  font-size: 11px;
  color: #a698c8;
}
.gameover-stats strong {
  font-size: 14px;
}
.gameover-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
/* Auction layout checked in a live reference auction. */
.auction-modal {
  background: #000b !important;
  backdrop-filter: none !important;
}
.auction-modal .dialog {
  width: min(558px, calc(100vw - 32px));
  padding: 16px;
  background: #130f1d;
}
.auction-caption {
  font-size: 14px;
  color: #b4a5ce;
  text-align: center;
}
.auction-modal h2.auction-property-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin: 28px 0 32px;
}
.auction-property-title img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.auction-grid {
  direction: ltr;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
}
.auction-controls {
  flex: 1;
  min-width: 235px;
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 0 0 0 6px;
}
.auction-subtitle {
  display: block;
  font-size: 14px;
  color: #9e8fc5;
  font-weight: 600;
  padding-bottom: 8px;
  text-align: left;
}
.auction-current {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  min-height: 48px;
  margin: 0;
}
.auction-current > .pawn {
  width: 48px;
  height: 48px;
  transform: none;
}
.auction-number {
  font:
    24px "Segoe UI",
    Arial,
    sans-serif;
  position: relative;
}
.auction-number strong {
  font: inherit;
}
.auction-increase {
  position: absolute;
  left: 0;
  top: -12px;
  font-size: 24px;
  color: #afd57a;
  animation: bid-increase 1s cubic-bezier(0, 0, 0, 1) forwards;
  white-space: nowrap;
}
@keyframes bid-increase {
  to {
    transform: translateY(-32px);
    opacity: 0;
  }
}
.auction-timer {
  font-size: 13px !important;
  color: #9e8fc5 !important;
  text-align: right;
  line-height: 1.5;
  margin: 12px 0 4px !important;
}
.auction-progress {
  height: 16px;
  background: #29203f;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 30px;
}
.auction-progress > div {
  height: 100%;
  transition: width 0.25s linear;
  background: #6647e0;
}
.auction-bids {
  direction: ltr;
  display: flex;
  gap: 16px;
  margin: 0;
}
.auction-bids button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font:
    600 16px "Segoe UI",
    Arial,
    sans-serif;
  padding: 10px 8px;
  gap: 2px;
}
.auction-bids small {
  font-size: 14px;
  opacity: 0.75;
  display: block;
  white-space: nowrap;
}
.auction-history {
  min-height: 176px;
  max-height: 230px;
  overflow: hidden;
  mask-image: linear-gradient(#000 50%, transparent);
  margin-top: 20px;
}
.auction-history p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px !important;
  line-height: 1.5;
  margin: 0 !important;
  padding: 7px 0;
  animation: log-in 0.3s ease-out;
}
.auction-history .pawn {
  width: 14px;
  height: 14px;
}
.auction-card-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 224px;
  width: 224px;
  padding: 16px 20px;
  background: #24294a;
  border: 0;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.auction-card-preview.auction-city::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -1;
  background: var(--card-flag) center / cover no-repeat;
  opacity: .15;
  filter: blur(12px);
}
.auction-card-preview > h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  margin: 0 0 14px;
  line-height: 1.35;
}
.auction-card-preview .rent-table {
  font-size: 14px;
  direction: rtl;
  line-height: 1.4;
  margin-bottom: 0;
}
.auction-card-preview .rent-table td { padding: 6px 0; }
.auction-card-preview .rent-table thead { color: #b9adce; font-size: 13px; }
.auction-card-preview .rent-table thead td { text-decoration: underline; text-underline-offset: 5px; }
.auction-card-preview .rent-table tr {
  background: none;
}
.auction-card-divider {
  width: 70px;
  height: 1px;
  background: #ffffff25;
  margin: 12px auto 0;
}
.auction-card-preview .card-prices {
  direction: ltr;
  margin-top: auto;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.1;
}
.auction-card-preview .card-prices small { color: #c7c1d3; font-size: 13px; }
.auction-card-preview .card-prices img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.65);
  vertical-align: middle;
}
.auction-card-preview.auction-city .card-flag {
  display: none;
}
.auction-card-preview.auction-special h2 .card-flag {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 0;
}
.auction-card-preview .utility-rents p { font-size: 14px; line-height: 1.4; margin: 0 0 14px; }
.auction-card-preview .utility-rents img { width: 15px; height: 15px; vertical-align: middle; }
@media (max-width: 600px) {
  .auction-controls {
    min-width: min(235px, 100%);
  }
  .auction-grid {
    gap: 24px;
  }
  .auction-history {
    min-height: 100px;
    max-height: 120px;
  }
  .auction-modal .dialog {
    max-height: calc(100dvh - 32px);
  }
  .auction-card-preview {
    min-height: auto;
  }
}
.button-icon {
  height: 1em;
  width: 1.1em;
  object-fit: contain;
  vertical-align: -0.12em;
  margin-inline-end: 0.4em;
}
.tools .button-icon,
.lobby-topbar .button-icon {
  height: 16px;
  width: 18px;
  margin: 0;
  opacity: 0.8;
}
.volume-popover {
  position: fixed;
  z-index: 200;
  background: #29203f;
  box-shadow: 0 8px 20px #0006;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 182px;
  direction: ltr;
}
.volume-popover input {
  width: 112px;
  padding: 0;
  height: 4px;
  accent-color: #8762e9;
}
.volume-popover output {
  font:
    12px "Segoe UI",
    sans-serif;
  color: #c2b6d8;
  min-width: 28px;
}
.auction-number {
  display: flex;
  align-items: center;
  line-height: 1.125;
}
.auction-number strong {
  display: inline;
  color: inherit;
  margin: 0;
}
.auction-caption {
  line-height: 1.25;
}
.auction-subtitle {
  line-height: 1.125;
}
.auction-modal h2.auction-property-title {
  margin: 24px 0;
}
.auction-modal .auction-card-preview.auction-city h2 .card-flag{display:none}
.auction-property-title{direction:ltr}

/* Indicators for account activity, development and suspended turns. */
.player .cash { position: relative; font-variant-numeric: tabular-nums; }
.cash-change {
  position: absolute;
  right: 0;
  z-index: 4;
  pointer-events: none;
  font: 800 13.5px "Segoe UI", Arial, sans-serif;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px #090611f2;
  will-change: transform, opacity;
}
.cash-change.gain {
  bottom: calc(100% + 3px);
  color: #6df090;
  text-shadow:
    0 2px 8px #090611f2,
    0 0 10px #5ad0784d;
  animation: balance-rise 2.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cash-change.loss {
  top: calc(100% + 3px);
  color: #ff6b6b;
  text-shadow:
    0 2px 8px #090611f2,
    0 0 10px #e85a5a4d;
  animation: balance-drop 2.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes balance-rise {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  12% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  58% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}
@keyframes balance-drop {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
  }
  12% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  58% {
    opacity: 1;
    transform: translateY(2px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}
.building-marker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ebfff7;
  background: #164438;
  border-radius: 5px;
  padding: 3px 5px;
  direction: ltr;
  font: 700 12px system-ui;
}
.building-marker i { width: 14px; height: 14px; background: #8ce3be; clip-path: polygon(50% 0,100% 44%,89% 44%,89% 100%,61% 100%,61% 65%,40% 65%,40% 100%,11% 100%,11% 44%,0 44%); }
.building-marker.hotel { background: #572f21; }
.building-marker.hotel i { clip-path: none; border-radius: 2px; background: repeating-linear-gradient(90deg,#ffd29e 0 3px, transparent 3px 5px), #8c512e; border-block: 3px solid #ffd29e; }
.turn-status { display: inline-block; color: #ffcf9e; font-size: 10px; padding: 1px 4px; border-radius: 4px; background: #573529; }
.turn-status.resting { color: #a4f0dc; background: #164438; }
.board-pawn.jailed::after, .board-pawn.resting::after {
  position: absolute;
  inset: -3px;
  content: "";
  border: 2px solid #ffc889;
  border-radius: 8px;
}
.board-pawn.jailed::after { background: repeating-linear-gradient(90deg,transparent 0 6px,#ffc889aa 6px 8px); }
.board-pawn.resting::after { border: 2px dashed #8ce3be; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  .cash-change { animation-name: balance-fade !important; animation-duration: 2.8s !important; }
}

@keyframes balance-fade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

.turn-clock {
  direction: ltr;
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: #231b37;
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 4px 16px #0004;
}
.turn-clock.has-action {
  padding: 4px 4px 4px 12px;
}
.turn-clock .timer {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font: 600 14px "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #edeaf3;
}
.timer-ring {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}
.timer-track {
  fill: none;
  stroke: #3a3052;
  stroke-width: 3;
}
.timer-progress {
  fill: none;
  stroke: #6ed888;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 56.55;
  stroke-dashoffset: 0;
  transition:
    stroke-dashoffset 0.25s linear,
    stroke 0.2s;
}
.turn-clock[data-status="urgent"] .timer {
  color: #f39c12;
}
.turn-clock[data-status="urgent"] .timer-progress {
  stroke: #f39c12;
}
.turn-clock[data-status="paused"] .timer {
  color: #c4bdd4;
}
.turn-clock[data-status="paused"] .timer-progress {
  stroke: #9c90ad;
}
#timeAction {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(to top left, #6647e0, #7c4dff);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  line-height: 1.1;
}
.time-action-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.trade-row {
  direction: ltr;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid #ffffff0b;
  padding: 11px 32px;
  color: #edeaf3;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.trade-row:hover {
  background: #ffffff09;
  filter: none;
}
.trade-row:active {
  transform: none;
}
.trade-side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.trade-side .pawn {
  width: 16px;
  height: 16px;
  transform: none;
  flex-shrink: 0;
}
.trade-side span:not(.pawn) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 92px;
}
.trade-arrow {
  color: #d6ceea;
  font-size: 15px;
  flex-shrink: 0;
}
.trade-eye {
  position: absolute;
  right: 12px;
  display: inline-flex;
  color: #a698c8;
  opacity: 0;
  transition: opacity 0.15s;
}
.trade-row:hover .trade-eye,
.trade-row:focus-visible .trade-eye {
  opacity: 0.85;
}
.trades-empty {
  color: #a698c8;
  font-size: 13px;
  text-align: center;
  padding: 0 16px 14px;
  margin: 0;
}
.dice-row[aria-disabled="true"] { cursor: default; }
.dice-row:focus-visible { outline: 2px solid #81dcc7; border-radius: 12px; }
/* Vacation corner: keep the pool in the same text block as the title. */
.tile.corner.rest {
  background: linear-gradient(150deg, #183d3b, #20313f);
}
.tile.corner.rest .tile-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 7px 3px;
}
.tile.corner.rest .special-icon {
  position: static;
  width: 49px;
  height: 43px;
  margin-bottom: 2px;
  flex-shrink: 0;
}
.tile.corner.rest .special-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tile.corner.rest b {
  position: static;
  font-size: 15px;
  line-height: 1.15;
  color: #f4fff9;
}
.tile.corner.rest .vacation-pot {
  direction: rtl;
  font: 500 11px/1.2 system-ui, sans-serif;
  color: #bdd8d2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chat-message { display: flex; justify-content: flex-start; margin: 9px 0 2px; }
.chat-message.own { justify-content: flex-end; }
.chat-message.continued { margin-top: 2px; }
.chat-bubble {
  max-width: 88%;
  border-inline-start: 3px solid var(--chat-accent);
  background: #263635;
  color: #ebf7f3;
  padding: 6px 10px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.chat-message.own .chat-bubble { background: #1c5044; }
.chat-bubble strong { display: block; color: #bce1d4; }

.ownership-button {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.ownership-button:focus-visible { outline: 2px solid #8ce3be; outline-offset: 4px; }
.player.preview-player { box-shadow: inset 0 0 0 2px var(--pawn); }
.board .tile { transition: filter 160ms ease, box-shadow 160ms ease; }
.ownership-preview .tile:not(.preview-owned) { filter: brightness(.55) saturate(.55); }
.ownership-preview .tile.preview-owned {
  box-shadow: inset 0 0 0 2px var(--preview-color), inset 0 0 22px color-mix(in srgb, var(--preview-color) 45%, transparent);
}
.ownership-preview .board-pawn:not(.preview-pawn) { opacity: .4; }
.ownership-preview .board-pawn.preview-pawn { z-index: 3; }
.ownership-preview .preview-pawn::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid var(--preview-color);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--preview-color);
  animation: ownership-ring 1.25s ease-in-out infinite alternate;
}
@keyframes ownership-ring {
  from { transform: scale(.93); opacity: .65; }
  to { transform: scale(1.12); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ownership-preview .preview-pawn::before { animation: none; }
  .board .tile { transition: none; }
}

/* City development marker */
.building-marker {
  min-height: 20px;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  background: #164438;
  color: #ebfff7;
  line-height: 1;
}
.building-marker.hotel { background: #164438; }
.building-marker img {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
  object-fit: contain;
}
.building-marker strong { font: 700 12px/1 system-ui, sans-serif; }

/* The development symbol sits directly on the owner's coloured strip. */
.tile .building-marker,
.tile .building-marker.hotel {
  min-height: 0;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
}
.tile .building-marker img {
  width: 19px;
  height: 19px;
  filter: brightness(0);
}
.tile .building-marker strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 400 19px/1 Arial, sans-serif;
}
.tile .building-marker strong::before { content: "×"; }

.player .cash.negative {
  color: #ff6269;
  font-weight: 800;
  text-shadow: 0 0 12px #ff4e5a55;
}

/* Property cards: match the compact reference cards while keeping Arabic RTL. */
.property-modal .dialog {
  padding: 16px 18px;
  overflow: visible;
  background: #24294a;
  color: #f9f6ff;
}
.property-modal .dialog[data-card-type="city"] {
  background: radial-gradient(ellipse at 50% 54%, #44405a, transparent 55%), #352747;
}
.property-modal .dialog::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: inherit;
  z-index: -1;
  transform: rotate(45deg);
}
.property-modal .dialog[data-placement="top"]::after { bottom: -5px; left: calc(50% - 6px); }
.property-modal .dialog[data-placement="bottom"]::after { top: -5px; left: calc(50% - 6px); }
.property-modal .dialog[data-placement="left"]::after { right: -5px; top: calc(50% - 6px); }
.property-modal .dialog[data-placement="right"]::after { left: -5px; top: calc(50% - 6px); }
.property-modal .dialog h2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
}
.property-modal .dialog[data-card-type="city"] h2 .card-flag { display: none; }
.property-modal .dialog[data-card-type="airport"] h2 .card-flag,
.property-modal .dialog[data-card-type="utility"] h2 .card-flag {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 7px #a7dbe67a);
}
.property-modal .rent-table { margin: 0; font-size: 13px; line-height: 1.35; }
.property-modal .rent-table td { padding: 5px 0; }
.property-modal .rent-table thead { font-size: 12px; color: #b9adce; opacity: 1; }
.property-modal .rent-table thead td { text-decoration: underline; text-underline-offset: 5px; }
.property-modal .utility-rents p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
}
.property-modal .utility-rents img { width: 15px; height: 15px; vertical-align: middle; }
.property-modal .card-prices {
  position: relative;
  margin: 14px 0 0;
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.15;
}
.property-modal .card-prices::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 1px;
  top: 0;
  left: calc(50% - 35px);
  background: #ffffff25;
}
.property-modal .card-prices small { font-size: 12px; }
.property-modal .card-prices img {
  width: 14px;
  height: 14px;
  filter: grayscale(1) brightness(1.65);
  vertical-align: middle;
}
.tile.mortgaged { opacity: 1; }
.tile.mortgaged .owner { background: radial-gradient(#ffffff90, transparent), var(--owner) !important; }
.mortgage-marker {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--owner) 35%, #23142f);
}
.mortgage-marker img { width: 15px; height: 15px; object-fit: contain; }
@media (max-height: 420px) {
  .property-modal .dialog { overflow: auto; }
}

.log-trade-link {
  display: inline;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  color: #ddd6ee;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  vertical-align: baseline;
  transition: color 0.15s;
}
.log-trade-link:hover,
.log-trade-link:focus-visible {
  color: #fff;
  filter: none;
}
.log-trade-link:active {
  transform: none;
}

#modal.trade-log-modal {
  background: transparent !important;
  backdrop-filter: none !important;
  display: block;
  pointer-events: none;
}
.trade-log-modal .dialog {
  pointer-events: all;
  position: fixed;
  width: min(512px, calc(100vw - 32px));
  margin: 0;
  padding: 20px 22px;
  border-radius: 10px;
  background: #130f1d;
  box-shadow:
    0 12px 36px #000b,
    0 0 0 1px #ffffff10;
  overflow: visible;
  z-index: 60;
}
.trade-log-modal .dialog::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #130f1d;
  z-index: -1;
  transform: rotate(45deg);
  left: calc(var(--arrow-left, 50%) - 6px);
}
.trade-log-modal .dialog[data-placement="top"]::after {
  bottom: -6px;
}
.trade-log-modal .dialog[data-placement="bottom"]::after {
  top: -6px;
}
.trade-log-modal .dialog .close {
  display: none;
}
.trade-log-modal .trade-divider {
  background: linear-gradient(#352251, #130f1d);
}
.trade-log-modal .trade-columns input[type="range"] {
  background: linear-gradient(
    to right,
    #fff var(--pct, 0%),
    #493762 var(--pct, 0%)
  );
}
.trade-log-modal .trade-columns input[type="range"]::-webkit-slider-thumb {
  border: 0;
  width: 13px;
  height: 13px;
}
.trade-log-modal .cash-entry {
  padding: 4px 12px;
  margin: 8px 0 18px;
}
.trade-log-modal section.cash-only .cash-entry {
  margin-bottom: 4px;
}
.trade-log-modal .trade-columns .checklist {
  max-height: 200px;
  overflow-y: auto;
}
.trade-log-modal .trade-property.pardon-row {
  background: linear-gradient(100deg, #512de5, #6842e7);
  border-color: #7258d5;
}
.trade-log-modal .trade-message {
  margin: 14px 0 0;
  font-size: 12px;
}
@media (max-width: 450px) {
  .trade-log-modal .dialog {
    padding: 16px 12px;
  }
}

/* Pre-game 3-column layout and settings panel parity with reference */
.trade-modal .trade-columns input[type="range"] {
  background: linear-gradient(
    to right,
    #fff var(--pct, 0%),
    #493762 var(--pct, 0%)
  );
}
.trade-modal .trade-columns input[type="range"]::-webkit-slider-thumb {
  border: 0;
  width: 13px;
  height: 13px;
}

.color-choices button.selected {
  transform: scale(1.14);
  box-shadow: 0 0 28px 4px var(--choice);
}

.players {
  padding: 10px 14px;
}
.player {
  padding: 8px;
  min-height: 44px;
}

#setup {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #ffffff2e transparent;
}
#setup::-webkit-scrollbar {
  width: 5px;
}
#setup::-webkit-scrollbar-track {
  background: transparent;
}
#setup::-webkit-scrollbar-thumb {
  background: #ffffff29;
  border-radius: 999px;
}
#setup::-webkit-scrollbar-thumb:hover {
  background: #ffffff44;
}
#setup h3 {
  padding: 16px 16px 10px;
  flex-shrink: 0;
}
#setup hr {
  margin: 10px 16px 4px;
  flex-shrink: 0;
}
#setup .rule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  border-top: 0;
  cursor: pointer;
  flex-shrink: 0;
}
#setup .rule-row.select-row {
  cursor: default;
}
#setup .rule-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #8f84ab;
  flex-shrink: 0;
}
#setup .rule-icon svg {
  width: 18px;
  height: 18px;
}
#setup .rule-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#setup .rule-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: #edeaf3;
  line-height: 1.35;
}
#setup .rule-copy small {
  font-size: 11px;
  color: #9c90ad;
  line-height: 1.35;
}
#setup .rule-row select {
  background: #1c152b;
  border: 1px solid #ffffff16;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  color: #edeaf3;
  flex-shrink: 0;
}
#setup .rule-row:has(:disabled) {
  opacity: 0.65;
  cursor: default;
}
#bot {
  width: calc(100% - 32px);
  margin: 2px 16px 8px;
  background: #1e182e;
  border: 1px solid #ffffff14;
  border-radius: 6px;
  font-size: 13px;
  padding: 9px 12px;
  flex-shrink: 0;
}
#bot:not(:disabled):hover {
  background: #34294f;
}

@media (min-width: 1181px) {
  .left-panel,
  .right-panel {
    height: var(--board-size, 820px);
    max-height: calc(100dvh - 32px);
  }
  .left-panel .share {
    margin-bottom: 0;
  }
  .left-panel .ad-space {
    flex: 1;
    min-height: 12px;
  }
  .left-panel .chat-box {
    flex-shrink: 0;
    height: min(356px, 45%);
    min-height: 220px;
    margin-top: 0;
  }
  #setup {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  #propertyBox {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #properties {
    flex: 1;
    max-height: none;
  }
}

.players.box {
  overflow: visible;
  padding: 12px 14px 16px;
}

.tile.left.luxury-tax .special-icon {
  left: 0;
  top: 8px;
  width: 68px;
  height: 38px;
  transform: rotate(-90deg);
}
.tile.left.luxury-tax .special-icon img {
  width: 38px;
  height: 38px;
}
.tile.left.luxury-tax .luxury-tax-amount {
  position: absolute;
  left: 0;
  top: 50px;
  width: 68px;
  text-align: center;
  font: 600 13px "Segoe UI", Arial, sans-serif;
  color: #b7b0c9;
  line-height: 1;
}
.tile.left.luxury-tax b {
  left: 0;
  top: auto;
  bottom: 8px;
  width: 68px;
  writing-mode: horizontal-tb;
  text-align: center;
  color: #fff;
  font-size: 11px;
  line-height: 1.1;
}

/* Trade modal inner clarity & UI/UX polish (same popup size & design) */
.trade-modal .dialog h2 {
  font-size: 18px;
  font-weight: 700;
  color: #cdc2e6;
  margin: 0 0 18px;
}
.trade-columns .trade-player {
  font-size: 16px;
  font-weight: 700;
  color: #f4f0fc;
  gap: 8px;
  margin-bottom: 16px;
}
.trade-columns .trade-player .pawn {
  width: 20px;
  height: 20px;
}
.trade-modal .trade-columns input[type="range"] {
  height: 5px;
}
.trade-modal .trade-columns input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  box-shadow: 0 1px 4px #0006;
}
.trade-modal .trade-columns input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  box-shadow: 0 1px 4px #0006;
}
.trade-modal .range-label {
  font: 600 12px "Segoe UI", Arial, sans-serif;
  color: #b8add1;
  margin-top: 5px;
}
.trade-modal .cash-entry {
  padding: 4px 12px;
  gap: 4px;
  font: 700 14px "Segoe UI", Arial, sans-serif;
  margin: 8px 0 20px;
  box-shadow: 0 2px 10px #6647e044;
  transition: box-shadow 0.15s;
}
.trade-modal .cash-entry:focus-within {
  box-shadow: 0 0 0 2px #a48bf7;
}
.trade-log-modal section.cash-only .cash-entry {
  margin-bottom: 4px;
}
.trade-modal .trade-columns .checklist {
  max-height: 290px;
  padding-inline-end: 4px;
  scrollbar-width: thin;
  scrollbar-color: #ffffff2e transparent;
}
.trade-modal .trade-columns .checklist::-webkit-scrollbar {
  width: 5px;
}
.trade-modal .trade-columns .checklist::-webkit-scrollbar-track {
  background: transparent;
}
.trade-modal .trade-columns .checklist::-webkit-scrollbar-thumb {
  background: #ffffff2a;
  border-radius: 999px;
}
.trade-modal .trade-columns .checklist::-webkit-scrollbar-thumb:hover {
  background: #ffffff44;
}
.trade-modal .trade-property {
  height: auto;
  min-height: 38px;
  padding: 7px 10px;
  gap: 9px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #f2eefb;
  border-width: 1.5px;
  border-color: #ffffff20;
  background: #1a1428;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.trade-modal .trade-property:not(.readonly):not(.unavailable):hover {
  background: #271e3d;
  border-color: #8b6ee599;
}
.trade-modal .trade-property:has(:checked) {
  background: linear-gradient(100deg, #512de5, #6842e7);
  border-color: #8f74f0;
  color: #fff;
}
.trade-modal .trade-property img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.trade-modal .trade-property img.trade-type-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  object-fit: contain;
}
.trade-modal .trade-property small {
  font: 600 13px "Segoe UI", Arial, sans-serif;
  color: #d5cce9;
  opacity: 0.92;
  flex-shrink: 0;
}
.trade-modal .send-trade {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 7px;
}
.trade-modal .trade-note button {
  font-size: 20px;
  padding: 6px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
}
.trade-modal .trade-note button:hover {
  background: #ffffff14;
  color: #fff;
}
@media (max-width: 450px) {
  .trade-modal .trade-property {
    font-size: 12px;
    min-height: 34px;
    padding: 6px 8px;
    gap: 6px;
  }
  .trade-modal .trade-property img {
    width: 16px;
    height: 16px;
  }
  .trade-modal .trade-property img.trade-type-icon {
    width: 15px;
    height: 15px;
  }
}

.net-status {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 10px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 260;
  background: #3b2458ee;
  border: 1px solid #ff9d5c66;
  color: #ffe8d6;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 24px #0008;
  backdrop-filter: blur(8px);
}

/* Mobile & iPad responsive system (desktop >= 1181px stays untouched) */
.mobile-tabs,
.mobile-log-box,
.board-zoom-reset,
.mobile-share-btn {
  display: none;
}

@media (max-width: 1180px) {
  body {
    justify-content: flex-start;
    overflow-x: clip;
    background-attachment: scroll;
    overscroll-behavior-y: contain;
  }
  #game {
    width: 100%;
    max-width: 100%;
    box-shadow: none;
  }
  /* 120fps mobile GPU pipeline: eliminate 22 live blur passes & drop-shadow re-rasterization */
  .board {
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style;
  }
  .tile {
    contain: layout style;
    transition: none;
  }
  .center,
  .log {
    contain: layout style paint;
  }
  .tile .blur-flag {
    opacity: 0.14;
  }
  .tile .blur-flag img,
  .tile .special-icon,
  .board-pawn .pawn,
  .tile.start .special-icon img {
    filter: none;
  }
  .board-pawn {
    backface-visibility: hidden;
  }
  .board-pawn.moving .pawn-rotator {
    animation: none;
  }
  .appearance,
  .gameover-overlay,
  #modal,
  .board-zoom-reset,
  .net-status {
    backdrop-filter: none;
  }
  .left-panel .ad-space,
  .left-panel .chat-box {
    display: none !important;
  }
  .left-panel .chat-box.chat-floating {
    display: flex !important;
  }
  .left-panel {
    height: auto !important;
    min-height: 0 !important;
  }
  .left-panel .share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 0;
  }
  .left-panel .share h3 {
    display: none;
  }
  .left-panel .share > div {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    align-items: center;
  }
  .left-panel .share code {
    padding: 7px 10px;
    font-size: 11px;
  }
  .left-panel .share #copy,
  .left-panel .share #settingsOpen {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 10px;
    width: auto;
    margin: 0;
  }
  .board-wrap {
    overflow: hidden;
    border-radius: 10px;
    touch-action: pan-y;
    box-shadow: 0 8px 28px #0006;
  }
  .board-wrap.is-board-zoomed {
    touch-action: none;
  }
  .board-zoom-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 25;
    background: #1c152be8;
    border: 1px solid #8c6be666;
    color: #f4efff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 14px #0008;
    backdrop-filter: blur(6px);
  }
  #chatFloat {
    display: block;
    width: 54px;
    height: 54px;
    font-size: 24px;
    left: 14px;
    right: auto;
    bottom: 14px;
  }
  .chat-floating {
    left: 14px;
    right: auto;
    bottom: 78px;
    height: min(340px, 60dvh);
  }
  #toast {
    bottom: 78px;
    left: 14px;
    max-width: calc(100vw - 28px);
  }
  .tile {
    box-shadow: inset 0 0 0 1px #ffffff10;
  }
}

/* iPad Landscape (901px - 1180px): compact top bar + side-by-side board & dashboard */
@media (max-width: 1180px) and (min-width: 901px) {
  #game {
    grid-template-columns: auto minmax(280px, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "left right"
      "board right";
    gap: 12px;
    padding: 12px;
    align-items: start;
  }
  .left-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .left-panel .under {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    gap: 10px;
    flex-shrink: 0;
  }
  .left-panel .wordmark {
    font-size: 24px;
  }
  .left-panel .share {
    flex: 1;
    max-width: 440px;
  }
  .right-panel {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #ffffff28 transparent;
  }
  #setup {
    flex: 1;
    min-height: 220px;
    max-height: none;
    overflow-y: auto;
  }
  #propertyBox {
    min-height: 180px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  #properties {
    flex: 1;
    max-height: none;
  }
}

/* iPad Portrait (681px - 900px): full-width crisp board + 2-column dashboard below */
@media (max-width: 900px) and (min-width: 681px) {
  #game {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "left"
      "board"
      "right";
    gap: 12px;
    padding: 12px 12px 84px;
  }
  .left-panel {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: min(820px, 100%);
    margin: 0 auto;
  }
  .left-panel .under {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    gap: 12px;
  }
  .left-panel .wordmark {
    font-size: 26px;
  }
  .left-panel .share {
    flex: 1;
    min-width: 260px;
    max-width: 440px;
  }
  .board-wrap {
    margin: 0 auto;
  }
  .right-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: min(820px, 100%);
    margin: 0 auto;
  }
  .right-panel > #players,
  .right-panel > #bankrupt,
  .right-panel > #tradeBox {
    grid-column: 1;
  }
  .right-panel > #setup {
    grid-column: 2;
    grid-row: 1 / span 3;
    max-height: 460px;
    overflow-y: auto;
  }
  .right-panel > #propertyBox {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .right-panel > #bankrupt {
    justify-self: end;
  }
  #properties {
    max-height: 280px;
  }
  .tile b {
    font-weight: 700;
    text-shadow:
      0 1px 3px #090611,
      0 0 6px #090611;
  }
}

/* Short mobile landscape (<= 950px wide and <= 520px tall) */
@media (max-width: 950px) and (max-height: 520px) {
  #game {
    grid-template-columns: auto minmax(260px, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "left right"
      "board right";
    gap: 10px;
    padding: 8px;
  }
  .left-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .left-panel .under {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    gap: 8px;
  }
  .left-panel .wordmark {
    font-size: 20px;
  }
  .left-panel .share {
    max-width: 300px;
  }
  .right-panel {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    gap: 10px;
    width: 100%;
  }
  .mobile-tabs,
  .mobile-log-box {
    display: none !important;
  }
}

/* Mobile Portrait (<= 680px): board center is the direct native play cockpit */
@media (max-width: 680px) {
  .board,
  .board .tile,
  button {
    -webkit-tap-highlight-color: transparent;
  }
  .board,
  .board .tile {
    user-select: none;
    -webkit-user-select: none;
  }
  .lobby input,
  .chat-box form input {
    font-size: 16px;
  }
  .lobby {
    padding: 16px 14px 36px;
    gap: 20px;
  }
  .lobby h1 {
    font-size: 46px;
  }
  .floating-die {
    font-size: 82px;
  }
  .lobby-hero > input,
  .lobby-hero > .big,
  .lobby-secondary,
  .join {
    width: min(320px, 100%);
  }

  #game {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "left"
      "board"
      "right";
    gap: 10px;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 4px calc(86px + env(safe-area-inset-bottom, 0px));
  }
  #game.is-started .mobile-share-btn {
    display: inline-grid;
    place-items: center;
  }
  #game.is-started .left-panel .share:not(.is-open) {
    display: none;
  }
  .left-panel {
    gap: 6px;
    padding: 0 4px;
  }
  .left-panel .under {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
  }
  .left-panel .wordmark {
    font-size: 22px;
  }
  .left-panel .tools {
    gap: 4px;
  }
  .left-panel .tools .icon {
    min-width: 34px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
  }
  .board-wrap {
    margin: 0 auto;
  }
  .right-panel {
    margin-top: 8px;
  }

  /* Higher contrast & crispness on scaled mobile tiles */
  .tile b {
    font-weight: 700;
    text-shadow:
      0 1px 4px #090611,
      0 0 7px #090611;
  }
  .price {
    background: #0d0917bd;
    color: #fff;
    font-weight: 700;
    border: 1px solid #ffffff26;
  }

  /* Balanced proportion inside .center on mobile (sleek & readable without oversizing) */
  .turn-clock {
    top: 16px;
    gap: 6px;
  }
  .turn-clock .timer {
    font-size: 17px;
    padding: 7px 13px;
    gap: 7px;
  }
  .timer-ring {
    width: 20px;
    height: 20px;
  }
  #timeAction {
    font-size: 15px;
    padding: 6px 12px;
    gap: 6px;
  }
  .time-action-icon {
    width: 16px;
    height: 16px;
  }
  .play-area {
    inset: 72px 22px 14px;
    height: auto;
  }
  .z8cEagq4 {
    padding: 1.25rem 1.15rem;
  }
  .play-area > .dice-row {
    margin-bottom: 12px;
  }
  .play-area > .buttons {
    min-height: 50px;
    gap: 8px;
  }
  .play-area > .buttons button {
    font-size: 18px;
    font-weight: 700;
    padding: 11px 18px;
    min-height: 0;
    border-radius: 7px;
    box-shadow: 0 4px 12px #09061166;
  }
  .play-area > #turnText {
    font-size: 17px;
    font-weight: 600;
    margin: 9px 0;
    min-height: 24px;
  }
  .play-area > #turnText .pawn {
    width: 22px;
    height: 22px;
    vertical-align: -4px;
  }
  .card-banner {
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 9px;
    margin-bottom: 10px;
  }
  .card-banner strong {
    font-size: 18px;
  }
  .play-area > .log {
    margin-top: 8px;
    max-height: none;
    flex: 1;
    font-size: 15.5px;
    line-height: 1.5;
    padding-bottom: 48px;
    mask-image: linear-gradient(#000 72%, transparent);
  }
  .log p {
    padding: 4px 8px;
  }
  .log .pawn,
  .log .log-flag {
    width: 18px;
    height: 18px;
    vertical-align: -4px;
  }
  .log .log-icon {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
  }

  /* Keep center overlays crisp & readable when board scales ~0.46x */
  .appearance > div {
    width: 90%;
    max-width: 620px;
  }
  .appearance p {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 28px;
  }
  .color-choices {
    grid-template-columns: repeat(4, 72px);
    gap: 28px;
    margin-bottom: 34px;
  }
  .color-choices button,
  .color-choices .pawn {
    width: 72px;
    height: 72px;
  }
  .appearance #appearanceDone {
    font-size: 26px;
    padding: 17px 32px;
    border-radius: 12px;
  }
  .gameover-card {
    padding: 24px;
  }
  .gameover-card h2 {
    font-size: 34px;
  }
  .gameover-winner,
  .gameover-table th,
  .gameover-table td,
  .gameover-actions button {
    font-size: 19px;
  }
  .property-modal .dialog button {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Compact 2-column players grid + segmented tabs */
  .right-panel {
    gap: 10px;
  }
  .players.box {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 6px;
  }
  .players .player {
    background: #1e1730;
    border: 1px solid #ffffff0d;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 44px;
    gap: 8px;
  }
  .players .player.active {
    background: #271e3f;
    box-shadow: inset 0 0 0 1.5px var(--pawn);
  }
  .players .player.active:before {
    display: none;
  }
  .players .player .pawn {
    width: 24px;
    height: 24px;
  }
  .players .player .info {
    font-size: 12.5px;
  }
  .players .player .cash {
    font-size: 13px;
  }

  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    background: #1e1730;
    padding: 5px;
    border-radius: 9px;
    border: 1px solid #ffffff10;
  }
  .mobile-tab {
    background: transparent;
    color: #b5a9d0;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .mobile-tab.is-active {
    background: linear-gradient(to top left, #6647e0, #8c47e0);
    color: #fff;
  }
  .tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ffffff24;
    font-size: 11px;
    line-height: 1;
  }
  .mobile-log-box {
    display: flex;
    flex-direction: column;
  }
  .mobile-log {
    max-height: 260px;
    overflow-y: auto;
    padding: 0 12px 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #c7bede;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .mobile-log p {
    margin: 0;
    padding: 6px 8px;
    background: #1f1731;
    border-radius: 6px;
  }
  .mobile-log p:first-child,
  .mobile-log p.log-highlight {
    color: #fff;
    font-weight: 600;
    background: #2b2144;
  }
  .mobile-log .pawn,
  .mobile-log .log-flag {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: -3px;
    margin-inline-end: 4px;
    object-fit: cover;
  }
  .mobile-log .log-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-inline-end: 3px;
    object-fit: contain;
  }

  .right-panel[data-mobile-tab="log"] #tradeBox,
  .right-panel[data-mobile-tab="log"] #propertyBox {
    display: none;
  }
  .right-panel[data-mobile-tab="trades"] #mobileLogBox,
  .right-panel[data-mobile-tab="trades"] #propertyBox {
    display: none;
  }
  .right-panel[data-mobile-tab="props"] #mobileLogBox,
  .right-panel[data-mobile-tab="props"] #tradeBox {
    display: none;
  }
  #setup {
    max-height: 460px;
    overflow-y: auto;
  }
  #properties {
    max-height: 280px;
  }
}

/* Native portrait mobile map vertical expansion (pushes bottom panels down cleanly) */
@media (max-width: 680px) and (min-height: 521px) {
  .board {
    height: 964px;
    grid-template-rows: 104px repeat(9, 84px) 104px;
  }
  .tile.left .tile-inner,
  .tile.right .tile-inner,
  .tile.left.special .tile-inner,
  .tile.right.special .tile-inner {
    width: 84px;
    height: 104px;
    left: 10px;
    top: -10px;
  }
  .tile.left .flag,
  .tile.right .flag {
    left: 26px;
  }
  .tile.left.special b,
  .tile.right.special b,
  .tile.left.special .special-icon,
  .tile.right.special .special-icon,
  .tile.left.luxury-tax .special-icon,
  .tile.left.luxury-tax .luxury-tax-amount,
  .tile.left.luxury-tax b {
    width: 84px;
  }
}
