:root {
    --pub-bg: #05070d;
    --pub-bg-elevated: #0a0f18;
    --pub-bg-deep: #030508;
    --pub-noise-opacity: 0.042;
    --pub-surface: rgba(12, 16, 28, 0.72);
    --pub-surface-hi: rgba(18, 24, 40, 0.85);
    --pub-border: rgba(114, 177, 218, 0.16);
    --pub-border-hi: rgba(114, 177, 218, 0.3);
    --pub-text: #f4f7fb;
    --pub-muted: #a3b4cc;
    --pub-muted-hi: #b8c8dc;
    --pub-brand: #3d6f8f;
    --pub-brand-dim: #4a85a8;
    --pub-brand-rgb: 61, 111, 143;
    --pub-accent: #72b1da;
    --pub-accent-soft: #9ccbe8;
    --pub-accent-dim: #5a9bb8;
    --pub-accent-rgb: 114, 177, 218;
    --pub-on-brand: #ffffff;
    --pub-on-accent: #ffffff;
    --pub-radius: 14px;
    --pub-radius-lg: 20px;
    --pub-font-ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --pub-font-en: 'Outfit', system-ui, sans-serif;
    --pub-glow: 0 0 48px rgba(var(--pub-accent-rgb), 0.18);
    --pub-glow-sm: 0 0 24px rgba(var(--pub-accent-rgb), 0.12);
}

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

html { scroll-behavior: smooth; }

body.public-site {
    font-family: var(--pub-font-ar);
    color: var(--pub-text);
    background-color: var(--pub-bg-deep);
    background-image: linear-gradient(
        180deg,
        #080e18 0%,
        var(--pub-bg) 46%,
        #040609 100%
    );
    line-height: 1.65;
    overflow-x: hidden;
    font-variant-numeric: lining-nums;
}

body.public-site::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(118deg, rgba(16, 32, 58, 0.32) 0%, transparent 44%),
        linear-gradient(248deg, rgba(114, 177, 218, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, transparent 68%, rgba(0, 32, 72, 0.12) 100%);
}

body.public-site::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: var(--pub-noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    mix-blend-mode: soft-light;
}

.hidden { display: none !important; }

/* ── Loading ── */
.rt-loader {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(114, 177, 218, 0.18);
    border-top-color: #72b1da;
    border-radius: 50%;
    animation: rt-loader-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.rt-loader--sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.rt-loader--lg {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

.rt-loader--intro {
    margin-top: 0.85rem;
}

@keyframes rt-loader-spin {
    to { transform: rotate(360deg); }
}

.rt-load-zone {
    position: relative;
}

.rt-load-zone.is-loading > *:not(.rt-load-overlay) {
    opacity: 0.28;
    pointer-events: none;
    user-select: none;
}

.rt-load-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 72px;
    pointer-events: none;
}

.rt-load-text {
    font-size: 0.8rem;
    color: var(--pub-muted);
}

.rt-load-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    min-height: 1.25rem;
    vertical-align: middle;
}

.rt-auth-loading {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Page intro & motion ── */
body.pub-loading {
    overflow: hidden;
}

body.pub-page-ready {
    overflow-x: hidden;
}

.pub-intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    pointer-events: none;
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s;
}

.pub-intro.is-done {
    opacity: 0;
    visibility: hidden;
}

.pub-intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    animation: pub-intro-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pub-intro-mark {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: none;
    background: transparent;
}

.pub-intro-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    border: none;
}

.pub-intro-logo:not(.hidden) + .pub-intro-fallback { display: none; }

.pub-intro-fallback {
    font-family: var(--pub-font-en);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: #72b1da;
}

.pub-intro-name {
    margin: 0;
    font-family: var(--pub-font-en);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pub-text);
}

