
:root {
  --bg: #07060a;
  --bg-soft: #0b0910;
  --surface: #100d15;
  --surface-strong: #15111b;
  --text: #f7f4fa;
  --muted: #a69eae;
  --muted-strong: #c9c2ce;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --accent: #a943f2;
  --accent-bright: #c76cff;
  --accent-soft: #e1b7ff;
  --green: #57e69b;
  --red: #ff697c;
  --orange: #ffbb67;
  --shell: 1240px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-geist-sans, Inter), Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(169, 67, 242, 0.45);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.88), rgba(7, 6, 10, 0));
  transition: background 180ms ease, border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 6, 10, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-wordmark {
  font-size: 0.94rem;
  font-weight: 920;
  letter-spacing: 0.075em;
}

.brand-wordmark span {
  color: var(--accent-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav > a {
  position: relative;
  color: #ccc5d1;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}

.main-nav > a:not(.nav-play)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--accent-bright);
  transition: transform 160ms ease;
}

.main-nav > a:hover,
.main-nav > a.is-active {
  color: #fff;
}

.main-nav > a:hover::after,
.main-nav > a.is-active::after {
  transform: scaleX(1);
}

.main-nav .nav-play {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(199, 108, 255, 0.45);
  border-radius: 7px;
  background: rgba(169, 67, 242, 0.13);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

/* Common typography and actions */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent-soft);
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #77717b;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04);
}

.live-dot.is-online {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(87, 230, 155, 0.1),
    0 0 24px rgba(87, 230, 155, 0.4);
}

.live-dot.is-offline {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 105, 124, 0.1);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease,
    background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(225, 183, 255, 0.15);
  background: linear-gradient(135deg, #bb55ff, #7723b7);
  color: #fff;
  box-shadow: 0 18px 46px rgba(125, 37, 181, 0.28);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(9, 8, 12, 0.55);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: rgba(225, 183, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

/* Home hero */
.home-hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.015);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 10, 0.96) 0%, rgba(7, 6, 10, 0.75) 39%, rgba(7, 6, 10, 0.12) 72%),
    linear-gradient(0deg, rgba(7, 6, 10, 0.98) 0%, rgba(7, 6, 10, 0.12) 44%, rgba(7, 6, 10, 0.42) 100%);
}

.hero-shell {
  min-height: 860px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 160px;
  padding-bottom: 34px;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: clamp(72px, 10vh, 112px);
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4.3rem, 8.3vw, 7.7rem);
  font-weight: 940;
  letter-spacing: -0.075em;
  line-height: 0.83;
  text-transform: uppercase;
}

.hero-copy h1 span {
  color: var(--accent-bright);
  text-shadow: 0 0 46px rgba(182, 82, 255, 0.25);
}

.hero-lead {
  max-width: 570px;
  margin: 30px 0 0;
  color: #d2cbd7;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.65;
}

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

.server-status {
  display: grid;
  grid-template-columns: 0.9fr 0.75fr 0.9fr 1.55fr;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 7, 11, 0.5);
  backdrop-filter: blur(16px);
}

.status-cell,
.status-copy {
  min-width: 0;
  min-height: 84px;
  padding: 19px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #fff;
  text-align: left;
}

.status-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-state {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.status-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-right: 0;
  cursor: pointer;
}

.status-copy > span:first-child {
  min-width: 0;
}

.status-label {
  display: block;
  margin-bottom: 4px;
  color: #8f8796;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-cell strong,
.status-copy strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-cell strong small {
  color: #918a98;
  font-size: 0.75rem;
  font-weight: 650;
}

.copy-action {
  flex: 0 0 auto;
  color: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Home sections */
.intro-section {
  padding: clamp(100px, 12vw, 160px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 82px;
}

.section-heading h2,
.modes-copy h2,
.cta-inner h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 5.2rem);
  font-weight: 880;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.section-heading > p,
.modes-copy > p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.feature {
  min-width: 0;
  padding: 34px 42px 40px 0;
}

.feature + .feature {
  padding-left: 42px;
  border-left: 1px solid var(--line);
}

.feature-number {
  display: block;
  margin-bottom: 58px;
  color: var(--accent-soft);
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.feature p {
  max-width: 330px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.7;
}

.modes-section {
  padding: clamp(88px, 10vw, 130px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.modes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
}

.brand-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0c0812;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.brand-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 113, 255, 0.08);
  pointer-events: none;
}

.brand-frame img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.modes-copy h2 {
  font-size: clamp(2.65rem, 4.4vw, 4.6rem);
}

.modes-copy > p {
  margin-top: 27px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(225, 183, 255, 0.42);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  color: var(--accent-bright);
  transition: transform 150ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.final-cta {
  padding: clamp(90px, 10vw, 130px) 0;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.cta-inner h2 {
  font-size: clamp(2.9rem, 5.8vw, 5.7rem);
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050407;
}

.footer-inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand-small img {
  width: 34px;
  height: 34px;
}

.brand-small .brand-wordmark {
  font-size: 0.8rem;
}

.footer-inner p,
.footer-inner > a:not(.brand),
.footer-links a {
  margin: 0;
  color: #77717c;
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover,
.footer-inner > a:not(.brand):hover {
  color: #fff;
}

/* Rules hero */
.rules-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  overflow: hidden;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.rules-hero-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.rules-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 43%;
}

.rules-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 10, 0.95) 0%, rgba(7, 6, 10, 0.67) 43%, rgba(7, 6, 10, 0.22) 75%),
    linear-gradient(0deg, rgba(7, 6, 10, 0.96) 0%, transparent 56%, rgba(7, 6, 10, 0.38) 100%);
}

.rules-hero-inner {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 70px;
}

.rules-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8.6vw, 8rem);
  font-weight: 940;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-transform: uppercase;
}

.rules-hero-inner > p:last-child {
  max-width: 600px;
  margin: 27px 0 0;
  color: #d0c8d5;
  font-size: 1rem;
}

