.illustrated-center { background: #25314f; }
.illustrated-center .board-caption { z-index: 1; color: #fff0d4; background: #15192edc; padding: .35rem .65rem; border: 1px solid #edd1a67a; border-radius: .65rem; }
.illustrated-center .board-caption .board-mark { display: inline; font-size: clamp(.75rem,3cqw,1.6rem); }
.illustrated-center .board-caption .board-size { color: #e7c99b; }
.illustrated-center .deck-zone { z-index: 1; inset: auto 5% 20%; }
.illustrated-center .deck-stack { width: 12cqw; height: 8cqw; }
.tile { overflow: visible; }
.tile-name,.tile-price,.tile-symbol { pointer-events: none; }
.tokens { z-index: 4; bottom: 3%; }
.token { width: 34% !important; max-height: 2.9cqw; border: 2px solid #fff6; box-shadow: 0 2px 3px #0008; background-color: #fff2d9; border-radius: 50%; }
.token:only-child { width: 39% !important; }
.portrait.fullbody { aspect-ratio: 2 / 3; }
.seat-badge.fullbody { width: 2rem; height: 3rem; }
.account-portrait.fullbody { width: 1.25rem; height: 1.9rem; }
.token.fullbody, .token.fullbody:only-child { width: 2.2cqw !important; height: 3.3cqw; max-height: none; border-radius: .25rem; background-color: #fff0; }
.profile-preview > .portrait.fullbody { width: 5.3rem; height: auto; }
.login-mascot.fullbody { width: 30%; height: auto; aspect-ratio: 2 / 3; bottom: 3%; max-height: 93%; }
.lobby-mascot.fullbody { width: 20%; height: 98%; aspect-ratio: 2 / 3; }
@media (max-width:600px) { .login-mascot.fullbody { width: 31%; max-height: 14rem; top: auto; bottom: auto; align-self: start; } }
/* Wider perimeter, transparent full-body pawns and speech. */
.board {
  grid-template-columns: 1.65fr repeat(var(--inner),minmax(0,1fr)) 1.65fr;
  grid-template-rows: 1.65fr repeat(var(--inner),minmax(0,1fr)) 1.65fr;
}
.tile { justify-content: flex-start; padding-top: .45cqw; }
.tile-name { font-size: 1.08em; }
.tile-price { font-variant-numeric: tabular-nums; }
.tile-owner {
  position: absolute; bottom: 0; inset-inline: 0; background: var(--owner);
  color: #fff; text-shadow: 0 1px 2px #0008; font-size: clamp(6px,1.2cqw,11px) !important;
  line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .13em .2em;
}
.tile-current { outline: 3px solid #e69d36; outline-offset: -3px; }
.tokens { bottom: 16%; left: auto; right: 0; width: auto; max-width: 100%; gap: .1cqw; }
.token.fullbody,.token.fullbody:only-child {
  position: relative; width: 3.6cqw !important; height: 5.4cqw;
  border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  background-color: transparent;
  filter: drop-shadow(0 1px 1px #000c) drop-shadow(0 0 2px #fff9);
  transform-origin: center bottom;
}
.token.fullbody:only-child { width: 4cqw !important; height: 6cqw; }
.token.fullbody.video-portrait { overflow: visible; }
.token .naiwa-video { border-radius: 20%; }
.pawn-ring {
  position: absolute; bottom: -.4cqw; right: -.15cqw; width: 1.8cqw; height: 1.8cqw;
  min-width: 10px; min-height: 10px; border: 2px solid; border-color: inherit;
  border-radius: 50%; background: #fff3d3; color: #302536; font-size: clamp(6px,1.25cqw,11px);
  display: grid; place-items: center; line-height: 1; font-weight: 900;
}
.speech-bubble {
  position: absolute; right: 0; bottom: 105%; z-index: 40;
  display: block; white-space: normal; overflow-wrap: anywhere;
  min-width: min(24cqw,170px); max-width: min(30cqw,210px);
  color: #30243b; background: #fff8e7; border: 1px solid #bba177;
  border-radius: .7rem .7rem .1rem .7rem; padding: .55rem .7rem; text-align: start;
  font-size: clamp(.65rem,2cqw,.95rem); line-height: 1.4; box-shadow: 0 4px 12px #0005;
  animation: bubble-appear .18s ease-out;
}
.edge-top .speech-bubble { bottom: auto; top: 105%; border-radius: .1rem .7rem .7rem .7rem; }
.edge-left .speech-bubble { right: auto; left: 0; }
@keyframes bubble-appear { from {opacity:0;transform:translateY(5px);} to{opacity:1;transform:translateY(0);} }
@media(prefers-reduced-motion:reduce) {.speech-bubble { animation:none; }}
.current-tier { background: #f8dda0; color: #542e25; outline: 1px solid #c78b37; border-radius: .2rem; padding-inline: .25rem; font-weight: 800; }
.current-tier span::after { content: " · 当前"; font-size: .8em; }
.photo-portrait { background: #fff7e7 !important; position: relative; overflow: hidden; }
.meme-picture { width: 100%; height: 100%; display: block; object-fit: contain; }
.token.photo-portrait { position: relative; width: 4.5cqw !important; height: 5.2cqw; max-height: none; border-radius: .35rem; border: 2px solid; border-color: inherit; }
.token.photo-portrait .pawn-ring { z-index: 2; }
.lobby-mascot.fullbody { width: auto; height: 98%; aspect-ratio: 2 / 3; }
.login-mascot.fullbody { width: auto; height: 90%; aspect-ratio: 2 / 3; }
@media(max-width:600px) { .login-mascot.fullbody { width: auto; height: 14rem; right: 0; top: 0; bottom: auto; } }
html[data-busy="true"] button { cursor: progress; }
/* Balanced tile typography with separate space for labels and pawns. */
.tile { padding: 0; font-size: clamp(8px,1.6cqw,18px); }
.tile-copy {
  position: absolute; inset: .55cqw .5cqw .8cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .38cqw; pointer-events: none;
}
.tile-name {
  display: block; max-width: 100%; font-family: system-ui,"Microsoft YaHei",sans-serif;
  font-size: 1em; font-weight: 650; line-height: 1.25; letter-spacing: .025em;
  word-break: keep-all; overflow-wrap: normal; text-wrap: balance;
}
.tile-copy .tile-price {
  display: block; font-size: .78em; line-height: 1.15; font-weight: 500;
  letter-spacing: .025em; color: #6d5849; white-space: nowrap;
}
.tile-copy .tile-symbol { display: block; font-size: 1.45em; line-height: 1; color: #a35e50; margin-bottom: .12cqw; }
.corner-tile .tile-copy { gap: .65cqw; }
.corner-tile .tile-name { font-size: 1.08em; }
.corner-tile .tile-symbol { font-size: 1.85em; }
.tile.owned .tile-copy { bottom: 1.75cqw; }
.tile.has-pawns.edge-top .tile-copy,.tile.has-pawns.edge-bottom .tile-copy { bottom: 48%; }
.tile.has-pawns.edge-left:not(.corner-tile) .tile-copy,
.tile.has-pawns.edge-right:not(.corner-tile) .tile-copy { right: 40%; left: .35cqw; }
.tile.has-pawns.corner-tile .tile-copy { right: 30%; bottom: 22%; }
.tile-copy .houses { font-size: .9em !important; color: #38766f; line-height: 1; letter-spacing: .05em; }
.tile-owner { font-weight: 500; letter-spacing: .04em; padding-block: .15em; }
/* Tile stages: purchase, ownership, then buildings. */
.tile .tile-copy { gap: .8cqw; }
.tile .tile-name { line-height: 1.4; }
.tile-copy .purchase-price { color: #796455; font-size: .8em; font-weight: 450; }
.tile-copy .rent-price {
  color: #7d3e64; background: #eddce8; border-radius: .28rem;
  padding: .22em .42em; font-weight: 750; font-variant-numeric: tabular-nums; font-size: .78em;
}
.tile.owned .tile-copy { inset: .45cqw .35cqw 2cqw; gap: .32cqw; }
.tile.developed .tile-copy { bottom: 3.2cqw; gap: .24cqw; }
.tile-meta {
  position: absolute; inset: auto .3cqw .25cqw; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: .2cqw; pointer-events: none;
}
.tile-meta .tile-owner {
  position: static; inset: auto; display: block; max-width: 100%; width: 100%;
  font-size: clamp(6px,1.1cqw,12px) !important; padding: .16em .2em; border-radius: .2rem;
}
.tile-meta .houses { display: block; font-size: clamp(7px,1.4cqw,16px) !important; line-height: 1; letter-spacing: .08em; color: #33796e; }
.tile.owned.edge-left:not(.corner-tile) .tile-copy,
.tile.developed.edge-left:not(.corner-tile) .tile-copy {
  inset: .3cqw 4.2cqw .3cqw .3cqw; align-items: center;
}
.tile.owned.edge-right:not(.corner-tile) .tile-copy,
.tile.developed.edge-right:not(.corner-tile) .tile-copy {
  inset: .3cqw .3cqw .3cqw 4.2cqw; align-items: center;
}
.tile.owned.edge-left:not(.corner-tile) .tile-meta {
  inset: .4cqw .25cqw .4cqw auto; width: 3.5cqw; justify-content: center;
}
.tile.owned.edge-right:not(.corner-tile) .tile-meta {
  inset: .4cqw auto .4cqw .25cqw; width: 3.5cqw; justify-content: center;
}
.tile.owned.edge-left:not(.corner-tile) .tile-name,
.tile.owned.edge-right:not(.corner-tile) .tile-name { font-size: .9em; line-height: 1.2; }
.tile.owned.edge-left:not(.corner-tile) .tile-owner,
.tile.owned.edge-right:not(.corner-tile) .tile-owner { font-size: clamp(6px,.95cqw,10px) !important; }
.tile.owned.has-pawns.edge-top .tile-copy,.tile.owned.has-pawns.edge-bottom .tile-copy { bottom: 50%; }
.tile.owned.has-pawns.edge-top .tokens,.tile.owned.has-pawns.edge-bottom .tokens { bottom: 2cqw; }
.tile.developed.has-pawns.edge-top .tokens,.tile.developed.has-pawns.edge-bottom .tokens { bottom: 3cqw; }
.draw-recipient { margin-top: .85rem; color: #e6d5b9; text-align: center; font-size: .95rem; }
.tile.station.edge-left .tile-copy,.tile.station.edge-right .tile-copy,
.tile.utility.edge-left .tile-copy,.tile.utility.edge-right .tile-copy { gap: .15cqw; }
.tile.station.edge-left .tile-name,.tile.station.edge-right .tile-name,
.tile.utility.edge-left .tile-name,.tile.utility.edge-right .tile-name { line-height: 1.15; }
.tile.station.edge-left .tile-symbol,.tile.station.edge-right .tile-symbol,
.tile.utility.edge-left .tile-symbol,.tile.utility.edge-right .tile-symbol { font-size: 1.1em; margin: 0; }
