: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-cmd .rad-file input[type="text"], .rad-cmd .rad-file input:not([type]), .rad-cmd .rad-file textarea,
.rad-term .rad-file input[type="text"], .rad-term .rad-file input:not([type]), .rad-term .rad-file textarea {
  font-size: .95rem;
  line-height: 1.5;
}
.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;
  pointer-events: none;
  z-index: 2;
}
.fig-head-wrap {
  position: relative;
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.chrf-fig--nav .fig-head-wrap { width: 10px; min-height: 10px; }
.chrf-fig--map .fig-head-wrap { width: 10px; min-height: 10px; }
.chrf-fig--edit .fig-head-wrap { width: 22px; min-height: 22px; }
.fig-head-wrap > .fig-kit {
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
}
.fig-head-wrap:has(.is-triangle) { width: 12px; min-height: 11px; }
.chrf-fig--edit .fig-head-wrap:has(.is-triangle) { width: 24px; min-height: 22px; }
.fig-head-wrap:has(.is-diamond) { width: 12px; min-height: 12px; }
.chrf-fig--edit .fig-head-wrap:has(.is-diamond) { width: 26px; min-height: 26px; }
.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-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-head.is-diamond {
  transform: rotate(45deg) scale(.78);
  transform-origin: center center;
}
.chrf-fig--edit .fig-head.is-diamond { transform: rotate(45deg) scale(.82); }
.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; }
.chrf-fig .fig-body::after {
  display: none !important;
  content: none !important;
}
.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); }
.chrf-fig.is-slim .fig-body .fig-arm,
.chrf-fig.is-stick .fig-body .fig-arm {
  width: 2px;
  height: 82%;
  top: 4%;
}
.chrf-fig--edit.is-slim .fig-body .fig-arm,
.chrf-fig--edit.is-stick .fig-body .fig-arm { width: 2px; }
.chrf-fig.is-slim .fig-body .fig-arm--l,
.chrf-fig.is-stick .fig-body .fig-arm--l { left: calc(50% - 8px); transform: rotate(22deg); }
.chrf-fig.is-slim .fig-body .fig-arm--r,
.chrf-fig.is-stick .fig-body .fig-arm--r { right: calc(50% - 8px); transform: rotate(-22deg); }
.chrf-fig--edit.is-slim .fig-body .fig-arm--l,
.chrf-fig--edit.is-stick .fig-body .fig-arm--l { left: calc(50% - 14px); }
.chrf-fig--edit.is-slim .fig-body .fig-arm--r,
.chrf-fig--edit.is-stick .fig-body .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="dragon"] .fig-kit--race::before,
.chrf-fig[data-ancestry="dragon"] .fig-kit--race::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 0;
  height: 0;
  border-bottom: 10px solid var(--head-c);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.chrf-fig[data-ancestry="dragon"] .fig-kit--race::before { left: -7px; transform: rotate(-22deg); }
