@import url("/fonts.css");
:root {
  --paper: #f5e6c2;
  --ink: #302c26;
  --blue: #70d4db;
  --orange: #ed996a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #85c4d5;
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #79dbe2;
  outline-offset: 4px;
}
.hidden {
  display: none !important;
}
#world {
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
}
#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.5' d='M0 0h170v170H0z'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
#damage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 110px 25px #a33d2f;
  opacity: 0;
  transition: opacity 0.15s;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  text-shadow: 0 2px 2px #211c18b0;
}
#map-panel {
  position: absolute;
  left: 24px;
  top: 24px;
  background: #e7d2a3;
  color: var(--ink);
  border: 3px solid var(--ink);
  transform: rotate(-1deg);
  border-radius: 9px 3px 7px 4px;
  box-shadow: 4px 6px 0 #302c2638;
  text-align: center;
  text-shadow: none;
  padding: 5px;
}
#map-panel canvas {
  display: block;
  width: 156px;
  height: 146px;
  border: 1px solid #66543b;
}
#map-panel > div {
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 7px 2px 2px;
}
#match-header {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.scoreline {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #272624df;
  border-radius: 5px;
  padding: 7px 14px;
  white-space: nowrap;
  box-shadow: 0 3px 0 #15161670;
}
.scoreline strong {
  font-size: 35px;
  color: var(--blue);
  line-height: 1;
}
.scoreline strong#red-score {
  color: var(--orange);
}
.team-name {
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.7px;
}
.team-name.rival {
  color: var(--orange);
}
#clock {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  min-width: 69px;
  border-left: 1px solid #aaa7;
  border-right: 1px solid #aaa7;
  padding: 0 10px;
}
.roster {
  display: flex;
  gap: 4px;
}
.roster img {
  width: 27px;
  height: 30px;
  object-fit: cover;
  object-position: 50% 40%;
  border-bottom: 3px solid var(--blue);
}
#red-roster img {
  border-color: var(--orange);
}
.roster img.dead {
  opacity: 0.25;
  filter: grayscale(1);
}
#round-label {
  display: inline-block;
  color: var(--ink);
  background: #efdaaa;
  border: 2px solid var(--ink);
  padding: 6px 21px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 7px;
  text-shadow: none;
  transform: rotate(-0.5deg);
}
#objective-copy {
  font-size: 12px;
  margin-top: 8px;
}
#brand {
  position: absolute;
  right: 25px;
  top: 25px;
  font-family: Georgia, serif;
  letter-spacing: -1.5px;
  font-size: 29px;
  text-align: right;
}
#brand small {
  display: block;
  font: 700 10px Arial;
  letter-spacing: 2px;
  margin-top: 4px;
}
#brand > span {
  display: block;
  font: 9px Arial;
  letter-spacing: 1px;
  margin-top: 9px;
  opacity: 0.7;
}
#feed {
  position: absolute;
  right: 26px;
  top: 112px;
  display: grid;
  gap: 5px;
  text-align: right;
  font-size: 12px;
}
#feed > div {
  padding: 6px 10px;
  background: #302b25ac;
  border-radius: 3px;
}
#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  --gap: 10px;
  filter: drop-shadow(0 1px 1px #171916);
}
#crosshair i {
  position: absolute;
  background: #fff5d5;
  border: 1px solid #292721;
  border-radius: 2px;
  width: 3px;
  height: 10px;
}
#crosshair i:nth-child(1) {
  left: -1px;
  top: calc(-10px - var(--gap));
}
#crosshair i:nth-child(2) {
  left: -1px;
  top: var(--gap);
}
#crosshair i:nth-child(3) {
  top: -1px;
  left: calc(-10px - var(--gap));
  height: 3px;
  width: 10px;
}
#crosshair i:nth-child(4) {
  top: -1px;
  left: var(--gap);
  height: 3px;
  width: 10px;
}
#crosshair b {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff1cf;
  border-radius: 50%;
  left: -1px;
  top: -1px;
}
#crosshair.blocked i {
  background: #e99b68;
}
#melee-cue {
  position:absolute;left:50%;top:calc(50% + 32px);transform:translateX(-50%) rotate(-2deg);
  padding:4px 9px 5px;color:#f0d19b;background:#302b24d9;
  border:1px dashed #c7ab72;border-radius:3px 7px 2px 5px;
  font:800 9px var(--label);letter-spacing:1px;white-space:nowrap;pointer-events:none;
}
#melee-cue[data-cue=reach], #melee-cue[data-cue=shove-reach] {color:#dce9bb;border-color:#a6c88e;border-style:solid}
#cover-warning {
  position: absolute;
  top: calc(50% + 35px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 75vw;
  padding: 5px 9px;
  border: 1px solid #b17b54;
  border-radius: 3px 6px 4px 5px;
  background: #352c23e6;
  color: #f5c590;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-align: center;
}
#hitmarker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 38px;
  color: #fff3b5;
  opacity: 0;
}
#interaction {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  background: #2e2b24d6;
  border-radius: 5px;
  text-align: center;
  padding: 10px 18px;
  font-size: 13px;
  display: none;
}
#interaction progress {
  display: block;
  margin-top: 9px;
  width: 100%;
  height: 6px;
  accent-color: #edcf79;
}
#toast {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  background: #302b24b0;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 14px;
}
#vitals {
  position: absolute;
  left: 25px;
  bottom: 35px;
}
#squad {
  display: grid;
  gap: 9px;
  margin-bottom: 20px;
  width: 170px;
}
.squadmate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.squadmate img {
  width: 32px;
  height: 34px;
  background: #2d2d27aa;
  border-radius: 50%;
  border: 2px solid var(--blue);
}
.squadmate > div {
  flex: 1;
}
.squadmate small {
  font-size: 8px;
  opacity: 0.7;
}
.squadmate .life {
  width: 82px;
  height: 5px;
  background: #332f28;
  margin-top: 4px;
}
.squadmate .life i {
  display: block;
  background: var(--blue);
  height: 100%;
}
.self {
  display: flex;
  align-items: center;
  gap: 10px;
}
.self > img {
  width: 76px;
  height: 80px;
  background: #302f29;
  border: 3px solid #6dced3;
  border-radius: 50%;
  object-fit: cover;
}
.self > div {
  background: #302a24da;
  padding: 9px 11px 9px 4px;
  border-radius: 4px;
}
.meter {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
}
.meter span {
  color: #ee8c73;
  font-size: 22px;
  width: 18px;
}
.meter b {
  width: 36px;
  font-size: 20px;
}
.meter > div {
  width: 135px;
  background: #25251f;
  border: 2px solid #191a15;
  height: 17px;
}
.meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: #e48970;
}
.stamina span {
  color: var(--blue);
}
.stamina i {
  background: var(--blue);
}
#weapon {
  position: absolute;
  bottom: 31px;
  right: 25px;
  text-align: right;
}
#weapon-name {
  font-size: 13px;
  letter-spacing: 0.8px;
  background: #302b25c9;
  padding: 9px 15px;
  border-radius: 5px 5px 0 0;
}
#ammo {
  font-size: 48px;
  font-variant-numeric: tabular-nums;
  background: #302b25c9;
  padding: 3px 15px 5px;
}
#ammo small {
  font-size: 26px;
  font-weight: 400;
  opacity: 0.75;
}
#reload {
  height: 4px;
  background: #302b25c9;
}
#reload i {
  display: block;
  width: 0;
  background: #efd18d;
  height: 100%;
}
.slots {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}
.slots > div {
  position: relative;
  width: 56px;
  height: 58px;
  border: 2px solid #e8d9b7a0;
  background: #302b25ac;
  border-radius: 5px;
  text-align: center;
}
.slots > div.selected {
  border-color: #f2d98e;
  box-shadow: 0 0 0 2px #493e2d;
}
.slots span {
  font-size: 32px;
}
.slots kbd {
  position: absolute;
  bottom: -8px;
  left: 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  padding: 2px 5px;
  text-shadow: none;
  border-radius: 2px;
}
.slots b {
  position: absolute;
  right: 3px;
  top: 2px;
  font-size: 10px;
}
#quick-help {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  text-align: center;
  line-height: 2.2;
  opacity: 0.82;
  white-space: nowrap;
}
kbd {
  font-family: inherit;
  font-size: 0.9em;
  padding: 3px 4px;
  border: 1px solid #e4d4b47a;
  border-radius: 3px;
  margin-left: 4px;
}
#connection {
  position: absolute;
  bottom: 9px;
  left: 25px;
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0.7;
}
#pause-button {
  pointer-events: auto;
  position: absolute;
  right: 25px;
  bottom: 225px;
  width: 32px;
  height: 30px;
  border: 1px solid #eedab7;
  background: #302b2580;
  color: var(--paper);
  border-radius: 3px;
}
#training-progress {
  position: absolute;
  left: 25px;
  top: 237px;
  font-size: 10px;
  line-height: 2;
  background: #302c2490;
  padding: 8px 12px;
  border-radius: 4px;
  max-width: 180px;
}
.world-label {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
}
.world-label .site {
  display: block;
  margin: auto;
  background: #f0d18a;
  color: #342c22;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
  width: 38px;
  height: 44px;
  padding-top: 5px;
  font-size: 25px;
  text-shadow: none;
}
/* Sparring uses words, unlike the single-letter objective pennants. */
#practice-partner .site {
  width: max-content;
  min-width: 82px;
  height: auto;
  padding: 5px 12px 11px;
  font-size: 14px;
  line-height: 1.2;
  clip-path: polygon(2% 0, 98% 3%, 100% 77%, 55% 80%, 50% 100%, 45% 80%, 0 76%);
}
.world-label .name {
  background: #302c2580;
  font-size: 10px;
  padding: 3px 6px;
}
.world-label .diamond {
  font-size: 18px;
  color: var(--blue);
}
.world-label.enemy .diamond {
  color: var(--orange);
}
#menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 10%,
    #302a2410 35%,
    #241f1c9c 100%
  );
}
.menu-brand {
  position: absolute;
  top: 36px;
  left: 42px;
  font: bold 55px Georgia;
  text-shadow: 3px 4px 0 #382d2a;
  letter-spacing: -3px;
}
.menu-brand small {
  display: block;
  font: 700 13px Arial;
  letter-spacing: 5px;
  margin-top: 7px;
}
.menu-card {
  position: absolute;
  right: 5.5vw;
  top: 50%;
  transform: translateY(-50%);
  width: 410px;
  background: #f4e7cdef;
  color: var(--ink);
  padding: 27px 29px;
  border: 3px solid #43382d;
  border-radius: 4px 12px 5px 8px;
  box-shadow: 9px 10px 0 #211c1940;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #786247;
}
.menu-card h1 {
  font: 700 36px/1.08 Georgia;
  margin: 14px 0 12px;
  letter-spacing: -1px;
}
.menu-card p {
  font: 13px/1.6 Arial;
  margin: 0 0 18px;
  color: #655745;
}
.field-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  margin: 14px 0 7px;
}
.field-label span {
  font-size: 9px;
  letter-spacing: 0;
  color: #8a7557;
  font-weight: 400;
  margin-left: 9px;
}
input {
  background: #fff7e7;
  border: 1px solid #ad9975;
  color: #3a3027;
  padding: 10px 11px;
  border-radius: 3px;
}
#player-name {
  width: 100%;
  height: 34px;
  font-size: 13px;
}
#family-picker {
  display: flex;
  gap: 8px;
}
#family-picker button {
  flex: 1;
  padding: 0 4px 5px;
  border: 1px solid #b9a580;
  background: #e6d7b8;
  border-radius: 4px;
  color: #574833;
}
#family-picker img {
  width: 53px;
  height: 55px;
  object-fit: cover;
}
#family-picker span {
  display: block;
  font-size: 10px;
}
#family-picker button.selected {
  border: 2px solid #4c6f70;
  background: #d3dfd0;
}
.mode-picker {
  display: flex;
  gap: 5px;
  margin: 17px 0;
}
.mode-picker button {
  flex: 1;
  border: 1px solid #b6a182;
  background: transparent;
  padding: 10px 4px;
  color: #705d45;
  border-radius: 3px;
}
.mode-picker b {
  display: block;
  font-size: 10px;
}
.mode-picker small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  margin-top: 5px;
}
.mode-picker button.selected {
  background: #e3c98f;
  border: 2px solid #7e6640;
  color: #3e3427;
}
.primary {
  width: 100%;
  padding: 14px 16px;
  background: #4d6c67;
  color: #fff0cc;
  border: 2px solid #2e403b;
  border-radius: 4px;
  box-shadow: 0 3px 0 #293a31;
  font-size: 12px;
  letter-spacing: 1px;
}
.primary:hover {
  background: #3c5e57;
}
.primary span {
  float: right;
  font-size: 17px;
}
.join-row {
  display: flex;
  gap: 6px;
  margin-top: 13px;
}
.join-row input {
  width: 65%;
  font-size: 11px;
}
.join-row button {
  flex: 1;
  background: #e8d8b8;
  border: 1px solid #9e8967;
  color: #52432f;
  font-size: 10px;
  border-radius: 3px;
}
.menu-foot {
  text-align: center;
  font: 10px Arial;
  color: #857156;
  margin-top: 15px;
}
.menu-bottom {
  position: absolute;
  left: 42px;
  bottom: 29px;
  font: italic 18px Georgia;
  text-shadow: 1px 2px 2px #302722;
}
.menu-bottom span {
  display: block;
  font: 10px Arial;
  margin-top: 8px;
  opacity: 0.8;
}
#menu-error {
  font-size: 12px;
  color: #9c4531;
  margin-top: 9px;
}
#pause {
  position: fixed;
  inset: 0;
  background: #272c27b8;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.pause-card {
  background: #f2e2c0;
  color: #3b3329;
  border: 3px solid #3a342a;
  padding: 30px;
  width: 390px;
  border-radius: 6px;
}
.pause-card h2 {
  font: 30px Georgia;
  margin: 12px 0;
}
.pause-card p {
  font-size: 12px;
  line-height: 1.6;
}
.pause-card > button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #786448;
  border-radius: 3px;
}
.pause-card label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
  font-size: 12px;
}
.pause-card input[type="range"] {
  width: 160px;
  padding: 0;
}
.pause-card .muted {
  color: #7e6b51;
  font-size: 10px;
}
.pause-card label:has(input[type="checkbox"]) {
  justify-content: flex-start;
  gap: 10px;
}
#result {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f2dfb5f0;
  color: #383023;
  border: 3px solid #3e3429;
  text-align: center;
  box-shadow: 8px 8px 0 #30251e50;
  border-radius: 4px;
  pointer-events: none;
  width: min(510px, 90vw);
  padding: 24px 26px;
}
#result > span {
  font-size: 10px;
  letter-spacing: 2px;
}
#result h2 {
  font: clamp(24px, 5vw, 38px) Georgia;
  margin: 13px 0;
}
#result-score {
  font: bold 34px Georgia;
  color: #675039;
}
#result-stats {
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 8px;
}
#clock.overtime {
  color: #f3b579;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#result p {
  font-size: 14px;
}
#result small {
  font-size: 11px;
  color: #816a48;
}
#loading {
  position: fixed;
  inset: 0;
  background: #eee0c4;
  display: grid;
  place-items: center;
  color: #55442e;
  font: 25px Georgia;
}
body.reduced #grain {
  display: none;
}
body.reduced #damage {
  box-shadow: inset 0 0 0 5px #a33d2f;
}
@media (max-width: 1050px) {
  #brand {
    font-size: 21px;
    right: 16px;
  }
  .team-name {
    display: none;
  }
  .scoreline {
    gap: 9px;
  }
  #map-panel {
    left: 16px;
    top: 16px;
  }
  #map-panel canvas {
    width: 126px;
    height: 118px;
  }
  #quick-help {
    font-size: 8px;
    bottom: 15px;
  }
  #vitals {
    left: 16px;
    bottom: 40px;
  }
  .meter > div {
    width: 95px;
  }
  #weapon {
    right: 16px;
    bottom: 40px;
  }
  .slots > div {
    width: 45px;
  }
  #training-progress {
    top: 185px;
  }
  .menu-card {
    right: 4vw;
    width: 370px;
    padding: 23px;
  }
  .menu-brand {
    font-size: 44px;
    left: 25px;
  }
}
@media (max-height: 720px) {
  .menu-card {
    padding: 15px 22px;
  }
  .menu-card h1 {
    font-size: 29px;
    margin: 9px 0;
  }
  .menu-card p {
    margin-bottom: 8px;
  }
  .field-label {
    margin-top: 9px;
  }
  .mode-picker {
    margin: 10px 0;
  }
  .menu-foot {
    margin-top: 10px;
  }
  #squad {
    margin-bottom: 9px;
    gap: 4px;
  }
  #quick-help {
    display: none;
  }
}
@media (max-width: 650px) {
  #menu {
    background: #2d342a90;
  }
  .menu-brand {
    font-size: 25px;
    top: 16px;
  }
  .menu-brand small {
    font-size: 9px;
  }
  .menu-card {
    width: min(360px, 92vw);
    right: 4vw;
    top: 53%;
  }
  .menu-bottom {
    display: none;
  }
  .roster {
    display: none;
  }
  #brand {
    display: none;
  }
  #map-panel canvas {
    width: 90px;
    height: 85px;
  }
  #map-panel > div {
    font-size: 8px;
  }
  #training-progress {
    display: none;
  }
  #match-header {
    left: 65%;
  }
  .self > img {
    width: 46px;
    height: 50px;
  }
  .meter > div {
    width: 65px;
  }
  .meter b {
    font-size: 15px;
    width: 25px;
  }
  .slots > div {
    width: 34px;
    height: 44px;
  }
  .slots span {
    font-size: 25px;
  }
  #ammo {
    font-size: 35px;
  }
  #weapon-name {
    font-size: 10px;
  }
  .slots kbd {
    left: 9px;
  }
  #squad {
    display: none;
  }
}
@media (max-width: 900px) {
  #brand {
    display: none;
  }
  #match-header {
    left: 59%;
    top: 18px;
  }
  .roster img {
    width: 22px;
    height: 25px;
  }
  .scoreline {
    gap: 7px;
    padding: 7px 10px;
  }
  #quick-help {
    display: none;
  }
  #toast {
    max-width: 75vw;
    font-size: 12px;
    text-align: center;
  }
  .meter > div {
    width: 90px;
  }
}
@media (max-width: 760px) {
  .roster {
    display: none;
  }
  #match-header {
    left: 65%;
    width: 60%;
  }
  .scoreline {
    display: inline-flex;
    gap: 14px;
  }
  #round-label {
    font-size: 10px;
    padding: 6px 10px;
  }
  #objective-copy {
    font-size: 10px;
    max-width: 230px;
    margin: 8px auto;
  }
  #map-panel canvas {
    width: 108px;
    height: 101px;
  }
  #map-panel > div {
    font-size: 9px;
  }
  #training-progress {
    top: 169px;
    font-size: 9px;
    max-width: 155px;
  }
  #squad {
    margin-bottom: 10px;
  }
  .self > img {
    width: 58px;
    height: 62px;
  }
  .meter > div {
    width: 75px;
  }
  .meter b {
    width: 29px;
    font-size: 17px;
  }
  .slots > div {
    width: 42px;
    height: 48px;
  }
  .slots kbd {
    left: 12px;
  }
  #weapon-name {
    font-size: 10px;
  }
  #ammo {
    font-size: 39px;
  }
  .slots span {
    font-size: 28px;
  }
  #connection {
    font-size: 8px;
  }
}

