/* ===== AURORA — лендинг Minecraft-сервера ===== */
:root {
  --bg: #07060f;
  --bg-2: #0d0b1c;
  --panel: rgba(255, 255, 255, .05);
  --panel-2: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --ink: #f5f3ff;
  --soft: #d7d3f2;
  --muted: #a7a3c8;
  --dim: #6f6b93;
  --green: #5df2a4;
  --green-2: #27c96f;
  --green-deep: #0f7a43;
  --violet: #8b6cff;
  --violet-2: #a98bff;
  --pink: #ff6ad5;
  --gold: #ffcf5c;
  --red: #ff5b6e;
  --discord: #5865f2;
  --discord-deep: #3c45b5;
  --f-pixel: 'Press Start 2P', ui-monospace, monospace;
  --f-head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.6 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* зерно поверх всего — «дорогая» картинка вместо плоского цвета */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--green); color: #04150b; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 18px; height: 18px; flex: none; }

/* ===== кнопки ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  font: 700 15px/1 var(--f-body);
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: translateY(3px); }
.btn .ico { width: 22px; height: 22px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--grass {
  background: linear-gradient(180deg, #7dffb9, var(--green) 45%, var(--green-2));
  color: #03140a;
  box-shadow: 0 4px 0 var(--green-deep), 0 14px 30px -10px rgba(93, 242, 164, .6);
}
.btn--grass:hover { box-shadow: 0 4px 0 var(--green-deep), 0 18px 40px -8px rgba(93, 242, 164, .8); }
.btn--grass:active { box-shadow: 0 1px 0 var(--green-deep); }
.btn--discord {
  background: linear-gradient(180deg, #6c78ff, var(--discord));
  color: #fff;
  box-shadow: 0 5px 0 var(--discord-deep), 0 18px 40px -12px rgba(88, 101, 242, .75);
}
.btn--discord:hover { box-shadow: 0 5px 0 var(--discord-deep), 0 22px 50px -10px rgba(88, 101, 242, .95); }
.btn--discord:active { box-shadow: 0 2px 0 var(--discord-deep); }
.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.btn--white {
  background: #fff;
  color: var(--discord-deep);
  box-shadow: 0 5px 0 #c7cbf5, 0 20px 50px -14px rgba(0, 0, 0, .6);
}
.btn--white:active { box-shadow: 0 2px 0 #c7cbf5; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .22);
  font: 700 12px/1 var(--f-body);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #3ef08a; box-shadow: 0 0 8px #3ef08a; }
html:not([data-discord="live"]) [data-discord-live] { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(93, 242, 164, .1);
  border: 1px solid rgba(93, 242, 164, .35);
  color: var(--green);
  font: 400 11px/1.4 var(--f-pixel);
  transition: background .2s, transform .2s var(--ease);
}
.chip:hover { background: rgba(93, 242, 164, .18); transform: translateY(-1px); }
.chip .ico { width: 16px; height: 16px; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 9px/1 var(--f-pixel);
  color: var(--green);
  letter-spacing: .08em;
}
.live i { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ===== шапка ===== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(9, 7, 20, .62);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__cube { width: 30px; height: 30px; perspective: 400px; display: grid; place-items: center; }
.brand__name { font: 400 14px/1 var(--f-pixel); letter-spacing: .04em; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--soft);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; }
.progress i {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--violet-2), var(--pink));
  box-shadow: 0 0 12px rgba(93, 242, 164, .7);
}

/* ===== CSS-кубик из текстур ===== */
.cube {
  --s: 120px;
  position: relative;
  display: block;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(-26deg) rotateY(38deg);
  animation: cube-spin 16s linear infinite;
}
.cube i {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.cube .f-front { transform: translateZ(calc(var(--s) / 2)); filter: brightness(.82); }
.cube .f-back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); filter: brightness(.7); }
.cube .f-right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.66); }
.cube .f-left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.9); }
.cube .f-top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.12); }
.cube .f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.5); }
.cube--still { --s: 18px; animation: none; transform: rotateX(-30deg) rotateY(45deg); }
.brand:hover .cube--still { animation: cube-spin 2.4s linear infinite; }
@keyframes cube-spin {
  from { transform: rotateX(-26deg) rotateY(0deg); }
  to { transform: rotateX(-26deg) rotateY(360deg); }
}

