:root,
body[data-scene="vellum"] {
  --color-paper: #fbf7ee;
  --color-paper-2: #f2e8d5;
  --color-surface: #ffffff;
  --color-text: #182226;
  --color-text-muted: #4b5a60;
  --color-primary: #b45309;
  --color-primary-hover: #92400e;
  --color-gold: #15654e;
  --color-accent: #991b1b;
  --color-line: rgba(24, 34, 38, 0.12);
  --color-line-strong: rgba(24, 34, 38, 0.22);
  --font-display: 'Prata', Georgia, serif;
  --font-sans: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px rgba(24, 34, 38, 0.08);
  --shadow-strong: 0 18px 44px rgba(24, 34, 38, 0.16);
}

body[data-scene="flax"] {
  --color-paper: #f6efe0;
  --color-paper-2: #e9dec6;
  --color-surface: #fcfaf4;
  --color-text: #241d15;
  --color-text-muted: #5c5042;
  --color-primary: #991b1b;
  --color-primary-hover: #7f1d1d;
  --color-gold: #b45309;
  --color-accent: #15654e;
  --color-line: rgba(36, 29, 21, 0.13);
  --color-line-strong: rgba(36, 29, 21, 0.24);
}

body[data-scene="obsidian"] {
  --color-paper: #121a1d;
  --color-paper-2: #1a262b;
  --color-surface: #223138;
  --color-text: #f4efe6;
  --color-text-muted: #b5c2c7;
  --color-primary: #f59e0b;
  --color-primary-hover: #fbbf24;
  --color-gold: #34d399;
  --color-accent: #f87171;
  --color-line: rgba(244, 239, 230, 0.14);
  --color-line-strong: rgba(244, 239, 230, 0.26);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 18px 44px rgba(0, 0, 0, 0.52);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  background-color: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
@media (max-width: 860px) {
  body { padding-bottom: 74px; }
}

:where(img, picture) { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
[data-reveal], .reveal { opacity: 1 !important; transform: none !important; }
.outline-none { outline: none; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.hidden { display: none; }
.block { display: block; } .inline-block { display: inline-block; } .inline { display: inline; }
.flex { display: flex; } .inline-flex { display: inline-flex; } .grid { display: grid; }
.relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; } .sticky { position: sticky; }
.inset-0 { inset: 0; } .inset-x-0 { left: 0; right: 0; } .top-0 { top: 0; } .bottom-0 { bottom: 0; } .top-24 { top: 6rem; }
.z-\[100\] { z-index: 100; }
.w-full { width: 100%; } .h-full { height: 100%; } .h-auto { height: auto; }
.mx-auto { margin-left: auto; margin-right: auto; } .ml-auto { margin-left: auto; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; } .flex-col { flex-direction: column; } .flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; } .flex-grow { flex-grow: 1; } .flex-shrink-0, .shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; } .gap-1\.5 { gap: 0.375rem; } .gap-2 { gap: 0.5rem; } .gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; }

.w-3 { width: 0.75rem; } .h-3 { height: 0.75rem; } .w-3\.5 { width: 0.875rem; } .h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; } .w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; } .w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; } .w-12 { width: 3rem; } .h-12 { height: 3rem; }
.size-3\.5 { width: 0.875rem; height: 0.875rem; } .size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; } .size-6 { width: 1.5rem; height: 1.5rem; }
.size-7 { width: 1.75rem; height: 1.75rem; } .size-8 { width: 2rem; height: 2rem; }
.size-9 { width: 2.25rem; height: 2.25rem; } .size-10 { width: 2.5rem; height: 2.5rem; } .size-12 { width: 3rem; height: 3rem; }

.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.pt-0 { padding-top: 0 !important; } .pt-2 { padding-top: 0.5rem; } .pb-12 { padding-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; } .my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; } .my-8 { margin-top: 2rem; margin-bottom: 2rem; }

