:root,
body[data-scene="canopy"] {
    --color-paper: #f3f7f2;
    --color-paper-2: #e4ede2;
    --color-surface: #ffffff;
    --color-text: #14281d;
    --color-text-muted: #3e5749;
    --color-primary: #17704e;
    --color-primary-hover: #11573c;
    --color-gold: #a86418;
    --color-secondary: #9e3b24;
    --color-accent: #a86418;
    --color-line: rgba(20, 40, 29, 0.12);
    --color-line-strong: rgba(20, 40, 29, 0.22);
    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-sans: 'Work Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 10px 28px rgba(20, 40, 29, 0.08);
    --shadow-elevated: 0 18px 42px rgba(20, 40, 29, 0.16);
}

body[data-scene="herbarium"] {
    --color-paper: #faf6ed;
    --color-paper-2: #efe6d4;
    --color-surface: #fffdf8;
    --color-text: #21261b;
    --color-text-muted: #525a48;
    --color-primary: #236b48;
    --color-primary-hover: #1a5237;
    --color-gold: #b06a14;
    --color-secondary: #9e3b24;
    --color-accent: #b06a14;
    --color-line: rgba(33, 38, 27, 0.13);
    --color-line-strong: rgba(33, 38, 27, 0.24);
}

body[data-scene="nocturne"] {
    --color-paper: #0f1f17;
    --color-paper-2: #172e23;
    --color-surface: #1c372a;
    --color-text: #ecf4ef;
    --color-text-muted: #a3bfb0;
    --color-primary: #34b37e;
    --color-primary-hover: #299668;
    --color-gold: #e09b3d;
    --color-secondary: #d96b4e;
    --color-accent: #e09b3d;
    --color-line: rgba(236, 244, 239, 0.14);
    --color-line-strong: rgba(236, 244, 239, 0.26);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.38);
    --shadow-elevated: 0 20px 48px rgba(0, 0, 0, 0.55);
}

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

html, .no-js, .js {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

h1, h2, h3, h4, p, dl, dd, ol, ul, figure {
    margin: 0;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.outline-none {
    outline: 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;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mandatory Utility Classes */
.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; }
.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; }
.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; }
.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.75rem; line-height: 1.2; }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }
.border-t { border-top: 1px solid var(--color-line); }
.border-y { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.border-line-strong { border-color: var(--color-line-strong); }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.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-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.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; }
.mb-8 { margin-bottom: 2rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

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

@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\: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-\[0\.9fr_1\.1fr\] { grid-template-columns: 0.9fr 1.1fr !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; }
}

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

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

.sbl-alt-section {
    background: var(--color-paper-2);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.sbl-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text);
}

.sbl-section-sub {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 65ch;
    margin-top: 0.35rem;
}

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

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

/* Header & Navigation */
.site-header {
    z-index: 100;
    background: color-mix(in srgb, var(--color-paper) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-line);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.sbl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-jewel {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    border: 1px solid 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: #f3f7f2;
    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.25rem;
    font-weight: 800;
    color: var(--color-text);
}

.brand-wordmark-accent {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    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.35rem;
    }
}

.sbl-nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.35rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.sbl-nav-link:hover,
.sbl-nav-link.is-active {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sbl-stamp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.78rem;
    border-radius: 9999px;
    background: var(--color-paper-2);
    border: 1px solid var(--color-line-strong);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}
.sbl-stamp-pill:hover {
    border-color: var(--color-primary);
}

.sbl-stamp-count {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-primary);
}

.btn-pill-balance {
    background: rgba(168, 100, 24, 0.14);
    color: var(--color-gold);
    border: 1px solid rgba(168, 100, 24, 0.35);
    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;
}

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

@media (max-width: 600px) {
    .btn-claim-text {
        display: none;
    }
}

.credit-jewel {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(168, 100, 24, 0.24);
    display: inline-block;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.62rem 1.2rem;
    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-primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-line-strong);
}
.btn-outline:hover,
.btn-outline.is-active {
    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);
}

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

