:root { color-scheme: dark; --gold: #d4be78; --text: #e9dfca; --muted: #c3b6a2; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #0e0b09; font: 16px/1.55 system-ui, sans-serif; }
.menu-screen { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(185px, 27%) 1fr; grid-template-rows: 1fr auto; gap: 18px; padding: 8vh 3vw 22px; background: #100c09 url("assets/menu-background.png") left center / cover no-repeat; }
.menu { align-self: start; display: grid; justify-items: start; margin-top: 43vh; gap: 10px; }
.menu button, h2, h3 { font-family: Type_Font_1, Impact, "Arial Narrow", sans-serif; text-transform: uppercase; font-weight: 500; }
.menu button { border: 0; background: transparent; color: #b8ab95; cursor: pointer; padding: 5px 8px 5px 0; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.1; text-align: left; text-shadow: 1px 2px #090705; }
.menu button:hover, .menu button[aria-expanded="true"], a { color: var(--gold); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.panel { position: relative; align-self: center; width: min(100%, 880px); max-height: 82vh; overflow: auto; background: #15110eec; border: 1px solid #7a6545; box-shadow: 0 12px 36px #0009; padding: clamp(20px, 4vw, 54px); }
.panel[hidden] { display: none; }
.panel h2 { font-size: clamp(2.5rem, 6vw, 5rem); margin: 0; line-height: 1; }
.panel h3 { font-size: 1.45rem; margin-bottom: 3px; }
.panel p { color: var(--muted); }
.panel img { display: block; width: 100%; max-height: 52vh; object-fit: contain; object-position: left; margin: 16px 0 8px; }
.eyebrow, footer { letter-spacing: .15em; font: .75rem ui-monospace, monospace; }
.close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; font-size: 26px; border: 1px solid #7a6545; background: #1b1510; color: var(--gold); cursor: pointer; }
footer { grid-column: 1 / -1; color: var(--muted); text-shadow: 1px 2px #000; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 650px) {
  .menu-screen { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 22vh 16px 16px; }
  .menu { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
  .menu button { font-size: 1.5rem; }
  .panel { align-self: start; max-height: none; }
}
@font-face { font-family: Type_Font_1; src: url("assets/Type_Font_1.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
.login-trigger { position: absolute; top: 16px; right: 3vw; z-index: 1; text-transform: uppercase; }
@media (max-width: 650px) { .login-trigger { right: 16px; } }
.armory-panel {
  width: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.armory-panel .close { z-index: 1; }





.weapons-panel {
  width: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.weapons-stage {
  position: relative;
  width: min(100%, 140vh);
  margin-inline: auto;
}
.weapons-stage img {
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
}
.weapons-panel .close { z-index: 1; }
.weapon-classes {
  position: absolute;
  top: 11.5%;
  left: 9.5%;
  width: 49.5%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1px, .35vw, 5px);
}
.weapons-panel .close { z-index: 4; }
.weapon-classes .test-dropdown { width: 100%; min-width: 0; }
.weapon-classes .test-dropdown[open] { z-index: 3; }
.weapon-classes .test-dropdown summary {
  min-block-size: 0;
  aspect-ratio: 142 / 47;
  padding: 0 8% 2px;
  gap: 3px;
  font-size: clamp(.45rem, 1vw, 1rem);
  text-transform: uppercase;
}
.weapon-classes .test-dropdown .test-dropdown-arrow { width: .4em; height: .4em; border-width: 1px; }
.weapon-classes .test-dropdown-list {
  inset: 100% auto auto 0;
  min-width: max(100%, 9rem);
  width: max-content;
  max-width: 15rem;
  max-height: min(45vh, 18rem);
  overflow: auto;
}
.weapon-classes .test-dropdown-list button { font-size: .9rem; }
.weapon-record {
  position: absolute;
  inset: 12.5% 7% 13% 67%;
  font-size: clamp(.6rem, 1.15vw, 1rem);
}

.leon-preview {
  position: absolute;
  inset: 23% auto auto 10%;
  width: 48%;
  font: 500 clamp(.65rem, 1.3vw, 1rem) Type_Font_1, Impact, sans-serif;
}
.leon-sprite {
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 33 / 12;
  margin-inline: auto;
}
.leon-sprite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  margin: 0;
  image-rendering: pixelated;
}
.leon-sprite img[src*="medved-makeshift-suppressor/layer.png"],
.leon-sprite img[src*="medved-large-makeshift-suppressor/layer.png"] {
  transform: translateY(-7.6923%);
}
.leon-sprite img[hidden] { display: none; }


.weapon-name {
  position: absolute;
  top: 21%;
  left: 7%;
  max-width: 54%;
  margin: 0;
  color: var(--gold);
  font-size: clamp(.7rem, 1.55vw, 1.45rem);
  line-height: 1.05;
}
.leon-preview {
  top: 50%;
  left: 5.2%;
  width: 57.8%;
  transform: translateY(-50%);
}
.leon-sprite {
  width: 44.6%;
  transform: translateX(-12.12%);
}
.weapon-record .attachment-dropdown {
  width: min(100%, 10rem);
  margin-inline: auto;
}
.weapon-record .attachment-dropdown summary {
  min-block-size: clamp(19px, 3.2vw, 42px);
  padding-inline: 9%;
  font-size: clamp(.6rem, 1.2vw, 1rem);
}
.attachment-dropdown .test-dropdown-list {
  max-height: 40vh;
  overflow: auto;
}
.attachment-options {
  display: grid;
  gap: .25em;
  margin-top: 1em;
  color: var(--muted);
}
.attachment-options button {
  border: 1px solid #594a33;
  padding: .25em .4em;
  text-align: left;
  background: #211b14;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.attachment-options button[aria-pressed="true"] {
  border-color: #cb700d;
  color: var(--gold);
}


.attachment-options .attachment-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #594a33;
  background: #211b14;
}
.attachment-card img {
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  clip-path: inset(4% 1%);
  image-rendering: pixelated;
}
.attachment-card:hover img { filter: brightness(1.12); }
.attachment-options .attachment-card[aria-pressed="true"] {
  border-color: #cb700d;
}