.text-xs { font-size: 0.75rem; line-height: 1.4; }
.text-sm { font-size: 0.875rem; line-height: 1.55; }
.text-lg { font-size: 1.125rem; line-height: 1.45; }
.text-2xl { font-size: 1.65rem; line-height: 1.25; }
.font-mono { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-main { color: var(--color-text); }
.text-accent { color: var(--color-accent); }

.border-t { border-top: 1px solid var(--color-line); }
.border-y { border-top: 1px solid var(--color-line-strong); border-bottom: 1px solid var(--color-line-strong); }
.border-line-strong { border-color: var(--color-line-strong); }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.-rotate-90 { transform: rotate(-90deg); }
.cursor-pointer { cursor: pointer; }
.aspect-square { aspect-ratio: 1 / 1; }

@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:inline { display: inline !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:items-end { align-items: flex-end !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) {
  .md\:block { display: block !important; }
  .md\:inline { display: inline !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-\[1\.5fr_1fr_1fr\] { grid-template-columns: 1.5fr 1fr 1fr !important; }
  .md\:grid-cols-\[240px_minmax\(0\,1fr\)\] { grid-template-columns: 240px minmax(0, 1fr) !important; }
}
@media (min-width: 861px) {
  .min-\[861px\]\:flex { display: flex !important; }
  .min-\[861px\]\:inline-flex { display: inline-flex !important; }
  .min-\[861px\]\:block { display: block !important; }
  .min-\[861px\]\:hidden { display: none !important; }
  .min-\[861px\]\:grid-cols-\[240px_minmax\(0\,1fr\)\] { display: grid !important; grid-template-columns: 240px minmax(0, 1fr) !important; }
  .min-\[861px\]\:grid-cols-\[1\.1fr_0\.9fr\] { display: grid !important; grid-template-columns: 1.1fr 0.9fr !important; }
}
@media (min-width: 1024px) {
  .lg\:sticky { position: sticky !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-\[1\.1fr_0\.9fr\] { grid-template-columns: 1.1fr 0.9fr !important; }
  .lg\:grid-cols-\[1\.1fr_1\.1fr\] { grid-template-columns: 1.1fr 1.1fr !important; }
  .lg\:grid-cols-\[1\.1fr_1\.3fr\] { grid-template-columns: 1.1fr 1.3fr !important; }
}
@media (max-width: 860px) {
  .max-\[860px\]\:grid { display: grid !important; }
  .max-\[860px\]\:hidden { display: none !important; }
}

/* Auxiliary Polymorph DOM Hash Classes */
.qruAaB7GBgjGFMr98VQowg,
.Xiec70NBu7UELHcZAJc,
.kBrxgDtLWRLRhoEXwX1,
.UIaffwQDI1tzctvx8F,
.PZYNftmVN36IYu10k7InG,
.N3yWCulyGlIPi3k2mLJ {
  position: relative;
}

/* Layout & Shell */
.section-shell {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 3.5rem 1.25rem;
}
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 0.35rem 0;
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.18;
  margin: 0;
  color: var(--color-text);
}
.section-title-sm {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  color: var(--color-text);
}
.section-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 64ch;
  margin: 0.5rem 0 0 0;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
.page-lead {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  max-width: 62ch;
  margin: 0.75rem 0 0 0;
}

/* Skip Link & Header */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.site-header {
  width: 100%;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-jewel { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-jewel-core { width: 12px; height: 12px; border-radius: 2px; background: #fff; transform: rotate(45deg); display: block; }
.brand-wordmark { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-wordmark-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--color-text); }
.brand-wordmark-accent { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--color-primary); letter-spacing: 0.05em; text-transform: uppercase; }

.site-nav { display: none; }
@media (min-width: 861px) { .site-nav { display: flex; align-items: center; gap: 1.5rem; } }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.btn-pill-balance {
  background: rgba(180, 105, 22, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(180, 105, 22, 0.32);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.credit-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-gold); display: inline-block;
}
.btn-claim-text { font-size: 0.8125rem; }
.claim-pill-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--color-primary); color: #fff;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn-sm { padding: 0.42rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.82rem 1.6rem; font-size: 0.95rem; }
.btn-block { width: 100%; display: flex; }
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-outline {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-line-strong);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.26); }
.btn-quiet {
  background: var(--color-paper-2);
  color: var(--color-text);
  border-color: var(--color-line);
}
.btn-quiet:hover { border-color: var(--color-primary); }

/* Hero Section */
.pjs-hero {
  position: relative;
  overflow: hidden;
  background: #141c1f;
  color: #fbf7ee;
  border-bottom: 1px solid var(--color-line-strong);
}
.pjs-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pjs-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}
.hero-halo {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(26, 12, 31, 0.92) 15%, rgba(65, 18, 74, 0.78) 60%, rgba(25, 12, 30, 0.92) 100%);
  z-index: 1;
}
.pjs-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 960px) {
  .pjs-hero-inner { grid-template-columns: 1.35fr 0.65fr; }
}
.hero-copy { max-width: 720px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}
.hero-age {
  background: #b46916;
  color: #fff;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 1rem 0;
  color: #ffffff;
}
.hero-title-wonder { color: #f59e0b; }
.hero-description {
  font-size: 1.05rem;
  color: rgba(249, 245, 250, 0.86);
  margin: 0 0 1.5rem 0;
  max-width: 60ch;
}
.hero-search-form { margin-bottom: 1.5rem; max-width: 580px; }
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
}
.search-icon { color: var(--color-text-muted); }
.search-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}
.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 4px;
  color: var(--color-text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: rgba(249, 245, 250, 0.82);
}
.credit-jewel {
  width: 14px; height: 14px; border-radius: 50%; background: #f59e0b; flex-shrink: 0;
}
.hero-world-note {
  background: rgba(26, 15, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: blur(10px);
}
.hero-note-orbit {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px dashed #f59e0b; flex-shrink: 0;
}
.hero-bottom {
  position: relative;
  z-index: 2;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.scroll-cue {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #f59e0b;
}

/* Interactive Atlas & Stamp System */
.atlas-section { position: relative; }
.atlas-count {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  text-align: right;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.atlas-count strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
}
.atlas-stage { position: relative; width: 100%; }
.pjs-map-frame {
  position: relative;
  width: 100%;
  height: clamp(500px, 68vh, 690px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line-strong);
  background: var(--color-paper-2);
  overflow: hidden;
  cursor: grab;
  box-shadow: var(--shadow-strong);
  outline: none;
}
.pjs-map-frame.is-dragging { cursor: grabbing; }
.pjs-map-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 1000px;
  transform-origin: 0 0;
  will-change: transform;
}
.pjs-map-world.is-flying {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.atlas-canvas {
  position: absolute;
  inset: 0;
  width: 1600px;
  height: 1000px;
  pointer-events: none;
}
.map-caption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  pointer-events: none;
}
.map-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent);
}
.island-fallback {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 25, 143, 0.08) 0%, transparent 72%);
  pointer-events: none;
}
.island-name {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  background: var(--color-surface);
  border: 1px solid var(--region, var(--color-primary));
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  box-shadow: var(--shadow-soft);
}
.island-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.island-name strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-text);
}

