:root {
  color-scheme: dark;
  --ink: #ece8d5;
  --gold: #dcc58b;
  --line: #425344;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #111c17;
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    sans-serif;
}
main {
  max-width: 1560px;
  margin: auto;
  padding: 28px;
}
a {
  color: var(--gold);
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: normal;
}
h1 {
  font-size: 42px;
  margin: 5px 0;
}
h2 {
  margin: 4px 0 12px;
}
p {
  color: #b8c6bc;
  max-width: 1000px;
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
}
.toolbar,
.legend,
.actions,
.section-head {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar {
  margin: 22px 0 14px;
}
.legend {
  font-size: 13px;
  margin-bottom: 12px;
}
.safe {
  color: #69dfb4;
}
.bridge {
  color: #80d7ff;
}
.warning {
  color: #ffb65f;
}
label {
  display: flex;
  gap: 8px;
  align-items: center;
}
button,
select {
  font: inherit;
  border: 1px solid var(--line);
  background: #23382a;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  background: var(--gold);
  color: #152218;
}
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #80d7ff;
  outline-offset: 3px;
}
canvas {
  display: block;
  width: 100%;
  background: #263529;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: crosshair;
}
#overview {
  aspect-ratio: 2;
}
#detail {
  aspect-ratio: 9/7;
}
.hint {
  font-size: 13px;
}
.play {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 26px;
  margin-top: 32px;
}
.section-head {
  justify-content: space-between;
}
aside {
  background: #1c2a22;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
aside p {
  font-size: 14px;
}
.destination {
  display: block;
}
.destination select {
  width: 100%;
  margin-top: 8px;
}
.actions {
  gap: 8px;
}
.actions button {
  font-size: 14px;
}
#review {
  display: grid;
  gap: 8px;
}
#review button {
  text-align: left;
  font-size: 14px;
}
.notes {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
}
@media (max-width: 800px) {
  main {
    padding: 16px;
  }
  .play {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 34px;
  }
  .toolbar {
    gap: 10px;
  }
}
