@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700&display=swap');
:root {
  font-family: Barlow, Arial, sans-serif;
  color: #f1f0e8;
  background: #131414;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.8' filter='url(%23n)'/%3E%3C/svg%3E");
}
#lobby {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(14, 20, 17, 0.97) 0%,
      rgba(14, 20, 17, 0.87) 34%,
      rgba(14, 20, 17, 0.15) 74%
    ),
    linear-gradient(0deg, #131415bb, transparent 35%);
  padding: 30px 4.5vw;
  overflow: auto;
}
header,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -2px;
}
.brand span {
  font-size: 12px;
  letter-spacing: 3px;
  vertical-align: middle;
  margin-left: 12px;
}
.network {
  font-size: 10px;
  letter-spacing: 2px;
  background: #1a1b1cbb;
  border: 1px solid #787a7c55;
  padding: 11px 16px;
}
.network i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ffc928;
  border-radius: 50%;
  margin-right: 8px;
}
main {
  margin-top: 6vh;
  width: 500px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  color: #c1c3c5;
}
h1 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  text-transform: uppercase;
  font-size: clamp(70px, 7.6vw, 116px);
  line-height: 0.88;
  letter-spacing: -2px;
  margin: 22px 0;
}
h1 em {
  font-style: normal;
  color: #ffc928;
}
.intro {
  font-size: 16px;
  line-height: 1.6;
  color: #b7b8b9;
}
.chips {
  display: flex;
  gap: 18px;
  margin: 22px 0;
  font-size: 9px;
  letter-spacing: 1px;
  color: #969798;
}
form {
  width: 370px;
}
form > label:first-child {
  font-size: 10px;
  letter-spacing: 2px;
  display: block;
  margin: 20px 0 9px;
}
#name {
  width: 100%;
  background: #1c1d1de8;
  border: 1px solid #67696a88;
  color: white;
  padding: 14px 16px;
  outline: none;
}
#name:focus {
  border-color: #ffc928;
}
.teams {
  display: flex;
  gap: 9px;
  margin: 10px 0 16px;
}
.teams label {
  flex: 1;
}
.teams input {
  position: absolute;
  opacity: 0;
}
.teams span {
  display: block;
  border: 1px solid #58595a;
  padding: 12px 8px;
  font-size: 10px;
  letter-spacing: 1px;
  text-align: center;
  color: #afb0b0;
}
.teams input:checked + span {
  border-color: #8cb8e1;
  color: #b6dfff;
  background: #4c82b329;
}
.teams label:last-child input:checked + span {
  border-color: #dba467;
  color: #ffd2a0;
  background: #9c5c2429;
}
.primary {
  border: 0;
  background: #ffc928;
  color: #1e1f20;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 17px 20px;
  width: 100%;
  font-size: 12px;
}
.primary b {
  float: right;
  font-size: 18px;
}
.primary:hover {
  background: #ffd95e;
}
.practice {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #b7b8b9;
  margin-top: 13px;
  cursor: pointer;
}
input[type='checkbox'] {
  accent-color: #ffc928;
}
#status {
  font-size: 11px;
  color: #a2a4a5;
  min-height: 16px;
}
.map-label {
  position: absolute;
  right: 5vw;
  bottom: 120px;
  border-left: 2px solid #ffc928;
  padding: 4px 0 4px 24px;
}
.map-label > span {
  font-size: 10px;
  letter-spacing: 3px;
  color: #ffc928;
}
.map-label h2 {
  font:
    700 44px 'Barlow Condensed',
    Impact;
  margin: 4px 0;
}
.map-label p {
  color: #cacbcc;
  font-size: 12px;
}
.map-label div {
  font-size: 9px;
  letter-spacing: 2px;
  color: #b2b4b5;
}
.map-label div span {
  margin: 0 12px;
}
footer {
  position: absolute;
  bottom: 25px;
  left: 4.5vw;
  right: 4.5vw;
  border-top: 1px solid #8f919344;
  padding-top: 18px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #9b9d9e;
}
footer button,
#leave {
  color: #d8dadc;
  background: transparent;
  border: 0;
  font-size: 10px;
  letter-spacing: 2px;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.topscore {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
  background: #0e0e0ec9;
  padding: 10px 26px;
  border-bottom: 2px solid #ffc928;
}
.topscore > span {
  font:
    bold 42px 'Barlow Condensed',
    Impact;
}
.blue {
  color: #89c6fb;
}
.orange {
  color: #ffb06a;
}
.topscore div {
  text-align: center;
}
.topscore small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: #adafb0;
}
.topscore b {
  font-size: 24px;
}
#radar {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #141515bc;
  border: 1px solid #75787b77;
  border-radius: 50%;
}
#crosshair,
#hitmarker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 25px;
  color: #d2f573;
  text-shadow: 0 1px 3px black;
}
#crosshair {
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
  /* --aim-open: 1 parado; cresce correndo/pulando (frame-loop.js, movement.js). */
  transform: translate(-50%, -50%) scale(var(--aim-open, 1));
  transition: transform 80ms linear;
}
#hitmarker {
  opacity: 0;
  color: #fff;
  font-size: 40px;
}
#damage {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px #c82525;
  opacity: 0;
}
.bottom {
  position: absolute;
  bottom: 25px;
  left: 35px;
  right: 35px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.bottom small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #c2c5c6;
  display: block;
}
.bottom strong {
  font:
    600 52px 'Barlow Condensed',
    Impact;
}
.bottom i {
  font: 400 24px Barlow;
  color: #c1c6ca;
}
.health i {
  color: #ffc928;
}
.hints {
  font-size: 10px;
  word-spacing: 5px;
  color: #e7e8e9;
  padding-bottom: 12px;
}
.hints span {
  color: #949697;
  margin-right: 14px;
  font-size: 8px;
}
.ammo {
  text-align: right;
}
#killfeed {
  position: absolute;
  right: 25px;
  top: 25px;
  font-size: 12px;
}
#killfeed p {
  background: #131414d9;
  padding: 9px 14px;
  margin: 0 0 5px;
  border-right: 2px solid #ffc928;
}
#center {
  position: absolute;
  top: 35%;
  width: 100%;
  text-align: center;
  font:
    600 38px 'Barlow Condensed',
    Impact;
  text-shadow: 0 2px 10px black;
}
#board,
#pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 90vw);
  padding: 30px;
  background: #151616f0;
  border: 1px solid #727679;
  backdrop-filter: blur(12px);
}
#board h2,
#pause h2,
dialog h2 {
  font:
    700 36px 'Barlow Condensed',
    Impact;
  margin: 0 0 20px;
}
#board table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
td,
th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ffffff18;
}
#pause {
  pointer-events: auto;
  text-align: center;
}
#pause p {
  color: #afb1b2;
}
#leave {
  margin-top: 22px;
}
.subtle {
  font-size: 11px;
}
dialog {
  background: #191a1b;
  color: #edeeef;
  border: 1px solid #6e7173;
  max-width: 520px;
  padding: 30px;
}
dialog::backdrop {
  background: #000a;
}
dialog p {
  line-height: 1.7;
  font-size: 14px;
}
@media (max-height: 780px) {
  main {
    margin-top: 3vh;
  }
  h1 {
    font-size: 80px;
  }
  .intro {
    margin: 12px 0;
  }
  .chips {
    margin: 14px 0;
  }
  form > label:first-child {
    margin-top: 12px;
  }
  footer {
    bottom: 15px;
  }
}
@media (max-width: 800px) {
  main {
    width: 100%;
    margin-top: 40px;
  }
  .map-label {
    display: none;
  }
  .brand span {
    font-size: 9px;
  }
  .network {
    font-size: 8px;
    padding: 8px;
  }
  .hints {
    display: none;
  }
  form {
    width: min(370px, 100%);
  }
  footer {
    position: static;
    margin-top: 35px;
  }
  #lobby {
    background: linear-gradient(90deg, #111111ee, #11111199);
  }
  #radar {
    width: 110px;
    height: 110px;
  }
}