.plot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.plot-pin {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.plot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -58%);
  border-radius: 50%;
  border: 1px solid var(--region, var(--color-primary));
  opacity: 0.35;
  pointer-events: none;
}
.plot-ring {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 10px;
  padding: 3px;
  background: var(--color-surface);
  border: 2px solid var(--region, var(--color-primary));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: rotate(var(--stamp-angle, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plot-pin:hover .plot-ring,
.plot.is-selected .plot-ring {
  transform: rotate(0deg) scale(1.1);
  box-shadow: 0 12px 26px rgba(134, 25, 143, 0.35);
}
.plot-claimed {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.plot.is-claimed .plot-claimed { display: flex; }
.plot-label {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 15;
  display: flex;
  gap: 0.35rem;
}
.map-ctrl-btn {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.map-ctrl-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

.map-hud {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}
.map-hud > * { pointer-events: auto; }
.map-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.95rem 0.35rem 0.45rem;
  box-shadow: var(--shadow-soft);
}
.map-meter-progress { transition: stroke-dashoffset 0.4s ease; stroke: var(--color-primary); }
.map-meter-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 0.78rem; }
.map-meter-text small { font-size: 0.68rem; color: var(--color-text-muted); }

/* Slide-out Deed Dossier inside Map Frame */
.deed {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  width: min(360px, calc(100% - 1.7rem));
  z-index: 30;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-strong);
  overflow-y: auto;
}
.deed-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: var(--color-paper);
  color: var(--color-text);
  font-size: 1.15rem;
  cursor: pointer;
}
.deed-art-wrap {
  position: relative;
  width: 150px;
  margin: 0 auto 1rem auto;
}
.deed-stamp {
  position: absolute;
  bottom: -6px;
  right: -10px;
  background: var(--color-gold);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.deed-kicker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}
.deed-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem 0;
}
.deed-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.pjs-deed-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin: 0 0 1rem 0;
  font-size: 0.8rem;
}
.pjs-deed-meta dt { color: var(--color-text-muted); font-size: 0.7rem; font-family: var(--font-mono); }
.pjs-deed-meta dd { margin: 0.2rem 0 0 0; font-weight: 600; }
.pjs-deed-actions { margin-top: 0.75rem; }

