/* ============================================================
   ELOURERP — GTA V roleplay community site theme
   ============================================================ */

:root {
  --bg: #070c0c;
  --ink: #f2f5f3;
  --muted: rgba(226, 240, 235, 0.62);
  --pink: #2be6c8;
  --orange: #29c7ff;
  --purple: #7a5cff;
  --grad-sunset: linear-gradient(120deg, #29c7ff 0%, #2be6c8 45%, #7a5cff 100%);
  --font-display: "Big Shoulders Display", "Archivo", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Special Elite", "Consolas", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glow-teal: rgba(43, 230, 200, 0.45);
  --glow-violet: rgba(122, 92, 255, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* noir vignette — a case file under a single lamp, not an evenly-lit page.
   Scoped to the public marketing page only (bare <body>, no page class) —
   the staff/admin/MDT panels stay evenly lit for legibility. */
body:not(.intake-page)::before {
  content: "";
  position: fixed; inset: 0; z-index: 149; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 30%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
}

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

/* ============ LOADER — opening the case file ============ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader.is-done .loader__leaf { transition: none; }

/* two manila-folder covers, closed over the file, that swing open */
.loader__leaf {
  position: absolute; top: 0; bottom: 0; width: 50%;
  z-index: 3;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 26px),
    linear-gradient(135deg, #18130f 0%, #0d0a07 100%);
  animation-duration: 0.85s;
  animation-timing-function: var(--ease-out);
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
}
.loader__leaf--l { left: 0; border-right: 1px solid rgba(43, 230, 200, 0.3); animation-name: leafOpenL; }
.loader__leaf--r { right: 0; border-left: 1px solid rgba(43, 230, 200, 0.3); animation-name: leafOpenR; }
@keyframes leafOpenL { to { transform: translateX(-100%); } }
@keyframes leafOpenR { to { transform: translateX(100%); } }

.loader__mark { position: relative; z-index: 1; text-align: center; }
.loader__stamp {
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(11px, 1.4vw, 13px); letter-spacing: 0.1em;
  color: var(--pink);
  text-shadow: 0 0 8px var(--glow-teal);
  margin-bottom: 14px;
  white-space: nowrap; overflow: hidden;
  width: 0;
  animation: loaderType 0.6s steps(24) 0.55s forwards;
}
@keyframes loaderType { to { width: 25ch; } }
.loader__grand {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--muted);
  opacity: 0;
  animation: loaderFadeUp 0.5s var(--ease-out) 0.75s forwards;
}
@keyframes loaderFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loader__v {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(90px, 18vw, 200px);
  line-height: 1;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: scale(1.7) rotate(-6deg);
  filter: blur(6px);
  animation: loaderStamp 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.85s forwards;
}
@keyframes loaderStamp {
  0% { opacity: 0; transform: scale(1.7) rotate(-6deg); filter: blur(6px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
}
@keyframes loaderPulse { 50% { opacity: 0.45; } }

/* ============ GRAIN ============ */
.grain {
  position: fixed; inset: -50%; z-index: 150;
  pointer-events: none;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.7s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- case-file motion kit (additive utilities, no structural change) ---------- */
@keyframes noirPulse {
  0%, 100% { text-shadow: 0 0 10px var(--glow-teal), 0 0 26px var(--glow-teal); }
  50% { text-shadow: 0 0 18px var(--glow-teal), 0 0 46px var(--glow-violet); }
}
.pulse-glow { animation: noirPulse 3.6s ease-in-out infinite; }

.btn.pulse-glow {
  animation: none;
  box-shadow: 0 0 18px var(--glow-teal);
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 14px var(--glow-teal); }
  50% { box-shadow: 0 0 28px var(--glow-teal), 0 0 44px var(--glow-violet); }
}
.btn.pulse-glow { animation: btnPulse 3.6s ease-in-out infinite; }

@keyframes typeReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.typewrite.in-view {
  animation: typeReveal 0.7s steps(22) forwards;
}

/* case stamp — a standalone rubber-stamp badge, slams in on scroll-reveal
   (same visual idea as the retired corkboard's file__stamp, rebuilt as its
   own self-contained element with no JS state dependency) */
.stamp {
  display: inline-block;
  margin: 18px 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.18em; text-indent: 0.18em; text-transform: uppercase;
  color: var(--pink);
  border: 3px double var(--pink);
  border-radius: 8px;
  padding: 7px 18px;
  text-shadow: 0 0 10px var(--glow-teal);
  box-shadow: 0 0 22px rgba(43, 230, 200, 0.25), inset 0 0 14px rgba(43, 230, 200, 0.12);
  opacity: 0;
  transform: rotate(-8deg) scale(2.2);
}
.stamp.in-view {
  animation: stampSlamIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes stampSlamIn {
  from { opacity: 0; transform: rotate(-8deg) scale(2.2); }
  55% { opacity: 1; }
  to { opacity: 0.94; transform: rotate(-8deg) scale(1); }
}
.stamp--danger { color: #ff5f5f; border-color: #ff5f5f; text-shadow: 0 0 10px rgba(255, 95, 95, 0.5); box-shadow: 0 0 22px rgba(255, 95, 95, 0.22); }

/* exhibit tag — numbers the case files as you scroll down the city */
.exhibit {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(43, 230, 200, 0.28);
  border-radius: 3px;
  padding: 4px 11px;
  margin-bottom: 14px;
}
.exhibit b { color: var(--pink); font-weight: 400; }

/* taped corners — drop onto any existing card for the pinned-evidence look */
.taped { position: relative; }
.taped::before, .taped::after {
  content: "";
  position: absolute; top: -9px;
  width: 46px; height: 16px;
  background: rgba(226, 240, 235, 0.14);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}
.taped::before { left: 14px; transform: rotate(-7deg); }
.taped::after { right: 14px; transform: rotate(7deg); }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: 100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 3vw, 32px) 6px;
  border: 1px solid rgba(247, 242, 238, 0.10);
  border-radius: 16px;
  background: rgba(7, 12, 12, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.5s, top 0.5s;
}
.header.is-scrolled {
  top: 10px;
  background: rgba(6, 10, 10, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body::after {
  content: "";
  position: fixed; inset: 10px;
  border: 1px solid rgba(247, 242, 238, 0.07);
  border-radius: 22px;
  pointer-events: none;
  z-index: 210;
}
.header__logo {
  order: 1;
  padding-bottom: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: 0.03em;
  color: var(--ink); text-decoration: none;
}
.header__logo span {
  margin-left: 6px;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* ---------- evidence-tab nav strip — its own row, hung off a torn dashed edge ---------- */
.header__nav {
  order: 3;
  flex: 1 0 100%;
  display: flex; flex-wrap: wrap; gap: 3px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(43, 230, 200, 0.22);
}
.header__nav a {
  position: relative;
  display: inline-flex; align-items: center;
  color: var(--muted); text-decoration: none;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 0 0 9px 9px;
  background: rgba(247, 242, 238, 0.02);
  transition: color 0.3s, background 0.3s, transform 0.25s, box-shadow 0.3s;
}
.header__nav a:hover { color: var(--ink); background: rgba(43, 230, 200, 0.09); transform: translateY(2px); }
.header__nav a.is-current {
  color: var(--pink);
  background: rgba(43, 230, 200, 0.14);
  box-shadow: 0 6px 18px -4px var(--glow-teal);
  transform: translateY(2px);
}
.header__nav a.is-current::before {
  content: "";
  position: absolute; top: -10px; left: 14px; right: 14px; height: 1px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--glow-teal);
}
.header__nav a.header__login {
  color: var(--ink);
  border: 1px solid rgba(43, 230, 200, 0.45);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.25s;
}
.header__nav a.header__login:hover {
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
  border-color: transparent;
  color: #05100d;
}
.header__actions { order: 2; padding-bottom: 10px; display: flex; align-items: center; gap: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(247, 242, 238, 0.05);
  border: 1px solid rgba(245, 240, 234, 0.35);
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: border-color 0.35s, background 0.35s, transform 0.35s, box-shadow 0.35s;
}
.btn:hover {
  border-color: var(--pink); background: rgba(43, 230, 200, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--glow-teal);
}
.btn__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-sunset);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 50% { transform: scale(1.6); opacity: 0.6; } }
.btn--big { padding: 18px 36px; font-size: 14px; }

/* ---- background music control ---- */
.soundbar { position: relative; }
.soundbar__btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(247, 242, 238, 0.3);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.35s, background 0.35s;
}
.soundbar__btn:hover {
  border-color: var(--pink);
  background: rgba(45, 214, 184, 0.1);
}
.soundbar__bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 16px;
}
.soundbar__bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--grad-sunset);
  animation: eq 1.1s ease-in-out infinite;
  transform-origin: bottom;
}
.soundbar__bars i:nth-child(1) { height: 60%; animation-delay: 0s; }
.soundbar__bars i:nth-child(2) { height: 100%; animation-delay: 0.25s; }
.soundbar__bars i:nth-child(3) { height: 45%; animation-delay: 0.5s; }
.soundbar__bars i:nth-child(4) { height: 80%; animation-delay: 0.12s; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.3); } }
/* muted / not yet playing: bars freeze low and dim */
.soundbar.is-muted .soundbar__bars i {
  animation: none;
  transform: scaleY(0.3);
  opacity: 0.45;
}
.soundbar__pop {
  position: absolute;
  top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.95), rgba(14, 12, 20, 0.96)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.4), rgba(108, 92, 224, 0.18)) border-box;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s;
}
.soundbar:hover .soundbar__pop,
.soundbar__pop:hover,
.soundbar:focus-within .soundbar__pop {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.soundbar__pop input[type="range"] {
  width: 120px;
  accent-color: var(--pink);
  cursor: pointer;
}

.header__burger {
  display: flex; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.header__burger span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.4s var(--ease-out);
}
.header__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============ MENU ============ */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.menu__links a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.15;
  color: var(--ink); text-decoration: none;
  text-transform: uppercase;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.05s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.1s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.15s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.2s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.25s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: 0.3s; }
.menu__links a:hover {
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.menu__foot {
  position: absolute; bottom: 32px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}

/* ============ HERO ============ */
.splash { height: 240vh; position: relative; }
.splash__sticky {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
}
.splash__bg { position: absolute; inset: -6%; will-change: transform; }
.splash__bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 14s var(--ease-out) forwards;
}
.splash__bg video {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bg);
}
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1); } }
.splash__tint {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(45, 214, 184, 0.34) 0%, rgba(34, 184, 240, 0.16) 45%, rgba(93, 56, 189, 0.5) 100%);
  mix-blend-mode: overlay;
}
.splash__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,15,0.55) 0%, transparent 30%, transparent 55%, var(--bg) 100%),
    linear-gradient(100deg, rgba(8,6,12,0.6) 0%, transparent 42%);
}
.splash__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 62%, rgba(45, 214, 184, 0.3), transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(108, 92, 224, 0.22), transparent 70%);
  mix-blend-mode: screen;
}
.splash__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  text-align: left;
  padding: 0 7vw 14vh;
  will-change: transform, opacity;
}
/* the case file, pinned to the desk — frames the whole hero block */
.splash__casecard {
  position: relative;
  max-width: 720px;
  padding: 28px clamp(24px, 3vw, 40px) 32px;
  border: 1px solid rgba(43, 230, 200, 0.4);
  border-radius: 4px;
  background:
    linear-gradient(165deg, rgba(10, 18, 17, 0.92), rgba(4, 8, 8, 0.94));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 70px rgba(43, 230, 200, 0.12),
    inset 0 0 40px rgba(43, 230, 200, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.splash__casecard::before,
.splash__casecard::after {
  content: "";
  position: absolute; top: -11px;
  width: 68px; height: 22px;
  background: rgba(226, 240, 235, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.splash__casecard::before { left: 30px; transform: rotate(-6deg); }
.splash__casecard::after { right: 30px; transform: rotate(6deg); }
.splash__case {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--pink);
  text-shadow: 0 0 8px var(--glow-teal);
  margin-bottom: 14px;
}
.splash__kicker {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-left: 0.5em;
  border-left: 2px solid var(--pink);
}
.splash__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 10vw, 150px);
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  max-width: 900px;
}
.splash__title .line { display: block; overflow: hidden; }
.splash__title .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
body.is-loaded .splash__title .line:nth-child(1) > span { transition-delay: 0.10s; transform: none; }
body.is-loaded .splash__title .line:nth-child(2) > span { transition-delay: 0.22s; transform: none; }
body.is-loaded .splash__title .line:nth-child(3) > span { transition-delay: 0.34s; transform: none; }
.splash__five {
  font-style: normal;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(43, 230, 200, 0.35));
  animation: signGlow 3.6s ease-in-out infinite;
}
@keyframes signGlow {
  0%, 100% { filter: drop-shadow(0 8px 30px rgba(43, 230, 200, 0.35)); }
  50% { filter: drop-shadow(0 8px 44px rgba(43, 230, 200, 0.6)) drop-shadow(0 0 30px rgba(122, 92, 255, 0.3)); }
}
.splash__tag {
  margin-top: 26px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
}
.splash__scrollcue {
  position: absolute; bottom: 34px; right: 7vw; left: auto;
  transform: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.4em; text-indent: 0.4em; text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.5s;
}
.splash__scrollcue span {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  animation: cueDrop 1.8s var(--ease-out) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- launch countdown (hero) ---------- */
.launchcd { margin-top: 34px; }
.launchcd__label { margin-bottom: 12px; }
.launchcd__grid {
  display: flex; gap: clamp(10px, 1.6vw, 18px);
}
.launchcd__unit {
  position: relative;
  overflow: hidden;
  min-width: 76px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px clamp(12px, 1.6vw, 20px) 12px;
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.92), rgba(14, 12, 20, 0.94)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.4), rgba(108, 92, 224, 0.18) 45%, rgba(247, 242, 238, 0.07)) border-box;
}
.launchcd__unit b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px var(--glow-teal);
  margin-bottom: 8px;
  animation: neonFlicker 7s infinite;
}
.launchcd__unit:nth-child(2) b { animation-delay: 1.4s; }
.launchcd__unit:nth-child(3) b { animation-delay: 3.1s; }
.launchcd__unit:nth-child(4) b { animation-delay: 4.5s; }
.launchcd__unit span {
  display: block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 560px) {
  .launchcd__grid { gap: 8px; }
  .launchcd__unit { min-width: 60px; padding: 10px 8px 8px; }
}

/* ============ EXPANDING VIDEO ============ */
.widen { height: 300vh; position: relative; }
.widen__sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
}
.widen__label {
  position: absolute; z-index: 2;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 8vw, 110px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.widen__label em {
  font-style: normal;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.widen__frame {
  width: 100vw; height: 100vh;
  will-change: transform, border-radius;
  overflow: hidden;
  transform: scale(0.32);
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.clip-embed { position: relative; width: 100%; height: 100%; background: #000; }
.clip-embed__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 1;
  transition: opacity 1.2s;
}
.clip-embed.is-playing .clip-embed__poster { opacity: 0; }
.clip-embed iframe {
  position: absolute; top: 50%; left: 50%;
  /* oversize so the 16:9 frame cover-fills any viewport */
  width: max(100vw, 178vh); height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* scroll-scrubbed local video: scrolling drives the timeline */
.widen--scrub { height: 420vh; }
.scrub-clip {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
.scrub-tip {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.4em; text-indent: 0.4em; text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.6s;
  pointer-events: none;
}

/* ============ SECTION TYPE ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 10px var(--glow-teal);
  margin-bottom: 16px;
}
.display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 10vw, 150px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.display--sm { font-size: clamp(40px, 6vw, 88px); }
.display .bgtype { display: inline-block; overflow: hidden; vertical-align: top; }
.display .bgtype > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.display.in-view .bgtype > span { transform: none; }
.lede {
  max-width: 560px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--muted);
  margin-top: 22px;
}

/* generic fade-up reveal */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }

/* clip-mask image reveal */
.reveal-mask {
  position: relative;
  overflow: hidden;
  clip-path: inset(12% 6% 12% 6%);
  transition: clip-path 1.2s var(--ease-out);
  will-change: transform;
}
.reveal-mask.in-view { clip-path: inset(0 0 0 0); }
.reveal-mask figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.9);
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 10px;
  transition: border-color 0.4s, background 0.4s;
}
.reveal-mask figcaption::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-sunset);
}
.reveal-mask figcaption b {
  font-weight: 700;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reveal-mask:hover figcaption {
  border-color: rgba(45, 214, 184, 0.5);
  background: rgba(10, 10, 15, 0.75);
}

/* scroll-scrubbed video inside a masked tile */
.reveal-mask video.scrub-clip {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: var(--bg);
}

/* slow Ken Burns zoom while in view */
.slowzoom { overflow: hidden; height: 100%; }
.slowzoom img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.15);
  transition: transform 8s linear;
}
.in-view .slowzoom img { transform: scale(1); }

/* ============ PLACE SECTIONS ============ */
.zone { padding: clamp(90px, 14vh, 180px) clamp(20px, 5vw, 72px); }
.zone__intro { max-width: 900px; margin: 0 auto 8vh; text-align: center; }
.zone__intro .lede { margin-left: auto; margin-right: auto; }

/* ---- Welcome to Los Santos: layered cinematic collage ---- */
#zone-city { position: relative; }
#zone-city::before,
#zone-city::after {
  content: "";
  position: absolute;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
#zone-city::before {
  left: -14vw; top: 24%;
  background: radial-gradient(circle, rgba(45, 214, 184, 0.16), transparent 65%);
}
#zone-city::after {
  right: -14vw; bottom: 2%;
  background: radial-gradient(circle, rgba(108, 92, 224, 0.16), transparent 65%);
}
.bgtext {
  position: absolute;
  right: -4vw; top: 30%;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(120px, 17vw, 270px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 242, 238, 0.14);
  pointer-events: none;
  z-index: 0;
}
.bgtext--left { right: auto; left: -3vw; top: 8%; }

/* ---- editorial showcase rows: scrubbing video + explanatory text ---- */
.gallery {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: clamp(70px, 14vh, 160px);
  max-width: 1400px;
  margin: 0 auto;
}
.flipcard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  perspective: 1200px;
}
.flipcard .reveal-mask { clip-path: inset(14% 8% 14% 8% round 32px); }
.flipcard .reveal-mask.in-view { clip-path: inset(0 0 0 0 round 20px); }
.flipcard__media {
  position: relative;
  grid-column: 1 / 8;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.6s var(--ease-out), clip-path 1.2s var(--ease-out);
  will-change: transform, clip-path;
  transform-style: preserve-3d;
}
.flipcard__media:hover {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), 0 0 70px rgba(45, 214, 184, 0.22);
}
.flipcard__media .scrub-clip { transition: transform 0.9s var(--ease-out); }
.flipcard__media:hover .scrub-clip { transform: scale(1.05); }
.flipcard--flip .flipcard__media { grid-column: 6 / 13; }
.flipcard__text { grid-column: 8 / 13; position: relative; z-index: 1; }
.flipcard--flip .flipcard__text { grid-column: 1 / 6; grid-row: 1; }
.flipcard__num {
  position: absolute;
  top: -0.62em; left: -0.05em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(110px, 12vw, 190px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 242, 238, 0.14);
  pointer-events: none;
  z-index: -1;
}
.flipcard__text .lede { font-size: clamp(14px, 1.3vw, 16px); margin-top: 18px; }
.flipcard__tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.flipcard__tags span {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  padding: 9px 16px;
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 10px;
  transition: border-color 0.35s, color 0.35s;
}
.flipcard__tags span:hover { border-color: rgba(45, 214, 184, 0.55); color: var(--ink); }
.flipcard__line.reveal {
  display: block;
  height: 2px; width: min(240px, 60%);
  margin-top: 30px;
  background: var(--grad-sunset);
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) 0.25s;
}
.flipcard__line.reveal.in-view { transform: scaleX(1); }
/* video placeholder slot — hidden automatically once a real clip loads over it */
.flipcard__media .scrub-clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  /* a failed/missing source paints black in Chrome — stay hidden until
     the engine confirms real frames (adds .is-ready on loadedmetadata) */
  opacity: 0;
  transition: opacity 0.6s;
}
.flipcard__media .scrub-clip.is-ready { opacity: 1; }
.flipcard__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(-45deg, rgba(247, 242, 238, 0.025) 0 2px, transparent 2px 16px),
    radial-gradient(60% 60% at 50% 38%, rgba(45, 214, 184, 0.09), transparent 70%),
    linear-gradient(160deg, #17121f, #0d0b13);
}
.flipcard__ph-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(45, 214, 184, 0.45);
  color: var(--pink);
  font-size: 18px;
  text-indent: 3px;
  background: rgba(45, 214, 184, 0.08);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.flipcard__ph-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.flipcard__ph b {
  font-family: Consolas, monospace;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink);
  background: rgba(247, 242, 238, 0.07);
  border: 1px solid rgba(247, 242, 238, 0.14);
  border-radius: 8px;
  padding: 5px 12px;
}

/* scrub progress bar: fills as the clip plays with your scroll */
.flipcard__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--grad-sunset);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 3;
}
.zone--glow {
  background:
    radial-gradient(70% 40% at 80% 0%, rgba(45, 214, 184, 0.1), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(108, 92, 224, 0.1), transparent 70%),
    var(--bg);
}

