:root {
  --bg-0: #030000;
  --bg-1: #060000;
  --bg-2: #090000;
  --panel: rgba(15, 0, 0, 0.72);
  --panel-2: rgba(20, 0, 0, 0.56);
  --panel-solid: #110707;
  --red: #ff0000;
  --red-2: #d60000;
  --red-3: #8f0000;
  --text: #ffffff;
  --muted: #aaaaaa;
  --muted-2: #888888;
  --border: rgba(255, 0, 0, 0.24);
  --border-strong: rgba(255, 0, 0, 0.52);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --header-h: 86px;
  --content: 1380px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(105, 0, 0, .16), transparent 30%),
    radial-gradient(circle at 88% 9%, rgba(85, 0, 0, .13), transparent 28%),
    linear-gradient(180deg, var(--bg-0) 0%, #050000 48%, #030000 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 82%);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

::selection {
  background: rgba(255, 0, 0, .34);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 70, 70, .92);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: .86;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: .22;
}

.ambient-a {
  width: 430px;
  height: 430px;
  left: -120px;
  top: 18vh;
  background: #a90000;
}

.ambient-b {
  width: 360px;
  height: 360px;
  right: -100px;
  top: 58vh;
  background: #5d0000;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3000;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #710000, #ff1515);
  box-shadow: 0 0 14px rgba(255, 0, 0, .5);
}

.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 0 24px;
  transition: top .3s var(--ease);
}

.header-shell {
  width: min(var(--content), calc(100% - 0px));
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid rgba(255, 0, 0, .18);
  border-radius: 22px;
  background: rgba(7, 0, 0, .68);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  transition: min-height .3s var(--ease), border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.site-header.is-compact {
  top: 10px;
}

.site-header.is-compact .header-shell {
  min-height: 68px;
  background: rgba(7, 0, 0, .86);
  border-color: rgba(255, 0, 0, .28);
  box-shadow: 0 16px 42px rgba(0,0,0,.42);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,0,0,.1), rgba(55,0,0,.12));
  border: 1px solid rgba(255,0,0,.25);
  box-shadow: inset 0 0 20px rgba(255,0,0,.05);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.brand-fallback {
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 900;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: .18em;
}

.brand-copy span {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .24em;
  color: #8e8e8e;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .045);
  background: rgba(255,255,255,.018);
}

.desktop-nav a {
  position: relative;
  padding: 12px 18px;
  border-radius: 12px;
  color: #a9a9a9;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  transition: color .22s ease, background .22s ease, transform .22s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 0;
  height: 1px;
  background: #ff2525;
  transform: translateX(-50%);
  transition: width .22s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
  background: rgba(255, 0, 0, .065);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  width: 24px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,0,0,.22);
  border-radius: 13px;
  background: rgba(255,0,0,.035);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  width: min(var(--content), 100%);
  margin: 8px auto 0;
  padding: 12px;
  border: 1px solid rgba(255,0,0,.2);
  border-radius: 18px;
  background: rgba(7,0,0,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.42);
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  color: #b7b7b7;
  font-weight: 750;
}

.mobile-nav a.is-active {
  color: #fff;
  background: rgba(255,0,0,.08);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100svh;
  padding: 156px 24px 72px;
  display: grid;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 38%, rgba(125, 0, 0, .22), transparent 25%),
    linear-gradient(to bottom, transparent 70%, rgba(3,0,0,.88));
}

