/* Layout and death typography copied from the supplied reference game. */
@font-face {
  font-family: ReferenceHeading;
  src: url("../fonts/BarlowCondensed-SemiBold-Heading.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: ReferenceUI;
  src: url("../fonts/Rajdhani-Medium.woff2") format("woff2");
  font-display: swap;
}
.reference-screen {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: auto;
  font-family: ReferenceUI, Arial, sans-serif;
  font-weight: 500;
  font-synthesis: weight style;
  --red: #df726a;
  --white: #f4f3e9;
  color: var(--white);
}
.reference-screen * {
  box-sizing: border-box;
}
.reference-screen :is(h2, h3, p) {
  font-style: normal;
}
.reference-screen button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transform: none;
}
.reference-screen svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.reference-screen .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.19em;
}
.reference-screen :is(.accent-button, .dark-button) {
  height: 50px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  letter-spacing: 0.09em;
  font-family: ReferenceHeading, sans-serif;
  font-size: 16px;
  border: 1px solid #ffffff28;
}
.reference-screen .accent-button {
  background: var(--accent);
  color: var(--accent-ink, #111713);
  border: 0;
  font-family: ReferenceHeading, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.reference-screen .accent-button:hover {
  background: #1b1d20;
}
.reference-screen .dark-button {
  background: #151c20e6;
  border: 1px solid #ffffff24;
  color: #f4f3e9;
  font-family: ReferenceHeading, sans-serif;
  font-weight: 600;
}
.reference-screen .text-button {
  border: 0;
  background: none;
  color: inherit;
}
.reference-screen kbd {
  font:
    11px ReferenceUI,
    Arial,
    sans-serif;
  border: 1px solid #ffffff50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  min-height: 19px;
  padding: 0 5px;
}
.reference-screen .report-brand {
  font: italic 800 64px/0.8 var(--condensed);
  letter-spacing: -0.04em;
  text-align: left;
  width: 180px;
  height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f4f1e7;
}
.report-brand small {
  font:
    600 9px/1.5 ReferenceHeading,
    Arial,
    sans-serif;
  letter-spacing: 0.27em;
  margin-top: 10px;
}
.reference-screen .page-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce9e322;
  text-align: left;
}
.reference-screen .page-brandbar > span {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #d9e2d6;
}
.reference-screen :is(.page-brandbar, .page-footer) i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  margin-right: 8px;
}
.reference-screen .page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dce9e322;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #c4cfc3;
}
#death-screen {
  --accent: #d7ff3e;
  --accent-fg: #d7ff3e;
  --accent-ink: initial;
  pointer-events: none;
}
#death-screen .eyebrow {
  margin: 0;
  font-weight: 500;
}
#death-screen h2 {
  text-shadow: 0 2px 20px #000;
}
#pause {
  isolation: isolate;
  background: #0d151c;
  overflow: auto;
  color: #f4f3e9;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pause-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #080f18f7 0%, #0b1620e3 41%, #10202b70 100%),
    url("../image/lobby/solstice-canyon-v4.avif") center/cover;
  pointer-events: none;
}

.pause-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(#cbe0e706 1px, transparent 1px),
    linear-gradient(90deg, #cbe0e706 1px, transparent 1px);
  background-size: 70px 70px;
}

.pause-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 5vw;
  padding: max(24px, 3vh, env(safe-area-inset-top)) 0 2vh;
  border-bottom: 1px solid #dce9e322;
  flex-shrink: 0;
}

#pause .pause-topline .report-brand {
  height: auto;
}

.pause-topline img {
  width: 180px;
  height: 65px;
  object-fit: contain;
}

.pause-topline > span,
.pause-footer {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #b3c3c3;
}

.pause-topline i,
.pause-shell .eyebrow i,
.pause-footer i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  margin-right: 10px;
  box-shadow: 0 0 10px #d7ff3e60;
}

.pause-layout {
  width: min(1180px, 84%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.78fr;
  align-items: center;
  gap: 9vw;
  padding: 4vh 0;
}

#pause .pause-shell {
  position: relative;
  inset: auto;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  display: block;
}

#pause .pause-shell > .eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #c0cebd;
}

#pause .pause-shell h2 {
  font-family: ReferenceHeading, sans-serif;
  font-size: clamp(58px, 7.4vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 24px 0 20px;
  font-weight: 800;
}

