:root {
  color-scheme: dark;
  --bg: #101c19;
  --panel: #182721;
  --panel-light: #1d3028;
  --line: #314137;
  --text: #ebece0;
  --muted: #9cae9e;
  --gold: #d6bc80;
  --green: #b4d69b;
  --ink: #263d33;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel-light);
  color: var(--text);
  border-radius: 6px;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  background: #2b4032;
  border-color: #70816a;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.busy button {
  cursor: wait;
}
a {
  color: inherit;
}
p {
  color: var(--muted);
  line-height: 1.75;
  margin: 12px 0 20px;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 52px;
  line-height: 1.15;
}
h2 {
  font-size: 29px;
}
h3 {
  font-size: 21px;
}
em {
  font-weight: 400;
  color: var(--green);
}
small {
  color: var(--muted);
  font-size: 12px;
}
strong,
b {
  font-weight: 600;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.emerald {
  color: var(--green);
  font-size: 0.85em;
}
.topbar {
  height: 96px;
  max-width: 1440px;
  margin: auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #26382f;
  position: relative;
  z-index: 2;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo > .icon {
  width: 36px;
  height: 40px;
  color: var(--green);
}
.logo > span,
.brand {
  font-family: Georgia, serif;
  font-size: 26px;
  letter-spacing: 4px;
}
.logo small {
  display: block;
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 2.1px;
  margin-top: 7px;
  color: #aebba8;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-note {
  font-size: 12px;
  color: var(--muted);
}
.ghost {
  border-color: transparent;
  background: transparent;
  padding: 10px 0;
  font-size: 12px;
  color: #c6d0c0;
}
.ghost .icon {
  width: 18px;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #193326;
  font-weight: 600;
  min-height: 46px;
}
.primary:hover:not(:disabled) {
  background: #c6e6ae;
  border-color: #d9ebc7;
}
.secondary {
  background: #23362b;
  border-color: #435645;
}
.wide {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 12px;
}
.text-button:hover:not(:disabled) {
  background: transparent;
  color: var(--text);
}
.icon-button {
  padding: 8px;
  background: transparent;
  border-color: transparent;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.eyebrow .icon {
  width: 17px;
  height: 17px;
}
.eyebrow > span {
  height: 1px;
  width: 26px;
  background: var(--gold);
}
.landing {
  max-width: 1440px;
  min-height: 648px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 374px;
  gap: 70px;
  align-items: center;
  padding: 60px 80px 66px;
  position: relative;
  overflow: hidden;
}
.world-art {
  position: absolute;
  inset: -75px -50px -100px 260px;
  background:
    linear-gradient(90deg, var(--bg), transparent 50%),
    linear-gradient(0deg, var(--bg), transparent 25%),
    url("/world.svg") center/cover no-repeat;
  opacity: 0.48;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy .eyebrow {
  margin-bottom: 29px;
}
.hero-copy h1 {
  font-size: clamp(46px, 4.6vw, 68px);
  line-height: 1.14;
  letter-spacing: -2px;
}
.hero-copy > p {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.9;
  margin-top: 23px;
  margin-bottom: 30px;
}
.hero-meta {
  display: flex;
  gap: 22px;
  color: #bfccba;
  font-size: 11px;
}
.hero-meta > span {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.hero-meta .icon {
  width: 16px;
  height: 16px;
  color: #8ea884;
}
.hero-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #81917f;
  margin-top: 58px;
}
.compass {
  font-size: 29px;
  color: #a5b98c;
}
.entry-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(130deg, #1e3028f5, #16261fee);
  border: 1px solid #42523f;
  box-shadow: 0 25px 80px #06130e5c;
  padding: 31px;
  border-radius: 10px;
  backdrop-filter: blur(12px);
}
.entry-card:before {
  content: "";
  position: absolute;
  left: 31px;
  top: -1px;
  right: 31px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b7cba0, transparent);
}
.card-kicker {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 15px;
}
.entry-card h2 {
  font-size: 31px;
}
.entry-card > p {
  font-size: 12px;
  margin: 11px 0 25px;
}
.segmented {
  display: flex;
  border: 1px solid #354739;
  padding: 4px;
  background: #0f1f17;
  border-radius: 6px;
  margin-bottom: 23px;
  gap: 3px;
}
.segmented button {
  width: 50%;
  padding: 10px 6px;
  border: 0;
  background: transparent;
  color: #98ad97;
  font-size: 12px;
}
.segmented button.selected {
  background: #324735;
  color: #edf0e4;
  box-shadow: 0 2px 4px #0002;
}
label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  color: #becaba;
}
input,
select {
  width: 100%;
  border: 1px solid #3a4d3b;
  background: #112219;
  color: var(--text);
  padding: 13px 14px;
  border-radius: 5px;
  min-height: 45px;
  outline: none;
}
input::placeholder {
  color: #6e856e;
}
input:focus,
select:focus {
  border-color: #aecf98;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  height: 17px;
  accent-color: var(--green);
  flex-shrink: 0;
  margin: 0;
}
form > input {
  margin-bottom: 19px;
}
.entry-card .primary {
  font-size: 13px;
  justify-content: space-between;
  margin-top: 4px;
}
.entry-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 23px;
  color: #8ea38d;
  font-size: 10px;
}
.entry-hint .icon {
  width: 14px;
  height: 14px;
}
.class-preview {
  display: flex;
  align-items: center;
  border-top: 1px solid #364636;
  padding-top: 20px;
}
.class-preview > span {
  background: color-mix(in srgb, var(--class) 8%, #16241a);
  border: 1px solid color-mix(in srgb, var(--class) 23%, #16241a);
  width: 37px;
  height: 39px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -2px;
}
.class-preview small {
  font-size: 10px;
  line-height: 1.6;
  margin-left: 14px;
}
.avatar {
  width: 140px;
  height: 158px;
  object-fit: contain;
  flex-shrink: 0;
}
.city-photo {
  margin: 0 0 18px;
}
.city-photo img {
  display: block;
  width: 100%;
  height: clamp(110px, 23vh, 190px);
  object-fit: cover;
  border-radius: 8px;
}
.city-photo figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}
.city-photo a {
  color: inherit;
}
.avatar.small {
  width: 39px;
  height: 43px;
}
.class-preview .avatar {
  width: 31px;
  height: 37px;
}
.steps {
  border-top: 1px solid #2b3d30;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 0;
  gap: 30px;
}
.steps > div {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 0 25px;
}
.steps > div + div {
  border-left: 1px solid #2c3c30;
}
.steps b {
  font:
    23px Georgia,
    serif;
  color: #779071;
}
.steps strong {
  display: block;
  font-size: 12px;
  margin: 1px 0 10px;
  color: #d3ddca;
}
.steps small {
  font-size: 11px;
  line-height: 1.65;
  display: block;
  color: #8e9d87;
}
footer {
  max-width: 1320px;
  margin: auto;
  padding: 27px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #82927e;
  font-size: 10px;
  border-top: 1px solid #24372b;
}
footer > span {
  color: #64765f;
}
.loading {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.connection {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d0ac77;
}
.connection i,
.waiting i {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: currentColor;
  border-radius: 50%;
}
.connection.online {
  color: #a9c398;
}
.lobby-page {
  max-width: 1280px;
  padding: 45px 25px;
  margin: auto;
}
.lobby-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  gap: 30px;
}
.lobby-intro h1 {
  font-size: 43px;
  margin-top: 15px;
}
.lobby-intro p {
  margin-bottom: 0;
  font-size: 13px;
}
.invite-box {
  padding: 18px 24px;
  border: 1px solid #43573f;
  border-radius: 7px;
  background: #1b2d22;
  min-width: 270px;
}
.invite-box > small {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--gold);
}
.invite-box > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.invite-box strong {
  font-size: 30px;
  letter-spacing: 6px;
  line-height: 1.5;
  color: #e4e8d4;
  font-family: Georgia, serif;
}
.invite-box > span {
  color: #8fa186;
  font-size: 10px;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}
.class-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  padding: 18px 15px 0;
  overflow: hidden;
  background: linear-gradient(170deg, #22372a, #17291f);
  border: 1px solid #3b4e3c;
  position: relative;
  border-radius: 8px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.class-card:hover:not(:disabled) {
  border-color: var(--class);
  background: color-mix(in srgb, var(--class) 10%, #19291e);
}
.class-card.chosen {
  border-color: var(--class);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--class) 16%, #19291e),
    #19291e
  );
  box-shadow: 0 0 0 1px var(--class);
}
.class-card:disabled {
  opacity: 1;
}
.class-card.taken {
  opacity: 0.5;
}
.class-status {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #9fae92;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.class-status .icon {
  width: 12px;
  height: 12px;
}
.chosen .class-status {
  color: var(--class);
}
.portrait {
  height: 158px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 7px;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--class) 15%, transparent),
    transparent 65%
  );
}
.portrait:before {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  border: 1px solid color-mix(in srgb, var(--class) 20%, transparent);
  transform: rotate(45deg);
  border-radius: 12px;
}
.portrait .avatar {
  width: 113px;
  height: 135px;
  position: relative;
  filter: drop-shadow(0 10px 9px #09150f66);
}
.weapon {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--class);
  margin-top: 10px;
}
.class-card h2 {
  font-size: 28px;
  margin: 7px 0 0;
}
.class-card > p {
  font-size: 10px;
  margin: 11px 0 20px;
  color: #acb99f;
  white-space: nowrap;
}
.class-owner {
  width: calc(100% + 30px);
  border-top: 1px solid color-mix(in srgb, var(--class) 20%, #1a2c20);
  padding: 13px 15px;
  font-size: 11px;
  color: #c7d2bc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
}
.class-owner .icon {
  width: 15px;
  height: 15px;
  color: var(--class);
}
.lobby-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
.party-panel,
.ready-panel {
  border: 1px solid #324731;
  border-radius: 8px;
  background: #18291f;
  padding: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 21px;
}
.section-heading h2 > span {
  font:
    11px Arial,
    sans-serif;
  color: #90a17f;
  margin-left: 10px;
}
.section-heading > span {
  color: #90a17f;
  font-size: 10px;
}
.party-member {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-top: 1px solid #2e422e;
}
.party-member > div {
  flex: 1;
  min-width: 0;
}
.party-member strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.party-member strong > small {
  font-size: 10px;
}
.party-member div > small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.member-status {
  font-size: 10px;
  color: #95a187;
  display: flex;
  align-items: center;
  gap: 4px;
}
.member-status .icon {
  width: 14px;
  height: 14px;
}
.member-status.ready {
  color: var(--green);
}
.empty-slot {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #76896e;
  font-size: 10px;
  border-top: 1px dashed #2d422d;
}
.empty-slot .icon {
  width: 20px;
  height: 20px;
  margin-left: 9px;
}
.ready-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 45px;
}
.ready-symbol {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #45603b;
  background: #29412a;
  transform: rotate(45deg);
  border-radius: 9px;
  margin-bottom: 24px;
}
.ready-symbol > .icon {
  transform: rotate(-45deg);
  color: var(--green);
}
.ready-panel h2 {
  font-size: 25px;
}
.ready-panel p {
  font-size: 12px;
  line-height: 1.8;
}
.ready-panel .primary {
  max-width: 330px;
}
.ready-panel > small {
  font-size: 10px;
  margin-top: 10px;
  line-height: 1.5;
}
.ready-panel > .text-button {
  margin-top: 12px;
}
.lobby-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8fa184;
  font-size: 11px;
  margin: 25px 0 0;
}
.lobby-note .icon {
  width: 16px;
  height: 16px;
  color: #a5c28a;
}
.game-page {
  max-width: 1440px;
  margin: auto;
  padding: 27px 40px 42px;
}
.game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.game-top h1 {
  font-size: 29px;
  margin-top: 7px;
}
.game-top h1 span {
  color: var(--green);
}
.game-top .eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
}
.game-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lobby-tag {
  font-size: 9px;
  color: #a2b091;
  letter-spacing: 1.4px;
}
.lobby-tag b {
  font-size: 13px;
  color: #c9d2b7;
  letter-spacing: 2px;
  margin-left: 8px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  align-items: start;
  gap: 26px;
}
.board-container {
  padding: 9px;
  background: #3a4a34;
  border-radius: 9px;
  box-shadow: 0 16px 45px #09120c88;
  border: 1px solid #718263;
  min-width: 0;
}
.board {
  display: grid;
  grid-template-columns: 1.45fr repeat(9, 1fr) 1.45fr;
  grid-template-rows: 1.45fr repeat(9, 1fr) 1.45fr;
  aspect-ratio: 1;
  gap: 2px;
  background: #4b6146;
  overflow: hidden;
  border: 1px solid #4b6146;
  border-radius: 3px;
  position: relative;
}
.tile {
  border: none;
  padding: 3px 2px;
  gap: 2px;
  position: relative;
  border-radius: 0;
  min-width: 0;
  min-height: 0;
  background: #d8ddbd;
  color: #263d2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: background 0.15s;
  isolation: isolate;
}
.tile:hover:not(:disabled) {
  background: #eef0d0;
  border: none;
}
.tile.owned-tile {
  background: var(--owner);
  color: #152c23;
}
.tile.owned-tile:hover {
  background: color-mix(in srgb, var(--owner) 80%, white);
}
.tile.owned-tile .tile-price {
  color: #20382c;
}
.tile.owned-tile.mortgaged {
  background:
    repeating-linear-gradient(135deg, #fff0 0 5px, #17312633 5px 8px),
    var(--owner);
}
.emerald-icon {
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: -0.18em;
}
.emerald.emerald-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
}
.cards-panel {
  background: #1b2b22;
  border: 1px solid #354c34;
  border-radius: 9px;
  padding: 18px;
}
.card-stacks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 100px;
  padding: 12px 6px;
  border: 1px solid #8d7851;
  background: #3a3526;
  color: #e8d5a8;
  border-radius: 7px;
  box-shadow:
    2px 3px 0 #15241c,
    3px 4px 0 #8d7851;
}
.card-stack.chest {
  background: #273b34;
  color: #bfddc6;
  border-color: #5f8a74;
}
.card-stack small {
  font-size: 9px;
}
.card-stack strong {
  font-family: Georgia, serif;
  font-size: 17px;
}
.cards-panel > p {
  font-size: 10px;
  color: #a6b5a1;
  line-height: 1.5;
  margin-bottom: 0;
}
.last-card-button {
  text-align: left;
  white-space: normal;
  font-size: 11px;
  line-height: 1.5;
}
.event-card {
  text-align: center;
  padding-top: 15px;
}
.event-card > .icon {
  width: 60px;
  height: 60px;
  color: #d9c184;
  margin: 25px 0 16px;
}
.event-card h2 {
  font-size: 30px;
}
.event-card > p {
  font-size: 17px;
  line-height: 1.7;
  margin: 22px 0;
}
.event-card small {
  display: block;
  color: #a6b5a1;
  line-height: 1.6;
  margin-bottom: 24px;
}
.card-history {
  padding-left: 20px;
}
.card-history li {
  margin-top: 20px;
}
.roll-button {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.roll-button.holding {
  box-shadow: 0 0 0 4px #b9d89866;
}
.dice-theater {
  position: fixed;
  z-index: 30;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #172b24f5;
  color: #e2eccf;
  border: 1px solid #9fba85;
  border-radius: 16px;
  box-shadow: 0 12px 70px #0008;
  padding: 12px 28px;
  pointer-events: none;
  text-align: center;
  width: min(340px, calc(100vw - 32px));
}
.dice-theater[hidden] {
  display: none;
}
.dice-theater .dice-pair {
  margin: 10px 0;
  justify-content: center;
}
.dice-theater p {
  font-size: 12px;
  margin: 8px 0;
}
.dice-theater.shaking .die {
  animation: dice-shake 0.24s linear infinite;
}
.dice-theater.shaking .die + .die {
  animation-direction: reverse;
}
@keyframes dice-shake {
  0%,
  100% {
    transform: translate(-4px, 1px) rotate(-14deg);
  }
  50% {
    transform: translate(4px, -7px) rotate(16deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dice-theater.shaking .die {
    animation: none;
  }
}
.tile:focus-visible {
  outline-offset: -3px;
  z-index: 2;
}
.tile > .icon {
  width: 19px;
  height: 19px;
  color: #607450;
  margin-bottom: 1px;
}
.tile-name {
  font-size: clamp(7px, 0.77vw, 11px);
  font-weight: 600;
  line-height: 1.18;
  overflow-wrap: anywhere;
  max-width: 100%;
  position: relative;
  z-index: 1;
}
.tile-price {
  font-size: clamp(7px, 0.69vw, 10px);
  color: #5c6e4d;
  position: relative;
  z-index: 1;
}
.tile-price .emerald {
  color: #647d47;
}
.color-band {
  height: 15%;
  min-height: 10px;
  background: var(--group);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid #0001;
}
.color-band .icon {
  height: 10px;
  width: 11px;
  color: #213b2a;
  fill: #c1dba8;
}
.tile:has(.color-band) {
  padding-top: 14px;
}
.side-tile:has(.color-band) {
  padding-top: 3px;
  padding-left: 11px;
}
.side-tile .color-band {
  height: auto;
  min-height: 0;
  width: 8px;
  right: auto;
  top: 0;
  bottom: 0;
  flex-direction: column;
  overflow: hidden;
}
.side-tile .color-band .icon {
  width: 8px;
  height: 10px;
}
.side-tile .tile-name {
  font-size: clamp(8px, 0.86vw, 12px);
}
.side-tile > .icon {
  width: 16px;
  height: 16px;
}
.corner {
  background: #c3cfa9;
}
.corner > .icon {
  width: 27px;
  height: 27px;
  color: #4e6840;
}
.corner .tile-name {
  font-family: Georgia, serif;
  font-size: clamp(9px, 1vw, 15px);
  font-weight: 600;
}
.corner .tile-price {
  font-size: 8px;
}
.corner.side-tile > .icon {
  width: 23px;
  height: 23px;
}
.ownership-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  background: var(--owner);
  border: 1px solid #243d2b;
  border-radius: 50%;
  z-index: 1;
}
.mortgaged {
  background: repeating-linear-gradient(
    135deg,
    #b2bca1,
    #b2bca1 5px,
    #bec6ab 5px,
    #bec6ab 10px
  );
}
.current-tile {
  box-shadow: inset 0 0 0 2px #63883a;
  background: #edf1cf;
}
.tokens {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: absolute;
  bottom: 1px;
  left: 1px;
  right: 1px;
  pointer-events: none;
  z-index: 2;
  gap: 0;
  flex-wrap: wrap;
}
.token {
  height: 24px;
  width: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--class) 68%, #d5dac0);
  border: 1px solid #324c36;
  box-shadow: 0 1px 3px #10251666;
}
.token + .token {
  margin-left: -5px;
}
.token .avatar {
  width: 21px;
  height: 25px;
  filter: drop-shadow(0 1px 1px #0005);
}
.token.active-token {
  box-shadow:
    0 0 0 1px #f9ffe8,
    0 1px 4px #25472d99;
}
.board-center {
  grid-row: 2/11;
  grid-column: 2/11;
  position: relative;
  background: linear-gradient(#c6d2adfa, #c2cfaaed);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5% 5% 3%;
  color: #29402f;
  overflow: hidden;
}
.board-center:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/world.svg") center/cover;
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.center-brand {
  font:
    clamp(20px, 3vw, 42px) Georgia,
    serif;
  letter-spacing: 4px;
  position: relative;
  color: #526547;
  opacity: 0.75;
  text-align: center;
}
.center-brand > span {
  display: block;
  font:
    7px Arial,
    sans-serif;
  letter-spacing: 3px;
  margin-top: 8px;
}
.turn-panel {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 390px;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.turn-panel .eyebrow {
  justify-content: center;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #637949;
  margin-bottom: 14px;
}
.turn-panel h2 {
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.2;
  color: #2b432f;
}
.turn-panel > p {
  font-size: 11px;
  line-height: 1.65;
  color: #586d47;
  margin: 12px 0;
}
.turn-panel small {
  font-size: 9px;
  color: #667a53;
  margin-top: 13px;
  line-height: 1.7;
}
.turn-panel .primary {
  background: #334e36;
  border-color: #334e36;
  color: #f0f2d7;
  font-size: 12px;
  min-height: 43px;
}
.turn-panel .primary:hover:not(:disabled) {
  background: #426643;
  border-color: #426643;
}
.turn-panel .secondary {
  background: #d3dcb9;
  border-color: #94a67c;
  color: #355239;
  font-size: 11px;
}
.turn-panel .text-button {
  color: #617649;
  font-size: 10px;
}
.turn-panel .emerald {
  color: #638447;
}
.turn-panel label {
  color: #526b43;
  font-size: 10px;
  text-align: left;
}
.turn-panel input,
.turn-panel select {
  background: #e0e6c9;
  color: #2d4932;
  border-color: #a8b991;
  font-size: 12px;
  min-height: 40px;
  padding: 9px;
}
.turn-panel form {
  width: 100%;
  max-width: 260px;
  margin-top: 5px;
}
.dice-pair {
  display: flex;
  gap: 13px;
  margin: 25px 0;
}
.die {
  width: 53px;
  height: 53px;
  padding: 11px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  background: #f0efd6;
  border-radius: 8px;
  border: 1px solid #9cae80;
  box-shadow:
    0 4px 0 #a1b184,
    0 6px 12px #48683a20;
  transform: rotate(-6deg);
}
.die + .die {
  transform: rotate(7deg);
}
.die i {
  width: 7px;
  height: 7px;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
}
.die i.pip {
  background: #354e34;
}
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.jail-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bank-stock {
  position: relative;
  font-size: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #60794c;
  margin-top: 10px;
}
.bank-stock > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bank-stock .icon {
  width: 13px;
  height: 13px;
}
.waiting {
  font-size: 11px;
  color: #688351;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  line-height: 1.8;
  margin: 15px 0;
}
.ready-panel .waiting {
  color: var(--green);
}
.big-amount {
  font:
    36px Georgia,
    serif;
  color: #314e35;
  margin-top: 16px;
}
.bid-row {
  display: flex;
  gap: 8px;
}
.bid-row input {
  min-width: 0;
}
.drawn-card {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  margin-top: 17px;
  padding: 13px;
  background: #e2e6c955;
  border: 1px solid #9dae8166;
  border-radius: 5px;
  width: 100%;
}
.drawn-card > .icon {
  color: #6f8551;
  width: 20px;
  height: 20px;
}
.drawn-card strong {
  font-size: 11px;
  color: #415c3b;
}
.drawn-card p {
  font-size: 10px;
  color: #627849;
  line-height: 1.5;
  margin: 5px 0 0;
}
.victory-icon .icon {
  width: 45px;
  height: 45px;
  color: #8b8c45;
  margin-bottom: 16px;
}
.game-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.players-panel,
.inventory-panel {
  border: 1px solid #344530;
  background: #19291e;
  border-radius: 7px;
  overflow: hidden;
}
.players-panel {
  padding: 19px 18px 8px;
}
.players-panel .section-heading h2 {
  font-size: 20px;
}
.players-panel .section-heading > span {
  font-size: 9px;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #2d402b;
  min-height: 70px;
  position: relative;
  padding: 7px 0;
}
.current-player:before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--class);
  border-radius: 0 2px 2px 0;
}
.player-avatar {
  position: relative;
  flex-shrink: 0;
}
.player-avatar > .avatar {
  width: 39px;
  height: 44px;
}
.presence {
  width: 6px;
  height: 6px;
  position: absolute;
  right: 3px;
  bottom: 0;
  background: #73816b;
  border-radius: 50%;
  border: 1px solid #18291c;
}
.presence.present {
  background: #a5d084;
}
.player-info {
  min-width: 0;
  flex: 1;
}
.player-info > strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.player-info > strong small {
  font-size: 7px;
  border: 1px solid #47623d;
  padding: 2px 3px;
  border-radius: 2px;
  color: #b5cb9f;
  margin-left: 3px;
  vertical-align: 1px;
}
.player-info > span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--class);
}
.player-cash {
  text-align: right;
  font-size: 15px;
  white-space: nowrap;
}
.player-cash > small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  color: #7e9271;
}
.bankrupt-player {
  opacity: 0.4;
}
.bankrupt-player .player-cash {
  font-size: 11px;
}
.inventory-tabs {
  display: flex;
  border-bottom: 1px solid #344730;
  padding: 0 17px;
}
.inventory-tabs > button {
  border: 0;
  background: none;
  border-radius: 0;
  padding: 16px 0;
  margin-right: 22px;
  font-size: 11px;
  color: #8d9d7e;
  position: relative;
}
.inventory-tabs > button.active {
  color: #c6d6b5;
}
.inventory-tabs > button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #a9c68d;
}
.asset-heading {
  padding: 7px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8d9f7a;
  font-size: 10px;
}
.asset-heading .text-button {
  font-size: 10px;
}
.asset-heading .icon {
  width: 15px;
  height: 15px;
}
.asset-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 0 13px 10px;
}
.asset {
  border: 0;
  border-top: 1px solid #30452c;
  background: transparent;
  border-radius: 0;
  width: 100%;
  padding: 12px 2px;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}
