:root,
body[data-scene="calcite-matinee"] {
  --color-paper: #faf6f0;
  --color-paper-2: #f1e9dd;
  --color-paper-3: #e7dbc9;
  --color-text: #1c1917;
  --color-text-muted: #5c534c;
  --color-primary: #9a3412;
  --color-primary-hover: #7c2d12;
  --color-accent: #b45309;
  --color-gold: #1b5e40;
  --color-secondary: #6b21a8;
  --color-line: rgba(28, 25, 23, 0.11);
  --color-line-strong: rgba(28, 25, 23, 0.22);
  --color-card-bg: #fdfbf7;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px rgba(28, 25, 23, 0.07);
  --shadow-strong: 0 20px 48px rgba(28, 25, 23, 0.16);
}

body[data-scene="sienna-parchment"] {
  --color-paper: #f4ece0;
  --color-paper-2: #e9dcc8;
  --color-paper-3: #dccab0;
  --color-text: #231815;
  --color-text-muted: #614f47;
  --color-primary: #852d0f;
  --color-primary-hover: #692109;
  --color-accent: #b45309;
  --color-gold: #1b5e40;
  --color-secondary: #6b21a8;
  --color-line: rgba(35, 24, 21, 0.13);
  --color-line-strong: rgba(35, 24, 21, 0.25);
  --color-card-bg: #f9f3e9;
}

body[data-scene="malachite-nocturne"] {
  --color-paper: #111d18;
  --color-paper-2: #182922;
  --color-paper-3: #21382e;
  --color-text: #f3efe6;
  --color-text-muted: #b8afa0;
  --color-primary: #e07a47;
  --color-primary-hover: #f08c59;
  --color-accent: #f59e0b;
  --color-gold: #6ee7b7;
  --color-secondary: #c084fc;
  --color-line: rgba(243, 239, 230, 0.12);
  --color-line-strong: rgba(243, 239, 230, 0.24);
  --color-card-bg: #16251f;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 24px 56px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-paper);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (max-width: 860px) {
  body {
    padding-bottom: 4.75rem;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.outline-none { outline: none; }
.no-js, .js { min-height: 100%; }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.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; }
.top-24 { top: 6rem; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-\[95\] { z-index: 95; }
.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; }
.mt-auto { margin-top: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.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-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.p-3 { padding: 0.75rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pr-3 { padding-right: 0.75rem; }
.pl-3 { padding-left: 0.75rem; }
.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; }
.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; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }
.-rotate-90 { transform: rotate(-90deg); }
.cursor-pointer { cursor: pointer; }
.aspect-square { aspect-ratio: 1 / 1; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1.4; }
.text-sm { font-size: 0.875rem; line-height: 1.55; }
.text-2xl { font-size: 1.5rem; line-height: 1.25; }
.font-mono { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.65; }
.text-muted { color: var(--color-text-muted); }
.text-main { color: var(--color-text); }
.rounded { border-radius: var(--radius-sm); }
.border { border: 1px solid var(--color-line-strong); }
.border-t { border-top: 1px solid var(--color-line); }
.border-l { border-left: 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); }