.pub-intro-line {
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #72b1da, transparent);
    animation: pub-intro-line 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

@keyframes pub-intro-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pub-intro-line {
    to { width: 120px; }
}

.pub-nav {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

body.pub-loading .pub-nav {
    transform: translateY(-110%);
    opacity: 0;
}

body.pub-page-ready .pub-nav {
    transform: translateY(0);
    opacity: 1;
    animation: pub-nav-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pub-hero-bg {
    transform: scale(1.06);
}

body.pub-loading .pub-hero-bg {
    transform: scale(1.06);
}

body.pub-page-ready .pub-hero-bg {
    transform: scale(1);
    animation: pub-hero-bg-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.pub-page-ready .pub-hero:not(.has-video) .pub-hero-bg {
    animation: pub-hero-kenburns 24s ease-out 2s forwards;
}

@keyframes pub-hero-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.pub-hero-reveal {
    animation: pub-hero-reveal-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.35s + (var(--hero-delay, 0) * 0.1s));
}

@keyframes pub-nav-in {
    from {
        transform: translateY(-110%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pub-hero-bg-in {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@keyframes pub-hero-reveal-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.pub-page-ready .pub-hero-reveal {
    opacity: 1;
    transform: translateY(0);
}

.pub-scroll-hint {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--pub-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.pub-scroll-hint:hover {
    color: #72b1da;
}

.pub-scroll-hint-mouse {
    width: 22px;
    height: 34px;
    border-radius: 12px;
    border: 2px solid rgba(114, 177, 218, 0.35);
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.pub-scroll-hint-wheel {
    width: 3px;
    height: 7px;
    border-radius: 3px;
    background: #72b1da;
    animation: pub-scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes pub-scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0; transform: translateY(0); }
}

.pub-reveal-section {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.pub-reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .pub-intro { display: none !important; }
    body.pub-loading { overflow: auto; }
    .pub-nav,
    .pub-hero-bg,
    .pub-hero-reveal,
    .pub-reveal-section {
        animation: none !important;
        opacity: 1;
        transform: none;
        transition: none;
    }
    .pub-hero:not(.has-video) .pub-hero-bg,
    .pub-hero-video {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
    .pub-scroll-hint-wheel {
        animation: none;
    }
    body.pub-loading .pub-nav {
        transform: none;
        opacity: 1;
    }
}

.pub-container {
    width: min(1140px, calc(100% - 2rem));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* ── Nav ── */
.pub-nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    pointer-events: none;
}

.pub-nav-shell {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.pub-nav.scrolled .pub-nav-shell {
    background: rgba(0, 0, 0, 0.98);
    border-bottom-color: rgba(114, 177, 218, 0.14);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.pub-nav-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 56px;
    width: min(1280px, calc(100% - 2.5rem));
    margin-inline: auto;
    padding: 0;
}

.pub-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--pub-text);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.pub-brand-mark {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.pub-brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border: none;
}

.pub-brand-logo:not(.hidden) + .pub-brand-fallback { display: none; }

.pub-brand-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-family: var(--pub-font-en);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--pub-on-brand);
    background: linear-gradient(135deg, var(--pub-brand) 0%, var(--pub-brand-dim) 100%);
    border: none;
}

.pub-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.15;
    min-width: 0;
}

.pub-brand-name {
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    font-family: var(--pub-font-en);
    text-transform: uppercase;
    white-space: nowrap;
}

.pub-brand-sub {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #72b1da;
    font-family: var(--pub-font-en);
}

.pub-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
}

.pub-nav-link {
    color: rgba(244, 247, 251, 0.72);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    transition: color 0.18s;
}

.pub-nav-link:hover {
    color: var(--pub-text);
    background: transparent;
}

.pub-nav-link.is-active {
    color: #72b1da;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
}

.pub-nav-link.is-active::after {
    content: none;
}

.pub-nav-end {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.pub-nav-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--pub-accent-rgb), 0.05);
    border: 1px solid rgba(var(--pub-accent-rgb), 0.12);
    font-size: 0.72rem;
    font-weight: 500;
    font-family: var(--pub-font-en);
    color: var(--pub-muted);
    white-space: nowrap;
}

.pub-nav-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
}

.pub-nav-live.is-online .pub-nav-live-dot {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}

.pub-nav-live.is-online {
    color: var(--pub-accent-soft);
    border-color: rgba(74, 222, 128, 0.22);
    background: rgba(74, 222, 128, 0.06);
}

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

.pub-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 8px;
    color: rgba(244, 247, 251, 0.78);
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.18s, background 0.18s;
}

.pub-nav-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    flex: none;
}

