/* Arcology Project splash — dark industrial / brand gold + charcoal */
:root {
  --bg: #0b0d12;
  --bg-deep: #07090f;
  --panel: #141820;
  --panel-2: #1a2029;
  --ink: #ebe6d8;
  --muted: #9aa3ad;
  --dim: #6d7680;
  --line: #2a323c;
  --line-soft: rgba(42, 50, 60, 0.55);
  --orange: #e85d04;
  --orange-2: #ff8a3d;
  --amber: #d4a84b;
  --cyan: #3ec6d8;
  --gold: #c9a85c;
  --gold-soft: #f2e6c4;
  --danger: #d45c5c;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 12px;
  --font: ui-sans-serif, "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --text-xs: 0.68rem;
  --text-sm: 0.8rem;
  --text-base: 0.95rem;
  --text-md: 1.05rem;
  --text-lg: clamp(1.5rem, 3.5vw, 2rem);
  --text-xl: clamp(2.05rem, 5.2vw, 3.55rem);
  --lh-tight: 1.15;
  --lh-body: 1.62;
  --space-2: 0.7rem;
  --space-3: 1.15rem;
  --space-4: 1.75rem;
  --space-5: 2.75rem;
  --space-6: 3.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--text-base);
  background:
    radial-gradient(65vw 42vh at 48% 22%, #151820 0%, transparent 58%),
    radial-gradient(48vw 38vh at 82% 92%, #0c161c 0%, transparent 52%),
    var(--bg);
  color: var(--ink);
  line-height: var(--lh-body);
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  /* iOS Safari: avoid 100vh jump under sticky chrome */
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.wrap {
  width: min(980px, calc(100% - 2.25rem));
  margin: 0 auto;
}

/* —— top nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 18, 0.88);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top, 0);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  padding: 0.95rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 650;
  line-height: var(--lh-tight);
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.3;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.35;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold); }
/* .nav .play-mini styles live with portal nav (cyan game Enter) */

/* —— hero —— */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) 0 4.5rem;
  min-height: calc(100dvh - 9rem);
  overflow: hidden;
}
/* Soft world atmosphere behind copy — heavily vignetted for contrast */
.hero-has-world::before {
  content: "";
  position: absolute;
  inset: -10% -5% 18% -5%;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(7, 9, 15, 0.55), rgba(7, 9, 15, 0.92) 72%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.72), rgba(7, 9, 15, 0.88) 55%, var(--bg)),
    url("/img/world-hero-bg.webp") center 35% / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}
.hero-copy .hero-lede,
.hero-copy .hero-meta {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.78);
}

/* Cyber window into the Lobby — thick frame CTA */
.hero-window {
  position: relative;
  z-index: 2;
  display: block;
  width: min(44rem, 100%);
  margin: 2.25rem auto 0;
  text-decoration: none;
  color: inherit;
}

.window-shell {
  position: relative;
  display: block;
  padding: 2.35rem 1.15rem 1.15rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #2a3340 0%, #161b22 28%, #0e1218 100%);
  border: 1px solid rgba(62, 198, 216, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 0 0 2px rgba(201, 168, 92, 0.12),
    0 20px 44px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(62, 198, 216, 0.1);
}
.window-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(62, 198, 216, 0.16);
  pointer-events: none;
}
.window-shell::after {
  /* subtle top rail bevel under the title plaque */
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0.55rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 198, 216, 0.45), transparent);
  pointer-events: none;
}

.window-title {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.62rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #041018;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), transparent 42%),
    linear-gradient(135deg, #2aa8bc, #1a6f8a 55%, #0f4a5c);
  border: 1px solid rgba(126, 232, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.32),
    0 0 8px rgba(62, 198, 216, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
/* Whole window is one hit target — only the plaque reacts */
.hero-window:hover .window-title {
  transform: translate(-50%, -50%) scale(1.04);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 10px 24px rgba(0, 0, 0, 0.36),
    0 0 10px rgba(62, 198, 216, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.window-bolt {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #e8d7a0, #8a6a2e 55%, #3a2c12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.window-bolt-tl { top: 14px; left: 14px; }
.window-bolt-tr { top: 14px; right: 14px; }
.window-bolt-bl { bottom: 14px; left: 14px; }
.window-bolt-br { bottom: 14px; right: 14px; }

.window-notch {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 7px;
  height: 2.4rem;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(62, 198, 216, 0.38), rgba(62, 198, 216, 0.08));
  box-shadow: 0 0 6px rgba(62, 198, 216, 0.12);
}
.window-notch-l { left: 4px; }
.window-notch-r { right: 4px; }

.window-frame {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #07090f;
  border: 1px solid rgba(62, 198, 216, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 0, 0, 0.35);
}
.window-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 45% 45%;
  filter: saturate(1.05) contrast(1.05);
}
.window-glass {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 28%, transparent 70%, rgba(0,0,0,0.18)),
    radial-gradient(ellipse at 50% 0%, rgba(62, 198, 216, 0.08), transparent 55%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.window-caption {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
}

@media (max-width: 720px) {
  .hero-has-world::before { inset: -6% -8% 28% -8%; opacity: 0.75; }
  .hero-window { margin-top: 1.75rem; }
  .window-shell { padding: 2.1rem 0.85rem 0.85rem; border-radius: 14px; }
  .window-title {
    letter-spacing: 0.1em;
    padding: 0.55rem 1.2rem;
    font-size: clamp(0.85rem, 4.2vw, 1.05rem);
  }
}

.hero-kicker {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 1.35rem;
}

.hero-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: var(--lh-tight);
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 0 28px rgba(201, 168, 92, 0.12);
}

.hero-title span {
  display: block;
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 0.65rem;
}

.hero-lede {
  max-width: 36rem;
  margin: 1.65rem auto 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: var(--lh-body);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #c2410c);
  color: #140a06;
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.22);
}
.btn-primary:hover {
  color: #140a06;
  filter: brightness(1.06);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}
/* Enter the world — game portal CTA (distinct from orange Log in) */
.btn-enter {
  color: #041018;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 42%),
    linear-gradient(135deg, #2aa8bc, #1a6f8a 55%, #0f4a5c);
  border-color: rgba(126, 232, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-enter:hover {
  color: #041018;
  filter: brightness(1.07);
  border-color: rgba(126, 232, 255, 0.65);
}
.btn-about {
  background: linear-gradient(135deg, #2a3340, #1a222c);
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}
.btn-about:hover {
  color: #fff6df;
  border-color: var(--gold);
  filter: brightness(1.06);
}


.hero-meta {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.hero-meta strong { color: var(--muted); font-weight: 600; }

.panel-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: min(880px, 100%);
  margin: var(--space-5) auto 0;
  text-align: left;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow);
  transition: border-color 0.15s ease;
}
.tile:hover { border-color: rgba(201, 168, 92, 0.35); }
.tile h2 {
  margin: 0 0 0.45rem;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: var(--lh-tight);
}
.tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* —— page body —— */
main.page {
  flex: 1;
  padding: var(--space-5) 0 var(--space-6);
}
.page h1 {
  margin: 0 0 0.85rem;
  font-size: var(--text-lg);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--gold-soft);
}
.page h2 {
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.page h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.page .lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 var(--space-4);
  font-size: var(--text-md);
  line-height: var(--lh-body);
}
.draft-banner {
  border: 1px solid rgba(232, 93, 4, 0.45);
  background: rgba(232, 93, 4, 0.08);
  color: var(--orange-2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}
.draft-banner strong { color: var(--gold); }

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.card-list a.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-list a.card:hover {
  border-color: rgba(201, 168, 92, 0.4);
  color: inherit;
  box-shadow: 0 6px 18px var(--shadow);
}
.card-list h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.card-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.prose {
  max-width: 42rem;
  color: var(--muted);
  line-height: var(--lh-body);
}
.prose h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.prose p { margin: 0 0 0.9rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }
.placeholder-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  color: var(--dim);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* —— footer —— */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 9, 15, 0.78);
  padding: 2rem 0 2.35rem;
  margin-top: auto;
}
.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.05rem;
  max-width: 36rem;
  justify-content: flex-end;
}
.site-footer a {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer a:hover { color: var(--gold); }
.site-footer .brand-mark { font-size: 0.7rem; letter-spacing: 0.18em; }
.site-footer .brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  max-width: 18rem;
  text-transform: none;
  line-height: 1.4;
}
.foot-note {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem;
  color: var(--dim);
  max-width: 42rem;
  line-height: 1.55;
}
.foot-note code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--muted);
}

@media (max-width: 720px) {
  /* mobnav1: do NOT column-stack .site-header .bar — compact sticky row + drawer handles mobile */
  .hero { min-height: auto; padding-top: 2.75rem; padding-bottom: 3.25rem; }
  .site-footer nav { justify-content: flex-start; max-width: none; }
  .panel-strip { gap: 0.85rem; }
  .window-title { white-space: normal; text-align: center; max-width: calc(100% - 1.5rem); }
}

/* —— account / directory portal —— */
/* Log in = same orange as homepage center CTA */
.nav .login-mini {
  color: #140a06;
  background: linear-gradient(135deg, var(--orange), #c2410c);
  border: 1px solid transparent;
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.2);
}
.nav .login-mini:hover {
  color: #140a06;
  filter: brightness(1.06);
}
/* Enter = game portal: restrained cyan, stands apart from orange Log in */
.nav .play-mini,
.nav .play-mini.is-secondary {
  white-space: nowrap;
  color: #041018;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent 45%),
    linear-gradient(135deg, #2aa8bc, #1a6f8a 55%, #0f4a5c);
  border: 1px solid rgba(126, 232, 255, 0.42);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 750;
  letter-spacing: 0.1em;
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}
.nav .play-mini:hover,
.nav .play-mini.is-secondary:hover {
  color: #041018;
  filter: brightness(1.07);
  box-shadow:
    0 0 0 1px rgba(126, 232, 255, 0.32),
    0 6px 16px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.portal {
  flex: 1;
  padding: var(--space-5) 0 var(--space-6);
  position: relative;
  isolation: isolate;
}
.portal-hero {
  margin-bottom: var(--space-4);
  animation: portalIn 0.55s ease both;
}
@keyframes portalIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.portal-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 0.6rem;
}
.portal h1 {
  margin: 0 0 0.55rem;
  font-size: var(--text-lg);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--gold-soft);
}
.portal-lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 var(--space-3);
  font-size: var(--text-md);
  line-height: var(--lh-body);
}

.portal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .portal-grid.two { grid-template-columns: 1.15fr 0.85fr; }
}

.panel {
  background: linear-gradient(160deg, rgba(26, 31, 40, 0.92), rgba(16, 20, 26, 0.97));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  animation: portalIn 0.55s ease both;
}
.panel:nth-child(2) { animation-delay: 0.05s; }
.panel:nth-child(3) { animation-delay: 0.1s; }
.panel:nth-child(4) { animation-delay: 0.15s; }
.panel h2 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.panel .hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--dim);
}

.player-card {
  display: grid;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}
.player-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(201, 168, 92, 0.1), transparent 70%);
  pointer-events: none;
  animation: glowDrift 10s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 24px); }
}
.player-card .identity {
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
}
.avatar-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffd7a8, transparent 42%),
    linear-gradient(145deg, #c9922a, #1a6f8a);
  border: 2px solid rgba(244, 230, 196, 0.32);
  box-shadow: 0 0 14px rgba(201, 168, 92, 0.18);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  padding: 0;
  cursor: pointer;
  display: block;
}
.avatar-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-orb .orb-edit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.35rem;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.55));
  color: #f2e6c4;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.avatar-orb:hover .orb-edit,
.avatar-orb:focus-visible .orb-edit { opacity: 1; }
.social-fields {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.social-fields .social-row {
  display: grid;
  grid-template-columns: 8.25rem 1fr;
  gap: 0.45rem;
  align-items: center;
}
.social-fields .social-row.custom {
  grid-template-columns: 8.25rem 1fr;
}
.social-fields .soc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: var(--muted, #a39a86);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.social-fields .soc-mark {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  background: rgba(244, 230, 196, 0.08);
  border: 1px solid rgba(244, 230, 196, 0.14);
  color: #f2e6c4;
  flex-shrink: 0;
}
.social-fields .soc-mark svg { display: block; }
.social-fields .soc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-fields .social-custom {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.4rem;
}
@media (max-width: 560px) {
  .social-fields .social-row,
  .social-fields .social-custom { grid-template-columns: 1fr; }
}

/* Account profile photo edit menu (acctprof1) */
.acct-photo-edit {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}
.acct-photo-edit .avatar-orb {
  width: 72px;
  height: 72px;
}
.acct-photo-x {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 230, 196, 0.28);
  background: rgba(28, 18, 14, 0.92);
  color: #f2e6c4;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.acct-photo-edit:hover .acct-photo-x:not(.hidden):not([hidden]),
.acct-photo-edit:focus-within .acct-photo-x:not(.hidden):not([hidden]) {
  opacity: 1;
}
.acct-photo-x:hover,
.acct-photo-x:focus-visible {
  background: #8a2f2f;
  border-color: rgba(255, 180, 160, 0.45);
}
.acct-photo-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  min-width: 11.5rem;
  padding: 0.3rem;
  border-radius: 0.55rem;
  background: rgba(16, 18, 22, 0.98);
  border: 1px solid rgba(244, 230, 196, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.15rem;
}
.acct-photo-menu[hidden] { display: none !important; }
.acct-photo-menu__item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f2e6c4;
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
.acct-photo-menu__item:hover,
.acct-photo-menu__item:focus-visible {
  background: rgba(244, 230, 196, 0.1);
  outline: none;
}
.acct-photo-menu__item--danger {
  color: #ffb4a0;
}
.acct-photo-menu__item--danger:hover,
.acct-photo-menu__item--danger:focus-visible {
  background: rgba(138, 47, 47, 0.35);
}
.player-card .names strong {
  display: block;
  font-size: 1.25rem;
  color: #f2e6c4;
}
.player-card .names .handle {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.85rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-size: 0.78rem;
  color: var(--dim);
  position: relative;
}
.meta-row span strong { color: var(--muted); font-weight: 600; }

.field { margin: 0.65rem 0; }
.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.35rem;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.field .readonly-note {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 0.3rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.btn.sm {
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(212, 92, 92, 0.55);
}
.btn-danger:hover {
  background: rgba(212, 92, 92, 0.12);
  color: #ffb4b4;
  border-color: var(--danger);
}
.btn-cyan {
  background: linear-gradient(135deg, #2aa8b8, #3ec6d8);
  color: #041018;
}
.btn-cyan:hover { color: #041018; filter: brightness(1.06); }

.msg {
  min-height: 1.1em;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--gold);
  white-space: pre-wrap;
}
.msg.err { color: var(--danger); }
.msg.ok { color: #7dcf8a; }

.gate-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 520px;
  margin: 2rem auto;
  animation: portalIn 0.55s ease both;
}
.gate-card p { color: var(--muted); }
.gate-card .cta-row { margin-top: 1.5rem; }

.list-stack { display: grid; gap: 0.55rem; }
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(7, 9, 15, 0.45);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.list-item:hover {
  border-color: rgba(62, 198, 216, 0.45);
  transform: translateY(-1px);
}
.list-item .who strong { display: block; color: var(--ink); }
.list-item .who .sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cyan);
}
.list-item .acts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.list-item .orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 230, 196, 0.28);
  box-shadow: 0 0 8px rgba(201, 168, 92, 0.14);
  background:
    radial-gradient(circle at 35% 30%, #ffd7a8, transparent 42%),
    linear-gradient(145deg, #c9922a, #1a6f8a);
}
.list-item .orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.list-item .who { flex: 1; min-width: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip.open { border-color: rgba(196, 163, 90, 0.5); color: var(--gold); }
.chip.reviewing { border-color: rgba(62, 198, 216, 0.5); color: var(--cyan); }
.chip.action_taken { border-color: rgba(125, 207, 138, 0.5); color: #7dcf8a; }
.chip.closed { color: var(--dim); }

.danger-zone {
  border-color: rgba(212, 92, 92, 0.4);
  background: linear-gradient(160deg, rgba(40, 18, 18, 0.9), rgba(18, 14, 16, 0.98));
}
.danger-zone h2 { color: #e07070; }
/* checkalign1 — checkbox/radio must not inherit .field text-input width */
.field input[type="checkbox"],
.field input[type="radio"],
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  width: auto !important;
  max-width: none;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
  border: none;
  background: transparent;
  box-shadow: none;
  accent-color: var(--cyan);
}
label.check-row,
.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
  margin: 0.45rem 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}
.check-row span {
  flex: 0 1 auto;
  line-height: 1.35;
}

/* directory cards */
.dir-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1rem;
  align-items: end;
}
.dir-toolbar .field { margin: 0; flex: 1 1 180px; }
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.dir-card {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  overflow: visible; /* statusring1: online ring must not clip */
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: portalIn 0.5s ease both;
}
.dir-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 92, 0.45);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.dir-card .orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #1a6f8a);
  margin-bottom: 0.7rem;
  box-shadow: 0 0 10px rgba(201, 168, 92, 0.16);
}
.dir-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f2e6c4;
}
.dir-card .handle {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  margin: 0.2rem 0 0.55rem;
}
.dir-card .bio {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 2.6em;
}
.dir-card .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}
.dir-card .acts button,
.dir-card .acts a.btn {
  padding: 0.4rem 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
.hidden { display: none !important; }
.loading-pulse {
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}



/* —— SEO phase2d: nav separators + footer groups —— */
.nav-sep {
  display: inline-block;
  width: 1px;
  height: 0.85rem;
  background: rgba(212, 175, 105, 0.28);
  margin: 0 0.15rem;
  flex: 0 0 auto;
}
.nav-cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.85rem;
}
.footer-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 2rem;
  justify-content: flex-end;
  flex: 1 1 18rem;
  max-width: 52rem;
}
.footer-group {
  min-width: 7.5rem;
  max-width: 12rem;
}
.footer-group__title {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 650;
}
.footer-group a {
  display: block;
  margin: 0.28rem 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: none;
  line-height: 1.35;
}
.footer-group a:hover { color: var(--gold); }
.site-footer .brand-sub {
  text-transform: none;
  letter-spacing: 0.04em;
  max-width: 16rem;
  margin-top: 0.35rem;
}
@media (max-width: 720px) {
  .nav-sep {
    display: none; /* wrap cleanly; clusters still ordered */
  }
  .footer-groups {
    justify-content: flex-start;
    max-width: none;
  }
  .footer-group {
    min-width: 42%;
    max-width: none;
  }
}

/* —— nav account menu (guest Log in / signed-in My account) —— */
.nav-account {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-account-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: #14181e;
  border: 1px solid rgba(62, 198, 216, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  z-index: 40;
}
.nav-account-menu a,
.nav-account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.nav-account-menu a:hover,
.nav-account-menu button:hover {
  background: rgba(62, 198, 216, 0.12);
  color: var(--cyan);
}
/* playpair1 — unify Play now / Log out row padding + indent; divider above Play (from YAP!) and between Play / Log out */
.nav-account-menu a[data-nav-play],
.nav-account-menu button#nav-logout {
  box-sizing: border-box;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0.55rem 0.7rem; /* same as other menu items */
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.nav-account-menu a[data-nav-play] {
  color: #5ecf8a;
  margin-top: 0.15rem;
  border-top: 1px solid var(--line); /* above Play — from YAP! */
  border-radius: 0;
}
.nav-account-menu a[data-nav-play]:hover {
  background: rgba(94, 207, 138, 0.12);
  color: #8aefb0;
}
.nav-account-menu button#nav-logout {
  color: #e07070;
  margin-top: 0;
  border-top: 1px solid var(--line); /* BETWEEN Play and Log out */
  border-radius: 0 0 6px 6px;
}
.nav-account-menu button#nav-logout:hover {
  background: rgba(212, 92, 92, 0.12);
  color: #ffb4b4;
}
.nav-account.is-authed .login-mini {
  /* still orange CTA weight, reads as account chip */
}

/* —— play mode fork (Story / Sandbox) —— */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  margin: 0 0 var(--space-4);
}
.mode-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  padding: 1.5rem 1.35rem 1.45rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, #252d38 0%, #161b22 30%, #0e1218 100%);
  border: 1px solid rgba(62, 198, 216, 0.24);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.mode-sandbox .mode-frame {
  border-color: rgba(232, 93, 4, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.mode-bolt {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0d27a, #8a6a28);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.mode-bolt-tl { top: 10px; left: 10px; }
.mode-bolt-tr { top: 10px; right: 10px; }
.mode-bolt-bl { bottom: 10px; left: 10px; }
.mode-bolt-br { bottom: 10px; right: 10px; }
.mode-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.mode-sandbox .mode-kicker { color: var(--orange-2); }
.mode-card h2,
.sandbox-stub h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-soft);
  line-height: 1.25;
  font-weight: 700;
}
.mode-blurb {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.mode-card .btn { align-self: flex-start; margin-top: 0.35rem; }
.play-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--dim);
  max-width: 40rem;
}
.sandbox-stub {
  max-width: 36rem;
  margin-top: 0.25rem;
}
.sandbox-ops {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--dim);
  font-family: var(--mono);
}
.sandbox-ops a { color: var(--cyan); }

/* —— wiki (Wikipedia-like IA · same chrome) —— */
.wrap-wiki {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}
.wiki-layout {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: stretch; /* wikisticky1: tall .wiki-side so sticky rail lasts full page */
  padding: var(--space-5) 0 var(--space-6);
  position: relative;
  isolation: isolate;
  overflow: visible; /* wikisticky1: sticky rail needs non-hidden ancestors */
}
@media (max-width: 760px) {
  .wiki-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.wiki-side {
  position: relative; /* wikisticky1: tall column host; only .yap-rail--wiki sticks */
  top: auto;
  align-self: stretch;
  font-size: 0.82rem;
  overflow: visible;
}
@media (max-width: 760px) {
  .wiki-side { position: static; overflow: visible; }
}
.wiki-side-block {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  margin: 0 0 0.85rem;
}
.wiki-side-block h2 {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.wiki-side-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wiki-side-block li { margin: 0.28rem 0; }
.wiki-side-block a { color: var(--cyan); }
.wiki-side-block a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}
.wiki-side-block .stub {
  color: var(--dim);
  font-style: italic;
}
.wiki-side-block .stub::after {
  content: " · stub";
  font-size: 0.72em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal;
}
.wiki-crumb {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--dim);
}
.wiki-crumb a { color: var(--muted); }
.wiki-crumb a:hover { color: var(--cyan); }
.wiki-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wiki-main .lede {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.35rem;
}
.wiki-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
  max-width: 28rem;
}
.wiki-toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.wiki-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.wiki-toc li { margin: 0.22rem 0; }
.wiki-toc a { color: var(--cyan); }
.wiki-figure {
  margin: 0 0 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.75rem;
  overflow: auto;
}
.wiki-figure img,
.wiki-figure svg {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
}
.wiki-figure figcaption {
  margin: 0.65rem 0.25rem 0.15rem;
  font-size: 0.8rem;
  color: var(--dim);
  text-align: center;
}
.wiki-prose {
  max-width: 44rem;
  color: var(--muted);
}
.wiki-prose h2 {
  margin: 1.85rem 0 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  scroll-margin-top: 4.5rem;
}
.wiki-prose h2:first-of-type { border-top: 0; padding-top: 0; }
.wiki-prose h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.03em;
  scroll-margin-top: 4.5rem;
}
.wiki-prose p { margin: 0 0 0.9rem; }
.wiki-prose ul,
.wiki-prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.wiki-prose li { margin: 0.25rem 0; }
.wiki-prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--orange-2);
}
.wiki-swatch {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 2px;
  vertical-align: baseline;
  margin-right: 0.25em;
  border: 1px solid rgba(255,255,255,0.15);
}
.wiki-swatch.purple { background: #a855f7; }
.wiki-swatch.green { background: #22c55e; }
.wiki-swatch.red { background: #ef4444; }
.wiki-related {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--dim);
}


/* —— sandbox worlds (self-serve) —— */
.sandbox-page .portal-hero { margin-bottom: 1.25rem; }
.sandbox-create { margin: 0 0 1.75rem; padding: 1.25rem 1.35rem 1.4rem; }
.sandbox-create h2 { margin: 0.15rem 0 0.5rem; font-size: 1.25rem; }
.sandbox-create-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0;
}
@media (min-width: 640px) {
  .sandbox-create-grid { grid-template-columns: 1fr 1fr; }
}
.thumb-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.thumb-swatch {
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #0c1014;
  cursor: pointer;
  line-height: 0;
}
.thumb-swatch img {
  display: block;
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  border-radius: 3px;
}
.thumb-swatch.is-selected,
.thumb-swatch:hover {
  border-color: var(--cyan);
}
.sandbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.sandbox-toolbar h2 { margin: 0; font-size: 1.15rem; }
.sandbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sandbox-filters input,
.sandbox-filters select {
  background: #0c1014;
  border: 1px solid #2a323c;
  color: var(--ink);
  border-radius: 4px;
  padding: 0.4rem 0.55rem;
  font: inherit;
}
.world-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .world-card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .world-card-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.world-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  align-items: flex-start;
}
.world-card-thumb {
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #2a323c;
  line-height: 0;
}
.world-card-thumb img {
  display: block;
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
}
.world-card-body { min-width: 0; flex: 1; }
.world-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.world-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.world-card-body h3 a:hover { color: var(--cyan); }
.world-card-meta {
  margin: 0 0 0.35rem;
  color: var(--dim);
  font-size: 0.85rem;
}
.world-card-url {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  word-break: break-all;
}
.world-card-acts { margin-top: 0.25rem; }
.world-detail { padding: 1.25rem 1.35rem; }
.world-detail-top {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.world-detail-thumb {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  border-radius: 8px;
  border: 1px solid #2a323c;
  background: #0c1014;
}
.world-stats {
  display: grid;
  gap: 0.55rem 1.25rem;
  margin: 1.25rem 0 0;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .world-stats { grid-template-columns: 1fr 1fr; }
}
.world-stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  background: rgba(12, 16, 20, 0.55);
  border: 1px solid #2a323c;
  border-radius: 6px;
}
.world-stat dt {
  margin: 0;
  color: var(--dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.world-stat dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.vis-picker { display: grid; gap: 0.35rem; margin-top: 0.35rem; }


/* Public profile + clickable directory cards (profile1) */
.dir-card.is-link {
  cursor: pointer;
}
.dir-card-main {
  display: block;
  color: inherit;
  text-decoration: none;
}
.dir-card-main:hover h3,
.dir-card-main:focus-visible h3 {
  color: var(--cyan);
}
.dir-card .orb {
  position: relative;
  overflow: hidden;
}
.dir-card .orb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.dir-card .acts {
  position: relative;
  z-index: 2;
}
.profile-card .identity {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.profile-orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(244, 230, 196, 0.32);
  box-shadow: 0 0 12px rgba(201, 168, 92, 0.14);
  position: relative;
}
.profile-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-bio {
  margin: 1rem 0 0.75rem;
  color: var(--muted);
  white-space: pre-wrap;
}
.profile-status {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--cyan);
  min-height: 1em;
}
.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0;
}
.profile-acts {
  margin-top: 1rem;
}
.profile-acts-hint {
  margin: 0.35rem 0 0;
  max-width: 36rem;
}
#btn-friend .friend-chip {
  margin-left: 0.3rem;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
  border-color: rgba(196, 163, 90, 0.45);
  color: var(--gold);
  padding: 0.05rem 0.4rem;
  vertical-align: middle;
}
.profile-worlds {
  margin-top: 1.75rem;
}
.profile-worlds h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}


/* --- sitefound1: community hub, board, real estate --- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.hub-card h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.hub-card p { margin: 0; color: var(--muted, #9aa3ad); font-size: 0.92rem; }
.board-compose .field { display: block; margin: 0.65rem 0; }
.board-compose .field span { display: block; font-size: 0.8rem; color: var(--dim, #7a8490); margin-bottom: 0.25rem; }
.board-compose input, .board-compose textarea {
  width: 100%; max-width: 40rem;
  background: rgba(12,16,22,0.85);
  border: 1px solid rgba(126,200,216,0.22);
  border-radius: 8px;
  color: inherit;
  padding: 0.55rem 0.7rem;
}
.board-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.board-row {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.board-row.is-empty { opacity: 0.75; }
.board-avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(62,198,216,0.15); color: var(--cyan, #3ec6d8);
  font-size: 0.75rem; font-weight: 700;
}
.board-row .meta { font-size: 0.8rem; color: var(--dim, #7a8490); }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.listing-card {
  border: 1px solid rgba(126,200,216,0.18);
  border-radius: 12px;
  background: rgba(14,18,24,0.72);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.listing-card.is-empty { padding: 1rem 1.1rem; opacity: 0.8; }
.listing-shot {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #1a222c, #0c1016 60%, #182028);
  display: grid; place-items: center;
  color: var(--dim, #7a8490); font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.listing-shot.large { aspect-ratio: 16/9; margin-bottom: 1rem; border-radius: 12px; border: 1px solid rgba(126,200,216,0.15); }
.listing-body { padding: 0.9rem 1rem 1.1rem; }
.listing-body h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.listing-meta { list-style: none; padding: 0; margin: 0 0 0.85rem; font-size: 0.88rem; color: var(--muted, #9aa3ad); }
.listing-meta li { margin: 0.2rem 0; }
.listing-detail { max-width: 52rem; }
.account-micro-avatar {
  width: 52px; height: 60px; border-radius: 8px;
  border: 1px solid rgba(126,200,216,0.22);
  background: rgba(12,16,22,0.65);
  display: inline-grid; place-items: center;
  font-size: 0.65rem; color: var(--dim, #7a8490); text-align: center;
}
.identity-avatars { display: flex; align-items: flex-end; gap: 0.5rem; }


/* board2 / realestate2 */
.board-avatar-img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(126,200,216,0.25);
}
.board-body-text {
  margin: 0.35rem 0 0.25rem;
  white-space: pre-wrap;
  color: var(--text, #d7dde4);
  font-size: 0.92rem;
}
.board-row.is-pinned { border-color: rgba(126,200,216,0.35); }
.listing-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: inherit;
}
.listing-card .dim { font-weight: 400; opacity: 0.75; font-size: 0.9em; }
.char-roster-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.char-roster-list li {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.65rem; border-radius: 10px;
  border: 1px solid rgba(126,200,216,0.12);
  background: rgba(0,0,0,0.2);
}
.char-roster-list li.is-active { border-color: rgba(126,200,216,0.4); }
/* demotaste33 — match in-game HUD mini-self box (52x60) + HUD stub paint fit */
.char-micro-stub {
  width: 52px; height: 60px; border-radius: 8px;
  background: linear-gradient(145deg, #2a3340, #1a222c);
  display: grid; place-items: center;
  font-size: 0.65rem; color: #7a8490; text-align: center; line-height: 1.1;
  flex-shrink: 0;
  overflow: hidden;
}


.account-micro-avatar.has-img,
.account-micro-avatar img {
  display: block;
}
.account-micro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 8px;
}
.account-micro-avatar .micro-avatar-fallback[hidden] { display: none !important; }
.char-micro-stub.has-img {
  padding: 0;
  overflow: hidden;
}
.char-micro-stub img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* demotaste33 — canvas stub: HUD-fit paint scaled into mini-self box */
.char-micro-stub.has-canvas {
  padding: 0;
  overflow: hidden;
}
.char-micro-stub.has-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: auto;
}
.account-micro-avatar.has-canvas,
.account-micro-avatar canvas.account-micro-canvas {
  display: block;
}
.account-micro-avatar canvas.account-micro-canvas {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  object-position: center bottom;
}
.char-roster-list li {
  align-items: center;
}
.char-roster-empty { display: list-item; }
.char-roster-list:has(li[data-char-id]) .char-roster-empty,
.char-roster-list:has(.has-canvas) .char-roster-empty {
  display: none !important;
}
.identity-avatars {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}
.profile-micro-avatar {
  width: 64px;
  height: 64px;
}
.profile-micro-avatar[hidden] { display: none !important; }