#scope {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.scope-lens {
  position: relative;
  width: 82vmin;
  height: 82vmin;
  border-radius: 50%;
  box-shadow: 0 0 0 150vmax #030303;
  border: 3px solid #111;
}
.scope-lens::before,
.scope-lens::after {
  content: '';
  position: absolute;
  background: #111;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.scope-lens::before {
  width: 100%;
  height: 1px;
}
.scope-lens::after {
  height: 100%;
  width: 1px;
}
.scope-lens span {
  position: absolute;
  bottom: 15%;
  width: 100%;
  text-align: center;
  font: 10px monospace;
  color: #1a1b1c;
  letter-spacing: 3px;
}
.topscore,
#radar,
#killfeed {
  z-index: 2;
}

#headshot {
  position: absolute;
  z-index: 3;
  top: 61%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  color: #ffd95e;
  text-shadow: 0 3px 10px #000;
}
#headshot strong {
  display: block;
  font:
    800 46px 'Barlow Condensed',
    Impact,
    sans-serif;
  letter-spacing: 5px;
}
#headshot span {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 4px;
}
.hints {
  word-spacing: 2px;
}
.hints span {
  margin-right: 7px;
}
@media (max-width: 1200px) {
  .hints {
    display: none;
  }
}

.mode-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 10px;
  letter-spacing: 2px;
}
#mode {
  width: 100%;
  padding: 10px;
  background: #1c1d1d;
  color: #e7e9ea;
  border: 1px solid #67696a88;
}
#roomInfo {
  display: block;
  font-size: 10px;
  color: #a9abac;
  margin: 7px 0;
}
#mode:disabled {
  opacity: 0.8;
}
@media (max-height: 900px) {
  #lobby footer {
    position: static;
    margin-top: 24px;
  }
  #lobby main {
    padding-bottom: 12px;
  }
}

#damage.head-impact {
  box-shadow: inset 0 0 160px 35px #aa1528;
  background:
    radial-gradient(ellipse at 8% 15%, #a5102570 0, transparent 19%),
    radial-gradient(ellipse at 93% 77%, #a5102560 0, transparent 18%);
}

.skin-picker {
  padding: 0;
  border: 0;
  margin: 16px 0;
}
.skin-picker legend {
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 9px;
}
.skin-options {
  display: flex;
  gap: 7px;
}
.skin-options label {
  flex: 1;
  cursor: pointer;
}
.skin-options input {
  position: absolute;
  opacity: 0;
}
.skin-options span {
  display: block;
  padding: 10px 4px;
  text-align: center;
  border: 1px solid #616365;
  background: #1a1c1d;
  font-size: 12px;
}
.skin-options small {
  display: block;
  font-size: 8px;
  color: #a8aaac;
  margin-top: 5px;
}
.skin-options input:checked + span {
  border-color: #ffc928;
  background: #343638;
  color: #ffd95e;
}
.skin-options input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.skin-preview {
  background: radial-gradient(ellipse at center, #4f525466, #18191a99);
  border: 1px solid #55585a55;
  margin-top: 8px;
  text-align: center;
}
.skin-preview canvas {
  display: block;
  width: 100%;
  height: 170px;
}
.skin-preview > small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #a5a8aa;
  padding: 0 0 10px;
}
#lobby footer {
  position: static;
  margin-top: 24px;
}
#lobby main {
  padding-bottom: 12px;
}

#map {
  width: 100%;
  padding: 10px;
  background: #1c1d1d;
  color: #e7e9ea;
  border: 1px solid #67696a88;
}
#map:disabled {
  opacity: 0.8;
}
#mapInfo {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #bec3c6;
  margin-top: 7px;
}
.map-label {
  max-width: 330px;
}
.map-label h2 {
  line-height: 1;
}

#spawnProtection {
  position: absolute;
  top: 108px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 15px;
  background: #272a2ddc;
  border: 1px solid #ffd95e;
  color: #ffd95e;
  font-size: 11px;
  letter-spacing: 2px;
  animation: shieldPulse 0.7s ease-in-out infinite;
  z-index: 3;
}
@keyframes shieldPulse {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  #spawnProtection {
    animation: none;
  }
}

