/* ═══════════════════════════════════════
   MANUAL TWEAKS
   ═══════════════════════════════════════ */
:root {
  --intro-offset-y: 40px;   /* move intro block down(+) or up(-) */
}
/* ═══════════════════════════════════════ */

:root {
  --web-gray: #2c2c2c;
  --web-gold: #fa0;
  --web-magenta: #f0e;
  --white: white;
  --black: black;
}

ul {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 40px;
}

.list {
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  flex-flow: wrap;
  place-content: stretch center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  list-style-type: none;
  display: flex;
}

.list-item.weapon-box {
  border: 2px solid var(--web-gray);
  width: 100%;
  min-width: 0;
  height: auto;
  position: relative;
}

.weapon-image {
  display: block;
}

.weapon-name {
  text-align: left;
}

.body {
  color: #fff;
  letter-spacing: .15px;
  background: transparent;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  font-family: Sofia Sans, sans-serif;
  font-size: 18px;
  font-weight: 300;
}


.div-block.weapon-name-box {
  background-color: var(--web-gray);
  padding: 18px 14px;
}

.weapon-grade {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

.grade-1 { color: #999; }
.grade-2 { color: #5c9; }
.grade-3 { color: #5af; }
.grade-4 { color: #b06fff; }
.grade-5 { color: var(--web-gold); }

.weapon-name-new {
  float: none;
  color: var(--web-magenta);
  font-style: italic;
  font-weight: 500;
  display: block;
  position: absolute;
  inset: auto auto 8% 8%;
  z-index: 3;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

.icon-blocking {
  width: 55px;
  height: 55px;
  display: block;
  position: absolute;
  inset: auto auto 5% 5%;
}

.weapon-box {
  z-index: 5;
  outline-color: var(--web-gray);
  outline-offset: 0px;
  mix-blend-mode: normal;
  border-radius: 0;
  outline-width: 1px;
  outline-style: solid;
  min-width: 0;
  max-width: none;
  position: relative;
  overflow: hidden;
}

.heading {
  text-align: center;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 67px;
  font-family: Sofia Sans Extra Condensed, sans-serif;
  font-size: 150px;
  font-style: normal;
  font-weight: 800;
  line-height: 0.75;
  text-transform: uppercase;
}

.paragraph {
  text-align: center;
  width: 900px;
  margin-bottom: 72px;
  margin-left: auto;
  margin-right: auto;
  font-size: 24px;
  line-height: 1.2;
}

.section-intro {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  max-height: 100vh;
  padding: 60px 5%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.intro-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 620px;
  margin-top: var(--intro-offset-y);
}

.intro-heading {
  font-size: clamp(60px, 11vw, 220px);
  margin-bottom: 0;
  text-align: left;
}



.intro-center .paragraph {
  text-align: left;
  width: auto;
  margin: 0;
}

.intro-center .link-discord {
  margin-top: 20px;
}

.intro-center .link-discord {
  display: inline-flex;
  min-height: 104px;
  padding-right: 120px;
  margin-left: 0;
  margin-right: 0;
}

.intro-center .button-discord {
  font-size: 75px;
  line-height: 104px;
  margin-left: 39px;
}

.link-download {
  display: flex;
  align-items: stretch;
  background-color: #202231;
  border-radius: 200px;
  min-height: 104px;
  text-decoration: none;
  position: relative;
  transition: background-color 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}


.button-download {
  color: var(--web-gold);
  font-family: Sofia Sans Extra Condensed, sans-serif;
  font-size: 75px;
  font-weight: 800;
  font-style: normal;
  line-height: 104px;
  margin-top: 3px;
  margin-left: 39px;
  margin-right: 39px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.link-download:hover {
  background-color: var(--web-gold);
}

.link-download:hover .button-download {
  color: #fff;
}

.intro-right {
  flex: 0 0 44%;
  position: relative;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}

#hero-weapon-name {
  position: absolute;
  left: 75%;
  top: 75vh;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  font-family: Sofia Sans, sans-serif;
  font-size: 18px;
  /* font-style: italic; */
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  white-space: nowrap;
}

.section-weaponlist {
  width: 100%;
  box-sizing: border-box;
  margin-top: 100px;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

.weaponlist-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  padding-left: 0;
  padding-right: 0;
  list-style-type: none;
}

.link-discord {
  background-color: #202231;
  border-radius: 200px;
  align-items: stretch;
  max-width: 1025px;
  min-height: 150px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  display: flex;
  position: relative;
}

.text-block {
  position: absolute;
}

.image {
  max-width: 20vw;
  position: relative;
}

.button-discord {
  color: #5865f2;
  text-align: left;
  margin-top: 3px;
  margin-left: 79px;
  font-family: Sofia Sans Extra Condensed, sans-serif;
  font-size: 125px;
  font-style: normal;
  font-weight: 800;
  line-height: 150px;
  text-decoration: none;
  text-transform: uppercase;
}

.image-discordicon {
  border-radius: 0;
  height: 90%;
  max-height: 150%;
  position: absolute;
  inset: auto 0% 0% auto;
}

.hero-image {
  z-index: -1;
}

.hero-image.layer1 {
  z-index: -2;
  object-fit: cover;
  width: auto;
  min-height: 100vh;
  max-height: 100vh;
  position: fixed;
}

.hero-image.layer2 {
  z-index: -1;
  width: 150%;
  max-width: 150%;
  margin-left: -57%;
}

.quick-stack {
  margin-left: 5%;
  margin-right: 5%;
  padding-top: 200px;
  position: static;
}

.bg-image {
  z-index: -10;
  object-fit: cover;
  min-width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  max-height: 100vh;
  position: fixed;
}

.bg-image.layer1 {
  z-index: -2;
  object-fit: cover;
  width: auto;
  min-height: 100vh;
  max-height: 100vh;
  position: fixed;
}

.bg-image.layer2 {
  z-index: -1;
}

.text-span {
  color: var(--web-magenta);
  font-style: italic;
  font-weight: 500;
}

.text-span-2 {
  color: var(--web-gold);
  font-weight: 500;
}

@media screen and (max-width: 991px) {
  /* ── formerly 991px rules ── */
  .list {
    margin-left: auto;
    margin-right: auto;
  }
.weapon-name-new {
    font-size: 12px;
  }
  .section-intro {
    flex-direction: column;
    max-height: none;
    padding-left: 5%;
    padding-right: 5%;
  }

  .heading {
    font-size: 90px;
  }

  .intro-center .heading {
    text-align: left;
  }

  .paragraph {
    display: none;
  }

  .link-discord {
    max-width: 700px;
  }

  .intro-center .link-discord {
    max-width: 100%;
  }

  .button-discord {
    margin-left: 54px;
    font-size: 75px;
  }

  .intro-center .button-discord {
    font-size: 58px;
    line-height: 80px;
    margin-left: 30px;
  }

  /* ── formerly 767px rules (take priority) ── */
  #hero-canvas,
  #hero-weapon-name {
    display: none;
  }

  .weapon-name {
    font-size: 12px;
    line-height: 1.2;
  }

  .weapon-access-icons img {
    width: 25px;
    height: 25px;
  }

  .div-block.weapon-name-box {
    display: flex;
    align-items: center;
    padding: 6px 6px;
    height: 40px;
  }

  .section-intro {
    min-height: 0;
    padding-top: 0px;
    padding-bottom: 0;
    align-items: center;
    text-align: center;
  }

  .section-weaponlist {
    margin-top: 20px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .weaponlist-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .intro-center {
    align-items: center;
        gap: 12px;
        margin-top:20px;

  }

  .intro-right {
    display: none;
  }

  .heading {
    font-size: 70px;
    text-align: center;
  }

  .intro-heading {
    font-size: 36px;
  }

  .intro-center .heading {
    text-align: center;
    margin-bottom: 0px;
  }

  .link-discord {
    max-width: 90vw;
  }

  .intro-center .link-discord {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: 48px;
    margin-top: 0px;
    padding-left: 28px;
    padding-right: 28px;
    border-radius: 100px;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-center .button-discord {
    font-size: 24px;
    line-height: 1;
    margin-left: 0;
    text-align: center;
  }

  .link-download {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: 48px;
    padding-left: 28px;
    padding-right: 28px;
    border-radius: 100px;
    margin-left: auto;
    margin-right: auto;
  }
  .button-download { 
    font-size: 24px; 
    line-height: 1; 
    margin-left: 0; 
    margin-right: 0; 
    margin-top: 0; 
  }

  .image-discordicon {
    display: none;
  }
}

/* ── overrides & modal ── */

.weapon-box {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
              outline-color 0.2s,
              box-shadow 0.35s;
}

.weapon-box:hover {
  outline-color: transparent;
  box-shadow: 0 0 0 2px var(--web-gold), 0 10px 28px rgba(255, 170, 0, 0.15);
  z-index: 10;
}


.weapon-image-wrap {
  position: relative;
}

.weapon-access-icons {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 5%;
  right: 5%;
  z-index: 2;
}

.weapon-access-icons img {
  width: 55px;
  height: 55px;
  filter: brightness(0.17);
  transition: filter 0.15s;
}


@keyframes modal-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes slide-in  {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }

#weapon-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#weapon-modal.open    { animation: modal-in  0.3s ease-out forwards; }
#weapon-modal.closing { animation: modal-out 0.2s ease-in  forwards; }

#weapon-modal.open #modal-name        { animation: slide-in 0.55s cubic-bezier(0.22,1,0.36,1) 0.08s  both; }
#weapon-modal.open #modal-grade       { animation: slide-in 0.55s cubic-bezier(0.22,1,0.36,1) 0.18s  both; }
#weapon-modal.open #modal-type        { animation: slide-in 0.55s cubic-bezier(0.22,1,0.36,1) 0.26s  both; }
#weapon-modal.open #modal-access-icons{ animation: slide-in 0.55s cubic-bezier(0.22,1,0.36,1) 0.34s  both; }
#weapon-modal.open #modal-description { animation: slide-in 0.55s cubic-bezier(0.22,1,0.36,1) 0.42s  both; }
#weapon-modal.open #modal-copy        { animation: fade-in  0.4s  ease-out                    0.55s  both; }
#weapon-modal.open #modal-prev        { animation: fade-in  0.4s  ease-out                    0.1s   both; }
#weapon-modal.open #modal-next        { animation: fade-in  0.4s  ease-out                    0.1s   both; }
#weapon-modal.open #modal-close       { animation: fade-in  0.4s  ease-out                    0.1s   both; }

#modal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.35s ease;
}

#modal-info {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 10;
  pointer-events: none;
  max-width: 440px;
}

#modal-name,
#modal-grade,
#modal-type {
  pointer-events: auto;
  user-select: text;
  cursor: text;
}

#modal-name {
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 140px;
  font-weight: 800;
  font-style: normal;
  line-height: 0.88;
  color: #fff;
  text-transform: uppercase;
}

#modal-grade {
  font-family: 'Sofia Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 24px;
}

#modal-type {
  font-family: 'Sofia Sans', sans-serif;
  font-size: 36px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 20px;
}

#modal-access-icons {
  display: flex;
  /* flex-direction: column; */
  gap: 10px;
  margin-top: 30px;
  pointer-events: none;
}