.pub-nav-icon:hover {
    color: #72b1da;
    background: rgba(114, 177, 218, 0.08);
    border: none;
    transform: none;
    box-shadow: none;
}

/* Profile icon + dropdown */
.pub-profile-menu {
    position: relative;
}

.pub-profile-btn {
    overflow: hidden;
}

.pub-profile-btn--guest {
    text-decoration: none;
}

.pub-profile-btn-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.pub-profile-menu.is-open .pub-profile-btn,
.pub-profile-btn:hover {
    color: #72b1da;
    background: rgba(114, 177, 218, 0.08);
}

.pub-profile-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    inset-inline-end: 0;
    min-width: 210px;
    padding: 0.35rem 0;
    margin: 0;
    background: #151a24;
    border: 1px solid rgba(114, 177, 218, 0.16);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    z-index: 130;
}

.pub-profile-dropdown-head {
    margin: 0;
    padding: 0.7rem 1rem 0.65rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pub-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.62rem 1rem;
    border: none;
    background: transparent;
    color: rgba(244, 247, 251, 0.9);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    text-align: start;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.pub-profile-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

.pub-profile-dropdown-item:hover {
    background: rgba(114, 177, 218, 0.08);
    color: #a8d4f8;
}

.pub-profile-dropdown-item--danger {
    color: #e8a0a8;
}

.pub-profile-dropdown-item--danger:hover {
    color: #f4b8be;
    background: rgba(232, 120, 130, 0.1);
}

.pub-profile-dropdown-divider {
    height: 1px;
    margin: 0.3rem 0;
    background: rgba(255, 255, 255, 0.06);
}

.pub-profile-drawer-auth {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.pub-profile-drawer-name {
    margin: 0 0 0.15rem;
    padding: 0.35rem 0.15rem 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pub-text);
    border-bottom: 1px solid var(--pub-border);
}

.pub-btn--logout {
    background: transparent;
    color: #e8a0a8;
    border-color: rgba(232, 120, 130, 0.35);
}

.pub-btn--logout:hover {
    color: #f4b8be;
    background: rgba(232, 120, 130, 0.1);
    border-color: rgba(232, 120, 130, 0.5);
}

/* ── Language switcher ── */
.pub-lang {
    position: relative;
}

.pub-lang-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    min-width: 168px;
    padding: 0.45rem;
    margin: 0;
    background: #12161f;
    border: 1px solid rgba(var(--pub-accent-rgb), 0.14);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 120;
}

.pub-lang-option {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--pub-text);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.pub-lang-option:hover {
    background: rgba(var(--pub-accent-rgb), 0.08);
    color: var(--pub-accent-soft);
}

.pub-lang-option.is-active {
    color: var(--pub-accent);
    font-weight: 600;
}

.pub-lang.is-open .pub-lang-btn {
    color: var(--pub-accent);
    background: transparent;
    border: none;
}

.pub-lang-mobile {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem 0 0.85rem;
    border-bottom: 1px solid var(--pub-border);
    margin-bottom: 0.65rem;
}

.pub-lang-mobile .pub-lang-option {
    width: auto;
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    border: 1px solid var(--pub-border);
    border-radius: 999px;
}

.pub-lang-mobile .pub-lang-option.is-active {
    border-color: rgba(var(--pub-accent-rgb), 0.4);
    background: rgba(var(--pub-accent-rgb), 0.1);
}

