:root {
  --bg: #1a1720;
  --bg-soft: #211c28;
  --panel: #2a2028;
  --panel-2: #33252f;
  --line: #332026;
  --line-light: #4b2931;
  --text: #f7edef;
  --muted: #ad989d;
  --accent: #e63946;
  --accent-2: #ff5360;
  --accent-dark: #8e1f2a;
  --accent-deep: #54121a;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #201b27 0%, #1c1a24 44%, #24202b 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(239, 84, 118, .30) 0%, rgba(239, 84, 118, .10) 22%, transparent 44%),
    radial-gradient(ellipse at 82% 12%, rgba(112, 106, 255, .28) 0%, rgba(112, 106, 255, .10) 24%, transparent 48%),
    radial-gradient(ellipse at 74% 62%, rgba(65, 183, 164, .22) 0%, rgba(65, 183, 164, .08) 22%, transparent 44%),
    radial-gradient(ellipse at 24% 82%, rgba(238, 150, 78, .18) 0%, rgba(238, 150, 78, .06) 20%, transparent 42%),
    linear-gradient(125deg, rgba(66,51,83,.28), rgba(34,29,43,.08) 42%, rgba(53,63,90,.22));
  filter: saturate(108%);
  animation: ambient-pan 24s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.025), transparent 28%, rgba(255,255,255,.012) 54%, transparent 78%),
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(180deg, rgba(19,17,25,.02) 0%, rgba(16,15,22,.08) 58%, rgba(15,14,20,.15) 100%);
  background-size: auto, 64px 64px, 64px 64px, auto;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.78));
}
@keyframes ambient-pan {
  0% { transform: translate3d(-1%, 0, 0) scale(1.02) rotate(.01deg); }
  50% { transform: translate3d(1.5%, -1%, 0) scale(1.05) rotate(.01deg); }
  100% { transform: translate3d(-.5%, 1.4%, 0) scale(1.04) rotate(.01deg); }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: white; }

.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section { padding: 116px 0; position: relative; overflow: hidden; }
.section > .container,
.hero > .container,
.rules-content-section > .container,
.rules-hero > .container,
footer > .container { position: relative; z-index: 1; }
.section-alt { background: rgba(255,255,255,.032); border-block: 1px solid rgba(255,255,255,.065); }

#gameplay::before,
#randomtp::before,
#economy::before,
.join-section::before,
.rules-content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 140% 140%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  animation: bg-drift 18s ease-in-out infinite alternate;
}
#gameplay::before {
  background:
    linear-gradient(125deg, rgba(117,83,155,.12), transparent 42%),
    radial-gradient(ellipse at 14% 20%, rgba(255,105,138,.17), transparent 34%),
    radial-gradient(ellipse at 86% 68%, rgba(104,126,255,.14), transparent 38%);
  opacity: 1;
}
#randomtp::before {
  background:
    linear-gradient(120deg, rgba(52,94,126,.15), transparent 44%),
    radial-gradient(ellipse at 82% 18%, rgba(63,190,169,.15), transparent 32%),
    radial-gradient(ellipse at 12% 76%, rgba(115,103,241,.13), transparent 38%);
  opacity: 1;
}
#economy::before {
  background:
    linear-gradient(125deg, rgba(112,74,133,.12), transparent 42%),
    radial-gradient(ellipse at 20% 22%, rgba(239,91,120,.15), transparent 32%),
    radial-gradient(ellipse at 80% 74%, rgba(230,153,83,.11), transparent 34%);
  opacity: 1;
}
.join-section::before {
  background:
    linear-gradient(125deg, rgba(65,102,132,.13), transparent 46%),
    radial-gradient(ellipse at 72% 22%, rgba(72,185,164,.13), transparent 32%),
    radial-gradient(ellipse at 22% 82%, rgba(235,98,128,.13), transparent 34%);
  opacity: 1;
}
.rules-content-section::before {
  background:
    linear-gradient(120deg, rgba(104,84,145,.10), transparent 44%),
    radial-gradient(ellipse at 18% 22%, rgba(239,91,120,.12), transparent 34%),
    radial-gradient(ellipse at 84% 66%, rgba(93,126,214,.11), transparent 36%);
  opacity: 1;
}
@keyframes bg-drift {
  0% { transform: scale(1.02) translate3d(-1%, 0, 0); background-position: 46% 48%; }
  100% { transform: scale(1.05) translate3d(1%, -8px, 0); background-position: 54% 52%; }
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0%;
  height: 2px;
  z-index: 999;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-2));
  box-shadow: 0 0 18px rgba(230,57,70,.55);
}

.embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  bottom: -20px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(255,83,96,.75);
  opacity: 0;
  animation: ember-rise linear infinite;
}
@keyframes ember-rise {
  0% { transform: translate3d(0,0,0) scale(.7); opacity: 0; }
  12% { opacity: .38; }
  80% { opacity: .12; }
  100% { transform: translate3d(var(--drift), -105vh, 0) scale(1.25); opacity: 0; }
}

/* Navigation */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.navbar.scrolled {
  background: rgba(29,24,34,.82);
  border-bottom: 1px solid rgba(255,255,255,.065);
  backdrop-filter: blur(16px);
}
.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav-brand { width: 150px; transition: transform .2s ease, filter .2s ease; }
.nav-brand:hover { transform: translateY(-1px) scale(1.02); filter: drop-shadow(0 7px 12px rgba(230,57,70,.22)); }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu > a {
  position: relative;
  color: #c5b1b5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .18s ease;
}
.nav-menu > a:not(.discord-link)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform .2s ease;
}
.nav-menu > a:hover { color: #fff; }
.nav-menu > a:hover::after { transform: scaleX(1); }
.discord-link {
  padding: 9px 14px;
  border: 1px solid #7b2733;
  border-radius: 7px;
  color: #fff !important;
  background: #651c27;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.discord-link:hover { background: #812332; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: var(--panel);
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: #eadfdf; }

/* Hero */
.hero {
  min-height: 770px;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(242,95,129,.20), transparent 31%),
    radial-gradient(ellipse at 89% 16%, rgba(118,111,255,.20), transparent 34%),
    radial-gradient(ellipse at 76% 76%, rgba(67,184,164,.15), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.025), transparent 38%, rgba(255,255,255,.012));
  opacity: 1;
  transform: scale(1.02);
  animation: hero-pan 20s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -260px;
  top: 30px;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(230,57,70,.10);
  box-shadow: inset 0 0 100px rgba(230,57,70,.05);
  animation: slow-spin 28s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes hero-pan {
  0% { transform: scale(1.02) translate3d(0,0,0); }
  100% { transform: scale(1.06) translate3d(-12px,-8px,0); }
}
@keyframes halo-float {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(16px,-8px,0); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 88px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 56px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(22,24,34,.74), rgba(18,19,28,.68));
  box-shadow: 0 26px 70px rgba(0,0,0,.14);
  overflow: hidden;
}
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 112px 112px;
  opacity: .14;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.2));
}
.hero-grid::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% 35%;
  z-index: 0;
  pointer-events: none;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(73,183,144,.14), rgba(119,94,255,.10) 48%, transparent 74%);
  opacity: .95;
  animation: halo-float 12s ease-in-out infinite;
}
.hero-grid > * { position: relative; z-index: 1; }
.hero-copy { max-width: 650px; }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--accent-2);
  font: 800 11px/1.2 Consolas, "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.hero-logo {
  width: min(490px, 100%);
  margin: 26px 0 26px;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.40));
}
.hero h1,
.section-heading h2,
.split-copy h2,
.economy-copy h2,
.final-cta h2 {
  margin: 0;
  color: #fff7f8;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.hero h1 { max-width: 620px; font-size: clamp(34px, 4.2vw, 58px); text-shadow: 0 8px 22px rgba(0,0,0,.18); }
.hero-text {
  max-width: 610px;
  margin: 24px 0 32px;
  color: #ddd2d4;
  font-size: 16px;
  text-shadow: 0 6px 18px rgba(0,0,0,.14);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-width: 190px;
  min-height: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.button::before {
  content: "";
  position: absolute;
  inset: -100% -25%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.10) 50%, transparent 62%);
  transform: translateX(-70%);
  transition: transform .45s ease;
}
.button:hover::before { transform: translateX(70%); }
.button:hover { transform: translateY(-3px); }
.button span, .button strong { position: relative; z-index: 1; }
.button span { font-size: 10px; color: #d6bfc3; text-transform: uppercase; letter-spacing: .12em; }
.button strong { margin-top: 2px; font-size: 14px; color: #fff; }
.button-primary {
  background: linear-gradient(135deg, #a5202d, #7f1722);
  border-color: #d23c49;
  box-shadow: 0 10px 28px rgba(139,23,34,.15);
}
.button-primary:hover { background: linear-gradient(135deg, #bc2736, #941b29); box-shadow: 0 14px 38px rgba(230,57,70,.20); }
.button-secondary { background: #1a1114; border-color: #493038; }
.button-secondary:hover { border-color: #7f3a46; background: #211417; }
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
  color: #9b878c;
  font-size: 12px;
}
.quick-facts span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(230,57,70,.55);
}
.hero-art {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.hero-art img {
  width: min(520px, 100%);
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.45));
  transition: transform .16s ease-out;
  animation: emblem-float 5.5s ease-in-out infinite;
}
@keyframes emblem-float {
  0%,100% { transform: translateY(0) rotateZ(0deg); }
  50% { transform: translateY(-10px) rotateZ(-.4deg); }
}
.emblem-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,.18), rgba(230,57,70,.04) 48%, transparent 70%);
  filter: blur(12px);
  animation: glow-pulse 3.8s ease-in-out infinite;
}
@keyframes glow-pulse { 50% { transform: scale(1.08); opacity: .72; } }
.emblem-ring {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(230,57,70,.12);
}
.ring-one { animation: ring-pulse 4s ease-out infinite; }
.ring-two { animation: ring-pulse 4s 2s ease-out infinite; }
@keyframes ring-pulse {
  0% { transform: scale(.75); opacity: 0; }
  18% { opacity: .45; }
  100% { transform: scale(1.3); opacity: 0; }
}
.hero-orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orbit-icon {
  position: absolute;
  width: 58px;
  opacity: .085;
  image-rendering: pixelated;
  filter: saturate(.45) sepia(.1) hue-rotate(315deg);
}
.orbit-one { right: 8%; top: 18%; animation: orbit-drift 8s ease-in-out infinite; }
.orbit-two { right: 42%; bottom: 12%; width: 44px; animation: orbit-drift 7s 1.2s ease-in-out infinite reverse; }
.orbit-three { left: 4%; top: 25%; width: 52px; animation: orbit-drift 9s 2s ease-in-out infinite; }
@keyframes orbit-drift {
  0%,100% { transform: translate(0,0) rotate(-5deg); }
  50% { transform: translate(8px,-16px) rotate(7deg); }
}

/* Shared headings */
.section-heading { max-width: 700px; margin-bottom: 52px; }
.section-heading h2,
.split-copy h2,
.economy-copy h2,
.final-cta h2 { font-size: clamp(28px, 3.2vw, 42px); }
.section-heading .section-kicker,
.split-copy .section-kicker,
.economy-copy .section-kicker,
.final-cta .section-kicker { margin-bottom: 13px; }
.section-heading > p:last-child,
.split-copy > p,
.economy-copy > p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #d3c7ca;
  font-size: 15px;
}
.title-with-icon { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.title-with-icon .section-kicker { margin: 0; }

/* MC Icons */
.mc-icon-shell {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #4a252e;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, rgba(230,57,70,.12), transparent 62%), #110b0d;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.mc-icon-shell.compact { width: 42px; height: 42px; border-radius: 9px; }
.mc-icon { width: 42px; height: 42px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 7px 8px rgba(0,0,0,.28)); transition: transform .25s ease; }
.compact .mc-icon { width: 29px; height: 29px; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  min-height: 256px;
  padding: 26px;
  border: 1px solid rgba(143,94,109,.52);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(29,18,22,.58), rgba(24,15,18,.64));
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -25% -70% 25%;
  height: 160px;
  background: radial-gradient(circle, rgba(230,57,70,.10), transparent 65%);
  opacity: 0;
  transition: opacity .25s ease;
}
.feature-card:hover::after { opacity: 1; }
.feature-card:hover .mc-icon { transform: translateY(-3px) rotate(-3deg) scale(1.08); }
.feature-mark {
  position: absolute;
  right: 24px;
  top: 25px;
  color: #74404a;
  font: 800 11px Consolas, monospace;
}
.feature-card h3 {
  margin: 38px 0 10px;
  font-size: 18px;
  line-height: 1.2;
}
.feature-card p { margin: 0; color: #cbbcc0; font-size: 14px; }
.interactive-card { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; transform-style: preserve-3d; }
.interactive-card:hover { transform: translateY(-5px); border-color: #56303a; box-shadow: 0 22px 46px rgba(0,0,0,.18); }

/* RTP */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
}
.map-card {
  overflow: hidden;
  border: 1px solid rgba(143,94,109,.52);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(37,24,31,.58), rgba(29,20,26,.52));
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}
.map-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #432832;
  color: #a79095;
  font: 800 10px Consolas, monospace;
  letter-spacing: .08em;
}
.map-head b { color: var(--accent-2); font-weight: 800; }
.pixel-map {
  position: relative;
  aspect-ratio: 1.25;
  overflow: hidden;
  background: #3e4b38;
  image-rendering: pixelated;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15,18,14,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(15,18,14,.17) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: map-pan 16s linear infinite;
}
@keyframes map-pan { to { background-position: 32px 32px; } }
.map-biome { position: absolute; opacity: .95; }
.biome-one { width: 46%; height: 42%; left: 3%; top: 8%; background: #697b4a; clip-path: polygon(0 0, 90% 8%, 100% 65%, 70% 100%, 8% 84%); }
.biome-two { width: 54%; height: 52%; right: 0; bottom: 0; background: #334939; clip-path: polygon(24% 0, 100% 12%, 100% 100%, 0 100%, 8% 38%); }
.biome-three { width: 28%; height: 34%; right: 12%; top: 8%; background: #6f6250; clip-path: polygon(0 20%, 70% 0, 100% 58%, 68% 100%, 12% 82%); }
.spawn-marker, .rtp-marker { position: absolute; z-index: 2; }
.spawn-marker {
  left: 49%; top: 48%; transform: translate(-50%, -50%);
  color: #fff;
  font: 800 9px Consolas, monospace;
  text-align: center;
}
.spawn-marker span {
  display: block;
  width: 14px; height: 14px;
  margin: 0 auto 4px;
  transform: rotate(45deg);
  background: var(--accent);
  border: 2px solid #711823;
  box-shadow: 0 0 14px rgba(230,57,70,.42);
  animation: marker-pulse 1.7s ease-in-out infinite;
}
@keyframes marker-pulse { 50% { box-shadow: 0 0 0 6px rgba(230,57,70,.10), 0 0 18px rgba(230,57,70,.48); } }
.rtp-marker {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  color: white;
  background: #8a1e2a;
  border: 1px solid #d34350;
  border-radius: 4px;
  font: 800 10px Consolas, monospace;
  box-shadow: 0 0 0 rgba(230,57,70,0);
  animation: point-ping 2.4s ease-in-out infinite;
}
.marker-one { left: 17%; top: 20%; }
.marker-two { right: 18%; top: 29%; animation-delay: .75s; }
.marker-three { left: 26%; bottom: 18%; animation-delay: 1.4s; }
@keyframes point-ping { 50% { transform: translateY(-3px); box-shadow: 0 5px 16px rgba(230,57,70,.20); } }
.map-item { position: absolute; z-index: 2; width: 42px; opacity: .30; image-rendering: pixelated; filter: drop-shadow(0 8px 8px rgba(0,0,0,.22)); }
.map-item-one { right: 7%; bottom: 9%; animation: item-float 4.5s ease-in-out infinite; }
.map-item-two { left: 6%; bottom: 8%; width: 36px; animation: item-float 5.2s 1s ease-in-out infinite reverse; }
@keyframes item-float { 50% { transform: translateY(-6px) rotate(4deg); opacity: .44; } }
.split-copy { max-width: 510px; }
.command-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 11px 14px;
  border: 1px solid #41262e;
  border-radius: 7px;
  color: #f1e6e8;
  background: rgba(34,24,29,.72);
  font: 800 12px Consolas, monospace;
}
.command-line span { color: var(--accent); }
.cursor-block { width: 7px; height: 14px; background: var(--accent-2); display: inline-block; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Economy */
.economy-panel {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  align-items: center;
  padding: 52px 56px;
  border: 1px solid rgba(143,94,109,.52);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(42,28,35,.60), rgba(31,21,28,.54));
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.economy-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -160px;
  border-radius: 50%;
  background: rgba(230,57,70,.075);
  filter: blur(18px);
}
.economy-note {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid #42272f;
  border-radius: 9px;
  background: rgba(46,32,38,.50);
  backdrop-filter: blur(5px);
  color: #d6c5c8;
  text-align: center;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.economy-note strong { color: var(--accent-2); font-size: 24px; animation: equal-pulse 2s ease-in-out infinite; }
@keyframes equal-pulse { 50% { transform: scale(1.1); text-shadow: 0 0 12px rgba(255,83,96,.35); } }

/* Join */
.join-section { padding-top: 100px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 138px;
  padding: 22px;
  border: 1px solid rgba(92,53,62,.44);
  border-top-color: var(--line-light);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(42,28,35,.46), rgba(31,21,27,.20));
  backdrop-filter: blur(4px);
}
.step:hover { border-color: #4a2932; background: linear-gradient(180deg, rgba(33,17,21,.72), rgba(17,10,12,.34)); }
.step-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150,103,118,.36);
  border-radius: 10px;
  background: rgba(34,24,29,.72);
}
.step-icon img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; transition: transform .25s ease; }
.step:hover .step-icon img { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
.step-number { display: block; margin-bottom: 5px; color: #6d3a44; font: 800 10px Consolas, monospace; letter-spacing: .1em; }
.step h3 { margin: 0 0 7px; font-size: 16px; }
.step p { margin: 0; color: #cfbfc4; font-size: 13px; }
.inline-copy {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  font-weight: 700;
}
.inline-copy:hover { color: #fff; }
.final-cta {
  margin-top: 72px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid rgba(99,56,66,.72);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(43,29,36,.58), rgba(31,22,29,.52));
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.final-cta::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  right: 20%; top: -120px;
  border-radius: 50%;
  background: rgba(230,57,70,.09);
  filter: blur(20px);
  animation: cta-drift 6s ease-in-out infinite;
}
@keyframes cta-drift { 50% { transform: translateX(60px) translateY(18px); } }
.final-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.final-actions .button { min-width: 155px; min-height: 56px; align-items: center; }

/* Footer */
footer { padding: 44px 0; border-top: 1px solid rgba(255,255,255,.065); background: linear-gradient(180deg, rgba(34,28,40,.62), rgba(27,23,33,.70)); position: relative; overflow: hidden; }
footer::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 30%, rgba(238,77,108,.10), transparent 20%),
  radial-gradient(circle at 80% 40%, rgba(119,94,255,.10), transparent 22%),
  linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); opacity: 1; transform: scale(1.02); }