#modal-access-icons img {
  width: 36px;
  height: 36px;
}
#modal-access-icons img.access-active {
  pointer-events: auto;
  cursor: default;
}

.access-active  { filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1); }
.access-inactive { filter: brightness(0.25); }

#modal-description {
  margin-top: 30px;
  font-size: 24px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  pointer-events: auto;
  user-select: text;
  cursor: text;
}

#modal-copy {
  display: inline-block;
  margin-top: 30px;
  background-color: #1a1a1a;
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  pointer-events: auto;
  color: #888;
  font-family: 'Sofia Sans', sans-serif;
  font-size: 16px;
  outline: 1px solid rgba(255, 255, 255, 0.5);;
  font-weight: 400;
  transition: box-shadow 0.2s ease, color 0.2s ease;
}
#modal-copy span {
  position: relative;
  top: 1px;
}
#modal-copy:hover {
  box-shadow: 0 0 0 2px var(--web-gold), 0 6px 20px rgba(255, 170, 0, 0.15);
  color: #bbb;
}


#copy-tooltip {
  position: fixed;
  z-index: 1100;
  background-color: var(--web-gray);
  outline: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Sofia Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 12px;
  pointer-events: none;
  display: none;
  white-space: nowrap;
}

#modal-prev,
#modal-next {
  position: absolute;
  bottom: 40px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  filter: brightness(0.45);
  transition: filter 0.15s;
  pointer-events: auto;
}
#modal-prev { left: 40px; }
#modal-next { right: 40px; }
#modal-prev:hover, #modal-next:hover { filter: brightness(1); }
#modal-prev img, #modal-next img { width: 100%; height: 100%; display: block; }