#grenadeCharge {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translateX(-50%);
  width: 250px;
  background: #18191add;
  padding: 14px;
  border: 1px solid #949a9f;
  z-index: 4;
}
#grenadeCharge span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.2px;
}
#chargeValue {
  float: right;
  color: #ffc928;
}
#grenadeCharge > div {
  height: 9px;
  background: #47494a;
  margin: 9px 0;
}
#chargeFill {
  display: block;
  height: 100%;
  background: #ffc928;
  width: 0;
}
#grenadeCharge small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #c0c3c5;
}

#pause {
  max-height: 95vh;
  overflow: auto;
}
#classChoices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#classChoices button,
#fullscreen {
  padding: 13px;
  color: #e3e4e5;
  background: #2a2c2d;
  border: 1px solid #67696b;
}
#classChoices small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #b3b6b8;
}
#classChoices button[aria-pressed='true'] {
  border-color: #ffc928;
  background: #3b3e41;
}
#fullscreen {
  margin-bottom: 12px;
  width: 100%;
}

#headshot {
  top: 22%;
  padding: 14px 32px;
  background: linear-gradient(100deg, transparent, #63171de8 18%, #300c14dc 82%, transparent);
  color: #fff0d1;
  filter: drop-shadow(0 4px 8px #0008);
}
#headshot strong {
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 48px);
}
#headshot[data-award='chainkiller'],
#headshot[data-award='chainheadshot'] {
  color: #ffde80;
}
#headshot[data-award='piercingshot'] {
  color: #c8ecff;
}

#classPanel {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 90vw);
  max-height: 90vh;
  overflow: auto;
  padding: 30px;
  background: #151616f5;
  border: 1px solid #727679;
  backdrop-filter: blur(12px);
  pointer-events: auto;
  text-align: center;
}
#classPanel h2 {
  font:
    700 36px 'Barlow Condensed',
    Impact;
  margin: 0 0 15px;
}
#classPanel p {
  color: #afb1b2;
}
#closeClasses {
  padding: 14px;
  width: 100%;
  background: #ffc928;
  border: 0;
  color: #1e1f20;
  font-weight: bold;
}
#classHint {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 1px;
  color: #ffc928;
  white-space: nowrap;
}

#networkStats {
  position: absolute;
  left: 30px;
  top: 190px;
  font-size: 11px;
  color: #d4d7d9;
  text-shadow: 0 1px 3px #000;
}
@media (max-width: 800px) {
  #networkStats {
    top: 142px;
  }
}
#ladderHint {
  position: absolute;
  left: 50%;
  bottom: 24%;
  transform: translateX(-50%);
  padding: 9px 14px;
  color: #e7e7e7;
  background: #111315dd;
  border: 1px solid #ffc928aa;
  box-shadow: 0 8px 24px #0008;
  text-shadow: 0 1px 3px #000;
  font:
    700 11px 'Barlow Condensed',
    Impact,
    sans-serif;
  letter-spacing: 1.2px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}
/* Câmera de morte do modo bomba: de quem é a visão. */
#spectateLabel {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  padding: 8px 16px;
  color: #e7e7e7;
  background: #111315cc;
  border: 1px solid #ffc928aa;
  text-shadow: 0 1px 3px #000;
  font:
    700 16px 'Barlow Condensed',
    Impact,
    sans-serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
}
#spectateLabel[hidden] {
  display: none;
}
#ladderHint[hidden] {
  display: none;
}

