@font-face {
  font-family: Barlow Cover;
  src: url('./art/barlow.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #111711;
  --panel: #171e17;
  --paper: #edece0;
  --muted: #bcc7b9;
  --rule: #657364;
  --action: #dbe2b8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--paper); font: 16px/1.5 'Trebuchet MS', Verdana, sans-serif; }
main { width: min(1200px, 100% - 48px); margin-inline: auto; padding: 35px 0; }
h1, h2, h3, p { margin: 0; }
.mission { isolation: isolate; position: relative; display: flex; min-height: 525px; align-items: end; justify-content: space-between; gap: 20px; padding: 29px; }
.terrain { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; object-fit: cover; }
.mission header { background: var(--background); padding: 9px 18px 13px; }
.mission header p { color: var(--muted); font-size: 14px; }
h1 { font: italic 900 clamp(38px, 5.2vw, 72px)/0.99 Barlow Cover, 'Trebuchet MS', sans-serif; }
.dispatch { width: min(100%, 350px); padding: 19px 22px; background: var(--panel); }
.map { display: flex; align-items: baseline; gap: 11px; }
.map h2 { font: italic 900 43px/1 Barlow Cover, 'Trebuchet MS', sans-serif; }
.map span, #game-state, #count, #roster span { color: var(--muted); }
#game-state { margin: 6px 0 15px; }
#game-state:empty, #status:empty { display: none; }
form, label { display: grid; gap: 7px; }
form { gap: 12px; }
.actions { display: flex; gap: 8px; }
button, input { font: inherit; border-radius: 2px; }
button { padding: 8px 12px; border: 1px solid var(--rule); background: transparent; color: var(--paper); cursor: pointer; }
button:hover { border-color: var(--paper); }
button.primary { background: var(--action); color: #1a2115; border-color: var(--action); font-weight: 700; }
input { width: 100%; min-width: 0; min-height: 41px; padding: 7px 10px; background: var(--background); color: var(--paper); border: 1px solid var(--rule); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
#entry button { justify-self: start; }
#room h3, .briefing-log h2 { font-size: 17px; }
#count { font-size: 14px; }
#roster { list-style: none; padding: 0; margin: 7px 0 14px; max-height: 145px; overflow-y: auto; }
#roster li { display: flex; justify-content: space-between; gap: 10px; padding-block: 3px; overflow-wrap: anywhere; }
#roster span { flex: none; }
.briefing-log { margin: 20px 29px 0; }
.chat { list-style: none; padding: 8px 0; margin: 0 0 8px; min-height: 52px; max-height: 220px; overflow: auto; }
.chat li { padding-block: 3px; overflow-wrap: anywhere; }
.chat strong { margin-right: 8px; }
#chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#chat-form button { min-height: 41px; }
#status { margin: 12px 29px; }

@media (max-width: 740px) {
  main { width: 100%; padding-top: 0; }
  .mission { min-height: 430px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .terrain { object-position: 55% 0; height: 275px; }
  .mission header { justify-self: start; align-self: start; margin: 117px 12px 18px; padding: 6px 10px 9px; }
  .dispatch { align-self: end; width: 100%; padding: 15px 16px; }
  .map h2 { font-size: 36px; }
  .briefing-log, #status { margin-inline: 16px; }
}
