:root {
  color-scheme: dark;
  --night: #0b0812;
  --night-soft: #15101e;
  --white: #f8f5fc;
  --muted: #c9bfd2;
  --violet: #8d42d4;
  --pink: #e680f3;
  --line: #5a466d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #f2a1ff; outline-offset: 4px; }
.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
}
.hero__scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(11, 8, 18, .96) 0%, rgba(11, 8, 18, .84) 42%, rgba(11, 8, 18, .47) 100%), linear-gradient(0deg, #0b0812 0%, rgba(24, 8, 35, .36) 48%, rgba(30, 9, 38, .5) 100%), url("/img/shot-2.webp");
  background-position: center, center, center 45%;
  background-size: cover;
}
.hero__scene::after {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -28%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(137, 42, 175, .19), transparent 64%);
  pointer-events: none;
}
.hero__content {
  min-height: min(900px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 48px;
  padding-block: clamp(36px, 7vh, 72px) 42px;
}
.hero__logo { grid-column: 2; grid-row: 1; justify-self: center; width: clamp(150px, 17vw, 226px); height: auto; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .38)); }
.hero__text { grid-column: 1; grid-row: 1; padding-block: 48px 58px; max-width: 750px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 740px; margin-bottom: 22px; font-size: clamp(2.7rem, 5.2vw, 5.15rem); line-height: 1.07; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .4); }
.hero__intro { max-width: 540px; margin-bottom: 34px; color: #e1d8e7; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 13px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; text-decoration: none; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: #b75fe4; color: #15091e; box-shadow: 0 8px 34px rgba(168, 62, 219, .3); }
.button--primary:hover { background: #d383f2; box-shadow: 0 8px 38px rgba(168, 62, 219, .45); }
.button--secondary { border-color: #bea2cd; background: rgba(16, 9, 24, .6); color: var(--white); }
.button--secondary:hover { background: rgba(84, 38, 104, .7); }

.status { grid-column: 1 / -1; grid-row: 2; width: min(100%, 850px); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border: 1px solid rgba(211, 167, 230, .36); border-radius: 12px; background: rgba(17, 11, 26, .86); box-shadow: 0 12px 36px rgba(0, 0, 0, .2); backdrop-filter: blur(14px); }
.status__state { display: flex; align-items: center; gap: 13px; min-width: 0; }
.status__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #b9a9c0; box-shadow: 0 0 0 5px rgba(185, 169, 192, .12); }
.status[data-online="true"] .status__dot { background: #70e3ad; box-shadow: 0 0 0 5px rgba(112, 227, 173, .15), 0 0 15px rgba(112, 227, 173, .65); }
.status__label { margin: 0; font-weight: 700; line-height: 1.3; }
.status__players { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.status__players[hidden] { display: none; }
.status__address { display: flex; align-items: center; gap: 12px; }
.status__address-text { font-size: .94rem; color: #eee6f3; white-space: nowrap; }
.copy-button { flex: none; min-height: 38px; padding: 7px 12px; border: 1px solid #9272a5; border-radius: 6px; background: #24162f; color: var(--white); cursor: pointer; font-size: .85rem; font-weight: 700; transition: background-color .18s ease; }
.copy-button:hover { background: #432455; }

.join { padding-block: clamp(72px, 10vw, 132px) clamp(90px, 11vw, 150px); }
.join__heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 46px; }
.join h2 { margin-bottom: 0; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.08; letter-spacing: -.055em; }
.join__heading p { max-width: 390px; margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 30px 28px 35px 0; border-bottom: 1px solid var(--line); }
.step:nth-child(odd) { border-right: 1px solid var(--line); }
.step:nth-child(even) { padding-left: 32px; }
.step__number { color: var(--pink); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 10px; font-size: 1.32rem; line-height: 1.3; }
.step p { max-width: 410px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.step a { color: #e7a0f4; text-underline-offset: 4px; }
.step a:hover, .footer a:hover { color: #fff; }
.command { width: fit-content; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; padding: 8px; border: 1px solid #705288; border-radius: 8px; background: #1b1125; }
.command code { padding-left: 10px; color: #f3e6f7; font-size: .9rem; white-space: nowrap; }
.footer { display: flex; justify-content: space-between; align-items: center; padding-block: 26px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer a { color: #e7a0f4; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .hero, .hero__content { min-height: 760px; }
  .hero__scene { background-image: linear-gradient(0deg, #0b0812 0%, rgba(11, 8, 18, .76) 58%, rgba(11, 8, 18, .65) 100%), url("/img/shot-2.webp"); background-position: center, 58% center; }
  .hero__content { display: flex; flex-direction: column; align-items: flex-start; padding-block: 26px 30px; }
  .hero__logo { width: 150px; }
  .hero__text { margin-block: auto; padding-block: 34px; }
  h1 { font-size: clamp(2.65rem, 9.5vw, 4rem); }
  .status { align-items: flex-start; flex-direction: column; gap: 15px; }
  .status__address { width: 100%; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(211, 167, 230, .22); }
  .join__heading { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(even) { padding: 26px 0 30px; border-right: 0; }
}
@media (max-width: 420px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .hero, .hero__content { min-height: 810px; }
  .hero__logo { width: 132px; }
  h1 { font-size: 2.55rem; }
  .hero__intro { font-size: 1rem; }
  .hero__actions { display: grid; width: 100%; }
  .button { justify-content: space-between; }
  .status { padding: 14px; }
  .status__address-text { font-size: .8rem; }
  .copy-button { font-size: .78rem; }
  .step { grid-template-columns: 42px 1fr; gap: 10px; }
  .command { width: 100%; gap: 8px; }
  .command code { padding-left: 4px; font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .copy-button { transition: none; }
  .button:hover { transform: none; }
}