#pause .pause-shell h2 span {
  color: var(--accent-fg, #f4f1e7);
}

#pause .pause-shell > p {
  margin: 0 0 27px;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: #8c9ea7;
}

.pause-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  max-width: 420px;
}

.pause-actions > button {
  min-height: 45px;
  padding: 12px 17px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.pause-actions #resume-match {
  min-height: 62px;
  margin-bottom: 7px;
  font-size: 20px;
  border-left: 4px solid #f0ffb1;
}

.pause-actions .dark-button {
  background: #17242c99;
  border: 1px solid #d7e3d51c;
  justify-content: flex-start;
}

.pause-actions .dark-button:hover {
  background: #25363ee6;
  border-color: #d7ff3e80;
}

.pause-actions .dark-button > span {
  font-size: 10px;
  letter-spacing: 0;
  color: #a2b0a9;
  margin-right: 4px;
}

.pause-actions svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  margin-left: auto;
}

#pause .pause-actions .text-button {
  padding: 15px 0 6px;
  min-height: 40px;
  font-size: 11px;
  color: #b2bebc;
}

#pause .pause-shell > small {
  display: block;
  font-size: 10px;
  color: #71848a;
  margin-top: 19px;
  letter-spacing: 0.03em;
}

.pause-brief {
  background: #111e27bf;
  border: 1px solid #e4f2e025;
  position: relative;
  border-top: 2px solid #d7ff3e90;
}

.pause-brief-label {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #c5d0c6;
}

.pause-brief-label b {
  font-weight: 400;
  color: #80938f;
}

.pause-recon {
  height: clamp(130px, 23vh, 230px);
  background:
    linear-gradient(0deg, #101c26d9, transparent 65%),
    url("../image/lobby/solstice-canyon-v4.avif") center/cover;
}

.pause-brief-copy {
  padding: 10px 22px 23px;
}

.pause-brief-copy > .eyebrow {
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #abb9b0;
}

.pause-brief-copy h3 {
  font-size: clamp(31px, 3vw, 44px);
  line-height: 0.95;
  margin: 11px 0 20px;
  font-weight: 700;
}

.pause-mode {
  font-size: 10px;
  color: var(--accent-fg, #f4f1e7);
  letter-spacing: 0.13em;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6efdb25;
}

.pause-brief dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  padding-top: 16px;
}

.pause-brief dl > div:last-child {
  grid-column: 1/-1;
}

.pause-brief dt {
  font-size: 8px;
  color: #81958f;
  letter-spacing: 0.09em;
  margin-bottom: 5px;
}

.pause-brief dd {
  font-family: ReferenceUI, sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  color: #e3eadd;
}

.pause-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 5vw;
  padding: 20px 0;
  border-top: 1px solid #dce9e322;
  flex-shrink: 0;
  font-size: 8px;
}

.pause-footer kbd {
  font-size: 8px;
  padding: 3px 5px;
  margin-right: 10px;
}

.pause-footer i {
  margin: 0 0 0 8px;
  width: 4px;
  height: 4px;
}

@media (max-width: 900px) {
  .pause-layout {
    width: 88%;
    gap: 6vw;
    grid-template-columns: 1fr 0.76fr;
  }

  #pause .pause-shell h2 {
    font-size: 70px;
  }

  .pause-topline {
    padding: max(18px, env(safe-area-inset-top)) 0 12px;
  }

  .pause-topline img {
    width: 150px;
    height: 47px;
  }

  .pause-actions > button {
    min-height: 40px;
    padding: 9px 13px;
  }

  .pause-actions #resume-match {
    min-height: 52px;
    font-size: 17px;
  }

  .pause-brief-copy {
    padding: 8px 16px 17px;
  }
}

@media (max-height: 650px) and (min-width: 700px) {
  .pause-layout {
    padding: 20px 0;
    gap: 8vw;
    grid-template-columns: 1.1fr 0.75fr;
  }

  #pause .pause-shell h2 {
    font-size: 63px;
    margin: 15px 0;
  }

  #pause .pause-shell > p {
    margin-bottom: 16px;
  }

  .pause-topline {
    padding: max(18px, env(safe-area-inset-top)) 0 8px;
  }

  #pause .pause-topline .report-brand {
    font-size: 48px;
  }

  .pause-topline img {
    height: 40px;
  }

  .pause-actions > button {
    min-height: 34px;
    padding: 8px 13px;
    font-size: 13px;
  }

  .pause-actions #resume-match {
    min-height: 45px;
    font-size: 17px;
  }

  .pause-actions {
    gap: 5px;
  }

  .pause-brief-label {
    padding: 10px 14px;
  }

  .pause-recon {
    height: 110px;
  }

  .pause-brief-copy h3 {
    font-size: 30px;
    margin: 10px 0;
  }

  .pause-brief dl {
    gap: 10px;
  }

  .pause-brief dd {
    font-size: 16px;
  }

  #pause .pause-shell > small {
    margin-top: 10px;
  }

  .pause-footer {
    padding: 12px 0;
  }
}