#modal-close {
  position: absolute;
  top: 60px;
  right: 40px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  filter: brightness(0.45);
  transition: filter 0.15s;
  pointer-events: auto;
}

#modal-close:hover { filter: brightness(1); }
#modal-close img { width: 100%; height: 100%; display: block; }

@media screen and (max-width: 767px) {
  #modal-info {
    top: 30px;
    left: 30px;
    max-width: calc(100vw - 60px);
  }

  #modal-name {
    font-size: 42px;
    line-height: 0.88;
  }

  #modal-grade {
    font-size: 16px;
    margin-top: 8px;
  }

  #modal-type {
    font-size: 16px;
    margin-top: 0px;
  }

  #modal-access-icons {
    flex-direction: column;
    gap: 5px;
    margin-top: 13px;
  }

  #modal-access-icons img {
    width: 22px;
    height: 22px;
  }

  #modal-description {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: calc(100vw - 60px);
    margin-top: 0;
    font-size: 14px;
  }

  #modal-copy {
    display: none;
  }

  #modal-prev, #modal-next { display: none; }

  #modal-close {
    margin-top:4px;
    top: 30px;
    right: 20px;
    width: 25px;
    height: 25px;
  }

  .weapon-access-icons img {
    width: 25px;
    height: 25px;
  }
}