.asset-color {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}
.asset strong {
  font-size: 11px;
  display: block;
}
.asset small {
  font-size: 9px;
  display: block;
  margin-top: 5px;
}
.asset-value {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.asset-value .icon {
  width: 12px;
  height: 12px;
  margin-left: 8px;
  color: #798e67;
}
.empty-assets {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 25px 23px 30px;
}
.empty-assets > .icon {
  width: 32px;
  height: 32px;
  color: #69835c;
  margin-bottom: 18px;
}
.empty-assets strong {
  font-size: 12px;
  color: #b8c7a5;
  font-weight: 400;
}
.empty-assets p {
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 0;
  color: #829874;
}
.sidebar-note {
  text-align: center;
  font-size: 10px;
  color: #7c916f;
  line-height: 1.8;
}
.sidebar-note .icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.scroll-inventory {
  padding: 14px 18px;
  border-top: 1px solid #31472d;
  color: #bdcd9e;
  font-size: 11px;
}
.scroll-inventory .icon {
  margin-right: 7px;
  width: 17px;
  height: 17px;
}
.game-log {
  max-height: 425px;
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 6px 16px 16px;
}
.game-log li {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #2a3c26;
}
.game-log li > span {
  font-size: 9px;
  color: #769169;
  margin-top: 4px;
}
.game-log p {
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
  color: #aebc9c;
}
.trade-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #7a7950;
  border-radius: 6px;
  padding: 13px;
  background: #303d25;
}
.trade-notice > p {
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.trade-notice .icon {
  color: var(--gold);
  width: 19px;
}
.trade-notice button {
  font-size: 10px;
  padding: 8px 11px;
}
.code-input {
  text-transform: uppercase;
  letter-spacing: 4px;
}
.warning {
  color: #d4a579 !important;
}
.danger {
  color: #ac634a !important;
}
.danger-button {
  background: #774b39;
  color: #fff0dc;
  border-color: #ad785f;
}
.danger-button:hover:not(:disabled) {
  background: #93624d;
}
.muted {
  color: var(--muted);
}
dialog {
  background: #1b2b22;
  color: var(--text);
  border: 1px solid #607353;
  border-radius: 10px;
  padding: 0;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: 0 30px 100px #0007;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #07140fd9;
  backdrop-filter: blur(5px);
}
.dialog-body {
  padding: 32px;
}
.dialog-body > h2 {
  font-size: 31px;
  padding-right: 20px;
}
.dialog-body > .eyebrow {
  margin-bottom: 13px;
}
.dialog-body p {
  font-size: 12px;
  line-height: 1.8;
}
.dialog-close {
  position: sticky;
  top: 8px;
  float: right;
  right: 8px;
  margin: 8px 8px -43px 0;
  z-index: 3;
  background: #1b2b22dd;
  color: #b5c6a6;
}
.dialog-close .icon {
  width: 19px;
  height: 19px;
}
.wide-dialog {
  width: min(850px, calc(100% - 32px));
}
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.rules-grid h3 {
  margin-top: 17px;
  color: #c2d1ab;
}
.rules-grid p {
  font-size: 12px;
  line-height: 1.8;
  margin: 9px 0 14px;
}
.source-note {
  border-top: 1px solid #354830;
  padding-top: 20px;
  font-size: 10px;
  line-height: 1.9;
  color: #8da078;
}
.source-note a {
  color: #b0c299;
}
.deed-banner {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--group);
  color: #203527;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: -32px -32px 24px;
}
.deed-prices {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #354b30;
  border-bottom: 1px solid #354b30;
  gap: 20px;
}
.deed-prices > span {
  color: #91a57f;
  font-size: 11px;
}
.deed-prices b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: #e2e8d2;
}
.rent-table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}
.rent-table th,
.rent-table td {
  font-size: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid #30432b;
}
.rent-table th {
  font-weight: 400;
  text-align: left;
  color: #b5c4a1;
}
.rent-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rent-table .rent-active {
  background: #354b2d;
}
.deed-note {
  font-size: 11px !important;
}
.deed-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #3c502f;
  padding-top: 20px;
}
.deed-actions button {
  font-size: 11px;
}
.trade-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 23px 0;
}
.trade-columns fieldset {
  border: 1px solid #3e5534;
  border-radius: 6px;
  padding: 17px;
  min-width: 0;
}
.trade-columns legend {
  color: #c3d5aa;
  font-size: 12px;
  padding: 0 8px;
}
.trade-checks {
  margin-top: 17px;
  max-height: 280px;
  overflow-y: auto;
}
.trade-checks > label,
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #35492f;
  padding: 12px 0;
  font-size: 12px;
  line-height: 1.6;
}
.trade-checks b {
  font-size: 11px;
}
.trade-checks small {
  display: block;
  font-size: 9px;
  color: #c3a272;
  margin-top: 3px;
}
.trade-columns ul {
  padding-left: 18px;
  font-size: 12px;
  line-height: 2.1;
  color: #c3d1b0;
}
.trade-columns h3 {
  font-size: 23px;
}
.mortgage-options {
  border: 1px solid #546044;
  padding: 15px;
  margin: 20px 0;
}
.mortgage-options label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mortgage-options legend {
  font-size: 12px;
  color: #caba8e;
}
.mortgage-options p {
  font-size: 10px;
}
.dialog-body form + .secondary {
  margin-top: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  padding: 15px 23px;
  max-width: calc(100vw - 32px);
  width: max-content;
  background: #e1e6ca;
  color: #2c432d;
  border: 1px solid #a3b789;
  box-shadow: 0 8px 30px #0005;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1550px) {
  .game-layout {
    grid-template-columns: 900px 330px;
  }
  .game-page {
    max-width: 1360px;
  }
  .tile-name {
    font-size: 11px;
  }
  .side-tile .tile-name {
    font-size: 12px;
  }
}
@media (max-width: 1150px) {
  .topbar {
    padding: 0 32px;
    height: 84px;
  }
  .landing {
    grid-template-columns: 1fr 345px;
    gap: 30px;
    padding: 50px 40px;
    min-height: 620px;
  }
  .hero-copy h1 {
    font-size: 52px;
  }
  .hero-meta {
    gap: 15px;
    flex-wrap: wrap;
  }
  .hero-caption {
    margin-top: 36px;
  }
  .steps {
    margin: 0 32px;
    gap: 15px;
  }
  .steps > div {
    padding: 0 10px;
    gap: 12px;
  }
  .game-page {
    padding: 24px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 18px;
  }
  .board-container {
    padding: 6px;
  }
  .players-panel {
    padding: 16px 12px 4px;
  }
  .players-panel .section-heading h2 {
    font-size: 18px;
  }
  .players-panel .section-heading > span {
    font-size: 8px;
  }
  .player-cash {
    font-size: 13px;
  }
  .player-info > strong {
    font-size: 11px;
  }
  .player-avatar > .avatar {
    width: 33px;
    height: 39px;
  }
  .current-player:before {
    left: -12px;
  }
  .turn-panel {
    padding: 7px 0;
  }
  .turn-panel h2 {
    font-size: 22px;
  }
  .turn-panel > p {
    font-size: 10px;
    margin: 8px 0;
  }
  .turn-panel .eyebrow {
    font-size: 7px;
    margin-bottom: 10px;
  }
  .turn-panel .primary {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 38px;
  }
  .turn-panel .secondary {
    font-size: 10px;
    padding: 9px 11px;
  }
  .turn-panel small {
    font-size: 8px;
    margin-top: 8px;
  }
  .dice-pair {
    margin: 18px 0;
  }
  .die {
    width: 44px;
    height: 44px;
    padding: 8px;
    gap: 3px;
  }
  .die i {
    width: 6px;
    height: 6px;
  }
  .bank-stock {
    gap: 9px;
    font-size: 8px;
  }
  .center-brand {
    font-size: 25px;
  }
  .center-brand > span {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .tile > .icon {
    width: 14px;
    height: 14px;
  }
  .tile-name {
    font-size: 8px;
  }
  .tile-price {
    font-size: 7px;
  }
  .side-tile .tile-name {
    font-size: 9px;
  }
  .side-tile > .icon {
    width: 12px;
    height: 12px;
  }
  .corner .tile-name {
    font-size: 10px;
  }
  .corner.side-tile > .icon {
    width: 17px;
    height: 17px;
  }
  .class-grid {
    gap: 10px;
  }
  .class-card {
    padding: 15px 10px 0;
  }
  .class-card h2 {
    font-size: 25px;
  }
  .class-card p {
    font-size: 9px;
  }
  .class-owner {
    width: calc(100% + 20px);
    padding: 12px 10px;
  }
  .class-status {
    font-size: 7px;
  }
  .portrait .avatar {
    width: 97px;
    height: 120px;
  }
  .portrait:before {
    width: 95px;
    height: 95px;
  }
  .portrait {
    height: 140px;
  }
  .lobby-intro h1 {
    font-size: 37px;
  }
  .lobby-intro p {
    font-size: 12px;
  }
  .invite-box {
    min-width: 235px;
    padding: 14px 18px;
  }
  .ready-panel {
    padding: 27px;
  }
  .drawn-card {
    padding: 8px;
    margin-top: 10px;
  }
  .drawn-card p {
    font-size: 9px;
  }
  .big-amount {
    font-size: 30px;
    margin-top: 10px;
  }
}
@media (max-width: 900px) {
  .header-note {
    display: none;
  }
  .landing {
    padding: 45px 28px;
    grid-template-columns: 1fr 320px;
    gap: 23px;
  }
  .entry-card {
    padding: 25px;
  }
  .hero-copy h1 {
    font-size: 43px;
    letter-spacing: -1px;
  }
  .hero-copy > p {
    font-size: 13px;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
  }
  .hero-meta {
    font-size: 10px;
    gap: 12px;
  }
  .hero-caption {
    font-size: 9px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .game-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px;
  }
  .sidebar-note {
    grid-column: 1/-1;
  }
  .game-sidebar .trade-notice {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .tile-name {
    font-size: 11px;
  }
  .tile-price {
    font-size: 10px;
  }
  .side-tile .tile-name {
    font-size: 12px;
  }
  .corner .tile-name {
    font-size: 15px;
  }
  .tile > .icon {
    width: 20px;
    height: 20px;
  }
  .side-tile > .icon {
    width: 17px;
    height: 17px;
  }
  .corner.side-tile > .icon {
    width: 26px;
    height: 26px;
  }
  .turn-panel h2 {
    font-size: 29px;
  }
  .turn-panel .eyebrow {
    font-size: 10px;
  }
  .turn-panel .primary {
    min-height: 46px;
    font-size: 13px;
    padding: 12px 18px;
  }
  .turn-panel .secondary {
    font-size: 12px;
    padding: 11px 15px;
  }
  .turn-panel small {
    font-size: 10px;
  }
  .turn-panel > p {
    font-size: 12px;
  }
  .center-brand {
    font-size: 38px;
  }
  .center-brand > span {
    font-size: 8px;
  }
  .dice-pair {
    margin: 25px 0;
  }
  .die {
    width: 57px;
    height: 57px;
    padding: 11px;
    gap: 5px;
  }
  .die i {
    width: 8px;
    height: 8px;
  }
  .bank-stock {
    font-size: 10px;
    gap: 15px;
  }
  .drawn-card {
    padding: 12px;
    margin-top: 18px;
  }
  .drawn-card p {
    font-size: 11px;
  }
  .drawn-card strong {
    font-size: 12px;
  }
  .lobby-intro h1 {
    font-size: 32px;
  }
  .class-grid {
    gap: 8px;
  }
  .class-card {
    padding: 13px 8px 0;
  }
  .class-card h2 {
    font-size: 22px;
  }
  .class-card > p {
    white-space: normal;
    min-height: 28px;
    font-size: 9px;
    line-height: 1.7;
  }
  .portrait {
    height: 120px;
  }
  .portrait .avatar {
    width: 85px;
    height: 110px;
  }
  .portrait:before {
    width: 70px;
    height: 70px;
  }
  .class-owner {
    font-size: 9px;
    width: calc(100% + 16px);
    padding: 11px 8px;
    overflow-wrap: anywhere;
  }
  .class-owner .icon {
    width: 12px;
  }
  .class-status {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .lobby-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .ready-panel h2 {
    font-size: 22px;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 76px;
    padding: 0 21px;
  }
  .logo {
    gap: 10px;
  }
  .logo > .icon {
    width: 28px;
    height: 32px;
  }
  .logo > span {
    font-size: 21px;
    letter-spacing: 3px;
  }
  .logo small {
    font-size: 6px;
    letter-spacing: 1.65px;
    margin-top: 5px;
  }
  .topbar nav {
    gap: 12px;
  }
  .ghost {
    font-size: 10px;
    gap: 6px;
  }
  .ghost .icon {
    width: 15px;
  }
  .connection {
    font-size: 0;
    gap: 0;
  }
  .connection i {
    width: 6px;
    height: 6px;
  }
  .landing {
    display: flex;
    flex-direction: column;
    padding: 42px 24px 30px;
    gap: 35px;
    align-items: stretch;
    min-height: auto;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    margin-bottom: 21px;
  }
  .hero-copy h1 {
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -1.7px;
  }
  .hero-copy > p {
    font-size: 13px;
    line-height: 1.8;
    max-width: 330px;
    margin-top: 20px;
    margin-bottom: 22px;
  }
  .hero-meta {
    gap: 12px;
    font-size: 9px;
  }
  .hero-meta .icon {
    width: 14px;
    height: 14px;
  }
  .hero-caption {
    display: none;
  }
  .world-art {
    inset: -40px -190px 350px 0;
    opacity: 0.38;
    background-position: center;
  }
  .entry-card {
    padding: 25px;
    border-radius: 8px;
  }
  .entry-card h2 {
    font-size: 30px;
  }
  .entry-card > p {
    font-size: 12px;
  }
  .entry-card .primary {
    min-height: 48px;
  }
  .class-preview > span {
    width: 40px;
    height: 43px;
  }
  .class-preview small {
    margin-left: 20px;
  }
  .steps {
    display: flex;
    flex-direction: column;
    margin: 0 24px;
    padding: 26px 0;
    gap: 24px;
  }
  .steps > div {
    padding: 0;
    gap: 20px;
  }
  .steps > div + div {
    border-left: 0;
  }
  .steps strong {
    margin-bottom: 6px;
  }
  .steps small {
    font-size: 11px;
  }
  .steps b {
    font-size: 24px;
    line-height: 1.2;
  }
  footer {
    flex-direction: column;
    gap: 9px;
    line-height: 1.7;
    padding: 24px;
    font-size: 9px;
  }
  .lobby-page {
    padding: 30px 20px;
  }
  .lobby-intro {
    flex-direction: column;
    align-items: stretch;
    gap: 23px;
    margin-bottom: 25px;
  }
  .lobby-intro h1 {
    font-size: 33px;
    line-height: 1.2;
    max-width: 300px;
  }
  .lobby-intro .eyebrow {
    font-size: 8px;
  }
  .lobby-intro p {
    font-size: 11px;
  }
  .invite-box {
    padding: 15px 20px;
    position: relative;
  }
  .invite-box > small {
    font-size: 8px;
  }
  .invite-box > div {
    max-width: 250px;
  }
  .invite-box strong {
    font-size: 28px;
  }
  .invite-box > span {
    font-size: 10px;
  }
  .class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .class-card {
    padding: 14px 12px 0;
  }
  .class-card:last-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-rows: 24px 22px 30px 23px 40px;
    text-align: left;
    padding: 15px 15px 0;
    column-gap: 18px;
  }
  .class-card:last-child .class-status {
    grid-column: 2;
    grid-row: 1;
  }
  .class-card:last-child .portrait {
    grid-column: 1;
    grid-row: 1/5;
    height: 110px;
  }
  .class-card:last-child .weapon {
    grid-column: 2;
    grid-row: 2;
    margin-top: 1px;
  }
  .class-card:last-child h2 {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
  }
  .class-card:last-child > p {
    grid-column: 2;
    grid-row: 4;
    min-height: 0;
    margin: 0;
  }
  .class-card:last-child .class-owner {
    grid-column: 1/-1;
    grid-row: 5;
    width: calc(100% + 30px);
    margin-left: -15px;
    padding: 10px 15px;
  }
  .class-card h2 {
    font-size: 26px;
  }
  .class-card > p {
    min-height: 0;
    margin: 9px 0 14px;
    font-size: 9px;
  }
  .class-status {
    font-size: 7px;
    letter-spacing: 1.25px;
  }
  .class-owner {
    font-size: 10px;
    width: calc(100% + 24px);
    padding: 11px 12px;
  }
  .portrait {
    height: 118px;
    margin: 3px 0;
  }
  .portrait .avatar {
    width: 95px;
    height: 117px;
  }
  .portrait:before {
    width: 80px;
    height: 80px;
  }
  .lobby-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 23px;
  }
  .party-panel,
  .ready-panel {
    padding: 23px;
  }
  .lobby-note {
    font-size: 10px;
    align-items: flex-start;
    line-height: 1.8;
    text-align: center;
  }
  .lobby-note .icon {
    margin-top: 2px;
  }
  .game-page {
    padding: 20px 10px 30px;
  }
  .game-top {
    padding: 0 8px;
    margin-bottom: 17px;
    gap: 8px;
  }
  .game-top h1 {
    font-size: 24px;
  }
  .lobby-tag {
    font-size: 0;
  }
  .lobby-tag b {
    font-size: 11px;
    margin: 0;
    letter-spacing: 1.5px;
  }
  .game-info {
    gap: 1px;
  }
  .game-top .eyebrow {
    font-size: 7px;
  }
  .board-container {
    padding: 4px;
    border-radius: 5px;
    overflow-x: auto;
  }
  .board {
    min-width: 0;
    gap: 1px;
  }
  .tile {
    padding: 2px 1px;
    gap: 1px;
  }
  .tile-name {
    font-size: 6px;
    line-height: 1.1;
  }
  .tile-price {
    font-size: 6px;
  }
  .tile > .icon {
    width: 11px;
    height: 11px;
    margin: 0;
  }
  .tile:has(.color-band) {
    padding-top: 8px;
  }
  .color-band {
    min-height: 6px;
  }
  .color-band .icon {
    height: 6px;
    width: 6px;
  }
  .side-tile:has(.color-band) {
    padding-left: 6px;
    padding-top: 1px;
  }
  .side-tile .color-band {
    width: 4px;
  }
  .side-tile .color-band .icon {
    width: 4px;
    height: 6px;
  }
  .side-tile .tile-name {
    font-size: 7px;
  }
  .side-tile .tile-price {
    font-size: 6px;
  }
  .side-tile > .icon {
    width: 9px;
    height: 9px;
  }
  .corner.side-tile > .icon {
    width: 15px;
    height: 15px;
  }
  .corner .tile-name {
    font-size: 8px;
  }
  .corner .tile-price {
    font-size: 5px;
  }
  .ownership-dot {
    width: 5px;
    height: 5px;
    bottom: 1px;
    right: 1px;
  }
  .tokens {
    bottom: 0;
    left: 0;
    right: 0;
  }
  .token {
    width: 13px;
    height: 15px;
  }
  .token + .token {
    margin-left: -4px;
  }
  .token .avatar {
    width: 14px;
    height: 17px;
  }
  .board-center {
    padding: 15px 9px 9px;
    overflow: visible;
  }
  .center-brand {
    font-size: 23px;
    letter-spacing: 2px;
  }
  .center-brand > span {
    font-size: 5px;
    letter-spacing: 1.5px;
    margin-top: 5px;
  }
  .turn-panel {
    padding: 8px 0;
    max-width: 280px;
    justify-content: center;
    flex: 1;
  }
  .turn-panel .eyebrow {
    font-size: 6px;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
  }
  .turn-panel h2 {
    font-size: 18px;
    line-height: 1.2;
  }
  .turn-panel > p {
    font-size: 8px;
    line-height: 1.45;
    margin: 6px 0;
  }
  .turn-panel small {
    font-size: 7px;
    line-height: 1.4;
    margin-top: 6px;
  }
  .turn-panel .primary {
    font-size: 9px;
    min-height: 33px;
    padding: 8px 11px;
    gap: 5px;
  }
  .turn-panel .primary .icon {
    width: 14px;
    height: 14px;
  }
  .turn-panel .secondary {
    font-size: 8px;
    min-height: 29px;
    padding: 7px 9px;
  }
  .turn-panel .text-button {
    font-size: 8px;
    padding: 6px 2px;
  }
  .turn-panel input,
  .turn-panel select {
    font-size: 10px;
    min-height: 30px;
    padding: 5px 8px;
  }
  .turn-panel label {
    font-size: 8px;
    margin-bottom: 5px;
  }
  .turn-panel form {
    max-width: 200px;
    margin: 5px 0;
  }
  .dice-pair {
    margin: 12px 0 15px;
    gap: 10px;
  }
  .die {
    width: 35px;
    height: 35px;
    padding: 7px;
    gap: 2px;
    border-radius: 6px;
    box-shadow: 0 3px 0 #a1b184;
  }
  .die i {
    width: 5px;
    height: 5px;
  }
  .bank-stock {
    font-size: 6px;
    gap: 9px;
    margin-top: 3px;
  }
  .bank-stock .icon {
    width: 10px;
    height: 10px;
  }
  .bank-stock > span {
    gap: 3px;
  }
  .drawn-card {
    padding: 6px;
    margin-top: 7px;
    gap: 5px;
  }
  .drawn-card > .icon {
    width: 13px;
    height: 13px;
  }
  .drawn-card strong {
    font-size: 8px;
    line-height: 1.2;
    display: block;
  }
  .drawn-card p {
    font-size: 7px;
    line-height: 1.3;
    margin-top: 3px;
  }
  .big-amount {
    font-size: 26px;
    margin-top: 7px;
  }
  .waiting {
    font-size: 9px;
    line-height: 1.4;
    margin: 10px 0;
  }
  .action-buttons,
  .jail-buttons {
    gap: 5px;
  }
  .game-sidebar {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 3px 5px 0;
  }
  .players-panel {
    padding: 17px 16px 4px;
  }
  .players-panel .section-heading h2 {
    font-size: 22px;
  }
  .players-panel .section-heading > span {
    font-size: 10px;
  }
  .player-row {
    min-height: 65px;
    gap: 12px;
  }
  .player-avatar > .avatar {
    width: 40px;
    height: 45px;
  }
  .player-info > strong {
    font-size: 13px;
  }
  .player-info > span {
    font-size: 11px;
  }
  .player-cash {
    font-size: 17px;
  }
  .player-cash > small {
    font-size: 10px;
  }
  .current-player:before {
    left: -16px;
  }
  .inventory-tabs > button {
    font-size: 12px;
    padding: 17px 0;
  }
  .asset {
    min-height: 55px;
  }
  .asset strong {
    font-size: 12px;
  }
  .asset small {
    font-size: 10px;
  }
  .asset-value {
    font-size: 12px;
  }
  .asset-list {
    max-height: 330px;
  }
  .game-log {
    max-height: 310px;
  }
  .sidebar-note {
    font-size: 10px;
  }
  .victory-icon .icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
  }
  .rules-grid,
  .trade-columns {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .dialog-body {
    padding: 27px 23px;
  }
  .dialog-body > h2 {
    font-size: 28px;
  }
  .dialog-body > .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .deed-banner {
    margin: -27px -23px 22px;
  }
  .trade-columns {
    gap: 17px;
  }
  .rules-grid h3 {
    margin-top: 14px;
  }
  .source-note {
    margin-top: 12px;
  }
  .trade-columns ul {
    margin: 10px 0;
  }
  .trade-columns h3 {
    font-size: 23px;
  }
  dialog {
    max-height: calc(100dvh - 24px);
  }
  .trade-checks {
    max-height: 225px;
  }
  .deed-actions button {
    min-height: 44px;
  }
  .asset-heading .text-button {
    font-size: 12px;
    padding: 12px 4px;
  }
  .player-info > strong small {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.board {
  container-type: inline-size;
}
.tile-name {
  font-size: clamp(6px, 1.3cqw, 11px);
  overflow-wrap: normal;
  hyphens: auto;
}
.side-tile .tile-name {
  font-size: clamp(6px, 1.4cqw, 12px);
}
.corner .tile-name {
  font-size: clamp(6.7px, 1.55cqw, 14px);
}
@media (max-width: 650px) {
  .side-tile:not(.corner) > .icon {
    display: none;
  }
}
@media (min-width: 901px) {
  .game-page {
    max-width: min(1320px, max(1100px, calc(100dvh + 170px)));
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 315px;
  }
}
@media (max-width: 650px) {
  .hero-copy h1 {
    font-size: 44px;
  }
  .mobile-board-emblem {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }
  .mobile-board-emblem > .avatar {
    width: 80px;
    height: 91px;
    filter: drop-shadow(0 3px 5px #45623d44);
  }
  .mobile-board-emblem h2 {
    font-size: 20px;
    color: #385335;
    margin-top: 5px;
    overflow-wrap: anywhere;
  }
  .mobile-board-emblem > span {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #70815a;
    margin-top: 6px;
  }
  .mobile-turn-panel {
    max-width: none;
    padding: 23px 21px;
    background: #c9d4b1;
    border: 1px solid #829b68;
    border-radius: 6px;
    min-width: 0;
  }
  .mobile-turn-panel .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }
  .mobile-turn-panel h2 {
    font-size: 25px;
  }
  .mobile-turn-panel > p {
    font-size: 12px;
    line-height: 1.7;
    margin: 12px 0;
  }
  .mobile-turn-panel small {
    font-size: 10px;
    line-height: 1.6;
    margin-top: 12px;
  }
  .mobile-turn-panel .primary,
  .mobile-turn-panel .secondary {
    min-height: 44px;
    font-size: 12px;
    padding: 12px 15px;
  }
  .mobile-turn-panel .text-button {
    font-size: 11px;
    min-height: 44px;
    padding: 10px 5px;
  }
  .mobile-turn-panel input,
  .mobile-turn-panel select {
    font-size: 16px;
    min-height: 44px;
    padding: 10px;
  }
  .mobile-turn-panel form {
    max-width: 280px;
  }
  .mobile-turn-panel label {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .mobile-turn-panel .die {
    width: 48px;
    height: 48px;
    padding: 9px;
    gap: 4px;
  }
  .mobile-turn-panel .die i {
    width: 7px;
    height: 7px;
  }
  .mobile-turn-panel .dice-pair {
    margin: 22px 0;
  }
  .mobile-turn-panel .waiting {
    font-size: 12px;
  }
  .mobile-turn-panel .drawn-card {
    padding: 12px;
    margin-top: 18px;
    gap: 9px;
  }
  .mobile-turn-panel .drawn-card strong {
    font-size: 12px;
  }
  .mobile-turn-panel .drawn-card p {
    font-size: 11px;
    line-height: 1.7;
    margin-top: 6px;
  }
  .mobile-turn-panel .drawn-card > .icon {
    width: 20px;
    height: 20px;
  }
  .mobile-turn-panel .big-amount {
    font-size: 36px;
    margin-top: 14px;
  }
}
/* Current destination: official screenshot, gently washed out behind the player. */
.board-center.has-city-backdrop:before { display: none; }
.city-backdrop, .city-backdrop-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.city-backdrop { object-fit: cover; opacity: .48; }
.city-backdrop-veil {
  background: linear-gradient(#dce4c76b, #d9e3c3a6 60%, #ced9b9e8),
    radial-gradient(ellipse at center, #e2e9cf73, transparent 75%);
}
.has-city-backdrop .bank-stock { position: relative; }
.card-waiting { font-size: 13px; color: #526547; }

/* Centred dice stage: real six-sided CSS cubes, no random-face flicker. */
.dice-theater {
  z-index: 60;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px));
  padding: 27px 24px 24px;
  border: 1px solid #cfbe80;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 38%, #365c46, #172d25 72%);
  box-shadow: 0 30px 100px #0009, 0 0 0 100vmax #07181170, inset 0 1px #fff2;
}
.dice-kicker {
  font-size: 10px;
  letter-spacing: 3px;
  color: #ded4a4;
}
.dice-stage { padding: 38px 0 32px; perspective: 800px; }
.dice-theater .dice-pair { gap: 65px; margin: 0; }
.dice-gimbal {
  --cube-size: 78px;
  width: var(--cube-size);
  height: var(--cube-size);
  transform: rotateX(-12deg) rotateY(-14deg);
  transform-style: preserve-3d;
}
.dice-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}
.cube-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}
.cube-face .die {
  width: 100%;
  height: 100%;
  padding: 15%;
  border-radius: 12px;
  border: 1px solid #c1c8a6;
  background: linear-gradient(135deg, #fffef0, #d7dec0);
  box-shadow: inset 0 2px 3px #fff, inset 0 -3px 5px #8a99706b;
  transform: none;
  gap: 8%;
}
.dice-theater.shaking .cube-face .die { animation: none; }
.cube-face .die i.pip { background: #284f3e; box-shadow: inset 0 2px 2px #082a25b0, 0 1px #fff; }
.cube-face .die i { width: calc(var(--cube-size) * .115); height: calc(var(--cube-size) * .115); }
.face-1 { transform: translateZ(calc(var(--cube-size) / 2)); }
.face-2 { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.face-3 { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.face-4 { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.face-5 { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.face-6 { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.dice-theater[data-phase="holding"] .dice-cube { animation: cube-hold 3.4s linear infinite; }
.dice-theater[data-phase="holding"] .dice-gimbal + .dice-gimbal .dice-cube { animation-direction: reverse; }
.dice-theater p { font-size: clamp(17px, 4.8vw, 23px); font-weight: 750; margin: 10px 0 8px; }
.dice-theater[data-phase="settled"] p { color: #ffe8a4; font-size: clamp(25px, 6vw, 34px); }
.dice-hint { color: #b8cbae; font-size: 12px; }
@keyframes cube-hold {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}
@media (max-width: 500px) {
  .dice-theater { padding: 23px 16px; border-radius: 20px; }
  .dice-gimbal { --cube-size: 64px; }
  .dice-theater .dice-pair { gap: 50px; }
  .dice-stage { padding: 35px 0 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .dice-theater[data-phase="holding"] .dice-cube { animation: none; }
}

html { overflow-anchor: none; }
.music-page { max-width: 600px; padding: 25px 20px; margin: auto; text-align: center; }
#page-city { position: fixed; inset: 0; background-size: cover; background-position: center; opacity: .42; pointer-events: none; z-index: -1; }
body { isolation: isolate; }
.board-column { min-width: 0; }
.music-slot { width: 100%; margin-top: 24px; }
#inline-music { position: absolute; z-index: 1; border: 1px solid #667955; border-radius: 16px; background: #14251ef5; box-sizing: border-box; }
#inline-music .music-page { max-width: 640px; }
#inline-music h1 { font-size: 24px; }
#inline-music .music-brand { display: none; }
.travel-options, .world-panel { background: #172b22ed; padding: 18px; border: 1px solid #5c7655; border-radius: 12px; margin-bottom: 18px; }
.travel-options h3, .world-panel h3 { margin: 0 0 10px; font-size: 17px; }
.travel-options p, .world-panel p { font-size: 12px; line-height: 1.6; color: #c7d4bc; }
.travel-options button { margin: 5px 0; white-space: normal; }
.effect-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.effect-badge { display: inline-block; border-radius: 6px; padding: 6px 8px; font-size: 11px; color: #c8efb1; border: 1px solid #80ac63; background: #273c25; }
.effect-badge.curse { color: #f0c1ed; border-color: #ae72a7; background: #402c46; }
.world-event { border: 2px solid #b4d484; max-width: min(590px, calc(100vw - 32px)); }
.world-event.curse { border-color: #c58bde; background: #281632f5; }
.world-event p { line-height: 1.65; font-size: 17px; }
.world-event.blessing { box-shadow: 0 0 95px #c2c16c77; }
.world-rules { background: #274334; border-radius: 10px; padding: 18px; margin: 20px 0; }
.die.die-ten { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; clip-path: polygon(50% 0, 94% 25%, 100% 70%, 50% 100%, 0 70%, 6% 25%); border-radius: 0; padding: 6px; }
.die-ten b { font-size: 22px; line-height: 1; color: #233b2a; }
.die-ten small { font-size: 8px; line-height: 1; color: #465c44; }
.dice-cube.d10-polyhedron { transform-style: flat; width: 100%; height: 116%; position: relative; }
.d10-polyhedron svg { width: 100%; height: 100%; filter: drop-shadow(0 9px 8px #0009); }
.d10-value { position: absolute; top: 37%; left: 0; width: 100%; text-align: center; color: #233b2a; font: 800 29px Georgia, serif; text-shadow: 0 1px #fff; }
@media(max-width:650px) {
  #inline-music .music-page { padding: 20px 12px; }
  #inline-music h1 { font-size: 21px; }
  .world-event p { font-size: 14px; }
}
.music-brand { display: block; color: #e8d59c; letter-spacing: 4px; margin-bottom: 28px; font-family: Georgia, serif; font-size: 23px; }
.music-page h1 { font-size: clamp(25px, 6vw, 36px); margin: 12px 0; line-height: 1.1; }
.music-page > p { color: #c4d1b5; line-height: 1.5; font-size: 13px; }
#music-stage { margin: 22px auto 15px; width: 100%; max-width: 480px; min-height: 220px; }
#music-stage iframe { display: block; width: 100%; height: clamp(220px, 56.25vw, 270px); border: 0; }
#inline-music h1 { display: none; }
#inline-music #music-stage { margin-top: 12px; }
#inline-music .music-controls, #inline-music .music-volume { margin: 12px 0; }
.board-column > .mobile-turn-panel { margin-top: 14px; }
.music-placeholder { height: 220px; border: 1px solid #58704e; border-radius: 10px; display: grid; place-items: center; color: #b8d7a5; font-size: 65px; background: radial-gradient(ellipse, #294c37, #13281f); }
.music-controls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.music-controls button { padding: 10px 15px; font-size: 12px; }
.music-volume { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0; }
.music-volume input { width: 180px; accent-color: #a6d995; }
.music-page > small { display: block; color: #a7b899; line-height: 1.6; font-size: 11px; }
.music-credits a { text-decoration: underline; color: #d8e6bc; }
@media (max-width: 650px) { .topbar nav .music-button span { display: none; } .topbar nav .music-button { padding: 7px; font-size: 19px; } }
@media (max-width: 380px) {
  .topbar { padding: 0 14px; }
  .topbar nav { gap: 8px; }
  .topbar .logo { gap: 7px; }
  .topbar .logo > span { font-size: 18px; letter-spacing: 2px; }
  .topbar .logo > .icon { width: 23px; height: 27px; }
  .topbar .logo small { font-size: 5px; letter-spacing: 1.4px; }
  .topbar [data-do="rules"] span, .topbar .header-note { display: none; }
}
.hero-balance { position: relative; text-align: center; margin: 8px 0 0; }
.hero-balance > span { display: block; font-size: clamp(7px, 1.3cqw, 10px); letter-spacing: 2px; color: #36512e; font-weight: 800; }
.hero-balance > strong { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: clamp(25px, 5.2cqw, 46px); line-height: 1.1; color: #214b32; font-variant-numeric: tabular-nums; }
.hero-balance .emerald { width: clamp(22px, 4.8cqw, 38px); height: clamp(22px, 4.8cqw, 38px); }
.balance-value { font-variant-numeric: tabular-nums; }
.balance-delta { position: fixed; z-index: 65; pointer-events: none; transform: translate(-50%, -100%); padding: 7px 13px; border-radius: 9px; font-weight: 850; font-size: 24px; background: #10291ff2; box-shadow: 0 8px 25px #0004; white-space: nowrap; animation: balance-rise 1.6s ease-out both; }
.balance-delta .emerald { width: 24px; height: 24px; }
.gain { color: #b6ffc5; }
.loss { color: #ffc4a9; }
.balance-theater { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 52; background: #142c23f5; color: #e4edda; border: 1px solid #a1b781; border-radius: 20px; padding: 23px; text-align: center; box-shadow: 0 20px 80px #0006; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.balance-theater > small { color: #c0d0b1; font-size: 13px; }
.balance-summary { display: grid; grid-template-columns: 54px 1fr; gap: 4px 12px; align-items: center; margin-top: 15px; text-align: left; }
.balance-summary .avatar { width: 54px; height: 62px; grid-row: span 3; }
.balance-summary strong { font-size: 16px; }
.balance-summary b { font-size: 32px; line-height: 1.1; }
.balance-summary .emerald { width: 26px; height: 26px; }
.balance-summary p { font-size: 15px; margin: 2px 0 0; color: #d9e4cc; font-variant-numeric: tabular-nums; }
.balance-summary p .emerald { width: 15px; height: 15px; }
.balance-trail { display: block; color: #d5e2c7; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; margin-top: 5px; }
@keyframes balance-rise { from { opacity: 0; translate: 0 10px; } 15% { opacity: 1; } 80% { opacity: 1; } to { opacity: 0; translate: 0 -45px; } }
.spell-fx.spell-screen { inset: 0; width: 100vw; height: 100dvh; transform: none; overflow: hidden; background: radial-gradient(ellipse at center, transparent 15%, #071c2259); }
.spell-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.spell-banner { position: absolute; left: 50%; top: 15%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 18px; width: max-content; max-width: calc(100vw - 32px); background: #122c24ee; border: 1px solid var(--spell-color); border-radius: 16px; padding: 14px 25px; box-shadow: 0 15px 80px #0005, 0 0 40px color-mix(in srgb, var(--spell-color) 25%, transparent); }
.spell-banner .avatar { width: 55px; height: 64px; }
.spell-banner strong { display: block; font-size: clamp(25px, 4.5vw, 40px); color: #fff0c2; line-height: 1.1; }
.spell-banner small { display: block; font-size: 12px; color: #ccd9bf; margin-bottom: 6px; }
@media (max-width: 650px) {
  .spell-banner { gap: 12px; padding: 12px 16px; top: 12%; }
  .spell-banner .avatar { width: 43px; height: 50px; }
  .balance-delta { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .balance-delta { animation: none; }
  .spell-canvas { display: none; }
  .spell-fx.spell-screen { background: none; }
}

/* Board presentation: big active portrait, readable buildings, animated game events. */
.board-center .center-brand {
  font-size: clamp(12px, 2.8cqw, 25px);
  letter-spacing: 3px;
}
.active-player-hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  position: relative;
  min-height: 0;
}
.hero-class-portrait {
  position: relative;
}
.hero-class-portrait:before {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--class) 65%, transparent),
    transparent 72%
  );
  border-radius: 50%;
}
.hero-class-portrait .avatar {
  position: relative;
  filter: drop-shadow(0 10px 15px #20332345);
  width: clamp(64px, 23cqw, 180px);
  height: clamp(70px, 25cqw, 195px);
}
.active-player-hero h2 {
  font-size: clamp(20px, 4.8cqw, 42px);
  line-height: 1.05;
  color: #203e2d;
  overflow-wrap: anywhere;
  max-width: 100%;
  margin: 8px 0;
}
.active-player-hero > p {
  margin: 4px 0;
  font-size: clamp(10px, 1.9cqw, 15px);
  color: #405b3e;
}
.turn-label {
  font-size: clamp(8px, 1.6cqw, 12px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #36512e;
  margin-top: 8px;
}
.motion-status {
  min-height: 2.8em;
  font-size: clamp(9px, 1.7cqw, 13px);
  line-height: 1.4;
  color: #405834;
  margin: 7px 0 0;
  max-width: 95%;
}
@media (max-width: 380px) {
  .hero-class-portrait .avatar { width: 17cqw; height: 18.5cqw; }
  .active-player-hero h2 { font-size: 18px; margin: 4px 0; }
  .active-player-hero > p { font-size: 8px; margin: 2px 0; }
  .turn-label { font-size: 6px; letter-spacing: 1px; margin-top: 4px; }
  .hero-balance { margin-top: 4px; }
  .hero-balance > strong { font-size: 23px; }
  .hero-balance > span { font-size: 6px; }
  .motion-status { font-size: 7px; margin-top: 3px; min-height: 1.4em; }
}
.game-sidebar > .turn-panel {
  background: #c8d5b1;
  border: 1px solid #91a57d;
  border-radius: 10px;
  padding: 22px 15px;
  max-width: none;
}
.game-sidebar > .turn-panel .eyebrow {
  font-size: 9px;
  line-height: 1.6;
}
.game-sidebar > .turn-panel h2 {
  font-size: 25px;
}
.game-sidebar > .turn-panel .primary {
  font-size: 12px;
  min-height: 44px;
}
.game-sidebar > .turn-panel .die {
  width: 48px;
  height: 48px;
}
.game-sidebar > .turn-panel .drawn-card {
  max-width: 100%;
}
.presenting .turn-panel .action-buttons {
  opacity: 0.45;
}
.tile:has(.active-token) {
  overflow: visible;
  z-index: 4;
}
.token.active-token {
  width: clamp(23px, 4.6cqw, 38px);
  height: clamp(27px, 5.2cqw, 44px);
  flex-shrink: 0;
  z-index: 5;
  border: 2px solid #fff7c2;
  border-radius: 7px;
  box-shadow:
    0 0 0 2px var(--class),
    0 3px 9px #102117aa;
}
.token.active-token .avatar {
  width: 100%;
  height: 100%;
}
.pawn-hidden {
  visibility: hidden;
}
.building-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px 3px;
  border: 1px solid #faffd9;
  border-radius: 3px;
  background: #16653b;
  color: white;
  box-shadow: 0 1px 3px #001c13a0;
  pointer-events: none;
}
.building-badge .icon {
  width: clamp(8px, 1.5cqw, 14px);
  height: clamp(8px, 1.5cqw, 14px);
  stroke-width: 2;
  fill: #e3efc9;
}
.building-badge b {
  font-size: clamp(8px, 1.4cqw, 12px);
  line-height: 1;
}
.building-badge.has-hotel {
  background: #a73532;
}
.color-band .icon {
  fill: #ebffd1;
  stroke: #17512d;
  stroke-width: 2;
}
.deed-building-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #224b34;
  border: 1px solid #82af73;
  border-radius: 7px;
  margin: 14px 0;
  color: #f2f7df;
}
.deed-building-status .icon {
  width: 30px;
  height: 30px;
  fill: #a5d177;
}
.moving-pawn {
  position: fixed;
  z-index: 55;
  width: 38px;
  height: 44px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border: 2px solid #fff5be;
  border-radius: 8px;
  background: var(--class);
  box-shadow: 0 5px 12px #17261988;
}
.moving-pawn .avatar {
  width: 100%;
  height: 100%;
}
.event-theater,
.payment-theater {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  padding: 28px 24px;
  border: 2px solid #c8c48a;
  border-radius: 16px;
  background: #142920f5;
  color: #f3efd3;
  text-align: center;
  box-shadow: 0 15px 80px #0008;
  animation: event-enter 0.25s ease-out;
}
.event-theater > strong {
  display: block;
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.2;
  margin-top: 15px;
  font-family: Georgia, serif;
}
.event-theater > p {
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 15px;
}
.event-theater > .icon {
  width: 54px;
  height: 54px;
  color: #ddca88;
}
.event-theater .die {
  display: inline-grid;
  margin: 0 8px;
  width: 55px;
  height: 55px;
}
.double-event {
  border-color: #edc85e;
  background: #413620f7;
}
.jail-event {
  border-color: #d59575;
  background: repeating-linear-gradient(
    90deg,
    #251e1af7 0 40px,
    #463a30f7 40px 46px
  );
}
.jail-event > .icon {
  color: #e3ae8e;
}
.payment-theater {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  gap: 8px;
  width: min(470px, calc(100vw - 24px));
  padding: 22px 16px;
}
.payment-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.payment-person .avatar {
  width: 64px;
  height: 74px;
}
.payment-person > .icon {
  width: 56px;
  height: 74px;
}
.payment-person span {
  overflow-wrap: anywhere;
  max-width: 100%;
  font-weight: 600;
  font-size: 14px;
}
.payment-person b {
  font-size: 20px;
}
.payment-person.payer b {
  color: #efab94;
}
.payment-person.recipient b {
  color: #b5ee9c;
}
.payment-flight {
  position: relative;
  height: 50px;
}
.payment-flight > strong {
  display: block;
  font-size: 30px;
  opacity: 0.35;
}
.payment-flight > span {
  position: absolute;
  left: 0;
  top: 10px;
  animation: emerald-flight 0.7s calc(var(--i) * 0.075s) both;
}
.payment-flight .emerald-icon {
  width: 22px;
  height: 22px;
}
.cash-out .player-cash {
  animation: cash-out 0.9s both;
}
.cash-in .player-cash {
  animation: cash-in 0.9s both;
}
.spell-fx {
  position: fixed;
  z-index: 45;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: var(--spell-color);
}
.spell-caster {
  position: absolute;
  inset: 80px;
  z-index: 2;
  filter: drop-shadow(0 0 15px var(--spell-color));
}
.spell-caster .avatar {
  width: 100%;
  height: 100%;
}
.spell-fx > strong,
.spell-fx > small {
  position: absolute;
  z-index: 3;
  top: 205px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 6px;
  padding: 7px 13px;
  background: #10271ff2;
  color: #fff4c9;
  font-size: 19px;
  box-shadow: 0 3px 20px #10201888;
}
.spell-fx > small {
  top: 244px;
  font-size: 11px;
  color: #c9d9b9;
}
.spell-fx i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--spell-color);
  box-shadow: 0 0 12px var(--spell-color);
  border-radius: 50%;
  animation: spell-burst 0.65s ease-out both;
  --angle: calc(var(--i) * 30deg);
}
.spell-shockwave i,
.spell-orbit i {
  width: 140px;
  height: 140px;
  margin: -70px;
  background: none;
  border: 3px solid var(--spell-color);
  animation: spell-ring 0.65s calc(var(--i) * 0.02s) both;
}
.spell-uppercut i,
.spell-slash i {
  width: 95px;
  height: 7px;
  border-radius: 100%;
  transform-origin: left;
  animation: spell-slash 0.6s calc(var(--i) * 0.015s) both;
}
.spell-arrows i {
  width: 75px;
  height: 4px;
  border-radius: 0;
  animation: spell-arrow 0.5s calc(var(--i) * 0.018s) both;
}
.spell-arrows i:after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  border-left: 9px solid var(--spell-color);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.spell-meteor i {
  width: 25px;
  height: 25px;
  background: #ffce6a;
  box-shadow: -12px -20px 12px #ef653477;
  animation: spell-meteor 0.6s calc(var(--i) * 0.014s) both;
}
.spell-heal i {
  border-radius: 0;
  clip-path: polygon(
    35% 0,
    65% 0,
    65% 35%,
    100% 35%,
    100% 65%,
    65% 65%,
    65% 100%,
    35% 100%,
    35% 65%,
    0 65%,
    0 35%,
    35% 35%
  );
  width: 26px;
  height: 26px;
  background: #b6f7b0;
}
.spell-smoke i {
  width: 70px;
  height: 70px;
  opacity: 0.6;
  filter: blur(8px);
}
.spell-totem i {
  width: 15px;
  height: 90px;
  border-radius: 3px;
  animation: spell-root 0.6s both;
}
.spell-roots i {
  width: 5px;
  height: 100px;
  transform-origin: bottom;
  animation: spell-root 0.6s both;
}
.spell-snake i {
  width: 28px;
  height: 14px;
  background: #b8eaff;
  animation: spell-snake 0.65s calc(var(--i) * 0.016s) both;
}
@keyframes event-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes emerald-flight {
  0% {
    opacity: 0;
    transform: translate(-20px, 15px) scale(0.6);
  }
  35% {
    opacity: 1;
    transform: translate(20px, -15px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(85px, 15px) scale(0.7);
  }
}
@keyframes cash-out {
  35% {
    color: #ff9f83;
    transform: translateY(5px);
  }
}
@keyframes cash-in {
  35% {
    color: #baff8f;
    transform: translateY(-5px);
  }
}
@keyframes spell-burst {
  from {
    opacity: 1;
    transform: rotate(var(--angle)) translateX(0) scale(0.4);
  }
  to {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(115px) scale(1.3);
  }
}
@keyframes spell-ring {
  from {
    opacity: 0.8;
    transform: scale(0.1);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}
@keyframes spell-slash {
  from {
    opacity: 1;
    transform: rotate(calc(var(--angle) - 60deg)) scaleX(0.1);
  }
  to {
    opacity: 0;
    transform: rotate(calc(var(--angle) + 60deg)) scaleX(1.5);
  }
}
@keyframes spell-arrow {
  from {
    opacity: 1;
    transform: translate(-130px, calc(var(--i) * 12px - 60px)) rotate(-15deg);
  }
  to {
    opacity: 0;
    transform: translate(100px, calc(var(--i) * 12px - 90px)) rotate(-15deg);
  }
}
@keyframes spell-meteor {
  from {
    opacity: 1;
    transform: translate(calc(var(--i) * 5px - 100px), -120px) scale(0.3);
  }
  to {
    opacity: 0;
    transform: translate(calc(var(--i) * 6px - 30px), 45px) scale(1.5);
  }
}
@keyframes spell-root {
  from {
    opacity: 1;
    transform: rotate(var(--angle)) translateY(10px) scaleY(0.1);
  }
  to {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(-45px) scaleY(1.3);
  }
}
@keyframes spell-snake {
  from {
    opacity: 1;
    transform: translate(-100px, calc(var(--i) * 4px));
  }
  to {
    opacity: 0;
    transform: translate(100px, calc(var(--i) * -5px)) rotate(25deg);
  }
}
@media (max-width: 650px) {
  .moving-pawn {
    width: 29px;
    height: 34px;
  }
  .building-badge {
    padding: 1px 2px;
    top: 1px;
    right: 1px;
  }
  .game-sidebar > .turn-panel {
    padding: 24px 18px;
  }
  .spell-fx {
    scale: 0.8;
    transform-origin: top left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .transient-fx,
  .transient-fx *,
  .cash-in .player-cash,
  .cash-out .player-cash {
    animation: none !important;
  }
  .payment-flight > span {
    position: static;
    display: inline-block;
  }
  .payment-flight > span:nth-child(n + 3) {
    display: none;
  }
  .spell-fx i {
    display: none;
  }
}

/* Compact, board-only spells and player-owned effect badges. */
.board-center.has-city-backdrop { background: #a4b292; }
.city-backdrop { opacity: .92; }
.city-backdrop-veil { background: linear-gradient(#edf2dc15, #edf2dc30 55%, #e2eac459); }
.has-city-backdrop .active-player-hero h2,
.has-city-backdrop .active-player-hero > p,
.has-city-backdrop .turn-label,
.has-city-backdrop .hero-balance,
.has-city-backdrop .motion-status { color: #f5f7e8; text-shadow: 0 2px 3px #071b10, 0 0 8px #071b10; }
.has-city-backdrop .hero-balance > span, .has-city-backdrop .hero-balance > strong,
.has-city-backdrop .center-brand { color: #f5f7e8; text-shadow: 0 2px 3px #071b10, 0 0 8px #071b10; }
.has-city-backdrop .bank-stock { background: #edf3d799; border-radius: 8px; padding: 4px 8px; }
.player-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; }
.player-effects { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 6px; }
.player-effects .effect-badge { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; max-width: 100%; padding: 5px 7px; margin: 0; font-size: 10px; line-height: 1.4; text-align: left; cursor: help; }
.effect-badge > span { overflow-wrap: anywhere; }
.effect-badge > small { flex-shrink: 0; background: #ffffff16; padding: 0 4px; border-radius: 3px; font-size: 10px; }
.effect-badge:focus-visible { outline: 2px solid #e6d8ac; outline-offset: 2px; }
#effect-tooltip { position: fixed; z-index: 120; width: 300px; max-width: calc(100vw - 24px); padding: 14px 16px; border: 1px solid #8ea57b; border-radius: 10px; background: #10221bf7; color: #f0f2df; box-shadow: 0 8px 30px #0007; font-size: 13px; line-height: 1.6; }
#effect-tooltip small { color: #c7d8a6; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
#effect-tooltip strong { display: block; margin: 4px 0; font-size: 15px; }
#effect-tooltip p { margin: 0; }
.lore-note { display: block; margin-top: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.class-rent-label { display: block; color: #c7d8a6; font-size: 10px; line-height: 1.6; margin: 5px 0; white-space: normal; overflow-wrap: anywhere; }
.player-info .class-rent-label { font-size: 9px; }
.rent-receipt { margin-top: 16px; padding: 12px; border: 1px solid #77976666; border-radius: 7px; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.rent-receipt h3 { font-size: 14px; margin: 0 0 6px; }
.rent-receipt p { margin: 5px 0; }
.rent-receipt > small { display: block; margin-top: 6px; }
.turn-panel .rent-receipt { background: #e1e9cc; border-color: #8ba078; color: #29452f; }
.turn-panel .rent-receipt :is(h3, p, strong, small) { color: #29452f; }
.payment-rent-factors { grid-column: 1 / -1; text-align: center; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.lore-note a { color: #c7d8a6; text-decoration: underline; text-underline-offset: 3px; }
#effect-tooltip .lore-note { text-transform: none; letter-spacing: 0; }
.event-card h2 { overflow-wrap: anywhere; }
#effect-tooltip { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
#effect-tooltip .effect-example-note { margin-top: 10px; padding-top: 8px; border-top: 1px solid #466348; color: #bbccb1; font-size: 11px; }
.spell-fx.spell-board { transform: none; scale: 1; max-width: none; max-height: none; overflow: hidden; border-radius: 2px; opacity: 1; animation: none; background: transparent; }
.spell-board .spell-banner { top: auto; bottom: 10%; max-width: 88%; gap: 8px; padding: 7px 12px; border-radius: 30px; border-color: color-mix(in srgb, var(--spell-color) 65%, transparent); background: #132b25ed; box-shadow: 0 3px 14px #10251a44; }
.spell-board .spell-banner .avatar { width: 27px; height: 32px; }
.spell-board .spell-banner strong { font-size: clamp(13px, 1.5vw, 19px); color: #f4edd3; }
.spell-board .spell-banner small { font-size: 9px; margin-bottom: 2px; }
@media(max-width:650px) {
  .spell-board .spell-banner { bottom: 7%; padding: 5px 9px; gap: 5px; }
  .spell-board .spell-banner small { display: none; }
  .spell-board .spell-banner .avatar { width: 18px; height: 21px; }
}
.language-picker { display: inline-flex; align-items: center; position: relative; }
.language-picker select { width: 76px; min-height: 44px; padding: 5px 24px 5px 10px; font: inherit; font-size: 14px; color: transparent; appearance: none; background: #172c24; border: 1px solid #55735a; border-radius: 8px; cursor: pointer; }
.language-picker select option { color: #e9ecdf; background: #172c24; }
.language-flag { position: absolute; left: 12px; width: 28px; pointer-events: none; z-index: 1; line-height: 0; }
.language-flag svg { width: 100%; max-height: 20px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px #ffffff30; }
.language-picker[data-language="en"] .language-flag.nl, .language-picker[data-language="nl"] .language-flag.en { display: none; }
.language-picker::after { content: ""; position: absolute; right: 12px; top: 18px; width: 6px; height: 6px; border-right: 2px solid #e9ecdf; border-bottom: 2px solid #e9ecdf; transform: rotate(45deg); pointer-events: none; }
.language-picker select:focus-visible { outline: 2px solid #c8dfad; outline-offset: 3px; }
.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; }
@media (max-width: 650px) {
  .topbar { height: auto; min-height: 76px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
  .topbar nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .language-picker select { max-width: 112px; }
}
.tile.special-tile {
  background: linear-gradient(145deg, #fff0a6 0%, #eed477 48%, #dab953 100%);
  color: #3c3214;
  box-shadow: inset 0 0 0 1px #fff2a6, inset 0 0 12px #fff7c855, 0 0 9px #efcf6433;
}
.tile.special-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 18%, #fffbe0aa 40%, transparent 62%);
  opacity: .24;
  animation: special-tile-shine 5s ease-in-out infinite;
}
.tile.special-tile:hover:not(:disabled) {
  background: linear-gradient(145deg, #fff6bd, #f5df8a 55%, #e6c768);
}
.tile.special-tile .tile-name { color: #3c3214; text-shadow: 0 1px 0 #fff8ce88; }
.tile.special-tile .tile-price, .tile.special-tile > .icon { color: #574619; }
.tile.special-tile.current-tile {
  box-shadow: inset 0 0 0 2px #637832, inset 0 0 12px #fff7c877, 0 0 10px #efcf6455;
}
@keyframes special-tile-shine {
  0%, 100% { opacity: .18; }
  50% { opacity: .48; }
}
@media (prefers-reduced-motion: reduce) {
  .tile.special-tile::before { animation: none; opacity: .26; }
}
.player-tools { padding: 14px 0 0; border-top: 1px solid var(--line); }
.tile.special-tile:is([data-space="0"], [data-space="20"]) {
  background: linear-gradient(145deg, #e0f2a8 0%, #aed17a 48%, #80ac55 100%);
  color: #243a19;
  box-shadow: inset 0 0 0 1px #d8edaa, inset 0 0 12px #eafaaf55, 0 0 9px #9dce5e44;
}
.tile.special-tile:is([data-space="0"], [data-space="20"]):hover {
  background: linear-gradient(145deg, #ebfac3, #bfdf8f 55%, #9bc771);
}
.tile.special-tile:is([data-space="10"], [data-space="30"]) {
  background: linear-gradient(145deg, #f5bbb0 0%, #e78778 48%, #cc6359 100%);
  color: #481e1a;
  box-shadow: inset 0 0 0 1px #ffc4b7, inset 0 0 12px #ffdbca55, 0 0 9px #ec867244;
}
.tile.special-tile:is([data-space="10"], [data-space="30"]):hover {
  background: linear-gradient(145deg, #ffcdc2, #f09c8b 55%, #db786d);
}
.tile.special-tile:is([data-space="0"], [data-space="20"]) :is(.tile-name, .tile-price),
.tile.special-tile:is([data-space="0"], [data-space="20"]) > .icon { color: #243a19; }
.tile.special-tile:is([data-space="10"], [data-space="30"]) :is(.tile-name, .tile-price),
.tile.special-tile:is([data-space="10"], [data-space="30"]) > .icon { color: #481e1a; }
.tile.special-tile.current-tile:is([data-space="0"], [data-space="10"], [data-space="20"], [data-space="30"]) {
  outline: 2px solid #f5f9dd;
  outline-offset: -3px;
}
.dialog-feedback { position: sticky; bottom: 0; margin: 12px 0 0; padding: 12px 15px; border: 1px solid #daaa68; border-radius: 8px; background: #3e291c; color: #ffe1b6; font-size: 13px; }
.dialog-feedback[hidden] { display: none; }
.loot-summary { padding:18px; margin:12px 0; border:1px solid #d7b76666; background:#172722dc; border-radius:12px; }
.loot-summary h3 { margin:8px 0; color:#e9d69c; }
.loot-summary p, .loot-options { font-size:.85rem; line-height:1.6; }
.loot-options { display:flex; flex-wrap:wrap; gap:6px; max-height:300px; overflow:auto; }
.loot-options button { flex:1 1 100px; }
.tile.loot-target { outline:5px solid #ff3b3b !important; outline-offset:-4px; box-shadow:0 0 24px #f22 !important; z-index:4; }
.loot-countdown { font-size:3rem; font-weight:800; color:#ff8f7c; }
.loot-warning { position:sticky; top:0; z-index:10; padding:12px; background:#571f1f; color:#fff1d6; border:2px solid #ff6557; border-radius:8px; }
.loot-house-badge { position:absolute; top:17px; right:2px; z-index:4; background:#123b2f; color:#9affaa; font-size:11px; font-weight:900; padding:2px 4px; border:1px solid #94e9a7; border-radius:4px; display:flex; align-items:center; }
.loot-house-badge svg { width:13px; height:13px; }
.hidden-balance { font-size:.85em; color:#c5c0d9; }