.pub-nav-drawer {
    display: none;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.58rem 1.15rem;
    border-radius: var(--pub-radius);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.pub-btn:hover,
.pub-btn:active,
.pub-btn:focus-visible {
    transform: none;
    box-shadow: none;
}

.pub-btn--store:hover,
.pub-nav-icon:hover,
.pub-profile-dropdown-item:hover {
    transform: none;
}

.pub-btn--store {
    background: #72b1da;
    color: #0a1018;
    border-color: transparent;
    border-radius: 999px;
    padding: 0.48rem 1.05rem;
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 36px;
    box-shadow: none;
}

.pub-btn--store svg {
    width: 16px;
    height: 16px;
}

.pub-btn--store:hover,
.pub-btn--store:active,
.pub-btn--store:focus-visible {
    background: #8ac4e6;
    box-shadow: none;
    transform: none;
}

.pub-btn--login {
    background: transparent;
    color: var(--pub-accent-soft);
    border-color: rgba(var(--pub-accent-rgb), 0.45);
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    font-size: 0.84rem;
    box-shadow: none;
}

.pub-btn--nav-outline {
    background: transparent;
    color: var(--pub-accent-soft);
    border: 1.5px solid rgba(var(--pub-accent-rgb), 0.42);
    box-shadow: none;
}

.pub-btn--nav-outline:hover {
    background: rgba(var(--pub-accent-rgb), 0.08);
    box-shadow: none;
    border-color: rgba(var(--pub-accent-rgb), 0.55);
}

.pub-btn--login:hover {
    color: var(--pub-text);
    box-shadow: none;
    border-color: rgba(var(--pub-accent-rgb), 0.65);
    background: rgba(var(--pub-brand-rgb), 0.2);
}

.pub-btn--login-full { width: 100%; }

.pub-btn--primary {
    background: linear-gradient(135deg, var(--pub-brand) 0%, var(--pub-brand-dim) 100%);
    color: var(--pub-on-brand);
    box-shadow: none;
    font-weight: 700;
}

.pub-btn--primary:hover,
.pub-btn--primary:active,
.pub-btn--primary:focus-visible {
    box-shadow: none;
    transform: none;
}

.pub-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--pub-text);
    border-color: var(--pub-border);
}

.pub-btn--ghost:hover {
    border-color: var(--pub-border-hi);
    background: rgba(var(--pub-accent-rgb), 0.06);
}

.pub-btn--outline {
    background: transparent;
    color: var(--pub-accent);
    border-color: rgba(var(--pub-accent-rgb), 0.35);
}

.pub-btn--outline:hover {
    background: rgba(var(--pub-accent-rgb), 0.1);
}

.pub-btn--lg { padding: 0.82rem 1.65rem; font-size: 0.95rem; border-radius: var(--pub-radius); }

.pub-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(var(--pub-accent-rgb), 0.1);
    border: 1px solid rgba(var(--pub-accent-rgb), 0.22);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s;
}

.pub-menu-toggle:hover {
    background: rgba(var(--pub-accent-rgb), 0.18);
    border-color: rgba(var(--pub-accent-rgb), 0.35);
}

.pub-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    margin-inline: auto;
    background: var(--pub-accent);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.pub-nav.nav-open .pub-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.pub-nav.nav-open .pub-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.pub-nav.nav-open .pub-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.pub-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8.5rem 1.5rem 5rem;
    overflow: hidden;
}

.pub-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(5, 7, 13, 0.4) 0%, rgba(5, 7, 13, 0.88) 62%, var(--pub-bg) 100%),
        linear-gradient(180deg, rgba(5, 7, 13, 0.32) 0%, rgba(5, 7, 13, 0.82) 64%, #05070d 100%),
        url('/videos/hero-poster.jpg');
    background-size: cover;
    background-position: center;
}

.pub-hero.has-video .pub-hero-bg {
    opacity: 0;
    pointer-events: none;
}

.pub-hero.has-video.is-playing .pub-hero-bg {
    opacity: 0;
}

.pub-hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    opacity: 1;
    display: block;
    background: #05070d;
}

.pub-hero.has-video .pub-hero-bg::after {
    opacity: 0.55;
}

.pub-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 115% 85% at 50% 38%, transparent 42%, rgba(0, 0, 0, 0.42) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 28%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
}

.pub-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(4, 6, 10, 0.2) 0%, rgba(4, 6, 10, 0.48) 100%),
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, 0.28), transparent 62%);
}