/* Rulebook */
.rules-area {
  padding: 86px 0 130px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.rules-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.toc-toggle {
  display: none;
}

.toc-nav {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.toc-nav a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #918995;
  font-size: 0.84rem;
  font-weight: 690;
  text-decoration: none;
  transition: color 140ms ease, padding-left 140ms ease;
}

.toc-nav a span {
  color: #5e5862;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.toc-nav a:hover,
.toc-nav a.is-active {
  padding-left: 7px;
  color: #fff;
}

.toc-nav a.is-active span {
  color: var(--accent-bright);
}

.sidebar-discord {
  display: grid;
  gap: 3px;
  margin-top: 28px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #817984;
  font-size: 0.73rem;
  text-decoration: none;
}

.sidebar-discord strong {
  color: var(--accent-soft);
  font-size: 0.81rem;
}

.rules-content {
  min-width: 0;
}

.rules-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.rules-search {
  display: flex;
  width: min(100%, 570px);
  min-height: 56px;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 150ms ease, background 150ms ease;
}

.rules-search:focus-within {
  border-color: rgba(199, 108, 255, 0.6);
  background: rgba(169, 67, 242, 0.055);
}

.search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1.5px solid #8f8794;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  transform: rotate(45deg);
  transform-origin: left center;
  background: #8f8794;
}

.rules-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 0.89rem;
}

.rules-search input::placeholder {
  color: #756e79;
}

.rules-search button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--accent-soft);
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.search-result {
  flex: 0 0 auto;
  margin: 0;
  color: #746d78;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.63rem;
  letter-spacing: 0.05em;
}

.rules-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  padding: 19px 21px;
  border-left: 2px solid var(--accent-bright);
  background: rgba(169, 67, 242, 0.065);
}

.rules-notice > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(225, 183, 255, 0.28);
  border-radius: 50%;
  color: var(--accent-soft);
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.rules-notice p {
  margin: 0;
  color: #c5beca;
  font-size: 0.84rem;
  line-height: 1.65;
}

.rule-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.rule-header {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  margin-bottom: 40px;
}

.rule-index {
  color: #37323a;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.rule-danger .rule-index {
  color: rgba(255, 105, 124, 0.35);
}

.rule-header p {
  margin: 0 0 6px;
  color: #807883;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.62rem;
  font-weight: 740;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rule-header h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 870;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.rule-body {
  display: grid;
  gap: 22px;
  padding-left: 118px;
}

.rule-list,
.split-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list {
  border-top: 1px solid var(--line);
}

.rule-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  padding: 17px 0 17px 20px;
  border-bottom: 1px solid var(--line);
  color: #d1cad5;
  font-size: 0.91rem;
  line-height: 1.62;
}

.rule-list li::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 1px;
  width: 6px;
  height: 2px;
  background: var(--accent-bright);
}

.sanction {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 187, 103, 0.27);
  border-radius: 4px;
  background: rgba(255, 187, 103, 0.06);
  color: var(--orange);
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.59rem;
  font-weight: 780;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sanction-perm {
  border-color: rgba(255, 105, 124, 0.32);
  background: rgba(255, 105, 124, 0.07);
  color: #ff8998;
}

.rule-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.split-panel {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.018);
}

.split-panel.allowed {
  border-top-color: rgba(87, 230, 155, 0.56);
}

.split-panel.forbidden {
  border-top-color: rgba(255, 105, 124, 0.58);
}

.split-panel.neutral {
  border-top-color: rgba(199, 108, 255, 0.52);
}

.split-panel h3 {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.65rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split-panel.allowed h3 {
  color: #76eaae;
}

.split-panel.forbidden h3 {
  color: #ff8b9a;
}

.split-panel p,
.split-panel li {
  color: #bdb5c2;
  font-size: 0.85rem;
  line-height: 1.68;
}

.split-panel p {
  margin: 0;
}

.split-panel ul {
  display: grid;
  gap: 11px;
}

.split-panel li {
  position: relative;
  padding-left: 14px;
}

.split-panel li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6e6672;
}

.rule-callout {
  margin: 0;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(169, 67, 242, 0.055);
  color: #c9c2ce;
  font-size: 0.83rem;
}

.zone-list {
  border-top: 1px solid var(--line-strong);
}

.zone-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.zone-row strong {
  position: relative;
  padding-left: 16px;
  color: #fff;
  font-size: 0.86rem;
}

.zone-row strong::before {
  content: "";
  position: absolute;
  top: 0.28em;
  bottom: 0.28em;
  left: 0;
  width: 3px;
  background: var(--accent);
}

.zone-red strong::before {
  background: #ff5d72;
}

.zone-blue strong::before {
  background: #599cff;
}

.zone-pink strong::before {
  background: #ff63c2;
}

.zone-row span {
  color: #b5adb9;
  font-size: 0.86rem;
}