@media screen and (min-width: 991px) and (max-width: 1500px) {
  /* Intro block */
  .section-weaponlist { margin-top: 60px; }
  .intro-center      { max-width: 466px; gap: 26px; }
  .intro-heading     { font-size: clamp(48px, 8.8vw, 176px); }
  .intro-center .paragraph { font-size: 18px; }
  .intro-center .link-discord  { min-height: 83px; padding-right: 96px; }
  .intro-center .button-discord { font-size: 60px; line-height: 83px; margin-left: 31px; }
  .link-download   { min-height: 83px; }
  .button-download { font-size: 60px; line-height: 83px; margin-left: 31px; margin-right: 31px; margin-top: 3px; }

  /* Modal */
  #modal-info        { max-width: 352px; }
  #modal-name        { font-size: 96px; }
  #modal-grade       { font-size: 21px; margin-top: 13px; }
  #modal-type        { font-size: 21px; margin-top: 8px; }
  #modal-access-icons{ margin-top: 21px; gap: 8px; }
  #modal-access-icons img { width: 29px; height: 29px; }
  #modal-description { font-size: 18px; margin-top: 18px; }
  #modal-copy        { font-size: 13px; margin-top: 24px; }
  #modal-close       { font-size: 29px; }
}

@media (hover: none) {
  .weapon-box:hover,
  .list-item.weapon-box:hover {
    box-shadow: none;
    outline-color: var(--web-gray);
    border-color: var(--web-gray);
    z-index: 5;
    transform: none;
  }

  #modal-close:hover { filter: brightness(0.45); }
  #modal-copy:hover  { box-shadow: none; color: #888; }
}
