/* ============================================================
   PROJECT VICE — GTA V roleplay community site,
   styled after the GTA VI reveal site
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --ink: #f7f2ee;
  --muted: rgba(247, 242, 238, 0.62);
  --pink: #ff5fa2;
  --orange: #ffa14f;
  --purple: #a06bff;
  --grad-sunset: linear-gradient(120deg, #ffa14f 0%, #ff5fa2 45%, #a06bff 100%);
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { 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;
}

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

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { text-align: center; }
.loader__grand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--muted);
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader__v {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(90px, 18vw, 200px);
  line-height: 1;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
@keyframes loaderPulse { 50% { opacity: 0.45; } }

/* ============ GRAIN ============ */
.grain {
  position: fixed; inset: -50%; z-index: 150;
  pointer-events: none;
  opacity: 0.05;
  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%); }
}

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.5s;
}
.header.is-scrolled {
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
}
.header__logo {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.08em;
  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;
}
.header__nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.header__nav a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 0.3s;
}
.header__nav a:hover { color: var(--ink); }
.header__nav a.header__login {
  color: var(--ink);
  border: 1px solid rgba(255, 95, 162, 0.45);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.header__nav a.header__login:hover {
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
  border-color: transparent;
  color: #16101d;
}
.header__actions { display: flex; align-items: center; gap: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(245, 240, 234, 0.35);
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
.btn:hover { border-color: var(--pink); background: rgba(239, 121, 165, 0.12); transform: translateY(-1px); }
.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 ---- */
.sound { position: relative; }
.sound__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;
}
.sound__btn:hover {
  border-color: var(--pink);
  background: rgba(255, 95, 162, 0.1);
}
.sound__bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 16px;
}
.sound__bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--grad-sunset);
  animation: eq 1.1s ease-in-out infinite;
  transform-origin: bottom;
}
.sound__bars i:nth-child(1) { height: 60%; animation-delay: 0s; }
.sound__bars i:nth-child(2) { height: 100%; animation-delay: 0.25s; }
.sound__bars i:nth-child(3) { height: 45%; animation-delay: 0.5s; }
.sound__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 */
.sound.is-muted .sound__bars i {
  animation: none;
  transform: scaleY(0.3);
  opacity: 0.45;
}
.sound__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(255, 95, 162, 0.4), rgba(160, 107, 255, 0.18)) border-box;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s;
}
.sound:hover .sound__pop,
.sound__pop:hover,
.sound:focus-within .sound__pop {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.sound__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-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 ============ */
.hero { height: 240vh; position: relative; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -6%; will-change: transform; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 14s var(--ease-out) forwards;
}
.hero__bg video {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bg);
}
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1); } }
.hero__tint {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 95, 162, 0.34) 0%, rgba(255, 161, 79, 0.16) 45%, rgba(93, 56, 189, 0.5) 100%);
  mix-blend-mode: overlay;
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,15,0.55) 0%, transparent 30%, transparent 55%, var(--bg) 100%);
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 62%, rgba(255, 95, 162, 0.3), transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(160, 107, 255, 0.22), transparent 70%);
  mix-blend-mode: screen;
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 20px;
  will-change: transform, opacity;
}
.hero__kicker {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 190px);
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
body.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: 0.10s; transform: none; }
body.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.22s; transform: none; }
body.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 0.34s; transform: none; }
.hero__five {
  font-style: normal;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(255, 95, 162, 0.35));
}
.hero__tag {
  margin-top: 26px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
}
.hero__scrollcue {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  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;
}
.hero__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; }
}

/* ============ EXPANDING VIDEO (signature VI effect) ============ */
.expand { height: 300vh; position: relative; }
.expand__sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
}
.expand__label {
  position: absolute; z-index: 2;
  font-family: var(--font-display);
  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);
}
.expand__label em {
  font-style: normal;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.expand__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);
}
.video-embed { position: relative; width: 100%; height: 100%; background: #000; }
.video-embed__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 1;
  transition: opacity 1.2s;
}
.video-embed.is-playing .video-embed__poster { opacity: 0; }
.video-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 */
.expand--scrub { height: 420vh; }
.scrub-video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}
.scrub-hint {
  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-size: 13px; font-weight: 500;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.display {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 150px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.display--sm { font-size: clamp(40px, 6vw, 88px); }
.display .word { display: inline-block; overflow: hidden; vertical-align: top; }
.display .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.display.in-view .word > 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: 999px;
  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(255, 95, 162, 0.5);
  background: rgba(10, 10, 15, 0.75);
}

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

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

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

/* ---- Welcome to Los Santos: layered cinematic collage ---- */
#city { position: relative; }
#city::before,
#city::after {
  content: "";
  position: absolute;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
#city::before {
  left: -14vw; top: 24%;
  background: radial-gradient(circle, rgba(255, 95, 162, 0.16), transparent 65%);
}
#city::after {
  right: -14vw; bottom: 2%;
  background: radial-gradient(circle, rgba(160, 107, 255, 0.16), transparent 65%);
}
.bgword {
  position: absolute;
  right: -4vw; top: 30%;
  font-family: var(--font-display);
  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;
}
.bgword--left { right: auto; left: -3vw; top: 8%; }

/* ---- editorial showcase rows: scrubbing video + explanatory text ---- */
.showcase {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: clamp(70px, 14vh, 160px);
  max-width: 1400px;
  margin: 0 auto;
}
.show {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  perspective: 1200px;
}
.show .reveal-mask { clip-path: inset(14% 8% 14% 8% round 32px); }
.show .reveal-mask.in-view { clip-path: inset(0 0 0 0 round 20px); }
.show__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;
}
.show__media:hover {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), 0 0 70px rgba(255, 95, 162, 0.22);
}
.show__media .scrub-video { transition: transform 0.9s var(--ease-out); }
.show__media:hover .scrub-video { transform: scale(1.05); }
.show--flip .show__media { grid-column: 6 / 13; }
.show__text { grid-column: 8 / 13; position: relative; z-index: 1; }
.show--flip .show__text { grid-column: 1 / 6; grid-row: 1; }
.show__num {
  position: absolute;
  top: -0.62em; left: -0.05em;
  font-family: var(--font-display);
  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;
}
.show__text .lede { font-size: clamp(14px, 1.3vw, 16px); margin-top: 18px; }
.show__tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.show__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: 999px;
  transition: border-color 0.35s, color 0.35s;
}
.show__tags span:hover { border-color: rgba(255, 95, 162, 0.55); color: var(--ink); }
.show__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;
}
.show__line.reveal.in-view { transform: scaleX(1); }
/* video placeholder slot — hidden automatically once a real clip loads over it */
.show__media .scrub-video {
  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;
}
.show__media .scrub-video.is-ready { opacity: 1; }
.show__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(255, 95, 162, 0.09), transparent 70%),
    linear-gradient(160deg, #17121f, #0d0b13);
}
.show__ph-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 95, 162, 0.45);
  color: var(--pink);
  font-size: 18px;
  text-indent: 3px;
  background: rgba(255, 95, 162, 0.08);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.show__ph-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.show__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 */
.show__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--grad-sunset);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 3;
}
.place--glow {
  background:
    radial-gradient(70% 40% at 80% 0%, rgba(255, 95, 162, 0.1), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(160, 107, 255, 0.1), transparent 70%),
    var(--bg);
}

/* ============ JOB / BUSINESS CARDS ============ */
#jobs { position: relative; }
.jobstats {
  display: flex; justify-content: center;
  gap: clamp(28px, 5vw, 70px);
  margin-top: 38px;
}
.jobstats__item { text-align: center; }
.jobstats__item b {
  display: block;
  font-family: var(--font-display);
  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;
}
.jobstats__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(255, 95, 162, 0.4), rgba(160, 107, 255, 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.45), 0 0 50px rgba(255, 95, 162, 0.14);
}
/* 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(230px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 95, 162, 0.16), 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(255, 95, 162, 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-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-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-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);
}

/* ============ JOB REEL: pinned horizontal film strip ============ */
.jobreel { height: 400vh; position: relative; }
.jobreel__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 ---- */
.jobreel__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 */
.jobreel__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(255, 95, 162, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 95, 162, 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); } }
.jobreel__cloud {
  position: absolute;
  height: 70px;
  border-radius: 50%;
  filter: blur(34px);
  will-change: transform;
}
.jobreel__cloud--1 {
  left: 8vw; top: 22%;
  width: 36vw;
  background: rgba(255, 161, 79, 0.1);
  animation: cloudDrift 46s ease-in-out infinite alternate;
}
.jobreel__cloud--2 {
  right: 4vw; top: 34%;
  width: 30vw;
  background: rgba(200, 190, 220, 0.08);
  animation: cloudDrift 58s ease-in-out infinite alternate-reverse;
}
.jobreel__cloud--3 {
  left: 34vw; top: 12%;
  width: 26vw;
  background: rgba(255, 95, 162, 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 */
.jobreel__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(255, 95, 162, 0.1), transparent 70%),
    linear-gradient(to top, rgba(255, 150, 70, 0.08), transparent 65%);
}
/* industrial skyline: warehouses, cranes, pylon */
.jobreel__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));
}
.jobreel__skyline .lamp {
  fill: #ff4457;
  animation: lampBlink 2.2s steps(2, start) infinite;
}
.jobreel__skyline .lamp--slow { animation-duration: 3.4s; }
@keyframes lampBlink { 50% { fill-opacity: 0.15; } }
.jobreel__skyline .win { fill: #ffb45c; fill-opacity: 0.5; }
.jobreel__skyline .win--b {
  fill-opacity: 0.35;
  animation: winFlicker 7s ease-in-out 1.2s infinite;
}
.jobreel__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 */
.jobreel__sticky::before,
.jobreel__sticky::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 14vw;
  z-index: 4;
  pointer-events: none;
}
.jobreel__sticky::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.jobreel__sticky::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
/* giant backdrop word counter-drifting behind the strip */
.jobreel__word {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  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 */
.jobreel__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;
}
.jobreel__count {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-display);
}
.jobreel__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;
}
.jobreel__count i {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.jobreel__rail {
  position: relative;
  width: clamp(140px, 18vw, 260px);
  height: 3px;
  border-radius: 3px;
  background: rgba(247, 242, 238, 0.14);
  overflow: hidden;
}
.jobreel__rail span {
  position: absolute; inset: 0;
  background: var(--grad-sunset);
  transform: scaleX(0);
  transform-origin: left;
}
/* intro caption: swaps as each shift takes focus */
.jobreel__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 */
.jobreel__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;
}
.jobreel__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(255, 95, 162, 0.6);
  margin-bottom: 12px;
}
.jobreel__intro-eyebrow::before,
.jobreel__intro-eyebrow::after {
  content: "";
  width: clamp(30px, 4vw, 60px);
  height: 1px;
}
.jobreel__intro-eyebrow::before {
  background: linear-gradient(to left, rgba(255, 95, 162, 0.8), transparent);
}
.jobreel__intro-eyebrow::after {
  background: linear-gradient(to right, rgba(255, 95, 162, 0.8), transparent);
}
.jobreel__intro-title {
  overflow: hidden;
  padding-bottom: 0.08em;
  font-family: var(--font-display);
  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(255, 95, 162, 0.35);
}
/* words cascade with a springy overshoot; JS sets per-word delays */
.jobreel__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;
}
.jobreel__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 */
.jobreel__intro.is-out .jobreel__intro-title .w {
  transition: transform 0.34s var(--ease-out);
  transform: translateY(-135%) rotate(4deg);
}
.jobreel__intro.is-out .jobreel__intro-desc {
  opacity: 0;
  transform: translateY(-16px);
  transition-delay: 0s;
}
/* prep (no transition): park the new words below, tilted, ready to spring in */
.jobreel__intro.is-prep .jobreel__intro-title .w {
  transition: none;
  transform: translateY(135%) rotate(-6deg);
}
.jobreel__intro.is-prep .jobreel__intro-desc {
  transition: none;
  opacity: 0;
  transform: translateY(20px);
}

.jobreel__track {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  gap: clamp(22px, 3vw, 48px);
  padding: 0 12vw;
  will-change: transform;
}
.jobreel__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;
}
.jobreel__item .scrub-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.6s;
}
.jobreel__item .scrub-video.is-ready { opacity: 1; }
.jobreel__idx {
  position: absolute;
  right: -6px; bottom: -24px;
  font-family: var(--font-display);
  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;
}
.jobreel .reveal-mask { clip-path: inset(10% 6% 10% 6% round 28px); }
.jobreel .reveal-mask.in-view { clip-path: inset(0 0 0 0 round 20px); }

/* ---- crime reel: the rap sheet runs sideways under police-light glow ---- */
.jobreel--crime { height: 760vh; }
.jobreel--crime .jobreel__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%);
}
.jobreel--crime .jobreel__item { width: clamp(340px, 38vw, 560px); }
.jobreel--crime .jobreel__intro-eyebrow {
  color: #ff4457;
  text-shadow: 0 0 18px rgba(255, 68, 87, 0.55);
}
.jobreel--crime .jobreel__intro-eyebrow::before {
  background: linear-gradient(to left, rgba(255, 68, 87, 0.8), transparent);
}
.jobreel--crime .jobreel__intro-eyebrow::after {
  background: linear-gradient(to right, rgba(255, 68, 87, 0.8), transparent);
}
.jobreel--crime .show__bar {
  background: linear-gradient(90deg, #ff4457, #ff5fa2, #a06bff);
}
.jobreel--crime .jobreel__count b {
  background: linear-gradient(120deg, #ff4457, #ff5fa2);
  -webkit-background-clip: text; background-clip: text;
}
.jobreel--crime .jobreel__rail span {
  background: linear-gradient(90deg, #ff4457, #ff5fa2, #a06bff);
}

/* ============ CRIME / AFTER DARK ============ */
.place--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(160, 107, 255, 0.11), transparent 70%),
    var(--bg);
}
/* ---- evidence board: the whole docket slides sideways while pinned ---- */
.caseboard {
  height: 950vh;
  position: relative;
  /* break out of the section's padding: true edge-to-edge board */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.caseboard__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 */
.caseboard__confidential {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--font-display);
  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 */
.caseboard__props { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.bprop {
  position: absolute;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.bprop::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);
}
.bprop--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;
}
.bprop--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);
}
.bprop--map {
  width: 150px; height: 104px;
  background:
    linear-gradient(rgba(255, 95, 162, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 95, 162, 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 */
.caseboard__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-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;
}
.caseboard__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 */
.caseboard__thread {
  position: absolute;
  top: 0; left: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.caseboard__thread path {
  stroke: #ff4457;
  stroke-width: 2.5px;
  filter: drop-shadow(0 3px 7px rgba(255, 68, 87, 0.45));
}
.caseboard__track .case--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 */
.caseboard__track .case--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;
}
.case--reel.is-active .case__media { border-color: rgba(255, 68, 87, 0.4); }
.case--reel.is-active .case__label {
  color: var(--ink);
  background: #221420;
  border-color: rgba(255, 68, 87, 0.3);
}
.case--reel .case__pin { transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.case--reel.is-active .case__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 */
.caseboard__track .case--reel:nth-of-type(even) { margin-top: 12vh; }
.caseboard__track .case--reel:nth-of-type(odd) { margin-bottom: 7vh; }
.caseboard__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 */
.caseboard__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;
}
.caseboard__string {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
}
.caseboard__string path {
  stroke: #ff4457;
  stroke-width: 2.5px;
  filter: drop-shadow(0 3px 7px rgba(255, 68, 87, 0.45));
}
.case {
  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;
}
.case--r { left: auto; right: 5%; top: 42%; }
.case--b { left: 20%; top: auto; bottom: 6%; }
.case.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 */
.case::before,
.case::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;
}
.case::before { left: -20px; transform: rotate(-38deg); }
.case::after { right: -20px; transform: rotate(38deg); }
.case__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;
}
.case__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;
}
.case__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;
}
.case__media .scrub-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.case__media .scrub-video.is-ready { opacity: 1; }
/* rubber stamp slams in when the case goes active */
.case__stamp {
  position: absolute;
  top: 44%; left: 50%;
  font-family: var(--font-display);
  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;
}
.case.is-active .case__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 */
.casenote {
  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(160, 107, 255, 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);
}
.casenote.is-swap { opacity: 0; transform: translateY(-12px); }
.casenote__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;
}
.casenote__file b { color: #ff4457; }
.casenote__file i { font-style: normal; color: var(--muted); }
.casenote__body {
  font-size: 13px; line-height: 1.75;
  color: rgba(247, 242, 238, 0.82);
}
.casenote__tags {
  margin-top: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink);
}

.crime__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 ============ */
.svcs {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 14vh, 180px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(160, 107, 255, 0.12), transparent 70%),
    var(--bg);
}
/* ambient lightbar: soft blue + red pulses on opposite corners */
.svcs::before,
.svcs::after {
  content: "";
  position: absolute;
  width: 44vw; height: 44vw;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.svcs::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;
}
.svcs::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; } }
.svcs .place__intro { position: relative; z-index: 1; max-width: 900px; margin: 0 auto 6vh; text-align: center; }
.svcs .place__intro .lede { margin-left: auto; margin-right: auto; }
.svcs__list { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.svc {
  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);
}
.svc:hover { background: linear-gradient(90deg, rgba(255, 95, 162, 0.07), transparent 70%); }
.svc:last-child { border-bottom: 1px solid rgba(247, 242, 238, 0.12); }
/* rows slide in from alternating sides */
.svcs__list > .reveal:not(.in-view) { transform: translateX(-46px); }
.svcs__list > .reveal:nth-child(even):not(.in-view) { transform: translateX(46px); }
.svc__idx {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.1em;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc__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);
}
.svc:hover .svc__arrow { opacity: 1; transform: none; }
.svc__text {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 8px clamp(24px, 4vw, 60px);
}
.svc__name {
  font-family: var(--font-display);
  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;
}
.svc:hover .svc__name {
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 2px transparent;
  color: transparent;
}
.svc__desc { max-width: 420px; font-size: 15px; color: var(--muted); }
.svc__tag {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(255, 95, 162, 0.4);
  border-radius: 999px;
  padding: 10px 18px;
  white-space: nowrap;
}
/* ---- live dispatch feed: HUD video + CAD log ---- */
.feed {
  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;
}
.feed__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;
}
.feed__frame .scrub-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.6s;
}
.feed__frame .scrub-video.is-ready { opacity: 1; }
.feed__hud {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  font-family: Consolas, monospace;
}
.feed__corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid rgba(247, 242, 238, 0.5);
}
.feed__corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.feed__corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.feed__corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.feed__corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.feed__rec {
  position: absolute; top: 22px; left: 56px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.3em;
  color: #ff5464;
}
.feed__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; } }
.feed__cam {
  position: absolute; top: 24px; right: 56px;
  font-size: 11px; letter-spacing: 0.24em;
  color: rgba(247, 242, 238, 0.75);
}
.feed__time {
  position: absolute; bottom: 26px; right: 56px;
  font-size: 12px; letter-spacing: 0.2em;
  color: rgba(247, 242, 238, 0.85);
}
.feed__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;
}
.feed__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;
}
.feed__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;
}
.feed__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);
}
.feed__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;
}
.feed__freq {
  font-family: Consolas, monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted);
}
.feed__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);
}
.feed__line:last-of-type { border-bottom: 0; }
.feed__stamp {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: rgba(247, 242, 238, 0.5);
  padding-top: 2px;
}
.feed__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);
}
.feed__unit--pd { color: #7c9aff; border-color: rgba(124, 154, 255, 0.5); }
.feed__unit--ems { color: var(--pink); border-color: rgba(255, 95, 162, 0.5); }
.feed__unit--air { color: var(--purple); border-color: rgba(160, 107, 255, 0.5); }
.feed__unit--fire { color: var(--orange); border-color: rgba(255, 161, 79, 0.5); }
.feed__line p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.feed__cta {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.feed__cta a {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 95, 162, 0.5);
  transition: color 0.3s;
}
.feed__cta a:hover { color: var(--ink); }

/* ============ BUSINESSES ============ */
#businesses { position: relative; }
.biz {
  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;
}
.biz__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;
}
.biz__img:hover {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), 0 0 70px rgba(255, 95, 162, 0.2);
}
.biz__img .scrub-video { transition: opacity 0.6s, transform 0.9s var(--ease-out); }
.biz__img:hover .scrub-video { transform: scale(1.05); }
.biz .card:nth-of-type(1) { grid-column: 7 / 10; }
.biz .card:nth-of-type(2) { grid-column: 10 / 13; }
.biz .card:nth-of-type(3) { grid-column: 7 / 10; }
.biz .card:nth-of-type(4) { grid-column: 10 / 13; }
.biz__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;
}
.place__intro--sub { margin: clamp(80px, 13vh, 150px) auto 5vh; }

