:root {
  color-scheme:dark;
  --bg:#142630;
  --panel:#21343c;
  --line:#3c5056;
  --muted:#b6c7c8;
  --cream:#fbefd9;
  --gold:#edbd82;
  --green:#9ac4bc;
  --serif:"DM Serif Text",Georgia,serif;
  --sans:"Instrument Sans",system-ui,sans-serif
}

* {
  box-sizing:border-box
}
body {
  margin:0;
  background:radial-gradient(ellipse at 48% 5%,#233a45 0,var(--bg) 60%);
  color:var(--cream);
  font:15px/1.5 var(--sans);
  min-height:100vh
}
button {
  font:inherit;
  cursor:pointer;
  color:inherit
}
button:focus-visible {
  outline:2px solid #ffdb91;
  outline-offset:4px
}
button:disabled {
  opacity:.53;
  cursor:default
}
button[hidden] {
  display:none
}
.frame {
  width:min(1392px,calc(100% - 72px));
  margin-inline:auto
}
.top {
  background:#192d37;
  border-bottom:1px solid var(--line)
}
.top-inner {
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font:29px/1 var(--serif);
  letter-spacing:.015em
}
.brand small {
  font:10px/1 var(--sans);
  display:block;
  text-transform:uppercase;
  letter-spacing:.21em;
  color:var(--muted);
  margin-top:6px
}
.crest {
  width:36px;
  height:42px;
  color:var(--gold)
}
.crest svg,.icon svg {
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.6
}
.resources {
  display:flex;
  gap:22px
}
.resource {
  display:flex;
  gap:8px;
  align-items:center;
  min-width:80px
}
.resource .icon {
  color:var(--gold)
}
.resource:nth-child(2) .icon {
  color:#ddbe9a
}
.resource:nth-child(3) .icon {
  color:#a6beca
}
.resource strong {
  font-variant-numeric:tabular-nums;
  font-size:16px;
  line-height:1.2;
  display:block
}
.resource small {
  color:var(--muted);
  font-size:11px;
  display:block
}
.icon {
  width:20px;
  height:20px;
  display:inline-flex;
  flex:none;
  vertical-align:middle
}
.heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  padding:27px 0 15px
}
.region {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--green);
  font-weight:700
}
.region span {
  margin-inline:4px
}
.heading h1 {
  font:clamp(38px,5vw,56px)/1 var(--serif);
  font-weight:400;
  margin:6px 0 0
}
.heading p {
  color:var(--muted);
  display:flex;
  gap:7px;
  align-items:center;
  margin:0 0 3px;
  font-size:13px
}
.heading p strong {
  color:var(--cream)
}
.tabs {
  display:flex;
  gap:6px;
  border-bottom:1px solid var(--line);
  margin-bottom:16px
}
.tabs button {
  background:none;
  border:0;
  border-bottom:2px solid transparent;
  padding:10px 18px;
  color:var(--muted);
  font-weight:650
}
.tabs button:hover,.tabs button[aria-current] {
  color:var(--gold)
}
.tabs button[aria-current] {
  border-color:var(--gold)
}
#report-count:not(:empty) {
  font-size:11px;
  margin-left:4px;
  color:var(--gold)
}

.board {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(290px,330px);
  gap:16px;
  align-items:stretch
}
.visual,.detail,.queues {
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden
}
.visual {
  background:#234a59;
  position:relative;
  min-height:360px;
  aspect-ratio:1.71
}
.village,.map {
  position:absolute;
  inset:0;
  overflow:hidden
}
.village img {
  width:100%;
  height:100%;
  object-fit:fill;
  display:block
}
.village::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow:inset 0 0 55px #10160e70
}
.visual-caption {
  position:absolute;
  bottom:12px;
  left:12px;
  z-index:1;
  font-size:11px;
  padding:6px 9px;
  background:#172f3be8;
  border:1px solid #8a987266;
  border-radius:4px;
  color:#f1e8d3;
  pointer-events:none
}
.marker {
  position:absolute;
  transform:translate(-50%,-50%);
  background:#203742f2;
  border:1px solid #d4af719e;
  border-radius:5px;
  padding:6px 9px;
  z-index:2;
  display:flex;
  gap:6px;
  align-items:center;
  white-space:nowrap;
  box-shadow:0 3px 14px #0b100b95;
  color:#f9edce;
  font-size:12px;
  font-weight:650
}
.marker:hover,.marker[aria-pressed=true] {
  background:#e0bb79;
  color:#211b12;
  border-color:#ffdaa0
}
.marker .icon {
  width:15px;
  height:15px
}
.map canvas {
  width:100%;
  height:100%;
  display:block
}
.map .marker.home {
  border-color:#b9d2ac
}
.map .marker .coord {
  font-size:10px;
  opacity:.81
}