/* daynight1 — board reply UI */
.board-actions { margin-top: 0.45rem; }
.board-actions .btn { font-size: 0.8rem; padding: 0.25rem 0.6rem; }
.board-replies {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(126,200,216,0.14);
  background: rgba(0,0,0,0.22);
}
.board-replies.hidden { display: none; }
.board-reply-list { list-style: none; margin: 0; padding: 0; }
.board-reply-row {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.board-reply-row:last-child { border-bottom: 0; }
.board-reply-compose { margin-top: 0.55rem; display: grid; gap: 0.4rem; }
.board-reply-compose textarea {
  width: 100%; max-width: 36rem;
  background: rgba(12,16,22,0.85);
  border: 1px solid rgba(126,200,216,0.22);
  border-radius: 8px;
  color: inherit;
  padding: 0.45rem 0.6rem;
}
.board-reply-msg { font-size: 0.8rem; color: var(--dim, #7a8490); }


/* —— yellowpages1 · business directory —— */
.yp-page .yp-banner {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--gold);
  text-shadow: none;
}
.yp-panel {
  border-color: rgba(201, 168, 92, 0.22) !important;
  background: linear-gradient(165deg, rgba(36, 30, 16, 0.42), rgba(14, 18, 24, 0.78));
}
.yp-cats {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.yp-cat {
  appearance: none;
  border: 1px solid rgba(232, 184, 74, 0.35);
  background: rgba(20, 16, 8, 0.65);
  color: #f0d78a;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.yp-cat:hover { border-color: rgba(232, 184, 74, 0.7); }
.yp-cat.is-active {
  background: linear-gradient(145deg, #c9922a, #8a6418);
  color: #1a1206;
  border-color: #e8b84a;
  font-weight: 700;
}
.yp-card {
  border-color: rgba(232, 184, 74, 0.2);
  position: relative;
}
.yp-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1206;
  background: #e8b84a;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.yp-card .listing-body h2 { padding-right: 4.5rem; color: #f3d98a; }
.yp-grid .play-mini {
  display: inline-block;
  margin-top: 0.25rem;
  background: rgba(232, 184, 74, 0.15);
  border: 1px solid rgba(232, 184, 74, 0.4);
  color: #f0d78a;
}

/* —— yellowpages2 · live sections + compose —— */
.yp-section { margin-top: 1.5rem; }
.yp-section-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: #f3d98a;
  letter-spacing: 0.02em;
}
.yp-compose .field { display: block; margin: 0.55rem 0; }
.yp-compose .field > span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}
.yp-compose input,
.yp-compose textarea,
.yp-compose select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(10, 12, 16, 0.75);
  border: 1px solid rgba(232, 184, 74, 0.28);
  color: #f5e9c8;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.yp-free-chip {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1206;
  background: #e8b84a;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  vertical-align: middle;
}
.yp-compose .msg.ok { color: #9ddea8; }
.yp-compose .msg.err { color: #f0a0a0; }

/* profileSplit1 — RL account block + Characters roster on /@{handle}/ */
.profile-section-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim, #7a8490);
}
.profile-section-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}
.profile-rl { margin-bottom: 1.1rem; }
.profile-characters {
  margin-top: 0;
  margin-bottom: 1.1rem;
}
.profile-characters .profile-section-title { font-size: 1.2rem; }
.characters-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.character-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(126,200,216,0.14);
  background: rgba(0,0,0,0.22);
}
.character-row.is-active {
  border-color: rgba(126,200,216,0.42);
  box-shadow: 0 0 0 1px rgba(62,198,216,0.12);
}
.character-micro {
  width: 52px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid rgba(126,200,216,0.22);
  background: linear-gradient(145deg, #2a3340, #1a222c);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.character-micro.has-img { padding: 0; }
.character-micro img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.character-micro-fallback {
  font-size: 0.65rem;
  color: #7a8490;
  text-align: center;
  line-height: 1.1;
}
.character-info { min-width: 0; flex: 1; }
.character-name {
  display: block;
  font-size: 1.05rem;
}
.character-handle {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--muted, #9aa3ad);
}
.character-meta { margin: 0.25rem 0 0; }
.character-stats.stub { margin-top: 0.45rem; }
.character-stats .chip {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(126,200,216,0.2);
  color: var(--dim, #7a8490);
  background: rgba(12,16,22,0.5);
}
.profile-rl .identity-avatars { display: none; } /* micro lives in Characters */

/* profileSplit1 — /play/characters/ select */
.char-select-panel h1 { margin: 0 0 0.5rem; }
.char-select-list {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; gap: 0.65rem;
}
.char-select-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.85rem; border-radius: 12px;
  border: 1px solid rgba(126,200,216,0.14);
  background: rgba(0,0,0,0.22);
}
.char-select-row.is-active { border-color: rgba(126,200,216,0.42); }
.char-select-row .btn { margin-left: auto; }

/* profileSplit1 — /play/enter/ combined world + character */
.enter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
@media (max-width: 720px) {
  .enter-grid { grid-template-columns: 1fr; }
}
.enter-world-list, .enter-char-list {
  list-style: none; margin: 0.75rem 0 0; padding: 0;
  display: grid; gap: 0.55rem;
}
.enter-pick {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.8rem; border-radius: 12px;
  border: 1px solid rgba(126,200,216,0.14);
  background: rgba(0,0,0,0.22);
  cursor: pointer;
}
.enter-pick:hover { border-color: rgba(126,200,216,0.32); }
.enter-pick.is-selected {
  border-color: rgba(126, 200, 216, 0.55);
  background:
    linear-gradient(135deg, rgba(42, 168, 188, 0.14), rgba(15, 74, 92, 0.1)),
    rgba(4, 20, 28, 0.5);
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.enter-pick-body { min-width: 0; flex: 1; }
.enter-pick-body strong { display: inline; margin-right: 0.4rem; }
.enter-kind {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  border: 1px solid rgba(126,200,216,0.25); color: var(--dim, #7a8490);
}
.enter-actions { margin-top: 0.25rem; }
.enter-pick.is-disabled { opacity: 0.55; cursor: not-allowed; }

/* enterCreate1 — Create character + world pager */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.enter-world-pager {
  display: flex; align-items: center; gap: 0.65rem;
  margin: 0.65rem 0 0.25rem;
}
.enter-world-pager .hint { margin: 0; min-width: 3.5rem; text-align: center; }
.enter-create-row {
  margin: 0.75rem 0 0.25rem;
}
/* webcreate1 — full Appearance builder on /play/create/ */
.create-char-panel { max-width: 42rem; }
.create-appearance-mount { margin: 1rem 0 0.25rem; }
.create-actions { margin-top: 0.85rem; }

.appb { margin: 0; }
.appb-builder {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 200, 216, 0.16);
  background: linear-gradient(180deg, #141a22 0%, #0c0e11 100%);
}
.appb-canvas {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #2a3340;
  background: #0a0c10;
  cursor: grab;
  touch-action: pan-y;
}
.appb-canvas:active { cursor: grabbing; }
.appb-meta {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.35;
}
.appb-dim { color: var(--dim, #6d7680); font-size: 0.85rem; }
.appb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.appb-btn {
  min-width: 2.25rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.95rem;
}
.appb-angle,
.appb-zoom {
  min-width: 3.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted, #9aa3ad);
}
.appb-look {
  margin: 0.35rem 0 0;
  padding: 0.85rem 1rem 0.55rem;
  border: 1px solid rgba(126, 200, 216, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}
.appb-look legend {
  padding: 0 0.35rem;
  font-size: 0.85rem;
  color: var(--ink, #e8eef4);
}
.appb-field-label {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted, #9aa3ad);
  text-transform: uppercase;
}
.appb-opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.appb-opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #2a3340;
  background: #12161c;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
.appb-opt-chip:hover { border-color: var(--cyan, #3ec6d8); }
.appb-opt-chip.selected {
  border-color: var(--cyan, #3ec6d8);
  box-shadow: 0 0 0 1px rgba(62, 198, 216, 0.35);
}
.appb-opt-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

/* enterbar2 — ready bubble owns Change; hide soft-collapse bars while ready; centered meta */
.enter-stage {
  position: relative;
  margin: 1rem 0 1.25rem;
}
.enter-stage .enter-grid { margin: 0; }
.enter-ready {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(126, 232, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(42, 168, 188, 0.16), rgba(15, 74, 92, 0.1)),
    rgba(4, 16, 24, 0.55);
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.14),
    0 12px 32px rgba(0, 0, 0, 0.28);
  animation: enter-ready-in 0.22s ease-out;
}
.enter-ready[hidden] { display: none !important; }
.enter-ready .btn-enter-lg {
  order: 1;
  flex: 0 0 auto;
  align-self: center;
}
.enter-ready-meta {
  order: 2;
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(126, 200, 216, 0.22);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}
.enter-ready-line {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  min-width: 0;
  font-size: 1.05rem;
  color: rgba(210, 236, 242, 0.92);
}
.enter-ready-kind {
  flex: 0 0 auto;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ad8e4;
}
.enter-ready-name {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #e8fbff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enter-ready-change {
  flex: 0 0 auto;
  margin: 0.1rem 0 0;
  padding: 0.35rem 0.65rem;
  min-height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cyan, #7ec8d8);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.enter-ready-change:hover,
.enter-ready-change:focus-visible {
  color: #b8f0fa;
  background: rgba(62, 198, 216, 0.12);
  outline: none;
}
.btn-enter-lg {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 2.1rem;
  min-height: 44px;
  min-width: min(100%, 18rem);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.enter-secondary { margin-top: 0.35rem; }
@keyframes enter-ready-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .enter-ready {
    flex-direction: column;
    align-items: stretch;
  }
  .enter-ready-meta {
    order: 1;
    width: 100%;
    flex: 0 0 auto;
  }
  .enter-ready .btn-enter-lg {
    order: 2;
    width: 100%;
    min-width: 0;
  }
}

/* enterbar2 — while ready, hide collapsed soft-collapse chrome (lists stay in DOM) */
.enter-worlds.is-soft-hidden,
.enter-chars.is-soft-hidden {
  display: none !important;
}

/* enterstory1 — Story pinned above sandboxes, distinct bar */
.enter-pick-story {
  border-color: rgba(232, 184, 74, 0.42);
  background:
    linear-gradient(135deg, rgba(232, 184, 74, 0.12), rgba(42, 168, 188, 0.08)),
    rgba(12, 18, 22, 0.55);
  box-shadow:
    inset 3px 0 0 0 rgba(232, 184, 74, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.18);
}
.enter-pick-story:hover {
  border-color: rgba(232, 184, 74, 0.62);
}
.enter-pick-story.is-selected {
  border-color: rgba(232, 184, 74, 0.72);
  background:
    linear-gradient(135deg, rgba(232, 184, 74, 0.18), rgba(42, 168, 188, 0.12)),
    rgba(10, 22, 28, 0.62);
  box-shadow:
    inset 3px 0 0 0 #e8b84a,
    0 0 0 1px rgba(232, 184, 74, 0.28),
    0 6px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.enter-pick-story .enter-kind {
  border-color: rgba(232, 184, 74, 0.45);
  color: #f0d78a;
  background: rgba(232, 184, 74, 0.08);
}
.enter-pick-story.is-selected .enter-kind {
  border-color: rgba(232, 184, 74, 0.65);
  color: #ffe9a8;
}
.enter-world-divider {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 0.05rem;
  padding: 0.15rem 0.15rem 0.35rem;
  pointer-events: none;
  color: var(--dim, #7a8490);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.enter-world-divider::before,
.enter-world-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 200, 216, 0.28), transparent);
}
.enter-world-divider span { white-space: nowrap; }

/* enterSelect1 — empty default, strong select chrome, soft-collapse */
.enter-pick-check {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1.5px solid rgba(126, 200, 216, 0.28);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.enter-pick.is-selected .enter-pick-check {
  border-color: rgba(126, 200, 216, 0.7);
  background:
    linear-gradient(180deg, #5ec8d8, #1a6f8a);
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.18),
    0 0 6px rgba(62, 198, 216, 0.18);
  position: relative;
}
.enter-pick.is-selected .enter-pick-check::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.12rem;
  width: 0.34rem;
  height: 0.58rem;
  border: solid #041018;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.enter-pick.is-selected .enter-pick-body strong {
  color: #e8f4f8;
  text-shadow: none;
}
.enter-pick.is-selected .enter-kind {
  border-color: rgba(126, 232, 255, 0.55);
  color: #b8f0fa;
}

.enter-sec-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.enter-sec-toggle .hint { margin: 0; color: var(--cyan, #7ec8d8); }
.enter-sec-toggle-label {
  font-weight: 600;
  color: #e8fbff;
}
.enter-worlds.is-collapsed,
.enter-chars.is-collapsed {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-color: rgba(126, 200, 216, 0.2);
  background:
    linear-gradient(180deg, rgba(42, 168, 188, 0.05), transparent 70%),
    rgba(0, 0, 0, 0.14);
}
.enter-sec-body[hidden] { display: none !important; }

/* —— yellowpages3 · owned compose picker + typeahead —— */
.yp-req { font-style: normal; font-weight: 600; color: #e8b84a; opacity: 0.9; font-size: 0.72rem; }
.yp-picker {
  margin: 0.75rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed rgba(232, 184, 74, 0.35);
  border-radius: 8px;
  background: rgba(20, 16, 8, 0.35);
}
.yp-typeahead-wrap { position: relative; }
.yp-typeahead {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  max-height: 14rem;
  overflow: auto;
  background: #14110a;
  border: 1px solid rgba(232, 184, 74, 0.45);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.yp-typeahead li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  color: #f5e9c8;
}
.yp-typeahead li:hover,
.yp-typeahead li:focus {
  outline: none;
  background: rgba(232, 184, 74, 0.16);
}
.yp-typeahead .yp-ta-name { font-weight: 600; }
.yp-typeahead .yp-ta-url {
  font-size: 0.72rem;
  opacity: 0.65;
  word-break: break-all;
}
.yp-typeahead-empty {
  padding: 0.5rem 0.65rem;
  opacity: 0.7;
  cursor: default;
}
.yp-typeahead-hint { margin: 0.35rem 0 0; }

.yp-typeahead .yp-ta-group {
  display: block;
  padding: 0.35rem 0.65rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 184, 74, 0.85);
  cursor: default;
  border-bottom: 1px solid rgba(232, 184, 74, 0.18);
  margin-bottom: 0.15rem;
}
.yp-typeahead .yp-ta-group:hover,
.yp-typeahead .yp-ta-group:focus {
  background: transparent;
}
.yp-typeahead li.yp-ta-starred .yp-ta-name {
  color: #f3d27a;
}


/* —— yellowpages5 · YP poster 25MB accept + 1024² JPEG compress (YP only; not room gallery) —— */
.yp-poster-field input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  color: #f5e9c8;
  font: inherit;
}
.yp-poster-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.yp-poster-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(232, 184, 74, 0.35);
  background: #0a0c10;
}
.yp-poster-thumb {
  display: block;
  margin: 0.85rem 0.85rem 0;
  padding: 0;
  border: 1px solid rgba(232, 184, 74, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: #0a0c10;
  cursor: zoom-in;
  width: 96px;
  height: 96px;
}
.yp-poster-thumb img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.yp-card .yp-poster-thumb { margin-bottom: 0; }
.yp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 12, 0.88);
  padding: 1.5rem;
}
.yp-lightbox[hidden] { display: none !important; }
.yp-lightbox img {
  max-width: min(96vw, 1024px);
  max-height: 90vh;
  border-radius: 10px;
  border: 1px solid rgba(232, 184, 74, 0.4);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
}
.yp-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-size: 1.8rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: #f3d98a;
  cursor: pointer;
}


/* —— yellowpages6 · event date + expiry duration + calendar —— */
.yp-expiry-fieldset {
  border: 1px solid rgba(232, 184, 74, 0.28);
  border-radius: 8px;
  padding: 0.55rem 0.75rem 0.7rem;
  margin: 0.55rem 0;
}
.yp-expiry-fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.78rem;
  opacity: 0.85;
  color: #f0d78a;
}
.yp-expiry-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.35rem;
}
.yp-expiry-radios label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #f5e9c8;
  cursor: pointer;
}
#yp-event-at-wrap input[type="datetime-local"] {
  color-scheme: dark;
}
.yp-cal-add { cursor: pointer; }
.cal-list { display: grid; gap: 0.85rem; }
.cal-card .btn { margin-top: 0.5rem; }

/* —— yellowpages7 · browse-only + /post/ compose —— */
.yp-browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}
.yp-browse-head h2 {
  margin: 0;
}
.yp-page #yp-flash.msg {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 184, 74, 0.35);
  background: rgba(20, 24, 18, 0.65);
}
.yp-page #yp-flash.msg.ok {
  color: #9ddea8;
  border-color: rgba(157, 222, 168, 0.4);
}
.yp-page #yp-flash.msg.err {
  color: #f0a0a0;
  border-color: rgba(240, 160, 160, 0.4);
}

/* —— starthere1 · Start here cards —— */
.start-here-page .lede { max-width: 42rem; }
.start-world {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.start-world-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 198, 216, 0.35);
  color: var(--cyan, #3ec6d8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.start-card-optional .mode-frame {
  border-color: rgba(196, 163, 90, 0.28);
}
.start-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.start-limits {
  margin: 0 0 1.5rem;
  max-width: 42rem;
}
.start-limits h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.start-limits-list {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.start-limits-list li { margin: 0.35rem 0; }
.start-here-link {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 198, 216, 0.35);
}
.start-here-link:hover {
  color: var(--ink);
  border-bottom-color: rgba(62, 198, 216, 0.7);
}
.hero-copy .start-here-meta {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--dim);
}
.enter-start-here {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}


/* howtoplay1 */
.howto-page { max-width: 46rem; padding-bottom: 3rem; }
.howto-page .lede { max-width: 42rem; }
.howto-toc {
  margin: 1.25rem 0 1.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.howto-toc-title { font-size: 0.85rem; margin: 0 0 0.4rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.howto-toc ol { margin: 0; padding-left: 1.2rem; }
.howto-toc li { margin: 0.2rem 0; }
.howto-section { margin: 1.75rem 0; }
.howto-section h2 { margin-bottom: 0.55rem; }
.howto-list { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.howto-list li { margin: 0.35rem 0; }
.howto-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.howto-related {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.howto-page kbd {
  display: inline-block;
  padding: 0.05em 0.4em;
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(0,0,0,0.35);
}


/* —— lookfeel2: secondary-page chrome parity —— */
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
main.page > .panel,
main.portal > .panel,
.sandbox-page > .panel,
.yp-page > .panel,
.yp-page > .yp-panel {
  margin-bottom: var(--space-3);
}
.wiki-main h1 {
  margin: 0 0 0.85rem;
  font-size: var(--text-lg);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--gold-soft);
}
.wiki-main .lede,
.wiki-article > .lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 var(--space-4);
  font-size: var(--text-md);
  line-height: var(--lh-body);
}
.howto-page,
.start-here-page,
.sandbox-page,
.yp-page {
  padding-bottom: var(--space-6);
}


/* —— lookfeel3: legal + deep wiki + create polish —— */

/* Legal: quieter review banner (gold wash, not orange flash) */
.draft-banner {
  border: 1px solid rgba(201, 168, 92, 0.28);
  background: rgba(201, 168, 92, 0.06);
  color: var(--muted);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.86rem;
  line-height: var(--lh-body);
  margin: 0 0 var(--space-4);
  box-shadow: none;
}
.draft-banner strong { color: var(--gold-soft); }
.draft-banner code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--dim);
}

/* Legal hub / policy pages: professional prose + card rhythm */
main.page.legal-page,
main.page:has(.draft-banner) {
  padding-top: var(--space-5);
}
.page .card-list {
  margin-top: var(--space-3);
  gap: 0.8rem;
}
.page .card-list a.card {
  padding: 1.2rem 1.3rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.page .prose {
  max-width: 44rem;
  font-size: 0.96rem;
}
.page .prose h2 {
  margin: 2.1rem 0 0.6rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line-soft);
  font-size: 1.02rem;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  text-transform: none;
}
.page .prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.35rem;
}
.page .prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.08em 0.35em;
  border-radius: 3px;
}

/* Deep wiki articles: readable type + quieter chrome */
.wiki-toc,
.wiki-figure {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.wiki-toc {
  padding: 1rem 1.15rem;
  margin: 0 0 var(--space-4);
  background: var(--panel);
}
.wiki-prose {
  max-width: 46rem;
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--muted);
}
.wiki-prose h2 {
  margin: 2rem 0 0.6rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line-soft);
  font-size: 1.06rem;
  letter-spacing: 0.035em;
}
.wiki-prose h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 0.98rem;
}
.wiki-prose p { margin: 0 0 1rem; }
.wiki-prose li { margin: 0.3rem 0; line-height: 1.62; }
.wiki-prose code {
  color: var(--amber, var(--orange-2));
  background: rgba(0, 0, 0, 0.2);
  padding: 0.06em 0.32em;
  border-radius: 3px;
}
.wiki-related {
  margin-top: var(--space-5);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--dim);
  line-height: 1.55;
}
.wiki-side-block {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.wiki-crumb {
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.placeholder-box {
  border-color: var(--line-soft);
  background: rgba(20, 24, 32, 0.65);
  box-shadow: none;
  letter-spacing: 0.06em;
}

/* Login-adjacent create splash */
.gate-card {
  padding: 2.35rem 1.65rem;
  margin: var(--space-4) auto;
  max-width: 34rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}
.create-char-panel {
  max-width: 42rem;
  margin-top: var(--space-3);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.create-appearance-mount { margin: 1.1rem 0 0.35rem; }
.create-actions { margin-top: 1rem; gap: 0.65rem; }
.appb-builder {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 27, 35, 0.95) 0%, rgba(12, 14, 17, 0.98) 100%);
  box-shadow: none;
  padding: 1rem 1.05rem;
}
.appb-canvas {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #0a0c10;
}
.btn-cyan {
  box-shadow: 0 4px 14px rgba(42, 168, 184, 0.18);
}
.btn-cyan:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(42, 168, 184, 0.22);
}
.loading-pulse {
  margin: var(--space-5) 0;
  text-align: center;
}


/* —— lookfeel8: community hub + board chrome —— */
.community-hub {
  padding-bottom: var(--space-6);
}
.hub-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.95rem;
  margin: 1.35rem 0 var(--space-4);
}
a.hub-card,
.hub-card.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.hub-card:hover,
.hub-card.card:hover {
  border-color: rgba(201, 168, 92, 0.4);
  color: inherit;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}
.hub-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--ink, var(--gold-soft));
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.hub-card code {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.86em;
  color: var(--dim);
}
.community-account-panel {
  margin-top: 0.35rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}
.community-account-panel p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: var(--lh-body);
  max-width: 42rem;
}
.community-account-panel .hint { margin-bottom: 0; }

/* Board: quieter compose + list chrome */
.board-compose.is-quiet,
.panel.board-compose {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}
.board-compose input,
.board-compose textarea,
.board-reply-compose textarea {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm, 8px);
  background: rgba(12, 16, 22, 0.88);
  box-shadow: none;
}
.board-compose input:focus-visible,
.board-compose textarea:focus-visible,
.board-reply-compose textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(201, 168, 92, 0.35);
}
.board-list {
  margin-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
}
.board-row {
  padding: 0.95rem 0.15rem;
  border-bottom: 1px solid var(--line-soft);
}
.board-row.is-pinned {
  border-color: rgba(201, 168, 92, 0.28);
}
.board-avatar {
  background: rgba(201, 168, 92, 0.1);
  color: var(--gold-soft);
  border: 1px solid var(--line-soft);
}
.board-avatar-img {
  border: 1px solid var(--line-soft);
}
.board-replies {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm, 8px);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: none;
}
.board-actions .btn-ghost {
  border-color: var(--line-soft);
}


/* —— opt1: reduced motion + iOS motion safety —— */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-window:hover .window-title,
  .hero-window:hover .window-shell {
    transform: none !important;
    filter: none !important;
  }
}

/* Account portal — sticky hash tabs (accttabs1) */
.acct-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin: 0 0 1.15rem;
  padding: 0.35rem 0.2rem 0.45rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 14, 17, 0.96), rgba(12, 14, 17, 0.88));
  backdrop-filter: blur(8px);
}
.acct-subnav a {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border-radius: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.acct-subnav a:hover {
  color: var(--ink);
  border-color: rgba(62, 198, 216, 0.28);
  background: rgba(62, 198, 216, 0.06);
}
.acct-subnav a.is-active,
.acct-subnav a[aria-current="page"] {
  color: #f2e6c4;
  border-color: rgba(201, 168, 92, 0.45);
  background: rgba(201, 168, 92, 0.1);
  box-shadow: 0 0 12px rgba(201, 168, 92, 0.08);
}
.acct-panels { min-height: 12rem; }
.acct-panel { animation: portalIn 0.35s ease both; }
.acct-panel.hidden,
.acct-panel[hidden] { display: none !important; }
.acct-danger-link a {
  color: #e07070;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.acct-danger-link a:hover { color: #ffb4b4; }
.player-card .identity-avatars {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}


/* demotaste6 — homepage live Demo Taste hero pane */
.hero-window-live {
  cursor: default;
}
.hero-window-live .window-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  white-space: normal;
  line-height: 1.1;
  text-decoration: none;
  padding: 0.55rem 1.55rem 0.5rem;
  z-index: 5;
}
.hero-window-live .window-title-faint {
  display: block;
  font-size: 0.58em;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  color: rgba(4, 16, 24, 0.88);
}
.hero-window-live:hover .window-title,
.hero-window-live:focus-within .window-title {
  transform: translate(-50%, -50%) scale(1.04);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 10px 24px rgba(0, 0, 0, 0.36),
    0 0 10px rgba(62, 198, 216, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.hero-window-live .window-frame {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.hero-demo-poster {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-demo-poster img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 45% 45%;
  filter: saturate(1.05) contrast(1.05);
}
.hero-demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #07090f;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
  pointer-events: none;
}
.hero-window-live.is-live .hero-demo-frame {
  opacity: 1;
}
.hero-window-live.is-live .hero-demo-poster {
  opacity: 0;
  pointer-events: none;
}
.hero-demo-poster {
  position: relative;
  z-index: 0;
  transition: opacity 0.45s ease;
}
.hero-demo-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}
.hero-demo-hit:focus-visible {
  outline: 2px solid rgba(62, 198, 216, 0.85);
  outline-offset: -3px;
}
.hero-demo-live-badge {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 14, 17, 0.88);
  border: 1.5px solid #ffb020;
  color: #ffb020;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.45);
  animation: heroDemoPulse 1.6s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hero-window-live.is-live .hero-demo-live-badge {
  /* demotaste11 — hide overlay DEMO badge; Live Demo pill is inside iframe HUD */
  display: none !important;
  opacity: 0;
}
@keyframes heroDemoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 176, 32, 0); }
}
.hero-window-live.is-fallback .hero-demo-live-badge,
.hero-window-live.is-static .hero-demo-live-badge {
  display: none;
}
.hero-window-live .window-caption {
  margin: 0.7rem 0 0;
}
@media (max-width: 720px) {
  .hero-window-live .window-title {
    padding: 0.48rem 1.1rem 0.42rem;
  }
  .hero-window-live .window-title-faint {
    font-size: 0.55em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-demo-frame,
  .hero-demo-poster,
  .hero-demo-live-badge {
    transition: none !important;
    animation: none !important;
  }
  .hero-window-live:hover .window-title,
  .hero-window-live:focus-within .window-title {
    transform: translate(-50%, -50%) !important;
    filter: none !important;
  }
}


/* demotaste18 — in-page hero expand (brand collapses back) */
html.demo-hero-expanded,
html.demo-hero-expanded body {
  overflow: hidden !important;
}
html.demo-hero-expanded #hero-demo {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 8px !important;
  background: rgba(6, 8, 10, 0.94) !important;
  box-sizing: border-box !important;
}
html.demo-hero-expanded #hero-demo .window-shell {
  height: 100% !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
}
html.demo-hero-expanded #hero-demo .window-frame {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
}
html.demo-hero-expanded #hero-demo .hero-demo-frame {
  opacity: 1 !important;
  pointer-events: auto !important;
}
html.demo-hero-expanded #hero-demo .hero-demo-hit,
html.demo-hero-expanded #hero-demo .hero-demo-poster,
html.demo-hero-expanded #hero-demo .window-glass,
html.demo-hero-expanded #hero-demo .window-caption {
  display: none !important;
}
/* fence4 — expanded demo: no top Esc / PLAY LIVE DEMO pill (Esc + brand still minimize) */
html.demo-hero-expanded #hero-demo .window-title {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
html.demo-hero-expanded #hero-demo .window-title::after {
  content: none !important;
  display: none !important;
}


/* —— splash phase2e: safe visual polish (CSS / micro-layout only) —— */
/* Professional Steam-bound brand: rhythm, CTA hierarchy, quiet chrome. No copy/href changes. */

/* Header: tighter nav-cluster rhythm (no dropdowns) */
.nav {
  gap: 0.35rem 0.85rem;
}
.nav-cluster {
  gap: 0.25rem 0.75rem;
}
.nav-sep {
  margin: 0 0.28rem;
  height: 0.78rem;
  background: rgba(212, 175, 105, 0.22);
}
.nav a {
  padding: 0.12rem 0;
}

/* Home hero: spacing rhythm + CTA hierarchy */
.hero {
  padding: var(--space-6) 0 4.25rem;
}
.hero-copy {
  max-width: 42rem;
  margin-inline: auto;
}
.hero-kicker {
  margin: 0 0 1.15rem;
}
.hero-title span {
  margin-top: 0.55rem;
}
.hero-lede {
  margin-top: 1.45rem;
}
.cta-row {
  gap: 0.7rem 0.85rem;
  margin-top: 1.85rem;
  align-items: center;
}
.cta-row .btn-enter {
  padding: 0.95rem 1.7rem;
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.2),
    0 10px 26px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(62, 198, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cta-row .btn-about {
  padding: 0.88rem 1.45rem;
  opacity: 0.98;
}
.cta-row .btn-ghost {
  padding: 0.82rem 1.25rem;
  color: var(--muted);
  border-color: rgba(42, 50, 60, 0.85);
  font-weight: 650;
}
.cta-row .btn-ghost:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.45);
}
.hero-copy .start-here-meta {
  margin-top: 1.35rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Stronger (still restrained) primary button hover + focus */
.btn-enter:hover,
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-enter:hover {
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(62, 198, 216, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.28);
}
.btn-enter:focus-visible,
.btn-primary:focus-visible,
.cta-row .btn:focus-visible {
  outline: 2px solid rgba(62, 198, 216, 0.9);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(62, 198, 216, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.28);
}
.btn-about:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid rgba(201, 168, 92, 0.85);
  outline-offset: 3px;
}

