@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&display=swap');

:root {
  --bg: #0a0c10;
  --bg2: #0f141b;
  --card: #121821;
  --ink: #e6edf3;
  --muted: #9fb0c1;
  --accent: #6fe2d1;
  --ring: rgba(111, 226, 209, 0.35);
  --shadow: 0 10px 26px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(111,226,209,0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(242,181,107,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}


.hero-banner {
  display: block;
  width: min(100%, 210px);
  height: auto;
  margin: -8px auto 0;
}

.socials {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.social-link img {
  width: 18px;
  height: 18px;
  display: block;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

h2,
h3,
.btn-link,
.modifiers-title {
  font-family: "Cormorant Garamond", serif;
  color: rgb(255, 255, 255);
}

.tagline {
  color: var(--muted);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  text-align: center;
}
.tagline-gif {
  height: 1.2em;
  width: auto;
  vertical-align: middle;
  margin-left: 6px;
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  justify-self: start;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid rgba(54, 54, 56, 0.8);
  background: #121821;
  color: var(--ink);
  cursor: pointer;
}

#generate {
  background-image: url("/apps/hunt-loadout/images/generate_loadout.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  outline: none;
  font-family: "Cormorant Garamond", serif;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}


.section h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: var(--muted);
}

.subsection {
  margin-top: 10px;
}

.subsection h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.section-foot {
  margin-top: 10px;
}
.loadout-total {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.loadout-total .label {
  font-size: 12px;
  color: rgb(206, 206, 206);
}
.loadout-total .value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgb(206, 206, 206);
  font-family: system-ui, -apple-system, sans-serif;
}
.loadout-total .value img {
  width: 14px;
  height: 14px;
  display: block;
}

.invoice-wrap {
  padding: 2px 0;
}

.invoice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.invoice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgb(206, 206, 206);
}

.invoice-item-name {
  color: rgb(206, 206, 206);
}

.invoice-item-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgb(206, 206, 206);
  font-family: system-ui, -apple-system, sans-serif;
}

.invoice-item-value img {
  width: 14px;
  height: 14px;
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.tile {
  background: #121821;
  --tile-bg: url("/apps/hunt-loadout/images/tile_background.png");
  border: none;
  border-radius: 0;
  padding: 14px;
  box-shadow: var(--shadow);
  min-height: 64px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  outline: 1px solid rgba(54, 54, 56, 0.6);
  outline-offset: 2px;
  background-image: var(--tile-img, none), var(--tile-bg);
  background-size: var(--tile-img-size, auto), var(--tile-bg-size, cover);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}

.tile.has-img {
  --tile-img-size: contain;
}

.dual-wield {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: none;
  padding: 6px 10px;
}
.dual-wield-img {
  width: 60%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.dual-wield-img + .dual-wield-img {
  margin-left: -198px;
}

.tile .label {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 2;
  font-size: 13px;
  color: rgb(206, 206, 206);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.2px;
}
.tile-price {
  position: absolute;
  right: 8px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgb(206, 206, 206);
  font-family: system-ui, -apple-system, sans-serif;
  background: transparent;
  padding: 0;
  border-radius: 0;
  z-index: 2;
}
.tile-price span {
  position: relative;
  top: 2px;
}
.tile-price img {
  width: 14px;
  height: 14px;
  display: block;
}
.tile-slot {
  position: absolute;
  left: 8px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  z-index: 2;
}
.tile-slot img {
  width: auto;
  height: auto;
  max-width: 18px;
  max-height: 18px;
  display: block;
}
.tile-ammo {
  position: absolute;
  right: 8px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink);
  z-index: 2;
}
.tile-ammo-icon {
  width: auto;
  height: 16px;
  max-width: 16px;
  display: block;
}
.tile-ammo-type {
  font-weight: 500;
}
.tile-ammo-dollar {
  width: 12px;
  height: 12px;
  display: block;
}
.tile-ammo-price {
  opacity: 0.85;
}

.btn-link {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-link:hover {
  color: var(--ink);
}

#weapon-primary, #weapon-secondary {
  grid-template-columns: 1fr;
}

#weapon-primary .tile,
#weapon-secondary .tile {
  max-width: 100%;
}



.btn-corner {
  position: absolute;
  top: 6px;
  right: 6px;
}


.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px 0;
  max-width: 50%;
}
.weapon-subhead {
  width: calc(100% - 144px);
  max-width: calc(100% - 144px);
}
.subsection h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.modifiers {
  margin-top: 10px;
  padding: 8px 10px;
  border: none;
  background: transparent;
}


.modifiers-title {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: rgb(206, 206, 206);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.mod-gear {
  font-size: 11px;
  margin-left: 2px;
  color: rgb(206, 206, 206);
}

.modifiers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 8px;
  font-family: "Cormorant Garamond", serif;
}
.mod-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}
.mod-group.is-disabled {
  opacity: 0.5;
}
.mod-group.is-disabled .toggle {
  color: rgb(130, 130, 130);
}
.mod-group-title {
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgb(206, 206, 206);
  font-family: "Cormorant Garamond", serif;
  font-weight: bolder;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(206, 206, 206);
  font-size: 11px;
  text-transform: uppercase;
  font-family: "Cormorant Garamond", serif;
}
.toggle.is-disabled {
  color: rgb(130, 130, 130);
  opacity: 0.8;
}
.toggle.is-disabled input {
  cursor: not-allowed;
  border-color: rgb(95, 95, 95);
}
.toggle.is-disabled input:checked {
  background: rgb(95, 95, 95);
  border-color: rgb(95, 95, 95);
}
.toggle.attention-flash {
  animation: force-two-ammo-flash 0.9s ease 3;
}
@keyframes force-two-ammo-flash {
  0%, 100% { color: rgb(206, 206, 206); }
  50% { color: #ff4d4d; }
}

.toggle input {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgb(140, 140, 140);
  background: transparent;
  display: inline-grid;
  place-content: center;
  margin: 0;
}

.toggle input::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
  background: rgb(15, 20, 27);
  clip-path: polygon(14% 44%, 0 59%, 42% 100%, 100% 22%, 84% 8%, 41% 64%);
}