@media (min-width: 640px) {
  .sm\:block { display: block !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; }
  .sm\:col-span-2 { grid-column: span 2 / span 2 !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-4 { grid-template-columns: repeat(4, 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-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .min-\[861px\]\:col-span-2 { grid-column: span 2 / span 2 !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; }
  .min-\[861px\]\:grid-cols-\[0\.9fr_1\.1fr\] { display: grid !important; grid-template-columns: 0.9fr 1.1fr !important; }
}

@media (min-width: 1024px) {
  .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; }
}

/* Polymorph Auxiliary DOM Hash Classes */
.q0j3h84xLHpG6GsIRZE,
.RZl5SEvD1WjwJxZjQttc,
.TGAw3o00LAIs3ny3jZCB,
.WDu1bvCSD64hbT6UlpjrO,
.nBDxOgYRdHLfaMlMUhyFXw,
.nThtSMovLbpU5j1227 {
  position: relative;
}

.i7TG2kxmPAo8yAfwwGBrZA {
  background: var(--color-paper-2);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.RBbxgIyfsOUmBfO0pmb {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .RBbxgIyfsOUmBfO0pmb {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.tsr-newsletter-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.25rem 0;
}

.tsr-newsletter-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tsr-newsletter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tsr-newsletter-row .tsr-input {
  flex: 1 1 200px;
}

.tsr-field-error {
  font-size: 0.75rem;
  color: #b91c1c;
  margin: 0;
}

.tsr-inline-toast {
  background: var(--color-card-bg);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
}

/* Containers & Layout Shells */
.tsr-shell {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-shell {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-heading {
  width: 100%;
}

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

.tsr-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.2;
  margin: 0.2rem 0 0;
  color: var(--color-text);
}

.tsr-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  line-height: 1.18;
  margin: 0;
}

.tsr-card-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
}

.panel {
  background: var(--color-card-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.tsr-subpanel {
  background: var(--color-paper-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

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

/* Header & Navigation */
.site-header {
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
  padding: 0.85rem 0;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.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: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  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;
  }
}

.tsr-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tsr-nav-link:hover,
.tsr-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(27, 94, 64, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(27, 94, 64, 0.32);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.btn-claim-text {
  font-size: 0.8125rem;
}

.credit-jewel {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.22);
  display: inline-block;
  flex-shrink: 0;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--color-paper-2);
  border: 1px solid var(--color-line-strong);
  color: var(--color-text);
}

/* 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.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.42rem 0.8rem;
}

.btn-lg {
  font-size: 0.9375rem;
  padding: 0.78rem 1.4rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-outline {
  background: var(--color-card-bg);
  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(250, 246, 240, 0.16);
  color: #faf6f0;
  border-color: rgba(250, 246, 240, 0.38);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(250, 246, 240, 0.26);
}

.btn-quiet {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-quiet:hover {
  color: var(--color-text);
  background: var(--color-paper-2);
}

/* Hero Section */
.tsr-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #1e130f;
  color: #faf6f0;
  padding: 3.5rem 0 2rem;
}

.tsr-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tsr-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-halo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(24, 15, 12, 0.92) 0%, rgba(35, 20, 15, 0.76) 55%, rgba(27, 94, 64, 0.42) 100%);
}

.tsr-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 960px) {
  .tsr-hero-inner {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f3e8d8;
}

.hero-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: #9a3412;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
}

.tsr-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  line-height: 1.12;
  margin: 0;
  color: #faf6f0;
}

.hero-title-wonder {
  color: #f59e0b;
}

.hero-description {
  font-size: 1.02rem;
  color: rgba(250, 246, 240, 0.86);
  max-width: 40rem;
  margin: 0;
}

.tsr-hero-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(250, 246, 240, 0.96);
  color: #1c1917;
  padding: 0.45rem 0.55rem 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  max-width: 36rem;
  box-shadow: var(--shadow-strong);
}

.tsr-hero-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #1c1917;
  outline: none;
}

.tsr-kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  border: 1px solid var(--color-line-strong);
  background: var(--color-paper-2);
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: rgba(250, 246, 240, 0.84);
}
.hero-proof p {
  margin: 0;
}

.hero-world-note {
  background: rgba(24, 15, 12, 0.75);
  border: 1px solid rgba(250, 246, 240, 0.24);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #faf6f0;
}

.hero-note-orbit {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px dashed #f59e0b;
  flex-shrink: 0;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 246, 240, 0.16);
}

.tsr-scroll-cue {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 240, 0.8);
}

/* Interactive Atlas & Soundboard */
.atlas-section {
  position: relative;
}

.atlas-count {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  text-align: right;
}
.atlas-count strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-primary);
}
.atlas-count span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.atlas-stage {
  position: relative;
  width: 100%;
}

.tsr-map-frame {
  position: relative;
  width: 100%;
  height: 620px;
  background: var(--color-paper-2);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.tsr-map-frame:active {
  cursor: grabbing;
}

.map-caption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: var(--color-card-bg);
  border: 1px solid var(--color-line-strong);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.map-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

.tsr-map-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 1000px;
  transform-origin: 0 0;
  will-change: transform;
}

.atlas-canvas {
  position: absolute;
  inset: 0;
  width: 1600px;
  height: 1000px;
  pointer-events: none;
}

.island-fallback {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--region-color, #9a3412) 0%, transparent 72%);
  opacity: 0.14;
  pointer-events: none;
}

.island-name {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 4;
}
.island-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}
.island-name strong {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-card-bg);
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--color-line-strong);
}

.plot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 12;
}

.plot-pin {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.plot-pulse {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--region, #9a3412);
  opacity: 0.35;
  pointer-events: none;
}

.plot-ring {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  padding: 4px;
  background: var(--color-card-bg);
  border: 2px solid var(--region, #9a3412);
  box-shadow: var(--shadow-soft);
  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: scale(1.1) rotate(0deg);
  box-shadow: var(--shadow-strong);
}

.plot-claimed {
  position: absolute;
  top: -6px;
  right: -6px;
  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 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-card-bg);
  color: var(--color-text);
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid var(--color-line-strong);
  white-space: nowrap;
}

.map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  gap: 0.35rem;
}