/* glass stat bar */
.statbar {
  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(255, 95, 162, 0.4), rgba(160, 107, 255, 0.18) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.statbar__item {
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(18px, 2.4vw, 28px) clamp(22px, 3.4vw, 52px);
  text-align: center;
}
.statbar__item + .statbar__item { border-left: 1px solid rgba(247, 242, 238, 0.1); }
.statbar__item b {
  font-family: var(--font-display);
  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;
}
.statbar__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(255, 95, 162, 0.35), rgba(160, 107, 255, 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(255, 95, 162, 0.4);
  /* fill lives in the shadow so background-clip:text can't erase it */
  box-shadow: inset 0 0 0 100px rgba(255, 95, 162, 0.07);
  font-family: var(--font-display);
  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-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 */
.venues {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 2vw, 26px);
  max-width: 1200px;
  margin: 0 auto;
}
.venue {
  grid-column: span 2;
  display: flex; flex-direction: column;
  align-items: flex-start;
}
.venue__mono {
  position: absolute;
  right: -10px; bottom: -26px;
  font-family: var(--font-display);
  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;
}
.venue:hover .venue__mono { -webkit-text-stroke-color: rgba(255, 95, 162, 0.28); }
.venue__no {
  position: absolute;
  top: 18px; right: 20px;
  font-family: Consolas, monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: rgba(247, 242, 238, 0.4);
}
.venue h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-right: 44px;
}
.venue__meta {
  margin: 8px 0 0;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.venue__hook {
  margin: 12px 0 20px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}
.venue > .venue__status { margin-top: auto; }
.venue__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(255, 95, 162, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
}
.venue__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-sunset);
  animation: dotPulse 2s ease-in-out infinite;
}
.venue__status--mgmt {
  color: var(--orange);
  border-color: rgba(255, 161, 79, 0.5);
}
.venue__note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.venue--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(255, 161, 79, 0.55), rgba(160, 107, 255, 0.2) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.venue--special .venue__main { display: flex; flex-direction: column; align-items: flex-start; }
.venue--special .venue__main .venue__status { margin-top: 18px; }
.venue--special .venue__side .show__tags { margin-top: 16px; }
.venue--special:hover .venue__mono { -webkit-text-stroke-color: rgba(255, 161, 79, 0.3); }

/* ---- nightclub stage: neon sign, laser sweep, spotlight triptych ---- */
.bizstage {
  height: 380vh;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.bizstage__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(255, 95, 162, 0.1), transparent 70%),
    linear-gradient(170deg, #130b19 0%, #0b0710 70%, var(--bg) 100%);
}
.bizstage__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(255, 95, 162, 0.055) 4deg, transparent 8deg,
    transparent 20deg, rgba(255, 95, 162, 0.04) 24deg, transparent 28deg);
  animation: laserSweep 11s ease-in-out infinite alternate;
}
.bizstage__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); } }
.bizstage__glow {
  position: absolute;
  left: 50%; bottom: 4%;
  width: 64vw; height: 26vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 95, 162, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.bizstage__head { position: relative; text-align: center; z-index: 2; padding: 0 20px; }
.bizstage__no {
  font-family: Consolas, monospace;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}
.bizstage__neon {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 108px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffdcec;
  text-shadow:
    0 0 6px rgba(255, 95, 162, 0.9),
    0 0 20px rgba(255, 95, 162, 0.7),
    0 0 48px rgba(255, 95, 162, 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; }
}
.bizstage__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 */
.bizstage__feats {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: 4px;
}
.bfeat {
  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(255, 95, 162, 0.4), rgba(160, 107, 255, 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);
}
.bfeat:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 34px rgba(255, 95, 162, 0.22);
}
.bfeat 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(255, 95, 162, 0.45));
}
.bfeat b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.bfeat span {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}
/* the ownership pitch: earn the keys, keep the keys */
.bizstage__apply {
  display: inline-flex; align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.bizstage__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(255, 95, 162, 0.5);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 0 22px rgba(255, 95, 162, 0.18);
}
.bizstage__apply-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-sunset);
  animation: dotPulse 2s ease-in-out infinite;
}
.bizstage__stage {
  position: relative;
  z-index: 2;
  width: min(94vw, 1280px);
  height: clamp(240px, 38vh, 400px);
  perspective: 1500px;
}
.bizstage__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(255, 95, 162, 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));
}
.bizstage__card .scrub-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.bizstage__card .scrub-video.is-ready { opacity: 1; }
.bizstage__card.is-center {
  transform: translateX(0) translateZ(0) rotateY(0);
  filter: brightness(1) saturate(1);
  border-color: rgba(255, 95, 162, 0.55);
  z-index: 3;
}
.bizstage__card.is-left {
  transform: translateX(-58%) translateZ(-240px) rotateY(28deg);
  filter: brightness(0.4) saturate(0.65);
  z-index: 1;
}
.bizstage__card.is-right {
  transform: translateX(58%) translateZ(-240px) rotateY(-28deg);
  filter: brightness(0.4) saturate(0.65);
  z-index: 1;
}
.bizstage__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;
}
.bizstage__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;
}
.bizstage__eq i:nth-child(4n+1) { animation-duration: 0.7s; animation-delay: 0.1s; }
.bizstage__eq i:nth-child(4n+2) { animation-duration: 1.1s; animation-delay: 0.35s; }
.bizstage__eq i:nth-child(4n+3) { animation-duration: 0.8s; animation-delay: 0.55s; }
.bizstage__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 ---- */
.bizstage--diner { height: 560vh; }
.bizstage--diner .bizstage__sticky {
  background:
    radial-gradient(60% 50% at 50% 8%, rgba(255, 95, 162, 0.09), transparent 70%),
    linear-gradient(170deg, #170f1c 0%, #0f0a14 70%, var(--bg) 100%);
}
.bizstage__no--diner { color: var(--pink); }
.diner__sign {
  display: inline-block;
  padding: 10px 44px 14px;
  border: 2px solid rgba(255, 95, 162, 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(255, 95, 162, 0.2), inset 0 0 30px rgba(160, 107, 255, 0.07);
  animation: signPulse 4.6s ease-in-out infinite;
}
@keyframes signPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255, 95, 162, 0.2), inset 0 0 30px rgba(160, 107, 255, 0.07); }
  50% { box-shadow: 0 0 70px rgba(255, 95, 162, 0.34), inset 0 0 40px rgba(160, 107, 255, 0.12); }
}
.bizstage__neon--diner {
  color: #ffe6ef;
  text-shadow:
    0 0 6px rgba(255, 150, 130, 0.9),
    0 0 20px rgba(255, 95, 162, 0.7),
    0 0 48px rgba(255, 95, 162, 0.45),
    0 0 96px rgba(160, 107, 255, 0.4);
}
/* pendant light cones */
.diner__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;
}
.diner__lamp--l { left: 8%; }
.diner__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 */
.diner__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;
}
.diner__steam--1 { left: 30%; }
.diner__steam--2 { left: 52%; animation-delay: 2.4s; }
.diner__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 */
.bizstage__stage--rail { perspective: none; }
.diner__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);
}
.bizstage--diner .bizstage__card {
  top: 34px;
  transform-origin: 50% -30px; /* pivot from the rail: cards hang and swing */
  -webkit-box-reflect: none;
  border-color: rgba(255, 95, 162, 0.28);
  overflow: visible;
}
.bizstage--diner .bizstage__card .scrub-video,
.bizstage--diner .bizstage__card .show__bar { border-radius: 0 0 13px 13px; }
.bizstage--diner .bizstage__card .scrub-video { border-radius: 13px; }
.bizstage--diner .bizstage__card.is-center {
  transform: translateX(0) rotate(0) scale(1);
  animation: ticketSway 5.5s ease-in-out infinite alternate;
  border-color: rgba(255, 95, 162, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 60px rgba(255, 95, 162, 0.18);
}
@keyframes ticketSway { from { rotate: -0.5deg; } to { rotate: 0.5deg; } }
.bizstage--diner .bizstage__card.is-left {
  transform: translateX(-64%) rotate(-4.5deg) scale(0.84);
  filter: brightness(0.42) saturate(0.65);
}
.bizstage--diner .bizstage__card.is-right {
  transform: translateX(64%) rotate(4.5deg) scale(0.84);
  filter: brightness(0.42) saturate(0.65);
}
.bizstage--diner .bizstage__card.is-lfar {
  transform: translateX(-118%) rotate(-7deg) scale(0.7);
  filter: brightness(0.25) saturate(0.5);
  z-index: 0;
}
.bizstage--diner .bizstage__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 */
.diner__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;
}
.diner__clip--l { left: 20%; }
.diner__clip--r { right: 20%; }
/* the paper order ticket header */
.diner__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(255, 95, 162, 0.32);
  border-radius: 13px 13px 0 0;
  z-index: 2;
}
/* diner checker strip along the floor */
.diner__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;
}
.bizstage--diner .show__bar {
  background: linear-gradient(90deg, #ffa14f, #ff7e58, #ff5fa2);
}

/* ---- garage stage (mechanics): steel plate, concrete bays, hydraulic lift ---- */
.bizstage--mech { height: 470vh; }
.bizstage--mech .bizstage__sticky {
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(255, 95, 162, 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%;
}
.bizstage__no--mech { color: var(--purple); }
/* concrete work floor with hazard chevrons and oil stains */
.mech__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;
}
.mech__floor::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: repeating-linear-gradient(45deg,
    rgba(255, 95, 162, 0.28) 0 14px, rgba(14, 11, 18, 0.9) 14px 28px);
  opacity: 0.5;
}
/* brushed steel shop plate */
.mech__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);
}
.mech__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);
}
.mech__bolt--tl { top: 7px; left: 8px; }
.mech__bolt--tr { top: 7px; right: 8px; }
.mech__bolt--bl { bottom: 7px; left: 8px; }
.mech__bolt--br { bottom: 7px; right: 8px; }
.bizstage__neon--mech {
  font-family: var(--font-display);
  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 */
.mech__led {
  display: block;
  width: 62%;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--grad-sunset);
  box-shadow: 0 0 16px rgba(255, 95, 162, 0.8), 0 0 40px rgba(255, 95, 162, 0.4);
  animation: ledPulse 3.4s ease-in-out infinite;
}
@keyframes ledPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 95, 162, 0.8), 0 0 40px rgba(255, 95, 162, 0.4); opacity: 1; }
  50% { box-shadow: 0 0 26px rgba(255, 95, 162, 1), 0 0 60px rgba(160, 107, 255, 0.55); opacity: 0.85; }
}
/* the bays: four cards resting on the shop floor */
.bizstage__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;
}
.mech__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 */
.mech__card.is-left,
.mech__card.is-right,
.mech__card.is-lfar,
.mech__card.is-rfar {
  transform: none;
  opacity: 1;
  filter: brightness(0.5) saturate(0.7);
}
.mech__card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 11px;
  opacity: 0;
  transition: opacity 0.6s;
}
.mech__card video.is-ready { opacity: 1; }
.mech__card .show__bar { border-radius: 0 0 11px 11px; }
/* the hydraulic lift: focused bay rises on its posts, underglow kicks on */
.mech__card.is-center {
  transform: translateY(-52px);
  filter: brightness(1) saturate(1);
  border-color: rgba(255, 95, 162, 0.45);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 55px rgba(255, 95, 162, 0.14);
  z-index: 2;
}
.mech__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);
}
.mech__post--l { left: 16%; }
.mech__post--r { right: 16%; }
.mech__card.is-center .mech__post { transform: scaleY(1); }
/* pink underglow beneath the lifted bay */
.mech__glow {
  position: absolute;
  left: 5%; right: 5%;
  bottom: -12px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 95, 162, 0.6), rgba(160, 107, 255, 0.25) 60%, transparent);
  filter: blur(9px);
  opacity: 0;
  transition: opacity 0.7s;
  pointer-events: none;
}
.mech__card.is-center .mech__glow { opacity: 1; }
.mech__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);
}
.mech__card.is-center .mech__baytag { opacity: 1; transform: none; }

/* market ticker */
.marquee--ticker {
  border: 0;
  padding: clamp(50px, 9vh, 90px) 0 0;
}
.marquee--ticker .marquee__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;
}
.marquee--ticker .marquee__track em {
  font-style: normal;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ MARQUEE ============ */
.marquee {
  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);
}
.marquee__track {
  display: flex; white-space: nowrap;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  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 ============ */
.chars { position: relative; }
.chars__heading {
  text-align: center;
  padding: clamp(90px, 14vh, 180px) 20px clamp(60px, 10vh, 120px);
}
.char {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.char__media { position: absolute; inset: 0; will-change: transform; }
.char__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.char__media video {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bg);
}
.char__dim {
  position: absolute; inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}
.char__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%);
}
.char__name {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  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;
}
.char__info {
  position: absolute; left: clamp(20px, 6vw, 90px); bottom: clamp(40px, 9vh, 90px);
  max-width: 560px;
  will-change: transform, opacity;
}
.char__quote {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  font-style: italic;
}
.char__bio { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ============ 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); }
.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(255, 95, 162, 0.14), transparent 70%),
    radial-gradient(50% 45% at 80% 90%, rgba(160, 107, 255, 0.12), transparent 70%),
    #0b0812;
  border: 1px solid rgba(255, 95, 162, 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-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; }
.profile__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);
}
.profile__dangertitle { font-weight: 700; font-size: 14px; color: #ff8091; margin-bottom: 4px; }
.profile__dangertext { font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 440px; }
#pDelete.is-arm { background: #ff4457; color: #fff; border-color: #ff4457; }
.app-row--prio { border-color: rgba(255, 217, 79, 0.45); }
.app-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: 999px; padding: 4px 10px;
}
/* ============ REFERRAL REWARDS — the wow ============ */
.rw-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(255, 95, 162, 0.28), transparent 55%),
    radial-gradient(80% 130% at 100% 100%, rgba(160, 107, 255, 0.28), transparent 55%),
    linear-gradient(150deg, rgba(28, 20, 34, 0.95), rgba(12, 10, 18, 0.96));
  border: 1px solid rgba(255, 95, 162, 0.22);
}
.rw-hero::after {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 161, 79, 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); } }
.rw-hero__eyebrow {
  position: relative; z-index: 1;
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 14px;
}
.rw-hero__title {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.5vw, 68px);
  line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em;
}
.rw-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;
}
.rw-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 */
.rw-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);
}
.rw-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(255, 95, 162, 0.25);
}
.rw-next__ringinner { text-align: center; }
.rw-next__ringinner b {
  display: block; font-family: var(--font-display); font-size: 38px; line-height: 1;
  color: var(--ink);
}
.rw-next__ringinner span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.rw-next__info { flex: 1 1 260px; min-width: 0; }
.rw-next__label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--pink); }
.rw-next__reward {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px);
  margin: 6px 0 16px; text-transform: uppercase;
}
.rw-next__bar { height: 10px; border-radius: 999px; background: rgba(247, 242, 238, 0.1); overflow: hidden; }
.rw-next__bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--pink) 55%, var(--purple));
  box-shadow: 0 0 16px rgba(255, 95, 162, 0.6);
  transition: width 0.8s var(--ease-out);
}
.rw-next__meta { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* share card */
.rw-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(255, 161, 79, 0.5), rgba(255, 95, 162, 0.5) 50%, rgba(160, 107, 255, 0.5)) border-box;
}
.rw-share__label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.rw-share__code { position: relative; display: inline-flex; gap: 8px; margin-bottom: 22px; overflow: hidden; border-radius: 12px; }
.rw-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%; } }
.rw-share__btn--x {
  text-decoration: none; display: inline-flex; align-items: center;
}
.rw-share__char {
  font-family: var(--font-display); 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(255, 95, 162, 0.25);
  color: var(--ink);
  box-shadow: inset 0 -3px 12px rgba(255, 95, 162, 0.12);
}
.rw-share__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rw-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: 999px; padding: 13px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rw-share__btn:hover { transform: translateY(-2px); border-color: rgba(255, 95, 162, 0.5); }
.rw-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(255, 95, 162, 0.35);
}
.rw-share__btn--primary:hover { box-shadow: 0 14px 40px rgba(255, 95, 162, 0.5); }
.rw-share__link { margin-top: 16px; font-size: 12.5px; color: var(--muted); word-break: break-all; }

/* stat strip */
.rw-strip { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.rw-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);
}
.rw-strip__item b {
  display: block; font-family: var(--font-display); 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;
}
.rw-strip__item span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

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