.scope-lens {
  background:
    radial-gradient(ellipse at 30% 20%, #dbffff30, transparent 45%),
    linear-gradient(125deg, transparent 35%, #b4eaff16 36%, transparent 38%),
    radial-gradient(circle, transparent 48%, #194b5370 100%);
  box-shadow:
    inset 0 0 35px #7ccbd83a,
    0 0 0 150vmax #030303;
}
#crosshair.awp-open {
  font-size: 0;
  width: 48px;
  height: 48px;
  background:
    linear-gradient(#d2f573, #d2f573) center top/2px 12px no-repeat,
    linear-gradient(#d2f573, #d2f573) center bottom/2px 12px no-repeat,
    linear-gradient(#d2f573, #d2f573) left center/12px 2px no-repeat,
    linear-gradient(#d2f573, #d2f573) right center/12px 2px no-repeat;
}
#board {
  z-index: 30;
  width: min(700px, 94vw);
  max-height: 80vh;
  overflow: auto;
}
#board th {
  color: #ffc928;
  font-size: 12px;
}
#board td:nth-last-child(-n + 2) {
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

.skin-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.skin-options span {
  height: 100%;
  box-sizing: border-box;
}
.teams[hidden] {
  display: none;
}

#roomBrowser h2,
#waitingRoom h2 {
  font-size: 16px;
  margin: 22px 0 12px;
}
#roomBrowser input {
  margin-bottom: 14px;
}
.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #55585a77;
  font-size: 12px;
}
.room-row button,
#hostActions button,
#leaveRoom {
  padding: 10px;
  border: 1px solid #777c7f;
  background: #28292a;
  color: #dbdee0;
  cursor: pointer;
}
#hostActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
#hostActions[hidden],
#roomBrowser[hidden],
#waitingRoom[hidden] {
  display: none;
}
#hostActions .primary {
  width: 100%;
  background: #ffc928;
  color: #1c1d1e;
}
#roomList {
  margin-bottom: 20px;
  color: #c4c6c8;
}
#waitingInfo {
  font-size: 13px;
  color: #ffc928;
}
.profile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0 24px;
  font-size: 14px;
}
.profile-bar button,
#profileDialog button:not(.primary) {
  background: #2d2f30;
  color: #d8dadc;
  border: 1px solid #737678;
  padding: 10px;
  cursor: pointer;
}
#profileDialog {
  width: min(440px, 90vw);
  padding: 28px;
  background: #1c1d1e;
  color: #e2e4e5;
  border: 1px solid #7b7e81;
}
#profileDialog::backdrop {
  background: #090a0ad9;
}
#profileDialog label {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 1.4px;
}
#profileDialog input,
#profileDialog select {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 14px;
  padding: 12px;
  color: #ecedee;
  background: #2b2c2d;
  border: 1px solid #696c6f;
  font: inherit;
}
#profileDialog input[readonly] {
  opacity: 0.65;
}
#profileDialog p {
  font-size: 13px;
  line-height: 1.6;
}
#profileError {
  color: #f2bd8c;
}
#profileDialog [hidden] {
  display: none;
}
/* Compact friends lobby, with explicit team slots. */
#lobby main {
  width: min(920px, 100%);
  margin-top: 24px;
}
#lobby h1 {
  font-size: clamp(42px, 5vw, 64px);
  margin: 14px 0;
}
#lobby .chips {
  margin: 12px 0;
}
#lobby form {
  width: 100%;
}
#lobby .map-label {
  display: none;
}
#lobby {
  background: linear-gradient(90deg, #141516f5, #141516d9 72%, #14151677);
}
.match-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #1e2021e8;
  border: 1px solid #5c5f61;
  margin: 10px 0;
}
.match-card:first-child {
  border-left: 3px solid #ffc928;
}
.match-card strong {
  display: block;
  font-size: 19px;
}
.match-card small {
  display: block;
  color: #b6b9bb;
  margin-top: 7px;
}
.match-card button,
#newRoom,
#cancelRoomChoice,
.team-column > button {
  padding: 12px;
  background: #2d2f30;
  color: #e3e5e7;
  border: 1px solid #7a7e81;
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
#newRoom {
  margin: 12px 0;
}
#createRoom label {
  display: block;
  font-size: 11px;
  margin: 16px 0 8px;
}
#roomName {
  width: 100%;
  padding: 14px;
  background: #222324;
  color: #fff;
  border: 1px solid #696c6f;
}
#roomSettings {
  max-width: 640px;
  margin-top: 18px;
}
.roster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.roster-grid.solo {
  grid-template-columns: 1fr;
}
.team-column {
  border: 1px solid #52779b;
  background: #132d469c;
  padding: 16px;
}
.team-column.terrorists {
  border-color: #aa535b;
  background: #491e279c;
}
.team-column.individual {
  border-color: #797f83;
  background: #272829aa;
}
.team-column h3 {
  font-size: 15px;
  letter-spacing: 2px;
  margin: 0 0 14px;
  color: #93ceff;
}
.team-column.terrorists h3 {
  color: #ff919b;
}
.team-column.individual h3 {
  color: #ffc928;
}
.player-slot {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid #ffffff1c;
  font-size: 13px;
}
.player-slot.vacant {
  color: #a7a9aa;
  font-size: 10px;
  letter-spacing: 2px;
}
.player-slot button {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 20px;
}
.team-column > button {
  width: 100%;
  margin-top: 12px;
}
.teams label:last-child input:checked + span {
  border-color: #ec7683;
  color: #ffb9c1;
  background: #ab394433;
}
.orange {
  color: #ff858f;
}
#cancelRoomChoice {
  margin-top: 12px;
}
#lobby .skin-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .roster-grid {
    gap: 8px;
  }
  .team-column {
    padding: 9px;
  }
  .team-column h3 {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .player-slot {
    font-size: 11px;
  }
  .match-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .match-card button {
    width: 100%;
  }
}

#lobby h1 {
  line-height: 0.98;
}
#breakReminder {
  width: min(480px, 90vw);
  padding: 32px;
  background: #1c1d1ef5;
  border: 1px solid #889096;
}
#breakReminder::backdrop {
  background: #0b0b0bcc;
}
#breakReminder small {
  display: block;
  color: #ffc928;
  letter-spacing: 2px;
  font-size: 10px;
  margin-bottom: 20px;
}
#breakReminder h2 {
  font-size: 34px;
  line-height: 1.1;
}
#breakReminder p {
  color: #c5c7c8;
  margin-bottom: 26px;
}
.equipment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  margin: 16px 0;
}
.equipment-options legend {
  font-size: 11px;
  letter-spacing: 2px;
}
.equipment-options label {
  display: block;
  font-size: 12px;
  color: #c6c8ca;
}
.equipment-options select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  background: #242526;
  border: 1px solid #6d7072;
  color: #e8eaec;
  font: inherit;
}
.equipment-options .equipment-note {
  grid-column: 1/-1;
  margin: 0;
  color: #a9abac;
  font-size: 11px;
}
#classPanel {
  max-height: 90vh;
  overflow: auto;
}

/* Compact room lobby and optional player customization. */
#lobby.in-room .eyebrow,
#lobby.in-room h1,
#lobby.in-room .intro,
#lobby.in-room .chips {
  display: none;
}
#lobby.in-room main {
  margin-top: 16px;
}
#customizePlayer,
#cancelPlayer {
  padding: 13px 18px;
  border: 1px solid #7d8184;
  background: #2d2e2f;
  color: #e3e5e7;
  font: inherit;
}
#customizePlayer {
  display: block;
  width: 100%;
  margin: 12px 0 18px;
}
#leaveRoom.danger,
#leave.danger {
  background: #8e2935;
  border: 1px solid #ed7886;
  color: #fff;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}
