:root {
  /* rgb triplets are the single source of truth: hand-written CSS, Tailwind
     utilities and the canvas aurora all read them, so the redstone lever
     re-points the entire site by swapping this one block. */
  --ink-rgb: 8 9 15;
  --panel-rgb: 13 15 23;
  --panel2-rgb: 18 20 29;
  --well-rgb: 7 8 13;
  --paper-rgb: 243 245 248;
  --muted-rgb: 151 152 157;
  --brand-rgb: 255 138 61;
  --brand2-rgb: 255 177 92;
  --brand3-rgb: 255 201 138;
  --accent-rgb: 255 111 181;
  --accent2-rgb: 255 61 127;
  --sky-rgb: 91 191 255;
  --ok-rgb: 34 217 111;
  --warn-rgb: 245 165 36;
  --bad-rgb: 239 90 82;

  /* structural neutrals */
  --ink: rgb(var(--ink-rgb));
  --panel: rgb(var(--panel-rgb));
  --panel-2: rgb(var(--panel2-rgb));
  --well: rgb(var(--well-rgb));
  --paper: rgb(var(--paper-rgb));
  --muted: rgb(var(--muted-rgb));
  --line: rgb(var(--paper-rgb) / 0.08);
  --line-2: rgb(var(--paper-rgb) / 0.16);

  /* brand — warm ember */
  --brand: rgb(var(--brand-rgb));
  --brand-2: rgb(var(--brand2-rgb));
  --brand-3: rgb(var(--brand3-rgb));
  --mint: rgb(var(--brand3-rgb));
  --accent: rgb(var(--accent-rgb));
  --accent-2: rgb(var(--accent2-rgb));
  --sky: rgb(var(--sky-rgb));

  /* semantics */
  --ok: rgb(var(--ok-rgb));
  --warn: rgb(var(--warn-rgb));
  --bad: rgb(var(--bad-rgb));

  --grad-ember: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 30%, var(--accent) 62%, var(--brand) 100%);
  --ease: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Redstone mode — flipped by the lever in assets/js/mc-eggs.js */
html[data-redstone="on"] {
  --brand-rgb: 46 230 168;
  --brand2-rgb: 120 240 255;
  --brand3-rgb: 168 240 210;
  --accent-rgb: 70 200 255;
  --accent2-rgb: 30 215 130;
  --sky-rgb: 120 240 255;
  --ink-rgb: 6 12 12;
  --panel-rgb: 10 22 21;
  --panel2-rgb: 14 28 27;
  --well-rgb: 4 9 9;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink);
}

/* warm wash behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* the dot grid lives here instead of background-attachment: fixed on body —
     a fixed attachment repaints the whole pattern on every scroll frame */
  background-image: radial-gradient(120% 80% at 12% -10%, rgb(var(--brand-rgb) / 0.12) 0%, transparent 58%),
    radial-gradient(90% 70% at 92% 4%, rgb(var(--accent-rgb) / 0.09) 0%, transparent 55%),
    linear-gradient(180deg, rgb(var(--brand-rgb) / 0.05) 0%, transparent 26%, var(--ink) 86%),
    radial-gradient(rgb(var(--paper-rgb) / 0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, 22px 22px;
}

/* vertical content guide lines */
.page-rule {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--line) 6%, var(--line) 94%, transparent 100%);
}
.page-rule--l {
  left: max(0px, calc(50% - 620px));
}
.page-rule--r {
  right: max(0px, calc(50% - 620px));
}
@media (max-width: 1320px) {
  .page-rule {
    display: none;
  }
}

::selection {
  background: rgb(var(--brand-rgb) / 0.34);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--well);
}
::-webkit-scrollbar-thumb {
  background: #262a36;
  border: 2px solid var(--well);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--brand-rgb) / 0.5);
}

/* ---------- Animated gradient text ---------- */
.grad-text {
  background: var(--grad-ember);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: enchant 7s linear infinite;
}
@keyframes enchant {
  to {
    background-position: -220% center;
  }
}

/* ---------- Aurora canvas ---------- */
.fx-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(24px);
  transform: scale(1.06);
  transform-origin: center top;
  opacity: 0.6;
  /* the blur bleeds past the box; clip it so banners never leak glow sideways */
  clip-path: inset(0);
}

/* ---------- Idle decoration pause ---------- */
/* Set by site.js on decorative containers that have scrolled out of sight. The browser keeps a
   composited layer for every running animation whether or not anyone can see it, so a page left
   idle has all of those layers to rebuild at once the moment it is looked at again — that rebuild
   is the lag people feel when they come back, not the animations themselves.
   The descendant half is the point: particles and the WebGL canvas are created after site.js has
   run, so they inherit the pause from their container. `!important` is needed because the loops
   are declared with the `animation` shorthand in rules that outrank this one or come after it. */
.fx-idle,
.fx-idle * {
  animation-play-state: paused !important;
}

/* ---------- Cursor spotlight on surfaces ---------- */
.spot {
  position: relative;
  --mx: 50%;
  --my: 50%;
}
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    circle 560px at var(--mx, 50%) var(--my, 50%),
    var(--brand),
    var(--accent) 38%,
    var(--accent-2) 66%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.spot:hover::before,
.spot:focus-within::before {
  opacity: 0.72;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  text-shadow: 0 0 22px rgb(var(--brand-rgb) / 0.45);
}

.pixel-dots {
  display: inline-flex;
  gap: 3px;
}
.pixel-dots i {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--brand);
  animation: dot-hop 2.4s var(--ease) infinite;
}
.pixel-dots i:nth-child(2) {
  background: var(--mint);
  opacity: 0.75;
  animation-delay: 0.22s;
}
.pixel-dots i:nth-child(3) {
  background: var(--muted);
  opacity: 0.5;
  animation-delay: 0.44s;
}
@keyframes dot-hop {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: inherit;
  }
  82% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* ---------- Navigation ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
