@font-face {
  font-family: "Aviator";
  src: url("/art/Aviator-V3.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  font: 17px/1.35 "Aviator", "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #f0e1c8;
  background: #20211e;
  --steel: #232221;
  --steel-line: #777471;
  --brass: #bc8b4d;
  --data: #e3c38e;
  --muted: #c6b9a5;
  --ink: #1e2e38;
  --ink-warm: #3c2d20;
  --paper: #dfc79d;
  --steel-blue: #9dbcc9;
  --steel-blue-light: #c2d8e0;
  --steel-blue-field: #2b3a41;
  --steel-ink: #2f4a5f;
  --paper-rule: #2f4a5f48;
  --moss-line: #9fb487;
  --moss-light: #c1d4ac;
  --moss-field: #303b2d;
  --map-outline: #191c1c;
  --party-color: #45935f;
  --drawer-speed: 340ms;
  --drawer-ease: cubic-bezier(.22, .72, .22, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
strong { font-weight: 400; }
p, h1, h2, h3, dl { margin: 0; }
:focus-visible { outline: 2px solid var(--steel-blue); outline-offset: 4px; }

.eyebrow {
  display: block;
  font-size: .7rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .084em;
}

.character-portrait {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  min-width: 0;
}
.character-portrait > .character-face {
  position: absolute;
  inset: 6% 8%;
  width: 84%;
  height: 88%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 4%;
}
.character-portrait.has-character-frame > .character-face {
  inset: 3% 4%;
  width: 92%;
  height: 94%;
}
.character-portrait.has-character-frame::after {
  content: "";
  position: absolute;
  inset: -4% -6%;
  background: var(--character-frame) center / contain no-repeat;
  pointer-events: none;
}

.steel-surface { isolation: isolate; }
.steel-surface::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 16px solid transparent;
  /* Cover subpixel gaps between slices without filling the transparent corners. */
  background: linear-gradient(#262525 0 0) center / calc(100% - 14px) calc(100% - 14px) no-repeat border-box;
  border-image: url("/art/steel.png") 63 63 62 58 fill stretch;
  pointer-events: none;
}

.map-key, .order-key {
  min-height: 43px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
}

.map-key:hover:not(:disabled), .map-key[aria-pressed="true"] {
  color: var(--steel-blue-light);
  border-bottom-color: var(--steel-blue);
  background: var(--steel-blue-field);
}
.map-key[aria-pressed="true"] { box-shadow: inset 0 -1px var(--steel-blue); }
.map-key:active:not(:disabled) { background: #171613; }
.map-key:disabled { color: #988d7f; }

.order-key {
  padding-inline: 17px;
  color: #f5e0b8;
  border-color: #a67842;
  background: #553c26;
  box-shadow: inset 0 1px #b58a5d, inset 0 -3px #37291b;
}

.order-key:hover:not(:disabled) { background: #674a2e; }
.order-key:active:not(:disabled) { background: #392b1d; box-shadow: inset 0 2px #251d13; }
.order-key:disabled { background: #38342d; color: #cfbea3; border-color: #6b6254; box-shadow: none; }

.interface-symbols { position: absolute; pointer-events: none; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon-command {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
}
.icon-command:not(.order-key) {
  border: 1px solid #9b887364;
  color: #e3d0ad;
  background: radial-gradient(ellipse at 45% 32%, #58554a88, #23241de6);
  box-shadow: inset 0 1px #e3cf9b2e, 0 2px 4px #19130f80;
}
.icon-command:not(.order-key):is(:hover, :focus-within):not(:disabled) {
  color: var(--steel-blue-light);
  border-color: #9dbcc98a;
  background: radial-gradient(ellipse at 45% 32%, #4c6268c4, #2b383bdd);
}
.icon-command:focus-visible { outline-offset: -3px; }
.icon-command:disabled:not(.order-key) { color: #928479; }
.icon-command svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}
