/* MONOPOLY · Luan Edition */

:root {
  --ivory: #f4eee2;
  --ivory-2: #ece4d3;
  --paper: #fbf8f1;
  --white: #fffdf9;
  --line: #e3d8c4;
  --line-2: #cdbd9f;
  --ink: #14211c;
  --ink-2: #3f4f48;
  --ink-3: #6f7d76;
  --ever: #0f3b2f;
  --ever-2: #16523f;
  --ever-3: #1f6a52;
  --ever-deep: #0a281f;
  --mint: #9fd8bd;
  --mint-2: #c9ead9;
  --mint-3: #e4f4ea;
  --orange: #ef6a2c;
  --orange-2: #ff8a4c;
  --orange-deep: #c9501a;
  --danger: #b93a2b;
  --gold: #eebd2c;

  --r-xl: 32px;
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(20, 33, 28, .05), 0 10px 30px -18px rgba(20, 33, 28, .22);
  --shadow-2: 0 40px 70px -40px rgba(10, 40, 31, .55), 0 14px 28px -18px rgba(10, 40, 31, .3);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "SF Mono", ui-monospace, Consolas, monospace;
  --topbar: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font: 400 15px/1.5 var(--font-sans);
  background:
    radial-gradient(1100px 620px at 92% -8%, rgba(239, 106, 44, .09), transparent 62%),
    radial-gradient(900px 640px at -12% 104%, rgba(31, 106, 82, .1), transparent 60%),
    var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .16 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.shell { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
kbd { font: 600 11px/1 var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ever-3);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(239, 106, 44, .16); }
.eyebrow--light { color: var(--mint); }

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: rgba(244, 238, 226, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.shell:not([data-view="landing"]) .topbar { border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ever); text-decoration: none; justify-self: start; }
.brand__mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 6px 10px rgba(10, 40, 31, .22)); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word { font: 700 21px/1 var(--font-display); letter-spacing: .06em; }
.brand__ed { font: italic 400 15px/1 var(--font-display); color: var(--orange); padding-left: 12px; border-left: 1px solid var(--line-2); }

.topbar__room { grid-column: 2; display: flex; align-items: center; gap: 10px; }
.room-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  transition: border-color .2s, transform .2s var(--ease);
}
.room-chip:hover { border-color: var(--ever-3); transform: translateY(-1px); }
.room-chip__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.room-chip__code { font: 700 16px/1 var(--font-mono); letter-spacing: .18em; color: var(--ever); }
.room-chip__icon svg { width: 16px; height: 16px; color: var(--ink-3); }

.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.conn[data-state="live"] { color: var(--ever-3); }
.conn[data-state="live"] i { background: #2fb37a; box-shadow: 0 0 0 0 rgba(47, 179, 122, .5); animation: livePulse 2.4s infinite; }
.conn[data-state="connecting"] i { background: var(--gold); animation: blink 1s infinite; }
.conn[data-state="offline"] { color: var(--danger); }
.conn[data-state="offline"] i { background: var(--danger); }

.topbar__nav { grid-column: 3; display: flex; align-items: center; gap: 8px; justify-self: end; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .2s, border-color .2s, color .2s;
}
.nav-btn:hover { background: var(--paper); border-color: var(--line); color: var(--ever); }
.nav-btn svg { width: 18px; height: 18px; }
.nav-btn--icon { width: 40px; padding: 0; justify-content: center; }

/* Buttons */

.btn {
  --bg: var(--paper);
  --fg: var(--ink);
  --bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: .005em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; }
.btn kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .12);
  color: inherit;
  opacity: .75;
}
.btn__icon { display: inline-flex; }

.btn--primary { --bg: var(--ever); --fg: var(--ivory); --bd: var(--ever); box-shadow: 0 10px 22px -12px rgba(15, 59, 47, .7); }
.btn--primary:hover:not(:disabled) { --bg: var(--ever-2); }
.btn--accent { --bg: var(--orange); --fg: #fff; --bd: var(--orange); box-shadow: 0 12px 24px -12px rgba(239, 106, 44, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--accent:hover:not(:disabled) { --bg: var(--orange-2); --bd: var(--orange-2); }
.btn--mint { --bg: var(--mint); --fg: var(--ever-deep); --bd: var(--mint); }
.btn--mint:hover:not(:disabled) { --bg: var(--mint-2); }
.btn--ghost { --bg: transparent; --fg: var(--ever); --bd: var(--line-2); }
.btn--ghost:hover:not(:disabled) { --bg: var(--white); --bd: var(--ever-3); }
.btn--ghost-light { --bg: rgba(255, 255, 255, .04); --fg: var(--ivory); --bd: rgba(228, 244, 234, .28); }
.btn--ghost-light:hover:not(:disabled) { --bg: rgba(255, 255, 255, .1); --bd: rgba(228, 244, 234, .55); }
.btn--quiet { --bg: transparent; --fg: var(--ever-3); --bd: transparent; padding: 0 12px; }
.btn--quiet:hover:not(:disabled) { --bg: var(--ivory-2); }
.btn--danger { --bg: var(--danger); --fg: #fff; --bd: var(--danger); }
.btn--link-light { --bg: transparent; --fg: rgba(244, 238, 226, .6); --bd: transparent; min-height: 34px; padding: 0 6px; font-size: 13px; }
.btn--link-light:hover:not(:disabled) { --fg: #ffb08a; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 1.1em; text-align: left; animation: dots 1.2s steps(4) infinite; }

/* Landing */

.landing { padding-bottom: 8px; }

.hero {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 3.4vw, 44px) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: calc(100dvh - var(--topbar));
}

.hero__copy { position: relative; z-index: 2; }
.hero__title {
  margin: 22px 0 0;
  font: 700 clamp(52px, 6.5vw, 112px)/.86 var(--font-display);
  letter-spacing: -.04em;
  color: var(--ever);
}
.hero__edition {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: .32em;
  font-size: .3em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--orange);
}
.hero__edition::before { content: ""; width: 64px; height: 1.5px; background: currentColor; }
.hero__lede { max-width: 31em; margin: 26px 0 34px; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.62; color: var(--ink-2); }

.entry {
  position: relative;
  max-width: 540px;
  padding: 8px 8px 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.entry__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 23px; background: var(--ivory-2); }
.entry__tabs button {
  position: relative;
  z-index: 1;
  height: 46px;
  border: 0;
  border-radius: 18px;
  background: none;
  font-weight: 650;
  color: var(--ink-3);
  transition: color .25s;
}
.entry__tabs button[aria-selected="true"] { color: var(--ever); }
.entry__indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(20, 33, 28, .08), 0 8px 18px -10px rgba(20, 33, 28, .3);
  transition: transform .4s var(--ease);
}
.entry[data-tab="join"] .entry__indicator { transform: translateX(100%); }
.entry__form { display: grid; gap: 16px; padding: 24px 18px 0; animation: rise .35s var(--ease); }
.entry__note { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; }

.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; align-content: start; }
.field__label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  font-size: 17px;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #a7ad9f; }
.field input:hover { border-color: var(--line-2); }
.field input:focus { outline: none; border-color: var(--ever-3); background: #fff; box-shadow: 0 0 0 4px rgba(31, 106, 82, .14); }
.field--code input { font-family: var(--font-mono); font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.field__error { min-height: 0; font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(185, 58, 43, .12); }
.field.shake { animation: shake .4s; }

.resume {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 14px 10px 0;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: var(--mint-3);
  border: 1px solid var(--mint-2);
}
.resume__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ever); color: var(--mint); }
.resume__icon svg { width: 20px; height: 20px; }
.resume__text { display: grid; line-height: 1.3; }
.resume__text strong { color: var(--ever); font-size: 14px; }
.resume__text span { font-size: 13px; color: var(--ink-2); }
.resume__actions { display: flex; gap: 4px; }

.hero__art { position: relative; aspect-ratio: 1 / .94; min-width: 0; }
.hero__arch {
  position: absolute;
  inset: 2% 9% 13% 9%;
  overflow: hidden;
  border-radius: 999px 999px 44px 44px;
  background:
    repeating-radial-gradient(circle at 50% 108%, transparent 0 34px, rgba(159, 216, 189, .1) 34px 35px),
    linear-gradient(180deg, var(--ever-2), var(--ever) 60%, var(--ever-deep));
  box-shadow: inset 0 0 0 1px rgba(159, 216, 189, .14);
}
.hero__sun {
  position: absolute;
  top: 11%;
  right: 17%;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--orange-2), var(--orange) 55%, var(--orange-deep));
  box-shadow: 0 0 0 14px rgba(239, 106, 44, .1), 0 0 0 30px rgba(239, 106, 44, .05);
}
.hero__board { position: absolute; inset: auto -4% -3% -4%; animation: floaty 9s ease-in-out infinite; }
.hero__board svg { width: 100%; height: auto; overflow: visible; }
.art-beacon { animation: blink 2.2s infinite; }

