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

:root {
  color-scheme: dark;
  --obsidian: #15111d;
  --obsidian-deep: #0c0910;
  --deepslate: #221c2e;
  --deepslate-light: #2f2740;
  --stone: #4a4357;
  --end-stone: #ece6c2;
  --end-stone-dim: #b3ad92;
  --ender: #c45cff;
  --fire: #ff7a1a;
  --fire-deep: #c4321a;
  --ember: #5c1a1f;
  --xp: #7cd93a;
  --focus: #ffd84a;

  --pixel: "Silkscreen", ui-monospace, monospace;
  --body: "Rubik", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--end-stone);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fire); }
a:hover { color: var(--focus); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--pixel); }
h2 { font-size: 24px; letter-spacing: .02em; }
h3 { font-size: 18px; font-weight: 500; }
p { margin: 0; }

body { overflow-x: clip; }
img { -webkit-user-drag: none; }

main, .foot {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 max(16px, calc((100% - 1128px) / 2));
  background: rgba(21, 17, 29, .92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--obsidian-deep);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--end-stone);
  text-decoration: none;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 17px;
}

.brand-logo {
  position: relative;
  flex: none;
  width: 64px;
  height: 44px;
  margin-right: 2px;
}
.brand-logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .55));
  transition: transform .2s ease;
  pointer-events: none;
}
.brand:hover .brand-logo img { transform: translate(-50%, -50%) scale(1.06); }
.foot .brand-logo { width: 72px; height: 56px; }
.foot .brand-logo img { width: 72px; height: 72px; }
@media (prefers-reduced-motion: reduce) { .brand-logo img { transition: none; } }

.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  padding: 6px 10px;
  color: var(--end-stone-dim);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--end-stone); background: var(--deepslate); }

.socials { display: flex; gap: 6px; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--end-stone);
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
}
.socials a:hover { color: var(--focus); background: var(--deepslate-light); }

.notice {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
  border-left: 6px solid var(--xp);
}
.notice.error { border-left-color: var(--fire-deep); }

.hero {
  position: relative;
  isolation: isolate;
  margin: 0 calc(50% - 50vw);
  padding: 72px max(16px, calc(50vw - 564px)) 80px;
  min-height: min(640px, 78vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--obsidian-deep);
  background:
    radial-gradient(60% 80% at 80% 30%, rgba(196, 92, 255, .18), transparent 70%),
    var(--obsidian-deep);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.anim, .anim img { display: block; width: 100%; height: 100%; }
.anim img { object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 9, 16, .92) 0%, rgba(12, 9, 16, .7) 45%, rgba(12, 9, 16, .25) 100%),
    linear-gradient(0deg, var(--obsidian) 0%, transparent 30%);
}

.hero-inner { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; max-width: 620px; }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.05;
  color: var(--end-stone);
  text-shadow:
    .05em .05em 0 var(--fire-deep),
    .1em .1em 0 var(--ember);
  padding-bottom: .1em;
}

.lead { font-size: 19px; color: var(--end-stone-dim); max-width: 44ch; }
.hero .lead { color: #d8d2b6; }

.join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  background: rgba(34, 28, 46, .9);
  border: 2px solid var(--obsidian-deep);
  box-shadow: inset 0 2px 0 var(--deepslate-light);
  padding: 10px 10px 10px 14px;
}
.join-address { display: grid; }
.join-label { font-size: 13px; color: var(--end-stone-dim); }
.join code { font: 700 22px/1.25 var(--body); color: var(--end-stone); }
.join-port { font-size: 13px; color: var(--end-stone-dim); }
.join-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-big { min-height: 52px; padding: 10px 26px 14px; font-size: 18px; }
.hero-link { color: var(--end-stone); text-underline-offset: 4px; }