.hero-grid {
  position: relative;
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c7c7c7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #ff0000, transparent);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(58px, 7.2vw, 126px);
  line-height: .82;
  letter-spacing: -.072em;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero h1 .accent-word {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 55, 55, .86);
  text-shadow: 0 0 38px rgba(120,0,0,.14);
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: #a7a7a7;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .035em;
  transition: transform .22s var(--ease), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.primary-btn {
  background: linear-gradient(180deg, #d91414, #a60000);
  border: 1px solid rgba(255, 70, 70, .42);
  box-shadow: 0 12px 26px rgba(120,0,0,.2), inset 0 1px 0 rgba(255,255,255,.14);
}

.ghost-btn {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  color: #c9c9c9;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  box-shadow: 0 18px 34px rgba(120,0,0,.3), inset 0 1px 0 rgba(255,255,255,.16);
}

.ghost-btn:hover {
  color: #fff;
  border-color: rgba(255,0,0,.25);
  background: rgba(255,0,0,.045);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-meta span {
  color: #696969;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 13px;
  font-weight: 780;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero-visual::before {
  width: min(36vw, 500px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(155,0,0,.22), rgba(85,0,0,.07) 42%, transparent 72%);
  filter: blur(12px);
}

.hero-visual::after {
  width: min(31vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,0,0,.12);
  box-shadow: inset 0 0 70px rgba(120,0,0,.07), 0 0 100px rgba(85,0,0,.08);
}

.logo-orbit {
  position: absolute;
  width: min(39vw, 540px);
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 0, 0, .12);
  border-radius: 50%;
  animation: orbitSpin 36s linear infinite;
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2525;
  box-shadow: 0 0 18px rgba(255,0,0,.75);
}

.logo-orbit::before {
  top: 18%;
  left: 8%;
}

.logo-orbit::after {
  right: 11%;
  bottom: 15%;
}

.hero-logo-frame {
  width: min(27vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: logoFloat 5.8s ease-in-out infinite;
}

.hero-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(140,0,0,.22));
}

.hero-logo-fallback {
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 950;
  letter-spacing: -.06em;
}

.hero-stamp {
  position: absolute;
  bottom: 50px;
  right: 4%;
  padding: 10px 14px;
  border: 1px solid rgba(255,0,0,.2);
  border-radius: 999px;
  background: rgba(10,0,0,.7);
  color: #9c9c9c;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .12em;
  backdrop-filter: blur(10px);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #777;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mouse {
  width: 20px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
}

.mouse i {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 5px;
  border-radius: 3px;
  background: #ff2b2b;
  transform: translateX(-50%);
  animation: mouseMove 1.5s ease-in-out infinite;
}

.rules-intro {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 110px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 40px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.section-heading h2 {
  max-width: 780px;
  margin: 12px 0 0;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-heading p {
  margin: 0;
  color: #929292;
  line-height: 1.7;
}

.rules-toolbar {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.search-box {
  min-height: 62px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,0,0,.2);
  border-radius: 18px;
  background: rgba(11,0,0,.68);
  backdrop-filter: blur(12px);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.search-box:focus-within {
  border-color: rgba(255, 0, 0, .48);
  background: rgba(14,0,0,.82);
  box-shadow: 0 0 0 4px rgba(255,0,0,.035);
}

.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #8b8b8b;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.search-box input::placeholder {
  color: #666;
}

.search-box kbd {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-bottom-color: rgba(255,255,255,.12);
  border-radius: 8px;
  color: #6f6f6f;
  background: rgba(255,255,255,.02);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.result-count {
  min-width: 116px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.018);
  color: #858585;
  font-size: 12px;
  text-align: center;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-pill {
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.018);
  color: #818181;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s var(--ease), color .2s ease, border-color .2s ease, background .2s ease;
}

.filter-pill:hover {
  transform: translateY(-1px);
  color: #ccc;
  border-color: rgba(255,0,0,.18);
}

.filter-pill.is-active {
  color: #fff;
  border-color: rgba(255,0,0,.32);
  background: rgba(255,0,0,.075);
}

.mobile-category-wrap {
  display: none;
  margin-top: 18px;
}

.mobile-category-wrap label {
  display: block;
  margin-bottom: 8px;
  color: #777;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mobile-category-wrap select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255,0,0,.2);
  border-radius: 14px;
  background: #110404;
  color: #fff;
}

.rules-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  margin-top: 38px;
  align-items: start;
}

.rules-sidebar {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 122px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255,0,0,.16);
  border-radius: 20px;
  background: rgba(10,0,0,.64);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,0,0,.22) transparent;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 14px;
  color: #666;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .14em;
}

.sidebar-head strong {
  color: #c8c8c8;
  font-size: 11px;
}

.category-nav {
  display: grid;
  gap: 4px;
}

.category-link {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #777;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.category-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: #ff2222;
  transform: translateY(-50%);
  transition: height .2s var(--ease);
}

.category-link:hover {
  color: #c4c4c4;
  background: rgba(255,255,255,.018);
}

.category-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255,0,0,.1), rgba(255,0,0,.025));
}

.category-link.is-active::before {
  height: 24px;
}

.category-link .num {
  color: #5d5d5d;
  font: 760 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.category-link.is-active .num {
  color: #ff4848;
}

.category-link .label {
  font-size: 12px;
  font-weight: 730;
  line-height: 1.25;
}

.rules-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.rules-loading {
  padding: 42px 20px;
  border: 1px solid rgba(255,0,0,.14);
  border-radius: 18px;
  color: #777;
  background: rgba(10,0,0,.5);
  text-align: center;
}

.rule-category {
  scroll-margin-top: 112px;
  border: 1px solid rgba(255,0,0,.15);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17,0,0,.72), rgba(8,0,0,.64));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.016);
}

