@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");
:root {
  --ink: #183e42;
  --muted: #71807c;
  --paper: #f5f2e9;
  --line: #dedfd3;
  --gold: #d4a657;
  --green: #39715a;
  --white: #fffefa;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  background: #e9ede2;
  border-color: #b3c4b3;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d5a14d;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.primary:hover:not(:disabled) {
  background: #2d5a53;
  color: white;
}
.large {
  font-size: 16px;
  padding: 16px 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.outline {
  background: transparent;
  border-color: #aebdb2;
}
.quiet {
  border: 0;
  background: transparent;
  padding: 6px;
}
.muted,
.fine {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #658073;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: 44px;
  letter-spacing: -1px;
}
h2 {
  font-size: 28px;
  line-height: 1.15;
}
h3 {
  font-size: 15px;
}
header {
  height: 94px;
  max-width: 1512px;
  padding: 0 4%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font:
    29px "Libre Caslon Display",
    Georgia,
    serif;
  white-space: nowrap;
}
.brand em {
  color: #a78042;
  font-size: 24px;
}
.brand small {
  font:
    8px "DM Sans",
    sans-serif;
  letter-spacing: 3.2px;
  display: block;
  margin-top: 5px;
}
.brand-mark {
  width: 42px;
  height: 45px;
  background: var(--ink);
  color: #e4c58b;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 3px 3px;
  font-size: 31px;
}
nav {
  display: flex;
  gap: 12px;
}
nav button:not(.outline) {
  background: transparent;
  border: 0;
}
footer {
  max-width: 1400px;
  margin: 35px auto;
  padding: 20px 30px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 18px;
}
.welcome {
  min-height: 690px;
  max-width: 1200px;
  padding: 65px 40px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.welcome-copy h1 {
  font-size: 61px;
  line-height: 1.02;
  margin: 15px 0 20px;
}
.welcome-copy > p {
  line-height: 1.7;
  color: #67766e;
  font-size: 14px;
  max-width: 420px;
}
.welcome-copy .fine {
  margin-top: 18px;
}
.welcome-art {
  height: 530px;
  background: #dce5d7;
  border-radius: 220px 220px 5px 5px;
  position: relative;
  overflow: hidden;
  border: 12px solid #e8eade;
  box-shadow: 0 0 0 1px #d6dccc;
}
.sun {
  position: absolute;
  top: 70px;
  left: 60%;
  width: 90px;
  height: 90px;
  background: #dfbc77;
  border-radius: 50%;
}
.fort {
  position: absolute;
  bottom: 135px;
  left: 12%;
  width: 76%;
  height: 170px;
  background: #9aab88;
  border: 4px solid #344f43;
  clip-path: polygon(
    0 0,
    18% 0,
    18% 17%,
    40% 17%,
    40% 0,
    60% 0,
    60% 17%,
    82% 17%,
    82% 0,
    100% 0,
    100% 100%,
    0 100%
  );
}
.fort:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 40%;
  width: 22%;
  height: 75px;
  background: #344f43;
  border-radius: 50px 50px 0 0;
}
.fort i {
  position: absolute;
  top: 65px;
  width: 12px;
  height: 35px;
  background: #344f43;
  border-radius: 10px 10px 0 0;
}
.fort i:nth-child(1) {
  left: 15%;
}
.fort i:nth-child(2) {
  left: 48%;
}
.fort i:nth-child(3) {
  right: 15%;
}
.waves {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 160px;
  background: #386d68;
  color: #aac0aa;
  border-radius: 50% 50% 0 0;
  text-align: center;
  font-size: 100px;
  letter-spacing: -10px;
}
.compass {
  position: absolute;
  left: 26px;
  top: 30px;
  font-size: 70px;
  color: #6c8e78;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
form label,
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 15px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #cdd4c7;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  margin-top: 6px;
}
details {
  margin: 14px 0;
  font-size: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.game {
  max-width: 1512px;
  margin: auto;
  padding: 32px 4%;
}
.voyage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.voyage-heading h1 {
  margin-top: 7px;
}
.round-pill {
  background: #e6ebdf;
  border: 1px solid #d0dac9;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  min-width: 160px;
}
.round-pill b {
  font-size: 24px;
  margin-left: 8px;
}
.round-pill span {
  display: block;
  font-size: 10px;
  color: #607467;
  letter-spacing: 1px;
}
.scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}
.player {
  padding: 14px 16px;
  background: #eeeee4;
  border: 1px solid #d9ded0;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 38px 1fr 42px;
  gap: 10px;
  align-items: center;
}
.player.active {
  border-color: #789b78;
  background: #e5ecde;
  box-shadow: inset 0 3px 0 #6e916c;
}
.avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e9e6cd;
  background: #3d6654;
  font-family: Georgia, serif;
}
.a1 {
  background: #b1854f;
}
.a2 {
  background: #5a7e91;
}
.a3 {
  background: #8b7697;
}
.player-name strong {
  font-size: 13px;
  display: block;
}
.player-name small {
  font-size: 10px;
  color: #728273;
  display: block;
  margin-top: 5px;
}
.score {
  text-align: right;
}
.score b {
  font-size: 25px;
  font-weight: 500;
}
.score small {
  font-size: 7px;
  letter-spacing: 1px;
  display: block;
}
.player-detail {
  grid-column: 1/-1;
  font-size: 10px;
  color: #73816e;
  border-top: 1px solid #d6dece;
  padding-top: 8px;
}
.player-detail span {
  padding: 0 7px;
}
.supply-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.supply-bar > div:first-child small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.supply-item {
  display: flex;
  gap: 9px;
  align-items: center;
}
.pile-icon {
  width: 32px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #efeee3;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #d9d9c9;
  font-size: 21px;
}
.supply-item strong {
  font-size: 20px;
  font-weight: 500;
}
.supply-item small {
  font-size: 9px;
  display: block;
}
.table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}
.board {
  min-width: 0;
}
.board-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  overflow: auto;
}
.board-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.board-tabs .chosen {
  background: #e2e8da;
  color: var(--ink);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title .eyebrow {
  margin-bottom: 5px;
}
.section-title .muted {
  font-size: 10px;
}
.board > section {
  margin-bottom: 30px;
}
.market {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.building-card {
  text-align: left;
  border-radius: 7px;
  background: #fffdf6;
  border: 1px solid #dcdccf;
  padding: 0;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 0 #e5e5d9;
}
.building-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-color);
  color: white;
  padding: 8px 9px;
  font-size: 8px;
  letter-spacing: 0.8px;
}
.building-card .card-top strong {
  font-size: 9px;
  letter-spacing: 0;
}
.harvest {
  --card-color: #668761;
}
.build {
  --card-color: #bb8451;
}
.ship {
  --card-color: #547d94;
}
.explore {
  --card-color: #8c7b9e;
}
.always {
  --card-color: #78817b;
}
.building-card h3 {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 10px 8px;
  line-height: 1.25;
  min-height: 57px;
}
.building-card p {
  font-size: 10px;
  line-height: 1.6;
  color: #6e796c;
  padding: 0 10px 14px;
  flex: 1;
  min-height: 75px;
}
.card-bottom {
  border-top: 1px solid #eae9dd;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #7b8879;
  min-height: 47px;
}
.cost {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.resource {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  white-space: nowrap;
  border-radius: 5px;
  background: #f0f0e6;
  padding: 5px 7px;
}
.resource > span:first-child {
  font-size: 15px;
}
.cost .resource {
  padding: 2px 3px;
  font-size: 9px;
  gap: 2px;
}
.cost .resource > span:last-child {
  display: none;
}
.cost .resource > span:first-child {
  font-size: 11px;
}
.timber {
  color: #637449;
}
.fish {
  color: #548397;
}
.sugar {
  color: #bd8e76;
}
.stone {
  color: #858781;
}
.gold {
  color: #b58b32;
}
.buy-indicator {
  font-size: 8px;
}
.building-card.selected {
  outline: 2px solid #b48b4c;
  outline-offset: 2px;
}
.islands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.island {
  border: 1px solid #d5ddce;
  background: #edf0e5;
  border-radius: 9px;
  padding: 13px;
  align-self: start;
}
.island-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.island-symbol {
  font-size: 29px;
  color: #6b8a6f;
}
.island-head h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}
.island-head small {
  font-size: 9px;
  color: #829077;
}
.island-effect {
  font-size: 10px;
  line-height: 1.5;
  color: #76826d;
  margin-top: 7px;
}
.island-buildings {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}
.island-buildings .building-card h3 {
  min-height: 0;
  padding: 8px 9px 4px;
  font-size: 14px;
}
.island-buildings .building-card p {
  min-height: 0;
  padding: 0 9px 8px;
}
.island-buildings .card-top {
  padding: 5px 9px;
}
.island-buildings .card-bottom {
  display: none;
}
.building-card.damaged {
  opacity: 0.65;
  border: 2px dashed #b77561;
}
.building-card.damaged h3:after {
  content: " · DAMAGED";
  font: 8px sans-serif;
  color: #aa5948;
}
.empty-island {
  padding: 30px 12px;
  text-align: center;
  border: 1px dashed #cad4c1;
  border-radius: 6px;
  color: #8b9981;
  font-size: 12px;
  line-height: 1.8;
}
.price-tracks {
  background: #eeeee4;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px;
  font-size: 12px;
}
.price-row > span {
  min-width: 80px;
}
.price-row > div {
  display: flex;
  gap: 6px;
  flex: 1;
}
.price {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #dadfcf;
  border-radius: 4px;
  background: #faf9f1;
  font-size: 11px;
  color: #839079;
}
.price.next {
  border-color: #9fae90;
  background: #e0e7d3;
  font-weight: bold;
  color: #345c44;
}
.price.occupied {
  background: #718b77;
  color: #dae3d7;
  border-color: #718b77;
}
.log ol {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 310px;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.log li {
  font-size: 11px;
  padding: 10px 5px;
  border-bottom: 1px solid #e5e5d9;
  line-height: 1.5;
  color: #68796b;
}
.log li > span {
  font-size: 9px;
  margin-right: 10px;
  color: #9aa18f;
}
.hand {
  padding: 18px;
  background: #e5eadd;
  border: 1px solid #d0dac8;
  border-radius: 9px;
  margin-bottom: 16px;
}
.hand h2 {
  font-size: 24px;
}
.hand .section-title small {
  font-size: 10px;
  color: #7c8a72;
}
.hand-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hand-resources .resource {
  background: #f8f8ed;
  padding: 7px 8px;
}
.hand .fine {
  margin-top: 12px;
  font-size: 10px;
}
.pirate-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.pirate-hand button {
  font-size: 10px;
  padding: 6px 8px;
  background: #edf0e6;
}
.controls {
  background: var(--white);
  border: 1px solid #d7dcce;
  border-radius: 9px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 5px 16px #26402b05;
}
.controls h2 {
  margin-top: 9px;
  margin-bottom: 12px;
}
.controls p {
  font-size: 12px;
  line-height: 1.7;
  color: #76816f;
  margin-bottom: 16px;
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.action-button {
  padding: 14px 8px;
  font-weight: 600;
  border-left: 3px solid var(--card-color);
  background: #f7f7ef;
}
.secondary-actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.secondary-actions button {
  font-size: 11px;
  padding: 7px 9px;
}
.controls > .quiet {
  display: block;
  margin: 10px auto 0;
  color: #939c8b;
  font-size: 10px;
}
.decision-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.decision-options button {
  text-align: left;
}
.selected-building {
  padding: 13px;
  border-radius: 7px;
  background: #f1f2e8;
  margin-bottom: 12px;
}
.selected-building h3 {
  font:
    19px Georgia,
    serif;
}
.selected-building select {
  font-size: 11px;
}
.selected-building button {
  width: 100%;
}
.notice {
  background: #eee8d8;
  padding: 10px;
}
.goals {
  border: 1px solid var(--line);
  padding: 19px;
  border-radius: 8px;
}
.goals h2 {
  font-size: 24px;
  margin: 6px 0 16px;
}
.public-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.public-goal > span {
  font-size: 25px;
  color: #b19758;
}
.public-goal > div {
  flex: 1;
}
.public-goal strong {
  font-size: 12px;
  display: block;
}
.public-goal small {
  font-size: 10px;
  color: #829078;
  display: block;
  margin-top: 4px;
}
.public-goal > b {
  font-size: 16px;
  color: #ad904c;
  font-weight: 500;
}
.secret-goal {
  background: #e9e8df;
  padding: 11px;
  margin: 7px 0;
  border-radius: 6px;
}
.secret-goal strong {
  font-size: 11px;
}
.secret-goal strong span {
  float: right;
  color: #a78c4d;
}
.secret-goal p {
  font-size: 10px;
  line-height: 1.5;
  margin-top: 5px;
  color: #7e8375;
}
.save-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #8a9681;
  padding: 12px 0;
}
.save-line button {
  font-size: 10px;
  padding: 5px 8px;
}
.bot-turn {
  text-align: center;
}
.thinking {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 20px;
}
.thinking i {
  width: 6px;
  height: 6px;
  background: #749273;
  border-radius: 50%;
  animation: pulse 1s infinite;
}
.thinking i:nth-child(2) {
  animation-delay: 0.2s;
}
.thinking i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
    transform: translateY(-3px);
  }
}
.result-line {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 12px;
}
.finish-panel > small {
  font-size: 10px;
  color: #8c9583;
}
.finish-panel > button {
  display: block;
  margin-top: 15px;
  width: 100%;
}
.explore-option {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
}
.explore-option h3 small {
  font-size: 9px;
  font-weight: 400;
  float: right;
}
.explore-option select {
  font-size: 11px;
}
.explore-option button {
  margin-top: 10px;
  width: 100%;
}
.surveyor {
  max-width: 200px;
  margin-top: 16px;
  font-size: 11px;
}
.surveyor .building-card {
  margin-top: 8px;
  width: 100%;
}
dialog {
  border: 1px solid #cdd6c5;
  border-radius: 12px;
  padding: 26px;
  max-width: 620px;
  width: calc(100% - 30px);
  max-height: 85vh;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 80px #153b3540;
}
dialog::backdrop {
  background: #123a3b80;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.modal-heading button {
  font-size: 22px;
  padding: 0 8px;
  border: 0;
  background: none;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow: auto;
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
  margin: 12px 0;
  color: #6f7b69;
}
.rules ol {
  font-size: 13px;
  line-height: 1.8;
  padding-left: 22px;
}
.rules li {
  margin: 10px 0;
}
.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.error {
  color: #ad523f !important;
}
.loading {
  padding: 80px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .market {
    gap: 12px;
  }
  .building-card h3 {
    font-size: 17px;
  }
  .building-card p {
    font-size: 11px;
  }
  .table-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}