/* reward roadmap */
.rw-road { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.rw-road__step {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px 14px 0;
}
.rw-road__step::before {
  content: ""; position: absolute; left: 39px; top: 50%; bottom: -50%;
  width: 3px; background: rgba(247, 242, 238, 0.12);
}
.rw-road__step:last-child::before { display: none; }
.rw-road__step.is-unlocked::before { background: linear-gradient(var(--pink), var(--purple)); }
.rw-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;
}
.rw-road__nodenum { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--ink); }
.rw-road__nodelabel { display: block; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.rw-road__step.is-unlocked .rw-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(255, 95, 162, 0.35);
}
.rw-road__step.is-next .rw-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); }
}
.rw-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;
}
.rw-road__step.is-unlocked .rw-road__body,
.rw-road__step.is-next .rw-road__body { opacity: 1; }
.rw-road__step.is-unlocked .rw-road__body { border-color: rgba(255, 95, 162, 0.25); }
.rw-road__reward { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); text-transform: uppercase; }
.rw-road__need { font-size: 12.5px; color: var(--muted); }
.rw-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: 999px; padding: 11px 22px;
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
  box-shadow: 0 8px 24px rgba(255, 95, 162, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rw-claim { animation: rwClaimPulse 2.2s ease-in-out infinite; }
.rw-claim:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 95, 162, 0.6); animation: none; }
.rw-claim:disabled { opacity: 0.6; cursor: default; transform: none; animation: none; }
@keyframes rwClaimPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 95, 162, 0.4); }
  50% { box-shadow: 0 10px 34px rgba(255, 95, 162, 0.75); }
}
/* confetti burst on claim */
.rw-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.rw-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) {
  .rw-share__code::after, .rw-claim, .rw-confetti { animation: none; }
}
.rw-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.rw-tag--done { color: #7dffa9; }
.rw-tag--pending { color: #ffd94f; }
.rw-tag--denied { color: #ff8091; }

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

/* ---------- portal: citizen ID card + tabs ---------- */
.portal__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(255, 161, 79, 0.5), rgba(255, 95, 162, 0.45) 45%, rgba(160, 107, 255, 0.35)) border-box;
}
.portal__id::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 90% at 88% 10%, rgba(255, 95, 162, 0.12), transparent 70%);
  pointer-events: none;
}
.portal__avatar {
  width: 72px; height: 72px;
  border-radius: 18px;
  border: 2px solid rgba(255, 95, 162, 0.4);
}
.portal__welcome {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 4px;
}
.portal__username {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.portal__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.portal__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: 999px;
  padding: 7px 14px;
  background: rgba(10, 8, 15, 0.55);
}
.portal__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.portal__seal {
  position: absolute; right: clamp(16px, 3vw, 34px); top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 95, 162, 0.25);
  pointer-events: none;
}
.portal__tabs {
  display: flex; gap: 6px;
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 30px;
  background: rgba(14, 12, 20, 0.8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.portal__tabbtn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  background: none; border: 0; cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.portal__tabbtn:hover { color: var(--ink); }
.portal__tabbtn.is-on {
  color: #16101d;
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
}
.portal__badge {
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  padding: 0 5px;
  background: rgba(247, 242, 238, 0.16);
  color: var(--ink);
}
.portal__tabbtn.is-on .portal__badge { background: rgba(22, 16, 29, 0.3); color: #16101d; }
.portal__badge--hot { background: #ff4457; color: #fff; }
.portal__lede { color: var(--muted); margin-bottom: 24px; max-width: 560px; }
.portal__empty {
  color: var(--muted);
  border: 1px dashed rgba(247, 242, 238, 0.2);
  border-radius: 14px;
  padding: 34px;
  text-align: center;
}
.portal__subsection { margin-bottom: 30px; }
.portal__subsection .eyebrow { margin-bottom: 12px; }

/* ---------- crew (gang) panel + invite mailbox ---------- */
.gang__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(255, 95, 162, 0.4), rgba(160, 107, 255, 0.18) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.gang__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.gang__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gang__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: 999px;
  padding: 7px 14px;
}
.gang__count--ready {
  color: #7dffa9;
  border-color: rgba(125, 255, 169, 0.4);
}
.gang__roster { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.gang__member {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(247, 242, 238, 0.14);
  border-radius: 999px;
  background: rgba(10, 8, 15, 0.6);
  font-size: 14px;
}
.gang__member--pending { border-style: dashed; color: var(--muted); }
.gang__avatar { width: 22px; height: 22px; border-radius: 50%; }
.gang__tag {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink);
}
.gang__kick {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 16px; line-height: 1;
  padding: 0 2px;
  transition: color 0.25s;
}
.gang__kick:hover { color: #ff4457; }
.gang__form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.gang__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;
}
.gang__input:focus {
  border-color: rgba(255, 95, 162, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 95, 162, 0.12);
}
.gang__hint { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.gang__leave { margin-top: 16px; }
/* founding form */
.gang__formtitle {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.gang__field { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
/* inside a column field the row flex-basis would become height — neutralize it */
.gang__field .gang__input { flex: initial; width: 100%; }
.gang__label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.6);
}
.gang__textarea { min-height: 92px; resize: vertical; font-family: var(--font-body); }
.gang__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.gang__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;
}
.gang__swatch:hover { transform: scale(1.12); }
.gang__swatch.is-on {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 18px rgba(255, 95, 162, 0.35);
  transform: scale(1.12);
}
.gang__logorow { display: flex; align-items: center; gap: 14px; }
.gang__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;
}
.gang__filebtn:hover { border-color: rgba(255, 95, 162, 0.6); }
.gang__logopreview {
  width: 52px; height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(247, 242, 238, 0.2);
}
.gang__create { margin-top: 22px; }
/* crew identity on the card */
.gang__ident { display: flex; align-items: center; gap: 16px; }
.gang__logo {
  width: 58px; height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--crew, rgba(255, 95, 162, 0.5));
}
.gang__disc {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: #16101d;
}
.gang__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;
}
.gang__story {
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid rgba(247, 242, 238, 0.1);
  padding-top: 16px;
  margin-bottom: 18px;
}
.gang__storyrow { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.gang__storylabel {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crew, var(--pink));
  padding-top: 2px;
}
.gang__storytext { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
@media (max-width: 620px) {
  .gang__storyrow { grid-template-columns: 1fr; gap: 4px; }
  .portal__seal { display: none; }
  .portal__avatar { width: 56px; height: 56px; }
}
.gang__mailbtn { padding: 9px 18px; font-size: 12px; }
.app-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: 999px;
  padding: 9px 16px;
}
/* ---------- broadcast panel ---------- */
.bc__toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bc__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;
}
.bc__toolbar button:hover { border-color: rgba(255, 95, 162, 0.55); background: rgba(255, 95, 162, 0.08); }
.bc__previewwrap { margin-top: 18px; }
.bc__previewwrap .field__label { display: block; margin-bottom: 8px; }
.bc__dm {
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #313338; /* Discord DM backdrop */
}
.bc__dmhead {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 6px;
}
.bc__dmavatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.bc__dmname { color: #f2f3f5; font-weight: 600; font-size: 15px; }
.bc__dmbot {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: #5865f2; border-radius: 4px; padding: 1px 5px;
}
.bc__preview {
  padding: 2px 16px 16px 60px;
  color: #dbdee1; font-size: 15px; line-height: 1.4;
  word-break: break-word;
}
.bc__previewempty { color: #949ba4; font-style: italic; }
.bc__preview strong { color: #fff; }
.bc__preview a { color: #00a8fc; text-decoration: none; }
.bc__preview a:hover { text-decoration: underline; }
.bc__preview code {
  font-family: Consolas, monospace; font-size: 13px;
  background: #1e1f22; border-radius: 4px; padding: 1px 4px;
}
.bc__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;
}
.bc__quote {
  display: block; position: relative;
  padding-left: 12px; margin: 2px 0;
  color: #dbdee1;
}
.bc__quote::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 4px; border-radius: 4px; background: #4e5058;
}
.bc__bullet { display: block; padding-left: 16px; position: relative; }
.bc__bullet::before { content: "•"; position: absolute; left: 4px; color: #dbdee1; }
.bc__pimg {
  display: block; max-width: 300px; max-height: 220px;
  border-radius: 8px; margin: 6px 0;
}
/* countdown toggle + fields in the composer */
.bc__toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--text); font-size: 14px; user-select: none;
}
.bc__toggle input { width: 16px; height: 16px; accent-color: var(--pink); cursor: pointer; }
.bc__cdfields { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
/* Discord-embed-style countdown preview */
.bc__embed {
  margin: 8px 0 2px;
  border-left: 4px solid var(--pink);
  border-radius: 4px;
  background: #2b2d31;
  padding: 12px 16px;
}
.bc__embedtitle { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.bc__cdbig { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bc__cddate { color: #b5bac1; font-size: 13px; margin-top: 6px; }
.bc__cddim { color: #949ba4; font-style: italic; font-size: 14px; }
.bc__embed--full { margin: 2px 0; }
.bc__embeddesc { color: #dbdee1; font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.bc__embeddesc strong { color: #fff; }
.bc__embeddesc a { color: #00a8fc; text-decoration: none; }
.bc__embedfooter { color: #949ba4; font-size: 12px; margin-top: 10px; }
.bc__pbanner { display: block; width: 100%; max-width: 460px; border-radius: 6px; margin-top: 10px; }
/* buttons preview (sits below the message, like real Discord components) */
.bc__btnpreview { padding: 4px 16px 14px 60px; }
.bc__btnpreview:empty { display: none; }
.bc__pbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.bc__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 */
.bc__btnrow { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.bc__btnrow .bc__btnlabel,
.bc__btnrow .bc__btnchan { flex: 1 1 0; min-width: 0; }
.bc__btnrow .bc__btnurl { flex: 1 1 100%; min-width: 0; }
.bc__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;
}
.bc__btnremove:hover { color: #fff; border-color: var(--pink); }
.bc__addbtn { margin-top: 2px; }
/* photo upload in the composer */
.bc__photorow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bc__photopreview {
  position: relative; display: inline-block; margin-top: 10px;
}
.bc__photopreview img {
  display: block; max-width: 340px; max-height: 200px;
  border-radius: 10px; border: 1px solid rgba(247, 242, 238, 0.16);
}
.bc__photopreview .bc__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 .admin__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 .admin__tab:hover { background: rgba(255, 255, 255, 0.05); }
.panel__nav .admin__tab.is-on { background: rgba(255, 95, 162, 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-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 10px 12px 6px;
}
.panel__navlabel:first-child { margin-top: 4px; }
.panel__nav #statusTabs { display: flex; flex-direction: column; gap: 4px; }
.panel__nav #statusTabs .admin__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 #statusTabs .admin__tab:hover { background: rgba(255, 255, 255, 0.05); }
.panel__nav #statusTabs .admin__tab.is-on { background: rgba(255, 95, 162, 0.14); color: #fff; }
.admin__tabcount {
  margin-left: auto; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 2px 9px;
}
.admin__tab.is-on .admin__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) */
.desk__bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.desk__bar .subnav { margin-bottom: 0; flex: 1 1 auto; }
.desk__formsel { flex: 0 1 210px; margin-left: auto; }
.subnav__btn .admin__tabcount { margin-left: 8px; padding: 1px 8px; }
.subnav__btn.is-on .admin__tabcount { background: rgba(10, 10, 15, 0.22); color: #0a0a0f; }
/* review desk: application cards */
#appList .app-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;
}
#appList .app-row:hover { border-color: var(--pink); transform: translateY(-1px); }
#appList .admin__rowavatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 95, 162, 0.35); }
.desk-chip {
  font-size: 12px; font-weight: 600; color: var(--pink);
  background: rgba(255, 95, 162, 0.12); border-radius: 999px; padding: 3px 11px;
  white-space: nowrap;
}
.desk__search { flex: 1 1 200px; min-width: 160px; }
.app-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;
}
.app-row__by { font-size: 12px; color: var(--muted); white-space: nowrap; }
.claim-note {
  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;
}
.rev-chip {
  border: 1px solid rgba(247, 242, 238, 0.16); border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
  padding: 5px 12px; font-size: 12.5px; font-family: inherit; white-space: nowrap;
}
.rev-chip:hover { border-color: var(--pink); }
.rev-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ===== staff panel: ticket workspace (list · chat · citizen file) ===== */
.tkt { display: grid; grid-template-columns: 180px minmax(0, 1fr) 280px; gap: 16px; align-items: stretch; }
.tkt__list .tkt__row { padding: 9px 11px; }
.tkt__list .tkt__rowname { font-size: 13.5px; }
.tkt__list .tkt__rowmeta { font-size: 11px; }
/* collapsible sections in the citizen file */
.tkt__fold { border-top: 1px solid rgba(247, 242, 238, 0.08); margin-top: 12px; }
.tkt__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;
}
.tkt__foldhead:hover { color: #fff; }
.tkt__foldarrow { transition: transform 0.15s; font-size: 12px; }
.is-openfold .tkt__foldarrow { transform: rotate(180deg); }
.tkt__foldbody { max-height: 200px; overflow-y: auto; }
/* in-game logs in the citizen file — rows open a detail popup */
.log__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;
}
.log__row:hover { border-color: var(--pink); transform: translateX(2px); }
.log__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);
}
.log__ico--kill { background: rgba(255, 95, 95, 0.14); }
.log__ico--death { background: rgba(180, 180, 190, 0.14); }
.log__ico--inventory { background: rgba(255, 204, 0, 0.12); }
.log__ico--money { background: rgba(87, 242, 135, 0.12); }
.log__ico--vehicle { background: rgba(0, 168, 252, 0.12); }
.log__ico--connect { background: rgba(160, 107, 255, 0.14); }
.log__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.log__main b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log__open { color: var(--muted); font-size: 18px; line-height: 1; flex: 0 0 auto; }
.log__row:hover .log__open { color: var(--pink); }
/* the detail popup */
.log-modal__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.log-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(255, 95, 162, 0.12);
  border: 1px solid rgba(255, 95, 162, 0.3);
}
.log-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.log-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;
}
.log-modal__key {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.log-modal__val { font-size: 14.5px; color: #fff; font-family: Consolas, monospace; word-break: break-word; }
@media (max-width: 600px) { .log-modal__grid { grid-template-columns: 1fr; } }
.tkt__list { display: flex; flex-direction: column; gap: 8px; max-height: 72vh; overflow-y: auto; padding-right: 2px; }
.tkt__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);
}
.tkt__row:hover { border-color: rgba(255, 95, 162, 0.5); }
.tkt__row.is-on { border-color: var(--pink); background: rgba(255, 95, 162, 0.08); }
.tkt__rowtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tkt__rowdot { font-size: 11px; color: var(--muted); border: 1px solid rgba(247, 242, 238, 0.2); border-radius: 6px; padding: 1px 7px; }
.tkt__rowdot.is-open { color: #57f287; border-color: rgba(87, 242, 135, 0.45); }
.tkt__rowname { font-size: 14.5px; }
.tkt__rowmeta { font-size: 12px; color: var(--muted); }
.tkt__none { color: var(--muted); font-size: 13.5px; padding: 8px 4px; }
.tkt__placeholder { color: var(--muted); font-size: 13.5px; padding: 40px 16px; text-align: center; }
/* the chat column */
.tkt__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;
}
.tkt__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);
}
.tkt__chattitle { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.tkt__chatbtns { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tkt__viewers { font-size: 12px; color: #ffd75e; white-space: nowrap; }
.tkt__transfersel { max-width: 190px; font-size: 13px; padding: 7px 10px; }
.tkt__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tkt__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);
}
.tkt__composer textarea { flex: 1; resize: none; }
.tkt__send { flex: 0 0 auto; align-self: flex-end; }
/* the citizen file */
.tkt__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;
}
.tkt__citizen { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tkt__citavatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 95, 162, 0.4); }
.tkt__citname { display: block; font-size: 15px; }
.tkt__citid { font-family: Consolas, monospace; font-size: 11px; color: var(--muted); word-break: break-all; }
.tkt__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tkt__chip {
  font-size: 12px; border: 1px solid rgba(247, 242, 238, 0.18);
  border-radius: 999px; padding: 3px 10px; color: var(--muted);
}
.tkt__chip--ok { color: #57f287; border-color: rgba(87, 242, 135, 0.45); }
.tkt__facts p { font-size: 13px; color: var(--text); margin: 3px 0; }
.tkt__subhead {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 6px;
}
.tkt__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;
}
.tkt__mini .app-status { margin-left: auto; font-size: 11px; }
.tkt__mini .tkt__rowdot { margin-left: auto; }
.tkt__mini--click { cursor: pointer; }
.tkt__mini--click:hover .tkt__minitext { color: var(--pink); }
.tkt__minitext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) {
  .tkt { grid-template-columns: 170px 1fr; }
  .tkt__info { grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 760px) {
  .tkt { grid-template-columns: 1fr; }
  .tkt__list { max-height: 260px; }
  .tkt__chat { min-height: 60vh; max-height: 60vh; }
}
.panel__content .staff__card, .panel__content .staff__card--wide { width: 100%; max-width: none; }
/* sub-tabs inside a section */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.subnav__btn {
  border: 1px solid rgba(247, 242, 238, 0.14); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  padding: 8px 16px; font-size: 13.5px; font-family: inherit;
}
.subnav__btn:hover { color: #fff; border-color: rgba(255, 95, 162, 0.5); }
.subnav__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-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 */
.set__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set__grid .staff__card { margin: 0; }
.set__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 .admin__tab { width: auto; white-space: nowrap; }
  .panel__nav #statusTabs { flex-direction: row; }
  .panel__nav #statusTabs .admin__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; }
  .set__grid { grid-template-columns: 1fr; }
}

.ai__stats { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.ai__beta {
  display: inline-block; vertical-align: 3px; margin-left: 6px;
  font-size: 10.5px; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px;
  background: rgba(88, 101, 242, 0.18); border: 1px solid rgba(88, 101, 242, 0.5); color: #aab4ff;
}
.ai__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.ai__cat {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid rgba(247, 242, 238, 0.14); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; user-select: none;
}
.ai__cat:has(input:checked) { border-color: rgba(88, 101, 242, 0.6); background: rgba(88, 101, 242, 0.12); }
.ai__cat input { accent-color: #5865f2; }
/* the brain log */
#aiLog { margin-top: 12px; max-height: 480px; overflow-y: auto; }
.ai__entry { border-bottom: 1px solid rgba(247, 242, 238, 0.07); }
.ai__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;
}
.ai__entryhead:hover b { color: var(--pink); }
.ai__entrysrc { font-size: 15px; flex: 0 0 auto; }
.ai__entrymain { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ai__entrymain b { font-size: 14px; }
.ai__entrybody { padding: 2px 8px 14px 33px; }
.ai__entrytext { font-size: 13.5px; color: var(--text); white-space: pre-wrap; margin-bottom: 10px; }
#aiSrcTabs { margin-bottom: 10px; }
#aiPlayers { margin-top: 12px; }
.ai__player { border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 12px; padding: 13px 15px; margin-bottom: 10px; }
.ai__playerhead { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.ai__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
   ============================================================ */
.aic__thread {
  margin: 12px 0 0; max-height: 460px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 4px 2px;
}
.aic__empty { font-size: 13px; color: var(--muted); padding: 18px 4px; text-align: center; }
.aic__pair { display: flex; flex-direction: column; gap: 8px; }

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

.aic__msg--you {
  align-self: flex-end; background: rgba(255, 95, 162, 0.13);
  border: 1px solid rgba(255, 95, 162, 0.3);
}
.aic__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 */
.aic__msg--silent { background: rgba(247, 242, 238, 0.035); border-color: rgba(247, 242, 238, 0.16); }
.aic__text--silent { color: var(--muted); font-style: italic; }
.aic__pending { align-self: flex-start; opacity: 0.6; letter-spacing: 3px; font-size: 18px; }

/* which entries produced this answer */
.aic__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;
}
.aic__usedlabel { font-size: 11px; color: var(--muted); margin-right: 2px; }
.aic__chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  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;
}
.aic__chip--correction { border-color: rgba(93, 217, 148, 0.4); background: rgba(93, 217, 148, 0.09); color: #9ce8bb; }
.aic__chip--faq { border-color: rgba(255, 212, 121, 0.35); background: rgba(255, 212, 121, 0.08); color: #ffd479; }

.aic__fixbar { margin-top: 10px; }
.aic__fixbtn { font-size: 12px; }
.aic__fixed { margin-top: 10px; font-size: 12.5px; color: #9ce8bb; }

.aic__fix {
  margin-top: 11px; padding-top: 11px; border-top: 1px dashed rgba(247, 242, 238, 0.14);
  display: flex; flex-direction: column; gap: 8px;
}
.aic__fixhint { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.aic__fixtext { resize: vertical; min-height: 90px; font-family: inherit; }
.aic__drops { display: flex; flex-direction: column; gap: 5px; }
.aic__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;
}
.aic__drop:hover { background: rgba(237, 66, 69, 0.09); }
.aic__drop input { accent-color: #ed4245; }

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

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

.dept__perms { border-top: 1px dashed rgba(247, 242, 238, 0.14); margin-top: 10px; padding-top: 10px; }
.dept__perms .dept__chip { border-color: rgba(255, 95, 162, 0.35); }
/* banned-player notice on the apply portal */
.portal__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 */
.ban-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);
}
.ban-card__head { display: flex; align-items: center; gap: 12px; }
.ban-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; object-fit: cover;
  background: rgba(247, 242, 238, 0.08);
}
.ban-card__avatar--empty { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.ban-card__who { flex: 1; min-width: 0; }
.ban-card__name { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ban-card__id { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }
.ban-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);
}
.ban-card__fact { display: flex; flex-direction: column; gap: 2px; }
.ban-card__factlabel { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.ban-card__factval { font-size: 13.5px; }
.ban-card__note {
  margin-top: 11px; padding: 9px 13px; font-size: 13.5px; line-height: 1.5;
  border-left: 3px solid rgba(255, 95, 162, 0.55); background: rgba(255, 95, 162, 0.05);
  border-radius: 0 10px 10px 0; white-space: pre-wrap; word-break: break-word;
}
.ban-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;
}
.ban-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.ban-pager__label { font-size: 13px; color: var(--muted); min-width: 90px; text-align: center; }
.ban-pager .staff__minibtn:disabled { opacity: 0.35; cursor: default; }

.dept__catswrap { border-top: 1px dashed rgba(247, 242, 238, 0.14); margin-top: 10px; padding-top: 10px; }
.dept__catslabel { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.04em; }
.dept__catswrap .dept__chip { border-color: rgba(160, 107, 255, 0.4); }
.dept__role { display: block; margin-top: 10px; }
.dept__role .field__input { max-width: 280px; font-size: 13px; }

/* "Who can see it" — role dropdown with checkboxes in the category editor */
.tk__who { position: relative; }
.tk__whobtn { text-align: left; cursor: pointer; width: 100%; }
.tk__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);
}
.tk__whorow {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px;
  cursor: pointer; padding: 5px 7px; border-radius: 8px; user-select: none;
}
.tk__whorow:hover { background: rgba(247, 242, 238, 0.06); }
.tk__whorow input { accent-color: var(--pink); }

.tk__filter { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.tk__searchbox { margin-left: auto; flex: 0 1 240px; min-width: 150px; }
.tk__refresh { margin-left: 0; }
.tk__layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.tk__list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.tk__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; }
.tk__row:hover { border-color: rgba(255, 95, 162, 0.5); }
.tk__row.is-on { border-color: var(--pink); background: rgba(255, 95, 162, 0.08); }
.tk__rowcat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pink); }
.tk__rowmain { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tk__rowmain b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk__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; }
.tk__closed--ok { color: #57f287; border-color: rgba(87, 242, 135, 0.4); }
.tk__thread { border: 1px solid rgba(247, 242, 238, 0.12); border-radius: 14px; min-height: 320px; display: flex; flex-direction: column; }
.tk__placeholder { padding: 40px 16px; text-align: center; }
.tk__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 */
.tk-modal { width: min(680px, 92vw); }
.tk__thread--modal { border: none; min-height: 120px; max-height: 62vh; overflow-y: auto; padding: 8px 4px; gap: 12px; }
.tk__msgs { flex: 1; overflow-y: auto; max-height: 460px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.tk__msg { max-width: 78%; align-self: flex-start; }
.tk__msg--staff { align-self: flex-end; text-align: right; }
.tk__msgmeta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 3px; }
.tk__msg--staff .tk__msgmeta { justify-content: flex-end; }
.tk__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; }
.tk__msg--staff .tk__msgbody { background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; }
.tk__reply { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(247, 242, 238, 0.1); }
.tk__reply textarea { flex: 1; resize: vertical; }
.tk__catrow, .tk__accessrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(247, 242, 238, 0.08); }
.tk__catemoji { font-size: 20px; width: 28px; text-align: center; flex: 0 0 auto; }
.tk__del:hover { color: #ff5f5f; border-color: #ff5f5f; }
.tk__formgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tk__panelcats { display: flex; flex-wrap: wrap; gap: 8px; }
.tk__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; }
.tk__pcat:hover { border-color: var(--pink); }
.tk__pcat input { accent-color: var(--pink); width: 15px; height: 15px; }
@media (max-width: 800px) {
  .tk__layout { grid-template-columns: 1fr; }
  .tk__formgrid { grid-template-columns: 1fr; }
  .tk__msg { max-width: 92%; }
}
.bc__actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 18px;
}
.bc__estimate { font-size: 12.5px; color: var(--muted); flex: 1 1 220px; }
.bc__item {
  border: 1px solid rgba(247, 242, 238, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.bc__itemhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bc__titlewrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc__ann {
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--purple);
  border: 1px solid rgba(160, 107, 255, 0.4);
  border-radius: 999px; padding: 3px 10px;
}
.field__opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: normal; }
.bc__status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 11px;
}
.bc__status--sending, .bc__status--expanding { color: #ffd94f; background: rgba(255, 217, 79, 0.12); }
.bc__status--done { color: #7dffa9; background: rgba(125, 255, 169, 0.12); }
.bc__status--failed { color: #ff8091; background: rgba(255, 68, 87, 0.12); }
.bc__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;
}
.bc__bar {
  height: 7px; border-radius: 999px; overflow: hidden;
  background: rgba(247, 242, 238, 0.1); margin-bottom: 8px;
}
.bc__bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--pink) 55%, var(--purple));
  transition: width 0.5s var(--ease-out);
}
.bc__meta { font-size: 12px; color: var(--muted); }
.bc__ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bc__recipwrap {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(247, 242, 238, 0.1);
}
.bc__filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bc__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: 999px; padding: 6px 12px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.bc__filter:hover { color: var(--ink); }
.bc__filter.is-on {
  color: #16101d;
  background: linear-gradient(100deg, var(--orange), var(--pink) 55%, var(--purple));
  border-color: transparent;
}
.bc__recips { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.bc__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;
}
.bc__recipwho { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bc__recipwho b { font-size: 13.5px; }
.bc__recipside { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.bc__rstatus {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 9px;
}
.bc__rstatus--sent { color: #7dffa9; background: rgba(125, 255, 169, 0.12); }
.bc__rstatus--failed { color: #ff8091; background: rgba(255, 68, 87, 0.12); }
.bc__rstatus--pending { color: #ffd94f; background: rgba(255, 217, 79, 0.12); }
.bc__more { margin-top: 10px; }
.bc__log {
  border-left: 3px solid rgba(247, 242, 238, 0.2);
  padding: 8px 0 8px 14px;
  margin-bottom: 10px;
}
.bc__log--info { border-left-color: #7dffa9; }
.bc__log--warning { border-left-color: #ffd94f; }
.bc__log--error { border-left-color: #ff4457; }
.bc__logtop { display: flex; align-items: center; gap: 10px; }
.bc__logtop b { font-size: 13.5px; }
.bc__logdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.bc__log--info .bc__logdot { color: #7dffa9; }
.bc__log--warning .bc__logdot { color: #ffd94f; }
.bc__log--error .bc__logdot { color: #ff4457; }
.bc__logdetail { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.vip-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
}
.vip-badge--diamond {
  color: #9ff2ff;
  background: rgba(79, 195, 255, 0.12);
  border: 1px solid rgba(79, 195, 255, 0.45);
}
.vip-badge--gold {
  color: #ffd94f;
  background: rgba(255, 217, 79, 0.1);
  border: 1px solid rgba(255, 217, 79, 0.4);
}
.vip-badge--silver {
  color: #d9dee6;
  background: rgba(217, 222, 230, 0.1);
  border: 1px solid rgba(217, 222, 230, 0.35);
}
.multi__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; }
.apply__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(255, 95, 162, 0.35);
  border-radius: 999px;
  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(255, 95, 162, 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
   ============================================================ */
.glog__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.glog__search { flex: 1 1 280px; min-width: 220px; }
.glog__mini { flex: 0 0 auto; width: auto; min-width: 130px; font-size: 13px; padding: 10px 12px; }
.glog__levels { display: inline-flex; gap: 6px; }
.glog__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;
}
.glog__lvl.is-on { opacity: 1; }
.glog__lvltag--err { color: #ff5464; }
.glog__lvltag--warn { color: #ffb454; }
.glog__lvltag--info { color: #56b6ff; }
.glog__lvltag--debug { color: #a06bff; }
.glog__lvltag--other { color: var(--muted); }

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

.glog__table { display: flex; flex-direction: column; gap: 3px; }
.glog__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;
}
.glog__row:hover { background: rgba(255, 255, 255, 0.045); border-color: rgba(247, 242, 238, 0.16); }
.glog__row--err { border-left-color: #ff5464; }
.glog__row--warn { border-left-color: #ffb454; }
.glog__row--info { border-left-color: #56b6ff; }
.glog__row--debug { border-left-color: #a06bff; }
.glog__row--other { border-left-color: rgba(247, 242, 238, 0.3); }
.glog__rhead { display: flex; align-items: center; gap: 10px; }
.glog__time { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.glog__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;
}
.glog__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;
}
.glog__ago { margin-left: auto; font-size: 11px; color: rgba(247, 242, 238, 0.4); white-space: nowrap; }
.glog__body { font-size: 13.5px; line-height: 1.5; color: rgba(247, 242, 238, 0.95); word-break: break-word; }
.glog__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.glog__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);
}
.glog__chipk { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.03em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.glog__chipv { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.glog__chip--click { cursor: pointer; }
.glog__chip--click:hover { border-color: rgba(86, 182, 255, 0.5); background: rgba(86, 182, 255, 0.1); }
.glog__chipmore { font-size: 11px; color: var(--muted); align-self: center; }

.glog__dhead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.glog__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;
}
.glog__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);
}
.glog__metahead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.glog__metahead .staff__sub { margin: 0; }
.glog__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;
}
.glog__rawbtn:hover { color: var(--ink); }
.glog__mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.glog__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);
}
.glog__mkey { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.glog__mval { font-size: 14px; color: var(--ink); word-break: break-word; }
.glog__nometa { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.glog__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;
}
.glog__trace { display: flex; flex-wrap: wrap; gap: 0; margin-top: 4px; }
.glog__hint--click { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.glog__hint--click:hover { color: var(--ink); }
.glog__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;
}
.glog__link:hover { background: rgba(86, 182, 255, 0.18); }

/* ============================================================
   VICE LOG TERMINAL — /gamelogs (full-screen console)
   ============================================================ */
.glx-page {
  --gx-bg: #05070b;
  --gx-panel: #0a0e15;
  --gx-panel2: #0d121b;
  --gx-line: rgba(148, 178, 215, 0.1);
  --gx-ink: #e8eef7;
  --gx-dim: #7d8aa0;
  --gx-accent: #38d6c8;
  --gx-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  background: var(--gx-bg);
  color: var(--gx-ink);
  font-family: "Archivo", system-ui, sans-serif;
  min-height: 100vh; overflow: hidden;
}
.glx-page .grain, .glx-page .header { display: none; }

/* gate (signed out / no clearance) */
.glx-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.glx-gate__box { text-align: center; max-width: 460px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.glx-gate__mark { font-family: var(--gx-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--gx-accent); }
.glx-gate__title { font-size: 34px; font-weight: 700; letter-spacing: 0.01em; }
.glx-gate__sub { font-size: 15px; line-height: 1.6; color: var(--gx-dim); }

/* frame */
.glx { display: flex; flex-direction: column; height: 100vh; }
.glx__top {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 18px;
  background: var(--gx-panel);
  border-bottom: 1px solid color-mix(in srgb, var(--gx-accent) 30%, transparent);
}
.glx__brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.glx__logo {
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 19px; border-radius: 9px;
  color: var(--gx-accent);
  background: color-mix(in srgb, var(--gx-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gx-accent) 40%, transparent);
}
.glx__brand > div { display: flex; flex-direction: column; }
.glx__title { font-family: var(--gx-mono); font-weight: 700; font-size: 15px; letter-spacing: 0.22em; }
.glx__subtitle { font-family: var(--gx-mono); font-size: 11px; color: var(--gx-accent); letter-spacing: 0.06em; text-transform: uppercase; }

.glx__searchwrap { position: relative; flex: 1; max-width: 720px; }
.glx__searchico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gx-dim); font-size: 16px; }
.glx__search {
  width: 100%; font: 500 14px var(--gx-mono); color: var(--gx-ink);
  background: var(--gx-bg); border: 1px solid var(--gx-line); border-radius: 9px;
  padding: 11px 38px 11px 38px; outline: none;
}
.glx__search:focus { border-color: color-mix(in srgb, var(--gx-accent) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gx-accent) 12%, transparent); }
.glx__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 6px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: var(--gx-dim); font-size: 15px; line-height: 1;
}
.glx__clear:hover { color: var(--gx-ink); }

.glx__topright { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.glx__auto { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-family: var(--gx-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--gx-dim); }
.glx__auto input { accent-color: var(--gx-accent); }
.glx-live .glx__auto span { color: #ff5464; animation: glxblink 1.4s infinite; }
@keyframes glxblink { 50% { opacity: 0.45; } }
.glx__refresh {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px;
  color: var(--gx-dim); background: transparent; border: 1px solid var(--gx-line);
}
.glx__refresh:hover { color: var(--gx-accent); border-color: color-mix(in srgb, var(--gx-accent) 45%, transparent); }
.glx__clock { font-family: var(--gx-mono); font-size: 15px; letter-spacing: 0.12em; color: var(--gx-accent); }

/* 3-pane body */
.glx__body { display: flex; flex: 1; min-height: 0; }

.glx__side {
  width: 232px; flex: 0 0 auto; overflow-y: auto;
  background: var(--gx-panel);
  border-right: 1px solid var(--gx-line);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 6px;
}
.glx__sidehead { font-family: var(--gx-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gx-dim); padding: 10px 8px 4px; }
.glx__sources { display: flex; flex-direction: column; gap: 2px; }
.glx__src {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer;
  font: 500 13px "Archivo", sans-serif; color: var(--gx-dim);
  background: transparent; border: none; border-radius: 8px; padding: 9px 10px;
  border-left: 2px solid transparent; text-transform: capitalize;
}
.glx__src:hover { color: var(--gx-ink); background: rgba(255, 255, 255, 0.03); }
.glx__src.is-on {
  color: var(--gx-ink);
  background: color-mix(in srgb, var(--gx-accent) 9%, transparent);
  border-left-color: var(--gx-accent);
}
.glx__srcico { width: 18px; text-align: center; }
.glx__srcname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glx__srccount { font-family: var(--gx-mono); font-size: 10px; color: var(--gx-dim); }
.glx__srcerr { font-size: 12px; line-height: 1.5; color: #ffb454; padding: 6px 8px; }
.glx__cat {
  display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: none; padding: 12px 8px 4px;
  font: 600 10px var(--gx-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gx-dim);
}
.glx__cat:hover { color: var(--gx-ink); }
.glx__cat--static { cursor: default; }
.glx__cat--static:hover { color: var(--gx-dim); }
.glx__catarrow { font-size: 9px; transition: transform 0.15s; }
.glx__cat.is-closed .glx__catarrow { transform: rotate(-90deg); }
.glx__catcount { margin-left: auto; font-weight: 400; opacity: 0.7; }
.glx__catlist { display: flex; flex-direction: column; gap: 2px; }
.glx__levels { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 8px; }
.glx__lvl {
  font: 600 10px var(--gx-mono); letter-spacing: 0.08em; padding: 6px 10px;
  border-radius: 6px; border: 1px solid currentColor; background: transparent; cursor: pointer; opacity: 0.4;
}
.glx__lvl.is-on { opacity: 1; }
.glx__select {
  width: calc(100% - 16px); margin: 2px 8px; font: 500 12px var(--gx-mono); color: var(--gx-ink);
  background: var(--gx-bg); border: 1px solid var(--gx-line); border-radius: 7px; padding: 8px 10px;
}
.glx__sidefoot { margin-top: auto; }
.glx__keys { font-family: var(--gx-mono); font-size: 10px; color: var(--gx-dim); padding: 12px 8px 4px; line-height: 1.7; }

/* level colors */
.glx__c-err   { color: #ff5464; }
.glx__c-warn  { color: #ffb454; }
.glx__c-info  { color: #56b6ff; }
.glx__c-debug { color: #a06bff; }
.glx__c-other { color: #8ea0b8; }

/* main feed */
.glx__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.glx__statusbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 18px; border-bottom: 1px solid var(--gx-line); background: var(--gx-panel2);
}
.glx__count { font-family: var(--gx-mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--gx-dim); }
.glx__pager { display: flex; align-items: center; gap: 10px; }
.glx__pglabel { font-family: var(--gx-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gx-dim); }
.glx__pgbtn {
  width: 28px; height: 28px; border-radius: 7px; cursor: pointer;
  color: var(--gx-dim); background: transparent; border: 1px solid var(--gx-line); font-size: 14px;
}
.glx__pgbtn:hover:not(:disabled) { color: var(--gx-accent); border-color: color-mix(in srgb, var(--gx-accent) 45%, transparent); }
.glx__pgbtn:disabled { opacity: 0.3; cursor: default; }

/* sub-category chips inside one log table (cleaning / fishing / arrest …) */
.glx__facets {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 11px 14px; border-bottom: 1px solid var(--gx-line); background: var(--gx-panel);
}
.glx__facet {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font: 500 12px "Archivo", sans-serif; color: var(--gx-dim); text-transform: capitalize;
  background: var(--gx-bg); border: 1px solid var(--gx-line); border-radius: 999px; padding: 6px 12px;
}
.glx__facet:hover { color: var(--gx-ink); border-color: rgba(148, 178, 215, 0.3); }
.glx__facet.is-on {
  color: var(--gx-ink);
  border-color: color-mix(in srgb, var(--gx-accent) 55%, transparent);
  background: color-mix(in srgb, var(--gx-accent) 13%, transparent);
}
.glx__facetico { font-size: 13px; }
.glx__facetn { font: 600 10px var(--gx-mono); color: var(--gx-dim); background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 999px; }
.glx__facet.is-on .glx__facetn { color: var(--gx-accent); background: color-mix(in srgb, var(--gx-accent) 18%, transparent); }

/* day dividers so a long feed reads as sections */
.glx__day { display: flex; align-items: center; gap: 10px; margin: 12px 2px 4px; }
.glx__day::after { content: ""; flex: 1; height: 1px; background: var(--gx-line); }
.glx__daylabel { font: 600 10px var(--gx-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gx-dim); }

.glx__feed { flex: 1; overflow-y: auto; padding: 4px 14px 40px; display: flex; flex-direction: column; gap: 1px; }
.glx__src--all { border-bottom: 1px solid var(--gx-line); margin-bottom: 6px; padding-bottom: 11px; }
.glx__src--all .glx__srcico { color: var(--gx-accent); }
.glx__loading, .glx__empty { font-family: var(--gx-mono); font-size: 13px; color: var(--gx-dim); padding: 26px 8px; }

/* ---- the feed is a real table: fixed columns you can scan down ---- */
.glx__thead, .glx__row {
  display: grid;
  grid-template-columns: 74px 112px 152px minmax(0, 1fr) 92px;
  gap: 14px; align-items: center;
}
/* the Source column only appears when rows come from several tables */
.glx__csrc { display: none; }
.glx--multi .glx__csrc { display: block; }
.glx--multi .glx__thead, .glx--multi .glx__row {
  grid-template-columns: 74px 112px 110px 152px minmax(0, 1fr) 92px;
}
.glx__thead {
  padding: 9px 14px; margin: 0 0 2px;
  font: 600 9.5px var(--gx-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gx-dim);
  border-bottom: 1px solid var(--gx-line);
}
.glx__thead .glx__camt { text-align: right; }

.glx__row {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--gx-ink);
  background: transparent; border: none; border-left: 2px solid transparent;
  border-radius: 7px; padding: 7px 12px;
}
.glx__row:nth-child(even of .glx__row) { background: rgba(255, 255, 255, 0.015); }
.glx__row:hover { background: rgba(255, 255, 255, 0.055); }
.glx__row.is-sel {
  background: color-mix(in srgb, var(--gx-accent) 12%, transparent);
  border-left-color: var(--gx-accent);
}
.glx__row--err   { border-left-color: rgba(255, 84, 100, 0.75); }
.glx__row--warn  { border-left-color: rgba(255, 180, 84, 0.75); }
.glx__row--info  { border-left-color: rgba(86, 182, 255, 0.6); }
.glx__row--debug { border-left-color: rgba(160, 107, 255, 0.6); }
.glx__row--other { border-left-color: rgba(148, 178, 215, 0.28); }

.glx__ctime { font: 500 11.5px var(--gx-mono); color: var(--gx-dim); white-space: nowrap; }
.glx__ctype {
  font: 600 10px var(--gx-mono); letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 3px 0; opacity: 0.95;
}
.glx__csrc {
  font: 500 11px var(--gx-mono); color: var(--gx-accent); text-transform: capitalize;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.8;
}
.glx__cwho {
  font-size: 13px; font-weight: 600; color: var(--gx-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.glx__cwho--click { cursor: pointer; text-decoration: underline dotted rgba(148, 178, 215, 0.5); text-underline-offset: 3px; }
.glx__cwho--click:hover { color: var(--gx-accent); text-decoration-color: var(--gx-accent); }
.glx__cwhat {
  font-size: 13px; color: rgba(232, 238, 247, 0.82);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.glx__camt { font: 600 12.5px var(--gx-mono); color: #ffd479; text-align: right; white-space: nowrap; }

/* ============================================================
   KILL FEED — combat tables drop the generic columns and read as
   KILLER  94  VICTIM   b7  WEAPON, because that is the only
   question anyone asks of a death log.
   ============================================================ */
.glx--combat .glx__thead, .glx--combat .glx__row {
  grid-template-columns: 74px minmax(0, 1fr) 20px minmax(0, 1fr) 170px 108px;
}
.glx--combat.glx--multi .glx__thead, .glx--combat.glx--multi .glx__row {
  grid-template-columns: 74px minmax(0, 1fr) 20px minmax(0, 1fr) 110px 170px 96px;
}
.glx--combat .glx__thead .glx__hkill { color: #ff8d97; }
.glx--combat .glx__thead .glx__hvic  { color: #7fc4ff; }
.glx__row--combat { border-left-color: rgba(255, 84, 100, 0.75); }

/* the aggressor — loud on purpose */
.glx__ckill {
  font: 600 13px var(--gx-mono); color: #ff8d97;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.glx__ckill--click { cursor: pointer; text-decoration: underline dotted rgba(255, 141, 151, 0.55); text-underline-offset: 3px; }
.glx__ckill--click:hover { color: #ff5464; text-decoration-color: #ff5464; }
.glx__ckill--none  { color: #6f7c92; font-weight: 500; font-style: italic; }
.glx__ckill--cause { color: #ffb454; font-weight: 500; }
.glx__ckill--self  { color: #c08bff; font-weight: 500; }

.glx__cvs { font-size: 12px; color: #ff5464; text-align: center; opacity: 0.85; }

/* the victim */
.glx__cvic {
  font: 500 13px var(--gx-mono); color: #7fc4ff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.glx__cvic--click { cursor: pointer; text-decoration: underline dotted rgba(127, 196, 255, 0.5); text-underline-offset: 3px; }
.glx__cvic--click:hover { color: var(--gx-accent); text-decoration-color: var(--gx-accent); }
.glx__cvic--none { color: #6f7c92; }

/* what they used */
.glx__cweap {
  font: 500 11.5px var(--gx-mono); color: var(--gx-ink);
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--gx-line);
  background: rgba(148, 178, 215, 0.05);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  justify-self: start; max-width: 100%;
}
.glx__cweap--gun       { color: #ffd479; border-color: rgba(255, 212, 121, 0.28); background: rgba(255, 212, 121, 0.07); }
.glx__cweap--melee     { color: #ff9d6b; border-color: rgba(255, 157, 107, 0.28); background: rgba(255, 157, 107, 0.07); }
.glx__cweap--explosive { color: #ff6b8a; border-color: rgba(255, 107, 138, 0.3);  background: rgba(255, 107, 138, 0.08); }
.glx__cweap--veh       { color: #7fc4ff; border-color: rgba(127, 196, 255, 0.28); background: rgba(127, 196, 255, 0.07); }
.glx__cweap--env       { color: #9fb3cc; border-color: rgba(159, 179, 204, 0.25); background: rgba(159, 179, 204, 0.06); }
.glx__cweap--none      { border-color: transparent; background: none; color: #6f7c92; }

.glx__cdet { font: 600 11px var(--gx-mono); color: #ffd479; text-align: right; white-space: nowrap; }

@media (max-width: 900px) {
  .glx--combat .glx__thead, .glx--combat .glx__row,
  .glx--combat.glx--multi .glx__thead, .glx--combat.glx--multi .glx__row {
    grid-template-columns: 68px minmax(0, 1fr) 18px minmax(0, 1fr);
    row-gap: 3px;
  }
  .glx--combat .glx__cweap { grid-column: 2 / -1; justify-self: start; }
  .glx--combat .glx__cdet  { grid-column: 1 / -1; text-align: left; }
  .glx--combat .glx__csrc  { display: none; }
}

/* inspector drawer */
.glx__inspect {
  width: 380px; flex: 0 0 auto; overflow-y: auto;
  background: var(--gx-panel); border-left: 1px solid var(--gx-line);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.glx__ihead { display: flex; align-items: center; justify-content: space-between; }
.glx__ilevel { font: 700 11px var(--gx-mono); letter-spacing: 0.1em; padding: 4px 11px; border-radius: 5px; border: 1px solid currentColor; }
.glx__iclose { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--gx-line); background: transparent; color: var(--gx-dim); font-size: 16px; cursor: pointer; }
.glx__iclose:hover { color: var(--gx-ink); }
.glx__ititle { font-size: 18px; font-weight: 700; text-transform: capitalize; }
.glx__imeta { font: 500 11.5px var(--gx-mono); color: var(--gx-dim); }
.glx__ibody {
  font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap;
  background: var(--gx-bg); border: 1px solid var(--gx-line); border-radius: 9px; padding: 12px 14px;
}
.glx__isubhead { display: flex; align-items: center; justify-content: space-between; font: 600 10px var(--gx-mono); letter-spacing: 0.2em; color: var(--gx-dim); margin-top: 6px; }
.glx__iactions { display: flex; gap: 6px; }
.glx__ibtn { font: 500 10px var(--gx-mono); letter-spacing: 0.05em; padding: 4px 9px; border-radius: 6px; cursor: pointer; color: var(--gx-dim); background: transparent; border: 1px solid var(--gx-line); }
.glx__ibtn:hover { color: var(--gx-accent); border-color: color-mix(in srgb, var(--gx-accent) 45%, transparent); }
.glx__igrid { display: flex; flex-direction: column; gap: 6px; }
.glx__icell {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--gx-bg); border: 1px solid var(--gx-line); border-left: 2px solid color-mix(in srgb, var(--gx-accent) 45%, transparent);
  border-radius: 8px; padding: 8px 12px;
}
.glx__ikey { font: 500 10px var(--gx-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gx-dim); }
.glx__ival { font-size: 13.5px; word-break: break-word; }
.glx__inometa { font-size: 12.5px; color: var(--gx-dim); }

/* identity block — steam hex / rockstar license / discord */
.glx__chip--id { border-color: color-mix(in srgb, var(--gx-accent) 40%, transparent); background: color-mix(in srgb, var(--gx-accent) 7%, transparent); }
.glx__chip--id .glx__chipk { color: var(--gx-accent); }
.glx__icell--id { cursor: pointer; font: inherit; text-align: left; border-left-color: var(--gx-accent); }
.glx__icell--id:hover { background: color-mix(in srgb, var(--gx-accent) 6%, var(--gx-bg)); }
.glx__ival--mono { font: 500 13px var(--gx-mono); }
.glx__isub { font: 400 10.5px var(--gx-mono); color: var(--gx-dim); }
.glx__ihint { font: 400 9px var(--gx-mono); letter-spacing: 0.05em; text-transform: none; }
.glx__ijson {
  font: 400 12px var(--gx-mono); line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  background: #030408; border: 1px solid var(--gx-line); border-radius: 9px; padding: 12px 14px; color: #9fe6c6;
}

/* ============================================================
   v3 LAYOUT — search-first. No sidebar: one question box, two rows of
   pills to narrow, a timeline, and a player dossier one click away.
   ============================================================ */
.glx__logs { gap: 0 !important; padding-top: 0 !important; }
.glx__hero {
  padding: 26px 4px 18px; display: flex; flex-direction: column; gap: 12px; align-items: center;
  border-bottom: 1px solid var(--gx-line); margin-bottom: 14px;
}
.glx__searchbig { position: relative; width: 100%; max-width: 780px; }
.glx__searchbig .glx__searchico { left: 18px; font-size: 19px; }
.glx__searchbig .glx__search {
  font: 500 15px "Archivo", sans-serif; padding: 15px 44px 15px 46px; border-radius: 12px;
  background: var(--gx-panel);
}
.glx__searchbig .glx__clear { right: 12px; }
.glx__herohint { font-size: 12px; color: var(--gx-dim); text-align: center; }
.glx__herohint b { color: var(--gx-accent); font-family: var(--gx-mono); }

.glx__pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 900px; }
.glx__pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 12.5px "Archivo", sans-serif; color: var(--gx-dim);
  background: var(--gx-panel); border: 1px solid var(--gx-line);
  border-radius: 999px; padding: 8px 15px;
}
.glx__pill:hover { color: var(--gx-ink); border-color: rgba(148, 178, 215, 0.32); }
.glx__pill.is-on {
  color: #06121f; background: var(--gx-accent); border-color: var(--gx-accent); font-weight: 600;
}
.glx__pilln { font: 600 10px var(--gx-mono); opacity: 0.75; }
.glx__pills--sub { max-width: 900px; }
.glx__pill--sub { text-transform: capitalize; padding: 6px 13px; font-size: 12px; background: transparent; }
.glx__pills--time .glx__pill { padding: 6px 13px; font: 500 11.5px var(--gx-mono); }

.glx__resultbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 2px 8px;
}
.glx__logs .glx__feed { flex: none; overflow: visible; padding: 0; }
.glx__logs .glx__thead { margin-top: 2px; }

/* ---- player dossier ---- */
.glx__back {
  align-self: flex-start; font: 500 12.5px "Archivo", sans-serif; color: var(--gx-dim);
  background: none; border: none; cursor: pointer; padding: 2px 0 6px;
}
.glx__back:hover { color: var(--gx-accent); }
.glx__dossier { display: flex; flex-direction: column; gap: 16px; }
.glx__dhead { display: flex; align-items: center; gap: 16px; }
.glx__davatar {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 27px;
  background: color-mix(in srgb, var(--gx-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gx-accent) 45%, transparent);
}
.glx__dname { font-size: 30px; font-weight: 700; letter-spacing: 0.01em; }
.glx__dsub { font: 500 12px var(--gx-mono); color: var(--gx-dim); margin-top: 3px; }
.glx__dids { display: flex; flex-wrap: wrap; gap: 7px; }
.glx__idpill {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--gx-panel); border: 1px solid var(--gx-line); border-radius: 9px; padding: 8px 13px;
}
.glx__idpill:hover { border-color: color-mix(in srgb, var(--gx-accent) 50%, transparent); }
.glx__idk { font: 600 10px var(--gx-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gx-dim); }
.glx__idv { font: 500 12.5px var(--gx-mono); color: var(--gx-ink); }
.glx__feed--flush { padding: 0 !important; }

@media (max-width: 700px) {
  .glx__hero { padding-top: 16px; }
  .glx__dname { font-size: 22px; }
}

/* ---- v2 design pass: ambient glow + livelier cards ---- */
.glx { background:
  radial-gradient(900px 420px at 15% -10%, color-mix(in srgb, var(--gx-accent) 7%, transparent), transparent 70%),
  radial-gradient(700px 380px at 95% 110%, rgba(160, 107, 255, 0.06), transparent 70%); }
.glx__row { transition: background 0.1s ease, border-color 0.1s ease; }

/* view tabs (Overview / Logs / Economy) */
.glx__vtabs { display: flex; gap: 4px; flex: 0 0 auto; background: var(--gx-bg); border: 1px solid var(--gx-line); border-radius: 10px; padding: 4px; }
.glx__vtab {
  font: 600 12px var(--gx-mono); letter-spacing: 0.05em; cursor: pointer;
  color: var(--gx-dim); background: transparent; border: none; border-radius: 7px; padding: 8px 14px;
}
.glx__vtab:hover { color: var(--gx-ink); }
.glx__vtab.is-on { color: #06121f; background: var(--gx-accent); font-weight: 700; }

/* dashboard views */
.glx__view { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px 60px; display: flex; flex-direction: column; gap: 18px; }
.glx__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.glx__tile {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--gx-panel); border: 1px solid var(--gx-line); border-radius: 12px; padding: 16px 18px;
}
.glx__tile--accent { border-color: color-mix(in srgb, var(--gx-accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--gx-accent) 10%, var(--gx-panel)), var(--gx-panel)); }
.glx__tileval { font: 700 26px var(--gx-mono); letter-spacing: 0.02em; }
.glx__tile--accent .glx__tileval { color: var(--gx-accent); }
.glx__tilelabel { font: 600 10px var(--gx-mono); letter-spacing: 0.16em; color: var(--gx-dim); }
.glx__tilesub { font: 400 11px var(--gx-mono); color: var(--gx-dim); }

.glx__ovgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.glx__ovcard {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--gx-panel); border: 1px solid var(--gx-line); border-radius: 13px; padding: 15px 17px;
}
.glx__ovhead { display: flex; align-items: center; gap: 9px; }
.glx__ovico { font-size: 17px; }
.glx__ovname { font-weight: 700; font-size: 14.5px; }
.glx__ovtotal { margin-left: auto; font: 700 15px var(--gx-mono); color: var(--gx-accent); }
.glx__ovspark { color: var(--gx-accent); }
.glx__ovspark--flat { color: rgba(148, 178, 215, 0.35); }
.glx__spark { display: block; width: 100%; height: 44px; }
.glx__ovtables { display: flex; flex-direction: column; gap: 3px; }
.glx__ovtbl {
  display: flex; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left;
  font: 500 12.5px "Archivo", sans-serif; color: var(--gx-dim);
  background: transparent; border: none; border-radius: 7px; padding: 6px 9px; text-transform: capitalize;
}
.glx__ovtbl:hover { color: var(--gx-ink); background: rgba(255, 255, 255, 0.04); }
.glx__ovtbln { font: 600 11px var(--gx-mono); color: var(--gx-accent); }

/* economy */
.glx__echead { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.glx__ectitle { font: 700 14px var(--gx-mono); letter-spacing: 0.2em; color: var(--gx-accent); }
.glx__ecdays { width: auto; margin: 0; }
.glx__card { background: var(--gx-panel); border: 1px solid var(--gx-line); border-radius: 13px; padding: 15px 17px; }
.glx__cardhead { font: 600 10px var(--gx-mono); letter-spacing: 0.2em; color: var(--gx-dim); margin-bottom: 12px; }
.glx__chart { min-height: 120px; }
.glx__barsvg { display: block; width: 100%; height: 200px; }
.glx__bar { fill: var(--gx-accent); opacity: 0.85; }
.glx__bar:hover { opacity: 1; }
.glx__axis { font: 500 11px var(--gx-mono); fill: var(--gx-dim); }
.glx__ecgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.glx__ecrow { display: flex; flex-direction: column; gap: 5px; width: 100%; text-align: left; cursor: pointer; background: transparent; border: none; padding: 9px 6px; border-radius: 8px; color: inherit; font: inherit; }
.glx__ecrow:hover { background: rgba(255, 255, 255, 0.03); }
.glx__ecrowtop { display: flex; justify-content: space-between; gap: 10px; }
.glx__ecname { font-weight: 600; font-size: 13.5px; text-transform: capitalize; }
.glx__ecval { font: 700 13px var(--gx-mono); color: var(--gx-accent); }
.glx__ecbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.glx__ecfill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gx-accent), #a06bff); }
.glx__ecsub { font: 400 10.5px var(--gx-mono); color: var(--gx-dim); }
.glx__ectx { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; background: transparent; border: none; padding: 8px 6px; border-radius: 8px; color: inherit; font: inherit; }
.glx__ectx:hover { background: rgba(255, 255, 255, 0.03); }
.glx__ectxamt { font: 700 14px var(--gx-mono); color: #ffd479; min-width: 92px; }
.glx__ectxmid { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.glx__ectxmid b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .glx__ecgrid { grid-template-columns: 1fr; } .glx__vtab { padding: 8px 9px; } }

/* narrow: drop to time · who · amount, with the description on its own line */
@media (max-width: 1040px) {
  .glx__thead { display: none; }
  .glx__row, .glx--multi .glx__row { grid-template-columns: 68px minmax(0, 1fr) 84px; row-gap: 2px; }
  .glx__ctype, .glx__csrc, .glx--multi .glx__csrc { display: none; }
  .glx__cwhat { grid-column: 1 / -1; }
}

@media (max-width: 1100px) { .glx__inspect { position: fixed; right: 0; top: 0; bottom: 0; z-index: 50; box-shadow: -20px 0 60px rgba(0,0,0,0.6); } }
@media (max-width: 760px) {
  .glx__side { display: none; }
  .glx__searchwrap { max-width: none; }
  .glx__inspect { width: 100%; }
}

@media (max-width: 820px) {
  .glog__mgrid { grid-template-columns: 1fr; }
  .glog__res { max-width: 150px; }
  .glog__chipv { max-width: 150px; }
}

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

@media (max-width: 900px) {
  .header__nav { display: none; }
  .show__media,
  .show--flip .show__media,
  .show__text,
  .show--flip .show__text { grid-column: 1 / 13; grid-row: auto; }
  .show__text { padding-top: 28px; }
  .char__info { left: 20px; right: 20px; bottom: 40px; }
  .svc { flex-direction: column; align-items: flex-start; }
  .feed { grid-template-columns: 1fr; }
  .caseboard { height: auto; }
  .caseboard__sticky { position: static; height: auto; padding: 20px; overflow: visible; display: block; }
  .caseboard__thread, .caseboard__light, .caseboard__unit { display: none; }
  .caseboard__track { flex-direction: column; transform: none !important; padding: 0; }
  .case, .case--reel {
    position: static;
    width: 100%;
    margin: 0 0 26px;
    transform: none;
    filter: none;
  }
  .casenote { position: static; width: 100%; margin-bottom: 26px; }
  .bizstage { height: auto; width: auto; margin-left: 0; }
  .bizstage__sticky { position: static; height: auto; padding: 40px 0; overflow: visible; }
  .bizstage__laser, .bizstage__eq { display: none; }
  .bizstage__stage { height: auto; }
  .bizstage__card, .bizstage__card.is-left, .bizstage__card.is-right, .bizstage__card.is-center,
  .bizstage__card.is-lfar, .bizstage__card.is-rfar {
    position: static;
    width: 100%;
    margin: 0 0 22px;
    transform: none;
    filter: none;
  }
  .diner__lamp, .diner__steam, .diner__rail, .diner__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; }
  .venue--special { grid-template-columns: 1fr; }
  .biz__img, .biz__img--right, .biz .card:nth-of-type(n) { grid-column: 1 / 13; grid-row: auto; margin-top: 0; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .venues { grid-template-columns: 1fr; }
  .venue, .venue--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; }
.apply-page {
  min-height: 100vh;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(255, 95, 162, 0.08), transparent 70%),
    radial-gradient(50% 40% at 10% 100%, rgba(160, 107, 255, 0.08), transparent 70%),
    var(--bg);
}
.apply {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 180px) clamp(20px, 4vw, 40px) 120px;
}
.apply__hero { text-align: center; max-width: 640px; margin: 6vh auto 0; }
.apply__hero .lede { margin-left: auto; margin-right: auto; }
.apply__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;
}
.apply__discord { margin-top: 34px; }
.apply__discord-ico { width: 22px; height: 22px; }
.apply__fine {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 242, 238, 0.45);
}
.apply__userbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 7vh;
}
.apply__avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 95, 162, 0.5);
  box-shadow: 0 0 24px rgba(255, 95, 162, 0.25);
}
.apply__welcome {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.apply__username {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
}
.apply__section { margin-top: 7vh; }
.apply__section .display--sm { margin: 6px 0 26px; }
.apply__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.app-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(255, 95, 162, 0.4), rgba(160, 107, 255, 0.18) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.app-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-card__desc { margin: 10px 0 20px; font-size: 14px; color: var(--muted); }
.app-card__foot { margin-top: auto; }
.app-card__btn { font-size: 12px; padding: 13px 24px; }
.app-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 999px;
  padding: 9px 15px;
  border: 1px solid rgba(247, 242, 238, 0.25);
  color: var(--muted);
}
.app-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.app-status--pending { color: var(--orange); border-color: rgba(255, 161, 79, 0.45); }
.app-status--reviewing { color: var(--purple); border-color: rgba(160, 107, 255, 0.5); }
.app-status--approved { color: #6fdd8b; border-color: rgba(111, 221, 139, 0.45); }
.app-status--denied { color: #ff5464; border-color: rgba(255, 84, 100, 0.5); }
.apply__list { display: flex; flex-direction: column; gap: 12px; }
.app-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);
}
.app-row__main { display: flex; align-items: baseline; gap: 14px; }
.app-row__main b { font-family: var(--font-display); letter-spacing: 0.04em; font-size: 17px; }
.app-row__date { font-size: 12px; color: var(--muted); }
.app-row__note { width: 100%; order: 3; font-size: 13px; color: var(--muted); }
.app-row__side { display: flex; align-items: center; gap: 12px; }
.app-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;
}
.app-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(255, 95, 162, 0.4), rgba(160, 107, 255, 0.18) 55%, rgba(247, 242, 238, 0.07)) border-box;
  border: 1px solid transparent;
  padding: clamp(24px, 3.5vw, 44px);
}
.apply-form__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.apply-form__desc { margin: 8px 0 26px; font-size: 14px; color: var(--muted); }
.apply-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(255, 95, 162, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 95, 162, 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); }
.apply-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(255, 95, 162, 0.5), rgba(160, 107, 255, 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(160, 107, 255, 0.2)) border-box;
}
@media (max-width: 760px) {
  .apply__grid { grid-template-columns: 1fr; }
}

/* armed withdraw confirmation */
.app-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 ============ */
.admin__scope {
  margin-left: auto;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(160, 107, 255, 0.45);
  border-radius: 999px;
  padding: 9px 16px;
}
.admin__filters {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.admin__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.admin__tab {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; cursor: pointer;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(247, 242, 238, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.admin__tab b {
  font-size: 11px;
  color: var(--ink);
  background: rgba(247, 242, 238, 0.1);
  border-radius: 999px;
  padding: 2px 8px;
}
.admin__tab:hover { color: var(--ink); }
.admin__tab.is-on {
  color: var(--ink);
  border-color: rgba(255, 95, 162, 0.55);
  background: rgba(255, 95, 162, 0.1);
}
.admin__formsel { max-width: 260px; }
.app-row--click { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color 0.3s, background 0.3s; }
.app-row--click:hover { border-color: rgba(255, 95, 162, 0.45); background: rgba(26, 18, 30, 0.8); }
.admin__rowavatar { width: 34px; height: 34px; border-radius: 50%; }
.admin__empty { text-align: center; color: var(--muted); margin-top: 40px; font-size: 14px; }
.admin__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin__head .app-status { margin-left: auto; }
.admin__avatar { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(160, 107, 255, 0.5); }
.admin__meta { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-top: 4px; }
.admin__answers {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 22px;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 6px;
}
.admin__answer {
  border: 1px solid rgba(247, 242, 238, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(10, 8, 15, 0.5);
}
.admin__q {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.55);
  margin-bottom: 6px;
}
.admin__a { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

/* prior applications & ban appeals shown under the answers */
.rhist {
  margin: -8px 0 22px;
  border-top: 1px solid rgba(247, 242, 238, 0.1);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.rhist__head {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247, 242, 238, 0.6);
  margin-bottom: 2px;
}
.rhist__row {
  border: 1px solid rgba(247, 242, 238, 0.1);
  border-radius: 10px;
  padding: 9px 13px;
  background: rgba(10, 8, 15, 0.5);
}
.rhist__row--flag {
  border-color: rgba(255, 84, 100, 0.5);
  background: rgba(255, 84, 100, 0.08);
}
.rhist__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;
}
.rhist__row--click:hover {
  border-color: rgba(160, 107, 255, 0.5);
  background: rgba(160, 107, 255, 0.08);
}
.rhist__badge--muted { color: var(--muted); }
.rhist__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* reviewer note shown atop a prior application in the read-only viewer */
.past-note {
  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;
}
.rhist__badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid currentColor;
}
.rhist__form { font-size: 13px; font-weight: 600; color: var(--ink); }
.rhist__no { font-size: 12px; color: var(--muted); margin-left: auto; }
.rhist__meta { font-size: 12px; color: var(--muted); margin-top: 5px; }
.rhist__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;
}

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

/* god-tier badge */
.admin__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(255, 95, 162, 0.25);
}

/* key choice chip on application rows (department / venue) */
.app-row__detail {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(255, 95, 162, 0.4);
  border-radius: 999px;
  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) ============ */
.admin__sections { display: flex; gap: 8px; margin-bottom: 30px; }
.staff__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.staff__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(160, 107, 255, 0.35), rgba(255, 95, 162, 0.16) 55%, rgba(247, 242, 238, 0.07)) border-box;
}
.staff__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.staff__hint { margin: 8px 0 18px; font-size: 13px; color: var(--muted); }
.staff__sub {
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 22px 0 10px;
  color: rgba(247, 242, 238, 0.8);
}
.staff__list { display: flex; flex-direction: column; gap: 10px; }
.staff__none { font-size: 13px; color: var(--muted); padding: 8px 2px; }
.staff__new { display: flex; gap: 10px; margin-top: 16px; }
.staff__new .field__input { flex: 1; }
.staff__newbtn, .staff__minibtn { font-size: 11px; padding: 11px 18px; flex: 0 0 auto; }
.staff__row { padding: 12px 16px; }
.dept {
  border: 1px solid rgba(247, 242, 238, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(20, 16, 26, 0.6);
}
.dept__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dept__head b { font-family: var(--font-display); letter-spacing: 0.05em; font-size: 16px; }
.dept__mode { max-width: 170px; padding: 8px 10px; font-size: 12px; }
.dept__desks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.dept__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: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.dept__chip input { accent-color: var(--pink); }
.dept__chip:has(input:checked) {
  color: var(--ink);
  border-color: rgba(255, 95, 162, 0.5);
  background: rgba(255, 95, 162, 0.08);
}
.dept__foot { display: flex; align-items: center; justify-content: space-between; }

/* ---- city departments: member panel (apply portal) ---- */
.dept__switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dept__switchbtn {
  font-size: 12px; padding: 8px 14px; border-radius: 999px; 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;
}
.dept__switchbtn:hover { color: var(--ink); }
.dept__switchbtn.is-on { color: var(--ink); border-color: rgba(255, 95, 162, 0.5); background: rgba(255, 95, 162, 0.1); }

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

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

.dept__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);
}
.dept__newshead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dept__newshead b { font-size: 15px; }
.dept__newsmeta { font-size: 12px; color: var(--muted); }
.dept__newsbody { font-size: 14px; line-height: 1.6; margin-top: 6px; }
.dept__newsbody p { margin: 6px 0; }
.dept__newsbody ul { margin: 6px 0; padding-left: 20px; }
.dept__newsbody h3, .dept__newsbody h4, .dept__newsbody h5 { margin: 10px 0 4px; font-family: var(--font-display); letter-spacing: 0.03em; }

.dept__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;
}
.dept__mini:hover { color: var(--ink); border-color: rgba(247, 242, 238, 0.35); }
.dept__mini--danger { color: #ff5464; border-color: rgba(255, 84, 100, 0.4); }
.dept__mini--danger:hover { background: rgba(255, 84, 100, 0.12); border-color: #ff5464; }

.dept__hbedit { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.dept__hbbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dept__hbstatus { font-size: 12px; color: var(--muted); margin-left: auto; }
.dept__hbpreview, .dept__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;
}
.dept__hbpreview p, .dept__hbread p { margin: 8px 0; }
.dept__hbpreview ul, .dept__hbread ul { margin: 8px 0; padding-left: 22px; }
.dept__hbpreview h3, .dept__hbread h3,
.dept__hbpreview h4, .dept__hbread h4,
.dept__hbpreview h5, .dept__hbread h5 { margin: 14px 0 6px; font-family: var(--font-display); letter-spacing: 0.03em; }

.dept__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);
}
.dept__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.dept__memmain { display: flex; flex-direction: column; gap: 2px; }
.dept__memmain .dept__newsmeta { text-transform: none; letter-spacing: 0; }
.dept__member .dept__mini { margin-top: 0; margin-left: auto; }

/* ---- city departments: back office (staff) ---- */
.cd__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.cd__field { display: flex; flex-direction: column; gap: 4px; }
.cd__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cd__field .field__input { font-size: 13px; padding: 9px 12px; }
.cd__chiefs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.cd__chief {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 6px 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 212, 121, 0.4); background: rgba(255, 212, 121, 0.08); color: #ffd479;
}
.cd__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;
}
.cd__addchief { max-width: 280px; font-size: 13px; padding: 8px 12px; }
.staff__addrow { display: flex; gap: 10px; margin-top: 16px; }
.staff__addrow .field__input { flex: 1; }
@media (max-width: 620px) { .cd__grid { grid-template-columns: 1fr; } }

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

.mdt {
  --mdt-accent: #38d6c8;
  --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);
}

.mdt__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);
}
.mdt__brand { display: flex; align-items: center; gap: 12px; }
.mdt__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);
}
.mdt__brandtext { display: flex; flex-direction: column; }
.mdt__unit { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.08em; color: var(--ink); }
.mdt__sub { font-family: var(--mdt-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

.mdt__status { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mdt__pill {
  font-family: var(--mdt-mono); font-size: 11px; letter-spacing: 0.12em;
  padding: 3px 12px; border-radius: 999px; 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);
}
.mdt__clock { font-family: var(--mdt-mono); font-size: 16px; letter-spacing: 0.14em; color: var(--mdt-accent); }

.mdt__id { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.mdt__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.15); }
.mdt__idtext { display: flex; flex-direction: column; align-items: flex-end; }
.mdt__idname { font-size: 14px; color: var(--ink); }
.mdt__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);
}
.mdt__idbadge--chief { color: #ffd479; border-color: rgba(255, 212, 121, 0.5); background: rgba(255, 212, 121, 0.1); }

.mdt__switch { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 0; }
.mdt__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;
}
.mdt__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); }

.mdt__nav { display: flex; gap: 4px; padding: 14px 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.mdt__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;
}
.mdt__navbtn:hover { color: var(--ink); }
.mdt__navbtn.is-on { color: var(--mdt-accent); border-bottom-color: var(--mdt-accent); }

.mdt__body { padding: 22px; }
.mdt__wrap { display: flex; flex-direction: column; gap: 18px; }
.mdt__loading, .mdt__empty { font-family: var(--mdt-mono); font-size: 13px; color: var(--muted); padding: 10px 2px; }

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

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

.mdt__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; }
.mdt__newshead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mdt__newshead b { font-size: 15px; color: var(--ink); }
.mdt__meta { font-family: var(--mdt-mono); font-size: 11px; color: var(--muted); }
.mdt__prose { font-size: 14px; line-height: 1.65; margin-top: 6px; color: rgba(247, 242, 238, 0.9); }
.mdt__prose p { margin: 7px 0; }
.mdt__prose ul { margin: 7px 0; padding-left: 20px; }
.mdt__prose h3, .mdt__prose h4, .mdt__prose h5 { margin: 12px 0 5px; font-family: var(--font-display); letter-spacing: 0.03em; color: var(--ink); }
.mdt__preview { margin-top: 14px; border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 14px 16px; }

.mdt__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); }
.mdt__mini:hover { color: var(--ink); }
.mdt__mini--danger { color: #ff6a5f; border-color: rgba(255, 106, 95, 0.4); margin-top: 0; }
.mdt__mini--danger:hover { background: rgba(255, 106, 95, 0.12); }

.mdt__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); }
.mdt__personav { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.mdt__personmain { display: flex; flex-direction: column; gap: 2px; }
.mdt__person > .mdt__mini, .mdt__person > .mdt__rank { margin-left: auto; }
.mdt__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) {
  .mdt__bar { grid-template-columns: 1fr auto; }
  .mdt__status { grid-column: 1 / -1; flex-direction: row; order: 3; justify-content: space-between; }
}

