/* Scope this pass to lobby artwork, pause presentation and damage feedback. */
#lobby {
  --menu-image: url("../assets/ui/combat/combat.webp");
}

#lobby .feature-art {
  background-image: url("../assets/ui/combat/combat.webp");
}

#lobby .field-tile {
  background-image: url("../assets/ui/combat/field.webp");
}

#lobby .map-tile {
  background-image: url("../assets/ui/combat/overview.webp");
}

#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("../assets/ui/combat/loader.webp") 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: 3vh 0 2vh;
  border-bottom: 1px solid #dce9e322;
  flex-shrink: 0;
}

.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: "Barlow Condensed", Barlow, 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);
}

#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("../assets/ui/combat/overview.webp") 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);
  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: Rajdhani, 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;
}

/* One static alpha texture. Only its opacity is updated during play. */
#damage-overlay {
  background: none;
  box-shadow: none;
  opacity: 0;
  contain: strict;
  will-change: opacity;
  transition: opacity 0.07s linear;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.damage-blood-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@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: 12px 0;
  }

  .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: 8px 0;
  }

  .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 (prefers-reduced-motion: reduce) {
  #damage-overlay {
    transition: opacity 0.2s linear;
  }
}

@media (max-height: 470px) and (min-width: 600px) {
  .pause-topline {
    padding: 6px 0;
  }

  .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;
  }
}
