:root {
  --bg: #050505;
  --panel: rgba(17, 17, 18, .88);
  --panel-strong: rgba(24, 20, 18, .94);
  --line: rgba(255,255,255,.1);
  --line-hot: rgba(230, 42, 31, .48);
  --text: #f5efe5;
  --muted: #b4aca1;
  --red: #e62a1f;
  --red-dark: #6c0707;
  --gold: #d0aa66;
  --teal: #16c6c0;
  --discord: #5865f2;
  --ok: #2cff91;
  --danger: #ff3b30;
  --ember: #ff7b32;
  --glass: rgba(9, 8, 8, .72);
  --shadow: 0 28px 80px rgba(0,0,0,.55);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(230,42,31,.22), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(22,198,192,.13), transparent 30rem),
    linear-gradient(145deg, #020202 0%, #090706 52%, #110707 100%);
  font-family: Bahnschrift, "Segoe UI", Tahoma, sans-serif;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(208,170,102,.08) 6.1%, transparent 6.4% 93.6%, rgba(208,170,102,.08) 93.9%, transparent 94.2%),
    radial-gradient(circle at 50% 18%, rgba(230,42,31,.14), transparent 34rem);
}
body::after {
  opacity: .45;
  background:
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.018) 19px 20px),
    radial-gradient(circle at 70% 72%, rgba(230,42,31,.12), transparent 28rem);
  mix-blend-mode: screen;
}
.copy-allowed,
.copy-allowed * ,
input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(38px, 8vw, 92px) 0 28px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 3vw, 28px) -12px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208,170,102,.65), rgba(230,42,31,.48), transparent);
  box-shadow: 0 0 24px rgba(230,42,31,.42);
}
.hero-copy h1 {
  position: relative;
  margin: 8px 0 14px;
  max-width: 850px;
  font-family: Impact, Bahnschrift, sans-serif;
  font-size: clamp(52px, 10vw, 132px);
  line-height: .86;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(230,42,31,.24), 0 18px 56px rgba(0,0,0,.65);
}
.hero-copy h1::after {
  content: "";
  display: block;
  width: min(320px, 62vw);
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
  box-shadow: 0 0 26px rgba(230,42,31,.35);
}
.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.primary, .ghost, .discord-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.primary { border-color: rgba(230,42,31,.7); background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 18px 36px rgba(230,42,31,.22); }
.discord-cta {
  gap: 9px;
  border-color: rgba(88,101,242,.7);
  background: linear-gradient(135deg, var(--discord), #7d87ff);
  box-shadow: 0 18px 36px rgba(88,101,242,.22);
}
.discord-cta svg { width: 20px; height: 20px; fill: currentColor; }
.ghost { color: var(--muted); background: rgba(255,255,255,.045); }
.primary:hover, .ghost:hover, .discord-cta:hover { transform: translateY(-1px); border-color: var(--line-hot); }
.live-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  max-width: 620px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(230,42,31,.32);
  border-radius: 22px;
  background: radial-gradient(circle at 18% 0%, rgba(230,42,31,.18), transparent 22rem), rgba(0,0,0,.34);
  box-shadow: 0 20px 52px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.035);
}
.live-panel strong {
  display: block;
  margin-top: 4px;
  font-family: Impact, Bahnschrift, sans-serif;
  font-size: clamp(52px, 9vw, 88px);
  line-height: .86;
  letter-spacing: .02em;
  text-shadow: 0 0 26px rgba(44,255,145,.2), 0 0 34px rgba(230,42,31,.16);
}
.live-panel small, .live-meta span { color: var(--muted); }
.live-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
}
.live-kicker i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 18px currentColor;
}
.live-kicker i.is-online {
  background: var(--ok);
  animation: livePulse 1.8s ease-in-out infinite;
}
.live-meta { display: grid; gap: 4px; justify-items: end; font-size: 13px; }
.live-meta b { color: var(--text); }
.hero-emblem {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 32px;
  background: radial-gradient(circle at 50% 38%, rgba(230,42,31,.18), transparent 62%), rgba(5,5,6,.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-emblem img {
  width: min(320px, 70vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(230,42,31,.34));
  animation: emblemFloat 4.2s ease-in-out infinite;
}
.hero-emblem span { color: var(--gold); font-size: 12px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}
.side-panel {
  position: sticky;
  top: 16px;
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20,17,15,.92), rgba(5,5,6,.86));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}
.search-box { display: grid; gap: 8px; }
.search-box label { color: var(--gold); font-size: 11px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 13px;
  color: var(--text);
  outline: none;
  background: rgba(0,0,0,.32);
}
.search-box input:focus { border-color: var(--line-hot); box-shadow: 0 0 0 4px rgba(230,42,31,.12); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats span { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: rgba(255,255,255,.035); }
.stats strong { color: var(--text); font-size: 24px; line-height: 1; }
.discord-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(88,101,242,.38);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(88,101,242,.2), rgba(255,255,255,.045));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  transition: transform .16s ease, border-color .16s ease;
}
.discord-card:hover { border-color: rgba(88,101,242,.8); transform: translateY(-1px); }
.discord-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--discord), #7d87ff);
  box-shadow: 0 16px 34px rgba(88,101,242,.25);
}
.discord-mark svg { width: 25px; height: 25px; fill: currentColor; }
.discord-card strong { display: block; font-size: 14px; }
.discord-card small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.toc { display: grid; gap: 7px; }
.toc a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}
.toc a:hover { border-color: var(--line-hot); color: var(--text); background: rgba(230,42,31,.07); }
.toc span { display: grid; place-items: center; height: 28px; border-radius: 10px; color: var(--gold); background: rgba(255,255,255,.055); font-weight: 950; }
.rules-column { display: grid; gap: 14px; }
.notice, .rule-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20,17,15,.92), rgba(5,5,6,.86));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}
.notice { display: flex; gap: 10px; padding: 16px; color: var(--muted); }
.notice strong { color: var(--text); }
.protection-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(208,170,102,.24);
  border-radius: 18px;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(208,170,102,.1), rgba(230,42,31,.06));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.protection-note strong { color: var(--gold); }