.pub-hero.has-video .pub-hero-overlay {
    background:
        linear-gradient(180deg, rgba(5, 7, 13, 0.12) 0%, rgba(5, 7, 13, 0.5) 72%, var(--pub-bg) 100%),
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, 0.15), transparent 60%);
}

.pub-hero-glow {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 50%;
    top: auto;
    bottom: -8%;
    left: 0;
    transform: none;
    border-radius: 0;
    background: linear-gradient(to top, rgba(114, 177, 218, 0.16) 0%, rgba(114, 177, 218, 0.04) 42%, transparent 100%);
    pointer-events: none;
    filter: blur(24px);
    opacity: 0.75;
}

.pub-hero-content {
    position: relative;
    z-index: 3;
    max-width: 780px;
}

.pub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(var(--pub-accent-rgb), 0.12);
    border: 1px solid rgba(var(--pub-accent-rgb), 0.3);
    color: var(--pub-accent);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--pub-glow-sm);
}

.pub-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pub-accent);
    box-shadow: 0 0 8px var(--pub-accent);
}

.pub-hero-title {
    font-size: clamp(2.75rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
    color: var(--pub-text);
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.pub-hero-desc {
    color: var(--pub-muted);
    font-size: 1.02rem;
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.pub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.pub-hero-social {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
}

.pub-social {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0.25rem;
    flex-shrink: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    border: none;
    color: var(--pub-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.pub-social svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
}

.pub-nav-actions .pub-btn svg,
.pub-btn--store svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: none;
}

.pub-nav-actions .pub-btn:hover {
    transform: none;
}

.pub-btn svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: none;
}

.pub-social:hover {
    color: var(--pub-accent);
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ── Stats ── */
.pub-stats {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--pub-border);
}

.pub-stats-head { margin-bottom: 2.25rem; }

.pub-stats-panel {
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    background: var(--pub-surface);
    overflow: hidden;
}

.pub-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.pub-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.35rem 1.25rem 1.25rem;
    border-inline-end: 1px solid var(--pub-border);
    text-align: start;
    overflow: hidden;
    transition: background 0.18s;
}

.pub-stat-card:last-child { border-inline-end: none; }

.pub-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2px;
    background: var(--pub-accent);
    opacity: 0;
    transition: opacity 0.18s;
}

.pub-stat-card:hover { background: rgba(var(--pub-accent-rgb), 0.04); }
.pub-stat-card:hover::after { opacity: 1; }

.pub-stat-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.pub-stat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--pub-accent-rgb), 0.1);
    border: 1px solid rgba(var(--pub-accent-rgb), 0.18);
    color: var(--pub-accent);
    flex-shrink: 0;
}

.pub-stat-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: none;
}

.pub-stat-icon--discord svg { width: 20px; height: 20px; }

.pub-stat-icon--status {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.2);
}

.pub-stat-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
    transition: background 0.2s, box-shadow 0.2s;
}

.pub-stat-card--status.is-online .pub-stat-icon--status {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.25);
}

.pub-stat-card--status.is-online .pub-stat-status-dot {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}

.pub-stat-card--status.is-online .pub-stat-value { color: #86efac; }

.pub-stat-card--status.is-offline .pub-stat-value { color: #94a3b8; }

.pub-stat-body { flex: 1; min-width: 0; }

.pub-stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--pub-muted);
    margin-bottom: 0.35rem;
}

.pub-stat-value {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    font-family: var(--pub-font-en);
    color: var(--pub-accent-soft);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.pub-stat-value--sm { font-size: 1.15rem; font-family: var(--pub-font-ar); font-weight: 700; }

.pub-stat-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--pub-muted-hi);
    margin-top: 0.35rem;
}

.pub-stat-meter {
    height: 3px;
    border-radius: 999px;
    background: rgba(var(--pub-accent-rgb), 0.1);
    overflow: hidden;
    margin-top: auto;
}

.pub-stat-meter span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: var(--pub-accent);
    transition: width 0.4s ease;
}

.pub-stat-card--discord:hover .pub-stat-hint { color: var(--pub-accent-soft); }

/* ── About ── */
.pub-about {
    padding: 4.5rem 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--pub-border);
}