/* ============ JOB / BUSINESS CARDS ============ */
#zone-jobs { position: relative; }
.workstats {
  display: flex; justify-content: center;
  gap: clamp(28px, 5vw, 70px);
  margin-top: 38px;
}
.workstats__item { text-align: center; }
.workstats__item b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.workstats__label {
  display: block;
  margin-top: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

.cards {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 26px);
  max-width: 1400px;
  margin: 0 auto;
}
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 32px);
  /* gradient ring border + soft interior wash */
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.92), rgba(14, 12, 20, 0.94)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.4), rgba(108, 92, 224, 0.18) 45%, rgba(247, 242, 238, 0.07)) border-box;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
              opacity 0.9s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px var(--glow-teal);
}
/* cursor spotlight — --mx/--my are set by JS as the pointer moves */
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
              rgba(43, 230, 200, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
/* hover ring */
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(45, 214, 184, 0.55);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
/* staircase rhythm on desktop */
.cards .card:nth-child(even) { margin-top: 30px; }
.card__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  margin-bottom: 18px;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--muted); }
.card__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 242, 238, 0.1);
}
.card__meta b {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card__meta span {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.card__tag {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #04120e;
  background: var(--pink);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

/* ============ HIRING TICKER (replaces old split-flap board) ============ */
.recruit { padding: 40px clamp(20px, 5vw, 72px); }
.recruit__head {
  display: flex; align-items: center; gap: 10px;
  max-width: 1400px; margin: 0 auto 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.recruit__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(45, 214, 184, 0.6);
  animation: hiringPulse 1.8s ease-out infinite;
}
@keyframes hiringPulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 214, 184, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(45, 214, 184, 0); }
}
.recruit__track {
  max-width: 1400px; margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.recruit__row {
  display: flex; gap: 14px; width: max-content;
  animation: hiringScroll 26s linear infinite;
}
@keyframes hiringScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.recruit__pill {
  flex: none;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  border: 1px solid rgba(247, 242, 238, 0.16);
  background: rgba(247, 242, 238, 0.04);
  border-radius: 999px;
  padding: 10px 22px;
  white-space: nowrap;
}

/* ============ CASE CARDS (replaces corkboard reel) ============ */
.files {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 26px);
  max-width: 1400px; margin: 40px auto 0;
}
.file-card {
  position: relative;
  border: 1px solid rgba(255, 90, 90, 0.18);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  background:
    linear-gradient(160deg, rgba(30, 14, 14, 0.9), rgba(16, 10, 10, 0.94)) padding-box,
    linear-gradient(160deg, rgba(255, 90, 90, 0.35), transparent 60%) border-box;
  border-color: transparent;
  transition: transform 0.3s, box-shadow 0.3s;
}
.file-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 90, 90, 0.22); }
.file-card__tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #2a0a0a;
  background: #ff8a8a;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.file-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 138, 138, 0.75);
  margin-bottom: 6px;
}
.file-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; color: var(--ink);
  margin: 0 0 10px;
}
.file-card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
@media (max-width: 1100px) { .files { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .files { grid-template-columns: 1fr; } }


/* ============ JOB REEL: pinned horizontal film strip ============ */
.workreel { height: 400vh; position: relative; }
.workreel__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  perspective: 1400px;
}
/* ---- work-site backdrop: blueprint grid, industrial skyline, work lights ---- */
.workreel__bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(to bottom,
    var(--bg) 0%, #14101f 40%, #241631 66%, #2b1a2e 78%, var(--bg) 100%);
}
/* drafting-table grid, slowly panning like an unrolled site plan */
.workreel__blueprint {
  position: absolute; inset: -60px;
  background-image:
    linear-gradient(rgba(247, 242, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 238, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(45, 214, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 214, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 280px 280px, 280px 280px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 45%, black, transparent 90%);
  mask-image: radial-gradient(85% 75% at 50% 45%, black, transparent 90%);
  animation: bpPan 40s linear infinite;
}
@keyframes bpPan { from { transform: translate(0, 0); } to { transform: translate(56px, 56px); } }
.workreel__cloud {
  position: absolute;
  height: 70px;
  border-radius: 50%;
  filter: blur(34px);
  will-change: transform;
}
.workreel__cloud--1 {
  left: 8vw; top: 22%;
  width: 36vw;
  background: rgba(34, 184, 240, 0.1);
  animation: cloudDrift 46s ease-in-out infinite alternate;
}
.workreel__cloud--2 {
  right: 4vw; top: 34%;
  width: 30vw;
  background: rgba(200, 190, 220, 0.08);
  animation: cloudDrift 58s ease-in-out infinite alternate-reverse;
}
.workreel__cloud--3 {
  left: 34vw; top: 12%;
  width: 26vw;
  background: rgba(45, 214, 184, 0.09);
  animation: cloudDrift 52s ease-in-out infinite alternate;
}
@keyframes cloudDrift { from { transform: translateX(0); } to { transform: translateX(6vw); } }
/* sodium work-light glow rising off the yard */
.workreel__glowband {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background:
    radial-gradient(40% 60% at 30% 100%, rgba(255, 170, 80, 0.16), transparent 70%),
    radial-gradient(36% 55% at 85% 100%, rgba(45, 214, 184, 0.1), transparent 70%),
    linear-gradient(to top, rgba(255, 150, 70, 0.08), transparent 65%);
}
/* industrial skyline: warehouses, cranes, pylon */
.workreel__skyline {
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 30%;
  color: #0b0714;
  filter: drop-shadow(0 -6px 30px rgba(0, 0, 0, 0.6));
}
.workreel__skyline .beam {
  fill: #ff4457;
  animation: lampBlink 2.2s steps(2, start) infinite;
}
.workreel__skyline .beam--slow { animation-duration: 3.4s; }
@keyframes lampBlink { 50% { fill-opacity: 0.15; } }
.workreel__skyline .win { fill: #ffb45c; fill-opacity: 0.5; }
.workreel__skyline .win--b {
  fill-opacity: 0.35;
  animation: winFlicker 7s ease-in-out 1.2s infinite;
}
.workreel__skyline .win--c {
  fill-opacity: 0.6;
  animation: winFlicker 9s ease-in-out 3.6s infinite;
}
@keyframes winFlicker {
  0%, 100% { fill-opacity: 0.55; }
  46% { fill-opacity: 0.55; }
  50% { fill-opacity: 0.1; }
  54% { fill-opacity: 0.55; }
}

/* cinematic edge fades: tiles emerge from darkness */
.workreel__sticky::before,
.workreel__sticky::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 14vw;
  z-index: 4;
  pointer-events: none;
}
.workreel__sticky::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.workreel__sticky::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
/* giant backdrop word counter-drifting behind the strip */
.workreel__word {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(110px, 15vw, 240px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 242, 238, 0.1);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
/* live HUD: reel counter + progress rail */
.workreel__hud {
  position: absolute;
  left: 50%; bottom: clamp(30px, 6vh, 60px);
  transform: translateX(-50%);
  display: flex; align-items: center;
  gap: clamp(16px, 2vw, 26px);
  z-index: 5;
}
.workreel__count {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-display); font-weight: 700;
}
.workreel__count b {
  font-weight: 400;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.workreel__count i {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.workreel__rail {
  position: relative;
  width: clamp(140px, 18vw, 260px);
  height: 3px;
  border-radius: 3px;
  background: rgba(247, 242, 238, 0.14);
  overflow: hidden;
}
.workreel__rail span {
  position: absolute; inset: 0;
  background: var(--grad-sunset);
  transform: scaleX(0);
  transform-origin: left;
}
/* intro caption: swaps as each shift takes focus */
.workreel__intro {
  position: absolute;
  top: clamp(30px, 5vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 980px);
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
/* soft dark plate so the type pops against the sun */
.workreel__intro::before {
  content: "";
  position: absolute;
  inset: -46px -70px;
  background: radial-gradient(62% 85% at 50% 42%, rgba(8, 6, 14, 0.72), transparent 75%);
  filter: blur(12px);
  z-index: -1;
}
.workreel__intro-eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.44em; text-indent: 0.44em; text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 18px rgba(45, 214, 184, 0.6);
  margin-bottom: 12px;
}
.workreel__intro-eyebrow::before,
.workreel__intro-eyebrow::after {
  content: "";
  width: clamp(30px, 4vw, 60px);
  height: 1px;
}
.workreel__intro-eyebrow::before {
  background: linear-gradient(to left, rgba(45, 214, 184, 0.8), transparent);
}
.workreel__intro-eyebrow::after {
  background: linear-gradient(to right, rgba(45, 214, 184, 0.8), transparent);
}
.workreel__intro-title {
  overflow: hidden;
  padding-bottom: 0.08em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--ink);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 12px 44px rgba(0, 0, 0, 0.85),
    0 0 70px rgba(45, 214, 184, 0.35);
}
/* words cascade with a springy overshoot; JS sets per-word delays */
.workreel__intro-title .w {
  display: inline-block;
  transform: translateY(0) rotate(0);
  transition: transform 0.62s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.workreel__intro-desc {
  margin-top: 10px;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  color: rgba(247, 242, 238, 0.88);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
  transition: opacity 0.45s, transform 0.5s var(--ease-out);
  transition-delay: 0.16s;
}
/* outgoing: words dive up through the mask, desc lifts away */
.workreel__intro.is-out .workreel__intro-title .w {
  transition: transform 0.34s var(--ease-out);
  transform: translateY(-135%) rotate(4deg);
}
.workreel__intro.is-out .workreel__intro-desc {
  opacity: 0;
  transform: translateY(-16px);
  transition-delay: 0s;
}
/* prep (no transition): park the new words below, tilted, ready to spring in */
.workreel__intro.is-prep .workreel__intro-title .w {
  transition: none;
  transform: translateY(135%) rotate(-6deg);
}
.workreel__intro.is-prep .workreel__intro-desc {
  transition: none;
  opacity: 0;
  transform: translateY(20px);
}

.workreel__track {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  gap: clamp(22px, 3vw, 48px);
  padding: 0 12vw;
  will-change: transform;
}
.workreel__item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(380px, 44vw, 640px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  will-change: transform, filter, clip-path;
}
.workreel__item .scrub-clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.6s;
}
.workreel__item .scrub-clip.is-ready { opacity: 1; }
.workreel__idx {
  position: absolute;
  right: -6px; bottom: -24px;
  font-family: var(--font-display); font-weight: 700;
  font-weight: 400;
  font-size: clamp(80px, 8vw, 120px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 242, 238, 0.16);
  pointer-events: none;
  z-index: 2;
}
.workreel .reveal-mask { clip-path: inset(10% 6% 10% 6% round 28px); }
.workreel .reveal-mask.in-view { clip-path: inset(0 0 0 0 round 20px); }

/* ---- crime reel: the rap sheet runs sideways under police-light glow ---- */
.workreel--crime { height: 760vh; }
.workreel--crime .workreel__sticky {
  background:
    radial-gradient(48% 42% at 12% 18%, rgba(255, 64, 96, 0.11), transparent 70%),
    radial-gradient(46% 40% at 88% 78%, rgba(84, 128, 255, 0.09), transparent 70%),
    linear-gradient(160deg, #140d1a 0%, #0e0913 60%, var(--bg) 100%);
}
.workreel--crime .workreel__item { width: clamp(340px, 38vw, 560px); }
.workreel--crime .workreel__intro-eyebrow {
  color: #ff4457;
  text-shadow: 0 0 18px rgba(255, 68, 87, 0.55);
}
.workreel--crime .workreel__intro-eyebrow::before {
  background: linear-gradient(to left, rgba(255, 68, 87, 0.8), transparent);
}
.workreel--crime .workreel__intro-eyebrow::after {
  background: linear-gradient(to right, rgba(255, 68, 87, 0.8), transparent);
}
.workreel--crime .flipcard__bar {
  background: linear-gradient(90deg, #ff4457, #2dd6b8, #6c5ce0);
}
.workreel--crime .workreel__count b {
  background: linear-gradient(120deg, #ff4457, #2dd6b8);
  -webkit-background-clip: text; background-clip: text;
}
.workreel--crime .workreel__rail span {
  background: linear-gradient(90deg, #ff4457, #2dd6b8, #6c5ce0);
}

/* ============ CRIME / AFTER DARK ============ */
.zone--crime {
  position: relative;
  background:
    radial-gradient(55% 40% at 12% 8%, rgba(255, 64, 96, 0.11), transparent 70%),
    radial-gradient(50% 42% at 90% 85%, rgba(108, 92, 224, 0.11), transparent 70%),
    var(--bg);
}
/* ---- evidence board: the whole docket slides sideways while pinned ---- */
.corkboard {
  height: 950vh;
  position: relative;
  /* break out of the section's padding: true edge-to-edge board */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.corkboard__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1.4px),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(160deg, #161019 0%, #100b15 55%, #0c0810 100%);
  background-size: 26px 26px, 43px 43px, 100% 100%, 100% 100%;
}
/* giant classified watermark behind everything */
.corkboard__confidential {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(120px, 16vw, 240px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 68, 87, 0.07);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}
/* pinned background props: sticky notes, photos, a map fragment */
.corkboard__props { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.propcard {
  position: absolute;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.propcard::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a95, #b81a2c 60%, #6e0d18);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.propcard--note {
  width: 110px; padding: 14px 12px;
  background: linear-gradient(170deg, rgba(216, 190, 110, 0.16), rgba(190, 160, 85, 0.1));
  border: 1px solid rgba(230, 205, 130, 0.12);
  font-family: Consolas, monospace;
  font-size: 10px; line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(238, 224, 180, 0.42);
  text-transform: uppercase;
}
.propcard--photo {
  width: 96px; height: 112px;
  background:
    linear-gradient(180deg, rgba(200, 205, 215, 0.1) 0 76%, transparent 76%),
    rgba(16, 13, 20, 0.9);
  border: 5px solid rgba(222, 226, 232, 0.1);
}
.propcard--map {
  width: 150px; height: 104px;
  background:
    linear-gradient(rgba(45, 214, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 214, 184, 0.08) 1px, transparent 1px),
    rgba(20, 16, 26, 0.85);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  border: 1px solid rgba(247, 242, 238, 0.1);
}
/* caution tape across the lower board */
.corkboard__tape {
  position: absolute;
  left: -4%; right: -4%;
  bottom: 9%;
  transform: rotate(-2.4deg);
  padding: 9px 0;
  background: rgba(226, 190, 64, 0.13);
  border-top: 1px solid rgba(226, 190, 64, 0.2);
  border-bottom: 1px solid rgba(226, 190, 64, 0.2);
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  color: rgba(20, 16, 8, 0.75);
  -webkit-text-stroke: 0.5px rgba(238, 210, 110, 0.4);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}
.corkboard__track {
  position: relative;
  display: flex; align-items: center;
  gap: clamp(30px, 4vw, 64px);
  padding: 0 12vw;
  will-change: transform;
  z-index: 1;
}
/* the red thread travels with the board */
.corkboard__thread {
  position: absolute;
  top: 0; left: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.corkboard__thread path {
  stroke: #ff4457;
  stroke-width: 2.5px;
  filter: drop-shadow(0 3px 7px rgba(255, 68, 87, 0.45));
}
.corkboard__track .file--reel {
  position: relative;
  left: auto; top: auto; right: auto; bottom: auto;
  flex: 0 0 auto;
  width: clamp(380px, 42vw, 640px);
  z-index: 1;
  /* depth of field: unfocused files sit dim and soft on the board */
  filter: brightness(0.42) saturate(0.6) blur(2px);
  transition: filter 0.65s var(--ease-out), transform 0.65s var(--ease-out),
              box-shadow 0.65s, clip-path 1.2s var(--ease-out);
}
/* the focused file lifts off the board, straightens, and faces you */
.corkboard__track .file--reel.is-active {
  filter: brightness(1) saturate(1) blur(0);
  transform: rotate(0deg) scale(1.1) translateY(-12px);
  box-shadow:
    0 46px 110px rgba(0, 0, 0, 0.78),
    0 0 70px rgba(255, 68, 87, 0.22);
  z-index: 4;
}
.file--reel.is-active .file__media { border-color: rgba(255, 68, 87, 0.4); }
.file--reel.is-active .file__label {
  color: var(--ink);
  background: #221420;
  border-color: rgba(255, 68, 87, 0.3);
}
.file--reel .file__pin { transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.file--reel.is-active .file__pin {
  transform: scale(1.3);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 68, 87, 0.8);
}
/* zigzag rhythm along the board */
.corkboard__track .file--reel:nth-of-type(even) { margin-top: 12vh; }
.corkboard__track .file--reel:nth-of-type(odd) { margin-bottom: 7vh; }
.corkboard__unit {
  position: absolute;
  top: 26px; left: clamp(20px, 4vw, 56px);
  font-family: Consolas, monospace;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.45);
  z-index: 6;
}
/* detective flashlight, JS-steered toward the active case */
.corkboard__light {
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--lx, 20%) var(--ly, 24%),
    rgba(255, 244, 216, 0.14), rgba(255, 244, 216, 0.05) 42%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}
.corkboard__string {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
}
.corkboard__string path {
  stroke: #ff4457;
  stroke-width: 2.5px;
  filter: drop-shadow(0 3px 7px rgba(255, 68, 87, 0.45));
}
.file {
  position: absolute;
  width: clamp(300px, 30vw, 480px);
  left: 5%; top: 10%;
  transform: rotate(var(--rot, 0deg));
  filter: brightness(0.5) saturate(0.7);
  transition: filter 0.6s, transform 0.6s var(--ease-out), box-shadow 0.6s;
  z-index: 1;
}
.file--r { left: auto; right: 5%; top: 42%; }
.file--b { left: 20%; top: auto; bottom: 6%; }
.file.is-active {
  filter: brightness(1) saturate(1);
  transform: rotate(var(--rot, 0deg)) scale(1.05);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.7);
  z-index: 4;
}
/* taped corners */
.file::before,
.file::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 72px; height: 22px;
  background: rgba(247, 242, 238, 0.13);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  z-index: 5;
}
.file::before { left: -20px; transform: rotate(-38deg); }
.file::after { right: -20px; transform: rotate(38deg); }
.file__pin {
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a95, #d61f33 55%, #7e0f1c);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.65);
  z-index: 6;
}
.file__label {
  font-family: Consolas, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.8);
  background: #191320;
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 9px 14px;
}
.file__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-radius: 0 0 10px 10px;
  background: #000;
}
.file__media .scrub-clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.file__media .scrub-clip.is-ready { opacity: 1; }
/* rubber stamp slams in when the case goes active */
.file__stamp {
  position: absolute;
  top: 44%; left: 50%;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: 0.22em; text-indent: 0.22em; text-transform: uppercase;
  color: #ff4457;
  border: 3px double #ff4457;
  border-radius: 8px;
  padding: 8px 20px;
  transform: translate(-50%, -50%) rotate(-12deg) scale(2.6);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 5;
}
.file.is-active .file__stamp {
  animation: stampSlam 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) 0.3s forwards;
}
@keyframes stampSlam {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2.6); }
  55% { opacity: 1; }
  to { opacity: 0.92; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
}
/* typewriter case note */
.filenote {
  position: absolute;
  right: 4%; top: 8%;
  width: min(360px, 27vw);
  padding: 20px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(27, 21, 32, 0.96), rgba(18, 13, 23, 0.97)) padding-box,
    linear-gradient(150deg, rgba(255, 68, 87, 0.45), rgba(108, 92, 224, 0.16) 60%, rgba(247, 242, 238, 0.07)) border-box;
  font-family: Consolas, monospace;
  z-index: 6;
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.filenote.is-swap { opacity: 0; transform: translateY(-12px); }
.filenote__file {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px dashed rgba(247, 242, 238, 0.22);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.filenote__file b { color: #ff4457; }
.filenote__file i { font-style: normal; color: var(--muted); }
.filenote__body {
  font-size: 13px; line-height: 1.75;
  color: rgba(247, 242, 238, 0.82);
}
.filenote__tags {
  margin-top: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink);
}

.offense__note {
  max-width: 640px;
  margin: clamp(60px, 10vh, 110px) auto 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 2;
  color: rgba(247, 242, 238, 0.45);
}

/* ============ EMERGENCY SERVICES ============ */
.units {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 14vh, 180px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(108, 92, 224, 0.12), transparent 70%),
    var(--bg);
}
/* ambient lightbar: soft blue + red pulses on opposite corners */
.units::before,
.units::after {
  content: "";
  position: absolute;
  width: 44vw; height: 44vw;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.units::before {
  left: -14vw; top: 8%;
  background: radial-gradient(circle, rgba(84, 128, 255, 0.14), transparent 65%);
  animation: svcPulse 5.5s ease-in-out infinite;
}
.units::after {
  right: -14vw; bottom: 4%;
  background: radial-gradient(circle, rgba(255, 64, 96, 0.13), transparent 65%);
  animation: svcPulse 5.5s ease-in-out 2.75s infinite;
}
@keyframes svcPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.units .zone__intro { position: relative; z-index: 1; max-width: 900px; margin: 0 auto 6vh; text-align: center; }
.units .zone__intro .lede { margin-left: auto; margin-right: auto; }
.units__list { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.unit {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(26px, 4.5vh, 44px) clamp(10px, 2vw, 28px);
  border-top: 1px solid rgba(247, 242, 238, 0.12);
  transition: background 0.5s var(--ease-out);
}
.unit:hover { background: linear-gradient(90deg, rgba(45, 214, 184, 0.07), transparent 70%); }
.unit:last-child { border-bottom: 1px solid rgba(247, 242, 238, 0.12); }
/* rows slide in from alternating sides */
.units__list > .reveal:not(.in-view) { transform: translateX(-46px); }
.units__list > .reveal:nth-child(even):not(.in-view) { transform: translateX(46px); }
.unit__idx {
  flex: 0 0 auto;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.1em;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.unit__arrow {
  flex: 0 0 auto;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  color: var(--pink);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.unit:hover .unit__arrow { opacity: 1; transform: none; }
.unit__text {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 8px clamp(24px, 4vw, 60px);
}
.unit__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px rgba(247, 242, 238, 0.8);
  transition: color 0.5s;
}
.unit:hover .unit__name {
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 2px transparent;
  color: transparent;
}
.unit__desc { max-width: 420px; font-size: 15px; color: var(--muted); }
.unit__tag {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 8px var(--glow-teal);
  border: 1px solid rgba(43, 230, 200, 0.4);
  border-radius: 10px;
  padding: 10px 18px;
  white-space: nowrap;
}
/* ---- live dispatch feed: HUD video + CAD log ---- */
.dispatch {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(16px, 2.5vw, 34px);
  align-items: stretch;
  max-width: 1240px;
  margin: 9vh auto 0;
  perspective: 1200px;
}
.dispatch__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  will-change: transform, clip-path;
}
.dispatch__frame .scrub-clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.6s;
}
.dispatch__frame .scrub-clip.is-ready { opacity: 1; }
.dispatch__hud {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  font-family: Consolas, monospace;
}
.dispatch__corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid rgba(247, 242, 238, 0.5);
}
.dispatch__corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.dispatch__corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.dispatch__corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.dispatch__corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.dispatch__rec {
  position: absolute; top: 22px; left: 56px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.3em;
  color: #ff5464;
}
.dispatch__rec i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b4e;
  box-shadow: 0 0 10px rgba(255, 59, 78, 0.9);
  animation: recBlink 1.1s steps(2, start) infinite;
}
@keyframes recBlink { 50% { opacity: 0; } }
.dispatch__cam {
  position: absolute; top: 24px; right: 56px;
  font-size: 11px; letter-spacing: 0.24em;
  color: rgba(247, 242, 238, 0.75);
}
.dispatch__time {
  position: absolute; bottom: 26px; right: 56px;
  font-size: 12px; letter-spacing: 0.2em;
  color: rgba(247, 242, 238, 0.85);
}
.dispatch__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom,
    rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.dispatch__log {
  display: flex; flex-direction: column;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: clamp(20px, 2.2vw, 30px);
  background:
    linear-gradient(160deg, rgba(20, 16, 28, 0.92), rgba(12, 10, 18, 0.95)) padding-box,
    linear-gradient(150deg, rgba(84, 128, 255, 0.4), rgba(255, 64, 96, 0.3) 60%, rgba(247, 242, 238, 0.08)) border-box;
}
.dispatch__log-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(247, 242, 238, 0.1);
  margin-bottom: 8px;
}
.dispatch__live {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink);
}
.dispatch__live i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b4e;
  box-shadow: 0 0 12px rgba(255, 59, 78, 0.9);
  animation: recBlink 1.1s steps(2, start) infinite;
}
.dispatch__freq {
  font-family: Consolas, monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted);
}
.dispatch__line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(247, 242, 238, 0.07);
}
.dispatch__line:last-of-type { border-bottom: 0; }
.dispatch__stamp {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: rgba(247, 242, 238, 0.5);
  padding-top: 2px;
}
.dispatch__unit {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(247, 242, 238, 0.25);
  color: var(--ink);
}
.dispatch__unit--pd { color: #7c9aff; border-color: rgba(124, 154, 255, 0.5); }
.dispatch__unit--ems { color: var(--pink); border-color: rgba(45, 214, 184, 0.5); }
.dispatch__unit--air { color: var(--purple); border-color: rgba(108, 92, 224, 0.5); }
.dispatch__unit--fire { color: var(--orange); border-color: rgba(34, 184, 240, 0.5); }
.dispatch__line p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.dispatch__cta {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.dispatch__cta a {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 214, 184, 0.5);
  transition: color 0.3s;
}
.dispatch__cta a:hover { color: var(--ink); }

/* ============ BUSINESSES ============ */
#zone-biz { position: relative; }
.shopcard {
  position: relative; z-index: 1;
  perspective: 1200px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.shopcard__img {
  position: relative;
  grid-column: 1 / 7; grid-row: 1 / 3;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.6s var(--ease-out), clip-path 1.2s var(--ease-out);
  will-change: transform;
}
.shopcard__img:hover {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), 0 0 70px rgba(45, 214, 184, 0.2);
}
.shopcard__img .scrub-clip { transition: opacity 0.6s, transform 0.9s var(--ease-out); }
.shopcard__img:hover .scrub-clip { transform: scale(1.05); }
.shopcard .card:nth-of-type(1) { grid-column: 7 / 10; }
.shopcard .card:nth-of-type(2) { grid-column: 10 / 13; }
.shopcard .card:nth-of-type(3) { grid-column: 7 / 10; }
.shopcard .card:nth-of-type(4) { grid-column: 10 / 13; }
.shopcard__img--right { grid-column: 4 / 13; grid-row: auto; aspect-ratio: 21 / 9; margin-top: 4vh; }
.lede strong {
  font-weight: 700;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zone__intro--sub { margin: clamp(80px, 13vh, 150px) auto 5vh; }

/* glass stat bar */
.metricbar {
  display: inline-flex;
  align-items: stretch;
  margin-top: 38px;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.9), rgba(14, 12, 20, 0.92)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.4), rgba(108, 92, 224, 0.18) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.metricbar__item {
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(18px, 2.4vw, 28px) clamp(22px, 3.4vw, 52px);
  text-align: center;
}
.metricbar__item + .metricbar__item { border-left: 1px solid rgba(247, 242, 238, 0.1); }
.metricbar__item b {
  font-family: var(--font-display); font-weight: 700;
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metricbar__item > span {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

/* application steps — glass panel with circled milestones */
.steps {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 26px);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) clamp(16px, 2.5vw, 40px);
  border: 1px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.9), rgba(14, 12, 20, 0.92)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.35), rgba(108, 92, 224, 0.16) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 clamp(10px, 2vw, 30px);
}
.step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -16px; top: 28px;
  font-size: 24px;
  color: var(--pink);
  opacity: 0.7;
}
.step b {
  display: grid; place-items: center;
  width: 82px; height: 82px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(45, 214, 184, 0.4);
  /* fill lives in the shadow so background-clip:text can't erase it */
  box-shadow: inset 0 0 0 100px rgba(45, 214, 184, 0.07);
  font-family: var(--font-display); font-weight: 700;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 14px 0 10px;
}
.step p { font-size: 14px; color: var(--muted); }