#leaveRoom.danger:hover,
#leave.danger:hover {
  background: #af3442;
}
#playerDialog {
  box-sizing: border-box;
  width: min(1120px, 96vw);
  max-width: 1120px;
  max-height: 94dvh;
  overflow: auto;
  padding: 26px;
}
#playerDialog > h2 {
  font-size: 34px;
  margin: 0 0 8px;
}
#playerDialog > p {
  margin: 0 0 18px;
}
.player-customization-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}
.player-customization-controls,
.player-customization-previews {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
#playerDialog .skin-picker {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: #1c1d1e;
  border: 1px solid #464849;
}
#playerDialog .skin-picker legend {
  padding: 0 5px;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 1.8px;
}
#playerDialog .skin-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
#playerDialog .skin-options label {
  min-width: 0;
}
#playerDialog .skin-options span {
  padding: 11px 12px;
  text-align: left;
  font-size: 13px;
}
#playerDialog .skin-options small {
  font-size: 10px;
}
#playerDialog .skin-preview {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 245px;
  margin: 0;
}
#playerDialog .skin-preview canvas {
  width: 100%;
  height: 245px;
  max-width: 100%;
}
#playerDialog .equipment-options {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  background: #1c1d1e;
  border: 1px solid #464849;
}
#playerDialog .equipment-options label {
  font-size: 11px;
  letter-spacing: 0.6px;
}
#playerDialog .equipment-options .equipment-note {
  grid-column: auto;
  line-height: 1.5;
}
.arsenal-inspector {
  min-width: 0;
  padding: 13px;
  background: #1c1d1e;
  border: 1px solid #464849;
}
.arsenal-inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.arsenal-inspector-heading small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #a9abac;
}
.arsenal-inspector-heading strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  color: #e5e7e9;
}
#arsenalPreviewSide {
  font-size: 8px;
  letter-spacing: 1px;
  text-align: right;
  color: #ffc928;
}
.arsenal-preview-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
}
.arsenal-preview-slots button {
  padding: 7px 4px;
  background: #242526;
  border: 1px solid #57595a;
  color: #c6c8ca;
  font: 700 9px system-ui;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.arsenal-preview-slots button[aria-pressed='true'] {
  background: #343638;
  border-color: #ffc928;
  color: #ffd95e;
}
.arsenal-preview-stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #585b5d88, #151616 75%);
  border: 1px solid #464849;
}
#arsenalPreview {
  display: block;
  width: 100%;
  height: 220px;
  cursor: grab;
  touch-action: none;
  outline: none;
}
#arsenalPreview:active {
  cursor: grabbing;
}
#arsenalPreview:focus-visible {
  outline: 2px solid #ffc928;
  outline-offset: -3px;
}
.arsenal-rotate-controls {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: flex;
  gap: 5px;
}
.arsenal-rotate-controls button {
  width: 30px;
  height: 30px;
  padding: 0;
  background: #151616cc;
  border: 1px solid #737678;
  color: #e3e5e7;
  font-size: 19px;
  cursor: pointer;
}
.arsenal-inspector > p {
  margin: 9px 0 0;
  color: #a9abac;
  font-size: 10px;
  line-height: 1.4;
}
#openArsenalGallery,
.arsenal-gallery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid #7d8285;
  background: #292a2b;
  color: #dcdfe2;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
#openArsenalGallery:hover,
.arsenal-gallery-link:hover {
  border-color: #ffc928;
  color: #ffd95e;
  background: #343638;
}
#playerDialog .arsenal-gallery-link {
  width: 100%;
  margin-top: 10px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: -24px;
  background: #191a1b;
  padding: 14px 0;
}
.dialog-actions .primary {
  flex: 1;
}
button:focus-visible {
  outline: 2px solid #ffc928;
  outline-offset: 3px;
}
#lobbyMusicToggle {
  border: 1px solid #737678;
  background: #272829;
  color: #ffc928;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  cursor: pointer;
}
#lobbyMusicToggle:hover {
  background: #313334;
}
#killfeed {
  right: 24px;
  top: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  max-width: calc(100vw - 48px);
  pointer-events: none;
}
#killfeed .kill-entry {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 48px;
  max-width: 100%;
  padding: 7px 14px;
  margin: 0;
  background: #101316e8;
  border: 2px solid transparent;
  border-radius: 5px;
  box-shadow: 0 2px 8px #0005;
  font:
    700 25px 'Barlow Condensed',
    Impact,
    sans-serif;
  text-shadow: 0 1px 3px #000;
}
#killfeed .kill-player {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 210px;
  color: #e7e7e7;
  min-width: 0;
}
#killfeed .kill-team-blue {
  color: #79b4ff;
}
#killfeed .kill-team-orange {
  color: #ff777b;
}
#killfeed .kill-weapon-icon {
  width: 108px;
  height: 38px;
  flex: none;
  color: #f2f2f2;
  filter: drop-shadow(0 1px 1px #000);
}
#killfeed .kill-method-icon {
  width: 30px;
  height: 30px;
  flex: none;
  color: #f2f2f2;
}
#killfeed .kill-local {
  border-color: #e65757;
}
#killfeed .kill-local-death {
  background: #571b22ed;
}
@media (max-width: 700px) {
  #killfeed {
    right: 10px;
    max-width: calc(100vw - 20px);
  }
  #killfeed .kill-entry {
    font-size: 20px;
    gap: 7px;
    padding: 5px 8px;
    min-height: 40px;
  }
  #killfeed .kill-weapon-icon {
    width: 76px;
    height: 30px;
  }
  #killfeed .kill-method-icon {
    width: 25px;
    height: 25px;
  }
  #killfeed .kill-player {
    max-width: 130px;
  }
}

#crosshair.shotgun-reticle {
  width: 56px;
  height: 56px;
  border: 1.5px solid #d2f573;
  border-radius: 50%;
  font-size: 0;
  color: transparent;
  box-shadow: 0 0 3px #000;
}

#quickSwapFeedback {
  position: absolute;
  left: 50%;
  top: calc(50% + 36px);
  transform: translateX(-50%);
  padding: 5px 9px;
  border: 1px solid #ffc92855;
  background: #131414b8;
  color: #ffc928;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}
