/* City board: a low camera angle, raised tiles and an illustrated central district. */
.game-screen {
  background: radial-gradient(ellipse at 35% 24%, #25264c 0%, #141c33 42%, #0a1120 76%);
  min-height: 100vh;
}
.gamebar { background: rgba(13, 19, 36, .94); border-color: #333d5a; }
.game-layout { gap: clamp(18px, 3vw, 40px); }
.board-deck { min-width: 0; }
.board-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; max-width: 800px; margin: 0 auto; padding: 6px 10px;
}
.board-toolbar strong {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #bfc9e8;
}
.board-controls { display: flex; align-items: center; gap: 6px; }
.board-tool {
  min-height: 36px; padding: 5px 10px; border: 1px solid #475573; border-radius: 9px;
  background: #1a2441; color: #e7edfb; font-size: 12px; font-weight: 700;
}
.board-tool[aria-pressed="true"] { border-color: #75d9c8; background: #21434b; color: #bff9e8; }
.board-tool:focus-visible, .board .tile:focus-visible { outline: 2px solid #60e9d2; outline-offset: 2px; }
.board-zoom { display: none; }
.board-scroll { padding: 8px 12px 28px; perspective: 1800px; }
.board {
  --gap: 4px; border-radius: 21px; padding: 9px; isolation: isolate;
  background: linear-gradient(140deg, #545880, #2c3556 42%, #212d4a 76%, #3c5269);
  border: 1px solid #7788a6;
  box-shadow: 0 7px 0 #303b59, 0 12px 0 #18233d, 0 27px 42px #020716b5;
  transition: transform .25s ease;
}
.board[data-depth="true"] { transform: rotateX(10deg); transform-origin: center 42%; }
.board .tile {
  appearance: none; padding: 0 0 15%; text-align: center; border: 0; cursor: pointer;
  background: linear-gradient(150deg, #fff8e7, #e8dbc8); overflow: visible;
  border-radius: 6px; font: inherit; font-size: clamp(6px, 1.28cqw, 10.5px); line-height: 1.04;
  box-shadow: inset 0 1px #fffa, 0 2px 0 #988a81, 0 3px 5px #141b35;
}
.board .tile:hover, .board .tile:focus-visible { z-index: 3; filter: brightness(1.09); }
.board .tile.owned { box-shadow: inset 0 0 0 2px var(--pc), 0 2px 0 var(--pc), 0 3px 5px #141b35; }
.board .tile.has-turn { z-index: 2; outline: 2px solid #ffcf67; outline-offset: 1px; }
.board .tile.has-turn:focus-visible { outline-color: #60e9d2; }
.board .tile.corner { background: linear-gradient(145deg, #fff7df, #edc995); }
.board .tile.chest { background: linear-gradient(145deg, #eefff3, #bcdfcc); }
.board .tile.chance { background: linear-gradient(145deg, #fff1ec, #ecc2b5); }
.board .tile.tax { background: linear-gradient(145deg, #fff1e7, #efd0c7); }
.board .tile-bar { width: 100%; height: 13%; border-radius: 6px 6px 0 0; box-shadow: inset 0 1px #fff8, 0 1px #151b3533; }
.board .tile-name { width: 100%; padding: 1px; overflow-wrap: anywhere; font-weight: 800; }
.board .tile-icon { font-size: 1.55em; filter: drop-shadow(0 2px 1px #5e4a694d); }
.board .tile-price, .board .tile-sub { font-variant-numeric: tabular-nums; padding: 0 1px; }
.board .tile-own { top: 1px; right: 1px; width: 1.45em; height: 1.45em; font-size: .87em; }
.board .tile-tokens { bottom: -2px; flex-wrap: nowrap; }
.board .tok {
  width: 1.56em; height: 1.56em; min-width: 0; min-height: 0; flex: 0 1 auto;
  border: 1px solid var(--pc); background: radial-gradient(circle at 30% 20%, #fff 15%, #e4eaff 75%);
  box-shadow: 0 2px 0 var(--pc), 0 3px 5px #100d2caa;
}
.board .tok.active { transform: translateY(-2px); box-shadow: 0 2px 0 var(--pc), 0 0 0 1px #fac966, 0 4px 5px #100d2caa; }
.board .tok.hop { animation: city-hop .18s ease-out; }
@keyframes city-hop { 45% { transform: translateY(-65%) scale(1.12); } }
.board .tile-houses {
  top: 15%; right: 18%; bottom: auto; left: 4%; justify-content: center; gap: 1px;
  pointer-events: none;
}
.city-house {
  width: 1em; height: .96em; flex-shrink: 1;
  background: linear-gradient(125deg, #fff2b0 0 46%, #986748 47% 100%);
  clip-path: polygon(0 36%, 45% 0, 100% 30%, 100% 78%, 48% 100%, 0 75%);
}
.city-house.hotel { height: 1.35em; width: 1.3em; background: linear-gradient(125deg, #ffb789 0 45%, #923f66 46% 100%); }
.board .tile.has-buildings .tile-name { padding-top: .8em; }
.board .center {
  margin: 4px; border-radius: 13px; background: #1b2340;
  gap: 0; justify-content: space-between; padding: 2.2cqw 1.4cqw;
  box-shadow: inset 0 0 0 1px #e5ffff33, 0 2px 7px #111832;
}
.board .center::before { content: none; }
.board .city-art {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.board .city-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #10152deb 0%, #18213c73 29%, transparent 48%, #111b37a6 79%, #0e172de8);
}
.board .city-heading { display: grid; justify-items: center; gap: .7cqw; }
.board .brand-kicker { color: #9be9db; font-size: clamp(6px, 1.21cqw, 11px); letter-spacing: .23em; }
.board .brand-title {
  display: flex; align-items: baseline; gap: .22em; font-size: clamp(20px, 6.1cqw, 49px);
  line-height: 1.12; letter-spacing: -.055em; text-shadow: 0 3px 0 #19162c;
}
.board .brand-title span { color: #ffdc8d; background: none; filter: none; }
.board .dice-wrap {
  display: flex; align-items: center; justify-content: center; gap: 2.6cqw; margin: 1cqw 0 0;
  border-radius: 50%; padding: 1.9cqw 4.4cqw 2.8cqw; background: #1c294aaf;
  box-shadow: inset 0 0 0 1px #acbde13b, 0 5px 0 #17244385;
}
.board .die {
  width: clamp(24px, 8cqw, 60px); padding: 1.35cqw; border: 1px solid #fff8e7;
  box-shadow: 0 4px 0 #bb9a80, 0 6px 9px #101328a6, inset 0 1px #fff;
}
.board .city-hud {
  width: min(88%, 370px); display: grid; justify-items: center; gap: .55cqw;
  border-radius: 10px; padding: 1.05cqw 1cqw; background: #101830e8; border: 1px solid #a9c6ef38;
}
.board .center-msg { min-height: auto; max-width: 100%; font-size: clamp(8px, 1.6cqw, 13px); }
.board .center-sub { color: #d6def0; font-size: clamp(7px, 1.25cqw, 11px); }
.board .center-stats span { color: #d6def0; font-size: clamp(6px, 1.14cqw, 10px); }
.game-side .panel { border-color: #354361; background: #17233b; }
.game-side .turn-card.is-my-turn { border-color: #69cdb2; }
.game-side .action-panel .hint { color: #bdc9df; }
.city-tile-dialog {
  width: min(calc(100% - 28px), 350px); padding: 20px; margin: auto;
  background: #17233b; color: #f3f7ff; border: 1px solid #5a6b8d; border-radius: 16px;
  box-shadow: 0 15px 50px #020818bb;
}
.city-tile-dialog::backdrop { background: #0a1025b8; }
.city-tile-dialog h2 { margin: 8px 0 12px; font-size: 20px; line-height: 1.2; }
.city-tile-dialog p { margin: 5px 0; color: #ccd9ee; font-size: 14px; }
.city-tile-dialog .city-tile-close { float: right; margin-left: 6px; }
.city-tile-dialog .eyebrow { color: #93ead3; }
.music-volume { color: #cfdef5; font-size: 11px; display: flex; align-items: center; gap: 5px; }
.music-volume input { width: 66px; accent-color: #80e0c8; }

@media (max-width: 760px) {
  .board-toolbar { margin: 0 2px; }
  .board-toolbar strong { display: none; }
  .board-tool { min-height: 40px; }
  .board-zoom { display: inline-flex; align-items: center; }
  .board-depth { display: none; }
  .board-scroll { justify-content: flex-start; padding: 6px 7px 20px; }
  .board { width: 100%; --gap: 2px; padding: 5px; border-radius: 12px; }
  .board-scroll.is-zoomed .board { width: 600px; }
  .board[data-depth="true"] { transform: none; }
  .board .tile, .board .tile-bar { border-radius: 3px; }
  .board .center { margin: 2px; border-radius: 9px; }
  .board .tile.has-turn { outline-width: 1px; }
  .board .tile-tokens { bottom: 0; }
  .board .tok { font-size: .8em; }
  .mobile-dock .buy-box { display: flex; }
  .mobile-dock .hint { display: block; margin-top: 4px; }
  .game-layout { padding-bottom: 190px; }
  .game-side .log-panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .board, .board .tile, .board .tok, .board .die { transition: none; animation: none !important; }
}

/* Viền đồng, mặt bàn xanh đêm và thẻ bài lấy cảm hứng từ mẫu. */
.game-screen {
  background: radial-gradient(ellipse at 33% 38%, #274b7b 0%, #18274b 37%, #101629 74%);
}
.board {
  border: 3px solid #ffd789;
  background: linear-gradient(145deg, #574a59, #243150 30%, #192341 75%, #826340);
  box-shadow: 0 4px 0 #8c5c31, 0 9px 0 #ba884d, 0 13px 0 #563827,
    0 0 24px #f9be714f, 0 23px 38px #050b1dbd, inset 0 0 0 1px #fae1ae9c;
}
.board[data-depth="true"] { transform: rotateX(7deg); }
.board .tile {
  background: linear-gradient(145deg, #fff9ec, #efdeca);
  box-shadow: inset 0 1px #fff, 0 2px 0 #a78b77, 0 3px 5px #141b35;
}
.board .tile.corner { background: linear-gradient(145deg, #fff8e7, #f0d2a2); }
.board .center {
  border: 2px solid #e4b767;
  box-shadow: 0 0 13px #101a36, inset 0 1px 1px #fff3bd;
  padding-top: 4cqw;
}
.board .city-art { object-fit: fill; }
.board .city-veil {
  background: linear-gradient(180deg, #11183540, #151d3d13 39%, transparent 62%, #111830cb);
}
.board .brand-title {
  color: #ffe494; font-weight: 950; letter-spacing: -.035em;
  text-shadow: 0 1px #fff4bc, 0 2px #d89f43, 0 4px #956222, 0 7px 5px #16172f,
    0 0 22px #f9bd6c64;
}
.board .city-deck {
  position: absolute; display: grid; place-items: center; width: 22%; aspect-ratio: 1.65;
  z-index: 1; border: 2px solid #fff0ca; border-radius: 10%;
  background: linear-gradient(145deg, #f16c65, #a92a3d);
  box-shadow: inset 0 0 0 2px #ffd8be50, 0 2px #e1b1ac, 0 4px #f4d0c0,
    0 6px #b67877, 0 8px #83384d, 0 12px 14px #080c27a8;
  font-size: clamp(7px, 2.2cqw, 19px); text-transform: uppercase; font-weight: 900;
  color: #fff7e7; text-shadow: 0 2px 2px #582039;
  transform: rotate(-28deg) skewX(12deg);
}
.board .city-deck-chance { left: 7%; top: 23%; }
.board .city-deck-fortune {
  right: 7%; bottom: 20%; transform: rotate(26deg) skewX(-12deg);
  background: linear-gradient(145deg, #ffbb5a, #db761f);
  box-shadow: inset 0 0 0 2px #fff0c075, 0 2px #e4bd8d, 0 4px #f7dcac,
    0 6px #b48a60, 0 8px #7f4e3e, 0 12px 14px #080c27a8;
}
.board .dice-wrap { margin-top: 12cqw; background: transparent; box-shadow: none; }
.board .die {
  border-color: #fff4df; background: linear-gradient(150deg, #fffaf0, #f1ddcf);
  box-shadow: 2px 5px 0 #bd9b89, 3px 8px 0 #87685d, 4px 11px 11px #1b1835b5;
}
.board .die i.on { background: radial-gradient(circle at 33% 25%, #dc6670, #852b40 74%); }
.board .city-hud { border-color: #d6b57a55; background: #121b34ee; }
.game-side .panel { background: linear-gradient(145deg, #212e4b, #161f36); border-color: #4d5877; }
.game-side .turn-card { border-color: #cba664; box-shadow: 0 0 18px #e6b96829; }
.game-side .players-panel, .game-side .log-panel { box-shadow: 0 2px 18px #8e63d92b; }
.avatar-choice-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 14px 0;
}
.avatar-choice {
  display: grid; justify-items: center; gap: 5px; border: 1px solid #526487;
  background: #1b2943; border-radius: 12px; padding: 8px 4px; color: #ebf1fa;
  font: inherit; font-size: 11px; cursor: pointer;
}
.avatar-choice img, .avatar-choice i { width: 48px; height: 48px; border-radius: 11px; }
.avatar-choice i { display: grid; place-items: center; font-style: normal; background: #334462; }
.avatar-choice[aria-pressed="true"] { outline: 2px solid #ffcf7c; background: #354566; }
.avatar-choice:focus-visible { outline: 2px solid #a4f6e3; }
.profile-panel #profileAvatarBtn { margin-bottom: 8px; }
.avatar-save-status { min-height: 1.4em; margin-bottom: 5px; color: #ffcf99; font-size: 12px; }

@media (max-width: 760px) {
  .board { border-width: 2px; }
  .board[data-depth="true"] { transform: none; }
  .board .center { border-width: 1px; }
  .board .city-deck { border-width: 1px; }
  .board .die { box-shadow: 1px 3px 0 #bd9b89, 2px 5px 0 #87685d, 3px 7px 6px #1b1835aa; }
}