@media (max-width: 600px) {
  .pause-topline > span {
    font-size: 7px;
    letter-spacing: 0.07em;
  }

  .pause-topline img {
    width: 130px;
  }

  .pause-layout {
    width: 86%;
    grid-template-columns: 1fr;
    padding: 25px 0;
    gap: 25px;
  }

  #pause .pause-shell h2 {
    font-size: 66px;
    margin: 20px 0 16px;
  }

  .pause-brief {
    display: none;
  }

  .pause-actions {
    max-width: none;
  }

  .pause-footer > span:last-child {
    display: none;
  }

  .pause-actions > button {
    min-height: 46px;
  }

  .pause-actions #resume-match {
    min-height: 58px;
  }

  .pause-footer {
    padding: 18px 0;
  }
}

@media (max-height: 470px) and (min-width: 600px) {
  .pause-topline {
    padding: max(16px, env(safe-area-inset-top)) 0 6px;
  }

  #pause .pause-topline .report-brand {
    font-size: 40px;
  }

  .pause-topline img {
    height: 32px;
    width: 130px;
  }

  .pause-topline > span {
    font-size: 8px;
  }

  .pause-layout {
    padding: 10px 0;
    gap: 7vw;
    width: 88%;
    grid-template-columns: 1.2fr 0.78fr;
  }

  #pause .pause-shell h2 {
    font-size: 46px;
    margin: 12px 0 10px;
  }

  #pause .pause-shell > .eyebrow {
    font-size: 8px;
  }

  #pause .pause-shell > p {
    font-size: 8px;
    margin: 0 0 12px;
  }

  .pause-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .pause-actions #resume-match {
    grid-column: 1/-1;
    min-height: 43px;
    margin: 0;
    font-size: 17px;
  }

  .pause-actions > button {
    min-height: 33px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .pause-actions svg {
    width: 14px;
    height: 14px;
  }

  #pause .pause-actions #leave-match {
    padding: 8px 10px;
    min-height: 33px;
    font-size: 10px;
    border: 1px solid #ffffff17;
  }

  #pause .pause-shell > small {
    font-size: 8px;
    margin-top: 9px;
  }

  .pause-recon {
    height: 74px;
  }

  .pause-brief-label {
    padding: 8px 12px;
    font-size: 7px;
  }

  .pause-brief-copy {
    padding: 4px 13px 12px;
  }

  .pause-brief-copy > .eyebrow {
    font-size: 6px;
  }

  .pause-brief-copy h3 {
    font-size: 25px;
    margin: 8px 0 10px;
  }

  .pause-mode {
    font-size: 8px;
    padding-bottom: 9px;
  }

  .pause-brief dl {
    gap: 9px;
    padding-top: 9px;
  }

  .pause-brief dt {
    font-size: 6px;
  }

  .pause-brief dd {
    font-size: 14px;
  }

  .pause-footer {
    padding: 9px 0;
    font-size: 7px;
  }
}
.operation-report {
  --result-rows: 4;
  --result-row-height: 34px;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top))
    max(5vw, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom))
    max(5vw, env(safe-area-inset-left));
  overflow: hidden;
  background: #0c151c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.operation-report::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #080f16e6, #101923b8 58%, #13233288),
    linear-gradient(0deg, #081017ef, transparent 80%),
    url("../image/lobby/solstice-canyon-v4.avif") 50% 43% / cover;
  pointer-events: none;
}

.operation-report .results-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(1000px, 100%);
  max-width: none;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  text-align: center;
}

.operation-report .page-brandbar {
  margin: 0;
  flex: none;
}

.result-content {
  display: grid;
  gap: 24px;
  min-height: 0;
}

.result-overview {
  align-self: center;
}