#site-header > header {
  /* Solid fill instead of backdrop-filter: a blurred sticky bar re-samples the
     whole viewport width on every scroll frame, which is what stuttered. */
  background-color: rgb(var(--ink-rgb) / 0.94);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
#site-header > header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 20px 44px -34px #000, 0 1px 0 rgb(var(--brand-rgb) / 0.18);
  transition: opacity 0.3s var(--ease);
}
#site-header > header.is-scrolled {
  background-color: rgb(var(--ink-rgb) / 0.97);
  border-color: var(--line-2);
}
#site-header > header.is-scrolled::after {
  opacity: 1;
}
.nav-link {
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--grad-ember);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover::before {
  transform: scaleX(1);
}
.nav-link[aria-current="page"] {
  color: var(--paper);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--grad-ember);
  box-shadow: 0 0 14px rgb(var(--brand-rgb) / 0.7);
}

/* ---------- Mega menu ---------- */
.mega-nav {
  display: flex;
}
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.mega-chevron {
  margin-top: 1px;
  transition: transform 0.2s ease;
}
.mega-nav.is-open .mega-trigger {
  color: var(--paper);
}
.mega-nav.is-open .mega-chevron {
  transform: rotate(180deg);
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  width: min(1180px, calc(100vw - 24px));
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.985);
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease-out), visibility 0.2s;
}
.mega-nav.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.mega-panel-inner {
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--line-2);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.96) 0%, rgba(11, 12, 20, 0.97) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.66), 0 0 0 1px rgb(var(--brand-rgb) / 0.07),
    0 -1px 0 rgb(var(--brand-rgb) / 0.22) inset;
}
.mega-nav.is-open .mega-panel-inner {
  animation: panel-rise 0.34s var(--ease-out) both;
}
@keyframes panel-rise {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(0);
  }
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.mega-nav.is-open .mega-col {
  animation: col-in 0.4s var(--ease-out) both;
}
.mega-nav.is-open .mega-col:nth-child(2) {
  animation-delay: 0.05s;
}
.mega-nav.is-open .mega-col:nth-child(3) {
  animation-delay: 0.1s;
}
.mega-nav.is-open .mega-col:nth-child(4) {
  animation-delay: 0.15s;
}
@keyframes col-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* The four mega columns use the reference menu's fixed spot colours, so they
   deliberately ignore the redstone lever and the ember theme variables. */
.mega-col {
  --accent-rgb: 255 138 61;
  --accent: rgb(var(--accent-rgb));
  min-width: 0;
}
.mega-col--community {
  --accent-rgb: 255 138 61;
}
.mega-col--world {
  --accent-rgb: 91 191 255;
}
.mega-col--server {
  --accent-rgb: 255 111 181;
}
.mega-col--tools {
  --accent-rgb: 27 217 106;
}
.mega-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9e9fa4;
}
.mega-dot {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.6rem;
  transition: background-color 0.16s ease, transform 0.24s var(--ease-out);
}
.mega-item:hover {
  background: rgba(243, 245, 248, 0.045);
  transform: translateX(3px);
}
.mega-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(var(--accent-rgb) / 0.14);
  border-radius: 0.5rem;
  color: var(--accent);
  background: rgb(var(--accent-rgb) / 0.1);
  transition: background-color 0.13s var(--ease), border-color 0.13s var(--ease),
    transform 0.13s var(--ease);
}
.mega-item:hover .mega-icon {
  background: rgb(var(--accent-rgb) / 0.2);
  border-color: rgb(var(--accent-rgb) / 0.32);
  transform: translateY(-1px);
}
/* Minecraft item textures — nearest-neighbour so the pixels stay crisp */
.mc-ico {
  display: block;
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.mc-ico.iso {
  width: 30px;
  height: 30px;
  margin: -4px 0;
  image-rendering: auto;
}
.mega-icon .ico-tiktok {
  width: 19px;
  height: 19px;
  color: var(--paper);
}
.mega-item--discord .mega-icon {
  color: #9aa5ff;
  background: rgb(90 80 216 / 0.16);
  border-color: rgb(108 40 216 / 0.4);
}
.mega-item--discord:hover .mega-icon {
  color: #fff;
  background: linear-gradient(100deg, #3b4eca 0%, #6c28d8 100%);
  border-color: rgb(108 40 216 / 0.7);
  box-shadow: 0 0 22px -6px rgb(108 40 216 / 0.9);
}
.mega-copy {
  min-width: 0;
}
.mega-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--paper);
  transition: color 0.16s ease;
}
.mega-item:hover .mega-item-title {
  color: var(--accent);
}
.mega-item--discord:hover .mega-item-title {
  color: #aeb6ff;
}
.mega-item-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}
.mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}
.mega-store {
  --store-rgb: 27 217 106;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(560px, 100%);
  padding: 0.7rem 0.9rem;
  border: 1px solid rgb(var(--store-rgb) / 0.22);
  border-radius: 0.7rem;
  background: rgb(var(--store-rgb) / 0.07);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}
.mega-store:hover {
  background: rgb(var(--store-rgb) / 0.12);
  border-color: rgb(var(--store-rgb) / 0.45);
  box-shadow: 0 8px 24px rgb(var(--store-rgb) / 0.14);
}
.mega-store-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(var(--store-rgb) / 0.35);
  border-radius: 0.5rem;
  background: rgb(var(--store-rgb) / 0.18);
  color: rgb(var(--store-rgb));
}
.mega-store-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(var(--store-rgb));
}
.mega-store-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}
.mega-store-arrow {
  margin-left: auto;
  color: rgb(var(--store-rgb));
  opacity: 0.7;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}