.btn-lg {
    font-size: 0.98rem;
    padding: 0.82rem 1.55rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.sbl-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    overflow: hidden;
    background: #102319;
    color: #f3f7f2;
}

.sbl-hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.sbl-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: saturate(1.08) contrast(1.04);
}

.hero-halo {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(125deg, rgba(16, 35, 25, 0.93) 15%, rgba(23, 112, 78, 0.65) 60%, rgba(16, 35, 25, 0.88) 100%);
}

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

.hero-copy {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(243, 247, 242, 0.12);
    border: 1px solid rgba(243, 247, 242, 0.24);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
}

.sbl-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34b37e;
    box-shadow: 0 0 0 4px rgba(52, 179, 126, 0.28);
}

.hero-age {
    background: var(--color-gold);
    color: #fff;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
}

.sbl-hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    color: #f3f7f2;
}

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

.hero-description {
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(243, 247, 242, 0.88);
    margin-top: 1rem;
}

.sbl-hero-search {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(243, 247, 242, 0.96);
    color: #14281d;
    padding: 0.45rem 0.55rem 0.45rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.35);
    max-width: 600px;
}

.sbl-search-icon {
    color: #3e5749;
}

.sbl-search-input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #14281d;
    font-size: 0.94rem;
    outline: none;
    min-width: 0;
}

.sbl-kbd {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #e4ede2;
    color: #14281d;
    border: 1px solid rgba(20, 40, 29, 0.2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.hero-actions .btn-outline {
    color: #f3f7f2;
    border-color: rgba(243, 247, 242, 0.45);
}
.hero-actions .btn-outline:hover {
    background: rgba(243, 247, 242, 0.12);
    color: #fff;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: rgba(243, 247, 242, 0.84);
}

.hero-world-note {
    position: relative;
    background: rgba(15, 31, 23, 0.76);
    border: 1px solid rgba(232, 176, 89, 0.38);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-note-orbit {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px dashed #e8b059;
    margin-bottom: 0.6rem;
}

.sbl-note-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.25rem;
}

.sbl-note-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(243, 247, 242, 0.78);
    margin-top: 0.2rem;
}

.hero-bottom {
    position: relative;
    z-index: 2;
    margin-top: 2.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(243, 247, 242, 0.18);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(243, 247, 242, 0.78);
}

.sbl-scroll-cue:hover {
    color: #e8b059;
}

.sbl-hero-coordinates {
    opacity: 0.85;
}

/* Atlas Map Section */
.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.4rem;
    line-height: 1;
    color: var(--color-primary);
}
.atlas-count span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

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

.sbl-map-frame {
    position: relative;
    width: 100%;
    height: 620px;
    background: var(--color-paper-2);
    border: 2px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
    box-shadow: var(--shadow-elevated);
}
.sbl-map-frame.is-dragging {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .sbl-map-frame {
        height: 500px;
    }
}

.map-caption {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--color-surface) 90%, transparent);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-line-strong);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    pointer-events: none;
}

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

.sbl-map-world {
    position: relative;
    width: 1600px;
    height: 1000px;
    flex-shrink: 0;
    transform-origin: center center;
}

.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, color-mix(in srgb, var(--region, #17704e) 18%, transparent) 0%, transparent 72%);
    pointer-events: none;
}

.island-name {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 2;
    background: color-mix(in srgb, var(--color-surface) 84%, transparent);
    border: 1px solid var(--region, var(--color-primary));
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.island-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--region, var(--color-primary));
}

.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: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.plot-ring {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    padding: 4px;
    background: var(--color-surface);
    border: 2px solid var(--region, var(--color-primary));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transform: rotate(var(--stamp-angle, 0deg));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.plot-pin:hover .plot-ring,
.plot.is-selected .plot-ring {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 0 0 4px var(--color-gold), 0 12px 26px rgba(0, 0, 0, 0.28);
}

.plot-pulse {
    position: absolute;
    top: 42px;
    left: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    border: 2px solid var(--region, var(--color-primary));
    opacity: 0.35;
    pointer-events: none;
}

.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;
    z-index: 4;
}