.online {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(12, 9, 16, .75);
  border: 2px solid #000;
  color: var(--end-stone-dim);
  font-size: 15px;
}
.online strong { font: 700 20px/1 var(--pixel); color: var(--xp); text-shadow: 2px 2px 0 #1b3a0c; }
.online-dot {
  width: 10px;
  height: 10px;
  background: var(--xp);
  box-shadow: 0 0 0 3px rgba(124, 217, 58, .25);
  animation: blink 2s steps(2, jump-none) infinite;
}
.online-dot-off { background: var(--stone); box-shadow: none; animation: none; }
@keyframes blink { 50% { box-shadow: 0 0 0 6px rgba(124, 217, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }

.section { padding: 64px 0 8px; }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 70ch; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); text-shadow: 3px 3px 0 var(--ember); }
.section-head p { color: var(--end-stone-dim); }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  display: flex;
  flex-direction: column;
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
  box-shadow: inset 0 2px 0 var(--deepslate-light);
}
.feature:first-child { grid-column: 1 / -1; flex-direction: row; }
.feature:first-child .feature-media { flex: 1.4; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: 2px solid var(--obsidian-deep); }
.feature:first-child .feature-body { flex: 1; align-self: center; padding: 28px; }
.feature:first-child h3 { font-size: 26px; }
.feature-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 2px solid var(--obsidian-deep);
  background: repeating-conic-gradient(#1b1624 0 25%, #1e1828 0 50%) 0 0 / 16px 16px;
}
.feature-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.feature-xp {
  grid-column: 1 / -1;
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: #151515;
}
.xp-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  display: block;
  user-select: none;
  animation: orb-fly var(--t, 12s) ease-in-out var(--d, 0s) infinite;
  will-change: transform;
}
.orb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(88, 255, 130, .35));
}
.orb-fly-1 { --t: 11s; --d: -2s; --x1: 40px; --y1: -22px; --x2: -18px; --y2: -46px; --x3: 26px; --y3: 14px; --x4: -30px; --y4: 20px; }
.orb-fly-2 { --t: 13s; --d: -7s; --x1: -34px; --y1: -18px; --x2: 22px; --y2: -40px; --x3: 48px; --y3: 6px; --x4: -12px; --y4: 24px; }
.orb-fly-3 { --t: 9s; --d: -4s; --x1: 28px; --y1: 30px; --x2: -26px; --y2: 12px; --x3: 14px; --y3: -34px; --x4: -40px; --y4: -8px; }
.orb-fly-4 { --t: 12s; --d: -9s; --x1: -46px; --y1: -12px; --x2: -10px; --y2: -38px; --x3: 30px; --y3: -20px; --x4: 18px; --y4: 26px; }
.orb-fly-5 { --t: 10s; --d: -1s; --x1: 22px; --y1: 34px; --x2: 48px; --y2: 4px; --x3: -20px; --y3: 22px; --x4: -36px; --y4: -26px; }
.orb-fly-6 { --t: 14s; --d: -11s; --x1: -28px; --y1: -30px; --x2: 18px; --y2: -18px; --x3: -44px; --y3: 14px; --x4: 26px; --y4: 30px; }
.orb-fly-7 { --t: 12s; --d: -5s; --x1: -38px; --y1: 22px; --x2: -60px; --y2: -10px; --x3: -14px; --y3: -28px; --x4: 10px; --y4: 18px; }
.orb-fly-8 { --t: 10s; --d: -8s; --x1: 34px; --y1: -26px; --x2: 56px; --y2: 8px; --x3: 20px; --y3: 30px; --x4: -14px; --y4: -14px; }
.orb-fly-9 { --t: 15s; --d: -3s; --x1: -22px; --y1: 28px; --x2: 30px; --y2: 44px; --x3: 52px; --y3: 12px; --x4: -30px; --y4: -10px; }
@keyframes orb-fly {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(var(--x1), var(--y1)); }
  45% { transform: translate(var(--x2), var(--y2)); }
  70% { transform: translate(var(--x3), var(--y3)); }
  85% { transform: translate(var(--x4), var(--y4)); }
}
.xp-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .8) 50%, transparent 100%);
}
.xp-text {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}
.xp-text h3 { margin-bottom: 8px; font-size: 24px; color: #fff; }
.xp-text p { max-width: 32rem; line-height: 1.6; color: #d1d5db; }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

.feature-body { display: grid; gap: 8px; padding: 16px 18px 20px; align-content: start; }
.feature-body h3 { font-size: 20px; }
.feature-body p { color: var(--end-stone-dim); }

.join-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.join-steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
}
.join-steps img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
}
.join-steps li::before {
  content: counter(step);
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font: 700 22px/1 var(--pixel);
  color: #1c0d05;
  background: var(--fire);
  border: 2px solid var(--obsidian-deep);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3);
}
.join-steps h3 { font-size: 18px; margin-top: 4px; }
.join-steps p { color: var(--end-stone-dim); font-size: 15px; }
.join-note { margin-top: 16px; color: var(--end-stone-dim); }

.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details {
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
  box-shadow: inset 0 2px 0 var(--deepslate-light);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font: 700 22px/1 var(--pixel);
  color: var(--fire);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 16px; color: var(--end-stone-dim); max-width: 70ch; }