.detail {
  padding:21px;
  background:linear-gradient(140deg,#293f47,var(--panel) 60%);
  display:flex;
  flex-direction:column;
  min-width:0
}
.eyebrow {
  color:var(--green);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.14em
}
.detail h2,.report-area h2 {
  font:31px/1.12 var(--serif);
  font-weight:400;
  margin:7px 0 9px
}
.detail p {
  color:var(--muted);
  margin:0 0 16px;
  font-size:14px
}
.info {
  display:grid;
  gap:0;
  border-top:1px solid var(--line);
  margin:0 0 13px
}
.info>div {
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:8px 0;
  font-size:13px
}
.info dt {
  color:var(--muted)
}
.info dd {
  margin:0;
  font-weight:650;
  text-align:right
}
.cost {
  font-size:12px;
  display:flex;
  flex-wrap:wrap;
  gap:4px 13px;
  margin-bottom:12px;
  color:var(--gold)
}
.cost span {
  display:inline-flex;
  gap:4px;
  align-items:center
}
.cost .icon {
  width:13px;
  height:13px
}
.primary {
  border:1px solid #efca85;
  border-radius:5px;
  background:#dbb571;
  color:#211b12;
  font-weight:750;
  width:100%;
  padding:10px 12px;
  margin-top:auto
}
.primary:hover:not(:disabled) {
  background:#eecb8b
}
.action-note {
  min-height:0;
  color:var(--muted);
  font-size:12px;
  margin-top:7px
}
.action-note:empty {
  display:none
}
.quantity {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
  color:var(--muted);
  font-size:13px
}
.quantity input {
  width:68px;
  color:var(--cream);
  background:#171d17;
  border:1px solid #bac6a365;
  border-radius:4px;
  padding:6px;
  font:inherit
}
.activity {
  margin:18px 0 0
}
.activity h2 {
  font:23px/1.15 var(--serif);
  font-weight:400;
  margin:0 0 9px
}
.queues {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  background:#233840
}
.queue {
  display:flex;
  gap:8px 11px;
  align-items:center;
  min-width:0;
  min-height:56px;
  padding:7px 13px
}
.queue+.queue {
  border-left:1px solid var(--line)
}
.queue>.icon {
  color:var(--gold)
}
.queue>div {
  min-width:0;
  flex:1
}
.queue strong,.queue small {
  display:block
}
.queue strong {
  font-size:13px
}
.queue small {
  font-size:11px;
  color:var(--muted)
}
.queue time {
  font-variant-numeric:tabular-nums;
  font-weight:650;
  color:var(--gold);
  font-size:13px
}
.report-area {
  position:absolute;
  inset:0;
  overflow:auto;
  padding:24px;
  background:linear-gradient(160deg,#2b434b,#203640)
}
.report-list {
  display:grid;
  gap:9px;
  margin-top:16px
}
.report-list button {
  background:#1d343e;
  border:1px solid var(--line);
  padding:11px 13px;
  border-radius:5px;
  text-align:left
}
.report-list button[aria-pressed=true],.report-list button:hover {
  border-color:var(--gold)
}
.report-list strong {
  display:block
}
.report-list small {
  color:var(--muted)
}
.empty {
  color:var(--muted);
  max-width:44ch
}
footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:11px;
  padding:14px 0 19px
}
.plain {
  background:none;
  padding:0;
  border:0;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px
}
.message {
  position:fixed;
  z-index:5;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 28px);
  margin:0;
  padding:10px 17px;
  border:1px solid #a08a59;
  border-radius:6px;
  color:var(--cream);
  background:#263e48;
  box-shadow:0 4px 18px #1119
}