#results .eyebrow {
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.27em;
  color: #d6e2cb;
}

:is(#results, #death-screen) .operation-outcome-title {
  font:
    700 clamp(62px, 9vh, 100px) / 0.98 ReferenceHeading,
    sans-serif;
  letter-spacing: 0.055em;
  margin: 6px 0 9px;
}

#results #result-title {
  color: var(--accent-fg, #f4f1e7);
}

#results[data-outcome="defeat"] #result-title {
  color: var(--red);
}

#results[data-outcome="draw"] #result-title {
  color: #f2f3e6;
}

#results #result-subtitle {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #c3cec0;
}

#results .result-score {
  gap: 28px;
  margin: 14px 0;
}

#results .result-score > div {
  min-width: 105px;
}

#results .result-score small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #afbeaf;
}

#results .result-score b {
  color: #edf2d8;
  font:
    600 48px/1.08 ReferenceHeading,
    sans-serif;
}

#results .result-score > div:last-child b {
  color: var(--red);
}

#results .result-score > span {
  font:
    300 25px ReferenceHeading,
    sans-serif;
  color: #a4b3a4;
}

#results #result-stats {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(560px, 100%);
}

#results #result-stats > div {
  padding: 8px 16px;
  border-right: 1px solid #e7eddb26;
}

#results #result-stats > div:last-child {
  border: 0;
}

#results #result-stats b {
  color: #f2f3e6;
  font:
    600 30px/1.05 ReferenceHeading,
    sans-serif;
}

#results #result-stats small {
  display: block;
  margin-top: 5px;
  color: #adbcad;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.result-roster {
  width: min(820px, 100%);
  margin: 0 auto;
  min-width: 0;
}

.result-roster > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.result-roster h3 {
  color: #e4ebd9;
  font:
    600 12px ReferenceUI,
    sans-serif;
  letter-spacing: 0.14em;
}

#result-roster-count {
  font-size: 8px;
  letter-spacing: 0.13em;
  color: #9fac9f;
}

#results #result-board {
  height: calc((var(--result-rows) + 1) * var(--result-row-height));
  max-height: none;
  margin: 0;
  overflow: hidden;
  background: #0a141ccc;
  border: 1px solid #dce6cf2b;
  border-top: 1px solid #d7ff3e7a;
}

#results .board-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#results .board-table :is(th, td) {
  padding: 0 14px;
  height: var(--result-row-height);
  text-align: right;
  white-space: nowrap;
}

#results .board-table th {
  font:
    600 9px ReferenceUI,
    sans-serif;
  letter-spacing: 0.13em;
  color: #97a795;
  background: #07111b88;
}

#results .board-table td {
  font:
    500 13px ReferenceUI,
    sans-serif;
  color: #d8e1d2;
  border-top: 1px solid #dce6cf0c;
}

#results .board-table :is(th, td):first-child {
  width: 46%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

#results .board-table .player-row td {
  background: #d7ff3e0d;
  color: #eff3dd;
}

#results .board-table td:first-child > span {
  display: inline-block;
  vertical-align: middle;
  max-width: calc(100% - 52px);
  overflow: hidden;
  text-overflow: ellipsis;
}

#results .board-table td:first-child > small {
  color: var(--accent-fg, #f4f1e7);
  font-size: 7px;
  letter-spacing: 0.08em;
  margin-left: 10px;
}

.result-team-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #c4dc93;
  margin-right: 10px;
  vertical-align: middle;
}

.result-team-dot.hostile {
  background: var(--red);
}

.result-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  margin-top: 5px;
}

.result-pagination button {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #d2deca;
  font-size: 8px;
  letter-spacing: 0.12em;
  min-height: 32px;
  padding: 6px 3px;
}

.result-pagination button svg {
  width: 14px;
  height: 14px;
}

#result-prev svg {
  transform: rotate(180deg);
}

.result-pagination button:hover {
  color: var(--accent-fg, #f4f1e7);
}

.result-pagination button:disabled {
  opacity: 0.25;
}

#result-page {
  color: #afbfaa;
  font:
    600 10px ReferenceUI,
    sans-serif;
  letter-spacing: 0.2em;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex: none;
}

.result-actions > button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  min-height: 46px;
  padding: 12px 24px;
  font:
    600 15px ReferenceHeading,
    sans-serif;
  letter-spacing: 0.07em;
}