.mega-store:hover .mega-store-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.mega-ip {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  padding-right: 0.35rem;
}
.mega-ip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22d96f;
  box-shadow: 0 0 0 3px rgba(34, 217, 111, 0.12), 0 0 10px rgba(34, 217, 111, 0.55);
}
.mega-ip-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega-ip-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--paper);
}

/* ---------- Mobile drawer ---------- */
body.nav-open {
  overflow: hidden;
}
.nav-burger .ico-close {
  display: none;
}
body.nav-open .nav-burger .ico-open {
  display: none;
}
body.nav-open .nav-burger .ico-close {
  display: block;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgb(4 5 10 / 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  /* hidden, not just transparent: a full-viewport backdrop-filter that nobody can see still
     costs a blurred read of everything behind it on every painted frame */
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease),
    visibility 0.28s var(--ease);
}
body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-drawer {
  position: fixed;
  top: 4rem;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(370px, 86vw);
  padding: 0.9rem 1.25rem;
  padding-right: max(1.25rem, env(safe-area-inset-right));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0b0d15;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 64px rgb(0 0 0 / 0.55);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
}
body.nav-open .nav-drawer {
  transform: none;
  visibility: visible;
}
@media (min-width: 1024px) {
  .nav-drawer,
  .nav-backdrop {
    display: none;
  }
}
.nav-drawer .mm-lead {
  width: 100%;
  min-height: 3.1rem;
  margin-bottom: 0.6rem;
  font-size: 0.94rem;
}
.nav-drawer .status-live--chip {
  width: 100%;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.68rem 0.75rem;
  border-radius: 0.5625rem;
  background: rgb(243 245 248 / 0.02);
  font-size: 0.84rem;
}
.nav-drawer .status-live--chip .status-live-label,
.nav-drawer .status-live--chip .status-live-sep,
.nav-drawer .status-live--chip .status-live-count {
  font-size: 0.84rem;
}
.mm-sec-hd {
  margin: 1rem 0 0.25rem;
  padding: 0 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mm-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.5625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #cccdd1;
  transition: background-color 0.13s var(--ease), color 0.13s var(--ease);
}
.mm-link:hover,
.mm-link:active {
  background: rgb(243 245 248 / 0.055);
  color: var(--paper);
}
.mm-link.is-current {
  color: rgb(255 138 61);
}
.mm-ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 0.4375rem;
  background: rgb(255 138 61 / 0.1);
}
.mm-ico .mc-ico {
  width: 18px;
  height: 18px;
}
.mm-ico .mc-ico.iso {
  width: 24px;
  height: 24px;
  margin: -3px 0;
}
.mm-ico .ico-tiktok {
  width: 16px;
  height: 16px;
  color: var(--paper);
}
.mm-link b {
  display: block;
  font-weight: 500;
}
.mm-sub {
  display: block;
  margin-top: 1px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}
.mm-divider {
  height: 1px;
  margin: 0.75rem 0.75rem 0;
  background: var(--line);
}
.mm-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0 0.25rem;
}
.mm-cta .btn {
  width: 100%;
  min-height: 3.1rem;
  justify-content: center;
  font-size: 0.94rem;
}

.section-anchor {
  scroll-margin-top: 5.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.4rem;
  border-radius: 0.55rem;
  transition: transform 0.26s var(--ease-out), background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}
/* light blade sweeping across the surface */
.btn::after {
  content: "";
  position: absolute;
  top: -140%;
  bottom: -140%;
  left: -35%;
  width: 30%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-260%) rotate(14deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
}
.btn:hover::after {
  animation: btn-sweep 0.7s var(--ease) forwards;
}
@keyframes btn-sweep {
  0% {
    transform: translateX(-260%) rotate(14deg);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateX(480%) rotate(14deg);
    opacity: 0;
  }
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #150c05;
  box-shadow: 0 3px 0 0 rgb(var(--brand-rgb) / 0.22), 0 16px 36px -20px rgb(var(--brand-rgb) / 0.9);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff9b5c 0%, var(--brand-3) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 rgb(var(--brand-rgb) / 0.26), 0 24px 50px -20px rgb(var(--brand-rgb) / 1);
}
.btn-ghost {
  border: 1px solid rgba(243, 245, 248, 0.14);
  background: rgba(243, 245, 248, 0.02);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: rgb(var(--brand-rgb) / 0.5);
  background: rgb(var(--brand-rgb) / 0.07);
  color: var(--brand-3);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -26px rgb(var(--brand-rgb) / 0.95);
}
/* Compact size for the 64px header, where .btn's own padding would overflow. */
.btn--sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
}
/* Discord and Donate keep their own fixed hues: the redstone lever re-points the
   ember palette, but a Discord button still has to read as Discord. */