.category-header {
  width: 100%;
  min-height: 96px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.category-number {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,0,0,.22);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #ff4e4e;
  background: rgba(255,0,0,.04);
  font: 820 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.category-title-wrap h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -.025em;
}

.category-title-wrap p {
  margin: 7px 0 0;
  max-width: 720px;
  color: #7e7e7e;
  font-size: 13px;
  line-height: 1.55;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #686868;
  font-size: 11px;
  font-weight: 720;
}

.category-chevron {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  transition: transform .28s var(--ease), border-color .2s ease, background .2s ease;
}

.category-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #777;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rule-category.is-open .category-chevron {
  transform: rotate(180deg);
  border-color: rgba(255,0,0,.18);
  background: rgba(255,0,0,.04);
}

.category-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .36s var(--ease), opacity .3s ease;
}

.rule-category.is-open .category-collapse {
  grid-template-rows: 1fr;
  opacity: 1;
}

.category-collapse-inner {
  min-height: 0;
  overflow: hidden;
}

.rule-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.rule-card {
  position: relative;
  scroll-margin-top: 120px;
  padding: 20px;
  border: 1px solid rgba(255,0,0,.15);
  border-radius: 18px;
  background: rgba(9,0,0,.72);
  overflow: hidden;
  transition: transform .24s var(--ease), border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

.rule-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: transparent;
  transition: background .2s ease;
}

.rule-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,0,0,.27);
  background: rgba(12,0,0,.82);
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.rule-card.type-forbidden::before {
  background: linear-gradient(#ff2020, #7b0000);
}

.rule-card.type-important::before {
  background: linear-gradient(#d8a644, #7a4b00);
}

.rule-card.type-info::before {
  background: linear-gradient(#8b9fbd, #47576e);
}

.rule-card.type-penalty::before {
  background: linear-gradient(#ff5b5b, #8f0000);
}

.rule-card.deep-highlight {
  animation: deepHighlight 1.45s var(--ease);
}

.rule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.rule-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.rule-number {
  color: #ff4747;
  font: 820 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}

.rule-type {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 880;
  letter-spacing: .11em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.06);
  color: #7e7e7e;
  background: rgba(255,255,255,.02);
}

.type-forbidden .rule-type {
  color: #ff7c7c;
  border-color: rgba(255,0,0,.22);
  background: rgba(255,0,0,.06);
}

.type-important .rule-type {
  color: #d9b466;
  border-color: rgba(207,147,38,.2);
  background: rgba(207,147,38,.055);
}

.type-info .rule-type {
  color: #aab7c9;
  border-color: rgba(131,153,185,.18);
  background: rgba(131,153,185,.045);
}

.type-penalty .rule-type {
  color: #ff8f8f;
  border-color: rgba(255,0,0,.25);
  background: rgba(255,0,0,.075);
}

.rule-card h4 {
  width: 100%;
  margin: 4px 0 0;
  font-size: clamp(18px, 1.6vw, 23px);
  letter-spacing: -.02em;
}

.copy-link {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.018);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s ease, background .2s ease;
}

.copy-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,0,0,.22);
  background: rgba(255,0,0,.045);
}

.copy-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #7e7e7e;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rule-card-body {
  margin-top: 16px;
  color: #9d9d9d;
  font-size: 14px;
  line-height: 1.72;
}

.rule-card-body p {
  margin: 0;
}

.rule-points {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rule-points li {
  position: relative;
  padding-left: 18px;
}

.rule-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,55,55,.72);
  box-shadow: 0 0 10px rgba(255,0,0,.24);
}

.rule-note,
.rule-penalty {
  margin-top: 15px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,0,0,.12);
  background: rgba(255,0,0,.025);
  color: #c0c0c0;
  line-height: 1.55;
}

.rule-note strong,
.rule-penalty strong {
  color: #fff;
}

.rule-penalty {
  border-color: rgba(255,0,0,.24);
  background: rgba(255,0,0,.055);
  color: #ffb5b5;
}

.examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.example-box {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.015);
}

.example-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.example-box.allowed strong {
  color: #78c49c;
}

.example-box.forbidden strong {
  color: #df7272;
}

.example-box ul {
  margin: 0;
  padding-left: 16px;
  color: #8f8f8f;
}

.example-box li + li {
  margin-top: 6px;
}

