:root {
  --g: #00ff66;
  --g-dim: #00ff6690;
  --ink: #000;
  --panel: #0a0d0a;
  --warn: #ff3344;
  --font: "Courier New", Courier, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--ink);
  color: var(--g);
  font-family: var(--font);
  min-height: 100%;
}
body {
  text-shadow: 0 0 2px #00ff6622;
}
a { color: var(--g); }
button, input, select, textarea { font-family: inherit; }
.scanlines::after {
  content: "";
  pointer-events: none;
  position: fixed; inset: 0;
  background:
    repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.22) 2px 3px),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.45) 100%);
  mix-blend-mode: multiply;
  z-index: 80;
  animation: crt-bleed 4.8s steps(2, end) infinite;
}
html[data-mode="feed"] .world-only { display: none !important; }
html[data-mode="world"] .feed-only { display: none !important; }
html[data-mode="feed"] [data-chrf-geo] { display: none !important; }
html[data-mode="feed"] .scanlines::after { opacity: .18; animation: none; }
html[data-mode="feed"] body { text-shadow: none; }

.chrome-bar {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #00ff6644;
  background: #050805ee;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 0 24px #00ff6622;
}
.chrome-mark {
  font-weight: 700; letter-spacing: 2px; text-decoration: none;
  text-shadow: 0 0 10px var(--g), 0 0 24px var(--g);
}
.chrome-nav { display: flex; gap: 14px; font-size: .85rem; }
.chrome-nav a { text-decoration: none; opacity: .85; }
.chrome-nav a:hover { opacity: 1; }
.chrome-session { display: flex; gap: 8px; align-items: center; font-size: .8rem; }
.session-chip {
  border: 1px solid var(--g);
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ghost-btn {
  background: transparent; color: var(--g); border: 1px solid var(--g);
  padding: 6px 10px; cursor: pointer; text-decoration: none; font-size: .8rem;
}
.ghost-btn:hover { background: var(--g); color: #000; }

.mode-switch { display: flex; align-items: center; gap: 8px; border: 1px solid var(--g); padding: 4px; }
.mode-switch button {
  background: transparent; color: var(--g); border: 0; cursor: pointer;
  padding: 6px 12px; letter-spacing: 1px; font-weight: 700;
}
.mode-switch button[aria-pressed="true"] { background: var(--g); color: #000; }
.mode-switch__rule { width: 1px; height: 18px; background: var(--g); opacity: .5; }
.mode-switch__hint { margin: 0; font-size: .68rem; opacity: .7; letter-spacing: .4px; }

.rad-hud {
  position: fixed; inset: 0; z-index: 90;
  display: none; background: #000;
}
.rad-hud.is-open { display: block; }
.rad-shell { position: relative; height: 100%; }
.rad-atmosphere {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.35) contrast(1.2) hue-rotate(8deg);
  opacity: .55;
}
.rad-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,255,102,.05) 2px 3px);
  animation: scan 7s linear infinite;
}
@keyframes scan { to { background-position: 0 80px; } }
.rad-close {
  position: absolute; top: 18px; right: 22px; z-index: 5;
  width: 36px; height: 36px; background: var(--warn); color: #fff;
  border: 2px solid #fff; cursor: pointer; font-size: 1.1rem;
}
.rad-world { position: relative; z-index: 2; height: calc(100% - 78px); padding: 10px 16px 18px; }
.rad-term {
  white-space: pre-wrap; font-size: .82rem; line-height: 1.45;
  min-height: 8rem; text-shadow: 0 0 6px var(--g);
}
.rad-pre { margin: 0 0 12px; white-space: pre-wrap; font-size: .78rem; }
.rad-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.rad-card {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center;
  background: transparent; color: var(--g); border: 1px solid #00ff6655;
  text-align: left; padding: 8px; cursor: pointer;
}
.rad-card:hover, .rad-card:focus { background: #00ff6618; border-color: var(--g); }
.rad-card em { font-style: normal; opacity: .6; font-size: .75rem; }
.rad-lineage {
  margin-top: 16px; padding: 12px; border: 1px solid #00ff66;
  background: #001408; box-shadow: inset 0 0 20px #00ff6611;
}
.rad-lineage h4 { margin: 0 0 6px; letter-spacing: 1px; font-size: .85rem; }
.rad-lineage ul { margin: 8px 0 0; padding-left: 18px; }
.rad-lineage li { margin-bottom: 8px; }
.rad-lineage small, .rad-lineage code { opacity: .7; }
.rad-file {
  border: 1px dashed #00ff6655;
  padding: 10px 12px;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rad-file label { font-size: .8rem; }
.rad-file input[type="text"], .rad-file input:not([type]), .rad-file textarea {
  width: 100%; background: #000; color: var(--g); border: 1px solid #00ff66;
  padding: 8px; font: inherit;
}
.rad-link { margin-right: 12px; }
.rad-link-btn {
  background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline;
}
.rad-thread {
  max-height: 38vh; overflow: auto; margin: 8px 0 0;
  border: 1px solid #00ff6644; padding: 8px;
}
.rad-note {
  margin: 0 0 10px; display: flex; flex-direction: column; gap: 2px;
  border-left: 2px solid #00ff6644; padding-left: 8px;
}
.rad-note.is-me { border-left-color: var(--g); text-align: right; border-left: 0; border-right: 2px solid var(--g); padding-left: 0; padding-right: 8px; }
.rad-note small { opacity: .55; font-size: .7rem; }
.rad-index__cols--3 { grid-template-columns: 1fr 1fr 1fr; }
.rad-folio { border: 1px solid #00ff6655; padding: 12px; background: #001208cc; }
.rad-folio--master {
  border-color: var(--g);
  box-shadow: 0 0 28px #00ff6644, inset 0 0 24px #00ff6614;
}
.rad-card--master { border-color: var(--g); box-shadow: 0 0 12px #00ff6644; }
.rad-back {
  background: transparent; color: var(--g); border: 1px solid var(--g);
  padding: 6px 10px; cursor: pointer; margin-bottom: 10px; font-size: .78rem;
}
.rad-back:hover { background: var(--g); color: #000; }

.rad-feed { position: relative; z-index: 2; padding: 24px; max-width: 1100px; margin: 0 auto; }
.rad-index header h2 { margin: 0; letter-spacing: 2px; }
.rad-index__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.filing-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 8px; border-bottom: 1px solid #00ff6622; text-decoration: none;
  width: 100%; background: transparent; color: inherit; border-left: 0; border-right: 0; border-top: 0;
  font: inherit; cursor: pointer; text-align: left;
}
.filing-row:hover { background: #00ff660d; }
.filing-row .pull {
  min-width: 36px; text-align: center; border: 1px solid #00ff6644; padding: 6px 0;
}
.filing-row small { display: block; opacity: .65; }

@media (max-width: 860px) {
  .rad-split, .rad-index__cols, .rad-index__cols--3 { grid-template-columns: 1fr; }
  .rad-left { border-right: 0; border-bottom: 1px solid var(--g); min-height: 40vh; }
}

/* DOS city-hall MMO + green cyberpunk stacked on the original vibe. */
.chrome-where {
  font-size: .68rem;
  letter-spacing: .6px;
  opacity: .7;
}
.chrome-ver {
  font-size: .62rem;
  letter-spacing: 1px;
  opacity: .55;
  margin-left: auto;
}
.geo-layer {
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.geo-map { pointer-events: auto; }
.geo-street { pointer-events: none; }
.geo-street iframe, .geo-map iframe { width: 100%; height: 100%; border: 0; pointer-events: inherit; }
.geo-street, .geo-map {
  position: absolute; overflow: hidden;
  border: 2px solid var(--g);
  box-shadow: 0 0 18px #00ff6655, inset 0 0 20px #00ff6611;
  filter: grayscale(1) sepia(1) hue-rotate(80deg) saturate(8) contrast(1.35) brightness(.55);
  image-rendering: pixelated;
}
.geo-layer[data-geo-mode="teaser"] .geo-street { display: none; }
.geo-layer[data-geo-mode="teaser"] .geo-map {
  inset: 0; width: 100%; height: 100%; opacity: .16; border: 0; box-shadow: none;
}
.geo-claim {
  position: absolute; left: 10px; bottom: 8px; z-index: 3;
  margin: 0; font-size: .68rem; letter-spacing: .4px;
  background: #000; border: 1px solid var(--g); padding: 4px 8px;
  max-width: calc(100% - 300px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.geo-rain, .geo-fiber, .geo-crt, .geo-vignette {
  position: absolute; inset: 0; pointer-events: none;
}
.geo-rain {
  background: repeating-linear-gradient(
    185deg,
    transparent 0 11px,
    rgba(0,255,102,.18) 12px,
    transparent 13px 22px
  );
  animation: dos-rain .55s linear infinite;
  mix-blend-mode: screen; opacity: .35;
}
.geo-fiber {
  background:
    repeating-linear-gradient(90deg, transparent 0 40px, #00ff6610 40px 41px),
    repeating-linear-gradient(0deg, transparent 0 28px, #00ff660c 28px 29px);
}
.geo-crt {
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.22) 2px 3px);
  animation: crt-bleed 3.2s steps(2, end) infinite;
}
.geo-vignette {
  box-shadow: inset 0 0 120px #000, inset 0 0 40px #003311;
}
@keyframes dos-rain { to { background-position: 0 22px; } }
@keyframes crt-bleed {
  0%, 97%, 100% { opacity: 1; }
  98% { opacity: .7; }
}
html[data-mode="feed"] .geo-layer {
  opacity: .12; filter: saturate(.5);
}
html[data-mode="feed"] .geo-street,
html[data-mode="feed"] .geo-rain { display: none; }
.page-wrapper, .lobby-wrap, .hall, .hole, .stage, .container { position: relative; z-index: 1; }

.exec-plaque--shadow { opacity: .82; background: #050805; }
.exec-plaque--public { box-shadow: 0 0 18px #00ff6622; }

.uc-tape {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    #111 0 10px,
    #e8c200 10px 20px
  );
  box-shadow: 0 0 12px #e8c20066;
}
.uc-stamp {
  display: inline-block;
  border: 2px solid #e8c200;
  color: #e8c200;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: .68rem;
  padding: 3px 8px;
  transform: rotate(-2deg);
  text-shadow: 0 0 8px #e8c20088;
}
.uc-note {
  border: 1px dashed #e8c20088;
  color: #e8d280;
  padding: 8px 10px;
  font-size: .8rem;
  margin: 8px 0 12px;
  background: #120e00cc;
}
.map-uc {
  box-shadow: inset 0 0 80px #1a140044, 0 0 24px #e8c20033;
}
.map-uc .campus-art { filter: saturate(.85) contrast(1.06) brightness(.88); }
.map-uc .campus-art::after {
  background:
    linear-gradient(180deg, rgba(20,16,0,.12), rgba(0,0,0,.28)),
    repeating-linear-gradient(transparent 0 3px, rgba(232,194,0,.03) 3px 4px);
}
.uc-bay {
  border-style: dashed !important;
  border-color: #e8c200 !important;
  color: #e8c200 !important;
  background: #120e00cc !important;
}
.campus-stage {
  position: relative;
  height: min(72vh, 680px);
  border: 2px solid #00ff66;
  background: #030806;
  box-shadow: inset 0 0 80px #00ff6618, 0 0 24px #00ff6633;
  overflow: hidden;
  cursor: default;
}
.campus-art {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.95) contrast(1.06);
  pointer-events: none;
}
.campus-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,8,4,.22)),
    repeating-linear-gradient(transparent 0 3px, rgba(0,255,102,.03) 3px 4px);
}
.campus-floor {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(#00ff6606 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, #00ff6606 0 1px, transparent 1px 28px);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: .22;
}
.spot {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  color: #b8ffd0;
  border: 1px solid transparent;
  padding: 4px 6px;
  font-size: .68rem;
  letter-spacing: 1px;
  cursor: default;
  z-index: 2;
  box-shadow: none;
}
[data-campus][data-verb="use"] .spot {
  cursor: pointer;
}
[data-campus][data-verb="look"] .spot {
  cursor: url("../assets/cursor-look.png") 12 12, zoom-in;
}
.campus-stage .spot:hover,
.campus-stage .spot:focus-visible {
  background: transparent;
  color: #e8ffe8;
  border-color: #00ff6655;
  filter: drop-shadow(0 0 12px #00ff6688);
}
.spot.obj {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 0 0 2px;
  background: transparent;
}
.spot.obj img {
  width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px #000a) drop-shadow(0 0 8px #00ff6644);
}
.spot.obj .spot-photo {
  width: 100%;
  height: 72px;
  object-fit: cover;
  object-position: center;
  border: 0;
  background: transparent;
  border-radius: 2px;
}
.spot.obj span, .spot.obj strong, .spot.obj small {
  pointer-events: none;
}
.spot.obj > span:not([class]),
.spot.obj > strong,
.spot.obj > small {
  background: #021108cc;
  border: 1px solid #00ff6648;
  padding: 1px 7px;
  font-size: .6rem;
  letter-spacing: .7px;
  text-shadow: 0 0 8px #00ff66;
  box-shadow: 0 0 10px #00ff6622;
}
.obj-glyph {
  font-size: 1.4rem;
  text-shadow: 0 0 10px #00ff66;
  line-height: 1;
}
.spot.rad {
  padding: 0;
  width: min(132px, 24vw);
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
}
.spot.stoop-spot {
  background: transparent;
  color: #e8d2a0;
  border-color: transparent;
  font-weight: 700;
}
.kiosk-spot { width: min(132px, 24vw); }
.entry-spot { width: min(140px, 26vw); }
.shrub-spot {
  min-width: 52px;
  min-height: 44px;
  font-weight: 700;
}
.avatar {
  position: absolute;
  transform: translate(-50%, -80%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: left .65s linear, top .65s linear;
}
.avatar.is-walking .fig-torso,
.avatar.is-walking .fig-body { transform: translateY(2px); }
.avatar.is-using .chrf-fig {
  animation: chrf-squat .4s ease;
  transform-origin: center bottom;
}
@keyframes chrf-squat {
  0%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(.52) translateY(5px); }
}
.chrf-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  --head-c: hsl(var(--head-hue, var(--hue, 140)) 100% 52%);
  --torso-c: hsl(var(--torso-hue, var(--hue, 140)) 100% 52%);
  --legs-c: hsl(var(--legs-hue, var(--hue, 140)) 100% 52%);
  --fig: var(--torso-c);
  color: var(--fig);
  filter: drop-shadow(0 0 6px var(--fig));
}
.chrf-fig--nav { width: 18px; }
.chrf-fig--map { width: 22px; }
.chrf-fig--edit { width: 48px; margin: 0 auto 8px; }
.fig-head, .fig-torso, .fig-legs {
  display: block;
  position: relative;
  background: var(--fig);
  border: 0;
}
.fig-kit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.fig-head { background: var(--head-c); }
.fig-torso { background: var(--torso-c); }
.fig-head { width: 10px; height: 10px; }
.chrf-fig--edit .fig-head { width: 22px; height: 22px; }
.fig-head.is-circle { border-radius: 50%; }
.fig-head.is-square { border-radius: 0; }
.fig-head.is-diamond { transform: rotate(45deg) scale(.78); }
.fig-head.is-triangle {
  background: transparent;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid var(--head-c);
}
.chrf-fig--edit .fig-head.is-triangle {
  border-left-width: 12px;
  border-right-width: 12px;
  border-bottom-width: 22px;
}
.fig-torso { width: 10px; height: 14px; margin-top: 2px; }
.chrf-fig--edit .fig-torso { width: 22px; height: 28px; }
.fig-torso.is-block { border-radius: 0; }
.fig-torso.is-taper { clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.fig-torso.is-hex { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.fig-body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2px;
  min-height: 14px;
}
.chrf-fig--edit .fig-body { min-height: 28px; }
.fig-body .fig-torso { margin-top: 0; }
.fig-arm {
  position: absolute;
  top: 8%;
  width: 2px;
  height: 78%;
  background: var(--torso-c);
  border-radius: 1px;
  pointer-events: none;
  z-index: 1;
  transform-origin: top center;
}
.fig-arm--l { left: calc(50% - 9px); transform: rotate(18deg); }
.fig-arm--r { right: calc(50% - 9px); transform: rotate(-18deg); }
.chrf-fig--edit .fig-arm { width: 3px; height: 80%; }
.chrf-fig--edit .fig-arm--l { left: calc(50% - 18px); }
.chrf-fig--edit .fig-arm--r { right: calc(50% - 18px); }
.chrf-fig--nav .fig-arm--l { left: calc(50% - 7px); }
.chrf-fig--nav .fig-arm--r { right: calc(50% - 7px); }
.fig-body.kit-stick .fig-arm {
  width: 2px;
  height: 82%;
  top: 4%;
}
.chrf-fig--edit .fig-body.kit-stick .fig-arm { width: 2px; }
.fig-body.kit-stick .fig-arm--l { left: calc(50% - 8px); transform: rotate(22deg); }
.fig-body.kit-stick .fig-arm--r { right: calc(50% - 8px); transform: rotate(-22deg); }
.chrf-fig--edit .fig-body.kit-stick .fig-arm--l { left: calc(50% - 14px); }
.chrf-fig--edit .fig-body.kit-stick .fig-arm--r { right: calc(50% - 14px); }
.avatar.is-walking .fig-arm--l { transform: rotate(28deg); }
.avatar.is-walking .fig-arm--r { transform: rotate(-8deg); }
.avatar.is-using .fig-arm--l { transform: rotate(42deg); }
.avatar.is-using .fig-arm--r { transform: rotate(-42deg); }
.fig-legs {
  width: 12px; height: 10px; margin-top: 1px;
  background: transparent;
  border-left: 2px solid var(--legs-c);
  border-right: 2px solid var(--legs-c);
}
.chrf-fig--edit .fig-legs { width: 26px; height: 18px; border-width: 3px; }
.fig-legs.is-sticks { background: transparent; }
.fig-legs.is-block {
  background: var(--legs-c);
  border: 0;
  width: 10px;
}
.chrf-fig--edit .fig-legs.is-block { width: 22px; }
.fig-legs.is-fork {
  border: 0;
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 70% 100%, 50% 40%, 30% 100%, 0 100%);
  background: var(--legs-c);
  width: 14px;
}
.chrf-fig--edit .fig-legs.is-fork { width: 28px; }

/* Default stick figure + per-part kits */
.fig-head.kit-stick:not(.is-triangle) {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--head-c);
}
.fig-head.kit-stick.is-circle { border-radius: 50%; }
.fig-torso.kit-stick {
  width: 2px;
  clip-path: none;
  background: var(--torso-c);
  border-radius: 0;
}
.chrf-fig--edit .fig-torso.kit-stick { width: 3px; }
.fig-legs.kit-stick {
  background: transparent;
  clip-path: none;
  border: 0;
  border-left: 2px solid var(--legs-c);
  border-right: 2px solid var(--legs-c);
}
.chrf-fig--edit .fig-legs.kit-stick { border-width: 0 3px; }

.chrf-fig[data-gender="female"] .fig-torso:not(.kit-stick) {
  clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
}
.chrf-fig[data-gender="male"] .fig-torso:not(.kit-stick) {
  clip-path: polygon(8% 0, 92% 0, 78% 100%, 22% 100%);
}
.chrf-fig[data-gender="nonbinary"] .fig-torso:not(.kit-stick) {
  clip-path: polygon(18% 0, 82% 0, 88% 100%, 12% 100%);
}
.chrf-fig[data-gender="female"] .fig-kit--gender::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 8px;
  margin-left: -7px;
  border-radius: 8px 8px 2px 2px;
  background: var(--head-c);
  opacity: .85;
}
.chrf-fig--edit[data-gender="female"] .fig-kit--gender::before { width: 28px; height: 14px; margin-left: -14px; }
.chrf-fig[data-gender="male"] .fig-kit--gender::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  width: 8px;
  height: 3px;
  margin-left: -4px;
  background: var(--head-c);
}
.chrf-fig--edit[data-gender="male"] .fig-kit--gender::before { width: 16px; height: 5px; margin-left: -8px; }

.chrf-fig[data-ancestry="elf"] .fig-kit--race::before,
.chrf-fig[data-ancestry="elf"] .fig-kit--race::after,
.chrf-fig[data-ancestry="half-elf"] .fig-kit--race::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}
.chrf-fig[data-ancestry="elf"] .fig-kit--race::before,
.chrf-fig[data-ancestry="half-elf"] .fig-kit--race::before {
  left: -2px;
  border-right: 6px solid var(--head-c);
}
.chrf-fig[data-ancestry="elf"] .fig-kit--race::after {
  right: -2px;
  border-left: 6px solid var(--head-c);
}
.chrf-fig[data-ancestry="dwarf"] .fig-kit--race::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 10px;
  height: 6px;
  margin-left: -5px;
  background: var(--head-c);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}
.chrf-fig--edit[data-ancestry="dwarf"] .fig-kit--race::before { top: 18px; width: 20px; height: 12px; margin-left: -10px; }
.chrf-fig[data-ancestry="gnome"] .fig-head { transform: scale(.82); }
.chrf-fig[data-ancestry="halfling"] .fig-legs { height: 7px; }
.chrf-fig--edit[data-ancestry="halfling"] .fig-legs { height: 12px; }

.fig-head:not(.kit-stick)::before,
.fig-torso:not(.kit-stick)::before,
.fig-legs:not(.kit-stick)::before {
  content: "";
  position: absolute;
  pointer-events: none;
}
.fig-head.kit-viking::before, .fig-head.kit-clan::before {
  left: -3px; top: -4px; width: calc(100% + 6px); height: 5px;
  background: var(--head-c);
  box-shadow: -4px 4px 0 -1px var(--head-c), 4px 4px 0 -1px var(--head-c);
}
.fig-torso.kit-viking::before, .fig-torso.kit-clan::before {
  inset: 0; box-shadow: inset 0 3px 0 #0006, 0 0 0 1px var(--torso-c);
}
.fig-legs.kit-viking::before, .fig-legs.kit-biker::before, .fig-legs.kit-pirate::before {
  left: 0; right: 0; bottom: 0; height: 3px; background: #0008;
}
.fig-head.kit-biker::before {
  left: 0; right: 0; top: -2px; height: 55%;
  background: #111; border-radius: 4px 4px 0 0;
}
.fig-torso.kit-biker::before {
  inset: 0; box-shadow: inset 2px 0 0 #000, inset -2px 0 0 #000;
}
.fig-head.kit-musician::before, .fig-head.kit-bard::before, .fig-head.kit-piper::before {
  left: -2px; right: -2px; top: -3px; height: 6px;
  background: var(--head-c); border-radius: 6px 6px 0 0;
}
.fig-torso.kit-musician::before, .fig-torso.kit-bard::before {
  left: 20%; right: 20%; top: 30%; height: 3px; background: #fff8;
}
.fig-head.kit-baker::before, .fig-head.kit-cook::before, .fig-head.kit-inn::before {
  left: -2px; right: -2px; top: -5px; height: 5px;
  background: #eee; border-radius: 2px;
}
.fig-torso.kit-baker::before, .fig-torso.kit-cook::before, .fig-torso.kit-nurse::before {
  left: 10%; right: 10%; top: 20%; bottom: 0; background: #fff4;
}
.fig-head.kit-farmer::before, .fig-head.kit-ranger::before, .fig-head.kit-rover::before, .fig-head.kit-scout::before {
  left: -4px; right: -4px; top: -3px; height: 4px; background: var(--head-c);
}
.fig-torso.kit-farmer::before, .fig-torso.kit-gardener::before, .fig-torso.kit-garden::before {
  inset: 8% 12% 0; box-shadow: inset 0 0 0 1px #0006;
}
.fig-head.kit-nurse::before {
  left: 20%; right: 20%; top: -4px; height: 4px; background: #fff;
}
.fig-head.kit-clerk::before, .fig-head.kit-envoy::before {
  left: 10%; right: 10%; top: 30%; height: 2px; background: #fff;
}
.fig-torso.kit-clerk::before {
  left: 45%; width: 10%; top: 0; height: 70%; background: #fff8;
}
.fig-head.kit-pirate::before, .fig-head.kit-night::before, .fig-head.kit-mask::before {
  left: 0; right: 0; top: 0; height: 40%; background: #111;
}
.fig-torso.kit-pirate::before, .fig-torso.kit-court::before, .fig-torso.kit-envoy::before {
  inset: 0; box-shadow: 3px 4px 0 -2px var(--torso-c);
}
.fig-head.kit-court::before, .fig-head.kit-star::before {
  left: 30%; right: 30%; top: -6px; height: 6px; background: #ffcc00;
}
.fig-head.kit-wild::before, .fig-head.kit-hedge::before {
  left: -3px; right: -3px; top: -2px; height: 5px;
  background: var(--head-c); clip-path: polygon(0 100%, 20% 0, 40% 100%, 60% 0, 80% 100%, 100% 0, 100% 100%);
}
.fig-torso.kit-weaver::before, .fig-torso.kit-dual::before {
  inset: 0; background: repeating-linear-gradient(90deg, transparent 0 2px, #0004 2px 3px);
}
.fig-head.kit-miner::before, .fig-head.kit-forge::before, .fig-head.kit-mason::before {
  left: 15%; right: 15%; top: -3px; height: 5px; background: #ffcc00;
}
.fig-torso.kit-miner::before, .fig-torso.kit-forge::before, .fig-torso.kit-runesmith::before {
  inset: 0; box-shadow: inset 0 -4px 0 #0005;
}
.fig-torso.kit-brew::before, .fig-torso.kit-chemist::before {
  left: 30%; right: 30%; top: 40%; height: 8px; background: #00e5ff66; border-radius: 2px;
}
.fig-head.kit-tinker::before, .fig-head.kit-clock::before, .fig-head.kit-spark::before {
  left: 25%; right: 25%; top: -4px; height: 4px; border: 1px solid var(--head-c);
}
.fig-torso.kit-tinker::before, .fig-torso.kit-clock::before, .fig-torso.kit-spark::before, .fig-torso.kit-illusion::before {
  inset: 20% 25%; border: 1px solid #fff6;
}
.fig-head.kit-illusion::before { left: 0; right: 0; top: 20%; height: 2px; background: #cc00ff; }
.fig-torso.kit-burgher::before { inset: 0; box-shadow: inset 0 4px 0 var(--torso-c); }
.fig-legs.kit-farmer::before, .fig-legs.kit-rover::before, .fig-legs.kit-ranger::before {
  left: 0; right: 0; bottom: 0; height: 2px; background: var(--legs-c); opacity: .5;
}
.fig-head.kit-carpenter::before, .fig-head.kit-smith::before {
  left: 12%; right: 12%; top: -3px; height: 4px; background: #c4a056;
}
.fig-torso.kit-carpenter::before {
  inset: 0; box-shadow: inset 0 0 0 1px #0005, inset 3px 0 0 #8a6a32;
}
.fig-torso.kit-smith::before {
  inset: 0; box-shadow: inset 0 -5px 0 #3338;
}
.fig-legs.kit-smith::before, .fig-legs.kit-guard::before {
  left: 0; right: 0; bottom: 0; height: 3px; background: #0007;
}
.fig-head.kit-tailor::before {
  left: -2px; right: -2px; top: -2px; height: 4px; background: var(--head-c); border-radius: 2px;
}
.fig-torso.kit-tailor::before {
  inset: 0; background: repeating-linear-gradient(90deg, transparent 0 2px, #0003 2px 3px);
}
.fig-head.kit-fisher::before {
  left: -3px; right: -3px; top: -4px; height: 5px; background: #1a4a6a; border-radius: 50% 50% 0 0;
}
.fig-torso.kit-fisher::before {
  left: 15%; right: 15%; top: 25%; height: 4px; background: #fff5;
}
.fig-legs.kit-fisher::before {
  left: 0; right: 0; bottom: 0; height: 2px; background: #1a4a6a88;
}
.fig-head.kit-merchant::before, .fig-head.kit-teacher::before {
  left: 15%; right: 15%; top: 28%; height: 2px; background: #fff;
}
.fig-torso.kit-merchant::before {
  inset: 0; box-shadow: inset 0 5px 0 var(--torso-c), 2px 3px 0 -1px #c4a056;
}
.fig-torso.kit-teacher::before {
  left: 42%; width: 16%; top: 10%; height: 55%; background: #fff7;
}
.fig-head.kit-guard::before {
  left: 10%; right: 10%; top: -4px; height: 5px; background: #888;
}
.fig-torso.kit-guard::before {
  inset: 0; box-shadow: inset 0 0 0 2px #0005, inset 0 4px 0 #fff3;
}
.fig-head.kit-courier::before {
  left: -2px; right: -2px; top: -3px; height: 5px; background: var(--head-c);
}
.fig-torso.kit-courier::before {
  right: -4px; top: 20%; width: 6px; height: 55%; background: var(--torso-c); box-shadow: -1px 0 0 #0004;
}
.fig-legs.kit-courier::before, .fig-legs.kit-carpenter::before {
  left: 0; right: 0; bottom: 0; height: 2px; background: var(--legs-c); opacity: .45;
}

.fig-name {
  font-style: normal;
  font-size: .62rem;
  margin-top: 3px;
  text-shadow: 0 0 6px var(--fig);
}
.sc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.sc-tabs button {
  background: transparent; color: var(--g); border: 1px solid var(--g);
  padding: 6px 8px; cursor: pointer; font-size: .72rem; letter-spacing: .4px;
}
.sc-tabs button[aria-selected="true"], .sc-row button.is-on, .sc-look.is-on, .sc-save:hover {
  background: var(--g); color: #000;
}
.sc-pane { min-height: 7em; }
.sc-look {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--g);
  border: 1px solid var(--g);
  padding: 8px;
  margin: 0 6px 8px 0;
  cursor: pointer;
  min-width: 5.5em;
}
.sc-look .chrf-fig { filter: none; }
.sc-look--tiny { min-width: 0; padding: 4px 6px; font-size: .7rem; }
.sc-mix { margin: 10px 0; }
.sc-mix__row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sc-hues { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sc-hues label { display: flex; align-items: center; gap: 8px; font-size: .75rem; }
.sc-hues input { flex: 1; }
.sc-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-row span { min-width: 3.5em; opacity: .75; }
.sc-row button, .sc-save {
  background: transparent; color: var(--g); border: 1px solid var(--g);
  padding: 6px 10px; cursor: pointer;
}
.sc-save { margin-top: 12px; font-weight: 700; }
.sc-opt { display: block; margin: 6px 0; cursor: pointer; }
.sc-wheel-wrap { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.sc-wheel {
  width: 88px; height: 88px; border-radius: 50%; padding: 0; cursor: crosshair;
  border: 2px solid var(--g);
  background: conic-gradient(#ff0040, #ffcc00, #00ff66, #00e5ff, #3355ff, #cc00ff, #ff0040);
}
.sc-face { width: 96px; height: 96px; object-fit: cover; display: block; margin-top: 8px; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) {
  .avatar.is-using .chrf-fig { animation: none; }
}
.campus-line {
  min-height: 2.2em;
  margin: 10px 0 8px;
  padding: 8px 10px;
  border: 1px solid #00ff6644;
  background: #050805cc;
}
.campus-verbs { display: flex; gap: 8px; }
.campus-verbs button {
  background: transparent; color: #00ff66; border: 1px solid #00ff66;
  padding: 8px 14px; cursor: pointer; font-weight: 700; letter-spacing: 1px;
}
.campus-verbs button[aria-pressed="true"], .campus-verbs button:hover {
  background: #00ff66; color: #000;
}

.pressable:active, .kiosk:active, .ghost-btn:active, .main-btn:active,
.handle-btn:active, .rolladew:active, .home-btn:active, .hole-btn:active,
.hall-btn:active, .stoop-btn:active {
  transform: translateY(2px);
  filter: brightness(.92);
}

@media (max-width: 700px) {
  .chrome-where, .mode-switch__hint { display: none; }
  .chrome-bar { gap: 8px; padding: 8px 10px; }
  .chrome-nav { gap: 10px; font-size: .75rem; }
  .geo-claim { max-width: 52%; font-size: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .geo-rain, .geo-crt, .scanlines::after { animation: none; }
}