.page-head { display: grid; gap: 12px; justify-items: start; padding: 40px 0 28px; max-width: 760px; }
.back { color: var(--end-stone-dim); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--end-stone); }
.page-title { font-size: clamp(32px, 5vw, 52px); text-shadow: .05em .05em 0 var(--fire-deep), .1em .1em 0 var(--ember); }
.updated { font-size: 14px; color: var(--end-stone-dim); }

.rules-page {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.rules-toc { position: sticky; top: 76px; display: grid; gap: 16px; }
.rules-search { display: grid; gap: 6px; font-weight: 500; }
.rules-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: 500 16px/1.2 var(--body);
  color: var(--end-stone);
  background: var(--obsidian-deep);
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .45);
}
.rules-search input::placeholder { color: #6d667a; }
.rules-toc nav { display: grid; gap: 4px; }
.rules-toc nav a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  color: var(--end-stone);
  text-decoration: none;
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
}
.rules-toc nav a:hover { background: var(--deepslate-light); }
.rules-count { font-size: 14px; color: var(--end-stone-dim); }
.rules-help { font-size: 14px; color: var(--end-stone-dim); }

.rules-block {
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
  box-shadow: inset 0 2px 0 var(--deepslate-light);
  padding: 20px 20px 8px;
}
.rules-block + .rules-block { margin-top: 16px; }
.rules-block h2 { font-size: 22px; margin-bottom: 8px; }
.rules-list { margin: 0; padding: 0; list-style: none; }
.rules-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 2px solid var(--obsidian-deep);
}
.rules-list li[hidden] { display: none; }
.rules-list li:target { background: rgba(255, 216, 74, .08); box-shadow: -8px 0 0 rgba(255, 216, 74, .08), 8px 0 0 rgba(255, 216, 74, .08); }
.rule-number { font: 700 16px/1.5 var(--pixel); color: var(--fire); text-decoration: none; }
.rule-number:hover { color: var(--focus); }
.rules-list p { line-height: 1.5; }
.punishment {
  justify-self: end;
  white-space: nowrap;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 500;
  color: #ffd2c4;
  background: rgba(196, 50, 26, .2);
  border: 2px solid rgba(196, 50, 26, .6);
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px 12px;
  border: 2px solid var(--obsidian-deep);
  border-radius: 0;
  font: 700 16px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, .32),
    inset 0 2px 0 rgba(255, 255, 255, .28);
}
.btn:active {
  transform: translateY(3px);
  padding-bottom: 9px;
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, .32),
    inset 0 2px 0 rgba(255, 255, 255, .18);
}
.btn-fire { background: var(--fire); color: #1c0d05; }
.btn-fire:hover { background: #ff8f3a; color: #1c0d05; }
.btn-stone { background: var(--stone); color: var(--end-stone); }
.btn-stone:hover { background: #5a5268; color: var(--end-stone); }

.tabs {
  position: sticky;
  top: 60px;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  margin-bottom: 8px;
  background: var(--obsidian);
  scrollbar-width: none;
}
.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font: 500 15px/1 var(--body);
  color: var(--end-stone);
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
  border-radius: 0;
  cursor: pointer;
}
.tab:hover { background: var(--deepslate-light); }
.tab[aria-pressed="true"] {
  color: #1c0d05;
  background: var(--fire);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3);
}
.tab-count {
  min-width: 20px;
  padding: 2px 5px;
  font-size: 12px;
  text-align: center;
  color: var(--end-stone-dim);
  background: var(--obsidian-deep);
}
.tab[aria-pressed="true"] .tab-count { color: var(--end-stone); }

.category[hidden] { display: none; }

.layout {
  display: grid;
  padding-bottom: 56px;
}

.category + .category { margin-top: 48px; }
.category-text { color: var(--end-stone-dim); margin-top: 6px; max-width: 70ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--deepslate);
  border: 2px solid var(--obsidian-deep);
  box-shadow: inset 0 2px 0 var(--deepslate-light);
}

.card-art {
  position: relative;
  aspect-ratio: 2 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--obsidian-deep);

  background:
    repeating-conic-gradient(#1b1624 0 25%, #1e1828 0 50%) 0 0 / 16px 16px;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-initial {
  font: 700 52px/1 var(--pixel);
  color: var(--ender);
  text-shadow: .06em .06em 0 #4b1f66;
}
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px 4px;
  font: 700 14px/1.2 var(--body);
  background: var(--ender);
  color: #1d0a28;
  border: 2px solid var(--obsidian-deep);
}