.pub-about-header {
    max-width: 640px;
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--pub-border);
}

.pub-about-header h2,
.pub-join-intro h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.pub-about-desc {
    color: var(--pub-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-top: 0.85rem;
    max-width: 52ch;
}

.pub-about-body {
    display: grid;
    grid-template-columns: 1.4fr minmax(240px, 0.75fr);
    gap: 3rem;
    align-items: start;
}

.pub-about-list {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.pub-about-item {
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--pub-border);
}

.pub-about-item:first-child { padding-top: 0; }

.pub-about-item dt {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pub-text);
}

.pub-about-item dd {
    margin: 0;
    font-size: 0.86rem;
    color: var(--pub-muted-hi);
    line-height: 1.65;
    max-width: 48ch;
}

.pub-about-side {
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid var(--pub-border);
}

.pub-about-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.pub-about-points li {
    font-size: 0.86rem;
    color: var(--pub-text);
    line-height: 1.55;
    padding-inline-start: 0.85rem;
    border-inline-start: 2px solid var(--pub-accent);
}

.pub-about-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pub-btn--flat {
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.pub-btn--flat:hover {
    transform: none;
    box-shadow: none;
}

.pub-btn--flat.pub-btn--primary:hover {
    filter: brightness(1.06);
}

/* ── Join ── */
.pub-join {
    padding: 4.5rem 0 5rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--pub-border);
}

.pub-join-wrap {
    display: grid;
    gap: 2rem;
}

.pub-join-intro {
    max-width: 520px;
}

.pub-join-desc {
    color: var(--pub-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-top: 0.65rem;
}

.pub-join-body {
    display: grid;
    grid-template-columns: 1.2fr minmax(260px, 0.8fr);
    gap: 2.5rem;
    align-items: start;
    padding-top: 1.75rem;
    border-top: 1px solid var(--pub-border);
}

.pub-join-flow {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.pub-join-flow-item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--pub-border);
}

.pub-join-flow-item:first-child { padding-top: 0; }
.pub-join-flow-item:last-child { border-bottom: none; padding-bottom: 0; }

.pub-join-flow-index {
    font-family: var(--pub-font-en);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pub-accent);
    padding-top: 0.15rem;
}

.pub-join-flow-content strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--pub-text);
}

.pub-join-flow-content p {
    font-size: 0.84rem;
    color: var(--pub-muted);
    line-height: 1.55;
    margin-bottom: 0.45rem;
}

.pub-join-flow-link {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--pub-font-en);
    color: var(--pub-accent);
    text-decoration: none;
}

.pub-join-flow-link:hover { color: var(--pub-accent-soft); }

.pub-join-cta {
    padding: 1.25rem 0 0 1.5rem;
    border-inline-start: 1px solid var(--pub-border);
}