.no-results {
  display: grid;
  place-items: start;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.no-results > span {
  color: var(--accent-soft);
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.no-results h2 {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
}

.no-results p {
  margin: 14px 0 0;
  color: var(--muted);
}

.no-results button {
  margin-top: 25px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid rgba(225, 183, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 750;
  cursor: pointer;
}

.rules-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 70px;
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.rules-help img {
  width: 64px;
  height: 64px;
}

.rules-help .eyebrow {
  margin-bottom: 7px;
}

.rules-help h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.rules-help div > p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.back-top {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  transform: translateY(16px);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(12, 10, 15, 0.88);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.back-top.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.rules-footer {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1080px) {
  .server-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-copy {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .status-discord {
    border-right: 0;
  }

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

  .brand-frame {
    max-width: 850px;
  }

  .modes-copy {
    max-width: 700px;
  }

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

  .rule-body {
    padding-left: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .shell {
    width: min(calc(100% - 40px), var(--shell));
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(7, 6, 10, 0.98);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav > a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav > a::after {
    display: none;
  }

  .main-nav .nav-play {
    min-height: 48px;
    justify-content: center;
    margin-top: 14px;
    border-bottom: 1px solid rgba(199, 108, 255, 0.45);
  }

  .home-hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding-top: 170px;
    padding-bottom: 28px;
  }

  .hero-copy {
    margin-bottom: 74px;
  }

  .hero-backdrop img {
    object-position: 62% center;
  }

  .hero-backdrop::after {
    background:
      linear-gradient(90deg, rgba(7, 6, 10, 0.94), rgba(7, 6, 10, 0.42)),
      linear-gradient(0deg, rgba(7, 6, 10, 0.99), rgba(7, 6, 10, 0.12) 55%, rgba(7, 6, 10, 0.52));
  }

  .hero-copy h1 {
    font-size: clamp(3.9rem, 14vw, 6.4rem);
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 32px;
    margin-bottom: 56px;
  }

  .section-heading > p {
    max-width: 600px;
  }

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

  .feature,
  .feature + .feature {
    padding: 30px 0;
    border-left: 0;
  }

  .feature + .feature {
    border-top: 1px solid var(--line);
  }

  .feature-number {
    margin-bottom: 32px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .rules-hero {
    min-height: 480px;
  }

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

  .rules-sidebar {
    z-index: 30;
    top: var(--header-height);
    margin-inline: -20px;
    padding: 0 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 6, 10, 0.96);
    backdrop-filter: blur(16px);
  }

  .toc-toggle {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
  }

  .toc-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 15px;
    border-top: 1px solid var(--line);
  }

  .rules-sidebar.is-open .toc-nav {
    display: grid;
  }

  .toc-nav a {
    padding-right: 10px;
  }

  .sidebar-discord {
    display: none;
  }

  .rules-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .rules-search {
    width: 100%;
  }

  .rule-section {
    scroll-margin-top: calc(var(--header-height) + 76px);
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .brand-wordmark {
    font-size: 0.82rem;
  }

  .hero-shell {
    padding-top: 148px;
  }

  .hero-copy h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
    line-height: 0.87;
  }

  .hero-lead {
    margin-top: 22px;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .server-status {
    grid-template-columns: 1fr 1fr;
  }

  .status-cell,
  .status-copy {
    min-height: 76px;
    padding: 16px;
  }

  .status-state {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .status-discord {
    border-right: 0;
  }

  .status-copy {
    grid-column: 1 / -1;
  }

  .status-copy strong {
    font-size: 0.88rem;
  }

  .intro-section {
    padding: 92px 0;
  }

  .section-heading h2,
  .modes-copy h2,
  .cta-inner h2 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .brand-frame img {
    min-height: 190px;
  }

  .footer-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .rules-hero {
    min-height: 430px;
  }

  .rules-hero-inner {
    padding-bottom: 48px;
  }

  .rules-hero h1 {
    font-size: clamp(3.8rem, 19vw, 6rem);
  }

  .rules-area {
    padding: 54px 0 90px;
  }

  .rules-sidebar {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .toc-nav {
    grid-template-columns: 1fr;
    max-height: 54vh;
    overflow-y: auto;
  }

  .rules-notice {
    padding: 17px;
  }

  .rule-section {
    padding: 56px 0;
  }

  .rule-header {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }

  .rule-index {
    font-size: 1.7rem;
  }

  .rule-header h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .rule-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sanction {
    width: fit-content;
  }

  .rule-split {
    grid-template-columns: 1fr;
  }

  .split-panel {
    padding: 21px;
  }

  .zone-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .rules-help .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rules-help img {
    width: 52px;
    height: 52px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile — isolated from the desktop layout */
@media (max-width: 700px) {
  :root { --header-height: 64px; }

  html, body { max-width: 100%; overflow-x: hidden; }
  body.nav-open { overflow: hidden; }
  .shell { width: calc(100% - 32px); }

  .site-header { height: var(--header-height); }
  .header-inner { min-height: var(--header-height); }
  .brand img { width: 38px; height: 38px; }
  .brand-wordmark { font-size: .82rem; }
  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 6px;
    border: 1px solid rgba(219, 164, 255, .16);
    border-radius: 12px;
    background: rgba(14, 10, 18, .72);
  }
  .nav-toggle span { width: 19px; }
  .main-nav {
    top: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 340px);
    align-content: start;
    padding: calc(var(--header-height) + 28px) 24px 28px;
    border-left: 1px solid rgba(214, 146, 255, .15);
    border-bottom: 0;
    background: linear-gradient(160deg, rgba(25, 13, 32, .99), rgba(7, 6, 10, .995) 58%);
    box-shadow: -30px 0 80px rgba(0, 0, 0, .55);
    transform: translateX(110%);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > a {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: .9rem;
  }
  .main-nav .nav-play { margin-top: 18px; border-radius: 12px; }
  .nav-toggle { position: relative; z-index: 81; }

  .home-hero { min-height: auto; }
  .hero-shell {
    min-height: 760px;
    padding-top: 126px;
    padding-bottom: 20px;
  }
  .hero-copy { max-width: 100%; margin-bottom: 54px; }
  .eyebrow { font-size: .62rem; letter-spacing: .17em; }
  .hero-copy h1 {
    max-width: 100%;
    margin-top: 18px;
    font-size: clamp(3.35rem, 16.5vw, 5rem);
    line-height: .9;
    letter-spacing: -.072em;
  }
  .hero-backdrop img {
    width: 100%;
    height: 100%;
    object-position: 56% center;
    transform: scale(1.04);
  }
  .hero-backdrop::after {
    background:
      linear-gradient(180deg, rgba(7, 6, 10, .3), rgba(7, 6, 10, .18) 32%, rgba(7, 6, 10, .98) 78%),
      linear-gradient(90deg, rgba(7, 6, 10, .7), rgba(7, 6, 10, .08));
  }
  .hero-fx { opacity: .58; }
  .fx-grid { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { min-height: 52px; border-radius: 11px; }

  .server-status {
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(9, 7, 12, .86);
    backdrop-filter: blur(18px);
  }
  .status-cell, .status-copy { min-width: 0; min-height: 70px; padding: 14px; }
  .status-state { grid-column: auto; border-right: 1px solid var(--line); border-bottom: 0; }
  .status-discord { border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .status-copy { grid-column: auto; border-top: 1px solid var(--line); }
  .status-label { font-size: .52rem; letter-spacing: .08em; }
  .status-cell strong { font-size: .82rem; }
  .status-copy strong { font-size: .67rem; overflow-wrap: anywhere; }
  .copy-action { font-size: .58rem; }

  .brand-ticker-track { gap: 24px; padding-block: 13px; }
  .brand-ticker-track span { font-size: .62rem; }

  .showcase-layout { gap: 10px; padding-top: 54px; padding-bottom: 64px; }
  .showcase-stage { min-height: 285px; }
  .stage-ring-one { width: min(78vw, 300px); height: min(78vw, 300px); }
  .stage-ring-two { width: min(61vw, 235px); height: min(61vw, 235px); }
  .stage-sweep { width: min(70vw, 270px); height: min(70vw, 270px); }
  .stage-core { width: 150px; height: 150px; }
  .stage-core img { width: 98px; height: 98px; }
  .showcase-copy { text-align: center; }
  .showcase-copy .eyebrow { justify-content: center; }
  .showcase-copy h2 { font-size: clamp(3rem, 17vw, 4.5rem); }
  .showcase-actions { width: 100%; gap: 18px; margin-top: 28px; }
  .showcase-actions .button { width: 100%; }
  .showcase-actions .text-link { margin-inline: auto; }

  .footer-inner {
    min-height: auto;
    align-items: center;
    gap: 20px;
    padding-block: 30px;
    text-align: center;
  }
  .footer-links { justify-content: center; }

  .rules-hero { min-height: 420px; }
  .rules-hero-inner { min-height: 420px; padding-top: 112px; padding-bottom: 46px; }
  .rules-hero h1 {
    max-width: calc(100vw - 32px);
    font-size: clamp(3.15rem, 15vw, 4.65rem);
    line-height: .91;
    overflow-wrap: normal;
  }
  .rules-hero-bg img { object-position: 57% center; transform: scale(1.04); }
  .rules-hero-code {
    right: -58px;
    bottom: 28px;
    width: 155px;
    height: 155px;
    opacity: .3;
  }

  .rules-area { padding: 28px 0 74px; }
  .rules-layout { gap: 18px; }
  .rules-sidebar {
    position: sticky;
    top: var(--header-height);
    z-index: 35;
    margin-inline: -16px;
    padding-inline: 16px;
    border-radius: 0;
    background: rgba(7, 6, 10, .96);
  }
  .toc-toggle { min-height: 54px; }
  .toc-nav {
    grid-template-columns: 1fr;
    max-height: 58vh;
    gap: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 0 16px;
  }
  .toc-nav a { min-height: 46px; padding-inline: 12px; }
  .rules-tools {
    position: static;
    margin-bottom: 14px;
    padding: 7px;
    border-radius: 13px;
  }
  .rules-search { min-height: 48px; }
  .rules-search input { font-size: 16px; }
  .rules-notice { gap: 11px; padding: 15px; border-radius: 13px; }
  .rules-notice p { font-size: .78rem; line-height: 1.55; }

  .rule-section {
    margin-top: 14px;
    padding: 24px 17px;
    border-radius: 17px;
    transform: none !important;
  }
  .rule-header { display: block; margin-bottom: 22px; }
  .rule-header p { margin-bottom: 7px; font-size: .55rem; }
  .rule-header h2 {
    font-size: clamp(1.9rem, 10vw, 2.65rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }
  .rule-body { gap: 16px; padding-left: 0; }
  .rule-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 15px 12px 15px 30px;
    font-size: .8rem;
    line-height: 1.55;
  }
  .rule-list li::before { left: 13px; }
  .sanction { width: fit-content; max-width: 100%; font-size: .52rem; }
  .rule-split { grid-template-columns: 1fr; gap: 10px; }
  .split-panel { min-width: 0; padding: 18px 15px; border-radius: 13px; }
  .split-panel p, .split-panel li { font-size: .78rem; line-height: 1.55; }
  .rule-callout { padding: 15px; font-size: .76rem; line-height: 1.55; }
  .zone-list { gap: 9px; }
  .zone-row { grid-template-columns: 1fr; gap: 7px; padding: 15px; }
  .zone-row span { font-size: .76rem; line-height: 1.5; }
  .rules-help {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
    padding: 19px 16px;
    border-radius: 16px;
  }
  .rules-help img { width: 44px; height: 44px; }
  .rules-help h2 { font-size: 1.35rem; }
  .rules-help .button { grid-column: 1 / -1; width: 100%; min-height: 50px; }
  .back-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }

  .rules-footer .footer-inner { align-items: center; }

  .pointer-glow { display: none; }
  .button-primary::after, .nav-play::after { display: none; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 24px); }
  .hero-shell { padding-top: 112px; }
  .hero-copy h1 { font-size: 3.2rem; }
  .status-cell, .status-copy { padding: 12px 10px; }
  .status-copy strong { font-size: .61rem; }
  .showcase-copy h2 { font-size: 3rem; }
  .rules-sidebar { margin-inline: -12px; padding-inline: 12px; }
  .rule-section { padding-inline: 14px; }
  .rules-hero h1 { font-size: 3rem; }
}

@media (hover: none) and (pointer: coarse) {
  .rule-section:hover { transform: none; }
  .hero-backdrop img, .rules-hero-bg img,
  .hero-emblem, .rules-hero-code, .showcase-stage { transition: none; }
}

/* V4 — identity motion and simplified content */
.brand-ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-block: 1px solid rgba(211, 139, 255, 0.15);
  background: linear-gradient(90deg, #09070c, #170a20 48%, #09070c);
  box-shadow: 0 0 34px rgba(156, 48, 218, 0.1);
}

.brand-ticker::before,
.brand-ticker::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 14vw;
  pointer-events: none;
}

.brand-ticker::before { left: 0; background: linear-gradient(90deg, #07060a, transparent); }
.brand-ticker::after { right: 0; background: linear-gradient(-90deg, #07060a, transparent); }

.brand-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(22px, 3vw, 54px);
  padding: 17px 0;
  animation: tickerFlow 18s linear infinite;
}

.brand-ticker-track span {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.7rem, 1vw, 0.88rem);
  font-weight: 850;
  letter-spacing: 0.28em;
}

.brand-ticker-track i {
  color: #bf63f2;
  font-size: 0.55rem;
  filter: drop-shadow(0 0 8px #b84ce9);
}

.showcase-copy h2 span {
  background: linear-gradient(135deg, #fff 0%, #d391ff 38%, #9b35d8 100%);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(184, 76, 233, 0.23));
}

.rules-hero-code img {
  position: relative;
  z-index: 2;
  width: 56%;
  height: 56%;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(203, 109, 255, 0.5));
  animation: logoBreathe 4s ease-in-out infinite;
}

.search-result:empty { display: none; }

.button-primary::after,
.nav-play::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -70%;
  width: 35%;
  height: 260%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  transition: left 0.65s ease;
}

.button-primary:hover::after,
.nav-play:hover::after { left: 135%; }

.button-primary,
.nav-play { position: relative; overflow: hidden; }

@keyframes tickerFlow { to { transform: translateX(-50%); } }
@keyframes logoBreathe {
  0%, 100% { transform: scale(0.96); filter: drop-shadow(0 0 16px rgba(203, 109, 255, 0.38)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 34px rgba(203, 109, 255, 0.72)); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-ticker-track,
  .rules-hero-code img { animation: none !important; }
}

/* V5 — cinematic depth */
.home-hero::after,
.rules-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 30%, rgba(210, 109, 255, 0.2), transparent 18%),
    radial-gradient(circle at 28% 72%, rgba(105, 35, 188, 0.2), transparent 20%);
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
  filter: blur(28px);
  animation: auroraShift 9s ease-in-out infinite alternate;
}

.hero-backdrop img,
.rules-hero-bg img {
  transform: scale(1.09) translate(var(--parallax-ix, 0), var(--parallax-iy, 0));
  transition: transform 180ms linear;
  animation: cinematicZoom 14s ease-in-out infinite alternate;
}

.hero-copy h1,
.rules-hero h1 {
  text-shadow: 0 4px 44px rgba(0, 0, 0, 0.58);
}

.hero-copy h1 span,
.showcase-copy h2 span {
  background-size: 220% 220%;
  animation: gradientPulse 5s ease infinite;
}

.hero-emblem,
.rules-hero-code,
.showcase-stage {
  transform: translate(var(--parallax-ix, 0), var(--parallax-iy, 0));
  transition: transform 220ms ease-out;
}

.rules-hero-code {
  box-shadow:
    0 0 110px rgba(164, 57, 228, 0.28),
    0 0 0 22px rgba(176, 74, 234, 0.025),
    inset 0 0 70px rgba(189, 81, 249, 0.16);
}

.rule-header {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.rule-body { padding-left: 0; }

.toc-nav a {
  position: relative;
  overflow: hidden;
}

.toc-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(211, 141, 255, 0.09), transparent 78%);
  transform: translateX(-80%);
  transition: transform 500ms ease, opacity 300ms ease;
}

.toc-nav a:hover::after,
.toc-nav a.is-active::after {
  opacity: 1;
  transform: translateX(80%);
}

.rule-section::after {
  top: 0;
  right: auto;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(420px circle at var(--card-x, 50%) var(--card-y, 50%), rgba(198, 93, 255, 0.13), transparent 45%);
  transition: opacity 280ms ease;
  pointer-events: none;
}

.rule-section:hover::after { opacity: 1; }

.rule-section:hover {
  transform: perspective(1000px) translateY(-6px) scale(1.006);
  border-color: rgba(217, 157, 255, 0.3);
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.36),
    0 0 55px rgba(159, 48, 220, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.07);
}

.rules-sidebar,
.rules-tools {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    0 0 45px rgba(153, 47, 211, 0.06),
    inset 0 1px rgba(255, 255, 255, 0.055);
}

@keyframes auroraShift {
  from { margin: -1% 0 0 -2%; transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) rotate(-2deg); }
  to { margin: 2% 0 0 3%; transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) rotate(3deg); }
}

@keyframes cinematicZoom {
  from { scale: 1; filter: saturate(1.06) contrast(1.04); }
  to { scale: 1.035; filter: saturate(1.2) contrast(1.09); }
}

@keyframes gradientPulse {
  0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 18px rgba(184, 76, 233, 0.18)); }
  50% { background-position: 100% 50%; filter: drop-shadow(0 0 34px rgba(207, 112, 255, 0.38)); }
}

@media (max-width: 820px) {
  .home-hero::after,
  .rules-hero::after { filter: blur(36px); opacity: 0.72; }
  .rule-section:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::after,
  .rules-hero::after,
  .hero-backdrop img,
  .rules-hero-bg img,
  .hero-copy h1 span,
  .showcase-copy h2 span { animation: none !important; }
}

/* V3 — cinematic visual system */
.pointer-glow {
  position: fixed;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--pointer-x, 50vw) var(--pointer-y, 40vh),
    rgba(176, 69, 255, 0.075),
    transparent 72%
  );
  mix-blend-mode: screen;
}

.reveal-ready [data-reveal] {
  transform: translateY(42px);
  opacity: 0;
  transition: transform 750ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 750ms ease;
}

.reveal-ready [data-reveal].is-revealed {
  transform: translateY(0);
  opacity: 1;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  opacity: 0.09;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-copy,
.server-status {
  position: relative;
  z-index: 4;
}

.hero-fx {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fx-beam {
  position: absolute;
  width: 48%;
  height: 180%;
  top: -42%;
  background: linear-gradient(90deg, transparent, rgba(191, 89, 255, 0.18), transparent);
  filter: blur(16px);
  opacity: 0.55;
  animation: beamFloat 8s ease-in-out infinite alternate;
}

.fx-beam-one {
  right: 2%;
  transform: rotate(18deg);
}

.fx-beam-two {
  right: 28%;
  transform: rotate(-12deg);
  opacity: 0.24;
  animation-delay: -4s;
}

.fx-grid {
  position: absolute;
  right: -7%;
  bottom: -20%;
  width: 78%;
  height: 66%;
  transform: perspective(520px) rotateX(64deg) rotateZ(-8deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(rgba(194, 101, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 101, 255, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to top, #000, transparent 85%);
  animation: gridDrift 11s linear infinite;
}

.hero-emblem {
  position: absolute;
  z-index: 3;
  top: 19%;
  right: 1%;
  width: 360px;
  height: 360px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 48px rgba(169, 67, 242, 0.26));
}

.emblem-orbit,
.emblem-scan,
.emblem-core {
  position: absolute;
  border-radius: 50%;
}

.emblem-orbit {
  border: 1px solid rgba(230, 198, 255, 0.24);
}

.emblem-orbit::before,
.stage-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d48cff;
  box-shadow: 0 0 18px #b64eff;
}

.emblem-orbit-one {
  inset: 21px;
  border-style: dashed;
  animation: spin 18s linear infinite;
}

.emblem-orbit-two {
  inset: 58px;
  animation: spinReverse 12s linear infinite;
}

.emblem-scan {
  inset: 38px;
  overflow: hidden;
  background: conic-gradient(from 0deg, transparent 0 74%, rgba(199, 108, 255, 0.3) 86%, transparent 94%);
  animation: spin 5.5s linear infinite;
  mask-image: radial-gradient(circle, transparent 0 62%, #000 64%);
}

.emblem-core {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 191, 255, 0.34);
  background: radial-gradient(circle, rgba(119, 36, 176, 0.38), rgba(7, 6, 10, 0.78) 68%);
  box-shadow: inset 0 0 55px rgba(156, 52, 222, 0.2), 0 0 70px rgba(154, 54, 226, 0.2);
  backdrop-filter: blur(10px);
}

.emblem-core img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  animation: logoPulse 3.5s ease-in-out infinite;
}

.emblem-label {
  position: absolute;
  right: 22px;
  bottom: 45px;
  padding: 8px 12px;
  border: 1px solid rgba(213, 147, 255, 0.3);
  border-radius: 4px;
  background: rgba(7, 6, 10, 0.72);
  color: #dfb1ff;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  backdrop-filter: blur(10px);
}

.hero-copy h1 span {
  background: linear-gradient(90deg, #bf59ff, #e0a4ff, #9b37df, #bf59ff);
  background-size: 220% auto;
  background-clip: text;
  color: transparent;
  animation: textShimmer 5s linear infinite;
}

.server-status {
  border: 1px solid rgba(218, 164, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(12, 9, 16, 0.74), rgba(31, 13, 43, 0.48));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.05);
}

.feature {
  position: relative;
  overflow: hidden;
  transition: background 250ms ease, transform 250ms ease;
}

.feature::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -45%;
  width: 32%;
  height: 320%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(207, 133, 255, 0.1), transparent);
  transition: left 650ms ease;
}

.feature:hover {
  transform: translateY(-7px);
  background: linear-gradient(180deg, rgba(170, 65, 235, 0.08), transparent);
}

.feature:hover::after {
  left: 120%;
}

.showcase-section {
  position: relative;
  min-height: 720px;
  display: flex;
  overflow: hidden;
  align-items: center;
  border-top: 1px solid rgba(222, 173, 255, 0.14);
  border-bottom: 1px solid rgba(222, 173, 255, 0.14);
  background: #08060b;
  isolation: isolate;
}

.showcase-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.showcase-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.2) contrast(1.15);
  transform: scale(1.14);
}

