@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("fonts/silkscreen-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f2eef9;
  --violet: #a855f7;
  --violet-bright: #c084fc;
  --violet-soft: #b98cff;
  --line: rgba(180, 122, 255, 0.55);
  --surface-top: rgba(47, 27, 88, 0.66);
  --surface-bottom: rgba(22, 13, 42, 0.8);
}

* {
  box-sizing: border-box;
}

html {
  background: #0c0617;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: #0c0617;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #0c0617;
  background-image: url("img/bg-1280.webp");
  background-size: cover;
  background-position: 50% 0;
  background-repeat: no-repeat;
}

@media (min-width: 960px) {
  .background {
    background-image: url("img/bg-1920.webp");
  }
}

@media (min-width: 1900px) {
  .background {
    background-image: url("img/bg-2496.webp");
  }
}

/* A soft violet bloom behind the wordmark, plus a restrained vignette:
   the supplied artwork is already dark enough to carry white text. */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(56% 42% at 50% 48%, rgba(126, 58, 237, 0.1), rgba(76, 29, 149, 0.04) 52%, transparent 74%),
    linear-gradient(180deg, rgba(8, 3, 18, 0.16) 0%, transparent 16%, transparent 78%, rgba(8, 3, 18, 0.34) 100%);
}

.landing {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(150px, max(22.8vh, 18.4vw), 460px) 14px clamp(20px, 4vh, 58px);
}

.content {
  width: min(90vw, max(480px, 43.4vw), 1082px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.title {
  margin: 0;
  font-family: "Silkscreen", "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.52vw, 3.95rem);
  line-height: 1;
  letter-spacing: 0.004em;
  text-align: center;
  white-space: nowrap;
  color: #e2deeb;
  text-shadow:
    0 0.05em 0 #b6afc3,
    0 0.1em 0 #837a91,
    0 0.155em 0 #554b66,
    0 0.19em 0.01em rgba(18, 12, 28, 0.55),
    0 0 32px rgba(168, 120, 255, 0.15);
}

.tagline {
  margin: clamp(14px, 3.5vh, 58px) 0 0;
  font-size: clamp(0.7rem, 1.15vw, 1.9rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
  color: #c8a8f1;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.rule {
  position: relative;
  align-self: center;
  width: 46%;
  height: 1px;
  margin-top: clamp(18px, 5.2vh, 86px);
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5) 22%, rgba(168, 85, 247, 0.5) 78%, transparent);
}

.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: clamp(9px, 1.35vh, 22px);
  transform: translate(-50%, -50%);
  border-radius: 1px;
  background: var(--violet);
  box-shadow: 0 0 13px rgba(168, 85, 247, 0.95);
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 28%);
  gap: clamp(8px, 1.25vw, 34px);
  align-items: stretch;
  margin-top: clamp(26px, 8vh, 133px);
}

.ip-box,
.copy {
  min-height: clamp(62px, 9vh, 150px);
  border: 1.5px solid var(--line);
  border-radius: clamp(12px, 1.6vh, 26px);
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  box-shadow:
    0 0 28px rgba(124, 58, 237, 0.26),
    inset 0 0 30px rgba(88, 28, 135, 0.2);
}

.ip-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 2vw, 34px);
  overflow: hidden;
}

.ip {
  display: block;
  font-size: clamp(1.4rem, 3.35vw, 5.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: var(--violet);
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  user-select: text;
  -webkit-user-select: text;
}

.copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 0.8vw, 14px);
  padding: 0 clamp(8px, 0.9vw, 16px);
  color: #f4f0fb;
  font-family: inherit;
  font-size: clamp(0.62rem, 1.05vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.copy:disabled {
  opacity: 1;
  cursor: default;
}

.copy:hover {
  border-color: rgba(216, 180, 254, 0.9);
  box-shadow:
    0 0 40px rgba(147, 51, 234, 0.46),
    inset 0 0 30px rgba(88, 28, 135, 0.32);
}

.copy:active {
  transform: translateY(1px);
}

.copy:focus-visible,
.discord:focus-visible {
  outline: 2px solid #e9d5ff;
  outline-offset: 4px;
}

.copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(15px, 1.35vw, 24px);
  flex: 0 0 auto;
}