.region-flight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
.flight-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-right: 0.25rem;
}
.atlas-footnote {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Perforated Stamps & Game Cards */
.stamp-shadow {
  filter: drop-shadow(0 6px 14px rgba(39, 19, 43, 0.14));
}
.stamp {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 8px;
  background: #fff;
  border: 1px dashed var(--color-line-strong);
  border-radius: 4px;
}
.stamp img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.plot-ring .stamp-shadow, .plot-ring .stamp { width: 100%; height: 100%; padding: 2px; }
.plot-ring .stamp img { width: 100%; height: 100%; object-fit: cover; }

.pjs-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pjs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--region, var(--color-primary));
}
.pjs-card__art {
  position: relative;
  display: block;
}
.pjs-card__region {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 15, 30, 0.84);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.swatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--region, var(--color-primary));
  display: inline-block;
  flex-shrink: 0;
}
.pjs-card__new {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--color-gold);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.pjs-card__seal {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: none;
}
.pjs-card.is-claimed .pjs-card__seal,
.game-detail-layout.is-claimed .pjs-card__seal {
  display: inline-block;
}
.pjs-card.is-new-claim {
  box-shadow: 0 0 0 3px var(--color-gold);
}
.pjs-card__claim {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.pjs-card.is-claimed .pjs-card__claim,
.pjs-card__claim[aria-pressed="true"] {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
}
.pjs-card__body { padding-top: 0.75rem; }
.pjs-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 0.35rem 0;
}
.pjs-card__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 0;
}
.vol {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vol i {
  width: 5px;
  height: 11px;
  border-radius: 2px;
  background: var(--color-line-strong);
  display: inline-block;
}
.vol i.on { background: var(--color-primary); }

/* Shelf & Workbench */
.pjs-shelf-section { padding-top: 1.5rem; padding-bottom: 1rem; }
.shelf-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
}
.shelf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  background: var(--color-paper);
  border: 1px solid var(--color-line-strong);
}
.shelf-item-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.shelf-item-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.shelf-item-meta { display: flex; flex-direction: column; min-width: 0; }
.shelf-item-region { font-size: 0.68rem; color: var(--color-text-muted); font-family: var(--font-mono); }
.shelf-item-title { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Four Guild Halls (Sector Cards) */
.pjs-quadrant-grid, .featured-album { width: 100%; }
.pjs-region-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pjs-region-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.pjs-region-card-scene {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.pjs-region-card-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pjs-region-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 15, 30, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pjs-region-card-copy {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.region-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.2rem 0 0.5rem 0;
}
.region-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem 0;
  flex: 1;
}
.pjs-region-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-primary);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-line);
}
.region-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-paper-2);
  display: inline-flex; align-items: center; justify-content: center;
}