.showcase-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 48%, rgba(151, 43, 224, 0.2), transparent 38%),
    linear-gradient(90deg, rgba(8, 6, 11, 0.45), rgba(8, 6, 11, 0.9) 67%),
    linear-gradient(0deg, #08060b, transparent 30%, transparent 70%, #08060b);
}

.showcase-lines {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 32% 50%, #000, transparent 62%);
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(64px, 9vw, 130px);
  padding-top: 84px;
  padding-bottom: 84px;
}

.showcase-stage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.stage-ring,
.stage-sweep,
.stage-core {
  position: absolute;
  border-radius: 50%;
}

.stage-ring {
  border: 1px solid rgba(215, 151, 255, 0.25);
}

.stage-ring-one {
  width: 430px;
  height: 430px;
  border-style: dashed;
  animation: spin 24s linear infinite;
}

.stage-ring-two {
  width: 330px;
  height: 330px;
  animation: spinReverse 15s linear infinite;
}

.stage-sweep {
  width: 390px;
  height: 390px;
  background: conic-gradient(transparent 0 76%, rgba(186, 80, 255, 0.28) 88%, transparent 96%);
  mask-image: radial-gradient(circle, transparent 0 63%, #000 65%);
  animation: spin 6s linear infinite;
}

.stage-core {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 193, 255, 0.32);
  background: radial-gradient(circle, rgba(131, 37, 191, 0.32), rgba(9, 7, 12, 0.88) 68%);
  box-shadow: 0 0 100px rgba(163, 51, 231, 0.3), inset 0 0 70px rgba(155, 48, 219, 0.17);
  backdrop-filter: blur(12px);
}