/* ===== первый экран ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
#world {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: block;
  z-index: -3;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.world-ready #world { opacity: 1; }
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(60% 50% at 70% 35%, rgba(169, 139, 255, .35), transparent 70%),
    radial-gradient(50% 40% at 85% 80%, rgba(255, 130, 110, .25), transparent 70%),
    linear-gradient(180deg, #0a0820, #2a1240 60%, #07060f);
}
.no-webgl .hero__fallback {
  background: linear-gradient(180deg, rgba(7, 6, 15, .2), rgba(7, 6, 15, .4)), url(../img/community.webp) center / cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 6, 15, .9) 0%, rgba(7, 6, 15, .62) 32%, rgba(7, 6, 15, .08) 58%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 15, 0) 26%),
    linear-gradient(180deg, rgba(7, 6, 15, .55) 0%, transparent 18%);
}
.hero__in { padding: calc(var(--nav-h) + 48px) 0 120px; }
.hero__content { max-width: 620px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(10, 8, 24, .45);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
}
.status__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
}
[data-server="online"] .status__dot { background: #3ef08a; box-shadow: 0 0 10px #3ef08a; }
[data-server="online"] .status__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #3ef08a;
  animation: ping 1.8s var(--ease) infinite;
}
[data-server="offline"] .status__dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.status__sep { width: 1px; height: 14px; background: var(--line-2); }

/* логотип: пиксельный шрифт + выдавленный объём + переливающийся градиент */
.logo {
  position: relative;
  margin: 26px 0 22px;
  font: 400 clamp(42px, 7.2vw, 104px)/1.05 var(--f-pixel);
  letter-spacing: .02em;
  color: #2b1757;
  text-shadow:
    0 1px 0 #3d2380, 0 2px 0 #3a2179, 0 3px 0 #361f71, 0 4px 0 #331d6a,
    0 5px 0 #2f1b62, 0 6px 0 #2c195b, 0 7px 0 #281753, 0 8px 0 #25154c,
    0 9px 0 #211344, 0 10px 0 #1e113d,
    0 18px 26px rgba(0, 0, 0, .55), 0 0 60px rgba(139, 108, 255, .35);
  word-break: break-word;
}
/* сам текст остаётся для поисковиков и скринридеров, а рисуют его два слоя: объём (::before) и градиент (::after) */
.logo > span { color: transparent; text-shadow: none; }
.logo::before, .logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.logo::before { color: #2b1757; }
.logo::after {
  background: linear-gradient(100deg, #ffffff 0%, #c9ffe3 22%, var(--green) 38%, #ffffff 48%, var(--violet-2) 62%, #ffb3e6 80%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: shine 7s linear infinite;
}
@keyframes shine { from { background-position: 0% 0; } to { background-position: -250% 0; } }

.hero__lead { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.65; color: var(--soft); max-width: 540px; text-wrap: pretty; }

.hero__panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; margin-top: 34px; }

.ip {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 22px;
  text-align: left;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(93, 242, 164, .2), transparent 60%),
    linear-gradient(180deg, rgba(20, 40, 34, .7), rgba(10, 14, 22, .7));
  border: 1px solid rgba(93, 242, 164, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 60px -24px rgba(93, 242, 164, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  overflow: hidden;
}
.ip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.ip:hover { transform: translateY(-3px); border-color: rgba(93, 242, 164, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 30px 70px -22px rgba(93, 242, 164, .75); }
.ip:hover::after { transform: translateX(100%); }
.ip__label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ip__value {
  font: 400 clamp(13px, 1.35vw, 17px)/1.5 var(--f-pixel);
  color: #fff;
  text-shadow: 0 0 22px rgba(93, 242, 164, .6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ip__btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 11px;
  background: linear-gradient(180deg, #7dffb9, var(--green));
  color: #03140a;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--green-deep);
  transition: background .2s;
}
.ip.is-copied .ip__btn { background: #fff; }

.online {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 0;
}
.online__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.online__num { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin: 8px 0 12px; }
.online__num b { font: 800 clamp(34px, 3.2vw, 46px)/1.1 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.online__num > span { color: var(--muted); font-weight: 700; font-size: 16px; white-space: nowrap; }
[data-server="offline"] .online__num b { color: var(--muted); }

/* полоска опыта = заполненность сервера */
.xp {
  position: relative;
  height: 12px;
  border-radius: 3px;
  background: #15121f;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
}
.xp i {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: calc((100% - 4px) * var(--p, 0));
  min-width: 0;
  border-radius: 1px;
  background: linear-gradient(180deg, #c9ff8f, #7fe04a 45%, #3d9e1f);
  box-shadow: 0 0 12px rgba(127, 224, 74, .7);
  transition: width 1.4s var(--ease);
}
.xp::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(5.555% - 2px), rgba(0, 0, 0, .55) calc(5.555% - 2px) 5.555%);
}
.heads { display: flex; align-items: center; margin-top: 14px; min-height: 32px; }
.heads img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 2px solid #120f22;
  margin-right: -7px;
  image-rendering: pixelated;
  background: #2b2540;
  animation: pop .5s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes pop { from { transform: scale(.3) translateY(8px); opacity: 0; } }
.heads__more { margin-left: 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.heads img + .heads__more, .heads__more:first-child { margin-left: 0; }
.heads img ~ .heads__more { margin-left: 16px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ===== секции ===== */
main { overflow-x: clip; }
.section { position: relative; padding: 100px 0; }
.section__head { max-width: 680px; margin-bottom: 52px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 400 11px/1 var(--f-pixel);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
}
.eyebrow::before { content: ''; width: 10px; height: 10px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.section h2 {
  font: 800 clamp(32px, 4.4vw, 58px)/1.06 var(--f-head);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section__head p { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.grad {
  background: linear-gradient(90deg, var(--green), #a7ffd2 40%, var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* фоновые пятна света */
#modes::before, .section--join::before {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
#modes::before { width: 520px; height: 520px; right: -160px; top: 80px; background: rgba(139, 108, 255, .18); }
.section--join::before { width: 560px; height: 560px; left: -220px; top: 120px; background: rgba(93, 242, 164, .12); }

/* ===== режимы: бенто ===== */
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 18px;
  perspective: 1400px;
}
.mode--a { grid-row: span 2; }
.mode--d { grid-column: span 2; }
.mode {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: #120f24;
  border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s;
  will-change: transform;
}
.mode:hover {
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform .12s linear, border-color .3s, box-shadow .4s;
}
.mode img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease), filter .6s;
  filter: saturate(1.05);
}
.mode:hover img { transform: scale(1.07); filter: saturate(1.2); }
.mode::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 6, 15, 0) 30%, rgba(7, 6, 15, .55) 60%, rgba(7, 6, 15, .95) 100%);
}
.mode::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
}
.mode:hover::after { opacity: 1; }
.mode__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.mode__tag {
  display: inline-block;
  padding: 8px 11px 7px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: rgba(7, 6, 15, .55);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--c);
  font: 400 10px/1 var(--f-pixel);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mode h3 { font: 700 clamp(22px, 2.1vw, 30px)/1.15 var(--f-head); letter-spacing: -.015em; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.mode--a h3 { font-size: clamp(26px, 2.8vw, 38px); }
.mode p { margin-top: 10px; color: var(--soft); font-size: 15px; max-width: 440px; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }

/* ===== как зайти ===== */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.join .section__head { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 49px;
  top: 40px;
  bottom: 40px;
  width: 4px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .18) 0 8px, transparent 8px 16px);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.step:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateX(6px); }
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--c);
  color: #0b0918;
  font: 400 18px/1 var(--f-pixel);
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, .25), inset 5px 5px 0 rgba(255, 255, 255, .35), 0 10px 30px -8px color-mix(in srgb, var(--c) 70%, transparent);
}
.step h3 { font: 700 20px/1.3 var(--f-head); margin: 4px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }
.step p b { color: var(--ink); }
.step .chip { margin-top: 14px; }

/* окно «Сетевая игра» как в игре */
.mc { position: relative; }
.mc__screen {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(rgba(12, 9, 20, .72), rgba(12, 9, 20, .82)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect width='16' height='16' fill='%23744d2e'/%3E%3Cpath fill='%23855a37' d='M0 0h3v2H0zM7 1h3v2H7zM12 4h4v2h-4zM3 6h3v3H3zM9 8h2v2H9zM1 12h3v2H1zM6 13h4v2H6zM13 11h3v3h-3z'/%3E%3Cpath fill='%235e3c22' d='M4 2h2v2H4zM11 0h2v2h-2zM0 7h2v2H0zM7 5h2v2H7zM12 7h2v3h-2zM4 10h2v2H4zM10 12h2v2h-2zM14 14h2v2h-2z'/%3E%3C/svg%3E") 0 0 / 48px 48px;
  image-rendering: pixelated;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 8px rgba(255, 255, 255, .025);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.mc:hover .mc__screen { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mc__title { text-align: center; font: 400 13px/1 var(--f-pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; margin-bottom: 20px; }
.mc__entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 8px;
  border: 2px solid #c6c6c6;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 0 40px -6px rgba(93, 242, 164, .4);
}
.mc__entry--ghost { margin-top: 10px; border-color: transparent; background: rgba(0, 0, 0, .25); box-shadow: none; opacity: .45; grid-template-columns: 64px minmax(0, 1fr); }
.mc__icon { width: 64px; height: 64px; image-rendering: pixelated; background: #222; }
.mc__icon--ghost { display: block; background: repeating-conic-gradient(#3a3a3a 0 25%, #2a2a2a 0 50%) 0 0 / 16px 16px; }
.mc__info { min-width: 0; padding-top: 2px; }
.mc__name { font: 400 12px/1.4 var(--f-pixel); color: #fff; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc__motd { font: 400 10px/1.75 var(--f-pixel); color: #aaa; overflow: hidden; }
.mc__side { display: grid; justify-items: end; gap: 10px; padding-top: 2px; }
.mc__players { font: 400 10px/1 var(--f-pixel); color: #aaa; white-space: nowrap; }
.mc__ping { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.mc__ping i { width: 3px; background: #3a3a3a; }
.mc__ping i:nth-child(1) { height: 3px; } .mc__ping i:nth-child(2) { height: 5px; } .mc__ping i:nth-child(3) { height: 8px; }
.mc__ping i:nth-child(4) { height: 11px; } .mc__ping i:nth-child(5) { height: 14px; }
[data-server="online"] .mc__ping i { background: #3ef04a; box-shadow: 0 0 6px rgba(62, 240, 74, .5); }
[data-server="offline"] .mc__ping i:nth-child(1) { background: var(--red); }
.mc__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.mc__btn {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0 10px;
  background: linear-gradient(180deg, #8d8d8d, #6f6f6f);
  border: 2px solid #1d1d1d;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .35), inset -2px -3px 0 rgba(0, 0, 0, .35);
  font: 400 10px/1 var(--f-pixel);
  color: #fff;
  text-shadow: 2px 2px 0 #3f3f3f;
  text-align: center;
}
button.mc__btn:hover { background: linear-gradient(180deg, #8fa7ff, #6c84e0); color: #ffffa0; }
.mc__btn--off { opacity: .55; }
.mc__note { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; color: var(--muted); justify-content: center; text-align: center; }

/* ===== Discord ===== */
.dc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  padding: 72px;
  border-radius: 36px;
  border: 1px solid rgba(140, 150, 255, .3);
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  align-items: center;
  box-shadow: 0 60px 120px -50px rgba(88, 101, 242, .55);
}
.dc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; transform: scale(1.04); }
.dc__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 15, 52, .96) 0%, rgba(30, 32, 110, .82) 40%, rgba(60, 70, 200, .18) 75%, rgba(88, 101, 242, .05) 100%),
    linear-gradient(0deg, rgba(10, 8, 30, .5), transparent 40%);
}
.dc__logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--discord);
  box-shadow: 0 0 0 6px rgba(88, 101, 242, .25), 0 16px 40px -8px rgba(88, 101, 242, .9);
  margin-bottom: 26px;
}
.dc__logo svg { width: 36px; height: 36px; color: #fff; }
.dc h2 { font: 800 clamp(32px, 4.2vw, 56px)/1.06 var(--f-head); letter-spacing: -.025em; }
.dc h2 span { color: #a9b1ff; text-shadow: 0 0 40px rgba(88, 101, 242, .8); }
.dc p { margin-top: 16px; font-size: 17px; color: #d8dbff; max-width: 470px; }
.dc__content { min-width: 0; }
.dc__stats { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 30px; }
.dc__stats b { display: block; font: 800 38px/1 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dc__stats span { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 700; color: #bfc4ff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ef08a; box-shadow: 0 0 10px #3ef08a; }
.dc__avatars { display: flex; align-items: center; margin-top: 22px; }
.dc__avatars:empty { display: none; }
.dc__avatars img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #1c1d5a; margin-right: -10px; background: #2b2f80; }
.dc__avatars span { margin-left: 20px; font-weight: 800; color: #d8dbff; }
.dc .btn--white { margin-top: 32px; }

.dc__cubes { position: relative; height: 100%; min-height: 380px; perspective: 900px; }
.float { position: absolute; animation: bob 7s ease-in-out infinite; }
.float .cube { animation-duration: 18s; }
.f1 { right: 24%; top: 18%; }
.f1 .cube { --s: 128px; }
.f2 { right: 4%; top: 52%; animation-delay: -2s; }
.f2 .cube { --s: 84px; animation-direction: reverse; animation-duration: 22s; }
.f3 { right: 44%; top: 62%; animation-delay: -4s; }
.f3 .cube { --s: 64px; animation-duration: 14s; }
.f4 { right: 6%; top: 6%; animation-delay: -1s; }
.f4 .cube { --s: 46px; animation-duration: 11s; }
.f4 .cube i { box-shadow: 0 0 30px rgba(255, 207, 92, .5); }
@keyframes bob { 50% { transform: translateY(-22px); } }

/* ===== подвал ===== */
.footer { position: relative; padding: 70px 0 34px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; align-items: start; }
.footer__brand p { margin-top: 14px; color: var(--muted); max-width: 320px; }
.footer__ip { display: grid; gap: 10px; justify-items: start; }
.footer__ip > span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--soft); font-weight: 600; transition: color .2s; }
.footer__links a:hover { color: var(--green); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ===== всплывашка и пиксели ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(16, 13, 34, .88);
  border: 1px solid rgba(93, 242, 164, .45);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .7), 0 0 40px -10px rgba(93, 242, 164, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 15px;
  color: var(--soft);
  text-align: center;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s var(--ease), opacity .3s;
}
.toast b { color: var(--green); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.pixel { position: fixed; z-index: 95; pointer-events: none; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25); }

/* ===== плавная прокрутка (Lenis) ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ===== объёмные картинки (depth.js) поверх обычных ===== */
.mode__scene, .dc__scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.mode__scene { z-index: -2; }
.dc__scene { z-index: -2; }
.mode__scene.is-ready, .dc__scene.is-ready { opacity: 1; }
.mode__scene { transition: opacity 1s ease, transform 1.2s var(--ease); }
.mode:hover .mode__scene { transform: scale(1.04); }

/* ===== подсказка «потяни остров» ===== */
.hint {
  position: absolute;
  left: 54%;
  bottom: 34px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(10, 8, 24, .5);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  animation: hint-in .8s var(--ease) 4.6s forwards;
  transition: opacity .5s, transform .5s;
}
.hint.is-done { opacity: 0 !important; transform: translateY(10px) !important; animation: none; }
.hint__mouse { position: relative; width: 18px; height: 26px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 9px; }
.hint__mouse i { position: absolute; left: 50%; top: 4px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--green); animation: hint-drag 1.6s var(--ease) infinite; }
@keyframes hint-in { to { opacity: 1; transform: none; } }
@keyframes hint-drag { 0% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 100% { transform: translateX(-5px); } }
@media (max-width: 959px), (hover: none) { .hint { display: none; } }

/* ===== название падает, как блок, когда остров уже наполовину собран ===== */
.js .logo { animation: logo-drop 1.15s cubic-bezier(.3, 1.4, .5, 1) 1.4s both; }
@keyframes logo-drop {
  0% { opacity: 0; transform: translateY(-140px); }
  45% { opacity: 1; transform: translateY(10px) scaleY(.9) scaleX(1.03); }
  70% { transform: translateY(-8px) scaleY(1.02); }
  100% { opacity: 1; transform: none; }
}

/* ===== появление ===== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .mode[data-reveal].is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.js .mode[data-reveal].is-in:not(:hover) { transition: opacity .9s var(--ease) var(--d, 0s), transform .5s var(--ease), border-color .3s, box-shadow .4s; }

/* ===== адаптив ===== */
@media (max-width: 1100px) {
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(7, 6, 15, .92) 0%, rgba(7, 6, 15, .7) 42%, rgba(7, 6, 15, .2) 70%, transparent 85%),
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 15, 0) 26%);
  }
  .dc { padding: 56px; grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 959px) {
  .nav__links { display: none; }
  .nav__in { justify-content: space-between; }
  .hero { align-items: flex-start; }
  .hero__in { padding-top: max(46svh, 340px); padding-bottom: 110px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7, 6, 15, .5) 0%, rgba(7, 6, 15, 0) 14%, rgba(7, 6, 15, 0) 30%, rgba(7, 6, 15, .82) 46%, var(--bg) 62%);
  }
  .hero__content { max-width: none; }
  .scroll-cue { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 280px 280px; }
  .mode--a { grid-row: auto; grid-column: span 2; }
  .mode--d { grid-column: span 2; }
  .join { grid-template-columns: 1fr; gap: 48px; }
  .mc__screen { transform: none; }
  .dc { grid-template-columns: 1fr; padding: 48px 40px; }
  .dc__shade { background: linear-gradient(180deg, rgba(16, 15, 52, .55) 0%, rgba(22, 24, 90, .88) 45%, rgba(16, 15, 52, .97) 100%); }
  .dc__cubes { position: absolute; inset: 0 0 auto auto; width: 50%; min-height: 0; height: 260px; opacity: .9; }
  .dc__content { position: relative; z-index: 1; padding-top: 140px; }
  .f1 { right: 30%; top: 30px; } .f1 .cube { --s: 92px; }
  .f2 { right: 8%; top: 120px; } .f2 .cube { --s: 60px; }
  .f3 { display: none; }
  .f4 { right: 10%; top: 20px; } .f4 .cube { --s: 36px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__links { grid-column: span 2; grid-auto-flow: column; justify-content: start; gap: 24px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 36px; }
  .hero__in { padding-top: max(42svh, 300px); }
  .logo { margin: 20px 0 16px; }
  .hero__panel { grid-template-columns: 1fr; margin-top: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 340px; }
  .mode--a, .mode--d { grid-column: auto; }
  .mode__body { padding: 22px; }
  .steps::before { left: 45px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; }
  .step__num { width: 48px; height: 48px; font-size: 15px; }
  .mc__screen { padding: 20px 12px 14px; }
  .mc__entry { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .mc__entry--ghost { grid-template-columns: 48px minmax(0, 1fr); }
  .mc__icon { width: 48px; height: 48px; }
  .mc__side { grid-column: 2; grid-row: 2; display: flex; justify-content: flex-start; align-items: center; gap: 12px; }
  .mc__name { font-size: 10px; }
  .mc__motd { font-size: 8px; }
  .mc__btn { font-size: 8px; }
  .dc { padding: 36px 22px 30px; border-radius: 28px; min-height: 0; }
  .dc__content { padding-top: 120px; }
  .dc__stats { gap: 16px 22px; }
  .dc__stats b { font-size: 28px; }
  .mc__note { justify-content: flex-start; text-align: left; }
  .dc .btn--white { width: 100%; }
  .footer__in { grid-template-columns: 1fr; gap: 30px; }
  .footer__links { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