/* Scroll Rail */
.rail-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1rem 0.25rem;
  scrollbar-width: thin;
}
.rail-slide {
  flex: 0 0 270px;
  scroll-snap-align: start;
}
.rail-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail-btn-prev { left: -12px; }
.rail-btn-next { right: -12px; }

/* Cadence, Mechanics & Principles */
.cadence-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cadence-card:hover {
  transform: translateY(-3px);
  border-color: var(--region, var(--color-primary));
}
.cadence-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--color-paper-2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.cadence-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}
.cadence-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
}
.mechanics-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-paper-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line-strong);
}
.mechanics-bar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip-toggle:hover,
.chip-toggle:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-paper-2);
  color: var(--color-primary);
}
.chip-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--color-paper-2);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
}
.principle-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.25rem 0 0 0;
}

/* Finale Banner */
.pjs-finale {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1f0f24;
  color: #ffffff;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.finale-island {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.pjs-finale-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.finale-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0.4rem 0 0.75rem 0;
}
.finale-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

/* Secondary Page Heads, Library & Filters */
.no-js, .js { min-height: 100%; }
.pjs-page-head { padding-bottom: 1.5rem; }
.detail-dl { width: 100%; }
.pjs-page-head-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--color-paper-2);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
@media (min-width: 861px) {
  .pjs-page-head-inner { grid-template-columns: 1.3fr 0.7fr; }
}
.pjs-page-art img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line-strong);
}
.pjs-collection-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  font-size: 0.84rem;
  font-weight: 600;
}
.pill-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--color-paper-2);
}
.filter-panel { padding: 1.35rem; }
.filter-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.filter-legend {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-right: 0.4rem;
  float: left;
}
.active-filters-bar { min-height: 2rem; }
.pjs-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.collection-spotlight {
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-line-strong, rgba(0,0,0,0.15));
  background: var(--color-paper-2);
}

/* Game Detail & Play Stage */
.breadcrumb ol { list-style: none; padding: 0; margin: 0; }
.detail-art-box { max-width: 460px; margin: 0 auto; }
.game-info-panel { width: 100%; }
.detail-dl-cell { padding: 0.75rem 0.5rem; }
.spec-bullets { padding-left: 1.2rem; margin: 0; }

.play-stage {
  background: #140a18;
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.play-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #211127;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.play-disclaimer-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.play-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  background: #0b050d;
}
.play-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Profile, Auth, Prose & Forms */
.verified-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(30, 96, 82, 0.15);
  color: var(--color-accent);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}
.status-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  border: 1px solid var(--color-line-strong);
}
.status-success {
  background: rgba(30, 96, 82, 0.12);
  border-color: var(--color-accent);
}
.status-error {
  background: rgba(159, 18, 57, 0.12);
  border-color: #9f1239;
}
.profile-grid { width: 100%; }
.balance-panel { background: var(--color-paper-2); }
.balance-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #b46916);
  box-shadow: 0 0 22px rgba(180, 105, 22, 0.4);
  flex-shrink: 0;
}
.balance-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.balance-amount strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.1;
}
.scene-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line-strong);
  background: var(--color-paper);
  cursor: pointer;
}
.scene-option-body { flex: 1; }
.scene-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
}
.ledger-list { max-height: 540px; overflow-y: auto; }
.ledger-row {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
}

.auth-page { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.auth-card { max-width: 560px; overflow: hidden; }
.auth-scene-ribbon { height: 115px; overflow: hidden; }
.auth-scene-ribbon img { width: 100%; height: 100%; object-fit: cover; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--color-line); margin-bottom: 1.5rem; gap: 0.5rem; }
.auth-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}
.auth-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.auth-panel { width: 100%; }
.auth-credit-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(180, 105, 22, 0.12); color: var(--color-gold);
  border: 1px solid rgba(180, 105, 22, 0.25); border-radius: 9999px;
  padding: 0.25rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.82rem; font-weight: 600; }