.pub-join-cta-text {
    font-size: 0.9rem;
    color: var(--pub-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.pub-join-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pub-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.pub-kicker {
    color: var(--pub-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.55rem;
}

.pub-section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pub-section-head h2 span { color: inherit; }

.pub-accent-text,
#about-name { color: var(--pub-accent-soft); }

.pub-section-head p {
    color: var(--pub-muted-hi);
    font-size: 1rem;
}

/* ── Footer ── */
.pub-footer {
    padding: 2.75rem 0;
    border-top: 1px solid var(--pub-border);
    background: linear-gradient(180deg, rgba(4, 6, 10, 0.72) 0%, rgba(3, 5, 8, 0.95) 100%);
    position: relative;
    z-index: 1;
}

.pub-footer-inner {
    display: grid;
    gap: 1.35rem;
    text-align: center;
}

.pub-footer-brand strong {
    display: block;
    font-size: 1.08rem;
    color: var(--pub-accent-soft);
}

.pub-footer-brand span { font-size: 0.82rem; color: var(--pub-muted); }

.pub-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

.pub-footer-links a {
    color: var(--pub-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s;
}

.pub-footer-links a:hover { color: var(--pub-accent); }

.pub-footer-copy {
    font-size: 0.78rem;
    color: var(--pub-muted);
    opacity: 0.75;
}

/* ═══ Reaper Town v2 UI ═══ */
.pub-hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: #72b1da;
    margin-bottom: 0.65rem;
    letter-spacing: 0.02em;
}

.rt-section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2.75rem;
}

.rt-section-head--start {
    text-align: start;
    margin-inline: 0;
}

.rt-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #72b1da;
    margin-bottom: 0.7rem;
    font-family: var(--pub-font-en);
}

.rt-section-title {
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}

.rt-section-title em {
    font-style: normal;
    color: #72b1da;
}

.rt-section-lead {
    color: var(--pub-muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 54ch;
    margin-inline: auto;
}

.rt-section-head--start .rt-section-lead {
    margin-inline: 0;
}

/* Shared accent */
.rt-wire-accent {
    color: #72b1da;
}

/* Stats — broadcast wire */
.rt-stats {
    padding: 4.5rem 0 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rt-wire-head {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rt-wire-head-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.rt-wire-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.rt-wire-live {
    font-family: var(--pub-font-en);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #72b1da;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(114, 177, 218, 0.45);
}

.rt-wire-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-end: 0.4rem;
    border-radius: 50%;
    background: #72b1da;
    vertical-align: middle;
    animation: rt-live-blink 2.4s step-end infinite;
}

@keyframes rt-live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.rt-wire-sub {
    margin: 0;
    font-size: 0.88rem;
    color: var(--pub-muted);
}

.rt-wire-board {
    display: grid;
    grid-template-columns: 1fr auto 0.85fr;
    gap: 2rem;
    align-items: stretch;
}

.rt-wire-label {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: var(--pub-muted);
}

.rt-wire-players-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rt-wire-num {
    font-family: var(--pub-font-en);
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--pub-text);
}

.rt-wire-num--sm {
    font-size: clamp(2rem, 5vw, 3rem);
}

.rt-wire-capacity {
    --cap-pct: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, #0a0e16 58%, transparent 59%),
        conic-gradient(#72b1da calc(var(--cap-pct) * 1%), rgba(255, 255, 255, 0.07) 0);
    flex-shrink: 0;
}

.rt-wire-capacity-inner {
    font-family: var(--pub-font-en);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pub-muted-hi);
    text-align: center;
    line-height: 1.3;
    max-width: 52px;
}

.rt-wire-bar {
    height: 2px;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rt-wire-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: #72b1da;
    transition: width 0.5s ease;
}

.rt-wire-split {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
}

.rt-wire-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem 0;
    transition: color 0.15s;
}

.rt-wire-side:hover .rt-wire-side-note {
    color: #72b1da;
}

.rt-wire-side-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rt-wire-side-note {
    margin: 0;
    font-size: 0.84rem;
    color: var(--pub-muted);
    transition: color 0.15s;
}

/* About — manifest */
.rt-about {
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rt-manifest {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem 4rem;
    align-items: start;
}

.rt-manifest-title {
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.rt-manifest-lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--pub-muted-hi);
    max-width: 38ch;
}

.rt-manifest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-manifest-list li {
    display: grid;
    gap: 0.3rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-manifest-list strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pub-text);
}

.rt-manifest-list span {
    font-size: 0.86rem;
    color: var(--pub-muted);
    line-height: 1.6;
}

.rt-manifest-foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(114, 177, 218, 0.2);
}

.rt-manifest-foot p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pub-muted-hi);
    max-width: 44ch;
}