.float-card {
  position: absolute;
  z-index: 2;
  width: clamp(150px, 15vw, 184px);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-2);
  font-size: 12px;
}
.float-card--deed { left: -1%; bottom: 20%; transform: rotate(-8deg); animation: floatCard 10s ease-in-out infinite; }
.float-card__band {
  display: grid;
  gap: 2px;
  margin: 7px 7px 0;
  padding: 12px 12px 14px;
  border-radius: 11px;
  background: var(--g);
  color: #fff;
  text-align: center;
}
.float-card__band small { font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.float-card__band strong { font: 700 19px/1.1 var(--font-display); }
.float-card dl { margin: 0; padding: 10px 14px 14px; display: grid; gap: 5px; }
.float-card dl div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.float-card dl div:last-child { border: 0; padding: 0; }
.float-card dt { color: var(--ink-3); }
.float-card dd { margin: 0; font-weight: 700; color: var(--ever); font-variant-numeric: tabular-nums; }
.float-card--chance {
  top: 6%;
  right: 0;
  padding: 16px 16px 18px;
  background: var(--orange);
  color: #fff;
  transform: rotate(7deg);
  overflow: hidden;
  animation: floatCard 11s ease-in-out -4s infinite;
}
.float-card--chance small { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.float-card--chance p { position: relative; z-index: 1; margin: 6px 0 0; font: 600 15px/1.3 var(--font-display); }
.float-card__mark { position: absolute; right: -6px; bottom: -36px; font: 700 110px/1 var(--font-display); color: rgba(255, 255, 255, .16); }

.steps {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.4vw, 44px) clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step { padding: 28px 28px 0 0; border-top: 1px solid var(--line-2); }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__num { font: italic 400 18px/1 var(--font-display); color: var(--orange); }
.step h2 { margin: 12px 0 8px; font: 600 26px/1.15 var(--font-display); color: var(--ever); letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); max-width: 26em; }
.step--rules ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.step--rules li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.step--rules strong { min-width: 96px; font: 700 17px/1 var(--font-display); color: var(--ever); }

/* Mode cards, on the landing and in the lobby */

.modes { min-width: 0; margin: 0; padding: 0; border: 0; container: modes / inline-size; }
.modes legend { padding: 0; margin-bottom: 8px; }
.modes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mode-card { position: relative; display: grid; cursor: pointer; }
.mode-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mode-card__body {
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .2s var(--ease);
}
.mode-card:hover .mode-card__body { border-color: var(--line-2); transform: translateY(-1px); }
.mode-card input:checked + .mode-card__body { border-color: var(--ever-3); background: #fff; box-shadow: 0 0 0 3px rgba(31, 106, 82, .14), 0 14px 26px -18px rgba(10, 40, 31, .6); }
.mode-card input:focus-visible + .mode-card__body { outline: 2px solid var(--orange); outline-offset: 2px; }
.mode-card:has(input:disabled) { cursor: default; }
.mode-card:has(input:disabled):hover .mode-card__body { transform: none; }
.mode-card input:disabled:not(:checked) + .mode-card__body { opacity: .55; }
.mode-card__head { display: flex; align-items: center; justify-content: space-between; }
.mode-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--mint-3); color: var(--ever-3); }
.mode-card__icon svg { width: 18px; height: 18px; }
.mode-card[data-mode="quick"] .mode-card__icon { background: #fff1e7; color: var(--orange-deep); }
.mode-card[data-mode="tycoon"] .mode-card__icon { background: var(--ever); color: var(--gold); }
.mode-card__tick { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 50%; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.mode-card__tick svg { width: 13px; height: 13px; stroke-width: 2.6; }
.mode-card input:checked + .mode-card__body .mode-card__tick { background: var(--ever); border-color: var(--ever); color: var(--mint); }
.mode-card__name { font: 600 17px/1.15 var(--font-display); color: var(--ever); }
.mode-card__text { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.mode-card__facts { display: grid; gap: 3px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.mode-card__facts span { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.mode-card__facts b { font: 700 13px/1.2 var(--font-display); color: var(--ever); font-variant-numeric: tabular-nums; }
.modes__note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

@container modes (max-width: 460px) {
  .modes__grid { grid-template-columns: 1fr; }
  .mode-card__body { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 3px; }
  .mode-card__head { grid-row: span 3; flex-direction: column-reverse; justify-content: flex-start; gap: 8px; }
  .mode-card__facts { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; padding-top: 6px; }
}

.footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px clamp(20px, 3.4vw, 44px) 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.footer span:first-child { font-weight: 700; letter-spacing: .08em; color: var(--ever); }

/* Shared cards, tags, avatars */

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__head h3 { margin: 0; font: 600 21px/1.1 var(--font-display); color: var(--ever); letter-spacing: -.01em; }
.card__meta { font-size: 12.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.avatar {
  --size: 38px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45), transparent 46%), var(--c);
  color: var(--on, #fff);
  font: 700 calc(var(--size) * .42)/1 var(--font-display);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 0 0 2px var(--white), 0 4px 10px -4px rgba(10, 40, 31, .45);
}
.avatar--lg { --size: 54px; }
.avatar--sm { --size: 28px; }
.avatar--xs { --size: 22px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--ivory-2);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag svg { width: 12px; height: 12px; }
.tag--host { background: #fde8dc; color: var(--orange-deep); }
.tag--me { background: var(--ever); color: var(--mint); }
.tag--alert { background: #fde3dc; color: var(--danger); }

.empty { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: 14px; }
.empty p { margin: 0; }
.empty strong { color: var(--ever); }
.empty__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--mint-3); color: var(--ever-3); }
.empty__icon svg { width: 20px; height: 20px; }

/* Lobby */

.lobby { max-width: 1320px; margin: 0 auto; padding: clamp(18px, 3vw, 36px) clamp(16px, 3vw, 36px) 64px; animation: rise .45s var(--ease); }
.lobby__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.lobby__col { display: grid; gap: 24px; min-width: 0; }

.room-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 320px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--ivory);
  background:
    repeating-radial-gradient(circle at 100% 110%, transparent 0 30px, rgba(159, 216, 189, .08) 30px 31px),
    linear-gradient(160deg, var(--ever-2), var(--ever) 55%, var(--ever-deep));
  box-shadow: var(--shadow-2);
}
.room-card__copy { position: relative; z-index: 1; align-self: center; }
.room-card__title { margin: 16px 0 24px; font: 600 clamp(26px, 2.6vw, 36px)/1.08 var(--font-display); letter-spacing: -.015em; color: #fff; max-width: 13em; }
.code-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.code-tiles span {
  display: grid;
  place-items: center;
  width: clamp(40px, 3.7vw, 54px);
  aspect-ratio: .8;
  border-radius: 13px;
  background: var(--paper);
  color: var(--ever);
  font: 700 clamp(24px, 2.4vw, 34px)/1 var(--font-mono);
  box-shadow: 0 6px 0 var(--mint), 0 6px 0 1px rgba(0, 0, 0, .2), 0 18px 22px -10px rgba(0, 0, 0, .5);
  animation: dealIn .5s var(--ease) both;
}
.code-tiles span:nth-child(2) { animation-delay: .05s; }
.code-tiles span:nth-child(3) { animation-delay: .1s; }
.code-tiles span:nth-child(4) { animation-delay: .15s; }
.code-tiles span:nth-child(5) { animation-delay: .2s; }
.code-tiles span:nth-child(6) { animation-delay: .25s; }
.room-card__share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.room-card__city { align-self: end; margin: 0 -10px -16px 0; }
.room-card__city svg { width: 100%; height: auto; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .3)); }

.seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.seat {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  animation: rise .4s var(--ease) both;
}
.seat::after { content: ""; position: absolute; inset: auto 16px 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c); }
.seat.is-me { border-color: var(--ever-3); box-shadow: 0 0 0 3px rgba(31, 106, 82, .1); }
.seat__name { font: 600 18px/1.2 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.seat__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.seat--empty {
  place-content: center;
  justify-items: center;
  gap: 8px;
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}
.seat--empty::after { display: none; }
.seat__plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px dashed var(--line-2); }
.seat__plus svg { width: 16px; height: 16px; }

.lobby__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.lobby__hint { margin: 0; flex: 1 1 220px; color: var(--ink-2); font-size: 14px; }
.lobby__buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.card__head--sub { margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.card__head--sub h3 { font-size: 18px; }
.rule-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.rule-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.rule-list li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--mint-3); color: var(--ever-3); }
.rule-list li > span svg { width: 19px; height: 19px; }
.rule-list div { display: grid; line-height: 1.35; }
.rule-list strong { color: var(--ever); font-size: 14.5px; }
.rule-list div span { color: var(--ink-2); font-size: 13.5px; }

/* Chat */