/* --- rich-text toolbar --- */
.mdt__toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0 8px; }
.mdt__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); }
.mdt__tool:hover { color: var(--ink); border-color: color-mix(in srgb, var(--mdt-accent) 50%, transparent); }
.mdt__tool--b { font-weight: 800; }
.mdt__tool--i { font-style: italic; }
.mdt__toolsep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.12); margin: 0 4px; }

/* --- read receipts --- */
.mdt__newsfoot { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.mdt__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); }
.mdt__ack:hover { background: color-mix(in srgb, var(--mdt-accent) 20%, transparent); }
.mdt__ack--done { border-color: rgba(111, 221, 139, 0.4); background: rgba(111, 221, 139, 0.1); color: #6fdd8b; cursor: default; }

.mdt__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; }
.mdt__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 --- */
.mdt__statusrow { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.mdt__statusrow:last-child { border-bottom: none; }
.mdt__statusrow .mdt__personmain { flex: 1; }
.mdt__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 8px currentColor; }
.mdt__dot--on { color: #2ee6a6; background: #2ee6a6; }
.mdt__dot--off { color: #6b7280; background: #6b7280; box-shadow: none; }
.mdt__dot--disp { color: #ffb454; background: #ffb454; }
.mdt__dot--brk { color: #4c8dff; background: #4c8dff; }
.mdt__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; }
.mdt__statuspill--on { color: #2ee6a6; }
.mdt__statuspill--off { color: #9aa0aa; }
.mdt__statuspill--disp { color: #ffb454; }
.mdt__statuspill--brk { color: #4c8dff; }
.mdt__readtag { font-family: var(--mdt-mono); font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.mdt__readtag--ok { color: #6fdd8b; border: 1px solid rgba(111, 221, 139, 0.4); }
.mdt__readtag--no { color: #9aa0aa; border: 1px solid rgba(255, 255, 255, 0.15); }

.mdt__logrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 13px; }
.mdt__logrow:last-child { border-bottom: none; }
.mdt__logico { width: 20px; text-align: center; }
.mdt__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; }
.mdt__logtxt { flex: 1; color: rgba(247, 242, 238, 0.9); }

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

/* --- performance page --- */
.mdt__back { font-family: var(--mdt-mono); font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer; padding: 4px 0; margin-bottom: 4px; }
.mdt__back:hover { color: var(--ink); }
.mdt__perfhead { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.mdt__perfav { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid color-mix(in srgb, var(--mdt-accent) 50%, transparent); }
.mdt__perfhead > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mdt__perfname { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.03em; }
.mdt__perfhead .mdt__statuspill { margin-left: 0; }
.mdt__statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.mdt__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); }
.mdt__stat--accent { border-color: color-mix(in srgb, var(--mdt-accent) 45%, transparent); background: color-mix(in srgb, var(--mdt-accent) 8%, transparent); }
.mdt__statval { display: block; font-family: var(--font-display); font-size: 28px; color: var(--ink); }
.mdt__stat--accent .mdt__statval { color: var(--mdt-accent); }
.mdt__statlabel { font-family: var(--mdt-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mdt__facts { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: rgba(247, 242, 238, 0.85); margin-bottom: 14px; }

/* --- applications (chief review) --- */
.mdt__apptabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.mdt__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); }
.mdt__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); }
.mdt__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); }
.mdt__apphead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mdt__apphead .mdt__personmain { flex: 1; }
.mdt__apphead .mdt__statuspill { margin-left: auto; }
.mdt__answers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mdt__answer { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid rgba(255, 255, 255, 0.1); padding-left: 10px; }
.mdt__alabel { font-family: var(--mdt-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mdt__avalue { font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.mdt__appnote { font-size: 13px; color: rgba(247, 242, 238, 0.8); font-style: italic; margin-bottom: 10px; }
.mdt__statuspill--app-pending { color: #ffb454; }
.mdt__statuspill--app-reviewing { color: #a06bff; }
.mdt__statuspill--app-approved { color: #6fdd8b; }
.mdt__statuspill--app-denied { color: #ff6a5f; }
.mdt__btn--ok { border-color: rgba(111, 221, 139, 0.5); color: #6fdd8b; }
.mdt__btn--ok:hover { background: rgba(111, 221, 139, 0.12); }
.mdt__btn--no { border-color: rgba(255, 106, 95, 0.5); color: #ff6a5f; }
.mdt__btn--no:hover { background: rgba(255, 106, 95, 0.12); }
.mdt__app .field__input { margin-bottom: 10px; }
.mdt__reply { display: flex; flex-direction: column; gap: 7px; margin: 8px 0 14px; }
.mdt__replylabel { font-family: var(--mdt-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.mdt__replybox, .mdt__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);
}
.mdt__replybox { min-height: 110px; margin-bottom: 0; }
.mdt__composebox { min-height: 150px; }
.mdt__replybox:focus, .mdt__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) { .mdt__statgrid { grid-template-columns: repeat(2, 1fr); } }

/* --- handbook library (collapsible cards) --- */
.mdt__hbcard { padding: 0; overflow: hidden; }
.mdt__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;
}
.mdt__hbhead:hover { background: rgba(255, 255, 255, 0.02); }
.mdt__hbheadmain { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mdt__hbtitle { font-size: 15px; color: var(--ink); }
.mdt__hbstat { font-family: var(--mdt-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.mdt__hbstat--ok { color: #6fdd8b; }
.mdt__hbtoggle { font-size: 16px; color: var(--muted); transition: transform 0.2s; }
.mdt__hbcard.is-open .mdt__hbtoggle { transform: rotate(180deg); }
.mdt__hbbody { padding: 0 18px 18px; }

/* --- ranks --- */
.mdt__rankhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mdt__rankname { max-width: 260px; font-family: var(--font-display); letter-spacing: 0.03em; font-size: 16px; }
.mdt__rankperms { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.mdt__rchk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.mdt__rchk input { accent-color: var(--mdt-accent); }
.mdt__rchk:has(input:checked) { color: var(--ink); }
.mdt__rankvis { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.mdt__rankchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mdt__rchip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.mdt__rchip input { accent-color: var(--mdt-accent); }
.mdt__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); }
.mdt__rankassign { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mdt__rankassign .field__input { max-width: 220px; }

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

/* ============ BACK OFFICE: tables ============ */
.apply--wide { max-width: 1240px; }
.staff__card--wide { margin-bottom: 26px; }
.staff__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);
}
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl 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);
}
.tbl td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(247, 242, 238, 0.06);
  vertical-align: middle;
}
.tbl tbody tr { transition: background 0.25s; }
.tbl tbody tr:hover { background: rgba(255, 95, 162, 0.04); }
.tbl__user { display: flex; align-items: center; gap: 10px; }
.tbl__user b { font-family: var(--font-display); letter-spacing: 0.05em; font-size: 15px; }
.tbl__dim { color: var(--muted); font-size: 13px; }
.profile__stats { display: flex; gap: 12px; margin-bottom: 8px; }
.profile__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);
}
.profile__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile__stat span {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* statistics tab */
.stats__tiles .profile__stat { padding: 20px 12px; }
.stats__live b { position: relative; }
.stats__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;
}
.stats__barcell { width: 45%; }
.stats__bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--grad-sunset);
  box-shadow: 0 0 14px rgba(255, 95, 162, 0.35);
  min-width: 6px;
}

/* repeatable platform rows in application forms */
.multi__rows { display: flex; flex-direction: column; gap: 10px; }
.multi__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.multi__row select { flex: 0 0 160px; }
.multi__row input { flex: 1; }
.multi__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;
}
.multi__rm:hover { color: #ff5464; border-color: rgba(255, 84, 100, 0.6); }
.multi__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(255, 95, 162, 0.5);
  padding: 2px 0;
  transition: color 0.3s;
}
.multi__add:hover { color: var(--ink); }

/* clickable table rows */
.tbl tbody tr.tbl__click { cursor: pointer; }

/* ---- job board conveyors: two counter-scrolling rows ---- */
.jobreel { height: 520vh; }
.jobreel__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;
}
.jobreel__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 */
.jobreel__rows .jobreel__item {
  width: clamp(220px, 24vw, 380px);
  margin: 0 !important;   /* no zigzag on the board */
}
.jobreel__rows .jobreel__idx {
  font-size: clamp(52px, 5vw, 78px);
  right: -4px; bottom: -16px;
}
/* the focused card gets its chrome (arc FX already scales/brightens it) */
.jobreel__rows .jobreel__item::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 95, 162, 0.55);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
  z-index: 3;
}
.jobreel__rows .jobreel__item.is-focus::after { opacity: 1; }
.jobreel__rows .jobreel__item.is-focus {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 95, 162, 0.18);
}

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

/* ============ JOBS BOARD: split-flap now-hiring departures ============ */
.bizstage--jobs { height: 1050vh; }
.bizstage--jobs .bizstage__sticky {
  display: flex;
  align-items: center;
  justify-content: center;
}
.jobsboard {
  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 --- */
.jobsboard__screenwrap { perspective: 1400px; }
.jobsboard__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);
}
.jobsboard__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0 14px 14px 14px;
  border: 1px solid rgba(255, 95, 162, 0.25);
  background: #0b0812;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  perspective: 1400px;
  transform-style: preserve-3d;
}
.jobsboard__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 */
.jobsboard__card.is-left,
.jobsboard__card.is-right,
.jobsboard__card.is-rfar,
.jobsboard__card.is-lfar {
  transform: none;
}
.jobsboard__card.is-rfar,
.jobsboard__card.is-lfar {
  opacity: 0;
  z-index: 0;
}
/* the neighbours hold flat underneath, dimmed — the wipe lands on them */
.jobsboard__card.is-left,
.jobsboard__card.is-right {
  opacity: 1;
  z-index: 1;
  filter: brightness(0.5) saturate(0.75);
  transition: opacity 0.3s, filter 0.45s;
}
.jobsboard__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 */
.jobsboard__screen::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 11%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 95, 162, 0.35) 35%,
    rgba(255, 236, 245, 0.85) 50%,
    rgba(160, 107, 255, 0.35) 65%,
    transparent);
  filter: blur(2px);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}