.toggle input:checked {
  background: rgb(245, 185, 59);
  border-color: rgb(245, 185, 59);
}

.toggle input:checked::before {
  transform: scale(1);
}

.toggle input:focus-visible {
  outline: 1px solid rgb(245, 185, 59);
  outline-offset: 1px;
}

.mod-dropdown {
  position: relative;
  display: inline-block;
}
.mod-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: rgb(206, 206, 206);
  font-size: 12px;
  user-select: none;
}
.mod-dropdown summary::-webkit-details-marker {
  display: none;
}
.mod-dropdown summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 14px;
  color: rgb(206, 206, 206);
}
.mod-dropdown[open] summary::after {
  content: "▴";
}
.mod-dropdown-menu {
  position: absolute;
  top: 20px;
  left: 0;
  min-width: 180px;
  background: rgba(18,24,33,0.95);
  border: 1px solid rgba(111,226,209,0.18);
  box-shadow: var(--shadow);
  padding: 8px 10px;
  z-index: 10;
}

.tile-wrap {
  display: flex;
  flex-direction: column;
}


.mod-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}
.mod-label {
  font-size: 12px;
  color: rgb(206, 206, 206);
}

/* Bloodline input: no white highlight, hide spinners */
.mod-input {
  width: 90px;
  padding: 4px 6px;
  background: #0f141b;
  color: rgb(206, 206, 206);
  border: 1px solid rgba(111,226,209,0.2);
}

  outline: none;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.mod-input:focus {
  border-color: rgba(111,226,209,0.35);
  outline: none;
  box-shadow: none;
}
.mod-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mod-input::-webkit-outer-spin-button,
.mod-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mod-slider {
  flex: 0 0 50%;
  accent-color: rgb(245, 185, 59);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.mod-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 185, 59, 0.35);
  border: 1px solid rgba(245, 185, 59, 0.55);
}
.mod-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(245, 185, 59);
  border: 1px solid rgba(15, 20, 27, 0.95);
  box-shadow: 0 0 0 1px rgba(245, 185, 59, 0.25);
}
.mod-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 185, 59, 0.35);
  border: 1px solid rgba(245, 185, 59, 0.55);
}
.mod-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(245, 185, 59);
  border: 1px solid rgba(15, 20, 27, 0.95);
  box-shadow: 0 0 0 1px rgba(245, 185, 59, 0.25);
}

.mod-value {
  font-size: 11px;
  color: rgb(206, 206, 206);
  font-family: system-ui, -apple-system, sans-serif;
  min-width: 32px;
  text-align: right;
}

.mod-icon {
  width: 16px;
  height: 16px;
  margin-right: 1px;
  opacity: 0.9;
}

.mod-error {
  margin: 4px 0 8px;
  color: #ff6b6b;
  font-size: 12px;
}

.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.is-disabled .btn-link {
  pointer-events: none;
}

.hunter-col.is-disabled #hunter .tile {
  opacity: 0.35;
  filter: grayscale(1);
}
.is-disabled-force {
  opacity: 0.35 !important;
  filter: grayscale(1) !important;
}

.modifiers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modifiers.collapsed .mod-row,
.modifiers.collapsed .modifiers-grid,
.modifiers.collapsed .mod-error {
  display: none;
}

.mod-collapse {
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgb(206, 206, 206);
}
.mod-hamburger {
  font-size: 11px;
  margin-left: 2px;
  color: rgb(206, 206, 206);
}


.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.9);
}

.bg-center {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 48px));
  background: rgba(0, 0, 0, 0.82);
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 2;
}


.weapons-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: stretch;
}

.weapons-col {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.weapons-col > .section-head {
  margin-top: -37px;
}








.hunter-col {
  grid-column: 1;
  grid-row: 1 / span 2;
}








.hunter-col .grid {
  grid-template-columns: 1fr;
  height: 100%;
}


.weapons-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hunter-head {
  margin-left: auto;
}

.hunter-col .section-head {
  justify-content: flex-end;
}

.hunter-col .tile {
  width: 100%;
  height: 100%;
  margin-top: -10.5px;
}
.hunter-col .tile.has-img {
  background-size: cover;
  background-position: center;
}
#hunter .tile {
  --tile-bg: url("/apps/hunt-loadout/images/hunter_background.png");
  --tile-bg-size: 100% 101%;
}

/* Match Hunter subtitle to Primary/Secondary style */
.hunter-col .subhead h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.2px;
  }
.hunter-col .subhead {
  margin-top: 0px;
  max-width: 100%;
}
.hunter-col .subhead .btn-link {
  margin-top: 9px;
}
.hunter-col .subhead h3 {
  margin-top: 11px;
}

.weapon-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 24px;
  align-items: stretch;
}
.ammo-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
}
.ammo-col .subhead {
  max-width: 100%;
  margin: -31px 0 0px 0;
}
.ammo-col .ammo-box {
  flex: 1;
}
.ammo-box {
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
  height: 100%;
}
.ammo-box.is-split {
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.ammo-box.is-disabled .tile {
  opacity: 0.35;
}
.ammo-box .tile {
  height: 100%;
  min-height: 0;
}
.ammo-box-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0.95;
}
