@font-face {
  font-family: "Yanone";
  src: url("/fonts/YanoneKaffeesatz-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-weight: 600 800;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito_wght_.ttf") format("truetype");
  font-display: swap;
  font-weight: 300 800;
}

:root {
  color-scheme: dark;
  --bg: #0b1018;
  --bg-deep: #060910;
  --surface: rgba(16, 22, 35, 0.94);
  --surface-strong: rgba(21, 29, 45, 0.98);
  --surface-soft: rgba(31, 41, 61, 0.78);
  --surface-card: rgba(20, 27, 41, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(120, 150, 220, 0.24);
  --ink: #eef4ff;
  --muted: #95a3c2;
  --accent: #4f83ff;
  --accent-strong: #77a0ff;
  --accent-soft: rgba(79, 131, 255, 0.14);
  --gold: #f3bf67;
  --warning: #ffb15f;
  --danger: #ff7b83;
  --success: #5fd3a4;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
  --radius: 1rem;
  --radius-sm: 0.78rem;
  --font-display: "Yanone", "Trebuchet MS", "Gill Sans", "Avenir Next", sans-serif;
  --font-body: "Nunito", "Verdana", "Trebuchet MS", sans-serif;
  --font-mono: "Courier New", monospace;
  --group-brown: #8d613d;
  --group-lightBlue: #6bb4d2;
  --group-pink: #c76d9d;
  --group-orange: #d2873b;
  --group-red: #d25f5c;
  --group-yellow: #c7b84f;
  --group-green: #58a875;
  --group-blue: #5d7ce2;
  --rail-left-width: 19.25rem;
  --rail-right-width: 21rem;
  --board-max-size: 69rem;
  --viewport-gutter-y: 2rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(79, 131, 255, 0.16), transparent 14rem),
    radial-gradient(circle at 84% 16%, rgba(44, 160, 255, 0.12), transparent 12rem),
    linear-gradient(180deg, #0e1420 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
}

.backdrop {
  position: fixed;
  inset: auto auto -8rem -8rem;
  width: 24rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 131, 255, 0.24), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.app-shell {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: min(124rem, calc(100vw - 0.75rem));
  min-height: calc(100vh - var(--viewport-gutter-y));
  margin: calc(var(--viewport-gutter-y) / 2) auto;
}

body.body--locked {
  overflow: hidden;
}

body.body--locked .app-shell {
  height: calc(100vh - var(--viewport-gutter-y));
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(21, 28, 43, 0.98), rgba(13, 18, 29, 0.94)),
    radial-gradient(circle at top, rgba(79, 131, 255, 0.08), transparent 18rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.reveal {
  animation: rise 420ms ease both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.topbar h1,
.panel h2,
.front-hero h2,
.front-list h3,
.player-card h3,
.tile__name,
.auction-modal h2 {
  margin: 0;
  font-family: var(--font-display);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #6a99ff, #2f5de6);
  color: #f6fbff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 24px rgba(10, 22, 52, 0.36);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.topbar h1 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow,
.label,
.field span,
.chat-entry__meta,
.badge,
.panel h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button--icon {
  min-width: 2.75rem;
  padding-inline: 0;
}

.button__icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.button__icon svg,
.button__icon img {
  width: 100%;
  height: 100%;
}

.workspace {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns:
    minmax(15rem, var(--rail-left-width))
    minmax(0, 1fr)
    minmax(16rem, var(--rail-right-width));
  gap: 0.45rem;
  align-items: stretch;
  min-height: 0;
}

.workspace--home {
  grid-template-columns: minmax(0, 1fr);
}

.board-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 0.35rem;
}

.frontpage-stage[hidden],
.table-stage[hidden],
.left-rail[hidden],
.right-rail[hidden],
.panel[hidden] {
  display: none;
}

.frontpage-stage {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  width: min(44rem, 100%);
  margin: 0 auto;
}

.front-launch {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.front-launch__form {
  display: grid;
  gap: 0.7rem;
}

.front-launch__field input {
  min-height: 3.35rem;
  font-size: 1.1rem;
}

.front-launch__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.button--hero {
  min-height: 3.35rem;
  font-size: 1.08rem;
}

.button--wide {
  justify-content: flex-start;
  gap: 0.65rem;
}

.front-hero {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 0.15rem);
  background:
    radial-gradient(circle at top right, rgba(79, 131, 255, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(23, 31, 48, 0.98), rgba(15, 21, 32, 0.94));
}

.front-hero--home {
  min-height: 13rem;
  align-content: end;
}

.front-hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.front-hero__lead {
  margin: 0.3rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.6;
}

.front-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.front-stat {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.front-stat strong,
.metric strong,
.board-hud__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.front-stat span,
.metric span,
.board-hud__meta span {
  color: var(--muted);
  font-size: 0.8rem;
}

.frontpage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.front-card {
  display: grid;
  gap: 0.85rem;
}

.front-list {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 0.15rem);
  background: rgba(255, 255, 255, 0.02);
}

.front-list__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.front-list__items {
  display: grid;
  gap: 0.85rem;
}

.lobby-listing {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.lobby-listing__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.lobby-listing__meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.table-stage {
  display: grid;
  gap: 1rem;
  min-height: 0;
}

.table-layout {
  display: grid;
  min-height: 0;
}

.board-frame {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: calc(100vh - var(--viewport-gutter-y));
  padding: 0.06rem;
  border-radius: calc(var(--radius) - 0.15rem);
  background: transparent;
  border: none;
  box-shadow: none;
}

.tile-popover-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.board-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}

.board {
  display: grid;
  gap: 0;
  width: min(
    100%,
    var(--board-max-size),
    calc(100vw - 35rem),
    calc(100vh - var(--viewport-gutter-y))
  );
  height: min(
    100%,
    var(--board-max-size),
    calc(100vw - 35rem),
    calc(100vh - var(--viewport-gutter-y))
  );
  margin: 0 auto;
  aspect-ratio: 1;
}

.board-center-dock {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(13.25rem, calc(100% - 7rem));
  display: grid;
  gap: 0.92rem;
  z-index: 5;
  pointer-events: none;
}

.board-feed-dock {
  position: static;
  width: 100%;
  min-width: 0;
  z-index: 5;
  pointer-events: auto;
  border: none;
  background: transparent;
  box-shadow: none;
}

.center-dock-card {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(16, 22, 34, 0.96), rgba(11, 16, 25, 0.92)),
    radial-gradient(circle at top, rgba(79, 131, 255, 0.1), transparent 12rem);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.center-dock-card > .stack,
.panel > .stack {
  padding: 1rem;
}

.center-dock-card--summary > .stack {
  padding: 0.6rem 0.65rem;
}

.workspace--game .center-dock-card--summary {
  border: none;
  background: transparent;
  box-shadow: none;
}

.workspace--game .center-dock-card--summary > .stack {
  padding: 0;
}

.board-feed-dock > .stack {
  display: grid;
  gap: 0.18rem;
  padding: 0;
}

.board-hud {
  display: grid;
  gap: 0.9rem;
  text-align: center;
}

.board-hud--lobby {
  text-align: left;
}

.board-hud__dice {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
}

.board-hud__slot {
  width: 100%;
  min-height: 4.5rem;
  display: grid;
  justify-items: center;
  align-content: center;
}

.board-hud__slot--actions {
  gap: 0.55rem;
  align-content: start;
}

.board-hud__turn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 4.5rem;
  margin: 0;
}

.board-hud__turn-token {
  width: 1.28rem;
  height: 1.28rem;
  font-size: 0.5rem;
  border-width: 1.5px;
  box-shadow: 0 0 0 2px rgba(7, 11, 19, 0.5), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.board-hud__turn-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  color: rgba(244, 248, 255, 0.9);
  font-size: 0.84rem;
  line-height: 1;
}

.board-hud__turn-text strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.board-hud__turn-line--slot {
  width: 100%;
}

.board-hud__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.board-hud__caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.board-hud__controls {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  width: 100%;
}

.board-hud__action-strip {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.board-hud__watch-state {
  display: flex;
  justify-content: center;
}

.board-hud__action-strip .button {
  flex: 0 1 auto;
  min-width: 0;
  padding-inline: 1rem;
}

.board-hud__controls .button {
  flex: 1 1 8.75rem;
}

.button--board-square {
  min-width: 7rem;
  min-height: 3.1rem;
  padding: 0.84rem 0.8rem;
  border-radius: 0.96rem;
}

.tile,
.action-block,
.player-card,
.chat-entry,
.metric {
  border: 1px solid var(--line);
  border-radius: 0.82rem;
}

.tile {
  --tile-pad-top: 0.38rem;
  --tile-pad-x: 0.4rem;
  --tile-pad-bottom: 0.34rem;
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(20, 28, 42, 0.99), rgba(13, 18, 29, 1)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.tile__content {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: var(--tile-pad-top) var(--tile-pad-x) var(--tile-pad-bottom);
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(
      180deg,
      rgba(24, 31, 48, 0.98),
      rgba(16, 22, 34, 0.96)
    ),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 7rem);
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tile--owned .tile__content {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--owner-color, transparent) 18%, rgba(24, 31, 48, 0.98)),
      rgba(16, 22, 34, 0.96)
    ),
    radial-gradient(
    circle at 50% 100%,
    color-mix(in srgb, var(--owner-color, transparent) 30%, transparent),
    transparent 62%
  ),
    linear-gradient(180deg, rgba(24, 31, 48, 0.98), rgba(16, 22, 34, 0.96)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 7rem);
}

.tile--edge-top .tile__content,
.tile--edge-bottom .tile__content,
.tile--corner .tile__content {
  width: 100%;
  height: 100%;
}

.tile--edge-right .tile__content,
.tile--edge-left .tile__content {
  width: 78%;
  height: 128%;
}

.tile__content::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0.36rem;
  background: var(--tile-accent, rgba(255, 255, 255, 0.18));
}

.tile__content::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(79, 131, 255, 0.12)),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.tile--bank_share .tile__content::before {
  display: none;
}