.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: 9999px;
    padding: 0.18rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.map-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sbl-map-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-line-strong);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}
.sbl-map-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.map-hud {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    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 {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: color-mix(in srgb, var(--color-surface) 92%, transparent);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-line-strong);
    border-radius: 9999px;
    padding: 0.35rem 0.9rem 0.35rem 0.45rem;
}

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

.sbl-meter-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.sbl-meter-text strong {
    font-size: 0.8rem;
}
.sbl-meter-text small {
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

/* Slide-out Dossier inside .sbl-map-frame */
.deed {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(370px, calc(100% - 28px));
    z-index: 35;
    background: var(--color-surface);
    border: 2px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    overflow-y: auto;
    box-shadow: var(--shadow-elevated);
}

.sbl-deed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.sbl-deed-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-line-strong);
    background: var(--color-paper-2);
    color: var(--color-text);
    font-size: 1.15rem;
    cursor: pointer;
}

.sbl-deed-art-wrap {
    max-width: 210px;
    margin: 0 auto 1rem;
}

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

.sbl-deed-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.deed-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

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

.sbl-deed-actions {
    margin-top: 0.5rem;
}

.region-flight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sbl-flight-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-right: 0.25rem;
}

.atlas-footnote {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

/* Stamp & Game Card System */
.stamp-shadow {
    filter: drop-shadow(0 6px 14px rgba(20, 40, 29, 0.14));
}

.stamp {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 8px;
    background: #ffffff;
    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;
}

.swatch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--region, var(--color-primary));
    display: inline-block;
    flex-shrink: 0;
}

.sbl-card {
    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;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.sbl-card:hover {
    transform: translateY(-4px);
    border-color: var(--region, var(--color-primary));
    box-shadow: var(--shadow-elevated);
}

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

.sbl-card__region {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(20, 40, 29, 0.84);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

.sbl-card__new {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 3;
    background: var(--color-gold);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}

.sbl-card__seal {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 3;
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    display: none;
}
.sbl-card.is-claimed .sbl-card__seal,
.game-detail-layout.is-claimed .sbl-card__seal {
    display: inline-block;
}

.sbl-card__claim {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(20, 40, 29, 0.25);
    background: rgba(255, 255, 255, 0.92);
    color: #14281d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.sbl-card__claim:hover {
    transform: scale(1.08);
}
.sbl-card__claim.is-claimed,
.sbl-card.is-claimed .sbl-card__claim {
    background: var(--color-gold);
    color: #ffffff;
    border-color: var(--color-gold);
}

.sbl-card__body {
    padding-top: 0.85rem;
}

.sbl-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}
.sbl-card__title a:hover {
    color: var(--color-primary);
}

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

.vol {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.vol i {
    width: 6px;
    height: 11px;
    border-radius: 2px;
    background: var(--color-line-strong);
    display: inline-block;
}
.vol i.on {
    background: var(--color-gold);
}

/* Dynamic Player Shelf */
.sbl-shelf-section {
    background: var(--color-paper-2);
    border-bottom: 1px solid var(--color-line);
}

.sbl-shelf-tabs {
    margin-bottom: 0 !important;
}

.sbl-shelf-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}

.sbl-shelf-card {
    background: var(--color-surface);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
}

.sbl-shelf-card__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sbl-shelf-card__link .stamp-shadow {
    width: 64px;
    flex-shrink: 0;
}
.sbl-shelf-card__link .stamp {
    padding: 3px;
}

.sbl-shelf-card__meta {
    min-width: 0;
}

.sbl-shelf-card__region {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbl-shelf-card__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}

/* Featured & 4 Conservatories Grid */
.featured-album {
    width: 100%;
}

.sbl-quadrant-grid {
    width: 100%;
}

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

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

.sbl-region-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(20, 40, 29, 0.86);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.28rem 0.68rem;
    border-radius: 9999px;
}

.sbl-region-card-copy {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sbl-region-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 0.25rem;
}