.stage-core img {
  width: 154px;
  height: 154px;
  object-fit: contain;
  animation: logoPulse 3.4s ease-in-out infinite;
}

.stage-tag {
  position: absolute;
  padding: 9px 13px;
  border: 1px solid rgba(216, 153, 255, 0.24);
  border-radius: 4px;
  background: rgba(9, 7, 12, 0.72);
  color: #c99bea;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  backdrop-filter: blur(10px);
}

.stage-tag-top {
  top: 17%;
  left: 8%;
}

.stage-tag-bottom {
  right: 4%;
  bottom: 17%;
}

.stage-tag-bottom::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.showcase-copy {
  position: relative;
  z-index: 2;
}

.showcase-copy h2 {
  margin: 0;
  font-size: clamp(3.6rem, 6.2vw, 6.7rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-transform: uppercase;
}

.showcase-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 30px 0 0;
  color: #c5bdca;
  font-size: 1rem;
  line-height: 1.75;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.showcase-actions .text-link {
  margin-top: 0;
}

/* V3 — rulebook redesign */
.rules-hero {
  min-height: 560px;
  align-items: center;
  box-shadow: inset 0 -1px rgba(213, 142, 255, 0.16);
}

.rules-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  opacity: 0.09;
}

.rules-hero-bg img {
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.08);
}