.result-actions > button svg {
  width: 17px;
  height: 17px;
}

.operation-report .page-footer {
  margin-top: 0;
  padding-top: 12px;
}

@media (max-height: 760px) {
  #results {
    padding-top: 14px;
    padding-bottom: 14px;
    --result-row-height: 30px;
  }

  #results .results-shell {
    gap: 14px;
  }

  #results .page-brandbar {
    min-height: 40px;
    padding-bottom: 8px;
  }

  #results .page-brandbar img {
    height: 38px;
    width: 128px;
  }

  .result-content {
    gap: 16px;
  }

  #results #result-title {
    font-size: 62px;
    margin: 4px 0 7px;
  }

  #results .result-score {
    margin: 9px 0;
  }

  #results .result-score b {
    font-size: 38px;
  }

  #results #result-stats b {
    font-size: 25px;
  }

  #results #result-stats > div {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media (max-width: 600px) {
  #results {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  #results .page-brandbar > span {
    font-size: 7px;
    letter-spacing: 0.08em;
    max-width: 145px;
  }

  #results #result-title {
    font-size: 64px;
  }

  #results #result-subtitle {
    font-size: 8px;
    letter-spacing: 0.09em;
  }

  #results #result-stats > div {
    padding-left: 7px;
    padding-right: 7px;
  }

  #results #result-stats small {
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  #results .board-table :is(th, td) {
    padding-left: 7px;
    padding-right: 7px;
  }

  #results .board-table th {
    font-size: 7px;
    letter-spacing: 0.03em;
  }

  #results .board-table td {
    font-size: 11px;
  }

  #results .board-table :is(th, td):first-child {
    width: 42%;
  }

  #results .board-table td:first-child > span {
    max-width: calc(100% - 39px);
  }

  .result-team-dot {
    margin-right: 6px;
  }

  #results .board-table td:first-child > small {
    margin-left: 5px;
    font-size: 6px;
  }

  .result-actions {
    gap: 9px;
  }

  .result-actions > button {
    flex: 1;
    padding: 11px;
    gap: 12px;
    font-size: 12px;
  }

  #results .page-footer {
    font-size: 6px;
    letter-spacing: 0.05em;
  }
}

@media (max-height: 600px) and (min-width: 480px) and (orientation: landscape) {
  #results {
    --result-rows: 4;
    --result-row-height: 27px;
  }

  #results .results-shell {
    gap: 12px;
  }

  #results .page-brandbar {
    min-height: 30px;
    padding-bottom: 5px;
  }

  #results .page-brandbar img {
    height: 28px;
    width: 105px;
  }

  .result-content {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 30px;
  }

  #results #result-title {
    font-size: 56px;
  }

  #results #result-subtitle {
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  #results .result-score {
    gap: 18px;
    margin: 9px 0;
  }

  #results .result-score > div {
    min-width: 70px;
  }

  #results .result-score b {
    font-size: 34px;
  }

  #results .result-score small {
    font-size: 6px;
  }

  #results #result-stats > div {
    padding: 4px 7px;
  }

  #results #result-stats b {
    font-size: 23px;
  }

  #results #result-stats small {
    font-size: 6px;
    letter-spacing: 0.04em;
  }

  #results .board-table :is(th, td) {
    padding-left: 7px;
    padding-right: 7px;
  }

  #results .board-table th {
    font-size: 7px;
  }

  #results .board-table td {
    font-size: 11px;
  }

  .result-roster h3 {
    font-size: 10px;
  }

  .result-actions > button {
    min-height: 36px;
    padding: 8px 20px;
    font-size: 12px;
  }

  #results .page-footer {
    padding-top: 7px;
  }
}

@media (max-height: 610px) and (max-width: 659px) {
  #results {
    --result-rows: 3;
    --result-row-height: 27px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #results .results-shell {
    gap: 10px;
  }

  .result-content {
    gap: 10px;
  }

  #results #result-title {
    font-size: 48px;
  }

  #results .result-score b {
    font-size: 30px;
  }

  #results .page-brandbar img {
    height: 30px;
    width: 105px;
  }

  .result-actions > button {
    min-height: 38px;
    padding: 8px;
  }
}

@media (max-height: 380px) {
  #results {
    --result-rows: 3;
    --result-row-height: 25px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  #results .results-shell {
    gap: 8px;
  }

  #results .page-footer {
    display: none;
  }
}

