:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #263d34;
  background: #f4f5ef;
  font-synthesis: none;
  --green: #285643;
  --ink: #263d34;
  --paper: #fbfcf7;
  --muted: #768079;
  --line: #dce1d5;
  --red: #bc4b40;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cfaa4f;
  outline-offset: 3px;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1512px;
  margin: auto;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: 1px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--green);
  color: #f7f8eb;
  font-size: 35px;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.text-button {
  background: transparent;
  color: #627168;
  padding: 10px 5px;
  font-size: 13px;
}
.text-button:hover {
  color: var(--green);
}
.primary,
.secondary {
  border-radius: 9px;
  padding: 14px 22px;
  font-weight: 650;
  line-height: 1.4;
  transition:
    transform 0.15s,
    background 0.15s;
}
.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 3px 0 #163d2e;
}
.primary:hover:not(:disabled) {
  background: #34674f;
  transform: translateY(-1px);
}
.primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #163d2e;
}
.secondary {
  background: #e8ede3;
  color: #355343;
  border: 1px solid #d5dece;
}
.secondary:hover:not(:disabled) {
  background: #dce6d5;
}
.full {
  width: 100%;
}
.landing {
  max-width: 1420px;
  margin: 60px auto 45px;
  display: grid;
  grid-template-columns: 390px 1fr;
  align-items: center;
  gap: 70px;
  padding: 0 60px;
  overflow: hidden;
}
.landing-copy {
  padding: 16px 0;
}
.small-chip {
  font-size: 12px;
  padding: 7px 12px;
  border: 1px solid #cad6c4;
  display: inline-block;
  border-radius: 30px;
  color: #4f7057;
  background: #edf1e6;
}
h1 {
  font-size: 58px;
  line-height: 1.2;
  letter-spacing: -2px;
  margin: 26px 0 22px;
  font-weight: 800;
}
.intro {
  font-size: 15px;
  line-height: 1.9;
  color: #728076;
  margin-bottom: 30px;
}
.join-card {
  background: #fff;
  border: 1px solid #e0e5d8;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 38px #203d2d06;
}
.join-card label,
#trade-form > label {
  font-size: 12px;
  display: block;
  margin: 0 0 9px;
  font-weight: 600;
}
.join-card input,
.join-card select {
  margin-bottom: 20px;
  width: 100%;
}
input,
select {
  border: 1px solid #d4dccf;
  border-radius: 7px;
  padding: 12px;
  color: var(--ink);
  background: #fbfcf8;
  min-width: 0;
}
input::placeholder {
  color: #99a196;
}
.join-card select {
  font-size: 13px;
}
.join-card button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-note {
  font-size: 11px;
  color: #879183;
  line-height: 1.8;
  text-align: center;
  margin: 14px 0 0;
}
.landing-foot {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #748372;
  max-width: 350px;
}
.landing-foot span {
  color: #abb8a4;
}
.landing-art {
  position: relative;
  padding: 35px 0 55px;
  min-width: 0;
}
.landing-art .board {
  transform: rotate(-7deg);
  box-shadow:
    15px 25px 0 #b7c7ad,
    20px 45px 55px #304c3b20;
  pointer-events: none;
  width: 100%;
  max-width: 730px;
}
.floating-token {
  position: absolute;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 6px #263d3430);
}
.token-car {
  font-size: 90px;
  bottom: 10px;
  right: 0;
  transform: rotate(-8deg);
}
.token-house {
  font-size: 94px;
  top: -9px;
  right: 15px;
  color: var(--green);
  transform: rotate(12deg);
}
.site-footer {
  max-width: 1300px;
  margin: 0 auto;
  padding: 26px 35px;
  border-top: 1px solid var(--line);
  color: #8b9687;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.board {
  display: grid;
  grid-template-columns: 1.4fr repeat(9, 1fr) 1.4fr;
  grid-template-rows: 1.4fr repeat(9, 1fr) 1.4fr;
  aspect-ratio: 1;
  background: #c2cdb9;
  border: 3px solid #52664f;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
}
.tile {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #fbfcf4;
  color: #364732;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: inset 0 -4px 0 var(--owner);
  transition: background 0.15s;
}
.tile:hover {
  background: #f1edcc;
}
.tile.selected {
  outline: 2px solid #d7ad40;
  outline-offset: -2px;
}
.tile-band {
  background: var(--group);
  width: 100%;
  height: 16%;
  min-height: 4px;
  color: white;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}
