:root   {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#ebf0e9;
  background:#102d32;
  font-synthesis:none;
  --gold:#e7bc75;
  --muted:#9bb1b0;
  --line:#ffffff17;
  --panel:#16383c;
  --ink:#102d32;
  --red:#f28e82
}
*   {
  box-sizing:border-box
}
body   {
  margin:0;
  min-width:330px
}
button,input,select,textarea   {
  font:inherit
}
button,a,input,select   {
  touch-action:manipulation
}
button   {
  cursor:pointer;
  border:1px solid var(--line);
  background:#ffffff08;
  color:inherit;
  border-radius:9px;
  padding:11px 16px;
  transition:background .15s,transform .15s
}
button:hover   {
  background:#ffffff14
}
button:active   {
  transform:translateY(1px)
}
button:disabled   {
  opacity:.38;
  cursor:not-allowed
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible   {
  outline:3px solid #efc988;
  outline-offset:3px
}
button.primary   {
  background:var(--gold);
  color:#26322c;
  border-color:var(--gold);
  font-weight:750
}
button.primary:hover   {
  background:#f4cf95
}
button.danger   {
  color:var(--red)
}
button.small   {
  padding:7px 10px;
  font-size:12px
}
button.ghost   {
  background:transparent;
  border-color:transparent
}
a   {
  color:var(--gold)
}
h1,h2,h3,p   {
  margin:0
}
h1,h2,.serif   {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400
}
h1   {
  font-size:clamp(42px,5.8vw,78px);
  line-height:1.07;
  letter-spacing:-2px
}
h2   {
  font-size:32px
}
h3   {
  font-size:15px
}
p   {
  line-height:1.65
}
small,.muted   {
  color:var(--muted)
}
small   {
  font-size:12px
}
.eyebrow   {
  text-transform:uppercase;
  letter-spacing:2.4px;
  font-size:11px;
  font-weight:750;
  color:var(--gold)
}
.brand   {
  display:flex;
  gap:11px;
  align-items:center;
  font-family:Georgia,serif;
  font-size:25px;
  letter-spacing:.2px
}
.brand svg   {
  width:35px;
  height:35px
}
.topbar   {
  height:80px;
  padding:0 4%;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.topright   {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:13px
}
.dot   {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#86cbb5;
  display:inline-block;
  margin-right:7px
}
.dot.offline   {
  background:var(--red)
}
.shell   {
  max-width:1440px;
  margin:auto
}
.home   {
  padding:65px 5% 45px
}
.hero   {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center
}
.hero-copy>p   {
  max-width:440px;
  margin-top:22px;
  color:#b8c9c6;
  font-size:16px
}
.hero h1   {
  margin-top:20px
}
.hero h1 em   {
  color:var(--gold);
  font-weight:400
}
.hero .tags   {
  margin-top:30px
}
.tags   {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.tag   {
  border:1px solid var(--line);
  border-radius:30px;
  padding:7px 12px;
  font-size:11px;
  color:#c4d4cf
}
.hero-art   {
  position:relative;
  min-height:390px;
  border-radius:50%;
  background:radial-gradient(ellipse,#2a5556 0,transparent 68%)
}
.hero-art svg   {
  width:100%;
  height:390px;
  filter:drop-shadow(0 25px 22px #0004)
}
.art-caption   {
  position:absolute;
  bottom:20px;
  left:0;
  right:0;
  text-align:center;
  font-size:10px;
  letter-spacing:3px;
  color:#9eb5ae
}
.entry-grid   {
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:24px;
  margin-top:50px
}
.panel   {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:15px;
  padding:25px
}
.panel.light   {
  background:#f1eee3;
  color:var(--ink)
}
.panel.light small,.panel.light .muted   {
  color:#637576
}
.panel.light input,.panel.light select   {
  background:#fff9;
  border-color:#16383c27;
  color:var(--ink)
}
.panel.light button:not(.primary)   {
  color:var(--ink);
  border-color:#16383c25
}
.panel-title   {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:21px
}
.panel-title h2   {
  font-size:27px
}
.panel-title .step   {
  border:1px solid currentColor;
  border-radius:50%;
  padding:5px 8px;
  font-size:11px;
  opacity:.4
}
label   {
  font-size:12px;
  color:inherit;
  display:block;
  margin-bottom:7px
}
input,select,textarea   {
  width:100%;
  border:1px solid #ffffff23;
  background:#0b292e;
  color:#ebf0e9;
  padding:11px 12px;
  border-radius:8px;
  min-height:43px
}
input[type=checkbox]   {
  width:17px;
  min-height:17px;
  accent-color:var(--gold);
  flex-shrink:0
}
input[type=number]   {
  appearance:textfield
}
input::placeholder   {
  color:#79918e
}
.fields   {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px
}
.field   {
  margin-bottom:16px
}
.expansion   {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #16383c24;
  border-radius:8px;
  padding:12px;
  margin:9px 0;
  font-size:13px
}
.expansion span   {
  flex:1
}
.expansion small   {
  display:block;
  font-size:10px;
  margin-top:4px
}
.expansion b   {
  font-size:13px;
  font-weight:650
}
.wide   {
  width:100%
}
.footer   {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  margin-top:50px;
  padding-top:25px;
  font-size:11px;
  color:var(--muted)
}
.saved   {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px
}
.saved button   {
  font-size:12px
}
.notice   {
  font-size:12px;
  line-height:1.6;
  padding:12px 14px;
  background:#e7bc7510;
  border:1px solid #e7bc7533;
  border-radius:9px;
  color:#e5cca3;
  margin-top:15px
}
.light .notice   {
  color:#655137
}
.lobby   {
  padding:45px 5%
}
.lobby-head   {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:30px;
  gap:20px
}
.room-code   {
  font-size:24px;
  letter-spacing:4px;
  font-weight:700;
  color:var(--gold)
}
.lobby-grid   {
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:25px
}
.seat   {
  display:flex;
  align-items:center;
  gap:12px;
  padding:17px 0;
  border-bottom:1px solid var(--line)
}
.avatar   {
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  width:36px;
  height:36px;
  color:#152e31;
  font-weight:800;
  flex-shrink:0
}
.seat .name   {
  flex:1;
  font-size:14px
}
.seat .name small   {
  display:block;
  margin-top:4px
}
.badge   {
  font-size:10px;
  padding:5px 8px;
  border-radius:5px;
  background:#ffffff0b;
  color:#b1c6be
}
.badge.ready   {
  background:#7cc8ac22;
  color:#a4d9c2
}
.lobby-actions   {
  display:flex;
  gap:12px;
  margin-top:23px
}
.rules-list   {
  margin-top:18px;
  display:grid;
  gap:16px
}
.rules-list div   {
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:13px
}
.game-header   {
  height:64px;
  padding:0 25px
}
.game-header .brand   {
  font-size:22px
}
.game   {
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  min-height:calc(100vh - 64px)
}
.table   {
  position:relative;
  min-width:0;
  background:radial-gradient(ellipse at 45% 40%,#275156,#15383e 70%);
  display:flex;
  flex-direction:column
}
.table-top   {
  padding:18px 23px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between
}
.turn-title   {
  font-family:Georgia,serif;
  font-size:24px
}
.turn-sub   {
  font-size:12px;
  color:#a8c0b8;
  margin-top:4px
}
.turn-actions   {
  display:flex;
  gap:8px
}
.dice   {
  display:flex;
  gap:6px;
  align-items:center
}
.die   {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:32px;
  height:32px;
  border-radius:7px;
  background:#eeeade;
  color:#27433e;
  font-size:22px;
  box-shadow:0 3px 0 #0002
}
.die.red   {
  color:#a34437;
  background:#ecc5b3
}
.board-wrap   {
  position:relative;
  flex:1;
  min-height:350px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center
}
.board-wrap svg   {
  width:100%;
  height:100%;
  min-height:350px;
  max-height:calc(100vh - 335px);
  user-select:none;
  touch-action:none;
  cursor:grab
}
.board-wrap svg:active   {
  cursor:grabbing
}
.board-tools   {
  position:absolute;
  left:20px;
  bottom:12px;
  display:flex;
  gap:5px
}
.board-tools button   {
  background:#123338da;
  padding:6px 10px
}
.board-tools span   {
  font-size:11px;
  align-self:center;
  margin-left:6px;
  color:#bad0c4
}
.hex   {
  stroke:#163d3d;
  stroke-width:.055;
  stroke-linejoin:round
}
.hex-hit   {
  cursor:pointer
}
.hex-hit:hover   {
  filter:brightness(1.12)
}
.number   {
  fill:#f3e8ca;
  stroke:#284c3c;
  stroke-width:.035
}
.number-text   {
  fill:#3e4b35;
  font-family:Georgia,serif;
  font-size:.34px;
  font-weight:bold;
  text-anchor:middle;
  dominant-baseline:central
}
.number-text.hot   {
  fill:#aa4538
}
.tile-label   {
  font-size:.115px;
  fill:#e9f1dc;
  text-anchor:middle;
  letter-spacing:.015px;
  opacity:.85
}
.edge-hit   {
  fill:transparent;
  stroke:transparent;
  stroke-width:.03;
  cursor:pointer
}
.edge-hit:hover   {
  fill:#ffffff44;
  stroke:#ffffff44
}
.edge-hit.legal   {
  fill:#f6dc8a44;
  stroke:#f6dc8a99;
  stroke-width:.025;
  stroke-dasharray:.12 .09
}
.vertex-hit   {
  fill:transparent;
  cursor:pointer
}
.vertex-hit:hover   {
  fill:#fff7
}
.vertex-hit.legal   {
  fill:#fff2;
  stroke:#f4d28b;
  stroke-width:.025
}
.node-number   {
  font-size:.13px;
  fill:#fff;
  text-anchor:middle;
  paint-order:stroke;
  stroke:#123237;
  stroke-width:.03;
  pointer-events:none
}
.board-message   {
  position:absolute;
  top:5px;
  left:50%;
  transform:translateX(-50%);
  padding:9px 16px;
  border-radius:25px;
  background:#102f35ec;
  box-shadow:0 5px 20px #0002;
  font-size:12px;
  text-align:center;
  pointer-events:none;
  max-width:90%;
  width:max-content
}
.hand-zone   {
  padding:18px 23px 20px;
  border-top:1px solid var(--line);
  background:#102e3380
}
.hand-label   {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
  font-size:11px;
  color:#b4cac3;
  letter-spacing:1.5px;
  text-transform:uppercase
}
.resources   {
  display:flex;
  gap:9px;
  flex-wrap:wrap
}
.resource   {
  position:relative;
  width:73px;
  min-height:83px;
  border-radius:8px;
  background:#f2eee2;
  color:#294039;
  border-top:5px solid var(--resource);
  padding:10px 8px;
  box-shadow:0 4px 8px #0002
}
.resource .symbol   {
  font-size:20px
}
.resource strong   {
  float:right;
  font-size:22px;
  font-weight:750
}
.resource small   {
  display:block;
  font-size:10px;
  color:#546960;
  margin-top:8px
}
.resource.zero   {
  opacity:.55
}
.sidebar   {
  background:#102b30;
  border-left:1px solid var(--line);
  display:flex;
  flex-direction:column;
  height:calc(100vh - 64px);
  overflow:auto
}
.players   {
  padding:10px 18px 15px;
  border-bottom:1px solid var(--line)
}
.player-row   {
  padding:11px 0;
  display:flex;
  gap:10px;
  align-items:center;
  border-bottom:1px solid #ffffff09
}
.player-row:last-child   {
  border:0
}
.player-row .avatar   {
  width:30px;
  height:30px;
  font-size:12px
}
.player-row.current .avatar   {
  outline:2px solid var(--gold);
  outline-offset:3px
}
.player-info   {
  flex:1;
  min-width:0
}
.player-info b   {
  font-size:12px;
  font-weight:600;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  display:block
}
.player-info small   {
  font-size:10px;
  display:block;
  margin-top:4px
}
.points   {
  font-size:23px;
  font-family:Georgia,serif
}
.points small   {
  font-family:system-ui;
  font-size:9px;
  display:block;
  text-align:center
}
.tabs   {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  padding:13px 14px 9px
}
.tabs button   {
  font-size:11px;
  padding:7px 9px;
  border:0
}
.tabs button.active   {
  background:#e7bc7520;
  color:var(--gold)
}
.actions-panel   {
  padding:2px 18px 18px
}
.build-grid   {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px
}
.build-btn   {
  text-align:left;
  padding:12px 10px;
  min-height:68px
}
.build-btn b   {
  font-size:12px;
  display:block;
  font-weight:650;
  margin-bottom:8px
}
.cost   {
  font-size:10px;
  color:#a8c0b7;
  display:block
}
.build-btn.selected   {
  border-color:var(--gold);
  background:#e7bc7515
}
.build-btn .cost span   {
  margin-right:5px;
  white-space:nowrap
}
.panel-subtitle   {
  font-size:11px;
  color:var(--muted);
  margin:12px 0
}
.bankline   {
  font-size:10px;
  color:#a8c0b7;
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  line-height:1.5;
  padding-top:12px
}
.logs   {
  padding:14px 18px 0;
  border-top:1px solid var(--line);
  margin-top:auto
}
.log-title   {
  font-size:10px;
  letter-spacing:1.7px;
  color:#95b3a7;
  text-transform:uppercase;
  display:flex;
  justify-content:space-between
}
.log-feed   {
  max-height:180px;
  min-height:90px;
  overflow:auto;
  margin-top:12px;
  font-size:11px;
  color:#b2c6bd;
  line-height:1.6;
  scrollbar-width:thin
}
.log-entry   {
  margin:5px 0
}
.log-entry.chat   {
  color:#e2e6dc
}
.log-entry b   {
  color:var(--gold)
}
.chat-form   {
  display:flex;
  gap:6px;
  margin:10px 0 14px
}
.chat-form input   {
  font-size:11px;
  min-height:34px;
  padding:8px 10px
}
.chat-form button   {
  padding:5px 10px
}
.barbarian   {
  margin:0 18px 10px;
  font-size:10px;
  color:#c6cbb7
}
.barbarian-track   {
  display:flex;
  gap:5px;
  margin-top:8px
}
.barbarian-track span   {
  height:5px;
  flex:1;
  border-radius:5px;
  background:#ffffff16
}
.barbarian-track span.filled   {
  background:#e8aa75
}
.task-banner   {
  background:#b78a42;
  color:#152f31;
  border-radius:10px;
  margin-bottom:14px;
  padding:14px;
  font-size:12px
}
.task-banner b   {
  display:block;
  margin-bottom:9px
}
.task-banner button   {
  background:#fff3;
  border-color:#193c3b44;
  font-weight:650
}
.card-list   {
  display:grid;
  gap:8px
}
.card   {
  text-align:left;
  padding:11px
}
.card b   {
  display:block;
  font-size:12px;
  color:var(--gold);
  margin-bottom:5px
}
.card small   {
  font-size:10px;
  line-height:1.5;
  display:block
}
.ship-card   {
  border:1px solid var(--line);
  padding:12px;
  border-radius:9px;
  margin-bottom:9px
}
.ship-card b   {
  font-size:12px
}
.ship-card p   {
  font-size:11px;
  color:#b5c8bd;
  margin:8px 0
}
.ship-card .tools   {
  display:flex;
  gap:5px;
  flex-wrap:wrap
}
.track   {
  padding:12px;
  border:1px solid var(--line);
  border-radius:9px;
  margin-bottom:8px;
  font-size:12px
}
.track .level   {
  display:flex;
  gap:4px;
  margin:10px 0
}
.track .level span   {
  height:5px;
  border-radius:3px;
  background:#ffffff15;
  flex:1
}
.track .level .filled   {
  background:var(--gold)
}
.trade-offer   {
  margin-top:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  font-size:11px
}
.trade-offer p   {
  margin:8px 0
}
.inline-fields   {
  display:flex;
  gap:8px
}
.inline-fields>div   {
  flex:1;
  min-width:0
}
.inline-fields input,.inline-fields select   {
  font-size:11px;
  padding:9px
}
.form-buttons   {
  display:flex;
  gap:8px;
  justify-content:flex-end;
  margin-top:22px
}
dialog   {
  background:#173b3e;
  color:#eef1e8;
  border:1px solid #ffffff26;
  border-radius:16px;
  width:min(520px,92vw);
  padding:28px;
  max-height:88vh;
  box-shadow:0 25px 90px #0006
}
dialog::backdrop   {
  background:#051c23bf;
  backdrop-filter:blur(4px)
}
dialog h2   {
  font-size:28px;
  margin-bottom:10px
}
dialog p   {
  font-size:12px;
  color:#b9ccc0;
  margin:12px 0 20px
}
dialog .close   {
  position:absolute;
  right:12px;
  top:10px;
  font-size:20px;
  padding:3px 10px;
  border:0
}
dialog form   {
  margin-top:18px
}
.choice-row   {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin:8px 0;
  font-size:13px
}
.choice-row input   {
  width:85px;
  text-align:center
}
.error   {
  color:var(--red);
  font-size:12px;
  margin-top:12px;
  line-height:1.5
}
.empty   {
  font-size:12px;
  color:#9cb7aa;
  line-height:1.7;
  margin:15px 0
}
.win   {
  padding:28px;
  text-align:center
}
.win h2   {
  color:var(--gold);
  font-size:38px;
  margin-bottom:14px
}
.mode-help   {
  font-size:11px;
  color:#d5c99e;
  line-height:1.6;
  margin-top:13px
}
#toast   {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%) translateY(100px);
  opacity:0;
  background:#eee8d8;
  color:#183737;
  border-radius:10px;
  padding:14px 22px;
  max-width:90vw;
  box-shadow:0 8px 35px #0003;
  font-size:13px;
  z-index:20;
  transition:.2s;
  pointer-events:none
}
#toast.visible   {
  opacity:1;
  transform:translateX(-50%) translateY(0)
}
.help-content   {
  font-size:12px;
  line-height:1.8
}
.help-content h3   {
  color:var(--gold);
  margin:18px 0 7px
}
.help-content ul   {
  padding-left:20px
}
.mobile-turn   {
  display:none
}
@media(min-width:1600px)   {
  .game   {
    grid-template-columns:minmax(0,1fr) 370px
  }
  .sidebar   {
    padding:0 6px
  }
  .resource   {
    width:84px
  }
  .board-wrap svg   {
    max-height:calc(100vh - 350px)
  }
}
@media(max-width:1000px)   {
  .hero   {
    gap:10px
  }
  .hero-art svg   {
    height:320px
  }
  .hero-art   {
    min-height:320px
  }
  .home   {
    padding-top:45px
  }
  .game   {
    grid-template-columns:minmax(0,1fr) 290px
  }
  .table-top   {
    padding:15px
  }
  .turn-title   {
    font-size:21px
  }
  .resource   {
    width:59px;
    padding:8px 6px;
    min-height:73px
  }
  .resource strong   {
    font-size:20px
  }
  .resource .symbol   {
    font-size:16px
  }
  .hand-zone   {
    padding:15px
  }
  .resources   {
    gap:6px
  }
  .game-header   {
    padding:0 16px
  }
}
@media(max-width:760px)   {
  .topbar   {
    height:65px
  }
  .topright .desktop   {
    display:none
  }
  .home   {
    padding:30px 5%
  }
  .hero   {
    grid-template-columns:1fr
  }
  .hero-art   {
    min-height:250px;
    order:-1
  }
  .hero-art svg   {
    height:250px
  }
  .hero h1   {
    font-size:46px;
    letter-spacing:-1px
  }
  .hero-copy>p   {
    font-size:14px
  }
  .hero .tags   {
    margin-top:20px
  }
  .entry-grid,.lobby-grid   {
    grid-template-columns:1fr;
    margin-top:30px
  }
  .footer   {
    flex-direction:column;
    margin-top:30px;
    gap:12px
  }
  .lobby   {
    padding:30px 5%
  }
  .lobby-head   {
    align-items:start;
    flex-direction:column
  }
  .lobby-head h1   {
    font-size:38px
  }
  .game   {
    grid-template-columns:1fr
  }
  .sidebar   {
    height:auto;
    overflow:visible;
    border-left:0;
    border-top:1px solid var(--line)
  }
  .table   {
    min-height:580px
  }
  .table-top   {
    align-items:start
  }
  .turn-title   {
    font-size:20px
  }
  .turn-sub   {
    font-size:10px
  }
  .turn-actions   {
    flex-direction:column
  }
  .turn-actions button   {
    font-size:12px;
    padding:8px 11px
  }
  .board-wrap svg   {
    max-height:430px;
    min-height:330px
  }
  .board-wrap   {
    min-height:330px
  }
  .hand-zone   {
    padding:15px 12px
  }
  .resources   {
    gap:5px
  }
  .resource   {
    flex:1;
    min-width:50px;
    max-width:75px;
    min-height:66px;
    padding:7px 5px
  }
  .resource small   {
    font-size:9px;
    margin-top:5px
  }
  .resource .symbol   {
    font-size:15px
  }
  .resource strong   {
    font-size:19px
  }
  .players   {
    display:flex;
    gap:15px;
    overflow:auto;
    padding:10px 15px
  }
  .player-row   {
    min-width:125px;
    border:0;
    gap:8px
  }
  .player-info b   {
    font-size:11px
  }
  .player-info small   {
    font-size:9px
  }
  .points   {
    font-size:19px
  }
  .tabs   {
    padding:12px 15px
  }
  .tabs button   {
    padding:9px 11px
  }
  .build-grid   {
    grid-template-columns:repeat(3,1fr)
  }
  .logs   {
    margin-top:10px
  }
  .log-feed   {
    max-height:160px
  }
  .barbarian   {
    margin-top:8px
  }
  .game-header .brand   {
    font-size:19px
  }
  .game-header .brand svg   {
    width:28px
  }
  .game-header .topright   {
    gap:6px
  }
  .room-code   {
    font-size:18px
  }
  .game-header .room-code   {
    font-size:11px;
    letter-spacing:1px
  }
  .board-message   {
    font-size:11px;
    top:0
  }
  .panel   {
    padding:22px
  }
  .seat   {
    padding:14px 0
  }
}

/* Permanent action overview and illustrated resources. */
.res-icon{width:24px;height:24px;display:inline-block;vertical-align:middle;flex-shrink:0}
.resource .res-icon{width:32px;height:32px}.hand-label .res-icon{width:19px;height:19px}
.cost{display:flex;flex-wrap:wrap;gap:3px 6px;align-items:center}
.cost-item{display:inline-flex;gap:2px;align-items:center;white-space:nowrap}.cost .res-icon{width:17px;height:17px}
.build-btn .cost span{margin:0}.choice-row>.res-icon{width:26px;height:26px}.bankline>span{display:inline-flex;align-items:center;gap:3px}.bankline .res-icon{width:17px;height:17px}
.game{grid-template-columns:minmax(0,1fr) minmax(440px,36vw)}
.sidebar{scrollbar-width:thin}.players{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;padding:6px 16px;max-height:150px;overflow:auto;flex-shrink:0}
.player-row{padding:9px 0;gap:8px}.player-row .avatar{width:26px;height:26px}.player-info small{font-size:9px}.points{font-size:21px}
.barbarian{margin:9px 16px}.actions-panel{padding:8px 12px 14px}
.action-dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;align-items:start}
.action-section{padding:11px;border:1px solid #ffffff16;border-radius:12px;background:#16373b;min-width:0}
.action-wide{grid-column:1/-1}.action-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.action-heading h3{font-family:Georgia,serif;font-size:18px;font-weight:400;margin:0;color:#f2ead5}
.section-count{background:#ffffff12;border-radius:20px;padding:2px 7px;font-size:10px;color:var(--gold)}
.build-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.build-btn{padding:9px 8px;min-height:57px;background:#102c30}
.build-btn b{font-size:11px;margin-bottom:5px}.build-btn.selected{outline:1px solid var(--gold);background:#79633a45}
.build-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.build-footer small,.section-note{font-size:10px;line-height:1.5;color:#b3c8c0}.section-note{display:block;margin:7px 0 0}
.action-section button.small{font-size:10px;min-height:29px;padding:6px 8px}.action-section .wide{width:100%}
.inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px}.inline-fields>div{min-width:0}.inline-fields label{font-size:9px;margin:0 0 4px}.inline-fields select{width:100%;font-size:11px;min-height:32px;padding:6px;margin-bottom:6px}
.compact-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.compact-buttons button{flex:1}
.buy-card{display:flex;align-items:center;justify-content:space-between;gap:5px}.card-list{display:grid;gap:5px;max-height:168px;overflow:auto;scrollbar-width:thin}.card-list .card{margin:0;width:100%;padding:8px;text-align:left}.card-list .card b{font-size:11px}.card-list .card small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.4}
.knight-builds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.knight-builds .build-btn{padding:7px 5px}.knight-builds .build-btn b{font-size:10px;overflow-wrap:anywhere}.knight-builds .cost{gap:2px}.knight-builds .cost .res-icon{width:14px;height:14px}
.city-tracks{display:grid;gap:7px}.city-track{display:flex;align-items:center;justify-content:space-between;gap:8px}.city-track>div{flex:1}.city-track b{font-size:11px}.city-track small{float:right;font-size:10px;color:var(--muted)}.city-track .level{margin-top:4px;display:flex;gap:3px}.city-track .level span{height:4px;flex:1;border-radius:4px;background:#ffffff1a}.city-track .level .filled{background:var(--gold)}.city-track button{display:flex;gap:3px;align-items:center}.city-track .res-icon{width:20px;height:20px}
.fleet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ship-card{margin:0;padding:8px;background:#102c30;border:1px solid #ffffff12;border-radius:8px}.ship-card b{font-size:11px}.ship-card small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.ship-card p{font-size:10px;margin:7px 0}.ship-card .tools{display:flex;flex-wrap:wrap;gap:4px}.ship-card .tools button{width:100%}.fleet-grid>.section-note{grid-column:1/-1}
.mission-strip{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.mission-strip>span{padding:5px 7px;background:#e7bc7510;border-radius:6px;font-size:10px}.mission-strip b{margin-left:6px;color:var(--gold)}
.hex-tile{cursor:default}.hex-hit{cursor:crosshair}.logs{padding:12px 16px 0}.log-feed{max-height:110px;min-height:45px}
.rulebook-dialog{width:min(1040px,96vw);max-width:1040px;padding:30px 36px}.rulebook-dialog>h2{font-size:14px;color:var(--muted);margin:0 0 24px}.rulebook-content{line-height:1.75;color:#c8d6ce}
.rule-intro h1{font:48px/1.1 Georgia,serif;color:#f3ecd9;margin:12px 0 20px}.rule-intro>p{max-width:720px;font-size:16px}.rule-current{padding:14px 18px;border-left:3px solid var(--gold);background:#e7bc750c;margin:24px 0}.rule-current b{color:var(--gold)}.rule-current p{margin:5px 0 0}
.rule-contents{display:flex;flex-wrap:wrap;gap:7px;margin:24px 0 34px}.rule-contents button{font-size:12px;padding:8px 12px;background:#193a3d}
.rule-chapter{padding:28px 0;border-top:1px solid var(--line);scroll-margin-top:20px}.rule-chapter h2{font:30px/1.2 Georgia,serif;color:#f3ecd9;margin:0 0 20px}.rule-chapter h3{font-size:17px;color:#e8c48b;margin:28px 0 10px}.rule-chapter p,.rule-chapter li{font-size:14px;line-height:1.85}.rule-chapter li{padding-left:5px;margin:8px 0}.rule-chapter ul,.rule-chapter ol{padding-left:23px}.rule-chapter b{color:#f0e8d6}
.rule-chapter table{width:100%;border-collapse:collapse;font-size:13px;margin:18px 0}.rule-chapter th{text-align:left;color:#e8c48b;background:#ffffff06}.rule-chapter th,.rule-chapter td{border-bottom:1px solid var(--line);padding:12px;vertical-align:top}.rule-chapter td:first-child{min-width:115px;color:#eee8d8}
.rule-resources{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:18px 0}.rule-resources>div{display:flex;flex-direction:column;align-items:center;padding:15px 6px;background:#ffffff05;border:1px solid var(--line);border-radius:10px}.rule-resources .res-icon{width:39px;height:39px;margin-bottom:9px}.rule-resources b{font-size:12px}.rule-resources small{font-size:10px;color:var(--muted)}
.rule-costs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.rule-costs>div{padding:12px;border:1px solid var(--line);border-radius:8px}.rule-costs>div>b{display:block;font-size:13px;margin-bottom:6px}.rule-costs>div>span{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:11px}.rule-cost-item{display:inline-flex;align-items:center;gap:4px}.rule-cost-item .res-icon{width:21px;height:21px}
.rule-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.rule-card{border:1px solid var(--line);padding:13px;border-radius:9px}.rule-card b{display:block;font-size:13px}.rule-card p{font-size:12px;margin:5px 0 0}.rulebook-page{background:#102b30}.rule-page-header{max-width:1040px;margin:auto;padding:24px 32px;display:flex;gap:20px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:1px}.rule-page-header a{color:var(--gold);text-decoration:none;letter-spacing:0;font-size:14px}.rulebook-page main{max-width:1040px;margin:auto;padding:40px 32px 80px}
@media(min-width:1600px){.game{grid-template-columns:minmax(0,1fr) 560px}.build-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.action-section{padding:13px}.action-dashboard{gap:11px}}
@media(max-width:900px){.game{grid-template-columns:1fr}.sidebar{height:auto;overflow:visible;border-left:0;border-top:1px solid var(--line)}.table{min-height:650px}.board-wrap{min-height:360px}.players{max-height:160px}.actions-panel{padding:14px 18px}.action-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.build-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.knight-builds .build-btn b{font-size:12px}.log-feed{max-height:150px}.card-list{max-height:200px}}
@media(max-width:600px){.game-header{padding:0 12px}.game-header .topright{gap:5px}.game-header .topright button{padding:7px;font-size:11px}.game-header .brand{font-size:17px}.game-header .brand svg{width:24px}.table{min-height:570px}.table-top{padding:15px 12px}.turn-title{font-size:20px}.turn-actions{gap:5px}.resource .res-icon{width:25px;height:25px}.resources{gap:4px;flex-wrap:wrap}.resource{flex:1 0 18%;max-width:none;min-width:50px;padding:6px;min-height:60px}.resource small{font-size:9px}.resource strong{font-size:18px}.action-dashboard{gap:8px}.action-section{padding:9px}.action-heading h3{font-size:17px}.build-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.knight-builds{grid-template-columns:1fr}.knight-builds .build-btn{display:flex;align-items:center;justify-content:space-between;min-height:34px}.knight-builds .build-btn b{margin:0;font-size:10px}.city-track b{font-size:10px}.fleet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.players{gap:0 12px}.rulebook-dialog{padding:22px 18px}.rule-intro h1{font-size:38px}.rule-resources{grid-template-columns:repeat(3,1fr)}.rule-costs,.rule-card-grid{grid-template-columns:1fr}.rule-chapter table{font-size:11px}.rule-chapter td,.rule-chapter th{padding:8px 5px}.rule-page-header{padding:20px 18px}.rule-page-header>span{display:none}.rulebook-page main{padding:28px 18px 60px}}
.rule-cards{display:grid;grid-template-columns:1fr 1fr;gap:9px}.rule-cards article{border:1px solid var(--line);padding:13px;border-radius:9px}.rule-cards h4{margin:0;color:#f0e8d6;font-size:13px}.rule-cards h4 small{color:var(--muted);font-weight:400}.rule-cards p{font-size:12px;margin:5px 0 0}.rule-track{color:var(--gold);margin:25px 0 12px}
@media(max-width:600px){.rule-cards{grid-template-columns:1fr}}
/* Keep the complete action set compact enough for a normal desktop. */
@media(min-width:901px){.game{grid-template-columns:minmax(0,1fr) minmax(490px,39vw)}.players{padding:4px 14px}.player-row{padding:6px 0}.player-info small{margin-top:2px}.player-info small:empty{display:none}.build-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.action-dashboard{gap:7px}.action-section{padding:9px}.action-heading{margin-bottom:7px}.action-heading h3{font-size:17px}.build-btn{padding:7px 6px;min-height:51px}.build-btn>b{font-size:10px;margin-bottom:4px}.build-grid .cost{gap:2px 4px}.build-grid .cost .res-icon{width:14px;height:14px}.card-list{max-height:132px}.card-list .card small{-webkit-line-clamp:1}.action-section .section-note{font-size:9px}.action-section .build-footer small{font-size:9px}.build-footer{margin-top:5px}.fleet-grid .ship-card{padding:7px}.ship-card .tools{display:grid;grid-template-columns:1fr 1fr}.ship-card .tools button{padding:5px!important;font-size:9px!important}.logs{padding-top:9px}}
.build-btn .cost b{display:inline;margin:0;font-size:10px;font-weight:500}.cost-item{gap:1px}
@media(min-width:1600px){.game{grid-template-columns:minmax(0,1fr) 560px}}
.rulebook-dialog .close{position:sticky;float:right;top:0;z-index:3;margin:-16px -20px 0 0;background:#24474a}
@media(max-width:600px){.rulebook-dialog .close{margin:-10px -8px 0 0}}

@media(min-width:901px){.resources{gap:5px}.resource{flex:1;min-width:40px;max-width:84px;padding:8px 5px}.resource .res-icon{width:28px;height:28px}.resource strong{font-size:20px}.resource small{font-size:9px}}