/* launch venue roster — bento grid, feature card fills the last row */
.locales {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 2vw, 26px);
  max-width: 1200px;
  margin: 0 auto;
}
.locale {
  grid-column: span 2;
  display: flex; flex-direction: column;
  align-items: flex-start;
}
.locale__mono {
  position: absolute;
  right: -10px; bottom: -26px;
  font-family: var(--font-display); font-weight: 700;
  font-weight: 400;
  font-size: clamp(88px, 8vw, 124px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 242, 238, 0.09);
  pointer-events: none;
  z-index: 0 !important;
  transition: -webkit-text-stroke-color 0.5s;
}
.locale:hover .locale__mono { -webkit-text-stroke-color: rgba(43, 230, 200, 0.32); }
.locale__no {
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  color: rgba(242, 245, 243, 0.45);
}
.locale h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-right: 44px;
}
.locale__meta {
  margin: 8px 0 0;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.locale__hook {
  margin: 12px 0 20px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}
.locale > .locale__status { margin-top: auto; }
.locale__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(45, 214, 184, 0.45);
  border-radius: 10px;
  padding: 8px 14px;
}
.locale__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-sunset);
  animation: dotPulse 2s ease-in-out infinite;
}
.locale__status--mgmt {
  color: var(--orange);
  border-color: rgba(34, 184, 240, 0.5);
}
.locale__note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.locale--special {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 36px);
  align-items: start;
  background:
    linear-gradient(160deg, rgba(30, 22, 16, 0.92), rgba(16, 12, 20, 0.94)) padding-box,
    linear-gradient(150deg, rgba(34, 184, 240, 0.55), rgba(108, 92, 224, 0.2) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.locale--special .locale__main { display: flex; flex-direction: column; align-items: flex-start; }
.locale--special .locale__main .locale__status { margin-top: 18px; }
.locale--special .locale__side .flipcard__tags { margin-top: 16px; }
.locale--special:hover .locale__mono { -webkit-text-stroke-color: rgba(34, 184, 240, 0.3); }

/* ---- nightclub stage: neon sign, laser sweep, spotlight triptych ---- */
.floorshow {
  height: 380vh;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.floorshow__sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3.5vh;
  background:
    radial-gradient(60% 50% at 50% 8%, rgba(45, 214, 184, 0.1), transparent 70%),
    linear-gradient(170deg, #130b19 0%, #0b0710 70%, var(--bg) 100%);
}
.floorshow__laser {
  position: absolute;
  top: -32%; left: -50vw;
  width: 200vw; height: 220vh;
  transform-origin: 50% 0;
  pointer-events: none;
  background: conic-gradient(from 0deg at 50% 0%,
    transparent 0deg, rgba(45, 214, 184, 0.055) 4deg, transparent 8deg,
    transparent 20deg, rgba(45, 214, 184, 0.04) 24deg, transparent 28deg);
  animation: laserSweep 11s ease-in-out infinite alternate;
}
.floorshow__laser--r {
  background: conic-gradient(from 0deg at 50% 0%,
    transparent 0deg, rgba(0, 229, 255, 0.05) 4deg, transparent 8deg,
    transparent 18deg, rgba(0, 229, 255, 0.035) 22deg, transparent 26deg);
  animation: laserSweepR 13s ease-in-out infinite alternate;
}
@keyframes laserSweep { from { transform: rotate(-20deg); } to { transform: rotate(16deg); } }
@keyframes laserSweepR { from { transform: rotate(18deg); } to { transform: rotate(-14deg); } }
.floorshow__glow {
  position: absolute;
  left: 50%; bottom: 4%;
  width: 64vw; height: 26vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 100%, rgba(45, 214, 184, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.floorshow__head { position: relative; text-align: center; z-index: 2; padding: 0 20px; }
.floorshow__no {
  font-family: Consolas, monospace;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}
.floorshow__neon {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffdcec;
  text-shadow:
    0 0 6px rgba(45, 214, 184, 0.9),
    0 0 20px rgba(45, 214, 184, 0.7),
    0 0 48px rgba(45, 214, 184, 0.5),
    0 0 100px rgba(255, 45, 130, 0.42);
  animation: neonFlicker 5.4s infinite;
}
@keyframes neonFlicker {
  0%, 89%, 100% { opacity: 1; }
  90% { opacity: 0.5; }
  91% { opacity: 1; }
  95% { opacity: 0.72; }
  95.6% { opacity: 1; }
}
.floorshow__sub {
  max-width: 540px;
  margin: 12px auto 16px;
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--muted);
}
/* amenity cards: what an owner actually runs */
.floorshow__feats {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: 4px;
}
.hlfeat {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px;
  width: clamp(140px, 12vw, 172px);
  padding: 14px 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(26, 18, 32, 0.85), rgba(15, 11, 21, 0.9)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.4), rgba(108, 92, 224, 0.16) 60%, rgba(247, 242, 238, 0.06)) border-box;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, opacity 0.9s var(--ease-out);
}
.hlfeat:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 34px rgba(45, 214, 184, 0.22);
}
.hlfeat svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(45, 214, 184, 0.45));
}
.hlfeat b {
  font-family: var(--font-display); font-weight: 700;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.hlfeat span {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}
/* the ownership pitch: earn the keys, keep the keys */
.floorshow__apply {
  display: inline-flex; align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.floorshow__apply-pill {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(45, 214, 184, 0.5);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 0 22px rgba(45, 214, 184, 0.18);
}
.floorshow__apply-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-sunset);
  animation: dotPulse 2s ease-in-out infinite;
}
.floorshow__stage {
  position: relative;
  z-index: 2;
  width: min(94vw, 1280px);
  height: clamp(240px, 38vh, 400px);
  perspective: 1500px;
}
.floorshow__card {
  position: absolute;
  top: 0; left: 50%;
  width: clamp(320px, 40vw, 620px);
  aspect-ratio: 16 / 9;
  margin-left: calc(clamp(320px, 40vw, 620px) / -2);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(45, 214, 184, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  transition: transform 0.85s var(--ease-out), filter 0.85s, border-color 0.85s;
  will-change: transform;
  /* dance-floor reflection */
  -webkit-box-reflect: below 14px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.13));
}
.floorshow__card .scrub-clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.floorshow__card .scrub-clip.is-ready { opacity: 1; }
.floorshow__card.is-center {
  transform: translateX(0) translateZ(0) rotateY(0);
  filter: brightness(1) saturate(1);
  border-color: rgba(45, 214, 184, 0.55);
  z-index: 3;
}
.floorshow__card.is-left {
  transform: translateX(-58%) translateZ(-240px) rotateY(28deg);
  filter: brightness(0.4) saturate(0.65);
  z-index: 1;
}
.floorshow__card.is-right {
  transform: translateX(58%) translateZ(-240px) rotateY(-28deg);
  filter: brightness(0.4) saturate(0.65);
  z-index: 1;
}
.floorshow__eq {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 6px;
  height: 38px;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
}
.floorshow__eq i {
  width: 5px; height: 100%;
  border-radius: 3px;
  background: linear-gradient(to top, var(--pink), var(--purple));
  transform-origin: bottom;
  animation: eqDance 0.9s ease-in-out infinite alternate;
}
.floorshow__eq i:nth-child(4n+1) { animation-duration: 0.7s; animation-delay: 0.1s; }
.floorshow__eq i:nth-child(4n+2) { animation-duration: 1.1s; animation-delay: 0.35s; }
.floorshow__eq i:nth-child(4n+3) { animation-duration: 0.8s; animation-delay: 0.55s; }
.floorshow__eq i:nth-child(5n) { animation-duration: 1.3s; animation-delay: 0.2s; }
@keyframes eqDance { from { transform: scaleY(0.12); } to { transform: scaleY(1); } }

/* ---- diner stage (restaurants): order rail, hanging tickets, warm light ---- */
.floorshow--diner { height: 560vh; }
.floorshow--diner .floorshow__sticky {
  background:
    radial-gradient(60% 50% at 50% 8%, rgba(45, 214, 184, 0.09), transparent 70%),
    linear-gradient(170deg, #170f1c 0%, #0f0a14 70%, var(--bg) 100%);
}
.floorshow__no--diner { color: var(--pink); }
.eatery__sign {
  display: inline-block;
  padding: 10px 44px 14px;
  border: 2px solid rgba(45, 214, 184, 0.38);
  border-top-style: dotted; border-bottom-style: dotted;
  border-top-width: 7px; border-bottom-width: 7px;
  border-radius: 18px;
  background: rgba(22, 13, 23, 0.72);
  box-shadow: 0 0 40px rgba(45, 214, 184, 0.2), inset 0 0 30px rgba(108, 92, 224, 0.07);
  animation: signPulse 4.6s ease-in-out infinite;
}
@keyframes signPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(45, 214, 184, 0.2), inset 0 0 30px rgba(108, 92, 224, 0.07); }
  50% { box-shadow: 0 0 70px rgba(45, 214, 184, 0.34), inset 0 0 40px rgba(108, 92, 224, 0.12); }
}
.floorshow__neon--diner {
  color: #ffe6ef;
  text-shadow:
    0 0 6px rgba(255, 150, 130, 0.9),
    0 0 20px rgba(45, 214, 184, 0.7),
    0 0 48px rgba(45, 214, 184, 0.45),
    0 0 96px rgba(108, 92, 224, 0.4);
}
/* pendant light cones */
.eatery__lamp {
  position: absolute;
  top: 0;
  width: 30vw; height: 62vh;
  background: linear-gradient(to bottom, rgba(255, 140, 190, 0.08), transparent 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  pointer-events: none;
  animation: lampSway 8s ease-in-out infinite alternate;
}
.eatery__lamp--l { left: 8%; }
.eatery__lamp--r { right: 8%; animation-delay: 2.2s; animation-direction: alternate-reverse; }
@keyframes lampSway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
/* kitchen steam drifting up */
.eatery__steam {
  position: absolute;
  bottom: 8%;
  width: 70px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 244, 0.06), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  animation: steamRise 7s ease-in infinite;
}
.eatery__steam--1 { left: 30%; }
.eatery__steam--2 { left: 52%; animation-delay: 2.4s; }
.eatery__steam--3 { left: 68%; animation-delay: 4.6s; }
@keyframes steamRise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-42vh) scale(1.5); opacity: 0; }
}
/* the order rail */
.floorshow__stage--rail { perspective: none; }
.eatery__rail {
  position: absolute;
  top: 2px; left: 3%; right: 3%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(210, 214, 224, 0.28) 18%,
    rgba(210, 214, 224, 0.28) 82%, transparent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.floorshow--diner .floorshow__card {
  top: 34px;
  transform-origin: 50% -30px; /* pivot from the rail: cards hang and swing */
  -webkit-box-reflect: none;
  border-color: rgba(45, 214, 184, 0.28);
  overflow: visible;
}
.floorshow--diner .floorshow__card .scrub-clip,
.floorshow--diner .floorshow__card .flipcard__bar { border-radius: 0 0 13px 13px; }
.floorshow--diner .floorshow__card .scrub-clip { border-radius: 13px; }
.floorshow--diner .floorshow__card.is-center {
  transform: translateX(0) rotate(0) scale(1);
  animation: ticketSway 5.5s ease-in-out infinite alternate;
  border-color: rgba(45, 214, 184, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 60px rgba(45, 214, 184, 0.18);
}
@keyframes ticketSway { from { rotate: -0.5deg; } to { rotate: 0.5deg; } }
.floorshow--diner .floorshow__card.is-left {
  transform: translateX(-64%) rotate(-4.5deg) scale(0.84);
  filter: brightness(0.42) saturate(0.65);
}
.floorshow--diner .floorshow__card.is-right {
  transform: translateX(64%) rotate(4.5deg) scale(0.84);
  filter: brightness(0.42) saturate(0.65);
}
.floorshow--diner .floorshow__card.is-lfar {
  transform: translateX(-118%) rotate(-7deg) scale(0.7);
  filter: brightness(0.25) saturate(0.5);
  z-index: 0;
}
.floorshow--diner .floorshow__card.is-rfar {
  transform: translateX(118%) rotate(7deg) scale(0.7);
  filter: brightness(0.25) saturate(0.5);
  z-index: 0;
}
/* clothespins gripping the rail */
.eatery__clip {
  position: absolute;
  top: -30px;
  width: 11px; height: 32px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(186, 178, 208, 0.5), rgba(104, 96, 128, 0.5));
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 3;
}
.eatery__clip--l { left: 20%; }
.eatery__clip--r { right: 20%; }
/* the paper order ticket header */
.eatery__ticket {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 8px 14px;
  font-family: Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 224, 240, 0.85);
  background: rgba(26, 16, 27, 0.88);
  border-bottom: 1px dashed rgba(45, 214, 184, 0.32);
  border-radius: 13px 13px 0 0;
  z-index: 2;
}
/* diner checker strip along the floor */
.eatery__checker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30px;
  background: repeating-conic-gradient(rgba(247, 242, 238, 0.07) 0% 25%, transparent 0% 50%) 0 0 / 30px 30px;
  border-top: 1px solid rgba(247, 242, 238, 0.08);
  opacity: 0.7;
  pointer-events: none;
}
.floorshow--diner .flipcard__bar {
  background: linear-gradient(90deg, #22b8f0, #ff7e58, #2dd6b8);
}

/* ---- garage stage (mechanics): steel plate, concrete bays, hydraulic lift ---- */
.floorshow--mech { height: 470vh; }
.floorshow--mech .floorshow__sticky {
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(45, 214, 184, 0.07), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1.5px),
    linear-gradient(175deg, #141018 0%, #0e0a13 65%, var(--bg) 100%);
  background-size: 100% 100%, 30px 30px, 100% 100%;
}
.floorshow__no--mech { color: var(--purple); }
/* concrete work floor with hazard chevrons and oil stains */
.garage__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 21vh;
  background:
    radial-gradient(160px 34px at 24% 40%, rgba(0, 0, 0, 0.5), transparent 75%),
    radial-gradient(220px 40px at 71% 66%, rgba(0, 0, 0, 0.42), transparent 75%),
    radial-gradient(120px 26px at 52% 24%, rgba(0, 0, 0, 0.36), transparent 75%),
    linear-gradient(to bottom, #1b1622 0%, #120e18 55%, var(--bg) 100%);
  z-index: 0;
}
.garage__floor::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: repeating-linear-gradient(45deg,
    rgba(45, 214, 184, 0.28) 0 14px, rgba(14, 11, 18, 0.9) 14px 28px);
  opacity: 0.5;
}
/* brushed steel shop plate */
.garage__plate {
  position: relative;
  display: inline-block;
  padding: 14px clamp(30px, 4vw, 60px) 18px;
  border-radius: 10px;
  border: 1px solid rgba(210, 205, 226, 0.22);
  background:
    linear-gradient(100deg, #262330 0%, #3b3847 26%, #232028 52%, #363340 78%, #26232e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 6px rgba(0, 0, 0, 0.5),
    0 18px 50px rgba(0, 0, 0, 0.55);
}
.garage__bolt {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8d4e6, #8b8798 55%, #4e4a5c);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.garage__bolt--tl { top: 7px; left: 8px; }
.garage__bolt--tr { top: 7px; right: 8px; }
.garage__bolt--bl { bottom: 7px; left: 8px; }
.garage__bolt--br { bottom: 7px; right: 8px; }
.floorshow__neon--mech {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  background: linear-gradient(180deg, #f4f2fa 20%, #b8b4c8 55%, #8d89a0 80%, #d8d4e6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  animation: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
}
/* pink LED strip under the plate */
.garage__led {
  display: block;
  width: 62%;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--grad-sunset);
  box-shadow: 0 0 16px rgba(45, 214, 184, 0.8), 0 0 40px rgba(45, 214, 184, 0.4);
  animation: ledPulse 3.4s ease-in-out infinite;
}
@keyframes ledPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(45, 214, 184, 0.8), 0 0 40px rgba(45, 214, 184, 0.4); opacity: 1; }
  50% { box-shadow: 0 0 26px rgba(45, 214, 184, 1), 0 0 60px rgba(108, 92, 224, 0.55); opacity: 0.85; }
}
/* the bays: four cards resting on the shop floor */
.floorshow__stage--bays {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 30px);
  padding: 0 3vw 56px;
  position: relative;
  z-index: 1;
}
.garage__card {
  position: relative;
  top: auto; left: auto;
  margin-left: 0;
  -webkit-box-reflect: none;
  flex: 0 0 auto;
  width: clamp(230px, 22.5vw, 350px);
  aspect-ratio: 16 / 9;
  overflow: visible;
  border: 1px solid rgba(210, 205, 226, 0.16);
  border-radius: 12px;
  background: #0c0912;
  filter: brightness(0.5) saturate(0.7);
  transition:
    transform 0.75s cubic-bezier(0.3, 1.35, 0.45, 1),
    filter 0.6s var(--ease-out),
    border-color 0.6s, box-shadow 0.6s;
}
/* bays don't carousel — they hold their spot on the floor */
.garage__card.is-left,
.garage__card.is-right,
.garage__card.is-lfar,
.garage__card.is-rfar {
  transform: none;
  opacity: 1;
  filter: brightness(0.5) saturate(0.7);
}
.garage__card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 11px;
  opacity: 0;
  transition: opacity 0.6s;
}
.garage__card video.is-ready { opacity: 1; }
.garage__card .flipcard__bar { border-radius: 0 0 11px 11px; }
/* the hydraulic lift: focused bay rises on its posts, underglow kicks on */
.garage__card.is-center {
  transform: translateY(-52px);
  filter: brightness(1) saturate(1);
  border-color: rgba(45, 214, 184, 0.45);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 55px rgba(45, 214, 184, 0.14);
  z-index: 2;
}
.garage__post {
  position: absolute;
  top: 100%;
  width: 13px;
  height: 52px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #37343f 0%, #938fa2 45%, #4e4a5a 100%);
  box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.5);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.75s cubic-bezier(0.3, 1.35, 0.45, 1);
}
.garage__post--l { left: 16%; }
.garage__post--r { right: 16%; }
.garage__card.is-center .garage__post { transform: scaleY(1); }
/* pink underglow beneath the lifted bay */
.garage__glow {
  position: absolute;
  left: 5%; right: 5%;
  bottom: -12px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(45, 214, 184, 0.6), rgba(108, 92, 224, 0.25) 60%, transparent);
  filter: blur(9px);
  opacity: 0;
  transition: opacity 0.7s;
  pointer-events: none;
}
.garage__card.is-center .garage__glow { opacity: 1; }
.garage__baytag {
  position: absolute;
  top: -30px; left: 0;
  font-family: Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 234, 248, 0.7);
  background: linear-gradient(100deg, #2a2733, #383542);
  border: 1px solid rgba(210, 205, 226, 0.18);
  border-radius: 6px;
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.garage__card.is-center .garage__baytag { opacity: 1; transform: none; }

/* market ticker */
.bscroll--ticker {
  border: 0;
  padding: clamp(50px, 9vh, 90px) 0 0;
}
.bscroll--ticker .bscroll__track span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-text-stroke: 0;
}
.bscroll--ticker .bscroll__track em {
  font-style: normal;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ MARQUEE ============ */
.bscroll {
  overflow: hidden;
  padding: clamp(30px, 6vh, 70px) 0;
  border-top: 1px solid rgba(245, 240, 234, 0.08);
  border-bottom: 1px solid rgba(245, 240, 234, 0.08);
}
.bscroll__track {
  display: flex; white-space: nowrap;
  will-change: transform;
}
.bscroll__track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(60px, 9vw, 140px);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 240, 234, 0.25);
  paint-order: stroke;
}

/* ============ CHARACTERS ============ */
.personas { position: relative; }
.personas__heading {
  text-align: center;
  padding: clamp(90px, 14vh, 180px) 20px clamp(60px, 10vh, 120px);
}
.persona {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.persona__media { position: absolute; inset: 0; will-change: transform; }
.persona__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.persona__media video {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bg);
}
.persona__dim {
  position: absolute; inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}
.persona__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 15, 0.92) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(10, 10, 15, 0.5) 0%, transparent 25%);
}
.persona__name {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(80px, 17vw, 260px);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px rgba(245, 240, 234, 0.85);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  will-change: transform;
}
.persona__info {
  position: absolute; left: clamp(20px, 6vw, 90px); bottom: clamp(40px, 9vh, 90px);
  max-width: 560px;
  padding: 22px clamp(20px, 2.4vw, 32px);
  border: 1px solid rgba(43, 230, 200, 0.25);
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(7, 14, 13, 0.7), rgba(4, 8, 8, 0.78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  will-change: transform, opacity;
}
.persona__quote {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  font-style: italic;
}
.persona__bio { margin-top: 14px; color: var(--muted); font-size: 15px; }
.persona__file {
  position: absolute; top: clamp(20px, 6vh, 60px); left: clamp(20px, 6vw, 90px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--pink);
  text-shadow: 0 0 8px var(--glow-teal);
  border: 1px solid rgba(43, 230, 200, 0.3);
  border-radius: 3px;
  padding: 5px 12px;
  background: rgba(4, 8, 8, 0.5);
}

/* ============ GALLERY STRIP ============ */
.strip { overflow: hidden; padding: clamp(40px, 8vh, 100px) 0; }
.strip__track {
  display: flex; gap: clamp(14px, 2vw, 28px);
  will-change: transform;
  padding-left: 4vw;
}
.strip__track figure {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 460px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
}
.strip__track img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.strip__track figure:hover img { transform: scale(1.06); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  padding: clamp(120px, 20vh, 240px) 20px clamp(60px, 8vh, 100px);
  text-align: center;
  overflow: hidden;
}
.footer__bg { position: absolute; inset: -8%; z-index: 0; }
.footer__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.1);
}
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(10, 10, 15, 0.35) 50%, var(--bg) 100%);
}
.footer__inner { position: relative; z-index: 2; }
.footer__platforms {
  margin: 20px 0 34px;
  font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.footer__cta {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.btn--solid {
  background: var(--grad-sunset);
  border-color: transparent;
  color: #16060f;
  font-weight: 700;
  text-decoration: none;
}
.btn--solid:hover { background: var(--grad-sunset); filter: brightness(1.12); box-shadow: 0 0 30px var(--glow-teal), 0 0 50px var(--glow-violet); }
.footer__connect {
  margin-top: 30px;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.footer__connect code {
  font-family: Consolas, monospace;
  text-transform: none; letter-spacing: 0;
  color: var(--ink);
  background: rgba(247, 242, 238, 0.08);
  border: 1px solid rgba(247, 242, 238, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
}
.footer__legal {
  margin-top: 70px;
  max-width: 640px; margin-left: auto; margin-right: auto;
  font-size: 12px; line-height: 1.8;
  color: rgba(245, 240, 234, 0.4);
}

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 5, 8, 0.96);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.modal.is-open { opacity: 1; visibility: visible; }
/* a modal that opens on top of another (e.g. viewing a prior application) */
.modal--stack { z-index: 320; }
.modal__frame {
  width: min(92vw, 1280px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.8);
  transform: scale(0.94);
  transition: transform 0.5s var(--ease-out);
}
.modal.is-open .modal__frame { transform: scale(1); }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
/* trailer placeholder until the real cut drops */
.modal__soon {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(60% 55% at 50% 20%, rgba(45, 214, 184, 0.14), transparent 70%),
    radial-gradient(50% 45% at 80% 90%, rgba(108, 92, 224, 0.12), transparent 70%),
    #0b0812;
  border: 1px solid rgba(45, 214, 184, 0.22);
  border-radius: 10px;
}
.modal__soon-eyebrow {
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--pink);
}
.modal__soon-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(100deg, #f7f2ee 20%, var(--pink) 55%, var(--purple) 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.modal__soon-sub { color: var(--muted); font-size: 15px; }
.identity__danger {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding: 18px 20px;
  border: 1px solid rgba(255, 68, 87, 0.3);
  border-radius: 14px;
  background: rgba(255, 68, 87, 0.05);
}
.identity__dangertitle { font-weight: 700; font-size: 14px; color: #ff8091; margin-bottom: 4px; }
.identity__dangertext { font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 440px; }
#pRemove.is-arm { background: #ff4457; color: #fff; border-color: #ff4457; }
.req-row--prio { border-color: rgba(255, 217, 79, 0.45); }
.req-prio {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffd94f; background: rgba(255, 217, 79, 0.12);
  border-radius: 10px; padding: 4px 10px;
}
/* ============ REFERRAL REWARDS — the wow ============ */
.rf-hero {
  position: relative;
  border-radius: 22px;
  padding: clamp(28px, 5vw, 52px) clamp(22px, 4vw, 44px);
  margin-bottom: 20px;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 15% 0%, rgba(45, 214, 184, 0.28), transparent 55%),
    radial-gradient(80% 130% at 100% 100%, rgba(108, 92, 224, 0.28), transparent 55%),
    linear-gradient(150deg, rgba(28, 20, 34, 0.95), rgba(12, 10, 18, 0.96));
  border: 1px solid rgba(45, 214, 184, 0.22);
}
.rf-hero::after {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 184, 240, 0.25), transparent 65%);
  filter: blur(30px); pointer-events: none;
  animation: rwFloat 8s ease-in-out infinite alternate;
}
@keyframes rwFloat { from { transform: translate(0, 0); } to { transform: translate(-24px, 22px); } }
.rf-hero__eyebrow {
  position: relative; z-index: 1;
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 14px;
}
.rf-hero__title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6.5vw, 68px);
  line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em;
}
.rf-hero__title span {
  background: linear-gradient(100deg, var(--orange), var(--pink) 50%, var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.rf-hero__sub {
  position: relative; z-index: 1;
  margin-top: 16px; max-width: 520px;
  color: var(--muted); font-size: 15px; line-height: 1.6;
}

/* next-reward progress hook */
.rf-next {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  margin-bottom: 20px;
  background: rgba(14, 12, 20, 0.7);
}
.rf-next__ring {
  --pct: 0;
  flex: 0 0 auto;
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, rgba(14, 12, 20, 1) 76%, transparent 77%),
    conic-gradient(var(--pink) 0, var(--purple) calc(var(--pct) * 1%), rgba(247, 242, 238, 0.1) 0);
  box-shadow: 0 0 40px rgba(45, 214, 184, 0.25);
}
.rf-next__ringinner { text-align: center; }
.rf-next__ringinner b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1;
  color: var(--ink);
}
.rf-next__ringinner span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.rf-next__info { flex: 1 1 260px; min-width: 0; }
.rf-next__label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pink); }
.rf-next__reward {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 42px);
  margin: 6px 0 16px; text-transform: uppercase;
}
.rf-next__bar { height: 10px; border-radius: 10px; background: rgba(247, 242, 238, 0.1); overflow: hidden; }
.rf-next__bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--pink) 55%, var(--purple));
  box-shadow: 0 0 16px rgba(45, 214, 184, 0.6);
  transition: width 0.8s var(--ease-out);
}
.rf-next__meta { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* share card */
.rf-share {
  border-radius: 20px; padding: clamp(22px, 3vw, 32px); margin-bottom: 18px;
  text-align: center;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(24, 18, 30, 0.94), rgba(13, 11, 19, 0.96)) padding-box,
    linear-gradient(120deg, rgba(34, 184, 240, 0.5), rgba(45, 214, 184, 0.5) 50%, rgba(108, 92, 224, 0.5)) border-box;
}
.rf-share__label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.rf-share__code { position: relative; display: inline-flex; gap: 8px; margin-bottom: 22px; overflow: hidden; border-radius: 12px; }
.rf-share__code::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg); pointer-events: none;
  animation: rwShine 3.6s ease-in-out infinite;
}
@keyframes rwShine { 0% { left: -45%; } 55%, 100% { left: 150%; } }
.rf-share__btn--x {
  text-decoration: none; display: inline-flex; align-items: center;
}
.rf-share__char {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 5vw, 44px);
  width: clamp(38px, 7vw, 58px); height: clamp(48px, 9vw, 72px);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(10, 8, 15, 0.7);
  border: 1px solid rgba(45, 214, 184, 0.25);
  color: var(--ink);
  box-shadow: inset 0 -3px 12px rgba(45, 214, 184, 0.12);
}
.rf-share__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rf-share__btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink); cursor: pointer;
  border: 1px solid rgba(247, 242, 238, 0.2);
  background: rgba(10, 8, 15, 0.6);
  border-radius: 10px; padding: 13px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rf-share__btn:hover { transform: translateY(-2px); border-color: rgba(45, 214, 184, 0.5); }