.bizstage--jobs.is-swap .jobsboard__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 */
.bizstage--jobs.is-swap .jobsboard__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; }
}
.jobsboard__card video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}
.jobsboard__card video.is-ready { opacity: 1; }
.jobsboard__idx {
  position: absolute;
  right: 10px; bottom: -6px;
  font-family: var(--font-display);
  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;
}
.jobsboard__card .show__bar { border-radius: 0 0 13px 13px; z-index: 3; }
/* --- the hiring board --- */
.jobsboard__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(255, 95, 162, 0.35), rgba(160, 107, 255, 0.16) 55%, rgba(247, 242, 238, 0.07)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.jobsboard__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);
}
.jobsboard__head b { color: var(--pink); }
.jobsboard__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;
}
.jobsboard__rows {
  display: flex;
  flex-direction: column;
  max-height: 62vh;
  overflow: hidden;
}
.jobsboard__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;
}
.jobsboard__row:hover { background: rgba(255, 95, 162, 0.05); }
.jobsboard__row.is-on { background: rgba(255, 95, 162, 0.08); }
.jobsboard__no {
  font-family: Consolas, monospace;
  font-size: 10px;
  color: rgba(247, 242, 238, 0.4);
}
.jobsboard__row.is-on .jobsboard__no { color: var(--pink); }
.jobsboard__name { display: flex; gap: 2px; flex-wrap: wrap; }
.jobsboard__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);
}
.jobsboard__row.is-on .jobsboard__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); }
}
.jobsboard__status {
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 242, 238, 0.35);
}
.jobsboard__row.is-on .jobsboard__status {
  color: #6fdd8b;
  text-shadow: 0 0 12px rgba(111, 221, 139, 0.6);
}
/* the active row unfolds its description */
.jobsboard__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;
}
.jobsboard__row.is-on .jobsboard__desc { max-height: 64px; padding: 6px 0 4px 26px; }