.btn-discord {
  border: 1px solid rgb(255 255 255 / 0.1);
  background: linear-gradient(100deg, #3b4eca 0%, #513bd0 50%, #6c28d8 100%);
  color: #fff;
  box-shadow: 0 3px 0 0 rgb(59 78 202 / 0.3), 0 16px 36px -20px rgb(108 40 216 / 0.9);
}
.btn-discord:hover {
  background: linear-gradient(100deg, #4659e0 0%, #5c44e2 50%, #7c31ea 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 rgb(59 78 202 / 0.34), 0 24px 50px -20px rgb(108 40 216 / 1);
}
.btn-donate {
  border: 1px solid rgb(255 255 255 / 0.1);
  background: linear-gradient(135deg, #5f4001 0%, #a06d05 52%, #f09b0a 100%);
  color: #fff;
  box-shadow: 0 3px 0 0 rgb(95 64 1 / 0.4), 0 16px 36px -20px rgb(240 155 10 / 0.85);
}
.btn-donate:hover {
  background: linear-gradient(135deg, #714d02 0%, #b57b06 52%, #ffab1a 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 rgb(95 64 1 / 0.45), 0 24px 50px -20px rgb(240 155 10 / 0.95);
}
.btn:focus-visible {
  outline: 2px solid rgb(var(--brand-rgb) / 0.65);
  outline-offset: 3px;
}
/* after .btn:focus-visible, whose outline shorthand would otherwise reset these */
.btn-discord:focus-visible {
  outline-color: rgb(108 40 216 / 0.75);
}
.btn-donate:focus-visible {
  outline-color: rgb(240 155 10 / 0.75);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  transition: transform 0.34s var(--ease-out), border-color 0.24s var(--ease), background-color 0.24s var(--ease),
    box-shadow 0.34s var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--brand-rgb) / 0.34);
  background: var(--panel-2);
  box-shadow: 0 30px 62px -36px rgba(0, 0, 0, 0.95);
}
/* ember bar drawn across the top edge */
.card-hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-ember);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 0.26s var(--ease), transform 0.42s var(--ease-out);
}
.card-hover:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: rgba(243, 245, 248, 0.02);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease,
    transform 0.24s var(--ease-out), box-shadow 0.26s var(--ease);
}
.chip:hover {
  color: var(--paper);
  border-color: rgb(var(--brand3-rgb) / 0.35);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -20px rgb(var(--brand-rgb) / 0.95);
}
.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #150c05;
  font-weight: 700;
  box-shadow: 0 14px 32px -18px rgb(var(--brand-rgb) / 1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center 40%;
}
/* the clip carries its own motion, so the wrapper no longer needs the ken burns */
.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
/* warm grade, so the ember palette sits over the scene instead of next to it */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgb(var(--brand-rgb) / 0.4) 0%, rgb(var(--accent2-rgb) / 0.24) 55%, rgb(var(--sky-rgb) / 0.18) 100%);
  mix-blend-mode: soft-light;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
      90deg,
      rgba(8, 9, 15, 0.96) 0%,
      rgba(8, 9, 15, 0.86) 34%,
      rgba(11, 9, 16, 0.42) 66%,
      rgba(14, 9, 15, 0.62) 100%
    ),
    linear-gradient(180deg, rgba(8, 9, 15, 0.6) 0%, rgba(8, 9, 15, 0) 40%, rgba(8, 9, 15, 0.97) 100%);
}
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 100% at 20% 0%, rgb(var(--brand-rgb) / 0.14) 0%, transparent 70%),
    radial-gradient(50% 90% at 88% 10%, rgb(var(--accent-rgb) / 0.1) 0%, transparent 68%);
}

/* other banners get a stacking context so the injected aurora canvas can sit
   behind their content without clipping anything */
.si-hero,
.si-pagehead,
.library-hero {
  position: relative;
  isolation: isolate;
}