.chat-list { list-style: none; margin: 0; padding: 4px 2px 4px 0; display: flex; flex-direction: column; gap: 10px; max-height: 300px; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.msg { max-width: 86%; align-self: flex-start; }
.msg p { margin: 3px 0 0; padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: var(--ivory-2); color: var(--ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.msg__name { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.msg__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.msg.is-mine { align-self: flex-end; text-align: right; }
.msg.is-mine p { border-radius: 16px 4px 16px 16px; background: var(--ever); color: var(--ivory); text-align: left; }
.chat-empty, .log__empty { list-style: none; margin: auto 0; padding: 18px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.chat-form { display: flex; gap: 8px; margin-top: 14px; }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.chat-form input:focus { outline: none; border-color: var(--ever-3); box-shadow: 0 0 0 4px rgba(31, 106, 82, .12); }
.icon-send { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ever); color: var(--mint); transition: transform .2s var(--ease), background .2s; }
.icon-send:hover { background: var(--ever-2); transform: rotate(-8deg); }
.icon-send svg { width: 19px; height: 19px; }

/* Game layout */

@property --tilt { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --fit { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --ox { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --oy { syntax: "<length>"; inherits: false; initial-value: 0px; }

.game {
  max-width: 1720px;
  margin: 0 auto;
  padding: 14px clamp(14px, 2vw, 28px) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 27vw, 412px);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.game__board { position: sticky; top: calc(var(--topbar) + 14px); display: grid; gap: 10px; min-width: 0; }
.game__side { display: grid; gap: 16px; min-width: 0; }

/* Table status */

.hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; min-height: 40px; }
.hud__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hud__mode, .hud__chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.hud__mode { padding-left: 10px; background: var(--ever); color: var(--mint-2); box-shadow: 0 8px 18px -12px rgba(10, 40, 31, .8); }
.hud__mode svg { width: 16px; height: 16px; color: var(--orange-2); }
.hud__mode strong { font: 600 15px/1 var(--font-display); color: #fff; }
.hud__chip { border: 1px solid var(--line); background: var(--white); color: var(--ink-2); }
.hud__chip svg { width: 15px; height: 15px; color: var(--ever-3); }
.hud__chip strong { color: var(--ever); font-variant-numeric: tabular-nums; }
.hud__chip em { margin-left: 4px; padding: 3px 7px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hud__chip.is-hot { border-color: #f6c3a8; background: #fff1e7; }
.hud__chip.is-hot svg, .hud__chip.is-hot strong { color: var(--orange-deep); }
.hud__chip.is-alert { border-color: var(--orange); }
.hud__event {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 6px 6px 6px 7px;
  border: 1px solid #f6c3a8;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff4ec, #ffe3d1);
  animation: rise .45s var(--ease);
}
.hud__event-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 12px; background: var(--orange); color: #fff; box-shadow: 0 8px 14px -8px rgba(239, 106, 44, .9); }
.hud__event-icon svg { width: 18px; height: 18px; }
.hud__event-copy { display: grid; min-width: 0; line-height: 1.2; }
.hud__event-copy span { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); }
.hud__event-copy strong { font: 600 16px/1.15 var(--font-display); color: var(--ever); }
.hud__event-copy p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.hud__event em { display: grid; flex: none; padding: 2px 10px; border-left: 1px solid #f6c3a8; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; color: var(--ink-3); }
.hud__event em b { font: 600 13px/1.2 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ever); }

/* Camera controls */

.cam-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.cam-seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory-2); }
.cam-seg button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-3);
  transition: background .2s, color .2s, box-shadow .2s;
}
.cam-seg button svg { width: 16px; height: 16px; }
.cam-seg button:hover { color: var(--ever); }
.cam-seg button[aria-pressed="true"] { background: var(--white); color: var(--ever); box-shadow: 0 1px 2px rgba(20, 33, 28, .08), 0 6px 14px -8px rgba(20, 33, 28, .35); }
.cam-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 650;
  color: var(--ever);
  transition: border-color .2s, transform .2s var(--ease);
}
.cam-btn:hover { border-color: var(--ever-3); transform: translateY(-1px); }
.cam-btn svg { width: 16px; height: 16px; }
.zoom-btn { display: none; }

/* Board stage: a CSS 3D scene. board.js sizes the stage and sets the camera variables. */

.board-scroll { position: relative; width: 100%; }
.board-scroll.is-zoomed { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 8px; }
.board-stage { position: relative; width: 100%; height: min(70vh, 640px); margin: 0 auto; }
.board-stage.is-ready { transition: height .8s var(--ease); }
.board-stage::before {
  content: "";
  position: absolute;
  inset: 8% 2% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 253, 246, .95), rgba(255, 253, 246, 0));
  pointer-events: none;
}
.board-fit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bw, 600px);
  height: 0;
  margin-left: calc(var(--bw, 600px) / -2);
  container: board / inline-size;
}

/* Board: evergreen slab, raised tile ring, sunken centre. Light comes from the front left. */

.board-frame {
  --lift: .9cqw;
  --rim: 2.4cqw;
  position: absolute;
  left: 0;
  top: -50cqw;
  width: 100cqw;
  height: 100cqw;
  border-radius: .7cqw;
  transform-style: preserve-3d;
  transform: translate(var(--ox), var(--oy)) scale(var(--fit)) perspective(var(--persp, 2000px)) rotateX(var(--tilt)) rotateZ(var(--spin));
  background:
    radial-gradient(120% 90% at 16% 106%, rgba(159, 216, 189, .26), transparent 55%),
    linear-gradient(200deg, var(--ever-deep), var(--ever) 45%, var(--ever-2));
  box-shadow: inset 0 0 0 .55cqw rgba(10, 40, 31, .55), inset 0 0 0 .7cqw rgba(238, 189, 44, .55), inset 0 0 0 .8cqw rgba(10, 40, 31, .35);
}
.board-stage.is-ready .board-frame { transition: --tilt .8s var(--ease), --spin .8s var(--ease), --fit .8s var(--ease), --ox .8s var(--ease), --oy .8s var(--ease); }