.sbl-region-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.45rem;
    flex: 1;
}

.sbl-region-card-footer {
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-primary);
}

.sbl-arrow-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-paper-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

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

.rail-btn {
    position: absolute;
    top: 42%;
    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-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.rail-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.rail-btn-prev { left: -14px; }
.rail-btn-next { right: -14px; }

/* Mood Cards & Chip Toggles */
.sbl-mood-card {
    padding: 1.65rem;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--region, var(--color-primary));
    transition: transform 0.2s ease;
}
.sbl-mood-card:hover {
    transform: translateY(-4px);
}

.sbl-mood-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--region, var(--color-primary));
    background: var(--color-paper-2);
    padding: 0.22rem 0.6rem;
    border-radius: 9999px;
}

.sbl-mood-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sbl-mood-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
}

.sbl-mood-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-top: 0.15rem;
}

.sbl-mood-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-top: 0.6rem;
    flex: 1;
}

.sbl-mood-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-primary);
}

.sbl-mechanics-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem;
    background: var(--color-surface);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
}

.sbl-mechanics-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.chip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.82rem;
    border-radius: 9999px;
    background: var(--color-surface);
    border: 1px solid var(--color-line-strong);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.chip-toggle:hover,
.chip-toggle.is-active,
.chip-toggle:has(input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
    color: var(--color-primary);
}

.sbl-chip-count {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    background: var(--color-paper-2);
    padding: 0.08rem 0.42rem;
    border-radius: 9999px;
}

/* Principles & Finale */
.sbl-sticky-side {
    position: sticky;
    top: 96px;
}

.sbl-step-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
}

.sbl-panel-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
}

.sbl-panel-text {
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.sbl-finale {
    position: relative;
    background: #102319;
    color: #f3f7f2;
    padding: 5rem 0;
    overflow: hidden;
}

.sbl-finale-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

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

.sbl-finale-copy {
    position: relative;
    z-index: 3;
    max-width: 680px;
    margin: 0 auto;
}

.sbl-finale-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-top: 0.4rem;
}

.sbl-finale-sub {
    font-size: 1.02rem;
    color: rgba(243, 247, 242, 0.85);
    margin-top: 0.65rem;
}

.sbl-finale .btn-outline {
    color: #f3f7f2;
    border-color: rgba(243, 247, 242, 0.45);
}

/* Inner Page Header & Library Filters */
.sbl-page-head {
    background: var(--color-paper-2);
    border-bottom: 1px solid var(--color-line-strong);
    padding: 3rem 0;
}

.sbl-page-head-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 861px) {
    .sbl-page-head-inner {
        grid-template-columns: 1.25fr 0.75fr;
    }
}

.sbl-page-head-copy {
    max-width: 680px;
}

.sbl-page-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    margin-top: 0.3rem;
}

.sbl-page-lead {
    font-size: 1.02rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

.sbl-page-art img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-line-strong);
    box-shadow: var(--shadow-card);
}

.sbl-collections-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.sbl-collection-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: var(--color-surface);
    border: 1px solid var(--color-line-strong);
    font-size: 0.86rem;
    font-weight: 600;
}
.sbl-collection-pill.is-active,
.sbl-collection-pill:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
}

.pill-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.12);
}

.sbl-filter-panel {
    position: relative;
}

.sbl-search-field {
    display: flex;
    align-items: center;
}

.sbl-input,
.sbl-select,
.sbl-textarea {
    width: 100%;
    padding: 0.62rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-line-strong);
    background: var(--color-paper);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.92rem;
}
.sbl-input:focus,
.sbl-select:focus,
.sbl-textarea:focus {
    outline: 2px solid var(--color-primary);
    border-color: var(--color-primary);
}

.sbl-input-search {
    padding-right: 2.5rem;
}

.sbl-kbd-inline {
    position: absolute;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: var(--color-paper-2);
    border: 1px solid var(--color-line);
    pointer-events: none;
}

.sbl-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.sbl-filter-legend {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-right: 0.5rem;
    float: left;
}