/* ---------- Status ---------- */
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.status-live-icon {
  display: inline-flex;
  flex: none;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
}
.status-live-icon i {
  width: 3px;
  border-radius: 1px;
  background: #636469;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}
.status-live-icon i:nth-child(1) {
  height: 5px;
}
.status-live-icon i:nth-child(2) {
  height: 9px;
}
.status-live-icon i:nth-child(3) {
  height: 12px;
}
.status-live-icon i:nth-child(4) {
  height: 15px;
}
.status-live-label {
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}
.status-live[data-state="online"] .status-live-label {
  color: var(--paper);
  font-weight: 700;
}
.status-live[data-state="online"] .status-live-icon i {
  background: #22d96f;
  box-shadow: 0 0 10px rgba(34, 217, 111, 0.55);
}
.status-live[data-state="online"] .status-live-icon {
  animation: bars-rise 0.5s var(--ease-out);
}
.status-live[data-state="online"] {
  text-shadow: 0 0 26px rgba(34, 217, 111, 0.28);
}
@keyframes bars-rise {
  from {
    transform: translateY(2px);
    opacity: 0.35;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.status-live[data-state="unavailable"] .status-live-icon i {
  animation: status-pulse 2.6s ease-in-out infinite;
}
.status-live[data-state="offline"] .status-live-label {
  color: #d9b0ab;
}
.status-live[data-state="offline"] .status-live-icon i {
  background: #c4635a;
}
.status-live[data-state="unavailable"] .status-live-label {
  color: #b3a08b;
}
.status-live[data-state="unavailable"] .status-live-icon i {
  background: #8a7763;
}
.status-live[data-state="unknown"] .status-live-icon i {
  animation: status-pulse 1.6s ease-in-out infinite;
}
.status-live-sep,
.status-live-count {
  color: var(--muted);
  font-weight: 400;
}
.status-live-count {
  font-variant-numeric: tabular-nums;
}
.status-live:hover .status-live-label {
  color: var(--mint);
}
.status-live:focus-visible {
  outline: 2px solid rgb(var(--brand3-rgb) / 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Header variant: a quiet pill rather than a hero readout, so the player count
   can sit next to the Donate and Discord buttons without competing for weight.
   It stays clickable — data-status-retry refreshes the count on demand. */
.status-live--chip {
  gap: 0.45rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0d0b13;
  font-size: 0.75rem;
}
.status-live--chip .status-live-icon i:nth-child(n) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
/* Bản hero xếp 4 thanh cột chân xuống đáy; trong pill chỉ còn một chấm
   nên phải buông nó giữa dòng chữ, không ghim đáy nữa. */
.status-live--chip .status-live-icon {
  align-items: center;
  height: 1em;
}
.status-live--chip .status-live-label,
.status-live--chip .status-live-sep,
.status-live--chip .status-live-count {
  font-size: 0.75rem;
}
.status-live--chip:hover .status-live-label {
  color: var(--paper);
}
/* ---------- Hero facts ---------- */
/* The live pill stays the only interactive element; the facts beside it are a
   quiet dot-separated line, so they read as context rather than more buttons. */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.15rem;
}
.hero-facts-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}
.hero-facts-list li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.hero-facts-list li + li::before {
  content: "·";
  margin-right: 0.15rem;
  color: #4a4560;
}
.hero-facts-list b {
  font-weight: 700;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
/* Hai số ngày là dữ liệu sống đọc từ máy chủ nên tô loang đúng bảng màu của site — ember
   sang hồng rồi sang xanh trời — để phân biệt với chữ tĩnh mà vẫn không lệch tông. Toàn bộ
   là biến theme, nên bật chế độ redstone tự đổi sang dải màu của chế độ đó. */
.hero-facts-list b.day-live {
  background: linear-gradient(96deg, var(--brand-2) 0%, var(--accent) 55%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}
/* ---------- Page transition ---------- */
/* Trang cũ tan, trang mới tới. Chỉ chạy trên opacity — thêm transform hay filter
   vào body là header fixed và các sub-nav sticky đổi containing block ngay giữa
   animation, lệch vị trí một nhịp là thấy liền.
   page-in gắn thẳng lên body, không chờ JS: site.js nằm cuối trang nên luôn có
   một nhịp paint trước khi nó kịp bật opacity, mà khởi động từ JS thì trang hiện
   nguyên khối một cái rồi mới mờ lại — chính là cái khựng. Đường ease-in-out và
   460ms để dải opacity đi đều tay; fill chỉ backwards để hết animation là body
   trả về lớp biasa, không giữ cả trang trong layer riêng.
   transition phải nằm ở style LUÔN có trước (gắn theo data-page-js), khai báo nó
   cùng nhịp với opacity:0 thì trình duyệt không khởi động transition nào cả. */
body {
  animation: page-in 0.46s cubic-bezier(0.42, 0, 0.58, 1) backwards;
}
html[data-page-js] body {
  transition: opacity 0.2s cubic-bezier(0.42, 0, 0.58, 1);
}
html[data-page-leaving] body {
  animation: none;
  opacity: 0;
}
@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  html[data-page-js] body {
    transition: none;
  }
}
@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 55s linear infinite;
  will-change: transform;
}
.ticker-track:has(.ticker-item:hover) {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2.5rem;
  padding: 0.35rem 2.5rem 0.35rem 0;
}
.ticker-item {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: 0 1px 14px rgba(8, 9, 15, 0.9);
  transition: color 0.22s var(--ease);
}
.ticker-item::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--brand);
  box-shadow: 0 0 10px rgb(var(--brand-rgb) / 0.8);
  transition: transform 0.24s var(--ease-out);
}
.ticker-item:hover {
  color: var(--paper);
}
.ticker-item:hover::before {
  transform: scale(1.6);
}
/* colour-coded bullets, like the sample's marquee */
.ticker-item:nth-child(4n + 2)::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgb(var(--accent-rgb) / 0.8);
}
.ticker-item:nth-child(4n + 4)::before {
  background: var(--sky);
  box-shadow: 0 0 10px rgb(var(--sky-rgb) / 0.8);
}
.ticker-item--mint {
  color: var(--mint);
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Address rows ---------- */
.addr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #17191e;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  color: var(--paper);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), transform 0.26s var(--ease-out);
}
.addr:hover {
  border-color: rgb(var(--brand-rgb) / 0.34);
  background: #1b1d26;
  transform: translateY(-1px);
}
.addr > span {
  min-width: 0;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.copy-btn:hover {
  color: var(--mint);
  background: rgb(var(--brand-rgb) / 0.1);
}

/* ---------- Join guide ---------- */
.join-gate {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid rgb(var(--brand3-rgb) / 0.18);
  border-radius: 1rem;
  background: radial-gradient(120% 100% at 100% 0%, rgb(var(--brand-rgb) / 0.13) 0%, transparent 60%),
    var(--panel);
  box-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.95);
}
.join-gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.join-gate-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.join-gate-flag {
  flex: none;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgb(var(--brand3-rgb) / 0.35);
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 0.1);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}
.join-gate-step {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: start;
  gap: 0.85rem;
  padding: 1rem 0;
}
.join-gate-step + .join-gate-step {
  border-top: 1px dashed rgba(243, 245, 248, 0.08);
}
.join-gate-num {
  padding-top: 0.1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--brand);
}
.join-gate-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--paper);
}
.join-gate-desc {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}
.join-gate-tag {
  flex: none;
  margin-top: 0.15rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid rgb(var(--brand-rgb) / 0.25);
  border-radius: 0.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brand);
}
.join-gate-step[data-state="locked"] .join-gate-num,
.join-gate-step[data-state="locked"] .join-gate-name {
  color: #85868b;
}
.join-gate-step[data-state="locked"] .join-gate-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-color: rgba(243, 245, 248, 0.14);
  color: #989a9e;
}
.join-gate-note {
  margin-top: 0.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #cdb29a;
}
.join-step {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--panel);
}
.join-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.join-step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--brand);
}
.join-step-tag {
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.join-step h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.join-step p {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}
.join-step-note {
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  font-size: 0.75rem !important;
  color: #b9a48c !important;
}
.join-step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint);
  transition: color 0.18s ease;
}
.join-step-link:hover {
  color: var(--paper);
}
.join-step-locked {
  background: rgba(13, 15, 23, 0.5);
}
.join-step-locked h3 {
  color: #c8c9cd;
}
.join-step-locked .join-step-num {
  color: #727378;
}
.join-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(var(--brand3-rgb) / 0.2);
  border-radius: 0.75rem;
  background: rgb(var(--brand-rgb) / 0.07);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #cfd0d4;
}
.join-callout > svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--brand);
}
.join-callout a {
  font-weight: 600;
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.join-connect {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--panel);
}
.join-connect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.join-connect-head h3 {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.join-connect-version {
  flex: none;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  color: var(--muted);
}
.join-connect-body {
  padding: 1.25rem;
}
.join-mini {
  display: grid;
  gap: 0.55rem;
}
.join-mini li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #c0c1c5;
}
.join-mini i {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  font-style: normal;
  color: var(--mint);
}