.slab { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.slab i { position: absolute; display: block; }
.slab__side--s { left: 0; top: 100%; width: 100%; height: var(--slab); transform-origin: 50% 0; transform: rotateX(-90deg); background: linear-gradient(180deg, #2c7f62, var(--ever-2) 22%, var(--ever-deep)); box-shadow: inset 0 .14cqw 0 rgba(238, 189, 44, .6); }
.slab__side--n { left: 0; bottom: 100%; width: 100%; height: var(--slab); transform-origin: 50% 100%; transform: rotateX(90deg); background: linear-gradient(0deg, #0d3328, #061812); }
.slab__side--e { top: 0; left: 100%; width: var(--slab); height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: linear-gradient(90deg, #134a3b, #071d16); box-shadow: inset .14cqw 0 0 rgba(238, 189, 44, .35); }
.slab__side--w { top: 0; right: 100%; width: var(--slab); height: 100%; transform-origin: 100% 50%; transform: rotateY(-90deg); background: linear-gradient(270deg, #2a7a5e, var(--ever-2) 25%, #0c3027); box-shadow: inset -.14cqw 0 0 rgba(238, 189, 44, .5); }
.slab__shadow {
  inset: 1.5%;
  border-radius: 3cqw;
  transform: translate3d(1.4cqw, -1.2cqw, calc(var(--slab) * -1 - 2px));
  background: rgba(10, 40, 31, .34);
  box-shadow: 0 0 5cqw 2.6cqw rgba(10, 40, 31, .3);
}

.board {
  position: absolute;
  inset: var(--rim);
  display: grid;
  grid-template-columns: 1.55fr repeat(9, minmax(0, 1fr)) 1.55fr;
  grid-template-rows: 1.55fr repeat(9, minmax(0, 1fr)) 1.55fr;
  transform-style: preserve-3d;
}

.ring, .well { position: absolute; display: block; pointer-events: none; }
.ring--s { left: 0; bottom: 0; width: 100%; height: var(--lift); transform-origin: 50% 100%; transform: rotateX(-90deg); background: linear-gradient(180deg, #fffdf8, #e6dac3); }
.ring--n { left: 0; top: 0; width: 100%; height: var(--lift); transform-origin: 50% 0; transform: rotateX(90deg); background: #b8a886; }
.ring--e { right: 0; top: 0; width: var(--lift); height: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); background: linear-gradient(270deg, #cdbe9f, #bcab88); }
.ring--w { left: 0; top: 0; width: var(--lift); height: 100%; transform-origin: 0 50%; transform: rotateY(-90deg); background: linear-gradient(90deg, #f6efe0, #e4d7bd); }

.tile {
  --group: var(--ever-3);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  transform: translateZ(var(--lift));
  box-shadow: inset 0 0 0 .5px var(--line-2), inset .2cqw .2cqw 0 -.05cqw rgba(255, 255, 255, .9), inset -.2cqw -.2cqw 0 -.05cqw rgba(120, 96, 52, .14);
  transition: background .25s, box-shadow .25s;
}
.tile:hover { background: #fff; }
.tile:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.side-bottom { flex-direction: column; }
.side-top { flex-direction: column-reverse; }
.side-left { flex-direction: row-reverse; }
.side-right { flex-direction: row; }

.tile__band {
  flex: 0 0 23%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .28), transparent 55%),
    var(--group);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14), inset 0 -.18cqw 0 rgba(0, 0, 0, .1);
}
.side-left .tile__band, .side-right .tile__band { flex-basis: 21%; }

.tile__body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .3cqw;
  padding: .6cqw .35cqw .55cqw;
}
.side-left .tile__body, .side-right .tile__body { justify-content: center; padding: .3cqw .7cqw; }
.tile__icon { color: var(--ever-3); }
.tile__icon svg { width: 2.9cqw; height: 2.9cqw; }
.tile--chance .tile__icon { color: var(--orange); }
.tile--chance .tile__icon svg { width: 3.4cqw; height: 3.4cqw; stroke-width: 2.2; }
.tile--tax .tile__icon { color: var(--orange-deep); }
.tile__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(6.5px, 1.3cqw, 12.5px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.01em;
  hyphens: auto;
  overflow-wrap: break-word;
}
.tile__price { font-size: clamp(5.5px, 1.12cqw, 11px); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.side-left .tile__icon svg, .side-right .tile__icon svg { width: 2.3cqw; height: 2.3cqw; }
.side-left .tile__body, .side-right .tile__body { gap: .15cqw; }
.tile--railroad .tile__body, .tile--utility .tile__body, .tile--chance .tile__body, .tile--chest .tile__body, .tile--tax .tile__body { justify-content: center; }

.tile__owner { position: absolute; background: var(--owner, transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.side-bottom .tile__owner { left: 0; right: 0; bottom: 0; height: 6%; }
.side-top .tile__owner { left: 0; right: 0; top: 0; height: 6%; }
.side-left .tile__owner { top: 0; bottom: 0; left: 0; width: 6%; }
.side-right .tile__owner { top: 0; bottom: 0; right: 0; width: 6%; }
.tile.is-owned { background: color-mix(in srgb, var(--owner) 13%, var(--paper)); }
.tile.is-owned .tile__owner { opacity: 1; }
.tile.is-owned .tile__price { color: var(--ink); }
.tile.is-mortgaged::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(20, 33, 28, .1) 5px 6.5px);
}
.tile.is-mortgaged .tile__body { opacity: .5; }
.tile.is-pending, .tile.is-auction, .tile.is-selected { box-shadow: inset 0 0 0 2px var(--orange), inset 0 0 0 .6cqw rgba(239, 106, 44, .16); }
.tile.is-pending, .tile.is-auction { animation: tileGlow 1.6s ease-in-out infinite; }

/* Corners */

.tile--corner { align-items: center; justify-content: center; }
.corner__inner { display: grid; justify-items: center; gap: .35cqw; transform: rotate(var(--rot)); }
.tile--corner small { font-size: clamp(5.5px, .92cqw, 10px); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); line-height: 1.15; max-width: 13cqw; }
.corner__icon svg { width: 5.4cqw; height: 5.4cqw; }
.corner--go { background: linear-gradient(135deg, #fff1e7, #ffe0cc); }
.corner__go { font: 700 5.2cqw/.9 var(--font-display); color: var(--orange); letter-spacing: -.03em; }
.corner__arrow { color: var(--orange); }
.corner__arrow svg { width: 5.6cqw; height: 2.8cqw; stroke-width: 2.2; }
.corner--parking { background: var(--mint-3); }
.corner--parking .corner__icon { color: var(--ever-3); }
.tile--corner .corner__bonus { margin-top: .2cqw; padding: .25cqw .6cqw; border-radius: .5cqw; background: var(--orange); color: #fff; letter-spacing: .06em; }
.corner--gotojail { background: var(--ever); }
.corner--gotojail small { color: var(--mint-2); }
.corner--gotojail .corner__icon { color: var(--orange-2); }
.corner--jail { display: block; }
.jail__cell {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 64%;
  display: grid;
  place-items: center;
  border-left: 1.5px solid var(--orange);
  border-bottom: 1.5px solid var(--orange);
  background: #ffe7d9;
}
.jail__bars { position: absolute; inset: 12% 14%; background: repeating-linear-gradient(90deg, transparent 0 18%, var(--ever) 18% 24%); opacity: .85; }
.jail__cell small { position: relative; padding: .25cqw .6cqw; border-radius: 4px; background: var(--orange); color: #fff; transform: rotate(45deg); }
.jail__just, .jail__visiting { position: absolute; display: grid; place-items: center; font-size: clamp(5.5px, .92cqw, 10px); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.jail__just { left: 0; top: 0; width: 36%; height: 64%; writing-mode: vertical-rl; transform: rotate(180deg); }
.jail__visiting { left: 0; bottom: 0; width: 100%; height: 36%; }

/* Board centre: a felt well a step below the tile ring */

.board__center {
  grid-area: 2 / 2 / 11 / 11;
  position: relative;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  background:
    linear-gradient(rgba(31, 106, 82, .07) 1px, transparent 1px) 0 0 / 3.4cqw 3.4cqw,
    linear-gradient(90deg, rgba(31, 106, 82, .07) 1px, transparent 1px) 0 0 / 3.4cqw 3.4cqw,
    radial-gradient(120% 100% at 30% 88%, #f6fbf8, var(--mint-3) 55%, #cde8da);
  box-shadow: inset 0 0 0 .5px var(--line-2), inset 0 0 5cqw rgba(15, 59, 47, .14);
}
.well--n { left: 0; top: 0; width: 100%; height: var(--lift); transform-origin: 50% 0; transform: rotateX(90deg); background: linear-gradient(0deg, #fbf6ea, #ddd0b4); }
.well--s { left: 0; bottom: 0; width: 100%; height: var(--lift); transform-origin: 50% 100%; transform: rotateX(-90deg); background: #b5a481; }
.well--e { right: 0; top: 0; width: var(--lift); height: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); background: linear-gradient(90deg, #f3ebda, #dfd1b5); }
.well--w { left: 0; top: 0; width: var(--lift); height: 100%; transform-origin: 0 50%; transform: rotateY(-90deg); background: linear-gradient(270deg, #cdbd9c, #b9a782); }

.center { position: relative; display: grid; justify-items: center; gap: 1.1cqw; width: 76%; text-align: center; transform-style: preserve-3d; }
.center__brand { display: grid; justify-items: center; gap: .5cqw; }
.center__mark { font: 700 6.6cqw/.9 var(--font-display); letter-spacing: -.035em; color: var(--ever); text-shadow: .12cqw .12cqw 0 rgba(255, 255, 255, .8); }
.center__brand em { display: flex; align-items: center; gap: 1cqw; font: italic 400 1.75cqw/1 var(--font-display); color: var(--orange); }
.center__brand em::before, .center__brand em::after { content: ""; width: 3cqw; height: 1px; background: currentColor; opacity: .6; }
.center__city { position: relative; display: grid; justify-items: center; width: 58%; margin: -.6cqw 0 -1.4cqw; transform-style: preserve-3d; }
.center__art { width: 100%; }
.center__art svg { width: 100%; height: auto; filter: drop-shadow(0 1.6cqw 1.4cqw rgba(10, 40, 31, .18)); }
.skyline { display: none; position: relative; width: 46cqw; height: 13.5cqw; transform-style: preserve-3d; }
.board-stage:not([data-cam="flat"]) .center__art { display: none; }
.board-stage:not([data-cam="flat"]) .skyline { display: block; }
.board-stage:not([data-cam="flat"]) .center__city { width: auto; margin: 1.4cqw 0 .6cqw; }
.center__turn { display: inline-flex; align-items: center; gap: .8cqw; min-height: 2.4cqw; font-size: clamp(8px, 1.3cqw, 13px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ever-3); }
.chip-dot { width: 1.2cqw; height: 1.2cqw; min-width: 7px; min-height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 .35cqw color-mix(in srgb, var(--c) 30%, transparent); }
.center__event {
  margin: 0;
  max-width: 44cqw;
  min-height: 2.6em;
  font: 500 clamp(9px, 1.55cqw, 16px)/1.35 var(--font-display);
  color: var(--ink-2);
  font-style: italic;
  animation: fadeUp .4s var(--ease);
}

/* Solids: a box with five lit faces. --h is its height, --c its colour. */

.cube {
  --top: color-mix(in srgb, var(--c, #fbf8f1), #fff 22%);
  --south: var(--c, #fbf8f1);
  --west: color-mix(in srgb, var(--c, #fbf8f1), #000 7%);
  --east: color-mix(in srgb, var(--c, #fbf8f1), #000 24%);
  --north: color-mix(in srgb, var(--c, #fbf8f1), #000 36%);
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.cube > i { position: absolute; display: block; }
.cube__t { inset: 0; transform: translateZ(var(--h)); background: var(--top); }
.cube__s { left: 0; bottom: 0; width: 100%; height: var(--h); transform-origin: 50% 100%; transform: rotateX(-90deg); background: var(--south); }
.cube__n { left: 0; top: 0; width: 100%; height: var(--h); transform-origin: 50% 0; transform: rotateX(90deg); background: var(--north); }
.cube__e { right: 0; top: 0; width: var(--h); height: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); background: var(--east); }
.cube__w { left: 0; top: 0; width: var(--h); height: 100%; transform-origin: 0 50%; transform: rotateY(-90deg); background: var(--west); }

/* Card decks */

.deck {
  position: absolute;
  width: 15cqw;
  aspect-ratio: 1.5;
  border-radius: .6cqw;
  transform: rotate(-45deg);
  transform-style: preserve-3d;
  box-shadow: 0 0 1.6cqw .2cqw rgba(10, 40, 31, .32);
  pointer-events: none;
}
.deck--chance { top: 7%; left: 3%; }
.deck--chest { right: 3%; bottom: 7%; }
.deck__stack { --h: 1.2cqw; }
.deck__stack > .cube__s, .deck__stack > .cube__n { background: repeating-linear-gradient(180deg, #fbf8f1 0 .14cqw, #d6c8ac .14cqw .22cqw); }
.deck__stack > .cube__e, .deck__stack > .cube__w { background: repeating-linear-gradient(90deg, #fbf8f1 0 .14cqw, #d6c8ac .14cqw .22cqw); }
.deck__card { display: grid; place-items: center; align-content: center; gap: .3cqw; border-radius: .6cqw; }
.deck__card::before { content: ""; position: absolute; inset: .7cqw; border-radius: .6cqw; border: 1px dashed rgba(255, 255, 255, .45); }
.deck--chance .deck__card { background: linear-gradient(150deg, var(--orange-2), var(--orange) 60%); color: #fff; }
.deck--chest .deck__card { background: linear-gradient(150deg, var(--ever-2), var(--ever) 60%); color: var(--mint); }
.deck__glyph { font: 700 4.4cqw/1 var(--font-display); }
.deck__glyph svg { width: 3.8cqw; height: 3.8cqw; }
.deck__label { font-size: clamp(5px, .9cqw, 10px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Dice resting in the well */

.dice { --die: clamp(16px, 4.6cqw, 50px); display: flex; gap: calc(var(--die) * .62); padding: .6cqw 0; transform-style: preserve-3d; }
.die-hop { position: relative; width: var(--die); height: var(--die); transform-style: preserve-3d; }
.die-shadow { position: absolute; inset: -12%; border-radius: 30%; background: radial-gradient(closest-side, rgba(10, 40, 31, .5), rgba(10, 40, 31, 0)); transform: translate(20%, -16%); }
.die { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--die) / 2)) rotateZ(var(--yaw, 0deg)); }
.die__cube { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.16, .84, .24, 1); }
.die__face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 15%;
  border-radius: 18%;
  background: linear-gradient(145deg, #fff, #f1ebdf);
  box-shadow: inset 0 0 0 1px rgba(205, 189, 159, .9), inset 0 -.12em .2em rgba(0, 0, 0, .06);
}
.die__face i { width: 72%; height: 72%; place-self: center; border-radius: 50%; background: var(--ever); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .4); }
.die__face.f1 i { background: var(--orange); width: 86%; height: 86%; }
.f1 { transform: translateZ(calc(var(--die) / 2)); }
.f6 { transform: rotateY(180deg) translateZ(calc(var(--die) / 2)); background: linear-gradient(145deg, #e6dccb, #d6c9b1); }
.f3 { transform: rotateY(90deg) translateZ(calc(var(--die) / 2)); background: linear-gradient(145deg, #ece4d4, #dcd0b9); }
.f4 { transform: rotateY(-90deg) translateZ(calc(var(--die) / 2)); background: linear-gradient(145deg, #fbf8f1, #efe7d8); }
.f5 { transform: rotateX(90deg) translateZ(calc(var(--die) / 2)); background: linear-gradient(145deg, #f7f2e8, #e9e0cf); }
.f2 { transform: rotateX(-90deg) translateZ(calc(var(--die) / 2)); background: linear-gradient(145deg, #f3ede1, #e2d8c4); }
.dice.is-idle .die__face i { background: var(--line-2); box-shadow: none; }
.die-hop.is-rolling { animation: dieSlide 1.05s cubic-bezier(.2, .7, .3, 1); }
.die-hop.is-rolling .die { animation: dieBounce 1.05s linear; }
.die-hop.is-rolling .die-shadow { animation: dieShadow 1.05s linear; }
.die-hop:nth-child(2).is-rolling, .die-hop:nth-child(2).is-rolling .die, .die-hop:nth-child(2).is-rolling .die-shadow { animation-delay: .05s; }

/* Buildings on the colour bands and the centre skyline */

.board__props, .board__tokens { position: absolute; inset: 0; transform: translateZ(var(--lift)); transform-style: preserve-3d; pointer-events: none; }
.lot { position: absolute; inset: 0; transform-style: preserve-3d; }
.bld { position: absolute; width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); transform-style: preserve-3d; }
.bld.is-new { animation: build3d .6s var(--ease) both; }
.bld__shadow {
  position: absolute;
  inset: -8%;
  border-radius: 25%;
  background: rgba(10, 40, 31, .3);
  box-shadow: 0 0 .5cqw .25cqw rgba(10, 40, 31, .2);
  transform: translate(min(calc(var(--h) * .4), 1.8cqw), max(calc(var(--h) * -.4), -1.8cqw)) translateZ(.4px);
}
.bld--house { --h: 1.05cqw; }
.bld--house .bld__body { --c: #fbf8f1; }
.roof { position: absolute; inset: 0; transform: translateZ(var(--h)); transform-style: preserve-3d; }
.roof > i { position: absolute; display: block; }
.roof__s { left: 0; bottom: 0; width: 100%; height: calc(var(--d) * .7071); transform-origin: 50% 100%; transform: rotateX(-45deg); background: linear-gradient(0deg, #1f6a52, #2f8a69); }
.roof__n { left: 0; top: 0; width: 100%; height: calc(var(--d) * .7071); transform-origin: 50% 0; transform: rotateX(45deg); background: #0c3027; }
.roof__e { right: 0; top: 0; width: calc(var(--d) / 2); height: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); clip-path: polygon(100% 0, 100% 100%, 0 50%); background: #c9ba9b; }
.roof__w { left: 0; top: 0; width: calc(var(--d) / 2); height: 100%; transform-origin: 0 50%; transform: rotateY(-90deg); clip-path: polygon(0 0, 0 100%, 100% 50%); background: #eee6d4; }
.bld--hotel { --h: 1.9cqw; }
.bld--hotel .bld__body { --c: var(--orange); }
.bld--hotel .cube__t { background: var(--ever-2); box-shadow: inset 0 0 0 .22cqw var(--orange-2); }
.bld--hotel .cube__s, .bld--hotel .cube__n {
  background:
    repeating-linear-gradient(90deg, var(--f) 0 .32cqw, transparent .32cqw .8cqw),
    linear-gradient(0deg, var(--f) 0 .3cqw, #fff1e2 .3cqw .7cqw, var(--f) .7cqw 1.05cqw, #fff1e2 1.05cqw 1.45cqw, var(--f) 1.45cqw);
}
.bld--hotel .cube__e, .bld--hotel .cube__w {
  background:
    repeating-linear-gradient(0deg, var(--f) 0 .32cqw, transparent .32cqw .8cqw),
    linear-gradient(90deg, var(--f) 0 .3cqw, #fff1e2 .3cqw .7cqw, var(--f) .7cqw 1.05cqw, #fff1e2 1.05cqw 1.45cqw, var(--f) 1.45cqw);
}
.bld--hotel .cube__s { --f: var(--south); }
.bld--hotel .cube__n { --f: var(--north); }
.bld--hotel .cube__e { --f: var(--east); }
.bld--hotel .cube__w { --f: var(--west); }

.tower { position: absolute; width: 7.4cqw; height: 4.6cqw; margin: -2.3cqw 0 0 -3.7cqw; transform-style: preserve-3d; }
.tower::before { content: ""; position: absolute; inset: -10%; border: 1.5px dashed var(--g); border-radius: .5cqw; }
.tower:not(.is-empty)::before { border-style: solid; border-color: color-mix(in srgb, var(--g) 45%, transparent); background: color-mix(in srgb, var(--g) 16%, transparent); }
.tower__body { --c: color-mix(in srgb, var(--g), #fbf8f1 34%); }
.tower.is-empty .tower__body { --c: var(--g); inset: 22%; }
.tower:not(.is-empty) .tower__body > .cube__t { box-shadow: inset 0 0 0 .3cqw var(--g); }
.tower:not(.is-empty) .tower__body > .cube__s, .tower:not(.is-empty) .tower__body > .cube__n {
  background:
    repeating-linear-gradient(90deg, var(--f) 0 .45cqw, transparent .45cqw 1.15cqw),
    repeating-linear-gradient(180deg, var(--f) 0 .5cqw, rgba(15, 59, 47, .42) .5cqw .85cqw);
  background-color: var(--f);
}
.tower:not(.is-empty) .tower__body > .cube__e, .tower:not(.is-empty) .tower__body > .cube__w {
  background:
    repeating-linear-gradient(180deg, var(--f) 0 .45cqw, transparent .45cqw 1.15cqw),
    repeating-linear-gradient(90deg, var(--f) 0 .5cqw, rgba(15, 59, 47, .42) .5cqw .85cqw);
  background-color: var(--f);
}
.tower__body > .cube__s { --f: var(--south); }
.tower__body > .cube__n { --f: var(--north); }
.tower__body > .cube__e { --f: var(--east); }
.tower__body > .cube__w { --f: var(--west); }
.tower__cap { position: absolute; inset: 22% 28%; transform: translateZ(var(--h)); transform-style: preserve-3d; }
.tower__crown { --h: 1.4cqw; --c: var(--gold); }

/* Pawns: a stacked base, then a cone and head that always turn to face the camera. */

.token {
  --tok: clamp(12px, 2.9cqw, 30px);
  position: absolute;
  width: var(--tok);
  height: var(--tok);
  margin: calc(var(--tok) / -2) 0 0 calc(var(--tok) / -2);
  transform: translate(calc(var(--dx, 0) * var(--tok)), calc(var(--dy, 0) * var(--tok)));
  transform-style: preserve-3d;
  transition: left .16s var(--ease), top .16s var(--ease), transform .3s var(--ease);
}
.token.is-jumping { transition: left .65s var(--ease), top .65s var(--ease), transform .3s var(--ease); }
.token__shadow, .token__lift, .token__disc { position: absolute; display: block; }
.token__shadow { inset: -16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 40, 31, .5), rgba(10, 40, 31, 0)); transform: translate(20%, -16%) translateZ(.4px); }
.token__lift { inset: 0; transform-style: preserve-3d; }
.token__disc { inset: 6%; border-radius: 50%; background: color-mix(in srgb, var(--c), #000 36%); }
.token__disc:nth-child(1) { transform: translateZ(calc(var(--tok) * .06)); }
.token__disc:nth-child(2) { transform: translateZ(calc(var(--tok) * .13)); background: color-mix(in srgb, var(--c), #000 22%); }
.token__disc:nth-child(3) {
  transform: translateZ(calc(var(--tok) * .2));
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c), #fff 45%), var(--c) 62%);
  box-shadow: inset 0 0 0 calc(var(--tok) * .05) rgba(255, 255, 255, .35);
}
.token.is-me .token__disc:nth-child(3) { box-shadow: inset 0 0 0 calc(var(--tok) * .08) var(--white), inset 0 0 0 calc(var(--tok) * .13) var(--ever); }
.token__body {
  position: absolute;
  left: 50%;
  bottom: 50%;
  display: block;
  width: calc(var(--tok) * .92);
  height: calc(var(--tok) * 1.5);
  margin-left: calc(var(--tok) * -.46);
  transform-origin: 50% 100%;
  transform: translateZ(calc(var(--tok) * .2)) rotateZ(calc(var(--spin) * -1)) rotateX(calc(var(--tilt) * -1));
}
.token__cone {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 64%;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c), #fff 32%), var(--c) 38%, color-mix(in srgb, var(--c), #000 34%));
}
.token__head {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: calc(var(--tok) * .8);
  height: calc(var(--tok) * .8);
  margin-left: calc(var(--tok) * -.4);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c), #fff 55%), var(--c) 48%, color-mix(in srgb, var(--c), #000 30%));
  color: var(--on, #fff);
  font: 700 calc(var(--tok) * .42)/1 var(--font-display);
}
.token.is-me .token__head { box-shadow: 0 0 0 calc(var(--tok) * .06) var(--white); }
.token.is-turn::before {
  content: "";
  position: absolute;
  inset: -32%;
  border-radius: 50%;
  border: max(2px, calc(var(--tok) * .08)) solid var(--c);
  transform: translateZ(.6px);
  animation: ring 1.8s ease-out infinite;
}
.token.hop .token__lift { animation: tokenHop .17s ease-out; }
.token.is-jumping .token__lift { animation: tokenArc .65s var(--ease); }

/* Top down: pawns read as discs with an initial, the skyline gives way to the drawing. */
.board-stage[data-cam="flat"] .token__body { bottom: auto; top: 50%; width: var(--tok); height: var(--tok); margin: calc(var(--tok) / -2) 0 0 calc(var(--tok) / -2); transform: translateZ(calc(var(--tok) * .22)); }
.board-stage[data-cam="flat"] .token__cone { display: none; }
.board-stage[data-cam="flat"] .token__head { inset: 0; width: auto; height: auto; margin: 0; font-size: calc(var(--tok) * .46); box-shadow: 0 0 0 2px var(--white); }
.board-stage[data-cam="flat"] .token.is-me .token__head { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--ever); }

.board.is-small .tile__name { display: none; }
.board.is-small .tile__body { justify-content: center; }
.board.is-small .tile__icon svg { width: 3.6cqw; height: 3.6cqw; }
.board.is-small .tile--corner small, .board.is-small .jail__just, .board.is-small .jail__visiting, .board.is-small .jail__cell small { display: none; }
.board.is-small .tile--corner .corner__bonus { display: block; font-size: 1.6cqw; }
.board.is-small .deck { display: none; }
.board.is-small .center { width: 88%; }
.board.is-small .center__city { width: 70%; }
.board.is-small .center__brand em::before, .board.is-small .center__brand em::after { display: none; }
.board.is-small .tile__price { font-size: clamp(6px, 2cqw, 9px); letter-spacing: -.02em; }

/* Turn card */

.turn {
  padding: 24px;
  overflow: hidden;
  border: 0;
  color: var(--ivory);
  background:
    radial-gradient(420px 220px at 110% -20%, rgba(159, 216, 189, .2), transparent 70%),
    linear-gradient(165deg, var(--ever-2), var(--ever) 60%, var(--ever-deep));
  box-shadow: var(--shadow-2);
  transition: box-shadow .4s;
}
.turn::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(159, 216, 189, .14);
  box-shadow: 0 0 0 26px rgba(159, 216, 189, .04), 0 0 0 52px rgba(159, 216, 189, .03);
  pointer-events: none;
}
.turn[data-tone="mine"] { box-shadow: var(--shadow-2), 0 0 0 3px rgba(239, 106, 44, .5); }
.turn[data-tone="alert"] { box-shadow: var(--shadow-2), 0 0 0 3px rgba(185, 58, 43, .7); }
.turn > * { position: relative; z-index: 1; }
.turn__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.turn__who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mint-2); }
.turn__title { margin: 16px 0 6px; font: 600 clamp(24px, 2vw, 30px)/1.1 var(--font-display); color: #fff; letter-spacing: -.015em; overflow-wrap: anywhere; }
.turn__text { margin: 0 0 18px; color: rgba(244, 238, 226, .74); font-size: 14.5px; }
.turn__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.turn__actions .btn { min-height: 52px; padding: 0 14px; }
.turn__actions .is-wide, .turn__actions .btn:only-child { grid-column: 1 / -1; }
.turn__actions .btn--accent { font-size: 16px; }
.turn__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(228, 244, 234, .12); }
.turn__cash { display: grid; gap: 2px; }
.turn__cash span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(228, 244, 234, .55); }
.turn__cash strong { font: 600 26px/1 var(--font-display); color: var(--mint); font-variant-numeric: tabular-nums; }
.turn__cash strong.is-negative { color: #ff9b85; }

.mini-deed {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 16px;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: transform .2s var(--ease);
}
.mini-deed:hover { transform: translateY(-1px); }
.mini-deed__band { display: grid; place-items: center; height: 44px; border-radius: 11px; background: var(--g); color: #fff; }
.mini-deed__band svg { width: 22px; height: 22px; }
.mini-deed__body { display: grid; line-height: 1.25; min-width: 0; }
.mini-deed__body strong { font: 600 17px/1.2 var(--font-display); color: var(--ever); }
.mini-deed__body span { font-size: 12.5px; color: var(--ink-3); }
.mini-deed__more { font-size: 12px; font-weight: 700; color: var(--orange-deep); }

.bid-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 14px; overflow: hidden; border-radius: 16px; background: rgba(228, 244, 234, .14); border-top: 4px solid var(--g); }
.bid-board > div { display: grid; gap: 2px; padding: 12px 14px; background: rgba(10, 40, 31, .55); }
.bid-board span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(228, 244, 234, .55); }
.bid-board strong { font: 600 24px/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.bid-board em { font-size: 12.5px; font-style: normal; color: var(--mint-2); }
.bid-form { display: grid; gap: 10px; margin-bottom: 10px; }
.bid-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bid-quick button { height: 34px; border: 1px solid rgba(228, 244, 234, .2); border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--mint-2); font-size: 13px; font-weight: 700; }
.bid-quick button:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.bid-quick button:disabled { opacity: .35; }
.bid-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bid-input { display: flex; align-items: center; height: 52px; padding: 0 14px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.bid-input span { font: 600 20px/1 var(--font-display); color: var(--ink-3); }
.bid-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 6px; font: 600 20px/1 var(--font-display); color: var(--ever); font-variant-numeric: tabular-nums; }
.bid-input input:focus { outline: none; }
.bid-input:focus-within { box-shadow: 0 0 0 3px var(--orange); }
.bid-row .btn { min-height: 52px; }
.passed { margin: 10px 0 0; font-size: 12.5px; color: rgba(228, 244, 234, .6); }

/* Players */

.players { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.player {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  transition: background .3s;
}
.player.is-turn { background: var(--ivory); }
.player.is-turn::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--orange); }
.player.is-out { opacity: .5; }
.player.is-out .player__name span:first-child { text-decoration: line-through; }
.player__main { min-width: 0; }
.player__name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 650; }
.player__name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__sub { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__deeds { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.player__deeds i { width: 10px; height: 14px; border-radius: 2.5px; background: var(--g); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.player__deeds i.is-mortgaged { opacity: .35; }
.player__cash { font: 600 18px/1 var(--font-display); color: var(--ever); font-variant-numeric: tabular-nums; }
.player__cash.is-negative { color: var(--danger); }

/* Estate */

.estate__group + .estate__group { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.estate__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.estate__head i { width: 12px; height: 12px; border-radius: 4px; background: var(--g); }
.estate__head em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--ink-3); }
.estate__head em.is-full { color: var(--orange-deep); }
.estate__deeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.deed-chip {
  display: grid;
  gap: 4px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--g);
  border-radius: 12px;
  background: var(--paper);
  text-align: left;
  transition: transform .2s var(--ease), border-color .2s;
}
.deed-chip:hover { transform: translateY(-1px); border-color: var(--line-2); border-left-color: var(--g); }
.deed-chip__name { font-size: 13px; font-weight: 650; line-height: 1.2; color: var(--ink); }
.deed-chip__meta { display: flex; gap: 3px; align-items: center; min-height: 12px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.deed-chip__meta .house { width: 10px; height: 10px; background: var(--ever-3); filter: none; }
.deed-chip__meta .hotel { width: 20px; height: 10px; box-shadow: none; }
.deed-chip.is-mortgaged { background: repeating-linear-gradient(135deg, var(--paper) 0 6px, var(--ivory-2) 6px 7px); }

/* Feed */

.feed__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -6px -6px 14px; padding: 4px; border-radius: 16px; background: var(--ivory-2); }
.feed__tabs button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 12px; background: none; font-size: 14px; font-weight: 650; color: var(--ink-3); }
.feed__tabs button svg { width: 17px; height: 17px; }
.feed__tabs button[aria-selected="true"] { background: var(--white); color: var(--ever); box-shadow: 0 1px 2px rgba(20, 33, 28, .08); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; }
.log { list-style: none; margin: 0; padding: 0 2px 0 0; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.log li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding: 6px 4px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); border-bottom: 1px solid rgba(227, 216, 196, .6); }
.log li:last-child { border-bottom: 0; }
.log__dot { width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--line-2); }
.log li.is-new { color: var(--ink); animation: fadeUp .4s var(--ease); }
.log li.is-new .log__dot { background: var(--orange); }

/* Dialogs */

.modal {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 50px 90px -30px rgba(10, 40, 31, .6);
  overflow: auto;
}
.modal[open] { animation: modalIn .32s var(--ease); }
.modal::backdrop { background: rgba(10, 40, 31, .42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 30px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 10px 0 0; font: 600 30px/1.1 var(--font-display); color: var(--ever); letter-spacing: -.015em; }
.icon-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-2); transition: transform .2s var(--ease); }
.icon-close:hover { transform: rotate(90deg); }
.icon-close svg { width: 18px; height: 18px; }

.modal--rules { width: min(860px, calc(100vw - 28px)); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; padding: 10px 30px 30px; }
.rules section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules h3 { margin: 0 0 6px; font: 600 19px/1.2 var(--font-display); color: var(--ever); }
.rules p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.rules__keys { grid-column: 1 / -1; border-bottom: 0 !important; }
.rules__modes { grid-column: 1 / -1; }
.rules__modes strong { color: var(--ever); }
.rules__keys ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 14px; }
.rules__keys kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 6px; padding: 0 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px; background: var(--paper); color: var(--ever); }

.modal--deed { width: min(420px, calc(100vw - 28px)); background: var(--paper); }
.deed__head { position: relative; padding: 26px 64px 24px 26px; background: var(--g); color: var(--gi, #fff); }
.deed__head--railroad, .deed__head--utility, .deed__head--chance, .deed__head--chest, .deed__head--tax, .deed__head--go, .deed__head--jail, .deed__head--parking, .deed__head--gotojail { background: linear-gradient(150deg, var(--ever-2), var(--ever)); color: #fff; }
.deed__kicker { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.deed__head h2 { margin: 6px 0 0; font: 700 30px/1.08 var(--font-display); letter-spacing: -.015em; }
.deed__head .icon-close { position: absolute; top: 18px; right: 18px; background: rgba(255, 255, 255, .9); border-color: transparent; color: var(--ink); }
.deed__body { padding: 20px 26px 26px; }
.deed__rent { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.deed__rent th, .deed__rent td { padding: 8px 10px; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.deed__rent th { text-align: left; font-weight: 500; color: var(--ink-2); }
.deed__rent td { text-align: right; font-weight: 700; color: var(--ever); }
.deed__rent tr.is-active th, .deed__rent tr.is-active td { background: #fff1e7; color: var(--orange-deep); }
.deed__rent tr.is-active th { border-radius: 8px 0 0 8px; font-weight: 700; }
.deed__rent tr.is-active td { border-radius: 0 8px 8px 0; }
.deed__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 16px 0; }
.deed__facts div { padding: 10px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.deed__facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.deed__facts dd { margin: 2px 0 0; font: 600 18px/1.1 var(--font-display); color: var(--ever); }
.deed__facts s { margin-left: 4px; font: 500 12.5px/1 var(--font-sans); color: var(--ink-3); }
.deed__market { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff1e7; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.deed__market svg { flex: none; width: 18px; height: 18px; color: var(--orange-deep); }
.deed__market strong { color: var(--orange-deep); }
.deed__owner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ivory-2); font-size: 14px; }
.deed__owner em { color: var(--danger); font-style: normal; font-weight: 600; }
.deed__unowned { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.deed__unowned svg { width: 18px; height: 18px; color: var(--ever-3); }
.deed__text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.deed__here { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; }
.deed__here > span:first-child { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; color: var(--ink-3); }
.deed__pawn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; }
.deed__actions { display: grid; gap: 8px; margin-top: 16px; }
.deed__actions .btn { justify-content: flex-start; }
.deed__note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

.modal--confirm { width: min(440px, calc(100vw - 28px)); }
.confirm { display: grid; justify-items: center; gap: 10px; padding: 32px 30px 28px; text-align: center; }
.confirm__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #fde3dc; color: var(--danger); }
.confirm__icon svg { width: 28px; height: 28px; }
.confirm h2 { margin: 8px 0 0; font: 600 26px/1.15 var(--font-display); color: var(--ever); }
.confirm p { margin: 0 0 12px; color: var(--ink-2); }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.modal--winner { width: min(520px, calc(100vw - 28px)); background: var(--ever); color: var(--ivory); overflow: hidden; }
.winner { position: relative; display: grid; justify-items: center; gap: 12px; padding: 40px 32px 32px; text-align: center; background: radial-gradient(400px 260px at 50% -10%, rgba(239, 106, 44, .35), transparent 70%); }
.winner h2 { margin: 0; font: 700 clamp(30px, 5vw, 40px)/1.05 var(--font-display); color: #fff; letter-spacing: -.02em; }
.winner__crown { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--orange); color: #fff; box-shadow: 0 18px 34px -12px rgba(239, 106, 44, .8); animation: pop .6s var(--ease); }
.winner__crown svg { width: 40px; height: 40px; }
.winner__list { list-style: none; margin: 12px 0 8px; padding: 0; width: 100%; display: grid; gap: 6px; }
.winner__list li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); text-align: left; }
.winner__list li.is-winner { background: rgba(239, 106, 44, .22); box-shadow: inset 0 0 0 1px rgba(255, 138, 76, .45); }
.winner__text { margin: -4px 0 0; max-width: 30em; font-size: 14.5px; color: rgba(244, 238, 226, .74); }
.winner__cols { display: flex; justify-content: space-between; width: 100%; margin: 6px 0 -12px; padding: 0 46px 0 54px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(228, 244, 234, .5); }
.winner__tag { margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.winner__list em { font-style: normal; font-weight: 700; color: var(--mint); font-variant-numeric: tabular-nums; }
.winner__list b { font: 600 14px/1 var(--font-display); color: rgba(228, 244, 234, .5); }
.winner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.winner__confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.winner__confetti i { position: absolute; top: -20px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); animation: confetti 3.2s var(--d) cubic-bezier(.3, .6, .5, 1) infinite; }

/* Toasts and veil */

.toasts { position: fixed; z-index: 60; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 12px 14px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 20px 40px -18px rgba(10, 40, 31, .7);
  font-size: 14px;
  pointer-events: auto;
  animation: toastIn .35s var(--ease);
}
.toast.is-leaving { animation: toastOut .26s ease forwards; }
.toast__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--mint); }
.toast__icon svg { width: 17px; height: 17px; }
.toast--error .toast__icon { background: rgba(255, 120, 100, .16); color: #ff9b85; }
.toast--success .toast__icon { color: #7fe0b0; }
.toast--turn { background: var(--orange); color: #fff; }
.toast--turn .toast__icon { background: rgba(255, 255, 255, .2); color: #fff; }
.toast__close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: inherit; opacity: .6; }
.toast__close:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.toast__close svg { width: 15px; height: 15px; }

.veil { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(244, 238, 226, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .25s; }
.veil__card { display: grid; justify-items: center; gap: 18px; padding: 32px 40px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow-2); font-weight: 600; color: var(--ever); }
.veil__card p { margin: 0; }
.veil__cube { position: relative; width: 44px; height: 50px; animation: spinCube 1.6s var(--ease) infinite; }
.veil__cube i { position: absolute; width: 26px; height: 26px; }
.veil__cube i:nth-child(1) { left: 9px; top: 0; background: var(--mint-2); transform: rotate(45deg) skew(-12deg, -12deg); transform-origin: center; }
.veil__cube i:nth-child(2) { left: 0; top: 16px; width: 22px; height: 30px; background: var(--mint); transform: skewY(30deg); }
.veil__cube i:nth-child(3) { right: 0; top: 16px; width: 22px; height: 30px; background: var(--ever-3); transform: skewY(-30deg); }

.noscript { position: fixed; inset: auto 16px 16px; padding: 16px; border-radius: 16px; background: var(--ink); color: var(--ivory); text-align: center; }

/* Motion */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes dealIn { from { opacity: 0; transform: translateY(-14px) rotate(-6deg); } }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@keyframes floatCard { 50% { translate: 0 -8px; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(47, 179, 122, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47, 179, 122, 0); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes tileGlow { 50% { box-shadow: inset 0 0 0 2px var(--orange), 0 0 0 6px rgba(239, 106, 44, .12); } }
@keyframes dieSlide { from { transform: translate(-7cqw, 5cqw); } }
@keyframes dieBounce {
  0% { transform: translateZ(calc(var(--die) * .5)) rotateZ(var(--yaw, 0deg)); animation-timing-function: cubic-bezier(.3, .7, .5, 1); }
  30% { transform: translateZ(calc(var(--die) * 2.4)) rotateZ(var(--yaw, 0deg)); animation-timing-function: cubic-bezier(.5, 0, .8, .4); }
  58% { transform: translateZ(calc(var(--die) * .5)) rotateZ(var(--yaw, 0deg)); animation-timing-function: cubic-bezier(.3, .7, .5, 1); }
  72% { transform: translateZ(calc(var(--die) * 1.05)) rotateZ(var(--yaw, 0deg)); animation-timing-function: cubic-bezier(.5, 0, .8, .4); }
  84%, 100% { transform: translateZ(calc(var(--die) * .5)) rotateZ(var(--yaw, 0deg)); }
}
@keyframes dieShadow { 30% { transform: translate(60%, -50%) scale(1.3); opacity: .3; } 58% { transform: translate(20%, -16%); opacity: 1; } 72% { transform: translate(32%, -26%) scale(1.1); opacity: .7; } }
@keyframes build3d { 0% { transform: translateZ(5cqw) scale3d(.3, .3, .3); } 65% { transform: translateZ(0) scale3d(1.08, 1.08, 1.08); } 100% { transform: none; } }
@keyframes tokenHop { 50% { transform: translateZ(calc(var(--tok) * .55)); } }
@keyframes tokenArc { 45% { transform: translateZ(calc(var(--tok) * 2.2)); } }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes confetti { 0% { transform: translateY(0) rotate(var(--r)); opacity: 1; } 100% { transform: translateY(560px) rotate(calc(var(--r) + 540deg)); opacity: 0; } }
@keyframes spinCube { 50% { transform: translateY(-6px) rotate(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Responsive */

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { max-width: 640px; }
  .hero__art { max-width: 760px; width: 100%; justify-self: center; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { margin-top: 12px; }

  .game { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .game__side { display: contents; }
  .game__board { position: static; grid-column: 1 / -1; order: 1; }
  .turn { grid-column: 1 / -1; order: 0; }
  .players-card { order: 2; }
  .estate-card { order: 3; }
  .feed-card { order: 4; grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .lobby__grid { grid-template-columns: 1fr; }
  .room-card { grid-template-columns: 1fr; }
  .room-card__city { max-width: 420px; justify-self: end; margin-top: -10px; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .topbar__room { justify-self: center; }
  .brand__ed { display: none; }
}

@media (max-width: 720px) {
  :root { --topbar: 62px; }
  body { font-size: 14.5px; }
  .brand__word { font-size: 18px; }
  .brand__mark { width: 32px; height: 32px; }
  .topbar { gap: 8px; padding: 0 12px; }
  .shell:not([data-view="landing"]) .brand__word { display: none; }
  .topbar__nav { gap: 2px; }
  .nav-btn__text { display: none; }
  .nav-btn { width: 40px; padding: 0; justify-content: center; }
  .conn span { display: none; }
  .room-chip { height: 36px; padding: 0 10px 0 12px; gap: 6px; }
  .room-chip__label { display: none; }
  .room-chip__code { font-size: 14px; letter-spacing: .12em; }

  .hero { padding-top: 18px; gap: 18px; }
  .hero__lede { margin: 18px 0 24px; }
  .entry { border-radius: 26px; }
  .entry__form { padding: 20px 10px 0; }
  .field-row { grid-template-columns: 1fr; }
  .resume { grid-template-columns: auto 1fr; }
  .resume__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .float-card { display: none; }
  .hero__art { aspect-ratio: 1 / .86; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0 0; border-left: 0; margin-top: 0; }
  .step + .step { margin-top: 18px; }

  .seats { grid-template-columns: 1fr 1fr; }
  .lobby__buttons { width: 100%; }
  .lobby__buttons .btn { flex: 1; }

  .game { grid-template-columns: minmax(0, 1fr); padding: 12px 10px 28px; gap: 12px; }
  .game__board, .turn, .feed-card { grid-column: auto; }
  .card { padding: 18px; border-radius: 20px; }
  .turn { padding: 20px; }
  .zoom-btn { display: inline-flex; }
  .hud { gap: 6px; }
  .hud__mode, .hud__chip { height: 30px; padding: 0 10px; font-size: 12px; }
  .hud__event { width: 100%; padding: 4px 12px 4px 4px; border-radius: 14px; }
  .hud__event-icon { width: 28px; height: 28px; border-radius: 10px; }
  .hud__event-copy { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .hud__event-copy span, .hud__event em { display: none; }
  .hud__event-copy strong { font-size: 14px; }
  .cam-seg button { position: relative; width: 42px; justify-content: center; padding: 0; }
  .cam-seg button span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cam-btn { height: 42px; padding: 0 14px; }
  .modal__head { padding: 22px 20px 14px; }
  .modal__head h2 { font-size: 24px; }
  .rules { grid-template-columns: 1fr; padding: 4px 20px 22px; }
  .modal { border-radius: 24px; }
}

@media (max-width: 420px) {
  .seats { grid-template-columns: 1fr; }
  .seat { min-height: 0; grid-template-columns: auto 1fr; align-items: center; }
  .seat__tags { grid-column: 2; }
  .seat .avatar { grid-row: span 2; }
  .turn__actions { grid-template-columns: 1fr; }
}
