/* Buy-screen art direction: smoked glass, warm brass, large actual model imagery. */
.supply-screen {
  position: fixed;
  inset: 0;
  overflow: auto;
  background: linear-gradient(
    115deg,
    rgba(12, 16, 20, 0.94),
    rgba(20, 25, 29, 0.89) 54%,
    rgba(10, 14, 17, 0.95)
  );
  backdrop-filter: blur(14px) saturate(0.6);
  color: #f0f0e9;
  font-family: Arial, sans-serif;
  --brass: #e1c588;
  --dim: #acb4b6;
  --line: rgba(218, 227, 226, 0.16);
}
.supply-inner {
  max-width: 1440px;
  min-height: 100%;
  margin: auto;
  padding: 30px 40px 0;
  display: flex;
  flex-direction: column;
}
.supply-header {
  display: grid;
  grid-template-columns: 1fr auto auto 64px;
  align-items: center;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.supply-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brass);
}
.supply-header h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 8px 0 4px;
  text-transform: none;
}
.supply-header p {
  font-size: 14px;
  color: var(--dim);
  margin: 0;
}
.supply-budget,
.supply-clock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.supply-budget span,
.supply-clock span {
  font-size: 12px;
  color: var(--dim);
}
.supply-budget strong {
  font-size: 32px;
  font-weight: 500;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.supply-clock strong {
  font-size: 24px;
  font-weight: 400;
}
.supply-close {
  height: 64px;
  border: 1px solid var(--line);
  background: transparent;
  color: #e3e6e5;
  font-size: 22px;
  padding: 6px;
  border-radius: 4px;
}
.supply-close small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: var(--dim);
}
.supply-content {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(285px, 1fr) 180px;
  gap: 28px;
  align-items: start;
  flex: 1;
  padding-top: 24px;
}
.supply-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--dim);
  padding: 0 0 20px;
}
.supply-section-head button {
  border: 0;
  background: transparent;
  color: var(--brass);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 10px 0;
  min-height: 40px;
}
.supply-section-head button:disabled {
  opacity: 0;
  pointer-events: none;
}
.supply-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(224, 218, 194, 0.3);
  border-radius: 50%;
  overflow: hidden;
  background: #0e1317;
  isolation: isolate;
}
.supply-sector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: radial-gradient(
    circle at 50% 50%,
    #272d30 0%,
    #181e22 65%,
    #13191d 100%
  );
  color: #e9edeb;
  text-align: center;
  transition: background 0.15s;
}
.supply-sector:hover,
.supply-sector.is-selected,
.supply-sector:focus-visible {
  background: radial-gradient(circle at 50% 50%, #5b5140, #3d3b32 60%, #2a2d28);
  color: #fff;
  outline: 0;
}
.supply-sector:focus-visible .supply-sector-label {
  outline: 2px solid var(--brass);
  outline-offset: 5px;
}
.supply-sector-label {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32%;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  line-height: 1.18;
}
.supply-sector-label img {
  width: 122%;
  height: 55px;
  object-fit: contain;
  filter: brightness(1.45) drop-shadow(0 5px 5px #0006);
}
.supply-sector-label strong {
  font-size: 12px;
  font-weight: 500;
  max-width: 155px;
}
.sector-price {
  font-size: 12px;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.supply-sector.is-unaffordable .sector-price {
  color: #efa59a;
}
.supply-sector.is-unaffordable .sector-price:before {
  content: "− ";
}
.sector-key {
  font-size: 10px;
  color: #98a09e;
}
.category-mark {
  font-size: 27px;
  color: var(--brass);
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.supply-sector-label .sector-price {
  max-width: 120px;
  font-size: 11px;
}
.supply-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 21%;
  aspect-ratio: 1;
  border: 1px solid #d5bd82;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #585348, #282c29);
  box-shadow:
    0 0 0 7px #141a1dc9,
    0 0 0 8px #8a80614d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #f4dfac;
  z-index: 2;
  padding: 0;
}
.supply-hub b {
  font-size: clamp(20px, 2.1vw, 32px);
  font-weight: 500;
}
.supply-hub span {
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: 4px;
}
.supply-hint {
  font-size: 12px;
  text-align: center;
  color: var(--dim);
  margin: 22px 0 0;
  line-height: 1.5;
}
.supply-detail {
  background: linear-gradient(145deg, #2b3235a8, #141b1fd9);
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 480px;
  border-radius: 4px;
  overflow: hidden;
}
.supply-detail > .supply-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.supply-detail h2 {
  font-size: 27px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 10px 0 4px;
}
.supply-hero-photo {
  height: 162px;
  margin: 0 -16px;
  background: radial-gradient(ellipse, #7d8a8a16, transparent 65%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.supply-hero-photo img,
.supply-overview-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.45) drop-shadow(0 16px 10px #0007);
}
.supply-item-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.supply-item-price strong {
  color: var(--brass);
  font-size: 25px;
  font-weight: 500;
}
.supply-item-price span {
  font-size: 12px;
  color: var(--dim);
}
.supply-stats {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.supply-stats > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.supply-stats span,
.supply-stats b {
  font-size: 12px;
  font-weight: 400;
  color: #c2cbcb;
}
.supply-stats b {
  color: #eff3ee;
  font-variant-numeric: tabular-nums;
}
.supply-stats i {
  grid-column: 1/-1;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--brass) var(--fill),
    #d2d7cb20 var(--fill)
  );
  display: block;
}
.supply-item-description {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
  margin: 18px 0;
}
.supply-confirm {
  border: 1px solid var(--brass);
  background: #e1c588;
  color: #151b1f;
  width: 100%;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px;
}
.supply-confirm:disabled {
  background: #2d3030;
  border-color: #666;
  color: #abb1b0;
  cursor: not-allowed;
}
.supply-slot-note {
  display: block;
  font-size: 10px;
  color: var(--dim);
  text-align: center;
  margin-top: 10px;
}
.supply-detail > p {
  font-size: 13px;
  color: #c0c9cb;
  line-height: 1.65;
}
.supply-overview-photo {
  height: 180px;
  margin: 10px -20px;
}
.supply-notes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.supply-notes span {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--brass);
}
.supply-notes b {
  color: #d4dada;
  font-weight: 400;
}
.supply-inventory h2 {
  font-size: 14px;
  font-weight: 400;
  margin: 6px 0 20px;
  color: #d1d8d7;
}
.supply-loadout {
  border-top: 1px solid var(--line);
}
.loadout-slot {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  min-height: 135px;
}
.loadout-slot > span,
.loadout-support > span {
  font-size: 11px;
  color: var(--dim);
  display: block;
}
.loadout-slot img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  filter: brightness(1.45);
}
.loadout-slot strong {
  font-size: 12px;
  font-weight: 400;
  display: block;
  text-align: right;
}
.loadout-slot p {
  font-size: 12px;
  color: #bac1c0;
  text-align: right;
  margin-top: 28px;
}
.loadout-support {
  padding-top: 20px;
}
.loadout-support > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
}
.loadout-support b {
  font-weight: 400;
  color: #e1e5df;
  font-size: 11px;
}
.loadout-grenades {
  display: flex;
}
.loadout-grenades img {
  width: 25%;
  height: 55px;
  object-fit: contain;
}
.supply-equipment {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 55px;
  color: var(--brass);
}
.supply-equipment .asset-icon {
  width: 38px;
  height: 38px;
}
.supply-hero-photo > .supply-equipment {
  height: 120px;
}
.supply-hero-photo .asset-icon {
  width: 70px;
  height: 70px;
}
.supply-message {
  font-size: 12px;
  color: var(--brass);
  min-height: 32px;
  display: flex;
  align-items: center;
  margin-top: 16px;
}
.supply-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 22px;
}
.supply-footer button {
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 16px;
  color: #e2e7e3;
  font-size: 12px;
}
.supply-footer button:hover,
.supply-close:hover {
  background: #e1c58818;
  border-color: var(--brass);
}
.supply-footer > span {
  font-size: 10px;
  color: #9ba8a9;
  max-width: 200px;
  line-height: 1.5;
}
.supply-footer > div {
  display: flex;
  gap: 8px;
}
.supply-footer kbd {
  font-family: inherit;
  font-size: 10px;
  color: var(--brass);
  margin-right: 10px;
}
.supply-screen button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
#vignette {
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 50%,
    #0c10172e 100%
  );
}
@media (min-width: 1500px) {
  .supply-inner {
    padding-top: 48px;
  }
  .supply-content {
    padding-top: 36px;
    gap: 40px;
  }
  .supply-detail {
    min-height: 550px;
  }
  .supply-hero-photo {
    height: 200px;
  }
  .supply-sector-label img {
    height: 70px;
  }
  .supply-sector-label strong {
    font-size: 14px;
  }
  .sector-price {
    font-size: 14px;
  }
}
@media (max-height: 900px) and (min-width: 1000px) {
  .supply-inner {
    padding: 20px 32px 0;
  }
  .supply-header {
    padding-bottom: 16px;
  }
  .supply-header h1 {
    font-size: 27px;
  }
  .supply-content {
    gap: 22px;
    padding-top: 18px;
    grid-template-columns: minmax(350px, 1.25fr) minmax(280px, 1fr) 160px;
  }
  .supply-wheel {
    max-width: 430px;
    margin: auto;
  }
  .supply-section-head {
    padding-bottom: 10px;
  }
  .supply-detail {
    padding: 20px;
    min-height: 442px;
  }
  .supply-hero-photo {
    height: 140px;
  }
  .supply-detail h2 {
    font-size: 25px;
  }
  .supply-item-description {
    margin: 14px 0;
  }
  .supply-overview-photo {
    height: 150px;
  }
  .supply-notes {
    margin-top: 14px;
    gap: 14px;
    padding-top: 16px;
  }
  .supply-message {
    margin-top: 8px;
    min-height: 24px;
  }
  .supply-footer {
    padding: 12px 0;
  }
  .supply-hint {
    margin-top: 12px;
  }
}
@media (max-width: 1000px) {
  .supply-inner {
    padding: 24px;
  }
  .supply-header {
    gap: 24px;
    grid-template-columns: 1fr auto 50px;
  }
  .supply-clock {
    display: none;
  }
  .supply-content {
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 1fr);
    gap: 24px;
  }
  .supply-inventory {
    grid-column: 1/-1;
  }
  .supply-inventory h2 {
    margin: 0 0 8px;
  }
  .supply-loadout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
  .loadout-slot {
    min-height: 100px;
    padding: 12px 0;
  }
  .loadout-support {
    padding-top: 12px;
  }
  .loadout-slot img {
    height: 50px;
  }
  .supply-footer > span {
    display: none;
  }
}
@media (max-width: 650px) {
  .supply-inner {
    padding: 20px 16px 0;
  }
  .supply-header {
    gap: 14px;
    grid-template-columns: 1fr auto 44px;
    padding-bottom: 16px;
  }
  .supply-kicker {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .supply-header h1 {
    font-size: 24px;
  }
  .supply-header p {
    font-size: 11px;
  }
  .supply-budget strong {
    font-size: 23px;
  }
  .supply-budget span {
    font-size: 10px;
  }
  .supply-close {
    height: 48px;
    font-size: 18px;
  }
  .supply-close small {
    font-size: 8px;
  }
  .supply-content {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 12px;
    gap: 18px;
  }
  .supply-wheel {
    max-width: 450px;
    margin: auto;
  }
  .supply-sector-label img {
    height: 42px;
  }
  .supply-sector-label strong {
    font-size: 11px;
  }
  .supply-sector-label .sector-price {
    font-size: 10px;
  }
  .category-mark {
    font-size: 23px;
  }
  .sector-key {
    font-size: 9px;
  }
  .supply-hint {
    font-size: 11px;
    margin: 14px 0 0;
  }
  .supply-detail {
    min-height: 0;
    padding: 20px;
  }
  .supply-hero-photo {
    height: 170px;
  }
  .supply-inventory {
    grid-column: auto;
  }
  .supply-loadout {
    gap: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .loadout-support {
    grid-column: 1/-1;
  }
  .supply-footer {
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: #141b1ff5;
    margin: 0 -16px;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
  }
  .supply-footer > div {
    flex: 1;
    justify-content: flex-end;
  }
  .supply-footer button {
    font-size: 10px;
    padding: 8px;
  }
  .supply-footer kbd {
    display: none;
  }
  .supply-footer > button {
    padding: 8px 12px;
  }
  .supply-message {
    font-size: 11px;
    line-height: 1.5;
    margin: 12px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .supply-screen * {
    transition: none !important;
  }
}

@media (max-height: 900px) and (min-width: 1000px) {
  .supply-content {
    grid-template-columns: minmax(350px, 1.25fr) minmax(280px, 1fr) 160px;
  }
  .supply-header h1 {
    font-size: 26px;
  }
  .supply-detail {
    padding: 18px;
  }
  .supply-detail h2 {
    font-size: 25px;
    margin-top: 8px;
  }
  .supply-hero-photo {
    height: 112px;
  }
  .supply-item-price {
    padding-bottom: 12px;
  }
  .supply-stats {
    gap: 8px;
    margin-top: 14px;
  }
  .supply-item-description {
    margin: 12px 0;
  }
  .supply-slot-note {
    font-size: 10px;
    margin-top: 8px;
  }
  .supply-wheel {
    max-width: 430px;
  }
  .supply-sector-label img {
    height: 55px;
  }
  .supply-hint {
    font-size: 11px;
  }
  .supply-overview-photo {
    height: 140px;
  }
  .supply-notes {
    gap: 14px;
  }
  .supply-detail {
    min-height: 460px;
  }
  .supply-footer {
    padding: 12px 0 16px;
  }
  .supply-footer > span {
    max-width: none;
  }
}

.supply-hero-photo img {
  object-fit: cover;
}
.supply-sector-label img {
  object-fit: cover;
}
@media (max-height: 760px) and (min-width: 1000px) {
  .supply-wheel {
    max-width: 400px;
  }
  .supply-section-head {
    padding-bottom: 4px;
  }
  .supply-detail {
    min-height: 440px;
  }
  .supply-hero-photo {
    height: 100px;
  }
  .supply-hint {
    margin-top: 10px;
  }
  .supply-footer {
    padding-top: 10px;
    padding-bottom: 12px;
  }
  .supply-message {
    margin-top: 4px;
  }
}
.supply-hero-photo img,
.supply-sector-label img {
  object-fit: contain;
}
.supply-hero-photo img.longgun-photo {
  transform: scale(1.5);
}
.supply-hero-photo img.sidearm-photo {
  transform: scale(1.15);
}
@media(max-width:650px){.supply-hero-photo img.longgun-photo,.supply-hero-photo img.sidearm-photo{transform:none}}

/* Russian hub label must remain inside its circular control. */
.supply-hub b{font-size:14px;letter-spacing:.04em;max-width:100%;white-space:nowrap}
