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

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

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;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 18, 0.88);
  border-bottom: 1px solid var(--line-soft);
}

.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.jpg") 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) {
  .site-header .bar { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; gap: 0.35rem 0.85rem; }
  .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; }
}

/* —— 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: 5.5rem 1fr;
  gap: 0.45rem;
  align-items: center;
}
.social-fields .social-row.custom {
  grid-template-columns: 5.5rem 1fr;
}
.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; }
}
.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,
.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: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; }
.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; }
.check-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.check-row input { margin-top: 0.2rem; }

/* 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: hidden;
  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; }
}


/* —— 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);
}
.nav-account-menu button#nav-logout {
  color: #e07070;
  margin-top: 0.15rem;
  border-top: 1px solid var(--line);
  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: start;
  padding: var(--space-5) 0 var(--space-6);
  position: relative;
  isolation: isolate;
}
@media (max-width: 760px) {
  .wiki-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.wiki-side {
  position: sticky;
  top: 4.25rem;
  font-size: 0.82rem;
}
@media (max-width: 760px) {
  .wiki-side { position: static; }
}
.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-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); }
.char-micro-stub {
  width: 36px; height: 36px; 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;
}


.account-micro-avatar.has-img,
.account-micro-avatar img {
  display: block;
}
.account-micro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  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;
  display: block;
}
.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;
}

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

/* —— 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;
}