#quickSwapFeedback.quick-swap-pop {
  animation: quick-swap-pop 0.7s ease-out both;
}
@keyframes quick-swap-pop {
  0% {
    opacity: 0;
    translate: 0 4px;
  }
  18% {
    opacity: 1;
    translate: 0 0;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 760px) {
  #playerDialog {
    width: min(620px, 96vw);
    padding: 18px;
  }
  .player-customization-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .player-customization-controls {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  #playerDialog .skin-preview {
    min-height: 220px;
  }
  #playerDialog .skin-preview canvas {
    height: 220px;
  }
  #arsenalPreview {
    height: 200px;
  }
}
@media (max-width: 560px) {
  #playerDialog {
    padding: 14px;
  }
  #playerDialog .player-customization-controls {
    grid-template-columns: 1fr;
  }
  #playerDialog .skin-preview {
    min-height: 190px;
  }
  #playerDialog .skin-preview canvas {
    height: 190px;
  }
  #playerDialog .arsenal-preview-slots button {
    font-size: 8px;
  }
}
@media (max-width: 560px) {
  #openArsenalGallery {
    padding: 8px;
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  #lobby header {
    gap: 8px;
  }
  .brand span {
    margin-left: 5px;
  }
}
#pause #openAudioSettingsPause {
  width: 100%;
  padding: 13px;
  color: #e3e4e5;
  background: #2a2c2d;
  border: 1px solid #67696b;
  margin: 0 0 12px;
}
footer > div {
  display: flex;
  gap: 16px;
}
#audioSettings {
  width: min(440px, 92vw);
  padding: 30px;
  background: #191a1b;
  color: #edeeef;
  border: 1px solid #6e7173;
}
#audioSettings h2 {
  font:
    700 32px 'Barlow Condensed',
    Impact;
  margin: 0 0 12px;
}
#audioSettings > p {
  color: #afb1b2;
  line-height: 1.5;
}
.audio-setting {
  display: block;
  margin: 22px 0;
}
.audio-setting span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.audio-setting output {
  color: #ffc928;
  font-size: 13px;
  letter-spacing: 0;
}
.audio-setting input {
  display: block;
  width: 100%;
  margin: 13px 0 0;
  accent-color: #ffc928;
}
.audio-setting input:focus-visible {
  outline: 2px solid #ffc928;
  outline-offset: 4px;
}
#audioSettings .dialog-actions {
  position: static;
  bottom: auto;
  background: transparent;
  padding: 12px 0 0;
}
#resetAudioSettings {
  flex: 1;
  padding: 12px 14px;
  color: #dcdedf;
  background: #2a2c2d;
  border: 1px solid #67696b;
  font-size: 11px;
}

/* Waiting-room controls: add bots directly in the team roster and keep leave at the end. */
#roomRoster .player-slot .add-bot {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #ffc928;
  background: #ffc928;
  color: #1c1d1d;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}
#roomRoster .player-slot .add-bot:hover {
  background: #ffd95e;
}
#roomSettings > #leaveRoom {
  margin: 22px 0 0;
}

/* Large, on-demand weapon preview, reusing the interactive model canvas. */
.arsenal-zoom-trigger {
  width: 100%;
  margin-top: 10px;
  cursor: zoom-in;
  font: 700 10px system-ui;
  letter-spacing: 1px;
}
#arsenalZoomDialog {
  box-sizing: border-box;
  width: min(1200px, 96vw);
  max-width: 1200px;
  height: min(860px, 92dvh);
  max-height: 92dvh;
  margin: auto;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  background: #141516;
  color: #edeeef;
  border: 1px solid #7d8184;
  box-shadow: 0 24px 100px #000b;
}
#arsenalZoomDialog::backdrop {
  background: #070707e8;
  backdrop-filter: blur(8px);
}
#arsenalZoomDialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}
.arsenal-zoom-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.arsenal-zoom-header small,
.arsenal-zoom-footer span {
  color: #b0b5b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.arsenal-zoom-header h2 {
  margin: 5px 0 2px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}
.arsenal-zoom-header p {
  margin: 7px 0 0;
  color: #ffc928;
  font-size: 11px;
  letter-spacing: 1.5px;
}
#closeArsenalZoom {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #67696b;
  background: #242526;
  color: #edeeef;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
#closeArsenalZoom:hover {
  border-color: #ffc928;
  color: #ffd95e;
}
.arsenal-zoom-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #55585a;
  background: radial-gradient(ellipse at 50% 46%, #6b6f7277 0, #393b3d55 36%, #151616 76%);
}
#arsenalZoomStage #arsenalPreview {
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: grab;
  touch-action: none;
}
#arsenalZoomStage #arsenalPreview:active {
  cursor: grabbing;
}
#arsenalZoomStage .arsenal-rotate-controls {
  right: 14px;
  bottom: 14px;
  gap: 8px;
}
#arsenalZoomStage .arsenal-rotate-controls button {
  width: 44px;
  height: 44px;
  font-size: 25px;
  background: #141516dd;
}
.arsenal-zoom-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.arsenal-zoom-footer p {
  margin: 0;
  color: #c2c4c6;
  font-size: 12px;
}
@media (max-width: 720px) {
  #arsenalZoomDialog {
    width: 96vw;
    height: 90dvh;
    max-height: 90dvh;
    padding: 15px;
    gap: 12px;
  }
  .arsenal-zoom-header small {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .arsenal-zoom-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .arsenal-zoom-footer p {
    font-size: 11px;
  }
}

.knife-impact {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  animation: knifeImpact 0.42s ease-out forwards;
}
.knife-impact.received {
  background: linear-gradient(125deg, transparent 35%, #c82c3290 49%, transparent 55%);
  box-shadow: inset 0 0 100px #b31b2590;
}
.knife-impact.dealt:after {
  content: '✕';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 700 48px sans-serif;
  color: #ffcc83;
  text-shadow: 0 0 12px #dd631c;
}
@keyframes knifeImpact {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* Compact pistol optic: clear center, lightly blurred peripheral view. */
#scope.compact-scope {
  --optic-size: clamp(150px, 32vmin, 290px);
  pointer-events: none;
}
#scope.compact-scope::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background: #0b0c0c0d;
  mask-image: radial-gradient(
    circle at center,
    transparent calc(var(--optic-size) / 2 - 2px),
    #000 calc(var(--optic-size) / 2 + 2px)
  );
  -webkit-mask-image: radial-gradient(
    circle at center,
    transparent calc(var(--optic-size) / 2 - 2px),
    #000 calc(var(--optic-size) / 2 + 2px)
  );
}
#scope.compact-scope .scope-lens {
  box-sizing: border-box;
  width: var(--optic-size);
  height: var(--optic-size);
  border: 5px solid #28292a;
  box-shadow:
    0 0 0 2px #0d0e0e,
    inset 0 0 12px #83c9c522;
  background: radial-gradient(circle, transparent 65%, #89bbc51a 100%);
}
#scope.compact-scope .scope-lens::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ec523e;
  box-shadow: 0 0 3px #ff503a80;
}
#scope.compact-scope .scope-lens::after {
  width: 22px;
  height: 22px;
  border: 1px solid #ec523ea0;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}