/* ---------- Article ---------- */
.article-body p {
  color: #cccdd1;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.15rem;
}
.article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--paper);
  margin: 2rem 0 0.8rem;
}
.article-body ul {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.article-body li {
  position: relative;
  padding-left: 1.25rem;
  color: #cccdd1;
  font-size: 0.95rem;
  line-height: 1.7;
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--brand);
}
.article-body a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Rules (home) ---------- */
.rules-intro {
  position: relative;
}
.rules-egg {
  position: absolute;
  top: 52%;
  right: -34px;
  width: 46px;
  image-rendering: pixelated;
  opacity: 0.9;
  pointer-events: none;
}
.rules-list {
  display: grid;
  align-content: start;
  gap: 1.05rem;
}
.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  color: #cccdd1;
  font-size: 0.9rem;
  line-height: 1.65;
}
.rule-row p {
  margin: 0;
}
.rule-num {
  flex: none;
  width: 34px;
  padding: 2px 0;
  border: 1px solid;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  text-align: center;
}
.rule-row:nth-child(3n + 1) .rule-num {
  color: var(--brand);
  border-color: rgb(var(--brand-rgb) / 0.4);
  background: rgb(var(--brand-rgb) / 0.07);
}
.rule-row:nth-child(3n + 2) .rule-num {
  color: var(--accent);
  border-color: rgb(var(--accent-rgb) / 0.4);
  background: rgb(var(--accent-rgb) / 0.07);
}
.rule-row:nth-child(3n) .rule-num {
  color: var(--ok);
  border-color: rgb(var(--ok-rgb) / 0.4);
  background: rgb(var(--ok-rgb) / 0.07);
}
.rules-banner {
  margin-top: 3.5rem;
  padding: 1.75rem;
  border: 1px solid rgb(var(--bad-rgb) / 0.32);
  border-radius: 1rem;
  background: radial-gradient(120% 150% at 8% 0%, rgb(var(--bad-rgb) / 0.16) 0%, transparent 58%),
    linear-gradient(180deg, #1b1416 0%, #121013 100%);
}
.rules-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgb(var(--bad-rgb) / 0.45);
  border-radius: 999px;
  background: rgb(var(--bad-rgb) / 0.1);
  color: #ff8e86;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rules-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bad);
}
@media (max-width: 1023px) {
  .rules-egg {
    display: none;
  }
}
@media (min-width: 640px) {
  .rules-banner {
    padding: 2.25rem 2.5rem;
  }
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq-item[open] {
  border-color: rgb(var(--brand-rgb) / 0.28);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 1.2rem 1.15rem;
  color: #c0c1c5;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Toast ---------- */
#toast-root {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 90;
  display: grid;
  gap: 0.5rem;
  width: max-content;
  max-width: 92vw;
  transform: translateX(-50%);
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgb(var(--brand-rgb) / 0.4);
  background: rgba(19, 16, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--paper);
  font-size: 0.8125rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 26px -14px rgb(var(--brand-rgb) / 0.9);
  animation: toast-in 0.34s var(--ease-out);
}
.toast.out {
  animation: toast-out 0.24s var(--ease) forwards;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* ---------- Scroll progress ---------- */
.fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: var(--grad-ember);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  /* promotes the bar so the per-frame scaleX never repaints its glow */
  will-change: transform;
  opacity: 0.85;
  box-shadow: 0 0 14px rgb(var(--brand-rgb) / 0.7);
}

/* ---------- Footer aurora ---------- */
#site-footer footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#site-footer footer > .mx-auto {
  position: relative;
  z-index: 1;
}
.foot-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  animation: foot-breathe 12s ease-in-out infinite;
}
.foot-aurora b {
  position: absolute;
  bottom: -130px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  opacity: 0.16;
  will-change: transform;
}
.foot-aurora b:nth-child(1) {
  left: 2%;
  /* gradient falloff instead of filter: blur(90px) — an always-animating blurred
     layer plus mix-blend-mode forced a full paint of the footer every frame */
  background: radial-gradient(
    closest-side,
    rgb(var(--brand-rgb)) 0%,
    rgb(var(--brand-rgb) / 0.74) 44%,
    rgb(var(--brand-rgb) / 0) 100%
  );
  animation: foot-aur-a 22s ease-in-out infinite;
}
.foot-aurora b:nth-child(2) {
  left: 38%;
  bottom: -160px;
  background: radial-gradient(
    closest-side,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-rgb) / 0.74) 44%,
    rgb(var(--accent-rgb) / 0) 100%
  );
  animation: foot-aur-b 27s ease-in-out infinite;
}
.foot-aurora b:nth-child(3) {
  right: 3%;
  background: radial-gradient(
    closest-side,
    rgb(var(--sky-rgb)) 0%,
    rgb(var(--sky-rgb) / 0.74) 44%,
    rgb(var(--sky-rgb) / 0) 100%
  );
  animation: foot-aur-c 24s ease-in-out infinite;
}
@keyframes foot-aur-a {
  0% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(92px, -44px) scale(1.16);
  }
  62% {
    transform: translate(38px, -14px) scale(1.04);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes foot-aur-b {
  0% {
    transform: translate(0, 0) scale(1.05);
  }
  34% {
    transform: translate(-82px, -48px) scale(1.22);
  }
  70% {
    transform: translate(34px, -20px) scale(1.08);
  }
  100% {
    transform: translate(0, 0) scale(1.05);
  }
}
@keyframes foot-aur-c {
  0% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-90px, -30px) scale(1.15);
  }
  74% {
    transform: translate(-30px, -8px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes foot-breathe {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- Imagery ---------- */
img {
  transition: transform 0.6s var(--ease-out), filter 0.4s var(--ease);
}
.group:hover img {
  filter: saturate(1.08) brightness(1.04);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker-track {
    width: 100%;
    animation: none;
  }
  .ticker-group {
    flex-wrap: wrap;
    row-gap: 0.6rem;
    padding: 0.35rem 1.25rem;
  }
  .ticker-group[aria-hidden="true"] {
    display: none;
  }
  .fx-aurora,
  .foot-aurora {
    animation: none !important;
  }
  /* a moving background is the motion being asked to stop: fall back to the still */
  .hero-vid {
    display: none;
  }
  .foot-aurora b {
    animation: none !important;
  }
  .grad-text {
    animation: none;
    /* longhands, not the `background` shorthand: the shorthand resets
       background-clip back to border-box, which paints the whole headline as a
       solid block because the glyphs themselves stay transparent */
    background-image: none;
    background-size: auto;
    -webkit-text-fill-color: var(--brand);
    color: var(--brand);
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Text-link form of the Discord cue, for places a block button would not fit.
   Last in the file so it outranks the mint link colours it replaces. */
.link-discord {
  color: #8b96f0;
}
.link-discord:hover {
  color: #aeb6ff;
}

/* Header actions fold into the mobile panel below sm. These live at the end of
   the sheet because .btn and .status-live both set display at the same
   specificity, and the last rule has to be the one that hides them. */
.nav-cta {
  display: none;
}
@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
  }
}
/* Six nav items plus three actions measure ~1054px, which is the whole header
   width at 1024. The pill waits for xl; the hero readout carries the count. */
@media (min-width: 1024px) {
  .nav-cta--xl {
    display: none;
  }
}
@media (min-width: 1280px) {
  .nav-cta--xl {
    display: inline-flex;
  }
}
/* Nothing in the header is allowed to break onto two lines: a wrapped nav label or
   button spills out of the fixed 4rem bar and reads as a broken page. */
.nav-logo,
.nav-link,
.nav-cta {
  flex: none;
  white-space: nowrap;
}
/* The account chip makes four actions possible at lg, and the header fits three.
   The whitelist CTA and the account outrank Donate, so Donate gives up that band. */
@media (min-width: 1024px) and (max-width: 1179px) {
  .nav-cta--hide-lg {
    display: none;
  }
}

/* ---------- Navbar account ---------- */
/* The login chip is quieter than the Discord CTA next to it: same shape and size,
   outlined instead of filled, so "đăng nhập" never competes with "Whitelist". */
.nav-acct {
  position: relative;
  flex: none;
}
.nav-acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 0.5rem;
  background: rgb(var(--paper-rgb) / 0.03);
  color: rgb(var(--paper-rgb) / 0.88);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.26s var(--ease-out),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.nav-acct-btn:hover {
  border-color: rgb(var(--paper-rgb) / 0.3);
  background: rgb(var(--paper-rgb) / 0.07);
  color: var(--paper);
  transform: translateY(-1px);
}
.nav-acct-btn:focus-visible {
  outline: 2px solid rgb(var(--brand-rgb) / 0.7);
  outline-offset: 2px;
}
/* Discord keeps its own hue here too, for the same reason as .btn-discord. */
.nav-acct-ico {
  display: inline-flex;
  color: #7a86f0;
}
.nav-acct-name {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-acct-avatar {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.35rem;
  background: var(--panel-2);
  object-fit: cover;
}
.nav-acct-avatar--init {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--paper-rgb) / 0.1);
  color: rgb(var(--paper-rgb) / 0.72);
  font-size: 0.7rem;
  font-weight: 800;
}
.nav-acct-chev {
  display: inline-flex;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}
.nav-acct.is-open .nav-acct-chev {
  transform: rotate(180deg);
}
.nav-acct-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 90;
  width: 15rem;
  padding: 0.35rem;
  border: 1px solid var(--line-2);
  border-radius: 0.7rem;
  background: #0c0e15;
  box-shadow: 0 26px 54px -22px rgb(0 0 0 / 0.8);
}
.nav-acct-menu[hidden] {
  display: none;
}
.nav-acct.is-open .nav-acct-menu {
  animation: acct-in 0.18s var(--ease-out);
}
@keyframes acct-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.nav-acct-id {
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem 0.55rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}
.nav-acct-id b {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--paper);
}
.nav-acct-id span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
}
.nav-acct-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.45rem;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  color: rgb(var(--paper-rgb) / 0.82);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-acct-item:hover {
  background: rgb(var(--paper-rgb) / 0.06);
  color: var(--paper);
}
.nav-acct-item--out {
  color: rgb(var(--bad-rgb) / 0.9);
}
.nav-acct-item--out:hover {
  background: rgb(var(--bad-rgb) / 0.1);
  color: rgb(var(--bad-rgb));
}
/* The drawer scrolls, so its menu cannot float: it opens in the flow instead, the
   same full-width row shape the rest of the drawer uses. */