.sbl-active-bar {
    border-color: var(--color-line);
}

.sbl-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: var(--color-paper-2);
    border: 1px solid var(--color-primary);
    color: var(--color-text);
    font-size: 0.78rem;
    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);
}

.sbl-badge-subtle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: var(--color-paper-2);
    border: 1px solid var(--color-line-strong);
}

/* Game Detail & Player */
.sbl-breadcrumb a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.game-detail-layout {
    width: 100%;
}

.sbl-dossier-stamp-wrap {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.sbl-dossier-frame {
    padding: 1rem;
    background: var(--color-paper-2);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
}

.game-info-panel {
    width: 100%;
}

.sbl-region-pill {
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    background: var(--color-paper-2);
    border: 1px solid var(--color-line-strong);
}

.sbl-spec-dl {
    padding: 0.5rem 0;
}

.sbl-spec-cell {
    padding: 0.65rem 0.5rem;
}
.sbl-spec-cell dt {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.sbl-spec-cell dd {
    font-weight: 700;
    margin-top: 0.2rem;
}

.sbl-dossier-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    background: var(--color-paper-2);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.sbl-callout {
    background: var(--color-paper-2);
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.sbl-rules-list {
    padding-left: 1.25rem;
    color: var(--color-text-muted);
}

.play-stage {
    background: #0d1b14;
    border: 2px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.play-topbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line-strong);
    padding: 0.75rem 1.15rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sbl-player-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
}

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

/* Profile, Auth & Forms */
.sbl-profile-head {
    width: 100%;
}

.balance-panel {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-paper-2) 100%);
}

.sbl-balance-orb {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(168, 100, 24, 0.16);
    border: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sbl-balance-figure {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.sbl-balance-figure strong {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-gold);
}
.sbl-balance-figure span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.sbl-scene-card,
.sbl-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-line-strong);
    background: var(--color-paper);
    cursor: pointer;
}
.sbl-scene-card:hover,
.sbl-radio-card:hover {
    border-color: var(--color-primary);
}

.sbl-scene-name {
    font-size: 0.95rem;
}

.sbl-swatch-group {
    display: inline-flex;
    gap: 4px;
}

.sbl-swatch-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.sbl-ledger-list {
    max-height: 540px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.sbl-ledger-item {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-paper);
    border: 1px solid var(--color-line);
}

.sbl-amt-pos {
    color: var(--color-primary);
    font-weight: 700;
}

.sbl-ledger-foot {
    color: var(--color-text-muted);
}

.auth-page {
    min-height: 70vh;
}

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

.auth-scene-ribbon {
    height: 135px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-line);
}
.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;
}

.sbl-tab-btn {
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}
.sbl-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(168, 100, 24, 0.14);
    color: var(--color-gold);
    border: 1px solid rgba(168, 100, 24, 0.3);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.sbl-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sbl-label {
    font-size: 0.84rem;
    font-weight: 600;
}

.sbl-check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: var(--color-text-muted);
    cursor: pointer;
}
.sbl-check-row input {
    margin-top: 0.25rem;
}

.sbl-small-link,
.sbl-inline-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sbl-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.sbl-alert-success {
    background: rgba(23, 112, 78, 0.14);
    border: 1px solid var(--color-primary);
}
.sbl-alert-error {
    background: rgba(158, 59, 36, 0.14);
    border: 1px solid var(--color-secondary);
}

/* Prose, TOC, FAQ & Tables */
.sbl-toc {
    position: sticky;
    top: 92px;
}

.sbl-toc-list {
    list-style: none;
    padding: 0;
}
.sbl-toc-list a {
    display: block;
    padding: 0.3rem 0.45rem;
    border-radius: 6px;
    color: var(--color-text-muted);
    font-weight: 500;
}
.sbl-toc-list a:hover {
    background: var(--color-paper-2);
    color: var(--color-primary);
}

.sbl-prose p {
    color: var(--color-text-muted);
}

.sbl-break-panel {
    border: 2px solid var(--color-gold);
}