@media (max-width: 760px) {
  #round-label {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 7px auto 0;
  }
}

.match-options {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.match-options label {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.match-options select {
  display: block;
  width: 100%;
  margin-top: 5px;
  background: #f4e6c7;
  border: 2px solid #564a38;
  border-radius: 4px;
  padding: 9px 6px;
  color: #3e3529;
  font:
    700 12px Georgia,
    serif;
}
#map-description {
  font-size: 11px;
  margin: 6px 0;
  color: #75654d;
}
#capture-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  background: rgba(32, 35, 28, 0.25);
  backdrop-filter: blur(2px);
}
.capture-card {
  background: #ead8b2;
  border: 3px solid #514431;
  border-radius: 9px;
  box-shadow: 5px 7px 0 #403a2b77;
  padding: 25px;
  text-align: center;
  max-width: 440px;
  margin: 18px;
  color: #403729;
}
.capture-card > span {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.capture-card h2 {
  font-size: 29px;
  margin: 12px 0;
}
.capture-card p {
  font-size: 13px;
  line-height: 1.7;
}
.capture-card small {
  display: block;
  font-size: 10px;
  margin-top: 14px;
}
.mouse-active {
  cursor: none;
}
@media (max-height: 800px) {
  .menu-card {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .menu-card h1 {
    font-size: 32px;
  }
  .menu-card .intro {
    margin: 8px 0;
  }
  .menu-card .eyebrow {
    font-size: 9px;
  }
  .menu-card .mode-picker {
    margin: 10px 0;
  }
  .menu-card .field-label {
    margin-top: 10px;
  }
}
#scoreboard {
  position: fixed;
  inset: 0;
  z-index: 26;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #242b2566;
}
.score-card {
  width: min(520px, 90vw);
  background: #eddfbd;
  border: 3px solid #504532;
  border-radius: 7px;
  padding: 22px;
  color: #3e3529;
  box-shadow: 6px 8px 0 #25251e66;
}
.score-card > span,
.score-card small {
  font-size: 11px;
  letter-spacing: 0.06em;
}
.score-card h2 {
  margin: 8px 0 14px;
}
.score-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.score-card th,
.score-card td {
  text-align: left;
  padding: 7px;
  border-bottom: 1px solid #50453233;
}
.score-card tr.friendly {
  background: #65aeb42b;
}
.score-card tr.rival {
  background: #c77a5020;
}
.score-card small {
  display: block;
  margin-top: 14px;
}
@media (max-width: 850px), (max-height: 800px) {
  .menu-bottom {
    display: none;
  }
}
#combat-feedback {
  position: fixed;
  top: calc(50% + 36px);
  left: 50%;
  transform: translateX(-50%);
  font:
    800 14px Arial,
    sans-serif;
  color: #fff7d8;
  text-shadow: 1px 2px 0 #322b24;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 0.1s;
}
#combat-feedback.finisher {
  color: #ffda82;
  font-size: 16px;
}
#damage-direction {
  position: fixed;
  top: 50%;
  left: 50%;
  /* Outside the 34%-height toast ribbon, including short viewports. */
  width: 44vh;
  height: 44vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#damage-direction > span {
  position: absolute;
  inset: 0;
  opacity: 0;
}
#damage-direction svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(46px, 6.8vh);
  height: min(27px, 4vh);
  fill: #ed9975;
  stroke: #37241d;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