@media(max-width:950px) {
  .frame {
  width:calc(100% - 40px)
}
.visual {
  aspect-ratio:1.42
}
.board {
  grid-template-columns:minmax(0,1fr) minmax(260px,300px)
}
.marker {
  padding:5px 6px
}
.marker .icon {
  display:none
}

}

@media(max-width:700px) {
  .frame {
  width:calc(100% - 28px)
}
.top-inner {
  min-height:64px
}
.brand {
  font-size:23px;
  gap:7px
}
.brand small {
  font-size:9px;
  letter-spacing:.13em
}
.crest {
  width:30px;
  height:34px
}
.resources {
  gap:9px
}
.resource {
  min-width:0;
  gap:3px
}
.resource .icon {
  width:14px;
  height:14px
}
.resource strong {
  font-size:13px
}
.resource small {
  font-size:9px
}
.heading {
  padding-top:19px
}
.board {
  grid-template-columns:1fr
}
.visual {
  aspect-ratio:1.47;
  min-height:225px
}
.detail {
  padding:17px
}
.queue {
  padding:8px 0;
  gap:7px
}
.queue>.icon {
  width:17px;
  height:17px
}
.queues {
  display:block;
  padding:0 12px
}
.queue+.queue {
  border-left:0;
  border-top:1px solid var(--line)
}
.tabs button {
  padding:8px 11px
}
.report-area {
  padding:15px
}

}

@media(max-width:365px) {
  .brand {
  font-size:20px
}
.crest {
  width:23px
}
.top-inner {
  gap:6px
}
.marker {
  font-size:10px;
  padding:5px
}
.map .marker .coord {
  display:none
}

}


.map {
  background: #2b5d70;
  cursor: grab;
  touch-action: none;
}
.map:active {
  cursor: grabbing;
}
.map-world {
  --x: 0px;
  --y: 0px;
  --zoom: 1;
  position: absolute;
  inset: 0;
  transform: translate(var(--x), var(--y));
}
.map-world canvas {
  transform: scale(var(--zoom));
}
.map-world .map-marker {
  left: calc(50% + (var(--marker-x, 50%) - 50%) * var(--zoom));
  top: calc(50% + (var(--marker-y, 50%) - 50%) * var(--zoom));
  background: #f3e2b9;
  color: #293944;
  border-color: #96794c;
  gap: 5px;
}
.map-world .home {
  background: #254a59;
  color: #fff0cc;
  border-color: #bfd9ce;
}
.map-world .map-marker:hover, .map-world .map-marker[aria-pressed=true] {
  background: #e6ae76;
  color: #271c19;
  border-color: #fff1c2;
}
.map-world .coord {
  display: block;
  line-height: 1;
}
.map-legend, .map-tools {
  position: absolute;
  bottom: 11px;
  z-index: 3;
}
.map-legend {
  left: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  padding: 6px 8px;
  background: #18333eec;
  color: #f7e5c4;
  border: 1px solid #c4d7cd70;
  border-radius: 5px;
  font-size: 10px;
  pointer-events: none;
}
.key {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 2px;
  background: #b3d6c9;
}
.key.neutral {
  background: #f0d7a4;
}
.key.route {
  height: 2px;
  margin-bottom: 2px;
  background: #ffd891;
}
.map-tools {
  right: 11px;
  display: flex;
  border: 1px solid #b7d0ceaa;
  border-radius: 5px;
  overflow: hidden;
}
.map-tools button {
  font-size: 17px;
  background: #213c49;
  border: 0;
  padding: 3px 9px;
}
.map-tools button + button {
  border-left: 1px solid #b7d0ce70;
}
.map-tools button:hover {
  background: #3c5f69;
}
@media (max-width: 480px) {
  .map-world .coord {
    display: none;
  }
  .map-world .map-marker {
    font-size: 10px;
  }
}
