:root {
  --bg: #f6f5ef;
  --paper: #fffefa;
  --ink: #253f36;
  --muted: #899189;
  --green: #214d3f;
  --line: #e4e5da;
  --gold: #e8b76c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  transition:
    background 0.18s,
    transform 0.18s;
  color: inherit;
}
button:hover:not(:disabled) {
  filter: brightness(0.96);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
svg [tabindex]:focus-visible {
  outline: 3px solid #cb9c52;
  outline-offset: 4px;
}
button svg {
  flex-shrink: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 49px;
  line-height: 1.12;
  letter-spacing: -1.9px;
}
h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
}
p {
  color: #7a857c;
  line-height: 1.7;
}
small {
  font-size: 11px;
}
input,
select {
  background: #fffefa;
  border: 1px solid #dfe2d6;
  border-radius: 7px;
  color: var(--ink);
  padding: 12px 14px;
  min-width: 0;
  width: 100%;
  outline: none;
}
input:focus,
select:focus {
  border-color: #668a72;
  box-shadow: 0 0 0 3px #dfe7dc;
}
input::placeholder {
  color: #a2a79e;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  padding: 0;
}
label {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #758071;
  display: block;
}
label input,
label select {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
}
button.primary,
button.secondary,
button.gold,
button.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: #fff;
}
.gold {
  background: var(--gold);
  color: #284739;
}
.secondary {
  border: 1px solid #d8dece;
  background: #f1f3e9;
}
.quiet {
  background: transparent;
  border: 1px solid #dce1d6;
}
.text-button {
  background: transparent;
  font-size: 12px;
  color: var(--green);
  padding: 10px 0;
  font-weight: 600;
}
.icon-button {
  background: transparent;
  padding: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.full {
  width: 100%;
  margin-top: 18px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #fdfcf7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 35px 22px 20px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.5px;
  padding: 0 9px;
}
.brand svg {
  color: #386b4f;
}
.brand-dot {
  color: #d6a355;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #a3a89b;
  margin: 55px 14px 17px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 12px;
  color: #7b8479;
}
.nav-item.selected {
  background: #e9eee0;
  color: #345744;
  font-weight: 600;
}
.nav-dot {
  width: 5px;
  height: 5px;
  background: #55734b;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.base-note {
  border-top: 1px solid var(--line);
  padding: 24px 14px 28px;
}
.base-note > svg {
  color: #9aa48b;
  display: block;
  margin-bottom: 14px;
}
.base-note strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
}
.base-note p {
  font-size: 11px;
  margin: 12px 0 17px;
}
.pill {
  display: inline-flex;
  align-items: center;
  background: #e9eddf;
  color: #64775b;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.light {
  color: #c6d9bf;
  background: #ffffff0c;
  border: 1px solid #ffffff22;
  font-size: 8px;
}
.user-profile {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 20px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9ebdf;
  color: #718166;
  font-family: var(--serif);
  font-size: 19px;
  flex-shrink: 0;
}
.avatar.small {
  width: 27px;
  height: 27px;
  font-size: 13px;
  border: 2px solid #fffefa;
  margin-left: -7px;
}
.user-profile > div {
  flex: 1;
  min-width: 0;
}
.user-profile strong {
  font-size: 11px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-profile small {
  font-size: 9px;
  display: block;
  color: #9ba190;
  margin-top: 3px;
}
.main-shell {
  margin-left: 230px;
}
.topbar {
  height: 85px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
}
.breadcrumb {
  font-size: 11px;
  color: #989d91;
}
.breadcrumb span {
  margin: 0 15px;
  color: #bec3b5;
}
.breadcrumb strong {
  color: #68765f;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.connection {
  font-size: 10px;
  color: #85947e;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection i,
.status i {
  height: 5px;
  width: 5px;
  background: #739466;
  border-radius: 50%;
  display: inline-block;
}
.connection.reconnecting {
  color: #ba9345;
}
.connection.reconnecting i {
  background: #ba9345;
}
.top-actions .quiet {
  padding: 8px 15px;
  font-size: 10px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 40px 44px 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0 32px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #7d8a6d;
  display: block;
  margin-bottom: 14px;
}
.page-heading p {
  font-size: 12px;
  margin-top: 17px;
}
.heading-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-right: 32px;
  transform: rotate(9deg);
  color: #b9bfa8;
}
.heading-art span {
  font-size: 7px;
  letter-spacing: 2px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(245px, 1fr);
  gap: 23px;
}
.hero-card {
  background: #214e40;
  border-radius: 12px;
  min-height: 330px;
  position: relative;
  overflow: hidden;
  display: flex;
  box-shadow: 0 4px 9px #264c3508;
}
.hero-card:after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid #fff1;
  border-radius: 50%;
  right: -60px;
  top: -35px;
  pointer-events: none;
}
.hero-copy {
  padding: 34px 0 42px 30px;
  width: 47%;
  position: relative;
  z-index: 2;
}
.hero-copy h2 {
  font: 38px/1.08 var(--serif);
  color: #f4eddb;
  margin: 20px 0 15px;
  letter-spacing: -1px;
}
.hero-copy p {
  color: #b1c3af;
  font-size: 11px;
  line-height: 1.8;
  max-width: 220px;
}
.hero-meta {
  display: flex;
  gap: 19px;
  color: #c7d2bb;
  margin: 20px 0 24px;
  font-size: 10px;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-copy .gold {
  padding: 12px 18px;
  font-size: 11px;
}
.hero-board {
  position: absolute;
  width: 61%;
  right: -15px;
  top: 50%;
  transform: translateY(-51%) rotate(-8deg);
}
.hero-coordinate {
  position: absolute;
  right: 30px;
  bottom: 15px;
  font-size: 6px;
  letter-spacing: 1.4px;
  color: #a3b9a0;
}
.island-board {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.token {
  font:
    bold 19px Georgia,
    serif;
  fill: #3f4b39;
}
.pips {
  font-size: 7px;
  letter-spacing: -0.5px;
  fill: #625f49;
}
.token.red,
.pips.red {
  fill: #b7563e;
}
.port-label {
  font: 9px var(--sans);
  font-weight: 600;
}
.desert-label {
  font: 8px var(--sans);
  letter-spacing: 1px;
  fill: #a68c59;
}
.join-card {
  padding: 27px 25px 21px;
  background: #fffdf6;
  border: 1px solid #e4e4d8;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.round-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #eeeedf;
  border-radius: 50%;
  color: #6e805f;
  margin-bottom: 18px;
}
.join-card h2 {
  font: 27px var(--serif);
  letter-spacing: -0.5px;
}
.join-card p {
  font-size: 11px;
  margin-top: 11px;
}
.join-card form {
  margin-top: 23px;
}
.join-card label {
  font-size: 8px;
}
.join-card input {
  margin-top: 8px;
  padding: 11px 12px;
  font-size: 11px;
}
.join-card .secondary {
  width: 100%;
  margin-top: 12px;
  font-size: 10px;
  justify-content: space-between;
}
.join-note {
  font-size: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #98a18c;
  margin-top: 21px;
}
.rooms-section {
  margin-top: 34px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading p {
  font-size: 11px;
  margin-top: 6px;
}
.section-heading h2 {
  font-size: 18px;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #e9ebdf;
  border-radius: 5px;
  margin-left: 8px;
  font: 10px var(--sans);
  color: #819173;
  vertical-align: middle;
}
.segmented {
  display: flex;
  gap: 3px;
  border: 1px solid #e1e3d8;
  border-radius: 6px;
  padding: 3px;
  background: #efefe7;
}
.segmented button {
  padding: 7px 12px;
  border-radius: 4px;
  background: transparent;
  color: #949b8c;
  font-size: 9px;
}
.segmented button.active {
  background: #fffef8;
  color: #586f4c;
  box-shadow: 0 1px 4px #243e3810;
}
.room-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fdfcf7;
  overflow: hidden;
}
.room-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.room-row:last-child {
  border: 0;
}
.room-emblem {
  background: #eef0e5;
  color: #a0ac8c;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  width: 43px;
  height: 43px;
}
.room-name {
  flex: 1;
}
.room-name strong {
  display: block;
  font-size: 12px;
}
.room-name small {
  display: block;
  color: #9ba38f;
  margin-top: 4px;
  font-size: 9px;
}
.room-name small span {
  margin: 0 8px;
}
.room-people {
  display: flex;
  align-items: center;
  padding-left: 7px;
  min-width: 100px;
}
.room-people small {
  color: #9ba38e;
  margin-left: 8px;
  font-size: 9px;
}
.status {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #a3a68e;
  font-size: 9px;
  min-width: 80px;
}
.status.waiting {
  color: #779367;
}
.room-row > .quiet {
  font-size: 10px;
  padding: 8px 13px;
}
.empty-rooms {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
}
.empty-rooms > div {
  color: #a7b49a;
  margin-bottom: 10px;
}
.empty-rooms strong {
  font: 20px var(--serif);
}
.empty-rooms p {
  font-size: 11px;
  margin: 7px 0 0;
}
.empty-rooms .text-button {
  font-size: 10px;
  padding: 7px;
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 14px;
}
.feature-strip > div {
  display: flex;
  gap: 14px;
  align-items: center;
}
.feature-strip > div > span {
  font: 24px var(--serif);
  color: #b8bea6;
  border-right: 1px solid #dee2d3;
  padding-right: 14px;
}
.feature-strip strong {
  font-size: 10px;
  font-weight: 600;
}
.feature-strip p {
  font-size: 9px;
  margin-top: 3px;
  color: #9aa28e;
}
footer {
  padding: 20px 44px 25px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a5ac9a;
  border-top: 1px solid var(--line);
  margin: 8px 44px 0;
  padding-left: 0;
  padding-right: 0;
}
footer > span:first-child {
  letter-spacing: 0.5px;
}
.footer-dot {
  padding: 0 10px;
  color: #c4b88f;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 24px;
}
.panel h2 {
  margin-bottom: 18px;
}
.panel .section-heading h2 {
  margin: 0;
}
.waiting-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}
.crew-member {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}
.crew-member > div {
  flex: 1;
}
.crew-member strong {
  font-size: 13px;
}
.crew-member small {
  color: var(--muted);
}
.crew-member > div > small {
  display: block;
  margin-top: 3px;
}
.crew-member .status {
  min-width: auto;
}
.empty-seat {
  opacity: 0.5;
}
.invite-box {
  margin-top: 25px;
  padding: 15px;
  background: #f4f5ed;
  border-radius: 7px;
}
.invite-box > div {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.invite-box input {
  font-size: 11px;
}
.invite-box .secondary {
  padding: 10px;
}
.ready-actions {
  display: flex;
  gap: 10px;
  margin-top: 23px;
}
.hint {
  font-size: 10px;
  color: #919a89;
  line-height: 1.6;
  margin-top: 13px;
}
.waiting-island {
  border-radius: 12px;
  background: #214e40;
  padding: 26px 28px 20px;
  color: #f4eddc;
  margin-bottom: 24px;
  overflow: hidden;
}
.waiting-island .eyebrow {
  color: #b6c4a7;
  margin-bottom: 5px;
}
.waiting-island .pill {
  background: #ffffff12;
  color: #c3cfb2;
}
.waiting-island .island-board {
  max-height: 380px;
}
.island-details {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #ffffff18;
  padding-top: 18px;
  color: #b0c2a7;
  font-size: 10px;
}
.lobby-chat .chat-messages {
  max-height: 160px;
}
.chat-messages {
  overflow: auto;
  padding: 5px 0 14px;
  max-height: 260px;
  overflow-wrap: anywhere;
}
.chat-messages p {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.chat-messages strong {
  color: #5e7855;
  margin-right: 8px;
}
.chat-form {
  display: flex;
  gap: 8px;
}
.chat-form input {
  font-size: 12px;
}
.chat-form button {
  padding: 9px 13px;
}
.game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.game-heading .eyebrow {
  margin-bottom: 8px;
}
.game-heading h2 {
  font: 25px var(--serif);
}
.game-heading > div:last-child {
  display: flex;
  gap: 8px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 23px;
}
.game-table {
  min-width: 0;
}
.board-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 23px;
  background: #ecf0e7;
  border-radius: 12px 12px 0 0;
}
.board-topline > span:last-child {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #7d8f73;
}
.board-container {
  background: #ecf0e7;
  padding: 0 15px;
}
.board-container .island-board {
  max-height: 530px;
}
.board-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ecf0e7;
  padding: 9px 20px 18px;
  border-radius: 0 0 12px 12px;
  font-size: 10px;
  color: #829177;
  min-height: 50px;
}
.board-status > svg {
  color: #a0af92;
  flex-shrink: 0;
}
.dice-pair {
  display: flex;
  gap: 4px;
  color: #3e5949;
  font-size: 33px;
  line-height: 1;
}
.build-edge {
  stroke: #fff9d0;
  stroke-opacity: 0.75;
  stroke-width: 13px;
  stroke-linecap: round;
  cursor: pointer;
  transition: stroke 0.2s;
}
.build-edge:hover,
.build-edge:focus {
  stroke: var(--gold);
  stroke-opacity: 1;
}
.build-vertex {
  fill: #fff8d9;
  stroke: #365c47;
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.2s;
}
.build-vertex:hover,
.build-vertex:focus {
  fill: #f1b954;
  stroke-width: 4;
}
.selectable {
  cursor: pointer;
}
.hex.selectable:hover > polygon {
  stroke: var(--gold);
  stroke-width: 9;
}
.hand-bar {
  margin-top: 19px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 17px 20px 13px;
  border-radius: 10px;
}
.hand-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hand-heading strong {
  font-size: 12px;
}
.hand-heading small {
  color: #97a08d;
  font-size: 10px;
}
.resources {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}
.resource {
  border: 1px solid #dae1d3;
  background: #eff3e8;
  border-radius: 7px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px 25px;
  color: #637e50;
}
.resource > span {
  font-size: 23px;
  line-height: 1;
}
.resource > strong {
  font: 26px var(--serif);
}
.resource small {
  position: absolute;
  bottom: 6px;
  left: 13px;
  font-size: 8px;
  opacity: 0.75;
}
.resource.brick {
  background: #f4e7df;
  color: #ac735a;
  border-color: #ead9cb;
}
.resource.wool {
  background: #f0f1df;
  color: #9aa06a;
  border-color: #e1e4c9;
}
.resource.grain {
  background: #f7eed7;
  color: #ad9452;
  border-color: #eadfbd;
}
.resource.ore {
  background: #e8efeb;
  color: #6e8987;
  border-color: #d6e2db;
}
.development-hand {
  font-size: 9px;
  color: #adb29f;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dev-card {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #f0ede3;
  border: 1px solid #ddd9c9;
  border-radius: 4px;
  color: #7f775e;
  font-size: 9px;
}
.action-bar {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.build-button {
  background: #fffdf6;
  border: 1px solid #dfe3d4;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 13px 5px;
  font-size: 9px;
  color: #6f8064;
}
.build-button.active {
  background: #e5ecda;
  border-color: #8fa278;
}
.action-bar > .primary,
.action-bar > .gold {
  font-size: 10px;
  padding: 10px 15px;
}
.game-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.players-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 15px 9px;
}
.players-panel .section-heading {
  margin-bottom: 16px;
  padding: 0 5px;
}
.players-panel .section-heading h3 {
  font-size: 12px;
}
.players-panel .section-heading > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #99a18e;
}
.player {
  border: 1px solid transparent;
  border-bottom-color: #eeeee4;
  border-radius: 7px;
  padding: 12px 10px;
  margin-bottom: 5px;
}
.player:last-child {
  border-bottom-color: transparent;
}
.player.current {
  background: #f1f3e8;
  border-color: #dae2cc;
}
.player-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.player-top .avatar {
  width: 30px;
  height: 30px;
  font-size: 16px;
}
.player-top > div {
  flex: 1;
  min-width: 0;
}
.player-top strong {
  font-size: 11px;
  display: block;
  overflow-wrap: anywhere;
}
.player-top strong small {
  font-weight: 400;
  font-size: 8px;
  color: #9ba38d;
  margin-left: 3px;
}
.player-top div > span {
  font-size: 8px;
  display: block;
  color: #98a18b;
  margin-top: 2px;
}
.player-top > b {
  font: 23px var(--serif);
  color: #5b7350;
}
.player-top > b small {
  font: 8px var(--sans);
  color: #b1b69f;
}
.player-stats {
  display: flex;
  gap: 19px;
  margin-left: 39px;
  margin-top: 9px;
  color: #8d9a80;
  font-size: 9px;
}
.player-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.activity-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 13px;
}
.tab-bar button {
  background: none;
  padding: 14px 13px;
  font-size: 10px;
  color: #9ba38e;
  position: relative;
}
.tab-bar button.active {
  color: #496641;
}
.tab-bar button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  background: #7d9564;
  left: 13px;
  right: 13px;
}
.tab-bar small {
  font-size: 8px;
  margin-left: 5px;
}
.activity-log {
  max-height: 310px;
  overflow-y: auto;
  padding: 8px 18px;
}
.activity-log > div {
  display: flex;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0e7;
  align-items: flex-start;
}
.activity-log p {
  font-size: 9px;
  flex: 1;
  line-height: 1.6;
  color: #87917c;
}
.activity-log small {
  font-size: 7px;
  color: #b2b8a4;
  margin-top: 3px;
}
.log-dot {
  width: 4px;
  height: 4px;
  background: #c2ccb0;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-panel .chat-messages {
  padding: 16px 15px;
  max-height: 260px;
}
.activity-panel .chat-messages p {
  font-size: 10px;
}
.activity-panel .chat-form {
  padding: 0 12px 12px;
  gap: 5px;
}
.activity-panel .chat-form input {
  font-size: 10px;
  padding: 9px;
}
.activity-panel .chat-form button {
  padding: 7px;
}
.bank {
  padding: 0 5px;
}
.bank strong {
  font-size: 8px;
  letter-spacing: 1px;
  color: #9aa58e;
}
.bank > div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8f9b80;
  margin-top: 10px;
}
.inline-alert,
.winner-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #f6eacb;
  border: 1px solid #e9d7a6;
  border-radius: 9px;
  margin-top: 18px;
  font-size: 12px;
}
.winner-banner {
  flex-wrap: wrap;
}
.winner-banner h2 {
  font: 24px var(--serif);
}
.winner-banner p {
  font-size: 11px;
}
.trade-offer {
  border: 1px solid #e0d2b0;
  background: #fbf4df;
  border-radius: 9px;
  padding: 18px;
}
.trade-offer .eyebrow {
  font-size: 8px;
  margin-bottom: 7px;
}
.trade-offer p {
  font-size: 11px;
  margin: 12px 0;
}
.trade-offer button {
  width: 100%;
  font-size: 10px;
}
.compact h1 {
  font-size: 39px;
}
.compact {
  margin-bottom: 35px;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 25px;
}
.stat-cards > div {
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
}
.stat-cards span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #94a080;
  display: block;
}
.stat-cards strong {
  font: 45px var(--serif);
  display: block;
  margin-top: 10px;
}
.stat-cards small {
  font-size: 25px;
  color: #91a082;
}
.history-row {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 12px;
}
.history-row > div {
  flex: 1;
}
.history-row small {
  display: block;
  color: #a2aa96;
  margin-top: 4px;
}
.history-row > span:last-child {
  color: #94a085;
  font-size: 10px;
}
.empty-message {
  font-size: 12px;
  padding: 22px 0;
}
.empty-page {
  text-align: center;
  padding: 100px 25px;
  min-height: 60vh;
}
.empty-page svg {
  color: #9eac8b;
}
.empty-page h1 {
  font-size: 37px;
  margin: 23px 0 13px;
}
.empty-page p {
  margin-bottom: 25px;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.rule-card {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.rule-card > span {
  font: 26px var(--serif);
  color: #c1b892;
}
.rule-card h2 {
  font: 25px var(--serif);
  margin: 12px 0;
}
.rule-card p {
  font-size: 12px;
}
.admin-table {
  overflow: auto;
}
.admin-table .section-heading input {
  max-width: 260px;
  font-size: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 9px;
  color: #97a186;
  letter-spacing: 0.7px;
  font-weight: 500;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #ecede3;
}
td small {
  display: block;
  font-size: 10px;
  color: #99a18c;
  margin-top: 4px;
}
td select {
  min-width: 120px;
  font-size: 11px;
  padding: 8px;
}
td .quiet {
  font-size: 10px !important;
  padding: 7px 13px !important;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.check-label input {
  margin: 0;
}
.audit-row {
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.audit-row small {
  color: #a8af9b;
  font-size: 9px;
  margin-left: 15px;
}
.muted {
  color: #a0aa95;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #172f2888;
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  background: #fffdf5;
  border: 1px solid #e0e3d2;
  box-shadow: 0 20px 100px #0a231b40;
  border-radius: 14px;
  padding: 28px;
  width: 460px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.modal.wide {
  width: 900px;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}
.modal-heading h2 {
  font: 26px var(--serif);
}
.modal-intro {
  font-size: 12px;
  margin-bottom: 20px;
}
.modal form > label:not(:first-child) {
  margin-top: 18px;
}
.auth-tabs {
  margin-bottom: 24px;
}
.auth-tabs button {
  flex: 1;
  font-size: 10px;
}
.modal .hint {
  text-align: center;
  margin-top: 20px;
}
.form-error {
  font-size: 12px;
  color: #b45d49;
  margin-top: 16px;
}
.form-error:empty {
  display: none;
}
.room-settings {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: #9aa586;
  justify-content: space-between;
  margin-top: 25px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.resource-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resource-choices label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0;
}
.resource-choices input {
  width: 85px;
  margin: 0;
}
.trade-modal-section + .trade-modal-section {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 25px;
}
.trade-modal-section p {
  font-size: 12px;
  margin-bottom: 16px;
}
.bank-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.bank-form label {
  flex: 1;
}
.bank-form > span {
  padding-bottom: 10px;
}
.bank-form select {
  font-size: 11px;
  padding: 10px;
}
.bank-form .primary {
  padding: 10px 14px;
}
.trade-inputs {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.trade-inputs > span {
  font-size: 9px;
  color: #9aa58d;
  margin-bottom: 4px;
}
.trade-inputs label {
  letter-spacing: 0;
  font-size: 12px;
}
.trade-inputs input {
  padding: 8px;
  font-size: 12px;
}
.monopoly-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #254e40;
  color: #faf6e8;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 24px #102e3025;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90vw;
  font-size: 12px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.in-game main {
  padding: 28px 30px 20px;
}
.in-game .topbar {
  height: 70px;
}
.in-game .sidebar {
  width: 205px;
  padding-left: 16px;
  padding-right: 16px;
}
.in-game .main-shell {
  margin-left: 205px;
}
.in-game .nav-caption {
  font-size: 8px;
}
.in-game footer {
  margin-top: 15px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 55px;
  }
  .hero-card {
    min-height: 390px;
  }
  .hero-copy {
    padding: 42px 0 42px 38px;
  }
  .hero-copy h2 {
    font-size: 46px;
  }
  .hero-copy p {
    font-size: 12px;
    max-width: 250px;
  }
  .join-card {
    padding: 34px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .board-container .island-board {
    max-height: 610px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding: 27px 14px;
  }
  .brand {
    font-size: 25px;
    gap: 7px;
  }
  .brand svg {
    width: 29px;
  }
  .nav-item {
    font-size: 11px;
    padding: 12px 10px;
  }
  .nav-caption {
    font-size: 8px;
    margin-left: 10px;
    letter-spacing: 1px;
  }
  .main-shell {
    margin-left: 190px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 30px 28px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(220px, 1fr);
    gap: 17px;
  }
  .hero-copy {
    padding-left: 24px;
  }
  .hero-copy h2 {
    font-size: 33px;
  }
  .hero-copy p {
    max-width: 180px;
    font-size: 10px;
  }
  .hero-board {
    width: 62%;
    right: -30px;
  }
  .hero-meta {
    gap: 12px;
    font-size: 9px;
  }
  .join-card {
    padding: 23px 19px;
  }
  .join-note {
    font-size: 7px;
  }
  .room-people {
    min-width: 70px;
  }
  .room-row {
    gap: 12px;
    padding: 17px;
  }
  .in-game .sidebar {
    width: 175px;
  }
  .in-game .main-shell {
    margin-left: 175px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
  }
  .in-game main {
    padding: 25px 22px;
  }
  .action-bar {
    gap: 4px;
  }
  .build-button {
    flex-direction: column;
    font-size: 8px;
  }
  .action-bar > .primary,
  .action-bar > .gold {
    padding: 10px;
    font-size: 9px;
  }
  .player-stats {
    gap: 13px;
  }
  .resource {
    padding: 10px 9px 24px;
  }
  .resource small {
    left: 9px;
  }
  .player-top strong {
    font-size: 10px;
  }
  .game-heading h2 {
    font-size: 22px;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 78px;
    padding: 25px 10px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand > span,
  .nav-caption,
  .nav-item:not(.selected) .nav-dot {
    display: none;
  }
  .brand svg {
    width: 35px;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 15px 0;
    gap: 0;
  }
  .nav-item svg {
    width: 22px;
    height: 22px;
  }
  .nav-dot {
    display: none;
  }
  .base-note {
    display: none;
  }
  .user-profile {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .user-profile > div,
  .sidebar-bottom > .text-button {
    display: none;
  }
  .main-shell {
    margin-left: 78px;
  }
  .in-game .sidebar {
    width: 78px;
    padding: 25px 10px;
  }
  .in-game .main-shell {
    margin-left: 78px;
  }
  .in-game .nav-caption {
    display: none;
  }
  .hero-card {
    min-height: 340px;
  }
  .hero-board {
    right: -33px;
  }
  .heading-art {
    margin-right: 10px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .game-heading h2 {
    font-size: 20px;
  }
  .game-heading .quiet {
    font-size: 9px;
    padding: 8px;
  }
  .topbar {
    height: 72px;
  }
  .ready-actions {
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 22px;
    height: 65px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .breadcrumb > span {
    margin: 0 7px;
  }
  .top-actions .connection {
    display: none;
  }
  .top-actions .quiet {
    font-size: 9px;
    padding: 7px 10px;
  }
  main {
    padding: 25px 22px;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  h1 {
    font-size: 39px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .heading-art {
    display: none;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    min-height: 340px;
  }
  .hero-copy {
    width: 50%;
    padding: 28px;
  }
  .hero-copy h2 {
    font-size: 37px;
  }
  .hero-copy p {
    font-size: 11px;
    max-width: 210px;
  }
  .hero-board {
    width: 58%;
    right: -10px;
  }
  .join-card {
    display: block;
    padding: 22px;
  }
  .join-card .round-icon {
    float: left;
    margin-right: 15px;
    margin-bottom: 8px;
  }
  .join-card h2 {
    font-size: 25px;
  }
  .join-card > p {
    margin-top: 5px;
  }
  .join-card form {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    clear: both;
  }
  .join-card label {
    grid-column: 1/-1;
  }
  .join-card input {
    margin: 0;
  }
  .join-card .secondary {
    margin: 0;
    width: auto;
  }
  .join-note {
    margin-top: 13px;
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .segmented button {
    font-size: 8px;
    padding: 7px 9px;
  }
  .room-people {
    display: none;
  }
  .room-row {
    gap: 11px;
    padding: 15px;
  }
  .room-name strong {
    font-size: 11px;
  }
  .status {
    font-size: 8px;
    min-width: 70px;
  }
  .room-row > .quiet {
    font-size: 9px;
  }
  .feature-strip {
    gap: 14px;
  }
  .feature-strip > div {
    align-items: flex-start;
    gap: 8px;
  }
  .feature-strip > div > span {
    font-size: 19px;
    padding-right: 8px;
  }
  .feature-strip strong {
    font-size: 9px;
  }
  .feature-strip p {
    font-size: 8px;
  }
  footer {
    margin: 10px 22px 0;
    display: block;
    line-height: 2;
    font-size: 7px;
  }
  footer > span {
    display: block;
  }
  .waiting-grid {
    grid-template-columns: 1fr;
  }
  .waiting-island {
    order: -1;
    padding: 20px;
  }
  .waiting-island .island-board {
    max-height: 270px;
  }
  .ready-actions {
    flex-direction: row;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .game-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .game-aside .bank {
    grid-column: 1/-1;
  }
  .activity-log {
    max-height: 360px;
  }
  .game-heading {
    align-items: flex-start;
  }
  .game-heading h2 {
    font-size: 21px;
    max-width: 350px;
  }
  .board-container .island-board {
    max-height: 490px;
  }
  .game-heading > div:last-child .quiet {
    font-size: 0;
    padding: 8px;
  }
  .game-heading .eyebrow {
    font-size: 8px;
  }
  .build-button {
    flex-direction: row;
  }
  .player-top strong {
    font-size: 10px;
  }
  .game-table .action-bar {
    gap: 6px;
  }
  .action-bar > .primary,
  .action-bar > .gold {
    padding: 10px 14px;
  }
  .stat-cards {
    gap: 10px;
  }
  .stat-cards > div {
    padding: 18px;
  }
  .stat-cards span {
    font-size: 8px;
  }
  .stat-cards strong {
    font-size: 34px;
  }
  .compact h1 {
    font-size: 33px;
  }
  .rules-grid {
    gap: 12px;
  }
  .rule-card {
    padding: 20px;
  }
  .rule-card h2 {
    font-size: 22px;
  }
  .rule-card p {
    font-size: 11px;
  }
}
@media (max-width: 520px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 61px;
    flex-direction: row;
    align-items: center;
    padding: 10px 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
  .brand > span {
    display: inline;
    font-size: 23px;
  }
  .brand svg {
    width: 27px;
    height: 27px;
  }
  .sidebar nav {
    margin: 0 0 0 auto;
    flex-direction: row;
    gap: 4px;
  }
  .nav-item {
    padding: 8px;
  }
  .nav-item svg {
    width: 18px;
    height: 18px;
  }
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav .nav-item:nth-child(2) {
    display: none;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 18px;
  }
  .top-actions .quiet {
    padding: 5px 9px;
  }
  .breadcrumb {
    font-size: 8px;
  }
  main {
    padding: 26px 18px 14px;
  }
  h1 {
    font-size: 39px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .hero-card {
    min-height: 326px;
  }
  .hero-copy {
    padding: 25px 0 30px 23px;
    width: 54%;
  }
  .hero-copy h2 {
    font-size: 34px;
  }
  .hero-copy p {
    font-size: 10px;
    max-width: 170px;
  }
  .hero-meta {
    font-size: 8px;
    gap: 10px;
  }
  .hero-copy .gold {
    font-size: 10px;
    padding: 11px 13px;
  }
  .hero-board {
    width: 65%;
    right: -48px;
    top: 49%;
    opacity: 0.9;
  }
  .hero-coordinate {
    font-size: 5px;
    right: 17px;
  }
  .join-card {
    padding: 20px;
  }
  .join-card > p {
    font-size: 10px;
  }
  .rooms-section {
    margin-top: 28px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 9px;
    max-width: 200px;
  }
  .count-badge {
    width: 17px;
    height: 17px;
    font-size: 8px;
    margin-left: 4px;
  }
  .segmented button {
    font-size: 7px;
    padding: 6px 8px;
  }
  .room-emblem {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }
  .room-name small {
    font-size: 8px;
  }
  .room-name strong {
    font-size: 10px;
  }
  .room-row .status {
    display: none;
  }
  .room-row > .quiet {
    font-size: 8px;
    padding: 7px 9px;
  }
  .feature-strip {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 5px 0 10px;
  }
  .feature-strip strong {
    font-size: 10px;
  }
  .feature-strip p {
    font-size: 9px;
  }
  .feature-strip > div {
    gap: 13px;
    align-items: center;
  }
  .feature-strip > div > span {
    font-size: 25px;
    padding-right: 15px;
  }
  .in-game .sidebar {
    width: 100%;
    padding: 10px 17px;
  }
  .in-game .main-shell {
    margin: 0;
  }
  .in-game .topbar {
    height: 48px;
  }
  .in-game main {
    padding: 22px 13px 15px;
  }
  .game-heading h2 {
    font-size: 19px;
    max-width: 270px;
  }
  .game-heading .eyebrow {
    font-size: 7px;
  }
  .game-heading > div:last-child {
    gap: 0;
  }
  .game-heading .icon-button {
    padding: 7px 4px;
  }
  .board-topline {
    padding: 13px;
  }
  .board-topline > span:last-child {
    font-size: 8px;
  }
  .board-container {
    padding: 0 2px;
  }
  .board-status {
    font-size: 9px;
    padding: 10px 15px 15px;
  }
  .hand-bar {
    padding: 14px;
  }
  .resources {
    gap: 6px;
  }
  .resource {
    padding: 10px 8px 24px;
  }
  .resource > strong {
    font-size: 23px;
  }
  .resource > span {
    font-size: 18px;
  }
  .resource small {
    font-size: 7px;
    left: 8px;
  }
  .action-bar {
    flex-wrap: wrap;
  }
  .build-button {
    flex: 1 1 14%;
    padding: 10px 4px;
    flex-direction: column;
  }
  .action-bar > .primary,
  .action-bar > .gold {
    flex-basis: 100%;
    padding: 12px;
  }
  .game-aside {
    grid-template-columns: 1fr;
  }
  .players-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 15px 10px;
  }
  .players-panel .section-heading {
    grid-column: 1/-1;
    margin-bottom: 5px;
  }
  .player {
    margin: 0;
    padding: 10px 7px;
  }
  .player-top {
    gap: 6px;
  }
  .player-top strong {
    font-size: 9px;
  }
  .player-top > div > span {
    font-size: 7px;
  }
  .player-top > b {
    font-size: 20px;
  }
  .player-stats {
    margin-left: 0;
    justify-content: space-around;
    gap: 7px;
  }
  .activity-log {
    max-height: 210px;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .stat-cards {
    gap: 8px;
  }
  .stat-cards > div {
    padding: 15px;
  }
  .stat-cards span {
    font-size: 6px;
  }
  .stat-cards strong {
    font-size: 31px;
  }
  .compact h1 {
    font-size: 32px;
  }
  .modal-backdrop {
    padding: 15px;
  }
  .modal {
    padding: 24px 20px;
  }
  .modal-heading h2 {
    font-size: 23px;
  }
  .bank-form {
    gap: 7px;
  }
  .bank-form .primary {
    padding: 10px;
    font-size: 10px;
  }
  .panel {
    padding: 20px;
  }
  .waiting-island {
    padding: 20px 15px;
  }
  .section-heading > h1 {
    font-size: 35px;
  }
  .invite-box {
    padding: 12px;
  }
  .ready-actions {
    flex-direction: column;
  }
  .empty-page {
    padding: 70px 15px;
  }
  .empty-page h1 {
    font-size: 30px;
  }
  .history-row {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (min-width: 761px) {
  .in-game .board-container .island-board {
    max-height: clamp(280px, calc(100dvh - 520px), 520px);
  }
}