.footer-inner {
  display: grid;
  grid-template-columns: 130px auto 1fr;
  gap: 28px;
  align-items: center;
  color: #7b686d;
  font-size: 11px;
}
.footer-inner img { width: 120px; opacity: .72; }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { text-align: right; }
.footer-inner a { color: #a77c85; }
.footer-inner a:hover { color: var(--accent-2); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 10px 14px;
  border: 1px solid #7f2b37;
  border-radius: 7px;
  color: #f8edef;
  background: #160c0f;
  box-shadow: 0 14px 35px rgba(0,0,0,.26);
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(22px) scale(.992); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 124px; }
  .hero-grid, .split-layout { grid-template-columns: 1fr; gap: 58px; }
  .hero-copy, .split-copy { max-width: 700px; }
  .hero-art { min-height: 420px; }
  .hero-art img { width: min(470px, 90%); }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .economy-panel { grid-template-columns: 1fr; gap: 34px; }
  .economy-note { min-height: 110px; }
  .footer-inner { grid-template-columns: 120px 1fr; }
  .footer-inner p:last-child { grid-column: 1 / -1; text-align: left; }
  .orbit-one { right: 4%; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 82px 0; }
  .nav-inner { min-height: 68px; }
  .nav-brand { width: 132px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line-light);
    border-radius: 8px;
    background: rgba(34,24,29,.72);
    box-shadow: 0 22px 50px rgba(0,0,0,.35);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > a { padding: 12px 10px; }
  .nav-menu > a::after { display: none; }
  .discord-link { margin-top: 4px; text-align: center; }
  .hero { padding: 110px 0 76px; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: clamp(32px, 10vw, 46px); }
  .hero-text { font-size: 15px; }
  .hero-logo { width: min(420px, 100%); }
  .hero-actions { display: grid; }
  .button { width: 100%; min-width: 0; }
  .quick-facts { display: grid; gap: 8px; }
  .hero-art { min-height: 330px; }
  .hero-orbit { opacity: .55; }
  .section-heading { margin-bottom: 38px; }
  .feature-card { padding: 24px; }
  .feature-card h3 { margin-top: 30px; }
  .split-layout { gap: 40px; }
  .economy-panel { padding: 34px 28px; }
  .final-cta { display: block; margin-top: 52px; padding: 34px 28px; }
  .final-actions { margin-top: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-inner p:last-child { grid-column: auto; }
}

@media (max-width: 430px) {
  .hero-art { min-height: 280px; }
  .economy-note { flex-direction: column; }
  .orbit-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .interactive-card { transition: none; }
  .embers { display: none; }
}

/* Rules page */
.nav-menu > a.active-page { color: #fff; }
.nav-menu > a.active-page:not(.discord-link)::after { transform: scaleX(1); }

.rules-page { background: transparent; }
.rules-hero {
  min-height: 560px;
  padding: 150px 0 92px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
  isolation: isolate;
}
.rules-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 10% 16%, rgba(241,94,127,.18), transparent 30%),
    radial-gradient(ellipse at 86% 18%, rgba(115,108,250,.18), transparent 32%),
    radial-gradient(ellipse at 72% 74%, rgba(69,182,163,.13), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.02), transparent 40%, rgba(255,255,255,.01));
  opacity: 1;
  transform: scale(1.02);
  animation: hero-pan 22s ease-in-out infinite alternate-reverse;
}
.rules-hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  top: 35px;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,.12), rgba(230,57,70,.02) 45%, transparent 70%);
  filter: blur(4px);
  animation: glow-pulse 5s ease-in-out infinite;
}
.rules-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  animation: rules-grid-drift 24s linear infinite;
}
@keyframes rules-grid-drift { to { background-position: 48px 48px; } }
.rules-hero-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 76px;
  position: relative;
  z-index: 1;
  padding: 48px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22,24,34,.72), rgba(18,19,28,.66));
  box-shadow: 0 24px 64px rgba(0,0,0,.14);
  overflow: hidden;
}
.rules-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 112px 112px;
  opacity: .12;
}
.rules-hero-inner > * { position: relative; z-index: 1; }
.rules-hero-copy { max-width: 780px; }
.rules-hero h1 {
  margin: 16px 0 22px;
  color: #fff7f8;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.045em;
}
.rules-hero-copy > p:not(.eyebrow) { margin: 0; max-width: 760px; color: var(--muted); font-size: 16px; }
.rules-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: #8f7b80; font-size: 12px; }
.rules-meta span { display: inline-flex; gap: 8px; align-items: center; }
.rules-meta span::before { content: ""; width: 5px; height: 5px; background: var(--accent); box-shadow: 0 0 8px rgba(230,57,70,.45); }
.rules-meta strong { color: #d4c2c6; font-weight: 700; }
.rules-hero-icon { min-height: 250px; display: grid; place-items: center; position: relative; }
.rules-hero-icon img { width: 150px; image-rendering: pixelated; filter: drop-shadow(0 22px 28px rgba(0,0,0,.42)); animation: rule-book-float 4.6s ease-in-out infinite; }
.rules-icon-ring { position: absolute; width: 215px; height: 215px; border: 1px solid rgba(230,57,70,.18); transform: rotate(45deg); animation: slow-spin 22s linear infinite; }
.rules-icon-ring::before, .rules-icon-ring::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(230,57,70,.11); }
.rules-icon-ring::after { inset: 45px; }
@keyframes rule-book-float { 50% { transform: translateY(-10px) rotate(-2deg); } }