.rf-share__btn--primary {
  color: #16101d; border-color: transparent;
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
  box-shadow: 0 10px 30px rgba(45, 214, 184, 0.35);
}
.rf-share__btn--primary:hover { box-shadow: 0 14px 40px rgba(45, 214, 184, 0.5); }
.rf-share__link { margin-top: 16px; font-size: 12.5px; color: var(--muted); word-break: break-all; }

/* stat strip */
.rf-strip { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.rf-strip__item {
  flex: 1 1 120px; text-align: center;
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 14px; padding: 16px 12px;
  background: rgba(10, 8, 15, 0.5);
}
.rf-strip__item b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px;
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.rf-strip__item span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* section titles */
.rf-sectiontitle {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase;
  letter-spacing: 0.03em; margin: 8px 0 16px;
}

/* reward roadmap */
.rf-road { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.rf-road__step {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px 14px 0;
}
.rf-road__step::before {
  content: ""; position: absolute; left: 39px; top: 50%; bottom: -50%;
  width: 3px; background: rgba(247, 242, 238, 0.12);
}
.rf-road__step:last-child::before { display: none; }
.rf-road__step.is-unlocked::before { background: linear-gradient(var(--pink), var(--purple)); }
.rf-road__node {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 78px; height: 78px; border-radius: 20px;
  display: grid; place-items: center; text-align: center;
  background: rgba(14, 12, 20, 0.95);
  border: 2px solid rgba(247, 242, 238, 0.14);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.rf-road__nodenum { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--ink); }
.rf-road__nodelabel { display: block; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.rf-road__step.is-unlocked .rf-road__node {
  border-color: transparent;
  background:
    linear-gradient(rgba(14, 12, 20, 0.95), rgba(14, 12, 20, 0.95)) padding-box,
    linear-gradient(140deg, var(--orange), var(--pink) 55%, var(--purple)) border-box;
  box-shadow: 0 0 30px rgba(45, 214, 184, 0.35);
}
.rf-road__step.is-next .rf-road__node {
  border-color: rgba(255, 217, 79, 0.6);
  box-shadow: 0 0 26px rgba(255, 217, 79, 0.3);
  animation: rwPulse 2s ease-in-out infinite;
}
@keyframes rwPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 217, 79, 0.25); }
  50% { box-shadow: 0 0 36px rgba(255, 217, 79, 0.55); }
}
.rf-road__body {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 14px 20px;
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 16px;
  background: rgba(10, 8, 15, 0.4);
  opacity: 0.72; transition: opacity 0.3s, border-color 0.3s;
}
.rf-road__step.is-unlocked .rf-road__body,
.rf-road__step.is-next .rf-road__body { opacity: 1; }
.rf-road__step.is-unlocked .rf-road__body { border-color: rgba(45, 214, 184, 0.25); }
.rf-road__reward { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3vw, 28px); text-transform: uppercase; }
.rf-road__need { font-size: 12.5px; color: var(--muted); }
.rf-claim {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #16101d; cursor: pointer; border: 0;
  border-radius: 10px; padding: 11px 22px;
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
  box-shadow: 0 8px 24px rgba(45, 214, 184, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rf-claim { animation: rwClaimPulse 2.2s ease-in-out infinite; }
.rf-claim:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(45, 214, 184, 0.6); animation: none; }
.rf-claim:disabled { opacity: 0.6; cursor: default; transform: none; animation: none; }
@keyframes rwClaimPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(45, 214, 184, 0.4); }
  50% { box-shadow: 0 10px 34px rgba(45, 214, 184, 0.75); }
}
/* confetti burst on claim */
.rf-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.rf-confetti i {
  position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px;
  animation-name: rwFall; animation-timing-function: cubic-bezier(0.2, 0.6, 0.5, 1); animation-fill-mode: forwards;
}
@keyframes rwFall {
  to { transform: translate(var(--x), 106vh) rotate(var(--r)); opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-share__code::after, .rf-claim, .rf-confetti { animation: none; }
}
.rf-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.rf-tag--done { color: #7dffa9; }
.rf-tag--pending { color: #ffd94f; }
.rf-tag--denied { color: #ff8091; }

/* invited roster */
.rf-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rf-invited {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(247, 242, 238, 0.1);
  background: rgba(10, 8, 15, 0.5);
}
.rf-invited.is-wl { border-color: rgba(125, 255, 169, 0.35); }
.rf-invited.is-flag { border-color: rgba(255, 68, 87, 0.35); opacity: 0.85; }
.rf-invited.is-flag .rf-invited__tag { color: #ff8091; }
.rf-note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.reward-hold { display: block; margin-top: 4px; font-size: 12px; color: #ff8091; }
.rank-hit { color: #7dffa9; }
td.rank-flag { color: #ff8091; font-weight: 700; }
.rf-invited__av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.rf-invited__av--ph {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #16101d;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.rf-invited b { display: block; font-size: 14px; }
.rf-invited__tag { font-size: 11px; color: var(--muted); }
.rf-invited.is-wl .rf-invited__tag { color: #7dffa9; }
@media (max-width: 560px) {
  .rf-road__body { padding: 12px 14px; }
  .rf-road__node { width: 64px; height: 64px; }
  .rf-road__step::before { left: 32px; }
}

/* ---------- portal: citizen ID card + tabs ---------- */
.concourse__id {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 26px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.94), rgba(14, 12, 20, 0.96)) padding-box,
    linear-gradient(120deg, rgba(34, 184, 240, 0.5), rgba(45, 214, 184, 0.45) 45%, rgba(108, 92, 224, 0.35)) border-box;
}
.concourse__id::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 90% at 88% 10%, rgba(45, 214, 184, 0.12), transparent 70%);
  pointer-events: none;
}
.concourse__avatar {
  width: 72px; height: 72px;
  border-radius: 18px;
  border: 2px solid rgba(45, 214, 184, 0.4);
}
.concourse__welcome {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 8px var(--glow-teal);
  margin-bottom: 4px;
}
.concourse__username {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.concourse__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.concourse__chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(247, 242, 238, 0.14);
  border-radius: 10px;
  padding: 7px 14px;
  background: rgba(10, 8, 15, 0.55);
}
.concourse__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.concourse__seal {
  position: absolute; right: clamp(16px, 3vw, 34px); top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(45, 214, 184, 0.25);
  pointer-events: none;
}
.concourse__tabs {
  display: flex; gap: 6px;
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 30px;
  background: rgba(14, 12, 20, 0.8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.concourse__tabbtn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  background: none; border: 0; cursor: pointer;
  border-radius: 10px;
  padding: 12px 20px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.concourse__tabbtn:hover { color: var(--ink); }
.concourse__tabbtn.is-on {
  color: #16101d;
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
}
.concourse__badge {
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  padding: 0 5px;
  background: rgba(247, 242, 238, 0.16);
  color: var(--ink);
}
.concourse__tabbtn.is-on .concourse__badge { background: rgba(22, 16, 29, 0.3); color: #16101d; }
.concourse__badge--hot { background: #ff4457; color: #fff; }
.concourse__lede { color: var(--muted); margin-bottom: 24px; max-width: 560px; }
.concourse__empty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed rgba(43, 230, 200, 0.25);
  border-radius: 14px;
  padding: 34px;
  text-align: center;
}
.concourse__subsection { margin-bottom: 30px; }
.concourse__subsection .eyebrow { margin-bottom: 12px; }

/* ---------- crew (gang) panel + invite mailbox ---------- */
.crew__card {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.92), rgba(14, 12, 20, 0.94)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.4), rgba(108, 92, 224, 0.18) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.crew__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.crew__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.crew__count {
  font-family: Consolas, monospace;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 10px;
  padding: 7px 14px;
}
.crew__count--ready {
  color: #7dffa9;
  border-color: rgba(125, 255, 169, 0.4);
}
.crew__roster { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.crew__member {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(247, 242, 238, 0.14);
  border-radius: 10px;
  background: rgba(10, 8, 15, 0.6);
  font-size: 14px;
}
.crew__member--pending { border-style: dashed; color: var(--muted); }
.crew__avatar { width: 22px; height: 22px; border-radius: 50%; }
.crew__tag {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink);
}
.crew__kick {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 16px; line-height: 1;
  padding: 0 2px;
  transition: color 0.25s;
}
.crew__kick:hover { color: #ff4457; }
.crew__form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.crew__input {
  flex: 1 1 220px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: rgba(10, 8, 15, 0.7);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.crew__input:focus {
  border-color: rgba(45, 214, 184, 0.6);
  box-shadow: 0 0 0 3px rgba(45, 214, 184, 0.12);
}
.crew__hint { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.crew__leave { margin-top: 16px; }
/* founding form */
.crew__formtitle {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.crew__field { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
/* inside a column field the row flex-basis would become height — neutralize it */
.crew__field .crew__input { flex: initial; width: 100%; }
.crew__label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.6);
}
.crew__textarea { min-height: 92px; resize: vertical; font-family: var(--font-body); }
.crew__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.crew__swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.crew__swatch:hover { transform: scale(1.12); }
.crew__swatch.is-on {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 18px rgba(45, 214, 184, 0.35);
  transform: scale(1.12);
}
.crew__logorow { display: flex; align-items: center; gap: 14px; }
.crew__filebtn {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: rgba(10, 8, 15, 0.7);
  border: 1px dashed rgba(247, 242, 238, 0.3);
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  transition: border-color 0.25s;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crew__filebtn:hover { border-color: rgba(45, 214, 184, 0.6); }
.crew__logopreview {
  width: 52px; height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(247, 242, 238, 0.2);
}
.crew__create { margin-top: 22px; }
/* crew identity on the card */
.crew__ident { display: flex; align-items: center; gap: 16px; }
.crew__logo {
  width: 58px; height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--crew, rgba(45, 214, 184, 0.5));
}
.crew__disc {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px;
  color: #16101d;
}
.crew__colorline {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.crew__story {
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid rgba(247, 242, 238, 0.1);
  padding-top: 16px;
  margin-bottom: 18px;
}
.crew__storyrow { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.crew__storylabel {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crew, var(--pink));
  padding-top: 2px;
}
.crew__storytext { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
@media (max-width: 620px) {
  .crew__storyrow { grid-template-columns: 1fr; gap: 4px; }
  .concourse__seal { display: none; }
  .concourse__avatar { width: 56px; height: 56px; }
}
.crew__mailbtn { padding: 9px 18px; font-size: 12px; }
.req-card__locked {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed rgba(247, 242, 238, 0.25);
  border-radius: 10px;
  padding: 9px 16px;
}
/* ---------- broadcast panel ---------- */
.announce__toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.announce__toolbar button {
  font-family: var(--font-body);
  font-size: 13px;
  min-width: 34px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(10, 8, 15, 0.7);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.announce__toolbar button:hover { border-color: rgba(45, 214, 184, 0.55); background: rgba(45, 214, 184, 0.08); }
.announce__previewwrap { margin-top: 18px; }
.announce__previewwrap .field__label { display: block; margin-bottom: 8px; }
.announce__dm {
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #313338; /* Discord DM backdrop */
}
.announce__dmhead {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 6px;
}
.announce__dmavatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.announce__dmname { color: #f2f3f5; font-weight: 600; font-size: 15px; }
.announce__dmbot {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: #5865f2; border-radius: 4px; padding: 1px 5px;
}
.announce__preview {
  padding: 2px 16px 16px 60px;
  color: #dbdee1; font-size: 15px; line-height: 1.4;
  word-break: break-word;
}
.announce__previewempty { color: #949ba4; font-style: italic; }
.announce__preview strong { color: #fff; }
.announce__preview a { color: #00a8fc; text-decoration: none; }
.announce__preview a:hover { text-decoration: underline; }
.announce__preview code {
  font-family: Consolas, monospace; font-size: 13px;
  background: #1e1f22; border-radius: 4px; padding: 1px 4px;
}
.announce__preview pre {
  font-family: Consolas, monospace; font-size: 13px;
  background: #1e1f22; border: 1px solid #232428; border-radius: 5px;
  padding: 8px 10px; margin: 4px 0; white-space: pre-wrap;
}
.announce__quote {
  display: block; position: relative;
  padding-left: 12px; margin: 2px 0;
  color: #dbdee1;
}
.announce__quote::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 4px; border-radius: 4px; background: #4e5058;
}
.announce__bullet { display: block; padding-left: 16px; position: relative; }
.announce__bullet::before { content: "•"; position: absolute; left: 4px; color: #dbdee1; }
.announce__pimg {
  display: block; max-width: 300px; max-height: 220px;
  border-radius: 8px; margin: 6px 0;
}
/* countdown toggle + fields in the composer */
.announce__toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--text); font-size: 14px; user-select: none;
}
.announce__toggle input { width: 16px; height: 16px; accent-color: var(--pink); cursor: pointer; }
.announce__cdfields { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
/* Discord-embed-style countdown preview */
.announce__embed {
  margin: 8px 0 2px;
  border-left: 4px solid var(--pink);
  border-radius: 4px;
  background: #2b2d31;
  padding: 12px 16px;
}
.announce__embedtitle { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.announce__cdbig { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.announce__cddate { color: #b5bac1; font-size: 13px; margin-top: 6px; }
.announce__cddim { color: #949ba4; font-style: italic; font-size: 14px; }
.announce__embed--full { margin: 2px 0; }
.announce__embeddesc { color: #dbdee1; font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.announce__embeddesc strong { color: #fff; }
.announce__embeddesc a { color: #00a8fc; text-decoration: none; }
.announce__embedfooter { color: #949ba4; font-size: 12px; margin-top: 10px; }
.announce__pbanner { display: block; width: 100%; max-width: 460px; border-radius: 6px; margin-top: 10px; }
/* buttons preview (sits below the message, like real Discord components) */
.announce__btnpreview { padding: 4px 16px 14px 60px; }
.announce__btnpreview:empty { display: none; }
.announce__pbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.announce__pbtn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #4e5058; color: #fff; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
}
/* composer button rows */
.announce__btnrow { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.announce__btnrow .announce__btnlabel,
.announce__btnrow .announce__btnchan { flex: 1 1 0; min-width: 0; }
.announce__btnrow .announce__btnurl { flex: 1 1 100%; min-width: 0; }
.announce__btnremove {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(247, 242, 238, 0.16); background: transparent;
  color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1;
}
.announce__btnremove:hover { color: #fff; border-color: var(--pink); }
.announce__addbtn { margin-top: 2px; }
/* photo upload in the composer */
.announce__photorow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.announce__photopreview {
  position: relative; display: inline-block; margin-top: 10px;
}
.announce__photopreview img {
  display: block; max-width: 340px; max-height: 200px;
  border-radius: 10px; border: 1px solid rgba(247, 242, 238, 0.16);
}
.announce__photopreview .announce__btnremove {
  position: absolute; top: -10px; right: -10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #17171f; font-size: 16px;
}

/* ===== tickets ===== */
/* ===== back-office panel layout ===== */
.panel { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; margin-top: 18px; }
.panel__nav {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 16px;
  padding: 10px; background: rgba(255, 255, 255, 0.02);
}
.panel__nav .ops__tab {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; border: none; border-radius: 10px;
  padding: 11px 12px; font-size: 14px; background: transparent;
}
.panel__nav .ops__tab:hover { background: rgba(255, 255, 255, 0.05); }
.panel__nav .ops__tab.is-on { background: rgba(45, 214, 184, 0.14); color: #fff; }
.panel__ico { font-size: 16px; width: 22px; text-align: center; flex: 0 0 auto; }
.panel__content { min-width: 0; }
.panel__navlabel {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 10px 12px 6px;
}
.panel__navlabel:first-child { margin-top: 4px; }
.panel__nav #stateTabs { display: flex; flex-direction: column; gap: 4px; }
.panel__nav #stateTabs .ops__tab {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; border: none; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; background: transparent;
}
.panel__nav #stateTabs .ops__tab:hover { background: rgba(255, 255, 255, 0.05); }
.panel__nav #stateTabs .ops__tab.is-on { background: rgba(45, 214, 184, 0.14); color: #fff; }
.ops__tabcount {
  margin-left: auto; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 2px 9px;
}
.ops__tab.is-on .ops__tabcount { background: var(--pink); color: #0a0a0f; }
.panel__nav .field__input { margin: 0 4px 6px; width: calc(100% - 8px); }
/* review desk: toolbar (status pills + desk filter) */
.counter__bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.counter__bar .subtabs { margin-bottom: 0; flex: 1 1 auto; }
.counter__formsel { flex: 0 1 210px; margin-left: auto; }
.subtabs__btn .ops__tabcount { margin-left: 8px; padding: 1px 8px; }
.subtabs__btn.is-on .ops__tabcount { background: rgba(10, 10, 15, 0.22); color: #0a0a0f; }
/* review desk: application cards */
#reqList .req-row {
  width: 100%;
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, transform 0.15s;
}
#reqList .req-row:hover { border-color: var(--pink); transform: translateY(-1px); }
#reqList .ops__rowavatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(45, 214, 184, 0.35); }
.counter-chip {
  font-size: 12px; font-weight: 600; color: var(--pink);
  background: rgba(45, 214, 184, 0.12); border-radius: 10px; padding: 3px 11px;
  white-space: nowrap;
}
.counter__search { flex: 1 1 200px; min-width: 160px; }
.req-id {
  font-family: Consolas, monospace; font-size: 12.5px; font-weight: 700;
  color: var(--muted); background: rgba(255, 255, 255, 0.06);
  border-radius: 7px; padding: 3px 8px; white-space: nowrap;
}
.req-row__by { font-size: 12px; color: var(--muted); white-space: nowrap; }
.claimnote {
  background: rgba(255, 204, 0, 0.1); border: 1px solid rgba(255, 204, 0, 0.4);
  color: #ffd75e; border-radius: 10px; padding: 10px 14px;
  font-size: 13.5px; margin-bottom: 14px;
}
.rvchip {
  border: 1px solid rgba(247, 242, 238, 0.16); border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer;
  padding: 5px 12px; font-size: 12.5px; font-family: inherit; white-space: nowrap;
}
.rvchip:hover { border-color: var(--pink); }
.rvrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ===== staff panel: ticket workspace (list · chat · citizen file) ===== */
.helpdesk { display: grid; grid-template-columns: 180px minmax(0, 1fr) 280px; gap: 16px; align-items: stretch; }
.helpdesk__list .helpdesk__row { padding: 9px 11px; }
.helpdesk__list .helpdesk__rowname { font-size: 13.5px; }
.helpdesk__list .helpdesk__rowmeta { font-size: 11px; }
/* collapsible sections in the citizen file */
.helpdesk__fold { border-top: 1px solid rgba(247, 242, 238, 0.08); margin-top: 12px; }
.helpdesk__foldhead {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 10px 0 6px; color: var(--muted);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.helpdesk__foldhead:hover { color: #fff; }
.helpdesk__foldarrow { transition: transform 0.15s; font-size: 12px; }
.is-openfold .helpdesk__foldarrow { transform: rotate(180deg); }
.helpdesk__foldbody { max-height: 200px; overflow-y: auto; }
/* in-game logs in the citizen file — rows open a detail popup */
.entry__row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(247, 242, 238, 0.08); border-radius: 11px;
  cursor: pointer; font-family: inherit; color: var(--text);
  text-align: left; padding: 9px 11px; margin-bottom: 7px;
  transition: border-color 0.13s, transform 0.13s;
}
.entry__row:hover { border-color: var(--pink); transform: translateX(2px); }
.entry__ico {
  font-size: 15px; flex: 0 0 auto; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: rgba(255, 255, 255, 0.05);
}
.entry__ico--kill { background: rgba(255, 95, 95, 0.14); }
.entry__ico--death { background: rgba(180, 180, 190, 0.14); }
.entry__ico--inventory { background: rgba(255, 204, 0, 0.12); }
.entry__ico--money { background: rgba(87, 242, 135, 0.12); }
.entry__ico--vehicle { background: rgba(0, 168, 252, 0.12); }
.entry__ico--connect { background: rgba(108, 92, 224, 0.14); }
/* vice_events categories — the citizen file's real game-log feed */
.entry__ico--qblog { background: rgba(139, 149, 158, 0.14); }
.entry__ico--chat { background: rgba(0, 168, 252, 0.12); }
.entry__ico--connection { background: rgba(108, 92, 224, 0.14); }
.entry__ico--session { background: rgba(108, 92, 224, 0.14); }
.entry__ico--job { background: rgba(255, 204, 0, 0.12); }
.entry__ico--command { background: rgba(139, 149, 158, 0.14); }
.entry__ico--security { background: rgba(255, 95, 95, 0.14); }
.entry__ico--webhook { background: rgba(87, 242, 135, 0.1); }
.entry__ico--custom { background: rgba(255, 255, 255, 0.06); }
.entry__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.entry__main b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry__open { color: var(--muted); font-size: 18px; line-height: 1; flex: 0 0 auto; }
.entry__row:hover .entry__open { color: var(--pink); }
/* the detail popup */
.entry-modal__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.entry-modal__ico {
  font-size: 26px; width: 54px; height: 54px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(45, 214, 184, 0.12);
  border: 1px solid rgba(45, 214, 184, 0.3);
}
.entry-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.entry-modal__cell {
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 11px;
  background: rgba(255, 255, 255, 0.02); padding: 11px 13px;
}
.entry-modal__key {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.entry-modal__val { font-size: 14.5px; color: #fff; font-family: Consolas, monospace; word-break: break-word; }
@media (max-width: 600px) { .entry-modal__grid { grid-template-columns: 1fr; } }
.helpdesk__list { display: flex; flex-direction: column; gap: 8px; max-height: 72vh; overflow-y: auto; padding-right: 2px; }
.helpdesk__row {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); padding: 11px 13px;
  cursor: pointer; font-family: inherit; color: var(--text);
}
.helpdesk__row:hover { border-color: rgba(45, 214, 184, 0.5); }
.helpdesk__row.is-on { border-color: var(--pink); background: rgba(45, 214, 184, 0.08); }
.helpdesk__rowtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.helpdesk__rowdot { font-size: 11px; color: var(--muted); border: 1px solid rgba(247, 242, 238, 0.2); border-radius: 6px; padding: 1px 7px; }
.helpdesk__rowdot.is-open { color: #57f287; border-color: rgba(87, 242, 135, 0.45); }
.helpdesk__rowname { font-size: 14.5px; }
.helpdesk__rowmeta { font-size: 12px; color: var(--muted); }
.helpdesk__none { color: var(--muted); font-size: 13.5px; padding: 8px 4px; }
.helpdesk__placeholder { color: var(--muted); font-size: 13.5px; padding: 40px 16px; text-align: center; }
/* the chat column */
.helpdesk__chat {
  display: flex; flex-direction: column; min-height: 72vh; max-height: 72vh;
  border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 16px;
  background: rgba(255, 255, 255, 0.015); overflow: hidden;
}
.helpdesk__chathead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid rgba(247, 242, 238, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.helpdesk__chattitle { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.helpdesk__chatbtns { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.helpdesk__viewers { font-size: 12px; color: #ffd75e; white-space: nowrap; }
.helpdesk__transfersel { max-width: 190px; font-size: 13px; padding: 7px 10px; }
.helpdesk__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.helpdesk__composer {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid rgba(247, 242, 238, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.helpdesk__composer textarea { flex: 1; resize: none; }
.helpdesk__send { flex: 0 0 auto; align-self: flex-end; }
/* the citizen file */
.helpdesk__info {
  border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 16px;
  background: rgba(255, 255, 255, 0.015); padding: 16px;
  max-height: 72vh; overflow-y: auto;
}
.helpdesk__citizen { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.helpdesk__citavatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(45, 214, 184, 0.4); }
.helpdesk__citname { display: block; font-size: 15px; }
.helpdesk__citid { font-family: Consolas, monospace; font-size: 11px; color: var(--muted); word-break: break-all; }
.helpdesk__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.helpdesk__chip {
  font-size: 12px; border: 1px solid rgba(247, 242, 238, 0.18);
  border-radius: 10px; padding: 3px 10px; color: var(--muted);
}
.helpdesk__chip--ok { color: #57f287; border-color: rgba(87, 242, 135, 0.45); }
.helpdesk__facts p { font-size: 13px; color: var(--text); margin: 3px 0; }
.helpdesk__subhead {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 6px;
}
.helpdesk__mini {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 0; border-bottom: 1px solid rgba(247, 242, 238, 0.06);
  background: none; border-left: none; border-right: none; border-top: none;
  font-family: inherit; color: var(--text); font-size: 13px; text-align: left;
}
.helpdesk__mini .req-status { margin-left: auto; font-size: 11px; }
.helpdesk__mini .helpdesk__rowdot { margin-left: auto; }
.helpdesk__mini--click { cursor: pointer; }
.helpdesk__mini--click:hover .helpdesk__minitext { color: var(--pink); }
.helpdesk__minitext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) {
  .helpdesk { grid-template-columns: 170px 1fr; }
  .helpdesk__info { grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 760px) {
  .helpdesk { grid-template-columns: 1fr; }
  .helpdesk__list { max-height: 260px; }
  .helpdesk__chat { min-height: 60vh; max-height: 60vh; }
}
.panel__content .backoffice__card, .panel__content .backoffice__card--wide { width: 100%; max-width: none; }
/* sub-tabs inside a section */
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.subtabs__btn {
  border: 1px solid rgba(247, 242, 238, 0.14); border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer;
  padding: 8px 16px; font-size: 13.5px; font-family: inherit;
}
.subtabs__btn:hover { color: #fff; border-color: rgba(45, 214, 184, 0.5); }
.subtabs__btn.is-on { background: var(--pink); border-color: var(--pink); color: #0a0a0f; font-weight: 700; }
/* overview tiles */
.ov__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ov__tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 16px;
  background: rgba(255, 255, 255, 0.02); padding: 20px; cursor: pointer;
  font-family: inherit; color: var(--text); text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}
.ov__tile:hover { border-color: var(--pink); transform: translateY(-2px); }
.ov__num { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; color: #fff; }
.ov__label { font-size: 14px; font-weight: 600; }
.ov__hint { font-size: 12.5px; color: var(--pink); }
/* settings grid */
.prefs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prefs__grid .backoffice__card { margin: 0; }
.prefs__wide { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .panel__nav { position: static; flex-direction: row; overflow-x: auto; padding: 8px; align-items: center; }
  .panel__nav .ops__tab { width: auto; white-space: nowrap; }
  .panel__nav #stateTabs { flex-direction: row; }
  .panel__nav #stateTabs .ops__tab { width: auto; white-space: nowrap; }
  .panel__navlabel { display: none; }
  .panel__nav .field__input { width: auto; min-width: 140px; }
  .ov__tiles { grid-template-columns: 1fr 1fr; }
  .prefs__grid { grid-template-columns: 1fr; }
}

.intel__stats { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.intel__beta {
  display: inline-block; vertical-align: 3px; margin-left: 6px;
  font-size: 10.5px; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 10px;
  background: rgba(88, 101, 242, 0.18); border: 1px solid rgba(88, 101, 242, 0.5); color: #aab4ff;
}
.intel__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.intel__cat {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid rgba(247, 242, 238, 0.14); border-radius: 10px;
  padding: 7px 14px; font-size: 13.5px; user-select: none;
}
.intel__cat:has(input:checked) { border-color: rgba(88, 101, 242, 0.6); background: rgba(88, 101, 242, 0.12); }
.intel__cat input { accent-color: #5865f2; }
/* the brain log */
#intelLog { margin-top: 12px; max-height: 480px; overflow-y: auto; }
.intel__entry { border-bottom: 1px solid rgba(247, 242, 238, 0.07); }
.intel__entryhead {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--text); text-align: left; padding: 11px 4px;
}
.intel__entryhead:hover b { color: var(--pink); }
.intel__entrysrc { font-size: 15px; flex: 0 0 auto; }
.intel__entrymain { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.intel__entrymain b { font-size: 14px; }
.intel__entrybody { padding: 2px 8px 14px 33px; }
.intel__entrytext { font-size: 13.5px; color: var(--text); white-space: pre-wrap; margin-bottom: 10px; }
#intelSrcTabs { margin-bottom: 10px; }
#intelPlayers { margin-top: 12px; }
.intel__player { border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 12px; padding: 13px 15px; margin-bottom: 10px; }
.intel__playerhead { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.intel__teach { border-top: 1px dashed rgba(247, 242, 238, 0.14); margin-top: 14px; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   TEST CHAT — probe the brain and correct it in place
   ============================================================ */
.aitrain__thread {
  margin: 12px 0 0; max-height: 460px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 4px 2px;
}
.aitrain__empty { font-size: 13px; color: var(--muted); padding: 18px 4px; text-align: center; }
.aitrain__pair { display: flex; flex-direction: column; gap: 8px; }

.aitrain__msg { border-radius: 14px; padding: 11px 15px; max-width: 88%; }
.aitrain__who { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.65; margin-bottom: 5px; }
.aitrain__text { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.aitrain__msg--you {
  align-self: flex-end; background: rgba(45, 214, 184, 0.13);
  border: 1px solid rgba(45, 214, 184, 0.3);
}
.aitrain__msg--bot {
  align-self: flex-start; background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.28);
}
/* the brain declining to answer is a result, not an error — but it must look different */
.aitrain__msg--silent { background: rgba(247, 242, 238, 0.035); border-color: rgba(247, 242, 238, 0.16); }
.aitrain__text--silent { color: var(--muted); font-style: italic; }
.aitrain__pending { align-self: flex-start; opacity: 0.6; letter-spacing: 3px; font-size: 18px; }

/* which entries produced this answer */
.aitrain__used {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed rgba(247, 242, 238, 0.14);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.aitrain__usedlabel { font-size: 11px; color: var(--muted); margin-right: 2px; }
.aitrain__chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 10px;
  border: 1px solid rgba(247, 242, 238, 0.16); background: rgba(247, 242, 238, 0.04);
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aitrain__chip--correction { border-color: rgba(93, 217, 148, 0.4); background: rgba(93, 217, 148, 0.09); color: #9ce8bb; }
.aitrain__chip--faq { border-color: rgba(255, 212, 121, 0.35); background: rgba(255, 212, 121, 0.08); color: #ffd479; }

.aitrain__fixbar { margin-top: 10px; }
.aitrain__fixbtn { font-size: 12px; }
.aitrain__fixed { margin-top: 10px; font-size: 12.5px; color: #9ce8bb; }

.aitrain__fix {
  margin-top: 11px; padding-top: 11px; border-top: 1px dashed rgba(247, 242, 238, 0.14);
  display: flex; flex-direction: column; gap: 8px;
}
.aitrain__fixhint { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.aitrain__fixtext { resize: vertical; min-height: 90px; font-family: inherit; }
.aitrain__drops { display: flex; flex-direction: column; gap: 5px; }
.aitrain__drop {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  padding: 5px 8px; border-radius: 8px; background: rgba(247, 242, 238, 0.03); cursor: pointer;
}
.aitrain__drop:hover { background: rgba(237, 66, 69, 0.09); }
.aitrain__drop input { accent-color: #ed4245; }

.aitrain__composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.aitrain__input { flex: 1; resize: vertical; min-height: 46px; font-family: inherit; }
.aitrain__send { white-space: nowrap; }

@media (max-width: 700px) {
  .aitrain__msg { max-width: 100%; }
  .aitrain__composer { flex-direction: column; align-items: stretch; }
}

.agency__perms { border-top: 1px dashed rgba(247, 242, 238, 0.14); margin-top: 10px; padding-top: 10px; }
.agency__perms .agency__chip { border-color: rgba(45, 214, 184, 0.35); }
/* banned-player notice on the apply portal */
.concourse__banned {
  grid-column: 1 / -1;
  border: 1px solid rgba(237, 66, 69, 0.45); border-radius: 14px;
  background: rgba(237, 66, 69, 0.08); color: #ffb3b8;
  padding: 14px 18px; font-size: 14px; line-height: 1.55;
}

/* Discord bans tab — one clean card per ban */
.susp-card {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 14px;
  padding: 14px 17px; margin-bottom: 10px; background: rgba(247, 242, 238, 0.02);
}
.susp-card__head { display: flex; align-items: center; gap: 12px; }
.susp-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; object-fit: cover;
  background: rgba(247, 242, 238, 0.08);
}
.susp-card__avatar--empty { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.susp-card__who { flex: 1; min-width: 0; }
.susp-card__name { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.susp-card__id { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }
.susp-card__meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 12px;
  padding-top: 11px; border-top: 1px dashed rgba(247, 242, 238, 0.1);
}
.susp-card__fact { display: flex; flex-direction: column; gap: 2px; }
.susp-card__factlabel { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.susp-card__factval { font-size: 13.5px; }
.susp-card__note {
  margin-top: 11px; padding: 9px 13px; font-size: 13.5px; line-height: 1.5;
  border-left: 3px solid rgba(45, 214, 184, 0.55); background: rgba(45, 214, 184, 0.05);
  border-radius: 0 10px 10px 0; white-space: pre-wrap; word-break: break-word;
}
.susp-card__note--empty {
  border-left-color: rgba(247, 242, 238, 0.16); background: rgba(247, 242, 238, 0.03);
  color: var(--muted); font-style: italic;
}
.susp-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.susp-pager__label { font-size: 13px; color: var(--muted); min-width: 90px; text-align: center; }
.susp-pager .backoffice__minibtn:disabled { opacity: 0.35; cursor: default; }

.agency__catswrap { border-top: 1px dashed rgba(247, 242, 238, 0.14); margin-top: 10px; padding-top: 10px; }
.agency__catslabel { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.04em; }
.agency__catswrap .agency__chip { border-color: rgba(108, 92, 224, 0.4); }
.agency__role { display: block; margin-top: 10px; }
.agency__role .field__input { max-width: 280px; font-size: 13px; }

/* "Who can see it" — role dropdown with checkboxes in the category editor */
.sdesk__who { position: relative; }
.sdesk__whobtn { text-align: left; cursor: pointer; width: 100%; }
.sdesk__wholist {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  background: #14141c; border: 1px solid rgba(247, 242, 238, 0.16); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 4px;
  max-height: 260px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.sdesk__whorow {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px;
  cursor: pointer; padding: 5px 7px; border-radius: 8px; user-select: none;
}
.sdesk__whorow:hover { background: rgba(247, 242, 238, 0.06); }
.sdesk__whorow input { accent-color: var(--pink); }

.sdesk__filter { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.sdesk__searchbox { margin-left: auto; flex: 0 1 240px; min-width: 150px; }
.sdesk__refresh { margin-left: 0; }
.sdesk__layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.sdesk__list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.sdesk__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 12px; cursor: pointer; }
.sdesk__row:hover { border-color: rgba(45, 214, 184, 0.5); }
.sdesk__row.is-on { border-color: var(--pink); background: rgba(45, 214, 184, 0.08); }
.sdesk__rowcat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pink); }
.sdesk__rowmain { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sdesk__rowmain b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdesk__closed { font-size: 11px; color: var(--muted); border: 1px solid rgba(247, 242, 238, 0.2); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.sdesk__closed--ok { color: #57f287; border-color: rgba(87, 242, 135, 0.4); }
.sdesk__thread { border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 14px; min-height: 320px; display: flex; flex-direction: column; }
.sdesk__placeholder { padding: 40px 16px; text-align: center; }
.sdesk__thhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(247, 242, 238, 0.1); }
/* transcript inside the popup — scrolls in place instead of stretching the page */
.sdesk-modal { width: min(680px, 92vw); }
.sdesk__thread--modal { border: none; min-height: 120px; max-height: 62vh; overflow-y: auto; padding: 8px 4px; gap: 12px; }
.sdesk__msgs { flex: 1; overflow-y: auto; max-height: 460px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.sdesk__msg { max-width: 78%; align-self: flex-start; }
.sdesk__msg--staff { align-self: flex-end; text-align: right; }
.sdesk__msgmeta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 3px; }
.sdesk__msg--staff .sdesk__msgmeta { justify-content: flex-end; }
.sdesk__msgbody { display: inline-block; background: #2b2d31; color: #dbdee1; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; word-break: break-word; text-align: left; }
.sdesk__msg--staff .sdesk__msgbody { background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; }
.sdesk__reply { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(247, 242, 238, 0.1); }
.sdesk__reply textarea { flex: 1; resize: vertical; }
.sdesk__catrow, .sdesk__accessrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(247, 242, 238, 0.08); }
.sdesk__catemoji { font-size: 20px; width: 28px; text-align: center; flex: 0 0 auto; }
.sdesk__del:hover { color: #ff5f5f; border-color: #ff5f5f; }
.sdesk__formgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sdesk__panelcats { display: flex; flex-wrap: wrap; gap: 8px; }
.sdesk__pcat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(247, 242, 238, 0.16); border-radius: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.sdesk__pcat:hover { border-color: var(--pink); }
.sdesk__pcat input { accent-color: var(--pink); width: 15px; height: 15px; }
@media (max-width: 800px) {
  .sdesk__layout { grid-template-columns: 1fr; }
  .sdesk__formgrid { grid-template-columns: 1fr; }
  .sdesk__msg { max-width: 92%; }
}
.announce__actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 18px;
}
.announce__estimate { font-size: 12.5px; color: var(--muted); flex: 1 1 220px; }
.announce__item {
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.announce__itemhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.announce__titlewrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.announce__ann {
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--purple);
  border: 1px solid rgba(108, 92, 224, 0.4);
  border-radius: 10px; padding: 3px 10px;
}
.field__opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: normal; }
.announce__status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 10px; padding: 4px 11px;
}
.announce__status--sending, .announce__status--expanding { color: #ffd94f; background: rgba(255, 217, 79, 0.12); }
.announce__status--done { color: #7dffa9; background: rgba(125, 255, 169, 0.12); }
.announce__status--failed { color: #ff8091; background: rgba(255, 68, 87, 0.12); }
.announce__msg {
  font-size: 13.5px; color: var(--muted); line-height: 1.55;
  margin-bottom: 12px; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.announce__bar {
  height: 7px; border-radius: 10px; overflow: hidden;
  background: rgba(247, 242, 238, 0.1); margin-bottom: 8px;
}
.announce__bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--pink) 55%, var(--purple));
  transition: width 0.5s var(--ease-out);
}
.announce__meta { font-size: 12px; color: var(--muted); }
.announce__ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.announce__recipwrap {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(247, 242, 238, 0.1);
}
.announce__filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.announce__filter {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(10, 8, 15, 0.6);
  border: 1px solid rgba(247, 242, 238, 0.14);
  border-radius: 10px; padding: 6px 12px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.announce__filter:hover { color: var(--ink); }
.announce__filter.is-on {
  color: #16101d;
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
  border-color: transparent;
}
.announce__recips { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.announce__recip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(247, 242, 238, 0.08);
  border-radius: 10px;
}
.announce__recipwho { display: flex; align-items: center; gap: 9px; min-width: 0; }
.announce__recipwho b { font-size: 13.5px; }
.announce__recipside { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.announce__rstatus {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 10px; padding: 3px 9px;
}
.announce__rstatus--sent { color: #7dffa9; background: rgba(125, 255, 169, 0.12); }
.announce__rstatus--failed { color: #ff8091; background: rgba(255, 68, 87, 0.12); }
.announce__rstatus--pending { color: #ffd94f; background: rgba(255, 217, 79, 0.12); }
.announce__more { margin-top: 10px; }
.announce__log {
  border-left: 3px solid rgba(247, 242, 238, 0.2);
  padding: 8px 0 8px 14px;
  margin-bottom: 10px;
}
.announce__log--info { border-left-color: #7dffa9; }
.announce__log--warning { border-left-color: #ffd94f; }
.announce__log--error { border-left-color: #ff4457; }
.announce__logtop { display: flex; align-items: center; gap: 10px; }
.announce__logtop b { font-size: 13.5px; }
.announce__logdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.announce__log--info .announce__logdot { color: #7dffa9; }
.announce__log--warning .announce__logdot { color: #ffd94f; }
.announce__log--error .announce__logdot { color: #ff4457; }
.announce__logdetail { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.tier-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 10px;
  padding: 5px 12px;
}
.tier-badge--diamond {
  color: #9ff2ff;
  background: rgba(79, 195, 255, 0.12);
  border: 1px solid rgba(79, 195, 255, 0.45);
}
.tier-badge--gold {
  color: #ffd94f;
  background: rgba(255, 217, 79, 0.1);
  border: 1px solid rgba(255, 217, 79, 0.4);
}
.tier-badge--silver {
  color: #d9dee6;
  background: rgba(217, 222, 230, 0.1);
  border: 1px solid rgba(217, 222, 230, 0.35);
}
.repeater__err {
  flex-basis: 100%;
  font-size: 12px;
  color: #ff8091;
}
.field__input.is-bad {
  border-color: rgba(255, 68, 87, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 68, 87, 0.12);
}
.field__count { color: var(--muted); transition: color 0.3s; }
.field__count.is-met { color: #7dffa9; }
.intake__early {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}
.modal__soon-date {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(45, 214, 184, 0.35);
  border-radius: 10px;
  padding: 8px 18px;
}
.modal__soon-count {
  font-family: Consolas, monospace;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-shadow: 0 0 26px rgba(45, 214, 184, 0.45);
  font-variant-numeric: tabular-nums;
}
.modal__close {
  position: absolute; top: 22px; right: 30px;
  background: none; border: none;
  font-size: 44px; line-height: 1;
  color: var(--ink); cursor: pointer;
  transition: transform 0.3s, color 0.3s;
}
.modal__close:hover { transform: rotate(90deg); color: var(--pink); }

/* ============================================================
   GAME LOGS (FiveManage) console
   ============================================================ */
.activity__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.activity__search { flex: 1 1 280px; min-width: 220px; }
.activity__mini { flex: 0 0 auto; width: auto; min-width: 130px; font-size: 13px; padding: 10px 12px; }
.activity__levels { display: inline-flex; gap: 6px; }
.activity__lvl {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid currentColor; background: transparent; opacity: 0.45;
}
.activity__lvl.is-on { opacity: 1; }
.activity__lvltag--err { color: #ff5464; }
.activity__lvltag--warn { color: #ffb454; }
.activity__lvltag--info { color: #56b6ff; }
.activity__lvltag--debug { color: #6c5ce0; }
.activity__lvltag--other { color: var(--muted); }

.activity__topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.activity__auto { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.activity__table { display: flex; flex-direction: column; gap: 3px; }
.activity__row {
  display: flex; flex-direction: column; gap: 7px;
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  padding: 11px 14px; border-radius: 9px;
  border: 1px solid rgba(247, 242, 238, 0.08); background: rgba(10, 8, 15, 0.4);
  border-left: 3px solid transparent;
}
.activity__row:hover { background: rgba(255, 255, 255, 0.045); border-color: rgba(247, 242, 238, 0.16); }
.activity__row--err { border-left-color: #ff5464; }
.activity__row--warn { border-left-color: #ffb454; }
.activity__row--info { border-left-color: #56b6ff; }
.activity__row--debug { border-left-color: #6c5ce0; }
.activity__row--other { border-left-color: rgba(247, 242, 238, 0.3); }
.activity__rhead { display: flex; align-items: center; gap: 10px; }
.activity__time { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.activity__lvltag {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.06em;
  text-align: center; padding: 3px 7px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap;
}
.activity__res {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--pink);
  white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}
.activity__res--click { cursor: pointer; }
.activity__res--click:hover { color: var(--ink); text-decoration: underline; }
.activity__ago { margin-left: auto; font-size: 11px; color: rgba(247, 242, 238, 0.4); white-space: nowrap; }
.activity__flag {
  font-size: 11px; font-weight: 600; color: #ffb454;
  background: rgba(255, 180, 84, 0.12); border: 1px solid rgba(255, 180, 84, 0.4);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis;
}
.activity__row--flagged { background: rgba(255, 180, 84, 0.06); border-color: rgba(255, 180, 84, 0.3); }
.activity__flagbanner {
  display: block; width: 100%; text-align: left; font: inherit; cursor: pointer;
  color: #ffb454; background: rgba(255, 180, 84, 0.1); border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 9px; padding: 9px 14px; margin-bottom: 10px; font-weight: 600; font-size: 12.5px;
}
.activity__flagbanner:hover { background: rgba(255, 180, 84, 0.18); }
.activity__body { font-size: 13.5px; line-height: 1.5; color: rgba(247, 242, 238, 0.95); word-break: break-word; }
.activity__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.activity__chip {
  display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%;
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  border: 1px solid rgba(247, 242, 238, 0.1); background: rgba(255, 255, 255, 0.03);
}
.activity__chipk { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.03em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.activity__chipv { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.activity__chip--click { cursor: pointer; }
.activity__chip--click:hover { border-color: rgba(86, 182, 255, 0.5); background: rgba(86, 182, 255, 0.1); }
.activity__chipmore { font-size: 11px; color: var(--muted); align-self: center; }

.activity__dhead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.activity__lvlchip {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 6px; border: 1px solid currentColor; white-space: nowrap;
}
.activity__dbody {
  font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  padding: 14px 16px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(10, 8, 15, 0.5); border: 1px solid rgba(247, 242, 238, 0.1);
}
.activity__metahead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.activity__metahead .backoffice__sub { margin: 0; }
.activity__rawbtn {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; cursor: pointer;
  padding: 5px 11px; border-radius: 6px; color: var(--muted);
  border: 1px solid rgba(247, 242, 238, 0.16); background: transparent;
}
.activity__rawbtn:hover { color: var(--ink); }
.activity__mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.activity__mcell {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 9px 12px; border-radius: 8px;
  border: 1px solid rgba(247, 242, 238, 0.08); background: rgba(10, 8, 15, 0.5);
  border-left: 2px solid rgba(86, 182, 255, 0.4);
}
.activity__mkey { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.activity__mval { font-size: 14px; color: var(--ink); word-break: break-word; }
.activity__nometa { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.activity__json {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow: auto;
  padding: 14px 16px; border-radius: 10px; margin: 6px 0 14px;
  background: rgba(5, 4, 8, 0.7); border: 1px solid rgba(247, 242, 238, 0.1); color: #9fe6c6;
}
.activity__trace { display: flex; flex-wrap: wrap; gap: 0; margin-top: 4px; }
.activity__hint--click { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.activity__hint--click:hover { color: var(--ink); }
.activity__link {
  display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px;
  color: #56b6ff; background: rgba(86, 182, 255, 0.08); border: 1px solid rgba(86, 182, 255, 0.3);
  border-radius: 6px; padding: 4px 9px; margin: 4px 8px 0 0; cursor: pointer; word-break: break-all;
}
.activity__link:hover { background: rgba(86, 182, 255, 0.18); }


@media (max-width: 820px) {
  .activity__mgrid { grid-template-columns: 1fr; }
  .activity__res { max-width: 150px; }
  .activity__chipv { max-width: 150px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:nth-child(even) { margin-top: 0; }
  .locales { grid-template-columns: repeat(2, 1fr); }
  .locale { grid-column: span 1; }
  .locale--special { grid-column: span 2; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .flipcard__media,
  .flipcard--flip .flipcard__media,
  .flipcard__text,
  .flipcard--flip .flipcard__text { grid-column: 1 / 13; grid-row: auto; }
  .flipcard__text { padding-top: 28px; }
  .persona__info { left: 20px; right: 20px; bottom: 40px; }
  .unit { flex-direction: column; align-items: flex-start; }
  .dispatch { grid-template-columns: 1fr; }
  .corkboard { height: auto; }
  .corkboard__sticky { position: static; height: auto; padding: 20px; overflow: visible; display: block; }
  .corkboard__thread, .corkboard__light, .corkboard__unit { display: none; }
  .corkboard__track { flex-direction: column; transform: none !important; padding: 0; }
  .file, .file--reel {
    position: static;
    width: 100%;
    margin: 0 0 26px;
    transform: none;
    filter: none;
  }
  .filenote { position: static; width: 100%; margin-bottom: 26px; }
  .floorshow { height: auto; width: auto; margin-left: 0; }
  .floorshow__sticky { position: static; height: auto; padding: 40px 0; overflow: visible; }
  .floorshow__laser, .floorshow__eq { display: none; }
  .floorshow__stage { height: auto; }
  .floorshow__card, .floorshow__card.is-left, .floorshow__card.is-right, .floorshow__card.is-center,
  .floorshow__card.is-lfar, .floorshow__card.is-rfar {
    position: static;
    width: 100%;
    margin: 0 0 22px;
    transform: none;
    filter: none;
  }
  .eatery__lamp, .eatery__steam, .eatery__rail, .eatery__checker { display: none; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -30px; }
  .locale--special { grid-template-columns: 1fr; }
  .shopcard__img, .shopcard__img--right, .shopcard .card:nth-of-type(n) { grid-column: 1 / 13; grid-row: auto; margin-top: 0; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .locales { grid-template-columns: 1fr; }
  .locale, .locale--special { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============ APPLY PAGE: City Hall application portal ============ */
.is-hidden { display: none !important; }
.intake-page {
  min-height: 100vh;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(45, 214, 184, 0.08), transparent 70%),
    radial-gradient(50% 40% at 10% 100%, rgba(108, 92, 224, 0.08), transparent 70%),
    var(--bg);
}
.intake {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 180px) clamp(20px, 4vw, 40px) 120px;
}
.intake__hero { text-align: center; max-width: 640px; margin: 6vh auto 0; }
.intake__hero .lede { margin-left: auto; margin-right: auto; }
.intake__code {
  font-family: Consolas, monospace;
  font-size: 0.9em;
  color: var(--ink);
  background: rgba(247, 242, 238, 0.08);
  border: 1px solid rgba(247, 242, 238, 0.15);
  border-radius: 6px;
  padding: 2px 8px;
}
.intake__discord { margin-top: 34px; }
.intake__discord-ico { width: 22px; height: 22px; }
.intake__fine {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 242, 238, 0.45);
}
.intake__userbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 7vh;
}
.intake__avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(45, 214, 184, 0.5);
  box-shadow: 0 0 24px rgba(45, 214, 184, 0.25);
}
.intake__welcome {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 8px var(--glow-teal);
}
.intake__username {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
}
.intake__section { margin-top: 7vh; }
.intake__section .display--sm { margin: 6px 0 26px; }
.intake__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.req-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.92), rgba(14, 12, 20, 0.94)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.4), rgba(108, 92, 224, 0.18) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.req-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.req-card__desc { margin: 10px 0 20px; font-size: 14px; color: var(--muted); }
.req-card__foot { margin-top: auto; }
.req-card__btn { font-size: 12px; padding: 13px 24px; }
.req-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 10px;
  padding: 9px 15px;
  border: 1px solid rgba(247, 242, 238, 0.25);
  color: var(--muted);
}
.req-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.req-status--pending { color: var(--orange); border-color: rgba(34, 184, 240, 0.45); }
.req-status--reviewing { color: var(--purple); border-color: rgba(108, 92, 224, 0.5); }
.req-status--approved { color: #6fdd8b; border-color: rgba(111, 221, 139, 0.45); }
.req-status--denied { color: #ff5464; border-color: rgba(255, 84, 100, 0.5); }
.intake__list { display: flex; flex-direction: column; gap: 12px; }
.req-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border: 1px solid rgba(247, 242, 238, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  background: rgba(20, 16, 26, 0.6);
}
.req-row__main { display: flex; align-items: baseline; gap: 14px; }
.req-row__main b { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; font-size: 17px; }
.req-row__date { font-size: 12px; color: var(--muted); }
.req-row__note { width: 100%; order: 3; font-size: 13px; color: var(--muted); }
.req-row__side { display: flex; align-items: center; gap: 12px; }
.req-row__withdraw {
  background: none; border: none; cursor: pointer;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.5);
  border-bottom: 1px solid rgba(247, 242, 238, 0.3);
  padding: 2px 0;
}
.req-row__withdraw:hover { color: #ff5464; border-color: rgba(255, 84, 100, 0.6); }
/* form modal */
.modal__frame--form {
  aspect-ratio: auto;
  max-height: 84vh;
  overflow-y: auto;
  width: min(92vw, 720px);
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.98), rgba(14, 12, 20, 0.99)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.4), rgba(108, 92, 224, 0.18) 55%, rgba(247, 242, 238, 0.07)) border-box;
  border: 1px solid transparent;
  padding: clamp(24px, 3.5vw, 44px);
}
.intake-form__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.intake-form__desc { margin: 8px 0 26px; font-size: 14px; color: var(--muted); }
.intake-form__fields { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.75);
}
.field__input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: rgba(10, 8, 15, 0.7);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field__input:focus {
  border-color: rgba(45, 214, 184, 0.6);
  box-shadow: 0 0 0 3px rgba(45, 214, 184, 0.12);
}
select.field__input { appearance: auto; }
textarea.field__input { resize: vertical; min-height: 110px; }
.field--check { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; }
.field--check input { width: 17px; height: 17px; accent-color: var(--pink); }
.intake-form__submit { margin-top: 28px; width: 100%; justify-content: center; }
/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translateX(-50%) translateY(16px);
  max-width: min(92vw, 480px);
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.97), rgba(14, 12, 20, 0.98)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.5), rgba(108, 92, 224, 0.25)) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 14px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s;
  z-index: 400;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.is-error {
  background:
    linear-gradient(160deg, rgba(32, 14, 18, 0.97), rgba(20, 10, 14, 0.98)) padding-box,
    linear-gradient(150deg, rgba(255, 84, 100, 0.6), rgba(108, 92, 224, 0.2)) border-box;
}
@media (max-width: 760px) {
  .intake__grid { grid-template-columns: 1fr; }
}

/* armed withdraw confirmation */
.req-row__withdraw.is-arm {
  color: #ff5464;
  border-color: rgba(255, 84, 100, 0.7);
  font-weight: 700;
  animation: dotPulse 1s ease-in-out infinite;
}

/* ============ ADMIN REVIEW DESK ============ */
.ops__scope {
  margin-left: auto;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(122, 92, 255, 0.45);
  border-radius: 10px;
  padding: 9px 16px;
}
.ops__filters {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.ops__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ops__tab {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; cursor: pointer;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 10px;
  padding: 10px 16px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.ops__tab b {
  font-size: 11px;
  color: var(--ink);
  background: rgba(247, 242, 238, 0.1);
  border-radius: 10px;
  padding: 2px 8px;
}
.ops__tab:hover { color: var(--ink); }
.ops__tab.is-on {
  color: var(--ink);
  border-color: rgba(45, 214, 184, 0.55);
  background: rgba(45, 214, 184, 0.1);
}
.ops__formsel { max-width: 260px; }
.req-row--click { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color 0.3s, background 0.3s; }
.req-row--click:hover { border-color: rgba(45, 214, 184, 0.45); background: rgba(26, 18, 30, 0.8); }
.ops__rowavatar { width: 34px; height: 34px; border-radius: 50%; }
.ops__empty { text-align: center; color: var(--muted); margin-top: 40px; font-size: 14px; }
.ops__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ops__head .req-status { margin-left: auto; }
.ops__avatar { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(108, 92, 224, 0.5); }
.ops__meta { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-top: 4px; }
.ops__answers {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 22px;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 6px;
}
.ops__answer {
  border: 1px solid rgba(247, 242, 238, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(10, 8, 15, 0.5);
}
.ops__q {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.55);
  margin-bottom: 6px;
}
.ops__a { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

/* prior applications & ban appeals shown under the answers */
.rechist {
  margin: -8px 0 22px;
  border-top: 1px solid rgba(247, 242, 238, 0.1);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.rechist__head {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.6);
  margin-bottom: 2px;
}
.rechist__row {
  border: 1px solid rgba(247, 242, 238, 0.1);
  border-radius: 10px;
  padding: 9px 13px;
  background: rgba(10, 8, 15, 0.5);
}
.rechist__row--flag {
  border-color: rgba(255, 84, 100, 0.5);
  background: rgba(255, 84, 100, 0.08);
}
.rechist__row--click {
  width: 100%; display: block; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rechist__row--click:hover {
  border-color: rgba(108, 92, 224, 0.5);
  background: rgba(108, 92, 224, 0.08);
}
.rechist__badge--muted { color: var(--muted); }
.rechist__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* reviewer note shown atop a prior application in the read-only viewer */
.priornote {
  font-size: 13px; line-height: 1.5;
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 10px 14px; margin-bottom: 16px;
  background: rgba(10, 8, 15, 0.5);
  color: rgba(247, 242, 238, 0.82);
  white-space: pre-wrap;
}
.rechist__badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px;
  border: 1px solid currentColor;
}
.rechist__form { font-size: 13px; font-weight: 600; color: var(--ink); }
.rechist__no { font-size: 12px; color: var(--muted); margin-left: auto; }
.rechist__meta { font-size: 12px; color: var(--muted); margin-top: 5px; }
.rechist__note {
  font-size: 12px; line-height: 1.5; font-style: italic;
  color: rgba(247, 242, 238, 0.72);
  margin-top: 5px; white-space: pre-wrap;
}

.ops__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ops__act { flex: 1; justify-content: center; font-size: 12px; }
.ops__act--approve {
  border-color: rgba(111, 221, 139, 0.5);
  color: #6fdd8b;
}
.ops__act--approve:hover { background: rgba(111, 221, 139, 0.12); border-color: #6fdd8b; }
.ops__act--deny {
  border-color: rgba(255, 84, 100, 0.5);
  color: #ff5464;
}
.ops__act--deny:hover { background: rgba(255, 84, 100, 0.12); border-color: #ff5464; }

/* god-tier badge */
.ops__scope--god {
  color: var(--ink);
  border-color: transparent;
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.95), rgba(14, 12, 20, 0.96)) padding-box,
    var(--grad-sunset) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 24px rgba(45, 214, 184, 0.25);
}

/* key choice chip on application rows (department / venue) */
.req-row__detail {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(45, 214, 184, 0.4);
  border-radius: 10px;
  padding: 5px 11px;
  white-space: nowrap;
}

/* locked identity field in application forms */
.field--locked .field__input {
  color: rgba(247, 242, 238, 0.65);
  background: rgba(247, 242, 238, 0.05);
  border-style: dashed;
  cursor: not-allowed;
}
.field--locked .field__input:focus { border-color: rgba(247, 242, 238, 0.16); box-shadow: none; }
.field__hint {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--purple);
}

/* ============ STAFF & DEPARTMENTS (god panel) ============ */
.ops__sections { display: flex; gap: 8px; margin-bottom: 30px; }
.backoffice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.backoffice__card {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.92), rgba(14, 12, 20, 0.94)) padding-box,
    linear-gradient(150deg, rgba(108, 92, 224, 0.35), rgba(45, 214, 184, 0.16) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.backoffice__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.backoffice__hint { margin: 8px 0 18px; font-size: 13px; color: var(--muted); }
.backoffice__sub {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 22px 0 10px;
  color: rgba(247, 242, 238, 0.8);
}
.backoffice__list { display: flex; flex-direction: column; gap: 10px; }
.backoffice__none { font-size: 13px; color: var(--muted); padding: 8px 2px; }
.backoffice__new { display: flex; gap: 10px; margin-top: 16px; }
.backoffice__new .field__input { flex: 1; }
.backoffice__newbtn, .backoffice__minibtn { font-size: 11px; padding: 11px 18px; flex: 0 0 auto; }
.backoffice__row { padding: 12px 16px; }
.agency {
  border: 1px solid rgba(247, 242, 238, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(20, 16, 26, 0.6);
}
.agency__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agency__head b { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; font-size: 16px; }
.agency__mode { max-width: 170px; padding: 8px 10px; font-size: 12px; }
.agency__desks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.agency__chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(247, 242, 238, 0.14);
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
}
.agency__chip input { accent-color: var(--pink); }
.agency__chip:has(input:checked) {
  color: var(--ink);
  border-color: rgba(45, 214, 184, 0.5);
  background: rgba(45, 214, 184, 0.08);
}
.agency__foot { display: flex; align-items: center; justify-content: space-between; }

/* ---- city departments: member panel (apply portal) ---- */
.agency__switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.agency__switchbtn {
  font-size: 12px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(247, 242, 238, 0.16); background: transparent; color: var(--muted);
  font: inherit; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.agency__switchbtn:hover { color: var(--ink); }
.agency__switchbtn.is-on { color: var(--ink); border-color: rgba(45, 214, 184, 0.5); background: rgba(45, 214, 184, 0.1); }

#agencyBox .agency__head { align-items: flex-start; }
.agency__icon { font-size: 34px; line-height: 1; }
.agency__name { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; font-size: 22px; }
.agency__blurb { font-size: 13px; color: var(--muted); margin-top: 2px; }
.agency__rolechip {
  margin-left: auto; align-self: flex-start;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 10px; color: var(--muted);
  border: 1px solid rgba(247, 242, 238, 0.16);
}
.agency__rolechip--chief { color: #ffd479; border-color: rgba(255, 212, 121, 0.5); background: rgba(255, 212, 121, 0.08); }

.agency__section { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(247, 242, 238, 0.1); }
.agency__h { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; font-size: 15px; margin-bottom: 12px; }
.agency__compose { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.agency__compose .field__input { width: 100%; }
.agency__addrow { flex-direction: row; align-items: center; }
.agency__addrow .field__input { flex: 1; }

.agency__news {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 12px;
  padding: 12px 15px; margin-bottom: 10px; background: rgba(10, 8, 15, 0.5);
}
.agency__newshead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.agency__newshead b { font-size: 15px; }
.agency__newsmeta { font-size: 12px; color: var(--muted); }
.agency__newsbody { font-size: 14px; line-height: 1.6; margin-top: 6px; }
.agency__newsbody p { margin: 6px 0; }
.agency__newsbody ul { margin: 6px 0; padding-left: 20px; }
.agency__newsbody h3, .agency__newsbody h4, .agency__newsbody h5 { margin: 10px 0 4px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em; }

.agency__mini {
  margin-top: 8px; font-size: 11px; padding: 5px 12px; cursor: pointer;
  border-radius: 8px; border: 1px solid rgba(247, 242, 238, 0.18);
  background: transparent; color: var(--muted); font: inherit;
}
.agency__mini:hover { color: var(--ink); border-color: rgba(247, 242, 238, 0.35); }
.agency__mini--danger { color: #ff5464; border-color: rgba(255, 84, 100, 0.4); }
.agency__mini--danger:hover { background: rgba(255, 84, 100, 0.12); border-color: #ff5464; }

.agency__hbedit { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.agency__hbbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.agency__hbstatus { font-size: 12px; color: var(--muted); margin-left: auto; }
.agency__hbpreview, .agency__hbread {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(247, 242, 238, 0.1); background: rgba(10, 8, 15, 0.5);
  font-size: 14px; line-height: 1.65;
}
.agency__hbpreview p, .agency__hbread p { margin: 8px 0; }
.agency__hbpreview ul, .agency__hbread ul { margin: 8px 0; padding-left: 22px; }
.agency__hbpreview h3, .agency__hbread h3,
.agency__hbpreview h4, .agency__hbread h4,
.agency__hbpreview h5, .agency__hbread h5 { margin: 14px 0 6px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em; }

.agency__member {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 8px;
  border: 1px solid rgba(247, 242, 238, 0.1); background: rgba(10, 8, 15, 0.5);
}
.agency__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.agency__memmain { display: flex; flex-direction: column; gap: 2px; }
.agency__memmain .agency__newsmeta { text-transform: none; letter-spacing: 0; }
.agency__member .agency__mini { margin-top: 0; margin-left: auto; }

/* ---- city departments: back office (staff) ---- */
.chief__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.chief__field { display: flex; flex-direction: column; gap: 4px; }
.chief__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chief__field .field__input { font-size: 13px; padding: 9px 12px; }
.chief__chiefs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.chief__chief {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 6px 5px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 212, 121, 0.4); background: rgba(255, 212, 121, 0.08); color: #ffd479;
}
.chief__chiefx {
  border: none; background: rgba(255, 255, 255, 0.12); color: inherit; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; line-height: 1; font-size: 14px;
}
.chief__addchief { max-width: 280px; font-size: 13px; padding: 8px 12px; }
.backoffice__addrow { display: flex; gap: 10px; margin-top: 16px; }
.backoffice__addrow .field__input { flex: 1; }
@media (max-width: 620px) { .chief__grid { grid-template-columns: 1fr; } }

/* ============================================================
   DEPARTMENT MDT (Mobile Data Terminal) — /department
   ============================================================ */
.console-page { background: #07090d; }
.console-main { max-width: 1120px; margin: 0 auto; padding: 104px 20px 60px; min-height: 100vh; }
.console-main .intake__hero { text-align: center; margin: 10vh auto; max-width: 560px; }

.console {
  --mdt-accent: #2be6c8;
  --mdt-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px) 0 0 / 100% 4px,
    #0b0f16;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.console__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--mdt-accent) 45%, transparent);
}
.console__brand { display: flex; align-items: center; gap: 12px; }
.console__logo {
  font-size: 24px; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 10px; background: color-mix(in srgb, var(--mdt-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--mdt-accent) 45%, transparent);
}
.console__brandtext { display: flex; flex-direction: column; }
.console__unit { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; color: var(--ink); }
.console__sub { font-family: var(--mdt-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

.console__status { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.console__pill {
  font-family: var(--mdt-mono); font-size: 11px; letter-spacing: 0.12em;
  padding: 3px 12px; border-radius: 10px; color: var(--mdt-accent);
  border: 1px solid color-mix(in srgb, var(--mdt-accent) 50%, transparent);
  background: color-mix(in srgb, var(--mdt-accent) 12%, transparent);
}
.console__clock { font-family: var(--mdt-mono); font-size: 16px; letter-spacing: 0.14em; color: var(--mdt-accent); }

.console__id { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.console__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.15); }
.console__idtext { display: flex; flex-direction: column; align-items: flex-end; }
.console__idname { font-size: 14px; color: var(--ink); }
.console__idbadge {
  font-family: var(--mdt-mono); font-size: 10px; letter-spacing: 0.12em;
  padding: 2px 8px; border-radius: 4px; margin-top: 2px;
  color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.16);
}
.console__idbadge--chief { color: #ffd479; border-color: rgba(255, 212, 121, 0.5); background: rgba(255, 212, 121, 0.1); }

.console__switch { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 0; }
.console__switchbtn {
  font-family: var(--mdt-mono); font-size: 12px; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: var(--muted); font-weight: 500;
}
.console__switchbtn.is-on { color: var(--ink); border-color: color-mix(in srgb, var(--mdt-accent) 60%, transparent); background: color-mix(in srgb, var(--mdt-accent) 12%, transparent); }

.console__nav { display: flex; gap: 4px; padding: 14px 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.console__navbtn {
  font-family: var(--mdt-mono); font-size: 13px; letter-spacing: 0.04em;
  padding: 12px 18px; cursor: pointer; background: transparent; border: none;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.console__navbtn:hover { color: var(--ink); }
.console__navbtn.is-on { color: var(--mdt-accent); border-bottom-color: var(--mdt-accent); }

.console__body { padding: 22px; }
.console__wrap { display: flex; flex-direction: column; gap: 18px; }
.console__loading, .console__empty { font-family: var(--mdt-mono); font-size: 13px; color: var(--muted); padding: 10px 2px; }

.console__panel { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.02); padding: 16px 18px; }
.console__panelhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.console__paneltitle { font-family: var(--mdt-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--mdt-accent); }
.console__panelsub { font-family: var(--mdt-mono); font-size: 11px; color: var(--muted); }

.console__compose, .console__addrow, .console__bar2 { display: flex; flex-wrap: wrap; gap: 10px; }
.console__compose { flex-direction: column; }
.console__compose .field__input, .console__editor { width: 100%; }
.console__addrow .field__input { flex: 1; min-width: 200px; }
.console__btn { font-size: 12px; padding: 10px 18px; flex: 0 0 auto; }
.console__editor { font-family: var(--mdt-mono); font-size: 13px; line-height: 1.55; }
.console__bar2 { margin-top: 10px; align-items: center; }

.console__news { border-left: 2px solid color-mix(in srgb, var(--mdt-accent) 55%, transparent); padding: 10px 14px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.015); border-radius: 0 8px 8px 0; }
.console__newshead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.console__newshead b { font-size: 15px; color: var(--ink); }
.console__meta { font-family: var(--mdt-mono); font-size: 11px; color: var(--muted); }
.console__prose { font-size: 14px; line-height: 1.65; margin-top: 6px; color: rgba(247, 242, 238, 0.9); }
.console__prose p { margin: 7px 0; }
.console__prose ul { margin: 7px 0; padding-left: 20px; }
.console__prose h3, .console__prose h4, .console__prose h5 { margin: 12px 0 5px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em; color: var(--ink); }
.console__preview { margin-top: 14px; border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 14px 16px; }

.console__mini { font-family: var(--mdt-mono); font-size: 11px; padding: 5px 12px; margin-top: 8px; cursor: pointer; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--muted); }
.console__mini:hover { color: var(--ink); }
.console__mini--danger { color: #ff6a5f; border-color: rgba(255, 106, 95, 0.4); margin-top: 0; }
.console__mini--danger:hover { background: rgba(255, 106, 95, 0.12); }

.console__person { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.015); }
.console__personav { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.console__personmain { display: flex; flex-direction: column; gap: 2px; }
.console__person > .console__mini, .console__person > .console__rank { margin-left: auto; }
.console__rank { font-family: var(--mdt-mono); font-size: 10px; letter-spacing: 0.12em; color: #ffd479; border: 1px solid rgba(255, 212, 121, 0.4); padding: 3px 9px; border-radius: 4px; }

@media (max-width: 720px) {
  .console__bar { grid-template-columns: 1fr auto; }
  .console__status { grid-column: 1 / -1; flex-direction: row; order: 3; justify-content: space-between; }
}

/* --- rich-text toolbar --- */
.console__toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0 8px; }
.console__tool { font-family: var(--mdt-mono); font-size: 12px; min-width: 30px; padding: 6px 9px; cursor: pointer; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.console__tool:hover { color: var(--ink); border-color: color-mix(in srgb, var(--mdt-accent) 50%, transparent); }
.console__tool--b { font-weight: 800; }
.console__tool--i { font-style: italic; }
.console__toolsep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.12); margin: 0 4px; }

/* --- read receipts --- */
.console__newsfoot { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.console__ack { font-family: var(--mdt-mono); font-size: 12px; padding: 7px 14px; cursor: pointer; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--mdt-accent) 50%, transparent); background: color-mix(in srgb, var(--mdt-accent) 12%, transparent); color: var(--mdt-accent); }
.console__ack:hover { background: color-mix(in srgb, var(--mdt-accent) 20%, transparent); }
.console__ack--done { border-color: rgba(111, 221, 139, 0.4); background: rgba(111, 221, 139, 0.1); color: #6fdd8b; cursor: default; }

.console__navcount { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; font-family: var(--mdt-mono); font-size: 10px; background: var(--mdt-accent); color: #06121f; font-weight: 700; }
.console__note { font-family: var(--mdt-mono); font-size: 12px; color: var(--muted); border-left: 2px solid rgba(255, 180, 84, 0.5); padding: 6px 12px; margin-bottom: 12px; background: rgba(255, 180, 84, 0.06); border-radius: 0 6px 6px 0; }

/* --- logs: status board + activity feed --- */
.console__statusrow { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.console__statusrow:last-child { border-bottom: none; }
.console__statusrow .console__personmain { flex: 1; }
.console__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 8px currentColor; }
.console__dot--on { color: #2ee6a6; background: #2ee6a6; }
.console__dot--off { color: #6b7280; background: #6b7280; box-shadow: none; }
.console__dot--disp { color: #ffb454; background: #ffb454; }
.console__dot--brk { color: #4c8dff; background: #4c8dff; }
.console__statuspill { font-family: var(--mdt-mono); font-size: 10px; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 4px; border: 1px solid currentColor; margin-left: auto; white-space: nowrap; }
.console__statuspill--on { color: #2ee6a6; }
.console__statuspill--off { color: #9aa0aa; }
.console__statuspill--disp { color: #ffb454; }
.console__statuspill--brk { color: #4c8dff; }
.console__readtag { font-family: var(--mdt-mono); font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.console__readtag--ok { color: #6fdd8b; border: 1px solid rgba(111, 221, 139, 0.4); }
.console__readtag--no { color: #9aa0aa; border: 1px solid rgba(255, 255, 255, 0.15); }

.console__logrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 13px; }
.console__logrow:last-child { border-bottom: none; }
.console__logico { width: 20px; text-align: center; }
.console__logtag { font-family: var(--mdt-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--mdt-accent); border: 1px solid color-mix(in srgb, var(--mdt-accent) 40%, transparent); padding: 2px 7px; border-radius: 4px; min-width: 64px; text-align: center; }
.console__logtxt { flex: 1; color: rgba(247, 242, 238, 0.9); }

/* --- personnel rows (clickable) --- */
.console__person--click { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color 0.15s, background 0.15s; }
.console__person--click:hover { border-color: color-mix(in srgb, var(--mdt-accent) 45%, transparent); background: rgba(255, 255, 255, 0.03); }
.console__person .console__personmain { flex: 1; }
.console__chev { font-size: 20px; color: var(--muted); margin-left: 4px; }

/* --- performance page --- */
.console__back { font-family: var(--mdt-mono); font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer; padding: 4px 0; margin-bottom: 4px; }
.console__back:hover { color: var(--ink); }
.console__perfhead { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.console__perfav { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid color-mix(in srgb, var(--mdt-accent) 50%, transparent); }
.console__perfhead > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.console__perfname { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.03em; }
.console__perfhead .console__statuspill { margin-left: 0; }
.console__statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.console__stat { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 14px; text-align: center; background: rgba(255, 255, 255, 0.02); }
.console__stat--accent { border-color: color-mix(in srgb, var(--mdt-accent) 45%, transparent); background: color-mix(in srgb, var(--mdt-accent) 8%, transparent); }
.console__statval { display: block; font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--ink); }
.console__stat--accent .console__statval { color: var(--mdt-accent); }
.console__statlabel { font-family: var(--mdt-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.console__facts { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: rgba(247, 242, 238, 0.85); margin-bottom: 14px; }

/* --- applications (chief review) --- */
.console__apptabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.console__apptab { font-family: var(--mdt-mono); font-size: 12px; padding: 7px 13px; cursor: pointer; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: var(--muted); }
.console__apptab.is-on { color: var(--ink); border-color: color-mix(in srgb, var(--mdt-accent) 55%, transparent); background: color-mix(in srgb, var(--mdt-accent) 12%, transparent); }
.console__app { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: rgba(255, 255, 255, 0.02); }
.console__apphead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.console__apphead .console__personmain { flex: 1; }
.console__apphead .console__statuspill { margin-left: auto; }
.console__answers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.console__answer { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid rgba(255, 255, 255, 0.1); padding-left: 10px; }
.console__alabel { font-family: var(--mdt-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.console__avalue { font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.console__appnote { font-size: 13px; color: rgba(247, 242, 238, 0.8); font-style: italic; margin-bottom: 10px; }
.console__statuspill--app-pending { color: #ffb454; }
.console__statuspill--app-reviewing { color: #6c5ce0; }
.console__statuspill--app-approved { color: #6fdd8b; }
.console__statuspill--app-denied { color: #ff6a5f; }
.console__btn--ok { border-color: rgba(111, 221, 139, 0.5); color: #6fdd8b; }
.console__btn--ok:hover { background: rgba(111, 221, 139, 0.12); }
.console__btn--no { border-color: rgba(255, 106, 95, 0.5); color: #ff6a5f; }
.console__btn--no:hover { background: rgba(255, 106, 95, 0.12); }
.console__app .field__input { margin-bottom: 10px; }
.console__reply { display: flex; flex-direction: column; gap: 7px; margin: 8px 0 14px; }
.console__replylabel { font-family: var(--mdt-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.console__replybox, .console__composebox {
  width: 100%; resize: vertical;
  font-size: 14px; line-height: 1.6; padding: 13px 15px;
  border-radius: 10px; background: rgba(10, 8, 15, 0.55);
}
.console__replybox { min-height: 110px; margin-bottom: 0; }
.console__composebox { min-height: 150px; }
.console__replybox:focus, .console__composebox:focus {
  border-color: color-mix(in srgb, var(--mdt-accent) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mdt-accent) 14%, transparent);
  outline: none;
}
@media (max-width: 620px) { .console__statgrid { grid-template-columns: repeat(2, 1fr); } }

/* --- handbook library (collapsible cards) --- */
.console__hbcard { padding: 0; overflow: hidden; }
.console__hbhead {
  width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 18px; background: transparent; border: none; font: inherit; color: inherit; text-align: left;
}
.console__hbhead:hover { background: rgba(255, 255, 255, 0.02); }
.console__hbheadmain { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.console__hbtitle { font-size: 15px; color: var(--ink); }
.console__hbstat { font-family: var(--mdt-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.console__hbstat--ok { color: #6fdd8b; }
.console__hbtoggle { font-size: 16px; color: var(--muted); transition: transform 0.2s; }
.console__hbcard.is-open .console__hbtoggle { transform: rotate(180deg); }
.console__hbbody { padding: 0 18px 18px; }

/* --- ranks --- */
.console__rankhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.console__rankname { max-width: 260px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em; font-size: 16px; }
.console__rankperms { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.console__rchk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.console__rchk input { accent-color: var(--mdt-accent); }
.console__rchk:has(input:checked) { color: var(--ink); }
.console__rankvis { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.console__rankchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.console__rchip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer;
  padding: 5px 11px; border-radius: 10px; color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.console__rchip input { accent-color: var(--mdt-accent); }
.console__rchip:has(input:checked) { color: var(--ink); border-color: color-mix(in srgb, var(--mdt-accent) 55%, transparent); background: color-mix(in srgb, var(--mdt-accent) 12%, transparent); }
.console__rankassign { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.console__rankassign .field__input { max-width: 220px; }

@media (max-width: 900px) {
  .backoffice__grid { grid-template-columns: 1fr; }
}

/* ============ BACK OFFICE: tables ============ */
.intake--wide { max-width: 1240px; }
.backoffice__card--wide { margin-bottom: 26px; }
.backoffice__deptrules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.roster__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.roster__rules {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple);
}
.dtbl-wrap { overflow-x: auto; }
.dtbl { width: 100%; border-collapse: collapse; }
.dtbl th {
  text-align: left;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.45);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(247, 242, 238, 0.12);
}
.dtbl td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(247, 242, 238, 0.06);
  vertical-align: middle;
}
.dtbl tbody tr { transition: background 0.25s; }
.dtbl tbody tr:hover { background: rgba(45, 214, 184, 0.04); }
.dtbl__user { display: flex; align-items: center; gap: 10px; }
.dtbl__user b { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; font-size: 15px; }
.dtbl__dim { color: var(--muted); font-size: 13px; }
.identity__stats { display: flex; gap: 12px; margin-bottom: 8px; }
.identity__stat {
  flex: 1;
  text-align: center;
  border: 1px solid rgba(247, 242, 238, 0.1);
  border-radius: 12px;
  padding: 14px 10px;
  background: rgba(10, 8, 15, 0.5);
}
.identity__stat b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.identity__stat span {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* statistics tab */
.metrics__tiles .identity__stat { padding: 20px 12px; }
.metrics__live b { position: relative; }
.metrics__live b::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: #6fdd8b;
  box-shadow: 0 0 12px rgba(111, 221, 139, 0.9);
  animation: dotPulse 2s ease-in-out infinite;
  vertical-align: middle;
}
.metrics__barcell { width: 45%; }
.metrics__bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--grad-sunset);
  box-shadow: 0 0 14px rgba(45, 214, 184, 0.35);
  min-width: 6px;
}

/* repeatable platform rows in application forms */
.repeater__rows { display: flex; flex-direction: column; gap: 10px; }
.repeater__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.repeater__row select { flex: 0 0 160px; }
.repeater__row input { flex: 1; }
.repeater__rm {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(247, 242, 238, 0.2);
  background: none;
  color: var(--muted);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.repeater__rm:hover { color: #ff5464; border-color: rgba(255, 84, 100, 0.6); }
.repeater__add {
  align-self: flex-start;
  margin-top: 10px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink);
  border-bottom: 1px solid rgba(45, 214, 184, 0.5);
  padding: 2px 0;
  transition: color 0.3s;
}
.repeater__add:hover { color: var(--ink); }

/* clickable table rows */
.dtbl tbody tr.dtbl__click { cursor: pointer; }

/* ---- job board conveyors: two counter-scrolling rows ---- */
.workreel { height: 520vh; }
.workreel__rows {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(18px, 3.5vh, 34px);
  height: 100%;
  padding-bottom: 13vh;
}
.workreel__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  padding: 0 6vw;
  will-change: transform;
}
/* cards shrink so both conveyors fit under the title card */
.workreel__rows .workreel__item {
  width: clamp(220px, 24vw, 380px);
  margin: 0 !important;   /* no zigzag on the board */
}
.workreel__rows .workreel__idx {
  font-size: clamp(52px, 5vw, 78px);
  right: -4px; bottom: -16px;
}
/* the focused card gets its chrome (arc FX already scales/brightens it) */
.workreel__rows .workreel__item::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(45, 214, 184, 0.55);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
  z-index: 3;
}
.workreel__rows .workreel__item.is-focus::after { opacity: 1; }
.workreel__rows .workreel__item.is-focus {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(45, 214, 184, 0.18);
}

/* the waiting conveyor sits back until its act */
.workreel__row {
  transition: opacity 0.6s var(--ease-out);
}
.workreel__row.is-idle { opacity: 0.35; }

/* ============ JOBS BOARD: split-flap now-hiring departures ============ */
.floorshow--jobs { height: 1050vh; }
.floorshow--jobs .floorshow__sticky {
  display: flex;
  align-items: center;
  justify-content: center;
}
.workboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  width: min(94vw, 1360px);
}
/* --- the screen: cards flip like departure flaps --- */
.workboard__screenwrap { perspective: 1400px; }
.workboard__plate {
  display: inline-block;
  font-family: Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 242, 238, 0.55);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 9px 16px;
  background: rgba(18, 14, 24, 0.85);
}
.workboard__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0 14px 14px 14px;
  border: 1px solid rgba(45, 214, 184, 0.25);
  background: #0b0812;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  perspective: 1400px;
  transform-style: preserve-3d;
}
.workboard__card {
  position: absolute;
  inset: 0;
  width: auto;
  margin: 0;
  border-radius: 13px;
  overflow: hidden;
  opacity: 0;
  transform: none;
  -webkit-box-reflect: none;
  /* hidden cards linger until the wipe has covered them — no black gap */
  transition: opacity 0.3s 0.6s, filter 0.5s;
  pointer-events: none;
}
/* the club carousel's side positions must never leak onto the board */
.workboard__card.is-left,
.workboard__card.is-right,
.workboard__card.is-rfar,
.workboard__card.is-lfar {
  transform: none;
}
.workboard__card.is-rfar,
.workboard__card.is-lfar {
  opacity: 0;
  z-index: 0;
}
/* the neighbours hold flat underneath, dimmed — the wipe lands on them */
.workboard__card.is-left,
.workboard__card.is-right {
  opacity: 1;
  z-index: 1;
  filter: brightness(0.5) saturate(0.75);
  transition: opacity 0.3s, filter 0.45s;
}
.workboard__card.is-center {
  opacity: 1;
  z-index: 2;
  filter: none;
  animation: cardReveal 0.65s cubic-bezier(0.6, 0.05, 0.25, 1) both;
}
@keyframes cardReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
/* the scan bar that sweeps the new feed in */
.workboard__screen::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 11%;
  background: linear-gradient(90deg,
    transparent,
    rgba(45, 214, 184, 0.35) 35%,
    rgba(255, 236, 245, 0.85) 50%,
    rgba(108, 92, 224, 0.35) 65%,
    transparent);
  filter: blur(2px);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}
.floorshow--jobs.is-swap .workboard__screen::after {
  animation: scanSweep 0.65s cubic-bezier(0.6, 0.05, 0.25, 1) both;
}
@keyframes scanSweep {
  0% { transform: translateX(-120%); opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(1020%); opacity: 0; }
}
/* faint CRT flicker on the incoming feed */
.floorshow--jobs.is-swap .workboard__card.is-center video.is-ready {
  animation: swapFlick 0.4s steps(3) both;
}
@keyframes swapFlick {
  0% { filter: brightness(1.35) saturate(1.4); }
  60% { filter: brightness(0.92) saturate(0.9); }
  100% { filter: none; }
}
.workboard__card video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}
.workboard__card video.is-ready { opacity: 1; }
.workboard__idx {
  position: absolute;
  right: 10px; bottom: -6px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(70px, 7vw, 110px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 242, 238, 0.22);
  z-index: 2;
  pointer-events: none;
}
.workboard__card .flipcard__bar { border-radius: 0 0 13px 13px; z-index: 3; }
/* --- the hiring board --- */
.workboard__panel {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: clamp(16px, 1.8vw, 26px);
  background:
    linear-gradient(160deg, rgba(19, 15, 26, 0.95), rgba(11, 9, 16, 0.97)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.35), rgba(108, 92, 224, 0.16) 55%, rgba(247, 242, 238, 0.07)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.workboard__head {
  display: flex; align-items: center; gap: 10px;
  font-family: Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(247, 242, 238, 0.15);
}
.workboard__head b { color: var(--pink); }
.workboard__head i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6fdd8b;
  box-shadow: 0 0 12px rgba(111, 221, 139, 0.9);
  animation: dotPulse 2s ease-in-out infinite;
}
.workboard__rows {
  display: flex;
  flex-direction: column;
  max-height: 62vh;
  overflow: hidden;
}
.workboard__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 8px 6px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(247, 242, 238, 0.06);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.35s;
}
.workboard__row:hover { background: rgba(45, 214, 184, 0.05); }
.workboard__row.is-on { background: rgba(45, 214, 184, 0.08); }
.workboard__no {
  font-family: Consolas, monospace;
  font-size: 10px;
  color: rgba(247, 242, 238, 0.4);
}
.workboard__row.is-on .workboard__no { color: var(--pink); }
.workboard__name { display: flex; gap: 2px; flex-wrap: wrap; }
.workboard__tile {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  height: 20px;
  padding: 0 1px;
  font-family: Consolas, monospace;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: rgba(247, 242, 238, 0.55);
  background: linear-gradient(180deg, #201a2b 48%, #171221 52%);
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.workboard__row.is-on .workboard__tile {
  color: var(--ink);
  background: linear-gradient(180deg, #3a2237 48%, #2b1830 52%);
  animation: flapTile 0.45s calc(var(--i) * 45ms) both;
}
@keyframes flapTile {
  0% { transform: rotateX(90deg); }
  60% { transform: rotateX(-18deg); }
  100% { transform: rotateX(0); }
}
.workboard__status {
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 242, 238, 0.35);
}
.workboard__row.is-on .workboard__status {
  color: #6fdd8b;
  text-shadow: 0 0 12px rgba(111, 221, 139, 0.6);
}
/* the active row unfolds its description */
.workboard__desc {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  transition: max-height 0.5s var(--ease-out), padding 0.5s;
  padding: 0 0 0 26px;
}
.workboard__row.is-on .workboard__desc { max-height: 64px; padding: 6px 0 4px 26px; }

@media (max-width: 980px) {
  .workboard { grid-template-columns: 1fr; }
  .workboard__rows { max-height: 34vh; overflow-y: auto; }
}

/* ============ MOBILE PASS: fast + designed for phones ============ */

/* fix the stacked-layout height bug: the diner/mech/jobs stage heights are
   declared after the 900px collapse rules, so they were leaving thousands of
   pixels of empty scroll under each stacked section on phones */
@media (max-width: 900px) {
  .floorshow--diner, .floorshow--mech { height: auto; }
  .floorshow--diner .floorshow__sticky, .floorshow--mech .floorshow__sticky {
    display: block; height: auto; padding: 40px 0;
  }
  .corkboard__tape, .corkboard__confidential, .corkboard__string { display: none; }
  .eatery__sign, .eatery__clip, .eatery__ticket, .garage__floor { display: none; }
  .floorshow__glow { width: 130vw; height: 60vh; filter: blur(60px); }

  /* the jobs board keeps its pinned split-flap show, just shorter */
  .floorshow--jobs { height: 520vh; }
  .floorshow--jobs .floorshow__sticky {
    position: sticky; top: 0; height: 100vh;
    padding: 84px 0 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .workboard { width: 94vw; gap: 14px; align-content: center; }
  .workboard__rows { max-height: 30vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  /* the generic stacked-card collapse above must not knock the board's
     cards out of the screen frame — they stay layered */
  .workboard__card, .workboard__card.is-left, .workboard__card.is-right,
  .workboard__card.is-center, .workboard__card.is-lfar, .workboard__card.is-rfar {
    position: absolute; inset: 0; width: auto; margin: 0;
  }
}

@media (max-width: 820px) {
  /* ---- speed: drop the chrome phones pay for but can't show off ---- */
  html, body { overflow-x: clip; }
  .grain { animation: none; opacity: 0.035; }
  .bgtext, .scrub-tip, .workreel__cloud { display: none; }
  .card::before { display: none; }
  .floorshow__card, .garage__card { -webkit-box-reflect: none; }
  .floorshow__laser, .floorshow__eq, .eatery__lamp, .eatery__steam,
  .corkboard__light { display: none; }

  /* shorter pinned runways — phone scrolling is thumb work */
  .splash { height: 165vh; }
  .widen { height: 190vh; }
  .widen--scrub { height: 240vh; }
  .floorshow--jobs { height: 440vh; }

  /* ---- design: tighter rhythm, bigger media, no dead air ---- */
  .container { padding-left: 18px; padding-right: 18px; }
  .flipcard__num { font-size: clamp(64px, 22vw, 110px); top: -26px; }
  .flipcard__text { padding-top: 18px; }
  .persona__info { left: 16px; right: 16px; bottom: 30px; }

  .metricbar { display: flex; flex-wrap: wrap; gap: 10px; }
  .metricbar__item { flex: 1 1 calc(50% - 10px); min-width: 130px; }

  .workboard__plate { font-size: 9px; padding: 7px 10px; letter-spacing: 0.22em; }
  .workboard__rows { max-height: 26vh; }
  .workboard__desc { font-size: 12px; }

  .floorshow__sticky { padding: 28px 0; }
  .floorshow__card:not(.workboard__card),
  .floorshow__card.is-left:not(.workboard__card),
  .floorshow__card.is-right:not(.workboard__card),
  .floorshow__card.is-center:not(.workboard__card),
  .floorshow__card.is-lfar:not(.workboard__card),
  .floorshow__card.is-rfar:not(.workboard__card) {
    animation: none; clip-path: none;
  }
  /* case files: kill the desktop zigzag offsets and corner tape, breathe evenly.
     the depth-of-field dim/blur and active-case zoom are desktop tricks — on a
     stacked phone layout every case reads full brightness at natural size */
  .corkboard__sticky { padding: 24px 14px; }
  .corkboard__track .file--reel,
  .corkboard__track .file--reel.is-active {
    transform: none; filter: none; box-shadow: none;
  }
  .file, .file--reel { margin: 0 0 18px; }
  .corkboard__track .file--reel:nth-of-type(even) { margin-top: 0; }
  .corkboard__track .file--reel:nth-of-type(odd) { margin-bottom: 18px; }
  .file::before, .file::after { display: none; }
  .filenote { margin: 0 0 18px; }

  /* compact header: the pill was eating a third of the screen */
  .header { padding: 12px 16px; }
  .header__logo { font-size: 21px; }
  .header__actions { gap: 10px; }
  .btn--trailer { padding: 9px 14px; font-size: 10.5px; letter-spacing: 0.14em; white-space: nowrap; }

  .footer__cta { flex-wrap: wrap; }
}

/* stable viewport units where supported: no jump when the URL bar hides */
@supports (height: 1svh) {
  @media (max-width: 900px) {
    .splash__sticky, .widen__sticky, .persona,
    .floorshow--jobs .floorshow__sticky { height: 100svh; }
  }
}

/* ============ SCRIPT GUIDE (staff panel tab) ============ */
.manual__search { margin-bottom: 16px; }
.manual__search .field__input { max-width: 420px; }
.manual__count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* home: staff testing primer */
.manual__primer { margin-bottom: 18px; }
.manual__housekeeping { opacity: 0.8; }
.manual__code {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 12px;
  background: rgba(10, 10, 15, 0.6); padding: 12px 14px; margin: 12px 0;
  overflow-x: auto;
}
.manual__codeline { display: flex; align-items: baseline; gap: 14px; padding: 3px 0; flex-wrap: wrap; }
.manual__codeline code {
  font-family: "Consolas", "Menlo", monospace; font-size: 13px;
  color: var(--orange); white-space: pre;
}
.manual__codewhy { font-size: 12px; color: var(--muted); }

/* home: category tiles */
.manual__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.manual__cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 16px;
  background: rgba(255, 255, 255, 0.02); padding: 20px; cursor: pointer;
  font-family: inherit; color: var(--ink); text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}
.manual__cat:hover { border-color: var(--pink); transform: translateY(-2px); }
.manual__catico { font-size: 30px; line-height: 1; }
.manual__cattitle { font-size: 16px; font-weight: 700; }
.manual__catdesc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.manual__catcount { font-size: 12px; color: var(--pink); margin-top: auto; padding-top: 6px; }

/* category header */
.manual__cathead { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.manual__cathead .manual__catico { font-size: 34px; }
.manual__cathead .backoffice__title { margin: 0; }
.manual__cathead .backoffice__hint { margin: 2px 0 0; }

/* script cards */
.manual__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.manual__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 16px;
  background: rgba(255, 255, 255, 0.02); padding: 18px; cursor: pointer;
  font-family: inherit; color: var(--ink); text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}
.manual__card:hover { border-color: var(--pink); transform: translateY(-2px); }
.manual__card--mock { border-style: dashed; opacity: 0.85; }
.manual__cardhead { display: flex; align-items: center; gap: 10px; width: 100%; }
.manual__cardico { font-size: 22px; }
.manual__cardname { font-size: 15.5px; }
.manual__cardpay { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--orange); white-space: nowrap; }
.manual__cardtag { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* badges */
.manual__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.manual__badge {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(247, 242, 238, 0.18); border-radius: 10px;
  padding: 3px 10px; color: var(--muted);
}
.manual__badge--legal { border-color: rgba(111, 227, 165, 0.5); color: #6fe3a5; }
.manual__badge--grey { border-color: rgba(34, 184, 240, 0.5); color: var(--orange); }
.manual__badge--crime { border-color: rgba(45, 214, 184, 0.55); color: var(--pink); }
.manual__badge--core { border-color: rgba(108, 92, 224, 0.55); color: var(--purple); }
.manual__badge--mock { border-style: dashed; color: var(--muted); }

/* back button */
.manual__back {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 13.5px; color: var(--pink); padding: 0; margin-bottom: 14px;
}
.manual__back:hover { text-decoration: underline; }

/* detail view */
.manual__detail { width: 100%; }
.manual__dhead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.manual__dico { font-size: 38px; line-height: 1; }
.manual__dname { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: 0.03em; margin-bottom: 6px; }
.manual__dtag { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.manual__mocknote {
  border: 1px dashed rgba(247, 242, 238, 0.3); border-radius: 12px;
  padding: 10px 14px; font-size: 13px; color: var(--muted); margin-bottom: 16px;
}
.manual__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.manual__panelstack { display: flex; flex-direction: column; gap: 14px; }
.manual__panel {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 14px;
  background: rgba(255, 255, 255, 0.02); padding: 16px 18px;
}
.manual__panel .manual__code { margin: 0; }
.manual__panel--items, .manual__panel--run { margin-top: 14px; }
.manual__ptitle {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.manual__ref { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.manual__refk {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding-top: 2px; white-space: nowrap;
}
.manual__refv { font-family: "Consolas", "Menlo", monospace; font-size: 13px; color: var(--ink); word-break: break-word; }
.manual__payrange { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--orange); }
.manual__paynote { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.manual__chips { display: flex; gap: 7px; flex-wrap: wrap; }
.manual__chip {
  font-family: "Consolas", "Menlo", monospace; font-size: 12px;
  border: 1px solid rgba(108, 92, 224, 0.35); border-radius: 10px;
  background: rgba(108, 92, 224, 0.08); padding: 4px 11px;
}
.manual__steps { margin: 0; padding: 0; list-style: none; counter-reset: guidestep; }
.manual__steps li {
  counter-increment: guidestep;
  position: relative; padding: 9px 0 9px 44px;
  font-size: 13.5px; line-height: 1.6;
  border-bottom: 1px solid rgba(247, 242, 238, 0.06);
}
.manual__steps li:last-child { border-bottom: none; }
.manual__steps li::before {
  content: counter(guidestep);
  position: absolute; left: 0; top: 9px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #0a0a0f;
  background: var(--grad-sunset);
}
.manual__staffnote {
  margin-top: 16px; border: 1px solid rgba(34, 184, 240, 0.4); border-radius: 12px;
  background: rgba(34, 184, 240, 0.07); padding: 12px 16px;
  font-size: 13px; line-height: 1.6;
}
@media (max-width: 1100px) {
  .manual__cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .manual__cols { grid-template-columns: 1fr; }
  .manual__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .manual__cats { grid-template-columns: 1fr; }
  .manual__cardpay { display: none; }
}
.manual__cat--locked { opacity: 0.45; cursor: default; }
.manual__cat--locked:hover { border-color: rgba(247, 242, 238, 0.12); transform: none; }
.manual__cat--locked .manual__catcount { color: var(--muted); }
/* guides quick-access in the ticket chat */
.helpdesk__guidesel { max-width: 170px; padding: 8px 10px; font-size: 13px; }
.manual-modal .modal__frame { width: min(92vw, 920px); }
.manual-modal .manual__detail { border: none; background: none; padding: 6px 4px; }
.helpdesk__guidecat {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 10px 2px 4px;
}
.helpdesk__miniico { flex: 0 0 auto; }
/* collapsible guide categories in the citizen file */
.helpdesk__gcat {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: none; background: none; cursor: pointer; font-family: inherit;
  color: var(--ink); font-size: 12.5px; font-weight: 600;
  padding: 8px 2px; text-align: left;
  border-bottom: 1px solid rgba(247, 242, 238, 0.06);
}
.helpdesk__gcat:hover .helpdesk__gcatname { color: var(--pink); }
.helpdesk__gcat--locked { opacity: 0.45; cursor: default; }
.helpdesk__gcat--locked:hover .helpdesk__gcatname { color: var(--ink); }
.helpdesk__gcatarrow { width: 16px; text-align: center; font-size: 11px; color: var(--muted); }
.helpdesk__gcatname { flex: 1 1 auto; }
.helpdesk__gcat .ops__tabcount { margin-left: auto; }
.helpdesk__gcatbody { padding: 2px 0 6px 10px; }
/* ============ REFUND CLAIMS (citizen portal) ============ */
.credit__wallet {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border: 1px solid transparent; border-radius: 18px;
  padding: 20px 24px; margin-bottom: 18px;
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.92), rgba(14, 12, 20, 0.94)) padding-box,
    linear-gradient(150deg, rgba(108, 92, 224, 0.45), rgba(45, 214, 184, 0.25) 55%, rgba(247, 242, 238, 0.08)) border-box;
}
.credit__walletlabel {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.credit__balance {
  font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.credit__walletnote { font-size: 12.5px; color: var(--muted); }

/* the code a citizen hands over in the city to collect their credits */
.credit__code {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  margin-top: 12px; padding: 16px 18px; border-radius: 14px;
  border: 1px dashed rgba(45, 214, 184, 0.45);
  background: linear-gradient(135deg, rgba(45, 214, 184, 0.09), rgba(108, 92, 224, 0.06));
}
.credit__codelabel {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.credit__codevalue {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(22px, 4vw, 30px); font-weight: 700; letter-spacing: 0.12em;
  color: var(--ink); user-select: all;
}
.credit__codecopy { align-self: center; }
.credit__codehint { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: 2px; }
.credit__form { display: flex; gap: 10px; flex-wrap: wrap; }
.credit__form .field__input { flex: 1 1 260px; font-family: "Consolas", "Menlo", monospace; }
.credit__hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 18px; }

/* ============================================================
   CHANGELOG — public page (/changelog) + staff editor
   ============================================================ */
.patch { max-width: 1180px; margin: 0 auto; padding: 120px 24px 80px; }
.patch__hero { text-align: center; margin-bottom: 44px; }
.patch__hero .lede { max-width: 560px; margin: 12px auto 0; }

.patch__wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: start; }

.patch__side { position: sticky; top: 100px; }
.patch__sidehead {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink); padding: 0 4px 10px;
}
.patch__list { display: flex; flex-direction: column; gap: 4px; max-height: 68vh; overflow-y: auto; padding-right: 4px; }
.patch__item {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: var(--muted);
  background: transparent; border: none; border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0; padding: 10px 12px;
}
.patch__item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.035); }
.patch__item.is-on {
  color: var(--ink); border-left-color: var(--pink);
  background: linear-gradient(90deg, rgba(45, 214, 184, 0.12), transparent);
}
.patch__itemtop { display: flex; align-items: center; gap: 6px; }
.patch__itemtitle { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.patch__itemdate { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.7; }
.patch__pin { font-size: 11px; }

.patch__post {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 18px;
  background: rgba(20, 16, 26, 0.55); padding: 38px clamp(22px, 4vw, 46px) 48px;
}
.patch__posthead { border-bottom: 1px solid rgba(247, 242, 238, 0.1); padding-bottom: 22px; margin-bottom: 8px; }
.patch__posttags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.patch__tag {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 10px;
  color: var(--pink); border: 1px solid rgba(43, 230, 200, 0.45); background: rgba(43, 230, 200, 0.1);
  text-shadow: 0 0 6px var(--glow-teal);
}
.patch__tag--pin { color: #ffd479; border-color: rgba(255, 212, 121, 0.45); background: rgba(255, 212, 121, 0.1); }
.patch__posttitle { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4.2vw, 40px); line-height: 1.1; letter-spacing: 0.01em; }
.patch__postdate { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.patch__postsum { font-size: 15px; line-height: 1.6; color: rgba(247, 242, 238, 0.8); margin-top: 14px; }
.patch__loading { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 10px 4px; }
.patch__empty { text-align: center; padding: 40px 10px; }
.patch__empty h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 10px; }
.patch__empty p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* the rendered markdown */
.patch__body { font-size: 15px; line-height: 1.75; color: rgba(247, 242, 238, 0.88); }
.patch__body h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.6vw, 25px); letter-spacing: 0.02em;
  color: var(--ink); margin: 40px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(45, 214, 184, 0.28);
}
.patch__body h3 { font-size: 17px; font-weight: 700; color: var(--pink); margin: 28px 0 10px; }
.patch__body h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6c5ce0; margin: 24px 0 8px;
}
.patch__body h5 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.patch__body p { margin: 12px 0; }
.patch__body ul, .patch__body ol { margin: 12px 0 12px 4px; padding-left: 22px; }
.patch__body li { margin: 6px 0; }
.patch__body li::marker { color: var(--pink); }
.patch__body strong { color: var(--ink); font-weight: 700; }
.patch__body code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  background: rgba(255, 255, 255, 0.07); padding: 2px 7px; border-radius: 5px; color: #9fe6c6;
}
.patch__body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.patch__body blockquote {
  margin: 14px 0; padding: 10px 16px; border-left: 3px solid rgba(45, 214, 184, 0.5);
  background: rgba(255, 255, 255, 0.03); border-radius: 0 8px 8px 0; color: rgba(247, 242, 238, 0.78);
}
.patch__body hr { border: none; border-top: 1px solid rgba(247, 242, 238, 0.12); margin: 34px 0; }

@media (max-width: 900px) {
  .patch { padding-top: 100px; }
  .patch__wrap { grid-template-columns: 1fr; gap: 22px; }
  .patch__side { position: static; }
  .patch__list { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .patch__item { min-width: 200px; border-left: none; border-bottom: 2px solid transparent; border-radius: 8px; }
  .patch__item.is-on { border-left: none; border-bottom-color: var(--pink); }
}

/* ---- staff editor ---- */
.pedit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pedit__fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.pedit__toolbar { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.pedit__tool {
  font-size: 11px; font-weight: 600; padding: 6px 11px; cursor: pointer; border-radius: 7px;
  color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(247, 242, 238, 0.14);
}
.pedit__tool:hover { color: var(--ink); border-color: rgba(45, 214, 184, 0.5); }
.pedit__body {
  width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.6; resize: vertical; min-height: 380px;
}
.pedit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.pedit__spacer { flex: 1; }
.pedit__preview {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 14px;
  background: rgba(10, 8, 15, 0.5); padding: 20px 22px; position: sticky; top: 90px;
}
.pedit__previewhead {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.pedit__previewbody { max-height: 62vh; overflow-y: auto; padding-right: 8px; }
.pedit__previewbody h2:first-child { margin-top: 0; }

.pedit__rowmain { display: flex; flex-direction: column; gap: 3px; }
.pedit__rowtop { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pedit__row {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 10px;
  background: rgba(10, 8, 15, 0.4); padding: 11px 15px; margin-bottom: 8px;
  display: block;
}
.pedit__row:hover { border-color: rgba(45, 214, 184, 0.4); background: rgba(255, 255, 255, 0.03); }
.pedit__row.is-on { border-color: var(--pink); background: rgba(45, 214, 184, 0.08); }
.pedit__badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 4px;
  border: 1px solid currentColor;
}
.pedit__badge--live { color: #6fdd8b; }
.pedit__badge--draft { color: var(--muted); }

@media (max-width: 1000px) {
  .pedit__grid { grid-template-columns: 1fr; }
  .pedit__preview { position: static; }
  .pedit__fields { grid-template-columns: 1fr; }
}

/* ---- known issues: public panel ---- */
.patch__issues {
  margin: 24px 0 8px; padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(255, 180, 84, 0.35);
  background: linear-gradient(135deg, rgba(255, 180, 84, 0.09), rgba(45, 214, 184, 0.05));
}
.patch__issueshead { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 14px; }
.patch__issuesico { font-size: 20px; line-height: 1.2; }
.patch__issuestitle { font-size: 15px; font-weight: 700; color: var(--ink); }
.patch__issuessub { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-top: 3px; }
.patch__issue {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; border-top: 1px solid rgba(247, 242, 238, 0.08);
}
.patch__issuestat {
  flex: 0 0 auto; min-width: 118px;
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px; border: 1px solid currentColor; text-align: center;
}
.patch__issue--rev  .patch__issuestat { color: #ffb454; }
.patch__issue--prog .patch__issuestat { color: #56b6ff; }
.patch__issue--fix  .patch__issuestat { color: #6fdd8b; }
.patch__issuetext { font-size: 14px; line-height: 1.6; color: rgba(247, 242, 238, 0.9); }
.patch__issue--fix .patch__issuetext { color: rgba(247, 242, 238, 0.55); text-decoration: line-through; }
.patch__itemissues { font-size: 11px; color: #ffb454; margin-top: 2px; }

/* ---- known issues: editor rows ---- */
.pedit__issues { margin-top: 16px; }
.pedit__issuerow { display: grid; grid-template-columns: minmax(0, 1fr) 165px 34px; gap: 8px; margin-bottom: 7px; }
.pedit__issuetext, .pedit__issuestatus { font-size: 13px; padding: 9px 12px; }
.pedit__issuedel {
  border: 1px solid rgba(255, 84, 100, 0.4); background: transparent; color: #ff5464;
  border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1;
}
.pedit__issuedel:hover { background: rgba(255, 84, 100, 0.12); }
@media (max-width: 620px) { .pedit__issuerow { grid-template-columns: 1fr 34px; } .pedit__issuestatus { grid-column: 1; } }


/* ============================================================
   STAFF ROSTER / PERMISSIONS MATRIX
   ============================================================ */
.perm__addrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.perm__addrow .field__input { flex: 1; min-width: 180px; }
.perm__lvl { max-width: 96px; flex: 0 0 auto; }
.perm__color { max-width: 62px; flex: 0 0 auto; padding: 4px; }

.perm__row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin-bottom: 8px;
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 11px; background: rgba(10, 8, 15, 0.45);
}
.perm__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.perm__rowmain { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.perm__rowtop { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.perm__badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 10px; border: 1px solid currentColor; color: var(--muted);
}
.perm__god {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 4px; color: #ffd479; border: 1px solid rgba(255, 212, 121, 0.5);
}
.perm__rolesel { max-width: 190px; font-size: 13px; padding: 8px 11px; }

.perm__rolerow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid rgba(247, 242, 238, 0.08);
}
.perm__rolerow .field__input { flex: 0 1 220px; }
.perm__locked { font-size: 11.5px; color: #ffd479; }

/* the matrix */
.perm__matrixwrap { overflow-x: auto; margin-top: 14px; padding-bottom: 6px; }
.perm__matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
.perm__matrix th, .perm__matrix td { padding: 9px 10px; }
.perm__cornr {
  text-align: left; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); position: sticky; left: 0; background: #14101a; z-index: 2;
}
.perm__rolehead {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; text-align: center; border-bottom: 1px solid rgba(247, 242, 238, 0.14);
}
.perm__grprow th {
  text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink); padding-top: 20px; padding-bottom: 6px;
}
.perm__perm {
  text-align: left; font-weight: 400; position: sticky; left: 0; background: #14101a; z-index: 1;
  border-top: 1px solid rgba(247, 242, 238, 0.06);
}
.perm__permlabel { display: block; font-size: 13.5px; color: var(--ink); }
.perm__permhint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.perm__cell { text-align: center; border-top: 1px solid rgba(247, 242, 238, 0.06); }
.perm__cell input { width: 17px; height: 17px; accent-color: var(--pink); cursor: pointer; }
.perm__cell input:disabled { accent-color: #ffd479; cursor: not-allowed; opacity: 0.85; }
.perm__matrix tbody tr:hover .perm__perm,
.perm__matrix tbody tr:hover .perm__cell { background: rgba(255, 255, 255, 0.035); }

/* ============================================================
   STREAMING PARTNER PROGRAM (/streamers)
   ============================================================ */
.creator-page { background: var(--bg); }
.creator { max-width: 1180px; margin: 0 auto; padding: 0 24px 120px; }

.creator__h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase;
  text-align: center; margin: 0 0 10px;
}
.creator__h2--left { text-align: left; margin-bottom: 18px; }
.creator__h2sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 46px; font-size: 15px; }

/* ---------- hero ---------- */
.creator__hero { position: relative; text-align: center; padding: 108px 0 62px; }
.creator__heroglow {
  position: absolute; inset: -140px 50% auto; width: 900px; height: 620px;
  transform: translateX(50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(45, 214, 184, 0.2) 0%, rgba(108, 92, 224, 0.11) 45%, transparent 72%);
  filter: blur(18px); pointer-events: none; z-index: 0;
}
.creator__hero > * { position: relative; z-index: 1; }
.creator__title {
  font-size: clamp(52px, 11vw, 128px); line-height: 0.87; margin: 12px 0 20px;
  background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.creator__lede { max-width: 640px; margin: 0 auto; font-size: 17px; }
.creator__lede b { color: var(--ink); font-weight: 700; }

.creator__herocta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 34px 0 0; }
.creator__ghost {
  background: transparent; border: 1px solid rgba(247, 242, 238, 0.26); color: var(--ink);
}
.creator__ghost:hover { border-color: var(--pink); color: var(--pink); }

.creator__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 780px; margin: 56px auto 0;
}
.creator__stat {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 16px;
  background: rgba(247, 242, 238, 0.025); padding: 18px 12px;
}
.creator__stat b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1;
  background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.creator__stat span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 7px; letter-spacing: 0.04em; }

/* ---------- the one rule ---------- */
.creator__rule { margin: 30px 0 96px; }
.creator__rulecard {
  display: flex; gap: 24px; align-items: flex-start;
  border: 1px solid rgba(45, 214, 184, 0.32); border-radius: 22px;
  background: linear-gradient(135deg, rgba(45, 214, 184, 0.11), rgba(108, 92, 224, 0.07));
  padding: 32px 34px;
}
.creator__ruleico { font-size: 40px; line-height: 1; flex-shrink: 0; }
.creator__rulelabel {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink); font-weight: 700; margin: 0 0 8px;
}
.creator__ruletitle {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(23px, 3.2vw, 35px);
  text-transform: uppercase; line-height: 1.08; margin: 0 0 12px; letter-spacing: 0.01em;
}
.creator__ruletitle span {
  background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.creator__rulebody { color: var(--muted); font-size: 15px; margin: 0; max-width: 720px; }

/* ---------- how it works ---------- */
.creator__how { margin: 0 0 100px; }
.creator__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.creator__step {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 18px;
  background: rgba(247, 242, 238, 0.022); padding: 26px 24px 28px;
}
.creator__stepno {
  font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(45, 214, 184, 0.55);
  display: block; margin-bottom: 12px;
}
.creator__step h3 { font-size: 17px; font-weight: 700; margin: 0 0 9px; }
.creator__step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.creator__step b { color: var(--ink); font-weight: 600; }

/* ---------- tiers ---------- */
.creator__tiers { margin: 0 0 104px; }
.creator__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }

.creator__tier {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid rgba(247, 242, 238, 0.11); border-radius: 20px;
  background: rgba(247, 242, 238, 0.022);
  padding: 28px 22px 24px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.creator__tier:hover { transform: translateY(-5px); background: rgba(247, 242, 238, 0.04); }

.creator__tier--bronze { border-color: rgba(205, 127, 74, 0.3); }
.creator__tier--bronze:hover { border-color: rgba(205, 127, 74, 0.62); }
.creator__tier--silver { border-color: rgba(201, 212, 224, 0.28); }
.creator__tier--silver:hover { border-color: rgba(201, 212, 224, 0.6); }
.creator__tier--gold { border-color: rgba(255, 212, 121, 0.42); }
.creator__tier--gold:hover { border-color: rgba(255, 212, 121, 0.8); }
.creator__tier--elite { border-color: rgba(108, 92, 224, 0.34); }
.creator__tier--elite:hover { border-color: rgba(108, 92, 224, 0.68); }

.creator__tier.is-featured {
  background: linear-gradient(180deg, rgba(255, 212, 121, 0.08), rgba(247, 242, 238, 0.022) 55%);
  box-shadow: 0 0 0 1px rgba(255, 212, 121, 0.13), 0 20px 46px -26px rgba(255, 212, 121, 0.5);
}
.creator__flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(120deg, #22b8f0, #ffd479); color: #221806;
  padding: 5px 13px; border-radius: 10px; white-space: nowrap;
}

.creator__tierhead {
  text-align: center; padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px dashed rgba(247, 242, 238, 0.13);
}
.creator__tierbadge {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 25px;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 9px;
}
.creator__tier--bronze .creator__tierbadge { color: #d98f56; }
.creator__tier--silver .creator__tierbadge { color: #cfdae8; }
.creator__tier--gold   .creator__tierbadge { color: #ffd479; }
.creator__tier--elite  .creator__tierbadge { color: #b98cff; }

.creator__tiermiles { font-size: 13px; color: var(--muted); margin: 0; }
.creator__tiermiles b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1;
  color: var(--ink); margin-bottom: 2px;
}

.creator__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.creator__perks li { display: flex; gap: 11px; align-items: flex-start; }
.creator__pk { font-size: 15px; line-height: 1.4; flex-shrink: 0; width: 20px; }
.creator__perks b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.creator__perks i { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
/* an obligation, not a reward — reads differently on purpose */
.creator__perk--req b { color: #ffc07a; }

.creator__tierfoot { margin-top: 22px; }
.creator__tierbtn { width: 100%; text-align: center; }
.creator__tier--bronze .creator__tierbtn { background: linear-gradient(120deg, #b9702f, #d98f56); }
.creator__tier--silver .creator__tierbtn { background: linear-gradient(120deg, #8d9cb0, #cfdae8); color: #10131a; }
.creator__tier--gold   .creator__tierbtn { background: linear-gradient(120deg, #22b8f0, #ffd479); color: #221806; }

/* elite reads as a closed door, deliberately */
.creator__elite {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 12px 0;
}
.creator__eliteico { font-size: 40px; line-height: 1; margin-bottom: 4px; }
.creator__elitetext { font-size: 15px; font-weight: 600; margin: 0; }
.creator__elitesub { font-size: 13px; color: var(--muted); margin: 0; }
.creator__elitesub b { color: #b98cff; font-weight: 700; }
.creator__elitenote { display: block; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------- streamer code ---------- */
.creator__code { margin: 0 0 100px; }
.creator__codeinner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center;
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 24px;
  background: rgba(247, 242, 238, 0.022); padding: 48px 46px;
}
.creator__codebody { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.creator__codebody b { color: var(--ink); font-weight: 600; }
.creator__codebody--dim { font-size: 14px; margin-bottom: 0; }

.creator__codesplit { display: flex; align-items: stretch; gap: 12px; }
.creator__codeside {
  flex: 1; text-align: center; border-radius: 18px; padding: 24px 16px;
  border: 1px solid rgba(247, 242, 238, 0.12); background: rgba(247, 242, 238, 0.03);
}
.creator__codeside--you { border-color: rgba(93, 217, 148, 0.35); background: rgba(93, 217, 148, 0.07); }
.creator__codeicon { font-size: 27px; display: block; margin-bottom: 9px; }
.creator__codeside b { display: block; font-size: 15px; font-weight: 700; }
.creator__codeside p { font-size: 12.5px; color: var(--muted); margin: 3px 0 12px; }
.creator__codepct {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--pink); letter-spacing: 0.02em;
}
.creator__codepct--you { color: #7ee2a8; }
.creator__codearrow { align-self: center; font-size: 20px; color: var(--muted); }
.creator__codefoot { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ---------- closing CTA ---------- */
.creator__cta {
  text-align: center; border-radius: 26px; padding: 66px 30px;
  background: linear-gradient(135deg, rgba(34, 184, 240, 0.12), rgba(45, 214, 184, 0.12) 45%, rgba(108, 92, 224, 0.12));
  border: 1px solid rgba(45, 214, 184, 0.24);
}
.creator__ctatitle {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 54px);
  text-transform: uppercase; line-height: 1.02; margin: 0 0 14px;
}
.creator__ctasub { color: var(--muted); max-width: 540px; margin: 0 auto 30px; font-size: 15.5px; }
.creator__ctabtn { min-width: 290px; }
.creator__ctafine { font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.creator__ctafine a { color: var(--pink); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .creator__grid { grid-template-columns: repeat(2, 1fr); }
  .creator__codeinner { grid-template-columns: 1fr; gap: 34px; padding: 38px 30px; }
  .creator__h2--left { text-align: center; }
}
@media (max-width: 760px) {
  .creator { padding: 0 18px 84px; }
  .creator__hero { padding: 84px 0 48px; }
  .creator__stats { grid-template-columns: repeat(2, 1fr); }
  .creator__steps { grid-template-columns: 1fr; }
  .creator__rulecard { flex-direction: column; gap: 16px; padding: 26px 22px; }
  .creator__herocta .btn { width: 100%; }
  .creator__ctabtn { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .creator__grid { grid-template-columns: 1fr; }
  .creator__codesplit { flex-direction: column; }
  .creator__codearrow { transform: rotate(90deg); }
}

/* the nav link for the page you're on — was referenced by /changelog and
   /streamers but never actually styled */
.header__nav a.is-current { color: var(--pink); }

/* layout wrappers for the streamer page */
.creator__ruletext { flex: 1; min-width: 0; }
.creator__codeleft, .creator__codeviz { min-width: 0; }

/* ---------- /streamers access gate + preview ribbon ---------- */
.cgate {
  min-height: 68vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 80px;
}
.cgate__card {
  max-width: 520px; text-align: center;
  border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 24px;
  background: rgba(247, 242, 238, 0.025); padding: 48px 40px;
}
.cgate__ico { font-size: 40px; line-height: 1; display: block; margin-bottom: 18px; opacity: 0.85; }
.cgate__label {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pink); text-shadow: 0 0 8px var(--glow-teal); margin: 0 0 10px;
}
.cgate__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 40px);
  text-transform: uppercase; line-height: 1.05; margin: 0 0 12px;
}
.cgate__body { color: var(--muted); font-size: 15px; margin: 0; }
.cgate__actions { margin-top: 24px; display: flex; justify-content: center; }
.cgate__actions:empty { margin-top: 0; }

/* the banner the owner sees while the page is still private */
.cpreview {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin: 96px 0 -60px; padding: 13px 20px; border-radius: 14px;
  border: 1px dashed rgba(255, 212, 121, 0.5);
  background: rgba(255, 212, 121, 0.08);
  font-size: 13.5px; line-height: 1.5;
}
.cpreview b { color: #ffd479; font-weight: 700; white-space: nowrap; }
.cpreview span { color: var(--muted); }

@media (max-width: 760px) {
  .cpreview { margin: 76px 0 -34px; }
  .cgate__card { padding: 38px 26px; }
}

/* ---- chat mode toggle ---- */
.aitrain__modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.aitrain__mode {
  font: 500 12.5px inherit; cursor: pointer;
  padding: 7px 14px; border-radius: 10px;
  border: 1px solid rgba(247, 242, 238, 0.16); background: rgba(247, 242, 238, 0.03);
  color: var(--muted); transition: all 0.15s ease;
}
.aitrain__mode:hover { color: var(--ink); border-color: rgba(247, 242, 238, 0.3); }
.aitrain__mode.is-on {
  background: rgba(45, 214, 184, 0.14); border-color: rgba(45, 214, 184, 0.45); color: var(--ink);
}
.aitrain__modehint { font-size: 11.5px; color: var(--muted); flex: 1 1 220px; min-width: 0; }

/* ---- Discord channel picker ---- */
.dsync__group { margin-top: 14px; }
.dsync__grouphead {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 2px 8px; border-bottom: 1px solid rgba(247, 242, 238, 0.1); margin-bottom: 4px;
}
.dsync__groupname { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dsync__groupcount { font-size: 11.5px; color: var(--muted); margin-right: auto; }
.dsync__grouphead .backoffice__minibtn { font-size: 11px; padding: 3px 9px; }

.dsync__row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.dsync__row:hover { background: rgba(247, 242, 238, 0.035); }
.dsync__row.is-on { background: rgba(93, 217, 148, 0.06); }
.dsync__row input { accent-color: #5dd994; flex-shrink: 0; }
.dsync__name { font-family: var(--gx-mono, monospace); font-size: 12.5px; }
.dsync__meta { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }

.dsync__lock {
  font: 500 10.5px inherit; cursor: pointer; white-space: nowrap;
  padding: 2px 8px; border-radius: 10px;
  border: 1px solid rgba(127, 196, 255, 0.3); background: rgba(127, 196, 255, 0.08); color: #7fc4ff;
}
.dsync__lock.is-staff { border-color: rgba(255, 180, 84, 0.42); background: rgba(255, 180, 84, 0.1); color: #ffb454; }

.dsync__forget {
  font: 500 10.5px inherit; cursor: pointer; color: #ff8d97;
  background: none; border: none; text-decoration: underline dotted; padding: 0 2px;
}
.dsync__forget:hover { color: #ff5464; }

@media (max-width: 700px) {
  .dsync__meta { margin-left: 0; width: 100%; }
  .dsync__row { flex-wrap: wrap; }
}

/* filter-aware bulk bar + forum badge */
.dsync__bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 10px 2px 4px; margin-top: 10px;
}
.dsync__bulklabel { font-size: 11.5px; color: var(--muted); margin-right: auto; }
.dsync__bulk .backoffice__minibtn { font-size: 11px; padding: 4px 10px; }
.dsync__kind {
  font: 500 10.5px inherit; white-space: nowrap;
  padding: 2px 8px; border-radius: 10px;
  border: 1px solid rgba(108, 92, 224, 0.35); background: rgba(108, 92, 224, 0.1); color: #b98cff;
}

/* ============================================================
   CAREERS — studio-style job listings + detail + apply form
   (/careers) — a public ATS-style page, no Discord sign-in needed
   ============================================================ */
.careers-page { background: var(--bg); }
.careers { max-width: 1280px; margin: 0 auto; padding: 104px 24px 90px; }

.careers__crumb {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); margin-bottom: 28px;
}
.careers__crumb a { color: var(--muted); }
.careers__crumb a:hover { color: var(--pink); }
.careers__crumb b { color: var(--ink); font-weight: 400; }

/* ---- unpaid-position notice — shown on both list and detail views ---- */
.careers__notice {
  display: flex; gap: 16px; align-items: flex-start;
  background:
    linear-gradient(160deg, rgba(255, 180, 72, 0.1), rgba(23, 18, 30, 0.92)) padding-box,
    linear-gradient(150deg, rgba(255, 180, 72, 0.5), rgba(255, 180, 72, 0.12)) border-box;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.careers__noticeico { font-size: 24px; line-height: 1; flex-shrink: 0; }
.careers__noticetitle {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase;
  margin-bottom: 6px;
}
.careers__noticetitle span { color: #ffb448; }
.careers__noticebody { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 800px; }
.careers__notice--compact { padding: 16px 20px; margin: 0 0 26px; }
.careers__notice--compact .careers__noticebody { font-size: 13px; }

/* ---- list view header ---- */
.careers__head { margin-bottom: 30px; }
.careers__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.02em;
  text-transform: uppercase; margin-bottom: 10px;
}
.careers__sub { font-size: 15px; color: var(--muted); max-width: 620px; margin-bottom: 20px; }
.careers__search { position: relative; max-width: 480px; }
.careers__search input {
  width: 100%;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: rgba(10, 8, 15, 0.7);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 10px;
  padding: 12px 14px 12px 38px;
  outline: none;
}
.careers__search input:focus { border-color: var(--pink); }
.careers__search::before {
  content: "\1F50D";
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: 0.6; pointer-events: none;
}

/* ---- list layout: filter sidebar + grid ---- */
.careers__layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.careers__sidehead {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.careers__filters { display: flex; flex-direction: column; gap: 4px; }
.careers__filter {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--muted);
  padding: 8px 4px; border-radius: 8px; cursor: pointer;
}
.careers__filter:hover { color: var(--ink); background: rgba(247, 242, 238, 0.04); }
.careers__filter input { width: 15px; height: 15px; accent-color: var(--pink); }

.careers__resultbar {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid rgba(247, 242, 238, 0.1);
  padding-bottom: 12px; margin-bottom: 20px;
}
.careers__resultbar h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.careers__count { font-size: 12px; color: var(--pink); }

.careers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.careers__empty { color: var(--muted); font-size: 14px; padding: 30px 0; }

.careers__card {
  position: relative;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(23, 18, 30, 0.92), rgba(14, 12, 20, 0.94)) padding-box,
    linear-gradient(150deg, rgba(45, 214, 184, 0.35), rgba(108, 92, 224, 0.15) 60%, rgba(247, 242, 238, 0.06)) border-box;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.careers__card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px var(--glow-teal); }
.careers__cardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.careers__cardhead h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: 0.02em; text-transform: uppercase;
}
.careers__pill {
  flex-shrink: 0;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor;
}
.careers__pill--open { color: #2ee6a6; }
.careers__cardmeta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); }
.careers__cardtags { display: flex; flex-wrap: wrap; gap: 6px; }
.careers__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 999px; padding: 3px 9px;
}
.careers__viewbtn { margin-top: auto; align-self: flex-start; font-size: 11px; padding: 10px 18px; }

@media (max-width: 900px) {
  .careers__layout { grid-template-columns: 1fr; }
  .careers__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .careers__grid { grid-template-columns: 1fr; }
  .careers__notice { flex-direction: column; }
}

/* ---- detail view ---- */
.careers__detailhead { margin-bottom: 30px; }
.careers__detailtitlerow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.careers__detailtitlerow h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px); letter-spacing: 0.02em; text-transform: uppercase;
}
.careers__detailmeta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }

.careers__back {
  display: inline-block; font-size: 12.5px; color: var(--muted);
  margin-top: 34px;
}
.careers__back:hover { color: var(--pink); }

.careers__body { max-width: 880px; }
.careers__section { margin-bottom: 34px; }
.careers__section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 12px;
}
.careers__section p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.careers__section ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.careers__section ul li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; color: var(--muted); line-height: 1.6;
}
.careers__section ul li::before {
  content: "\2022"; position: absolute; left: 2px; color: var(--pink);
}

/* ---- apply form ---- */
.careers__apply { margin-top: 20px; }
.careers__apply h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase;
  margin-bottom: 18px;
}
.careers__formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.careers__formgrid .field--full { grid-column: 1 / -1; }
.careers__filerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.careers__filehint { font-size: 11.5px; color: var(--muted); }
.careers__consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 4px; }
.careers__consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--pink); flex-shrink: 0; }
.careers__consent span { font-size: 12.5px; color: var(--muted); }
.careers__applysubmit { margin-top: 20px; }

@media (max-width: 620px) {
  .careers__formgrid { grid-template-columns: 1fr; }
  .careers { padding-top: 90px; }
}