.chrf-fig[data-ancestry="dragon"] .fig-kit--race::after { right: -7px; transform: rotate(22deg); }
.chrf-fig--edit[data-ancestry="dragon"] .fig-kit--race::before,
.chrf-fig--edit[data-ancestry="dragon"] .fig-kit--race::after { border-bottom-width: 18px; border-left-width: 8px; border-right-width: 8px; }
.chrf-fig[data-ancestry="toki"] .fig-kit--race::before {
  content: "♥";
  position: absolute;
  left: 50%; top: -11px; margin-left: -5px;
  font-size: 11px; line-height: 1; color: #ff3fa4;
  text-shadow: 0 0 4px #ffd23f;
}
.chrf-fig[data-ancestry="toki"] .fig-kit--race::after {
  content: "";
  position: absolute;
  left: -5px; right: -5px; top: -3px; height: 4px;
  background: linear-gradient(90deg, #ff3fa4, #ffd23f 45%, #14e0c4);
  border-radius: 4px;
  opacity: .9;
}
.chrf-fig--edit[data-ancestry="toki"] .fig-kit--race::before {
  font-size: 16px; top: -18px; margin-left: -8px;
}
.chrf-fig--edit[data-ancestry="toki"] .fig-kit--race::after { top: -5px; height: 6px; }
.chrf-fig[data-ancestry="toki"] .fig-head {
  border-radius: 45% 45% 40% 40% / 55% 55% 35% 35%;
  box-shadow: inset 0 -2px 0 #fff5;
}
.chrf-fig[data-ancestry="cat"] .fig-kit--race::before,
.chrf-fig[data-ancestry="cat"] .fig-kit--race::after,
.chrf-fig[data-ancestry="fox"] .fig-kit--race::before,
.chrf-fig[data-ancestry="fox"] .fig-kit--race::after,
.chrf-fig[data-ancestry="bunny"] .fig-kit--race::before,
.chrf-fig[data-ancestry="bunny"] .fig-kit--race::after,
.chrf-fig[data-ancestry="bat"] .fig-kit--race::before,
.chrf-fig[data-ancestry="bat"] .fig-kit--race::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 7px;
  height: 11px;
  background: var(--head-c);
}
.chrf-fig[data-ancestry="cat"] .fig-kit--race::before,
.chrf-fig[data-ancestry="fox"] .fig-kit--race::before { left: -3px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chrf-fig[data-ancestry="cat"] .fig-kit--race::after,
.chrf-fig[data-ancestry="fox"] .fig-kit--race::after { right: -3px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chrf-fig--edit[data-ancestry="cat"] .fig-kit--race::before,
.chrf-fig--edit[data-ancestry="cat"] .fig-kit--race::after,
.chrf-fig--edit[data-ancestry="fox"] .fig-kit--race::before,
.chrf-fig--edit[data-ancestry="fox"] .fig-kit--race::after { width: 12px; height: 18px; top: -12px; }
.chrf-fig[data-ancestry="bunny"] .fig-kit--race::before,
.chrf-fig[data-ancestry="bunny"] .fig-kit--race::after {
  top: -14px; width: 5px; height: 16px; border-radius: 5px 5px 0 0;
}
.chrf-fig[data-ancestry="bunny"] .fig-kit--race::before { left: 0; }
.chrf-fig[data-ancestry="bunny"] .fig-kit--race::after { right: 0; }
.chrf-fig--edit[data-ancestry="bunny"] .fig-kit--race::before,
.chrf-fig--edit[data-ancestry="bunny"] .fig-kit--race::after { top: -22px; width: 8px; height: 26px; }
.chrf-fig[data-ancestry="bat"] .fig-kit--race::before,
.chrf-fig[data-ancestry="bat"] .fig-kit--race::after {
  top: 2px; width: 11px; height: 8px;
  clip-path: polygon(0 40%, 50% 0, 100% 40%, 80% 100%, 20% 100%);
}
.chrf-fig[data-ancestry="bat"] .fig-kit--race::before { left: -11px; }
.chrf-fig[data-ancestry="bat"] .fig-kit--race::after { right: -11px; }
.chrf-fig--edit[data-ancestry="bat"] .fig-kit--race::before,
.chrf-fig--edit[data-ancestry="bat"] .fig-kit--race::after { width: 18px; height: 14px; }
.chrf-fig[data-ancestry="cactus"] .fig-kit--race::before {
  content: "";
  position: absolute;
  left: 50%; top: -8px; width: 8px; height: 8px; margin-left: -4px;
  background: #2f9e44;
  box-shadow: -7px 5px 0 #2f9e44, 7px 5px 0 #2f9e44;
  border-radius: 40%;
}
.chrf-fig--edit[data-ancestry="cactus"] .fig-kit--race::before {
  top: -14px; width: 14px; height: 14px; margin-left: -7px;
  box-shadow: -12px 8px 0 #2f9e44, 12px 8px 0 #2f9e44;
}
.chrf-fig[data-ancestry="cactus"] .fig-head { background: #3cb464; }
.chrf-fig[data-ancestry="devil"] .fig-kit--race::before,
.chrf-fig[data-ancestry="devil"] .fig-kit--race::after {
  content: "";
  position: absolute;
  top: -9px; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 12px solid #c41230;
}
.chrf-fig[data-ancestry="devil"] .fig-kit--race::before { left: -4px; }
.chrf-fig[data-ancestry="devil"] .fig-kit--race::after { right: -4px; }
.chrf-fig--edit[data-ancestry="devil"] .fig-kit--race::before,
.chrf-fig--edit[data-ancestry="devil"] .fig-kit--race::after {
  top: -16px;
  border-left-width: 7px; border-right-width: 7px; border-bottom-width: 20px;
}
.chrf-fig[data-ancestry="robot"] .fig-head {
  border-radius: 2px !important;
  box-shadow: inset 0 0 0 2px #fff6, 0 0 0 1px #0004;
}
.chrf-fig[data-ancestry="sparkle"] .fig-kit--race::before {
  content: "✦";
  position: absolute;
  left: 50%; top: -11px; margin-left: -6px;
  font-size: 12px; line-height: 1; color: #ffd23f;
}
.chrf-fig--edit[data-ancestry="sparkle"] .fig-kit--race::before { font-size: 18px; top: -18px; margin-left: -9px; }
.chrf-fig[data-ancestry="panda"] .fig-kit--race::before,
.chrf-fig[data-ancestry="panda"] .fig-kit--race::after {
  content: "";
  position: absolute;
  top: 2px; width: 7px; height: 7px; border-radius: 50%; background: #111;
}
.chrf-fig[data-ancestry="panda"] .fig-kit--race::before { left: -1px; }
.chrf-fig[data-ancestry="panda"] .fig-kit--race::after { right: -1px; }
.chrf-fig--edit[data-ancestry="panda"] .fig-kit--race::before,
.chrf-fig--edit[data-ancestry="panda"] .fig-kit--race::after { width: 12px; height: 12px; }
.chrf-fig[data-ancestry="unicorn"] .fig-kit--race::before {
  content: "";
  position: absolute;
  left: 50%; top: -13px; margin-left: -3px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 14px solid #ffd23f;
}
.chrf-fig--edit[data-ancestry="unicorn"] .fig-kit--race::before {
  top: -22px; margin-left: -5px;
  border-left-width: 6px; border-right-width: 6px; border-bottom-width: 24px;
}
.chrf-fig[data-ancestry="slime"] .fig-head {
  border-radius: 50% 50% 40% 40% / 70% 70% 30% 30% !important;
}
.chrf-fig[data-ancestry="slime"] .fig-legs { opacity: .55; height: 6px; }
.chrf-fig--edit[data-ancestry="slime"] .fig-legs { height: 10px; }
.chrf-fig[data-ancestry="fox"] .fig-head { border-radius: 40% 40% 20% 20%; }

/* ---------- ancestry silhouette polish (head-only, no tails) ---------- */
.chrf-fig[data-ancestry="human"] .fig-head.is-circle { box-shadow: inset 0 -2px 0 #0002; }
.chrf-fig[data-ancestry="cat"] .fig-head { border-radius: 45% 45% 38% 38% / 50% 50% 42% 42%; }
.chrf-fig[data-ancestry="bunny"] .fig-head { border-radius: 50% 50% 44% 44% / 58% 58% 38% 38%; }
.chrf-fig[data-ancestry="panda"] .fig-head {
  background: linear-gradient(180deg, #f4f4f4 0 38%, var(--head-c) 38%);
  box-shadow: inset 0 0 0 1px #0003;
}
.chrf-fig[data-ancestry="dragon"] .fig-head {
  border-radius: 42% 42% 34% 34% / 52% 52% 40% 40%;
  box-shadow: inset 0 -3px 0 #0003;
}
.chrf-fig[data-ancestry="robot"] .fig-kit--race::after {
  content: "";
  position: absolute;
  left: 50%; top: -9px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--head-c);
  box-shadow: -4px 2px 0 var(--head-c), 4px 2px 0 var(--head-c);
}
.chrf-fig--edit[data-ancestry="robot"] .fig-kit--race::after {
  top: -14px; height: 10px; box-shadow: -6px 3px 0 var(--head-c), 6px 3px 0 var(--head-c);
}
.chrf-fig[data-ancestry="slime"] .fig-torso.is-block,
.chrf-fig[data-ancestry="slime"] .fig-torso.is-taper,
.chrf-fig[data-ancestry="slime"] .fig-torso.is-hex {
  border-radius: 40% 40% 30% 30% / 55% 55% 35% 35%;
  clip-path: none;
}
.chrf-fig[data-ancestry="unicorn"] .fig-head { border-radius: 46% 46% 40% 40% / 54% 54% 42% 42%; }
.chrf-fig[data-ancestry="sparkle"] .fig-head { box-shadow: 0 0 8px #ffd23f88, inset 0 0 0 1px #fff6; }
.chrf-fig[data-ancestry="devil"] .fig-head { border-radius: 44% 44% 36% 36% / 50% 50% 42% 42%; }
.chrf-fig[data-ancestry="bat"] .fig-kit--race::before,
.chrf-fig[data-ancestry="bat"] .fig-kit--race::after { top: 18%; }
.chrf-fig--edit[data-ancestry="bat"] .fig-kit--race::before,
.chrf-fig--edit[data-ancestry="bat"] .fig-kit--race::after { top: 22%; }

/* ---------- shape readouts: block / taper / hex / fork ---------- */
.chrf-fig .fig-torso.is-block:not(.kit-stick) { border-radius: 2px; }
.chrf-fig .fig-torso.is-hex:not(.kit-stick) { border-radius: 1px; }
.chrf-fig .fig-legs.is-fork { filter: drop-shadow(0 1px 0 #0003); }
.chrf-fig .fig-legs.is-block { border-radius: 0 0 3px 3px; }

.fig-head.kit-ninja::before {
  left: 0; right: 0; top: 32%; height: 30%; background: #111;
}
.fig-torso.kit-ninja::before {
  inset: 0; background: #1116; box-shadow: inset 0 3px 0 #fff3;
}
.fig-legs.kit-ninja::before {
  left: 0; right: 0; bottom: 0; height: 3px; background: #1118;
}
.fig-head.kit-gardener::before {
  left: -3px; right: -3px; top: -4px; height: 5px;
  background: #3cb464; clip-path: polygon(10% 100%, 30% 0, 50% 100%, 70% 0, 90% 100%);
}
.fig-head.kit-hoard::before, .fig-head.kit-ember::before {
  left: 20%; right: 20%; top: -4px; height: 5px; background: #ff5e3a; border-radius: 2px;
}
.fig-torso.kit-hoard::before, .fig-torso.kit-ember::before {
  inset: 20% 25%; background: #ffd23f88; border-radius: 2px;
}
.fig-head.kit-sky::before, .fig-head.kit-star::before, .fig-head.kit-parade::before {
  left: 30%; right: 30%; top: -6px; height: 6px; background: #ffd23f;
}
.fig-head.kit-idol::before, .fig-head.kit-candy::before {
  left: -2px; right: -2px; top: -4px; height: 6px;
  background: #ff3fa4; border-radius: 6px 6px 0 0;
}
.fig-torso.kit-idol::before, .fig-torso.kit-candy::before {
  inset: 8% 18% 0; box-shadow: inset 0 0 0 1px #fff6;
}
.fig-head.kit-thief::before, .fig-head.kit-goth::before, .fig-head.kit-alley::before {
  left: 0; right: 0; top: 0; height: 38%; background: #111;
}
.fig-head.kit-chrome::before, .fig-head.kit-glitch::before {
  left: 15%; right: 15%; top: 28%; height: 2px; background: #14e0c4;
}
.fig-torso.kit-chrome::before, .fig-torso.kit-glitch::before {
  inset: 18% 22%; border: 1px solid #fff8;
}
.fig-head.kit-raider::before, .fig-head.kit-shield::before, .fig-head.kit-longship::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-raider::before, .fig-torso.kit-shield::before {
  inset: 0; box-shadow: inset 0 3px 0 #0006, 0 0 0 1px var(--torso-c);
}
.fig-head.kit-skald::before, .fig-head.kit-drum::before {
  left: -2px; right: -2px; top: -3px; height: 6px;
  background: var(--head-c); border-radius: 6px 6px 0 0;
}
.fig-head.kit-hop::before, .fig-head.kit-lounge::before {
  left: 8%; right: 8%; top: -3px; height: 4px; background: #fff8; border-radius: 4px;
}
.fig-torso.kit-poke::before, .fig-torso.kit-bloom::before, .fig-torso.kit-desert::before {
  inset: 10% 18% 0; box-shadow: inset 0 0 0 1px #2f9e4466;
}
.fig-head.kit-shrine::before, .fig-head.kit-monk::before {
  left: 12%; right: 12%; top: -4px; height: 5px; background: #c41230;
}
.fig-torso.kit-bounce::before, .fig-torso.kit-puddle::before {
  inset: 15%; background: #14e0c466; border-radius: 40%;
}
.fig-head.kit-cave::before, .fig-head.kit-horn::before {
  left: 10%; right: 10%; top: -5px; height: 5px; background: #7c3aed;
}
.fig-torso.kit-snack::before {
  left: 25%; right: 25%; top: 40%; height: 8px; background: #ffd23f99; border-radius: 2px;
}
.fig-head.kit-magician::before {
  left: 10%; right: 10%; top: -5px; height: 6px; background: #111; border-radius: 2px 2px 0 0;
}
.fig-torso.kit-street::before, .fig-torso.kit-alley::before {
  inset: 0; background: repeating-linear-gradient(90deg, transparent 0 2px, #0003 2px 3px);
}
.fig-head.kit-sage::before { left: 20%; right: 20%; top: -4px; height: 4px; background: #ffd23f; }

.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-northern::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-northern::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-northern::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 {
  left: -5px; right: auto; top: 52%; width: 7px; height: 5px;
  background: var(--torso-c); border-radius: 2px;
  box-shadow: 0 1px 0 #0003;
}
.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-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 12px 14px 14px;
  border: 2px solid var(--g);
  background:
    radial-gradient(120% 90% at 12% -10%, hsl(var(--head-hue, 140) 90% 22%) 0%, transparent 46%),
    radial-gradient(90% 70% at 110% 120%, hsl(var(--torso-hue, 140) 80% 14%) 0%, #050805 58%);
  box-shadow: 0 0 28px hsl(var(--hue, 140) 100% 40% / .28), inset 0 0 40px #00ff6610;
}
.sc-card__foil {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, #fff8 47%, #00e5ff44 52%, transparent 68%);
  background-size: 220% 220%;
  animation: sc-foil 4.8s linear infinite;
  mix-blend-mode: screen;
  opacity: .55;
}
.sc-card__mark {
  position: relative;
  margin: 0 0 8px;
  letter-spacing: 3px;
  font-size: .68rem;
  font-weight: 700;
  opacity: .8;
}
.sc-card__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 168px;
  padding: 8px 4px 6px;
}
.sc-card__sprite {
  width: 118px;
  height: 152px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sc-card__sprite .chrf-fig--edit {
  margin: 0;
  transform: scale(2.4);
  transform-origin: center bottom;
  animation: sc-idle 2s ease-in-out infinite;
  filter: drop-shadow(0 0 16px var(--fig)) drop-shadow(0 10px 0 #0005);
}
.sc-card__face {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 var(--g);
  transform: rotate(-5deg);
  image-rendering: auto;
}
.sc-card__handle {
  position: relative;
  margin: 4px 0 2px;
  text-align: center;
  letter-spacing: 2px;
  font-size: 1.15rem;
  text-shadow: 0 0 12px var(--g);
}
.sc-card__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: .72rem;
  letter-spacing: .6px;
}
.sc-card__meta span {
  border: 1px solid #00ff6655;
  padding: 3px 8px;
}
@keyframes sc-foil {
  0% { transform: translateX(-18%) rotate(8deg); }
  100% { transform: translateX(18%) rotate(8deg); }
}
@keyframes sc-idle {
  0%, 100% { transform: scale(2.4) translateY(0); }
  50% { transform: scale(2.4) translateY(-7px); }
}
.sc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.sc-tabs button {
  background: transparent; color: var(--g); border: 2px solid var(--g);
  padding: 8px 10px; cursor: pointer; font-size: .72rem; letter-spacing: .4px;
  border-radius: 8px; min-height: 36px; font-weight: 700;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.sc-tabs button:hover { transform: translateY(-1px); box-shadow: 0 0 12px var(--g-dim, #00ff6655); }
.sc-tabs button:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.sc-tabs button[aria-selected="true"], .sc-row button.is-on, .sc-look.is-on, .sc-save:hover {
  background: var(--g); color: #000;
  box-shadow: 0 0 14px var(--g-dim, #00ff6655);
}
.sc-pane { min-height: 7em; max-height: min(52vh, 28rem); overflow: auto; padding: 2px 4px 8px; }
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.8em, 1fr));
  gap: 8px;
}
.sc-look {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  background: transparent;
  color: var(--g);
  border: 2px solid var(--g);
  padding: 10px 8px 8px;
  margin: 0;
  cursor: pointer;
  min-width: 5.5em;
  min-height: 88px;
  border-radius: 10px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.sc-look:hover { transform: translateY(-2px); border-color: var(--g); box-shadow: 0 4px 0 #0004, 0 0 16px var(--g-dim, #00ff6644); }
.sc-look:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.sc-look.is-on { transform: translateY(-1px); }
.sc-look .chrf-fig { filter: none; flex-shrink: 0; }
.sc-look span { font-size: .68rem; letter-spacing: .3px; text-align: center; line-height: 1.2; }
.sc-look--tiny { min-width: 0; min-height: 0; padding: 6px 10px; font-size: .72rem; border-radius: 999px; }
.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: 8px; align-items: center; margin: 8px 0; }
.sc-row span { min-width: 3.5em; opacity: .85; font-weight: 700; font-size: .78rem; }
.sc-row button, .sc-save {
  background: transparent; color: var(--g); border: 2px solid var(--g);
  padding: 8px 14px; cursor: pointer; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: capitalize;
  min-height: 36px; transition: transform .12s ease, background .12s ease;
}
.sc-row button:hover { transform: translateY(-1px); }
.sc-row button.is-on {
  background: var(--g);
  color: #000;
  box-shadow: 0 0 10px var(--g-dim, #00ff6644);
}
.sc-shape-hint {
  width: 100%;
  margin: 0 0 6px;
  font-size: .68rem;
  opacity: .72;
  letter-spacing: .3px;
}
.sc-save {
  margin-top: 12px; font-weight: 700; width: 100%; border-radius: 10px;
  min-height: 44px; font-size: .85rem; letter-spacing: 1px;
}
.sc-save:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.sc-kicker {
  margin: 0 0 10px; font-size: .78rem; line-height: 1.45; opacity: .88;
}
.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: auto; border-radius: 8px; }
.sc-face-upload {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 2px dashed var(--g); border-radius: 10px;
  cursor: pointer; font-size: .78rem; font-weight: 700; margin: 8px 0;
}
.sc-face-upload input { max-width: 100%; font-size: .72rem; }
@media (prefers-reduced-motion: reduce) {
  .avatar.is-using .chrf-fig { animation: none; }
  .sc-card__foil, .sc-card__sprite .chrf-fig--edit { 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; }
}