.tile:not(.street) .tile-band {
  background: none;
  height: 0;
  min-height: 0;
}
.tile-name {
  font-size: clamp(8px, 0.75vw, 12px);
  font-weight: 650;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  padding-inline: 2px;
  max-width: 100%;
}
.tile-name i {
  font-style: normal;
  font-size: clamp(14px, 1.5vw, 25px);
  margin-bottom: 3px;
  color: #678c6a;
  font-weight: 500;
}
.tile.chance .tile-name i {
  color: #b98748;
}
.tile.chest .tile-name i {
  color: #588d9c;
}
.tile-price {
  font-size: clamp(8px, 0.65vw, 10px);
  color: #7d8875;
  padding-bottom: 6px;
}
.tile.start,
.tile.parking,
.tile.jail,
.tile.gojail {
  background: #e9eedc;
}
.tile.start .tile-name i {
  color: #bd5842;
  font-size: 32px;
}
.tile.mortgaged {
  background: #daddd4;
}
.mortgage-mark {
  position: absolute;
  left: 2px;
  top: 4px;
  font-size: 9px;
  color: #9a5b43;
}
.pieces {
  position: absolute;
  bottom: 4px;
  left: 1px;
  right: 1px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.piece {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: #fff;
  border: 2px solid var(--player);
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 2px 4px #0003;
  margin-left: -4px;
  transition: transform 0.1s;
}
.piece.hopping {
  transform: translateY(-8px);
}
.board-center {
  grid-column: 2/11;
  grid-row: 2/11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 32px;
  background: #e7eedc;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(#93a98025 1px, transparent 1px);
  background-size: 14px 14px;
}
.board-center:before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #bfceb4;
  pointer-events: none;
}
.board-center > * {
  position: relative;
}
.center-emblem {
  font-size: 70px;
  color: #58764e;
  line-height: 1;
}
.board-center h2 {
  font-size: clamp(22px, 2.8vw, 40px);
  letter-spacing: -1px;
  line-height: 1.4;
  margin: 16px 0;
}
.board-center p {
  color: #708365;
  line-height: 1.8;
  font-size: 13px;
}
.preview-dice {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  transform: rotate(10deg);
}
.die {
  width: 64px;
  height: 64px;
  border-radius: 13px;
  background: #fffef7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  padding: 11px;
  box-shadow:
    0 5px 0 #ced6c2,
    0 8px 12px #35482f19;
  transform: rotate(-8deg);
  border: 1px solid #dde3d2;
}
.die:nth-child(2) {
  transform: rotate(11deg);
}
.die .dot {
  background: #3f5743;
  border-radius: 50%;
}
.dice-tray {
  display: flex;
  gap: 25px;
  margin: 25px 0 18px;
}
.dice-tray.rolling .die {
  animation: roll 0.3s infinite;
}
.turn-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
}
.turn-label > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.center-hint {
  margin: 6px 0 18px !important;
  max-width: 350px;
  min-height: 24px;
}
.game-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  max-width: 100%;
  min-height: 60px;
  justify-content: center;
}
.game-controls .primary {
  font-size: 16px;
}
.game-controls .secondary {
  font-size: 12px;
  padding: 10px;
}
.turn-timer {
  font-size: 10px;
  color: #8b9a80;
  margin: 18px 0 0;
}
.turn-timer span {
  font-weight: 700;
}
.center-footer {
  position: absolute;
  bottom: 30px;
  font-size: 10px;
  color: #89957e;
}
.center-footer span {
  margin: 0 9px;
}
.center-footer b {
  font-weight: 500;
  margin-left: 7px;
}
.event-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f9f6e9;
  max-width: 380px;
  padding: 10px 14px;
  margin-top: 14px;
  border: 1px solid #e2dbc1;
  border-radius: 6px;
  font-size: 11px;
}
.event-card strong {
  white-space: nowrap;
  color: #a47738;
}
.event-card span {
  color: #83775c;
}
.connection {
  font-size: 11px;
  color: #a87953;
}
.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  background: currentColor;
  border-radius: 50%;
}
.connection.live {
  color: #608764;
}
.play-layout {
  max-width: 1330px;
  margin: 24px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 0 35px;
}
.board-area {
  min-width: 0;
}
.board-toolbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7f8c77;
  margin-bottom: 12px;
}
.board-toolbar b {
  margin-left: 7px;
  font-size: 11px;
}
.board-toolbar > div {
  display: flex;
  gap: 15px;
  align-items: center;
}
.board-toolbar .secondary {
  padding: 8px 14px;
  font-size: 12px;
}
.board-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: #8b9584;
  font-size: 10px;
}
.side-panel {
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.side-panel h2,
.my-assets h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin: 0 0 15px;
}
.side-panel h2 small,
.my-assets h2 small {
  font-size: 10px;
  color: #98a08f;
  font-weight: 400;
}
.player-list {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  margin: 3px -10px;
}
.player-row.active {
  background: #fff;
  border-color: #cedcc4;
  box-shadow: 0 4px 15px #3b512a08;
}
.avatar {
  width: 36px;
  height: 36px;
  background: #e5ecdd;
  border: 1px solid var(--player);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.player-info {
  flex: 1;
  min-width: 0;
}
.player-info strong {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-info em {
  font-style: normal;
  font-size: 9px;
  font-weight: 400;
  background: #e8efdf;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 3px;
}
.player-info small,
.player-cash small {
  display: block;
  font-size: 9px;
  color: #96a08e;
  margin-top: 5px;
}
.player-cash {
  text-align: right;
}
.player-cash b {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.bankrupt {
  opacity: 0.45;
}
.asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.asset-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  border: 1px solid #dae2d1;
  padding: 7px;
  background: #fcfdf8;
  font-size: 10px;
  color: #5b6e52;
}
.asset-chip i {
  height: 12px;
  width: 4px;
  background: var(--group);
  border-radius: 2px;
}
.asset-chip small {
  font-size: 9px;
  color: #9b8060;
}
.empty-note {
  font-size: 12px;
  line-height: 1.9;
  color: #95a08d;
}
.activity {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  flex: 1;
}
.activity-feed {
  max-height: 230px;
  overflow: auto;
  scrollbar-width: thin;
}
.activity-feed p {
  font-size: 11px;
  color: #94a08d;
  line-height: 1.7;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed #e0e5d8;
}
.activity-feed p.latest {
  color: #4c6941;
}
.lobby {
  max-width: 1280px;
  margin: 65px auto;
  padding: 0 45px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 75px;
  align-items: center;
}
.lobby h1 {
  font-size: 48px;
  margin-top: 15px;
}
.eyebrow {
  font-size: 12px;
  color: #7b8d70;
  letter-spacing: 1px;
}
.invite-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px;
  border: 1px dashed #bdcfb3;
  border-radius: 12px;
  font-size: 12px;
  background: #edf2e6;
}
.invite-box .primary {
  padding: 10px 15px;
  font-size: 12px;
}
.seats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.seat {
  background: #eaf0e3;
  border: 1px dashed #d0dbc6;
  min-height: 122px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
  padding: 12px;
}
.seat.occupied {
  background: #fcfdf8;
  border: 1px solid #d4dfca;
}
.seat-token {
  font-size: 30px;
  margin-bottom: 7px;
  color: #bdcbb2;
}
.seat strong {
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat small {
  font-size: 10px;
  color: #91a086;
  margin-top: 5px;
}
.seat .text-button {
  font-size: 10px;
  padding: 6px 0 0;
}
.lobby-controls {
  display: flex;
  gap: 14px;
}
.lobby-controls .primary {
  flex: 1;
}
.lobby-preview {
  transform: rotate(5deg);
}
.lobby-preview .board {
  box-shadow: 8px 14px 0 #bfcdb3;
}
.resume-link {
  display: block;
  font-size: 12px;
  color: #55734b;
  margin-top: 20px;
}
.invitation {
  font-size: 12px;
  color: #5f8252;
}
.bid-row {
  display: flex;
  gap: 8px;
}
.bid-row input {
  width: 90px;
}
.bid-row button {
  flex: 1;
}
.danger {
  color: #ab5449;
}
.danger-button {
  background: #a24d44;
}
.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #142e2266;
  backdrop-filter: blur(5px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  position: relative;
  background: #fbfcf7;
  width: 450px;
  max-width: 100%;
  max-height: 90dvh;
  overflow: auto;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 25px 100px #142d2445;
}
.modal.wide {
  width: 680px;
}
.close-modal {
  position: absolute;
  right: 12px;
  top: 10px;
  border-radius: 50%;
  background: #edf0e7;
  color: #7d8a74;
  width: 30px;
  height: 30px;
  font-size: 22px;
  z-index: 2;
}
.modal > h2 {
  font-size: 23px;
  line-height: 1.5;
  margin: 5px 15px 25px 0;
}
.modal > p {
  font-size: 13px;
  line-height: 1.9;
  color: #73836b;
}
.modal > .primary,
.modal > .secondary {
  margin: 10px 8px 0 0;
}
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
}
.rules h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.rules p {
  font-size: 12px;
  line-height: 1.9;
  color: #7d8975;
  margin: 0;
}
.deed {
  border: 1px solid #cfd7c4;
  border-radius: 5px;
  padding: 7px;
}
.deed-heading {
  background: var(--group);
  color: white;
  text-align: center;
  padding: 20px 8px;
}
.deed-heading small {
  font-size: 11px;
  opacity: 0.8;
}
.deed-heading h2 {
  font-size: 25px;
  margin: 10px 0 2px;
  letter-spacing: 3px;
}
.deed-owner {
  font-size: 11px;
  text-align: center;
  padding: 13px;
  color: #7d8975;
}
.deed-price {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid #dfe5d6;
  border-bottom: 1px solid #dfe5d6;
}
.rent-table {
  padding: 10px;
}
.rent-table > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px;
  color: #829178;
}
.rent-table .current-rent {
  background: #eaf0e1;
  color: #37582c;
  border-radius: 3px;
}
.deed > p {
  padding: 0 15px;
  font-size: 12px;
  line-height: 1.8;
}
.deed-current {
  text-align: center;
  font-weight: 700;
}
.deed-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}
.deed-controls button {
  font-size: 11px;
  padding: 11px 5px;
}
.deed-controls button:first-child {
  grid-column: 1/-1;
}
.special-description {
  padding: 20px !important;
}
.trade-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.trade-columns h3 {
  font-size: 13px;
}
.trade-columns label {
  font-size: 11px;
}
.trade-columns input[type="number"] {
  width: 100%;
  margin: 8px 0 15px;
}
.trade-property {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 0;
  line-height: 1.5;
}
.trade-property input {
  accent-color: var(--green);
}
#trade-to {
  width: 100%;
}
.trade-summary {
  padding: 10px 15px;
  background: #edf2e6;
  border-radius: 10px;
}
.trade-summary h3 {
  font-size: 13px;
}
.trade-summary p {
  font-size: 12px;
  line-height: 1.9;
  color: #78896d;
}
.winner-crown {
  color: #b58b3b;
  font-size: 70px;
  text-align: center;
  line-height: 1.2;
}
.ranking {
  margin: 20px 0;
}
.ranking > div {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #dce3d2;
  font-size: 13px;
}
.ranking span {
  flex: 1;
}
.ranking > div > b {
  color: #9aab8c;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: 90vw;
  border-radius: 10px;
  padding: 14px 22px;
  background: #223b2e;
  color: white;
  font-size: 13px;
  z-index: 40;
  box-shadow: 0 8px 30px #0003;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes roll {
  0% {
    transform: rotate(-15deg) translateY(0);
  }
  50% {
    transform: rotate(20deg) translateY(-12px);
  }
  100% {
    transform: rotate(-15deg) translateY(0);
  }
}
@media (min-width: 1500px) {
  .play-layout {
    max-width: 1430px;
    grid-template-columns: 850px 340px;
    gap: 50px;
  }
  .tile-name {
    font-size: 12px;
  }
  .tile-price {
    font-size: 10px;
  }
}
@media (max-width: 1100px) {
  .landing {
    grid-template-columns: 340px 1fr;
    gap: 40px;
    padding: 0 35px;
    margin-top: 40px;
  }
  .landing-art {
    margin-right: -90px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    padding: 0 22px;
  }
  .board-center {
    padding: 15px;
  }
  .event-card {
    max-width: 90%;
    font-size: 10px;
  }
  .center-footer {
    bottom: 24px;
  }
  .dice-tray {
    margin: 18px 0 10px;
  }
  .side-panel {
    gap: 20px;
  }
  .lobby {
    gap: 35px;
  }
  .game-controls {
    min-width: 190px;
  }
  .tile-name {
    font-size: 9px;
  }
  .tile-price {
    font-size: 8px;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: 72px;
    padding: 0 20px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 29px;
  }
  .brand small {
    font-size: 8px;
  }
  .top-actions {
    gap: 10px;
  }
  .top-actions .text-button {
    font-size: 11px;
  }
  .landing {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: 20px auto;
    padding: 0 24px;
    gap: 10px;
    overflow: visible;
  }
  .landing-copy {
    z-index: 1;
  }
  .landing h1 {
    font-size: 48px;
  }
  .landing-art {
    margin: 0;
    padding: 35px 15px 55px;
    order: 2;
  }
  .landing-art .board {
    max-width: 470px;
  }
  .landing-copy .intro {
    margin-bottom: 20px;
  }
  .join-card {
    padding: 22px;
  }
  .site-footer {
    margin: 20px;
    padding: 20px 0;
    gap: 10px;
    font-size: 10px;
  }
  .landing-foot {
    margin-top: 22px;
  }
  .token-car {
    font-size: 70px;
  }
  .token-house {
    font-size: 70px;
    top: 5px;
  }
  .lobby {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 30px auto;
    padding: 0 20px;
  }
  .lobby h1 {
    font-size: 38px;
  }
  .lobby-preview {
    display: none;
  }
  .play-layout {
    display: flex;
    flex-direction: column;
    max-width: 710px;
    padding: 0 12px;
    margin-top: 10px;
    gap: 20px;
  }
  .side-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 8px;
  }
  .player-list {
    grid-row: 1/3;
    border-bottom: 0;
  }
  .activity {
    padding-top: 15px;
  }
  .activity-feed {
    max-height: 190px;
  }
  .board-toolbar {
    margin-bottom: 7px;
  }
  .board-caption {
    font-size: 9px;
  }
  .tile-name {
    font-size: clamp(7px, 1.5vw, 11px);
  }
  .tile-name i {
    font-size: clamp(13px, 3vw, 23px);
  }
  .tile-price {
    font-size: clamp(7px, 1.5vw, 9px);
  }
  .tile-band {
    font-size: 9px;
  }
  .connection {
    font-size: 9px;
  }
  .board-center h2 {
    font-size: 30px;
  }
  .center-footer {
    bottom: 22px;
  }
  .dice-tray .die {
    width: 58px;
    height: 58px;
  }
  .piece {
    width: 21px;
    height: 21px;
    font-size: 14px;
  }
  .event-card {
    margin-top: 10px;
    padding: 6px 8px;
  }
  .center-hint {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }
}
@media (max-width: 480px) {
  .topbar {
    padding: 0 14px;
  }
  .top-actions {
    gap: 7px;
  }
  .brand {
    gap: 8px;
    font-size: 15px;
  }
  .topbar .connection {
    display: none;
  }
  .brand small {
    letter-spacing: 2px;
  }
  .board {
    gap: 1px;
    padding: 2px;
    border-width: 2px;
    border-radius: 6px;
  }
  .board-center {
    padding: 14px 12px;
  }
  .board-center:before {
    inset: 7px;
  }
  .turn-label {
    font-size: 13px;
  }
  .dice-tray {
    gap: 17px;
    margin: 13px 0 9px;
  }
  .die,
  .dice-tray .die {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    padding: 8px;
    gap: 3px;
    box-shadow: 0 3px 0 #c9d5bd;
  }
  .center-hint {
    font-size: 10px !important;
    margin: 3px 0 10px !important;
    line-height: 1.5 !important;
    min-height: 0;
  }
  .game-controls {
    min-width: 160px;
    gap: 6px;
    min-height: 36px;
  }
  .game-controls .primary {
    padding: 9px 12px;
    font-size: 12px;
  }
  .game-controls .secondary {
    padding: 6px 9px;
    font-size: 10px;
  }
  .turn-timer {
    font-size: 8px;
    margin-top: 10px;
  }
  .center-footer {
    bottom: 11px;
    font-size: 8px;
  }
  .event-card {
    display: none;
  }
  .waiting {
    font-size: 10px !important;
    max-width: 180px;
  }
  .tile-name {
    font-size: 7px;
    letter-spacing: -0.3px;
  }
  .tile-name i {
    font-size: 14px;
    margin-bottom: 1px;
  }
  .tile.start .tile-name i {
    font-size: 20px;
  }
  .tile-price {
    font-size: 7px;
    padding-bottom: 2px;
  }
  .pieces {
    bottom: 1px;
  }
  .piece {
    width: 17px;
    height: 17px;
    font-size: 11px;
    border-width: 1.5px;
    margin-left: -5px;
  }
  .board-caption {
    font-size: 8px;
    gap: 8px;
  }
  .board-toolbar {
    height: 35px;
    font-size: 10px;
  }
  .board-toolbar .text-button {
    font-size: 10px;
  }
  .board-toolbar .secondary {
    font-size: 10px;
    padding: 7px 10px;
  }
  .board-toolbar > div {
    gap: 8px;
  }
  .side-panel {
    gap: 15px;
    grid-template-columns: 1fr;
  }
  .player-list {
    grid-row: auto;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
  }
  .player-row {
    padding: 10px;
  }
  .player-info strong {
    font-size: 12px;
  }
  .player-cash b {
    font-size: 17px;
  }
  .activity-feed {
    max-height: 200px;
  }
  .rules {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .modal {
    padding: 25px 20px;
    border-radius: 14px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .modal > h2 {
    font-size: 20px;
  }
  .preview-board .board-center h2 {
    font-size: 23px;
    margin: 10px 0;
  }
  .preview-board .board-center p {
    font-size: 10px;
    margin: 5px 0;
  }
  .center-emblem {
    font-size: 45px;
  }
  .preview-dice {
    margin-top: 12px;
  }
  .winner-crown {
    font-size: 48px;
  }
  .board-center h2 {
    font-size: 22px;
  }
  .bid-row input {
    padding: 7px;
    width: 65px;
    font-size: 12px;
  }
  .seats {
    gap: 8px;
  }
  .seat {
    padding: 10px;
    min-height: 112px;
  }
  .lobby-controls {
    gap: 10px;
  }
  .lobby-controls button {
    font-size: 12px;
    padding: 12px;
  }
  .invite-box {
    padding: 12px;
    gap: 10px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the whole board visible on desktop-height screens. */
@media (min-width: 801px) {
  .play-layout {
    max-width: min(1330px, calc(100dvh + 195px));
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }
}