/* Card grids: consistent radius, gap, subtle lift */
.panel-strip {
  gap: 1rem;
  margin-top: 2.5rem;
}
.tile,
.card-list a.card,
a.hub-card,
.hub-card.card {
  border-radius: var(--radius-lg);
}
.tile {
  padding: 1.2rem 1.2rem 1.25rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tile:hover {
  border-color: rgba(201, 168, 92, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}
.card-list {
  gap: 0.85rem;
}
.card-list a.card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card-list a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}
.hub-grid {
  gap: 1rem;
}
a.hub-card,
.hub-card.card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.hub-card:hover,
.hub-card.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}
.mode-grid {
  gap: 1.25rem;
}
.mode-frame {
  border-radius: var(--radius-lg);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.mode-card:hover .mode-frame {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 16px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mode-story:hover .mode-frame {
  border-color: rgba(62, 198, 216, 0.38);
}
.mode-sandbox:hover .mode-frame {
  border-color: rgba(232, 93, 4, 0.4);
}

/* Footer: clearer column separation / quieter links (labels + hrefs untouched) */
.site-footer {
  padding: 2.15rem 0 2.5rem;
}
.footer-groups {
  gap: 1.5rem 2.35rem;
  column-gap: 2.35rem;
}
.footer-group {
  min-width: 8rem;
  max-width: 12.5rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(42, 50, 60, 0.65);
}
.footer-group:first-child {
  padding-left: 0;
  border-left: 0;
}
.footer-group__title {
  margin: 0 0 0.65rem;
  color: rgba(201, 168, 92, 0.88);
}
.footer-group a {
  margin: 0.22rem 0;
  color: rgba(154, 163, 173, 0.82);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}
.footer-group a:hover {
  color: var(--gold-soft);
}

/* Micro glitch fixes: overflow / uneven padding */
.hero-window {
  max-width: min(44rem, 100%);
}
.panel-strip,
.mode-grid,
.hub-grid,
.card-list {
  width: 100%;
  max-width: 100%;
}
@media (max-width: 720px) {
  .cta-row {
    gap: 0.65rem;
  }
  .cta-row .btn-enter,
  .cta-row .btn-about,
  .cta-row .btn-ghost {
    flex: 1 1 auto;
    min-width: min(100%, 11rem);
  }
  .footer-group {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(42, 50, 60, 0.45);
  }
  .footer-group:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .tile:hover,
  .card-list a.card:hover,
  a.hub-card:hover,
  .hub-card.card:hover,
  .mode-card:hover .mode-frame {
    transform: none; /* avoid awkward lift on dense mobile grids */
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-enter:hover,
  .btn-primary:hover,
  .tile:hover,
  .card-list a.card:hover,
  a.hub-card:hover,
  .hub-card.card:hover,
  .mode-card:hover .mode-frame {
    transform: none !important;
  }
}

/* —— splash phase2f: secondary-page rhythm + button/card polish —— */
/* About / Play / Start-here / Lore: spacing, hover consistency, card borders. No copy/SEO3/nav/legal. */

/* Secondary pages: shared vertical rhythm under section heroes */
main.page > .lede,
.start-here-page > .lede {
  margin: 1.35rem 0 1.65rem;
  max-width: 42rem;
  line-height: 1.65;
}
main.page > .ap-art-note,
.start-here-page > .ap-art-note {
  margin: 0.55rem 0 0;
}
main.page > .ap-dept {
  margin: 0 0 1rem;
}
main.page .arco-island,
.start-here-page .arco-island {
  margin-top: 0.35rem;
  margin-bottom: 1.75rem;
}
main.page .arco-panel__body .prose > p:first-child,
main.page .arco-panel__body .prose > .hint:first-child {
  margin-top: 0;
}
main.page .arco-panel__body .cta-row,
.start-here-page .arco-panel__body .cta-row {
  margin-top: 1.35rem;
  gap: 0.65rem 0.8rem;
}
main.page .play-footnote,
.start-here-page .play-footnote {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Play + Start-here: mode grid breathing room after hero */
main.page .mode-grid,
.start-here-page .mode-grid,
.start-here-grid {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}
.mode-card .mode-blurb {
  margin-bottom: 0.85rem;
}
.mode-card .btn,
.start-card .btn {
  margin-top: 0.15rem;
}
.start-here-page .start-limits {
  margin-top: 1.65rem;
}

/* Button hover consistency across enter / about / ghost / cyan / plain .btn */
.btn {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease,
    filter 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.btn-about:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.btn-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(62, 198, 216, 0.22);
}
/* Plain .btn (lore archive / chronicle links) — match ghost lift without inventing a new style */
.cta-row > a.btn:not(.btn-enter):not(.btn-primary):not(.btn-about):not(.btn-ghost):not(.btn-cyan):hover {
  transform: translateY(-1px);
  border-color: rgba(201, 168, 92, 0.42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.btn.sm:hover {
  transform: translateY(-1px);
}

/* Card / frame borders: slightly clearer default edge, shared hover brighten */
.tile,
.card-list a.card,
a.hub-card,
.hub-card.card {
  border-color: rgba(42, 50, 60, 0.95);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.18);
}
.tile:hover,
.card-list a.card:hover,
a.hub-card:hover,
.hub-card.card:hover {
  border-color: rgba(201, 168, 92, 0.42);
}
.mode-frame {
  border-color: rgba(42, 50, 60, 0.92);
}
.start-card .mode-frame {
  border-color: rgba(42, 50, 60, 0.92);
}
.start-card-optional .mode-frame {
  border-color: rgba(196, 163, 90, 0.32);
}
.mode-card:hover .mode-frame,
.start-card:hover .mode-frame {
  border-color: rgba(201, 168, 92, 0.38);
}
.start-card:hover .mode-frame {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 16px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.start-card-optional:hover .mode-frame {
  border-color: rgba(196, 163, 90, 0.48);
}

/* Lore gallery / dept chrome: quieter edge alignment with cards */
.ap-lore-gallery {
  margin-top: 1.5rem;
  gap: 0.85rem;
}
.ap-dept {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(42, 50, 60, 0.55);
}

@media (max-width: 720px) {
  .btn-about:hover,
  .btn-ghost:hover,
  .btn-cyan:hover,
  .btn.sm:hover,
  .cta-row > a.btn:not(.btn-enter):not(.btn-primary):not(.btn-about):not(.btn-ghost):not(.btn-cyan):hover,
  .start-card:hover .mode-frame {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-about:hover,
  .btn-ghost:hover,
  .btn-cyan:hover,
  .btn.sm:hover,
  .cta-row > a.btn:not(.btn-enter):not(.btn-primary):not(.btn-about):not(.btn-ghost):not(.btn-cyan):hover,
  .start-card:hover .mode-frame {
    transform: none !important;
  }
}

/* —— splash phase2g: Play + Start-here Steam-bound polish —— */
/* Hero/CTA hierarchy, card spacing, quieter secondaries, mobile rhythm. CSS only. */

/* Play / Start-here section heroes: clearer title stack + breathing room */
main.page > .ap-section-hero,
.start-here-page > .ap-section-hero {
  margin-bottom: 0.15rem;
}
main.page > .ap-section-hero .ap-section-hero-inner,
.start-here-page > .ap-section-hero .ap-section-hero-inner {
  padding: 1.35rem 1.25rem 1.2rem;
}
main.page > .ap-section-hero h1,
.start-here-page > .ap-section-hero h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 22ch;
}
main.page > .ap-section-hero .ap-section-kicker,
.start-here-page > .ap-section-hero .ap-section-kicker {
  margin-bottom: 0.55rem;
  opacity: 0.92;
}

/* Play mode cards: primary Enter vs quieter Sandbox secondary */
main.page .mode-grid {
  gap: 1.45rem;
  margin-top: 0.55rem;
  margin-bottom: 0.85rem;
}
.mode-card .mode-frame {
  padding: 1.6rem 1.45rem 1.55rem;
  gap: 0.72rem;
}
.mode-card .mode-kicker {
  margin-bottom: 0.05rem;
}
.mode-card h2 {
  margin-bottom: 0.1rem;
}
.mode-card .mode-blurb {
  margin-bottom: 1rem;
  line-height: 1.58;
}
/* Story primary CTA weight */
.mode-story .btn-enter {
  padding: 0.92rem 1.55rem;
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(62, 198, 216, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* Sandbox / about secondary: quieter than Enter */
.mode-sandbox .btn-about,
.mode-card .btn-about {
  padding: 0.82rem 1.3rem;
  opacity: 0.92;
  font-weight: 650;
  border-color: rgba(232, 93, 4, 0.38);
  background: rgba(232, 93, 4, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.mode-sandbox .btn-about:hover,
.mode-card .btn-about:hover {
  opacity: 1;
  filter: brightness(1.05);
}

/* Play “Before you enter” secondary CTA row: ghost buttons stay quiet */
main.page .prose > .cta-row {
  margin-top: 1.25rem;
  gap: 0.55rem 0.7rem;
}
main.page .prose > .cta-row .btn-ghost {
  padding: 0.72rem 1.1rem;
  font-weight: 600;
  color: var(--muted);
  border-color: rgba(42, 50, 60, 0.8);
  background: transparent;
  box-shadow: none;
}
main.page .prose > .cta-row .btn-ghost:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.4);
  background: rgba(201, 168, 92, 0.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}
main.page > .prose[aria-label="Before you enter"] {
  margin-top: 1.75rem !important;
}
main.page > .prose[aria-label="Before you enter"] h2 {
  margin-top: 1.45rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.05em;
}
main.page > .prose[aria-label="Before you enter"] h2:first-child {
  margin-top: 0;
}

/* Start-here: card grid rhythm + primary vs optional hierarchy */
.start-here-page .mode-grid,
.start-here-grid {
  gap: 1.35rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.start-card .mode-frame {
  padding: 1.55rem 1.4rem 1.5rem;
  gap: 0.7rem;
}
.start-card .mode-blurb {
  margin-bottom: 0.55rem;
  line-height: 1.58;
}
.start-card .start-world {
  margin: 0.15rem 0 0.55rem;
}
.start-card .btn-enter {
  padding: 0.88rem 1.45rem;
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.start-card-optional .mode-frame {
  opacity: 0.98;
}
.start-card-actions {
  gap: 0.55rem 0.65rem;
  margin-top: 0.45rem;
  align-items: center;
}
.start-card-actions .btn-cyan {
  padding: 0.82rem 1.25rem;
}
/* Quieter secondary in optional card */
.start-card-actions .btn-ghost,
.start-card-actions .btn-ghost.sm {
  padding: 0.62rem 0.95rem;
  font-weight: 600;
  color: var(--muted);
  border-color: rgba(42, 50, 60, 0.78);
  background: transparent;
  box-shadow: none;
  opacity: 0.9;
}
.start-card-actions .btn-ghost:hover,
.start-card-actions .btn-ghost.sm:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.38);
  opacity: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}
.start-here-page .start-limits {
  margin-top: 1.85rem;
  margin-bottom: 1.25rem;
}
.start-here-page .play-footnote {
  margin-top: 1.5rem;
}

/* Enter / create light hooks: gate + portal CTA hierarchy */
main.portal .gate-card .cta-row {
  gap: 0.65rem 0.8rem;
  margin-top: 1.35rem;
}
main.portal .gate-card .btn-primary {
  padding: 0.9rem 1.5rem;
}
main.portal .gate-card .btn-ghost {
  padding: 0.78rem 1.15rem;
  font-weight: 600;
  color: var(--muted);
  border-color: rgba(42, 50, 60, 0.8);
  background: transparent;
  box-shadow: none;
}
main.portal .gate-card .btn-ghost:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}
main.portal .enter-start-here {
  margin-bottom: 1.15rem;
}
main.portal .portal-kicker {
  margin-bottom: 0.65rem;
}

/* Mobile rhythm: Play + Start-here */
@media (max-width: 720px) {
  main.page > .ap-section-hero .ap-section-hero-inner,
  .start-here-page > .ap-section-hero .ap-section-hero-inner {
    padding: 1.1rem 0.95rem 1rem;
  }
  main.page > .ap-section-hero h1,
  .start-here-page > .ap-section-hero h1 {
    max-width: none;
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  }
  main.page > .lede,
  .start-here-page > .lede {
    margin: 1.1rem 0 1.35rem;
    font-size: 0.98rem;
    line-height: 1.6;
  }
  main.page .mode-grid,
  .start-here-page .mode-grid,
  .start-here-grid {
    gap: 1.05rem;
    margin-top: 0.25rem;
  }
  .mode-card .mode-frame,
  .start-card .mode-frame {
    padding: 1.3rem 1.15rem 1.25rem;
  }
  .mode-card .mode-blurb,
  .start-card .mode-blurb {
    margin-bottom: 0.75rem;
  }
  .mode-story .btn-enter,
  .start-card .btn-enter,
  .mode-sandbox .btn-about,
  .mode-card .btn-about {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .start-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .start-card-actions .btn,
  .start-card-actions .btn-ghost,
  .start-card-actions .btn-ghost.sm {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  main.page .prose > .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  main.page .prose > .cta-row .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  main.page > .prose[aria-label="Before you enter"] {
    margin-top: 1.35rem !important;
  }
  .start-here-page .start-limits {
    margin-top: 1.45rem;
  }
  main.page .prose > .cta-row .btn-ghost:hover,
  .start-card-actions .btn-ghost:hover,
  .start-card-actions .btn-ghost.sm:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  main.page .prose > .cta-row .btn-ghost:hover,
  .start-card-actions .btn-ghost:hover,
  .start-card-actions .btn-ghost.sm:hover {
    transform: none !important;
  }
}

/* —— splash phase2h: About / Lore / Community (+ light Wiki hub) —— */
/* Section rhythm, card grids, prose measure, quieter secondaries. CSS only. */

/* Shared secondary-page heroes already polished in 2g — keep About/Community aligned */
main.page.community-hub > .ap-section-hero {
  margin-bottom: 0.15rem;
}
main.page.community-hub > .ap-section-hero .ap-section-hero-inner {
  padding: 1.35rem 1.25rem 1.2rem;
}
main.page.community-hub > .ap-section-hero h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 24ch;
}
main.page.community-hub > .ap-section-hero .ap-section-kicker {
  margin-bottom: 0.55rem;
  opacity: 0.92;
}

/* Prose measure + section rhythm (About / Lore islands) */
main.page .arco-panel__body .prose {
  max-width: 40.5rem;
  font-size: 0.965rem;
  line-height: 1.68;
}
main.page .arco-panel__body .prose > .hint {
  margin-bottom: 1.15rem;
  max-width: 38rem;
  line-height: 1.55;
  color: var(--muted);
}
main.page .arco-panel__body .prose h2 {
  margin: 1.85rem 0 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(42, 50, 60, 0.55);
  letter-spacing: 0.045em;
  line-height: 1.28;
}
main.page .arco-panel__body .prose h2:first-of-type {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: 0;
}
main.page .arco-panel__body .prose p {
  margin: 0 0 0.95rem;
  max-width: 40rem;
}
main.page .arco-panel__body .prose ul {
  margin: 0 0 1.1rem;
  max-width: 40rem;
}
main.page .arco-panel__body .prose li {
  margin: 0.35rem 0;
  line-height: 1.62;
}
/* Quieter in-prose secondary links (Explore further lists stay readable) */
main.page .arco-panel__body .prose ul a {
  color: rgba(154, 163, 173, 0.95);
  text-decoration-color: rgba(154, 163, 173, 0.35);
}
main.page .arco-panel__body .prose ul a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 168, 92, 0.55);
}
main.page .arco-panel__body .prose p > a:not(.btn) {
  text-underline-offset: 0.15em;
}

/* About / Lore CTA hierarchy: Enter primary · About mid · Ghost quiet */
main.page .arco-panel__body .prose > .cta-row {
  margin-top: 1.45rem;
  margin-bottom: 0.35rem;
  gap: 0.55rem 0.7rem;
  flex-wrap: wrap;
}
main.page .arco-panel__body .prose > .cta-row .btn-enter {
  padding: 0.88rem 1.4rem;
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
main.page .arco-panel__body .prose > .cta-row .btn-about {
  padding: 0.8rem 1.25rem;
  opacity: 0.94;
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
main.page .arco-panel__body .prose > .cta-row .btn-about:hover {
  opacity: 1;
}
main.page .arco-panel__body .prose > .cta-row .btn-ghost,
main.page .arco-panel__body .prose > .cta-row > a.btn:not(.btn-enter):not(.btn-primary):not(.btn-about):not(.btn-ghost):not(.btn-cyan) {
  padding: 0.72rem 1.1rem;
  font-weight: 600;
  color: var(--muted);
  border-color: rgba(42, 50, 60, 0.8);
  background: transparent;
  box-shadow: none;
  opacity: 0.92;
}
main.page .arco-panel__body .prose > .cta-row .btn-ghost:hover,
main.page .arco-panel__body .prose > .cta-row > a.btn:not(.btn-enter):not(.btn-primary):not(.btn-about):not(.btn-ghost):not(.btn-cyan):hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.4);
  background: rgba(201, 168, 92, 0.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  opacity: 1;
  transform: translateY(-1px);
}

/* Lore: dept + gallery rhythm */
main.page > .ap-dept {
  margin: 0.15rem 0 0.85rem;
  padding-bottom: 0.45rem;
}
main.page > h1 {
  margin: 0 0 0.85rem;
  letter-spacing: 0.035em;
  line-height: 1.2;
  max-width: 28ch;
}
main.page .ap-lore-gallery {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  gap: 1rem;
}
main.page .ap-lore-gallery figure {
  margin: 0;
}
main.page .ap-lore-gallery figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Community hub: card grid professional spacing */
main.page.community-hub > .lede {
  margin: 1.25rem 0 1.55rem;
  max-width: 42rem;
  line-height: 1.65;
}
main.page.community-hub .hub-grid {
  gap: 1.15rem;
  margin: 0.25rem 0 1.85rem;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
}
main.page.community-hub a.hub-card,
main.page.community-hub .hub-card.card {
  padding: 1.3rem 1.35rem 1.25rem;
  border-color: rgba(42, 50, 60, 0.95);
}
main.page.community-hub .hub-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  letter-spacing: 0.035em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
main.page.community-hub .hub-card h2 .arco-icon {
  flex: 0 0 auto;
  opacity: 0.88;
}
main.page.community-hub .hub-card p {
  font-size: 0.9rem;
  line-height: 1.58;
  color: rgba(154, 163, 173, 0.92);
}
main.page.community-hub .arco-island {
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}
main.page.community-hub .community-account-panel p {
  max-width: 40rem;
  line-height: 1.62;
}
main.page.community-hub .community-account-panel .hint {
  font-size: 0.9rem;
  color: rgba(154, 163, 173, 0.88);
}
main.page.community-hub .community-account-panel .hint a {
  color: rgba(154, 163, 173, 0.95);
  text-decoration-color: rgba(154, 163, 173, 0.35);
}
main.page.community-hub .community-account-panel .hint a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 168, 92, 0.55);
}

/* Wiki hub (light chrome only — home card list + toc + lede) */
.wiki-main > .ap-section-hero {
  margin-bottom: 0.15rem;
}
.wiki-main > .ap-section-hero .ap-section-hero-inner {
  padding: 1.25rem 1.15rem 1.1rem;
}
.wiki-main > .ap-section-hero h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 26ch;
}
.wiki-main > .lede {
  margin: 1.15rem 0 1.35rem;
  max-width: 42rem;
  line-height: 1.65;
}
.wiki-main > .wiki-toc {
  margin: 0 0 1.45rem;
  padding: 1.05rem 1.2rem;
  border-color: rgba(42, 50, 60, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 6px 16px rgba(0, 0, 0, 0.14);
}
.wiki-main > .wiki-toc h2 {
  margin: 0 0 0.45rem;
  letter-spacing: 0.05em;
  color: rgba(201, 168, 92, 0.9);
}
.wiki-main > .wiki-toc a {
  color: rgba(154, 163, 173, 0.95);
}
.wiki-main > .wiki-toc a:hover {
  color: var(--gold-soft);
}
.wiki-main > .wiki-prose h2 {
  margin: 0.35rem 0 0.85rem;
  letter-spacing: 0.045em;
}
.wiki-main > .card-list {
  gap: 0.95rem;
  margin: 0 0 1.65rem;
}
.wiki-main > .card-list a.card {
  padding: 1.2rem 1.25rem;
  border-color: rgba(42, 50, 60, 0.95);
}
.wiki-main > .card-list a.card h2 {
  margin: 0 0 0.4rem;
  letter-spacing: 0.035em;
}
.wiki-main > .card-list a.card p {
  margin: 0;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.92);
}
.wiki-main > .wiki-crumb {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(154, 163, 173, 0.78);
}
.wiki-main > .wiki-crumb a {
  color: rgba(154, 163, 173, 0.9);
}
.wiki-main > .wiki-crumb a:hover {
  color: var(--gold-soft);
}

@media (max-width: 720px) {
  main.page.community-hub > .ap-section-hero .ap-section-hero-inner,
  .wiki-main > .ap-section-hero .ap-section-hero-inner {
    padding: 1.1rem 0.95rem 1rem;
  }
  main.page.community-hub > .ap-section-hero h1,
  .wiki-main > .ap-section-hero h1,
  main.page > h1 {
    max-width: none;
  }
  main.page .arco-panel__body .prose {
    max-width: none;
    font-size: 0.95rem;
  }
  main.page.community-hub .hub-grid {
    gap: 0.95rem;
    grid-template-columns: 1fr;
  }
  main.page .arco-panel__body .prose > .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  main.page .arco-panel__body .prose > .cta-row .btn-enter,
  main.page .arco-panel__body .prose > .cta-row .btn-about,
  main.page .arco-panel__body .prose > .cta-row .btn-ghost,
  main.page .arco-panel__body .prose > .cta-row > a.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  main.page .arco-panel__body .prose > .cta-row .btn-ghost:hover,
  main.page .arco-panel__body .prose > .cta-row > a.btn:not(.btn-enter):not(.btn-primary):not(.btn-about):not(.btn-ghost):not(.btn-cyan):hover {
    transform: none;
  }
  .wiki-main > .card-list {
    gap: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  main.page .arco-panel__body .prose > .cta-row .btn-ghost:hover,
  main.page .arco-panel__body .prose > .cta-row > a.btn:not(.btn-enter):not(.btn-primary):not(.btn-about):not(.btn-ghost):not(.btn-cyan):hover {
    transform: none !important;
  }
}

/* —— splash phase2i: Yellow Pages + Real Estate (+ light Directory) —— */
/* Listing/card grids, quieter post CTAs, honest empty/unavailable chrome. CSS only. */

/* Shared listing grids (YP + housing) */
.listing-grid {
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  margin: 0.15rem 0 0.35rem;
}
.listing-card {
  border-color: rgba(42, 50, 60, 0.95);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.55), rgba(12, 16, 22, 0.82));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.listing-card:hover {
  border-color: rgba(126, 200, 216, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}
.listing-body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
}
.listing-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  line-height: 1.28;
}
.listing-body > p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.94);
}
.listing-meta {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(154, 163, 173, 0.88);
}
.listing-meta li {
  margin: 0.18rem 0;
}
.listing-shot {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(154, 163, 173, 0.72);
  font-size: 0.82rem;
}

/* Honest empty / unavailable listing states */
.listing-card.is-empty {
  padding: 0;
  opacity: 1;
  border-color: rgba(42, 50, 60, 0.85);
  background:
    linear-gradient(165deg, rgba(18, 22, 28, 0.5), rgba(12, 16, 22, 0.72));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.12);
  grid-column: 1 / -1;
  max-width: 36rem;
}
.listing-card.is-empty:hover {
  transform: none;
  border-color: rgba(42, 50, 60, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.12);
}
.listing-card.is-empty .listing-body {
  padding: 1.25rem 1.35rem 1.35rem;
  align-items: flex-start;
}
.listing-card.is-empty .ap-ui-state,
.listing-card.is-empty .ap-empty {
  width: 100%;
}
.listing-card.is-empty .ap-ui-state__title,
.listing-card.is-empty .listing-body > h2 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: rgba(215, 221, 228, 0.92);
}
.listing-card.is-empty .ap-ui-state__hint,
.listing-card.is-empty .listing-body .hint {
  margin: 0.35rem 0 0;
  max-width: 34rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.88);
}
.listing-card.is-empty .ap-empty img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0.75rem 0 0.35rem;
  border-radius: 10px;
  opacity: 0.88;
  border: 1px solid rgba(42, 50, 60, 0.75);
}
.listing-card.is-empty .ap-ui-state--error .ap-ui-state__title {
  color: rgba(240, 160, 160, 0.95);
}

/* Yellow Pages page chrome */
.yp-page > .ap-section-hero {
  margin-bottom: 0.15rem;
}
.yp-page > .ap-section-hero .ap-section-hero-inner {
  padding: 1.3rem 1.2rem 1.15rem;
}
.yp-page > .ap-section-hero h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 26ch;
}
.yp-page > .ap-section-hero .ap-section-kicker {
  margin-bottom: 0.5rem;
  opacity: 0.92;
}
.yp-page > .lede {
  margin: 1.2rem 0 1.4rem;
  max-width: 42rem;
  line-height: 1.65;
}
.yp-page .yp-banner {
  margin: 0 0 0.45rem;
  letter-spacing: 0.18em;
  opacity: 0.88;
}
.yp-page > .arco-island.yp-panel,
.yp-page > .yp-panel.arco-island {
  margin-bottom: 1.35rem;
}
.yp-page .arco-panel__rail #yp-post-cta,
.yp-page #yp-post-cta.btn-primary {
  margin-left: auto;
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 650;
  opacity: 0.9;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  background: linear-gradient(145deg, rgba(201, 168, 92, 0.82), rgba(138, 100, 24, 0.88));
  border-color: rgba(232, 184, 74, 0.55);
  color: #1a1206;
}
.yp-page .arco-panel__rail #yp-post-cta:hover,
.yp-page #yp-post-cta.btn-primary:hover {
  opacity: 1;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}
.yp-page .yp-cats {
  gap: 0.5rem;
  margin: 0.35rem 0 0.85rem;
}
.yp-page .yp-cat {
  padding: 0.38rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-color: rgba(232, 184, 74, 0.28);
  background: rgba(16, 14, 10, 0.55);
  color: rgba(240, 215, 138, 0.88);
}
.yp-page .yp-cat:hover {
  border-color: rgba(232, 184, 74, 0.55);
  color: #f0d78a;
}
.yp-page .yp-cat.is-active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.yp-page .arco-panel__body > .hint {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: rgba(154, 163, 173, 0.86);
}
.yp-section {
  margin-top: 1.65rem;
}
.yp-section-title {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  color: rgba(243, 217, 138, 0.92);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(201, 168, 92, 0.18);
}
.yp-grid.listing-grid {
  gap: 1.1rem;
}
.yp-card {
  border-color: rgba(201, 168, 92, 0.22);
  background:
    linear-gradient(165deg, rgba(36, 30, 16, 0.38), rgba(14, 18, 24, 0.82));
}
.yp-card:hover {
  border-color: rgba(232, 184, 74, 0.38);
}
.yp-badge {
  top: 0.7rem;
  right: 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.yp-card .listing-body h2 {
  padding-right: 5rem;
  color: rgba(243, 217, 138, 0.95);
}
.yp-grid .play-mini {
  margin-top: 0.15rem;
  margin-right: 0.35rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(232, 184, 74, 0.1);
  border-color: rgba(232, 184, 74, 0.32);
  color: rgba(240, 215, 138, 0.92);
  box-shadow: none;
}
.yp-grid .play-mini.is-secondary,
.yp-grid .play-mini.yp-cal-add {
  background: transparent;
  border-color: rgba(42, 50, 60, 0.85);
  color: rgba(154, 163, 173, 0.92);
  opacity: 0.92;
}
.yp-grid .play-mini.is-secondary:hover,
.yp-grid .play-mini.yp-cal-add:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.4);
  background: rgba(201, 168, 92, 0.05);
  opacity: 1;
}
.yp-page > .hint {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: rgba(154, 163, 173, 0.82);
  max-width: 48rem;
  line-height: 1.55;
}
.yp-page > .hint a {
  color: rgba(154, 163, 173, 0.95);
  text-decoration-color: rgba(154, 163, 173, 0.35);
}
.yp-page > .hint a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 168, 92, 0.55);
}

/* Quieter YP post compose CTAs / gate */
.yp-page .yp-compose .btn-row {
  gap: 0.55rem 0.7rem;
  margin-top: 0.85rem;
}
.yp-page .yp-compose #yp-post-btn.btn-primary {
  padding: 0.72rem 1.15rem;
  font-weight: 650;
  opacity: 0.94;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.yp-page .yp-compose #yp-post-btn.btn-primary:disabled {
  opacity: 0.45;
  box-shadow: none;
}
.yp-page .yp-compose .btn-ghost {
  padding: 0.68rem 1.05rem;
  font-weight: 600;
  color: var(--muted);
  border-color: rgba(42, 50, 60, 0.8);
  background: transparent;
  box-shadow: none;
  opacity: 0.9;
}
.yp-page .yp-compose .btn-ghost:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.4);
  background: rgba(201, 168, 92, 0.05);
  opacity: 1;
}
.yp-page #yp-gate .btn-primary {
  padding: 0.7rem 1.1rem;
  font-weight: 650;
  opacity: 0.92;
}

/* Real Estate / Player Housing */
main.page > .ap-section-hero + .lede {
  margin: 1.2rem 0 1.4rem;
  max-width: 42rem;
  line-height: 1.65;
}
main.page > #listing-grid.listing-grid {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}
main.page #listing-grid .listing-card .btn-row {
  gap: 0.45rem 0.55rem;
  margin-top: 0.15rem;
  flex-wrap: wrap;
}
main.page #listing-grid .listing-card .btn.sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 650;
}
main.page #listing-grid .listing-card .btn-cyan.sm {
  opacity: 0.94;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}
/* Quieter unavailable purchase CTA (disabled "Not available yet") */
main.page #listing-grid .listing-card .re-buy.btn-primary,
main.page #listing-grid .listing-card .re-buy.btn-primary:disabled {
  opacity: 0.55;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(154, 163, 173, 0.95);
  background: rgba(20, 24, 30, 0.65);
  border-color: rgba(42, 50, 60, 0.9);
  box-shadow: none;
  cursor: not-allowed;
}
main.page #listing-grid .listing-card .re-buy-msg {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: rgba(154, 163, 173, 0.9);
}
main.page > .hint {
  font-size: 0.88rem;
  color: rgba(154, 163, 173, 0.82);
  max-width: 48rem;
  line-height: 1.55;
}
main.page > .hint a {
  color: rgba(154, 163, 173, 0.95);
  text-decoration-color: rgba(154, 163, 173, 0.35);
}
main.page > .hint a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 168, 92, 0.55);
}
/* Example listing detail chrome */
main.page .listing-detail {
  margin-top: 0.5rem;
}
main.page .listing-detail .listing-shot.large {
  border-color: rgba(42, 50, 60, 0.9);
  background: linear-gradient(145deg, #1a222c, #0c1016 60%, #182028);
  color: rgba(154, 163, 173, 0.78);
}
main.page .listing-detail .placeholder-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px dashed rgba(154, 163, 173, 0.35);
  background: rgba(14, 18, 24, 0.55);
  color: rgba(154, 163, 173, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
}
main.page .listing-detail .btn-row .btn-about {
  padding: 0.72rem 1.15rem;
  opacity: 0.94;
}

/* Directory light chrome */
main.portal > .ap-section-hero {
  margin-bottom: 0.25rem;
}
main.portal > .ap-section-hero .ap-section-hero-inner {
  padding: 1.25rem 1.15rem 1.1rem;
}
main.portal > .ap-section-hero h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 20ch;
}
main.portal .portal-hero {
  margin: 1.1rem 0 1.25rem;
}
main.portal .portal-hero h2 {
  margin: 0.25rem 0 0.45rem;
  letter-spacing: 0.035em;
  line-height: 1.22;
}
main.portal .portal-lede {
  max-width: 42rem;
  line-height: 1.6;
  color: rgba(154, 163, 173, 0.92);
}
main.portal .dir-toolbar {
  gap: 0.65rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 50, 60, 0.85);
  background: rgba(14, 18, 24, 0.45);
}
main.portal .dir-grid {
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 0.65rem;
}
main.portal .dir-card {
  border-color: rgba(42, 50, 60, 0.95);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 6px 14px rgba(0, 0, 0, 0.14);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
main.portal .dir-card:hover {
  border-color: rgba(126, 200, 216, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
main.portal .dir-card .acts .btn-ghost.sm {
  color: var(--muted);
  border-color: rgba(42, 50, 60, 0.85);
  background: transparent;
  opacity: 0.9;
}
main.portal .dir-card .acts .btn-ghost.sm:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.4);
  background: rgba(201, 168, 92, 0.05);
  opacity: 1;
}
main.portal .gate-card .cta-row {
  gap: 0.55rem 0.7rem;
}
main.portal .gate-card .btn-ghost {
  color: var(--muted);
  border-color: rgba(42, 50, 60, 0.8);
  background: transparent;
  box-shadow: none;
  opacity: 0.92;
}
main.portal .gate-card .btn-ghost:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 168, 92, 0.4);
  background: rgba(201, 168, 92, 0.05);
  opacity: 1;
}
main.portal .dir-grid .ap-ui-state {
  grid-column: 1 / -1;
  max-width: 34rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 50, 60, 0.85);
  background: rgba(14, 18, 24, 0.5);
}
main.portal .dir-grid .ap-ui-state__title {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}
main.portal .dir-grid .ap-ui-state__hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.88);
}
main.portal .dir-grid .ap-empty img {
  width: min(200px, 100%);
  margin-top: 0.75rem;
  border-radius: 10px;
  opacity: 0.88;
  border: 1px solid rgba(42, 50, 60, 0.75);
}