.rules-hero-bg::after {
  background:
    linear-gradient(90deg, rgba(7, 6, 10, 0.94) 0%, rgba(7, 6, 10, 0.57) 48%, rgba(7, 6, 10, 0.3) 100%),
    linear-gradient(0deg, rgba(7, 6, 10, 0.96), transparent 54%, rgba(7, 6, 10, 0.45));
}

.rules-hero-fx {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rules-beam {
  position: absolute;
  top: -70%;
  width: 30%;
  height: 230%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(198, 99, 255, 0.19), transparent);
  filter: blur(18px);
  animation: beamFloat 8s ease-in-out infinite alternate;
}

.rules-beam-one {
  right: 8%;
}

.rules-beam-two {
  right: 38%;
  opacity: 0.35;
  animation-delay: -3s;
}

.rules-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.018) 6px);
}

.rules-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 70px;
  padding-top: calc(var(--header-height) + 58px);
  padding-bottom: 58px;
}

.rules-hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 24px 0 0;
  color: #d0c8d5;
}

.rules-hero h1 {
  font-size: clamp(4.6rem, 8vw, 7.8rem);
}

.rules-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.rules-hero-meta > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(220, 166, 255, 0.19);
  border-radius: 5px;
  background: rgba(8, 6, 11, 0.52);
  color: #a99faf;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.rules-hero-meta strong {
  color: #e4c0ff;
}

