:root {
  --bg: #10080d;
  --ink: #ffe8f1;
  --dim: #c9a0b4;
  --pink: #ff4f93;
  --pink-2: #ff8fb8;
  --card: #1a0e16;
  --line: #ff4f93;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(#2a1220 1px, transparent 1px) 0 0 / 100% 28px,
    var(--bg);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
a { color: inherit; }
button, a, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--pink-2); outline-offset: 2px; }

.skip {
  position: absolute; left: 12px; top: -40px;
  background: var(--pink); color: #1a0610; padding: 8px 12px; z-index: 5; font-weight: 700;
}
.skip:focus { top: 12px; }

.top {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 22px;
  padding: 14px 28px;
  background: #10080de6;
  border-bottom: 3px solid var(--pink);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
.bow {
  width: 22px; height: 14px; position: relative;
}
.bow::before, .bow::after {
  content: "";
  position: absolute; top: 0;
  width: 10px; height: 10px;
  background: var(--pink);
  border: 2px solid #1a0610;
}
.bow::before { left: 0; transform: rotate(-18deg); }
.bow::after { right: 0; transform: rotate(18deg); }
.links { display: flex; gap: 18px; margin-right: auto; }
.links a { color: var(--dim); text-decoration: none; font-weight: 700; }
.links a:hover { color: var(--pink-2); }
.top-right { display: flex; align-items: center; gap: 12px; }
.live { color: var(--pink-2); font-weight: 700; font-size: 0.92rem; }
.live i {
  display: inline-block; width: 8px; height: 8px; margin-right: 6px;
  background: var(--pink); border-radius: 50%;
  box-shadow: 0 0 0 0 #ff4f9388;
  animation: blink 1.4s ease-out infinite;
}
@keyframes blink {
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px;
  background: var(--pink); color: #1a0610;
  border: 3px solid #1a0610;
  box-shadow: 4px 4px 0 #ffd0e2;
  text-decoration: none; font-weight: 700; cursor: pointer;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #ffd0e2; }
.btn.big { min-height: 52px; padding: 0 18px; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: 4px 4px 0 var(--pink); }
.burger {
  display: none; min-height: 40px; padding: 0 12px;
  background: transparent; color: var(--ink);
  border: 3px solid var(--pink); cursor: pointer; font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 36px;
  align-items: end;
}
.tag { margin: 0 0 12px; color: var(--pink-2); font-weight: 700; letter-spacing: 0.04em; }
h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 11ch;
}
.lede { max-width: 34rem; color: var(--dim); font-size: 1.15rem; }
.lede b { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.fine { margin: 0; color: var(--dim); font-size: 0.92rem; }

.board {
  background: var(--card);
  border: 3px solid var(--pink);
  box-shadow: 8px 8px 0 #ff4f93;
  padding: 16px 16px 12px;
}
.board-head, .board-meta {
  display: flex; justify-content: space-between; gap: 10px;
  color: var(--dim); font-weight: 700; font-size: 0.92rem;
}
.cap { color: var(--pink-2); }
.count {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 5rem;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--pink);
}
.count.bump { animation: hop 0.28s ease; }
@keyframes hop {
  40% { transform: translateY(-4px); }
  100% { transform: none; }
}
.feed { list-style: none; margin: 8px 0 12px; padding: 0; min-height: 72px; }
.feed li {
  display: flex; justify-content: space-between;
  border-top: 2px dashed #ff4f9355;
  padding: 6px 0;
  font-size: 0.95rem;
}
.feed .who { font-weight: 700; }
.feed .in { color: var(--pink-2); }
.feed .out { color: #8d6578; }
.board-meta { border-top: 3px solid #ff4f9344; padding-top: 8px; }
.board-meta b { color: var(--ink); }

.mods {
  width: min(1100px, calc(100% - 48px));
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mods article {
  border: 3px solid #ff4f9388;
  padding: 18px 16px 20px;
  background: #160910;
  min-height: 180px;
}
.mods article:hover { border-color: var(--pink); background: #22101a; }
.mods .hot { background: var(--pink); color: #1a0610; border-color: #1a0610; box-shadow: 6px 6px 0 #ffd0e2; }
.mods .hot p { color: #1a0610; }
.mods p:first-child { margin: 0 0 18px; font-weight: 700; color: var(--pink-2); }
.mods h2 {
  margin: 0 0 8px;
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.mods article p:last-child { margin: 0; }

.join, .rules, .faq, .shop {
  width: min(1100px, calc(100% - 48px));
  margin: 28px auto;
}
h2 {
  margin: 0 0 12px;
  font-family: "Syne", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}
.join ol, .rules ul { margin: 0; padding: 0; list-style: none; }
.join li, .rules li {
  padding: 12px 0;
  border-top: 2px solid #ff4f9344;
  color: var(--dim);
}
.join li:last-child, .rules li:last-child { border-bottom: 2px solid #ff4f9344; }
.join b, .rules b { color: var(--ink); margin-right: 8px; }
code { color: var(--pink-2); font-family: "Outfit", monospace; font-weight: 700; }

.faq details { border-top: 2px solid #ff4f9344; padding: 12px 0; }
.faq details:last-child { border-bottom: 2px solid #ff4f9344; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary:hover { color: var(--pink-2); }
.faq p { margin: 8px 0 0; color: var(--dim); }

.shop {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  border: 3px solid var(--pink);
  padding: 16px 18px;
  box-shadow: 6px 6px 0 #ff4f93;
}
.shop p { margin: 0; color: var(--dim); }

footer {
  width: min(1100px, calc(100% - 48px));
  margin: 10px auto 28px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px 18px;
  align-items: center;
  color: var(--dim);
  font-size: 0.88rem;
}
footer span { font-family: "Syne", sans-serif; font-weight: 800; color: var(--ink); font-size: 1.1rem; }
footer a { color: var(--pink-2); font-weight: 700; }
footer p { margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  background: var(--pink); color: #1a0610;
  border: 3px solid #1a0610;
  padding: 8px 14px; font-weight: 700;
  opacity: 0; pointer-events: none; z-index: 6;
}
.toast.show { opacity: 1; }

@media (max-width: 860px) {
  .top { flex-wrap: wrap; padding: 12px 16px; }
  .links {
    display: none; position: absolute; left: 16px; right: 16px; top: 64px;
    flex-direction: column; gap: 0;
    background: #1a0e16; border: 3px solid var(--pink); padding: 6px 0;
  }
  .links.open { display: flex; }
  .links a { padding: 12px 14px; }
  .burger { display: inline-flex; }
  .live b { display: none; }
  .hero, .mods { grid-template-columns: 1fr; width: min(1100px, calc(100% - 32px)); }
  .join, .rules, .faq, .shop, footer { width: min(1100px, calc(100% - 32px)); }
  .shop, footer { display: flex; flex-direction: column; align-items: flex-start; }
  h1 { max-width: none; }
  .count { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .live i, .count.bump { animation: none; }
}