@media (max-width: 980px) {
  .jobsboard { grid-template-columns: 1fr; }
  .jobsboard__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) {
  .bizstage--diner, .bizstage--mech { height: auto; }
  .bizstage--diner .bizstage__sticky, .bizstage--mech .bizstage__sticky {
    display: block; height: auto; padding: 40px 0;
  }
  .caseboard__tape, .caseboard__confidential, .caseboard__string { display: none; }
  .diner__sign, .diner__clip, .diner__ticket, .mech__floor { display: none; }
  .bizstage__glow { width: 130vw; height: 60vh; filter: blur(60px); }

  /* the jobs board keeps its pinned split-flap show, just shorter */
  .bizstage--jobs { height: 520vh; }
  .bizstage--jobs .bizstage__sticky {
    position: sticky; top: 0; height: 100vh;
    padding: 84px 0 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .jobsboard { width: 94vw; gap: 14px; align-content: center; }
  .jobsboard__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 */
  .jobsboard__card, .jobsboard__card.is-left, .jobsboard__card.is-right,
  .jobsboard__card.is-center, .jobsboard__card.is-lfar, .jobsboard__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; }
  .bgword, .scrub-hint, .jobreel__cloud { display: none; }
  .card::before { display: none; }
  .bizstage__card, .mech__card { -webkit-box-reflect: none; }
  .bizstage__laser, .bizstage__eq, .diner__lamp, .diner__steam,
  .caseboard__light { display: none; }

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

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

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

  .jobsboard__plate { font-size: 9px; padding: 7px 10px; letter-spacing: 0.22em; }
  .jobsboard__rows { max-height: 26vh; }
  .jobsboard__desc { font-size: 12px; }

  .bizstage__sticky { padding: 28px 0; }
  .bizstage__card:not(.jobsboard__card),
  .bizstage__card.is-left:not(.jobsboard__card),
  .bizstage__card.is-right:not(.jobsboard__card),
  .bizstage__card.is-center:not(.jobsboard__card),
  .bizstage__card.is-lfar:not(.jobsboard__card),
  .bizstage__card.is-rfar:not(.jobsboard__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 */
  .caseboard__sticky { padding: 24px 14px; }
  .caseboard__track .case--reel,
  .caseboard__track .case--reel.is-active {
    transform: none; filter: none; box-shadow: none;
  }
  .case, .case--reel { margin: 0 0 18px; }
  .caseboard__track .case--reel:nth-of-type(even) { margin-top: 0; }
  .caseboard__track .case--reel:nth-of-type(odd) { margin-bottom: 18px; }
  .case::before, .case::after { display: none; }
  .casenote { 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) {
    .hero__sticky, .expand__sticky, .char,
    .bizstage--jobs .bizstage__sticky { height: 100svh; }
  }
}

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

/* home: staff testing primer */
.guide__primer { margin-bottom: 18px; }
.guide__housekeeping { opacity: 0.8; }
.guide__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;
}
.guide__codeline { display: flex; align-items: baseline; gap: 14px; padding: 3px 0; flex-wrap: wrap; }
.guide__codeline code {
  font-family: "Consolas", "Menlo", monospace; font-size: 13px;
  color: var(--orange); white-space: pre;
}
.guide__codewhy { font-size: 12px; color: var(--muted); }