#defeat-card {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: #ead9b6ee;
  border: 2px solid #53432c;
  border-radius: 6px;
  box-shadow: 4px 5px 0 #241e1a44;
  padding: 15px 25px;
  text-align: center;
  color: #40352a;
}
#defeat-card b {
  font-size: 12px;
  letter-spacing: 0.13em;
  display: block;
}
#defeat-card span {
  display: block;
  font-size: 17px;
  margin: 8px 0;
}
#defeat-card small {
  display: block;
  font-size: 12px;
}
.pause-card {
  max-height: 90vh;
  overflow-y: auto;
}

/* A small ink-and-paper callout, readable against both sky and stone. */
.crew-ping {
  color: #263f3b;
  text-shadow: none;
  text-align: center;
  pointer-events: none;
  min-width: 70px;
}
.crew-ping b,
.crew-ping small {
  display: block;
  width: max-content;
  max-width: 170px;
  margin: 0 auto;
  background: #f9ecc9ed;
  border: 1.5px solid #344c45;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.2;
  box-shadow: 2px 2px 0 #302d2855;
}
.crew-ping b {
  border-radius: 3px 7px 2px 4px;
}
.crew-ping small {
  font-size: 10px;
  border-top: 0;
}
.crew-ping .ping-icon {
  display: block;
  font: bold 38px/32px Georgia;
  color: #a3e2d6;
  -webkit-text-stroke: 1px #263f3b;
  text-shadow: 1px 2px #263f3b;
}

