/* Dodepovichi — нічний казино-зал з боку гравця: зелене сукно, фішки, табло. */
:root {
  /* нейтральна шкала, ледь тонована в зелене сукно */
  --bg: #0e1210;
  --surface: #141a17;
  --surface-2: #1b221e;
  --line: rgba(232, 240, 235, 0.08);
  --line-2: rgba(232, 240, 235, 0.14);
  --text: #e8efea;
  --text-2: #a6b2ab;
  --text-3: #7d8a83;
  /* один акцент — бренд-зелений з емблеми */
  --accent: #22c55e;
  --accent-hover: #34d06c;
  --accent-ink: #052310;

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Manrope, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; margin: 0; }
h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin: 0; }
strong { font-weight: 600; color: var(--text); }
.muted { color: var(--text-2); }

/* Команди бота — як клавіші */
kbd, code {
  display: inline-block; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--text);
  padding: 0 4px; margin: 0 2px; border-radius: 6px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  vertical-align: 1px; white-space: nowrap;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Навігація */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(14, 18, 16, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav__links a { color: var(--text-2); text-decoration: none; transition: color 150ms var(--ease); }
.nav__links a:hover { color: var(--text); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn--ghost, .btn--quiet { background: var(--surface-2); color: var(--text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.btn--ghost:hover, .btn--quiet:hover { background: #222a25; }
.btn--small { height: 36px; padding: 0 16px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: 12px; z-index: 20; padding: 8px 12px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Hero */
.hero { padding: 80px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero__server { color: var(--text-3); font-family: var(--mono); font-size: 13px; margin-bottom: 24px; }
.hero__lead { color: var(--text-2); font-size: 18px; line-height: 1.6; margin: 24px 0 32px; max-width: 34rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art { margin: 0; }
.hero__art img { width: 100%; height: auto; display: block; border-radius: 16px; outline: 1px solid var(--line); outline-offset: -1px; }

/* Підпис: живий онлайн у Discord */
.live { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.live [data-online] { font-family: var(--mono); color: var(--text); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Секції */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.split__aside { position: sticky; top: 112px; }

/* Ранги — стос фішок у кольорах ролей з Discord */
.ranks__count { margin-top: 24px; color: var(--text-3); font-family: var(--mono); font-size: 13px; }
.ranks { list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.rank { display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 16px; border-radius: 8px; }
.rank + .rank { box-shadow: inset 0 1px 0 var(--line); }
.rank--staff { background: var(--surface-2); }
.rank--staff + .rank--staff { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.rank--staff + .rank:not(.rank--staff) { box-shadow: none; }
.rank__name { flex: 1; font-size: 16px; }
.rank__tag { color: var(--text-3); font-family: var(--mono); font-size: 12px; }

.chip {
  --c: color-mix(in srgb, var(--chip) 88%, #0e1210);
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: repeating-conic-gradient(from 11.25deg, var(--c) 0 33.75deg, #ece6d8 33.75deg 45deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  display: grid; place-items: center;
}
.chip::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(255, 255, 255, 0.14);
}
.chip span { position: relative; font-family: var(--mono); font-size: 12px; font-weight: 500; color: rgba(0, 0, 0, 0.78); font-variant-numeric: tabular-nums; }

/* Правила — аркуш правил, без карток */
.rules { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.rule { display: grid; grid-template-columns: 32px 1fr; gap: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.rule__n { color: var(--text-3); font-family: var(--mono); font-size: 13px; line-height: 24px; font-variant-numeric: tabular-nums; }
.rule h3 { margin-bottom: 4px; }
.rule p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.rules__outro { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); padding-left: 32px; color: var(--text-2); }

/* Вступ */
.steps { list-style: none; counter-reset: step; margin: 8px 0 40px; padding: 0; color: var(--text-2); display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; }
.steps li::before { content: counter(step); color: var(--text-3); font-family: var(--mono); font-size: 13px; line-height: 26px; }
.join__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.join__cta .live { margin-top: 0; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.form__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.form__meta { color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 14px; color: var(--text-2); }
.field__opt { color: var(--text-3); font-size: 12px; margin-left: 4px; }
.field__input { display: block; height: 36px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.field__input--area { height: 64px; }

/* Футер */
.footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--text-3); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 150ms var(--ease); }
.footer__links a:hover { color: var(--text); }

/* Один вхід на завантаженні — тільки hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .hero__art { animation: rise 400ms var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: 40ms; }
  .hero__text > :nth-child(3) { animation-delay: 80ms; }
  .hero__text > :nth-child(4), .hero__text > :nth-child(5) { animation-delay: 120ms; }
  .hero__art { animation-delay: 160ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 64px; }
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 420px; }
  .split__aside { position: static; }
  .section { padding: 64px 0; }
  .rules { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .btn--small { height: 44px; padding: 0 16px; }
  .nav__inner { justify-content: space-between; }
  h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; }
  h2 { font-size: 28px; }
}