.rule-card {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rule-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(230,42,31,.12), transparent 24%),
    radial-gradient(circle at 94% 0%, rgba(208,170,102,.12), transparent 18rem);
  opacity: .85;
}
.rule-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230,42,31,.32);
  box-shadow: 0 34px 90px rgba(0,0,0,.62), 0 0 42px rgba(230,42,31,.08);
}
.rule-card.is-hidden { display: none; }
.rule-head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(230,42,31,.14), rgba(255,255,255,.025));
}
.rule-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(230,42,31,.55);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-weight: 950;
  box-shadow: 0 0 24px rgba(230,42,31,.2);
}
.rule-head h2 { margin: 4px 0 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.02; text-transform: uppercase; }
.rule-body { display: grid; gap: 12px; padding: 16px; }
.sub-rule {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
}
.sub-rule h3 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}
.sub-rule h3 span { color: var(--gold); font-weight: 950; }
.rule-text { margin: 8px 0 0; color: var(--muted); line-height: 1.62; }
.rule-text.important { color: #f2d2c4; border-left: 3px solid var(--red); padding-left: 10px; }
.empty-state { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line-hot); border-radius: var(--radius); }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  color: var(--muted);
  font-size: 13px;
}
@keyframes emblemFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(44,255,145,.38), 0 0 18px rgba(44,255,145,.65); }
  50% { box-shadow: 0 0 0 8px rgba(44,255,145,0), 0 0 28px rgba(44,255,145,.9); }
}
@media (max-width: 920px) {
  .hero, .layout { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-emblem { order: -1; }
  .hero-emblem img { width: min(220px, 62vw); }
  .side-panel { position: static; max-height: none; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero, .layout, .footer { width: min(100% - 20px, 1240px); }
  .hero-copy h1 { font-size: clamp(46px, 17vw, 78px); }
  .hero-actions, .notice { flex-direction: column; }
  .primary, .ghost, .discord-cta { width: 100%; }
  .toc { grid-template-columns: 1fr; }
  .rule-head { grid-template-columns: 1fr; }
  .rule-number { width: 48px; height: 48px; }
  .sub-rule h3 { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media print {
  body { background: #fff; color: #111; }
  .hero-emblem, .side-panel, .hero-actions, .noise { display: none !important; }
  .hero, .layout, .footer { width: 100%; padding: 0; }
  .rule-card, .notice { box-shadow: none; break-inside: avoid; border-color: #bbb; background: #fff; }
  .rule-text, .notice, .footer { color: #222; }
}

.protection-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translateX(-50%);
  max-width: min(420px, calc(100% - 28px));
  padding: 12px 16px;
  border: 1px solid rgba(208,170,102,.34);
  border-radius: 999px;
  color: var(--text);
  background: rgba(5,5,6,.92);
  box-shadow: 0 18px 48px rgba(0,0,0,.55), 0 0 28px rgba(230,42,31,.18);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}
.discord-card code {
  display: inline-flex;
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #edf0ff;
  background: rgba(0,0,0,.25);
  font-size: 12px;
  font-family: Consolas, "Courier New", monospace;
}
@media (max-width: 560px) {
  .protection-note { align-items: flex-start; flex-direction: column; }
}
@media print {
  body { display: none !important; }
}