.rt-manifest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* Join — route line */
.rt-join {
    padding: 4.5rem 0 5.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rt-route-head {
    margin-bottom: 2.5rem;
}

.rt-route-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.rt-route-head p {
    margin: 0;
    color: var(--pub-muted);
    font-size: 0.92rem;
}

.rt-route-stops {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    position: relative;
}

.rt-route-stops::before {
    content: '';
    position: absolute;
    top: 0.65rem;
    bottom: 0.65rem;
    inset-inline-start: 10px;
    width: 1px;
    background: rgba(114, 177, 218, 0.25);
}

.rt-route-stop {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0;
}

.rt-route-marker {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #72b1da;
    background: #0a0e16;
    position: relative;
    z-index: 1;
    margin-top: 0.15rem;
}

.rt-route-body h3 {
    margin: 0 0 0.25rem;
    font-family: var(--pub-font-en);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rt-route-body p {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    color: var(--pub-muted);
}

.rt-route-link {
    font-family: var(--pub-font-en);
    font-size: 0.8rem;
    font-weight: 600;
    color: #72b1da;
    text-decoration: none;
    border-bottom: 1px solid rgba(114, 177, 218, 0.35);
}

.rt-route-link:hover {
    color: #9ccbe8;
    border-color: #9ccbe8;
}

.rt-route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer */
.rt-footer {
    padding: 3.5rem 0 2rem;
    background: #000;
    border-top: 1px solid rgba(114, 177, 218, 0.12);
}

.rt-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rt-footer-brand strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #72b1da;
    margin-bottom: 0.35rem;
    font-family: var(--pub-font-en);
    letter-spacing: 0.02em;
}

.rt-footer-brand > span {
    display: block;
    font-size: 0.82rem;
    color: var(--pub-muted);
    margin-bottom: 0.85rem;
}

.rt-footer-quote {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pub-muted-hi);
    font-style: italic;
    line-height: 1.6;
    max-width: 32ch;
}

.rt-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.rt-footer-nav a {
    color: var(--pub-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s;
}

.rt-footer-nav a:hover {
    color: #72b1da;
}

.rt-footer-cta {
    display: flex;
    align-items: flex-start;
}

.rt-footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

/* ── Mobile ── */
@media (max-width: 1100px) {
    .pub-links { display: none; }
    .pub-nav-live { display: none; }
    .pub-menu-toggle { display: flex; }
}

@media (max-width: 900px) {
    .rt-wire-board {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rt-wire-split {
        width: 100%;
        height: 1px;
    }

    .rt-manifest {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rt-manifest-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .rt-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rt-footer-nav {
        align-items: center;
    }

    .rt-footer-cta {
        justify-content: center;
    }

    .pub-about-body,
    .pub-join-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pub-about-side,
    .pub-join-cta {
        padding-inline-start: 0;
        border-inline-start: none;
        padding-top: 0;
    }

    .pub-about-side {
        padding-top: 1.5rem;
        border-top: 1px solid var(--pub-border);
    }

    .pub-about-actions,
    .pub-join-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pub-links { display: none; }
    .pub-nav-actions .pub-btn--store,
    .pub-nav-actions .pub-btn--login,
    .pub-nav-actions .pub-nav-icon,
    .pub-nav-actions .pub-lang,
    .pub-nav-actions .pub-profile-menu,
    .pub-nav-actions .pub-profile-btn--guest { display: none; }
    .pub-lang-mobile { display: flex; }
    .pub-menu-toggle { display: flex; }

    .pub-nav-drawer {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        border-top: 1px solid transparent;
        background: rgba(6, 8, 16, 0.98);
        padding: 0 1rem;
    }

    .pub-nav.nav-open .pub-nav-drawer {
        max-height: 480px;
        opacity: 1;
        border-top-color: var(--pub-border);
        padding: 0.85rem 1rem 1rem;
    }

    .pub-links-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .pub-links-mobile .pub-nav-link {
        padding: 0.75rem 1rem;
        border-radius: var(--pub-radius);
    }

    .pub-nav-drawer-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--pub-border);
    }
}

@media (max-width: 640px) {
    .pub-scroll-hint { display: none; }
}

@media (max-width: 480px) {
    .pub-brand-sub { display: none; }

    .pub-nav-bar {
        width: calc(100% - 1.25rem);
        gap: 0.65rem;
    }

    .pub-stats-grid { grid-template-columns: 1fr; }

    .pub-stat-card,
    .pub-stat-card:nth-child(odd),
    .pub-stat-card:nth-child(even) {
        border-inline-end: none;
        border-bottom: 1px solid var(--pub-border);
    }

    .pub-stat-card:last-child { border-bottom: none; }
}