.nav-acct--mm {
  width: 100%;
  margin-bottom: 0.6rem;
}
.nav-acct--mm .nav-acct-btn {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.5625rem;
  font-size: 0.94rem;
}
.nav-acct--mm .nav-acct-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
}
.nav-acct--mm .nav-acct-menu {
  position: static;
  width: auto;
  margin-top: 0.4rem;
  padding: 0.2rem;
  box-shadow: none;
  animation: none;
}
.nav-acct--mm .nav-acct-item {
  font-size: 0.9375rem;
  padding: 0.7rem 0.75rem;
}
/* Six nav items plus three actions already fill the header at 1024, so the fourth
   action gives up its words until xl: the chip keeps the icon, then the name. */
@media (max-width: 1279px) {
  .nav-acct--nav .nav-acct-name,
  .nav-acct--nav .nav-acct-label,
  .nav-acct--nav .nav-acct-chev {
    display: none;
  }
}
@media (max-width: 639px) {
  .nav-acct--nav {
    display: none;
  }
}
/* Last, so an account slot with nothing to show — unconfigured auth, or a visitor
   who never signed in on a site that cannot — leaves no gap in the header. */
.nav-acct:empty {
  display: none;
}

/* ---------- Đội ngũ điều hành: staff carousel with rotating personas ---------- */
.staff-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 3.5rem;
  align-items: stretch;
  background: radial-gradient(120% 150% at 92% 0%, rgb(var(--brand-rgb) / 0.07), transparent 55%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 2.5rem 3.5rem;
  min-height: 440px;
  overflow: hidden;
}
.staff-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.staff-name-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.staff-since {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}
.staff-name {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.staff-role {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--grad-ember);
  white-space: nowrap;
}
.staff-bio {
  font-size: 0.96rem;
  line-height: 1.78;
  color: rgb(var(--paper-rgb) / 0.72);
  /* 560px ≈ 75 ký tự/dòng, quá dày; hạ xuống để mỗi dòng ngắn và thoáng. */
  max-width: 500px;
  margin-bottom: 2.75rem;
  flex: 1 1 auto;
  /* staff-data.js viết bio bằng textContent nên "\n\n" chỉ thành đoạn khi
     phần tử này giữ dấu xuống dòng. */
  white-space: pre-line;
}
.staff-bio.is-placeholder {
  color: var(--muted);
  font-style: italic;
}
.staff-info.switching .staff-name-row,
.staff-info.switching .staff-since,
.staff-info.switching .staff-bio {
  opacity: 0;
  transform: translateY(6px);
}
.staff-name-row,
.staff-since,
.staff-bio {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.staff-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
/* Inventory hotbar: slots and arrows get MC pixel bevels (light top-left, dark bottom-right). */
.staff-arrow,
.staff-head {
  image-rendering: pixelated;
  border: none;
  border-radius: 0;
}
.staff-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  color: rgb(var(--paper-rgb) / 0.8);
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.07), inset -2px -2px 0 rgba(0, 0, 0, 0.55);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.08s var(--ease);
}
.staff-arrow:hover {
  background: rgb(var(--paper-rgb) / 0.1);
  color: var(--paper);
}
.staff-arrow:active {
  transform: translateY(1px);
  box-shadow: inset -2px -2px 0 rgba(255, 255, 255, 0.07), inset 2px 2px 0 rgba(0, 0, 0, 0.55);
}
.staff-heads {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: 2px;
  background: var(--well);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.55), inset -2px -2px 0 rgba(255, 255, 255, 0.06);
}
.staff-head {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: var(--panel-2);
  opacity: 0.55;
  filter: saturate(0.6);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.5), inset -2px -2px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.18s var(--ease), transform 0.12s var(--ease), filter 0.18s var(--ease);
}
.staff-head img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.staff-head:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.staff-head.active {
  opacity: 1;
  filter: none;
  box-shadow: inset 0 0 0 2px var(--staff-accent, var(--brand)), 0 0 10px -1px var(--staff-accent, var(--brand));
}
.staff-progress {
  height: 3px;
  margin-top: 1.25rem;
  background: rgb(var(--paper-rgb) / 0.06);
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.4);
}
.staff-progress-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--grad-ember);
}
.staff-progress-bar.run {
  animation: staffFill var(--staff-dur, 6000ms) linear forwards;
}
/* co giãn theo trục X chứ không đổi width: thanh này chạy lại mỗi lần lật
   thẻ trong băng, mà width thì kéo theo cả khối dưới nó dàn trang lại 60 lần/giây.
   Kết quả giống hệt vì dải màu vốn đã bị ép theo chiều dài thanh. */