.sbl-faq-item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.sbl-faq-summary:hover {
    color: var(--color-primary);
}

.sbl-table-wrap {
    overflow-x: auto;
}

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

.sbl-code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: var(--color-paper-2);
    padding: 0.12rem 0.38rem;
    border-radius: 4px;
}

.sbl-pre {
    background: #102319;
    color: #ecf4ef;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Footer, Decoy Newsletter, Mobile Tabbar, Modals, Toast, Consent Banner */
.site-footer {
    width: 100%;
    background: var(--color-paper);
    border-top: 1px solid var(--color-line);
    color: var(--color-text);
    padding: 3.5rem 0 2.5rem;
}

.site-footer-inner {
    width: 100%;
}

.QTqsvVuKoomJypYwKlKC {
    margin-bottom: 3rem;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    background: var(--color-paper-2);
    border: 1px solid var(--color-line-strong);
}

.ATUsJZKFM0PrqxrAU1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
}
@media (min-width: 861px) {
    .ATUsJZKFM0PrqxrAU1 {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.sbl-newsletter-copy {
    max-width: 540px;
}

.sbl-newsletter-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 0.2rem;
}

.sbl-newsletter-sub {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.sbl-newsletter-form-wrap {
    width: 100%;
}

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

.sbl-newsletter-error {
    color: var(--color-secondary);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.sbl-newsletter-toast {
    margin-top: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-primary);
    font-size: 0.84rem;
}

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

.sbl-footer-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

.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.05rem;
    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);
}

/* Mobile Tabbar */
.sbl-mobile-tabbar {
    z-index: 95;
    grid-template-columns: repeat(5, 1fr);
    background: var(--color-surface);
    border-top: 1px solid var(--color-line-strong);
    padding: 0.35rem 0.25rem;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

.sbl-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.25rem 0;
}
.sbl-tabbar-item.is-active {
    color: var(--color-primary);
}
.sbl-tabbar-item em {
    font-style: normal;
}

.sbl-tabbar-survey {
    position: relative;
    top: -12px;
}

.sbl-tabbar-orb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(23, 112, 78, 0.35);
    border: 2px solid var(--color-surface);
}

/* Native Dialogs (Auth & Reminder) */
.sheet {
    border: 2px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    padding: 0;
    width: min(560px, calc(100% - 2rem));
    box-shadow: var(--shadow-elevated);
}
.sheet::backdrop {
    background: rgba(15, 31, 23, 0.68);
    backdrop-filter: blur(4px);
}

.sbl-sheet-inner {
    position: relative;
    overflow: hidden;
}

.sbl-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-line-strong);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.25rem;
    cursor: pointer;
}

.sbl-sheet-body {
    padding: 1.75rem;
}

.sbl-sheet-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
}

.sbl-sheet-sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Toast & Consent Banner */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 120;
    background: #14281d;
    color: #f3f7f2;
    border: 1px solid var(--color-gold);
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-elevated);
}
.toast.is-visible {
    display: block;
}

.sbl-consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 110;
    max-width: 980px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-elevated);
}

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

.sbl-consent-copy {
    flex: 1 1 480px;
}

.sbl-consent-status {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 0.35rem;
}

.sbl-consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}
.sbl-consent-links a {
    text-decoration: underline;
}

.sbl-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Interactive State Classes & Auxiliary Polymorph Classes */
.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;
}

.is-claimed {
    border-color: var(--color-gold);
}

.is-new-claim {
    animation: sblStampPulse 0.6s ease;
}

.is-active {
    border-color: var(--color-primary);
}

.is-open {
    display: block;
}

.sbl-modal-overlay {
    position: fixed;
    inset: 0;
}

.V3N02Ue8n3PuO4g1Gc,
.mnNk0prksIP2nGldrFqW,
.ZnlNZVOp4cS6jYcWXjL,
.OjNtQiFdhjizecFxukKOF,
.yXhiXTtlVS9qYwtPvxy,
.vMTxX1p80LdqsrgmEsR43 {
    position: relative;
}

@keyframes sblStampPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