/* A paper dossier: career systems belong to the same crooked, inked world. */
.career-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed #8d806a;
  border-bottom: 1px dashed #8d806a;
  padding: 10px 0;
  margin: 14px 0;
  font: 12px var(--sans, Arial);
}
.career-entry button {
  padding: 9px 13px;
  background: #c4d5bf;
  border: 2px solid #453a2e;
  color: #30291f;
  font-weight: bold;
  cursor: pointer;
}
#armory {
  width: min(1120px, 94vw);
  max-height: 92vh;
  box-sizing: border-box;
  padding: 0;
  border: 3px solid #3f352c;
  background: #f3e8cc;
  color: #332c25;
  box-shadow: 10px 12px 0 #231e1baa;
  font:
    15px Georgia,
    serif;
}
#armory::backdrop {
  background: #171b1bd4;
}
#armory button,
#armory select {
  font: inherit;
  color: inherit;
  border: 2px solid #463b2e;
  background: #fff4d9;
  padding: 10px 14px;
  cursor: pointer;
}
#armory button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
#armory button:focus-visible,
#armory select:focus-visible {
  outline: 3px solid #399ca1;
  outline-offset: 3px;
}
#armory .primary {
  background: #c2d3b6;
  color: #30291f;
}
#armory p {
  line-height: 1.5;
}
#armory h3 {
  font-size: 18px;
  margin: 0 0 16px;
}
.armory-header {
  display: flex;
  justify-content: space-between;
  padding: 25px 30px 16px;
  border-bottom: 3px solid #40362e;
  background: #e6d6b4;
}
.armory-header h2 {
  font-size: 38px;
  line-height: 1.1;
  margin: 10px 0;
}
.armory-header em {
  font-weight: normal;
}
.armory-header small,
.prestige-section small {
  font: 11px monospace;
  letter-spacing: 2px;
}
.armory-header > button {
  align-self: start;
}
.career-ribbon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 20px 30px;
  background: #303d3c;
  color: #faf0d9;
}
.career-ribbon div {
  display: grid;
  gap: 7px;
}
.career-ribbon b {
  font: 700 16px monospace;
}
.career-ribbon span {
  font-size: 12px;
}
#armory progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: #ba9a57;
}
.armory-account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-bottom: 1px dashed #847960;
}
.armory-account > div {
  flex: 1;
}
.armory-account p {
  font-size: 12px;
  margin: 6px 0;
  max-width: 590px;
}
#kit-slots {
  display: flex;
  gap: 10px;
  padding: 22px 30px 8px;
}
#kit-slots .selected {
  background: #d1b26d;
  box-shadow: 3px 3px #524837;
}
#kit-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px 30px;
}
.weapon-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
#armory .weapon-card {
  padding: 8px;
  text-align: left;
  min-width: 0;
  background: #e8dcc1;
  position: relative;
}
#armory .weapon-card.equipped {
  background: #fff9e8;
  border: 3px solid #407c7a;
  box-shadow: 3px 4px #becbb2;
}
.weapon-card strong,
.weapon-card small {
  display: block;
}
.weapon-card strong {
  font-size: 15px;
}
.weapon-card small {
  font: 10px monospace;
  margin-top: 6px;
}
.weapon-drawing {
  height: 70px;
}
.weapon-drawing svg {
  width: 100%;
  height: 100%;
  transform: rotate(-4deg);
}
.weapon-details {
  padding: 14px 0;
}
.weapon-details > strong {
  font: 12px monospace;
}
.weapon-details p {
  font-size: 13px;
  min-height: 32px;
}
.weapon-details label {
  display: block;
  font-size: 12px;
  margin-top: 16px;
}
.weapon-details select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.weapon-details small {
  display: block;
  margin-top: 12px;
}
.armory-save {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 30px 20px;
}
.armory-save button {
  min-width: 220px;
}
.armory-save p {
  font-size: 12px;
}
.unlock-section,
.record-section {
  padding: 23px 30px;
  border-top: 2px solid #93846c;
}
.unlock-section p {
  font-size: 12px;
}
#unlock-road {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
#unlock-road span {
  background: #e3d3b2;
  border: 1px dashed #81725d;
  padding: 8px 11px;
  font: 12px monospace;
}
.prestige-section {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 25px 30px;
  background: #d4b677;
}
.prestige-section h3 {
  margin: 10px 0 !important;
  font-size: 26px !important;
}
.prestige-section > div {
  flex: 1;
}
.prestige-section p {
  font-size: 13px;
}
.record-section p {
  font: 12px monospace;
}
#prestige-review {
  padding: 24px 30px;
  background: #f7d8c3;
  border: 3px dashed #8a543e;
  margin: 20px 30px;
}
#prestige-review label {
  display: block;
}
#prestige-review select {
  display: block;
  margin: 10px 0;
}
#career-receipt {
  font: 13px monospace;
  color: #f5db92;
}
.menu-card {
  max-height: 90vh;
  overflow: auto;
}
@media (max-width: 740px) {
  #kit-editor {
    grid-template-columns: 1fr;
  }
  .armory-account,
  .prestige-section,
  .armory-save {
    align-items: stretch;
    flex-direction: column;
  }
  .career-ribbon {
    grid-template-columns: 1fr;
  }
  .armory-header h2 {
    font-size: 29px;
  }
  #armory {
    width: 96vw;
  }
  .career-entry {
    align-items: start;
    flex-direction: column;
  }
}
#account-fallback {
  padding: 18px 30px;
  background: #e5dcc8;
  border-bottom: 1px dashed #847960;
}
#account-fallback a {
  color: #315e62;
  text-decoration: underline;
  cursor: pointer;
}
#account-fallback details {
  margin-top: 12px;
}
#account-fallback textarea {
  display: block;
  width: 100%;
  height: 65px;
  margin: 10px 0;
  box-sizing: border-box;
  background: #fff8e7;
  border: 1px solid #81725d;
  font: 12px monospace;
}
#account-fallback p {
  font-size: 13px;
}
