/* Сайт Mtine «Изумрудный Хай-Тек» (Сезон 3): обсидианово-изумрудная база,
   зелёный неон, bento-карточки, шрифт Golos Text (OFL) и 3D-карта (world3d.js). */
@font-face {
  font-family: 'Golos';
  src: url('/fonts/golos-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Golos';
  src: url('/fonts/golos-700.ttf') format('truetype');
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --bg: #070b09;
  --bg-2: #0d1511;
  --surface: rgba(12, 20, 16, 0.88);
  --card: rgba(20, 34, 26, 0.52);
  --card-hover: rgba(26, 44, 34, 0.68);
  --text: #edf7f1;
  --dim: rgba(224, 243, 232, 0.72);
  --faint: rgba(180, 214, 194, 0.48);
  --line: rgba(74, 222, 128, 0.16);
  --line-soft: rgba(237, 247, 241, 0.1);
  --neon: #4ade80;
  --emerald: #10b981;
  --mint: #86efac;
  --on-neon: #04170c;
  --grad: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
  --discord: #5865f2;
  --r-outer: 20px;
  --r-inner: 12px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Golos', Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-inner);
  border: 0;
  font: 700 15.5px/1 'Golos', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn--primary {
  color: var(--on-neon);
  background: var(--grad);
  box-shadow: 0 12px 32px -10px rgba(74, 222, 128, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.btn--primary:hover {
  box-shadow: 0 16px 38px -8px rgba(74, 222, 128, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn--ghost {
  color: var(--text);
  background: rgba(237, 247, 241, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover {
  background: rgba(74, 222, 128, 0.1);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.4);
}
.btn--discord {
  color: #fff;
  background: var(--discord);
  box-shadow: 0 12px 34px -10px rgba(88, 101, 242, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ── Содержимое разделов ── */
.pg { display: flex; flex-direction: column; gap: 16px; }
.pg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mint);
  background: rgba(74, 222, 128, 0.11);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.24);
}
.pg h1 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.035em; }
.pg h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -0.015em; }
.pg p, .pg li { margin: 0; color: var(--dim); line-height: 1.6; font-size: 15px; }
.pg .row { display: flex; gap: 10px; flex-wrap: wrap; }
.pg .card {
  padding: 15px 17px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.pg .card:hover {
  background: var(--card-hover);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.28);
}
.pg .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pg .feat b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--text); }
.pg .feat span { color: var(--dim); font-size: 13.5px; line-height: 1.5; }
.pg .steps { display: flex; flex-direction: column; gap: 8px; }
.pg .step {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.pg .step i {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  color: var(--on-neon);
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.pg .step.d i { background: var(--discord); color: #fff; }
.pg .step span { color: var(--dim); font-size: 14px; }
.pg .step b { color: var(--text); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.status .dot.on { background: var(--neon); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22); }
.invite {
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(88, 101, 242, 0.28), transparent 60%), var(--card);
  box-shadow: inset 0 0 0 1px rgba(120, 132, 255, 0.38);
}
.invite .btn { margin-top: 14px; }
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  align-self: flex-start;
}
.tabs button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--dim);
  font: 700 13.5px 'Golos', system-ui;
  cursor: pointer;
}
.tabs button.on { color: var(--on-neon); background: var(--grad); }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.howto code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--mint); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
.field input {
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  outline: none;
  font: 500 15px 'Golos', system-ui;
  color: var(--text);
  background: rgba(237, 247, 241, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.field input:focus { box-shadow: inset 0 0 0 2px rgba(74, 222, 128, 0.72); }
.err { margin: 0; color: #fb7185; font-size: 13.5px; }
.balance {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.16), rgba(16, 185, 129, 0.05));
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.34);
}
.balance .coins {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.balance .coins small { font-size: 14px; color: var(--mint); font-weight: 700; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.item:hover {
  background: var(--card-hover);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.32);
}
.item b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.item span { font-size: 12.5px; color: var(--faint); }
.item .btn { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; margin-top: auto; }
.item .owned { margin-top: auto; color: var(--neon); font-size: 13px; font-weight: 700; }
.slot-title { margin: 8px 0 0; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.news { display: flex; flex-direction: column; gap: 10px; }
.news .card span { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 200;
  translate: -50% 0;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 12px;
  font: 600 14px 'Golos', system-ui;
  color: var(--text);
  background: rgba(10, 17, 13, 0.96);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.42), 0 20px 40px -20px #000;
  opacity: 0;
  pointer-events: none;
}
.btn.small { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.howto--left { text-align: left; margin-top: 10px; }
.pg .row--end { margin-left: auto; }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.perk-card { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; }
.perk-sub { display: block; margin-top: 4px; color: var(--dim); font-size: 13px; }
.promo-form { display: flex; gap: 8px; align-items: center; }
.promo-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  outline: none;
  font: 500 14px 'Golos', system-ui;
  color: var(--text);
  background: rgba(237, 247, 241, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.promo-form input:focus { box-shadow: inset 0 0 0 2px rgba(74, 222, 128, 0.72); }
noscript p { position: relative; z-index: 3; margin: 0; padding: 16px; text-align: center; color: var(--mint); }

/* ── Сцена, разделы, меню ── */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  perspective: 1100px;
  background: radial-gradient(120% 70% at 50% 0%, #0d2b1c, var(--bg) 62%);
}
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 11, 9, 0.6) 16%, transparent 36%, transparent 75%, rgba(7, 11, 9, 0.76) 100%);
}
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.marks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.place, .tag { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.bill { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pin {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  font-size: 36px;
  background: linear-gradient(160deg, #13281d, #08120d);
  box-shadow: inset 0 0 0 2px rgba(74, 222, 128, 0.28), 0 20px 40px -14px #000;
}
.place.on .pin { box-shadow: inset 0 0 0 2.5px #86efac, 0 0 65px -4px rgba(74, 222, 128, 0.9); }
.pin.hot { background: var(--grad); color: var(--on-neon); }
.pin.discord { background: linear-gradient(160deg, #6773ff, #4652d9); color: #fff; }
.place.on .pin.discord { box-shadow: inset 0 0 0 3px #c7cdff, 0 0 80px -4px rgba(88, 101, 242, 1); }
.pin svg { width: 38px; height: 38px; }
.label {
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 800;
  background: rgba(8, 14, 11, 0.9);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.tag span {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #e8f7ee;
  background: rgba(8, 14, 11, 0.78);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.22);
}

/* Передний план: разделы. */
main { position: relative; z-index: 2; }
.sec { min-height: 100dvh; display: flex; align-items: center; padding: 104px 6vw 56px; }
.sec.right { justify-content: flex-end; }
.sheet {
  width: min(560px, 100%);
  padding: 26px;
  border-radius: var(--r-outer);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -36px rgba(0, 0, 0, 0.92), 0 0 48px -24px rgba(16, 185, 129, 0.22);
}
.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 16vh; text-align: center; }
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 4vh;
  width: min(1100px, 120vw);
  height: 72vh;
  translate: -50% 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 11, 9, 0.88), rgba(7, 11, 9, 0.56) 55%, transparent);
}
.hero h1 { margin: 0; font-size: clamp(72px, 13vw, 180px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 900; }
.hero h1 span {
  display: inline-block;
  background: linear-gradient(180deg, #f3fbf6 22%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { max-width: 520px; color: var(--dim); font-size: 18px; line-height: 1.55; margin: 18px 0 24px; }
.hero .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { margin-top: 26px; color: var(--faint); font-size: 13px; }

.nav {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(9, 15, 12, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 36px -20px #000;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}
.nav .logo { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 4px; font-weight: 900; letter-spacing: -0.03em; }
.nav .logo img { width: 30px; height: 30px; border-radius: 9px; }
.nav a {
  position: relative;
  z-index: 1;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  color: var(--dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.nav a.on { color: var(--on-neon); }
.nav a.on.d { color: #fff; }
.nav .pill { position: absolute; z-index: 0; top: 5px; height: 38px; border-radius: 11px; background: var(--grad); }
.nav .pill.d { background: var(--discord); }
.route { position: fixed; z-index: 10; left: 22px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 26px; }
.route::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(74, 222, 128, 0.16); }
.route .fill { position: absolute; left: 7px; top: 8px; width: 2px; height: 0; background: var(--grad); }
.route a { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #0c1d14; box-shadow: inset 0 0 0 2px rgba(74, 222, 128, 0.36); }
.route a.on { background: var(--neon); box-shadow: 0 0 14px rgba(74, 222, 128, 0.9); }
.route a span { position: absolute; left: 26px; top: 50%; translate: 0 -50%; font-size: 12.5px; font-weight: 700; color: var(--faint); white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.route a:hover span, .route a.on span { opacity: 1; color: var(--mint); }
@media (max-width: 820px) {
  .route { display: none; }
  .sec, .sec.right { justify-content: center; padding: 92px 12px 40px; }
  .sheet { padding: 20px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .pg .card, .item { transition: none; }
}