/* Reports retain readable labels and scroll naturally on short displays. */
#results {
  overflow-x: hidden;
  overflow-y: auto;
}

#results .results-shell {
  max-height: none;
  overflow: visible;
}

#results
  :is(
    .eyebrow,
    #result-subtitle,
    .page-brandbar > span,
    .result-score small,
    #result-stats small,
    .board-table th,
    .board-table td small,
    .result-roster > header > span,
    .result-pagination button,
    .result-pagination > span,
    .page-footer
  ) {
  font-size: clamp(11px, 0.75vw, 13px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

#results .result-roster h3 {
  font-size: clamp(13px, 1vw, 16px);
}

#results .page-footer {
  flex-wrap: wrap;
  gap: 6px 12px;
}

@media (max-height: 700px) {
  #results {
    align-items: start;
  }
}
#death-screen {
  display: grid;
  place-items: center;
  background: none;
  text-align: center;
  color: #f2f3e6;
}

#death-screen > div {
  display: grid;
  justify-items: center;
  gap: 14px;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  width: min(900px, calc(100% - 48px));
  text-shadow: 0 2px 12px #000b;
}

#death-screen .eyebrow {
  justify-content: center;
  color: #d6e2cb;
  font-size: 15px;
  letter-spacing: 0.25em;
  line-height: 1.5;
}

#death-screen .operation-outcome-title {
  font-size: clamp(40px, min(6vw, 12vh), 86px);
  margin: 0;
  text-wrap: balance;
}

#death-screen p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font:
    600 14px ReferenceUI,
    sans-serif;
  letter-spacing: 0.16em;
  color: #b3c6af;
}

#death-screen p.death-reason {
  color: #e8efdc;
  font-size: 16px;
}

#death-screen #respawn-count {
  color: var(--accent-fg, #f4f1e7);
  font:
    600 44px/1 ReferenceHeading,
    sans-serif;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Keep the artwork in full color. Only a light black shade aids legibility. */
#pause .pause-backdrop {
  background:
    linear-gradient(90deg, #00000070, #00000038 55%, #00000012),
    url("../image/lobby/solstice-canyon-v4.avif") center/cover;
}
#pause .pause-recon {
  background:
    linear-gradient(0deg, #00000045, transparent 65%),
    url("../image/lobby/solstice-canyon-v4.avif") 76% 60% / cover;
}
#pause .pause-shell {
  text-shadow: 0 2px 14px #0009;
}
#pause .pause-shell > .eyebrow,
#pause .pause-shell > p,
#pause .pause-shell > small {
  color: #eef0e9;
}
#pause .pause-brief {
  background: #10202b80;
  border-top-color: var(--accent);
}
#pause .pause-actions #resume-match {
  border-left-color: #ffe1d3;
}
.operation-report::before {
  background:
    linear-gradient(90deg, #00000057, #00000038 58%, #00000028),
    url("../image/lobby/solstice-canyon-v4.avif") center/cover;
}
#results .result-overview {
  text-shadow: 0 2px 12px #000c;
}
#results .result-content {
  gap: 22px;
}
#results #result-stats {
  margin-top: 24px;
}
#results .result-story-note {
  font:
    500 14px/1.5 ReferenceUI,
    sans-serif;
  color: #f0f1e9;
  max-width: 620px;
  margin: 16px auto 0;
}
#results .result-actions {
  flex-wrap: wrap;
  gap: 10px;
}
#results .result-actions > button {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
  gap: 14px;
}
#results #result-board {
  height: calc(5 * var(--result-row-height));
  overflow: auto;
}
@media (max-width: 700px) {
  #death-screen .eyebrow {
    font-size: 12px;
    letter-spacing: 0.15em;
  }
  #death-screen p {
    font-size: 12px;
  }
  .reference-screen .page-brandbar {
    min-height: 65px;
    gap: 18px;
  }
  .reference-screen .report-brand {
    width: 130px;
    height: 47px;
    font-size: 48px;
  }
  .reference-screen .page-brandbar > span {
    font-size: 10px;
  }
  #results .result-actions > button {
    flex: 1 1 44%;
    font-size: 12px;
    padding: 10px;
  }
}
@media (max-height: 500px) {
  #results .result-story-note {
    font-size: 12px;
    margin: 8px auto 0;
  }
  #results #result-stats {
    margin-top: 12px;
  }
  #results .result-actions > button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }
}