.tile--property,
.tile--bank_share {
  cursor: pointer;
}

.tile--property:hover .tile__content,
.tile--bank_share:hover .tile__content {
  border-color: rgba(168, 193, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 18px rgba(0, 0, 0, 0.18);
}

.tile--property:hover .tile__content::after,
.tile--bank_share:hover .tile__content::after {
  opacity: 1;
}

.tile--occupied .tile__content {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--occupant-color, var(--accent)) 58%, transparent),
    0 0 0 5px color-mix(in srgb, var(--occupant-color, var(--accent)) 14%, transparent),
    0 12px 20px rgba(0, 0, 0, 0.2);
}

.tile.is-selected .tile__content,
.tile.is-current .tile__content {
  border-color: rgba(119, 160, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(79, 131, 255, 0.16);
}

.tile__name {
  font-family: var(--font-display);
  width: 100%;
  font-size: clamp(0.76rem, 1.08vw, 1.12rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  margin-top: 0.18rem;
  min-height: 1.34em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
}

.tile__topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.3rem;
  min-height: 1.74rem;
}

.tile__kind {
  color: var(--muted);
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile__markers {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tile__stamp {
  position: relative;
  width: fit-content;
  min-width: 1.34rem;
  min-height: 0.94rem;
  padding: 0.42rem 0.2rem 0.06rem;
  border-radius: 0.64rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.26rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.tile__stamp::before,
.tile__stamp::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tile__meta,
.tile__footer,
.tile__tokens,
.badge-row,
.inline-list,
.button-row,
.dice-row,
.board-hud__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tile__meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.42rem;
  gap: 0.18rem;
}

.tile__footer {
  margin-top: auto;
  margin-inline: calc(var(--tile-pad-x) * -1);
  margin-bottom: calc(var(--tile-pad-bottom) * -1);
  min-height: 1.68rem;
  width: calc(100% + var(--tile-pad-x) * 2);
  justify-content: center;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tile__footer--price {
  padding: 0.18rem 0.3rem 0.28rem;
  background: linear-gradient(180deg, rgba(166, 176, 193, 0.22), rgba(60, 69, 84, 0.96));
}

.tile__footer--owned {
  min-height: 2.08rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--owner-color, var(--accent)) 84%, rgba(255, 255, 255, 0.16)),
    color-mix(in srgb, var(--owner-color, var(--accent)) 100%, rgba(10, 16, 28, 0.08))
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tile__price {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.22vw, 1.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.tile__buildings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  color: rgba(248, 252, 255, 0.98);
}

.tile__building-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.34), 0 3px 10px rgba(0, 0, 0, 0.26);
}

.tile__building-indicator svg {
  width: 1rem;
  height: 1rem;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
}

.tile__building-indicator strong {
  display: inline-flex;
  align-items: center;
  font-size: 0.94rem;
  line-height: 1;
}

.tile__building-indicator--hotel svg {
  width: 1.16rem;
  height: 1.16rem;
}

.tile--edge-top .tile__footer {
  order: -1;
  margin-top: calc(var(--tile-pad-top) * -1);
  margin-bottom: 0;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tile__owner {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  min-width: 0;
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.46rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.tile__owner::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.16);
}

.tile__owner.is-owned::before {
  background: var(--owner-color, var(--accent));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.tile__meta-copy {
  font-size: 0.42rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tile__tokens {
  position: absolute;
  top: 52%;
  left: 50%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, min-content);
  align-content: center;
  justify-content: center;
  justify-items: center;
  gap: 0.08rem;
  transform: translate(-50%, -50%);
  overflow: visible;
  padding: 0;
  z-index: 2;
}

.tile__tokens[data-count="0"] {
  display: none;
}

.tile__tokens:not([data-count="0"]) {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tile__tokens [data-player-token] {
  display: contents;
}

.tile__tokens .token {
  width: 3rem;
  height: 3rem;
  border-width: 2.5px;
  font-size: 1rem;
  box-shadow:
    0 0 0 4px rgba(11, 17, 28, 0.96),
    0 0 0 10px color-mix(in srgb, var(--occupant-color, var(--accent)) 28%, transparent),
    0 16px 28px rgba(0, 0, 0, 0.5);
  flex: 0 0 auto;
}

.tile__tokens .token--active-turn {
  animation: current-turn-fade 1.9s ease-in-out infinite;
  box-shadow:
    0 0 0 4px rgba(11, 17, 28, 0.96),
    0 0 0 11px color-mix(in srgb, var(--occupant-color, var(--accent)) 30%, transparent),
    0 0 24px color-mix(in srgb, var(--occupant-color, var(--accent)) 24%, transparent),
    0 18px 30px rgba(0, 0, 0, 0.52);
}

.tile__tokens .token--avatar svg {
  width: 78%;
  height: 78%;
}

.tile--icon-only .tile__content {
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.18rem;
  padding: 0.42rem 0.32rem 0.46rem;
}

.tile--icon-only .tile__content::before,
.tile--icon-only .tile__topline {
  display: none;
}

.tile--icon-only .tile__stamp--hero {
  width: min(68%, 3.85rem);
  margin: 0.08rem auto 0;
}

.tile__name--hero {
  margin-top: auto;
  padding-inline: 0.08rem;
  font-size: clamp(0.58rem, 0.92vw, 0.88rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tile__subline {
  text-align: center;
  color: rgba(214, 223, 238, 0.74);
  text-shadow: none;
}

.tile__subline--hero {
  margin-top: 0.1rem;
  font-size: clamp(0.42rem, 0.68vw, 0.62rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.tile--icon-only .tile__tokens {
  top: 67%;
  transform: translate(-50%, -50%);
}

.tile--jail .tile__tokens--jailed {
  top: 66%;
  left: 36%;
  transform: translate(-50%, -50%);
}

.tile--jail .tile__tokens--visitors {
  top: 28%;
  left: 76%;
  gap: 0.04rem;
  transform: translate(-50%, -50%);
}

.tile--jail .tile__tokens--visitors .token {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.78rem;
  box-shadow:
    0 0 0 3px rgba(11, 17, 28, 0.94),
    0 0 0 7px color-mix(in srgb, var(--occupant-color, var(--accent)) 20%, transparent),
    0 10px 18px rgba(0, 0, 0, 0.36);
}

.tile__stamp--hero {
  width: min(72%, 4.1rem);
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  margin: auto;
  padding: 0;
  border-radius: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 28px rgba(0, 0, 0, 0.24);
}

.tile__stamp--hero::before,
.tile__stamp--hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tile--edge-bottom .tile__content {
  transform: none;
  transform-origin: center;
}

.tile--edge-right .tile__content {
  transform: rotate(-90deg);
  transform-origin: center;
}

.tile--edge-left .tile__content {
  transform: rotate(90deg);
  transform-origin: center;
}

.tile--edge-bottom .tile__content::before {
  inset: 0 0 auto 0;
  height: 0.36rem;
}

.tile--edge-right .tile__content::before,
.tile--edge-left .tile__content::before {
  inset: 0 0 auto 0;
  width: auto;
  height: 0.36rem;
}

.tile--edge-right .tile__tokens .token {
  transform: rotate(90deg);
}

.tile--edge-left .tile__tokens .token {
  transform: rotate(-90deg);
}

.tile .badge {
  padding: 0.16rem 0.38rem;
  font-size: 0.54rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.26rem 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
}

.badge--accent {
  background: rgba(79, 131, 255, 0.16);
  color: var(--accent-strong);
}

.badge--warning {
  background: rgba(243, 191, 103, 0.16);
  color: var(--warning);
}

.badge--danger {
  background: rgba(255, 123, 131, 0.16);
  color: var(--danger);
}

.tile--hero-start .tile__stamp--hero {
  background: linear-gradient(180deg, #3dc7b1, #1d7e91);
}

.tile--hero-start .tile__stamp--hero::before {
  width: 54%;
  height: 54%;
  border: 0.18rem solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.tile--hero-start .tile__stamp--hero::after {
  width: 0.56rem;
  height: 0.56rem;
  margin-left: 0.52rem;
  border-top: 0.18rem solid rgba(255, 255, 255, 0.96);
  border-right: 0.18rem solid rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -50%) rotate(38deg);
}

.tile--hero-jail .tile__stamp--hero {
  background: linear-gradient(180deg, #b47b46, #7d512f);
}

.tile--hero-jail .tile__stamp--hero::before {
  width: 62%;
  height: 52%;
  border-radius: 0.55rem 0.55rem 0.22rem 0.22rem;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(
      90deg,
      transparent 14%,
      rgba(255, 255, 255, 0.9) 14% 22%,
      transparent 22% 38%,
      rgba(255, 255, 255, 0.9) 38% 46%,
      transparent 46% 62%,
      rgba(255, 255, 255, 0.9) 62% 70%,
      transparent 70% 86%,
      rgba(255, 255, 255, 0.9) 86% 94%,
      transparent 94%
    ),
    rgba(9, 18, 30, 0.28);
}

.tile--hero-free-parking .tile__stamp--hero {
  background: linear-gradient(180deg, #3eab7a, #206447);
}

.tile--hero-free-parking .tile__stamp--hero::before {
  width: 62%;
  height: 62%;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 0.16rem rgba(255, 255, 255, 0.84);
}

.tile--hero-free-parking .tile__stamp--hero::after {
  content: "P";
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tile--hero-go-to-jail .tile__stamp--hero,
.tile--tax .tile__stamp:not(.tile__stamp--hero) {
  background: linear-gradient(180deg, #c06368, #7d3846);
}

.tile--tax .tile__stamp:not(.tile__stamp--hero)::before {
  top: 0.18rem;
  left: 50%;
  width: 0.92rem;
  height: 1rem;
  border-radius: 0.16rem;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
}

.tile--tax .tile__stamp:not(.tile__stamp--hero)::after {
  top: 0.42rem;
  left: 50%;
  width: 0.48rem;
  height: 0.08rem;
  transform: translateX(-50%);
  background: rgba(192, 99, 104, 0.95);
  box-shadow: 0 0.18rem 0 rgba(192, 99, 104, 0.95), 0 0.36rem 0 rgba(192, 99, 104, 0.95);
}

.tile--hero-go-to-jail .tile__stamp--hero::before {
  width: 54%;
  height: 0.2rem;
  margin-left: -0.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    -0.22rem -0.42rem 0 0 rgba(255, 255, 255, 0.24),
    -0.22rem 0.42rem 0 0 rgba(255, 255, 255, 0.24);
}

.tile--hero-go-to-jail .tile__stamp--hero::after {
  width: 0.8rem;
  height: 0.8rem;
  margin-left: 0.64rem;
  border-top: 0.2rem solid rgba(255, 255, 255, 0.96);
  border-right: 0.2rem solid rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -50%) rotate(45deg);
}

.tile--event .tile__stamp:not(.tile__stamp--hero) {
  background: linear-gradient(180deg, #5d84d8, #304c9c);
}

.tile--event .tile__stamp:not(.tile__stamp--hero)::before {
  top: 0.24rem;
  left: 50%;
  width: 0.96rem;
  height: 0.96rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.96) 0 20%,
    rgba(255, 255, 255, 0.18) 21% 100%
  );
}

.tile--event .tile__stamp:not(.tile__stamp--hero)::after {
  top: 0.16rem;
  left: 50%;
  width: 0.1rem;
  height: 1.1rem;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0.46rem 0.3rem 0 -0.01rem rgba(255, 255, 255, 0.72),
    -0.46rem 0.3rem 0 -0.01rem rgba(255, 255, 255, 0.72);
}

.tile--hero-income-tax .tile__stamp--hero {
  background: linear-gradient(180deg, #cf6e75, #8d414d);
}

.tile--hero-income-tax .tile__stamp--hero::before {
  width: 58%;
  height: 68%;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 -0.14rem 0 rgba(192, 99, 104, 0.18);
}

.tile--hero-income-tax .tile__stamp--hero::after {
  width: 38%;
  height: 0.12rem;
  background: rgba(192, 99, 104, 0.95);
  box-shadow: 0 0.22rem 0 rgba(192, 99, 104, 0.95), 0 0.44rem 0 rgba(192, 99, 104, 0.95);
}

.tile--hero-luxury-tax .tile__stamp--hero {
  background: linear-gradient(180deg, #d7a05b, #8f5f2f);
}

.tile--hero-luxury-tax .tile__stamp--hero::before {
  width: 44%;
  height: 44%;
  border-radius: 0.16rem;
  background: rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%) rotate(45deg);
}

.tile--hero-luxury-tax .tile__stamp--hero::after {
  width: 0.22rem;
  height: 0.22rem;
  margin-left: 0.62rem;
  margin-top: -0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -0.22rem 0.28rem 0 0 rgba(255, 255, 255, 0.54);
}

.tile--hero-credit-bureau .tile__stamp--hero {
  background: linear-gradient(180deg, #5d84d8, #314f9f);
}

.tile--hero-credit-bureau .tile__stamp--hero::before {
  width: 62%;
  height: 68%;
  border-radius: 0.24rem;
  background: rgba(255, 255, 255, 0.92);
}

.tile--hero-credit-bureau .tile__stamp--hero::after {
  width: 42%;
  height: 0.12rem;
  background: rgba(93, 132, 216, 0.98);
  box-shadow: 0 -0.24rem 0 rgba(93, 132, 216, 0.98), 0 0.24rem 0 rgba(93, 132, 216, 0.98);
}

.tile--hero-policy-review .tile__stamp--hero {
  background: linear-gradient(180deg, #7379de, #43489c);
}

.tile--hero-policy-review .tile__stamp--hero::before {
  width: 60%;
  height: 70%;
  border-radius: 0.28rem;
  background: rgba(255, 255, 255, 0.92);
}

.tile--hero-policy-review .tile__stamp--hero::after {
  width: 0.8rem;
  height: 0.38rem;
  margin-top: 0.1rem;
  border-left: 0.18rem solid rgba(115, 121, 222, 0.98);
  border-bottom: 0.18rem solid rgba(115, 121, 222, 0.98);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.tile--hero-audit-desk .tile__stamp--hero {
  background: linear-gradient(180deg, #4db0a1, #246f6b);
}

.tile--hero-audit-desk .tile__stamp--hero::before {
  width: 46%;
  height: 46%;
  border: 0.18rem solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
}

.tile--hero-audit-desk .tile__stamp--hero::after {
  width: 0.72rem;
  height: 0.18rem;
  margin-left: 0.56rem;
  margin-top: 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -50%) rotate(45deg);
}

.tile--hero-market-watch .tile__stamp--hero {
  background: linear-gradient(180deg, #49a9c7, #266b88);
}

.tile--hero-market-watch .tile__stamp--hero::before {
  width: 62%;
  height: 54%;
  border-bottom: 0.16rem solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, transparent 46%, rgba(255, 255, 255, 0.94) 46%) left / 22% 100%
    no-repeat,
    linear-gradient(180deg, transparent 18%, rgba(255, 255, 255, 0.94) 18%) center / 22% 100%
    no-repeat,
    linear-gradient(180deg, transparent 62%, rgba(255, 255, 255, 0.94) 62%) right / 22% 100%
    no-repeat;
}

.tile--hero-market-watch .tile__stamp--hero::after {
  width: 0.68rem;
  height: 0.68rem;
  margin-left: 0.42rem;
  margin-top: -0.34rem;
  border-top: 0.18rem solid rgba(255, 255, 255, 0.96);
  border-right: 0.18rem solid rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -50%) rotate(28deg);
}

.tile--bank_share .tile__stamp--bank-share {
  width: min(68%, 3.6rem);
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.02;
  margin: 0.12rem auto 0;
  padding: 0;
  border-radius: 0.84rem;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #dfc36d, #a88225);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 18px rgba(158, 124, 40, 0.18);
}

.tile--bank_share .tile__stamp--bank-share::before {
  top: 60%;
  left: 50%;
  width: 56%;
  height: 38%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0 12%,
      transparent 12% 76%,
      rgba(255, 255, 255, 0.96) 76% 100%
    ),
    linear-gradient(
    90deg,
    transparent 0 8%,
    rgba(255, 255, 255, 0.96) 8% 20%,
    transparent 20% 32%,
    rgba(255, 255, 255, 0.96) 32% 44%,
    transparent 44% 56%,
    rgba(255, 255, 255, 0.96) 56% 68%,
    transparent 68% 80%,
    rgba(255, 255, 255, 0.96) 80% 92%,
    transparent 92% 100%
  );
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.tile--bank_share .tile__stamp--bank-share::after {
  top: 29%;
  left: 50%;
  width: 66%;
  height: 21%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.96);
  clip-path: polygon(50% 0, 93% 100%, 7% 100%);
}

.token {
  width: 1.44rem;
  height: 1.44rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--token-color, var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.token--avatar {
  position: relative;
  overflow: hidden;
}

.token--avatar svg {
  width: 62%;
  height: 62%;
}

.token__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.token__status--jail {
  color: rgba(245, 248, 255, 0.95);
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.1), rgba(8, 13, 22, 0.28));
}

.token__status--jail svg {
  width: 88%;
  height: 88%;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.34));
}

.left-rail,
.right-rail {
  display: grid;
  gap: 0.5rem;
  align-content: stretch;
  max-height: 100%;
  min-height: 0;
}

.left-rail__section,
.right-rail__section {
  min-height: 0;
}

.left-rail {
  grid-template-rows: auto minmax(0, 1fr) minmax(15rem, 17.5rem);
}

.right-rail {
  grid-template-rows: auto minmax(0, 1fr);
}

.left-rail__spacer {
  min-height: 0;
}

#roomSection,
#chatSection,
#controlSection,
#playersSection {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

#roomPanel,
#controlPanel,
#playersPanel {
  min-height: 0;
  overflow-y: auto;
}

#roomPanel,
#playersPanel {
  scrollbar-width: thin;
}

#roomPanel,
#playersPanel,
#controlPanel {
  overflow-x: hidden;
}

#playersPanel {
  display: grid;
  gap: 0.42rem;
  padding-right: 0.08rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
}

.panel h2 {
  font-size: 0.92rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.action-block,
.player-card,
.log-entry,
.chat-entry,
.metric {
  background: rgba(255, 255, 255, 0.03);
}

.action-block {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
}

.tile-focus {
  display: grid;
  gap: 0.7rem;
}

.tile-focus--compact {
  gap: 0.55rem;
}

.tile-focus__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tile-focus__actions {
  display: grid;
  gap: 0.6rem;
}

.tile-focus__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tile-focus__hint {
  color: var(--muted);
  line-height: 1.45;
}

.tile-popover {
  position: absolute;
  width: min(16.1rem, calc(100% - 1.5rem));
  display: grid;
  gap: 0.5rem;
  padding: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: linear-gradient(180deg, #141b29, #0d131f);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.34);
  pointer-events: auto;
}

.tile-popover::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  background: #111826;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-50%) rotate(45deg);
}

.tile-popover[data-side="right"]::after {
  left: -0.42rem;
}

.tile-popover[data-side="left"]::after {
  right: -0.42rem;
  transform: translateY(-50%) rotate(225deg);
}

.tile-popover__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.tile-popover__header h3 {
  margin: 0.1rem 0 0;
  font-size: 1rem;
}

.tile-popover__close {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: none;
}

.tile-popover__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.tile-popover__actions {
  display: grid;
  gap: 0.45rem;
}

.tile-popover__action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.tile-popover__action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tile-popover__mortgage {
  justify-self: start;
  width: fit-content;
}

.tile-popover__icon-action {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 0.72rem;
}

.tile-popover__icon-action svg {
  width: 0.95rem;
  height: 0.95rem;
}

.tile-popover__icon-action--trash {
  margin-left: auto;
}

.tile-popover__details dl {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.tile-popover__details dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.tile-popover__details dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.tile-popover__details dd {
  margin: 0;
  text-align: right;
}

.tile-detail {
  display: grid;
  gap: 0.7rem;
}

.tile-detail__owner-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tile-detail__section-label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-detail__owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.24rem 0.5rem 0.24rem 0.24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tile-detail__owner-chip .token {
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.56rem;
  box-shadow: 0 0 0 2px rgba(7, 11, 19, 0.46), 0 6px 14px rgba(0, 0, 0, 0.22);
}

.tile-detail__status-badge {
  margin-inline: auto;
}

.tile-detail__owner-block,
.tile-detail__status-row {
  display: flex;
  justify-content: center;
}

.tile-detail__rent-list {
  display: grid;
  gap: 0.22rem;
}

.tile-detail__rent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.28rem 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tile-detail__rent-row:last-child {
  border-bottom: none;
}

.tile-detail__rent-row span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.tile-detail__rent-row strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1;
}

.tile-detail__rent-row.is-current {
  margin-inline: -0.18rem;
  padding-inline: 0.28rem;
  border-bottom-color: transparent;
  border-radius: 0.76rem;
  background: linear-gradient(180deg, rgba(79, 131, 255, 0.2), rgba(44, 74, 142, 0.24));
  box-shadow: inset 0 0 0 1px rgba(119, 160, 255, 0.22);
}

.tile-detail__price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
  padding-top: 0.62rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tile-detail__price-row--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile-detail__price-stat {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0 0.1rem;
  text-align: center;
}

.tile-detail__price-stat span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile-detail__price-stat strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1;
}

.tile-detail__price-stat--icon {
  gap: 0.12rem;
}

.tile-detail__price-icon {
  width: 1rem;
  height: 1rem;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}

.tile-detail__price-icon svg {
  width: 0.94rem;
  height: 0.94rem;
}

.label,
.field span {
  color: var(--muted);
  font-size: 0.74rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 19, 0.8);
  color: var(--ink);
}

input[readonly] {
  color: var(--muted);
  cursor: text;
}

input:focus,
select:focus,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(79, 131, 255, 0.32);
  outline-offset: 2px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.copy-field > * {
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.82rem;
  padding: 0.72rem 0.95rem;
  background: linear-gradient(180deg, #5b8dff, #2e63ea);
  color: #f8fbff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 24px rgba(13, 45, 120, 0.28);
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.button--secondary {
  background: linear-gradient(180deg, #f3c875, #d69a34);
  color: #412500;
}

.button--ghost {
  background: rgba(79, 131, 255, 0.1);
  color: var(--accent-strong);
  box-shadow: none;
}

.button--danger {
  background: linear-gradient(180deg, #ff8e95, #d35264);
  color: #fff6f7;
}

.button--board {
  min-width: 7.8rem;
}

.button--sm {
  padding: 0.5rem 0.72rem;
}

.button--quiet {
  padding: 0.32rem 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.button--danger-outline {
  background: rgba(255, 123, 131, 0.12);
  color: var(--danger);
}

.manual-dice {
  padding: 0.2rem 0.3rem 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.manual-dice summary {
  cursor: pointer;
  padding: 0.4rem 0.45rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.manual-dice summary::-webkit-details-marker {
  display: none;
}

.die-face {
  width: 4.35rem;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.26rem;
  padding: 0.64rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #fefefe, #cfd7e8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 16px 32px rgba(0, 0, 0, 0.24);
  transform-origin: center;
}

.die-face__pip {
  width: 0.58rem;
  height: 0.58rem;
  margin: auto;
  border-radius: 999px;
  background: transparent;
}

.die-face__pip.is-visible {
  background: linear-gradient(180deg, #27448b, #0f1f47);
}

.die-face.is-rolling {
  animation: die-roll 760ms cubic-bezier(0.19, 0.92, 0.28, 1);
}

.board-hud__dice .die-face.is-rolling:nth-child(2) {
  animation-delay: 0.06s;
}

@keyframes die-roll {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  28% {
    transform: translateY(-0.5rem) rotate(-12deg) scale(1.05);
  }

  54% {
    transform: translateY(0.35rem) rotate(10deg) scale(0.98);
  }

  78% {
    transform: translateY(-0.16rem) rotate(-5deg) scale(1.02);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.room-card,
.control-disclosure {
  display: grid;
  gap: 0.75rem;
}

.room-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.room-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.room-card__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark--rail {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 0.72rem;
  font-size: 0.76rem;
}

.room-card__utility {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.volume-popover {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: 10.5rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.92rem;
  background: rgba(7, 11, 19, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.volume-popover input[type="range"] {
  padding: 0;
  border: none;
  background: transparent;
}

.volume-popover__label {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-card__subcopy {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.room-card__copy-field input {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 0.52rem 0.62rem;
}

.button--copy {
  width: 2.35rem;
  min-width: 0;
  height: 2.35rem;
  padding: 0;
  border-radius: 0.85rem;
}

.button--copy svg {
  width: 1rem;
  height: 1rem;
}

.panel--flat {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.panel--flat-hidden-heading .panel-heading {
  display: none;
}

.panel--flat #controlPanel {
  overflow: visible;
  padding-top: 0.15rem;
}

.panel--flat > .stack {
  padding: 0;
}

.room-card__actions .button {
  flex: 1 1 0;
}

.room-card__actions .button:only-child {
  flex-basis: 100%;
}

.room-card__actions .button--quiet {
  flex: 0 0 auto;
}

.room-card__actions .button--quiet:only-child {
  flex-basis: auto;
}

.control-disclosure {
  padding: 0.2rem 0.3rem 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.control-disclosure summary {
  cursor: pointer;
  padding: 0.4rem 0.45rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.control-disclosure summary::-webkit-details-marker {
  display: none;
}

.player-card {
  position: relative;
  display: grid;
  gap: 0.46rem;
  padding: 0.62rem 0.68rem;
  overflow: hidden;
}

.player-card h3 {
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: var(--player-color, var(--accent));
  opacity: 0;
  transition: opacity 180ms ease;
}

.player-card--you {
  background: linear-gradient(180deg, rgba(109, 129, 176, 0.22), rgba(42, 50, 66, 0.52));
  box-shadow: inset 0 0 0 1px rgba(160, 184, 236, 0.1);
}

.player-card--current {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(86, 93, 108, 0.3), rgba(34, 39, 50, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.player-card--current::before {
  opacity: 1;
}

.player-card--you.player-card--current {
  background: linear-gradient(180deg, rgba(95, 104, 126, 0.42), rgba(34, 39, 50, 0.84));
  box-shadow: inset 0 0 0 1px rgba(184, 201, 240, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.player-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.6rem;
}

.player-card--compact {
  gap: 0.5rem;
  padding: 0.74rem 0.82rem;
}

.player-card__identity {
  display: flex;
  align-items: start;
  gap: 0.62rem;
  flex: 1 1 auto;
  min-width: 0;
}

.player-card .token--avatar {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(7, 11, 19, 0.54), 0 12px 22px rgba(0, 0, 0, 0.24);
}

.player-card__summary {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.player-card__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.player-card--seat .button {
  width: 100%;
}

.player-card__cashline {
  display: grid;
  grid-template-columns: repeat(2, minmax(4.9rem, 1fr));
  align-items: start;
  gap: 0.38rem;
  flex: 0 0 auto;
  text-align: right;
  min-width: 10.2rem;
}

.player-card__finance {
  position: relative;
  display: grid;
  gap: 0.04rem;
  min-width: 0;
  padding: 0.16rem 0.22rem 0.2rem;
  border-radius: 0.72rem;
  overflow: visible;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.player-card__finance--positive {
  background: rgba(95, 211, 164, 0.08);
  box-shadow: inset 0 0 0 1px rgba(95, 211, 164, 0.16);
  animation: balance-card-flash-positive 2s ease both;
}

.player-card__finance--negative {
  background: rgba(255, 123, 131, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 123, 131, 0.16);
  animation: balance-card-flash-negative 2s ease both;
}

.player-card__finance > span {
  display: block;
  color: var(--muted);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.player-card__finance strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.05;
}

.player-card__balance-delta {
  display: inline-flex;
  align-items: center;
  align-self: start;
  width: fit-content;
  max-width: 100%;
  padding: 0.08rem 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  animation: balance-delta-rise 2s cubic-bezier(0.18, 0.84, 0.2, 1) both;
}

.player-card__balance-delta--positive {
  color: var(--success);
}

.player-card__balance-delta--negative {
  color: var(--danger);
}

.player-card__support {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.32;
}

.player-card__meters {
  display: grid;
  gap: 0.45rem;
}

.meter {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.meter span {
  color: var(--muted);
  font-size: 0.75rem;
}

.meter strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.meter__track {
  height: 0.52rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #77d7ff, #3e7fff);
}

.meter--debt .meter__fill {
  background: linear-gradient(90deg, #ffcb70, #f07e41);
}

.player-card dl,
.tile-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin: 0;
}

.player-card dt,
.tile-detail dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.player-card dd,
.tile-detail dd {
  margin: 0;
  font-family: var(--font-display);
}

.log-entry {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.64rem;
  line-height: 1.35;
  color: rgba(238, 244, 255, 0.82);
}

.log-entry--info {
  background: rgba(79, 131, 255, 0.12);
  color: var(--accent-strong);
}

.log-entry--warning {
  background: rgba(243, 191, 103, 0.12);
  color: var(--warning);
}

.log-entry--error {
  background: rgba(255, 123, 131, 0.12);
  color: var(--danger);
}

#chatPanel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.5rem;
  min-height: 0;
  max-height: none;
  height: 100%;
}

.chat-log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: 0;
  overflow-y: auto;
  padding: 0.25rem 0.12rem 0 0;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 2.2rem, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 2.2rem, #000 100%);
}

.chat-entry {
  display: grid;
  gap: 0.28rem;
  padding: 0.52rem 0.64rem;
  animation: chat-rise 220ms ease both;
}

.chat-entry__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.chat-entry__body {
  line-height: 1.45;
  word-break: break-word;
}

.chat-form {
  display: grid;
  gap: 0.3rem;
}

.chat-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.chat-form__meta {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.board-feed__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.board-feed__header .label {
  font-size: 0.6rem;
}

.board-feed__list {
  display: grid;
  gap: 0.16rem;
  overflow-y: auto;
  max-height: 9.6rem;
  padding-right: 0.08rem;
  scrollbar-width: none;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 54%,
    rgba(0, 0, 0, 0.92) 72%,
    rgba(0, 0, 0, 0.68) 86%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

.board-feed__list::-webkit-scrollbar {
  display: none;
}

.board-feed-dock .log-entry {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  font-size: 0.58rem;
  line-height: 1.24;
  color: rgba(238, 244, 255, 0.76);
  text-align: center;
  opacity: var(--feed-opacity, 1);
}

.board-feed-dock .log-entry--info {
  background: transparent;
}

.board-feed-dock .log-entry--warning {
  background: transparent;
}

.board-feed-dock .log-entry--error {
  background: transparent;
}

.board-feed-dock .message,
.board-feed-dock .empty-state {
  padding: 0;
  font-size: 0.58rem;
  line-height: 1.35;
  border: none;
  background: transparent;
  text-align: center;
}

.board-feed-dock .log-entry__content {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.12rem 0.24rem;
}

.board-feed-dock .log-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
  vertical-align: middle;
}

.board-feed-dock .log-inline--player {
  color: rgba(248, 251, 255, 0.94);
  font-weight: 600;
}

.board-feed-dock .log-inline--player .token {
  width: 0.94rem;
  height: 0.94rem;
  font-size: 0.38rem;
  border-width: 1.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.board-feed-dock .log-inline--property {
  color: rgba(244, 248, 255, 0.9);
}

.board-feed-dock .log-inline__property-dot {
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: var(--log-property-color, var(--accent));
  box-shadow: 0 0 0 1px rgba(8, 14, 27, 0.26) inset;
}

.message {
  padding: 0.78rem 0.9rem;
  border-radius: 1rem;
  line-height: 1.45;
}

.message--info {
  background: rgba(79, 131, 255, 0.1);
  color: var(--accent-strong);
}

.message--warning {
  background: rgba(243, 191, 103, 0.12);
  color: var(--warning);
}

.message--error {
  background: rgba(255, 123, 131, 0.12);
  color: var(--danger);
}

.empty-state {
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.empty-state--feed {
  padding: 0;
  border: none;
  background: transparent;
}

.mono {
  font-family: var(--font-mono);
}

#auctionModalRoot {
  position: relative;
  z-index: 20;
}

#rulesModalRoot {
  position: relative;
  z-index: 24;
}

.auction-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 8, 14, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.auction-modal {
  width: min(58rem, calc(100vw - 2rem));
  padding: 1.35rem;
}

.rules-modal {
  width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.rules-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
}

.rules-modal__section {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
  scroll-margin-top: 1rem;
}

.rules-modal__section-head {
  display: grid;
  gap: 0.15rem;
}

.rules-modal__section-head h3 {
  margin: 0;
  font-family: var(--font-display);
}

.rules-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.rules-modal__role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.rules-modal .metric {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
}

.rules-modal .metric strong {
  font-family: var(--font-display);
}

.rules-role {
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.rules-role__header strong {
  font-family: var(--font-display);
}

.rules-role p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auction-modal h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auction-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.auction-modal__bid-panel {
  display: grid;
  gap: 0.9rem;
}

.auction-modal__property-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.auction-modal__property-heading h2 {
  margin: 0;
  text-align: center;
}

.auction-modal__property-dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--auction-group-color, var(--accent));
  box-shadow: 0 0 0 1px rgba(10, 16, 28, 0.26) inset;
}

.auction-modal__status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.auction-modal__leader {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.auction-modal__leader .token {
  width: 2rem;
  height: 2rem;
  font-size: 0.76rem;
  box-shadow: 0 0 0 3px rgba(7, 11, 19, 0.52), 0 10px 18px rgba(0, 0, 0, 0.24);
}

.auction-modal__leader--open {
  padding: 0.2rem 0;
}

.auction-modal__leader-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.auction-modal__leader-copy strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1;
}

.auction-modal__leader-copy span,
.auction-modal__price-block span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auction-modal__price-block {
  display: grid;
  justify-items: end;
  gap: 0.16rem;
  text-align: right;
}

.auction-modal__price-block strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.auction-modal__countdown {
  display: grid;
  gap: 0.35rem;
}

.auction-modal__countdown strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.auction-modal__countdown strong svg,
.auction-modal__countdown strong .auction-icon-svg {
  width: 1rem;
  height: 1rem;
}

.auction-modal__countdown strong .auction-icon-svg {
  display: block;
  object-fit: contain;
}

.auction-progress {
  position: relative;
  height: 0.44rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.auction-progress > span {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, #f3c875, #d69a34);
  box-shadow: 0 0 18px rgba(214, 154, 52, 0.28);
  will-change: transform;
}

.metric {
  padding: 0.85rem 0.9rem;
}

.auction-bid {
  display: grid;
  gap: 0.7rem;
}

.auction-bid__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.auction-bid__button {
  min-height: 3.05rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transform: translateY(0) scale(1);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.auction-bid__button:not(:disabled):hover {
  box-shadow: 0 12px 24px rgba(8, 12, 20, 0.24);
}

.auction-bid__button:not(:disabled):active {
  transform: translateY(-0.04rem) scale(1.05);
}

.auction-bid__button--pop {
  animation: auction-bid-pop 180ms cubic-bezier(0.18, 0.84, 0.22, 1);
}

.auction-history {
  display: grid;
  gap: 0.3rem;
  max-height: 8rem;
  overflow-y: auto;
  padding-right: 0.08rem;
  scrollbar-width: none;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 76%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.auction-history::-webkit-scrollbar {
  display: none;
}

.auction-history__entry {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem 0.24rem;
  flex-wrap: wrap;
  color: rgba(238, 244, 255, 0.78);
  font-size: 0.68rem;
  line-height: 1.32;
}

.auction-history__entry--empty {
  color: var(--muted);
}

.auction-history .log-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.auction-history .log-inline--player .token {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.4rem;
  box-shadow: 0 0 0 1.5px rgba(7, 11, 19, 0.44), 0 5px 10px rgba(0, 0, 0, 0.2);
}

.auction-history .log-inline__property-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--log-property-color, var(--accent));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.auction-modal__tile-card {
  min-width: 0;
}

.auction-modal__tile-card-inner {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(23, 31, 47, 0.96), rgba(14, 20, 32, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auction-modal__tile-hero {
  display: grid;
  place-items: center;
}

.auction-modal__tile-hero--bank-share {
  min-height: 5.2rem;
  margin: -0.05rem 0 0.05rem;
  color: rgba(245, 201, 107, 0.95);
}

.auction-modal__tile-hero--bank-share svg {
  width: 4.1rem;
  height: 4.1rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.auction-modal__tile-details .tile-detail {
  gap: 0.78rem;
}

.auction-modal__tile-details .tile-detail__rent-row {
  padding-inline: 0.16rem;
}

.group--brown {
  --tile-accent: var(--group-brown);
}

.group--lightBlue {
  --tile-accent: var(--group-lightBlue);
}

.group--pink {
  --tile-accent: var(--group-pink);
}

.group--orange {
  --tile-accent: var(--group-orange);
}

.group--red {
  --tile-accent: var(--group-red);
}

.group--yellow {
  --tile-accent: var(--group-yellow);
}

.group--green {
  --tile-accent: var(--group-green);
}

.group--blue {
  --tile-accent: var(--group-blue);
}

.tile--bank_share {
  --tile-accent: #d2ab4b;
}

.tile--tax,
.tile--go_to_jail {
  --tile-accent: #ce686c;
}

.tile--event,
.tile--free_parking,
.tile--jail,
.tile--start {
  --tile-accent: #4ba99a;
}

.control-actions,
.control-section {
  display: grid;
  gap: 0.62rem;
}

.control-rail--lobby {
  gap: 0.75rem;
}

.control-actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
  align-items: center;
  gap: 0.62rem;
}

.control-rail {
  display: grid;
  gap: 0.7rem;
}

.control-actions .button {
  min-height: 2.15rem;
  padding: 0.48rem 0.84rem;
  font-size: 0.7rem;
}

.control-actions + .control-strip__status,
.control-actions + .control-section,
.control-strip__status + .control-section {
  margin-top: 0.28rem;
}

.control-section__header {
  display: grid;
  gap: 0.15rem;
}

.control-section__inline-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.control-section__inline-note {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.control-strip__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.holdings {
  display: grid;
  gap: 0;
}

.holdings__row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.44rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  box-shadow: none;
}

.holdings__row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.holdings__row:first-child::before {
  display: none;
}

.holdings__row--group-start {
  margin-top: 0.18rem;
  padding-top: 0.62rem;
}

.holdings__row--group-start::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18) 16%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.18) 84%,
    transparent
  );
}

.holdings__row:hover {
  color: color-mix(in srgb, var(--tile-color, var(--accent)) 42%, var(--ink));
}

.holdings__row span,
.holdings__row small {
  display: block;
  text-align: left;
}

.holdings__name {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.holdings__title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holdings__dot {
  width: 0.56rem;
  height: 0.56rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--tile-color, var(--accent));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.holdings__structure {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--tile-color, var(--accent)) 70%, var(--ink));
}

.holdings__structure svg {
  width: 0.92rem;
  height: 0.92rem;
}

.holdings__structure strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.holdings__row small {
  color: var(--muted);
  font-size: 0.72rem;
}

.holdings__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  min-width: 1.4rem;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.icon-chip svg {
  width: 0.68rem;
  height: 0.68rem;
}

.icon-chip strong {
  font-size: 0.52rem;
  line-height: 1;
}

.appearance-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.appearance-option {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  padding: 0.42rem 0.32rem;
  border: 1px solid color-mix(in srgb, var(--appearance-color) 36%, var(--line));
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  box-shadow: none;
}

.appearance-option .token {
  width: 1.55rem;
  height: 1.55rem;
}

.appearance-option span {
  font-size: 0.62rem;
  color: var(--muted);
}

.appearance-option.is-selected {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--appearance-color) 18%, rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--appearance-color) 40%, transparent);
}

.appearance-option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.board-role-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.board-role-overlay__card {
  width: min(18rem, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 16, 25, 0.95), rgba(9, 14, 22, 0.9));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  animation: role-reveal 2s ease both;
}

.board-role-overlay__card h3,
.board-role-overlay__card p {
  margin: 0;
}

.board-role-overlay__card h3 {
  font-size: 1.8rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.board-role-overlay__card p:last-child {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.4;
}

.board-victory-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: auto;
  padding: clamp(1rem, 3vw, 1.8rem);
  background:
    radial-gradient(circle at 50% 28%, rgba(223, 195, 109, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.18), rgba(5, 8, 14, 0.52));
  backdrop-filter: blur(6px);
}

.board-victory-overlay__card {
  width: min(28rem, calc(100% - 1rem));
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(18, 24, 37, 0.97), rgba(10, 14, 23, 0.95));
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
  animation: victory-reveal 380ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.board-victory-overlay__card h2,
.board-victory-overlay__card p {
  margin: 0;
}

.board-victory-overlay__card h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.board-victory-overlay__subtitle {
  max-width: 22rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.board-victory-overlay__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.board-victory-overlay__meta span + span::before {
  content: "•";
  margin-right: 0.6rem;
  color: rgba(255, 255, 255, 0.34);
}

.board-victory-overlay__winners {
  display: grid;
  gap: 0.72rem;
}

.board-victory-overlay__winner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.82rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.board-victory-overlay__winner-token {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.1rem;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26);
}

.board-victory-overlay__winner-copy {
  display: grid;
  gap: 0.14rem;
}

.board-victory-overlay__winner-copy strong {
  font-size: 1rem;
}

.board-victory-overlay__winner-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-victory-overlay__empty {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.5;
}

.board-victory-overlay__actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.board-victory-overlay__actions .button {
  min-width: 8.5rem;
}

.board-hud--finished {
  gap: 0.9rem;
}

.board-hud--finished .board-hud__caption {
  max-width: 22rem;
  margin: 0 auto;
}

.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;
}

.token--mini {
  width: 1rem;
  height: 1rem;
  font-size: 0.44rem;
}

@keyframes chat-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes victory-reveal {
  from {
    opacity: 0;
    transform: translateY(0.9rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes balance-delta-rise {
  0% {
    opacity: 0;
    transform: translateY(0.4rem);
  }

  14% {
    opacity: 1;
    transform: translateY(0);
  }

  72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-0.22rem);
  }
}

@keyframes balance-card-flash-positive {
  0% {
    box-shadow: inset 0 0 0 1px rgba(95, 211, 164, 0.16), 0 0 0 0 rgba(95, 211, 164, 0);
  }

  20% {
    box-shadow: inset 0 0 0 1px rgba(95, 211, 164, 0.28), 0 0 0 4px rgba(95, 211, 164, 0.14);
  }

  100% {
    box-shadow: inset 0 0 0 1px rgba(95, 211, 164, 0.16), 0 0 0 0 rgba(95, 211, 164, 0);
  }
}

@keyframes balance-card-flash-negative {
  0% {
    box-shadow: inset 0 0 0 1px rgba(255, 123, 131, 0.16), 0 0 0 0 rgba(255, 123, 131, 0);
  }

  20% {
    box-shadow: inset 0 0 0 1px rgba(255, 123, 131, 0.28), 0 0 0 4px rgba(255, 123, 131, 0.14);
  }

  100% {
    box-shadow: inset 0 0 0 1px rgba(255, 123, 131, 0.16), 0 0 0 0 rgba(255, 123, 131, 0);
  }
}

@keyframes current-turn-fade {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes auction-bid-pop {
  0% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-0.08rem) scale(1.08);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.board-token-flight {
  position: absolute;
  display: inline-grid;
  place-items: center;
  transform-origin: center;
  z-index: 9;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34));
}

.board-token-flight.token--avatar {
  overflow: visible;
}

.board-token-flight svg {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.16));
}

.token--in-flight {
  opacity: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes role-reveal {
  0% {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.96);
  }

  14% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  84% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-0.4rem) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile__tokens .token--active-turn {
    animation: none;
    opacity: 1;
  }

  .player-card__finance--positive,
  .player-card__finance--negative,
  .player-card__balance-delta,
  .auction-bid__button--pop {
    animation: none;
  }
}

@media (max-width: 1480px) {
  .workspace {
    grid-template-columns: minmax(14.5rem, 16.5rem) minmax(0, 1fr) minmax(15.75rem, 18rem);
  }

  .workspace--home {
    grid-template-columns: minmax(0, 1fr);
  }

  .board {
    width: min(100%, 61rem, calc(100vw - 32rem), calc(100vh - var(--viewport-gutter-y)));
    height: min(100%, 61rem, calc(100vw - 32rem), calc(100vh - var(--viewport-gutter-y)));
  }
}

@media (max-width: 1180px) {
  body,
  body.body--locked {
    overflow: auto;
  }

  .app-shell,
  body.body--locked .app-shell {
    height: auto;
  }

  .workspace,
  .workspace--home {
    grid-template-columns: 1fr;
  }

  .board-stage {
    order: 1;
  }

  .left-rail {
    order: 2;
    grid-template-rows: auto auto;
  }

  .right-rail {
    order: 3;
  }

  .left-rail__spacer {
    display: none;
  }

  .table-stage {
    min-height: auto;
  }

  .board-frame {
    min-height: auto;
    height: auto;
  }

  #chatPanel {
    min-height: 18rem;
  }
}

@media (max-width: 900px) {
  .frontpage-grid,
  .front-hero__stats,
  .auction-metrics,
  .rules-modal__grid,
  .rules-modal__role-grid,
  .player-card dl,
  .tile-detail dl {
    grid-template-columns: 1fr;
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .front-launch__actions,
  .appearance-picker {
    grid-template-columns: 1fr 1fr;
  }

  .board-center-dock {
    width: min(15.5rem, calc(100% - 1.75rem));
  }

  .auction-modal__layout {
    grid-template-columns: 1fr;
  }

  .board-feed-dock {
    width: 100%;
  }

  #chatPanel {
    min-height: 18rem;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: calc(100vw - 1rem);
    margin: 0.5rem auto 1.25rem;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-actions .button {
    flex: 1 1 0;
  }

  .board-stage {
    padding: 0.55rem;
  }

  .board-frame {
    padding: 0.5rem;
  }

  .board {
    width: min(100%, 36rem);
    height: auto;
  }

  .board-center-dock {
    position: static;
    inset: auto;
    transform: none;
    width: min(100%, 23rem);
    margin: 0.85rem auto 0;
    pointer-events: auto;
  }

  .board-feed-dock {
    position: static;
    inset: auto;
    transform: none;
    width: 100%;
    max-height: none;
    margin: 0.65rem auto 0;
  }

  .front-launch__actions,
  .appearance-picker {
    grid-template-columns: 1fr;
  }

  .tile {
    padding: 0.35rem;
  }

  .tile__stamp {
    min-width: 2.35rem;
    min-height: 1.9rem;
    padding: 0.92rem 0.38rem 0.2rem;
    font-size: 0.48rem;
    letter-spacing: 0.12em;
  }

  .tile__price,
  .tile__owner,
  .tile__meta-copy {
    font-size: 0.48rem;
  }

  .tile__name {
    font-size: 0.62rem;
  }

  .player-card__header {
    flex-direction: column;
  }

  .player-card__cashline {
    width: 100%;
    min-width: 0;
  }

  .room-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .meter {
    grid-template-columns: 1fr;
  }

  .button-row,
  .tile-focus__cta-row,
  .dice-row {
    flex-direction: column;
    align-items: stretch;
  }

  .die-face {
    width: 4.2rem;
    padding: 0.58rem;
  }

  .board-hud__dice {
    gap: 0.65rem;
  }
}