@media (max-width: 720px) {
  .listing-grid,
  .yp-grid.listing-grid,
  main.portal .dir-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }
  .listing-card:hover,
  .yp-card:hover,
  main.portal .dir-card:hover {
    transform: none;
  }
  .yp-page > .ap-section-hero .ap-section-hero-inner,
  main.portal > .ap-section-hero .ap-section-hero-inner {
    padding: 1.05rem 0.95rem 0.95rem;
  }
  .yp-page > .ap-section-hero h1,
  main.portal > .ap-section-hero h1 {
    max-width: none;
  }
  .yp-page .arco-panel__rail {
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .yp-page .arco-panel__rail #yp-post-cta,
  .yp-page #yp-post-cta.btn-primary {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }
  .yp-page .yp-compose .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .yp-page .yp-compose .btn-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  main.page #listing-grid .listing-card .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  main.page #listing-grid .listing-card .btn.sm {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .listing-card.is-empty {
    max-width: none;
  }
  main.portal .dir-toolbar {
    padding: 0.75rem 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .listing-card,
  .yp-card,
  main.portal .dir-card {
    transition: none;
  }
  .listing-card:hover,
  .yp-card:hover,
  main.portal .dir-card:hover {
    transform: none !important;
  }
}

/* —— splash phase2j: Blog + Chronicle polish —— */
/* Card/list rhythm, quieter meta, professional post list. CSS only. */

/* Blog index — hero + lede measure */
main.page > .ap-section-hero[aria-label="Blog header"] {
  margin-bottom: 0.2rem;
}
main.page > .ap-section-hero[aria-label="Blog header"] .ap-section-hero-inner {
  padding: 1.3rem 1.2rem 1.15rem;
}
main.page > .ap-section-hero[aria-label="Blog header"] h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 22ch;
}
main.page > .ap-section-hero[aria-label="Blog header"] .ap-section-kicker {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(154, 163, 173, 0.88);
}
main.page > .ap-art-note {
  margin: 0.55rem 0 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(154, 163, 173, 0.72);
}
main.page > .ap-section-hero[aria-label="Blog header"] + .ap-art-note + .lede,
main.page > .ap-art-note + .lede {
  margin: 1.05rem 0 1.35rem;
  max-width: 42rem;
  line-height: 1.65;
  color: rgba(178, 186, 196, 0.94);
}

/* Blog — professional post list inside framed panel */
main.page .arco-panel__body > .card-list {
  gap: 0.85rem;
  margin: 0.15rem 0 0.1rem;
  padding: 0;
  list-style: none;
  display: grid;
}
main.page .arco-panel__body > .card-list > li {
  margin: 0;
}
main.page .arco-panel__body > .card-list a.card {
  display: block;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.55), rgba(12, 16, 22, 0.82));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 6px 14px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
main.page .arco-panel__body > .card-list a.card:hover {
  border-color: rgba(126, 200, 216, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
main.page .arco-panel__body > .card-list a.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: 0.035em;
  line-height: 1.28;
  color: rgba(232, 236, 242, 0.96);
}
main.page .arco-panel__body > .card-list a.card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.92);
}
main.page .arco-panel__rail h2 {
  letter-spacing: 0.04em;
}

/* Blog post (welcome) — quieter date meta + prose rhythm */
main.page > h1 + .lede {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: rgba(154, 163, 173, 0.78);
  max-width: 42rem;
  line-height: 1.45;
}
main.page .arco-panel__body > .prose {
  max-width: 42rem;
  line-height: 1.65;
}
main.page .arco-panel__body > .prose h3 {
  margin: 1.35rem 0 0.55rem;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: rgba(232, 236, 242, 0.94);
}
main.page .arco-panel__body > .prose p {
  margin: 0 0 0.95rem;
  color: rgba(178, 186, 196, 0.94);
}
main.page .arco-panel__body > .prose a {
  color: rgba(178, 186, 196, 0.98);
  text-decoration-color: rgba(154, 163, 173, 0.35);
}
main.page .arco-panel__body > .prose a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 168, 92, 0.55);
}

/* Chronicle — page chrome + quieter dept/meta */
main.page > .crumb {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: rgba(154, 163, 173, 0.78);
}
main.page > .crumb a {
  color: rgba(154, 163, 173, 0.9);
  text-decoration-color: rgba(154, 163, 173, 0.3);
}
main.page > .crumb a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 168, 92, 0.55);
}
main.page > .ap-dept {
  margin: 0 0 0.75rem;
  opacity: 0.92;
}
main.page > .ap-dept .ap-dept__desc {
  color: rgba(154, 163, 173, 0.82);
  font-weight: 500;
}
main.page > h1 {
  letter-spacing: 0.035em;
  line-height: 1.2;
  max-width: 28ch;
}
main.page > h1 + .lede {
  margin: 0.85rem 0 1.35rem;
  max-width: 44rem;
  line-height: 1.65;
  color: rgba(178, 186, 196, 0.94);
}

/* Chronicle — card/list rhythm */
.ap-chronicle-list {
  gap: 1.05rem;
  margin: 1.1rem 0 1.5rem;
}
.ap-chronicle-card {
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 12px;
  border-color: rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.52), rgba(12, 16, 22, 0.82));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 6px 14px rgba(0, 0, 0, 0.14);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.ap-chronicle-card:hover {
  border-color: rgba(126, 200, 216, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.18);
}
.ap-chronicle-card h2 {
  margin: 0.5rem 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: rgba(243, 230, 200, 0.95);
}
.ap-chronicle-card p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.58;
  color: rgba(178, 186, 196, 0.9);
}
.ap-chronicle-card p:last-child {
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(154, 163, 173, 0.86);
}
.ap-chronicle-card p a {
  color: rgba(154, 163, 173, 0.95);
  text-decoration-color: rgba(154, 163, 173, 0.32);
}
.ap-chronicle-card p a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 168, 92, 0.55);
}

/* Quieter chronicle meta chips */
.ap-chronicle-meta {
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.2rem;
}
.ap-outlet-chip {
  padding: 0.12rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(120, 180, 255, 0.1);
  color: rgba(184, 212, 255, 0.88);
  border-color: rgba(120, 180, 255, 0.22);
}
.ap-era-chip {
  opacity: 0.88;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: rgba(154, 163, 173, 0.9);
}
.ap-fiction-tag {
  padding: 0.1rem 0.42rem;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: rgba(243, 230, 200, 0.72);
  border-color: rgba(243, 230, 200, 0.2);
  background: rgba(243, 230, 200, 0.04);
}

/* Chronicle intro hints quieter */
main.page .arco-panel__body .prose > .hint {
  margin: 0 0 0.95rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.86);
}
main.page .arco-panel__body .prose > .hint a {
  color: rgba(154, 163, 173, 0.95);
  text-decoration-color: rgba(154, 163, 173, 0.32);
}
main.page .arco-panel__body .prose > .hint a:hover {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 168, 92, 0.55);
}
main.page .arco-panel__body .prose > p:not(.hint) {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.88);
}

@media (max-width: 720px) {
  main.page > .ap-section-hero[aria-label="Blog header"] .ap-section-hero-inner {
    padding: 1.05rem 0.95rem 0.95rem;
  }
  main.page > .ap-section-hero[aria-label="Blog header"] h1,
  main.page > h1 {
    max-width: none;
  }
  main.page .arco-panel__body > .card-list a.card:hover {
    transform: none;
  }
  main.page .arco-panel__body > .card-list {
    gap: 0.75rem;
  }
  .ap-chronicle-list {
    gap: 0.9rem;
  }
  .ap-chronicle-card {
    padding: 1rem 1.05rem 1.1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  main.page .arco-panel__body > .card-list a.card {
    transition: none;
  }
  main.page .arco-panel__body > .card-list a.card:hover {
    transform: none !important;
  }
  .ap-chronicle-card {
    transition: none;
  }
}

/* —— splash phase2k: Sandbox gate + Account chrome —— */
/* Cards/lists/forms polish, quieter danger, professional empty states. CSS only. */

/* Sandbox hero + gate rhythm */
.sandbox-page > .ap-section-hero {
  margin-bottom: 0.35rem;
}
.sandbox-page > .ap-section-hero .ap-section-hero-inner {
  padding: 1.3rem 1.2rem 1.15rem;
}
.sandbox-page > .ap-section-hero h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 22ch;
}
.sandbox-page > .ap-section-hero .ap-section-kicker {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(154, 163, 173, 0.88);
}
.sandbox-page .portal-hero {
  margin: 1.1rem 0 1.35rem;
}
.sandbox-page .portal-hero h1 {
  letter-spacing: 0.035em;
  line-height: 1.2;
}
.sandbox-page .portal-lede {
  max-width: 42rem;
  line-height: 1.6;
  color: rgba(178, 186, 196, 0.94);
}

/* Gate + unavailable cards — professional, not loud */
.sandbox-page > .gate-card,
.sandbox-page #gate.gate-card,
.sandbox-page #unavailable.gate-card {
  max-width: 34rem;
  margin: 1.5rem auto 1.75rem;
  padding: 1.65rem 1.45rem 1.7rem;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.55), rgba(12, 16, 22, 0.86));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.16);
}
.sandbox-page > .gate-card .portal-kicker,
.sandbox-page #gate .portal-kicker,
.sandbox-page #unavailable .portal-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 163, 173, 0.88);
}
.sandbox-page > .gate-card h2,
.sandbox-page #gate h2,
.sandbox-page #unavailable h2 {
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: rgba(232, 236, 242, 0.96);
}
.sandbox-page > .gate-card .portal-lede,
.sandbox-page #gate .portal-lede,
.sandbox-page #unavailable .portal-lede {
  margin: 0 0 0.55rem;
  max-width: none;
  color: rgba(178, 186, 196, 0.94);
}
.sandbox-page > .gate-card .hint,
.sandbox-page #unavailable .hint {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.88);
}
.sandbox-page > .gate-card .cta-row,
.sandbox-page #gate .cta-row,
.sandbox-page #unavailable .cta-row {
  margin-top: 1.2rem;
  gap: 0.55rem;
  justify-content: flex-start;
}
.sandbox-page > .gate-card .btn-ghost,
.sandbox-page #gate .btn-ghost,
.sandbox-page #unavailable .btn-ghost {
  border-color: rgba(42, 50, 60, 0.95);
  color: rgba(178, 186, 196, 0.92);
  background: rgba(12, 16, 22, 0.35);
}
.sandbox-page > .gate-card .btn-ghost:hover,
.sandbox-page #gate .btn-ghost:hover,
.sandbox-page #unavailable .btn-ghost:hover {
  border-color: rgba(126, 200, 216, 0.28);
  color: rgba(232, 236, 242, 0.96);
  background: rgba(62, 198, 216, 0.06);
}

/* Starred + create panel chrome */
.sandbox-page #starred-sandbox.panel {
  margin: 1.15rem 0 1.1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 12px;
  border-color: rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.45), rgba(12, 16, 22, 0.78));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.12);
}
.sandbox-page #starred-sandbox h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.035em;
}
.sandbox-page #starred-sandbox .hint {
  margin: 0 0 0.75rem;
  color: rgba(154, 163, 173, 0.86);
}
.sandbox-page #starred-sandbox .list-item {
  border-radius: 8px;
  border-color: rgba(42, 50, 60, 0.9);
  background: rgba(7, 9, 15, 0.42);
}
.sandbox-create.mode-frame {
  margin: 0 0 1.65rem;
  padding: 1.3rem 1.35rem 1.45rem;
  border-radius: 12px;
  border-color: rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.52), rgba(12, 16, 22, 0.84));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.14);
}
.sandbox-create .mode-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(154, 163, 173, 0.88);
}
.sandbox-create h2 {
  margin: 0.1rem 0 0.45rem;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
}
.sandbox-create .mode-blurb {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.9);
}
.sandbox-create .field label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(154, 163, 173, 0.88);
}
.sandbox-create .field input,
.sandbox-create .field textarea,
.sandbox-filters input,
.sandbox-filters select {
  border-radius: 6px;
  border-color: rgba(42, 50, 60, 0.95);
  background: rgba(8, 11, 16, 0.72);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sandbox-create .field input:focus,
.sandbox-filters input:focus,
.sandbox-filters select:focus {
  outline: none;
  border-color: rgba(126, 200, 216, 0.42);
  box-shadow: 0 0 0 3px rgba(62, 198, 216, 0.1);
}
.sandbox-create .vis-picker .check-row {
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.sandbox-create .vis-picker .check-row.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sandbox-create .thumb-swatch {
  border-radius: 8px;
  border-width: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sandbox-create .thumb-swatch.is-selected {
  border-color: rgba(126, 200, 216, 0.55);
  box-shadow: 0 0 0 2px rgba(62, 198, 216, 0.12);
}
.sandbox-create .btn-row {
  margin-top: 0.85rem;
  gap: 0.55rem;
  align-items: center;
}
.sandbox-create #cap-chip {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(154, 163, 173, 0.9);
  border-color: rgba(42, 50, 60, 0.95);
  background: rgba(12, 16, 22, 0.4);
}

/* World list toolbar + cards */
.sandbox-toolbar {
  margin-bottom: 0.95rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(42, 50, 60, 0.75);
}
.sandbox-toolbar h2 {
  font-size: 1.08rem;
  letter-spacing: 0.035em;
}
.sandbox-filters input,
.sandbox-filters select {
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
}
.world-card-grid {
  gap: 1.05rem;
}
.world-card.mode-frame {
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 12px;
  border-color: rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.52), rgba(12, 16, 22, 0.84));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 6px 14px rgba(0, 0, 0, 0.14);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.world-card.mode-frame:hover {
  border-color: rgba(126, 200, 216, 0.26);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.world-card-thumb {
  border-radius: 8px;
  border-color: rgba(42, 50, 60, 0.95);
}
.world-card-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}
.world-card-body h3 a {
  color: rgba(232, 236, 242, 0.96);
}
.world-card-body h3 a:hover {
  color: var(--gold-soft);
}
.world-card-meta {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(154, 163, 173, 0.88);
}
.world-card-url {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  color: rgba(154, 163, 173, 0.72);
}
.world-card-acts .btn-ghost.sm {
  border-color: rgba(42, 50, 60, 0.95);
  color: rgba(178, 186, 196, 0.9);
  background: rgba(12, 16, 22, 0.3);
}
.world-card-acts .btn-ghost.sm:hover {
  border-color: rgba(126, 200, 216, 0.28);
  color: rgba(232, 236, 242, 0.96);
}

/* World detail manage chrome */
.sandbox-page .world-detail.mode-frame {
  border-radius: 12px;
  border-color: rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.52), rgba(12, 16, 22, 0.84));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.14);
}
.sandbox-page .world-detail + .panel,
.sandbox-page #app > .panel {
  border-radius: 12px;
  border-color: rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.45), rgba(12, 16, 22, 0.8));
}

/* Professional empty states (sandbox + account) */
.sandbox-page .ap-empty,
main.portal .ap-empty {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin: 1.15rem auto 0.5rem;
  padding: 1.35rem 1.1rem 1.45rem;
  max-width: 22rem;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(42, 50, 60, 0.95);
  background: rgba(12, 16, 22, 0.35);
}
.sandbox-page .ap-empty img,
main.portal .ap-empty img {
  width: min(220px, 70vw);
  height: auto;
  opacity: 0.9;
  border-radius: 8px;
}
.sandbox-page .ap-empty p,
main.portal .ap-empty p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(154, 163, 173, 0.9);
}
main.portal .ap-ui-state--compact,
.sandbox-page .ap-ui-state--compact {
  margin: 0.35rem 0;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  border: 1px dashed rgba(42, 50, 60, 0.9);
  background: rgba(12, 16, 22, 0.32);
}
main.portal .ap-ui-state--compact .ap-ui-state__title,
.sandbox-page .ap-ui-state--compact .ap-ui-state__title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(178, 186, 196, 0.94);
}
main.portal .ap-ui-state--compact .ap-ui-state__hint,
.sandbox-page .ap-ui-state--compact .ap-ui-state__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(154, 163, 173, 0.86);
}
main.portal .ap-ui-state--error.ap-ui-state--compact {
  border-style: solid;
  border-color: rgba(212, 92, 92, 0.28);
  background: rgba(40, 18, 18, 0.28);
}
main.portal .ap-ui-state--error .ap-ui-state__title {
  color: rgba(224, 140, 140, 0.95);
}

/* Account portal — subnav + panels + forms */
main.portal .portal-hero {
  margin-bottom: 1.15rem;
}
main.portal .portal-hero h1 {
  letter-spacing: 0.035em;
  line-height: 1.2;
}
main.portal .portal-lede {
  max-width: 44rem;
  line-height: 1.6;
  color: rgba(178, 186, 196, 0.94);
}
main.portal .acct-subnav {
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.25rem 0.5rem;
  border-bottom-color: rgba(42, 50, 60, 0.85);
  background: linear-gradient(180deg, rgba(12, 14, 17, 0.97), rgba(12, 14, 17, 0.9));
}
main.portal .acct-subnav a {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(154, 163, 173, 0.9);
}
main.portal .acct-subnav a:hover {
  color: rgba(232, 236, 242, 0.96);
  border-color: rgba(126, 200, 216, 0.28);
  background: rgba(62, 198, 216, 0.06);
}
main.portal .acct-subnav a.is-active,
main.portal .acct-subnav a[aria-current="page"] {
  color: rgba(242, 230, 196, 0.98);
  border-color: rgba(201, 168, 92, 0.42);
  background: rgba(201, 168, 92, 0.1);
  box-shadow: 0 0 10px rgba(201, 168, 92, 0.07);
}
main.portal .acct-panel > .panel,
main.portal .acct-panel .panel {
  border-radius: 12px;
  border-color: rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.48), rgba(12, 16, 22, 0.82));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.12);
  padding: 1.15rem 1.2rem 1.25rem;
}
main.portal .acct-panel .panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: 0.035em;
  color: rgba(232, 236, 242, 0.96);
}
main.portal .acct-panel .panel > .hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.88);
}
main.portal .acct-panel .field label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(154, 163, 173, 0.9);
}
main.portal .acct-panel .field input:not([type="checkbox"]):not([type="radio"]),
main.portal .acct-panel .field textarea,
main.portal .acct-panel .field select {
  border-radius: 6px;
  border-color: rgba(42, 50, 60, 0.95);
  background: rgba(8, 11, 16, 0.72);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
main.portal .acct-panel .field input:not([type="checkbox"]):not([type="radio"]):focus,
main.portal .acct-panel .field textarea:focus,
main.portal .acct-panel .field select:focus {
  outline: none;
  border-color: rgba(126, 200, 216, 0.42);
  box-shadow: 0 0 0 3px rgba(62, 198, 216, 0.1);
}
main.portal .acct-panel .field input:not([type="checkbox"]):not([type="radio"]):disabled {
  opacity: 0.72;
  color: rgba(154, 163, 173, 0.85);
}
/* checkalign1 — keep toggles native next to label text */
main.portal .acct-panel .field input[type="checkbox"],
main.portal .acct-panel .field input[type="radio"],
main.portal .acct-panel .check-row input[type="checkbox"],
main.portal .acct-panel .check-row input[type="radio"] {
  width: auto !important;
  max-width: none;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
  border: none;
  background: transparent;
  box-shadow: none;
  accent-color: var(--cyan);
}
main.portal .acct-panel label.check-row,
main.portal .acct-panel .check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
}
main.portal .acct-panel .readonly-note {
  color: rgba(154, 163, 173, 0.78);
  font-size: 0.8rem;
  line-height: 1.45;
}
main.portal .acct-panel .meta-row {
  gap: 0.65rem 1rem;
  margin: 0.65rem 0 0.85rem;
  color: rgba(154, 163, 173, 0.9);
  font-size: 0.84rem;
}
main.portal .acct-panel .btn-row {
  gap: 0.45rem;
  margin-top: 0.85rem;
}
main.portal .acct-panel .btn-ghost.sm {
  border-color: rgba(42, 50, 60, 0.95);
  color: rgba(178, 186, 196, 0.9);
  background: rgba(12, 16, 22, 0.28);
}
main.portal .acct-panel .btn-ghost.sm:hover {
  border-color: rgba(126, 200, 216, 0.28);
  color: rgba(232, 236, 242, 0.96);
  background: rgba(62, 198, 216, 0.06);
}

/* List rows — quieter, denser chrome */
main.portal .list-item,
.sandbox-page .list-item {
  border-radius: 8px;
  border-color: rgba(42, 50, 60, 0.9);
  background: rgba(7, 9, 15, 0.42);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
main.portal .list-item:hover,
.sandbox-page .list-item:hover {
  border-color: rgba(126, 200, 216, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transform: none;
}
main.portal .list-item .who .sub,
.sandbox-page .list-item .who .sub {
  color: rgba(154, 163, 173, 0.88);
}
main.portal .list-stack {
  gap: 0.5rem;
}
main.portal .char-roster-list {
  gap: 0.45rem;
}
main.portal .char-roster-list > li {
  border-radius: 8px;
  border-color: rgba(42, 50, 60, 0.9);
  background: rgba(7, 9, 15, 0.4);
}
main.portal .char-roster-empty,
main.portal .char-roster-list > li.hint {
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  border: 1px dashed rgba(42, 50, 60, 0.9);
  background: rgba(12, 16, 22, 0.3);
  color: rgba(154, 163, 173, 0.88);
  list-style: none;
}

/* Quieter danger buttons + danger zone */
main.portal .btn-danger,
.sandbox-page .btn-danger,
.btn-danger.sm {
  background: transparent;
  color: rgba(212, 140, 140, 0.92);
  border-color: rgba(212, 92, 92, 0.32);
  box-shadow: none;
}
main.portal .btn-danger:hover,
.sandbox-page .btn-danger:hover,
.btn-danger.sm:hover {
  background: rgba(212, 92, 92, 0.08);
  color: rgba(255, 180, 180, 0.95);
  border-color: rgba(212, 92, 92, 0.48);
  filter: none;
}
main.portal .danger-zone {
  border-color: rgba(212, 92, 92, 0.28);
  background:
    linear-gradient(160deg, rgba(36, 18, 18, 0.72), rgba(14, 12, 14, 0.94));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.12);
}
main.portal .danger-zone h2 {
  color: rgba(224, 140, 140, 0.92);
  letter-spacing: 0.035em;
}
main.portal .acct-danger-link a {
  color: rgba(212, 140, 140, 0.88);
  text-decoration-color: rgba(212, 92, 92, 0.28);
}
main.portal .acct-danger-link a:hover {
  color: rgba(255, 180, 180, 0.95);
  text-decoration-color: rgba(212, 92, 92, 0.45);
}

/* Account gate card polish */
main.portal #gate.gate-card {
  max-width: 34rem;
  margin: 1.5rem auto;
}
main.portal #gate .portal-lede {
  margin: 0 0 0.35rem;
  color: rgba(178, 186, 196, 0.94);
}
main.portal #gate .cta-row {
  margin-top: 1.15rem;
  gap: 0.55rem;
}
main.portal #gate .btn-ghost {
  border-color: rgba(42, 50, 60, 0.95);
  color: rgba(178, 186, 196, 0.9);
}
main.portal #sandbox-jump .chip.open {
  border-color: rgba(201, 168, 92, 0.35);
  color: rgba(201, 168, 92, 0.9);
  background: rgba(201, 168, 92, 0.06);
}

/* Light Enter gate chrome (shared portal patterns) */
main.portal#enter-root .gate-card,
main.portal > #gate.arco-island {
  margin-top: 1.35rem;
}
main.portal > #gate .arco-panel__body .portal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(154, 163, 173, 0.88);
}
main.portal > #gate .arco-panel__body #gate-copy {
  margin: 0 0 0.25rem;
  line-height: 1.55;
  color: rgba(178, 186, 196, 0.94);
}

@media (max-width: 720px) {
  .sandbox-page > .ap-section-hero h1 {
    max-width: none;
  }
  .sandbox-page > .gate-card,
  .sandbox-page #gate.gate-card,
  .sandbox-page #unavailable.gate-card {
    padding: 1.25rem 1.05rem 1.35rem;
  }
  .world-card.mode-frame:hover {
    transform: none;
  }
  main.portal .acct-panel > .panel,
  main.portal .acct-panel .panel {
    padding: 1rem 1.05rem 1.1rem;
  }
  main.portal .list-item:hover,
  .sandbox-page .list-item:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-card.mode-frame {
    transition: none;
  }
  .world-card.mode-frame:hover {
    transform: none !important;
  }
  main.portal .list-item,
  .sandbox-page .list-item {
    transition: none;
  }
}

/* —— splash phase2l: How-to-play + Story preview chrome —— */
/* Professional guide steps, quieter asides, Story preview labeling. CSS only. */

/* How-to-play — hero + lede measure */
.howto-page > .ap-section-hero {
  margin-bottom: 0.25rem;
}
.howto-page > .ap-section-hero .ap-section-hero-inner {
  padding: 1.3rem 1.2rem 1.15rem;
}
.howto-page > .ap-section-hero h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 24ch;
}
.howto-page > .ap-section-hero .ap-section-kicker {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(154, 163, 173, 0.88);
}
.howto-page > .lede {
  margin: 1.05rem 0 1.35rem;
  max-width: 42rem;
  line-height: 1.65;
  color: rgba(178, 186, 196, 0.94);
}

/* How-to-play — professional TOC */
.howto-page .howto-toc {
  margin: 0.35rem 0 1.55rem;
  padding: 0.95rem 1.1rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.42), rgba(12, 16, 22, 0.72));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.1);
}
.howto-page .howto-toc-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
  color: rgba(154, 163, 173, 0.88);
}
.howto-page .howto-toc ol {
  margin: 0;
  padding-left: 1.15rem;
}
.howto-page .howto-toc li {
  margin: 0.28rem 0;
  line-height: 1.45;
  color: rgba(178, 186, 196, 0.92);
}
.howto-page .howto-toc a {
  color: rgba(178, 186, 196, 0.94);
  text-decoration-color: rgba(126, 200, 216, 0.22);
}
.howto-page .howto-toc a:hover {
  color: rgba(232, 236, 242, 0.96);
  text-decoration-color: rgba(126, 200, 216, 0.45);
}

/* How-to-play — guide step sections */
.howto-page .howto-section {
  margin: 1.55rem 0 1.65rem;
  padding-top: 0.15rem;
}
.howto-page .howto-section + .howto-section {
  border-top: 1px solid rgba(42, 50, 60, 0.55);
  padding-top: 1.35rem;
}
.howto-page .howto-section h2 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: rgba(232, 236, 242, 0.96);
}
.howto-page .howto-section > p {
  margin: 0 0 0.65rem;
  max-width: 42rem;
  line-height: 1.6;
  color: rgba(178, 186, 196, 0.94);
}
.howto-page .howto-list {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.15rem;
  max-width: 42rem;
}
.howto-page .howto-list li {
  margin: 0.42rem 0;
  line-height: 1.55;
  color: rgba(178, 186, 196, 0.94);
}
.howto-page .howto-list li strong {
  color: rgba(232, 236, 242, 0.96);
  font-weight: 650;
  letter-spacing: 0.01em;
}

/* How-to-play — quieter kbd chrome */
.howto-page kbd {
  padding: 0.08em 0.42em;
  border: 1px solid rgba(42, 50, 60, 0.95);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 0.82em;
  letter-spacing: 0.02em;
  color: rgba(232, 236, 242, 0.92);
  background: rgba(8, 11, 16, 0.72);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* How-to-play — quieter asides / notes / related */
.howto-page .howto-note {
  margin: 0.85rem 0 0.15rem;
  padding: 0.7rem 0.85rem;
  max-width: 42rem;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 1;
  color: rgba(154, 163, 173, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(42, 50, 60, 0.75);
  background: rgba(12, 16, 22, 0.35);
}
.howto-page .howto-related {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(42, 50, 60, 0.75);
}
.howto-page .howto-related h2 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 163, 173, 0.88);
}
.howto-page .howto-related .howto-list {
  margin-top: 0.25rem;
}
.howto-page .howto-related .howto-list li {
  color: rgba(154, 163, 173, 0.92);
}
.howto-page .arco-panel__rail h2 {
  letter-spacing: 0.04em;
}

/* Story preview — hero + preview labeling chrome */
main.page > .ap-section-hero[aria-label="Story header"] {
  margin-bottom: 0.2rem;
}
main.page > .ap-section-hero[aria-label="Story header"] .ap-section-hero-inner {
  padding: 1.3rem 1.2rem 1.15rem;
}
main.page > .ap-section-hero[aria-label="Story header"] h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 22ch;
}
main.page > .ap-section-hero[aria-label="Story header"] .ap-section-kicker {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(154, 163, 173, 0.88);
}
/* Quieter preview invitation label (chrome only — no claim rewrite) */
main.page > .ap-section-hero[aria-label="Story header"] + .ap-art-note {
  margin: 0.55rem 0 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.045em;
  color: rgba(154, 163, 173, 0.72);
}
main.page > .ap-section-hero[aria-label="Story header"] + .ap-art-note + .lede {
  margin: 1.05rem 0 1.25rem;
  max-width: 40rem;
  line-height: 1.65;
  color: rgba(178, 186, 196, 0.94);
}