/* home: category tiles */
.guide__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide__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;
}
.guide__cat:hover { border-color: var(--pink); transform: translateY(-2px); }
.guide__catico { font-size: 30px; line-height: 1; }
.guide__cattitle { font-size: 16px; font-weight: 700; }
.guide__catdesc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.guide__catcount { font-size: 12px; color: var(--pink); margin-top: auto; padding-top: 6px; }

/* category header */
.guide__cathead { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.guide__cathead .guide__catico { font-size: 34px; }
.guide__cathead .staff__title { margin: 0; }
.guide__cathead .staff__hint { margin: 2px 0 0; }

/* script cards */
.guide__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide__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;
}
.guide__card:hover { border-color: var(--pink); transform: translateY(-2px); }
.guide__card--mock { border-style: dashed; opacity: 0.85; }
.guide__cardhead { display: flex; align-items: center; gap: 10px; width: 100%; }
.guide__cardico { font-size: 22px; }
.guide__cardname { font-size: 15.5px; }
.guide__cardpay { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--orange); white-space: nowrap; }
.guide__cardtag { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* badges */
.guide__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.guide__badge {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(247, 242, 238, 0.18); border-radius: 999px;
  padding: 3px 10px; color: var(--muted);
}
.guide__badge--legal { border-color: rgba(111, 227, 165, 0.5); color: #6fe3a5; }
.guide__badge--grey { border-color: rgba(255, 161, 79, 0.5); color: var(--orange); }
.guide__badge--crime { border-color: rgba(255, 95, 162, 0.55); color: var(--pink); }
.guide__badge--core { border-color: rgba(160, 107, 255, 0.55); color: var(--purple); }
.guide__badge--mock { border-style: dashed; color: var(--muted); }

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

/* detail view */
.guide__detail { width: 100%; }
.guide__dhead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.guide__dico { font-size: 38px; line-height: 1; }
.guide__dname { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.03em; margin-bottom: 6px; }
.guide__dtag { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.guide__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;
}
.guide__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.guide__panelstack { display: flex; flex-direction: column; gap: 14px; }
.guide__panel {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 14px;
  background: rgba(255, 255, 255, 0.02); padding: 16px 18px;
}
.guide__panel .guide__code { margin: 0; }
.guide__panel--items, .guide__panel--run { margin-top: 14px; }
.guide__ptitle {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.guide__ref { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.guide__refk {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding-top: 2px; white-space: nowrap;
}
.guide__refv { font-family: "Consolas", "Menlo", monospace; font-size: 13px; color: var(--ink); word-break: break-word; }
.guide__payrange { font-family: var(--font-display); font-size: 24px; color: var(--orange); }
.guide__paynote { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.guide__chips { display: flex; gap: 7px; flex-wrap: wrap; }
.guide__chip {
  font-family: "Consolas", "Menlo", monospace; font-size: 12px;
  border: 1px solid rgba(160, 107, 255, 0.35); border-radius: 999px;
  background: rgba(160, 107, 255, 0.08); padding: 4px 11px;
}
.guide__steps { margin: 0; padding: 0; list-style: none; counter-reset: guidestep; }
.guide__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);
}
.guide__steps li:last-child { border-bottom: none; }
.guide__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);
}
.guide__staffnote {
  margin-top: 16px; border: 1px solid rgba(255, 161, 79, 0.4); border-radius: 12px;
  background: rgba(255, 161, 79, 0.07); padding: 12px 16px;
  font-size: 13px; line-height: 1.6;
}
@media (max-width: 1100px) {
  .guide__cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .guide__cols { grid-template-columns: 1fr; }
  .guide__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .guide__cats { grid-template-columns: 1fr; }
  .guide__cardpay { display: none; }
}
.guide__cat--locked { opacity: 0.45; cursor: default; }
.guide__cat--locked:hover { border-color: rgba(247, 242, 238, 0.12); transform: none; }
.guide__cat--locked .guide__catcount { color: var(--muted); }
/* guides quick-access in the ticket chat */
.tkt__guidesel { max-width: 170px; padding: 8px 10px; font-size: 13px; }
.guide-modal .modal__frame { width: min(92vw, 920px); }
.guide-modal .guide__detail { border: none; background: none; padding: 6px 4px; }
.tkt__guidecat {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 10px 2px 4px;
}
.tkt__miniico { flex: 0 0 auto; }
/* collapsible guide categories in the citizen file */
.tkt__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);
}
.tkt__gcat:hover .tkt__gcatname { color: var(--pink); }
.tkt__gcat--locked { opacity: 0.45; cursor: default; }
.tkt__gcat--locked:hover .tkt__gcatname { color: var(--ink); }
.tkt__gcatarrow { width: 16px; text-align: center; font-size: 11px; color: var(--muted); }
.tkt__gcatname { flex: 1 1 auto; }
.tkt__gcat .admin__tabcount { margin-left: auto; }
.tkt__gcatbody { padding: 2px 0 6px 10px; }
/* ============ REFUND CLAIMS (citizen portal) ============ */
.rc__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(160, 107, 255, 0.45), rgba(255, 95, 162, 0.25) 55%, rgba(247, 242, 238, 0.08)) border-box;
}
.rc__walletlabel {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.rc__balance {
  font-family: var(--font-display); font-size: 40px; line-height: 1;
  background: var(--grad-sunset);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.rc__walletnote { font-size: 12.5px; color: var(--muted); }

/* the code a citizen hands over in the city to collect their credits */
.rc__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(255, 95, 162, 0.45);
  background: linear-gradient(135deg, rgba(255, 95, 162, 0.09), rgba(160, 107, 255, 0.06));
}
.rc__codelabel {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.rc__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;
}
.rc__codecopy { align-self: center; }
.rc__codehint { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: 2px; }
.rc__form { display: flex; gap: 10px; flex-wrap: wrap; }
.rc__form .field__input { flex: 1 1 260px; font-family: "Consolas", "Menlo", monospace; }
.rc__hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 18px; }

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

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

.cl__side { position: sticky; top: 100px; }
.cl__sidehead {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); padding: 0 4px 10px;
}
.cl__list { display: flex; flex-direction: column; gap: 4px; max-height: 68vh; overflow-y: auto; padding-right: 4px; }
.cl__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;
}
.cl__item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.035); }
.cl__item.is-on {
  color: var(--ink); border-left-color: var(--pink);
  background: linear-gradient(90deg, rgba(255, 95, 162, 0.12), transparent);
}
.cl__itemtop { display: flex; align-items: center; gap: 6px; }
.cl__itemtitle { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.cl__itemdate { font-size: 11.5px; opacity: 0.7; }
.cl__pin { font-size: 11px; }

.cl__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;
}
.cl__posthead { border-bottom: 1px solid rgba(247, 242, 238, 0.1); padding-bottom: 22px; margin-bottom: 8px; }
.cl__posttags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cl__tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  color: var(--pink); border: 1px solid rgba(255, 95, 162, 0.45); background: rgba(255, 95, 162, 0.1);
}
.cl__tag--pin { color: #ffd479; border-color: rgba(255, 212, 121, 0.45); background: rgba(255, 212, 121, 0.1); }
.cl__posttitle { font-family: var(--font-display); font-size: clamp(26px, 4.2vw, 40px); line-height: 1.1; letter-spacing: 0.01em; }
.cl__postdate { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.cl__postsum { font-size: 15px; line-height: 1.6; color: rgba(247, 242, 238, 0.8); margin-top: 14px; }
.cl__loading { font-size: 13px; color: var(--muted); padding: 10px 4px; }
.cl__empty { text-align: center; padding: 40px 10px; }
.cl__empty h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 10px; }
.cl__empty p { font-size: 14px; color: var(--muted); }

/* the rendered markdown */
.cl__body { font-size: 15px; line-height: 1.75; color: rgba(247, 242, 238, 0.88); }
.cl__body h2 {
  font-family: var(--font-display); 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(255, 95, 162, 0.28);
}
.cl__body h3 { font-size: 17px; font-weight: 700; color: var(--pink); margin: 28px 0 10px; }
.cl__body h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #a06bff; margin: 24px 0 8px;
}
.cl__body h5 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.cl__body p { margin: 12px 0; }
.cl__body ul, .cl__body ol { margin: 12px 0 12px 4px; padding-left: 22px; }
.cl__body li { margin: 6px 0; }
.cl__body li::marker { color: var(--pink); }
.cl__body strong { color: var(--ink); font-weight: 700; }
.cl__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;
}
.cl__body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.cl__body blockquote {
  margin: 14px 0; padding: 10px 16px; border-left: 3px solid rgba(255, 95, 162, 0.5);
  background: rgba(255, 255, 255, 0.03); border-radius: 0 8px 8px 0; color: rgba(247, 242, 238, 0.78);
}
.cl__body hr { border: none; border-top: 1px solid rgba(247, 242, 238, 0.12); margin: 34px 0; }

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

/* ---- staff editor ---- */
.cle__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cle__fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.cle__toolbar { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.cle__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);
}
.cle__tool:hover { color: var(--ink); border-color: rgba(255, 95, 162, 0.5); }
.cle__body {
  width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.6; resize: vertical; min-height: 380px;
}
.cle__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.cle__spacer { flex: 1; }
.cle__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;
}
.cle__previewhead {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.cle__previewbody { max-height: 62vh; overflow-y: auto; padding-right: 8px; }
.cle__previewbody h2:first-child { margin-top: 0; }

.cle__rowmain { display: flex; flex-direction: column; gap: 3px; }
.cle__rowtop { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cle__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;
}
.cle__row:hover { border-color: rgba(255, 95, 162, 0.4); background: rgba(255, 255, 255, 0.03); }
.cle__row.is-on { border-color: var(--pink); background: rgba(255, 95, 162, 0.08); }
.cle__badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 4px;
  border: 1px solid currentColor;
}
.cle__badge--live { color: #6fdd8b; }
.cle__badge--draft { color: var(--muted); }

@media (max-width: 1000px) {
  .cle__grid { grid-template-columns: 1fr; }
  .cle__preview { position: static; }
  .cle__fields { grid-template-columns: 1fr; }
}

/* ---- known issues: public panel ---- */
.cl__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(255, 95, 162, 0.05));
}
.cl__issueshead { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 14px; }
.cl__issuesico { font-size: 20px; line-height: 1.2; }
.cl__issuestitle { font-size: 15px; font-weight: 700; color: var(--ink); }
.cl__issuessub { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-top: 3px; }
.cl__issue {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; border-top: 1px solid rgba(247, 242, 238, 0.08);
}
.cl__issuestat {
  flex: 0 0 auto; min-width: 118px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px; border: 1px solid currentColor; text-align: center;
}
.cl__issue--rev  .cl__issuestat { color: #ffb454; }
.cl__issue--prog .cl__issuestat { color: #56b6ff; }
.cl__issue--fix  .cl__issuestat { color: #6fdd8b; }
.cl__issuetext { font-size: 14px; line-height: 1.6; color: rgba(247, 242, 238, 0.9); }
.cl__issue--fix .cl__issuetext { color: rgba(247, 242, 238, 0.55); text-decoration: line-through; }
.cl__itemissues { font-size: 11px; color: #ffb454; margin-top: 2px; }

/* ---- known issues: editor rows ---- */
.cle__issues { margin-top: 16px; }
.cle__issuerow { display: grid; grid-template-columns: minmax(0, 1fr) 165px 34px; gap: 8px; margin-bottom: 7px; }
.cle__issuetext, .cle__issuestatus { font-size: 13px; padding: 9px 12px; }
.cle__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;
}
.cle__issuedel:hover { background: rgba(255, 84, 100, 0.12); }
@media (max-width: 620px) { .cle__issuerow { grid-template-columns: 1fr 34px; } .cle__issuestatus { grid-column: 1; } }


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

.rst__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);
}
.rst__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.rst__rowmain { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rst__rowtop { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rst__badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; color: var(--muted);
}
.rst__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);
}
.rst__rolesel { max-width: 190px; font-size: 13px; padding: 8px 11px; }

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

