/* Veilborn portal — dark supernatural theme (tpl_veilborn) */

.veilborn-portal {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--vb-text, #ede9fe);
}

.veilborn-portal.vb-hero {
    max-width: none;
    background: transparent !important;
    color: #f5f3ff;
    border-radius: 0;
    box-shadow: none;
}

.veilborn-portal.vb-guide .vb-card { border-left: 4px solid var(--vb-mist, #c084fc); }

.vb-card {
    background: rgba(22, 8, 18, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 12px;
    padding: 1.15rem;
    margin-bottom: 1rem;
    color: #ede9fe;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(127, 10, 24, 0.12);
}

.vb-card h2, .vb-card h3 { color: #f5f3ff; margin-top: 0; }

.vb-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

.vb-price { font-size: 1.25rem; font-weight: bold; color: var(--vb-mist, #c084fc); }

.vb-badge {
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.vb-disclaimer { opacity: 0.75; margin-top: 2rem; color: var(--vb-muted, #a5b4fc); }
.vb-done { opacity: 0.55; }

.vb-active { border-left: 4px solid var(--vb-blood-bright, #ef4444); box-shadow: 0 0 24px rgba(220, 38, 38, 0.28); }

.vb-log { list-style: none; padding: 0; }
.vb-log li { padding: 0.35rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.vb-coven-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }

.vb-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin: 1rem 0; }

.vb-stat {
    text-align: center;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
}

.vb-stat strong { display: block; font-size: 1.75rem; color: var(--vb-glow, #22d3ee); }

.vb-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .vb-columns { grid-template-columns: 1fr; } }

.vb-leaderboard { list-style: none; padding: 0; }
.vb-leaderboard li {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: baseline;
}

.vb-leaderboard em { color: var(--vb-muted, #a5b4fc); font-size: .9rem; margin-left: auto; }
.vb-rank { color: var(--vb-mist, #c084fc); font-weight: bold; min-width: 2rem; }

.vb-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.vb-ach-locked { opacity: .45; filter: grayscale(.85); }
.vb-ach-earned { border-color: var(--vb-violet-2, #a78bfa); box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25); }

.vb-tier { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .4rem; border-radius: 3px; }
.vb-tier-bronze { background: #cd7f32; color: #fff; }
.vb-tier-silver { background: #9ea7b3; color: #fff; }
.vb-tier-gold { background: #d4af37; color: #222; }
.vb-tier-veilborne { background: linear-gradient(90deg, #6d28d9, #c084fc); color: #fff; }

.vb-lineage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }

.vb-lineage {
    background: rgba(124, 58, 237, 0.08);
    padding: .75rem;
    border-radius: 8px;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.vb-lineage h3 { font-size: 1rem; margin: 0 0 .35rem; color: var(--vb-mist, #c084fc); }

.vb-tree { margin-left: 1rem; }
.vb-tree ul { margin-left: 1.25rem; }

.vb-nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; justify-content: center; }

.vb-progress { background: rgba(0, 0, 0, 0.35); border-radius: 4px; height: 8px; overflow: hidden; margin: .5rem 0; }
.vb-progress span { display: block; height: 100%; background: linear-gradient(90deg, #6d28d9, #22d3ee); }

.vb-sync-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0; }
@media (max-width: 640px) { .vb-sync-grid { grid-template-columns: 1fr; } }

.vb-sync-code {
    font-family: ui-monospace, monospace;
    font-size: 1.75rem;
    letter-spacing: 0.15em;
    text-align: center;
    color: var(--vb-glow, #22d3ee);
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.vb-sync-spinner {
    width: 32px;
    height: 32px;
    margin: 1rem auto;
    border: 3px solid rgba(167, 139, 250, 0.2);
    border-top-color: var(--vb-violet, #7c3aed);
    border-radius: 50%;
    animation: vb-spin 1s linear infinite;
}

@keyframes vb-spin { to { transform: rotate(360deg); } }

.veilborn-portal table { color: inherit; }
.veilborn-portal table th { color: var(--vb-mist, #c084fc); border-color: rgba(255,255,255,0.1); }
.veilborn-portal table td { border-color: rgba(255,255,255,0.06); }

.veilborn-portal .alert { background: rgba(124, 58, 237, 0.15); border-color: rgba(167, 139, 250, 0.35); color: #f5f3ff; }

/* Page headers (inner pages) */
.vb-page-head {
    position: relative;
    margin: -0.5rem 0 1.75rem;
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 80% at 20% 0%, rgba(124, 58, 237, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(34, 211, 238, 0.08), transparent 50%),
        linear-gradient(135deg, rgba(26, 10, 50, 0.95), rgba(12, 8, 24, 0.98));
    border: 1px solid rgba(167, 139, 250, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.vb-page-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(5, 4, 10, 0.5));
    pointer-events: none;
}

.vb-page-head > * { position: relative; z-index: 1; }

.vb-kicker {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: rgba(124, 58, 237, 0.12);
    color: var(--vb-mist, #c084fc);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vb-page-head h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #f5f3ff;
}

.vb-page-head .lead {
    margin: 0;
    max-width: 640px;
    color: var(--vb-muted, #a5b4fc);
    font-size: 1.05rem;
}

/* Character sheet */
.vb-char-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.5rem;
    align-items: start;
}

@media (max-width: 640px) {
    .vb-char-hero { grid-template-columns: 1fr; }
}

.vb-char-hero h2 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    color: #f5f3ff;
}

.vb-char-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    color: var(--vb-muted, #a5b4fc);
    font-size: 0.92rem;
}

.vb-char-meta strong { color: var(--vb-mist, #c084fc); }

.vb-meters {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
}

.vb-meter label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ede9fe;
    margin-bottom: 0.25rem;
}

.vb-meter-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.vb-meter-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.vb-meter-essence span { background: linear-gradient(90deg, #6d28d9, #c084fc); box-shadow: 0 0 12px rgba(192, 132, 252, 0.45); }
.vb-meter-power span { background: linear-gradient(90deg, #0891b2, #22d3ee); box-shadow: 0 0 12px rgba(34, 211, 238, 0.35); }

.vb-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.vb-sync-hero,
.vb-page-head.vb-sync-hero {
    margin-bottom: 1.5rem;
}

.vb-shop-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.vb-shop-card__thumb {
    aspect-ratio: 16 / 10;
    background-color: var(--vb-void, #05040a);
    background-image: var(--vb-card-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}

.vb-shop-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.15rem 1.25rem;
}

.vb-shop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.2);
}

.vb-shop-card form { margin-top: auto; padding-top: 0.75rem; }

.vb-chronicle-active {
    border-left: 4px solid var(--vb-glow, #22d3ee);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.vb-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--vb-muted, #a5b4fc);
}

.vb-component .btn-secondary {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(167, 139, 250, 0.35);
    color: #ede9fe;
}

.vb-component .btn-secondary:hover {
    background: rgba(124, 58, 237, 0.28);
    border-color: var(--vb-mist, #c084fc);
    color: #fff;
}

/* Homepage — cinematic layout */
.vb-page-home .vb-shell-main {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.vb-page-home .vb-component {
    padding: 0;
}

.vb-home {
    width: 100%;
}

.vb-home-hero {
    position: relative;
    min-height: clamp(560px, calc(100svh - 52px), 900px);
    display: flex;
    align-items: flex-end;
    background-color: var(--vb-void, #05040a);
    background-image: var(--vb-hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    overflow: hidden;
}

.vb-home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(20, 4, 10, 0.94) 0%, rgba(12, 4, 12, 0.62) 45%, rgba(8, 4, 10, 0.35) 100%),
        linear-gradient(0deg, rgba(12, 2, 8, 0.96) 0%, transparent 48%),
        radial-gradient(ellipse 65% 55% at 15% 30%, rgba(220, 38, 38, 0.42), transparent 58%),
        radial-gradient(ellipse 55% 50% at 85% 20%, rgba(196, 30, 58, 0.28), transparent 52%),
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(124, 58, 237, 0.15), transparent 60%);
    pointer-events: none;
}

.vb-home-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.vb-home-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 4px 40px rgba(124, 58, 237, 0.45), 0 0 60px rgba(155, 16, 32, 0.25);
}

.vb-home-hero__lead {
    margin: 0 0 1.75rem;
    max-width: 540px;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    color: rgba(237, 233, 254, 0.88);
}

.vb-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

@media (max-width: 540px) {
    .vb-home-stats { grid-template-columns: repeat(2, 1fr); }
}

.vb-home-stat {
    padding: 0.75rem 0.65rem;
    border-radius: 12px;
    text-align: center;
    background: rgba(28, 8, 16, 0.78);
    border: 1px solid rgba(220, 38, 38, 0.35);
    backdrop-filter: blur(8px);
}

.vb-home-stat strong {
    display: block;
    font-size: 1.35rem;
    color: #fca5a5;
    line-height: 1.2;
    text-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.vb-home-stat span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vb-muted, #a5b4fc);
}

.vb-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.vb-btn-glow {
    background: linear-gradient(135deg, #7f0a18, #c41e3a, #991b1b) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 36px rgba(220, 38, 38, 0.55), 0 0 28px rgba(124, 58, 237, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.vb-btn-glow:hover {
    background: linear-gradient(135deg, #c41e3a, #ef4444, #dc2626) !important;
    box-shadow: 0 0 48px rgba(255, 45, 45, 0.65) !important;
}

.vb-home-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem clamp(1rem, 3vw, 1.75rem) 2rem;
}

.vb-page-home .vb-home-body .vb-features {
    margin-bottom: 2.5rem;
}

.vb-page-home .vb-section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.vb-page-home .vb-feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

@media (max-width: 960px) {
    .vb-page-home .vb-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .vb-page-home .vb-feature-grid { grid-template-columns: 1fr; }
}

.vb-page-home .vb-feature-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: rgba(12, 8, 24, 0.95);
}

.vb-feature-card__media {
    aspect-ratio: 16 / 10;
    background-color: var(--vb-void, #05040a);
    background-image: var(--vb-card-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.vb-feature-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 4, 10, 0.85) 100%);
}

.vb-feature-card__body {
    padding: 1rem 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vb-page-home .vb-feature-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.4rem;
}

.vb-page-home .vb-feature-card p {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.5;
}

.vb-page-home .vb-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.28);
}

.vb-page-home .vb-feature-card:hover .vb-feature-card__media {
    filter: brightness(1.08);
}

/* Join CTA with image — edge-to-edge */
.vb-join-cta--visual {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
    padding: 0;
    text-align: left;
    min-height: 320px;
    border-radius: 0;
}

.vb-home-body .vb-essence-loop,
.vb-home-body .vb-join-cta--visual {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.vb-essence-loop {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1.1fr;
    gap: 0;
    min-height: 320px;
    border-radius: 0;
    overflow: hidden;
    background: rgba(12, 8, 24, 0.92);
    border-top: 1px solid rgba(167, 139, 250, 0.2);
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

@media (max-width: 768px) {
    .vb-essence-loop { grid-template-columns: 1fr; }
}

.vb-essence-loop__media {
    min-height: 260px;
    background-color: var(--vb-void, #05040a);
    background-image: var(--vb-card-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .vb-join-cta--visual { grid-template-columns: 1fr; }
}

.vb-join-cta__media {
    min-height: 220px;
    background-color: var(--vb-void, #05040a);
    background-image: var(--vb-join-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.vb-join-cta__panel {
    position: relative;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vb-join-cta--visual .vb-join-steps {
    margin-left: 0;
    max-width: none;
}

.vb-join-cta--visual .vb-action-grid {
    justify-content: flex-start;
}

/* Legacy homepage (keep for inner pages) */
.vb-page-home .vb-veil-canvas { opacity: 0.22; }
.vb-page-home .vb-veil-glow { opacity: 0.5; }


.vb-hero-rich .vb-hero-emblem {
    display: none;
}

.vb-join-cta {
    position: relative;
    overflow: hidden;
    margin: 2rem 0 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(12, 8, 24, 0.95));
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.vb-section-title {
    text-align: center;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    color: #f5f3ff;
    margin: 0 0 1.25rem;
}

.vb-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.vb-feature-card {
    display: block;
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(18, 10, 32, 0.82);
    border: 1px solid rgba(167, 139, 250, 0.22);
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    text-decoration: none;
}

.vb-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.22);
    color: inherit;
}

.vb-feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #f5f3ff;
}

.vb-feature-card p {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    color: var(--vb-muted, #a5b4fc);
    line-height: 1.55;
}

.vb-feature-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--vb-mist, #c084fc);
}

.vb-kicker-hero {
    margin-bottom: 0.75rem;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 45, 45, 0.65);
}

.vb-join-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.12), transparent 55%);
    pointer-events: none;
}

.vb-join-cta > *:not(.vb-join-glow) { position: relative; z-index: 1; }

.vb-join-cta h2 {
    margin: 0 0 0.65rem;
    color: #f5f3ff;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.vb-join-cta p { color: var(--vb-muted, #a5b4fc); max-width: 560px; margin: 0 auto 1rem; }

.vb-join-steps {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.25rem;
    max-width: 420px;
    text-align: left;
    color: #ede9fe;
}

.vb-join-steps li { padding: 0.35rem 0; }

.vb-guest-gate {
    text-align: center;
    padding: 2rem 1.25rem;
}

.vb-guest-gate img { margin-bottom: 1rem; }

.vb-page-head-icon {
    float: right;
    margin-left: 1rem;
    opacity: 0.85;
    filter: drop-shadow(0 4px 16px rgba(124, 58, 237, 0.4));
}

@media (max-width: 640px) {
    .vb-page-head-icon { float: none; display: block; margin: 0 0 0.75rem; }
}

.vb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

/* Full viewport width — no side gutters on cinematic imagery */
.vb-full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

body.vb-page-portal .vb-shell.vb-shell-main,
body.vb-page-home .vb-shell.vb-shell-main {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.vb-hero-pos {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.vb-hero-pos .vb-full-bleed,
.vb-hero-pos .vb-page-banner,
.vb-hero-pos .vb-home-hero {
    margin-bottom: 0;
}

/* Portal pages — full-bleed cinematic theme */
.vb-page-portal .vb-shell-main {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.vb-page-portal .vb-component {
    padding: 0;
    max-width: none;
    width: 100%;
}

.vb-portal-page {
    width: 100%;
    overflow-x: clip;
}

.vb-page-banner {
    position: relative;
    min-height: clamp(300px, 45vh, 560px);
    display: flex;
    align-items: flex-end;
    margin: 0;
    background-color: var(--vb-void, #05040a);
    background-image: var(--vb-banner-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.vb-page-banner__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(5, 4, 10, 0.9) 0%, rgba(5, 4, 10, 0.5) 50%, rgba(5, 4, 10, 0.35) 100%),
        linear-gradient(0deg, rgba(5, 4, 10, 0.92) 0%, transparent 50%);
    pointer-events: none;
}

.vb-page-banner__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem);
}

.vb-page-banner h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    color: #fff;
    text-shadow: 0 4px 30px rgba(124, 58, 237, 0.4);
}

.vb-page-banner .lead {
    margin: 0;
    max-width: 640px;
    color: rgba(237, 233, 254, 0.88);
    font-size: 1.02rem;
}

.vb-portal-page__body {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem) 2rem;
}

.vb-portal-page__body .veilborn-portal {
    max-width: none;
    padding: 0;
}

.vb-section-lead {
    margin: -0.75rem 0 1.25rem;
    max-width: 680px;
    color: var(--vb-muted, #a5b4fc);
    line-height: 1.6;
}

/* Homepage extra sections */
.vb-home-section {
    margin-bottom: 2.75rem;
}

.vb-seo-intro {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(12, 8, 24, 0.92), rgba(30, 15, 45, 0.88));
    border: 1px solid rgba(167, 139, 250, 0.22);
}

.vb-seo-intro__body {
    max-width: 820px;
    line-height: 1.75;
    color: var(--vb-muted, #c4b5fd);
}

.vb-seo-intro__body p {
    margin-bottom: 1rem;
}

.vb-seo-intro__links {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

.vb-seo-intro__links a {
    color: var(--vb-accent, #a78bfa);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vb-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .vb-steps-grid { grid-template-columns: 1fr; }
}

.vb-step-card {
    display: block;
    padding: 1.35rem 1.15rem;
    border-radius: 14px;
    background: rgba(12, 8, 24, 0.88);
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.vb-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.22);
    color: inherit;
}

.vb-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.vb-step-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    color: #f5f3ff;
}

.vb-step-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--vb-muted, #a5b4fc);
    line-height: 1.55;
}

.vb-essence-loop__body {
    padding: 1.5rem 1.35rem;
}

.vb-essence-loop__body h2 {
    margin: 0 0 0.65rem;
    color: #f5f3ff;
}

.vb-essence-states {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.vb-essence-states li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    color: #ede9fe;
}

.vb-essence-ok strong { color: #86efac; }
.vb-essence-warn strong { color: #fcd34d; }
.vb-essence-danger strong { color: #f97316; }
.vb-essence-faded strong { color: #94a3b8; }

.vb-essence-pvp {
    font-size: 0.92rem;
    color: var(--vb-muted, #a5b4fc);
    margin-bottom: 1rem;
}

.vb-compare-table-wrap {
    display: none;
}

/* Why play — persuasive hooks */
.vb-why-play {
    margin-bottom: 3rem;
}

.vb-section-title--blood {
    color: #fca5a5;
    text-shadow: 0 0 24px var(--vb-blood-glow, rgba(155, 16, 32, 0.55));
}

.vb-why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 720px) {
    .vb-why-grid { grid-template-columns: 1fr; }
}

.vb-why-card {
    padding: 1.25rem 1.15rem;
    border-radius: 14px;
    background: rgba(12, 8, 24, 0.88);
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-left: 4px solid var(--vb-violet, #7c3aed);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vb-why-card:hover {
    border-left-color: var(--vb-blood-bright, #dc2626);
    box-shadow: 0 8px 32px rgba(155, 16, 32, 0.2);
}

.vb-why-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #fef2f2;
}

.vb-why-card p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(237, 233, 254, 0.82);
    line-height: 1.55;
}

.vb-why-blood { border-left-color: var(--vb-blood-bright, #dc2626); }
.vb-why-chronicle { border-left-color: var(--vb-mist, #c084fc); }
.vb-why-pvp { border-left-color: #f97316; }
.vb-why-dynasty { border-left-color: var(--vb-glow, #22d3ee); }

.vb-why-cta {
    text-align: center;
    margin-top: 2rem;
}

.vb-btn-blood {
    background: linear-gradient(135deg, var(--vb-blood-dark, #450a0a), var(--vb-blood, #9b1020)) !important;
    border-color: var(--vb-blood-bright, #dc2626) !important;
    box-shadow: 0 0 32px var(--vb-blood-glow, rgba(155, 16, 32, 0.55)), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.vb-btn-blood:hover {
    background: linear-gradient(135deg, var(--vb-blood, #9b1020), var(--vb-blood-bright, #dc2626)) !important;
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.65) !important;
}

.vb-home-tagline {
    text-align: center;
    opacity: 0.65;
    margin-top: 1.5rem;
    color: var(--vb-muted, #a5b4fc);
}

.vb-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(12, 8, 24, 0.92);
}

.vb-compare-table th,
.vb-compare-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vb-compare-table th {
    color: var(--vb-mist, #c084fc);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vb-compare-yes {
    text-align: center;
    color: var(--vb-glow, #22d3ee);
    font-weight: 700;
}

.vb-guest-gate--visual {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

@media (max-width: 580px) {
    .vb-guest-gate--visual { grid-template-columns: 1fr; }
}

.vb-guest-gate__thumb {
    min-height: 160px;
    background-color: var(--vb-void, #05040a);
    background-image: var(--vb-card-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.vb-guest-gate__body {
    padding: 1.5rem 1.25rem;
}

.vb-portal-page__body .vb-card {
    border-radius: 14px;
}

.vb-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vb-roster-card {
    background: rgba(12, 8, 24, 0.72);
    border: 1px solid var(--vb-border, rgba(192, 132, 252, 0.22));
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.vb-roster-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--vb-light, #f8fafc);
}

.vb-roster-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vb-mist, #c084fc);
}

.vb-roster-stats {
    font-size: 0.9rem;
    color: var(--vb-muted, #94a3b8);
}

/* Onboarding checklist */
.vb-onboard-checklist {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.45), rgba(12, 8, 24, 0.85));
}

.vb-onboard-checklist__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.vb-onboard-checklist__head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.vb-onboard-pct {
    font-weight: 800;
    color: var(--vb-glow, #22d3ee);
}

.vb-onboard-lead {
    color: var(--vb-muted, #94a3b8);
    margin-bottom: 0.75rem;
}

.vb-onboard-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 1rem;
}

.vb-onboard-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    border-radius: inherit;
}

.vb-onboard-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.vb-onboard-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
}

.vb-onboard-step.is-done {
    color: var(--vb-muted, #94a3b8);
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.5);
}

.vb-onboard-step__icon {
    width: 1.25rem;
    text-align: center;
    color: var(--vb-glow, #22d3ee);
}

/* Rankings podium */
.vb-showcase-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.vb-podium-card {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--vb-border, rgba(192, 132, 252, 0.22));
    background: rgba(12, 8, 24, 0.72);
}

.vb-podium-card--1 { border-color: rgba(250, 204, 21, 0.45); box-shadow: 0 0 24px rgba(250, 204, 21, 0.12); }
.vb-podium-card--2 { border-color: rgba(203, 213, 225, 0.35); }
.vb-podium-card--3 { border-color: rgba(180, 83, 9, 0.35); }

.vb-podium-rank {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vb-mist, #c084fc);
    margin-bottom: 0.35rem;
}

.vb-roster-card--Nocturne .vb-roster-card__lineage { background: linear-gradient(90deg, #312e81, transparent); }
.vb-roster-card--Veiled .vb-roster-card__lineage { background: linear-gradient(90deg, #4c1d95, transparent); }
.vb-roster-card__lineage {
    height: 3px;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

/* Shop */
.vb-shop-balance { max-width: 280px; margin-bottom: 1.25rem; }
.vb-shop-card__badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.vb-badge--cosmetic { background: rgba(167, 139, 250, 0.2); color: #e9d5ff; }
.vb-badge--gameplay { background: rgba(34, 211, 238, 0.15); color: #a5f3fc; }
.vb-shop-toolbar { margin-bottom: 1.25rem; padding: 1rem 1.15rem; }
.vb-shop-toolbar__count { margin: 0 0 0.75rem; font-size: 0.92rem; opacity: 0.85; }
.vb-shop-toolbar__search { display: block; margin-bottom: 0.85rem; }
.vb-shop-toolbar__search input {
    width: 100%;
    max-width: 420px;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.25);
    color: inherit;
}
.vb-shop-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vb-shop-filter {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: inherit;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    cursor: pointer;
}
.vb-shop-filter.is-active,
.vb-shop-filter:hover {
    background: rgba(167, 139, 250, 0.22);
    border-color: rgba(167, 139, 250, 0.45);
}
.vb-shop-empty { text-align: center; opacity: 0.8; margin-top: 1rem; }
.vb-hidden { display: none !important; }

/* Guide page */
.vb-guide-badge {
    border-left: 4px solid var(--vb-blood-bright, #ef4444);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.vb-guide-toc ol {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    columns: 2;
    column-gap: 2rem;
}
@media (max-width: 640px) {
    .vb-guide-toc ol { columns: 1; }
}
.vb-guide-toc a {
    color: var(--vb-violet-2, #a78bfa);
    text-decoration: none;
}
.vb-guide-toc a:hover { text-decoration: underline; }
.vb-guide-section { margin-bottom: 1rem; }
.vb-guide-section h2 { margin-top: 0; }
.vb-guide-body ul, .vb-guide-body ol { padding-left: 1.25rem; }
.vb-guide-body pre {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
}
.vb-guide-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.vb-guide-body th, .vb-guide-body td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.45rem 0.65rem;
    text-align: left;
}
.vb-faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.vb-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 0, 0, 0.2);
}
.vb-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.35rem 0;
}
.vb-faq-answer {
    padding: 0.35rem 0 0.65rem;
    opacity: 0.92;
    font-size: 0.95rem;
}
.vb-guide-faq--adv { border-left: 3px solid rgba(34, 211, 238, 0.45); }
.vb-guide-dev { border-left: 3px solid rgba(167, 139, 250, 0.5); }
.vb-guide-dev-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vb-guide-dev-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.vb-guide-dev-block h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.vb-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.vb-veilline-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 640px) {
    .vb-veilline-summary { grid-template-columns: 1fr; }
}

.vb-veilline-summary__stats {
    display: flex;
    gap: 1rem;
}

.vb-stat--inline {
    text-align: center;
    min-width: 80px;
}

.vb-season-countdown {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    border-color: rgba(239, 68, 68, 0.35);
}

.vb-lazy-media {
    content-visibility: auto;
}

/* Legal documents (terms, privacy, rules) */
.vb-legal-doc__updated {
    margin: 0 0 1.25rem;
    color: var(--vb-muted, #a78bfa);
    text-align: center;
}

.vb-legal-doc__section + .vb-legal-doc__section {
    margin-top: 0.75rem;
}

.vb-legal-doc__body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(245, 243, 255, 0.92);
}

.vb-legal-doc__body p {
    margin: 0 0 0.85rem;
}

.vb-legal-doc__body ul {
    margin: 0 0 0.85rem 1.1rem;
    padding: 0;
}

.vb-legal-doc__body li {
    margin-bottom: 0.45rem;
}

.vb-legal-doc__body a {
    color: var(--vb-mist, #c084fc);
}

.vb-legal-doc__body code {
    font-size: 0.88em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
}

.vb-legal-hub-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.vb-legal-hub-links a {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #f5f3ff;
    font-weight: 600;
    text-decoration: none;
}

.vb-legal-hub-links a:hover {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fff;
}