@media (max-width: 1100px) {
  .table-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }
  .market {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .game {
    padding: 25px 3%;
  }
  .supply-bar {
    flex-wrap: wrap;
  }
  .supply-bar > div:first-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .controls {
    padding: 16px;
  }
  .welcome {
    gap: 40px;
  }
  .welcome-copy h1 {
    font-size: 49px;
  }
}
@media (max-width: 760px) {
  header {
    height: 80px;
    padding: 0 18px;
  }
  .brand {
    font-size: 23px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .brand-mark {
    width: 32px;
    height: 36px;
    font-size: 24px;
  }
  nav {
    gap: 4px;
  }
  nav button {
    font-size: 10px;
    padding: 7px;
  }
  nav button[data-ui="feedback"] {
    display: none;
  }
  .game {
    padding: 24px 16px;
  }
  .voyage-heading h1 {
    font-size: 31px;
  }
  .voyage-heading .eyebrow {
    font-size: 8px;
  }
  .round-pill {
    min-width: 105px;
    padding: 9px;
    font-size: 10px;
  }
  .round-pill b {
    font-size: 20px;
  }
  .round-pill span {
    font-size: 8px;
  }
  .scoreboard {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }
  .player {
    padding: 10px;
    grid-template-columns: 24px 1fr 30px;
    gap: 6px;
  }
  .avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .player-name strong {
    font-size: 10px;
  }
  .player-name small {
    font-size: 8px;
  }
  .score b {
    font-size: 20px;
  }
  .player-detail {
    font-size: 8px;
    line-height: 1.6;
  }
  .player-detail span {
    padding: 0 3px;
  }
  .table-layout {
    display: flex;
    flex-direction: column;
  }
  .table-layout aside {
    display: contents;
  }
  .hand {
    order: -3;
    margin-bottom: 0;
  }
  .controls {
    order: -2;
    margin-bottom: 0;
  }
  .board {
    order: 0;
  }
  .goals {
    order: 1;
  }
  .save-line {
    order: 2;
  }
  .supply-bar {
    padding: 12px;
    gap: 8px;
    margin-bottom: 18px;
  }
  .pile-icon {
    width: 24px;
    height: 29px;
    font-size: 16px;
  }
  .supply-item {
    gap: 5px;
  }
  .supply-item strong {
    font-size: 17px;
  }
  .supply-item small {
    font-size: 8px;
  }
  .supply-bar > div:first-child small {
    font-size: 8px;
  }
  .supply-bar .eyebrow {
    font-size: 8px;
  }
  .section-title h2 {
    font-size: 26px;
  }
  .section-title .muted {
    max-width: 110px;
    text-align: right;
  }
  .market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market .building-card:last-child {
    grid-column: auto;
  }
  .building-card p {
    min-height: 55px;
  }
  .islands {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .price-row {
    gap: 6px;
  }
  .price-row > span {
    min-width: 65px;
    font-size: 10px;
  }
  .price-row > div {
    gap: 3px;
  }
  .price {
    width: 22px;
    height: 24px;
    font-size: 10px;
  }
  .welcome {
    display: block;
    padding: 35px 24px;
  }
  .welcome-art {
    display: none;
  }
  .welcome-copy {
    max-width: 440px;
    margin: auto;
  }
  .welcome-copy h1 {
    font-size: 49px;
  }
  .welcome-copy > p {
    font-size: 14px;
  }
  .hand .section-title {
    margin-bottom: 9px;
  }
  .hand-resources .resource {
    padding: 6px;
    font-size: 10px;
  }
  .hand {
    padding: 15px;
  }
  .action-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .action-button {
    font-size: 11px;
    padding: 12px 3px;
  }
  .controls h2 {
    font-size: 28px;
  }
  .controls p {
    margin-bottom: 12px;
  }
  .board-tabs {
    margin-top: 6px;
  }
  .form-row {
    gap: 10px;
  }
  footer {
    font-size: 9px;
    padding: 20px 15px;
    gap: 10px;
  }
  .price-tracks {
    padding: 10px 5px;
  }
  .rule-grid {
    grid-template-columns: 1fr;
  }
  .decision-options {
    max-height: 400px;
    overflow: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.reveal-hand {
  background: #eee6d5;
  border: 1px solid #d8c69f;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.reveal-hand > strong {
  font-size: 12px;
}
.reveal-hand > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