.card-body { padding: 14px 16px 0; flex: 1; }
.card-body p { margin-top: 6px; font-size: 15px; color: var(--end-stone-dim); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.price { display: grid; }
.price span { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price s { font-size: 15px; color: var(--end-stone-dim); }


.empty { padding: 48px 0; display: grid; gap: 8px; }
.empty p { color: var(--end-stone-dim); }

.foot {
  display: grid;
  gap: 6px;
  margin-top: 72px;
  padding-top: 32px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--end-stone-dim);
  border-top: 2px solid var(--deepslate);
}
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.foot-brand { display: grid; gap: 14px; justify-items: start; }
.foot-links { display: grid; gap: 6px; align-content: start; }
.foot-links h2 { font-size: 15px; color: var(--end-stone); margin-bottom: 4px; }
.foot-links a { color: var(--end-stone-dim); text-decoration: none; }
.foot-links a:hover { color: var(--end-stone); }

@media (max-width: 900px) {
  .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature:first-child { flex-direction: column; }
  .feature:first-child .feature-media { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 2px solid var(--obsidian-deep); }
  .feature:first-child .feature-body { padding: 16px 18px 20px; }
  .join-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 720px) {

  .top { gap: 8px; }
  .top > .socials { display: none; }
  .nav { margin-left: auto; margin-right: 0; }
  .nav a:nth-child(1), .nav a:nth-child(3) { display: none; }
  .nav a { padding: 6px 8px; }
  .hero { padding-top: 40px; padding-bottom: 48px; min-height: 0; }
  .hero::after { background: linear-gradient(0deg, var(--obsidian) 0%, rgba(12, 9, 16, .82) 40%, rgba(12, 9, 16, .6) 100%); }
  .lead { font-size: 17px; }
  .hero-actions .btn-big { width: 100%; }
  .section { padding-top: 48px; }
  .features, .join-steps { grid-template-columns: minmax(0, 1fr); }
  .rules-page { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rules-toc { position: static; }
  .rules-toc nav { display: none; }
  .rules-block { padding: 16px 14px 4px; }
  .rules-list li { grid-template-columns: 36px minmax(0, 1fr); }
  .punishment { grid-column: 2; justify-self: start; }
  .join { width: 100%; }
  .join-actions { width: 100%; }
  .join-actions .btn { flex: 1; }

  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
  .card-art { grid-row: span 2; aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--obsidian-deep); }
  .card-initial { font-size: 36px; }
  .badge { top: 6px; left: 6px; font-size: 12px; padding: 1px 5px 2px; }
  .card-body { padding: 12px 12px 0; }
  .card-foot { padding: 10px 12px 12px; }
  .price span { font-size: 19px; }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;

  transition: display .26s allow-discrete;
}
.overlay[hidden] { display: none; pointer-events: none; }

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 12, .78);
  transition: opacity .2s ease;
}
.overlay[hidden] .backdrop { opacity: 0; }
@starting-style { .backdrop { opacity: 0; } }

.dialog {
  position: relative;
  width: min(440px, 100%);
  background: var(--deepslate);
  border: 2px solid #000;
  box-shadow:
    inset 0 2px 0 var(--deepslate-light),
    inset 0 -4px 0 rgba(0, 0, 0, .3),
    0 0 0 4px var(--obsidian-deep);
  transition:
    transform .22s cubic-bezier(.2, .8, .2, 1),
    opacity .12s ease;
}

.overlay[hidden] .dialog { transform: translateY(14px) scale(.98); opacity: 0; }
@starting-style { .dialog { transform: translateY(14px) scale(.98); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .overlay, .backdrop, .dialog { transition: none; }
}

.dialog-body { display: grid; gap: 14px; padding: 20px; }
.dialog-body[hidden], .dialog-body div[hidden], .dialog form[hidden] { display: none; }
.dialog-body h2 { font-size: 22px; }
.dialog-body p { color: var(--end-stone-dim); }

.dialog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--obsidian-deep);
}
.dialog-price { font-size: 22px; font-weight: 700; white-space: nowrap; }