mark {
  padding: 0 .12em;
  border-radius: 3px;
  color: #fff;
  background: rgba(255,0,0,.26);
}

.empty-state {
  margin-top: 34px;
  padding: 54px 22px;
  text-align: center;
  border: 1px dashed rgba(255,0,0,.2);
  border-radius: 22px;
  background: rgba(10,0,0,.45);
}

.empty-state > span {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,0,0,.2);
  color: #ff4d4d;
  font-weight: 850;
}

.empty-state h3 {
  margin: 0;
  font-size: 24px;
}

.empty-state p {
  margin: 8px 0 0;
  color: #777;
}

.empty-state button {
  margin-top: 18px;
  padding: 11px 15px;
  border: 1px solid rgba(255,0,0,.22);
  border-radius: 12px;
  background: rgba(255,0,0,.06);
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid rgba(255,0,0,.12);
  background: rgba(4,0,0,.7);
}

.footer-inner {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-brand strong {
  font-size: 12px;
  letter-spacing: .13em;
}

.footer-brand span {
  color: #6c6c6c;
  font-size: 10px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer nav a,
.site-footer p {
  color: #707070;
  font-size: 11px;
}

.site-footer nav a:hover {
  color: #fff;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,0,0,.22);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(12,0,0,.82);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s var(--ease), border-color .22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(255,0,0,.46);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ddd;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1400;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(255,0,0,.25);
  border-radius: 12px;
  background: rgba(12,0,0,.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity .62s var(--ease), transform .62s var(--ease), filter .62s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes mouseMove {
  0%, 100% { transform: translate(-50%, 0); opacity: .35; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

@keyframes deepHighlight {
  0% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
  30% { border-color: rgba(255,0,0,.62); box-shadow: 0 0 0 5px rgba(255,0,0,.06), 0 0 30px rgba(255,0,0,.12); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr .78fr;
    gap: 44px;
  }

  .rules-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    padding-bottom: 28px;
  }
}

@media (max-width: 992px) {
  :root {
    --header-h: 72px;
  }

  .site-header {
    top: 12px;
    padding: 0 16px;
  }

  .header-shell {
    padding: 0 12px 0 16px;
    border-radius: 18px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 130px 24px 78px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-visual::before {
    width: min(60vw, 460px);
  }

  .hero-visual::after {
    width: min(50vw, 380px);
  }

  .logo-orbit {
    width: min(60vw, 470px);
  }

  .hero-logo-frame {
    width: min(42vw, 320px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rules-layout {
    grid-template-columns: 1fr;
  }

  .rules-sidebar {
    display: none;
  }

  .mobile-category-wrap {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rules-intro,
  .footer-inner {
    width: min(100% - 32px, var(--content));
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 92px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-meta {
    gap: 20px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-stamp {
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
  }

  .rules-intro {
    padding-top: 88px;
  }

  .rules-toolbar {
    grid-template-columns: 1fr;
  }

  .result-count {
    justify-self: start;
    min-width: auto;
  }

  .category-header {
    grid-template-columns: 52px minmax(0,1fr) auto;
    gap: 12px;
    padding: 16px;
  }

  .category-number {
    width: 48px;
    height: 48px;
  }

  .category-title-wrap p {
    display: none;
  }

  .category-meta span:first-child {
    display: none;
  }

  .rule-list {
    padding: 0 12px 12px;
  }

  .rule-card {
    padding: 17px;
  }

  .examples {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 34px 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer p {
    grid-column: auto;
    padding-bottom: 0;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 10px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy span {
    font-size: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero {
    padding: 118px 16px 54px;
  }

  .hero h1 {
    font-size: clamp(48px, 17vw, 76px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .hero-meta strong {
    font-size: 11px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-visual::before {
    width: 82vw;
  }

  .hero-visual::after {
    width: 70vw;
  }

  .logo-orbit {
    width: 82vw;
  }

  .hero-logo-frame {
    width: 58vw;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .search-box {
    min-height: 56px;
  }

  .search-box kbd {
    display: none;
  }

  .category-header {
    grid-template-columns: 44px minmax(0,1fr) 32px;
    padding: 14px;
  }

  .category-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .category-title-wrap h3 {
    font-size: 18px;
  }

  .category-meta {
    gap: 0;
  }

  .category-chevron {
    width: 32px;
    height: 32px;
  }

  .rule-card-head {
    gap: 12px;
  }

  .copy-link {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  #particleCanvas {
    opacity: .42;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
