:root {
  color-scheme: dark;
  font: 100%/1.45 system-ui, sans-serif;
  background: #131a1a;
  color: #e7e9dd;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 1.5rem, 68rem); margin: 2rem auto; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid #506159; margin-bottom: 1.25rem; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
h2 { font-size: 1rem; }
p { color: #bec9be; }
.layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1.25rem; }
#board { display: grid; gap: 2px; grid-template-columns: repeat(10, minmax(0, 1fr)); background: #101615; }
button { color: inherit; background: #263731; border: 1px solid #536c60; padding: .5rem; font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #ffdf91; outline-offset: -3px; }
button:disabled { opacity: .55; cursor: default; }
.tile { aspect-ratio: 1; min-width: 0; padding: 0; background: #333f39; font-weight: 700; }
.wall { background: repeating-linear-gradient(135deg,#222b29 0 5px,#2b3330 5px 10px); }
.brush { background: #455044; }
.move { background: #36594e; color: #d2fbdd; }
.crew { background: #204d56; color: #c1f3ff; }
.sentry { background: #643b33; color: #ffd3b4; }
.selected, .strike { box-shadow: inset 0 0 0 2px #ffdf91; }
aside button { width: 100%; margin-bottom: .4rem; text-align: left; }
#log { padding-left: 1.4rem; }
@media (max-width: 650px) { .layout { grid-template-columns: 1fr; } }
.operations { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.operations p { flex: 1 1 auto; margin: 0; }
#sectors { display: flex; flex-wrap: wrap; gap: .35rem; }
#sectors [aria-current="step"] { opacity: 1; border-color: #ffdf91; }
#squad [aria-pressed="true"] { border-color: #ffdf91; }
header {
  min-height: clamp(9rem, 18vw, 14rem);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(90deg, #111b1bef, #141b1a35 75%, #111b1b9e),
    url("./relay-outpost.png") center 48% / cover;
  text-shadow: 0 2px 5px #090d0d;
}
header p { margin-bottom: 0; }
#status { padding: .45rem .65rem; border: 1px solid #c3b27a; background: #171f1edf; }
.tile { position: relative; display: grid; place-items: center; }
.unit-sprite {
  position: absolute;
  inset: 0;
  background-image: url("./unit-sprites.png");
  background-size: 200% 200%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.sprite-lark { background-position: left top; }
.sprite-moss { background-position: right top; }
.sprite-reed { background-position: left bottom; }
.sprite-sentry { background-position: right bottom; }
.tile-health {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 0 .18rem;
  background: #101615e8;
  font-size: clamp(.65rem, 1.55vw, .9rem);
  line-height: 1.2;
  pointer-events: none;
}
.clear { background-image: repeating-linear-gradient(127deg, transparent 0 9px, #1016151f 9px 11px); }
.brush { background-image: radial-gradient(ellipse at 31% 30%, #87906666 5%, transparent 45%), radial-gradient(ellipse at 70% 70%, #8a936766, transparent 48%); }