.form-input, .form-select {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Prose, FAQ & Tables */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list a:hover { color: var(--color-primary); text-decoration: underline; }
.pjs-prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.2rem 0 0.75rem 0;
}
.prose-section { scroll-margin-top: 6rem; }
.prose-dl { display: grid; gap: 0.85rem; }
.prose-dl dt { font-weight: 700; font-size: 0.92rem; }
.prose-dl dd { margin: 0.2rem 0 0 0; font-size: 0.88rem; color: var(--color-text-muted); }
.prose-ol { padding-left: 1.25rem; font-size: 0.92rem; }
.prose-quote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-paper-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-summary { font-size: 0.96rem; }
.table-wrap { overflow-x: auto; }
.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.policy-table th, .policy-table td {
  border: 1px solid var(--color-line-strong);
  padding: 0.65rem 0.85rem;
  text-align: left;
}
.policy-table th { background: var(--color-paper-2); font-family: var(--font-mono); font-size: 0.75rem; }
.code-block {
  background: #1a0f1e;
  color: #f7effa;
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* Footer, Newsletter, Modals, Tabbar & Cookie Banner */
.site-footer { width: 100%; background: var(--color-paper); border-top: 1px solid var(--color-line); color: var(--color-text); }
.site-footer-inner { width: 100%; }
.footer-grid { width: 100%; }
.footer-col { display: flex; flex-direction: column; }
.footer-world { width: 140px; height: auto; border-radius: 6px; border: 1px solid var(--color-line-strong); display: block; }
.footer-heading { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-links a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-notice { border: 1px solid var(--color-line-strong); background: var(--color-paper-2); border-radius: 16px; padding: 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start; }
.notice-badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.notice-copy { font-size: 0.8125rem; line-height: 1.6; color: var(--color-text-muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--color-text-muted); }

/* Decoy Newsletter Classes */
.xs6ADSrl1kThkhxR92q {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  border: 1px solid var(--color-line-strong);
}
.COoaFJ6iqNmjz7pdnM {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.newsletter-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}
.newsletter-controls { flex: 1; min-width: 280px; max-width: 460px; }
.newsletter-input-row { display: flex; gap: 0.5rem; }
.newsletter-error { font-size: 0.78rem; color: #e11d48; margin: 0.35rem 0 0 0; }
.newsletter-toast {
  margin-top: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.newsletter-toast-close {
  background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer;
}

/* Mobile Tabbar */
.mobile-tabbar {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line-strong);
  z-index: 95;
  padding: 0.35rem 0.25rem;
}
.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
}
.tabbar-item.is-active { color: var(--color-primary); font-weight: 600; }
.tabbar-item-center { position: relative; }
.tabbar-orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -14px;
  box-shadow: 0 4px 12px rgba(134, 25, 143, 0.35);
}

/* Native Dialog Sheet, Toast & Cookie Banner */
.sheet {
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  max-width: 540px;
  width: calc(100% - 2rem);
  color: var(--color-text);
}
.sheet::backdrop {
  background: rgba(18, 9, 22, 0.68);
  backdrop-filter: blur(4px);
}
.sheet-box {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.sheet-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
}
.sheet-body { padding: 1.5rem; }
.sheet-title { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.25rem 0; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  background: var(--color-text);
  color: var(--color-paper);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-strong);
}
.toast.is-visible { display: block; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-strong);
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cookie-banner-copy { flex: 1; min-width: 260px; }
.cookie-banner-title { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.25rem 0; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.pjs-modal-backdrop, .is-open, .is-consent-open { position: relative; }
.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important; }
.is-surveyed { box-shadow: 0 0 0 4px var(--color-accent), 0 12px 28px rgba(0, 0, 0, 0.3) !important; transform: scale(1.08) translateY(-4px) !important; transition: all 0.35s ease !important; z-index: 50 !important; }
.is-in { opacity: 1 !important; transform: none !important; }
.is-selected { border-color: var(--color-primary) !important; background: var(--color-paper) !important; }