#scope.compact-scope .scope-lens span {
  bottom: 12%;
  font-size: 8px;
  letter-spacing: 1px;
  color: #ced0d2;
  text-shadow: 0 1px 2px #000;
}
#scope:not([hidden]) ~ #crosshair {
  display: none;
}

#killfeed img.kill-weapon-icon,
#killfeed img.kill-method-icon {
  object-fit: contain;
}
#killfeed .kill-icon-cs {
  filter: brightness(0) invert(1) drop-shadow(0 1px 1px #000);
}
#killfeed .kill-icon-commons {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Account crosshair preferences; scopes retain their own optics. */
#crosshair,
.aim-preview {
  color: var(--aim-color, #d2f573);
}
.aim-reticle {
  position: relative;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}
.aim-reticle.aim-dot::after,
.aim-reticle.aim-cross-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aim-color, #d2f573);
  box-shadow: 0 1px 2px #000;
}
#crosshair.aim-dot,
.aim-preview.aim-dot {
  width: 16px;
  height: 16px;
  font-size: 0;
}
#crosshair.shotgun-reticle {
  width: 56px;
  height: 56px;
  font-size: 0;
  color: transparent;
  border-color: #d2f573;
}
#crosshair.shotgun-reticle::after {
  display: none;
}
#crosshairSettings {
  width: min(440px, 92vw);
  max-height: 90dvh;
  overflow: auto;
}
#crosshairSettings label {
  display: block;
  margin: 16px 0 8px;
  font-size: 12px;
  letter-spacing: 1px;
}
#crosshairSettings select {
  width: 100%;
  padding: 12px;
  background: #25332b;
  color: #edf5e5;
  border: 1px solid #687c5c;
  font: inherit;
}
.crosshair-preview-stage {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  background: linear-gradient(130deg, #6e7071, #2e3031);
  border: 1px solid #696c6f;
  border-radius: 4px;
}
.aim-preview {
  width: 16px;
  height: 16px;
  text-align: center;
}
#crosshairSaveStatus {
  font-size: 13px;
}

/* Four separated strokes and a central dot, at a compact 20px diameter. */
#crosshair.aim-cross-dot:not(.shotgun-reticle),
.aim-preview.aim-cross-dot {
  width: 20px;
  height: 20px;
  font-size: 0;
  background:
    linear-gradient(var(--aim-color, #d2f573), var(--aim-color, #d2f573)) center top/1px 6px
      no-repeat,
    linear-gradient(var(--aim-color, #d2f573), var(--aim-color, #d2f573)) center bottom/1px 6px
      no-repeat,
    linear-gradient(var(--aim-color, #d2f573), var(--aim-color, #d2f573)) left center/6px 1px
      no-repeat,
    linear-gradient(var(--aim-color, #d2f573), var(--aim-color, #d2f573)) right center/6px 1px
      no-repeat;
}
.aim-reticle.aim-cross-dot::after {
  width: 3px;
  height: 3px;
}

/* Quatro traços (padrão, 12 px): se encontram no centro parados e se afastam com o movimento. */
#crosshair.aim-lines:not(.shotgun-reticle),
.aim-preview.aim-lines {
  width: 12px;
  height: 12px;
  font-size: 0;
  text-shadow: none;
  filter: drop-shadow(0 0 1px #000);
  background:
    linear-gradient(var(--aim-color, #d2f573), var(--aim-color, #d2f573)) center top/2px 6px
      no-repeat,
    linear-gradient(var(--aim-color, #d2f573), var(--aim-color, #d2f573)) center bottom/2px 6px
      no-repeat,
    linear-gradient(var(--aim-color, #d2f573), var(--aim-color, #d2f573)) left center/6px 2px
      no-repeat,
    linear-gradient(var(--aim-color, #d2f573), var(--aim-color, #d2f573)) right center/6px 2px
      no-repeat;
}
#crosshair.aim-cross-dot {
  --aim-base: 20px;
}
/* Estilos de traços abrem pela largura (os traços ficam nas bordas e se afastam do centro);
   os outros estilos crescem por escala (regra do #crosshair). --aim-open vem do frame-loop. */
#crosshair.aim-gap:not(.shotgun-reticle) {
  transform: translate(-50%, -50%);
  width: calc(var(--aim-base, 12px) + (var(--aim-open, 1) - 1) * 14px);
  height: calc(var(--aim-base, 12px) + (var(--aim-open, 1) - 1) * 14px);
  transition:
    width 80ms linear,
    height 80ms linear;
}

/* Confirmed hits: separated X strokes leave the aiming point unobstructed. */
#hitmarker {
  width: 28px;
  height: 28px;
  font-size: 0;
  color: #fff;
  text-shadow: none;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 3;
}
#hitmarker i {
  position: absolute;
  display: block;
  background: currentColor;
  box-shadow: 0 0 0 1px #000b;
}
#hitmarker i:nth-child(1),
#hitmarker i:nth-child(2) {
  left: calc(50% - 0.75px);
  width: 1.5px;
  height: 6px;
}
#hitmarker i:nth-child(1) {
  top: 0;
}
#hitmarker i:nth-child(2) {
  bottom: 0;
}
#hitmarker i:nth-child(3),
#hitmarker i:nth-child(4) {
  top: calc(50% - 0.75px);
  height: 1.5px;
  width: 6px;
}
#hitmarker i:nth-child(3) {
  left: 0;
}
#hitmarker i:nth-child(4) {
  right: 0;
}
#hitmarker.hit-head {
  color: #ff4545;
  width: 32px;
  height: 32px;
}
#hitmarker.hit-kill {
  animation: hit-confirm-kill 180ms ease-out;
}
@keyframes hit-confirm-kill {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
  40% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.14);
  }
  100% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.04);
  }
}

/* Pause menu: one primary action, consistent settings, distinct exit actions. */
#pause {
  width: min(440px, calc(100vw - 32px));
  padding: 28px;
  max-height: calc(100dvh - 32px);
  text-align: left;
  background: linear-gradient(145deg, #222324f7, #171818fa);
  border: 1px solid #64686a66;
  border-radius: 12px;
  box-shadow: 0 24px 90px #0009;
  backdrop-filter: blur(18px);
}
.pause-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.pause-brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: #ffc928;
  border: 1px solid #ffc92844;
  border-radius: 8px;
  background: #ffc9280a;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -1px;
}
.pause-eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a0a2a3;
}
#pause h2 {
  font-size: 30px;
  line-height: 1;
  margin: 7px 0 0;
  letter-spacing: 0.2px;
}
#pause button {
  appearance: none;
  min-height: 48px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