.rules-content-section { padding: 92px 0 118px; }
.rules-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 62px; align-items: start; }
.rules-summary {
  position: sticky;
  top: 112px;
  padding: 28px;
  border: 1px solid rgba(106,64,75,.70);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(43,29,36,.58), rgba(31,22,29,.52));
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.13);
}
.rules-summary h2 { margin: 11px 0 14px; color: #fff; font-size: 25px; line-height: 1.14; letter-spacing: -.025em; }
.rules-summary > p:not(.section-kicker) { margin: 0; color: #cbbec2; font-size: 13px; }
.rules-summary-points { display: grid; gap: 11px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #2d1a20; }
.rules-summary-points span { display: flex; align-items: center; gap: 10px; color: #c4afb4; font-size: 12px; line-height: 1.35; }
.rules-summary-points img { width: 25px; height: 25px; object-fit: contain; image-rendering: pixelated; flex: 0 0 auto; }

.rules-list { display: grid; gap: 18px; min-width: 0; }
.rule-section {
  border: 1px solid rgba(106,64,75,.70);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30,18,22,.56), rgba(23,14,17,.64));
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.rule-section:hover { border-color: #4b2932; transform: translateY(-2px); box-shadow: 0 18px 46px rgba(0,0,0,.15); }
.rule-heading { display: flex; align-items: center; gap: 16px; padding: 23px 26px; border-bottom: 1px solid #2b191e; background: rgba(255,255,255,.008); }
.rule-icon { width: 49px; height: 49px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #492730; border-radius: 10px; background: rgba(34,24,29,.72); }
.rule-icon img { width: 33px; height: 33px; object-fit: contain; image-rendering: pixelated; transition: transform .25s ease; }
.rule-section:hover .rule-icon img { transform: translateY(-2px) rotate(-3deg) scale(1.05); }
.rule-heading span { display: block; margin-bottom: 4px; color: #8a4853; font: 800 10px Consolas, monospace; letter-spacing: .12em; }
.rule-heading h2 { margin: 0; color: #fff6f7; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.rule-body { padding: 24px 28px 28px 91px; color: #c9bcc0; font-size: 14px; }
.rule-body > p { margin: 0 0 16px; }
.rule-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.rule-body li { position: relative; padding-left: 20px; }
.rule-body li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 6px; height: 6px; background: #9f2834; transform: rotate(45deg); box-shadow: 0 0 8px rgba(230,57,70,.22); }
.rule-body strong { color: #e7d8db; }
.rule-note { margin-top: 20px; padding: 15px 17px; border: 1px solid #4d2831; border-left: 3px solid var(--accent); border-radius: 6px; background: rgba(230,57,70,.045); color: #bfa9ae; font-size: 13px; }
.rule-note strong { color: var(--accent-2); }

.rules-end {
  margin-top: 34px;
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid rgba(99,56,66,.72);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(43,29,36,.58), rgba(31,22,29,.52));
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.rules-end::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -120px; border-radius: 50%; background: rgba(230,57,70,.09); filter: blur(18px); }
.rules-end > div:first-child { max-width: 540px; position: relative; z-index: 1; }
.rules-end h2 { margin: 10px 0 10px; color: #fff; font-size: 28px; line-height: 1.14; letter-spacing: -.025em; }
.rules-end p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.rules-end-actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.rules-end-actions .button { min-width: 145px; min-height: 56px; align-items: center; }

@media (max-width: 980px) {
  .rules-hero-inner { grid-template-columns: 1fr 200px; gap: 38px; }
  .rules-hero-icon img { width: 125px; }
  .rules-icon-ring { width: 180px; height: 180px; }
  .rules-layout { grid-template-columns: 1fr; gap: 32px; }
  .rules-summary { position: static; }
  .rules-summary-points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .rules-hero { min-height: auto; padding: 118px 0 72px; }
  .rules-hero-inner { grid-template-columns: 1fr; }
  .rules-hero-icon { min-height: 210px; }
  .rules-hero h1 { font-size: clamp(38px, 13vw, 58px); }
  .rules-content-section { padding: 66px 0 84px; }
  .rules-summary { padding: 24px; }
  .rules-summary-points { grid-template-columns: 1fr; }
  .rule-heading { padding: 20px; }
  .rule-heading h2 { font-size: 18px; }
  .rule-icon { width: 44px; height: 44px; }
  .rule-icon img { width: 29px; height: 29px; }
  .rule-body { padding: 21px 21px 24px; }
  .rules-end { display: block; padding: 30px 26px; }
  .rules-end-actions { margin-top: 24px; display: grid; }
}

#gameplay .section-heading h2, #randomtp h2, #economy h2, .join-section h2, .rules-hero h1 { text-shadow: 0 8px 22px rgba(0,0,0,.16); }

@media (max-width: 980px) { .hero-grid { padding: 40px; gap: 56px; } .rules-hero-inner { padding: 36px; } }
@media (max-width: 760px) { .hero-grid { padding: 28px; border-radius: 22px; } .rules-hero-inner { padding: 28px; } }

/* 2026-09 card refresh: lighter, softer surfaces with subtle neutral outlines */
.hero-grid,
.rules-hero-inner,
.feature-card,
.map-card,
.economy-panel,
.economy-note,
.step,
.final-cta,
.rules-summary,
.rule-section,
.rules-end {
  border-color: rgba(255,255,255,.085) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.030)),
    linear-gradient(135deg, rgba(238,77,108,.050), rgba(119,94,255,.040) 56%, rgba(73,183,144,.025)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 14px 34px rgba(7,6,11,.10) !important;
  backdrop-filter: blur(8px) saturate(112%);
}

.feature-card,
.step,
.rule-section,
.rules-summary,
.map-card,
.economy-note {
  border-radius: 14px;
}

.feature-card:hover,
.step:hover,
.rule-section:hover,
.map-card:hover,
.economy-panel:hover,
.final-cta:hover,
.rules-summary:hover,
.rules-end:hover {
  border-color: rgba(255,255,255,.14) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.092), rgba(255,255,255,.043)),
    linear-gradient(135deg, rgba(238,77,108,.060), rgba(119,94,255,.052) 56%, rgba(73,183,144,.032)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.060),
    0 18px 42px rgba(7,6,11,.13) !important;
}

/* Card separators should not read as red boxes. */
.map-head,
.rule-heading,
.rules-summary-points {
  border-color: rgba(255,255,255,.075) !important;
}
.rule-heading { background: rgba(255,255,255,.018); }

/* Icon wells: brighter and more neutral, still keeping the Vulcanity red accent. */
.mc-icon-shell,
.step-icon,
.rule-icon {
  border-color: rgba(255,255,255,.10) !important;
  background:
    radial-gradient(circle at 32% 28%, rgba(238,77,108,.10), transparent 58%),
    rgba(255,255,255,.035) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 18px rgba(0,0,0,.08);
}

.feature-mark,
.step-number,
.rule-heading span {
  color: rgba(255,126,146,.66);
}

.feature-card h3,
.step h3,
.rule-heading h2,
.rules-summary h2 {
  color: #fff8fa;
}
.feature-card p,
.step p,
.rule-body,
.rules-summary > p:not(.section-kicker),
.rules-summary-points span,
.rules-end p:last-child {
  color: rgba(245,235,239,.78);
}

/* Nested small panels should sit one step lighter than the parent card. */
.economy-note,
.command-line {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.085) !important;
}

@media (max-width: 760px) {
  .hero-grid,
  .rules-hero-inner,
  .feature-card,
  .map-card,
  .economy-panel,
  .economy-note,
  .step,
  .final-cta,
  .rules-summary,
  .rule-section,
  .rules-end {
    backdrop-filter: blur(6px) saturate(108%);
  }
}


/* Rules page repair — keep the same layered background and card language as the homepage. */
.rules-page {
  min-height: 100vh;
  background: transparent !important;
}
.rules-page .navbar.scrolled {
  background: rgba(25,21,31,.76);
  border-bottom-color: rgba(255,255,255,.07);
  backdrop-filter: blur(14px) saturate(112%);
}
.rules-page .rules-hero {
  border-bottom-color: rgba(255,255,255,.055);
  background: transparent;
}
.rules-page .rules-hero::before {
  background: radial-gradient(circle, rgba(238,77,108,.10), rgba(119,94,255,.045) 46%, transparent 70%);
  opacity: .85;
}
.rules-page .rules-hero-grid {
  opacity: .28;
}
.rules-page .rules-hero-inner {
  border-color: rgba(255,255,255,.10) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.030)),
    linear-gradient(135deg, rgba(238,77,108,.040), rgba(119,94,255,.045) 58%, rgba(73,183,144,.030)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 22px 54px rgba(8,7,12,.10) !important;
}
.rules-page .rules-content-section {
  position: relative;
  background: rgba(255,255,255,.012);
}
.rules-page .rules-layout {
  align-items: start;
}
.rules-page .rules-summary,
.rules-page .rule-section,
.rules-page .rules-end {
  border-color: rgba(255,255,255,.095) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.080), rgba(255,255,255,.038)),
    linear-gradient(135deg, rgba(238,77,108,.035), rgba(119,94,255,.035) 55%, rgba(73,183,144,.025)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 12px 28px rgba(8,7,12,.08) !important;
  backdrop-filter: blur(7px) saturate(110%);
}
.rules-page .rule-section:hover,
.rules-page .rules-summary:hover,
.rules-page .rules-end:hover {
  border-color: rgba(255,255,255,.15) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.050)),
    linear-gradient(135deg, rgba(238,77,108,.045), rgba(119,94,255,.045) 55%, rgba(73,183,144,.030)) !important;
}
.rules-page .rule-heading {
  background: rgba(255,255,255,.018);
  border-bottom-color: rgba(255,255,255,.065) !important;
}
.rules-page .rule-icon {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.10) !important;
}
.rules-page .rule-body,
.rules-page .rules-summary > p:not(.section-kicker),
.rules-page .rules-summary-points span,
.rules-page .rules-end p:last-child {
  color: rgba(247,240,243,.80);
}
.rules-page .rule-body strong { color: #fff8fa; }
.rules-page .rules-summary-points { border-top-color: rgba(255,255,255,.07) !important; }
.rules-page .rule-note {
  border-color: rgba(255,255,255,.085);
  border-left-color: rgba(255,103,124,.72);
  background: rgba(255,255,255,.035);
  color: rgba(247,240,243,.78);
}
.rules-page .rules-end::after {
  background: radial-gradient(circle, rgba(119,94,255,.12), rgba(238,77,108,.07) 48%, transparent 72%);
  filter: blur(10px);
}
@media (max-width: 980px) {
  .rules-page .rules-layout { gap: 26px; }
  .rules-page .rules-summary { position: static; }
}
@media (max-width: 760px) {
  .rules-page .rules-hero-inner { padding: 26px; }
  .rules-page .rule-heading { align-items: flex-start; }
  .rules-page .rule-body { padding: 20px; }
}

/* Rules page uses the exact same visual language as index.html */
.rules-index-hero { min-height: 770px; }
.rules-content-section { padding: 116px 0; }
.rules-content-section::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 120, 150, .10), transparent 22%),
    radial-gradient(circle at 78% 62%, rgba(127, 103, 255, .10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008));
  opacity: .95;
}
.rules-summary,
.rule-section,
.rules-end {
  border: 1px solid rgba(255,255,255,.085) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.030)),
    linear-gradient(135deg, rgba(238,77,108,.050), rgba(119,94,255,.040) 56%, rgba(73,183,144,.025)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 14px 34px rgba(7,6,11,.10) !important;
  backdrop-filter: blur(8px) saturate(112%);
}
.rule-section:hover,
.rules-summary:hover,
.rules-end:hover {
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 18px 42px rgba(7,6,11,.12) !important;
}
.rule-heading {
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(255,255,255,.018);
}
.rule-icon {
  border-color: rgba(255,255,255,.085);
  background: rgba(255,255,255,.035);
}
.rules-summary-points { border-top-color: rgba(255,255,255,.065); }
.rule-note {
  border-color: rgba(255,255,255,.085);
  border-left-color: var(--accent);
  background: rgba(255,255,255,.030);
}
.rules-end::after { opacity: .55; }
@media (max-width: 760px) {
  .rules-index-hero { min-height: auto; }
  .rules-content-section { padding: 82px 0; }
}