.map-ctrl-btn {
  background: var(--color-card-bg);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.map-ctrl-btn:hover {
  border-color: var(--color-primary);
}

.map-hud {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  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 {
  background: var(--color-card-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: 9999px;
  padding: 0.35rem 0.9rem 0.35rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.map-meter-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.map-meter-copy strong {
  font-size: 0.78rem;
}
.map-meter-copy small {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.map-meter-progress {
  transition: stroke-dashoffset 0.4s ease;
  stroke: var(--color-primary);
}

/* 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: 35;
  background: var(--color-card-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  padding: 1.25rem;
  overflow-y: auto;
}

.deed-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: var(--color-card-bg);
  color: var(--color-text);
  font-size: 1.1rem;
  cursor: pointer;
}

.deed-art-wrap {
  max-width: 210px;
  margin-left: auto;
  margin-right: auto;
}

.deed-stamp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--color-gold);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.tsr-deed-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.deed-description {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.tsr-deed-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin: 0;
  font-size: 0.78rem;
}
.tsr-deed-meta dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.tsr-deed-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.tsr-deed-actions {
  width: 100%;
}

.region-flight,
.atlas-footnote {
  width: 100%;
}

/* Perforated Stamps & Game Cards */
.stamp-shadow {
  filter: drop-shadow(0 6px 14px rgba(28, 25, 23, 0.12));
}

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

.tsr-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tsr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--region, var(--color-primary));
}

.tsr-card__art {
  display: block;
  position: relative;
}

.tsr-card__region {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(28, 25, 23, 0.82);
  color: #faf6f0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tsr-card__new {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}

.tsr-card__seal {
  position: absolute;
  bottom: 12px;
  right: 12px;
  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.5rem;
  border-radius: 9999px;
  display: none;
}
.tsr-card.is-claimed .tsr-card__seal,
.game-detail-layout.is-claimed .tsr-card__seal {
  display: inline-block;
}

.tsr-card__claim {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: var(--color-card-bg);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tsr-card__claim.is-claimed,
.tsr-card.is-claimed .tsr-card__claim {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
}

.tsr-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tsr-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0;
}

.tsr-card__sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.swatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.vol {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.vol i {
  width: 3px;
  height: 10px;
  background: var(--color-line-strong);
  border-radius: 1px;
  display: inline-block;
}
.vol i.on {
  background: var(--color-primary);
}

/* Shelf, Featured Album, Quadrant Grid & Rails */
.tsr-shelf-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.tsr-shelf-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-paper-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
}

.tsr-shelf-thumb img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
}

.tsr-shelf-copy {
  flex: 1;
  min-width: 0;
}

.tsr-shelf-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0.1rem 0 0;
}

.featured-album,
.tsr-quadrant-grid {
  width: 100%;
}

.tsr-region-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.tsr-region-card:hover {
  transform: translateY(-4px);
  border-color: var(--region-color, var(--color-primary));
}

.tsr-region-card-scene {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.tsr-region-card-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tsr-region-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(28, 25, 23, 0.84);
  color: #faf6f0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tsr-region-card-copy {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.tsr-region-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}

.tsr-region-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.tsr-circle-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rail-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.rail-item {
  flex: 0 0 275px;
  scroll-snap-align: start;
}

.rail-btn {
  position: absolute;
  top: 42%;
  z-index: 15;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: var(--color-card-bg);
  color: var(--color-text);
  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; }

/* Mood Cards & Chips */
.tsr-mood-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--mood-color, var(--color-primary));
}

.tsr-mood-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: var(--color-paper-2);
}

.tsr-mood-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--color-line-strong);
  background: var(--color-card-bg);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.chip-toggle:hover {
  border-color: var(--color-primary);
}

/* Finale Section */
.tsr-finale {
  padding-bottom: 5rem;
}

.tsr-finale-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1c120e;
  color: #faf6f0;
  padding: 3.5rem 2.25rem;
  border: 1px solid var(--color-line-strong);
}

.finale-island {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.tsr-finale-content {
  position: relative;
}

.tsr-finale-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0;
  color: #faf6f0;
}

/* Page Head, Library Filters & Collection Spotlight */
.tsr-page-head {
  background: var(--color-paper-2);
  border-bottom: 1px solid var(--color-line);
  padding: 2.75rem 0;
}

.tsr-page-art img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line-strong);
}

.tsr-collection-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--color-line-strong);
  background: var(--color-card-bg);
  font-size: 0.85rem;
  font-weight: 600;
}

.tsr-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
}

.tsr-search-field {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
}