#pause button:focus-visible {
  outline: 2px solid #ffc928;
  outline-offset: 3px;
}
#pause #resume {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #ffc928;
  color: #1e1f20;
  border: 1px solid #ffc928;
  font-size: 12px;
}
#pause #resume:hover {
  background: #ffd95e;
}
#pause #resume span {
  font-size: 20px;
  line-height: 1;
}
.pause-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#pause .pause-settings button,
#pause #openAudioSettingsPause {
  width: 100%;
  margin: 0;
  padding: 12px 10px;
  background: #2a2c2d;
  color: #e0e2e3;
  border: 1px solid #6b6e7166;
}
#pause .pause-settings button:hover {
  background: #38393a;
  border-color: #999fa499;
}
#pause #fullscreenStatus {
  font-size: 11px;
  line-height: 1.5;
  margin: 12px 0 0;
  color: #acaeaf;
}
#pause #fullscreenStatus:empty {
  display: none;
}
.pause-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid #62676a44;
  padding-top: 18px;
  margin-top: 22px;
}
#pause .pause-menu-home {
  width: 100%;
  padding: 12px 10px;
  color: #b9bbbc;
  background: transparent;
  border: 1px solid #62676a55;
}
#pause .pause-menu-home:hover {
  background: #2d2e2f;
  color: #edeeee;
}
#pause #leave.danger {
  width: 100%;
  margin: 0;
  padding: 12px 10px;
  color: #edb0b5;
  background: #9b344214;
  border: 1px solid #b65a6555;
  font-size: 10px;
  letter-spacing: 0.6px;
}
#pause #leave.danger:hover {
  background: #8e2935;
  color: #fff;
  border-color: #d56a79;
}
@media (max-width: 380px) {
  #pause {
    padding: 20px;
  }
  #pause .pause-settings button {
    font-size: 10px;
  }
  .pause-settings,
  .pause-navigation {
    gap: 8px;
  }
}

#pause .pause-settings #graphicsQualityPause {
  grid-column: 1/-1;
}
#pause .pause-settings #fullscreen {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#pause #fullscreen::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
#pause .pause-navigation {
  grid-template-columns: 1fr;
}

#hp[data-health='low'] {
  color: #ffe34d;
}
#hp[data-health='critical'] {
  color: #ff4545;
}

.profile-bar {
  flex-wrap: wrap;
  gap: 8px;
}
.profile-bar #profileSummary {
  flex: 1 1 100%;
}
.profile-bar button {
  flex: 1;
}
#board {
  pointer-events: auto;
  z-index: 5;
  max-height: 85dvh;
  overflow: auto;
}

/* The AUG has no screen-drawn optic: the rifle's own holo frame defines the clear aperture. */
#scope.compact-scope.aug-holo-scope::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #0b0c0c16;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-size:
    100% 100%,
    var(--optic-width, 0%) var(--optic-height, 0%);
  mask-position:
    0 0,
    var(--optic-position-x, 50%) var(--optic-position-y, 50%);
  mask-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-size:
    100% 100%,
    var(--optic-width, 0%) var(--optic-height, 0%);
  -webkit-mask-position:
    0 0,
    var(--optic-position-x, 50%) var(--optic-position-y, 50%);
  -webkit-mask-repeat: no-repeat;
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}
#scope.compact-scope.aug-holo-scope .scope-lens {
  display: none;
}
/* Retículo da mira holográfica da AUG: círculo fino com quatro traços para fora e um ponto no
   centro (o desenho das holográficas de verdade), preso ao centro da janela (viewmodel.js define
   --holo-*). */
#scope .holo-reticle {
  display: none;
}
#scope.compact-scope.aug-holo-scope .holo-reticle {
  display: block;
  position: absolute;
  left: var(--holo-x, 50%);
  top: var(--holo-y, 50%);
  width: var(--holo-ring, 64px);
  height: var(--holo-ring, 64px);
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 58, 46, 0.88);
  border-radius: 50%;
  box-shadow:
    0 0 3px rgba(255, 40, 30, 0.55),
    inset 0 0 3px rgba(255, 40, 30, 0.4);
  opacity: var(--holo-alpha, 0);
  pointer-events: none;
}
/* P90: mira 1x limpa (sem desfoque em volta) e só o ponto vermelho, um pouco maior. */
#scope.compact-scope.aug-holo-scope.sight-clear::before {
  display: none;
}
#scope.compact-scope.aug-holo-scope.reticle-dot .holo-reticle {
  border: 0;
  box-shadow: none;
}
#scope.compact-scope.aug-holo-scope .holo-reticle::before {
  content: '';
  position: absolute;
  inset: -24%;
  --tick: linear-gradient(rgba(255, 70, 56, 0.95) 0 0);
  background:
    var(--tick) center top / 1.5px 15%,
    var(--tick) center bottom / 1.5px 15%,
    var(--tick) left center / 15% 1.5px,
    var(--tick) right center / 15% 1.5px;
  background-repeat: no-repeat;
}
#scope.compact-scope.aug-holo-scope.reticle-dot .holo-reticle::before {
  display: none;
}
#scope.compact-scope.aug-holo-scope.reticle-dot .holo-reticle::after {
  width: 4px;
  height: 4px;
}
#scope.compact-scope.aug-holo-scope .holo-reticle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ff4636;
  box-shadow: 0 0 3px 1px rgba(255, 40, 30, 0.7);
}

.pause-brand {
  border: 0;
  background: transparent;
  border-radius: 0;
}
.pause-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