.dialog form { display: grid; gap: 8px; }
.dialog label { font-weight: 500; }
.dialog input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: 500 18px/1.2 var(--body);
  color: var(--end-stone);
  background: var(--obsidian-deep);
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .45);
}
.dialog input::placeholder { color: #6d667a; }
.dialog input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.hint { font-size: 14px; }
.form-error {
  padding: 8px 12px;
  color: var(--end-stone) !important;
  background: rgba(196, 50, 26, .18);
  border-left: 4px solid var(--fire-deep);
}
.form-error[hidden] { display: none; }

.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.btn:disabled { filter: grayscale(.6) brightness(.8); cursor: progress; }

@media (max-width: 480px) {
  .overlay { place-items: end stretch; padding: 0; }
  .dialog { width: 100%; transition: transform .26s cubic-bezier(.2, .8, .2, 1); }

  .overlay[hidden] .dialog { transform: translateY(100%); opacity: 1; }
  @starting-style { .dialog { transform: translateY(100%); opacity: 1; } }
  .dialog-actions .btn { flex: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
}
.hero-inner > * { animation: rise-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .15s; }
.hero-inner > :nth-child(3) { animation-delay: .25s; }
.hero-inner > :nth-child(4) { animation-delay: .35s; }
.hero-inner > :nth-child(5) { animation-delay: .45s; }

@keyframes title-drop {
  0% { opacity: 0; transform: translateY(-22px); }
  70% { opacity: 1; transform: translateY(3px); }
  100% { transform: none; }
}
.hero h1 { animation: title-drop .7s cubic-bezier(.3, .7, .3, 1) .15s both; }

.embers { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.embers span {
  position: absolute;
  bottom: -12px;
  width: var(--s);
  height: var(--s);
  background: var(--fire);
  box-shadow: 0 0 10px 2px rgba(255, 122, 26, .75);
  opacity: 0;
  animation: ember var(--t) linear var(--d) infinite;
}
.embers span:nth-child(3n) { background: #ffd84a; box-shadow: 0 0 8px 1px rgba(255, 216, 74, .6); }
.embers span:nth-child(4n) { background: var(--fire-deep); }
@keyframes ember {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: .9; }
  60% { opacity: .7; }
  100% { opacity: 0; transform: translate(var(--dx), -78vh); }
}

.embers span:nth-child(1) { left: 59%; --s: 6px; --t: 11.2s; --d: -10.3s; --dx: -3px; }
.embers span:nth-child(2) { left: 67%; --s: 7px; --t: 11.1s; --d: -2.3s; --dx: 0px; }
.embers span:nth-child(3) { left: 82%; --s: 6px; --t: 9.7s; --d: -2.2s; --dx: -22px; }
.embers span:nth-child(4) { left: 20%; --s: 8px; --t: 6.5s; --d: -9.7s; --dx: 21px; }
.embers span:nth-child(5) { left: 7%; --s: 6px; --t: 9.6s; --d: -4.8s; --dx: 23px; }
.embers span:nth-child(6) { left: 96%; --s: 4px; --t: 9.7s; --d: -1.9s; --dx: 46px; }
.embers span:nth-child(7) { left: 69%; --s: 5px; --t: 6.4s; --d: -0.4s; --dx: 16px; }
.embers span:nth-child(8) { left: 5%; --s: 7px; --t: 10.7s; --d: -3.9s; --dx: 47px; }
.embers span:nth-child(9) { left: 27%; --s: 6px; --t: 9.1s; --d: -7.7s; --dx: -60px; }
.embers span:nth-child(10) { left: 86%; --s: 6px; --t: 6.5s; --d: -7.9s; --dx: 10px; }
.embers span:nth-child(11) { left: 12%; --s: 5px; --t: 10.2s; --d: -3.8s; --dx: 5px; }
.embers span:nth-child(12) { left: 38%; --s: 4px; --t: 6.2s; --d: -6.8s; --dx: -9px; }
.embers span:nth-child(13) { left: 15%; --s: 4px; --t: 11.1s; --d: -4.6s; --dx: 48px; }
.embers span:nth-child(14) { left: 89%; --s: 4px; --t: 6.0s; --d: -2.5s; --dx: 0px; }
.embers span:nth-child(15) { left: 50%; --s: 4px; --t: 11.9s; --d: -4.8s; --dx: 12px; }
.embers span:nth-child(16) { left: 82%; --s: 5px; --t: 7.2s; --d: -8.1s; --dx: -49px; }
.embers span:nth-child(17) { left: 41%; --s: 4px; --t: 8.0s; --d: -11.6s; --dx: -43px; }
.embers span:nth-child(18) { left: 33%; --s: 6px; --t: 10.2s; --d: -0.1s; --dx: 42px; }
.embers span:nth-child(19) { left: 64%; --s: 6px; --t: 7.1s; --d: -6.7s; --dx: 5px; }
.embers span:nth-child(20) { left: 26%; --s: 6px; --t: 11.9s; --d: -9.2s; --dx: 22px; }
.embers span:nth-child(21) { left: 51%; --s: 5px; --t: 6.7s; --d: -5.0s; --dx: -60px; }
.embers span:nth-child(22) { left: 36%; --s: 7px; --t: 11.2s; --d: -11.7s; --dx: -22px; }

@keyframes count-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); color: #d9ff9a; }
  100% { transform: scale(1); }
}
.online strong { display: inline-block; animation: count-pop .45s ease-out; }

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-160%) skewX(-25deg);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(260%) skewX(-25deg); transition: transform .7s ease; }
.btn-fire:hover { filter: brightness(1.05); }