.tsr-select,
.tsr-input,
.tsr-textarea {
  width: 100%;
  background: var(--color-paper);
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.tsr-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.tsr-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.collection-spotlight {
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-line-strong);
  background: var(--color-paper-2);
}

/* Game Detail & Play Room */
.tsr-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.game-detail-layout,
.game-info-panel,
.tsr-dossier-poster,
.tsr-spec-dl {
  width: 100%;
}

.tsr-bullet-list,
.tsr-ordered-list {
  padding-left: 1.25rem;
  margin: 0;
}

.play-stage {
  background: #14110f;
  color: #faf6f0;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.play-topbar {
  padding: 0.75rem 1.15rem;
  background: #1e1815;
  border-bottom: 1px solid rgba(250, 246, 240, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tsr-stage-notice {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #f59e0b;
}

.tsr-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  background: #0b0908;
}
.tsr-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Profile, Auth & Ledger */
.balance-panel {
  border-left: 5px solid var(--color-gold);
}

.tsr-balance-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f59e0b, #9a3412);
  flex-shrink: 0;
}

.tsr-balance-figure {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.tsr-balance-figure strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
}

.tsr-scene-option,
.tsr-break-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line-strong);
  background: var(--color-paper);
  cursor: pointer;
}

.tsr-swatch-chip {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.tsr-ledger-list {
  max-height: 540px;
  overflow-y: auto;
}

.tsr-ledger-row {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
}

.tsr-amt-positive {
  color: var(--color-gold);
  font-weight: 700;
}

.auth-page {
  width: 100%;
}

.auth-card {
  max-width: 520px;
  overflow: hidden;
}

.auth-scene-ribbon {
  height: 130px;
  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;
}

.tsr-tab-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tsr-tab-btn.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, 83, 9, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tsr-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.tsr-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.tsr-alert-success {
  background: rgba(27, 94, 64, 0.12);
  border: 1px solid var(--color-gold);
  color: var(--color-text);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.tsr-alert-error {
  background: rgba(185, 28, 28, 0.12);
  border: 1px solid #b91c1c;
  color: var(--color-text);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* Prose, Tables, Code, FAQ & Honeypot */
.tsr-prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0.2rem 0 0.5rem;
}

.tsr-toc-link {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  color: var(--color-text-muted);
}
.tsr-toc-link:hover {
  background: var(--color-paper-2);
  color: var(--color-primary);
}

.tsr-quote {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-paper-2);
  font-style: italic;
}

.tsr-faq-item summary {
  cursor: pointer;
  font-weight: 600;
}
.tsr-faq-summary {
  font-size: 0.95rem;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.tsr-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.tsr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.tsr-table th,
.tsr-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-line-strong);
  text-align: left;
}
.tsr-table th {
  background: var(--color-paper-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.tsr-code-block {
  background: #181412;
  color: #f3efe6;
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* Footer, Mobile Tabbar, Dialogs, Toast & Consent Banner */
.site-footer {
  width: 100%;
  background: var(--color-paper);
  border-top: 1px solid var(--color-line);
  color: var(--color-text);
}
.site-footer-inner,
.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: 0 0 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);
}
.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);
}
.notice-copy p {
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.tsr-mobile-tabbar {
  grid-template-columns: repeat(5, 1fr);
  background: var(--color-card-bg);
  border-top: 1px solid var(--color-line-strong);
  padding: 0.35rem 0.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.tsr-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.tsr-tabbar-item.is-active {
  color: var(--color-primary);
}

.tsr-tabbar-center {
  color: var(--color-primary);
}

.tsr-tabbar-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -12px;
  border: 2px solid var(--color-card-bg);
}

.sheet {
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: var(--color-card-bg);
  color: var(--color-text);
  padding: 0;
  width: min(520px, calc(100% - 2rem));
  box-shadow: var(--shadow-strong);
}
.sheet::backdrop {
  background: rgba(17, 13, 10, 0.65);
  backdrop-filter: blur(4px);
}

.sheet-inner {
  position: relative;
}

.sheet-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: var(--color-card-bg);
  color: var(--color-text);
  font-size: 1.15rem;
  cursor: pointer;
}

.tsr-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 120;
  background: #1c1917;
  color: #faf6f0;
  border: 1px solid var(--color-primary);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-strong);
}
.toast.is-visible {
  display: block;
}

.tsr-consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 110;
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-strong);
}

.tsr-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Interactive State Modifiers */
.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-2) !important;
}
.is-claimed {
  border-color: var(--color-gold);
}
.is-new-claim {
  animation: tsrPulseClaim 0.65s ease;
}
.is-open {
  display: block !important;
}

@keyframes tsrPulseClaim {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
