@font-face {
  font-family: Rush;
  src: url(assets/game-italic.ttf) format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Bay;
  src: url(assets/game-bold.ttf) format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --u: min(1vw, 1.82vh);
  --ice: #86d4ff;
  --edge: #45ccff;
  --navy: #142440;
  --white: #f9fcff;
  color-scheme: dark;
  font-family: Bay, Arial, sans-serif;
  color: var(--white);
}
* {
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #142139;
}
button, a, input, select {
  font: inherit;
}
button, a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ffe53e;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:hover:not(:disabled) {
  filter: brightness(1.15);
}
button:active:not(:disabled) {
  translate: 0 2px;
}
button svg, .utility svg {
  width: 100%;
  height: 100%;
  display: block;
}
button [data-icon] {
  display: inline-block;
}
button {
  transition: filter 100ms, translate 100ms;
}
button, .new-tag {
  font-family: Rush, "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 800;
}
button {
  text-shadow: 0 2px 2px #0e193e, 0 1px 4px #15233c99;
}
button svg {
  filter: drop-shadow(0 2px 1px #162341aa);
}
[hidden] {
  display: none !important;
}
#lobby, #game {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
}
.bay, #live-bay, .bay-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}
.bay {
  background: #697d88;
}
.bay-light {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    #20335f80,
    transparent 17%,
    transparent 90%,
    #08245221
  );
}
#live-bay {
  z-index: -2;
  touch-action: none;
}
.game-logo {
  position: absolute;
  width: calc(31 * var(--u));
  height: 23.4%;
  object-fit: contain;
  left: 50%;
  top: 0.5%;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 1px #08173699);
  pointer-events: none;
}
.player-ui {
  position: absolute;
  left: 1.65%;
  top: 3.1%;
  width: calc(27.5 * var(--u));
}
.profile {
  width: 100%;
  height: calc(6.95 * var(--u));
  position: relative;
  padding: 0;
  border-radius: calc(1.45 * var(--u)) calc(2.9 * var(--u)) calc(1.4 * var(--u))
    calc(1.3 * var(--u));
  border: calc(0.18 * var(--u)) solid #35d5ff;
  background: linear-gradient(150deg, #183981 0%, #091e41 55%, #133760);
  box-shadow: inset 0 0 0 2px #375d8b, 0 3px 0 #0b1b37, 0 0 8px #248dd877;
  display: flex;
  align-items: center;
  padding-left: calc(0.4 * var(--u));
  text-align: left;
}
.profile > img {
  width: calc(6.65 * var(--u));
  height: calc(6.65 * var(--u));
  border: 0.24em solid #31d1ff;
  box-shadow: 0 0 0 2px #142548, inset 0 0 5px white;
  border-radius: 20%;
  object-fit: cover;
  transform: scale(1.03);
  flex: none;
}
.xp-info {
  display: flex;
  flex-direction: column;
  gap: calc(0.3 * var(--u));
  padding: 0 calc(1 * var(--u)) 0 calc(2.5 * var(--u));
  flex: 1;
  min-width: 0;
}
.xp-info > strong {
  font-size: calc(2.03 * var(--u));
  line-height: 1.16;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.xp {
  position: relative;
  width: 100%;
  height: calc(1.44 * var(--u));
  background: linear-gradient(#162139, #415474);
  border: 1px solid #7293a6;
  border-radius: 0.45em;
  box-shadow: inset 0 1px 3px #0008;
  text-align: center;
  overflow: hidden;
}
.xp i {
  display: block;
  height: 100%;
  background: linear-gradient(#b4ff39, #48ab00);
  width: 0;
}
.xp b {
  position: absolute;
  inset: 0;
  font-size: calc(1.01 * var(--u));
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.lv {
  height: calc(3.12 * var(--u));
  width: calc(3.12 * var(--u));
  line-height: 0.94;
  text-align: center;
  position: absolute;
  left: calc(5.6 * var(--u));
  bottom: calc(0.1 * var(--u));
  background: linear-gradient(135deg, #26bcff, #0c63d0 65%, #4342a8);
  border: 2px solid #8ce8ff;
  box-shadow: 0 2px 2px #172043;
  transform: rotate(-6deg);
  border-radius: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: calc(0.75 * var(--u));
}
.lv b {
  font-size: calc(1.82 * var(--u));
}
.wallet {
  display: grid;
  gap: calc(0.42 * var(--u));
  margin-top: calc(1.03 * var(--u));
  width: calc(14.5 * var(--u));
}
.wallet button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: calc(2.84 * var(--u));
  padding: 0 calc(0.63 * var(--u));
  border: 2px solid #bed6ef;
  border-radius: calc(0.72 * var(--u));
  background: linear-gradient(105deg, #233652f2, #17223de8);
  box-shadow: inset 0 0 0 2px #344766, 0 2px 1px #172341;
}
.wallet b {
  flex: 1;
  text-align: left;
  margin-left: calc(0.8 * var(--u));
  font-size: calc(1.65 * var(--u));
  line-height: 1;
}
.wallet i {
  display: grid;
  place-content: center;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-style: normal;
  color: white;
  text-shadow: 0 2px #3c8f13;
  border: 1px solid #b6ff76;
  border-bottom: 2px solid #387819;
  border-radius: 5px;
  width: calc(1.66 * var(--u));
  height: calc(1.66 * var(--u));
  font-size: calc(1.85 * var(--u));
  background: linear-gradient(#9aef2d, #4eb300);
  box-shadow: 0 1px 3px #0b1b30;
}
.wallet [data-icon], .coin {
  width: calc(2.15 * var(--u));
  height: calc(2.15 * var(--u));
}
.coin {
  border-radius: 50%;
  background: linear-gradient(130deg, #f0a000, #ffca15);
  border: calc(0.23 * var(--u)) solid #ffde5b;
  box-shadow: inset 2px 1px 0 #d58400, -2px 2px 0 #a46905, 0 2px 3px #07132d;
}
.side-nav {
  display: grid;
  gap: calc(0.52 * var(--u));
  margin: calc(1.4 * var(--u)) 0 0 0.25vw;
  width: calc(15.3 * var(--u));
}
.side-nav button, .mini {
  border: 2px solid #7dabee;
  border-left-color: #37d8ff;
  border-bottom-color: #53c3ff;
  border-radius: calc(0.7 * var(--u));
  background: linear-gradient(165deg, #275389 0%, #19335e 55%, #1d2a50);
  box-shadow: inset 0 1px 4px #83a6fb77, 0 3px 0 #102645;
  text-transform: uppercase;
}
.side-nav button {
  transform: skewX(-8deg);
  font-size: calc(1.66 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(0.84 * var(--u));
  height: calc(3.54 * var(--u));
  padding-left: calc(1 * var(--u));
}
.side-nav [data-icon] {
  width: calc(3 * var(--u));
  height: calc(2.5 * var(--u));
}
.shop-panel {
  position: absolute;
  top: 5.1%;
  right: 1.55%;
  width: calc(21.6 * var(--u));
  padding-top: calc(3.15 * var(--u));
  filter: drop-shadow(0 4px 1px #18264485);
}
.shop-panel:before {
  content: "";
  position: absolute;
  right: 1%;
  top: calc(1.55 * var(--u));
  width: 37%;
  height: calc(1.7 * var(--u));
  transform: skewX(-30deg);
  background: repeating-linear-gradient(90deg, #ff9100 0 11%, #1a2744 12% 17%);
}
.shop-title {
  position: absolute;
  top: 0;
  left: calc(0.5 * var(--u));
  height: calc(3.85 * var(--u));
  width: 77%;
  border: 3px solid #ffde57;
  border-bottom-color: #ffa700;
  border-radius: calc(0.75 * var(--u));
  transform: skewX(-13deg);
  background: linear-gradient(155deg, #ffd442, #ff9b00 65%, #e77b00);
  box-shadow: inset 0 2px 2px #fff7aeaa, 0 3px 0 #a85826;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.6 * var(--u));
  font-size: calc(2.65 * var(--u));
  text-transform: uppercase;
  text-shadow: 0 2px 1px #7b4004, 1px 1px 4px #6e3a01;
  z-index: 1;
}
.shop-title span {
  width: calc(2.8 * var(--u));
  height: calc(2.6 * var(--u));
}
.shop-items {
  padding: calc(1.18 * var(--u)) calc(0.6 * var(--u)) calc(0.7 * var(--u));
  display: grid;
  gap: calc(0.55 * var(--u));
  border: 2px solid #eaabfb;
  border-top-color: #ffae18;
  border-left-color: #f9bf4f;
  border-radius: calc(0.8 * var(--u));
  background: linear-gradient(145deg, #172641eb, #172446ef);
}
.gear-item {
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  text-align: right;
  padding: 0 calc(0.66 * var(--u)) calc(0.36 * var(--u));
  height: calc(4.7 * var(--u));
  border-radius: calc(0.72 * var(--u));
  border: 2px solid #d59dfd;
  background: linear-gradient(155deg, #a43df6 0%, #672cb5 55%, #412779);
  box-shadow: inset 0 2px 4px #d69cff5c, 0 2px 1px #101c35;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.gear-item img {
  position: absolute;
  left: 0;
  bottom: 1%;
  width: 64%;
  height: 97%;
  object-fit: contain;
  filter: drop-shadow(0 3px 1px #14132e9c);
}
.gear-item.rifle img {
  width: 78%;
  left: 1%;
  bottom: 13%;
  height: 88%;
  transform: rotate(-4deg);
}
.gear-item.clothes {
  background: linear-gradient(140deg, #0ca9ec, #1275d9 62%, #175197);
  border-color: #6ce1ff;
}
.gear-item.clothes img {
  width: 55%;
  left: 0;
  height: 100%;
}
.gear-item.goggles img {
  width: 53%;
  left: 2%;
  height: 92%;
}
.gear-item span {
  position: relative;
  font-size: calc(1.45 * var(--u));
  line-height: 1;
  filter: drop-shadow(1px 1px 1px #15102a);
}
.dispatch {
  position: absolute;
  left: 1.45%;
  bottom: 3.1%;
  width: calc(23.5 * var(--u));
  border-radius: calc(0.96 * var(--u));
  border: 2px solid #94c7ee;
  background: linear-gradient(135deg, #28466bea, #142744f5);
  box-shadow: 0 3px 2px #1a2947;
  overflow: hidden;
}
.tabs {
  display: flex;
  align-items: stretch;
  background: #203356;
  border-bottom: 2px solid #5981a5;
}
.tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.5 * var(--u));
  flex: 1;
  background: transparent;
  height: calc(2.75 * var(--u));
  text-transform: uppercase;
  font-size: calc(1.32 * var(--u));
  color: #c2d1e1;
}
.tabs button[aria-selected="true"] {
  background: linear-gradient(165deg, #0789de, #0c62ab 65%, #1c5895);
  box-shadow: inset 0 2px 2px #42cdfb;
  color: white;
}
.tabs [data-icon] {
  width: calc(1.7 * var(--u));
  height: calc(1.5 * var(--u));
}
#updates {
  padding: calc(0.45 * var(--u));
  display: grid;
  gap: calc(0.22 * var(--u));
}
.news-row {
  display: flex;
  align-items: center;
  gap: calc(0.8 * var(--u));
  position: relative;
  text-align: left;
  min-height: calc(3.01 * var(--u));
  width: 100%;
  padding: calc(0.22 * var(--u)) calc(0.48 * var(--u));
  font-family: Bay, Arial, sans-serif;
  font-style: normal;
  background: linear-gradient(120deg, #425777b8, #344662a1);
  border-radius: calc(0.36 * var(--u));
  box-shadow: inset 0 1px #b2cfff20;
}
.news-row > img, .news-medal {
  width: calc(3.65 * var(--u));
  height: calc(2.5 * var(--u));
  object-fit: contain;
}
.news-row:first-child img {
  object-fit: cover;
  border-radius: 4px;
}
.news-row span:not([data-icon]) {
  font-size: calc(0.85 * var(--u));
  color: #c6ddf2;
  line-height: 1.06;
}
.news-row strong {
  display: block;
  font-size: calc(1.18 * var(--u));
  color: white;
  margin-top: 0.14em;
}
.news-row [data-icon="arrow"] {
  margin-left: auto;
  width: calc(0.85 * var(--u));
  opacity: 0.73;
}
.new-tag {
  margin-left: auto;
  border-radius: 4px;
  font-size: calc(0.88 * var(--u));
  line-height: 1.4;
  padding: 0 0.38em;
  text-transform: uppercase;
  background: #ff4f36;
  transform: skewX(-5deg);
  text-shadow: 0 1px #c12020;
}
#friends {
  min-height: calc(10.5 * var(--u));
  padding: calc(0.85 * var(--u)) calc(1.05 * var(--u));
  font-size: calc(1.3 * var(--u));
}
#friends p {
  font-size: calc(1.12 * var(--u));
  margin: 0.32em 0 0.6em;
}
.mini {
  padding: 0.3em 0.95em;
  font-size: 0.85em;
}
.play-actions {
  position: absolute;
  left: 50%;
  bottom: 3.8%;
  transform: translateX(-50%);
  width: calc(31 * var(--u));
  display: grid;
  justify-items: center;
  gap: calc(1.05 * var(--u));
}
.cta {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(1.05 * var(--u));
  width: 100%;
  transform: skew(-8deg);
  border: calc(0.24 * var(--u)) solid;
  border-radius: calc(1.48 * var(--u));
  text-transform: uppercase;
  font-size: calc(3.38 * var(--u));
  line-height: 0.85;
  isolation: isolate;
}
.cta strong, .cta > span {
  transform: skew(8deg);
  position: relative;
  z-index: 1;
}
.cta strong {
  font-family: Rush, Arial, sans-serif;
  font-style: italic;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 0 #244800, 0 1px 6px #1e4300;
}
.cta.online {
  height: calc(6.7 * var(--u));
  border-color: #e2ff68 #adff19 #b9ff23 #d7ff5f;
  background: linear-gradient(165deg, #aaff00 0%, #80e800 46%, #63be00);
  box-shadow:
    inset 0 2px 2px #eeff98,
    inset 0 -5px 0 #4bb000,
    0 calc(0.56 * var(--u)) 0 #287400,
    0 calc(0.7 * var(--u)) 4px #142637aa;
}
.cta.online > span {
  width: calc(4.15 * var(--u));
  height: calc(4.15 * var(--u));
}
.cta.online i {
  position: absolute;
  right: 3%;
  top: 5%;
  width: calc(5.6 * var(--u));
  height: 90%;
  color: #c7ff6a;
  opacity: 0.48;
  z-index: 0;
}
.cta.online > strong {
  max-width: 53%;
  font-size: 1.05em;
}
.cta.social {
  width: 93%;
  height: calc(5.45 * var(--u));
  border-color: #63d9ff #199fff #22c8ff #70ebff;
  box-shadow:
    inset 0 2px 2px #94edff,
    inset 0 -4px 0 #0865d0,
    0 calc(0.47 * var(--u)) 0 #113f91,
    0 calc(0.65 * var(--u)) 4px #17243d99;
  background: linear-gradient(160deg, #00adff, #0076eb 58%, #0955c8);
  font-size: calc(2.45 * var(--u));
}
.cta.social > span {
  width: calc(4.3 * var(--u));
  height: calc(4.1 * var(--u));
}
.cta.social strong {
  max-width: 64%;
  text-shadow: 0 3px 0 #003580, 0 1px 5px #16356b;
}
.utility {
  position: absolute;
  bottom: 3.6%;
  right: 1.6%;
  display: flex;
  gap: calc(0.8 * var(--u));
}
.utility button {
  width: calc(6.45 * var(--u));
  height: calc(6.2 * var(--u));
  border: 2px solid #a5cdef;
  border-radius: calc(1.3 * var(--u));
  background: linear-gradient(155deg, #4482bc, #244775 62%, #1a3055);
  box-shadow: inset 0 2px 2px #77b4ef, 0 3px 0 #132a48;
  text-transform: uppercase;
  font-size: calc(1.13 * var(--u));
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.24em;
}
.utility button:nth-child(2) {
  background: linear-gradient(145deg, #8064fa, #5143ba 60%, #332b74);
  border-color: #bcadff;
  box-shadow: inset 0 2px 2px #bdadff, 0 3px 0 #222254;
}
.utility span {
  width: calc(3.1 * var(--u));
  height: calc(3.1 * var(--u));
}
dialog {
  color: #f6f9ff;
  border: 2px solid #58bcf3;
  border-top-color: #9befff;
  border-radius: 18px;
  padding: 0;
  max-width: min(94vw, 620px);
  width: 520px;
  max-height: 90dvh;
  background: linear-gradient(145deg, #1d3b65, #142845 65%);
  box-shadow: inset 0 1px #c1efff80, 0 8px 0 #0c1b35, 0 22px 80px #071329aa;
  font-family: Bay, Arial, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #49769b #172945;
}
dialog::backdrop {
  background: #0c163aa3;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  background: linear-gradient(115deg, #116fbd, #174678 70%, #263b64);
  border-bottom: 1px solid #66b7df88;
  gap: 15px;
}
.modal-head h1 {
  font: italic 800 31px/0.99 Rush, sans-serif;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 3px #1f3556;
}
.modal-head button {
  background: #182d51;
  border: 1px solid #89b1df;
  border-radius: 7px;
  width: 31px;
  height: 31px;
  padding: 7px;
  line-height: 1;
  flex: none;
}
.modal-head button span {
  width: 100%;
  height: 100%;
}
#modal-content {
  padding: 21px;
  display: grid;
  gap: 15px;
}
#modal-content h2, #modal-content h3, #modal-content p {
  margin: 0;
}
#modal-content h2, #modal-content h3 {
  font-family: Rush, sans-serif;
  font-style: italic;
  font-weight: 800;
}
#modal-content p {
  color: #c7c8bb;
  line-height: 1.4;
}
.eyeline {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #a1d9f8;
  text-transform: uppercase;
}
.btn, .seg button {
  padding: 10px 14px;
  border: 1px solid #75b8ef;
  border-radius: 8px;
  background: linear-gradient(145deg, #3974ad, #284d80);
  text-transform: uppercase;
  box-shadow: 0 3px 0 #142039;
  font-size: 17px;
  line-height: 1.1;
}
.btn.primary {
  background: linear-gradient(#95eb0b, #57ad00);
  border-color: #c7f75c;
  text-shadow: 0 2px #35650a;
  color: white;
}
.btn.selected, .seg button[aria-pressed="true"] {
  background: linear-gradient(#03a8fc, #0b64ce);
  border-color: #7cddff;
}
.btn.subtle {
  background: #233857;
  border-color: #53708e;
}
.btn.danger {
  background: #863d4e;
  border-color: #ee99a3;
}
.row, .seg {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.seg button {
  font-size: 14px;
  flex: 1;
}
.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.detail-list {
  display: grid;
  gap: 7px;
}
.detail, .formrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #304d72b0;
  border-radius: 7px;
  padding: 9px 12px;
}
.detail strong {
  color: #bdecff;
}
.formrow input[type="range"] {
  width: 42%;
  accent-color: #96e315;
}
.formrow input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #78ca00;
}
input[type="text"], select {
  border: 1px solid #628bad;
  background: #142b4a;
  color: white;
  padding: 8px 10px;
  border-radius: 7px;
  min-width: 0;
}
.formrow select {
  max-width: 58%;
}
.formrow output {
  width: 3em;
  color: #c0edff;
  line-height: 1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #29466c;
  border: 1px solid #476685;
  border-radius: 9px;
  padding: 11px 2px;
  color: #bfd8ec;
}
.stats b {
  font: italic 800 32px/1.05 Rush;
  color: white;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
}
.profile-card img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 2px solid #55d7ff;
}
.profile-card h2 {
  font-size: 27px;
}
.swatch {
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #7faffc;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, #2b73ad, #28356b 68%, #232751);
}
.swatch img {
  width: 80%;
  height: 115px;
  object-fit: contain;
  filter: drop-shadow(0 6px 3px #131e4b);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tile {
  border-radius: 8px;
  border: 1px solid #638bab;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
  align-content: start;
  background: #2f496d;
  padding: 10px 4px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.1;
}
.tile img {
  width: 90%;
  height: 42px;
  object-fit: contain;
}
.tile small {
  color: #bcd6e9;
  font: 600 12px Bay;
}
.tile.active {
  border: 2px solid #aafa4a;
  background: #396146;
}
.room-code {
  font: italic 800 33px Rush;
  color: #d2ff61;
  letter-spacing: 0.09em;
}
.roster {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.roster li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a4569;
  padding: 7px 10px;
  border-radius: 5px;
}
.roster em {
  color: #bdea8b;
  font-style: normal;
}
.roster button {
  font-size: 12px;
  padding: 4px 7px;
}
.map-shot, .tile .map-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 43%;
  border-radius: 4px;
  display: block;
}
.map-title {
  font-size: 17px;
}
.progress {
  height: 9px;
  background: #14253d;
  border-radius: 8px;
  overflow: hidden;
}
.progress i {
  display: block;
  min-height: 100%;
  background: linear-gradient(90deg, #51ad09, #b1f535);
}
kbd {
  font: 700 13px Bay;
  color: white;
  padding: 2px 6px;
  border: 1px solid #7191ae;
  background: #122840;
  border-radius: 4px;
  box-shadow: 0 2px #091729;
}
.notice {
  padding: 10px 12px;
  background: #172e50;
  border-left: 3px solid #ffc53c;
  border-radius: 3px;
  color: #d8e8f4;
}
.map-card {
  display: grid;
  gap: 6px;
}
.error {
  color: #ffd0a0;
}
.pending {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid #9cc7de;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 7px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  z-index: 7;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #132e4f;
  border: 1px solid #9ad5ed;
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0 4px 12px #12224266;
  pointer-events: none;
  display: none;
}
#toast.show {
  display: block;
}
#boot {
  position: fixed;
  inset: 0;
  background: #131820;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  z-index: 10;
  letter-spacing: 0.08em;
}
#boot img {
  width: 250px;
  margin-bottom: 12px;
}
#boot progress {
  width: 240px;
  height: 4px;
  accent-color: #ed5148;
}
#boot span {
  color: #a3b5c7;
  font-size: 12px;
}
body.inspect #lobby > *:not(.bay):not(#live-bay) {
  visibility: hidden;
}
body.inspect dialog {
  position: fixed;
  inset: auto 2vw 5vh auto;
  margin: 0;
  width: min(33vw, 410px);
}
body.inspect dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
}
body.inspect dialog:not([open]) {
  display: none;
}
.key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid #54708e55;
  padding: 5px 0;
}
.key-row button {
  background: #152c4a;
  border: 1px solid #5985ae;
  padding: 3px 9px;
  border-radius: 4px;
}
.invite-code {
  display: flex;
  gap: 9px;
}
.invite-code input {
  flex: 1;
  text-transform: uppercase;
}
.platform {
  text-decoration: none;
  color: #9de0ff;
  font: 600 14px Bay;
}
@media (max-width: 760px) and (orientation: portrait) {
  :root {
    --u: 1.43vw;
  }
  .bay {
    background-size: auto 100%;
  }
  .game-logo {
    top: 16%;
    width: 53vw;
    height: 14%;
  }
  .player-ui {
    top: 2%;
    left: 3%;
    width: 51vw;
  }
  .shop-panel {
    width: 32vw;
    right: 2%;
    top: 2%;
  }
  .shop-title {
    font-size: 4vw;
  }
  .shop-items {
    gap: 3px;
  }
  .side-nav {
    margin-top: 1vh;
  }
  .dispatch {
    bottom: 2%;
    left: 2%;
    width: 49vw;
  }
  .play-actions {
    bottom: 18%;
    width: 58vw;
  }
  .cta.online, .cta.social {
    height: 9.6vw;
  }
  .cta.online > strong {
    max-width: none;
  }
  .cta.social strong {
    max-width: 72%;
  }
  .utility {
    right: 3%;
    bottom: 2%;
  }
  .utility button {
    width: 13vw;
    height: 12vw;
  }
  .utility span {
    width: 6vw;
    height: 6vw;
  }
  body.inspect dialog {
    width: 92vw;
    right: 4vw;
    bottom: 2%;
    max-height: 40vh;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  dialog {
    max-height: 92dvh;
  }
  .modal-head {
    padding: 10px 15px;
  }
  .modal-head h1 {
    font-size: 25px;
  }
  #modal-content {
    padding: 12px 16px;
    gap: 9px;
  }
  .swatch {
    height: 85px;
  }
  .swatch img {
    max-height: 78px;
  }
  .tile img {
    height: 30px;
  }
  .formrow, .detail {
    padding: 5px 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.bay {
  background-size: cover;
}
.utility .platform-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  width: calc(6.45 * var(--u));
  height: calc(6.2 * var(--u));
  border: 2px solid #d99dff;
  border-radius: calc(1.3 * var(--u));
  background: linear-gradient(145deg, #b540ed, #7333a8 60%, #58227f);
  box-shadow: inset 0 2px 2px #da9bff, 0 3px 0 #32204e;
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  font: italic 800 calc(1.05 * var(--u))/1.1 Rush;
  text-shadow: 0 2px 2px #38144d;
}
.utility .cg-mark {
  font: italic 900 calc(3 * var(--u))/0.97 Arial, sans-serif;
  letter-spacing: -0.18em;
  width: auto;
  height: auto;
  transform: skew(-8deg) translateX(-0.1em);
}
.cg-mark span {
  font-size: 0.76em;
}
.friend-list {
  padding-left: 16px;
  margin: 4px 0;
}
/* A quieter lobby frame reserves the central bay for the operator. */
.shop-panel {
  width: calc(15 * var(--u));
  right: 2.4%;
  top: 4%;
  padding: 0;
  filter: none;
}
.shop-panel:before {
  display: none;
}
.shop-title {
  position: relative;
  left: 0;
  width: 100%;
  height: calc(3.8 * var(--u));
  font-size: calc(2.1 * var(--u));
  border-width: 2px;
  border-radius: calc(0.7 * var(--u));
}
.side-nav {
  gap: calc(0.65 * var(--u));
}
.dispatch {
  width: calc(21 * var(--u));
  bottom: 4%;
  background: #152b46d9;
  border-color: #81b6d3;
  box-shadow: 0 3px 10px #10233b55;
}
.player-ui {
  width: calc(25 * var(--u));
  top: 4%;
}
.wallet {
  display: flex;
  width: 100%;
  gap: calc(0.65 * var(--u));
}
.wallet button {
  width: 50%;
  height: calc(2.5 * var(--u));
}
.wallet b {
  font-size: calc(1.35 * var(--u));
}
.wallet i {
  display: none;
}
.xp-info > strong {
  font-family: Bay, sans-serif;
  font-style: normal;
}
.play-actions {
  width: calc(29 * var(--u));
  bottom: 5.8%;
}
.cta {
  border-width: 2px;
}
.cta.online {
  height: calc(5.7 * var(--u));
  font-size: calc(2.8 * var(--u));
}
.cta.online > strong {
  max-width: none;
}
.cta.online i {
  display: none;
}
.cta.social {
  height: calc(4.5 * var(--u));
  font-size: calc(2 * var(--u));
}
.cta.social strong {
  max-width: 66%;
}
.utility {
  right: 2.4%;
  bottom: 4%;
  align-items: center;
  gap: calc(0.7 * var(--u));
}
.utility button {
  width: calc(4 * var(--u));
  height: calc(4 * var(--u));
  border: 1px solid #9cc7e3;
  border-radius: calc(0.65 * var(--u));
  font-size: 0;
  background: #1b385bba;
  box-shadow: 0 2px 4px #142d4480;
}
.utility button span {
  width: calc(2.1 * var(--u));
  height: calc(2.1 * var(--u));
}
.utility .platform-link {
  width: calc(11.3 * var(--u));
  height: calc(4 * var(--u));
  margin-left: calc(0.6 * var(--u));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 2px #17335077);
}
.platform-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-head h1, .btn, .seg button, .tile, .tabs button {
  font-family: Rush, sans-serif;
  font-style: italic;
  font-weight: 800;
}
.weapon-stage {
  height: 210px;
  background: radial-gradient(ellipse at center, #42647f, #14283e);
  border: 1px solid #7c9cb880;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.weapon-stage canvas, .weapon-stage > img {
  width: 100%;
  height: 100%;
  touch-action: none;
  object-fit: contain;
  cursor: grab;
}
.weapon-stage > span {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font: 600 12px Bay;
  color: #bed3e2;
  pointer-events: none;
}
.weapon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.weapon-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
  border: 1px solid #54748c;
  border-radius: 8px;
  background: #203c58;
  font: 700 15px Bay, sans-serif;
  font-style: normal;
  text-shadow: none;
}
.weapon-choice.selected {
  background: #2d536b;
  border-color: #80e5dc;
  box-shadow: inset 0 0 0 1px #80e5dc;
}
.weapon-choice small {
  font-size: 10px;
  color: #aceba3;
}
.weapon-silhouette {
  width: 52px;
  height: 25px;
  display: block;
}
.weapon-silhouette svg {
  width: 100%;
  height: 100%;
}
.weapon-specs {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  color: #bdd6e4;
  font: 600 13px Bay;
}
.equipped-label {
  color: #adeda5;
  font-size: 15px;
}
@media (max-height: 600px) {
  .weapon-stage {
    height: 140px;
  }
  .weapon-choice {
    min-height: 64px;
  }
  .weapon-specs {
    font-size: 12px;
  }
}
@media (max-width: 650px) and (orientation: portrait) {
  .player-ui {
    width: 50vw;
  }
  .play-actions {
    width: 65vw;
  }
  .dispatch {
    width: 43vw;
  }
  .utility .platform-link {
    width: 22vw;
    height: 8vw;
  }
  .utility button {
    width: 8vw;
    height: 8vw;
  }
  .weapon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* In-game menu scenes share the lobby's visual language. */
dialog#modal {
  color: #f2efe4;
  text-shadow: none;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #20211e;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}
dialog#modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: none;
  opacity: 0.15;
  filter: blur(2px);
  pointer-events: none;
}
dialog#modal::backdrop {
  background: #191817a8;
  backdrop-filter: blur(5px);
}
#modal button { text-shadow: 0 2px #171913; }
#modal button svg { filter: none; }
#modal .detail, #modal .stats > div {
  background: #30322c;
  border-color: #5e6153;
  color: #cacbbf;
}
#modal .detail strong { color: #f2efe4; }
#modal kbd, #modal input[type="text"], #modal select {
  background: #30322c;
  border-color: #747769;
  color: #f2efe4;
}
#modal .modal-head {
  position: relative;
  height: 16%;
  min-height: 62px;
  margin: 0 4%;
  padding: 0;
  border-bottom: 1px solid #a9a8a355;
  background: transparent;
  display: flex;
  align-items: center;
}
#modal .modal-head:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 66px;
  height: 3px;
  background: #c7dd75;
  box-shadow: none;
}
#modal .modal-head h1 {
  font: italic 800 clamp(30px, 4.2vw, 64px)/1 Rush, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 3px #161514;
}
#modal .modal-head > button {
  width: auto;
  height: auto;
  padding: 8px 0 8px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #d4d3d0;
  font: 700 16px Bay, sans-serif;
  text-transform: uppercase;
  text-shadow: none;
}
#modal .modal-head kbd {
  font: 700 12px Bay;
  border-color: #a3a19c;
  background: #484743;
}
#modal #modal-content {
  width: min(680px, 88vw);
  max-height: 69%;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #a7a5a0 transparent;
  margin: 3vh 0 0 6%;
  padding: 0 12px 16px 0;
  gap: 16px;
  align-content: start;
}
#modal .game-menu-footer {
  position: absolute;
  bottom: 0;
  left: 4%;
  right: 4%;
  height: 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #9e9c974d;
  font: 600 12px Bay, sans-serif;
  letter-spacing: 0.06em;
  color: #bab9b5;
}
#menu-prompt {
  display: flex;
  gap: 8px;
  align-items: center;
}
#modal .btn {
  min-height: 42px;
  min-width: 120px;
  padding: 12px 22px;
  border: 1px solid #9f9d98;
  border-radius: 6px;
  background: #363831;
  box-shadow: inset 0 1px #ffffff24, 0 4px #1c1c1a;
  text-transform: uppercase;
  font: italic 800 19px Rush, sans-serif;
}
#modal .btn.primary {
  text-shadow: none;
  background: #c7dd75;
  color: #252a18;
  border-color: #d7e79f;
}
#modal .formrow {
  background: #403f3c80;
  border-radius: 0;
  border: 0;
  border-left: 2px solid transparent;
  padding: 12px 16px;
  min-height: 42px;
  font: 700 17px Bay;
}
#modal .formrow:hover {
  border-left-color: #aeada8;
  background: #56555099;
}
#modal input[type="range"] {
  appearance: none;
  height: 4px;
  border-radius: 0;
  background: #8c8a83;
  accent-color: #b3b2ae;
}
#modal input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 19px;
  border: 2px solid #e9e8e7;
  background: #aaa9a4;
  border-radius: 1px;
  cursor: ew-resize;
}
#modal .key-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid #93928c33;
  background: #36363370;
}
#modal .key-row > button {
  min-width: 70px;
  background: #4e4d49;
  border: 1px solid #93918b;
  border-radius: 2px;
}
#modal .controls-bindings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 22px;
}
#modal[data-screen="controls"] #modal-content {
  width: 88%;
  height: 69%;
  max-height: none;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px 24px;
  overflow: hidden;
  padding: 0;
}
.controls-note { grid-column: 1 / -1; }
.controls-bindings { min-height: 0; overflow: auto; align-content: start; padding-right: 8px; }
.controls-fixed { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.controls-fixed .detail-list { grid-template-columns: 1fr 1fr; }
#modal .controls-fixed .detail { display: grid; gap: 5px; padding: 10px; font-size: 14px; border-radius: 2px; }
#modal .controls-fixed > .btn { margin-top: auto; align-self: flex-end; }
@media(max-height:550px) {
  #modal[data-screen="controls"] #modal-content { gap: 10px 18px; }
  #modal[data-screen="controls"] .controls-bindings { gap: 5px 8px; }
  #modal[data-screen="controls"] .key-row { padding: 5px 8px; font-size: 12px; }
  #modal[data-screen="controls"] .key-row > button { min-width: 58px; }
  .controls-fixed { gap: 10px; }
  #modal .controls-fixed .detail { font-size: 12px; padding: 7px; }
  #modal .controls-fixed h2 { font-size: 21px; }
  #modal .controls-fixed > .btn { min-height: 32px; padding: 7px 14px; font-size: 15px; }
}
@media(max-width:700px) {
  #modal[data-screen="controls"] #modal-content { display: block; overflow: auto; }
  .controls-bindings { margin: 14px 0; }
  #modal .controls-fixed > .btn { margin-top: 12px; }
}
/* Armory: one large inspection scene, equipment strip and a clear equip action. */
#modal.arsenal { background: #20211e; }
#modal.arsenal #modal-content {
  position: absolute; inset: 19% 4% 11%; width: auto; max-height: none;
  margin: 0; padding: 0; display: grid; overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 27%);
  grid-template-rows: minmax(0, 1fr) 64px minmax(90px, 23%);
  grid-template-areas: "preview detail" "preview specs" "choices choices";
  gap: 18px 30px;
}
#modal.arsenal .weapon-stage {
  grid-area: preview; position: relative; width: auto; height: auto; min-height: 0;
  border: 0; border-radius: 0; background: none;
}
#modal.arsenal .weapon-stage:after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, #b4b3ae6b, transparent); pointer-events: none;
}
#modal.arsenal .weapon-stage > span { left: 50%; bottom: 2%; transform: translateX(-50%); font: 700 11px Bay; text-transform: uppercase; letter-spacing: .1em; }
#modal.arsenal .split {
  grid-area: detail; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 18px; min-height: 0;
}
#modal.arsenal .split h2 { font: italic 800 clamp(26px, 3.8vw, 58px)/1 Rush; text-transform: uppercase; }
#modal.arsenal .split p { font: 700 clamp(12px, 1.3vw, 17px)/1.4 Bay; color: #c1c0bd; margin-top: 12px; }
#modal .equipped-label { display: inline-flex; gap: 8px; align-items: center; color: #b9f58b; font: italic 800 17px Rush; text-transform: uppercase; }
#modal .equipped-label:before { content: "✓"; font: 800 16px Bay; }
#modal.arsenal .weapon-specs { grid-area: specs; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: center; }
#modal.arsenal .weapon-specs span { font: 700 10px Bay; color: #bfbeba; border-left: 1px solid #9796904a; padding-left: 10px; }
#modal.arsenal .weapon-specs b { display: block; font: italic 800 25px Rush; color: #f8f8f8; margin-bottom: 4px; }
#modal.arsenal .weapon-grid { grid-area: choices; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; min-height: 0; }
#modal.arsenal .weapon-choice {
  position: relative; min-height: 0; padding: 9px 4px 8px; border: 1px solid #888680;
  border-radius: 7px; background: #30322c;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  box-shadow: inset 0 1px #e3e2e017, 0 3px #1d1d1b;
}
#modal.arsenal .weapon-choice.selected { border-color: #c7dd75; background: #353b29; box-shadow: inset 0 -3px #c7dd75; }
#modal.arsenal .weapon-choice strong { font: italic 800 clamp(12px, 1.6vw, 21px) Rush; text-transform: uppercase; }
#modal.arsenal .weapon-choice small { position: absolute; top: 6px; right: 7px; font: 700 8px Bay; color: #c3f59b; text-transform: uppercase; }
#modal.arsenal .weapon-silhouette { width: 100%; height: 57%; max-height: 72px; }
.weapon-silhouette img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px #14141390); }
#modal.shop-armory #modal-content { grid-template-rows: 38px minmax(0, 1fr) 54px minmax(85px, 23%); grid-template-areas: "tabs tabs" "preview detail" "preview specs" "choices choices"; gap: 12px 30px; }
#modal[data-screen="social"] #modal-content {
  width: auto;
  margin: 6vh 6% 0;
  max-height: 65%;
  padding: 0;
}
.squad-choices {
  display: flex;
  gap: 3vw;
  align-items: stretch;
}
.squad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  width: 40%;
  min-height: 44vh;
  padding: 3vw;
  background: linear-gradient(130deg, #4e4d49de, #2c2b29e8);
  border: 1px solid #9f9e99;
  clip-path: polygon(0 0, 93% 0, 100% 10%, 100% 100%, 0 100%);
}
.squad-card.host {
  background: linear-gradient(130deg, #4e4d49de, #2d2c29e8);
}
.squad-card > span {
  width: 58px;
  height: 50px;
  display: block;
  color: #d9d9d7;
  margin-bottom: 20px;
}
.squad-card svg {
  width: 100%;
  height: 100%;
}
.squad-card strong {
  font: italic 800 clamp(25px, 3.4vw, 50px) Rush;
  text-transform: uppercase;
}
.squad-card small {
  font: 600 17px Bay;
  color: #d0cfcd;
  margin: 10px 0 25px;
}
.squad-card b {
  font: 800 14px Bay;
  color: #b0f084;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.join-game-code {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  padding-top: 7vh;
}
.join-game-code > label {
  font: 700 20px Bay;
  text-transform: uppercase;
  color: #dbdbd9;
}
#modal .join-game-code > input {
  width: 100%;
  max-width: 480px;
  font: italic 800 clamp(30px, 5vw, 64px) Rush;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: #37373488;
  border: 0;
  border-bottom: 3px solid #a8a6a1;
  border-radius: 0;
  padding: 15px 10px;
}
#modal .seg {
  gap: 22px;
  border-bottom: 1px solid #aaa9a455;
  padding-bottom: 8px;
}
#modal .seg button {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: italic 800 24px Rush;
  color: #aeada8;
  padding: 9px 5px;
}
#modal .seg button[aria-pressed="true"] {
  color: #f7f7f7;
  background: transparent;
  box-shadow: 0 3px #b5b4b0;
}
#modal .swatch {
  border: 0;
  border-radius: 0;
  height: 26vh;
  background: radial-gradient(ellipse, #69676255, transparent 68%);
}
#modal .tile {
  border-radius: 0;
  background: #4c4a4699;
  border-color: #a5a39e66;
}
@media (max-width: 600px) and (orientation: portrait) {
  .squad-choices {
    flex-direction: column;
  }
  .squad-card {
    width: 100%;
    min-height: 25vh;
  }
  .squad-card > span {
    display: none;
  }
  #modal #modal-content {
    margin-top: 2vh;
  }
}
#modal input[type="checkbox"] {
  appearance: none;
  width: 42px;
  height: 21px;
  flex: none;
  border: 1px solid #9f9e99;
  border-radius: 2px;
  background: linear-gradient(90deg, #8b8982 45%, #2c2b29 45%);
  cursor: pointer;
  transition: background 0.12s;
}
#modal input[type="checkbox"]:checked {
  border-color: #b4b3af;
  background: linear-gradient(90deg, #353b29 55%, #c7dd75 55%);
}
/* Locker and shop share the same equipment navigation. */
#modal[data-screen="shop"] #modal-content, #modal[data-screen="inventory"] #modal-content {
  position: absolute; inset: 19% 4% 11%; width: auto; max-height: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 42px minmax(0, 1fr);
  grid-template-areas: "tabs tabs" "preview pick"; gap: 20px 6%; overflow: hidden;
}
.shop-tabs { grid-area: tabs; display: flex; gap: 10px; align-items: stretch; min-height: 0; }
#modal .shop-tabs button {
  flex: 1; min-width: 0; font: italic 800 clamp(13px, 1.8vw, 25px) Rush; color: #cdcdca;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 5px 12px;
  border: 1px solid #807e7880; border-radius: 5px; background: #30322c;
  box-shadow: 0 3px #1c1c1b; white-space: nowrap;
}
#modal .shop-tabs button span { width: 24px; height: 24px; }
#modal .shop-tabs button[aria-pressed="true"] { background: #353b29; border-color: #c7dd75; color: white; box-shadow: inset 0 -3px #c7dd75; }
.wardrobe-stage { grid-area: preview; min-height: 0; position: relative; background: none; }
.wardrobe-stage:after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 5%; height: 2px; background: linear-gradient(90deg, transparent, #bbbab6, transparent); pointer-events: none; }
.wardrobe-stage canvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
.wardrobe-pick { grid-area: pick; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; overflow: auto; padding: 8px 4px 4px 0; scrollbar-width: thin; }
.wardrobe-pick h2 { font: italic 800 clamp(25px, 3.5vw, 46px)/1 Rush; text-transform: uppercase; }
.wardrobe-pick .eyeline { font: 700 11px Bay; letter-spacing: .12em; color: #c0bfbc; }
.gear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; width: 100%; margin-top: 5px; }
.gear-choice {
  position: relative; min-height: 114px; padding: 8px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid #87857e; border-radius: 7px; background: #30322c; box-shadow: inset 0 1px #e4e4e218, 0 3px #1c1c1b;
  color: white; text-shadow: 0 2px #2c2b29;
}
.gear-choice.active { border-color: #c7dd75; background: #353b29; box-shadow: inset 0 -3px #c7dd75; }
.gear-choice > span { width: 52px; height: 48px; color: var(--gear-color); filter: drop-shadow(0 3px 1px #1c1c1aa0); }
.gear-choice > b { font: italic 800 clamp(12px, 1.3vw, 18px) Rush; }
.gear-choice small { position: absolute; top: 5px; right: 7px; font: 700 8px Bay; color: #c0ef9d; text-transform: uppercase; }
.gear-choice svg { width: 100%; height: 100%; }

/* Settings are a game screen: tabs, options, live reticle and anchored actions. */
#modal[data-screen="settings"] #modal-content {
  position: absolute; inset: 21% 4% 12%; width: auto; height: auto; max-height: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(140px, 18%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 46px; gap: 28px;
  overflow: hidden;
}
.settings-nav { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.settings-nav button { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px; border-radius: 6px; border: 1px solid #7d7b74; background: #30322c; color: #d3d2cf; font: italic 800 25px Rush; box-shadow: 0 3px #1c1c1b; }
.settings-nav button[aria-pressed="true"] { border-color: #c7dd75; color: white; background: #353b29; box-shadow: inset 0 -3px #c7dd75; }
.settings-nav button span { width: 28px; height: 28px; }
.settings-pane { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 24%; gap: 24px; padding: 20px 24px; border: 1px solid #7d7b7480; border-radius: 3px; background: #252720; box-shadow: inset 0 1px #e2e1df15; overflow: auto; }
.settings-options h2 { font: italic 800 clamp(24px, 2.8vw, 38px) Rush; margin-bottom: 18px !important; text-transform: uppercase; }
.setting-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(80px, 35%) 52px; align-items: center; gap: 14px; min-height: 62px; border-bottom: 1px solid #95948e30; font: 700 clamp(13px, 1.4vw, 18px) Bay; }
#modal .setting-row input[type="range"] { width: 100%; height: 6px; background: linear-gradient(90deg, #c7dd75 var(--fill), #55584c var(--fill)); }
#modal .setting-row input[type="range"]::-webkit-slider-thumb { width: 13px; height: 22px; background: #f2f2f2; border-color: #b7b5b1; border-radius: 3px; }
.setting-row output { min-width: 48px; padding: 7px 3px; border-radius: 4px; border: 1px solid #7e7c76; background: #2b2a28; color: #f4f4f4; text-align: center; font: italic 800 18px Rush; }
.setting-row.toggle-row { grid-template-columns: 1fr 44px 52px; }
#modal .setting-row input[type="checkbox"] { width: 44px; height: 24px; border-radius: 4px; }
.toggle-state:before { content: "OFF"; color: #b0afab; font: italic 800 17px Rush; }
input:checked + .toggle-state:before { content: "ON"; color: #b5f183; }
.settings-preview { display: flex; flex-direction: column; gap: 25px; align-items: center; justify-content: center; border-left: 1px solid #8d8b8530; }
.settings-preview > span { font: 700 10px Bay; color: #b5b4b0; letter-spacing: .15em; }
.aim-preview { --reticle: var(--aim-size); position: relative; width: 100px; height: 100px; border: 1px solid #adaca73b; border-radius: 50%; background: radial-gradient(circle, #7e7c7626, transparent 70%); }
.settings-preview > svg { width: 80px; height: 80px; color: #9d9b96; }
.settings-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; align-items: stretch; }
.settings-actions .btn { min-width: 145px !important; }
.sound-check { margin-top: 32px; display: flex; align-items: center; gap: 20px; }
.sound-check > span { width: 48px; height: 48px; color: #afaeaa; }
.quality-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.quality-choices button { border: 1px solid #82807a; border-radius: 6px; background: #30322c; padding: 14px 4px; display: grid; justify-items: center; gap: 10px; font: italic 800 19px Rush; }
.quality-choices button[aria-pressed="true"] { border-color: #c7dd75; background: #353b29; box-shadow: inset 0 -3px #c7dd75; }
.quality-choices i { display: block; width: 30px; height: 18px; border: 3px solid #c6c5c2; border-bottom-width: 5px; border-radius: 2px; }
.quality-choices button:nth-child(2) i { box-shadow: 5px 4px #a9a8a34d; }
.quality-choices button:nth-child(3) i { box-shadow: 5px 4px #a9a8a34d, -5px -4px #a9a8a34d; }
@media (max-height: 550px) {
  #modal.arsenal #modal-content { gap: 8px 18px; grid-template-rows: minmax(0, 1fr) 45px 90px; }
  #modal.shop-armory #modal-content { grid-template-rows: 30px minmax(0, 1fr) 40px 82px; }
  #modal.arsenal .split { gap: 9px; }
  #modal.arsenal .split h2 { font-size: 29px; }
  #modal.arsenal .split p { margin-top: 5px; font-size: 12px; }
  #modal.arsenal .weapon-specs b { font-size: 21px; }
  #modal.arsenal .weapon-specs span { font-size: 8px; padding-left: 6px; }
  #modal.arsenal .weapon-choice strong { font-size: 13px; }
  #modal .btn { min-height: 32px; padding: 7px 16px; font-size: 16px;  background: #363831;}
  #modal[data-screen="shop"] #modal-content, #modal[data-screen="inventory"] #modal-content { grid-template-rows: 30px minmax(0, 1fr); gap: 10px 4%; }
  .wardrobe-pick { gap: 7px; padding-top: 0; }
  .wardrobe-pick h2 { font-size: 28px; }
  .wardrobe-pick .eyeline { font-size: 9px; }
  .gear-choice { min-height: 81px; gap: 3px; padding: 7px 3px; }
  .gear-choice > span { width: 36px; height: 32px; }
  .gear-choice > b { font-size: 12px; }
  #modal[data-screen="settings"] #modal-content { inset: 20% 4% 12%; gap: 12px 18px; grid-template-columns: 140px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 35px; }
  .settings-nav { gap: 9px; }
  .settings-nav button { font-size: 19px; padding: 12px; gap: 12px; }
  .settings-nav button span { width: 22px; height: 22px; }
  .settings-pane { padding: 12px 16px; gap: 12px; }
  .settings-options h2 { font-size: 25px; margin-bottom: 6px !important; }
  .setting-row { min-height: 43px; gap: 8px; grid-template-columns: minmax(120px, 1fr) minmax(60px, 32%) 42px; font-size: 13px; }
  .setting-row output { min-width: 40px; font-size: 15px; padding: 5px 2px; }
  .aim-preview { width: 68px; height: 68px; }
  .settings-preview { gap: 15px; }
  .settings-preview > svg { width: 55px; height: 55px; }
  .quality-choices { gap: 7px; margin-bottom: 3px; }
  .quality-choices button { padding: 8px 4px; gap: 6px; font-size: 17px; }
  .sound-check { margin-top: 20px; gap: 12px; }
}
@media (max-width: 650px) {
  .settings-preview { display: none; }
  .settings-pane { grid-template-columns: 1fr; }
  #modal[data-screen="settings"] #modal-content { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .settings-nav button { font-size: 17px; padding: 10px 7px; gap: 7px; }
  .settings-nav button span { width: 18px; height: 18px; }
  .setting-row { grid-template-columns: 1fr 44px; gap: 8px; padding: 8px 0; }
  .setting-row input[type="range"] { grid-row: 2; grid-column: 1 / -1; }
  .setting-row output { grid-row: 1; grid-column: 2; }
  .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #modal.arsenal .weapon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Results use the whole game canvas, with the podium as the focal point. */
.mastery-line { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid #74776960; font: 700 12px Bay; color: #c7c8bb; }
.mastery-line strong { color: #e6cd8b; text-transform: uppercase; letter-spacing: .06em; }
.mastery-line small { font: 600 11px Bay; color: #a7aa98; }
.mastery-line .btn { margin-top: 4px; }
#modal[data-screen="profile"] #modal-content { width: 88%; max-height: 69%; }
.career-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.badge-choice { min-height: 180px; padding: 18px 12px; display: flex; flex-direction: column; gap: 9px; align-items: center; border: 1px solid #777869; border-radius: 5px; background: #30322c; font: italic 800 20px Rush; }
.badge-choice:disabled { opacity: .65; }
.badge-choice span { width: 40px; height: 40px; filter: grayscale(1); }
.badge-choice small { font: 700 12px/1.35 Bay; color: #babdad; }
.badge-choice > b { font: 700 10px Bay; text-transform: uppercase; margin-top: auto; color: #babdad; }
.badge-choice.earned { border-color: #b6a368; }
.badge-choice.earned span { filter: none; }
.badge-choice[aria-pressed="true"] { box-shadow: inset 0 -3px #c7dd75; border-color: #c7dd75; }
.challenge-list { display: grid; gap: 14px; }
.challenge-card { display: grid; gap: 12px; border: 1px solid #666a59; border-radius: 5px; background: #30322c; padding: 20px; }
.challenge-card progress { width: 100%; height: 8px; accent-color: #c7dd75; }
.challenge-card > span { font: 700 12px Bay; color: #e0d7a3; }
.map-card p { font: 700 12px/1.35 Bay; color: #c7c8bb; margin-top: 8px !important; }
#modal[data-screen="maps"] #modal-content { width: 88%; }
#modal[data-screen="maps"] .tiles, #modal[data-screen="room"] .tiles { grid-template-columns: repeat(4,minmax(0,1fr)); }
#modal .tile[aria-pressed="true"] { border-color: #c7dd75; background: #353b29; box-shadow: inset 0 -3px #c7dd75; }
@media(max-height:550px) {
  .mastery-line { padding-top: 5px; font-size: 10px; gap: 2px; }
  .mastery-line small { font-size: 9px; }
  #modal.arsenal .split { gap: 6px; }
  .badge-choice { min-height: 140px; padding: 12px 8px; font-size: 17px; }
}
@media(max-width:700px) { .career-stats { grid-template-columns: repeat(3, minmax(0,1fr)); } .badge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
#modal[data-screen="results"] { background: #22251d; }
#modal[data-screen="results"] .modal-head, #modal[data-screen="results"] .game-menu-footer { display: none; }
#modal[data-screen="results"] #modal-content { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; padding: 0; overflow: hidden; }
.victory-scene, #results-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.victory-title { position: absolute; top: 2%; left: 50%; transform: translateX(-50%); text-align: center; color: #fff7d9; text-shadow: 0 3px 2px #262b24; }
.victory-title > span { font: 700 clamp(10px,1.1vw,16px) Bay; text-transform: uppercase; letter-spacing: .1em; }
#modal .victory-title h2 { font: italic 800 clamp(24px,3.4vw,54px)/1 Rush; color: #fff4c7; margin: 4px 0; }
.victor-card { position: absolute; transform: translateX(-50%); border: 1px solid #e2ddbc9c; background: #1e2829d9; border-radius: 3px; padding: 10px 12px; color: #fff; text-shadow: 0 2px #181c19; }
.victor-rank { display: block; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); min-width: 42px; padding: 2px 10px; background: #d2db77; color: #1d2417; font: italic 800 25px Rush; text-shadow: none; text-align: center; border-radius: 2px; }
.victor-card.place-1 { border-color: #e9d270; background: #232b20df; }
.victor-card.place-1 .victor-rank { background: #efce49; }
#modal .victor-card h3 { font: italic 800 clamp(13px,1.7vw,27px) Rush; text-align: center; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin: 9px 0; }
.victor-card dl { display: grid; grid-template-columns: 1fr auto; gap: 4px; font: 700 clamp(10px,1.12vw,17px) Bay; margin: 0; }
.victor-card dd { font-family: Rush; font-style: italic; margin: 0; }
.victor-weapon { position: absolute; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; padding: 6px 10px; background: #202b2bd6; border: 1px solid #e5dfbc8c; border-radius: 3px; color: #f3ebc9; font: italic 800 clamp(10px,1.15vw,17px) Rush; }
.victor-weapon img { width: 44%; height: 46px; object-fit: contain; }
.victory-footer { position: absolute; left: 3%; right: 3%; bottom: 2%; display: flex; justify-content: space-between; align-items: end; color: #fff7df; font: 700 12px Bay; text-shadow: 0 2px #1c211a; }
.victory-footer > div:first-child { display: grid; gap: 4px; }
.results-rewards { color: #d7e49d; }
.victory-footer .btn { min-height: 34px; padding: 7px 18px; }
@media(max-height:550px) { .victor-card { padding: 5px 8px; } .victor-rank { top: -15px; font-size: 20px; } #modal .victor-card h3 { margin: 5px 0; font-size: 15px; } .victor-card dl { font-size: 10px; gap: 1px; } .victor-weapon img { height: 28px; } .victory-title > span { font-size: 9px; } }

@media (max-height: 550px) {
  .wardrobe-pick {
    gap: 7px;
  }
  .gear-choice {
    min-height: 56px;
    padding: 5px;
    font-size: 12px;
   background: #30322c;}
  .gear-choice > span {
    height: 19px;
  }
  .gear-grid {
    gap: 5px;
  }
  .sr-live-board {
    width: 180px;
  }
}

.bay-light {
  background: linear-gradient(0deg, #26262426, transparent 24%);
}

#modal.private-room #modal-content {
  width: 88%;
  height: 70%;
  max-height: none;
  margin: 1.5vh 6% 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, .85fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px 24px;
  overflow: hidden;
}
.private-room .room-top { grid-column: 1 / -1; }
#modal.private-room .room-config { grid-column: 1; grid-row: 2; overflow: auto; min-height: 0; padding-right: 10px; align-content: start; }
#modal.private-room .room-config .formrow { min-height: 36px; margin: 0; padding: 7px 12px; font-size: 14px; }
.private-room .room-roster { grid-column: 2; grid-row: 2; min-height: 0; overflow: auto; align-content: start; padding: 0; margin: 0; display: grid; gap: 8px; }
.private-room .room-roster:before { content: "SQUAD"; color: #c1c0bd; font: 800 13px Bay, sans-serif; letter-spacing: .12em; }
#modal.private-room .room-roster li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; padding: 14px; background: #4e4d4980; border-left: 3px solid #adaca7; }
.private-room .room-roster li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.private-room .room-roster li span { font: 700 12px Bay, sans-serif; color: #c4c3bf; }
#modal.private-room .room-roster .btn { grid-row: 1 / 3; grid-column: 2; min-width: 60px; min-height: 30px; padding: 6px 10px; font-size: 12px; }
.private-room .room-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-end; margin: 0; }
.private-room .room-summary { grid-column: 1; grid-row: 2; align-self: start; padding: 18px; background: #46454270; }
.private-room .room-note { grid-column: 1 / -1; grid-row: 3; }
.private-room .room-link-state { position: absolute; top: 11%; right: 6%; color: #f6d77d; }
@media(max-height:550px) {
  #modal.private-room #modal-content { height: 71%; gap: 8px 16px; }
  #modal.private-room .room-top .btn, #modal.private-room .room-actions .btn { min-height: 32px; padding: 6px 16px; font-size: 15px; }
  #modal.private-room .room-top .room-code { font-size: 26px; }
}

.profile-card .rename-trigger { display: block; margin: 6px 0; padding: 5px 10px; font: italic 800 13px Rush; color: #d6e49e; background: #3a3d32; border: 1px solid #777d65; border-radius: 3px; }
.rename-form { max-width: 580px; display: grid; gap: 16px; }
.rename-form label { font: 700 13px Bay; letter-spacing: .1em; }
.rename-form input { width: 100%; padding: 16px; font: italic 800 28px Rush; color: #f1f1e9; background: #30322c; border: 1px solid #8d917e; border-radius: 4px; }
#rename-error { color: #eea68c; min-height: 1em; }

@media(max-height:760px) {
  #modal[data-screen="profile"] .badge-choice { min-height: 116px; padding: 10px; gap: 5px; }
  #modal[data-screen="profile"] .badge-choice span { width: 26px; height: 26px; }
  #modal[data-screen="profile"] .badge-choice small { font-size: 10px; }
  #modal[data-screen="profile"] .profile-card { margin-bottom: 10px; }
}

.sr-equipment-slots > .empty { opacity: .3; }

.victor-weapon { display: grid; grid-template-columns: 40% minmax(0,1fr); column-gap: 8px; row-gap: 2px; }
.victor-weapon img { width: 100%; grid-row: span 2; }
.victor-weapon small { font: 700 clamp(8px,.7vw,11px) Bay; color: #dbddcc; white-space: nowrap; }

.victory-title { left: 3%; top: 2.4%; transform: none; text-align: left; max-width: 32%; }
#modal .victory-title h2 { font-size: clamp(20px,2.5vw,39px); }
.victory-title > span { font-size: clamp(8px,.8vw,12px); }
@media(max-width:700px) { .victory-title { max-width: 29%; } #modal .victory-title h2 { font-size: 18px; } }
/* Keep the result headline out of every player's overhead stat panel. */
.victory-title { top: auto; bottom: 8.5%; left: 3%; max-width: 29%; }

/* Online roster: real room members occupy the slots as they arrive. */
#modal.public-queue #modal-content { width:min(1150px,88vw); max-height:75%; margin:2vh auto 0; padding:0 0 16px; }
.queue-lobby { display:grid; gap:clamp(12px,2vh,24px); }
.queue-header { display:flex; justify-content:space-between; align-items:end; gap:20px; }
#modal .queue-header h2 { margin:5px 0 0; font:italic 800 clamp(22px,2.5vw,38px)/1 Rush,sans-serif; color:#f8edc9; }
.queue-count { white-space:nowrap; color:#e9d17b; font:italic 800 clamp(16px,1.5vw,24px) Rush,sans-serif; }
.queue-count strong { font-size:1.8em; color:#fff0b5; }
.queue-track { height:5px; background:#606348; }
.queue-track span { display:block; height:100%; background:#ead06d; transition:width .35s ease; }
.queue-slots { list-style:none; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(6px,1vw,12px); padding:0; margin:0; }
.queue-slot { min-width:0; min-height:clamp(54px,9vh,92px); display:flex; align-items:center; gap:10px; padding:8px; background:#343a2d; border-left:3px solid #707c56; }
.queue-slot.empty { background:#292e25; border-color:#4b5241; color:#838b78; }
.queue-slot.occupied { animation:queue-join .35s ease-out; }
.queue-slot.is-you { border-color:#efd677; background:#494b31; }
.queue-avatar { flex:none; display:grid; place-items:center; width:clamp(34px,4vw,54px); aspect-ratio:1; color:#c5ceac; background:#4b5740; }
.queue-avatar svg { width:65%; height:65%; }
.queue-slot.empty .queue-avatar { opacity:.35; }
.queue-name { min-width:0; overflow:hidden; text-overflow:ellipsis; font:italic 800 clamp(11px,1.2vw,17px) Rush,sans-serif; white-space:nowrap; }
.queue-name small { color:#f1d878; }
.queue-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#aab69a; font:italic 800 clamp(11px,1.05vw,15px) Rush,sans-serif; }
@keyframes queue-join { from { opacity:.45; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(max-width:700px) { .queue-slots { grid-template-columns:repeat(3,minmax(0,1fr)); } .queue-slot { min-height:43px; } .queue-avatar { width:30px; } .queue-footer { align-items:flex-start; } }
@media(prefers-reduced-motion:reduce) { .queue-slot.occupied { animation:none; } .queue-track span { transition:none; } }

/* Full-screen arena voting uses in-game map captures and authoritative totals. */
#modal.public-vote #modal-content { width:min(1400px,90vw); max-height:75%; margin:2vh auto 0; padding:0 0 16px; }
.vote-screen { display:grid; gap:clamp(14px,2.5vh,28px); }
.vote-header { display:flex; justify-content:space-between; align-items:end; gap:16px; }
#modal .vote-header h2 { margin:5px 0 0; color:#f8edc9; font:italic 800 clamp(23px,2.6vw,40px)/1 Rush,sans-serif; }
.vote-clock { color:#f2d77c; font:italic 800 clamp(35px,4vw,60px)/1 Rush,sans-serif; white-space:nowrap; }
.vote-clock small { font-size:.32em; }
.vote-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(8px,1vw,16px); }
#modal .vote-card { display:grid; grid-template-rows:auto 1fr; min-width:0; padding:0; overflow:hidden; text-align:left; color:#f8edc9; background:#30372b; border:2px solid #59644a; border-radius:0; cursor:pointer; }
#modal .vote-card:hover, #modal .vote-card:focus-visible { border-color:#fff1aa; }
#modal .vote-card.selected { border-color:#f2d77c; box-shadow:inset 0 -5px #f2d77c; }
.vote-card .map-shot { width:100%; border-radius:0; aspect-ratio:16 / 10; object-fit:cover; }
.vote-card-info { display:grid; gap:8px; padding:clamp(9px,1vw,16px); }
.vote-card-info strong { font:italic 800 clamp(17px,1.8vw,28px)/1 Rush,sans-serif; text-transform:uppercase; }
.vote-card-info small { min-height:2.4em; color:#c0c9ae; font:700 clamp(10px,1vw,14px)/1.2 Rush,sans-serif; }
.vote-total { color:#f2d77c; font:italic 800 clamp(12px,1vw,16px) Rush,sans-serif; }
.vote-footer { color:#aab69a; font:italic 800 clamp(11px,1vw,15px) Rush,sans-serif; }
@media(max-width:700px) { .vote-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .vote-card .map-shot { aspect-ratio:16 / 8; } .vote-card-info { gap:4px; } .vote-card-info small { min-height:0; } }
.season-title { display:grid; gap:5px; padding:18px; background:#343c2e; border-left:4px solid #e9d078; }
.season-title span,.season-title small { color:#b7c49c; font:italic 800 13px Rush,sans-serif; }
#modal .season-title h2 { margin:0; color:#f9edc4; font:italic 800 clamp(25px,3vw,40px) Rush,sans-serif; text-transform:uppercase; }
.season-title b { color:#edda8e; font:italic 800 20px Rush,sans-serif; }
.season-tiers { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.season-tier { display:grid; gap:10px; align-content:start; padding:16px; background:#30382b; border-bottom:3px solid #7d895c; }
.season-tier span,.season-tier small { color:#b7c49c; font:italic 800 13px Rush,sans-serif; }
.season-tier strong { color:#f8e7a3; font:italic 800 20px Rush,sans-serif; }
@media(max-width:650px) { .season-tiers { grid-template-columns:1fr; } }
#modal .season-mission-heading { color:#f8edc9; font:italic 800 24px Rush,sans-serif; margin:10px 0 0; }
.season-missions { display:grid; gap:8px; }
.season-mission { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; background:#30382b; border-left:3px solid #7d895c; }
.season-mission > div { display:grid; gap:5px; flex:1; min-width:0; }
.season-mission strong { color:#f8edc9; font:italic 800 18px Rush,sans-serif; }
.season-mission small { color:#b7c49c; font:italic 800 13px Rush,sans-serif; }
.season-mission progress { width:100%; accent-color:#e9d078; }
/* Keep the challenge panel scrollable without a native scrollbar rail. */
#modal[data-screen="tasks"] #modal-content { scrollbar-width:none; }
#modal[data-screen="tasks"] #modal-content::-webkit-scrollbar { display:none; }
.season-badge-art { width:44px; height:44px; filter:drop-shadow(0 2px 4px #0007); }
.season-badge-art svg { width:100%; height:100%; }
.active-event { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; padding:12px 16px; color:#fff0b0; background:#514c2d; border-left:4px solid #efd577; font:italic 800 17px Rush,sans-serif; }
.active-event span { color:#d3d4ae; font-size:12px; }
/* Reward lane uses connected milestones rather than a dashboard of cards. */
.season-title { background:linear-gradient(110deg,#3d4932,#283024 78%); padding:16px 20px; }
.season-overall { width:min(420px,100%); height:8px; accent-color:#efd577; }
.season-tiers { position:relative; gap:0; padding:18px 0 8px; background:linear-gradient(180deg,#303b2b99,#22291f44); }
.season-tiers:before { content:""; position:absolute; left:12%; right:12%; top:44px; height:4px; background:#869566; }
.season-tier { position:relative; justify-items:center; text-align:center; gap:7px; padding:0 10px 12px; background:transparent; border:0; }
.season-tier > span { z-index:1; display:grid; place-items:center; width:54px; height:54px; border-radius:50%; border:3px solid #98a475; background:#3d4934; color:#eaddab; font-size:11px; }
.season-tier.is-ready > span,.season-tier.is-claimed > span { border-color:#ffe58a; background:#71612e; }
.season-reward-art { display:flex; justify-content:center; align-items:center; height:64px; gap:3px; filter:drop-shadow(0 4px 5px #0008); }
.season-reward-art svg { width:54px; height:54px; }
.season-reward-art svg+svg { width:32px; height:32px; margin-left:-12px; margin-top:24px; }
.season-tier strong { min-height:2.2em; font-size:clamp(14px,1.3vw,19px); }
.season-tier .btn { width:100%; }
@media(max-width:650px) { .season-tiers { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:16px; } .season-tiers:before { display:none; } }
.queue-avatar img { width:100%; height:100%; object-fit:cover; }