.rules-hero-meta i {
  width: 6px;
  height: 6px;
}

.rules-hero-code {
  position: relative;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(224, 177, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 33, 184, 0.25), rgba(7, 6, 10, 0.5) 66%);
  box-shadow: 0 0 80px rgba(164, 57, 228, 0.2), inset 0 0 60px rgba(171, 60, 237, 0.12);
  backdrop-filter: blur(12px);
}

.rules-hero-code::before,
.rules-hero-code::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(218, 155, 255, 0.2);
}

.rules-hero-code::before {
  inset: 19px;
  border-style: dashed;
  animation: spin 20s linear infinite;
}

.rules-hero-code::after {
  inset: 54px;
  animation: spinReverse 13s linear infinite;
}

.hero-code-ring {
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: conic-gradient(transparent 0 76%, rgba(198, 97, 255, 0.28) 88%, transparent 96%);
  mask-image: radial-gradient(circle, transparent 0 68%, #000 70%);
  animation: spin 5s linear infinite;
}

.rules-hero-code strong {
  position: relative;
  z-index: 2;
  font-size: 6.3rem;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #bd77e7);
  background-clip: text;
  color: transparent;
}

.rules-hero-code small {
  position: absolute;
  bottom: 76px;
  color: #c38fe2;
  font-family: var(--font-geist-mono, "Courier New"), monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
}

.rules-area {
  position: relative;
  padding: 78px 0 140px;
  background:
    radial-gradient(circle at 86% 12%, rgba(141, 39, 199, 0.11), transparent 24%),
    radial-gradient(circle at 8% 48%, rgba(95, 24, 144, 0.09), transparent 26%),
    #07060a;
}

.rules-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

.rules-layout {
  position: relative;
  z-index: 2;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 48px;
}

.rules-sidebar {
  padding: 18px;
  border: 1px solid rgba(221, 171, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 15, 28, 0.82), rgba(10, 8, 13, 0.72));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.toc-nav {
  gap: 5px;
  border: 0;
}

.toc-nav a {
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.toc-nav a:hover {
  padding-left: 14px;
  border-color: rgba(214, 151, 255, 0.11);
  background: rgba(255, 255, 255, 0.025);
}

.toc-nav a.is-active {
  padding-left: 14px;
  border-color: rgba(208, 130, 255, 0.22);
  background: linear-gradient(90deg, rgba(169, 67, 242, 0.16), rgba(169, 67, 242, 0.025));
  box-shadow: inset 2px 0 #bd5cff;
}

.sidebar-discord {
  margin-top: 16px;
  padding: 16px 12px;
  border: 1px solid rgba(209, 139, 255, 0.13);
  border-radius: 9px;
  background: rgba(169, 67, 242, 0.055);
}

.rules-tools {
  position: sticky;
  z-index: 25;
  top: calc(var(--header-height) + 12px);
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid rgba(220, 169, 255, 0.12);
  border-radius: 14px;
  background: rgba(9, 7, 12, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.27);
  backdrop-filter: blur(18px);
}

.rules-search {
  border-color: rgba(216, 151, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.028), rgba(169, 67, 242, 0.045));
}

.rules-notice {
  border: 1px solid rgba(207, 126, 255, 0.2);
  border-left: 3px solid #bd5cff;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(169, 67, 242, 0.12), rgba(169, 67, 242, 0.025));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.rule-section {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(166, 52, 228, 0.105), transparent 32%),
    linear-gradient(145deg, rgba(18, 14, 23, 0.92), rgba(10, 8, 13, 0.88));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.rule-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, #b64fff, transparent);
  box-shadow: 0 0 18px rgba(182, 79, 255, 0.45);
}

.rule-section::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(213, 143, 255, 0.08);
  border-radius: 50%;
}

.rule-section:hover {
  transform: translateY(-5px);
  border-color: rgba(210, 144, 255, 0.2);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.31), 0 0 45px rgba(146, 42, 209, 0.055);
}