.copy-icon svg {
  width: 100%;
  height: auto;
  display: block;
}

.copy .ic-check {
  display: none;
}

.copy.is-copied .ic-copy {
  display: none;
}

.copy.is-copied .ic-check {
  display: block;
}

.copy.is-copied {
  border-color: rgba(110, 231, 183, 0.85);
  color: #dcfff0;
  box-shadow:
    0 0 34px rgba(52, 211, 153, 0.3),
    inset 0 0 30px rgba(6, 78, 59, 0.28);
}

.copy.is-error {
  border-color: rgba(252, 165, 165, 0.9);
  color: #ffe7e7;
  box-shadow:
    0 0 30px rgba(248, 113, 113, 0.22),
    inset 0 0 30px rgba(127, 29, 29, 0.24);
}

.version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 66px);
  min-height: clamp(50px, 6.2vh, 103px);
  margin-top: clamp(10px, 1.2vh, 20px);
  padding: 0 clamp(12px, 2vw, 30px);
  border: 1px solid rgba(132, 92, 192, 0.16);
  border-radius: clamp(12px, 1.6vh, 24px);
  background: linear-gradient(180deg, rgba(23, 14, 44, 0.78), rgba(13, 8, 27, 0.88));
  box-shadow: inset 0 0 34px rgba(88, 28, 135, 0.2);
}

.version-edition,
.version-line {
  font-size: clamp(0.56rem, 1.05vw, 1.6rem);
  line-height: 1;
  white-space: nowrap;
}

.version-edition {
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #d9d3e4;
}

.version-sep {
  width: 1px;
  height: clamp(18px, 3.1vh, 50px);
  flex: 0 0 auto;
  background: rgba(168, 85, 247, 0.36);
}

.version-line {
  font-weight: 400;
  letter-spacing: 0.17em;
  color: #b98cff;
}

.version-line strong {
  margin-left: 0.24em;
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--violet);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.55);
}

.rule-2 {
  margin-top: clamp(18px, 5.1vh, 85px);
}

.discord {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: min(46%, 500px);
  min-height: clamp(52px, 7.2vh, 120px);
  margin-top: clamp(22px, 6.5vh, 108px);
  padding: 0 14px;
  border: 1.5px solid rgba(180, 122, 255, 0.62);
  border-radius: clamp(12px, 1.6vh, 24px);
  background: linear-gradient(180deg, rgba(45, 25, 83, 0.44), rgba(22, 13, 41, 0.6));
  box-shadow:
    0 0 26px rgba(124, 58, 237, 0.2),
    inset 0 0 26px rgba(88, 28, 135, 0.14);
  color: #c9a9f2;
  font-size: clamp(0.66rem, 1.05vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.discord:hover {
  border-color: #d8b4fe;
  background: linear-gradient(180deg, rgba(76, 40, 130, 0.54), rgba(32, 17, 58, 0.66));
  box-shadow:
    0 0 42px rgba(147, 51, 234, 0.42),
    inset 0 0 30px rgba(88, 28, 135, 0.26);
  color: #f0e6ff;
}

.discord.is-disabled {
  cursor: not-allowed;
  opacity: 0.88;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .landing {
    padding-top: clamp(150px, 22.8vh, 230px);
  }

  .title {
    letter-spacing: 0;
  }

  .tagline {
    letter-spacing: 0.2em;
  }

  .join {
    gap: 8px;
  }

  .ip-box,
  .copy {
    min-height: clamp(58px, 8vh, 78px);
  }

  .ip {
    font-size: clamp(1.25rem, 6.4vw, 1.65rem);
  }

  .copy {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    gap: 6px;
    padding: 0 6px;
  }

  .version {
    gap: 10px;
    padding: 0 9px;
  }

  .version-edition {
    letter-spacing: 0.11em;
  }

  .version-line {
    letter-spacing: 0.09em;
  }

  .discord {
    width: 58%;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 370px) {
  .title {
    font-size: 1.12rem;
  }

  .version-edition {
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .copy,
  .discord {
    transition: none;
  }
}
