/* Second-generation interface: clear type, illustrated resources, and a full 3D table. */
:root {
  --bg: #f1f4fa;
  --paper: #ffffff;
  --ink: #182f4a;
  --muted: #61758d;
  --green: #2563c4;
  --line: #dbe3ef;
  --gold: #ffc46b;
  --serif: var(--sans);
}
body {
  font-size: 16px;
}
h1 {
  font-weight: 750;
  letter-spacing: -1.6px;
}
h2 {
  font-size: 24px;
}
p {
  color: #62758b;
}
.sidebar {
  background: #fff;
}
.brand svg {
  color: #2769b5;
}
.brand-dot {
  color: #ed9c3a;
}
.nav-caption {
  font-size: 11px;
  color: #75859a;
}
.nav-item {
  font-size: 15px;
  color: #60718a;
  padding: 15px 12px;
}
.nav-item.selected {
  background: #e9f0fc;
  color: #245ba8;
}
.nav-dot {
  background: #3679d3;
}
.base-note strong {
  font-size: 23px;
  font-weight: 650;
}
.base-note p {
  font-size: 13px;
}
.pill {
  font-size: 10px;
  color: #426596;
  background: #e8f0fc;
}
.user-profile strong {
  font-size: 13px;
}
.user-profile small {
  font-size: 11px;
  color: #718096;
}
.avatar {
  color: #446d99;
  background: #e4edf8;
}
.breadcrumb {
  font-size: 13px;
  color: #78899f;
}
.breadcrumb strong {
  color: #405b7e;
}
.topbar {
  background: #f9fbfe;
}
.connection {
  font-size: 12px;
  color: #4b7495;
}
.connection i {
  background: #408dd3;
}
.top-actions .quiet {
  font-size: 13px;
}
button.primary,
button.secondary,
button.gold,
button.quiet {
  font-size: 14px;
  padding: 12px 17px;
}
.primary {
  background: #2463c7;
}
.secondary {
  background: #edf3fc;
  border-color: #c7d7ed;
  color: #26568e;
}
.quiet {
  border-color: #cad7e8;
  color: #3d5f87;
}
.gold {
  background: #ffc46b;
  color: #19304a;
}
.text-button {
  font-size: 14px;
  color: #2463c7;
}
.eyebrow {
  font-size: 11px;
  color: #4e739e;
}
.page-heading p {
  font-size: 16px;
}
.heading-art {
  color: #80a9d6;
}
.hero-card {
  background: linear-gradient(125deg, #122d4e, #1b4c77);
  min-height: 420px;
}
.hero-copy {
  width: 46%;
  padding: 35px 0 35px 30px;
}
.hero-copy h2 {
  font-size: 42px;
  font-weight: 750;
  color: #fff4df;
}
.hero-copy p {
  font-size: 14px;
  color: #c1d4e8;
  max-width: 250px;
}
.hero-meta {
  font-size: 13px;
  color: #d7e5f4;
  gap: 15px;
}
.hero-copy .gold {
  font-size: 14px;
  padding: 14px 20px;
}
.pill.light {
  font-size: 10px;
  color: #c8dfff;
  background: #ffffff12;
}
.hero-coordinate {
  font-size: 8px;
  color: #a5c4df;
}
.hero-board {
  right: -25px;
  width: 60%;
}
.join-card {
  background: #fff;
  border-color: #d9e2ef;
}
.join-card h2 {
  font-size: 29px;
  font-weight: 700;
}
.join-card p {
  font-size: 14px;
}
.join-card label {
  font-size: 11px;
  color: #5c7597;
}
.join-card input {
  font-size: 14px;
}
.join-card .secondary {
  font-size: 13px;
}
.round-icon {
  background: #eaf1fb;
  color: #3a72ae;
}
.join-note {
  font-size: 11px;
  color: #69809a;
}
.section-heading h2 {
  font-size: 23px;
}
.section-heading p {
  font-size: 14px;
}
.segmented {
  background: #e7edf6;
  border-color: #d4dfed;
}
.segmented button {
  font-size: 12px;
  color: #657b98;
}
.segmented button.active {
  color: #245ba8;
  background: #fff;
}
.room-list {
  background: #fff;
}
.room-name strong {
  font-size: 15px;
}
.room-name small {
  font-size: 12px;
  color: #667f9c;
}
.room-row > .quiet {
  font-size: 13px;
}
.status {
  font-size: 12px;
  color: #6c7f97;
}
.status.waiting {
  color: #207964;
}
.room-people small {
  font-size: 12px;
}
.empty-rooms strong {
  font-size: 25px;
  font-weight: 650;
}
.empty-rooms p {
  font-size: 14px;
}
.empty-rooms .text-button {
  font-size: 14px;
}
.feature-strip strong {
  font-size: 13px;
}
.feature-strip p {
  font-size: 12px;
}
.feature-strip > div > span {
  color: #8aa5c7;
}
.feature-strip {
  gap: 22px;
}
.room-emblem {
  background: #edf2fa;
  color: #5487bb;
}
footer {
  font-size: 11px;
  color: #7f91a9;
}
.modal {
  background: #f8fbff;
  border-color: #bdcfe6;
  width: 520px;
}
.modal-heading h2 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #18324f;
}
.modal p,
.modal-intro,
.hint {
  font-size: 14px;
  color: #607b98;
}
.modal label {
  font-size: 12px;
  color: #4a6586;
}
.modal .hint {
  font-size: 12px;
}
.modal input,
.modal select {
  background: #fff;
  border-color: #c7d5e7;
  color: #193b5c;
}
.auth-tabs button {
  font-size: 13px;
}
.modal .form-error {
  color: #b53f36;
}
.room-settings {
  font-size: 13px;
  color: #55718f;
}
.rule-card h2 {
  font-weight: 700;
}
.rule-card p {
  font-size: 15px;
}
.rule-card > span {
  color: #7397c3;
}
.stat-cards span {
  font-size: 12px;
  color: #6683a7;
}
.stat-cards strong {
  font-weight: 700;
}
.empty-message,
table {
  font-size: 14px;
}
th {
  font-size: 12px;
  color: #57779e;
}
.crew-member strong {
  font-size: 16px;
}
.crew-member small {
  font-size: 13px;
}
.waiting-island {
  background: linear-gradient(130deg, #163858, #1b4b70);
}
.waiting-island .eyebrow,
.island-details {
  color: #bed6eb;
}
.waiting-island .pill {
  color: #c5ddf7;
}
.island-details {
  font-size: 13px;
}
.chat-messages p {
  font-size: 15px;
}
.chat-form input {
  font-size: 15px;
}
.invite-box {
  background: #eaf0f8;
}
.invite-box input {
  font-size: 13px;
}
label {
  font-size: 12px;
}
.empty-page p {
  font-size: 16px;
}
.resource-art {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-image: url("/assets/resources-atlas.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  border-radius: 5px;
  vertical-align: middle;
}
.art-wood {
  background-position: 0 0;
}
.art-brick {
  background-position: 50% 0;
}
.art-wool {
  background-position: 100% 0;
}
.art-grain {
  background-position: 0 100%;
}
.art-ore {
  background-position: 50% 100%;
}
.art-desert {
  background-position: 100% 100%;
}
.trade-inputs label,
.resource-choices label > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trade-inputs {
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
}
.trade-inputs > span {
  font-size: 12px;
}
.trade-inputs label,
.resource-choices label {
  font-size: 14px;
}
.trade-modal-section p {
  font-size: 14px;
}
.bank-form select {
  font-size: 14px;
}
.monopoly-choices .resource-art {
  width: 35px;
  height: 35px;
}
body.in-game {
  background: #091a2c;
  color: #eaf2fc;
}
.in-game #app {
  min-height: 100dvh;
}
.play-screen {
  --ink: #eaf2fc;
  --muted: #9ab0c9;
  --line: #2c435d;
  --paper: #142a42;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 45% 0%, #1b3955, #0c1d30 75%);
  padding: 0 22px 18px;
}
.play-toolbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid #ffffff14;
  margin-bottom: 18px;
}
.play-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}
.play-title > svg {
  color: #ffca77;
}
.play-title strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: #f2f6fd;
}
.play-title span {
  display: block;
  font-size: 11px;
  color: #8dabc9;
  letter-spacing: 1px;
  margin-top: 4px;
}
.play-title i {
  margin: 0 6px;
  font-style: normal;
  color: #ffbd66;
}
.play-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}
.play-tools .quiet,
.play-tools .primary {
  font-size: 12px;
  padding: 10px 12px;
}
.play-tools .quiet {
  background: #1b344e;
  color: #d9e7f9;
  border: 1px solid #35506d;
}
.play-tools .primary {
  background: #ffbd60;
  color: #13283d;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9bb5d1;
  letter-spacing: 0;
}
.volume-control input {
  width: 60px;
  margin: 0;
  padding: 0;
  accent-color: #f6bf73;
}
.play-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.card-rail {
  background: #12283e;
  border: 1px solid #2b425d;
  border-radius: 13px;
  padding: 17px 15px;
  max-height: calc(100dvh - 116px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #456582 transparent;
}
.rail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffffff15;
  margin-bottom: 13px;
}
.rail-heading h2 {
  font-size: 19px;
  color: #f4f7ff;
}
.rail-heading .eyebrow {
  font-size: 9px;
  color: #89a9c8;
  letter-spacing: 1.7px;
  margin-bottom: 3px;
}
.rail-heading > strong {
  color: #f6c577;
  font-size: 23px;
}
.rail-heading > strong small {
  font-size: 11px;
  font-weight: 500;
  color: #94acc7;
  display: block;
}
.resource-stacks {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.stack-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.stack-label h3 {
  font-size: 14px;
  color: #e1ebf7;
  font-weight: 650;
}
.stack-label > span {
  font-size: 11px;
  color: #829fbd;
}
.card-stack {
  height: 86px;
  position: relative;
  --step: min(15px, calc((100% - 70px) / var(--gaps)));
  isolation: isolate;
}
.hand-card {
  width: 70px;
  height: 86px;
  border-radius: 7px;
  position: absolute;
  top: 0;
  left: calc(var(--i) * var(--step));
  border: 1px solid #fff7d966;
  box-shadow: -3px 2px 5px #0007;
  overflow: hidden;
  transform: rotate(-2deg);
  transform-origin: bottom left;
  background: #2d4160;
  transition: transform 0.18s;
}
.hand-card .resource-art {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.hand-card:after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, #111c2be6);
  pointer-events: none;
}
.hand-card.last-card {
  transform: rotate(2deg);
  box-shadow:
    -2px 2px 6px #0007,
    0 0 0 1px #ffe8ba44;
}
.card-stack:hover .last-card {
  transform: translateY(-5px) rotate(2deg);
}
.card-tick {
  position: absolute;
  top: 4px;
  left: 3px;
  font-size: 9px;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 3px #000;
  background: #102b43b8;
  border-radius: 3px;
  min-width: 11px;
  text-align: center;
  line-height: 13px;
  z-index: 2;
}
.card-name {
  position: absolute;
  bottom: 7px;
  left: 5px;
  font-size: 9px;
  font-weight: 650;
  color: #fff;
  z-index: 2;
}
.card-total {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff0ce;
  color: #182e43;
  border: 1px solid #fff9e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 5px #0007;
  z-index: 3;
}
.empty-card {
  width: 70px;
  height: 86px;
  border: 1px dashed #526781;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  opacity: 0.45;
}
.empty-card .resource-art {
  width: 100%;
  height: 100%;
  opacity: 0.28;
  filter: grayscale(0.5);
}
.empty-card > span:last-child {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b1c7df;
  font-size: 27px;
}
.development-pocket {
  border-top: 1px solid #ffffff15;
  padding-top: 15px;
  margin-top: 19px;
}
.development-pocket h3 {
  font-size: 12px;
  color: #d1dfef;
  display: flex;
  justify-content: space-between;
}
.development-pocket h3 > span {
  color: #a8b9d1;
}
.development-pocket > p {
  font-size: 12px;
  color: #8da7c3;
  line-height: 1.5;
  margin-top: 9px;
}
.development-card {
  width: 100%;
  background: #253853;
  border: 1px solid #516189;
  color: #edf2ff;
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  border-radius: 7px;
  margin-top: 8px;
  padding: 10px;
}
.development-card span {
  font-size: 12px;
  font-weight: 650;
}
.development-card small {
  display: block;
  font-size: 10px;
  color: #aebeda;
  font-weight: 400;
  margin-top: 3px;
}
.island-stage {
  min-width: 0;
}
.turn-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid #304b68;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  background: #1b354e;
  min-height: 84px;
}
.turn-banner.your-turn {
  background: linear-gradient(100deg, #203f54, #1a334d);
  border-color: #527581;
}
.turn-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7391af;
  flex-shrink: 0;
}
.your-turn .turn-light {
  background: #ffc36f;
  box-shadow: 0 0 0 5px #ffc36f12;
}
.turn-banner > div {
  flex: 1;
  min-width: 0;
}
.turn-banner h1 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.35px;
  color: #f7faff;
}
.turn-banner p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 5px;
  color: #a8c0d8;
}
.victory-target {
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  color: #ffcf89;
  font-size: 18px;
  font-weight: 750;
}
.victory-target small {
  font-weight: 400;
  font-size: 11px;
  color: #a4bad2;
}
.scene-wrap {
  position: relative;
  background: #102c45;
  border: 1px solid #2b4763;
  border-top: 0;
  overflow: hidden;
  border-radius: 0 0 13px 13px;
}
.board3d {
  height: clamp(350px, calc(100dvh - 346px), 780px);
  width: 100%;
  position: relative;
  min-width: 0;
}
.board3d canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline-offset: -4px;
}
.board-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a9c3dc;
}
.board-camera {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.zoom-controls {
  display: flex;
  gap: 3px;
  pointer-events: auto;
  border: 1px solid #496884;
  border-radius: 8px;
  background: #102a43db;
  box-shadow: 0 3px 8px #07152150;
  padding: 3px;
}
.camera-button {
  border-radius: 5px;
  background: transparent;
  color: #eaf3ff;
  padding: 8px 10px;
  font-size: 11px;
  min-width: 32px;
  min-height: 32px;
}
.camera-button:first-child,
.camera-button:nth-child(2) {
  font-size: 21px;
  padding: 0 9px;
}
.camera-button:hover {
  background: #2b5070;
}
#board-hover {
  font-size: 11px;
  color: #b0cce1;
  background: #102a43b0;
  padding: 8px 10px;
  border-radius: 6px;
  max-width: 45%;
  text-align: right;
}
.dice-result {
  position: absolute;
  bottom: 15px;
  left: 17px;
  pointer-events: none;
}
.dice-caption {
  font-size: 9px;
  color: #92b2ca;
  letter-spacing: 1.5px;
}
.dice-result .dice-pair {
  color: #f5e9cb;
  align-items: center;
  font-size: 38px;
  margin-top: 5px;
  line-height: 0.9;
}
.dice-pair > b {
  font-size: 20px;
  margin-left: 9px;
  color: #fff;
}
.accessible-build {
  position: absolute;
  bottom: 12px;
  right: 12px;
  max-width: 290px;
  color: #b7cce0;
  background: #0e243ce8;
  border: 1px solid #34516b;
  border-radius: 7px;
  font-size: 11px;
  z-index: 3;
}
.accessible-build summary {
  padding: 9px 12px;
  cursor: pointer;
}
.accessible-build > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  max-height: 190px;
  overflow: auto;
}
.accessible-build button {
  padding: 7px;
  background: #284d6c;
  color: white;
  border-radius: 4px;
  font-size: 11px;
}
.play-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 90px 116px;
  gap: 7px;
  margin-top: 12px;
}
.build-action {
  background: #203a55;
  border: 1px solid #395773;
  border-radius: 8px;
  color: #e8f2ff;
  padding: 12px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: left;
  min-height: 75px;
}
.build-action > svg {
  color: #b7d6f1;
  width: 21px;
  flex-shrink: 0;
}
.build-action strong {
  font-size: 11px;
  display: block;
  white-space: nowrap;
}
.build-action small {
  font-size: 10px;
  display: block;
  margin-top: 7px;
  color: #a9bfd5;
  line-height: 1.2;
}
.build-action.active {
  border-color: #ffd086;
  background: #43516a;
  box-shadow: 0 0 0 1px #ffd086;
}
.build-action:disabled {
  opacity: 0.52;
  filter: saturate(0.45);
}
.build-cost {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 7px;
}
.cost-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #c6d8e9;
}
.cost-item .resource-art {
  width: 19px;
  height: 23px;
  border: 1px solid #bdcee077;
  border-radius: 3px;
}
.cost-item > b {
  font-size: 9px;
  color: #dce9f7;
}
.roll-action,
.end-action {
  border-radius: 8px;
  background: #ffc36d;
  color: #172e43;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 750;
  padding: 11px;
  min-height: 75px;
}
.end-action {
  background: #2771bb;
  color: white;
}
.end-action:disabled {
  background: #243c54;
  color: #8ba3b9;
  opacity: 0.75;
}
.placement-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c8d8ec;
  font-size: 13px;
  padding: 13px;
  background: #1d3a54;
  border-radius: 8px;
  margin-top: 10px;
}
.placement-hint .quiet {
  font-size: 12px;
  color: #d2e1ef;
  background: #2c4c69;
  border-color: #59748e;
}
.supply-strip {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #97b2cc;
  font-size: 11px;
  padding: 0 3px;
}
.supply-strip > strong {
  font-size: 11px;
  color: #d4e0ef;
}
.supply-strip > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.supply-strip b {
  color: #d9e6f4;
  font-size: 12px;
}
.supply-strip .resource-art {
  width: 22px;
  height: 26px;
  border-radius: 4px;
}
.table-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.play-screen .players-panel {
  background: #142c44;
  border: 1px solid #304963;
  border-radius: 13px;
  padding: 18px 12px 8px;
}
.play-screen .players-panel .section-heading {
  padding: 0 5px;
  align-items: center;
  margin-bottom: 13px;
}
.play-screen .players-panel .section-heading h2 {
  font-size: 18px;
  margin: 0;
  color: #e6effc;
}
.play-screen .players-panel .section-heading > span {
  font-size: 9px;
  color: #8da8c4;
  letter-spacing: 0.5px;
}
.play-screen .player {
  padding: 13px 9px;
  margin-bottom: 5px;
  border-color: transparent;
  border-bottom-color: #ffffff12;
}
.play-screen .player.current {
  background: #223f5b;
  border: 1px solid #46637e;
}
.play-screen .player-top {
  gap: 10px;
}
.play-screen .player-top .avatar {
  width: 34px;
  height: 34px;
  font-size: 19px;
  font-family: var(--sans);
  font-weight: 750;
}
.play-screen .player-top strong {
  font-size: 14px;
  color: #edf5ff;
}
.play-screen .player-top strong small {
  font-size: 10px;
  color: #a1b7ce;
}
.play-screen .player-top div > span {
  font-size: 10px;
  color: #92aec9;
  margin-top: 4px;
}
.play-screen .player-top > b {
  font-size: 26px;
  font-weight: 750;
  color: #ffcf88;
}
.play-screen .player-top > b small {
  font-size: 11px;
  color: #8eabc7;
}
.play-screen .player-stats {
  margin-left: 0;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
  color: #a4bdd6;
  font-size: 11px;
}
.play-screen .player-stats > span {
  gap: 4px;
}
.play-screen .activity-panel {
  background: #11283f;
  border: 1px solid #2e4863;
  border-radius: 13px;
  min-height: 240px;
}
.play-screen .tab-bar {
  border-color: #2a435e;
  padding: 0 12px;
}
.play-screen .tab-bar button {
  color: #93b0cb;
  font-size: 14px;
  padding: 15px 13px;
}
.play-screen .tab-bar button.active {
  color: #fff3d7;
  font-weight: 700;
}
.play-screen .tab-bar button.active:after {
  background: #ffc46f;
}
.play-screen .tab-bar small {
  background: #2c4968;
  color: #c7d8eb;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
}
.play-screen .activity-log {
  max-height: calc(100dvh - 615px);
  min-height: 180px;
  padding: 3px 15px;
  scrollbar-width: thin;
  scrollbar-color: #466885 transparent;
}
.play-screen .activity-log > div {
  padding: 12px 0;
  gap: 7px;
  border-color: #ffffff0c;
}
.play-screen .activity-log p {
  font-size: 12px;
  line-height: 1.55;
  color: #bdd0e4;
}
.play-screen .activity-log small {
  font-size: 9px;
  color: #6e8baa;
}
.play-screen .log-dot {
  background: #5a91bb;
  margin-top: 7px;
}
.privacy-note {
  font-size: 11px;
  text-align: center;
  color: #6d8ba9;
}
.play-screen .trade-offer {
  background: #343d51;
  border: 1px solid #a88d5e;
  border-radius: 12px;
  padding: 18px;
}
.play-screen .trade-offer .eyebrow {
  color: #f4c57d;
  font-size: 10px;
}
.play-screen .trade-offer h3 {
  font-size: 15px;
  color: #f7eedc;
}
.play-screen .trade-offer p {
  font-size: 12px;
  color: #a9bfd5;
  margin: 9px 0;
}
.play-screen .trade-offer button {
  background: #ffc36d;
  color: #24384c;
  margin-top: 13px;
  font-size: 14px;
}
.offered-resources {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 11px;
  font-size: 13px;
  align-items: center;
}
.offered-resources > span {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #edf4fc;
}
.offered-resources .resource-art {
  width: 28px;
  height: 34px;
}
.play-screen .chat-messages {
  padding: 14px;
  max-height: 240px;
}
.play-screen .chat-messages p {
  font-size: 13px;
  color: #b6cce2;
}
.play-screen .chat-messages strong {
  color: #f8cc86;
}
.play-screen .chat-form {
  padding: 0 12px 12px;
}
.play-screen .chat-form input {
  background: #1f3c57;
  border-color: #3d5a77;
  color: white;
  font-size: 12px;
}
.play-screen .chat-form input::placeholder {
  color: #8ca6bf;
}
.play-screen .inline-alert,
.play-screen .winner-banner {
  background: #34475c;
  border: 1px solid #a99167;
  color: #f4deb5;
}
.play-screen .winner-banner h2 {
  color: #ffe0a5;
}
.play-screen .winner-banner p {
  color: #c5d6e7;
}
.focus-exit {
  display: none;
}
.focus-mode .play-toolbar {
  display: none;
}
.focus-mode .play-screen {
  padding-top: 14px;
}
.focus-mode .card-rail {
  max-height: calc(100dvh - 28px);
}
.focus-mode .board3d {
  height: clamp(400px, calc(100dvh - 235px), 1000px);
}
.focus-mode .supply-strip,
.focus-mode .privacy-note {
  display: none;
}
.focus-mode .focus-exit {
  display: block;
  position: fixed;
  right: 24px;
  bottom: 16px;
  z-index: 20;
  background: #24415f;
  color: #e3effa;
  border: 1px solid #59758d;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 3px 12px #0004;
}
.focus-mode .activity-log {
  max-height: calc(100dvh - 510px);
}
.board-fallback {
  height: 100%;
  overflow: auto;
  padding: 15px;
  color: #e2f0ff;
}
.board-fallback h3 {
  font-size: 16px;
}
.board-fallback p {
  color: #a2bed8;
  font-size: 13px;
}
.board-fallback .island-board {
  max-height: 440px;
}
@media (min-width: 1600px) {
  .play-grid {
    grid-template-columns: 235px minmax(0, 1fr) 310px;
    gap: 22px;
  }
  .play-screen {
    padding: 0 26px 20px;
  }
  .play-toolbar {
    height: 84px;
  }
  .play-tools .quiet,
  .play-tools .primary {
    font-size: 14px;
  }
  .card-rail {
    padding: 20px;
  }
  .card-stack,
  .empty-card,
  .hand-card {
    height: 95px;
  }
  .hand-card,
  .empty-card {
    width: 79px;
  }
  .card-stack {
    --step: min(17px, calc((100% - 79px) / var(--gaps)));
  }
  .stack-label h3 {
    font-size: 16px;
  }
  .card-total {
    width: 29px;
    height: 29px;
    font-size: 18px;
  }
  .card-name {
    font-size: 10px;
  }
  .resource-stacks {
    gap: 15px;
  }
  .turn-banner h1 {
    font-size: 23px;
  }
  .turn-banner p {
    font-size: 14px;
  }
  .board3d {
    height: calc(100dvh - 350px);
    min-height: 450px;
  }
  .play-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 110px 130px;
  }
  .build-action strong {
    font-size: 13px;
  }
  .build-action > svg {
    width: 24px;
  }
  .cost-item .resource-art {
    width: 22px;
    height: 26px;
  }
  .build-action small {
    font-size: 12px;
  }
  .cost-item > b {
    font-size: 11px;
  }
  .roll-action,
  .end-action {
    font-size: 16px;
  }
  .play-screen .player-top strong {
    font-size: 16px;
  }
  .play-screen .player-stats {
    font-size: 13px;
  }
  .play-screen .activity-log p {
    font-size: 14px;
  }
  .play-screen .activity-log small {
    font-size: 10px;
  }
  .play-screen .player-top div > span {
    font-size: 12px;
  }
  .play-screen .activity-log {
    max-height: calc(100dvh - 640px);
  }
  .play-screen .players-panel .section-heading h2 {
    font-size: 21px;
  }
  .supply-strip {
    font-size: 12px;
  }
  .rail-heading h2 {
    font-size: 21px;
  }
  .play-screen .privacy-note {
    font-size: 12px;
  }
  .scene-wrap #board-hover {
    font-size: 12px;
  }
  .camera-button {
    font-size: 12px;
  }
  .card-rail {
    max-height: calc(100dvh - 122px);
  }
}
@media (max-width: 1300px) {
  .play-grid {
    grid-template-columns: 175px minmax(0, 1fr) 240px;
    gap: 12px;
  }
  .play-screen {
    padding: 0 14px 15px;
  }
  .play-tools {
    gap: 5px;
  }
  .play-tools .quiet,
  .play-tools .primary {
    font-size: 11px;
    padding: 9px;
  }
  .volume-control {
    display: none;
  }
  .play-title strong {
    font-size: 15px;
  }
  .play-title span {
    font-size: 9px;
  }
  .play-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .build-action {
    min-height: 63px;
    padding: 8px;
  }
  .roll-action,
  .end-action {
    min-height: 63px;
  }
  .board3d {
    height: calc(100dvh - 400px);
    min-height: 340px;
  }
  .build-action > svg {
    width: 18px;
  }
  .build-action strong {
    font-size: 11px;
  }
  .build-cost {
    gap: 3px;
  }
  .cost-item .resource-art {
    width: 18px;
    height: 21px;
  }
  .card-rail {
    padding: 14px 11px;
  }
  .rail-heading h2 {
    font-size: 17px;
  }
  .card-name {
    font-size: 9px;
  }
  .turn-banner {
    padding: 13px;
  }
  .turn-banner h1 {
    font-size: 17px;
  }
  .turn-banner p {
    font-size: 11px;
  }
  .victory-target small {
    display: none;
  }
  .play-screen .player-top strong {
    font-size: 12px;
  }
  .play-screen .player-top .avatar {
    width: 29px;
    height: 29px;
    font-size: 16px;
  }
  .play-screen .player-stats {
    font-size: 10px;
    gap: 7px;
  }
  .play-screen .players-panel {
    padding: 15px 9px 8px;
  }
  .play-screen .players-panel .section-heading h2 {
    font-size: 16px;
  }
  .play-screen .players-panel .section-heading > span {
    font-size: 8px;
  }
  .play-screen .activity-log p {
    font-size: 11px;
  }
  .play-screen .activity-log small {
    display: none;
  }
  #board-hover {
    display: none;
  }
  .supply-strip {
    font-size: 10px;
    gap: 7px;
  }
  .focus-mode .board3d {
    height: calc(100dvh - 260px);
  }
  .hero-copy p {
    font-size: 13px;
  }
  .hero-copy h2 {
    font-size: 36px;
  }
  .hero-meta {
    font-size: 11px;
  }
  .hero-copy .gold {
    font-size: 13px;
  }
  .join-card p {
    font-size: 13px;
  }
  .hero-board {
    right: -35px;
  }
  .feature-strip strong {
    font-size: 12px;
  }
  .feature-strip p {
    font-size: 11px;
  }
}
@media (max-width: 1000px) {
  .play-toolbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
    padding: 13px 0;
    gap: 12px;
  }
  .play-title {
    min-width: auto;
  }
  .play-title span {
    display: none;
  }
  .play-tools .quiet,
  .play-tools .primary {
    padding: 8px;
    font-size: 10px;
  }
  .play-tools .quiet[data-action="copy"],
  .play-tools .quiet[data-action="rules-modal"] {
    display: none;
  }
  .play-grid {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 14px;
  }
  .card-rail {
    grid-column: 1;
    grid-row: 1 / 3;
    max-height: none;
  }
  .island-stage {
    grid-column: 2;
  }
  .table-sidebar {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .play-screen .players-panel,
  .play-screen .activity-panel {
    min-width: 0;
  }
  .play-screen .player {
    padding: 10px 5px;
  }
  .play-screen .players-panel .section-heading > span {
    display: none;
  }
  .play-screen .player-top .avatar {
    display: none;
  }
  .play-screen .player-top strong {
    font-size: 12px;
  }
  .play-screen .player-top div > span {
    font-size: 10px;
  }
  .play-screen .player-stats {
    font-size: 10px;
  }
  .play-screen .activity-log {
    min-height: 250px;
    max-height: 300px;
  }
  .play-screen .privacy-note {
    grid-column: 1/-1;
    margin: 0;
  }
  .play-screen .trade-offer {
    grid-column: 1/-1;
  }
  .play-screen .tab-bar {
    padding: 0 5px;
  }
  .play-screen .tab-bar button {
    font-size: 12px;
    padding: 12px 9px;
  }
  .board3d {
    height: 500px;
  }
  .supply-strip > strong {
    width: 100%;
  }
  .focus-mode .board3d {
    height: calc(100dvh - 260px);
    min-height: 400px;
  }
  .focus-mode .card-rail {
    max-height: none;
  }
  .nav-item {
    font-size: 0;
  }
  .base-note p {
    font-size: 12px;
  }
  .hero-card {
    min-height: 405px;
  }
}
@media (max-width: 650px) {
  .play-screen {
    padding: 0 8px 12px;
  }
  .play-toolbar {
    margin-bottom: 10px;
    padding: 11px 2px;
    gap: 10px;
  }
  .play-title {
    gap: 7px;
  }
  .play-title > svg {
    width: 22px;
  }
  .play-title strong {
    font-size: 14px;
  }
  .play-tools {
    gap: 5px;
  }
  .play-tools .quiet,
  .play-tools .primary {
    padding: 8px;
    font-size: 10px;
  }
  .play-tools .quiet[data-action="lobby-game"] {
    display: none;
  }
  .play-grid {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 8px;
  }
  .card-rail {
    padding: 11px 7px;
    border-radius: 10px;
  }
  .rail-heading {
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }
  .rail-heading h2 {
    font-size: 13px;
  }
  .rail-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .rail-heading > strong {
    font-size: 18px;
  }
  .rail-heading > strong small {
    font-size: 9px;
  }
  .stack-label {
    margin-bottom: 6px;
  }
  .stack-label h3 {
    font-size: 12px;
  }
  .stack-label > span {
    font-size: 9px;
  }
  .card-stack {
    height: 75px;
    --step: min(13px, calc((100% - 57px) / var(--gaps)));
  }
  .hand-card,
  .empty-card {
    width: 57px;
    height: 75px;
  }
  .card-total {
    width: 23px;
    min-width: 23px;
    height: 23px;
    top: 4px;
    right: 4px;
    font-size: 14px;
  }
  .card-name {
    font-size: 8px;
  }
  .card-tick {
    font-size: 8px;
    min-width: 9px;
    left: 2px;
  }
  .resource-stacks {
    gap: 15px;
  }
  .development-pocket {
    margin-top: 16px;
  }
  .development-pocket h3 {
    font-size: 10px;
    line-height: 1.4;
  }
  .development-pocket > p {
    font-size: 10px;
  }
  .development-card {
    padding: 7px 4px;
    gap: 5px;
  }
  .development-card > svg {
    width: 17px;
  }
  .development-card span {
    font-size: 10px;
  }
  .development-card small {
    font-size: 8px;
  }
  .turn-banner {
    padding: 12px 10px;
    gap: 7px;
    min-height: 103px;
  }
  .turn-banner h1 {
    font-size: 15px;
    line-height: 1.4;
  }
  .turn-banner p {
    font-size: 10px;
  }
  .turn-light {
    width: 6px;
    height: 6px;
  }
  .victory-target {
    display: none;
  }
  .board3d {
    height: 420px;
    min-height: 0;
  }
  .board-camera {
    top: 9px;
    left: 8px;
    right: 8px;
  }
  .zoom-controls {
    gap: 1px;
    padding: 2px;
  }
  .camera-button {
    font-size: 9px;
    padding: 5px;
    min-width: 24px;
    min-height: 28px;
  }
  .camera-button:first-child,
  .camera-button:nth-child(2) {
    font-size: 19px;
    padding: 0 7px;
  }
  .camera-button[data-action="camera-top"] {
    display: none;
  }
  .dice-result {
    left: 10px;
    bottom: 12px;
  }
  .dice-caption {
    font-size: 7px;
  }
  .dice-result .dice-pair {
    font-size: 26px;
  }
  .dice-pair > b {
    font-size: 16px;
  }
  .accessible-build {
    right: 8px;
    bottom: 10px;
    max-width: 150px;
    font-size: 9px;
  }
  .accessible-build summary {
    padding: 6px;
  }
  .accessible-build button {
    font-size: 10px;
  }
  .play-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }
  .build-action {
    min-height: 69px;
    padding: 8px 4px;
    gap: 5px;
    flex-direction: column;
    text-align: center;
  }
  .build-action > svg {
    display: none;
  }
  .build-action strong {
    font-size: 10px;
    white-space: normal;
  }
  .build-cost {
    justify-content: center;
    gap: 2px;
    margin-top: 6px;
  }
  .cost-item .resource-art {
    width: 17px;
    height: 20px;
  }
  .cost-item > b {
    font-size: 8px;
  }
  .build-action small {
    font-size: 9px;
  }
  .roll-action,
  .end-action {
    min-height: 69px;
    font-size: 12px;
    padding: 6px;
  }
  .roll-action > svg,
  .end-action > svg {
    width: 18px;
  }
  .supply-strip {
    gap: 7px;
    font-size: 9px;
  }
  .supply-strip .resource-art {
    width: 18px;
    height: 20px;
  }
  .supply-strip > span:last-child {
    font-size: 9px;
  }
  .table-sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .play-screen .players-panel {
    display: block;
    padding: 13px 9px 7px;
  }
  .play-screen .player-top .avatar {
    display: flex;
    width: 27px;
    height: 27px;
    font-size: 15px;
  }
  .play-screen .player-top > b {
    font-size: 22px;
  }
  .play-screen .player-top strong {
    font-size: 12px;
  }
  .play-screen .player-stats {
    margin-top: 7px;
  }
  .play-screen .player-top {
    gap: 7px;
  }
  .play-screen .activity-panel {
    min-height: 220px;
  }
  .play-screen .activity-log {
    min-height: 160px;
    max-height: 230px;
    padding: 3px 10px;
  }
  .play-screen .activity-log p {
    font-size: 12px;
  }
  .focus-mode .play-screen {
    padding-top: 8px;
  }
  .focus-mode .board3d {
    height: calc(100dvh - 310px);
    min-height: 380px;
  }
  .focus-mode .focus-exit {
    font-size: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px;
  }
  .placement-hint {
    font-size: 11px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .play-screen .inline-alert {
    font-size: 12px;
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }
  .play-screen .inline-alert button {
    font-size: 12px;
  }
  .modal {
    padding: 22px 17px;
  }
  .modal-heading h2 {
    font-size: 22px;
  }
  .modal p {
    font-size: 13px;
  }
  .trade-inputs label {
    font-size: 12px;
  }
  .trade-inputs .resource-art {
    width: 25px;
    height: 30px;
  }
  .bank-form select {
    font-size: 12px;
  }
  .join-card .secondary {
    font-size: 12px;
  }
  .hero-card {
    min-height: 365px;
  }
  .hero-copy p {
    font-size: 12px;
    max-width: 180px;
  }
  .hero-copy h2 {
    font-size: 33px;
  }
  .hero-meta {
    font-size: 10px;
  }
  .hero-copy .gold {
    font-size: 12px;
  }
  .hero-copy {
    padding-left: 23px;
  }
  .hero-board {
    right: -65px;
    width: 70%;
  }
  .page-heading p {
    font-size: 14px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .segmented button {
    font-size: 10px;
  }
  .empty-rooms strong {
    font-size: 22px;
  }
  .empty-rooms p {
    font-size: 13px;
  }
  .room-name strong {
    font-size: 13px;
  }
  .room-name small {
    font-size: 10px;
  }
  .room-row > .quiet {
    font-size: 11px;
  }
  .feature-strip strong {
    font-size: 14px;
  }
  .feature-strip p {
    font-size: 13px;
  }
  .base-note {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .top-actions .quiet {
    font-size: 11px;
  }
  .brand > span {
    font-size: 23px;
  }
  .nav-item {
    font-size: 0;
  }
  .nav-caption {
    display: none;
  }
  footer {
    font-size: 10px;
  }
}
/* Host configuration and identity system — shared across lobby and game. */
.map-options {
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.map-options legend {
  font-size: 19px;
  font-weight: 750;
  margin-bottom: 12px;
}
.map-option {
  position: relative;
  border: 2px solid #d2deea;
  border-radius: 13px;
  padding: 12px !important;
  display: grid !important;
  grid-template-columns: 24px 1fr;
  gap: 6px !important;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: #f4f8fc;
  color: #233b54;
}
.map-option:has(input:checked) {
  border-color: #447bb8;
  background: #e7f0fc;
  box-shadow: 0 0 0 2px #447bb822;
}
.map-option input {
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
  align-self: center;
  accent-color: #447bb8;
}
.map-option .map-thumbnail {
  grid-column: 2;
  grid-row: 1 / 4;
  height: 92px;
  width: 100%;
  max-width: 120px;
  justify-self: end;
}
.map-option strong,
.map-option small {
  grid-column: 1 / -1;
  font-size: 16px;
  line-height: 1.35;
}
.map-option small {
  font-size: 13px;
  font-weight: 400;
  color: #50657b;
}
.host-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.host-fields label {
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.host-fields select,
.host-fields input {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  border: 1px solid #bcccdc;
  border-radius: 8px;
  background: white;
  color: #243b51;
}
.settings-help {
  font-size: 14px;
  line-height: 1.65;
  color: #52667b;
}
.waiting-island > .map-thumbnail {
  width: 100%;
  height: 320px;
  background: #19324b;
  border-radius: 18px;
  margin: 18px 0;
}
.lobby-rule-summary {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 12px 0 22px;
  font-size: 17px;
}
.lobby-rule-summary span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.player-badge {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-grid;
  place-items: center;
  position: relative;
  color: var(--player-color);
  filter: drop-shadow(0 3px 5px #0005);
}
.player-badge svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: #ffffffa0;
  stroke-width: 1.2;
}
.player-badge b {
  position: absolute;
  color: #10263a;
  font-size: 21px;
  font-weight: 900;
}
.player-badge.mini {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}
.player-badge.mini b {
  font-size: 13px;
}
.play-screen .player {
  border-left: 5px solid var(--player-color);
  padding: 14px 12px;
  margin: 10px 0;
  border-radius: 12px;
  background: #263c522b;
}
.play-screen .player.current {
  border: 2px solid var(--player-color);
  border-left-width: 6px;
  background: color-mix(in srgb, var(--player-color) 16%, #172a40);
  box-shadow: 0 0 20px color-mix(in srgb, var(--player-color) 14%, transparent);
}
.play-screen .player-top strong {
  font-size: 19px;
  color: var(--player-color);
}
.play-screen .player.current .player-top > div > span {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  margin-top: 7px;
}
.play-screen .player-top {
  gap: 12px;
}
.play-screen .player-stats {
  font-size: 15px;
  gap: 10px;
  flex-wrap: wrap;
}
.play-screen .player-stats svg {
  width: 21px;
  height: 21px;
}
.turn-banner > .player-badge {
  margin-right: 8px;
}
.turn-clock {
  font-size: 22px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: #14283d;
  padding: 9px 12px;
  border-radius: 9px;
  margin-left: auto;
}
.turn-clock.urgent {
  color: #ffb5a5;
  outline: 1px solid #ee907d;
}
.victory-target {
  margin-left: 0 !important;
}
.play-screen .activity-log .event-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 8px;
  border-left: 3px solid var(--player-color);
}
.event-row p {
  margin: 0 !important;
  flex: 1;
  line-height: 1.8 !important;
  font-size: 15px !important;
}
.event-actor {
  color: var(--player-color);
  font-weight: 850;
}
.event-row > small {
  font-size: 10px !important;
}
.event-icon {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  color: var(--player-color);
  background: #ffffff0b;
  border: 1px solid #ffffff20;
  border-radius: 5px;
  padding: 2px;
  margin: 0 3px;
  min-width: 30px;
  height: 32px;
}
.event-icon svg {
  stroke-width: 2.1;
}
.event-icon .resource-art {
  width: 24px;
  height: 28px;
}
@media (max-width: 650px) {
  .host-fields {
    grid-template-columns: 1fr 1fr;
  }
  .map-option strong {
    font-size: 14px;
  }
  .map-option small {
    font-size: 12px;
  }
  .turn-banner > .player-badge {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .turn-clock {
    font-size: 16px;
    padding: 6px;
  }
  .turn-banner {
    flex-wrap: wrap;
  }
  .play-screen .player-top strong {
    font-size: 17px;
  }
  .turn-banner .victory-target {
    display: none;
  }
  .map-options {
    gap: 8px;
  }
}
.modal:has(.map-options) {
  width: min(850px, 94vw);
  max-width: 850px;
}
@media (min-width: 750px) {
  .map-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .map-option .map-thumbnail {
    height: 88px;
  }
  .map-option small {
    font-size: 12px;
  }
  .host-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