/* the matrix */
.rst__matrixwrap { overflow-x: auto; margin-top: 14px; padding-bottom: 6px; }
.rst__matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
.rst__matrix th, .rst__matrix td { padding: 9px 10px; }
.rst__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;
}
.rst__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);
}
.rst__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;
}
.rst__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);
}
.rst__permlabel { display: block; font-size: 13.5px; color: var(--ink); }
.rst__permhint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rst__cell { text-align: center; border-top: 1px solid rgba(247, 242, 238, 0.06); }
.rst__cell input { width: 17px; height: 17px; accent-color: var(--pink); cursor: pointer; }
.rst__cell input:disabled { accent-color: #ffd479; cursor: not-allowed; opacity: 0.85; }
.rst__matrix tbody tr:hover .rst__perm,
.rst__matrix tbody tr:hover .rst__cell { background: rgba(255, 255, 255, 0.035); }

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

.str__h2 {
  font-family: var(--font-display); 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;
}
.str__h2--left { text-align: left; margin-bottom: 18px; }
.str__h2sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 46px; font-size: 15px; }

/* ---------- hero ---------- */
.str__hero { position: relative; text-align: center; padding: 108px 0 62px; }
.str__heroglow {
  position: absolute; inset: -140px 50% auto; width: 900px; height: 620px;
  transform: translateX(50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 95, 162, 0.2) 0%, rgba(160, 107, 255, 0.11) 45%, transparent 72%);
  filter: blur(18px); pointer-events: none; z-index: 0;
}
.str__hero > * { position: relative; z-index: 1; }
.str__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;
}
.str__lede { max-width: 640px; margin: 0 auto; font-size: 17px; }
.str__lede b { color: var(--ink); font-weight: 700; }

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

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

/* ---------- the one rule ---------- */
.str__rule { margin: 30px 0 96px; }
.str__rulecard {
  display: flex; gap: 24px; align-items: flex-start;
  border: 1px solid rgba(255, 95, 162, 0.32); border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 95, 162, 0.11), rgba(160, 107, 255, 0.07));
  padding: 32px 34px;
}
.str__ruleico { font-size: 40px; line-height: 1; flex-shrink: 0; }
.str__rulelabel {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink); font-weight: 700; margin: 0 0 8px;
}
.str__ruletitle {
  font-family: var(--font-display); font-size: clamp(23px, 3.2vw, 35px);
  text-transform: uppercase; line-height: 1.08; margin: 0 0 12px; letter-spacing: 0.01em;
}
.str__ruletitle span {
  background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.str__rulebody { color: var(--muted); font-size: 15px; margin: 0; max-width: 720px; }

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

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

.str__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);
}
.str__tier:hover { transform: translateY(-5px); background: rgba(247, 242, 238, 0.04); }

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

.str__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);
}
.str__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, #ffa14f, #ffd479); color: #221806;
  padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}

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

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

.str__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.str__perks li { display: flex; gap: 11px; align-items: flex-start; }
.str__pk { font-size: 15px; line-height: 1.4; flex-shrink: 0; width: 20px; }
.str__perks b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.str__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 */
.str__perk--req b { color: #ffc07a; }

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

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

/* ---------- streamer code ---------- */
.str__code { margin: 0 0 100px; }
.str__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;
}
.str__codebody { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.str__codebody b { color: var(--ink); font-weight: 600; }
.str__codebody--dim { font-size: 14px; margin-bottom: 0; }

.str__codesplit { display: flex; align-items: stretch; gap: 12px; }
.str__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);
}
.str__codeside--you { border-color: rgba(93, 217, 148, 0.35); background: rgba(93, 217, 148, 0.07); }
.str__codeicon { font-size: 27px; display: block; margin-bottom: 9px; }
.str__codeside b { display: block; font-size: 15px; font-weight: 700; }
.str__codeside p { font-size: 12.5px; color: var(--muted); margin: 3px 0 12px; }
.str__codepct {
  display: inline-block; font-family: var(--font-display); font-size: 19px;
  color: var(--pink); letter-spacing: 0.02em;
}
.str__codepct--you { color: #7ee2a8; }
.str__codearrow { align-self: center; font-size: 20px; color: var(--muted); }
.str__codefoot { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ---------- closing CTA ---------- */
.str__cta {
  text-align: center; border-radius: 26px; padding: 66px 30px;
  background: linear-gradient(135deg, rgba(255, 161, 79, 0.12), rgba(255, 95, 162, 0.12) 45%, rgba(160, 107, 255, 0.12));
  border: 1px solid rgba(255, 95, 162, 0.24);
}
.str__ctatitle {
  font-family: var(--font-display); font-size: clamp(30px, 5vw, 54px);
  text-transform: uppercase; line-height: 1.02; margin: 0 0 14px;
}
.str__ctasub { color: var(--muted); max-width: 540px; margin: 0 auto 30px; font-size: 15.5px; }
.str__ctabtn { min-width: 290px; }
.str__ctafine { font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.str__ctafine a { color: var(--pink); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .str__grid { grid-template-columns: repeat(2, 1fr); }
  .str__codeinner { grid-template-columns: 1fr; gap: 34px; padding: 38px 30px; }
  .str__h2--left { text-align: center; }
}
@media (max-width: 760px) {
  .str { padding: 0 18px 84px; }
  .str__hero { padding: 84px 0 48px; }
  .str__stats { grid-template-columns: repeat(2, 1fr); }
  .str__steps { grid-template-columns: 1fr; }
  .str__rulecard { flex-direction: column; gap: 16px; padding: 26px 22px; }
  .str__herocta .btn { width: 100%; }
  .str__ctabtn { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .str__grid { grid-template-columns: 1fr; }
  .str__codesplit { flex-direction: column; }
  .str__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 */
.str__ruletext { flex: 1; min-width: 0; }
.str__codeleft, .str__codeviz { min-width: 0; }

/* ---------- /streamers access gate + preview ribbon ---------- */
.strgate {
  min-height: 68vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 80px;
}
.strgate__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;
}
.strgate__ico { font-size: 40px; line-height: 1; display: block; margin-bottom: 18px; opacity: 0.85; }
.strgate__label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink); font-weight: 700; margin: 0 0 10px;
}
.strgate__title {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px);
  text-transform: uppercase; line-height: 1.05; margin: 0 0 12px;
}
.strgate__body { color: var(--muted); font-size: 15px; margin: 0; }
.strgate__actions { margin-top: 24px; display: flex; justify-content: center; }
.strgate__actions:empty { margin-top: 0; }

/* the banner the owner sees while the page is still private */
.strprev {
  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;
}
.strprev b { color: #ffd479; font-weight: 700; white-space: nowrap; }
.strprev span { color: var(--muted); }

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

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

/* ---- Discord channel picker ---- */
.dsc__group { margin-top: 14px; }
.dsc__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;
}
.dsc__groupname { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dsc__groupcount { font-size: 11.5px; color: var(--muted); margin-right: auto; }
.dsc__grouphead .staff__minibtn { font-size: 11px; padding: 3px 9px; }

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

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

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

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

/* filter-aware bulk bar + forum badge */
.dsc__bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 10px 2px 4px; margin-top: 10px;
}
.dsc__bulklabel { font-size: 11.5px; color: var(--muted); margin-right: auto; }
.dsc__bulk .staff__minibtn { font-size: 11px; padding: 4px 10px; }
.dsc__kind {
  font: 500 10.5px inherit; white-space: nowrap;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(160, 107, 255, 0.35); background: rgba(160, 107, 255, 0.1); color: #b98cff;
}

/* ============================================================
   GAME LOGS — structured-data desks (2026-08 rebuild)
   Economy supply/flow charts · Jobs desk · Anticheat queue ·
   dossier ledger / sessions / movement replay
   ============================================================ */
.glx__vtabn {
  font: 700 9.5px var(--gx-mono); margin-left: 6px; padding: 1px 6px;
  border-radius: 999px; background: rgba(255, 107, 122, 0.18);
  border: 1px solid rgba(255, 107, 122, 0.45); color: #ff8d9b; vertical-align: 1px;
}
.glx__cardsub { font: 400 10px var(--gx-mono); letter-spacing: 0.04em; opacity: 0.65; text-transform: none; margin-left: 8px; }
.glx__chart--tall { min-height: 200px; }
.glx__chart--tall .glx__barsvg { height: 240px; }
.glx__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.glx__lgchip { display: inline-flex; align-items: center; gap: 7px; font: 500 11px var(--gx-mono); }
.glx__lgchip--dim { color: var(--gx-dim); }
.glx__lgdot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.glx__flowaxis { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.glx__barf { fill: #3ddc97; opacity: 0.85; }
.glx__bars { fill: #ff6b7a; opacity: 0.8; }
.glx__ecrow--flat { cursor: default; }
.glx__ecrow--flat:hover { background: transparent; }
.glx__ecfill--sink { background: #ff6b7a; }
.glx__ecval--warn { color: #ff8d9b; }
.glx__linkbtn {
  background: none; border: none; padding: 0; color: var(--gx-accent);
  font: inherit; cursor: pointer; text-decoration: underline dotted;
}
.glx__more { display: block; margin: 10px auto 0; }

/* jobs desk */
.glx__jobhead { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; }
.glx__jobhead:first-child { margin-top: 0; }
.glx__jobname { font-weight: 700; font-size: 13.5px; text-transform: capitalize; }
.glx__jobn { font: 600 10.5px var(--gx-mono); color: var(--gx-dim); }
.glx__jobrow {
  display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: transparent; border: none; border-radius: 8px; padding: 6px 8px;
  color: inherit; font: inherit; cursor: pointer;
}
.glx__jobrow:hover { background: rgba(255, 255, 255, 0.04); }
.glx__jobwho { font-weight: 600; font-size: 13px; }
.glx__jobsub { font: 400 11px var(--gx-mono); color: var(--gx-dim); text-align: right; }

/* anticheat queue */
.glx__acfeed { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.glx__ac {
  background: var(--gx-panel); border: 1px solid var(--gx-line); border-left-width: 3px;
  border-radius: 12px; padding: 13px 16px; display: flex; flex-direction: column; gap: 9px;
}
.glx__ac--critical { border-left-color: #ff4d63; }
.glx__ac--suspect { border-left-color: #f2c14e; }
.glx__ac--info { border-left-color: #7aa2ff; }
.glx__achead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.glx__acsev { font: 700 10px var(--gx-mono); letter-spacing: 0.14em; padding: 3px 9px; border-radius: 999px; }
.glx__ac--critical .glx__acsev { background: rgba(255, 77, 99, 0.15); color: #ff8d9b; border: 1px solid rgba(255, 77, 99, 0.4); }
.glx__ac--suspect .glx__acsev { background: rgba(242, 193, 78, 0.13); color: #f2c14e; border: 1px solid rgba(242, 193, 78, 0.4); }
.glx__ac--info .glx__acsev { background: rgba(122, 162, 255, 0.13); color: #9db8ff; border: 1px solid rgba(122, 162, 255, 0.4); }
.glx__acdet { font: 600 12.5px var(--gx-mono); text-transform: capitalize; }
.glx__acwhen { margin-left: auto; font: 400 11px var(--gx-mono); color: var(--gx-dim); }
.glx__acwho { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.glx__aclink {
  background: none; border: none; padding: 0; color: var(--gx-accent);
  font: 600 12.5px var(--gx-mono); cursor: pointer;
}
.glx__aclink:hover { text-decoration: underline; }
.glx__acid { font: 400 11px var(--gx-mono); color: var(--gx-dim); }
.glx__acgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.glx__accell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.glx__acshot { display: block; max-width: 460px; border-radius: 9px; overflow: hidden; border: 1px solid var(--gx-line); }
.glx__acshot img { display: block; width: 100%; height: auto; }
.glx__acfoot { display: flex; align-items: center; gap: 12px; }
.glx__acbtn {
  font: 600 11.5px var(--gx-mono); letter-spacing: 0.06em; cursor: pointer;
  padding: 7px 14px; border-radius: 9px; color: #3ddc97;
  background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.4);
}
.glx__acbtn:hover { background: rgba(61, 220, 151, 0.2); }
.glx__acbtn:disabled { opacity: 0.5; cursor: default; }
.glx__acdone { font: 500 11px var(--gx-mono); color: #3ddc97; }
.glx__acdone--dim { color: var(--gx-dim); }
.glx__evrow { display: flex; flex-direction: column; gap: 5px; padding: 9px 6px; border-bottom: 1px solid var(--gx-line); }
.glx__evrow:last-child { border-bottom: none; }
.glx__evnames { display: flex; flex-wrap: wrap; gap: 5px 14px; }

/* dossier: money timeline */
.glx__ldg {
  display: grid; grid-template-columns: 128px 110px 1fr 110px 110px;
  gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--gx-line);
  font: 400 12px var(--gx-mono);
}
.glx__ldg:last-child { border-bottom: none; }
.glx__ldgtime { color: var(--gx-dim); font-size: 11px; }
.glx__ldgtag {
  justify-self: start; text-transform: capitalize; font: 600 10.5px var(--gx-mono);
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--gx-line); color: var(--gx-dim);
}
.glx__ldgtag--faucet { border-color: rgba(61, 220, 151, 0.4); color: #3ddc97; }
.glx__ldgtag--sink { border-color: rgba(255, 107, 122, 0.4); color: #ff8d9b; }
.glx__ldgwhat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glx__ldgdelta { text-align: right; font-weight: 700; }
.glx__ldgdelta.is-pos { color: #3ddc97; }
.glx__ldgdelta.is-neg { color: #ff8d9b; }
.glx__ldgbal { text-align: right; color: var(--gx-dim); font-size: 11px; }
@media (max-width: 760px) {
  .glx__ldg { grid-template-columns: 1fr 90px; }
  .glx__ldgtime, .glx__ldgtag, .glx__ldgbal { display: none; }
}

/* dossier: sessions + movement */
.glx__sess { display: flex; flex-direction: column; gap: 4px; padding: 8px 4px; border-bottom: 1px solid var(--gx-line); }
.glx__sess:last-child { border-bottom: none; }
.glx__mapwrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--gx-line); }
.glx__map { display: block; width: 100%; height: auto; background: #070b12; }

/* ============================================================
   CITY GUIDELINES — public page (/guidelines) + staff editor
   ============================================================ */
.gd { max-width: 1220px; }
.gd__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.gd__chip {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
  color: var(--pink); border: 1px solid rgba(255, 95, 162, 0.4); background: rgba(255, 95, 162, 0.08);
}
.gd__updated { font-size: 12px; color: var(--muted); margin-top: 16px; }

.gd__wrap { grid-template-columns: 290px minmax(0, 1fr); }
.gd__side { display: flex; flex-direction: column; }

/* search */
.gd__searchwrap { position: relative; display: block; margin-bottom: 16px; }
.gd__searchico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: 0.6; }
.gd__search { width: 100%; padding-left: 36px; font-size: 13.5px; }
.gd__matches { font-size: 12px; color: var(--pink); margin: -8px 0 12px 4px; }

/* chapter nav */
.gd__nav { display: flex; flex-direction: column; gap: 2px; max-height: 66vh; overflow-y: auto; padding-right: 4px; }
.gd__navitem { display: flex; flex-direction: column; }
.gd__navitem.is-muted { opacity: 0.35; }
.gd__chapter { text-decoration: none; }
.gd__navitem.is-on .gd__chapter {
  color: var(--ink); border-left-color: var(--pink);
  background: linear-gradient(90deg, rgba(255, 95, 162, 0.12), transparent);
}
.gd__navnum {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px; font-weight: 700; color: var(--pink); opacity: 0.75;
}
.gd__subnav { display: none; flex-direction: column; padding: 2px 0 8px 30px; }
.gd__navitem.is-on .gd__subnav { display: flex; }
.gd__sublink {
  font-size: 12px; line-height: 1.4; color: var(--muted); text-decoration: none;
  padding: 4px 8px; border-left: 1px solid rgba(247, 242, 238, 0.14); border-radius: 0 6px 6px 0;
}
.gd__sublink:hover { color: var(--ink); background: rgba(255, 255, 255, 0.035); border-left-color: var(--pink); }

/* the rulebook */
.gd__doc { display: flex; flex-direction: column; gap: 26px; }
.gd__section {
  border: 1px solid rgba(247, 242, 238, 0.1); border-radius: 18px;
  background: rgba(20, 16, 26, 0.55); padding: 30px clamp(20px, 3.6vw, 42px) 38px;
  scroll-margin-top: 92px;
}
.gd__sechead {
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid rgba(255, 95, 162, 0.28); padding-bottom: 18px; margin-bottom: 8px;
}
.gd__num {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 95, 162, 0.55);
}
.gd__sectitle {
  font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.12; letter-spacing: 0.01em; color: var(--ink);
}
.gd__body h3 { scroll-margin-top: 92px; }
.gd__body > p:first-child { font-size: 15.5px; color: rgba(247, 242, 238, 0.8); }

/* search states */
.gd__body .is-dim { opacity: 0.28; }
.gd__body .is-hit {
  opacity: 1; border-left: 2px solid var(--pink); padding-left: 10px; margin-left: -12px;
  background: linear-gradient(90deg, rgba(255, 95, 162, 0.08), transparent 70%);
  border-radius: 0 6px 6px 0;
}

@media (max-width: 900px) {
  .gd__wrap { grid-template-columns: 1fr; }
  .gd__nav { flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: 6px; }
  .gd__navitem { min-width: 190px; }
  .gd__subnav { display: none !important; }
  .gd__chapter { border-left: none; border-bottom: 2px solid transparent; border-radius: 8px; }
  .gd__navitem.is-on .gd__chapter { border-left: none; border-bottom-color: var(--pink); }
}

/* ---- staff panel editor (/admin → City Rules) ---- */
.rle__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rle__bar .staff__hint { flex: 1; min-width: 220px; margin: 0; }
.rle__fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px 90px; gap: 12px; }
@media (max-width: 700px) { .rle__fields { grid-template-columns: 1fr; } }

/* ============================================================
   GAME LOGS — rulebreak detectors (⚖ view) + dossier NLR banner
   ============================================================ */
.glx__rbctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.glx__rbq { min-width: 220px; }
.glx__rblaw {
  font: 600 10.5px "JetBrains Mono", monospace; letter-spacing: 0.06em;
  color: #38d6c8; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(56, 214, 200, 0.35); background: rgba(56, 214, 200, 0.08);
  padding: 3px 9px; border-radius: 999px;
}
.glx__rblaw:hover { background: rgba(56, 214, 200, 0.16); border-color: rgba(56, 214, 200, 0.6); }
.glx__rbwhat {
  font-size: 13.5px; line-height: 1.6; color: rgba(235, 240, 248, 0.92);
  margin: 2px 0 4px;
}
.glx__nlr {
  font: 600 12px "JetBrains Mono", monospace; letter-spacing: 0.04em;
  color: #ff8d9b; border: 1px solid rgba(255, 77, 99, 0.4);
  background: rgba(255, 77, 99, 0.09); border-radius: 10px;
  padding: 10px 14px; margin: 10px 0 2px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.glx__idpill--rb { border-color: rgba(56, 214, 200, 0.4); }
.glx__idpill--rb:hover { background: rgba(56, 214, 200, 0.12); }

/* inline killer name on mixed-feed kill lines — clickable, reads hostile */
.glx__ckillname { color: #ff8d9b; font-weight: 600; cursor: pointer; }
.glx__ckillname:hover { text-decoration: underline; text-underline-offset: 3px; }