.card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, .7);
  box-shadow: inset 0 2px 0 var(--deepslate-light), 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 122, 26, .25);
}
.card-art img, .card-initial { transition: transform .3s ease; }
.card:hover .card-art img { transform: scale(1.06); }
.card:hover .card-initial { transform: translateY(-3px) scale(1.12) rotate(-4deg); }
.badge { animation: badge-wiggle 3.2s ease-in-out 1s infinite; }
@keyframes badge-wiggle {
  0%, 88%, 100% { transform: none; }
  92% { transform: rotate(-6deg) scale(1.08); }
  96% { transform: rotate(5deg) scale(1.08); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}
.category .card { animation: card-in .4s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.tab { transition: background-color .15s ease, color .15s ease, transform .1s ease; }
.tab:active { transform: translateY(2px); }

.feature-media > img, .feature-media .anim img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.feature:hover .feature-media > img, .feature:hover .feature-media .anim img { transform: scale(1.05); }
.feature { transition: border-color .2s ease; }
.feature:hover { border-color: rgba(196, 92, 255, .55); }

@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
.faq details[open] p { animation: faq-open .25s ease; }
.faq summary::after { transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }

.dialog-body { position: relative; }
.burst { position: absolute; left: 50%; top: 34px; width: 0; height: 0; pointer-events: none; }
.burst img {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(88, 255, 130, .5));
  animation: orb-burst 1.1s cubic-bezier(.15, .7, .3, 1) both;
}
@keyframes orb-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1); }
}
.burst img:nth-child(1) { --bx: -150px; --by: -60px; animation-delay: .05s; }
.burst img:nth-child(2) { --bx: 150px; --by: -70px; animation-delay: .08s; }
.burst img:nth-child(3) { --bx: -110px; --by: -120px; animation-delay: .1s; }
.burst img:nth-child(4) { --bx: 110px; --by: -125px; animation-delay: .04s; }
.burst img:nth-child(5) { --bx: -40px; --by: -140px; animation-delay: .12s; }
.burst img:nth-child(6) { --bx: 45px; --by: -150px; animation-delay: .06s; }
.burst img:nth-child(7) { --bx: -190px; --by: 10px; animation-delay: .14s; }
.burst img:nth-child(8) { --bx: 190px; --by: 0; animation-delay: .1s; }
.burst img:nth-child(9) { --bx: -80px; --by: 40px; animation-delay: .16s; }
.burst img:nth-child(10) { --bx: 85px; --by: 45px; animation-delay: .12s; }
@keyframes thanks-in { from { opacity: 0; transform: scale(.9); } }
.burst ~ h2 { animation: thanks-in .35s cubic-bezier(.3, 1.4, .5, 1) .1s both; }

@supports (animation-timeline: view()) {
  @keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
  .section-head, .feature, .join-steps li, .faq details, .rules-block {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }

  @keyframes header-solid {
    to { background: rgba(21, 17, 29, .98); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
  }
  .top { animation: header-solid linear both; animation-timeline: scroll(); animation-range: 0 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *, .hero h1, .embers span, .online strong, .badge, .category .card,
  .faq details[open] p, .burst img, .burst ~ h2,
  .section-head, .feature, .join-steps li, .faq details, .rules-block {
    animation: none !important;
  }
  .embers, .burst { display: none; }
  .btn::after { display: none; }
  .card, .card:hover, .card:hover .card-art img, .card:hover .card-initial,
  .feature:hover .feature-media > img, .feature:hover .feature-media .anim img { transform: none; transition: none; }
}