/* Story preview — prose measure + quieter invitation aside */
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose {
  max-width: 42rem;
  line-height: 1.65;
  color: rgba(178, 186, 196, 0.94);
}
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose > p {
  margin: 0 0 1rem;
}
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose > p.hint {
  margin: 1.05rem 0 1.35rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(42, 50, 60, 0.75);
  background: rgba(12, 16, 22, 0.35);
}
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose > h2 {
  margin: 1.65rem 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  color: rgba(232, 236, 242, 0.96);
}
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose > h2#enter {
  margin-top: 1.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(42, 50, 60, 0.55);
}
/* Enter primary vs quieter First-steps ghost */
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose .btn-enter {
  padding: 0.88rem 1.45rem;
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose .btn-ghost {
  padding: 0.78rem 1.15rem;
  font-weight: 600;
  color: rgba(178, 186, 196, 0.92);
  border-color: rgba(42, 50, 60, 0.95);
  background: rgba(12, 16, 22, 0.35);
  box-shadow: none;
}
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose .btn-ghost:hover {
  color: rgba(232, 236, 242, 0.96);
  border-color: rgba(126, 200, 216, 0.28);
  background: rgba(62, 198, 216, 0.06);
}
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose > ul {
  margin: 1.15rem 0 0.35rem;
  padding-left: 1.15rem;
  color: rgba(154, 163, 173, 0.92);
}
main.page > .ap-section-hero[aria-label="Story header"] ~ .prose > ul li {
  margin: 0.35rem 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .howto-page > .ap-section-hero h1,
  main.page > .ap-section-hero[aria-label="Story header"] h1 {
    max-width: none;
  }
  .howto-page .howto-toc {
    padding: 0.85rem 0.95rem 0.9rem;
  }
  .howto-page .howto-note,
  main.page > .ap-section-hero[aria-label="Story header"] ~ .prose > p.hint {
    padding: 0.65rem 0.75rem;
  }
  .howto-page .howto-section + .howto-section {
    padding-top: 1.15rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  main.page > .ap-section-hero[aria-label="Story header"] ~ .prose .btn-enter,
  main.page > .ap-section-hero[aria-label="Story header"] ~ .prose .btn-ghost {
    transition: none;
  }
}

/* —— splash phase2m: legal hub chrome —— */
/* Quieter legal-page nav, intro spacing, REVIEW DRAFT banner polish. CSS only — no policy body edits. */

/* Legal hub — hero + intro rhythm */
main.page > .ap-section-hero[aria-label="Legal header"] {
  margin-bottom: 0.2rem;
}
main.page > .ap-section-hero[aria-label="Legal header"] .ap-section-hero-inner {
  padding: 1.3rem 1.2rem 1.15rem;
}
main.page > .ap-section-hero[aria-label="Legal header"] h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 26ch;
}
main.page > .ap-section-hero[aria-label="Legal header"] .ap-section-kicker {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(154, 163, 173, 0.88);
}
main.page > .ap-section-hero[aria-label="Legal header"] + .lede {
  margin: 1.05rem 0 1.15rem;
  max-width: 42rem;
  line-height: 1.65;
  color: rgba(178, 186, 196, 0.94);
}

/* Child policy pages — quieter back-nav in lede (← Legal hub) */
main.page:has(.draft-banner) > h1 {
  margin: 0 0 0.35rem;
  letter-spacing: 0.035em;
  line-height: 1.2;
  color: rgba(232, 236, 242, 0.96);
}
main.page:has(.draft-banner) > h1 + .lede {
  margin: 0.35rem 0 1.05rem;
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(154, 163, 173, 0.9);
}
main.page:has(.draft-banner) > h1 + .lede a[href="/legal/"] {
  color: rgba(154, 163, 173, 0.88);
  text-decoration-color: rgba(126, 200, 216, 0.18);
  font-weight: 500;
  letter-spacing: 0.01em;
}
main.page:has(.draft-banner) > h1 + .lede a[href="/legal/"]:hover {
  color: rgba(232, 236, 242, 0.94);
  text-decoration-color: rgba(126, 200, 216, 0.4);
}

/* REVIEW DRAFT banner — quieter, more professional */
main.page:has(.draft-banner) > .draft-banner,
main.page > .ap-section-hero[aria-label="Legal header"] ~ .draft-banner {
  margin: 0 0 1.35rem;
  padding: 0.8rem 1.05rem;
  max-width: 44rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(178, 186, 196, 0.9);
  border: 1px solid rgba(201, 168, 92, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(165deg, rgba(201, 168, 92, 0.07), rgba(12, 16, 22, 0.35));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.08);
}
main.page:has(.draft-banner) > .draft-banner strong,
main.page > .ap-section-hero[aria-label="Legal header"] ~ .draft-banner strong {
  display: inline-block;
  margin-right: 0.15em;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: rgba(201, 168, 92, 0.92);
}
main.page:has(.draft-banner) > .draft-banner a,
main.page > .ap-section-hero[aria-label="Legal header"] ~ .draft-banner a {
  color: rgba(178, 186, 196, 0.94);
  text-decoration-color: rgba(126, 200, 216, 0.22);
}
main.page:has(.draft-banner) > .draft-banner a:hover,
main.page > .ap-section-hero[aria-label="Legal header"] ~ .draft-banner a:hover {
  color: rgba(232, 236, 242, 0.96);
  text-decoration-color: rgba(126, 200, 216, 0.45);
}
main.page:has(.draft-banner) > .draft-banner code,
main.page > .ap-section-hero[aria-label="Legal header"] ~ .draft-banner code {
  font-size: 0.86em;
  color: rgba(154, 163, 173, 0.88);
}

/* Legal hub — quieter card nav among policies */
main.page > .ap-section-hero[aria-label="Legal header"] ~ .card-list {
  margin-top: 1.15rem;
  gap: 0.7rem;
}
main.page > .ap-section-hero[aria-label="Legal header"] ~ .card-list a.card {
  padding: 1.05rem 1.15rem;
  border-color: rgba(42, 50, 60, 0.95);
  background:
    linear-gradient(165deg, rgba(22, 28, 36, 0.38), rgba(12, 16, 22, 0.72));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.1);
}
main.page > .ap-section-hero[aria-label="Legal header"] ~ .card-list a.card:hover {
  border-color: rgba(126, 200, 216, 0.28);
  box-shadow:
    0 0 0 1px rgba(62, 198, 216, 0.1),
    0 6px 16px rgba(0, 0, 0, 0.16);
}
main.page > .ap-section-hero[aria-label="Legal header"] ~ .card-list a.card h2 {
  margin: 0 0 0.28rem;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: rgba(232, 236, 242, 0.96);
}
main.page > .ap-section-hero[aria-label="Legal header"] ~ .card-list a.card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(154, 163, 173, 0.9);
}

/* Hub orientation prose — slightly quieter before cards */
main.page > .ap-section-hero[aria-label="Legal header"] ~ .prose {
  max-width: 42rem;
  margin-bottom: 0.35rem;
}
main.page > .ap-section-hero[aria-label="Legal header"] ~ .prose > h2 {
  margin: 1.45rem 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 163, 173, 0.88);
  border-top: 0;
  padding-top: 0;
}
main.page > .ap-section-hero[aria-label="Legal header"] ~ .prose > h2:first-of-type {
  margin-top: 0.85rem;
}
main.page > .ap-section-hero[aria-label="Legal header"] ~ .prose > p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: rgba(178, 186, 196, 0.92);
}

@media (max-width: 720px) {
  main.page > .ap-section-hero[aria-label="Legal header"] h1 {
    max-width: none;
  }
  main.page:has(.draft-banner) > .draft-banner,
  main.page > .ap-section-hero[aria-label="Legal header"] ~ .draft-banner {
    padding: 0.7rem 0.85rem;
  }
  main.page > .ap-section-hero[aria-label="Legal header"] ~ .card-list a.card {
    padding: 0.95rem 1rem;
  }
}


/* Public profile geo — one line + real flag image (emoji flags fail on many Windows) */
.profile-geo {
  align-items: center;
  gap: 0.5rem;
}
.profile-geo-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.profile-geo-text {
  color: var(--muted);
  font-size: 0.92rem;
}