.rule-danger {
  border-color: rgba(255, 105, 124, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 80, 106, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(21, 14, 20, 0.92), rgba(10, 8, 13, 0.88));
}

.rule-danger::before {
  background: linear-gradient(90deg, #ff697c, transparent);
  box-shadow: 0 0 18px rgba(255, 105, 124, 0.38);
}

.rule-header {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.rule-index {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(214, 151, 255, 0.17);
  border-radius: 12px;
  background: rgba(169, 67, 242, 0.06);
  color: #c178ed;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 25px rgba(169, 67, 242, 0.05);
}

.rule-danger .rule-index {
  border-color: rgba(255, 105, 124, 0.2);
  background: rgba(255, 105, 124, 0.055);
  color: #ff8292;
}

.rule-header h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
}

.rule-body {
  position: relative;
  z-index: 2;
  padding-left: 0;
}

.rule-list {
  border-top: 0;
}

.rule-list li {
  margin-top: 8px;
  padding: 16px 16px 16px 38px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.rule-list li::before {
  top: 25px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(199, 108, 255, 0.55);
}

.rule-list li:hover {
  transform: translateX(4px);
  border-color: rgba(211, 146, 255, 0.13);
  background: rgba(169, 67, 242, 0.035);
}

.rule-split {
  gap: 12px;
}

.split-panel {
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
}

.zone-list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 13px;
}

.zone-row {
  padding: 19px 20px;
  background: rgba(255, 255, 255, 0.016);
}

.rules-help {
  padding: 28px;
  border: 1px solid rgba(214, 145, 255, 0.17);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(169, 67, 242, 0.11), rgba(15, 11, 19, 0.82));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

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

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

@keyframes logoPulse {
  0%, 100% { transform: scale(0.96); filter: brightness(0.95); }
  50% { transform: scale(1.04); filter: brightness(1.18); }
}

@keyframes beamFloat {
  from { translate: -4% 0; opacity: 0.25; }
  to { translate: 8% 0; opacity: 0.62; }
}

@keyframes gridDrift {
  to { background-position: 0 54px, 54px 0; }
}

@keyframes textShimmer {
  to { background-position: 220% center; }
}

@media (max-width: 1080px) {
  .hero-emblem {
    right: -7%;
    width: 300px;
    height: 300px;
    opacity: 0.72;
  }

  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .showcase-stage {
    min-height: 430px;
  }

  .showcase-copy {
    max-width: 720px;
  }

  .rules-hero-inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
  }

  .rules-hero-code {
    width: 240px;
    height: 240px;
  }

  .rules-hero-code strong {
    font-size: 5rem;
  }

  .rules-hero-code small {
    bottom: 56px;
  }

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

  .rule-section {
    padding: 34px;
  }
}

@media (max-width: 820px) {
  .pointer-glow,
  .hero-emblem {
    display: none;
  }

  .fx-grid {
    width: 120%;
  }

  .showcase-section {
    min-height: auto;
  }

  .showcase-stage {
    min-height: 390px;
  }

  .stage-ring-one {
    width: 350px;
    height: 350px;
  }

  .stage-ring-two {
    width: 270px;
    height: 270px;
  }

  .stage-sweep {
    width: 320px;
    height: 320px;
  }

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

  .rules-hero-code {
    position: absolute;
    right: -60px;
    bottom: 10px;
    width: 210px;
    height: 210px;
    opacity: 0.45;
  }

  .rules-hero-code strong {
    font-size: 4.4rem;
  }

  .rules-hero-code small {
    bottom: 48px;
  }

  .rules-sidebar {
    padding: 0 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .rules-tools {
    position: relative;
    top: auto;
  }

  .rule-section {
    scroll-margin-top: calc(var(--header-height) + 76px);
  }
}

@media (max-width: 600px) {
  .showcase-layout {
    padding-top: 62px;
    padding-bottom: 70px;
  }

  .showcase-stage {
    min-height: 310px;
  }

  .stage-ring-one {
    width: 280px;
    height: 280px;
  }

  .stage-ring-two {
    width: 220px;
    height: 220px;
  }

  .stage-sweep {
    width: 255px;
    height: 255px;
  }

  .stage-core {
    width: 170px;
    height: 170px;
  }

  .stage-core img {
    width: 112px;
    height: 112px;
  }

  .stage-tag-top {
    top: 8%;
    left: 0;
  }

  .stage-tag-bottom {
    right: 0;
    bottom: 7%;
  }

  .showcase-copy h2 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .showcase-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .showcase-actions .button {
    width: 100%;
  }

  .showcase-actions .text-link {
    width: fit-content;
  }

  .rules-hero {
    min-height: 500px;
  }

  .rules-hero-inner {
    padding-bottom: 52px;
  }

  .rules-hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.3rem);
  }

  .rules-hero-meta {
    max-width: 310px;
  }

  .rules-hero-meta > span {
    min-height: 30px;
    font-size: 0.53rem;
  }

  .rules-hero-code {
    right: -92px;
    bottom: 22px;
    width: 185px;
    height: 185px;
  }

  .rules-hero-code small {
    display: none;
  }

  .rules-area {
    padding-top: 42px;
  }

  .rules-sidebar {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .rules-tools {
    margin-inline: 0;
    padding: 8px;
    border-radius: 11px;
  }

  .rule-section {
    margin-top: 16px;
    padding: 25px 18px;
    border-radius: 16px;
  }

  .rule-header {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
  }

  .rule-index {
    width: 46px;
    height: 46px;
    border-radius: 9px;
  }

  .rule-list li {
    padding: 15px 13px 15px 34px;
  }

  .rule-list li::before {
    left: 15px;
  }

  .rules-help {
    padding: 22px 18px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-beam,
  .fx-grid,
  .emblem-orbit,
  .emblem-scan,
  .emblem-core img,
  .stage-ring,
  .stage-sweep,
  .stage-core img,
  .rules-beam,
  .rules-hero-code::before,
  .rules-hero-code::after,
  .hero-code-ring,
  .hero-copy h1 span {
    animation: none !important;
  }
}