@keyframes staffFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.staff-render {
  position: relative;
  /* Khung vuông ở mọi bề rộng: tỉ lệ máy quay của mô hình 3D mới không đổi. */
  align-self: center;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
}

/* 900–1180px: cột chữ bị bóp nghẹt nếu vẫn giữ khung 440px, nên thu gọn lại. */
@media (min-width: 901px) and (max-width: 1180px) {
  .staff-stage {
    grid-template-columns: 1fr minmax(220px, 340px);
    gap: 2.5rem;
    padding: 2rem 2.25rem;
  }
}
.staff-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.staff-particles i {
  position: absolute;
  bottom: 8%;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--staff-accent, var(--brand));
  box-shadow: 0 0 6px var(--staff-accent, var(--brand));
  opacity: 0;
  animation: staffRise var(--pdur, 7s) linear var(--pdelay, 0s) infinite;
}
@keyframes staffRise {
  0% {
    transform: translateY(24px) scale(1);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-150px) scale(0.5);
    opacity: 0;
  }
}
.staff-render img,
.staff-render canvas {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
  animation: staffBob 4.5s ease-in-out infinite;
  transition: opacity 0.3s var(--ease);
}
@keyframes staffBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
.staff-render.switching img,
.staff-render.switching canvas {
  opacity: 0;
}
/* Chỉ để nhìn: kéo/bánh xe trên model không được bắt lấy thao tác của trang. */
.staff-render canvas {
  pointer-events: none;
}

@media (max-width: 900px) {
  .staff-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem 1.25rem;
    min-height: 0;
  }
  .staff-render {
    order: -1;
    min-height: 0;
    height: auto;
    max-width: 300px;
    margin-inline: auto;
  }
  .staff-bio {
    margin-bottom: 1.5rem;
  }
}

/* Rotating personas are the whole point of the section, so a reduced-motion
   visitor gets the static profile and browses by hand. */
@media (prefers-reduced-motion: reduce) {
  .staff-render img,
  .staff-render canvas,
  .staff-particles {
    animation: none;
  }
  .staff-particles i {
    display: none;
  }
  .staff-name-row,
  .staff-since,
  .staff-bio,
  .staff-render img,
  .staff-render canvas {
    transition: none;
  }
}