/* signal1 — account-level thought feed */
/* signalux1 — feed-first polish */
.signal-page .signal-lede {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  font-size: 0.98rem;
  color: var(--muted, #9aa3ad);
}
.signal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}
.signal-head h1 { margin-bottom: 0; }
.signal-post-toggle {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  min-width: 4.5rem;
}
.signal-post-toggle.is-open {
  color: var(--gold);
  border-color: rgba(196, 163, 90, 0.55);
}
.signal-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
  max-width: 42rem;
}
.signal-compose {
  margin-bottom: 0.75rem;
}
.signal-compose.is-collapsed[hidden] { display: none !important; }
.signal-compose-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.signal-compose-bar h2 { margin: 0; font-size: 1.05rem; }
.signal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin: 0.15rem 0 0.35rem;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.signal-scopes {
  /* yap3 / yap-tabs1 — X-style underline tabs (no gold pill) */
  display: flex;
  width: 100%;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.signal-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim, #7a8490);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.7rem 0.85rem 0.78rem;
  border-radius: 0;
  cursor: pointer;
  letter-spacing: 0.01em;
  flex: 1 1 0;
  text-align: center;
  position: relative;
  box-shadow: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.signal-tab:hover { color: #f2e6c4; background: transparent; }
.signal-tab.is-active {
  color: #f2e6c4;
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
}
/* Fixed-width gold underline, centered under label (same width every tab) */
.signal-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 7.5rem; /* standard — covers longest label (Posts & reposts); equal on all tabs */
  max-width: calc(100% - 0.5rem);
  height: 2px;
  background: var(--gold, #c4a35a);
  border-radius: 1px;
  pointer-events: none;
}
.signal-scopes .btn.is-active,
.signal-acts .btn.is-on {
  color: var(--gold);
  border-color: rgba(196, 163, 90, 0.55);
}
.signal-row,
.signal-reply-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.signal-avatar,
.signal-avatar-img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(126, 200, 216, 0.28);
}
.signal-avatar {
  display: grid;
  place-items: center;
  background: #121820;
  background-image: linear-gradient(180deg, rgba(62, 198, 216, 0.16), rgba(62, 198, 216, 0.1));
  color: var(--cyan, #3ec6d8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1; /* headerchip1: never inherit wrap line-height:0 (CM strike / high letters) */
  text-decoration: none;
  box-sizing: border-box;
}
.signal-author-line {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--dim, #7a8490);
}
.signal-display {
  color: #f2e6c4;
  font-weight: 650;
  text-decoration: none;
}
.signal-display:hover { text-decoration: underline; }
.signal-handle {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan, #3ec6d8);
  text-decoration: none;
}
.signal-handle:hover { text-decoration: underline; }
.signal-when { color: var(--dim, #7a8490); font-size: 0.82rem; }
.signal-activity { margin: 0 0 0.25rem; font-size: 0.78rem; }
.signal-list .board-body-text { margin-top: 0.15rem; }
.signal-person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
}
.signal-person .signal-avatar,
.signal-person .signal-avatar-img {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}
.signal-person-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.signal-person strong {
  font-size: 0.88rem;
  color: #f2e6c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.signal-person span {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--cyan);
}
.signal-side-slim .panel {
  padding: 0.75rem 0.85rem;
}
.signal-side-panel h2 {
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
  color: var(--muted, #9aa3ad);
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.signal-side-hint {
  font-size: 0.8rem;
  margin: 0 0 0.45rem;
}
.signal-side .list-stack { display: grid; }
.signal-follow-fold {
  margin-top: 0;
}
.signal-follow-fold summary {
  cursor: pointer;
  color: var(--muted, #9aa3ad);
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
}
.signal-follow-fold summary::-webkit-details-marker { display: none; }
.signal-follow-fold[open] summary { margin-bottom: 0.55rem; color: #f2e6c4; }
.signal-acts .btn { min-width: 5.5rem; }
@media (max-width: 640px) {
  .signal-head { align-items: center; }
  .signal-tab { padding: 0.62rem 0.55rem 0.7rem; font-size: 0.88rem; }
}

/* signalux1 — quiet profile Following/Followers counts */
.profile-follow-counts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.85rem;
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--dim, #7a8490);
  line-height: 1.4;
}
.profile-follow-counts button,
.profile-follow-counts a.profile-count-btn,
.profile-follow-counts a {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.profile-follow-counts a.profile-count-btn:hover,
.profile-follow-counts a:hover,
.profile-follow-counts button:hover {
  color: #f2e6c4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-follow-counts .pf-sep { opacity: 0.45; }
.profile-follow-panel {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.profile-follow-panel[hidden] { display: none !important; }
.profile-follow-panel h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #9aa3ad);
}
.profile-follow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.profile-follow-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.profile-follow-list a:hover .pf-name { text-decoration: underline; }
.profile-follow-list .signal-avatar,
.profile-follow-list .signal-avatar-img {
  width: 26px;
  height: 26px;
  font-size: 0.58rem;
}
.profile-follow-list .pf-name { color: #f2e6c4; font-weight: 600; }
.profile-follow-list .pf-handle {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--cyan, #3ec6d8);
}
.profile-follow-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--dim, #7a8490);
}

.profile-follow-list .pf-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
  min-width: 0;
}
.profile-follow-list .pf-bio {
  flex: 1 1 100%;
  font-size: 0.78rem;
  color: var(--dim, #7a8490);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* signalux1 — icon-only reactions */
.signal-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 0.35rem;
}
.signal-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim, #7a8490);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  line-height: 1;
}
.signal-icon-btn:hover,
.signal-icon-btn:focus-visible {
  color: #f2e6c4;
  background: rgba(255,255,255,0.04);
  outline: none;
}
.signal-icon-btn.is-on {
  color: var(--gold, #c4a35a);
}
/* signalux3 — emoji reactions; dislike count private (no public number) */
.signal-ico {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.95;
}
.signal-dislike.is-on {
  color: #c47a7a;
}
.signal-bookmark.is-on {
  color: var(--gold, #c9a85c);
}
/* yap-bookmark-ux1 — outline off, filled Concordia gold on */
.signal-bookmark .signal-bm-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
}
.signal-bookmark .signal-bm-ico svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
  pointer-events: none;
}
.signal-bookmark .signal-bm-ico path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.12s ease, color 0.12s ease;
}
.signal-bookmark.is-on .signal-bm-ico path {
  fill: currentColor;
  stroke: currentColor;
}

/* yapact1 — outline→fill for all action icons (like bookmark) */
.signal-act-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
}
.signal-act-ico svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
  pointer-events: none;
}
.signal-act-ico path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.12s ease, color 0.12s ease;
}
.signal-icon-btn.is-on .signal-act-ico path,
.signal-icon-btn.is-on .signal-bm-ico path {
  fill: currentColor;
  stroke: currentColor;
}
.signal-like.is-on { color: var(--gold, #c4a35a); }
.signal-repost.is-on { color: var(--cyan, #3ec6d8); }
.signal-reply-link.is-on,
.signal-reply-btn.is-on { color: var(--cyan, #3ec6d8); }
.signal-quote.is-on { color: var(--gold, #c4a35a); }

/* yapact1 — sticky Everyone|Following on main feed column */
.yap-shell > .yap-feed > .signal-layout {
  margin-top: 0;
}
.yap-shell .yap-feed .signal-toolbar.signal-toolbar-sticky {
  position: sticky;
  top: 5.25rem;
  z-index: 6;
  margin: 0 0 0.35rem;
  padding: 0;
  background: rgba(11, 13, 18, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.yap-shell .yap-feed .signal-toolbar.signal-toolbar-sticky .signal-scopes {
  border-bottom: 0;
}
@media (max-width: 900px) {
  .yap-shell .yap-feed .signal-toolbar.signal-toolbar-sticky {
    top: 4.5rem;
  }
}


/* yapwikibm1 — wiki page h1 + bookmark button */
.wiki-bm-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 0.35rem;
}
.wiki-bm-row > h1 {
  margin: 0;
  flex: 1 1 auto;
}
.wiki-bm-row .wiki-bookmark-btn,
.wiki-bookmark-btn.signal-bookmark {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  margin-top: 0.15rem;
}

.signal-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  min-width: 0.75rem;
}

/* Public online presence ring (match admin green outward) */
.signal-avatar-wrap,
.profile-photo-wrap,
.dir-card .orb {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  line-height: 0; /* collapse empty inline gaps around img; .signal-avatar sets its own line-height */
  overflow: visible; /* online glow must not clip / notch the face */
}
.signal-avatar-wrap.is-online-public,
.profile-header-avatar-wrap.is-online-public,
.profile-photo-wrap.is-online-public {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.4);
}
/* legacy: online on orb disk punched a cutout through initials — prefer wrap above */
.avatar-orb.is-online-public,
.profile-orb.is-online-public {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.4);
}
.dir-card .orb.is-online-public {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px #3b82f6, 0 0 10px rgba(59, 130, 246, 0.35);
}
.dir-card .orb.is-online-public {
  box-shadow: 0 0 0 2px #0e141c, 0 0 0 3.5px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.4);
}
.profile-follow-list .signal-avatar-wrap.is-online-public {
  box-shadow: 0 0 0 1.5px #0c0e11, 0 0 0 3px #3b82f6;
}
.dir-online-only {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--muted, #9aa3ad);
  margin: 0.15rem 0 0.35rem;
  cursor: pointer;
  user-select: none;
}
.dir-online-only input {
  accent-color: #3dce7a;
}

/* signalux1 — quote embed + repost line */
.signal-repost-line {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--muted, #9aa3ad);
  font-weight: 600;
}
.signal-quote-embed,
.signal-quote-preview .signal-quote-embed {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.45rem 0 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(126, 200, 216, 0.18);
  border-radius: 10px;
  background: rgba(12, 16, 22, 0.55);
}
.signal-quote-embed .signal-avatar-wrap { flex: 0 0 auto; }
.signal-quote-embed .signal-avatar,
.signal-quote-embed .signal-avatar-img { width: 28px; height: 28px; font-size: 0.58rem; }
.signal-quote-body { min-width: 0; flex: 1; }
.signal-quote-body .board-body-text { margin-top: 0.1rem; font-size: 0.88rem; }
.signal-quote-preview { margin-bottom: 0.55rem; }
.signal-quote-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted, #9aa3ad);
}



/* signalux4 — X-style post/reply detail + feed links */
/* yaplong1 — no body underline on hover; body is block + card click */
a.signal-body-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
a.signal-body-link:hover .board-body-text {
  text-decoration: none;
}
.signal-body-block {
  color: inherit;
  display: block;
  cursor: pointer;
}
.signal-body-block .board-body-text {
  text-decoration: none;
}
.signal-ellipsis {
  color: inherit;
}
.signal-see-more {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cyan, #3ec6d8);
  font: inherit;
  font-weight: 650;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}
.signal-see-more:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.signal-avatar-link {
  color: inherit;
  text-decoration: none;
}
a.signal-icon-btn,
a.signal-reply-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim, #7a8490);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  line-height: 1;
  text-decoration: none;
}
a.signal-icon-btn:hover,
a.signal-reply-link:hover {
  color: #f2e6c4;
  background: rgba(255,255,255,0.04);
}
.signal-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  color: var(--dim, #7a8490);
  text-decoration: none;
  font-size: 0.9rem;
}
.signal-detail-back:hover { color: #f2e6c4; }
.signal-detail-parent {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}
.signal-detail-replies {
  list-style: none;
  margin: 0;
  padding: 0;
}
.signal-detail-replies > li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  /* flat — no indent / stagger */
}
.signal-compose-panel {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.signal-compose-panel.is-closed { display: none; }


/* signalux4 — profile heartbeat + mobile Signal */
.profile-heartbeat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 1rem;
  align-items: start;
}
.profile-heartbeat-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.profile-heartbeat-side .players-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-chars-compact .player-row {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.profile-chars-compact .character-stats,
.profile-chars-compact .character-meta,
.profile-chars-compact .character-handle {
  display: none !important;
}
.profile-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0.85rem 0 1rem;
}
.profile-door {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #f2e6c4;
  text-decoration: none;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.03);
}
.profile-door:hover,
.profile-door:focus-visible {
  background: rgba(255,255,255,0.07);
  outline: none;
}
.profile-ext-link {
  color: var(--dim, #9aa3ad);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.profile-ext-link:hover,
.profile-ext-link:focus-visible {
  color: #f2e6c4;
  background: rgba(255,255,255,0.06);
  outline: none;
}
.profile-ext-icon svg {
  display: block;
  flex-shrink: 0;
}
.profile-ext-url {
  min-width: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(154,163,173,0.45);
  justify-content: flex-start;
  word-break: break-all;
}
.profile-socials-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin: 0.65rem 0 0.35rem;
}
/* Quiet Account text link removed — pencils are the self door */
.profile-account-link { display: none !important; }
.profile-count-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  text-align: left;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em; /* space between label and count (flex eats HTML spaces) */
}
.profile-count-btn #following-n,
.profile-count-btn #followers-n {
  margin-left: 0; /* gap handles spacing */
}
a.profile-count-btn:hover {
  color: #f2e6c4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-touch,
.profile-acts .btn {
  min-height: 44px;
}
.signal-icon-btn,
a.signal-reply-link {
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0.45rem 0.5rem;
}
.signal-tab {
  min-height: 40px;
}
.signal-post-toggle,
#signal-refresh,
#signal-post-btn,
#detail-reply-btn {
  min-height: 44px;
}
.profile-signal-wall {
  margin-top: 0.5rem;
}
.profile-signal-wall-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.profile-signal-all {
  font-size: 0.85rem;
  color: var(--dim, #9aa3ad);
}
.signal-compose,
.signal-compose-panel,
.board-reply-compose {
  position: relative;
  /* soft keyboard: avoid fixed bottom bars that get covered */
}
@media (max-width: 820px) {
  .profile-heartbeat {
    grid-template-columns: 1fr;
  }
  .profile-heartbeat-side {
    order: 2;
  }
  .profile-heartbeat-main {
    order: 1;
  }
  .profile-signal-wall {
    order: 3;
  }
  .signal-page,
  .portal.wrap,
  .page.wrap {
    overflow-x: hidden;
  }
  .signal-acts {
    gap: 0.25rem 0.35rem;
  }
}

/* profile-links1 — external icons + self-only edit pencils (signalux5) */
.profile-photo-edit-wrap {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
}
.profile-photo-edit-wrap .profile-orb,
.profile-photo-edit-wrap .avatar-orb,
.profile-photo-edit-wrap .profile-header-avatar-wrap {
  width: 88px;
  height: 88px;
}
.profile-bio-wrap {
  position: relative;
  margin: 1rem 0 0.75rem;
}
.profile-bio-wrap .profile-bio {
  margin: 0;
}
.profile-bio.is-placeholder:empty::before,
.profile-bio.is-placeholder.is-empty::before {
  content: attr(data-placeholder);
  color: var(--dim, #9aa3ad);
  opacity: 0.65;
  font-style: italic;
}
.profile-edit-pencil {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  color: #f2e6c4;
  background: rgba(12, 14, 17, 0.72);
  border: 1px solid rgba(242, 230, 196, 0.28);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  text-decoration: none;
  opacity: 0.55;
  z-index: 3;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.profile-edit-pencil.hidden {
  display: none !important;
}
.profile-photo-edit-wrap > .profile-edit-pencil {
  /* headerchip1: sit outside disk — see final rule below */
  right: -6px;
  bottom: -6px;
}
.profile-photo-edit-wrap:hover > .profile-edit-pencil,
.profile-photo-edit-wrap:focus-within > .profile-edit-pencil,
.profile-edit-pencil:hover,
.profile-edit-pencil:focus-visible {
  opacity: 1;
  background: rgba(20, 24, 30, 0.92);
  outline: none;
}
.profile-edit-pencil:focus-visible {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 4px rgba(110, 198, 220, 0.7);
}
/* Touch / coarse pointer: always-subtle pencil for self (no hover-only) */
@media (hover: none), (pointer: coarse) {
  .profile-edit-pencil:not(.hidden) {
    opacity: 0.72;
  }
}
@media (max-width: 820px) {
  .profile-edit-pencil:not(.hidden) {
    opacity: 0.72;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .profile-ext-link {
    min-height: 44px;
    min-width: 44px;
  }
}

/* profileux2 / profile-chars1 — right column Characters + Sandbox worlds carousel */
.profile-characters {
  padding: 0.75rem 0.85rem 0.65rem;
}
.profile-characters .profile-section-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}
.profile-chars-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.profile-char-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(126,200,216,0.14);
  background: rgba(0,0,0,0.18);
  color: inherit;
  text-decoration: none;
}
.profile-char-link:hover,
.profile-char-link:focus-visible {
  border-color: rgba(126,200,216,0.38);
  background: rgba(255,255,255,0.04);
  outline: none;
}
.profile-chars-compact .character-micro {
  width: 40px;
  height: 46px;
  border-radius: 6px;
}
.profile-chars-compact .character-name {
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-char-row.is-active .profile-char-link {
  border-color: rgba(126,200,216,0.42);
  box-shadow: 0 0 0 1px rgba(62,198,216,0.1);
}
.profile-worlds-side {
  padding: 0.7rem 0.85rem 0.75rem;
}
.profile-worlds-side[hidden] { display: none !important; }
.profile-worlds-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.profile-worlds-side .profile-section-title {
  margin: 0;
  font-size: 1rem;
}
.profile-worlds-side-link {
  color: inherit;
  text-decoration: none;
}
.profile-worlds-side-link:hover,
.profile-worlds-side-link:focus-visible {
  color: var(--cyan, #7ec8d8);
  outline: none;
}
.profile-worlds-nav {
  display: inline-flex;
  gap: 0.2rem;
}
.profile-worlds-arrow {
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f2e6c4;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.profile-worlds-arrow:hover,
.profile-worlds-arrow:focus-visible {
  background: rgba(255,255,255,0.08);
  outline: none;
}
.profile-worlds-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.profile-worlds-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.profile-world-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-height: 44px;
  padding: 0.25rem 0.15rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}
.profile-world-icon:hover,
.profile-world-icon:focus-visible {
  background: rgba(255,255,255,0.05);
  outline: none;
}
.profile-world-icon-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(126,200,216,0.18);
  background: rgba(0,0,0,0.25);
}
.profile-world-icon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-world-icon-name {
  font-size: 0.68rem;
  line-height: 1.15;
  color: var(--dim, #9aa3ad);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-doors { display: none !important; }
@media (max-width: 820px) {
  .profile-worlds-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-chars-compact .character-name {
    white-space: normal;
  }
}


/* profile-header1 / profileux3 — identity polish: no Profile H1, bigger name, one edit, links above follows */
.profile-rl.profile-heartbeat-main {
  padding: 0.95rem 1.05rem 0.9rem;
}
.profile-rl .identity {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin: 0;
}
.profile-rl .names {
  min-width: 0;
  flex: 1;
}
.profile-display-name {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 700;
  color: #f2e6c4;
  letter-spacing: -0.01em;
}
.profile-rl .handle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-top: 0.2rem;
}
.profile-rl .handle {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.9rem;
}
.profile-follows-you {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-color: rgba(126, 200, 216, 0.42);
  color: var(--cyan, #7ec8d8);
  background: rgba(62, 198, 216, 0.08);
}
.profile-follows-you.hidden,
.profile-follows-you[hidden] {
  display: none !important;
}
.profile-rl .profile-status {
  margin: 0.15rem 0 0;
  min-height: 0;
}
.profile-rl .profile-bio-wrap {
  position: relative;
  margin: 0.7rem 0 0.45rem;
}
.profile-rl .profile-bio-wrap .profile-bio {
  margin: 0;
  padding-right: 0;
}
.profile-rl .meta-row {
  margin: 0.35rem 0 0;
}
.profile-rl .profile-socials {
  margin: 0.55rem 0 0.35rem;
}
.profile-rl .profile-follow-counts {
  margin: 0.35rem 0 0;
}
.profile-rl .profile-acts {
  margin-top: 0.75rem;
}
.profile-rl .profile-acts-hint {
  margin-top: 0.25rem;
}
/* Single self Edit: photo corner only — always outside ring (no bottom notch) */
.profile-photo-edit-wrap > .profile-edit-pencil {
  right: -6px;
  bottom: -6px;
}

/* profile-kicker1 / profileux4 — drop bare Profile kicker; quieter directory crumb so name leads */
main.portal .profile-back-crumb {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--dim);
}
main.portal .profile-back-crumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
main.portal .profile-back-crumb a:hover,
main.portal .profile-back-crumb a:focus-visible {
  color: var(--cyan, #7ec8d8);
  border-bottom-color: rgba(126, 200, 216, 0.45);
  outline: none;
}

@media (max-width: 820px) {
  .profile-display-name {
    font-size: 1.4rem;
  }
  .profile-rl.profile-heartbeat-main {
    padding: 0.85rem 0.9rem 0.8rem;
  }
}

/* yap2 — X-style left rail (Concordia chrome) */
.yap-shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 42rem);
  gap: 1.25rem 1.75rem;
  align-items: start;
  max-width: 62rem;
  padding-bottom: 1.5rem;
}
.yap-shell > .yap-rail {
  position: sticky;
  top: 5.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: calc(100vh - 7rem);
  padding: 0.35rem 0.25rem 0.75rem;
  max-width: 15.5rem;
}
.yap-feed {
  min-width: 0;
}
.yap-shell .signal-layout {
  max-width: none;
  margin-top: 0.65rem;
}
.yap-rail-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  text-decoration: none;
  color: #f2e6c4;
  transition: background 0.15s ease;
}
.yap-rail-brand:hover {
  background: rgba(126, 200, 216, 0.08);
}
.yap-rail-brand-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  color: #0c1016;
  background: linear-gradient(135deg, #e8d5a3, #c4a35a);
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.4);
}
.yap-rail-brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.yap-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.yap-rail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0.85rem;
  border-radius: 999px;
  color: #e8eef4;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.2;
  min-height: 2.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.yap-rail-item:hover {
  background: rgba(126, 200, 216, 0.1);
  color: #f2e6c4;
}
.yap-rail-item.is-active {
  font-weight: 750;
  color: #f2e6c4;
}
.yap-rail-item.is-active .yap-rail-ico {
  color: var(--gold, #c4a35a);
}
.yap-rail-ico {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  color: inherit;
}
.yap-rail-ico svg { display: block; }
.yap-rail-label { white-space: nowrap; }
.yap-rail-post {
  /* yap3 — ~15% narrower Post pill */
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 85%;
  max-width: 12.5rem;
  margin: 0.85rem auto 0.5rem;
  padding: 0.72rem 0.85rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8d5a3, #c4a35a);
  color: #0c1016;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.45), 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.yap-rail-post:hover,
.yap-rail-post:focus-visible {
  filter: brightness(1.06);
  outline: none;
}
.yap-rail-post.is-open {
  box-shadow: 0 0 0 2px rgba(62, 198, 216, 0.45), 0 8px 24px rgba(0, 0, 0, 0.28);
}
.yap-rail-account {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  min-height: 3.35rem;
  transition: background 0.15s ease;
}
.yap-rail-account:hover {
  background: rgba(126, 200, 216, 0.1);
}
.yap-rail-account-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(62, 198, 216, 0.14);
  color: var(--cyan, #3ec6d8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid rgba(126, 200, 216, 0.28);
  text-decoration: none;
  box-sizing: border-box;
}
/* statusring1: blue site-online on rail account disk (overflow visible so glow paints) */
.yap-rail-account-avatar.is-online-public,
.yap-rail-account-avatar[data-status="online"],
.yap-rail-account-avatar.is-status-online {
  overflow: visible;
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.4);
  border-color: transparent;
}
.yap-rail-account-avatar.is-online-public img,
.yap-rail-account-avatar[data-status="online"] img {
  border-radius: 50%;
  overflow: hidden;
}
.yap-rail-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yap-rail-account-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.yap-rail-account-text strong {
  font-size: 0.92rem;
  color: #f2e6c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yap-rail-account-text span {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  color: var(--dim, #7a8490);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Hide legacy top Post when rail owns compose */
.yap-shell .signal-post-toggle { display: none; }

@media (max-width: 900px) {
  .yap-shell {
    grid-template-columns: 1fr;
    max-width: 42rem;
    padding-bottom: 5.5rem;
  }
  .yap-shell > .yap-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 40;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    min-height: 0;
    max-width: none;
    width: 100%;
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 10, 14, 0.94);
    border-top: 1px solid rgba(126, 200, 216, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .yap-rail-brand,
  .yap-rail-account {
    display: none;
  }
  .yap-rail-nav {
    flex: 1;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
  }
  .yap-rail-item {
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.4rem;
    min-height: 3.15rem;
    min-width: 3.15rem;
    font-size: 0.68rem;
    font-weight: 650;
    border-radius: 0.65rem;
  }
  .yap-rail-ico { width: 1.35rem; height: 1.35rem; }
  .yap-rail-ico svg { width: 20px; height: 20px; }
  .yap-rail-post {
    flex: 0 0 auto;
    align-self: center;
    width: auto;
    max-width: none;
    margin: 0 0.15rem;
    padding: 0.48rem 0.8rem;
    min-height: 2.4rem;
    font-size: 0.86rem;
    box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.45);
  }
}
@media (max-width: 420px) {
  .yap-rail-item .yap-rail-label {
    /* keep labels for clarity; shrink slightly */
    font-size: 0.62rem;
  }
}




/* yaprail2 — profile pages share YAP left rail */
main.portal.yap-shell.profile-yap-shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
  width: min(1100px, calc(100% - 2.25rem));
  max-width: none;
  padding-bottom: 1.5rem;
}
main.portal.yap-shell.profile-yap-shell > .yap-rail {
  position: sticky;
  top: 5.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: calc(100vh - 7rem);
  padding: 0.35rem 0.25rem 0.75rem;
  max-width: 15.5rem;
}
main.portal.yap-shell.profile-yap-shell > .yap-feed.profile-yap-main {
  min-width: 0;
}
@media (min-width: 901px) and (max-width: 1199px) {
  main.portal.yap-shell.profile-yap-shell {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }
  main.portal.yap-shell.profile-yap-shell > .yap-rail {
    max-width: 3.75rem;
    width: 3.75rem;
    align-items: center;
    padding: 0.35rem 0.2rem 0.75rem;
    gap: 0.25rem;
  }
}
@media (max-width: 900px) {
  main.portal.yap-shell.profile-yap-shell {
    grid-template-columns: 1fr;
    width: min(980px, calc(100% - 2.25rem));
    padding-bottom: 5.5rem;
  }
  main.portal.yap-shell.profile-yap-shell > .yap-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 40;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    min-height: 0;
    max-width: none;
    width: 100%;
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 10, 14, 0.94);
    border-top: 1px solid rgba(126, 200, 216, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* yaprail2 — viewport auto-collapse left rail (no toggle / no localStorage)
   ≥1200px: full labeled rail
   901–1199px: collapsed ~60px icon rail
   ≤900px: existing bottom bar (unchanged) */
.yap-rail {
  position: relative;
}
.yap-rail-post-ico {
  display: none;
  place-items: center;
  line-height: 0;
}
.yap-rail-post-ico svg { display: block; }
.yap-rail-post-label { white-space: nowrap; }

@media (min-width: 901px) and (max-width: 1199px) {
  .yap-shell {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    max-width: 54rem;
  }
  .yap-shell > .yap-rail {
    max-width: 3.75rem;
    width: 3.75rem;
    align-items: center;
    padding: 0.35rem 0.2rem 0.75rem;
    gap: 0.25rem;
  }
  .yap-rail-brand {
    justify-content: center;
    padding: 0.4rem;
    margin-bottom: 0.15rem;
    gap: 0;
  }
  .yap-rail-brand-text,
  .yap-rail-label,
  .yap-rail-account-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .yap-rail-item {
    justify-content: center;
    gap: 0;
    padding: 0.65rem;
    width: 2.85rem;
    min-height: 2.85rem;
  }
  .yap-rail-nav {
    align-items: center;
    width: 100%;
  }
  .yap-rail-post {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    max-width: none;
    padding: 0;
    margin: 0.65rem auto 0.35rem;
    border-radius: 50%;
  }
  .yap-rail-post-ico {
    display: inline-grid;
  }
  .yap-rail-post-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .yap-rail-account {
    justify-content: center;
    gap: 0;
    padding: 0.4rem;
    min-height: 0;
    width: 3.1rem;
  }
  .yap-rail-account-avatar {
    width: 36px;
    height: 36px;
  }
}

/* avatarmatch1 — legacy orb initials (kept for any leftover markup) */
.avatar-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  color: var(--cyan, #3ec6d8);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}
.avatar-orb.is-initials,
.profile-orb.is-initials {
  display: grid;
  place-items: center;
  background: rgba(62, 198, 216, 0.14) !important;
  border: 1px solid rgba(126, 200, 216, 0.28);
  box-shadow: none;
  cursor: default;
  line-height: 1;
  color: var(--cyan, #3ec6d8);
  overflow: hidden; /* photo crop only; initials centered inside clean disk */
}
.avatar-orb.has-photo,
.profile-orb.has-photo {
  background: transparent !important;
}
.avatar-orb.has-photo .avatar-initials,
.profile-orb.has-photo .avatar-initials {
  display: none;
}
.profile-orb .avatar-initials {
  font-size: 1.65rem;
}
.avatar-orb:not(.profile-orb) .avatar-initials {
  font-size: 1.35rem;
}
.dir-card .orb.is-initials {
  display: grid;
  place-items: center;
  background: rgba(62, 198, 216, 0.14) !important;
  box-shadow: none;
  border: 1px solid rgba(126, 200, 216, 0.28);
}
.dir-card .orb.has-photo {
  background: transparent !important;
}
.dir-card .orb .avatar-initials {
  font-size: 0.72rem;
  position: relative;
  z-index: 0;
}
.dir-card .orb.has-photo .avatar-initials {
  display: none;
}

/* avatarmatch2 — profile header + directory use same face as YAP .signal-avatar */
.profile-photo-edit-wrap {
  overflow: visible; /* pencil sits outside ring; never clip glow/ring */
}
.profile-photo-edit-wrap > .profile-header-avatar-wrap,
.profile-card .profile-header-avatar-wrap,
.identity .profile-header-avatar-wrap {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  /* glow on wrap — do not put is-online-public on the disk itself */
}
.profile-header-avatar.signal-avatar,
.profile-header-avatar.signal-avatar-img,
.profile-header-avatar-wrap > .signal-avatar,
.profile-header-avatar-wrap > .signal-avatar-img {
  width: 88px;
  height: 88px;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  line-height: 1;
  /* identical chrome to feed .signal-avatar (border/bg/color from base rule) */
}
.profile-header-avatar-wrap.is-online-public {
  /* glow on wrap only — never on the initials disk (avoids CM notch) */
  overflow: visible;
}
.profile-header-avatar-wrap > .signal-avatar[hidden],
.profile-header-avatar-wrap > .signal-avatar-img[hidden] {
  display: none !important;
}
/* Self-only pencil: never mask the ring for viewers (.hidden => display:none) */
.profile-photo-edit-wrap > .profile-edit-pencil.hidden {
  display: none !important;
  pointer-events: none;
}
.profile-photo-edit-wrap > .profile-edit-pencil:not(.hidden) {
  /* sit outside the disk so it cannot punch a notch through the ring */
  right: -6px;
  bottom: -6px;
  z-index: 4;
}
/* Directory cards — same disk as feed (40px), online glow on wrap */
.dir-card .dir-avatar-wrap,
.dir-card .signal-avatar-wrap.dir-avatar-wrap {
  width: 40px;
  height: 40px;
  margin-bottom: 0.7rem;
  overflow: visible;
}
.dir-card .dir-avatar.signal-avatar,
.dir-card .dir-avatar.signal-avatar-img,
.dir-card .dir-avatar-wrap > .signal-avatar,
.dir-card .dir-avatar-wrap > .signal-avatar-img {
  width: 40px;
  height: 40px;
  font-size: 0.72rem;
}
.dir-card .dir-avatar-wrap.is-online-public {
  box-shadow: 0 0 0 2px #0e141c, 0 0 0 3.5px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.4);
}
/* Avoid double rings: do not also style leftover .orb online when using wrap */
.dir-card .dir-avatar-wrap > .signal-avatar,
.dir-card .dir-avatar-wrap > .signal-avatar-img {
  position: relative;
  z-index: 0;
}

/* yap5 / yap-cards1 — whole post row as card (barely-there hover) */
li.board-row.signal-row[data-post-id]:not(.is-empty):not(.signal-detail-focus),
li.board-row.signal-row[data-reply-id]:not(.is-empty):not(.signal-detail-focus) {
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}
li.board-row.signal-row[data-post-id]:not(.is-empty):not(.signal-detail-focus):hover,
li.board-row.signal-row[data-reply-id]:not(.is-empty):not(.signal-detail-focus):hover {
  background: rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 0 0 1px rgba(126, 200, 216, 0.07);
}
.signal-quote-embed[data-quote-id] {
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.signal-quote-embed[data-quote-id]:hover {
  background: rgba(126, 200, 216, 0.07);
  border-color: rgba(126, 200, 216, 0.28);
}
.signal-quote-preview .signal-quote-embed[data-quote-id] {
  cursor: default;
}
.signal-quote-preview .signal-quote-embed[data-quote-id]:hover {
  background: rgba(12, 16, 22, 0.55);
  border-color: rgba(126, 200, 216, 0.18);
}


/* yap-mod1 — post detail ⋯ menu (not on feed cards) */
.signal-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.signal-detail-top .signal-author-meta {
  flex: 1;
  min-width: 0;
}
.signal-post-menu {
  position: relative;
  flex: 0 0 auto;
  margin: -0.15rem 0 0;
}
.signal-menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim, #7a8490);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.signal-menu-btn:hover,
.signal-menu-btn:focus-visible,
.signal-menu-btn[aria-expanded="true"] {
  color: #f2e6c4;
  background: rgba(255,255,255,0.05);
  outline: none;
}
.signal-menu-panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 10.5rem;
  padding: 0.3rem;
  border-radius: 8px;
  background: #14181e;
  border: 1px solid rgba(62, 198, 216, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  z-index: 30;
}
.signal-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #e8eef4);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}
.signal-menu-item:hover,
.signal-menu-item:focus-visible {
  background: rgba(62, 198, 216, 0.12);
  color: var(--cyan, #3ec6d8);
  outline: none;
}
.signal-menu-item.signal-menu-delete {
  color: #e07070;
  margin-top: 0.15rem;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 0 0 6px 6px;
}
.signal-menu-item.signal-menu-delete:hover,
.signal-menu-item.signal-menu-delete:focus-visible {
  background: rgba(224, 112, 112, 0.12);
  color: #ff8f8f;
}


/* yap7 — link previews / YouTube embeds */
.signal-inline-link {
  color: var(--cyan, #3ec6d8);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.signal-inline-link:hover { color: #7adff0; }
.signal-yt-embed {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0.55rem 0 0.15rem;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0e14;
  border: 1px solid rgba(126, 200, 216, 0.18);
}
.signal-yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.signal-link-card {
  display: flex;
  gap: 0.7rem;
  align-items: stretch;
  max-width: 32rem;
  margin: 0.55rem 0 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(126, 200, 216, 0.18);
  background: rgba(12, 16, 22, 0.72);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.signal-link-card:hover {
  border-color: rgba(62, 198, 216, 0.42);
  background: rgba(18, 24, 34, 0.9);
}
.signal-link-card-thumb {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 7px;
  background: #0a0e14;
}
.signal-link-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  justify-content: center;
}
.signal-link-card-host {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim, #7a8490);
}
.signal-link-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text, #e8eef4);
  line-height: 1.25;
}
.signal-link-card-desc {
  font-size: 0.78rem;
  color: var(--dim, #7a8490);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.signal-link-card--image {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.signal-link-card--image .signal-link-card-img {
  display: block;
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
  background: #0a0e14;
}
.signal-link-card--image .signal-link-card-meta {
  padding: 0.45rem 0.65rem 0.55rem;
}

.wiki-bm-path { margin: 0.15rem 0 0.35rem; font-family: var(--mono, ui-monospace, monospace); font-size: 0.82rem; }
.wiki-bm-path a { color: var(--cyan, #3ec6d8); text-decoration: none; }
.wiki-bm-path a:hover { text-decoration: underline; }
.bookmarks-hub-tabs { margin: 0.35rem 0 0.85rem; }


/* articles1 — player articles MVP (IDEA-0012) */
.profile-feed-tabs {
  display: flex;
  gap: 0.15rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.profile-feed-tabs .signal-tab {
  flex: 0 0 auto; /* don’t stretch label hit-area across half the card */
  min-width: 7.5rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
/* yaprepost1 — superseded by yapfilterdd1 (X-style dropdown on first tab; see end block) */
.profile-yap-filter { display: none; } /* legacy second-row filter removed from HTML */
.profile-articles-list .profile-article-title {
  color: inherit;
  text-decoration: none;
}
.profile-articles-list .profile-article-title:hover {
  color: #f2e6c4;
}
.profile-article-meta {
  font-size: 0.82rem;
  margin-top: 0.15rem;
}
.profile-articles-compose-hint {
  margin-top: 0.75rem;
}
.article-page .article-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 1.5rem;
}
.article-cover {
  margin: -0.25rem -0.35rem 1rem;
  border-radius: 10px;
  overflow: hidden;
  max-height: 280px;
  background: rgba(255,255,255,0.04);
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
}
.article-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  font-size: 0.92rem;
}
.article-author {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}
.article-author:hover { color: #f2e6c4; }
.article-body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(242, 246, 250, 0.92);
}
.article-body-p {
  margin: 0 0 1rem;
}
.article-body-p a {
  color: #d4c091;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-foot {
  margin-top: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}


/* follows1 — dedicated Following/Followers tab page */
.follows-page {
  max-width: 42rem;
  padding-bottom: 3rem;
}
.follows-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.35rem 0 0.85rem;
}
.follows-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -0.15rem 0 0 -0.35rem;
  color: var(--gold-soft, #f2e6c4);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
}
.follows-back:hover {
  color: var(--gold, #c9a85c);
  background: rgba(255, 255, 255, 0.04);
}
.follows-head-text {
  min-width: 0;
  padding-top: 0.35rem;
}
.follows-display {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-soft, #f2e6c4);
  line-height: 1.2;
}
.follows-handle {
  margin: 0.15rem 0 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--dim, #7a8490);
}
.follows-tabs-wrap {
  margin: 0 0 0.85rem;
}
.follows-list .signal-avatar,
.follows-list .signal-avatar-img {
  width: 40px;
  height: 40px;
  font-size: 0.72rem;
}
.follows-list a {
  padding: 0.55rem 0;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.follows-list .pf-name {
  font-size: 0.95rem;
}
.follows-list .pf-handle {
  font-size: 0.8rem;
}
.follows-list .pf-bio {
  font-size: 0.82rem;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* profileux5 / profile-header2 — pull counts+socials up; trim bottom dead space under identity card */
.profile-rl.profile-heartbeat-main {
  padding: 0.85rem 1.05rem 0.5rem;
}
.profile-rl .profile-bio-wrap {
  margin: 0.5rem 0 0.28rem;
}
.profile-rl .meta-row {
  margin: 0.22rem 0 0;
}
.profile-rl .profile-socials,
.profile-rl .profile-socials-icons {
  margin: 0.32rem 0 0.1rem;
}
.profile-rl .profile-follow-counts {
  margin: 0.1rem 0 0;
}
/* Count links stay clickable; drop oversized 44px min-height dead band in the card */
.profile-rl .profile-follow-counts .profile-count-btn,
.profile-rl .profile-follow-counts a.profile-count-btn {
  min-height: 0;
  padding: 0.15rem 0.05rem;
  line-height: 1.35;
}
.profile-rl .profile-acts {
  margin-top: 0.4rem;
}
.profile-rl .profile-acts-hint {
  margin-top: 0.18rem;
  margin-bottom: 0;
}
/* Self-view: all act buttons .hidden — collapse empty acts row so card ends under counts/socials */
.profile-rl .profile-acts:not(:has(> :not(.hidden))) {
  display: none;
  margin: 0;
  min-height: 0;
}
.profile-rl #profile-msg:empty {
  display: none;
  margin: 0;
  min-height: 0;
  padding: 0;
}
@media (max-width: 820px) {
  .profile-rl.profile-heartbeat-main {
    padding: 0.75rem 0.9rem 0.4rem;
  }
}

/* === yapfilterdd1 — X-style profile YAP filter dropdown (one tab row) === */
.profile-feed-tabs--yapfilter {
  position: relative;
}
.profile-yap-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 10.5rem; /* "Posts & reposts" + chevron */
  white-space: nowrap;
}
.profile-yap-tab-label {
  pointer-events: none;
}
.profile-yap-tab-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
  margin-top: 1px;
  flex: 0 0 auto;
  pointer-events: none;
}
.profile-yap-tab[aria-expanded="true"] .profile-yap-tab-chevron {
  opacity: 1;
}
.yap-filter-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 12.5rem;
  padding: 0.35rem 0;
  margin: 0;
  list-style: none;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 168, 92, 0.08);
}
.yap-filter-menu[hidden] {
  display: none !important;
}
.yap-filter-menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.62rem 0.95rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #ebe6d8);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}
.yap-filter-menu-item:hover,
.yap-filter-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft, #f2e6c4);
  outline: none;
}
.yap-filter-menu-item .yap-filter-check {
  visibility: hidden;
  color: var(--gold, #c9a85c);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}
.yap-filter-menu-item.is-selected .yap-filter-check {
  visibility: visible;
}
.profile-feed-tabs--yapfilter .profile-yap-tab.is-active::after {
  width: 10.5rem; /* match first-tab min-width for Posts & reposts */
  max-width: calc(100% - 0.35rem);
}
/* === end yapfilterdd1 === */


/* ===== headerchip1 — sitewide header photo chip (LIVE) =====
   Replaces My Account when logged in. Soft gold ring default;
   dualparty1 rings: purple global > teal quest > green in-game > blue site-online > none offline. Gold=premium only.
   No orange. Play bar CTA hidden when .nav-account.is-authed. */
.nav-account.is-authed {
  position: relative;
  display: inline-flex;
  align-items: center;
}
a.play-mini.is-nav-play-hidden,
.nav a.play-mini.is-nav-play-hidden {
  display: none !important;
}
.nav-photo-chip {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;
  box-shadow: none !important;
  filter: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  letter-spacing: normal;
  font-weight: 700;
  min-height: 0 !important;
}
.nav-photo-chip:hover,
.nav-photo-chip:focus {
  color: inherit;
  filter: none !important;
  background: transparent !important;
  text-decoration: none !important;
}
.nav-photo-chip:focus-visible {
  outline: 2px solid var(--gold, #c9a85c);
  outline-offset: 2px;
}
.nav-photo-chip-ring {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
  /* dualparty1 — none/offline default (gold = premium only) */
  background: linear-gradient(160deg, #3a424c 0%, #1a1f26 100%);
  box-shadow:
    0 0 0 1px rgba(120, 130, 140, 0.28);
}
.nav-account.is-authed:hover .nav-photo-chip-ring,
.nav-account.is-authed.is-open .nav-photo-chip-ring {
  box-shadow:
    0 0 0 1px rgba(160, 170, 180, 0.35),
    0 0 10px rgba(80, 90, 100, 0.2);
}
/* Status rings replace gold (single ring). Priority applied via one data-status / class. */
.nav-account.is-status-online .nav-photo-chip-ring,
.nav-account[data-status="online"] .nav-photo-chip-ring {
  background: linear-gradient(160deg, #9ad4ff 0%, #3b82f6 55%, #1d4ed8 100%);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.4),
    0 0 12px rgba(59, 130, 246, 0.38);
}
.nav-account.is-status-online:hover .nav-photo-chip-ring,
.nav-account.is-status-online.is-open .nav-photo-chip-ring {
  box-shadow:
    0 0 0 1px rgba(154, 212, 255, 0.45),
    0 0 16px rgba(59, 130, 246, 0.42);
}
/* ringfix1 — green = in-game (matches Online status light) */
.nav-account.is-status-in-game .nav-photo-chip-ring,
.nav-account[data-status="in-game"] .nav-photo-chip-ring {
  background: linear-gradient(160deg, #7dffb0 0%, #3dce7a 55%, #1f8a4c 100%);
  box-shadow:
    0 0 0 1px rgba(61, 206, 122, 0.35),
    0 0 12px rgba(61, 206, 122, 0.35);
}
/* dualparty1 — purple = Global party */
.nav-account.is-status-audio .nav-photo-chip-ring,
.nav-account.is-status-global .nav-photo-chip-ring,
.nav-account[data-status="audio"] .nav-photo-chip-ring,
.nav-account[data-status="global"] .nav-photo-chip-ring {
  background: linear-gradient(160deg, #e0b3ff 0%, #a855f7 55%, #6b21a8 100%);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.4),
    0 0 12px rgba(168, 85, 247, 0.38);
}
.nav-account.is-status-quest .nav-photo-chip-ring,
.nav-account[data-status="quest"] .nav-photo-chip-ring {
  background: linear-gradient(160deg, #5eead4 0%, #2dd4bf 55%, #0f766e 100%);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.4),
    0 0 12px rgba(45, 212, 191, 0.38);
}
.nav-account.is-status-offline .nav-photo-chip-ring,
.nav-account[data-status="offline"] .nav-photo-chip-ring {
  background: linear-gradient(160deg, #3a424c 0%, #1a1f26 100%);
  box-shadow: 0 0 0 1px rgba(120, 130, 140, 0.28);
}
.nav-account.is-status-premium .nav-photo-chip-ring,
.nav-account[data-status="premium"] .nav-photo-chip-ring {
  background: linear-gradient(160deg, #f2e6c4 0%, #c9a85c 58%, #8a7340 100%);
  box-shadow:
    0 0 0 1px rgba(201, 168, 92, 0.3),
    0 0 10px rgba(201, 168, 92, 0.18);
}
.nav-photo-chip-face {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Opaque YAP-family disk so status ring color does not bleed into face */
  background: #121820;
  background-image: linear-gradient(180deg, rgba(62, 198, 216, 0.16), rgba(62, 198, 216, 0.1));
  color: var(--cyan, #3ec6d8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
  border: 1px solid rgba(126, 200, 216, 0.28);
  box-sizing: border-box;
  text-decoration: none;
  overflow: hidden;
}
.nav-photo-chip-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(126, 200, 216, 0.28);
  box-sizing: border-box;
}
.nav-photo-chip-ring.has-photo .nav-photo-chip-face[hidden],
.nav-photo-chip-face[hidden],
.nav-photo-chip-img[hidden] {
  display: none !important;
}
.nav-account.is-authed .nav-account-menu {
  /* keep existing menu chrome; chip trigger is circular */
  right: 0;
}

/* Articles bylines — same signal-avatar family (sm) */
.article-byline .signal-avatar-wrap {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.article-byline .signal-avatar,
.article-byline .signal-avatar-img {
  width: 28px;
  height: 28px;
  font-size: 0.58rem;
  line-height: 1;
}
.article-author {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Legacy .avatar-orb.sm used as initials disk → match signal face when is-initials / bare text */
.avatar-orb.sm {
  width: 28px;
  height: 28px;
  font-size: 0.58rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}
.avatar-orb.sm:not(.has-img):not(.has-photo) {
  background: rgba(62, 198, 216, 0.14) !important;
  border: 1px solid rgba(126, 200, 216, 0.28);
  box-shadow: none;
  color: var(--cyan, #3ec6d8);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* === yapnotif1 — YAP notifications rail + feed === */
.yap-rail-item {
  position: relative;
}
.yap-rail-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--gold, #c9a85c);
  color: #1a1408;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(12, 14, 17, 0.9);
}
.yap-rail-badge.hidden { display: none !important; }
@media (min-width: 901px) and (max-width: 1199px) {
  .yap-rail-badge {
    top: 0.2rem;
    right: 0.15rem;
    min-width: 0.95rem;
    height: 0.95rem;
    line-height: 0.95rem;
    font-size: 0.55rem;
    padding: 0 0.2rem;
  }
}
@media (max-width: 900px) {
  .yap-rail-badge {
    top: 0.1rem;
    right: calc(50% - 1.35rem);
  }
}
.signal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.yap-notif-list .yap-notif-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.35rem;
  border-bottom: 1px solid rgba(126, 200, 216, 0.12);
}
.yap-notif-list .yap-notif-row.is-unread {
  /* notifseen1 — slightly brighter unread wash; stays for this visit */
  background: rgba(201, 168, 92, 0.14);
  box-shadow: inset 3px 0 0 var(--gold, #c9a85c);
}
.yap-notif-avatar { text-decoration: none; }
.yap-notif-main {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.yap-notif-main:hover .yap-notif-snip {
  color: var(--gold-soft, #f2e6c4);
}
.yap-notif-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}
.yap-notif-verb { color: rgba(232, 236, 242, 0.78); }
.yap-notif-snip {
  margin: 0.35rem 0 0;
  color: rgba(180, 190, 205, 0.78);
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* === end yapnotif1 === */
.yap-notif-snip { display: block; text-decoration: none; }
.yap-notif-verb { text-decoration: none; }
.yap-notif-line .signal-when { text-decoration: none; color: inherit; }

/* ===== navboot2 — kill guest Log in + Play flash before deferred nav-auth =====
   html.arco-likely-authed is set sync by /js/nav-boot.js (in <head>) when
   sessionStorage has arco_nav_user. Hide Play with visibility+position so layout
   does not jump; restyle #nav-account-btn.login-mini as gold placeholder disc
   until .is-authed / .nav-photo-chip. */
html.arco-likely-authed a.play-mini,
html.arco-likely-authed .nav a.play-mini {
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  pointer-events: none !important;
}
html.arco-likely-authed #nav-account-btn.login-mini {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
  color: transparent !important;
  text-indent: -9999px;
  text-shadow: none !important;
  box-shadow:
    0 0 0 1px rgba(201, 168, 92, 0.3),
    0 0 10px rgba(201, 168, 92, 0.18) !important;
  /* gold disc matching offline chip ring family */
  background: linear-gradient(160deg, #f2e6c4 0%, #c9a85c 58%, #8a7340 100%) !important;
  filter: none !important;
  pointer-events: none; /* until nav-auth wires the real chip */
}
html.arco-likely-authed #nav-account-btn.login-mini::after {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #121820;
  background-image: linear-gradient(180deg, rgba(62, 198, 216, 0.16), rgba(62, 198, 216, 0.1));
  border: 1px solid rgba(126, 200, 216, 0.28);
  box-sizing: border-box;
  text-indent: 0;
}
/* Once nav-auth adds .is-authed / .nav-photo-chip, real chip CSS wins; class may remain briefly. */
html.arco-likely-authed .nav-account.is-authed #nav-account-btn.login-mini,
html.arco-likely-authed #nav-account-btn.nav-photo-chip {
  pointer-events: auto;
  font-size: inherit;
  text-indent: 0;
  color: inherit;
}
/* === end navboot2 === */

/* === dirface1 — hidden/has-photo wins over .signal-avatar { display:grid } (double face on dir cards) === */
.signal-avatar-wrap.has-photo > .signal-avatar,
.signal-avatar[hidden],
.signal-avatar-img[hidden] {
  display: none !important;
}
.dir-card .signal-avatar-wrap.has-photo > .signal-avatar {
  display: none !important;
}
/* === end dirface1 === */

/* === wikiyap2 — labeled YAP rail on Wikipedia left column (was icon-only wikiyap1) === */
.wiki-side-dock > .yap-rail--wiki {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.12rem;
  min-height: 0;
  max-width: none;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.4rem 0.45rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-sizing: border-box;
}
.yap-rail--wiki .yap-rail-brand {
  justify-content: flex-start;
  align-items: center;
  padding: 0.28rem 0.35rem;
  margin-bottom: 0.05rem;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
}
.yap-rail--wiki .yap-rail-brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.62rem;
  flex: 0 0 auto;
}
/* Show full text labels (undo wikiyap1 sr-only + mid-width yaprail2 collapse clips) */
.yap-rail--wiki .yap-rail-brand-text,
.yap-rail--wiki .yap-rail-label,
.yap-rail--wiki .yap-rail-post-label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.yap-rail--wiki .yap-rail-account-text {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;
}
.yap-rail--wiki .yap-rail-brand-text {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.yap-rail--wiki .yap-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.06rem;
  width: 100%;
}
.yap-rail--wiki .yap-rail-item {
  justify-content: flex-start;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.45rem;
  width: 100%;
  min-height: 2.05rem;
  font-size: 0.8rem;
  font-weight: 550;
  border-radius: 999px;
  box-sizing: border-box;
}
.yap-rail--wiki .yap-rail-label {
  font-size: 0.8rem;
  line-height: 1.15;
}
.yap-rail--wiki .yap-rail-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.yap-rail--wiki .yap-rail-ico svg {
  width: 16px;
  height: 16px;
}
.yap-rail--wiki .yap-rail-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 2.15rem;
  padding: 0.42rem 0.65rem;
  margin: 0.35rem 0 0.15rem;
  border-radius: 999px;
  align-self: stretch;
  font-size: 0.82rem;
  box-sizing: border-box;
}
.yap-rail--wiki .yap-rail-post-ico {
  display: none !important;
}
.yap-rail--wiki .yap-rail-post-label {
  display: inline !important;
  font-size: 0.82rem;
  font-weight: 750;
}
.yap-rail--wiki .yap-rail-account {
  justify-content: flex-start;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.35rem;
  margin-top: 0.12rem;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.yap-rail--wiki .yap-rail-account-avatar {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.55rem;
  flex: 0 0 auto;
}
.yap-rail--wiki .yap-rail-account-text {
  display: flex !important;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
  flex: 1 1 auto;
}
.yap-rail--wiki .yap-rail-account-text strong {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yap-rail--wiki .yap-rail-account-text span {
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yap-rail--wiki .yap-rail-badge {
  top: 0.2rem;
  right: 0.35rem;
  min-width: 0.85rem;
  height: 0.85rem;
  line-height: 0.85rem;
  font-size: 0.5rem;
  padding: 0 0.15rem;
}

/* Defeat YAP mobile bottom-bar / mid-collapse; keep labeled column in wiki-side */
@media (max-width: 900px) {
  .wiki-side-dock > .yap-rail--wiki {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    background: var(--panel) !important;
    border: 1px solid var(--line-soft) !important;
    border-top: 1px solid var(--line-soft) !important;
    border-radius: var(--radius) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0.35rem 0.4rem 0.45rem !important;
  }
  .yap-rail--wiki .yap-rail-brand,
  .yap-rail--wiki .yap-rail-account {
    display: flex !important;
  }
  .yap-rail--wiki .yap-rail-nav {
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .yap-rail--wiki .yap-rail-item {
    flex-direction: row !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.05rem !important;
    padding: 0.38rem 0.45rem !important;
    font-size: 0.78rem !important;
    border-radius: 999px !important;
    gap: 0.45rem !important;
  }
  .yap-rail--wiki .yap-rail-label {
    font-size: 0.78rem !important;
  }
  .yap-rail--wiki .yap-rail-post {
    width: 100% !important;
    height: auto !important;
    min-height: 2.15rem !important;
    margin: 0.35rem 0 0.15rem !important;
    padding: 0.42rem 0.65rem !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
  }
  .yap-rail--wiki .yap-rail-post-ico {
    display: none !important;
  }
  .yap-rail--wiki .yap-rail-post-label {
    display: inline !important;
  }
  .yap-rail--wiki .yap-rail-badge {
    top: 0.2rem !important;
    right: 0.35rem !important;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .yap-rail--wiki .yap-rail-brand-text,
  .yap-rail--wiki .yap-rail-label,
  .yap-rail--wiki .yap-rail-post-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .yap-rail--wiki .yap-rail-account-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    border: 0 !important;
  }
  .yap-rail--wiki .yap-rail-item {
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    padding: 0.38rem 0.45rem !important;
    width: 100% !important;
    min-height: 2.05rem !important;
  }
  .yap-rail--wiki .yap-rail-nav {
    align-items: stretch !important;
    width: 100% !important;
  }
  .yap-rail--wiki .yap-rail-post {
    width: 100% !important;
    height: auto !important;
    min-height: 2.15rem !important;
    max-width: none !important;
    padding: 0.42rem 0.65rem !important;
    margin: 0.35rem 0 0.15rem !important;
    border-radius: 999px !important;
  }
  .yap-rail--wiki .yap-rail-post-ico {
    display: none !important;
  }
  .yap-rail--wiki .yap-rail-account {
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    padding: 0.28rem 0.35rem !important;
    min-height: 0 !important;
    width: 100% !important;
  }
}

/* Slightly tighter labels if sidebar is very narrow */
@media (max-width: 420px) {
  .yap-rail--wiki .yap-rail-item,
  .yap-rail--wiki .yap-rail-label {
    font-size: 0.76rem !important;
  }
  .yap-rail--wiki .yap-rail-post,
  .yap-rail--wiki .yap-rail-post-label {
    font-size: 0.78rem !important;
  }
}

/* Compose attach chip (wiki page embed) — mirrors quote preview clear */
.signal-compose-embed {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(126, 200, 216, 0.22);
  border-radius: 0.65rem;
  background: rgba(126, 200, 216, 0.06);
}
.signal-compose-embed[hidden] { display: none !important; }
.signal-compose-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #c9a85c);
}
.signal-compose-embed-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink, #e8eef4);
  line-height: 1.3;
}
.signal-compose-embed-url {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--cyan, #7ec8d8);
  word-break: break-all;
}
/* === end wikiyap2 === */
/* === wikisticky1 — YAP rail sticks top-left; Contents/Categories slide under === */
/* .wiki-side stretches with .wiki-main so sticky constraint lasts the article height */
.wiki-side-dock > .yap-rail--wiki {
  position: sticky;
  top: 4.75rem; /* clear sticky .site-header (~bar + safe area) */
  z-index: 12; /* above .wiki-side-block; below .site-header (20) */
  align-self: start;
  background: var(--panel); /* opaque so Contents slide under cleanly */
}
/* Defeat wikiyap2 mobile relative!important so sticky still works in sidebar column */
@media (max-width: 900px) {
  .wiki-side-dock > .yap-rail--wiki {
    position: sticky !important;
    top: 4.75rem !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 12 !important;
  }
}
@media (max-width: 760px) {
  /* single-column wiki: sticky still OK while sidebar content scrolls */
  .wiki-side-dock > .yap-rail--wiki {
    top: 4.5rem !important;
  }
}
.wrap-wiki,
.wiki-layout,
.wiki-side {
  overflow: visible;
}
/* === end wikisticky1 === */
/* === yaprailacct1 — YAP rail account chip menu (Account | Log out); leave wikisticky1 intact === */
.yap-rail-account {
  position: relative;
  cursor: pointer;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.yap-rail-account.is-authed {
  /* button-like; no navigation underline */
  text-decoration: none;
}
.yap-rail-account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.4rem);
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: #14181e;
  border: 1px solid rgba(62, 198, 216, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  z-index: 45;
}
.yap-rail-account-menu.hidden {
  display: none !important;
}
.yap-rail-account-menu a,
.yap-rail-account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #e8eef4);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.yap-rail-account-menu a:hover,
.yap-rail-account-menu button:hover {
  background: rgba(62, 198, 216, 0.12);
  color: var(--cyan, #3ec6d8);
}
.yap-rail-account-menu button#yap-rail-logout,
.yap-rail-account-menu button[data-yap-rail-logout] {
  color: #e07070;
  margin-top: 0.1rem;
  border-top: 1px solid var(--line, rgba(126, 200, 216, 0.16));
  border-radius: 0 0 6px 6px;
}
.yap-rail-account-menu button#yap-rail-logout:hover,
.yap-rail-account-menu button[data-yap-rail-logout]:hover {
  background: rgba(212, 92, 92, 0.12);
  color: #ffb4b4;
}
/* wiki rail: menu opens upward above compact chip */
.yap-rail--wiki .yap-rail-account-menu {
  left: 0;
  right: auto;
  min-width: 10.5rem;
}
/* mobile bottom bar: account chip hidden — menu unused */
@media (max-width: 900px) {
  .yap-shell > .yap-rail .yap-rail-account-menu {
    /* chip itself display:none on mobile yap shell */
  }
}
/* === end yaprailacct1 === */


/* === wikinav1 — one sticky stack: YAP rail + Wiki nav panel; Contents|Categories switcher === */
.wiki-side-dock {
  position: sticky;
  top: 4.75rem; /* clear sticky .site-header */
  z-index: 12; /* below .site-header (20); above article */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  align-self: start;
  box-sizing: border-box;
}
/* Rail no longer sticks alone — dock is the sticky unit */
.wiki-side-dock > .yap-rail--wiki {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto;
  align-self: stretch;
  margin-bottom: 0; /* dock gap */
}
@media (max-width: 900px) {
  .wiki-side-dock {
    position: sticky !important;
    top: 4.75rem !important;
    z-index: 12 !important;
  }
  .wiki-side-dock > .yap-rail--wiki {
    position: relative !important;
    top: auto !important;
  }
}
@media (max-width: 760px) {
  .wiki-side-dock {
    top: 4.5rem !important;
  }
}
.wrap-wiki,
.wiki-layout,
.wiki-side {
  overflow: visible;
}

.wiki-nav-panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 0.95rem;
  margin: 0;
  box-sizing: border-box;
}
/* wikihomebtn2 — quiet secondary Wiki home (Post owns gold); rename via WIKI_HOME_LABEL */
.wiki-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.45rem;
  padding: 0.38rem 0.62rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(62, 198, 216, 0.35);
  background: rgba(20, 26, 34, 0.72);
  color: var(--muted, #9aa7b5);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  box-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.wiki-nav-home:hover {
  color: var(--cyan, #3ec6d8);
  background: rgba(62, 198, 216, 0.08);
  border-color: rgba(62, 198, 216, 0.5);
  text-decoration: none;
  filter: none;
}
.wiki-nav-home:focus-visible {
  outline: 2px solid rgba(62, 198, 216, 0.65);
  outline-offset: 2px;
}
.wiki-nav-home[aria-current="page"] {
  color: var(--ink, #e8eef4);
  font-weight: 700;
  pointer-events: none;
  text-decoration: none;
  background: rgba(62, 198, 216, 0.1);
  border-color: rgba(62, 198, 216, 0.55);
  box-shadow: 0 0 0 1px rgba(62, 198, 216, 0.25);
  filter: none;
}
.wiki-nav-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wiki-nav-head {
  position: relative;
  margin: 0 0 0.45rem;
}
.wiki-nav-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.15rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}
.wiki-nav-switch:hover,
.wiki-nav-switch:focus-visible {
  color: var(--ink);
  outline: none;
}
.wiki-nav-switch[aria-expanded="true"] {
  color: var(--ink);
}
.wiki-nav-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.2rem);
  z-index: 20;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: #14181e;
  border: 1px solid rgba(62, 198, 216, 0.28);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}
.wiki-nav-menu.hidden {
  display: none !important;
}
.wiki-nav-menu [role="option"] {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: var(--ink, #e8eef4);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.wiki-nav-menu [role="option"]:hover,
.wiki-nav-menu [role="option"][aria-selected="true"] {
  background: rgba(62, 198, 216, 0.12);
  color: var(--cyan, #3ec6d8);
}
.wiki-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wiki-nav-list.is-hidden,
.wiki-nav-list[hidden] {
  display: none !important;
}
.wiki-nav-list.is-active {
  display: block;
}
.wiki-nav-group {
  list-style: none;
  margin: 0.55rem 0 0.15rem;
  padding: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wiki-nav-group:first-child {
  margin-top: 0.15rem;
}
.wiki-nav-list .wiki-nav-group + li,
.wiki-nav-list li {
  margin: 0.22rem 0;
}
.wiki-nav-list li.wiki-nav-group {
  margin: 0.55rem 0 0.15rem;
  pointer-events: none;
}
.wiki-nav-list li {
  margin: 0.28rem 0;
}
.wiki-nav-list a {
  color: var(--cyan);
  text-decoration: none;
}
.wiki-nav-list a:hover {
  text-decoration: underline;
}
.wiki-nav-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
/* Legacy dual boxes unused after wikinav1; keep look if remnant HTML */
.wiki-side-block {
  /* unchanged base styles above; dock replaces stacked usage */
}
/* === end wikinav1 === */

/* === checkalign1 — checkbox/radio align with labels (not text-input width) === */


/* === yapraildir1 — Directory (Residents) sticky YAP left rail (reuse profile-yap-shell) === */
main.portal.directory-yap-shell > .yap-feed.directory-yap-main > .ap-section-hero {
  margin-bottom: 0.25rem;
}
main.portal.directory-yap-shell > .yap-feed.directory-yap-main > .ap-section-hero .ap-section-hero-inner {
  padding: 1.25rem 1.15rem 1.1rem;
}
main.portal.directory-yap-shell > .yap-feed.directory-yap-main > .ap-section-hero h1 {
  letter-spacing: 0.04em;
  line-height: 1.18;
  max-width: 20ch;
}
main.portal.directory-yap-shell > .yap-feed.directory-yap-main {
  min-width: 0;
}
@media (max-width: 720px) {
  main.portal.directory-yap-shell > .yap-feed.directory-yap-main > .ap-section-hero .ap-section-hero-inner {
    padding: 1.05rem 0.95rem 0.95rem;
  }
  main.portal.directory-yap-shell > .yap-feed.directory-yap-main > .ap-section-hero h1 {
    max-width: none;
  }
}
/* === end yapraildir1 === */


/* === yapdrafts1 — Save draft toast + drafts list === */
.yap-toast {
  position: fixed;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(92vw, 28rem);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(18, 22, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eef5;
  font-size: 0.92rem;
  line-height: 1.3;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.yap-toast.err {
  border-color: rgba(240, 120, 120, 0.45);
  color: #ffd0d0;
}
.yap-draft-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.yap-draft-main {
  flex: 1 1 14rem;
  min-width: 0;
}
.yap-draft-excerpt {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text, #e8eef5);
  line-height: 1.45;
}
.yap-draft-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #9aa7b5);
}
.yap-draft-when {
  display: inline-block;
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #9aa7b5);
}
.yap-draft-actions {
  flex: 0 0 auto;
  margin: 0;
  align-items: center;
}
.yap-draft-actions .btn.sm {
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
}
@media (max-width: 640px) {
  .yap-draft-actions {
    width: 100%;
  }
}
/* === end yapdrafts1 === */

/* mfaqr1 — authenticator QR on Account → Security */
main.portal .acct-panel .mfa-qr-wrap {
  display: inline-block;
  background: #ffffff;
  padding: 14px;
  border-radius: 10px;
  margin: 0.55rem 0 0.85rem;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
main.portal .acct-panel .mfa-qr-wrap.hidden { display: none; }
main.portal .acct-panel #mfa-qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  image-rendering: pixelated;
}
main.portal .acct-panel .mfa-manual {
  margin: 0.35rem 0 0.85rem;
  color: rgba(154, 163, 173, 0.92);
  font-size: 0.86rem;
}
main.portal .acct-panel .mfa-manual summary {
  cursor: pointer;
  color: rgba(126, 200, 216, 0.92);
  margin-bottom: 0.45rem;
}
main.portal .acct-panel .mfa-manual[open] summary {
  margin-bottom: 0.55rem;
}
main.portal .acct-panel #mfa-scan-label {
  margin: 0.35rem 0 0.25rem;
}

/* === wikichip1 — account chip parks bottom-left of wiki dock; nav sits higher === */
html {
  --wiki-dock-top: 4.75rem; /* wiki-rail-clip: JS may overwrite from .site-header height */
}
@media (max-width: 720px) {
  html {
    --wiki-dock-top: 8.5rem; /* wrapping .site-header .bar */
  }
}
.wiki-side-dock {
  top: var(--wiki-dock-top);
  gap: 0.35rem; /* tighter than wikinav1 0.65rem — wiki-nav starts higher */
  min-height: calc(100vh - var(--wiki-dock-top) - 1.1rem);
}
.wiki-side-dock > .yap-rail--wiki {
  margin-bottom: 0;
  flex: 0 0 auto;
}
.wiki-side-dock > .wiki-nav-panel {
  flex: 0 0 auto;
}
/* Chip is last child of the dock (not inside condensed rail) */
.wiki-side-dock > .yap-rail-account {
  position: relative;
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem;
  padding: 0.48rem 0.58rem;
  min-height: 3.2rem;
  width: 100%;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
}
.wiki-side-dock > .yap-rail-account:hover {
  background: rgba(126, 200, 216, 0.1);
}
.wiki-side-dock > .yap-rail-account .yap-rail-account-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.68rem;
  flex: 0 0 auto;
}
.wiki-side-dock > .yap-rail-account .yap-rail-account-text {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;
  display: flex !important;
  flex-direction: column;
  gap: 0.04rem;
  min-width: 0;
  flex: 1 1 auto;
}
.wiki-side-dock > .yap-rail-account .yap-rail-account-text strong {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wiki-side-dock > .yap-rail-account .yap-rail-account-text span {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wiki-side-dock > .yap-rail-account .yap-rail-account-menu {
  left: 0;
  right: auto;
  min-width: 10.5rem;
}
.wiki-crumb [data-wiki-crumb-root] {
  color: inherit;
}
/* Defeat YAP mobile hide + mid-width icon collapse for the dock chip */
@media (max-width: 900px) {
  .wiki-side-dock {
    top: var(--wiki-dock-top) !important;
  }
  .wiki-side-dock > .yap-rail-account {
    display: flex !important;
  }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .wiki-side-dock > .yap-rail-account {
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    padding: 0.48rem 0.58rem !important;
    min-height: 3.2rem !important;
    width: 100% !important;
  }
  .wiki-side-dock > .yap-rail-account .yap-rail-account-avatar {
    width: 36px;
    height: 36px;
  }
}
/* Single-column wiki: don't stretch dock to 100vh (would shove article down) */
@media (max-width: 760px) {
  .wiki-side-dock {
    min-height: 0;
    top: var(--wiki-dock-top) !important;
  }
  .wiki-side-dock > .yap-rail-account {
    margin-top: 0.2rem;
  }
}
/* === end wikichip1 === */

/* === hovercard1 — sitewide player hover card (YAP + follows; auto-bind) === */
.player-hover-card {
  position: fixed;
  z-index: 9200;
  width: min(288px, calc(100vw - 16px));
  padding: 0.72rem 0.78rem 0.7rem;
  border-radius: 12px;
  background: #121820;
  border: 1px solid rgba(126, 200, 216, 0.18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.25);
  color: var(--text, #e8eef4);
  font: inherit;
  line-height: 1.35;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.player-hover-card.is-open {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .player-hover-card {
    transition: none;
  }
}
.player-hover-card[hidden] {
  display: none !important;
}
.phc-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.phc-head:hover .phc-name,
.phc-head:focus-visible .phc-name {
  color: var(--accent, #7ec8d8);
}
.phc-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: visible;
  display: inline-grid;
  place-items: center;
}
.phc-avatar,
.phc-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #1a2330;
  color: #9aa7b5;
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
}
.phc-avatar[hidden],
.phc-avatar-img[hidden],
.phc-flag[hidden],
.phc-bio[hidden],
.phc-geo[hidden],
.phc-status[hidden] {
  display: none !important;
}
.phc-avatar-wrap.is-online-public {
  box-shadow: 0 0 0 2px #121820, 0 0 0 3.5px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.4);
}
.phc-titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.phc-name {
  font-weight: 650;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phc-handle {
  color: var(--dim, #7a8490);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phc-bio {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: #c5ced8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.phc-geo {
  margin: 0.45rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--dim, #7a8490);
  min-width: 0;
}
.phc-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
}
.phc-geo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phc-meta {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--dim, #7a8490);
}
.phc-counts {
  margin: 0.45rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.84rem;
}
.phc-counts a {
  color: inherit;
  text-decoration: none;
}
.phc-counts a:hover,
.phc-counts a:focus-visible {
  color: var(--accent, #7ec8d8);
}
.phc-counts strong {
  font-weight: 650;
  color: var(--text, #e8eef4);
}
.phc-status {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #3dce7a;
}
/* No sticky hover chrome when the device has no hover (phones) */
@media (hover: none) {
  .player-hover-card {
    display: none !important;
  }
}
/* === end hovercard1 === */

/* === diracts1 — Friend/Mute/Report only on public profile More menu (not Directory cards) === */
.profile-more {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.profile-more.hidden {
  display: none !important;
}
.profile-more-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  margin-top: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
  vertical-align: middle;
}
#btn-profile-more[aria-expanded="true"] .profile-more-chevron {
  opacity: 1;
}
.profile-more-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 45;
  min-width: 11rem;
  padding: 0.35rem 0;
  margin: 0;
  list-style: none;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 168, 92, 0.08);
}
.profile-more-menu[hidden] {
  display: none !important;
}
.profile-more-item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.62rem 0.95rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #ebe6d8);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  box-sizing: border-box;
  min-height: 44px;
}
.profile-more-item:hover,
.profile-more-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft, #f2e6c4);
  outline: none;
}
.profile-more-item:disabled,
.profile-more-item[disabled] {
  opacity: 0.65;
  cursor: default;
}
.profile-more-item--danger {
  color: #e8a0a0;
}
.profile-more-item--danger:hover,
.profile-more-item--danger:focus-visible {
  color: #ffb4b4;
  background: rgba(180, 60, 60, 0.12);
}
#btn-friend .friend-chip {
  margin-left: 0.3rem;
}
/* Directory cards: no Friend/Mute/Report action row */
.dir-card > .acts:empty {
  display: none;
}
/* === end diracts1 === */


/* === accdm1 — account DMs / Messages === */
.yap-dm-shell { min-width: 0; }
.yap-dm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1rem; margin-bottom: 0.85rem; }
.yap-dm-title { font-size: 1.35rem; margin: 0; letter-spacing: 0.02em; }
.yap-dm-sub { margin: 0; flex: 1 1 12rem; font-size: 0.88rem; }
.yap-dm-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 0;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(12,14,17,0.55);
}
.yap-dm-list-pane {
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  max-height: 70vh;
  overflow: auto;
}
.yap-dm-thread-list { list-style: none; margin: 0; padding: 0; }
.yap-dm-thread-list > li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.yap-dm-thread {
  display: flex; flex-direction: column; gap: 0.2rem;
  width: 100%; text-align: left;
  padding: 0.75rem 0.9rem;
  background: transparent; border: 0; color: inherit; cursor: pointer;
  font: inherit;
}
.yap-dm-thread:hover, .yap-dm-thread:focus-visible { background: rgba(255,255,255,0.05); outline: none; }
.yap-dm-thread.is-active { background: rgba(80, 160, 200, 0.12); }
.yap-dm-thread.is-unread .yap-dm-thread-name { color: var(--gold-soft, #f2e6c4); }
.yap-dm-thread-name { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; }
.yap-dm-thread-prev { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yap-dm-unread {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  background: #3aa0d8; color: #071018;
}
.yap-dm-empty { padding: 1.25rem 1rem; }
.yap-dm-thread-pane, .yap-dm-compose-pane {
  display: flex; flex-direction: column; min-width: 0; min-height: 420px; max-height: 70vh;
}
.yap-dm-thread-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.yap-dm-peer { color: var(--gold-soft, #f2e6c4); text-decoration: none; font-weight: 600; }
.yap-dm-peer:hover { text-decoration: underline; }
.yap-dm-messages {
  flex: 1 1 auto; overflow: auto; padding: 0.85rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.yap-dm-bubble {
  max-width: min(92%, 34rem);
  align-self: flex-start;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}
.yap-dm-bubble.is-mine {
  align-self: flex-end;
  background: rgba(58, 160, 216, 0.14);
  border-color: rgba(58, 160, 216, 0.25);
}
.yap-dm-bubble-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-size: 0.78rem; margin-bottom: 0.2rem;
}
.yap-dm-bubble-body { margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.4; }
.yap-dm-bubble time { font-size: 0.72rem; }
.yap-dm-bubble-more {
  border: 0; background: transparent; color: inherit; opacity: 0.55; cursor: pointer;
  padding: 0 0.25rem; font-size: 1rem; line-height: 1;
}
.yap-dm-bubble-more:hover { opacity: 1; }
.yap-dm-compose {
  display: flex; gap: 0.5rem; align-items: flex-end;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.yap-dm-compose textarea, .yap-dm-compose--new input, .yap-dm-compose--new textarea {
  flex: 1 1 auto; width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: inherit; padding: 0.55rem 0.65rem;
  font: inherit; resize: vertical;
}
.yap-dm-compose--new { flex-direction: column; align-items: stretch; gap: 0.65rem; border-top: 0; }
.yap-dm-compose--new label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; }
.yap-dm-status { padding: 0 0.9rem 0.7rem; margin: 0; }
.yap-dm-status.is-err { color: #e8a0a0; }
.yap-dm-status.is-ok { color: #9ad4b0; }
.yap-dm-msg-menu {
  position: fixed; z-index: 80;
  min-width: 10rem;
  background: #14181e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 0.25rem;
}
.yap-dm-msg-menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: inherit;
  padding: 0.55rem 0.7rem; border-radius: 6px; cursor: pointer; font: inherit;
}
.yap-dm-msg-menu button:hover { background: rgba(255,255,255,0.06); }
.yap-dm-msg-menu button.is-danger { color: #e8a0a0; }
.yap-dm-empty-thread { margin: 1rem 0; text-align: center; }
@media (max-width: 820px) {
  .yap-dm-layout { grid-template-columns: 1fr; }
  .yap-dm-layout.is-thread .yap-dm-list-pane,
  .yap-dm-layout.is-compose .yap-dm-list-pane { display: none; }
  .yap-dm-layout:not(.is-thread):not(.is-compose) .yap-dm-thread-pane,
  .yap-dm-layout:not(.is-thread):not(.is-compose) .yap-dm-compose-pane { display: none; }
  .yap-dm-back { display: inline-flex !important; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.profile-acts .btn-dm { margin-right: 0.15rem; }
/* === end accdm1 === */

/* === dircard1 — Directory cards = shared player-hover-card body; no Online status text === */
.dir-card.dir-card--phc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.72rem 0.78rem 0.7rem;
  border-radius: 12px;
  background: #121820;
  border: 1px solid rgba(126, 200, 216, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.2);
  color: var(--text, #e8eef4);
  cursor: pointer;
  min-width: 0;
}
.dir-card.dir-card--phc:hover {
  border-color: rgba(126, 200, 216, 0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(126, 200, 216, 0.12);
}
.dir-card.dir-card--phc .phc-head {
  pointer-events: auto;
}
.dir-card.dir-card--phc .phc-counts a {
  pointer-events: auto;
}
/* Legacy orb/handle/bio chrome does not apply to phc directory cards */
.dir-card.dir-card--phc > .orb,
.dir-card.dir-card--phc > h3,
.dir-card.dir-card--phc > .handle,
.dir-card.dir-card--phc > .bio,
.dir-card.dir-card--phc > .acts {
  display: none !important;
}
main.portal .dir-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
/* Sitewide: Online text removed — green ring is enough; keep rule if stale markup appears */
.player-hover-card > .phc-status,
.dir-card--phc > .phc-status {
  display: none !important;
}
/* === end dircard1 === */


/* === dirlive1 — live directory filters; Online only in toolbar === */
main.portal .dir-toolbar .check-row.dir-toolbar-online,
.dir-toolbar .check-row.dir-toolbar-online {
  margin: 0;
  align-self: end;
  padding: 0.55rem 0.15rem 0.55rem 0;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted, #9aa3ad);
  font-size: 0.88rem;
}
main.portal .dir-toolbar .check-row.dir-toolbar-online input,
.dir-toolbar .check-row.dir-toolbar-online input {
  width: auto !important;
  max-width: none;
  margin: 0;
  accent-color: #3dce7a;
}
/* === end dirlive1 === */


/* === mobnav1 — compact sticky top bar + left drawer (≤900px) === */
.brand-logo {
  display: none;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
/* brand--with-logo: logo injected by nav-mobile.js; desktop keeps column text stack */
.brand-text-stack {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(201, 168, 92, 0.28);
  border-radius: 8px;
  background: rgba(20, 24, 30, 0.9);
  color: var(--gold-soft, #f2e6c4);
  cursor: pointer;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.nav-menu-btn:hover,
.nav-menu-btn:focus-visible {
  border-color: rgba(201, 168, 92, 0.55);
  outline: none;
  box-shadow: 0 0 0 2px rgba(62, 198, 216, 0.25);
}
.nav-menu-btn__lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.15rem;
}
.nav-menu-btn__lines span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.18s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-drawer-backdrop.is-visible { opacity: 1; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: min(20.5rem, calc(100vw - 3rem));
  max-width: 100%;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: #0e1218;
  border-right: 1px solid rgba(201, 168, 92, 0.22);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(-105%);
  transition: transform 0.2s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.nav-drawer.is-visible { transform: translateX(0); }
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(42, 50, 60, 0.85);
}
.nav-drawer__title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c9a85c);
  font-weight: 650;
}
.nav-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(154, 163, 173, 0.28);
  border-radius: 8px;
  background: transparent;
  color: var(--ink, #ebe6d8);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.nav-drawer__close:hover,
.nav-drawer__close:focus-visible {
  border-color: rgba(62, 198, 216, 0.45);
  color: var(--cyan, #3ec6d8);
  outline: none;
}
.nav-drawer__group {
  margin: 0 0 1.1rem;
}
.nav-drawer__group h2 {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim, #6d7680);
  font-weight: 650;
}
.nav-drawer__group a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
  margin: 0.1rem 0;
  border-radius: 8px;
  color: var(--ink, #ebe6d8);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav-drawer__group a:hover,
.nav-drawer__group a:focus-visible {
  background: rgba(62, 198, 216, 0.1);
  color: var(--cyan, #3ec6d8);
  outline: none;
}
.nav-drawer__group a[aria-current="page"] {
  background: rgba(201, 168, 92, 0.12);
  color: var(--gold-soft, #f2e6c4);
}
.nav-drawer__group a[href="/play/"] {
  color: #5ecf8a;
  font-weight: 650;
}
.nav-drawer__group a[href="/play/"]:hover,
.nav-drawer__group a[href="/play/"]:focus-visible {
  background: rgba(94, 207, 138, 0.12);
  color: #8aefb0;
}

html.arco-nav-drawer-open,
html.arco-nav-drawer-open body,
body.arco-nav-drawer-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 900px) {
  .site-header .bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0;
    min-height: 3.35rem;
  }
  .site-header .bar > .brand {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  .site-header .bar > .brand .brand-logo {
    display: block;
  }
  .site-header .bar > .brand .brand-mark {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header .bar > .brand .brand-sub {
    display: none; /* quiet domain — hide when cramped */
  }
  .site-header .bar > .nav-menu-btn {
    display: inline-flex;
    order: 1;
  }
  .site-header .bar > .nav {
    order: 3;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    justify-content: flex-end;
    min-width: 0;
  }
  /* Hide primary link clusters + Play button; keep account chip/login only */
  .site-header .nav > .nav-cluster,
  .site-header .nav > .nav-sep,
  .site-header .nav > a.play-mini {
    display: none !important;
  }
  .site-header .nav .login-mini,
  .site-header .nav .nav-account {
    min-height: 2.75rem;
  }
  .site-header .nav .login-mini {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
  }
}

@media (max-width: 360px) {
  .site-header .bar > .brand .brand-mark {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
}

@media (min-width: 901px) {
  .nav-menu-btn,
  .nav-drawer,
  .nav-drawer-backdrop {
    display: none !important;
  }
  /* Desktop keeps text brand; logo stays optional/hidden unless wanted later */
  .site-header .bar > .brand .brand-logo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .nav-drawer-backdrop {
    transition: none;
  }
}
/* === end mobnav1 === */


/* === mobnav1b — sitewide mobile YAP bottom bar === */
.yap-mobile-bar {
  display: none;
}
@media (max-width: 900px) {
  .yap-mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    width: 100%;
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 10, 14, 0.94);
    border-top: 1px solid rgba(126, 200, 216, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .yap-mobile-bar__nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    width: 100%;
  }
  .yap-mobile-bar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.15rem;
    padding: 0.35rem 0.25rem;
    border-radius: 0.65rem;
    color: var(--muted, #9aa3ad);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
  }
  .yap-mobile-bar__item:hover,
  .yap-mobile-bar__item:focus-visible,
  .yap-mobile-bar__item[aria-current="page"] {
    color: var(--gold-soft, #f2e6c4);
    background: rgba(201, 168, 92, 0.1);
    outline: none;
  }
  .yap-mobile-bar__ico {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    line-height: 0;
  }
  .yap-mobile-bar__ico svg { display: block; width: 20px; height: 20px; }
  .yap-mobile-bar__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .yap-mobile-bar__post {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    align-self: center;
    margin: 0 0.15rem;
    padding: 0.48rem 0.8rem;
    min-height: 2.4rem;
    border-radius: 999px;
    color: #140a06;
    background: linear-gradient(135deg, var(--gold, #c9a85c), #e0c57a);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 750;
    box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.45);
    -webkit-tap-highlight-color: transparent;
  }
  .yap-mobile-bar__post-ico { display: grid; place-items: center; line-height: 0; }
  .yap-mobile-bar__post-ico svg { display: block; }
  .yap-mobile-bar .yap-rail-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.35rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #e85d04;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
  }
  /* Hide page left-rail's mobile bottom clone — sitewide bar owns mobile */
  body.has-yap-mobile-bar .yap-shell > .yap-rail {
    display: none !important;
  }
  body.has-yap-mobile-bar {
    padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
  }
  body.has-yap-mobile-bar .yap-shell {
    padding-bottom: 0.85rem !important;
  }
  /* Keep composers above the bar */
  body.has-yap-mobile-bar .signal-compose,
  body.has-yap-mobile-bar .signal-compose-panel,
  body.has-yap-mobile-bar .signal-compose-embed {
    margin-bottom: 0.25rem;
  }
}
@media (min-width: 901px) {
  .yap-mobile-bar { display: none !important; }
}
@media (max-width: 420px) {
  .yap-mobile-bar__label { font-size: 0.58rem; }
  .yap-mobile-bar__post-label { font-size: 0.78rem; }
}
/* === end mobnav1b === */

/* mobnav1 — Account Mobile bar prefs */
.mobilebar-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.mobilebar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(42, 50, 60, 0.9);
  background: rgba(20, 24, 30, 0.75);
}
.mobilebar-label {
  flex: 1 1 6rem;
  font-weight: 650;
  color: var(--ink, #ebe6d8);
}
.mobilebar-lock,
.mobilebar-free {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.mobilebar-lock {
  color: #5ecf8a;
  background: rgba(94, 207, 138, 0.12);
  border: 1px solid rgba(94, 207, 138, 0.28);
}
.mobilebar-free {
  color: var(--cyan, #3ec6d8);
  background: rgba(62, 198, 216, 0.1);
  border: 1px solid rgba(62, 198, 216, 0.28);
}
.mobilebar-actions {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: auto;
}


/* === nav4 — desktop disclosure primary nav + breadcrumbs === */
.nav-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-dd__parent {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.35;
  padding: 0.2rem 0;
}
.nav-dd__parent:hover,
.nav-dd__parent[data-nav-section-current="true"],
.nav-dd__parent[aria-current="page"] {
  color: var(--gold);
}
.nav-dd__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
}
.nav-dd__chevron:hover,
.nav-dd__chevron:focus-visible,
.nav-dd.is-open .nav-dd__chevron {
  color: var(--gold);
  border-color: rgba(201, 168, 92, 0.35);
  outline: none;
}
.nav-dd__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 13.5rem;
  padding: 0.4rem;
  border-radius: 8px;
  background: #14181e;
  border: 1px solid rgba(62, 198, 216, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: grid;
  gap: 0.1rem;
}
.nav-dd__panel[hidden] { display: none !important; }
.nav-dd__panel a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: none;
}
.nav-dd__panel a:hover,
.nav-dd__panel a:focus-visible {
  background: rgba(62, 198, 216, 0.12);
  color: var(--cyan);
  outline: none;
}
.nav-dd__panel a[aria-current="page"] {
  color: var(--gold-soft);
  background: rgba(201, 168, 92, 0.1);
}
.nav-yap-direct {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.nav-yap-direct:hover,
.nav-yap-direct[aria-current="page"] { color: var(--gold); }

.site-breadcrumb {
  margin: 0.65rem auto 0.15rem;
  padding: 0;
  font-size: 0.72rem;
  color: var(--dim, #6d7680);
}
.site-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-breadcrumb li:not(:last-child)::after {
  content: "·";
  margin-left: 0.45rem;
  color: rgba(109, 118, 128, 0.8);
}
.site-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.site-breadcrumb a:hover { color: var(--gold); }
.site-breadcrumb [aria-current="page"] { color: var(--ink); }

@media (max-width: 900px) {
  /* Mobile uses hamburger drawer — hide desktop disclosures */
  .site-header .nav > .nav-dd,
  .site-header .nav > .nav-yap-direct,
  .site-header .nav > a[href="/legal/"] {
    display: none !important;
  }
}
/* === end nav4 === */


/* === mobnav1c — wiki: hide top YAP dock on mobile; bottom bar owns YAP === */
@media (max-width: 900px) {
  /* Sitewide #yap-mobile-bar replaces wiki sticky YAP module */
  body.has-yap-mobile-bar .yap-rail--wiki,
  body.has-yap-mobile-bar .wiki-side-dock > .yap-rail--wiki,
  body.has-yap-mobile-bar .wiki-side-dock > .yap-rail-account,
  body.has-yap-mobile-bar aside.yap-rail.yap-rail--wiki {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: static !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }
  /* Keep Contents/Categories panel usable */
  body.has-yap-mobile-bar .wiki-side-dock > .wiki-nav-panel,
  body.has-yap-mobile-bar .wiki-side-block,
  body.has-yap-mobile-bar .wiki-nav-switch {
    display: revert;
  }
}
/* === end mobnav1c === */


/* === mobnav1b — one brand circle on mobile (kill double mark) === */
/* brand-art.css paints .brand::before emblem; nav-mobile also injects .brand-logo → two circles */
@media (max-width: 900px) {
  .site-header .bar > a.brand.brand--with-logo::before,
  .site-header .bar > a.brand:has(.brand-logo)::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
  }
}
/* === end mobnav1b === */


/* nav5 — resident articles hub */
.resident-articles-hub .resident-articles-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.resident-articles-hub .resident-article-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.resident-articles-hub .resident-article-row .profile-article-title {
  text-decoration: none;
}
.resident-articles-hub .resident-article-row .profile-article-title:hover strong {
  text-decoration: underline;
}


/* nav5b — site map */
.site-map-page .site-map-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.site-map-page .site-map-list li {
  margin: 0.35rem 0;
}
.site-map-page .site-map-grid .card h2 {
  margin-top: 0;
}


/* === charcard1 — public character scorecard === */
.char-scorecard {
  max-width: 42rem;
}
.char-scorecard-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
}
.char-scorecard-kicker a {
  color: var(--muted, #9aa3ad);
  text-decoration: none;
}
.char-scorecard-kicker a:hover { color: var(--gold, #c9a85c); }
.char-scorecard-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 1rem;
  margin: 0 0 0.85rem;
}
.char-scorecard-stage {
  width: 132px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(126,200,216,0.16);
  overflow: hidden;
}
.char-scorecard-stage canvas,
.char-scorecard-micro {
  width: 120px;
  height: 136px;
  object-fit: contain;
}
.char-scorecard-id { min-width: 0; }
.char-scorecard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
}
.char-scorecard-meta,
.char-scorecard-level {
  margin: 0.15rem 0 0;
  color: var(--dim, #7a8490);
  font-size: 0.88rem;
}
.char-scorecard-level {
  color: var(--gold-soft, #f2e6c4);
  font-weight: 700;
}
.char-scorecard-section { margin: 0 0 0.85rem; padding: 0.9rem 1rem 1rem; }
.char-scorecard-sub { margin: 0 0 0.7rem; }
.char-skill-list,
.char-achieve-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.char-skill-row {
  display: grid;
  grid-template-columns: 7.2rem 1fr 2.6rem;
  align-items: center;
  gap: 0.55rem;
}
.char-skill-label {
  font-size: 0.88rem;
  color: var(--ink, #e8eef4);
}
.char-skill-track {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.char-skill-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(62,198,216,0.75), rgba(201,168,92,0.85));
}
.char-skill-n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  color: var(--gold-soft, #f2e6c4);
}
.char-skill-max { color: var(--dim, #7a8490); font-size: 0.72rem; }
.char-achieve-row { font-size: 0.92rem; }
@media (max-width: 720px) {
  .char-scorecard-hero { flex-direction: column; align-items: flex-start; }
  .char-skill-row { grid-template-columns: 1fr auto; }
  .char-skill-track { grid-column: 1 / -1; order: 3; }
}
/* === end charcard1 === */

/* === footer2/footer3 — Houzz-style multi-column (dark theme); footer3 = single-stack cols + empty Connect === */
.site-footer.site-footer--footer2,
footer.site-footer[data-footer="footer2"] {
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 9, 15, 0.92);
  padding: 2.35rem 0 2.1rem;
  margin-top: auto;
}
.site-footer--footer2 .footer2-grid {
  display: grid;
  grid-template-columns: minmax(10.5rem, 1.15fr) repeat(4, minmax(7.25rem, 1fr)) minmax(8.5rem, 0.95fr);
  gap: 1.75rem 1.65rem;
  align-items: start;
}
.site-footer--footer2 .footer2-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 16rem;
}
.site-footer--footer2 .footer2-brand-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}
.site-footer--footer2 .brand-mark {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}
.site-footer--footer2 .brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.45;
  max-width: 15rem;
  margin: 0;
}
.site-footer--footer2 .footer2-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.42rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(62, 198, 216, 0.35);
  background: rgba(20, 24, 30, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  cursor: not-allowed;
  opacity: 0.92;
}
.site-footer--footer2 .footer2-lang-label {
  font-weight: 650;
  color: var(--ink);
}
.site-footer--footer2 .footer2-lang-meta {
  color: var(--muted);
  font-size: 0.68rem;
}
.site-footer--footer2 .footer2-lang-caret {
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  opacity: 0.7;
}
.site-footer--footer2 .footer2-copy {
  margin: 0;
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.site-footer--footer2 .footer2-col {
  /* Override legacy .site-footer nav { display:flex; flex-wrap:wrap } — one vertical stack */
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  max-width: none;
  padding-left: 0;
  border-left: 0;
  padding-top: 0;
  border-top: 0;
}
.site-footer--footer2 .footer-group__title {
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 168, 92, 0.9);
  font-weight: 700;
  text-align: left;
  align-self: stretch;
  width: 100%;
}
.site-footer--footer2 .footer-group a {
  display: block;
  width: auto;
  margin: 0.32rem 0;
  padding: 0;
  color: rgba(154, 163, 173, 0.92);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  text-decoration: none;
  text-align: left;
  align-self: stretch;
}
.site-footer--footer2 .footer-group a:hover {
  color: var(--gold-soft);
}
/* footer3: Connect with us — header only; reserved blank slot (no social placeholders) */
.site-footer--footer2 .footer2-connect-slot {
  min-height: 5.5rem;
  width: 100%;
}
.site-footer--footer2 .footer2-social,
.site-footer--footer2 .footer2-social-item,
.site-footer--footer2 .footer2-social-ico,
.site-footer--footer2 .footer2-social-label,
.site-footer--footer2 .footer2-social-soon {
  display: none !important;
}
.site-footer--footer2 .footer2-bottom {
  margin-top: 1.35rem;
}
.site-footer--footer2 .footer2-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.72rem;
  color: var(--dim);
  max-width: 36rem;
  line-height: 1.5;
}
.site-footer--footer2 .footer2-note a {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: inherit;
}
@media (max-width: 1100px) {
  .site-footer--footer2 .footer2-grid {
    grid-template-columns: repeat(3, minmax(8rem, 1fr));
  }
  .site-footer--footer2 .footer2-brand {
    grid-column: 1 / -1;
    max-width: 22rem;
  }
}
@media (max-width: 720px) {
  .site-footer--footer2 .footer2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.1rem;
  }
  .site-footer--footer2 .footer2-brand {
    grid-column: 1 / -1;
  }
  .site-footer--footer2 .footer2-connect {
    grid-column: 1 / -1;
  }
}
/* Keep footer clear of sitewide mobile YAP bar (do not reduce body pad) */
@media (max-width: 900px) {
  body.has-yap-mobile-bar .site-footer--footer2 {
    padding-bottom: 1.35rem;
  }
}
/* === end footer2 === */

/* ===== dualparty1 — universal status rings (site + game) =====
   Priority: purple global > teal quest > green in-game > blue site-online > none offline.
   Gold reserved for premium only — never offline. No orange. */
:root {
  --ring-global: #a855f7;
  --ring-quest: #2dd4bf;
  --ring-ingame: #3dce7a;
  --ring-online: #3b82f6;
  --ring-none: rgba(120, 130, 140, 0.35);
}

.signal-avatar-wrap[data-status="global"],
.signal-avatar-wrap.is-status-global,
.signal-avatar-wrap.is-status-audio,
.profile-header-avatar-wrap[data-status="global"],
.profile-header-avatar-wrap.is-status-global,
.profile-header-avatar-wrap.is-status-audio,
.profile-photo-wrap[data-status="global"],
.dir-card .orb[data-status="global"],
.dir-card .dir-avatar-wrap[data-status="global"],
.dir-card .dir-avatar-wrap.is-status-global,
.phc-avatar-wrap[data-status="global"],
.phc-avatar-wrap.is-status-global,
.yap-rail-account-avatar[data-status="global"],
.acct-orb.is-status-global,
.acct-detail-orb.is-status-global,
.yap-rail-account-avatar.is-status-global,
.yap-rail-account-avatar.is-status-audio,
.whitepages-avatar-wrap[data-status="global"],
.whitepages-avatar-wrap.is-status-global,
.acct-sheet-avatar-wrap[data-status="global"],
.acct-sheet-avatar-wrap.is-status-global {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px var(--ring-global), 0 0 12px rgba(168, 85, 247, 0.4) !important;
  border-color: transparent;
}

.signal-avatar-wrap[data-status="quest"],
.signal-avatar-wrap.is-status-quest,
.profile-header-avatar-wrap[data-status="quest"],
.profile-header-avatar-wrap.is-status-quest,
.profile-photo-wrap[data-status="quest"],
.dir-card .orb[data-status="quest"],
.dir-card .dir-avatar-wrap[data-status="quest"],
.dir-card .dir-avatar-wrap.is-status-quest,
.phc-avatar-wrap[data-status="quest"],
.phc-avatar-wrap.is-status-quest,
.yap-rail-account-avatar[data-status="quest"],
.acct-orb.is-status-quest,
.acct-detail-orb.is-status-quest,
.yap-rail-account-avatar.is-status-quest,
.whitepages-avatar-wrap[data-status="quest"],
.whitepages-avatar-wrap.is-status-quest,
.acct-sheet-avatar-wrap[data-status="quest"],
.acct-sheet-avatar-wrap.is-status-quest {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px var(--ring-quest), 0 0 12px rgba(45, 212, 191, 0.4) !important;
  border-color: transparent;
}

.signal-avatar-wrap[data-status="in-game"],
.signal-avatar-wrap.is-status-in-game,
.profile-header-avatar-wrap[data-status="in-game"],
.profile-header-avatar-wrap.is-status-in-game,
.profile-photo-wrap[data-status="in-game"],
.dir-card .orb[data-status="in-game"],
.dir-card .dir-avatar-wrap[data-status="in-game"],
.dir-card .dir-avatar-wrap.is-status-in-game,
.phc-avatar-wrap[data-status="in-game"],
.phc-avatar-wrap.is-status-in-game,
.yap-rail-account-avatar[data-status="in-game"],
.acct-orb.is-status-in-game,
.acct-detail-orb.is-status-in-game,
.yap-rail-account-avatar.is-status-in-game,
.whitepages-avatar-wrap[data-status="in-game"],
.whitepages-avatar-wrap.is-status-in-game,
.acct-sheet-avatar-wrap[data-status="in-game"],
.acct-sheet-avatar-wrap.is-status-in-game {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px var(--ring-ingame), 0 0 12px rgba(61, 206, 122, 0.4) !important;
  border-color: transparent;
}

.signal-avatar-wrap[data-status="online"],
.signal-avatar-wrap.is-status-online,
.profile-header-avatar-wrap[data-status="online"],
.profile-header-avatar-wrap.is-status-online,
.yap-rail-account-avatar[data-status="online"],
.yap-rail-account-avatar.is-status-online,
.whitepages-avatar-wrap[data-status="online"],
.acct-sheet-avatar-wrap[data-status="online"] {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px var(--ring-online), 0 0 12px rgba(59, 130, 246, 0.4) !important;
}

.signal-avatar-wrap[data-status="offline"],
.signal-avatar-wrap.is-status-offline,
.yap-rail-account-avatar[data-status="offline"],
.yap-rail-account-avatar.is-status-offline,
.whitepages-avatar-wrap[data-status="offline"],
.acct-sheet-avatar-wrap[data-status="offline"] {
  box-shadow: none !important;
}

.is-status-premium,
[data-status="premium"] {
  box-shadow: 0 0 0 2px #0c0e11, 0 0 0 3.5px #c9a85c, 0 0 12px rgba(201, 168, 92, 0.35) !important;
}


/* === artpack1 — YAP sibling marks + empty art === */
/* Never touches Arcology Project favicon / logo / apple-touch */
.yap-rail-brand-mark {
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
  color: transparent;
  font-size: 0;
}
.yap-rail-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.yap-rail--wiki .yap-rail-brand-mark img {
  width: 100%;
  height: 100%;
}
/* Optional rail header strip (opt-in via .yap-rail-brand--header)
   artpack1b: NEVER show mark + wordmark together — mark OR header, not both.
   Prefer default mark+text (Directory/Community). If --header is used, hide mark. */
.yap-rail-brand--header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.45rem;
}
.yap-rail-brand--header .yap-rail-brand-mark { display: none; }
.yap-rail-brand--header .yap-rail-brand-header {
  display: block;
  height: 1.55rem;
  width: auto;
  max-width: 10rem;
}
.yap-rail-brand--header .yap-rail-brand-text { display: none; }
@media (max-width: 1100px) {
  .yap-rail-brand--header .yap-rail-brand-header { display: none; }
  .yap-rail-brand--header .yap-rail-brand-mark { display: inline-flex; }
  .yap-rail-brand--header .yap-rail-brand-text { display: inline; }
}
/* Mobile bottom bar YAP mark */
.yap-mobile-bar__ico img.yap-bottom-mark,
.yap-mobile-bar__ico .yap-bottom-mark {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
/* YAP empty-state illustration */
.yap-empty-art {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 0.75rem;
  pointer-events: none;
}
.yap-empty-art img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  border-radius: 0.65rem;
  opacity: 0.92;
}
.board-row.is-empty .yap-empty-art + div {
  text-align: center;
}

/* === wikirail2 — Guide/Wiki YAP rail X/Y matches Community/World === */
/* Keep wiki Contents/Categories + bottom account chip; only align rail geometry. */
.wrap-wiki {
  /* Match .wrap used by Community yap-shell so rail left edge lines up */
  width: min(980px, calc(100% - 2.25rem));
}
.wiki-layout {
  grid-template-columns: 15.5rem minmax(0, 1fr); /* was 11.5rem; match .yap-shell */
  gap: 1.25rem 1.75rem; /* match .yap-shell */
}
html {
  --wiki-dock-top: 5.25rem; /* match .yap-shell > .yap-rail { top: 5.25rem } */
}
@media (max-width: 720px) {
  html {
    --wiki-dock-top: 8.5rem; /* wrapping header — unchanged from wikichip1 */
  }
}
/* Desktop sticky Y locks to Community rail; JS --wiki-dock-top still used on narrow */
@media (min-width: 901px) {
  .wiki-side-dock {
    top: 5.25rem !important;
  }
}
@media (max-width: 900px) {
  .wiki-side-dock {
    top: var(--wiki-dock-top) !important;
  }
}
/* Rail chrome matches standard yap-shell rail (undo wikiyap2 compact card) */
.wiki-side-dock > .yap-rail--wiki {
  max-width: 15.5rem;
  width: 100%;
  margin: 0 !important;
  padding: 0.35rem 0.25rem 0.75rem !important;
  gap: 0.35rem !important;
  min-height: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  align-items: stretch;
}
.yap-rail--wiki .yap-rail-brand {
  justify-content: flex-start !important;
  align-items: center;
  padding: 0.45rem 0.65rem !important;
  margin-bottom: 0.35rem !important;
  gap: 0.55rem !important;
  width: 100%;
  box-sizing: border-box;
}
.yap-rail--wiki .yap-rail-brand-mark {
  width: 2.15rem !important;
  height: 2.15rem !important;
  font-size: 0.82rem !important;
  flex: 0 0 auto;
}
.yap-rail--wiki .yap-rail-brand-text {
  font-size: 1.15rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.yap-rail--wiki .yap-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  gap: 0.15rem !important;
  width: 100% !important;
}
.yap-rail--wiki .yap-rail-item {
  justify-content: flex-start !important;
  align-items: center;
  gap: 0.85rem !important;
  padding: 0.72rem 0.85rem !important;
  width: 100% !important;
  min-height: 2.85rem !important;
  font-size: 1.05rem !important;
  font-weight: 550;
  border-radius: 999px;
  box-sizing: border-box;
}
.yap-rail--wiki .yap-rail-label {
  font-size: 1.05rem !important;
  line-height: 1.2;
}
.yap-rail--wiki .yap-rail-ico {
  width: 1.55rem !important;
  height: 1.55rem !important;
  flex: 0 0 auto;
}
.yap-rail--wiki .yap-rail-ico svg {
  width: 22px !important;
  height: 22px !important;
}
.yap-rail--wiki .yap-rail-post {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 85% !important;
  max-width: 12.5rem !important;
  height: auto !important;
  min-height: 2.75rem !important;
  margin: 0.85rem auto 0.5rem !important;
  padding: 0.72rem 0.85rem !important;
  border-radius: 999px !important;
  font-size: 0.98rem !important;
  box-sizing: border-box;
}
.yap-rail--wiki .yap-rail-post-ico {
  display: none !important;
}
.yap-rail--wiki .yap-rail-post-label {
  display: inline !important;
  font-size: 0.98rem !important;
  font-weight: 750;
}
.yap-rail--wiki .yap-rail-badge {
  top: 0.35rem;
  right: 0.55rem;
  min-width: 1.05rem;
  height: 1.05rem;
  line-height: 1.05rem;
  font-size: 0.58rem;
  padding: 0 0.25rem;
}
/* Keep full labels on wiki at mid-width (Contents needs column width; don't icon-collapse) */
@media (min-width: 901px) and (max-width: 1199px) {
  .wiki-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr) !important;
  }
  .wiki-side-dock > .yap-rail--wiki {
    max-width: 15.5rem !important;
    width: 100% !important;
    align-items: stretch !important;
    padding: 0.35rem 0.25rem 0.75rem !important;
  }
  .yap-rail--wiki .yap-rail-brand-text,
  .yap-rail--wiki .yap-rail-label,
  .yap-rail--wiki .yap-rail-post-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .yap-rail--wiki .yap-rail-item {
    justify-content: flex-start !important;
    gap: 0.85rem !important;
    padding: 0.72rem 0.85rem !important;
    width: 100% !important;
    min-height: 2.85rem !important;
  }
  .yap-rail--wiki .yap-rail-nav {
    align-items: stretch !important;
    width: 100% !important;
  }
  .yap-rail--wiki .yap-rail-post {
    width: 85% !important;
    height: auto !important;
    min-height: 2.75rem !important;
    max-width: 12.5rem !important;
    padding: 0.72rem 0.85rem !important;
    margin: 0.85rem auto 0.5rem !important;
    border-radius: 999px !important;
  }
  .yap-rail--wiki .yap-rail-post-ico {
    display: none !important;
  }
}
/* Mobile: mobnav1c still hides top wiki YAP dock; bottom bar owns YAP — unchanged */
/* Account chip bottom-left + wiki-nav-panel stack — unchanged (wikichip1) */
/* === end wikirail2 === */


/* === artpack1c — more empty-state WebPs + quiet Play surface === */
/* Additive only; does not touch Arcology logo/favicons or footer3 */
.yap-dm-empty .yap-empty-art {
  display: flex;
  justify-content: center;
  margin: 0 0 0.65rem;
  pointer-events: none;
}
.yap-dm-empty .yap-empty-art img,
.profile-follow-empty .yap-empty-art img {
  display: block;
  width: min(100%, 240px);
  height: auto;
  border-radius: 0.65rem;
  opacity: 0.92;
}
.profile-follow-empty {
  text-align: center;
}
.profile-follow-empty .yap-empty-art {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 0.65rem;
  pointer-events: none;
}
.char-roster-empty .ap-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.char-roster-empty .ap-empty img {
  width: min(100%, 220px);
  height: auto;
  border-radius: 0.65rem;
  opacity: 0.92;
}
.ap-surface-art {
  margin: 1.35rem 0 0.25rem;
  border-radius: 0.85rem;
  overflow: hidden;
  pointer-events: none;
  max-width: 42rem;
}
.ap-surface-art img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
}
.ap-surface-art--play {
  max-width: min(42rem, 100%);
}
/* === end artpack1c === */

/* === wikimob1 — phone: full-width wiki article; Contents as top accordion === */
/* Root cause: wikirail2 set grid-template-columns: 15.5rem forever (no ≤900 override),
   so Contents dock kept a side column and squeezed article into a sliver. */
@media (max-width: 900px) {
  .wiki-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    padding-top: var(--space-4, 1rem);
  }
  .wrap-wiki {
    width: min(980px, calc(100% - 1.5rem));
  }
  .wiki-side {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
    overflow: visible !important;
  }
  .wiki-side-dock {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    gap: 0.5rem !important;
    align-self: stretch !important;
  }
  /* YAP rail + dock account chip: keep mobnav1c hide (bottom bar owns YAP) */
  /* Compact Contents/Categories control — not a permanent side column */
  .wiki-nav-mob-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.62rem 0.85rem;
    border: 1px solid rgba(126, 200, 216, 0.28);
    border-radius: var(--radius, 10px);
    background: rgba(20, 26, 34, 0.88);
    color: var(--ink, #e8eef4);
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
  }
  .wiki-nav-mob-toggle:hover,
  .wiki-nav-mob-toggle:focus-visible {
    border-color: rgba(126, 200, 216, 0.5);
    outline: none;
  }
  .wiki-nav-mob-toggle__label {
    min-width: 0;
    flex: 1 1 auto;
  }
  .wiki-nav-mob-toggle__chev {
    flex: 0 0 auto;
    opacity: 0.75;
    font-size: 0.78rem;
    transition: transform 0.15s ease;
  }
  .wiki-nav-panel.is-wiki-nav-open .wiki-nav-mob-toggle__chev {
    transform: rotate(180deg);
  }
  .wiki-nav-panel {
    padding: 0.55rem 0.65rem 0.65rem !important;
  }
  /* Collapsed: only the toggle strip (full-width under header) */
  .wiki-nav-panel:not(.is-wiki-nav-open) .wiki-nav-home,
  .wiki-nav-panel:not(.is-wiki-nav-open) .wiki-nav-head,
  .wiki-nav-panel:not(.is-wiki-nav-open) .wiki-nav-list,
  .wiki-nav-panel:not(.is-wiki-nav-open) .wiki-nav-live {
    display: none !important;
  }
  .wiki-nav-panel.is-wiki-nav-open {
    padding-bottom: 0.85rem !important;
  }
  .wiki-nav-panel.is-wiki-nav-open .wiki-nav-mob-toggle {
    margin-bottom: 0.55rem;
  }
  .wiki-main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}
@media (min-width: 901px) {
  .wiki-nav-mob-toggle {
    display: none !important;
  }
}
/* === end wikimob1 === */

/* === yapcrumb1 — hide site breadcrumbs on YAP surfaces (keep wiki-crumb / SEO head) === */
body.yap-surface .site-breadcrumb {
  display: none !important;
}
/* === end yapcrumb1 === */

/* === wikimob2 — sticky Wiki Home + one Contents/Categories under header (mobile) === */
/* Product lock (Rich 2026-09-13): sticky dock under top bar — Wiki Home always visible;
   exactly one of Contents | Categories (gold chevron). Keep wikimob1 full-width article.
   Desktop ≥901: unchanged (YAP rail + Contents module). */
@media (max-width: 900px) {
  /* Hide legacy wikimob1 accordion — gold switch is the only chooser */
  .wiki-nav-mob-toggle {
    display: none !important;
  }

  /* Sticky dock sits under measured site header */
  .wiki-side {
    position: static !important;
  }
  .wiki-side-dock {
    position: static !important;
    min-height: 0 !important;
  }
  .wiki-nav-panel {
    position: sticky !important;
    top: var(--wiki-dock-top, 4.75rem) !important;
    z-index: 30 !important;
    margin: 0 0 0.65rem !important;
    padding: 0.55rem 0.65rem 0.6rem !important;
    background: rgba(14, 18, 24, 0.94) !important;
    border: 1px solid rgba(126, 200, 216, 0.28) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Always show Wiki Home + single Contents/Categories control (undo wikimob1 hide) */
  .wiki-nav-panel:not(.is-wiki-nav-open) .wiki-nav-home,
  .wiki-nav-panel.is-wiki-nav-open .wiki-nav-home {
    display: flex !important;
  }
  .wiki-nav-panel:not(.is-wiki-nav-open) .wiki-nav-head,
  .wiki-nav-panel.is-wiki-nav-open .wiki-nav-head {
    display: block !important;
  }

  /* Collapsed: hide lists only — never stack Contents + Categories */
  .wiki-nav-panel:not(.is-wiki-nav-open) .wiki-nav-list,
  .wiki-nav-panel:not(.is-wiki-nav-open) .wiki-nav-live {
    display: none !important;
  }

  /* Compact home chip in sticky dock */
  .wiki-nav-panel .wiki-nav-home {
    margin-bottom: 0.4rem !important;
    padding: 0.42rem 0.7rem !important;
    font-size: 0.72rem !important;
  }

  /* Gold Contents/Categories — full-width single control */
  .wiki-nav-panel .wiki-nav-head {
    margin: 0 !important;
  }
  .wiki-nav-panel .wiki-nav-switch {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.55rem 0.75rem !important;
    border: 1px solid rgba(232, 185, 74, 0.45) !important;
    border-radius: var(--radius-sm, 8px);
    background: rgba(232, 185, 74, 0.1) !important;
    color: var(--gold, #e8b94a) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
  }
  .wiki-nav-panel .wiki-nav-switch:hover,
  .wiki-nav-panel .wiki-nav-switch:focus-visible,
  .wiki-nav-panel .wiki-nav-switch[aria-expanded="true"],
  .wiki-nav-panel .wiki-nav-switch[data-wiki-list-open="true"] {
    color: var(--ink, #e8eef4) !important;
    border-color: rgba(232, 185, 74, 0.7) !important;
    background: rgba(232, 185, 74, 0.18) !important;
    outline: none;
  }
  .wiki-nav-panel .wiki-nav-menu {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
    z-index: 40;
  }

  /* Expanded list under dock chrome */
  .wiki-nav-panel.is-wiki-nav-open {
    padding-bottom: 0.75rem !important;
  }
  .wiki-nav-panel.is-wiki-nav-open .wiki-nav-list.is-active {
    display: block !important;
    margin-top: 0.55rem;
  }

  /* Article stays full-width (wikimob1) */
  .wiki-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .wiki-main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}
/* Desktop ≥901: no overrides — YAP rail + Contents module keep wikirail2 / wikihomebtn2 */
/* === end wikimob2 === */

/* === wikitop1 — floating back-to-top on long wiki pages === */
.wiki-back-top {
  position: fixed;
  z-index: 70;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(12, 18, 28, 0.88);
  color: #e8d48b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.wiki-back-top[hidden] { display: none !important; }
.wiki-back-top:hover,
.wiki-back-top:focus-visible {
  background: rgba(20, 30, 46, 0.95);
  border-color: rgba(232, 212, 139, 0.75);
  outline: none;
  transform: translateY(-1px);
}
.wiki-back-top__chev {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  transform: translateY(1px);
}
@media (max-width: 900px) {
  /* Clear mobile YAP bottom bar */
  .wiki-back-top {
    bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
  }
}
/* === end wikitop1 === */


/* yapcomp1 — brand /yap/ composer polish (shared product with yap.ms) */
.signal-compose-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.signal-compose-title-row h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.signal-compose-context { flex: none; }
.signal-context-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  color: inherit;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2357D4DF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px 8px;
  border: 0;
  border-radius: 8px;
  padding: 0.2rem 1.35rem 0.2rem 0.45rem;
  cursor: pointer;
  max-width: min(100%, 14rem);
}
.signal-context-select:hover { background-color: rgba(87, 212, 223, 0.08); }
.signal-context-select:focus-visible {
  outline: 3px solid #57d4df;
  outline-offset: 3px;
}
.signal-compose-field { position: relative; }
.signal-compose .signal-compose-input,
.signal-compose textarea#signal-body {
  display: block;
  width: 100%;
  resize: none;
  overflow: hidden;
  min-height: 88px;
  max-height: 320px;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22); /* contrast vs panel */
  color: inherit;
  line-height: 1.45;
}
.signal-compose .signal-compose-input:hover,
.signal-compose textarea#signal-body:hover {
  border-color: rgba(87, 212, 223, 0.35);
}
.signal-compose .signal-compose-input:focus-visible,
.signal-compose textarea#signal-body:focus-visible {
  outline: 3px solid #57d4df;
  outline-offset: 3px;
}
.signal-compose-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--dim, #7a8490);
  font-variant-numeric: tabular-nums;
}


/* yapacts1 — brand /yap/ tab-row context chips + share + selected paint */
.signal-toolbar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  width: 100%;
}
.signal-context-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.signal-ctx-chip {
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: var(--dim, #8a94a0);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 2rem;
}
.signal-ctx-chip:hover { color: #e8eef2; border-color: rgba(87,212,223,0.45); }
.signal-ctx-chip.is-on {
  color: #062b43;
  background: #57d4df;
  border-color: transparent;
}
.signal-ctx-chip:focus-visible {
  outline: 3px solid #57d4df;
  outline-offset: 2px;
}
.signal-context-filter { display: none !important; }
.signal-share.is-on { color: #57d4df; }
.signal-like.is-on { color: #ff6b8a; }
.signal-like.is-on .signal-act-ico path { fill: currentColor; }
.signal-repost.is-on { color: #3ec6d8; }
.signal-bookmark.is-on { color: #ffb511; }
@media (max-width: 720px) {
  .signal-context-chips { margin-left: 0; width: 100%; }
}

/* —— yapacctmenu1: /yap/ left-nav YAP brand = icon-only (title/aria YAP!) —— */
.yap-shell > .yap-rail > .yap-rail-brand .yap-rail-brand-text {
  display: none !important;
}
.yap-shell > .yap-rail > .yap-rail-brand {
  justify-content: center;
  gap: 0;
}

/* yapctxpick1 — brand /yap/ compact My contexts picker (parity with yap.ms) */
.signal-context-chips { display: none !important; }
.signal-ctx-picker {
  position: relative;
  margin-left: auto;
  flex: none;
}
.signal-ctx-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: #e8eef2;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 2rem;
  white-space: nowrap;
}
.signal-ctx-trigger:hover { border-color: rgba(87,212,223,0.45); background: rgba(87,212,223,0.08); }
.signal-ctx-trigger:focus-visible { outline: 3px solid #57d4df; outline-offset: 2px; }
.signal-ctx-trigger[aria-expanded="true"] {
  border-color: #57d4df;
  background: rgba(87,212,223,0.12);
}
.signal-ctx-caret { font-size: 0.7rem; opacity: 0.85; }
.signal-ctx-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0b334d;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  display: grid;
  gap: 2px;
}
.signal-ctx-menu[hidden] { display: none !important; }
.signal-ctx-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #e8eef2;
  cursor: pointer;
}
.signal-ctx-opt:hover { background: rgba(87,212,223,0.1); }
.signal-ctx-opt input { accent-color: #57d4df; width: 1rem; height: 1rem; }
.signal-ctx-manage {
  display: block;
  margin-top: 0.2rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.75rem;
  color: #57d4df;
  text-decoration: none;
  border-radius: 8px;
}
.signal-ctx-manage:hover { background: rgba(87,212,223,0.1); text-decoration: underline; }
@media (max-width: 720px) {
  .signal-ctx-picker { margin-left: 0; width: 100%; }
  .signal-ctx-trigger { width: 100%; justify-content: space-between; }
  .signal-ctx-menu { left: 0; right: 0; min-width: 0; }
}

/* yapctxrail1 — brand /yap/ Contexts sheet (no tab ▾) */
.signal-ctx-picker { display: none !important; }
.signal-ctx-sheet-open {
  border: 1px solid rgba(87, 212, 223, 0.35);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 999px;
  min-height: 32px;
  cursor: pointer;
  margin-left: auto;
}
.signal-ctx-sheet-open:hover { background: rgba(87, 212, 223, 0.1); }
.signal-ctx-sheet {
  max-width: 420px;
  width: calc(100% - 24px);
  margin: auto 12px 12px;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(87, 212, 223, 0.25);
  background: #0b334d;
  color: #f4f1e9;
}
.signal-ctx-sheet::backdrop { background: rgba(0, 17, 26, 0.7); }
.signal-ctx-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.signal-ctx-sheet-head h2 { margin: 0; font-size: 1.1rem; }
.signal-ctx-sheet-body { display: grid; gap: 4px; margin-bottom: 12px; }

/* yapembed1 — brand /yap/ as Arcology tenant embed: In this game who-rail */
.signal-ingame-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  width: 100%;
}
.signal-ingame-head {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  margin-right: auto;
}
.signal-ingame-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(87, 212, 223, 0.85);
}
.signal-ingame-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: #f4f1e9;
  line-height: 1.2;
}
.signal-ingame-row .signal-scopes {
  margin-left: 0;
}
/* Kill any leftover platform My-contexts ▾ / Contexts sheet chrome on embed */
.signal-ctx-picker,
.signal-ctx-sheet-open,
#signal-ctx-sheet {
  display: none !important;
}
@media (max-width: 720px) {
  .signal-ingame-row { align-items: flex-start; }
  .signal-ingame-head { width: 100%; }
}

/* yapembedmedia1 solid fills */
.signal-like.is-on { color: #ff6b8a !important; }
.signal-like.is-on .signal-act-ico path { fill: currentColor !important; stroke: currentColor !important; }
.signal-repost.is-on { color: #00ba7c !important; }
.signal-repost.is-on .signal-act-ico path { fill: currentColor !important; stroke: currentColor !important; }
.signal-bookmark.is-on { color: #ffb511 !important; }
.signal-bookmark.is-on .signal-bm-ico path,
.signal-bookmark.is-on .signal-act-ico path { fill: currentColor !important; stroke: currentColor !important; }
