/* ========================================
   LOADING SCREEN
======================================== */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#loading-screen.done {
    opacity: 0;
    pointer-events: none;
}

/* ── Logo smooth reveal ── */
#loading-logo-wrap img {
    width: 260px;
    height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 60%);
    mask-image: linear-gradient(to right, #000 30%, transparent 60%);
    -webkit-mask-size: 350% 100%;
    mask-size: 350% 100%;
    -webkit-mask-position: 200% 0;
    mask-position: 200% 0;
    animation: logoWrite 2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s forwards;
}

@keyframes logoWrite {
    to {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
}

/* ========================================
   FONTS
======================================== */



@font-face {
    font-family: 'Courier Prime';
    src: url('../assets/Fonts/Courier_Prime/CourierPrime-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('../assets/Fonts/Courier_Prime/CourierPrime-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ========================================
   CUSTOM PROPERTIES
======================================== */
:root {
    /* Colors */
    --color-primary: #1a1a2e;
    --color-primary-hover: #2a2a4e;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-bg-light: #f5f5f7;
    --color-bg-chat: #f0f0f0;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-text-body: #333333;
    --color-border: #e5e5e5;
    --color-border-dark: #cccccc;
    --color-accent-red: #e74c3c;
    --color-accent-green: #00d4aa;
    --color-modal-muted: #888888;

    /* Fonts */
    --font-heading: 'Bebas Neue', 'Arial Black', sans-serif;
    --font-mono: 'Courier Prime', monospace;
    --font-mono-alt: 'Courier Prime', 'Courier New', monospace;
    --font-stat: 'Space Mono', monospace;
    --font-pixel: 'Press Start 2P', cursive;
    --font-body: 'Arial Black', 'Arial', sans-serif;

    /* Text Shadows (3D extrusion effect) */
    --text-shadow-dark:
        0.25px 0.25px 0 #222,
        0.5px 0.5px 0 #222,
        0.75px 0.75px 0 #222,
        1px 1px 0 #222,
        1.25px 1.25px 0 #222,
        1.5px 1.5px 0 #222,
        1.75px 1.75px 0 #222,
        2px 2px 0 #222,
        2.25px 2.25px 0 #222,
        2.5px 2.5px 0 #222,
        2.75px 2.75px 0 #222,
        3px 3px 0 #222,
        3.25px 3.25px 0 #222,
        3.5px 3.5px 0 #222,
        3.75px 3.75px 0 #222,
        4px 4px 0 #222,
        4.25px 4.25px 0 #222,
        4.5px 4.5px 0 #222,
        4.75px 4.75px 0 #222,
        5px 5px 0 #222;
    --text-shadow-light:
        0.25px 0.25px 0 #ccc,
        0.5px 0.5px 0 #ccc,
        0.75px 0.75px 0 #ccc,
        1px 1px 0 #ccc,
        1.25px 1.25px 0 #ccc,
        1.5px 1.5px 0 #ccc,
        1.75px 1.75px 0 #ccc,
        2px 2px 0 #ccc,
        2.25px 2.25px 0 #ccc,
        2.5px 2.5px 0 #ccc,
        2.75px 2.75px 0 #ccc,
        3px 3px 0 #ccc,
        3.25px 3.25px 0 #ccc,
        3.5px 3.5px 0 #ccc,
        3.75px 3.75px 0 #ccc,
        4px 4px 0 #ccc,
        4.25px 4.25px 0 #ccc,
        4.5px 4.5px 0 #ccc,
        4.75px 4.75px 0 #ccc,
        5px 5px 0 #ccc;

    /* Spacing */
    --border-section: 5px solid var(--color-black);
    --radius-card: 1.38889vw;
    --radius-pill: 6.94444vw;

    /* Z-index layers */
    --z-header: 1000;
    --z-modal: 2000;
    --z-mobile-nav: 150;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #000;
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

/* ========================================
   ACCESSIBILITY UTILITIES
======================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1.11111vw;
    z-index: 9999;
    padding: 0.83333vw 1.66667vw;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: 0.97222vw;
    font-weight: 700;
    border-radius: 0 0 0.55556vw 0.55556vw;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

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

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-primary);
    background-image: url('../assets/hero-bg.webp');
    background-size: cover;
    background-position: center 95%;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* ========================================
   HEADER
======================================== */
.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    pointer-events: none;
}

.logo,
.nav,
.connect-btn,
.wallet-area,
.mobile-menu-toggle,
.profile-menu {
    pointer-events: auto;
}

/* Logo */
.logo {
    display: block;
    margin: 1.8vw 0 0 2vw;
}

.logo img {
    height: 4.5vw;
    width: auto;
}

/* Navigation */
.nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 2.08333vw;
    z-index: 1000;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.77778vw;
    transition: opacity 0.5s ease;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.41667vw;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.94444vw;
    letter-spacing: 0.13889vw;
    color: var(--color-white);
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: skewX(-10deg) rotate(-3deg);
    text-shadow: var(--text-shadow-dark);
}

.nav-link:focus {
    outline: none;
}

.nav-link:hover {
    transform: skewX(-10deg) rotate(-3deg) scale(1.1);
}

/* 1. Stamp press — scale down/up, punchy */
@keyframes stamp {
    0%   { transform: skewX(-10deg) rotate(-3deg) scale(1); }
    40%  { transform: skewX(-10deg) rotate(-3deg) scale(0.85); }
    70%  { transform: skewX(-10deg) rotate(-3deg) scale(1.05); }
    100% { transform: skewX(-10deg) rotate(-3deg) scale(1); }
}

/* 2. Rubber — elastic wobble */
@keyframes rubber {
    0%   { transform: skewX(-10deg) rotate(-3deg) scale(1, 1); }
    30%  { transform: skewX(-10deg) rotate(-3deg) scale(1.2, 0.8); }
    50%  { transform: skewX(-10deg) rotate(-3deg) scale(0.9, 1.1); }
    70%  { transform: skewX(-10deg) rotate(-3deg) scale(1.05, 0.95); }
    100% { transform: skewX(-10deg) rotate(-3deg) scale(1, 1); }
}

/* 3. Kick — quick rotate kick like graffiti tag */
@keyframes kick {
    0%   { transform: skewX(-10deg) rotate(-3deg); }
    30%  { transform: skewX(-15deg) rotate(-8deg) translateY(-0.13889vw); }
    60%  { transform: skewX(-8deg) rotate(0deg); }
    100% { transform: skewX(-10deg) rotate(-3deg); }
}

/* 4. Glitch — digital flicker */
@keyframes glitch {
    0%   { transform: skewX(-10deg) rotate(-3deg); opacity: 1; }
    20%  { transform: skewX(-10deg) rotate(-3deg) translateX(0.20833vw); opacity: 0.7; }
    40%  { transform: skewX(-10deg) rotate(-3deg) translateX(-0.20833vw); opacity: 1; }
    60%  { transform: skewX(-10deg) rotate(-3deg) translateX(0.06944vw); opacity: 0.8; }
    80%  { transform: skewX(-10deg) rotate(-3deg) translateX(-0.06944vw); opacity: 1; }
    100% { transform: skewX(-10deg) rotate(-3deg); opacity: 1; }
}

/* 5. Pop up — lift with shadow */
@keyframes popup {
    0%   { transform: skewX(-10deg) rotate(-3deg) translateY(0); filter: drop-shadow(0 0 0 transparent); }
    50%  { transform: skewX(-10deg) rotate(-3deg) translateY(-0.27778vw); filter: drop-shadow(0 0.27778vw 0.41667vw rgba(0,0,0,0.3)); }
    100% { transform: skewX(-10deg) rotate(-3deg) translateY(0); filter: drop-shadow(0 0 0 transparent); }
}

/* 6. Jelly — soft wobbly squish */
@keyframes jelly {
    0%   { transform: skewX(-10deg) rotate(-3deg) scale(1, 1); }
    25%  { transform: skewX(-10deg) rotate(-3deg) scale(0.95, 1.05); }
    50%  { transform: skewX(-10deg) rotate(-3deg) scale(1.05, 0.95); }
    75%  { transform: skewX(-10deg) rotate(-3deg) scale(0.98, 1.02); }
    100% { transform: skewX(-10deg) rotate(-3deg) scale(1, 1); }
}

/* 7. Tilt — quick lean and snap back */
@keyframes tilt {
    0%   { transform: skewX(-10deg) rotate(-3deg); }
    40%  { transform: skewX(-16deg) rotate(-6deg); }
    100% { transform: skewX(-10deg) rotate(-3deg); }
}

/* --- Header Sova Glitch --- */

.header-sova .nav-link,
.header-sova .connect-btn {
    font-family: var(--font-pixel);
    font-size: 0.97222vw;
    letter-spacing: 0;
    text-shadow: none;
    color: var(--color-primary);
}

.header-sova .logo img {
    filter: hue-rotate(90deg) saturate(1.5);
}

.header-glitch .nav-link,
.header-glitch .connect-btn,
.header-glitch .logo img {
    animation: headerGlitch 0.3s steps(4) both;
}

@keyframes headerGlitch {
    0% { clip-path: inset(0 0 0 0); transform: skewX(-10deg) rotate(-3deg); }
    10% { clip-path: inset(20% 0 40% 0); transform: skewX(-10deg) rotate(-3deg) translateX(0.55556vw); }
    20% { clip-path: inset(60% 0 10% 0); transform: skewX(-10deg) rotate(-3deg) translateX(-0.41667vw); }
    30% { clip-path: inset(10% 0 50% 0); transform: skewX(-10deg) rotate(-3deg) translateX(0.27778vw); text-shadow: -0.13889vw 0 #ff0040, 0.13889vw 0 #00ffea; }
    40% { clip-path: inset(40% 0 20% 0); transform: skewX(-10deg) rotate(-3deg) translateX(-0.55556vw); }
    50% { clip-path: inset(0 0 70% 0); transform: skewX(-10deg) rotate(-3deg) translateX(0.41667vw); text-shadow: 0.13889vw 0 #ff0040, -0.13889vw 0 #00ffea; }
    60% { clip-path: inset(50% 0 0 0); transform: skewX(-10deg) rotate(-3deg) translateX(-0.27778vw); }
    70% { clip-path: inset(30% 0 30% 0); transform: skewX(-10deg) rotate(-3deg) translateX(0.20833vw); text-shadow: none; }
    80% { clip-path: inset(0 0 0 0); transform: skewX(-10deg) rotate(-3deg) translateX(-0.13889vw); }
    100% { clip-path: inset(0 0 0 0); transform: skewX(-10deg) rotate(-3deg) translateX(0); }
}

/* Connect Wallet Button */
.connect-btn {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.94444vw;
    letter-spacing: 0.13889vw;
    color: var(--color-white);
    background: none;
    border: none;
    padding: 0;
    margin-top: 1.73611vw;
    margin-right: 2.08333vw;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: skewX(-10deg) rotate(-3deg);
    text-shadow: var(--text-shadow-dark);
}

.connect-btn:hover {
    transform: skewX(-10deg) rotate(-3deg) scale(1.1);
}

.connect-btn.connected {
    color: var(--color-white);
}

.wallet-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1.73611vw;
    margin-right: 2.08333vw;
    gap: 0;
    transition: opacity 0.5s ease;
}

/* Hide nav & wallet when Meet Astros section is in view */
.header-nav-hidden .logo img {
    transition: height 0.4s ease;
}

.header-nav-hidden .nav-list,
.header-nav-hidden .wallet-area {
    opacity: 0;
    pointer-events: none;
}

.wallet-area .connect-btn {
    margin-top: 0;
    margin-right: 0;
    transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wallet-out {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25vw;
    letter-spacing: 0.13889vw;
    color: var(--color-accent-red, #e74c3c);
    cursor: pointer;
    transform: skewX(-10deg) rotate(-3deg) translateX(1.38889vw);
    text-shadow: var(--text-shadow-dark);
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.25s ease, transform 0.2s ease;
    pointer-events: none;
    user-select: none;
}

.wallet-connected:hover .wallet-out {
    opacity: 1;
    transform: skewX(-10deg) rotate(-3deg) translateX(0);
    pointer-events: auto;
}

.wallet-out:hover {
    transform: skewX(-10deg) rotate(-3deg) translateX(0) scale(1.25);
}

/* Wallet Picker Dropdown */
.wallet-picker {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.55556vw;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 0.55556vw;
    box-shadow: 4px 4px 0 var(--color-primary);
    padding: 0.41667vw;
    z-index: 1000;
    min-width: 13.88889vw;
}

.wallet-picker-option {
    display: flex;
    align-items: center;
    gap: 0.69444vw;
    width: 100%;
    padding: 0.69444vw 0.97222vw;
    background: none;
    border: 2px solid transparent;
    border-radius: 0.41667vw;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.11111vw;
    letter-spacing: 0.10417vw;
    color: var(--color-primary);
    transition: all 0.15s ease;
    text-align: left;
}

.wallet-picker-option:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
}

.wallet-picker-option img {
    border-radius: 0.27778vw;
    flex-shrink: 0;
}

/* Header dark version (gallery) */
.header-dark .connect-btn {
    color: var(--color-white);
    text-shadow: var(--text-shadow-dark);
}

.header-dark .connect-btn:hover {
    transform: skewX(-10deg) rotate(-3deg) scale(1.1);
}

.header-dark .wallet-out {
    color: var(--color-accent-red, #e74c3c);
    text-shadow: var(--text-shadow-dark);
}

/* Profile Menu */
.profile-menu {
    position: absolute;
    top: 4.86111vw;
    right: 2.08333vw;
    background: var(--color-white);
    border-radius: 0.69444vw;
    padding: 0;
    min-width: 13.88889vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.69444vw);
    transition: all 0.2s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    overflow: hidden;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    padding: 0.69444vw 0.97222vw;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.profile-menu-address {
    font-family: 'Courier Prime', monospace;
    font-size: 0.69444vw;
    color: var(--color-text-muted);
    word-break: break-all;
}

.profile-menu-items {
    padding: 0.27778vw 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55556vw;
    padding: 0.625vw 0.97222vw;
    font-family: var(--font-heading);
    font-size: 0.90278vw;
    letter-spacing: 0.06944vw;
    color: var(--color-primary);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.profile-menu-item:hover {
    background: var(--color-bg-light);
}

.profile-menu-item svg {
    color: var(--color-text-muted);
}

.profile-menu-divider {
    height: 0.06944vw;
    background: var(--color-border);
    margin: 0.27778vw 0;
}

.profile-menu-disconnect {
    color: var(--color-accent-red);
}

.profile-menu-disconnect svg {
    color: var(--color-accent-red);
}

.profile-menu-disconnect:hover {
    background: #fef5f5;
}

/* ========================================
   PROFILE PAGE — Editorial Layout
======================================== */

.prof-page {
    position: relative;
    min-height: 100vh;
    background: #fff;
    padding: 0 clamp(24px, 4vw, 64px) 80px;
    color: #111;
    overflow-x: hidden;
}

body:has(.prof-page) {
    background: #fff;
}

body:has(.prof-page)::before {
    display: none;
}

body:has(.prof-page) .nav,
body:has(.prof-page) .mobile-menu-toggle {
    display: none !important;
}

.prof-content {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* ── Loading ── */
.prof-loading {
    max-width: 960px;
    margin: 0 auto;
    padding: 120px 0 80px;
}

.prof-skel-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.prof-skel {
    background: #f0f0f0;
    border-radius: 8px;
    animation: profPulse 1.2s ease-in-out infinite;
}

.prof-skel-avatar {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.prof-skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
}

.prof-skel-line-lg {
    height: 48px;
    width: 60%;
}

.prof-skel-line-sm {
    height: 16px;
    width: 40%;
}

@keyframes profPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ── Error ── */
.prof-error {
    max-width: 960px;
    margin: 0 auto;
    padding: 120px 24px;
    text-align: center;
}

.prof-error-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.1em;
    color: #111;
    margin-bottom: 24px;
}

.prof-retry-btn {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #111;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.prof-retry-btn:hover {
    background: #111;
    color: #fff;
}

/* ── Hero ── */
.prof-hero {
    display: flex;
    align-items: flex-start;
    gap: clamp(32px, 4vw, 56px);
    padding: clamp(80px, 8vh, 120px) 0 clamp(40px, 4vh, 60px);
}

.prof-hero-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: clamp(200px, 22vw, 320px);
}

.prof-hero-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f5f5f5;
}

.prof-hero-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    display: none;
}

.prof-badge-special {
    background: #c0674a;
}

.prof-badge-golden {
    background: #d4a843;
}

.prof-hero-info {
    flex: 1;
    padding-top: 8px;
}

.prof-hero-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.prof-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 0.92;
    letter-spacing: 0.03em;
    color: #111;
    margin: 0 0 20px;
}

.prof-hero-desc {
    font-family: 'Courier Prime', monospace;
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.7;
    color: #555;
    margin: 0 0 24px;
    max-width: 380px;
}

.prof-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.prof-hero-meta-item {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #999;
}

.prof-hero-meta-sep {
    color: #ccc;
}

.prof-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.prof-address:hover {
    color: #111;
}

.prof-copied-toast {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #111;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.prof-toast-show {
    opacity: 1;
}

/* ── Divider ── */
.prof-divider {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background: #111;
}

/* ── Section Headers ── */
.prof-section {
    padding: clamp(32px, 3vh, 48px) 0;
}

.prof-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.prof-section-left {
    flex-shrink: 0;
}

.prof-section-right {
    display: flex;
    align-items: flex-end;
    gap: clamp(16px, 2vw, 32px);
    text-align: right;
}

.prof-section-right-grow {
    flex: 1;
    text-align: left;
}

.prof-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 0.92;
    letter-spacing: 0.03em;
    color: #111;
    margin: 0;
}

.prof-section-sub {
    font-family: 'Space Mono', monospace;
    font-size: clamp(9px, 0.75vw, 11px);
    letter-spacing: 0.15em;
    line-height: 1.6;
    color: #999;
    text-transform: uppercase;
}

.prof-section-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 10vw, 140px);
    line-height: 0.8;
    color: #111;
    letter-spacing: -0.02em;
}

.prof-section-num-left {
    margin-right: clamp(16px, 2vw, 32px);
}

/* ── NFT Grid ── */
.prof-grid-section {
    padding: clamp(24px, 2vh, 40px) 0;
}

.prof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.prof-grid-empty {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 60px 0;
}

.prof-nft-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.prof-nft-card:hover {
    transform: translateY(-3px);
}

.prof-nft-card.prof-nft-selected {
    transform: translateY(-3px);
}

.prof-nft-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f5f5f5;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.prof-nft-card:hover .prof-nft-img,
.prof-nft-card.prof-nft-selected .prof-nft-img {
    border-color: #111;
}

.prof-nft-special .prof-nft-img {
    border-color: #c0674a;
}

.prof-nft-golden .prof-nft-img {
    border-color: #d4a843;
}

.prof-nft-is-avatar .prof-nft-img {
    border-color: #111;
    box-shadow: 0 0 0 2px #111;
}

.prof-nft-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #999;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prof-nft-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
}

.prof-nft-tag-special {
    background: #c0674a;
}

.prof-nft-tag-golden {
    background: #d4a843;
}

/* ── NFT Expand ── */
.prof-expand {
    grid-column: 1 / -1;
    background: #f8f8f8;
    border: 2px solid #111;
    border-radius: 8px;
    margin: 8px 0;
    animation: profExpandIn 0.25s ease;
}

@keyframes profExpandIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.prof-expand-inner {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.prof-expand-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #eee;
}

.prof-expand-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.prof-expand-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.prof-expand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.05em;
    color: #111;
    margin: 0;
}

.prof-expand-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.prof-expand-close:hover {
    color: #111;
}

.prof-expand-traits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.prof-expand-trait {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prof-expand-trait-key {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #999;
    text-transform: uppercase;
}

.prof-expand-trait-val {
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    color: #111;
}

.prof-expand-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.prof-expand-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    border: 2px solid #111;
    border-radius: 4px;
    background: #fff;
    color: #111;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.prof-expand-btn:hover {
    background: #111;
    color: #fff;
}

/* SET AS AVATAR button — hidden by default, shown for owner */
.prof-expand-btn-avatar {
    display: none;
    background: #111;
    color: #fff;
}

.prof-expand-btn-avatar:hover {
    background: #333;
}

.prof-is-owner .prof-expand-btn-avatar {
    display: inline-block;
}

/* ── Character Details ── */
.prof-char-details {
    padding-top: clamp(24px, 2vh, 36px);
}

.prof-char-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.prof-char-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prof-char-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #999;
    text-transform: uppercase;
}

.prof-char-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(24px, 2.5vw, 32px);
    color: #111;
    letter-spacing: 0.03em;
}

/* ── Badges ── */
.prof-badges-wrap {
    padding-top: clamp(20px, 2vh, 32px);
}

.prof-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prof-badge {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border: 1px solid;
    border-radius: 4px;
    background: #fff;
}

/* ── Wish List ── */
.prof-wishlist-wrap {
    padding-top: clamp(20px, 2vh, 32px);
}

.prof-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.prof-wishlist-empty {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    color: #999;
    padding: 40px 0;
}

.prof-wishlist-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    display: block;
}

.prof-wishlist-card:hover {
    transform: translateY(-3px);
}

.prof-wishlist-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
}

.prof-wishlist-card:hover img {
    border-color: #111;
}

.prof-wishlist-card span {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #999;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Footer ── */
.prof-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 2vh, 32px) 0 0;
}

.prof-footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #999;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .prof-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .prof-hero-img-wrap {
        width: clamp(180px, 50vw, 240px);
    }

    .prof-hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .prof-hero-desc {
        text-align: center;
    }

    .prof-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .prof-section-right {
        text-align: left;
    }

    .prof-section-num {
        font-size: clamp(60px, 15vw, 100px);
    }

    .prof-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .prof-expand-inner {
        flex-direction: column;
        gap: 16px;
    }

    .prof-expand-img {
        width: 120px;
        height: 120px;
    }

    .prof-expand-traits {
        grid-template-columns: repeat(2, 1fr);
    }

    .prof-char-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .prof-footer {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .prof-skel-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .prof-skel-avatar {
        width: 160px;
        height: 160px;
    }

    .prof-skel-lines {
        align-items: center;
    }

    .prof-skel-line-lg {
        width: 200px;
    }

    .prof-skel-line-sm {
        width: 140px;
    }
}
.dropdown-arrow {
    display: inline-block;
    font-size: 0.97222vw;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0.55556vw);
    margin-top: 0.69444vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(1.38889vw);
    -webkit-backdrop-filter: blur(1.38889vw);
    border-radius: 1.11111vw;
    padding: 0.55556vw 0;
    min-width: 11.11111vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.nav-item.active .dropdown-menu,
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Override transform for left-aligned dropdowns */
.nav-item.active .dropdown-menu-more,
.nav-item:hover .dropdown-menu-more {
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.69444vw 1.11111vw;
    font-family: var(--font-heading);
    font-size: 1.11111vw;
    font-weight: 900;
    letter-spacing: 0.06944vw;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(26, 26, 46, 0.04);
    color: var(--color-primary);
}

/* BUY Dropdown Menu */
.dropdown-menu-buy {
    left: 0;
    transform: translateY(0.55556vw);
    padding: 1.38889vw 1.66667vw;
    min-width: 20.83333vw;
    border-radius: 1.11111vw;
    border: 1px solid rgba(26, 26, 46, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(1.38889vw);
    -webkit-backdrop-filter: blur(1.38889vw);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dropdown-item-buy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-mono-alt);
    font-size: 1.11111vw;
    font-weight: 700;
    letter-spacing: 0.03472vw;
    color: var(--color-primary);
    text-transform: uppercase;
    padding: 0.69444vw 1.66667vw;
    margin: 0 -1.66667vw;
    border-radius: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item-buy:hover {
    background: rgba(26, 26, 46, 0.04);
}

.dropdown-item-icons {
    display: flex;
    align-items: flex-start;
    gap: 0.69444vw;
    margin-left: auto;
}

.dropdown-icon {
    width: 1.52778vw;
    height: 1.52778vw;
    object-fit: contain;
    opacity: 0.5;
    transition: all 0.25s ease;
}

.dropdown-icon-svg {
    color: var(--color-primary);
}

.dropdown-arrow-icon {
    color: var(--color-primary);
    opacity: 0.2;
    transition: all 0.25s ease;
}

.dropdown-item-buy:hover .dropdown-icon,
.dropdown-item-buy:hover .dropdown-arrow-icon {
    opacity: 1;
}

.dropdown-item-buy:hover .dropdown-arrow-icon {
    transform: translate(0.13889vw, -0.13889vw);
}

.dropdown-item-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-item-disabled:hover {
    background: transparent;
    transform: none;
}

.dropdown-separator {
    height: 0.06944vw;
    background: linear-gradient(90deg, transparent, rgba(26, 26, 46, 0.08), transparent);
    margin: 0.55556vw 0;
}

/* MORE Dropdown Menu */
.dropdown-menu-more {
    left: 0;
    transform: translateY(0.55556vw);
    padding: 0;
    min-width: 19.44444vw;
    border-radius: 1.11111vw;
    border: 1px solid rgba(26, 26, 46, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(1.38889vw);
    -webkit-backdrop-filter: blur(1.38889vw);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dropdown-section {
    padding: 1.11111vw 1.38889vw;
}

.dropdown-section-gray {
    background: rgba(26, 26, 46, 0.02);
}

.dropdown-section-title {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.69444vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    color: rgba(26, 26, 46, 0.35);
    text-transform: uppercase;
    margin-bottom: 0.83333vw;
}

.dropdown-item-more {
    display: flex;
    align-items: center;
    gap: 0.83333vw;
    font-family: var(--font-mono-alt);
    font-size: 1.04167vw;
    font-weight: 700;
    letter-spacing: 0.03472vw;
    color: var(--color-primary);
    text-transform: uppercase;
    padding: 0.69444vw 1.38889vw;
    margin: 0.13889vw -1.38889vw;
    border-radius: 0.55556vw;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item-more:hover {
    background: rgba(26, 26, 46, 0.04);
}

.dropdown-item-icon {
    width: 1.38889vw;
    height: 1.38889vw;
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.4;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item-more:hover .dropdown-item-icon {
    opacity: 1;
    transform: scale(1.15) rotate(-3deg);
}

.dropdown-footer {
    padding: 0.83333vw 1.38889vw;
    border-top: 1px solid rgba(26, 26, 46, 0.05);
}

.dropdown-footer-link {
    font-family: var(--font-stat);
    font-size: 0.76389vw;
    font-weight: 400;
    letter-spacing: 0.06944vw;
    color: rgba(26, 26, 46, 0.4);
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.dropdown-footer-link:hover {
    color: var(--color-primary);
}

/* Magnetic hover on nav dropdown triggers */
.has-dropdown > .nav-link {
    transition: opacity 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.34722vw;
    width: 2.77778vw;
    height: 2.77778vw;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-toggle span {
    display: block;
    width: 1.66667vw;
    height: 0.13889vw;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.34722vw, 0.34722vw);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.34722vw, -0.34722vw);
}

/* Mobile wallet — hidden on desktop, visible in mobile nav */
.mobile-wallet-area {
    display: none;
}

@media (max-width: 768px) {
  html:not(.desktop) {
    .mobile-wallet-area {
        display: flex;
        justify-content: center;
        margin-top: 3.90625vw;
    }

    .mobile-wallet-area .connect-btn {
        font-size: 2.08333vw;
        margin: 0;
        transform: none;
    }
  }
}

/* ========================================
   HERO FOOTER
======================================== */
.hero-footer {
    position: absolute;
    bottom: 2.08333vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.abstract-link {
    display: flex;
    align-items: center;
    gap: 0.83333vw;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.abstract-link:hover {
    opacity: 1;
}

.built-on {
    font-family: 'Space Mono', monospace;
    font-size: 0.97222vw;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.03472vw;
}

.abstract-logo {
    height: 0.90278vw;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ========================================
   MEET ASTROS SECTION
======================================== */
/* Section Dividers */
.sova-section,
.token-section {
    border-top: 5px solid #000000;
}

/* Meet Astros — House Scene + Chat */
.ma-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #1a1a1a;
    padding: 0;
    overflow: hidden;
}

/* Canvas: covers viewport while keeping 16:9 ratio — hitbox %s always align */
.ma-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max(100%, calc(100vh * 4096 / 2304));
    height: max(100%, calc(100vw * 2304 / 4096));
}

/* Layered images — stretch to fill canvas (canvas handles ratio) */
.ma-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ma-bg { z-index: 0; }

.ma-char {
    z-index: 1;
    will-change: transform, opacity;
    transition: transform 0.2s cubic-bezier(0.22,1,0.36,1),
                opacity 0.2s ease;
    transform-origin: var(--char-cx, 50%) var(--char-cy, 50%);
}

.ma-char.hovered {
    transform: scale(1.18);
    z-index: 5;
}

.ma-char.dimmed { opacity: 0.6; }
.ma-char.chat-dimmed { opacity: 0.3; }
.ma-char.chat-active-char { z-index: 5; }

/* Hitbox divs */
.ma-hitbox {
    position: absolute;
    z-index: 10;
    cursor: pointer;
}

/* Pulsing dots on each character — absolute in canvas */
.ma-dot {
    position: absolute;
    z-index: 8;
    width: clamp(6px, 0.5vw, 10px);
    height: clamp(6px, 0.5vw, 10px);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 clamp(4px, 0.4vw, 8px) rgba(255,255,255,0.6);
    transform: translate(-50%, -50%);
    animation: maDotPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes maDotPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.ma-section.chat-active .ma-dot { opacity: 0; transition: opacity 0.2s ease; animation: none; }
.ma-section.hovered .ma-dot { opacity: 0; transition: opacity 0.2s ease; animation: none; }

/* "MEET THE ASTROS" — bottom-left, matches nav-link style */
.ma-label-left {
    position: absolute;
    bottom: clamp(24px, 3.5%, 48px);
    left: clamp(24px, 3.5%, 48px);
    z-index: 20;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(24px, 5vw, 80px);
    line-height: 1;
    letter-spacing: 0.13889vw;
    color: var(--color-white);
    pointer-events: none;
    text-shadow: var(--text-shadow-dark);
    transition: opacity 0.2s ease;
}

.ma-section.chat-active .ma-label-left { opacity: 0; }

/* Hover info — line + card, anchored near character dot */
.ma-hover-info {
    position: absolute;
    z-index: 20;
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translateY(-50%);
    white-space: nowrap;
}

.ma-hover-info.visible { opacity: 1; }
.ma-hover-info.dir-right { flex-direction: row; }
.ma-hover-info.dir-left { flex-direction: row-reverse; }

.ma-hover-line {
    width: 0;
    height: 1px;
    background: rgba(255,255,255,0.7);
    flex-shrink: 0;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ma-hover-info.visible .ma-hover-line {
    width: clamp(40px, 4vw, 80px);
}

.ma-hover-card {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.7vw, 14px);
    opacity: 0;
    transition: opacity 0.3s ease 0.18s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.18s;
}

.ma-hover-info.dir-right .ma-hover-card {
    transform: translateX(-12px);
    padding-left: clamp(8px, 0.7vw, 14px);
}
.ma-hover-info.dir-left .ma-hover-card {
    transform: translateX(12px);
    padding-right: clamp(8px, 0.7vw, 14px);
}

.ma-hover-info.visible .ma-hover-card {
    opacity: 1;
    transform: translateX(0);
}

.ma-hover-avatar {
    width: clamp(28px, 2.5vw, 44px);
    height: clamp(28px, 2.5vw, 44px);
    border-radius: 50%;
    object-fit: contain;
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.ma-hover-name {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 44px);
    line-height: 1;
    color: #fff;
    letter-spacing: 0;
}

.ma-section.chat-active .ma-hover-info { opacity: 0; }

/* Chat panel — overlay on right, scene stays full */
/* Chat card — bottom-right, same spacing as label */
.ma-chat-panel {
    position: absolute;
    bottom: clamp(24px, 3.5%, 48px);
    right: clamp(24px, 3.5%, 48px);
    width: clamp(300px, 26vw, 400px);
    max-height: 60%;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1),
                transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.ma-section.chat-active .ma-chat-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ma-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 60vh;
    background: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    padding: 24px;
}

/* Chat header — hidden on desktop */
.ma-chat-header {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.ma-chat-back {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    min-width: 28px;
    min-height: 28px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.ma-chat-back:hover { color: #333; }
.ma-chat-name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--ma-accent);
    letter-spacing: 1px;
}

/* Messages */
.ma-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 0 8px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    scrollbar-width: none;
}
.ma-chat-messages::before { content: ''; flex: 1; }
.ma-chat-messages::-webkit-scrollbar { display: none; }

.ma-chat-msg {
    max-width: 92%;
    padding: 0;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: #333;
    animation: maFadeIn 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ma-chat-msg p { margin: 0; }

@keyframes maFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ma-chat-msg.astro { align-self: flex-start; }
.ma-chat-msg.astro .ma-msg-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.ma-chat-msg.user { align-self: flex-end; color: #999; }

/* Typing */
.ma-chat-msg.typing { padding: 0; gap: 10px; }
.ma-typing-dots { display: flex; gap: 4px; align-items: center; height: 22px; }
.ma-typing-dots span {
    width: 5px; height: 5px;
    background: var(--ma-accent);
    border-radius: 50%;
    animation: maTypingBounce 1.4s infinite ease-in-out both;
}
.ma-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ma-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.ma-typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes maTypingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input */
.ma-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.ma-chat-input {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #333;
    outline: 0;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    transition: border-color 0.2s ease;
}
.ma-chat-input:focus { border-bottom-color: rgba(0,0,0,0.3); outline: none; }
.ma-chat-input::placeholder { color: #bbb; }
.ma-chat-input:disabled { opacity: 0.4; cursor: not-allowed; }

.ma-chat-send {
    width: 32px; height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}
.ma-chat-send:hover { color: #333; transform: scale(1.1); }
.ma-chat-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

/* ========================================
   RESPONSIVE - LARGE SCREENS
======================================== */
@media (min-width: 1440px) {
    .sova-title {
        font-size: 5.55556vw;
    }

    .sova-center {
        width: 34.72222vw;
    }

    .sova-left,
    .sova-right {
        width: 12.5vw;
    }

}


/* ========================================
   RESPONSIVE - EXTRA LARGE SCREENS
======================================== */
@media (min-width: 1920px) {
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (max-width: 1024px) {
  html:not(.desktop) {
    .nav-list {
        gap: 2.44141vw;
    }

    .nav-link {
        font-size: 1.36719vw;
    }

    /* SOVA - Tablet */
    .sova-section {
        padding: 5.85938vw 3.90625vw;
    }

    .sova-title {
        font-size: 4.88281vw;
    }

    .sova-center {
        width: 29.29688vw;
    }

    .sova-left,
    .sova-right {
        width: 11.71875vw;
    }

  }
}

/* ========================================
   EXPLORE SECTION
======================================== */
/* ── Explore — TV Channel Zapping ── */
.exp-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #0c0c0c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3vw, 56px);
    padding: clamp(40px, 5vh, 80px) 24px;
}

/* ── Left panel: channel description ── */
.exp-desc {
    width: clamp(140px, 14vw, 220px);
    text-align: right;
    flex-shrink: 0;
}

.exp-desc-title {
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.6vw, 28px);
    color: #fff;
    letter-spacing: 0.08em;
    margin: 0 0 6px 0;
    line-height: 1;
}

.exp-desc-text {
    font-family: 'Courier Prime', monospace;
    font-size: clamp(12px, 0.9vw, 15px);
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* TV frame */
.exp-tv-frame {
    position: relative;
    width: clamp(320px, 34vw, 520px);
    flex-shrink: 0;
}

.exp-tv-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

/* Screen — positioned behind TV's transparent screen hole */
.exp-screen {
    position: absolute;
    left: 17.4%;
    top: 37.8%;
    width: 55.1%;
    height: 38.6%;
    z-index: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
}

/* Clickable screen overlay */
.exp-screen-link {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
    display: block;
}
.exp-screen-link[data-disabled] {
    cursor: default;
}

/* Static noise canvas */
.exp-static {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}
.exp-static.exp-static-on {
    opacity: 1;
}

/* Channel content */
.exp-ch {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease 0.15s;
}
.exp-ch.exp-ch-active {
    opacity: 1;
}

.exp-ch-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.exp-ch-bg.exp-ch-zoom {
    object-fit: cover;
    transform: scale(1.8);
}

.exp-ch-bg.exp-ch-bottom {
    object-fit: contain;
    object-position: center bottom;
}

.exp-ch-content {
    display: none;
}

.exp-ch-title {
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.8vw, 32px);
    color: #fff;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}

.exp-ch-tag {
    font-family: 'Space Mono', monospace;
    font-size: clamp(9px, 0.7vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.exp-ch-soon {
    background: transparent;
}

/* Channel number indicator */
.exp-ch-indicator {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 15;
    font-family: 'VT323', 'Space Mono', monospace;
    font-size: clamp(14px, 1.2vw, 22px);
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.exp-ch-indicator.exp-ind-show {
    opacity: 1;
}

/* Scanlines overlay */
.exp-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
}

/* Screen glow */
.exp-screen::before {
    content: '';
    position: absolute;
    inset: -15%;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(140, 180, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Right panel: arrows + channel buttons ── */
.exp-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 0.8vw, 14px);
    flex-shrink: 0;
}

.exp-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    padding: 0;
}
.exp-arrow:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}
.exp-arrow:active {
    transform: scale(0.95);
}

.exp-channels {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.6vw, 10px);
}

.exp-ch-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: clamp(110px, 10vw, 150px);
    padding: 10px 14px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.exp-ch-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.exp-ch-btn:active {
    background: rgba(255, 255, 255, 0.06);
}

.exp-ch-btn.exp-ch-btn-active {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.exp-btn-name {
    font-family: 'Space Mono', monospace;
    font-size: clamp(10px, 0.75vw, 13px);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.06em;
    line-height: 1;
    text-align: left;
}

.exp-ch-btn.exp-ch-btn-active .exp-btn-name {
    color: #fff;
}

.exp-ch-btn[data-disabled="true"] .exp-btn-name {
    opacity: 0.35;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .exp-wrap {
        flex-direction: column;
        gap: clamp(16px, 3vw, 28px);
    }
    .exp-desc {
        width: auto;
        max-width: 300px;
        text-align: center;
    }
    .exp-tv-frame {
        width: clamp(280px, 75vw, 400px);
    }
    .exp-nav {
        flex-direction: row;
        align-items: center;
    }
    .exp-channels {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .exp-arrow svg {
        transform: rotate(-90deg);
    }
    .exp-ch-btn {
        width: auto;
        padding: 8px 12px;
    }
    .exp-desc-title {
        font-size: 18px;
    }
}

/* ========================================
   SOVA SECTION
======================================== */
.sova-section {
    min-height: 100vh;
    background-color: var(--color-bg-light);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5.55556vw 4.16667vw;
}

.sova-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 4.44444vw;
    color: var(--color-primary);
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}


.sova-cta {
    font-family: var(--font-mono);
    font-size: 1.25vw;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    position: absolute;
    top: 45%;
    right: 5%;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.sova-cta:hover {
    opacity: 0.6;
}

.sova-images {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 69.44444vw;
    position: relative;
    margin-top: 5%;
}

.sova-left {
    width: 10.41667vw;
    height: auto;
    position: absolute;
    right: 0;
    bottom: -1.73611vw;
    z-index: 2;
}

.sova-shadow {
    position: absolute;
    width: 6.94444vw;
    height: 1.38889vw;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -0.34722vw;
    z-index: 1;
}

.sova-shadow-right {
    right: 1.04167vw;
}

.sova-shadow-left {
    left: 1.04167vw;
}

.sova-center {
    width: 27.77778vw;
    height: auto;
    z-index: 1;
}

.sova-right {
    width: 10.41667vw;
    height: auto;
    position: absolute;
    left: 0;
    bottom: -1.73611vw;
    z-index: 2;
    transform: scaleX(-1);
}

.sova-tag {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.97222vw;
    color: var(--color-primary);
    position: absolute;
    bottom: 4.16667vw;
    left: 50%;
    transform: translateX(-50%);
}

/* ========================================
   SOVA PAGE
======================================== */
.header-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.08333vw 2.08333vw;
    z-index: 1000;
}

.header-minimal .sova-title-header {
    font-family: 'Press Start 2P', cursive;
    font-size: 4.44444vw;
    color: #1a1a2e;
    position: absolute;
    left: 50%;
    top: 5.55556vw;
    transform: translateX(-50%);
}

.back-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.83333vw;
    color: #1a1a2e;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.6;
}

.header-minimal .connect-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.83333vw;
    font-weight: 700;
    background: none;
    border: none;
    color: #1a1a2e;
    padding: 0;
    box-shadow: none;
    text-shadow: none;
    transform: none;
    text-transform: lowercase;
    animation: none;
}

.header-minimal .connect-btn:hover {
    background: none;
    transform: none;
    text-shadow: none;
    opacity: 0.6;
    animation: none;
}

.header-minimal .connect-btn.connected {
    background: none;
    transform: none;
    text-shadow: none;
    color: #1a1a2e;
}

.header-minimal .wallet-out {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.83333vw;
    font-weight: 700;
    transform: translateX(1.38889vw);
    text-shadow: none;
    text-transform: lowercase;
}

.header-minimal .wallet-connected:hover .wallet-out {
    transform: translateX(0);
}

.header-minimal .wallet-out:hover {
    transform: translateX(0) scale(1.1);
    opacity: 0.8;
}

.sova-page {
    height: 100vh;
    overflow: hidden;
    background-color: #f5f5f7;
}

.sova-fullpage {
    height: 100vh;
    padding-top: 0;
    border-top: none;
    justify-content: center;
}

.sova-fullpage .sova-images {
    margin-top: 0;
    max-width: 48.61111vw;
}

.sova-fullpage .sova-left {
    right: -3.47222vw;
}

.sova-fullpage .sova-right {
    left: -3.47222vw;
}

.sova-fullpage .sova-shadow-right {
    right: -1.73611vw;
}

.sova-fullpage .sova-shadow-left {
    left: -1.73611vw;
}

.sova-fullpage .sova-tag {
    position: absolute;
    bottom: 2.77778vw;
    left: 50%;
    transform: translateX(-50%);
}

/* ========================================
   SECTION NAV (right-side up/down)
======================================== */
.section-nav {
    position: fixed;
    right: 1.94444vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.41667vw;
    z-index: 900;
}

.section-nav-btn {
    width: 2.77778vw;
    height: 2.77778vw;
    background: transparent;
    border: none;
    border-radius: 0.55556vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: skewX(-10deg) rotate(-3deg);
}

.section-nav-btn:hover {
    opacity: 1;
    transform: skewX(-10deg) rotate(-3deg) scale(1.25);
}

.section-nav-btn:active {
    transform: skewX(-10deg) rotate(-3deg) scale(0.9);
}

/* Dark sections get white arrows (default), light sections get dark arrows */
.section-nav.on-light .section-nav-btn {
    color: #111;
}

@media (max-width: 768px) {
  html:not(.desktop) {
    .section-nav {
        right: 1.5625vw;
    }
    .section-nav-btn {
        width: 4.42708vw;
        height: 4.42708vw;
    }
  }
}

/* ========================================
   SECTION DIVIDER
======================================== */
.section-divider {
    width: 100%;
    height: 0.06944vw;
    background-color: #ddd;
}

/* ========================================
   $ASTRO TOKEN SECTION — PULSE MONITOR
======================================== */
.token-section {
    background: #f2f2f2;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.pulse-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    z-index: 1;
}

/* ── Pixel dots ── */
.pulse-spike-point {
    position: absolute;
    pointer-events: auto;
    padding: 1.38889vw;
    cursor: crosshair;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s steps(4);
}
.pulse-spike-point.visible { opacity: 1; }

.pulse-spike-dot {
    width: 0.69444vw;
    height: 0.69444vw;
    border-radius: 0;
    background: #111;
    position: relative;
    animation: pulseDotBlink 1s steps(2) infinite;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}
.pulse-spike-dot::before {
    content: '';
    position: absolute;
    inset: -0.34722vw;
    border: 2px solid rgba(0, 0, 0, 0.15);
    animation: pulseDotExpand 2s steps(4) infinite;
}

@keyframes pulseDotBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.4; }
}
@keyframes pulseDotExpand {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.6); opacity: 0; }
}

.pulse-spike-point:hover .pulse-spike-dot,
.pulse-spike-point.tapped .pulse-spike-dot {
    animation: none;
    opacity: 1;
    background: #d00;
    box-shadow: 0 0 0 2px rgba(200, 0, 0, 0.3);
}

/* Ghost dot */
.pulse-spike-ghost .pulse-spike-dot {
    background: rgba(0, 0, 0, 0.2);
}
.pulse-spike-ghost .pulse-spike-dot::before {
    border-color: rgba(0, 0, 0, 0.06);
}

/* ── Pixel Tooltip ── */
.pulse-spike-tooltip {
    position: absolute;
    bottom: calc(100% + 0.41667vw);
    left: 50%;
    transform: translateX(-50%) translateY(0.41667vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s steps(3), transform 0.2s steps(3);
    pointer-events: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0.55556vw 0.97222vw;
}
.pulse-spike-below .pulse-spike-tooltip {
    bottom: auto;
    top: calc(100% + 0.41667vw);
    transform: translateX(-50%) translateY(-0.41667vw);
}
.pulse-spike-point:hover .pulse-spike-tooltip,
.pulse-spike-point.tapped .pulse-spike-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pulse-spike-tt-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.69444vw;
    letter-spacing: 0.06944vw;
    text-transform: uppercase;
    color: #111;
}
.pulse-spike-tt-desc {
    font-family: 'VT323', monospace;
    font-size: 1.11111vw;
    letter-spacing: 0.06944vw;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 0.41667vw;
}
.pulse-spike-point:hover .pulse-spike-tt-title,
.pulse-spike-point.tapped .pulse-spike-tt-title { color: #d00; }

.pulse-spike-ghost .pulse-spike-tt-title { color: rgba(0, 0, 0, 0.25); }
.pulse-spike-ghost .pulse-spike-tt-desc { color: rgba(0, 0, 0, 0.12); }

/* ── Terminal ── */
.pulse-terminal {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
    text-align: center;
}
.pulse-terminal-line {
    font-family: 'VT323', monospace;
    font-size: 1.38889vw;
    letter-spacing: 0.13889vw;
    color: rgba(0, 0, 0, 0.35);
    opacity: 0;
    margin-bottom: 0.41667vw;
    white-space: nowrap;
}
.pulse-terminal-line.visible { opacity: 1; }

.pulse-terminal-cursor {
    display: inline-block;
    width: 0.69444vw;
    height: 0.13889vw;
    background: rgba(0, 0, 0, 0.4);
    vertical-align: middle;
    margin-left: 0.13889vw;
    animation: pulseCursorBlink 0.6s steps(2) infinite;
}
@keyframes pulseCursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ── Top bar ── */
.pulse-top-bar {
    position: absolute;
    top: 1.94444vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 1.25vw;
    white-space: nowrap;
}
.pulse-top-status {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.83333vw;
    letter-spacing: 0.13889vw;
    padding: 0.41667vw 0.97222vw;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.3);
}
.pulse-top-status-dot {
    display: inline-block;
    width: 0.55556vw;
    height: 0.55556vw;
    background: rgba(0, 0, 0, 0.2);
    margin-right: 0.55556vw;
    animation: pulseStatusBlink 1.5s steps(2) infinite;
}
@keyframes pulseStatusBlink {
    0%, 59% { opacity: 1; }
    60%, 100% { opacity: 0.3; }
}
.pulse-top-sep {
    font-family: 'VT323', monospace;
    font-size: 1.66667vw;
    color: rgba(0, 0, 0, 0.1);
}
.pulse-top-token {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.97222vw;
    letter-spacing: 0.20833vw;
    color: rgba(0, 0, 0, 0.45);
}
.pulse-top-pulse {
    font-family: 'VT323', monospace;
    font-size: 1.80556vw;
    letter-spacing: 0.13889vw;
    color: rgba(0, 0, 0, 0.25);
}
.pulse-top-pulse-num {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.90278vw;
    color: rgba(0, 0, 0, 0.35);
    letter-spacing: 0.06944vw;
}

/* ========================================
   FOOTER SECTION
======================================== */
/* Footer — simple centered, mostly black gradient */
.footer-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 1.5vw, 28px);
    padding: clamp(56px, 5vw, 80px) 24px clamp(12px, 1vw, 16px);
    background: #000;
    text-align: center;
}

/* Star logo — overlaps boundary with previous section */
.footer-star {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.footer-star img {
    width: clamp(56px, 6vw, 96px);
    height: auto;
    display: block;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.8vw, 32px);
}

.footer-nav a {
    font-family: var(--font-heading);
    font-size: clamp(14px, 1.3vw, 20px);
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.6;
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: clamp(10px, 0.75vw, 12px);
    color: #fff;
    margin-top: auto;
}

/* ========================================
   BLACK ROOM PAGE
======================================== */
.header-dark {
    background: transparent;
}

.header-minimal {
    justify-content: center;
}

.header-minimal .logo {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 200;
}

.blackroom-page {
    min-height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.blackroom-page.br-in-room {
    overflow: hidden;
    background-color: #000;
}

/* ---- Lock overlay for holder-gated panels ---- */

.br-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.69444vw;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.br-panel-locked .br-lock-overlay {
    opacity: 1;
    pointer-events: all;
}

.br-panel-locked {
    cursor: default;
}

.br-panel-locked:hover {
    background-size: 100%;
}

.br-lock-icon {
    width: 2.22222vw;
    height: 2.22222vw;
    color: rgba(255, 255, 255, 0.7);
}

.br-lock-text {
    font-family: var(--font-mono);
    font-size: 0.97222vw;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.06944vw;
    text-align: center;
}

.br-lock-link {
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.06944vw;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.br-lock-link:hover {
    opacity: 0.7;
}

/* ---- Black Room header: hide nav/wallet, center logo ---- */

.br-active .nav,
.br-active .wallet-area,
.br-active .mobile-menu-toggle {
    display: none !important;
}

.br-active .header {
    justify-content: center;
}

.br-active .logo {
    position: fixed;
    top: -0.69444vw;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 200;
}

/* Room title — hidden (logo serves as title) */
.br-room-title {
    display: none;
    z-index: 3;
    pointer-events: none;
}

/* ---- Black Room: Room Content ---- */
.br-room {
    position: fixed;
    inset: 0;
    background: #fff;
    padding: 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 50;
}

.br-room-visible {
    opacity: 1;
}

/* Bento Grid — 3 cols, 10 rows, asymmetric */
.br-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(10, 1fr);
    gap: 1.38889vw;
    height: 100%;
}

/* Panel base */
.br-panel {
    display: block;
    position: relative;
    border-radius: 0.97222vw;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s ease;
}

/* Gradient overlay */
.br-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.br-panel:hover {
    transform: scale(1.1);
}

/* Panel label — bottom-left */
.br-panel-label {
    position: absolute;
    bottom: 1.25vw;
    left: 1.38889vw;
    font-family: var(--font-heading);
    font-size: 1.52778vw;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.06944vw;
    z-index: 1;
    text-transform: uppercase;
}

/* Grid placements — asymmetric bento */
.br-p1 { grid-column: 1; grid-row: 1 / 7; }
.br-p2 { grid-column: 2; grid-row: 1 / 3; }
.br-p3 { grid-column: 3; grid-row: 1 / 8; }
.br-p4 { grid-column: 2; grid-row: 3 / 8; }
.br-p5 { grid-column: 1; grid-row: 7 / 11; }
.br-p6 { grid-column: 2; grid-row: 8 / 11; width: 70%; justify-self: end; }

/* Hanging Astro — sits between Beta's and Other, top touches Shame Wall bottom */
.br-hanging-astro {
    grid-column: 2;
    grid-row: 8 / 11;
    justify-self: start;
    align-self: start;
    margin-top: -1.38889vw;
    max-height: calc(100% + 1.38889vw);
    width: auto;
    max-width: 30%;
    object-fit: contain;
    object-position: top left;
    z-index: 0;
    pointer-events: none;
}
.br-bottom-right {
    grid-column: 3;
    grid-row: 8 / 11;
    display: flex;
    gap: 1.38889vw;
}

.br-bottom-right .br-panel {
    flex: 1;
    min-height: 0;
}

.br-bottom-right .br-panel-title {
    flex: 0.4;
}

.br-panel-title .br-panel-label {
    left: auto;
    right: 1.38889vw;
    text-align: right;
}

/* Fade overlay — click transition */
.br-fade-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.br-fade-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.br-panel.br-panel-active {
    transform: scale(1.03);
    z-index: 10;
}

/* ---- Black Room Responsive: Tablet ---- */
@media (max-width: 1024px) and (min-width: 769px) {
  html:not(.desktop) {
    .br-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(8, 1fr);
    }
    .br-p1 { grid-column: 1; grid-row: 1 / 5; }
    .br-p2 { grid-column: 2; grid-row: 1 / 3; }
    .br-p3 { grid-column: 2; grid-row: 3 / 5; }
    .br-p4 { grid-column: 1; grid-row: 5 / 7; }
    .br-p5 { grid-column: 2; grid-row: 5 / 7; }
    .br-p6 { grid-column: 1; grid-row: 7 / 9; }
    .br-bottom-right { grid-column: 2; grid-row: 7 / 9; }
  }
}

/* ---- Black Room Responsive: Mobile ---- */
@media (max-width: 768px) {
  html:not(.desktop) {
    .blackroom-page.br-in-room {
        overflow: auto;
    }
    .br-room {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .br-room-title {
        position: relative;
        top: auto;
        left: auto;
        display: block;
        margin-bottom: 2.08333vw;
    }
    .br-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
    }
    .br-panel {
        height: 26.04167vw;
    }
    .br-p1, .br-p2, .br-p3, .br-p4,
    .br-p5, .br-p6 {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        justify-self: stretch;
    }
    .br-bottom-right {
        grid-column: 1;
        grid-row: auto;
    }
    .br-bottom-right .br-panel {
        height: 26.04167vw;
    }
    .br-hanging-astro {
        display: none;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .br-bottom-right {
        flex-direction: column;
    }
    .br-bottom-right .br-panel-title {
        flex: 1;
    }
  }
}

/* ========================================
   MOVEMENT — Terminal UI
======================================== */

.cp-page .xc-section,
.sb-page .xc-section,
.sw-page .xc-section { visibility: visible; max-width: 660px; }
.cp-page .xc-term-header,
.sb-page .xc-term-header,
.sw-page .xc-term-header { max-width: 1100px; }

/* Movement-specific terminal styles */
.cp-card-title { font-size: 22px; margin: 0 0 4px; font-family: inherit; font-weight: normal; }
.cp-card-desc { margin: 0 0 12px; color: rgba(0,0,0,0.5); }
.cp-card-badge { font-size: 14px; letter-spacing: 2px; }
.cp-badge-completed { color: #16a34a; }
.cp-badge-failed { color: #dc2626; }
.cp-result-text { margin: 4px 0 0; color: rgba(0,0,0,0.5); }

.cp-countdown { display: flex; align-items: baseline; gap: 2px; margin-bottom: 12px; }
.cp-cd-num { font-size: 28px; }
.cp-cd-sep { color: rgba(0,0,0,0.3); margin: 0 4px; }

.cp-progress-section { margin-bottom: 12px; }
.cp-progress-labels { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.cp-progress-labels span:last-child { margin-left: auto; color: rgba(0,0,0,0.4); }
.cp-progress-track { width: 100%; height: 6px; background: rgba(0,0,0,0.08); border-radius: 3px; overflow: hidden; }
.cp-progress-fill { height: 100%; background: rgba(0,0,0,0.6); border-radius: 3px; transition: width 0.8s ease; }

.cp-milestones-section { margin-bottom: 12px; }
.cp-section-label { font-size: 14px; color: rgba(0,0,0,0.35); letter-spacing: 2px; display: block; margin-bottom: 4px; }
.cp-milestones-track { position: relative; padding-bottom: 6px; }
.cp-milestones-bar { width: 100%; height: 4px; background: rgba(0,0,0,0.08); border-radius: 2px; overflow: hidden; }
.cp-milestones-bar-fill { height: 100%; background: rgba(0,0,0,0.5); border-radius: 2px; transition: width 0.8s ease; }
.cp-milestones-markers { position: relative; height: 0; }
.cp-ms-marker { position: absolute; top: -3px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; cursor: default; }
.cp-ms-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,0.12); border: 2px solid rgba(0,0,0,0.08); }
.cp-ms-reached .cp-ms-dot { background: rgba(0,0,0,0.6); border-color: rgba(0,0,0,0.6); }
.cp-ms-tooltip { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: #fff; border: 2px solid rgba(0,0,0,0.1); padding: 4px 8px; white-space: nowrap; display: none; flex-direction: column; gap: 1px; z-index: 5; font-size: 14px; }
.cp-ms-marker:hover .cp-ms-tooltip { display: flex; }
.cp-ms-tooltip strong { color: rgba(0,0,0,0.85); }
.cp-ms-tooltip span { color: rgba(0,0,0,0.4); font-size: 13px; }

.cp-reward-section { margin-bottom: 12px; }
.cp-reward-text { margin: 0; color: rgba(0,0,0,0.65); }

.cp-rules-section { margin-bottom: 8px; }
.cp-rules-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; font: inherit; font-size: 14px; color: rgba(0,0,0,0.35); letter-spacing: 2px; background: none; border: none; padding: 6px 0; cursor: pointer; }
.cp-rules-toggle:hover { color: rgba(0,0,0,0.6); }
.cp-rules-arrow { font-size: 12px; transition: transform 0.2s; }
.cp-rules-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 200px; transition: max-height 0.3s ease, opacity 0.3s ease; opacity: 1; overflow: hidden; }
.cp-rules-hidden { max-height: 0; opacity: 0; }
.cp-rules-list li { color: rgba(0,0,0,0.5); padding-left: 12px; position: relative; }
.cp-rules-list li::before { content: '—'; position: absolute; left: 0; color: rgba(0,0,0,0.2); }

.cp-join-section { margin-top: 12px; }
.cp-join-btn { /* uses .xc-term-btn */ }
.cp-join-btn-joined { opacity: 0.5; cursor: default; }
.cp-join-count-wrap { font-size: 16px; }
.cp-join-status { margin: 4px 0 0; min-height: 1.2em; font-size: 14px; }
.cp-join-error { color: #dc2626; }

.cp-participants { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 80px; overflow-y: auto; }
.cp-participant { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(0,0,0,0.1); flex-shrink: 0; }
.cp-participant:hover { border-color: rgba(0,0,0,0.4); }
.cp-participant img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cp-history-list { display: flex; flex-direction: column; gap: 8px; }
.cp-hist-card { padding: 8px 12px; border: 1px solid rgba(0,0,0,0.08); border-radius: 4px; }
.cp-hist-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cp-hist-badge { font-size: 13px; letter-spacing: 1px; padding: 1px 6px; border-radius: 3px; }
.cp-hist-completed .cp-hist-badge { color: #16a34a; background: rgba(22,163,74,0.08); }
.cp-hist-failed .cp-hist-badge { color: #dc2626; background: rgba(220,38,38,0.08); }
.cp-hist-title { font-size: 18px; color: rgba(0,0,0,0.6); }
.cp-hist-stats { font-size: 14px; color: rgba(0,0,0,0.35); }


/* ========================================
   STORYBOOK
======================================== */

.st-page-wrap {
    position: fixed;
    inset: 0;
    background: url('/blackroom/xp-cards/Assets/xp-card-29.png') center center / cover no-repeat #0a0a0a;
    overflow: hidden;
}

.st-page-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* ---- Cover ---- */

.st-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    z-index: 10;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.st-cover-exit {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.st-cover-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.38889vw;
}

.st-cover-title {
    font-family: var(--font-heading);
    font-size: 6.94444vw;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.41667vw;
    line-height: 1;
    text-align: center;
}

.st-cover-subtitle {
    font-family: var(--font-mono);
    font-size: 1.11111vw;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.13889vw;
}

.st-cover-btn {
    font-family: var(--font-heading);
    font-size: 1.94444vw;
    font-weight: 900;
    color: #fff;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.55556vw;
    padding: 0.83333vw 2.77778vw;
    cursor: pointer;
    letter-spacing: 0.13889vw;
    margin-top: 1.38889vw;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.st-cover-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.st-cover-hint {
    display: flex;
    align-items: center;
    gap: 0.55556vw;
    margin-top: 0.69444vw;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
    font-size: 0.83333vw;
    font-style: italic;
    letter-spacing: 0.06944vw;
}

.st-headphones-icon {
    width: 1.25vw;
    height: 1.25vw;
}

/* ---- Book ---- */

.st-book {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    z-index: 5;
}

.st-spread {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 97.22222vw;
    max-height: 90vh;
    margin: 0 auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.st-turn-next .st-spread {
    animation: stTurnNext 0.4s ease both;
}

.st-turn-prev .st-spread {
    animation: stTurnPrev 0.4s ease both;
}

@keyframes stTurnNext {
    0%   { opacity: 1; transform: translateX(0); }
    40%  { opacity: 0; transform: translateX(-4.16667vw); }
    60%  { opacity: 0; transform: translateX(4.16667vw); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes stTurnPrev {
    0%   { opacity: 1; transform: translateX(0); }
    40%  { opacity: 0; transform: translateX(4.16667vw); }
    60%  { opacity: 0; transform: translateX(-4.16667vw); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ---- Pages ---- */

.st-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
    position: relative;
}

.st-page-left {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.st-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.st-page-placeholder {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
}

.st-page-num {
    font-family: var(--font-heading);
    font-size: 8.33333vw;
    color: rgba(255, 255, 255, 0.08);
    user-select: none;
}

.st-page-blank {
    background: #0d0d0d;
}

/* ---- Navigation Arrows ---- */

.st-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.33333vw;
    height: 5.55556vw;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 0.55556vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 5;
}

.st-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.st-nav-btn svg {
    width: 1.66667vw;
    height: 1.66667vw;
}

.st-nav-prev {
    left: 1.11111vw;
}

.st-nav-next {
    right: 1.11111vw;
}

/* ---- Progress Indicator ---- */

.st-progress {
    position: absolute;
    bottom: 1.38889vw;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.13889vw;
    z-index: 5;
    pointer-events: none;
}

/* ---- Audio Bar ---- */

.st-audio-bar {
    position: absolute;
    bottom: 1.11111vw;
    right: 1.38889vw;
    display: flex;
    align-items: center;
    gap: 0.69444vw;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.55556vw;
    padding: 0.41667vw 0.97222vw;
    z-index: 5;
}

.st-audio-btn {
    display: flex;
    align-items: center;
    gap: 0.41667vw;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    letter-spacing: 0.06944vw;
    cursor: pointer;
    padding: 0.27778vw 0.41667vw;
    border-radius: 0.27778vw;
    transition: color 0.2s ease, background 0.2s ease;
}

.st-audio-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.st-audio-btn.st-audio-active {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

.st-audio-btn svg {
    width: 1.11111vw;
    height: 1.11111vw;
}

.st-audio-divider {
    width: 0.06944vw;
    height: 1.25vw;
    background: rgba(255, 255, 255, 0.1);
}

.st-volume {
    width: 4.86111vw;
    height: 0.27778vw;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.13889vw;
    outline: none;
    cursor: pointer;
}

.st-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0.83333vw;
    height: 0.83333vw;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.st-volume::-moz-range-thumb {
    width: 0.83333vw;
    height: 0.83333vw;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
}

/* ---- Storybook Responsive: Mobile ---- */

@media (max-width: 768px) {
  html:not(.desktop) {
    .st-cover-title {
        font-size: 7.29167vw;
        letter-spacing: 0.39062vw;
    }

    .st-cover-subtitle {
        font-size: 1.69271vw;
    }

    .st-cover-btn {
        font-size: 2.86458vw;
        padding: 1.30208vw 3.90625vw;
    }

    .st-spread {
        max-height: 100vh;
    }

    .st-nav-btn {
        width: 4.6875vw;
        height: 7.8125vw;
    }

    .st-nav-prev {
        left: 1.04167vw;
    }

    .st-nav-next {
        right: 1.04167vw;
    }

    .st-audio-bar {
        bottom: 1.30208vw;
        right: 1.30208vw;
        left: 1.30208vw;
        justify-content: center;
        padding: 1.04167vw 1.30208vw;
    }

    .st-progress {
        bottom: 7.8125vw;
    }
  }
}

/* ========================================
   STORYBOOK — CHAPTER SELECTOR (Spine Rack)
======================================== */

/* Story page: logo on the left */
[data-logo-left] .header-minimal {
    justify-content: flex-start;
}
[data-logo-left] .header-minimal .logo {
    position: relative;
    left: auto;
    transform: none;
    margin: -0.69444vw 0 0 -0.69444vw;
}

/* Container */
.st-chapters {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 2.77778vw 1.38889vw;
}

.st-chapters-header {
    text-align: center;
    margin-bottom: 2.77778vw;
}

.st-chapters-title {
    font-family: var(--font-heading);
    font-size: clamp(1.94444vw, 5vw, 3.61111vw);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.41667vw;
    line-height: 0.95;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ---- 3D Book ---- */
.st-book3d-wrap {
    perspective: 104.16667vw;
    perspective-origin: 50% 50%;
    -webkit-user-select: none;
    user-select: none;
    padding: 2.77778vw;
}

.st-book3d {
    width: 18.05556vw;
    height: 25.69444vw;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(5deg) rotateY(-25deg);
    transition: transform 0.6s ease-out;
}

/* Front cover */
.st-book3d-front {
    position: absolute;
    width: 18.05556vw;
    height: 25.69444vw;
    left: 0; top: 0;
    border-radius: 0 0.69444vw 0.69444vw 0;
    overflow: hidden;
    transform: translateZ(1.21528vw);
    backface-visibility: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.st-book3d-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    display: block;
}

.st-book3d-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.83333vw;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* Spine (left edge) */
.st-book3d-spine {
    position: absolute;
    width: 2.43056vw;
    height: 25.69444vw;
    left: 50%;
    top: 0;
    margin-left: -1.21528vw;
    background: linear-gradient(to right, #161616, #222, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: rotateY(-90deg) translateZ(9.02778vw);
}

/* Pages (right edge) */
.st-book3d-pages {
    position: absolute;
    width: 2.43056vw;
    height: 24.30556vw;
    left: 50%;
    top: 0.69444vw;
    margin-left: -1.21528vw;
    background: repeating-linear-gradient(
        to bottom,
        #f5f0e6 0, #f5f0e6 0.13889vw,
        #ede5d5 0.13889vw, #ede5d5 0.27778vw
    );
    border-radius: 0 0.13889vw 0.13889vw 0;
    transform: rotateY(90deg) translateZ(9.02778vw);
}

/* Top edge */
.st-book3d-top {
    position: absolute;
    width: 18.05556vw;
    height: 2.43056vw;
    left: 0;
    top: 50%;
    margin-top: -1.21528vw;
    background: linear-gradient(to bottom, #e8e0d0, #d5cfc0);
    transform: rotateX(90deg) translateZ(12.84722vw);
}

/* Bottom edge */
.st-book3d-bottom {
    position: absolute;
    width: 18.05556vw;
    height: 2.43056vw;
    left: 0;
    top: 50%;
    margin-top: -1.21528vw;
    background: linear-gradient(to top, #e8e0d0, #d5cfc0);
    transform: rotateX(-90deg) translateZ(12.84722vw);
}

/* Front cover text */
.st-book3d-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.33333vw;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.27778vw;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.st-book3d-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.80556vw;
    color: #fff;
    letter-spacing: 0.27778vw;
    text-align: center;
    padding: 0 1.94444vw;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.st-book3d-cta {
    font-family: 'Space Mono', monospace;
    font-size: 0.69444vw;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.27778vw;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.41667vw 1.52778vw;
    border-radius: 0.34722vw;
    margin-top: 0.83333vw;
}

/* Hint text */
.st-chapters-hint {
    font-family: 'Space Mono', monospace;
    font-size: 0.83333vw;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.20833vw;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-top: 2.22222vw;
}

/* Back button */
.st-back-btn {
    position: absolute;
    top: 1.11111vw;
    left: 1.38889vw;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.41667vw;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 0.55556vw;
    padding: 0.55556vw 1.11111vw 0.55556vw 0.69444vw;
    font-family: 'Space Mono', monospace;
    font-size: 0.83333vw;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.st-back-btn svg {
    width: 1.11111vw;
    height: 1.11111vw;
}

.st-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile story */
@media (max-width: 768px) {
  html:not(.desktop) {
    .st-chapters-title {
        font-size: 4.6875vw;
        letter-spacing: 0.52083vw;
    }
    .st-chapters-header {
        margin-bottom: 3.125vw;
    }
    .st-book3d-wrap {
        padding: 2.60417vw;
    }
    .st-book3d {
        width: 40vw;
        height: 57vw;
    }
    .st-book3d-front {
        width: 40vw;
        height: 57vw;
    }
    .st-book3d-spine {
        height: 57vw;
        transform: rotateY(-90deg) translateZ(20vw);
    }
    .st-book3d-pages {
        height: 54vw;
        transform: rotateY(90deg) translateZ(20vw);
    }
    .st-book3d-top {
        width: 40vw;
        transform: rotateX(90deg) translateZ(28.5vw);
    }
    .st-book3d-bottom {
        width: 40vw;
        transform: rotateX(-90deg) translateZ(28.5vw);
    }
    .st-book3d-name {
        font-size: 2.60417vw;
        padding: 0 2.60417vw;
    }
    .st-book3d-num {
        font-size: 4.6875vw;
    }
    .st-back-btn {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 8px 14px 8px 10px;
        gap: 4px;
        border-radius: 8px;
        min-height: 44px;
    }
    .st-back-btn svg {
        width: 14px;
        height: 14px;
    }
    .st-book3d-cta {
        font-size: 10px;
        padding: 6px 16px;
        letter-spacing: 2px;
        border-radius: 6px;
    }
    .st-chapters-hint {
        font-size: 10px;
        letter-spacing: 2px;
        margin-top: 20px;
    }
    .st-nav-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    .st-nav-btn svg {
        width: 20px;
        height: 20px;
    }
  }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
  html:not(.desktop) {

    /* ── Header — Mobile ── */
    .header {
        padding: 1.95312vw 2.60417vw;
        justify-content: center;
    }

    .logo {
        font-size: 2.86458vw;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 6vw;
    }

    /* Hide wallet on mobile — it moves inside hamburger menu */
    .wallet-area {
        display: none;
    }

    .connect-btn {
        font-size: 2.34375vw;
    }

    /* Hamburger — clean minimal design */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 2.60417vw;
        top: 50%;
        transform: translateY(-50%);
        width: 4.16667vw;
        height: 4.16667vw;
        z-index: 200;
    }

    .mobile-menu-toggle span {
        width: 2.86458vw;
        height: 0.19531vw;
        background: currentColor;
    }

    /* Full-screen mobile nav */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(3.90625vw);
        -webkit-backdrop-filter: blur(3.90625vw);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 150;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 3.64583vw;
        text-align: center;
    }

    .nav-link {
        font-size: 2.86458vw;
        justify-content: center;
        color: #fff;
    }

    /* Mobile dropdown — match desktop glassmorphism style */
    .dropdown-menu {
        position: static;
        transform: none !important;
        margin-top: 1.5625vw;
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(2.08333vw);
        -webkit-backdrop-filter: blur(2.08333vw);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1.5625vw;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        padding: 0;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .nav-item.active .dropdown-menu {
        max-height: 65.10417vw;
        padding: 1.5625vw 0;
    }

    .dropdown-section-title {
        color: rgba(255, 255, 255, 0.35);
    }

    .dropdown-item-more {
        color: rgba(255, 255, 255, 0.8);
    }

    .dropdown-item-more:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .dropdown-item-disabled {
        color: rgba(255, 255, 255, 0.3);
    }

    /* Wallet button inside mobile nav */
    .nav .mobile-wallet-area {
        margin-top: 3.90625vw;
    }

    .hero-footer {
        bottom: 2.60417vw;
    }

    .built-on {
        font-size: 11px;
    }

    .abstract-logo {
        height: 12px;
    }

    .abstract-logo span {
        font-size: 12px;
    }

    /* Meet Astros - Mobile */
    .ma-dot { width: 6px; height: 6px; }

    .ma-chat-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 200;
    }

    .ma-chat {
        padding: 16px;
        border-radius: 0;
        background: #fff;
    }

    .ma-chat-header { display: flex; }

    .ma-chat-input { font-size: 16px !important; }

    /* SOVA - Mobile */
    .sova-section {
        padding: 5.20833vw 2.60417vw;
        min-height: auto;
    }

    .sova-title {
        font-size: 5.20833vw;
    }

    .sova-cta {
        font-size: 12px;
    }

    .sova-center {
        width: 26.04167vw;
    }

    .sova-left,
    .sova-right {
        width: 10.41667vw;
    }

    .sova-shadow {
        width: 7.8125vw;
        height: 1.95312vw;
    }

    .sova-tag {
        font-size: 11px;
    }

    /* Token / Pulse - Mobile */
    .pulse-top-bar {
        top: 8px;
        gap: 6px;
    }
    .pulse-top-sep { display: none; }
    .pulse-top-status { font-size: 9px; padding: 3px 8px; letter-spacing: 1px; }
    .pulse-top-status-dot { width: 5px; height: 5px; margin-right: 4px; }
    .pulse-top-token { font-size: 9px; letter-spacing: 2px; }
    .pulse-top-pulse { font-size: 14px; }
    .pulse-top-pulse-num { font-size: 9px; }

    .pulse-terminal { bottom: 10%; }
    .pulse-terminal-line { font-size: 11px; letter-spacing: 1px; }

    .pulse-spike-point { padding: 14px; }
    .pulse-spike-dot { width: 8px; height: 8px; }
    .pulse-spike-dot::before { inset: -6px; }

    .pulse-spike-tooltip { padding: 4px 8px; }
    .pulse-spike-tt-title { font-size: 9px; }
    .pulse-spike-tt-desc { font-size: 11px; }

    /* Blackroom - Mobile */
    .blackroom-title {
        font-size: 10.41667vw;
    }

    .br-denied-text {
        font-size: 3.125vw;
    }

  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
======================================== */
@media (max-width: 480px) {
  html:not(.desktop) {
    .header {
        padding: 3.125vw 4.16667vw;
    }

    .logo {
        font-size: 3.75vw;
    }

    .logo img {
        height: 8vw;
    }

    .nav-link {
        font-size: 4.16667vw;
    }

    /* SOVA - Small Mobile */
    .sova-title {
        font-size: 6.66667vw;
    }

    .sova-center {
        width: 31.25vw;
    }

    .sova-left,
    .sova-right {
        width: 12.5vw;
    }

    /* Token / Pulse - Small Mobile */
    .pulse-top-bar {
        top: 6px;
        gap: 4px;
    }
    .pulse-top-status { font-size: 8px; padding: 2px 6px; }
    .pulse-top-token { font-size: 8px; letter-spacing: 1px; }
    .pulse-top-pulse { font-size: 12px; }
    .pulse-top-pulse-num { font-size: 8px; }

    .pulse-terminal { bottom: 8%; }
    .pulse-terminal-line { font-size: 10px; }

    .pulse-spike-tt-title { font-size: 8px; }
    .pulse-spike-tt-desc { font-size: 10px; }

    /* Blackroom - Small Mobile */
    .blackroom-title {
        font-size: 10.41667vw;
    }

    .br-denied-text {
        font-size: 4.16667vw;
    }

  }
}

/* ========================================
   SHAME WALL — Terminal UI
======================================== */

.sw-list { display: flex; flex-direction: column; gap: 0; }
.sw-row { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.sw-row:last-child { border-bottom: none; }
.sw-row:hover { background: rgba(0,0,0,0.02); }
.sw-rank { font-size: 24px; color: rgba(0,0,0,0.35); min-width: 48px; text-align: center; }
.sw-rank-1 { color: #b8860b; }
.sw-rank-2 { color: #808090; }
.sw-rank-3 { color: #a0522d; }
.sw-nft { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sw-nft-empty { display: inline-block; background: rgba(0,0,0,0.05); }
.sw-address { flex: 1; color: rgba(0,0,0,0.65); text-decoration: none; letter-spacing: 0.5px; }
.sw-address:hover { color: rgba(0,0,0,0.9); }
.sw-count { font-size: 24px; color: rgba(0,0,0,0.75); min-width: 40px; text-align: right; }
.sw-count-label { font-size: 12px; color: rgba(0,0,0,0.3); letter-spacing: 1px; text-transform: uppercase; }

/* ========================================
   SUGGESTION BOX — Terminal UI
======================================== */

.sb-form-msg { margin: 0; text-align: center; }
.sb-textarea { width: 100%; background: transparent; color: rgba(0,0,0,0.85); border: 2px solid rgba(0,0,0,0.12); padding: 10px 12px; font: inherit; font-size: 16px; resize: none; outline: none; box-sizing: border-box; border-radius: 0; }
.sb-textarea::placeholder { color: rgba(0,0,0,0.25); }
.sb-textarea:focus { border-color: rgba(0,0,0,0.3); }
.sb-form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.sb-char-count { font-size: 14px; }
.sb-form-error { color: #dc2626; margin-top: 6px; text-align: center; font-size: 14px; }

.sb-loading, .sb-error, .sb-empty { text-align: center; padding: 32px 16px; }
.sb-list { display: flex; flex-direction: column; gap: 12px; max-height: 50vh; overflow-y: auto; }
.sb-list::-webkit-scrollbar { width: 4px; }
.sb-list::-webkit-scrollbar-track { background: transparent; }
.sb-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.sb-item { padding: 12px; border: 1px solid rgba(0,0,0,0.08); border-radius: 4px; }
.sb-item:hover { border-color: rgba(0,0,0,0.15); }
.sb-item-text { color: rgba(0,0,0,0.8); margin: 0 0 8px; word-wrap: break-word; overflow-wrap: break-word; }
.sb-item-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.sb-item-author { font-size: 14px; color: rgba(0,0,0,0.35); text-decoration: none; }
.sb-item-author:hover { color: rgba(0,0,0,0.6); }
.sb-item-time { font-size: 14px; color: rgba(0,0,0,0.25); }
.sb-item-footer { display: flex; justify-content: flex-end; }
.sb-vote-btn { display: flex; align-items: center; gap: 6px; background: transparent; border: 2px solid rgba(0,0,0,0.1); padding: 4px 12px; cursor: pointer; font: inherit; color: rgba(0,0,0,0.4); border-radius: 0; }
.sb-vote-btn:hover { border-color: rgba(0,0,0,0.3); color: rgba(0,0,0,0.7); }
.sb-vote-btn.sb-voted { background: rgba(0,0,0,0.85); border-color: rgba(0,0,0,0.85); color: #fff; }
.sb-vote-btn:disabled { opacity: 0.5; cursor: default; }
.sb-vote-arrow { font-size: 12px; line-height: 1; }
.sb-vote-count { font-size: 16px; }

/* ========================================
   GALLERY PAGE — The White Space
======================================== */


/* --- Page --- */
.ws-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* --- Loading --- */
.ws-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    transition: opacity 0.4s ease;
}

.ws-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.ws-loading p {
    font-family: var(--font-mono);
    font-size: 0.83333vw;
    letter-spacing: 0.20833vw;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
}

.ws-dots span {
    opacity: 0;
}

.ws-dots span:nth-child(1) { animation: wsDot1 1.6s infinite; }
.ws-dots span:nth-child(2) { animation: wsDot2 1.6s infinite; }
.ws-dots span:nth-child(3) { animation: wsDot3 1.6s infinite; }

@keyframes wsDot1 {
    0%, 75% { opacity: 1; }
    75.1%, 100% { opacity: 0; }
}

@keyframes wsDot2 {
    0%, 25% { opacity: 0; }
    25.1%, 75% { opacity: 1; }
    75.1%, 100% { opacity: 0; }
}

@keyframes wsDot3 {
    0%, 50% { opacity: 0; }
    50.1%, 75% { opacity: 1; }
    75.1%, 100% { opacity: 0; }
}

/* --- Viewport & World --- */
.ws-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.ws-viewport.dragging {
    cursor: grabbing;
}

.ws-world {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
}

/* --- NFT Tiles --- */
.ws-nft {
    position: absolute;
    border-radius: 0.97222vw;
    overflow: hidden;
    cursor: pointer;
    background: #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transform: rotate(var(--r, 0deg)) translateX(var(--sx, 0));
    transition: transform 0.35s cubic-bezier(0.25,0.1,0.25,1), box-shadow 0.2s ease, border-radius 0.25s ease;
}

.ws-nft:hover {
    transform: rotate(var(--r, 0deg)) translateX(var(--sx, 0)) translateY(-0.20833vw) scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    z-index: 10;
}

.ws-nft.ws-selected {
    z-index: 15;
    transform: rotate(0deg) translateX(var(--sx, 0));
    border-radius: 0.83333vw 0 0 0.83333vw;
    box-shadow: none;
}

.ws-nft.ws-selected:hover {
    transform: rotate(0deg) translateX(var(--sx, 0));
    box-shadow: none;
}

.ws-nft canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Golden Astro - subtle gold glow */
.ws-nft.ws-golden {
    box-shadow: 0 0 0 2px #d4a843, 0 2px 12px rgba(212,168,67,0.25);
}

.ws-nft.ws-golden:hover {
    box-shadow: 0 0 0 2px #d4a843, 0 6px 24px rgba(212,168,67,0.35);
}

/* 1/1 NFTs - subtle accent ring */
.ws-nft.ws-oneofone {
    box-shadow: 0 0 0 2px #1a1a2e, 0 2px 12px rgba(26,26,46,0.2);
}

.ws-nft.ws-oneofone:hover {
    box-shadow: 0 0 0 2px #1a1a2e, 0 6px 24px rgba(26,26,46,0.3);
}

/* Search states */
.ws-nft.ws-faded {
    opacity: 0.1 !important;
    pointer-events: none;
}

/* --- Inline Detail Card (slides from behind NFT) --- */
.ws-detail-card {
    position: absolute;
    background: #fff;
    border-radius: 1.11111vw;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    padding: 0.41667vw;
    display: flex;
    z-index: 14;
    box-sizing: border-box;
    overflow: hidden;
    animation: wsCardSlide 0.4s cubic-bezier(0.25,0.1,0.25,1) both;
}

@keyframes wsCardSlide {
    from { clip-path: inset(0 100% 0 0 round 1.11111vw); }
    to { clip-path: inset(0 0 0 0 round 1.11111vw); }
}

.ws-detail-spacer {
    flex-shrink: 0;
}

.ws-detail-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.97222vw 1.11111vw;
    gap: 0.55556vw;
    min-width: 0;
    overflow: hidden;
}

.ws-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.83333vw;
}

.ws-detail-name {
    font-family: var(--font-heading);
    font-size: 1.52778vw;
    color: #1a1a2e;
    letter-spacing: 0.10417vw;
    margin: 0;
    white-space: nowrap;
}

.ws-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.27778vw;
    font-family: var(--font-mono);
    font-size: 0.69444vw;
    color: #999;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.ws-detail-link:hover {
    color: #1a1a2e;
}

.ws-detail-traits {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.34722vw;
    flex: 1;
}

.ws-detail-trait {
    background: #f5f5f7;
    border-radius: 0.55556vw;
    padding: 0.48611vw 0.625vw;
    display: flex;
    flex-direction: column;
    gap: 0.13889vw;
    min-width: 0;
}

.ws-detail-type {
    font-family: var(--font-mono);
    font-size: 0.55556vw;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05556vw;
}

.ws-detail-value {
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    color: #1a1a2e;
    font-weight: 700;
    word-break: break-word;
}

.ws-detail-owner {
    display: flex;
    flex-direction: column;
    gap: 0.13889vw;
}

.ws-detail-owner-link {
    font-family: var(--font-mono);
    font-size: 0.69444vw;
    color: #666;
    text-decoration: none;
    cursor: pointer;
}

.ws-detail-owner-link:hover {
    color: #1a1a2e;
}

/* --- Search Command Palette --- */
.ws-filters {
    position: fixed;
    bottom: 1.66667vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.41667vw;
    z-index: 200;
}

.ws-filter-buttons {
    display: flex;
    gap: 0.41667vw;
    flex-wrap: wrap;
    justify-content: center;
}

.ws-filter-btn {
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    color: #555;
    background: #fff;
    border: 3px solid #1a1a2e;
    padding: 0.34722vw 0.83333vw;
    border-radius: 0.55556vw;
    box-shadow: 4px 4px 0 #1a1a2e;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ws-filter-btn:hover {
    color: #1a1a2e;
    background: #fff;
    transform: translateY(-0.20833vw);
    box-shadow: 6px 6px 0 #1a1a2e;
}

.ws-filter-btn.active {
    color: #fff;
    background: #1a1a2e;
    box-shadow: 4px 4px 0 #1a1a2e;
}

.ws-filter-buttons {
    position: relative;
}

.ws-dropup {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #fff;
    border: 3px solid #1a1a2e;
    border-radius: 0.55556vw;
    box-shadow: 4px 4px 0 #1a1a2e;
    padding: 0.41667vw;
    display: flex;
    flex-direction: column;
    gap: 0.13889vw;
    max-height: 18.05556vw;
    overflow-y: auto;
    min-width: 12.5vw;
    z-index: 210;
}

.ws-dropup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.83333vw;
    padding: 0.41667vw 0.69444vw;
    border: none;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    color: #333;
    border-radius: 0.27778vw;
    cursor: pointer;
    text-align: left;
}

.ws-dropup-item:hover {
    background: #f0f0f0;
}

.ws-dropup-item.active {
    background: #1a1a2e;
    color: #fff;
}

.ws-dropup-item.active .ws-dropup-count {
    color: rgba(255,255,255,0.6);
}

.ws-dropup-count {
    font-size: 0.69444vw;
    color: #999;
}

.ws-searchbar {
    display: flex;
    align-items: center;
    gap: 0.69444vw;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding: 0.83333vw 1.25vw;
    border-radius: 0.55556vw;
    border: 3px solid #1a1a2e;
    box-shadow: 4px 4px 0 #1a1a2e;
}

.ws-searchbar svg {
    flex-shrink: 0;
    color: #999;
}

.ws-searchbar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    color: #1a1a2e;
    background: transparent;
}

.ws-searchbar input::placeholder {
    color: #bbb;
}

/* --- Gallery Header: nav/wallet hidden, reveal on hover --- */
.ws-gallery-header .nav,
.ws-gallery-header .connect-btn,
.ws-gallery-header .wallet-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ws-gallery-header.header-reveal .nav,
.ws-gallery-header.header-reveal .connect-btn {
    opacity: 1;
    pointer-events: auto;
}

.ws-gallery-header.header-reveal .wallet-connected:hover .wallet-out {
    opacity: 1;
    transform: skewX(-10deg) rotate(-3deg) translateX(0);
    pointer-events: auto;
}

/* ========================================
   WHITE SPACE — RESPONSIVE
======================================== */
@media (max-width: 768px) {
  html:not(.desktop) {
    .ws-detail-traits {
        grid-template-columns: 1fr 1fr;
    }

    .ws-detail-name {
        font-size: 2.34375vw;
    }

    .ws-hint {
        bottom: 1.5625vw;
        right: 1.5625vw;
        font-size: 1.43229vw;
        padding: 0.78125vw 1.30208vw;
    }

    /* Gallery header: mobile menu overlay must be visible when opened */
    .ws-gallery-header .nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Gallery: always show wallet on mobile (no hover-to-reveal on touch) */
    .ws-gallery-header .connect-btn {
        opacity: 1;
        pointer-events: auto;
    }

    .ws-gallery-header .wallet-connected:hover .wallet-out {
        opacity: 1;
        pointer-events: auto;
    }

    /* Gallery filters: constrain to viewport on mobile */
    .ws-filters {
        left: 1.5625vw;
        right: 1.5625vw;
        transform: none;
        bottom: 2.08333vw;
    }

    .ws-filter-btn {
        font-size: 1.30208vw;
        padding: 0.52083vw 1.04167vw;
    }

    .ws-searchbar {
        padding: 1.30208vw 1.82292vw;
    }

    .ws-searchbar input {
        font-size: 1.5625vw;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .ws-detail-traits {
        grid-template-columns: 1fr 1fr;
    }

    .ws-detail-name {
        font-size: 3.33333vw;
    }

    .ws-filter-btn {
        font-size: 1.875vw;
        padding: 0.625vw 1.25vw;
        box-shadow: 3px 3px 0 #1a1a2e;
    }

    .ws-dropup {
        max-height: 41.66667vw;
        min-width: 31.25vw;
    }
  }
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* --- 1. HERO --- */
.abt-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.abt-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.abt-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2.77778vw 15vh;
    will-change: transform, opacity;
}

.abt-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.88889vw, 10vw, 9.72222vw);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.41667vw;
    line-height: 0.92;
    margin: 0;
    opacity: 0;
    animation: abt-hero-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.abt-hero-sub {
    font-family: var(--font-mono);
    font-size: clamp(0.76389vw, 1.3vw, 1.04167vw);
    color: rgba(255, 255, 255, 0.35);
    margin-top: 1.94444vw;
    letter-spacing: 0.20833vw;
    opacity: 0;
    animation: abt-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes abt-hero-in {
    from { opacity: 0; transform: translateY(3.47222vw); filter: blur(0.41667vw); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes abt-fade-up {
    from { opacity: 0; transform: translateY(1.38889vw); }
    to   { opacity: 1; transform: translateY(0); }
}

.abt-scroll-arrow {
    position: absolute;
    bottom: 2.77778vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    animation: abt-arrow-in 0.5s 1.6s forwards, abt-bounce 2.5s 2.2s ease infinite;
}

@keyframes abt-arrow-in {
    from { opacity: 0; }
    to   { opacity: 0.4; }
}

@keyframes abt-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(0.69444vw); }
}

/* --- 2. ORIGIN STORY (scroll-linked text) --- */
.abt-origin {
    min-height: 380vh;
    position: relative;
    background: #0a0a0a;
}

.abt-origin-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.41667vw;
    padding: 0 2.77778vw;
}

.abt-origin-line {
    margin: 0;
    text-align: center;
    will-change: opacity, transform;
}

.abt-origin-big {
    font-family: var(--font-heading);
    font-size: clamp(3.33333vw, 7vw, 6.66667vw);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.27778vw;
    line-height: 1.05;
}

.abt-origin-sm {
    font-family: var(--font-mono);
    font-size: clamp(0.90278vw, 1.5vw, 1.25vw);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.13889vw;
    line-height: 1.6;
}

/* --- 3. THE ASTROS (light, scroll-linked) --- */
.abt-chars {
    background: #fafafa;
    min-height: 220vh;
    position: relative;
    padding: 0 2.77778vw;
}

.abt-chars-grid {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.66667vw;
    max-width: 76.38889vw;
    margin: 0 auto;
    align-content: center;
}

.abt-char {
    text-align: center;
    will-change: opacity, transform;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.abt-char:hover {
    transform: translateY(-0.55556vw) !important;
}

.abt-char img {
    width: 100%;
    border-radius: 0.69444vw;
    display: block;
    margin-bottom: 0.97222vw;
}

.abt-char-name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.52778vw, 2.5vw, 2.5vw);
    color: var(--accent, #111);
    letter-spacing: 0.13889vw;
    line-height: 1;
}

/* --- 4. COLLECTION (GIF + numbers) --- */
.abt-collection {
    background: #fafafa;
    padding: 6.94444vw 2.77778vw 9.72222vw;
}

.abt-collection-showcase {
    max-width: 62.5vw;
    margin: 0 auto 5.55556vw;
}

.abt-collection-showcase.abt-reveal {
    transform: scale(0.92);
}
.abt-collection-showcase.abt-reveal.visible {
    transform: scale(1);
}

.abt-gif-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 0.83333vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.69444vw;
    font-family: var(--font-heading);
    font-size: clamp(1.94444vw, 4vw, 3.33333vw);
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.27778vw;
}

.abt-gif-sub {
    font-family: var(--font-mono);
    font-size: clamp(0.69444vw, 1vw, 0.90278vw);
    letter-spacing: 0.20833vw;
    color: rgba(255, 255, 255, 0.2);
}

.abt-numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 55.55556vw;
    margin: 0 auto;
    text-align: center;
}

.abt-stat {
    position: relative;
}

.abt-stat + .abt-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 0.06944vw;
    background: rgba(0, 0, 0, 0.08);
}

.abt-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3.88889vw, 7vw, 6.94444vw);
    font-weight: 900;
    color: #111;
    letter-spacing: 0.13889vw;
    line-height: 1;
}

.abt-stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(0.69444vw, 1.1vw, 0.90278vw);
    color: rgba(0, 0, 0, 0.3);
    letter-spacing: 0.20833vw;
    text-transform: uppercase;
    margin-top: 0.97222vw;
}

/* Number stagger */
.abt-numbers-grid .abt-reveal:nth-child(1) { transition-delay: 0s; }
.abt-numbers-grid .abt-reveal:nth-child(2) { transition-delay: 0.1s; }
.abt-numbers-grid .abt-reveal:nth-child(3) { transition-delay: 0.2s; }
.abt-numbers-grid .abt-reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Shared section heading --- */
.abt-section-heading {
    text-align: center;
    margin-bottom: 5vw;
}

.abt-section-the {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(0.76389vw, 1.2vw, 0.97222vw);
    color: rgba(0, 0, 0, 0.25);
    letter-spacing: 0.34722vw;
    text-transform: uppercase;
    margin-bottom: 0.55556vw;
}

.abt-section-name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3.61111vw, 7vw, 6.66667vw);
    font-weight: 900;
    color: #111;
    letter-spacing: 0.20833vw;
    line-height: 0.9;
}

.abt-heading-light .abt-section-the { color: rgba(255, 255, 255, 0.3); }
.abt-heading-light .abt-section-name { color: #fff; }

/* --- Reveal animation system --- */
.abt-reveal {
    opacity: 0;
    transform: translateY(2.77778vw);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.abt-reveal.visible {
    opacity: 1;
    transform: none;
}

/* --- 5. THE TEAM — list with marquee hover --- */
.abt-team {
    position: relative;
    background: #0a0a0a;
    padding: 8.33333vw 0 5.55556vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.abt-team-list {
    width: 100%;
}

.abt-member {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    overflow: hidden;
}
.abt-member:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Default row: name left, role right */
.abt-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.22222vw 4.16667vw;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.abt-member-name {
    font-family: var(--font-heading);
    font-size: clamp(1.66667vw, 3vw, 2.63889vw);
    color: #fff;
    letter-spacing: 0.13889vw;
    transition: color 0.3s ease;
}

.abt-member-role {
    font-family: var(--font-mono);
    font-size: clamp(0.69444vw, 1.2vw, 0.90278vw);
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.13889vw;
    transition: color 0.3s ease;
}

/* Hover: white bg, black text */
.abt-member:hover .abt-member-row {
    opacity: 0;
}
.abt-member:hover {
    background: #fff;
}
.abt-member:hover .abt-member-name {
    color: #000;
}
.abt-member:hover .abt-member-role {
    color: rgba(0, 0, 0, 0.5);
}

/* Marquee — hidden by default, visible on hover */
.abt-member-marquee {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.abt-member:hover .abt-member-marquee {
    opacity: 1;
}

.abt-member-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: abtMarquee 8s linear infinite;
    will-change: transform;
}

.abt-member-marquee-track span {
    font-family: var(--font-heading);
    font-size: clamp(1.94444vw, 3.5vw, 3.33333vw);
    font-weight: 900;
    color: #000;
    letter-spacing: 0.20833vw;
    padding: 0 1.66667vw;
}
.abt-member-marquee-track span::after {
    content: '\2022';
    margin-left: 1.66667vw;
    color: #000;
}

@keyframes abtMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating cursor image */
.abt-member-cursor {
    position: fixed;
    width: 13.88889vw;
    height: 13.88889vw;
    border-radius: 0.97222vw;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.abt-member-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.abt-member-cursor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 6. CLOSING --- */
.abt-closing {
    background: #0a0a0a;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2.77778vw 18vh;
}

.abt-closing-card {
    width: 13.88889vw;
    height: 13.88889vw;
    border-radius: 0.97222vw;
    overflow: hidden;
    margin-bottom: 2.77778vw;
}
.abt-closing-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.abt-closing-text {
    font-family: var(--font-heading);
    font-size: clamp(2.22222vw, 4.5vw, 3.75vw);
    color: #fff;
    letter-spacing: 0.13889vw;
    line-height: 1.2;
    max-width: 52.08333vw;
    margin-bottom: 3.33333vw;
}

.abt-closing-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.69444vw;
    font-family: var(--font-mono);
    font-size: 0.97222vw;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    text-decoration: none;
    letter-spacing: 0.20833vw;
    text-transform: uppercase;
    padding: 0;
    transition: color 0.3s ease;
}

.abt-closing-cta svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.abt-closing-cta:hover {
    color: #fff;
}

.abt-closing-cta:hover svg {
    transform: translateX(0.34722vw);
}

.abt-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.94444vw;
}

.abt-socials a {
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.abt-socials a:hover {
    color: #fff;
    transform: translateY(-0.20833vw);
}

.abt-socials img {
    border-radius: 0.27778vw;
    filter: brightness(0) invert(1);
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.abt-socials a:hover img {
    opacity: 1;
}

/* --- ABOUT RESPONSIVE: TABLET --- */
@media (max-width: 1024px) {
  html:not(.desktop) {
    .abt-chars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.73438vw;
    }
    .abt-member-row {
        padding: 2.73438vw 3.90625vw;
    }
  }
}

/* --- ABOUT RESPONSIVE: MOBILE --- */
@media (max-width: 768px) {
  html:not(.desktop) {
    .abt-hero-content {
        padding: 0 3.125vw;
    }
    .abt-origin {
        min-height: 320vh;
    }
    .abt-origin-sticky {
        padding: 0 3.125vw;
    }
    .abt-chars {
        padding: 0 3.125vw;
        min-height: 180vh;
    }
    .abt-chars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.60417vw;
    }
    .abt-collection {
        padding: 10.41667vw 3.125vw 13.02083vw;
    }
    .abt-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5.20833vw;
    }
    .abt-stat + .abt-stat::before {
        display: none;
    }
    .abt-team {
        padding: 10.41667vw 0 7.8125vw;
    }
    .abt-member-row {
        padding: 3.125vw 3.125vw;
    }
    .abt-member-cursor {
        width: 18.22917vw;
        height: 18.22917vw;
    }
    .abt-closing {
        padding: 0 3.125vw 18vh;
    }
    .abt-closing-cta {
        font-size: 12px;
        gap: 6px;
        letter-spacing: 2px;
    }
    .abt-closing-text {
        font-size: 24px;
        max-width: 90%;
        margin-bottom: 20px;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .abt-origin {
        min-height: 280vh;
    }
    .abt-chars {
        min-height: 200vh;
    }
    .abt-chars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.33333vw;
    }
    .abt-member-row {
        padding: 4.16667vw 3.33333vw;
    }
    .abt-member-cursor {
        display: none;
    }
  }
}

/* Footer dark variant — no-op, footer is already dark by default */
.footer-dark {
    background: #0a0a0a;
}


/* ========================================
   THE ORDER PAGE
======================================== */
.lb-page {
    min-height: 100vh;
    background: #fafafa;
}

/* --- Hero --- */
.lb-hero {
    padding: 12.5vw 2.77778vw 5.55556vw;
    text-align: center;
    background: url('/assets/leaderboard-bg.webp') center 65% / cover no-repeat;
    border-bottom: 3px solid var(--color-primary);
}

.lb-hero-content {
    max-width: 55.55556vw;
    margin: 0 auto;
}

.lb-hero-the {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.47222vw;
    color: #ffffff;
    letter-spacing: 0.03472vw;
    line-height: 1;
    text-shadow: var(--text-shadow-dark);
}

.lb-hero-title {
    font-family: var(--font-heading);
    font-size: 9.72222vw;
    color: #ffffff;
    letter-spacing: 0.27778vw;
    line-height: 0.85;
    margin: 0 0 1.94444vw;
    text-shadow: var(--text-shadow-dark);
}

.lb-hero-subtitle {
    display: inline-block;
    font-family: var(--font-stat);
    font-size: 0.90278vw;
    color: var(--color-primary);
    letter-spacing: 0.20833vw;
    text-transform: uppercase;
    padding: 0.69444vw 1.94444vw;
    background: #ffffff;
    border: 3px solid var(--color-primary);
    border-radius: 0.55556vw;
    box-shadow: 4px 4px 0 var(--color-primary);
}

/* --- Section / Table Container --- */
.lb-section {
    max-width: 66.66667vw;
    margin: 0 auto;
    padding: 4.16667vw 1.38889vw 5.55556vw;
}

/* --- Loading --- */
.lb-loading {
    text-align: center;
    padding: 5.55556vw 0;
    font-family: var(--font-stat);
    font-size: 0.97222vw;
    color: #999;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
}

.lb-dots span {
    animation: lbDotPulse 1.4s infinite;
    display: inline-block;
}
.lb-dots span:nth-child(2) { animation-delay: 0.2s; }
.lb-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes profHeroBg {
    0%   { background-position: 0% 0%; }
    25%  { background-position: 100% 50%; }
    50%  { background-position: 50% 100%; }
    75%  { background-position: 0% 50%; }
    100% { background-position: 0% 0%; }
}

@keyframes lbDotPulse {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* --- Error --- */
.lb-error {
    text-align: center;
    padding: 5.55556vw 0;
    font-family: var(--font-stat);
    font-size: 0.97222vw;
    color: #999;
    letter-spacing: 0.13889vw;
}

.lb-retry-btn {
    margin-top: 1.38889vw;
    padding: 0.83333vw 2.22222vw;
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    font-weight: 700;
    color: var(--color-primary);
    background: #ffffff;
    border: 3px solid var(--color-primary);
    border-radius: 0.55556vw;
    box-shadow: 4px 4px 0 var(--color-primary);
    cursor: pointer;
    letter-spacing: 0.06944vw;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-retry-btn:hover {
    transform: translateY(-0.20833vw);
    box-shadow: 6px 6px 0 var(--color-primary);
}

/* --- Table --- */
.lb-table {
    display: flex;
    flex-direction: column;
    gap: 0.83333vw;
}

/* --- Row --- */
.lb-row {
    display: grid;
    grid-template-columns: 3.47222vw 3.33333vw 1fr auto auto 8.33333vw;
    align-items: center;
    gap: 1.11111vw;
    padding: 1.11111vw 1.38889vw;
    background: #ffffff;
    border: 3px solid var(--color-primary);
    border-radius: 0.55556vw;
    box-shadow: 4px 4px 0 var(--color-primary);
    text-decoration: none;
    color: var(--color-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-row:hover {
    transform: translateY(-0.20833vw);
    box-shadow: 6px 6px 0 var(--color-primary);
}

/* --- Viewer (your position) --- */
.lb-viewer {
    margin-bottom: 1.66667vw;
    padding-bottom: 1.66667vw;
    border-bottom: 3px solid var(--color-primary);
}

.lb-viewer-label {
    font-family: var(--font-heading);
    font-size: 1.25vw;
    letter-spacing: 0.20833vw;
    color: var(--color-primary);
    margin-bottom: 0.69444vw;
}

.lb-row-viewer {
    background: var(--color-primary);
    color: #ffffff;
}

.lb-row-viewer .lb-rank,
.lb-row-viewer .lb-address,
.lb-row-viewer .lb-astro-count,
.lb-row-viewer .lb-score {
    color: #ffffff;
}

.lb-row-viewer .lb-badge-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.lb-row-viewer:hover {
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

/* --- Rank --- */
.lb-rank {
    font-family: var(--font-heading);
    font-size: 2.22222vw;
    color: var(--color-primary);
    text-align: center;
    line-height: 1;
}

.lb-rank-gold   { color: #D4A017; }
.lb-rank-silver { color: #A0A0B0; }
.lb-rank-bronze { color: #B87333; }

/* --- Avatar --- */
.lb-avatar {
    width: 3.33333vw;
    height: 3.33333vw;
    border-radius: 0.55556vw;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

/* --- Address --- */
.lb-address {
    font-family: var(--font-stat);
    font-size: 0.97222vw;
    font-weight: 700;
    letter-spacing: 0.06944vw;
    white-space: nowrap;
}

/* --- Astro Count --- */
.lb-astro-count {
    font-family: var(--font-stat);
    font-size: 0.76389vw;
    color: #999;
    letter-spacing: 0.06944vw;
    white-space: nowrap;
}

/* --- Badges --- */
.lb-badges {
    display: flex;
    align-items: center;
    gap: 0.27778vw;
    flex-wrap: nowrap;
    overflow: hidden;
}

.lb-badge-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.625vw;
    font-weight: 700;
    padding: 0.20833vw 0.55556vw;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 0.27778vw;
    letter-spacing: 0.03472vw;
    white-space: nowrap;
    text-transform: uppercase;
}

.lb-badge-more {
    font-family: var(--font-stat);
    font-size: 0.69444vw;
    color: #999;
    white-space: nowrap;
}

/* --- Score --- */
.lb-score {
    font-family: var(--font-stat);
    font-size: 1.11111vw;
    font-weight: 700;
    text-align: right;
    letter-spacing: 0.06944vw;
    white-space: nowrap;
}

/* --- Footer --- */
.lb-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2.77778vw;
    padding: 0 0.27778vw;
    font-family: var(--font-stat);
    font-size: 0.76389vw;
    color: #999;
    letter-spacing: 0.06944vw;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html:not(.desktop) {
    .lb-hero {
        padding: 18.22917vw 2.60417vw 7.8125vw;
    }

    .lb-hero-title {
        font-size: 10.41667vw;
    }

    .lb-hero-the {
        font-size: 4.6875vw;
    }

    .lb-row {
        grid-template-columns: 4.6875vw 5.20833vw 1fr 11.71875vw;
        gap: 1.30208vw;
        padding: 1.5625vw 1.82292vw;
    }

    .lb-astro-count,
    .lb-badges {
        display: none;
    }

    .lb-rank {
        font-size: 3.125vw;
    }

    .lb-avatar {
        width: 5.20833vw;
        height: 5.20833vw;
    }

    .lb-section {
        max-width: 100%;
        padding: 32px 16px 48px;
    }

    .lb-score {
        font-size: 12px;
    }

    .lb-address {
        font-size: 11px;
    }

    .lb-avatar {
        width: 28px;
        height: 28px;
    }

    .lb-rank {
        font-size: 14px;
    }

    .lb-footer {
        flex-direction: column;
        gap: 4px;
        font-size: 10px;
    }

    .lb-loading {
        font-size: 12px;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .lb-hero-title {
        font-size: 42px;
    }

    .lb-section {
        padding: 24px 12px 40px;
    }

    .lb-row {
        padding: 8px;
        gap: 8px;
    }

    .lb-address {
        font-size: 10px;
    }

    .lb-score {
        font-size: 11px;
    }
  }
}


/* ========================================
   ASTRO TINDER
======================================== */
/* Astro Tinder — terminal layout */
.at-page .xc-section { visibility: visible; max-width: 660px; }
.at-page .xc-term-header { max-width: 1100px; }

/* Card Stack */
.at-stack {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 440px;
    margin: 0 auto;
}

.at-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    border-radius: 8px;
    border: 3px solid #000;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.15s ease;
}

.at-card:active { cursor: grabbing; }

.at-card-img {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f0f0f0;
}

.at-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.at-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
}

.at-card-name {
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: #000;
}

.at-card-price {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: rgba(0,0,0,0.5);
}

/* Stamps */
.at-card-stamp {
    position: absolute;
    top: 30px;
    padding: 6px 18px;
    font-family: 'VT323', monospace;
    font-size: 36px;
    letter-spacing: 3px;
    border: 4px solid;
    border-radius: 8px;
    transform: rotate(-15deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

.at-stamp-like {
    left: 16px;
    color: #22c55e;
    border-color: #22c55e;
}

.at-stamp-pass {
    right: 16px;
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(15deg);
}

/* Actions */
.at-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 14px;
}

.at-btn-pass,
.at-btn-like {
    font-family: 'VT323', monospace;
    font-size: 18px;
}

/* Counter */
.at-counter {
    text-align: center;
    margin-top: 10px;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

/* Wishlist */
.at-wishlist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.at-wish-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'VT323', monospace;
    font-size: 18px;
}

.at-wish-name {
    color: #000;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.at-wish-name:hover { color: rgba(0,0,0,0.6); }

.at-wish-price {
    color: rgba(0,0,0,0.5);
    white-space: nowrap;
}

.at-wish-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: rgba(0,0,0,0.35);
    padding: 0;
}

.at-wish-remove:hover { color: #ef4444; }

/* Responsive */
@media (max-width: 480px) {
  html:not(.desktop) {
    .at-stack { max-width: 280px; height: 370px; }
    .at-card-img { height: 260px; }
  }
}


/* ========================================
   WISH LIST (profile tab)
======================================== */
.prof-wl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.27778vw, 1fr));
    gap: 1.38889vw;
    padding: 1.38889vw 0;
}

.prof-wl-card {
    background: #161616;
    border-radius: 0.97222vw;
    border: 3px solid #fff;
    overflow: hidden;
    transition: transform 0.2s;
}

.prof-wl-card:hover {
    transform: translateY(-0.20833vw);
}

.prof-wl-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
}

.prof-wl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prof-wl-info {
    display: flex;
    flex-direction: column;
    gap: 0.13889vw;
    padding: 0.83333vw 0.97222vw 0.55556vw;
}

.prof-wl-name {
    font-family: var(--font-heading);
    font-size: 1.38889vw;
    color: #fff;
    letter-spacing: 0.06944vw;
}

.prof-wl-price {
    font-family: var(--font-stat);
    font-size: 0.90278vw;
    color: #00ff88;
    letter-spacing: 0.06944vw;
}

.prof-wl-trait {
    font-family: var(--font-stat);
    font-size: 0.76389vw;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06944vw;
    text-transform: uppercase;
}

.prof-wl-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55556vw 0.97222vw 0.97222vw;
}

.prof-wl-buy {
    font-family: var(--font-stat);
    font-size: 0.83333vw;
    color: #fff;
    letter-spacing: 0.13889vw;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.41667vw 1.11111vw;
    border-radius: 0.55556vw;
    transition: border-color 0.2s, background 0.2s;
}

.prof-wl-buy:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

.prof-wl-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 1.52778vw;
    cursor: pointer;
    padding: 0.27778vw 0.55556vw;
    transition: color 0.2s;
}

.prof-wl-remove:hover {
    color: #ff4444;
}

/* Wish List Empty State */
.prof-empty {
    text-align: center;
    padding: 4.16667vw 1.38889vw;
}

.prof-empty-text {
    font-family: var(--font-stat);
    font-size: 0.97222vw;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06944vw;
    margin-bottom: 1.11111vw;
}

.prof-empty-link {
    display: inline-block;
    font-family: var(--font-stat);
    font-size: 0.83333vw;
    color: #fff;
    letter-spacing: 0.13889vw;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.55556vw 1.38889vw;
    border-radius: 0.55556vw;
    transition: border-color 0.2s;
}

.prof-empty-link:hover {
    border-color: #fff;
}

@media (max-width: 768px) {
  html:not(.desktop) {
    .prof-wl-grid {
        grid-template-columns: repeat(auto-fill, minmax(20.83333vw, 1fr));
        gap: 1.82292vw;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .prof-wl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.08333vw;
    }
    .prof-wl-name { font-size: 3.33333vw; }
    .prof-wl-info { padding: 1.66667vw 2.08333vw 1.25vw; }
    .prof-wl-actions { padding: 1.25vw 2.08333vw 2.08333vw; }
  }
}


/* ====================================================================
   XP CARDS BUILDER  (.xc-*)  — Terminal-native redesign
   ==================================================================== */

/* ---------- Page ---------- */

.xc-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    color: rgba(0,0,0,0.85);
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.5;
    padding: 48px 32px 60px;
}

/* ---------- Logo ---------- */

.xc-logo {
    margin-bottom: 24px;
}

.xc-logo img {
    width: 40px;
    height: 40px;
    display: block;
}

/* ---------- Two-Column Layout ---------- */

.xc-layout {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.xc-col-preview {
    width: 52%;
    flex-shrink: 0;
    min-width: 0;
    align-self: stretch;
    position: relative;
    padding-right: 28px;
    box-sizing: border-box;
}

.xc-col-preview::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0,0,0,0.06);
}

.xc-col-config {
    flex: 1;
    min-width: 0;
    padding-left: 28px;
    box-sizing: border-box;
    overflow: hidden;
}

/* ---------- Sections ---------- */

.xc-section {
    width: 100%;
    margin-bottom: 8px;
    visibility: hidden;
}

.xc-term-header {
    max-width: 1100px;
    margin-bottom: 16px;
}

.xc-term-header .xc-term-line {
    justify-content: center;
}

.xc-back-line {
    margin-bottom: 8px;
}

.xc-back-link {
    color: rgba(0,0,0,0.3);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 16px;
    transition: color 0.15s;
}

.xc-back-link:hover {
    color: rgba(0,0,0,0.7);
}

.xc-section.xc-visible {
    visibility: visible;
}

.xc-options {
    margin-top: 8px;
}

/* ---------- Terminal Lines ---------- */

.xc-term-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 1.5em;
    white-space: nowrap;
}

.xc-term-prompt-text {
    color: rgba(0,0,0,0.7);
}

.xc-term-muted {
    color: rgba(0,0,0,0.5);
}

.xc-term-prompt-char {
    color: rgba(0,0,0,0.35);
    flex-shrink: 0;
}

.xc-term-label {
    color: rgba(0,0,0,0.45);
    flex-shrink: 0;
}

.xc-term-separator {
    color: rgba(0,0,0,0.12);
    margin: 16px 0 8px;
}

/* ---------- Box-Drawing Frames ---------- */

.xc-box {
    width: 100%;
    margin: 4px 0;
}

.xc-box-top,
.xc-box-btm {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    color: rgba(0,0,0,0.45);
}

.xc-box-top span:first-child,
.xc-box-btm span:first-child {
    flex-shrink: 0;
}

.xc-box-top span:last-child,
.xc-box-btm span:last-child {
    flex-shrink: 0;
}

.xc-box-dash {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.xc-box-mid {
    display: flex;
}

.xc-box-pipe {
    flex-shrink: 0;
    color: rgba(0,0,0,0.45);
    display: flex;
    align-items: stretch;
}

.xc-box-content {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
}

/* ---------- Card Preview ---------- */

.xc-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.xc-canvas-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.xc-preview-info {
    margin-top: 6px;
    color: rgba(0,0,0,0.2);
    font-size: 15px;
}

/* ---------- Terminal Inputs ---------- */

.xc-term-input-line {
    cursor: text;
}

.xc-term-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.xc-term-display {
    display: inline;
    color: rgba(0,0,0,0.85);
}

.xc-td-before,
.xc-td-after {
    white-space: pre;
}

.xc-term-cursor {
    display: inline-block;
    width: 10px;
    height: 1.15em;
    background: rgba(0,0,0,0.7);
    vertical-align: text-bottom;
    visibility: hidden;
}

.xc-term-input-line.xc-focused .xc-term-cursor {
    visibility: visible;
    animation: xc-blink 1s step-end infinite;
}

@keyframes xc-blink {
    0%, 100% { visibility: visible; }
    50% { visibility: hidden; }
}

/* ---------- Chip Selectors ---------- */

.xc-chips {
    display: inline-flex;
    gap: 2px;
}

.xc-chip {
    background: none;
    border: none;
    padding: 0 4px;
    color: rgba(0,0,0,0.3);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.1s;
}

.xc-chip:hover {
    color: rgba(0,0,0,0.55);
}

.xc-chip--active {
    color: rgba(0,0,0,0.9);
}

/* ---------- Text Overlay Bar ---------- */

.xc-tbar {
    cursor: pointer;
    color: rgba(0,0,0,0.4);
    letter-spacing: 0;
    user-select: none;
    margin-left: 8px;
    min-width: 20ch;
}

.xc-range-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.xc-range-value {
    margin-left: 6px;
    color: rgba(0,0,0,0.35);
    min-width: 3ch;
}

/* ---------- NFT Grid ---------- */

.xc-nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.xc-nft-hint {
    color: rgba(0,0,0,0.25);
    margin: 6px 0 0;
    font-size: 15px;
}

.xc-nft-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.1s, filter 0.1s;
    background: rgba(0,0,0,0.03);
}

.xc-nft-thumb:hover {
    filter: brightness(0.92);
}

.xc-nft-thumb--selected {
    border-color: rgba(0,0,0,0.6);
}

.xc-nft-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Wallpaper Grid ---------- */

.xc-wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.xc-wallpaper-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    cursor: pointer;
    transition: border-color 0.1s;
}

.xc-wallpaper-thumb:hover {
    border-color: rgba(0,0,0,0.25);
}

.xc-wallpaper-thumb--active {
    border-color: rgba(0,0,0,0.45);
}

.xc-wallpaper-thumb img,
.xc-wallpaper-thumb video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.xc-wallpaper-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2px 6px 3px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xc-wallpaper-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 1px 5px;
    background: rgba(0,0,0,0.6);
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

/* ---------- Action Buttons ---------- */

.xc-action-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.xc-term-btn {
    background: none;
    border: none;
    color: rgba(0,0,0,0.6);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.1s;
}

.xc-term-btn:hover {
    color: #000;
}

.xc-term-btn:disabled {
    color: rgba(0,0,0,0.15);
    cursor: not-allowed;
}

.xc-export-hint {
    margin-top: 6px;
}

/* ---------- Mobile Mini-Preview ---------- */

.xc-col-preview.xc-preview-expanded {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    cursor: zoom-out;
}

.xc-col-preview.xc-preview-expanded .xc-section--preview {
    width: 100%;
    max-width: 540px;
}

.xc-col-preview.xc-preview-expanded .xc-box-top,
.xc-col-preview.xc-preview-expanded .xc-box-btm {
    color: rgba(255,255,255,0.2);
}

.xc-col-preview.xc-preview-expanded .xc-box-pipe {
    color: rgba(255,255,255,0.2);
}

.xc-col-preview.xc-preview-expanded .xc-preview-info {
    color: rgba(255,255,255,0.3);
}

/* ---------- Responsive: Tablet ---------- */

@media (max-width: 1024px) and (min-width: 769px) {
    .xc-col-preview {
        width: 45%;
        padding-right: 20px;
    }

    .xc-col-config {
        padding-left: 20px;
    }

    .xc-wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Responsive: Mobile ---------- */

@media (max-width: 768px) {
    .xc-page {
        padding: 32px 16px 40px;
        font-size: 16px;
    }

    .xc-layout {
        flex-direction: column;
    }

    .xc-col-preview {
        position: fixed;
        bottom: 12px;
        right: 12px;
        width: 44%;
        max-width: 200px;
        z-index: 50;
        padding-right: 0;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 2px 16px rgba(0,0,0,0.12);
        cursor: zoom-in;
        flex-shrink: 0;
    }

    .xc-col-preview::after {
        display: none;
    }

    .xc-col-preview .xc-box-top,
    .xc-col-preview .xc-box-btm,
    .xc-col-preview .xc-box-pipe,
    .xc-col-preview .xc-preview-info {
        display: none;
    }

    .xc-col-preview .xc-box-mid {
        display: block;
    }

    .xc-col-preview .xc-box-content {
        padding: 4px;
    }

    .xc-col-preview .xc-canvas-wrap {
        border-radius: 4px;
    }

    .xc-col-config {
        padding-left: 0;
        padding-bottom: 140px;
        width: 100%;
    }

    .xc-term-header {
        max-width: none;
    }

    .xc-wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xc-tbar {
        display: none;
    }

    .xc-action-bar {
        flex-direction: column;
        gap: 8px;
    }
}


/* ========================================================================
   SKELETON LOADING — Shared shimmer placeholders
   ======================================================================== */

@keyframes skel-shimmer {
    0%   { background-position: -32.5vw 0; }
    100% { background-position:  32.5vw 0; }
}

/* Dark background pages (gallery, profile, theorder, blackroom) */
.skel {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.06) 25%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 75%);
    background-size: 65vw 100%;
    animation: skel-shimmer 1.5s ease-in-out infinite;
    border-radius: 0.69444vw;
}

/* Light background pages (collection, shop) */
.skel-light {
    background: linear-gradient(90deg,
        rgba(0,0,0,0.06) 25%,
        rgba(0,0,0,0.10) 50%,
        rgba(0,0,0,0.06) 75%);
    background-size: 65vw 100%;
    animation: skel-shimmer 1.5s ease-in-out infinite;
    border-radius: 0.69444vw;
}

.skel-circle { border-radius: 50%; }

/* ── Gallery skeleton: fan cards ── */
.ag-skel-fan {
    position: relative;
    width: 100%;
    height: 31.94444vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ag-skel-card {
    position: absolute;
    width: 18.05556vw;
    height: 23.61111vw;
    border-radius: 0.97222vw;
    left: 50%;
    top: 50%;
}
.ag-skel-card:nth-child(1) { transform: translate(-50%,-50%) translateX(-29.16667vw) translateY(2.77778vw) rotate(-14deg) scale(0.68); }
.ag-skel-card:nth-child(2) { transform: translate(-50%,-50%) translateX(-14.58333vw) translateY(0.83333vw) rotate(-6deg) scale(0.85); }
.ag-skel-card:nth-child(3) { transform: translate(-50%,-50%) scale(1); }
.ag-skel-card:nth-child(4) { transform: translate(-50%,-50%) translateX(14.58333vw) translateY(0.83333vw) rotate(6deg) scale(0.85); }
.ag-skel-card:nth-child(5) { transform: translate(-50%,-50%) translateX(29.16667vw) translateY(2.77778vw) rotate(14deg) scale(0.68); }

/* ── Collection skeleton: NFT grid ── */
.ws-skel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.66667vw;
    justify-content: center;
    padding: 5.55556vw 2.77778vw;
}
.ws-skel-card {
    width: 11.11111vw;
    height: 11.11111vw;
    border-radius: 0.97222vw;
}

/* ── Leaderboard skeleton: table rows ── */
.lb-skel {
    display: flex;
    flex-direction: column;
    gap: 0.69444vw;
    max-width: 62.5vw;
    margin: 0 auto;
    padding: 0 2.08333vw;
}
.lb-skel-row {
    height: 3.61111vw;
    border-radius: 0.55556vw;
    opacity: 1;
}
.lb-skel-row:nth-child(1) { opacity: 1; }
.lb-skel-row:nth-child(2) { opacity: 0.85; }
.lb-skel-row:nth-child(3) { opacity: 0.7; }
.lb-skel-row:nth-child(4) { opacity: 0.6; }
.lb-skel-row:nth-child(5) { opacity: 0.5; }
.lb-skel-row:nth-child(6) { opacity: 0.4; }
.lb-skel-row:nth-child(7) { opacity: 0.3; }
.lb-skel-row:nth-child(8) { opacity: 0.2; }

/* ── Shame Wall skeleton ── */
.sw-skel {
    display: flex;
    flex-direction: column;
    gap: 0.69444vw;
}
.sw-skel-row {
    height: 3.05556vw;
    border-radius: 0.55556vw;
}

/* ── Suggestions skeleton ── */
.sb-skel {
    display: flex;
    flex-direction: column;
    gap: 0.97222vw;
}
.sb-skel-card {
    height: 5vw;
    border-radius: 0.69444vw;
}

/* ── Astro Tinder skeleton ── */
.at-skel-card {
    width: 20.83333vw;
    height: 27.77778vw;
    border-radius: 1.11111vw;
    margin: 0 auto;
}

/* ── Campaign skeleton ── */
.cp-skel {
    display: flex;
    flex-direction: column;
    gap: 0.97222vw;
    max-width: 41.66667vw;
    margin: 0 auto;
}
.cp-skel-title { width: 13.88889vw; height: 1.38889vw; }
.cp-skel-bar   { height: 0.97222vw; }
.cp-skel-block { height: 6.94444vw; border-radius: 0.83333vw; }

/* ── Shop skeleton ── */
.sh-skel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.66667vw;
    justify-content: center;
    padding: 2.77778vw;
}
.sh-skel-card {
    width: 15.27778vw;
    height: 19.44444vw;
    border-radius: 0.83333vw;
}


/* ========================================================================
   ART GALLERY — Fan-Spread Viewer (.ag-*)
   ======================================================================== */

.ag-page {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-mono);
}

/* Dynamic blurred background */
.ag-bg {
    position: absolute;
    inset: -4.16667vw;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4.16667vw) saturate(1.3);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.ag-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.ag-bg.ag-bg-active {
    opacity: 1;
}


/* Loading / Empty states */
.ag-state {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.ag-loading-text {
    font-family: var(--font-mono);
    font-size: 0.83333vw;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.ag-empty-text {
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* Fan wrapper */
.ag-fan-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 31.94444vw;
    z-index: 5;
}

.ag-fan {
    position: relative;
    width: 0;
    height: 0;
}

/* Cards */
.ag-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    border-radius: 0.97222vw;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    will-change: transform, opacity;
    background: #111;
}

.ag-card-media {
    display: block;
    max-height: 29.16667vw;
    width: auto;
    height: auto;
    border-radius: 0.97222vw;
    pointer-events: none;
    user-select: none;
}

.ag-card:not(.ag-center):hover {
    filter: brightness(1.12);
}

.ag-center {
    cursor: default;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Navigation arrows */
.ag-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 1.11111vw;
    transition: color 0.3s ease, transform 0.3s ease;
}

.ag-nav-arrow:hover {
    color: rgba(255, 255, 255, 0.75);
}

.ag-arrow-left {
    left: calc(50% - 23.61111vw);
}

.ag-arrow-left:hover {
    transform: translateY(-50%) translateX(-0.20833vw);
}

.ag-arrow-right {
    right: calc(50% - 23.61111vw);
}

.ag-arrow-right:hover {
    transform: translateY(-50%) translateX(0.20833vw);
}

/* Counter */
.ag-counter {
    display: none;
}

/* Category filter buttons */
.ag-filters {
    position: absolute;
    bottom: 2.77778vw;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 2.22222vw;
    z-index: 10;
}

.ag-filter-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Courier Prime', monospace;
    font-size: 0.97222vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    padding: 0.41667vw 0.27778vw;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.ag-filter-btn:hover {
    color: rgba(255, 255, 255, 0.65);
    transform: scale(1.15);
}

.ag-filter-btn.active {
    color: #fff;
}

/* Download icon on cards */
.ag-download {
    position: absolute;
    bottom: 0.83333vw;
    right: 0.83333vw;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 5;
    line-height: 0;
}
.ag-card:hover .ag-download { opacity: 1; }
.ag-download:hover { color: #fff; transform: scale(1.15); }

/* ── Responsive ── */
@media (max-width: 768px) {
  html:not(.desktop) {
    .ag-fan-wrapper {
        transform: scale(0.72);
    }

    .ag-arrow-left {
        left: 1.04167vw;
    }

    .ag-arrow-right {
        right: 1.04167vw;
    }

    .ag-filters {
        gap: 2.60417vw;
        bottom: 3.64583vw;
    }

    .ag-filter-btn {
        font-size: 1.30208vw;
        letter-spacing: 0.13021vw;
    }

    .ag-counter {
        bottom: 9.11458vw;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .ag-fan-wrapper {
        transform: scale(0.7);
    }

    .ag-filters {
        gap: 2.91667vw;
        font-size: 2.5vw;
    }

    .ag-nav-arrow {
        width: 7.5vw;
        height: 7.5vw;
    }
  }
}


/* ========================================================================
   CAREERS PAGE (.cr-*)
   ======================================================================== */

.cr-page {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    color: var(--color-primary);
    z-index: 1;
}

.cr-page::-webkit-scrollbar { width: 0.27778vw; }
.cr-page::-webkit-scrollbar-track { background: transparent; }
.cr-page::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 0.27778vw; }

/* Hero — fullscreen wallpaper */
.cr-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    background: url('/assets/hiring-bg.webp') center top / cover no-repeat;
    border-bottom: 5px solid #000;
}

.cr-scroll-arrow {
    position: absolute;
    bottom: 2.77778vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: abt-bounce 2s ease infinite;
    opacity: 0.6;
}

.cr-content {
    position: relative;
    max-width: 41.66667vw;
    margin: 0 auto;
    padding: 5.55556vw 1.66667vw 5.55556vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Intro */
.cr-intro {
    font-family: var(--font-heading);
    font-size: 3.61111vw;
    font-weight: 400;
    letter-spacing: 0.13889vw;
    text-align: center;
    margin: 0 0 3.33333vw;
    line-height: 1.15;
    color: var(--color-primary);
}

/* Position cards */
.cr-positions {
    display: flex;
    gap: 1.66667vw;
    width: 100%;
}

.cr-card {
    flex: 1;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 1.11111vw;
    padding: 2.22222vw;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cr-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.cr-card-title {
    font-family: var(--font-heading);
    font-size: 1.94444vw;
    font-weight: 400;
    letter-spacing: 0.13889vw;
    margin: 0 0 0.83333vw;
    color: var(--color-primary);
}

.cr-card-desc {
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.5);
    margin: 0 0 1.66667vw;
}

/* Actions row */
.cr-card-actions {
    display: flex;
    align-items: center;
    gap: 0.83333vw;
}

.cr-apply-btn {
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: var(--color-primary);
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 0.55556vw;
    padding: 0.69444vw 1.66667vw;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

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

.cr-apply-btn.cr-applied {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Application form */
.cr-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.cr-form.cr-form-open {
    max-height: 41.66667vw;
    opacity: 1;
    margin-top: 1.66667vw;
}

.cr-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.69444vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
    margin: 1.11111vw 0 0.41667vw;
}

.cr-label:first-child {
    margin-top: 0;
}

.cr-input,
.cr-textarea {
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    color: var(--color-primary);
    background: #fafafa;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.69444vw;
    padding: 0.83333vw 0.97222vw;
    outline: none;
    transition: border-color 0.25s ease;
    box-sizing: border-box;
    resize: vertical;
}

.cr-input:focus,
.cr-textarea:focus {
    border-color: rgba(0, 0, 0, 0.2);
}

.cr-input::placeholder,
.cr-textarea::placeholder {
    color: rgba(0, 0, 0, 0.2);
}

.cr-textarea {
    min-height: 4.16667vw;
}

.cr-submit {
    margin-top: 1.11111vw;
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 0.55556vw;
    padding: 0.83333vw 1.94444vw;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.cr-submit:hover {
    opacity: 0.85;
}

.cr-submit:disabled {
    opacity: 0.5;
    cursor: default;
}

.cr-status {
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    color: var(--color-primary);
    margin: 0.69444vw 0 0;
    display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  html:not(.desktop) {
    .cr-content {
        max-width: 90vw;
        padding: 40px 20px 60px;
    }

    .cr-card-desc {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .cr-apply-btn {
        font-size: 12px;
        padding: 10px 20px;
        border-radius: 8px;
        min-height: 44px;
    }

    .cr-label {
        font-size: 11px;
        letter-spacing: 1px;
        margin: 14px 0 6px;
    }

    .cr-input,
    .cr-textarea {
        font-size: 16px;
        padding: 12px;
        border-radius: 8px;
    }

    .cr-textarea {
        min-height: 80px;
    }

    .cr-submit {
        font-size: 14px;
        padding: 12px 24px;
        border-radius: 8px;
        margin-top: 16px;
        min-height: 44px;
    }

    .cr-status {
        font-size: 12px;
        margin: 10px 0 0;
    }

    .cr-form.cr-form-open {
        max-height: 600px;
        margin-top: 20px;
    }

    .cr-card-actions {
        gap: 10px;
    }

    .cr-card {
        border-radius: 12px;
        padding: 24px;
    }
  }
}

@media (max-width: 640px) {
  html:not(.desktop) {
    .cr-content {
        max-width: 100%;
        padding: 32px 16px 60px;
    }

    .cr-intro {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 28px;
    }

    .cr-positions {
        flex-direction: column;
        gap: 16px;
    }

    .cr-hero {
        height: 100vh;
        height: 100dvh;
    }

    .cr-card-title {
        font-size: 20px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .cr-intro {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .cr-card {
        padding: 20px;
    }

    .cr-card-title {
        font-size: 18px;
    }

    .cr-card-desc {
        font-size: 13px;
    }

    .cr-apply-btn {
        font-size: 11px;
        padding: 10px 16px;
    }

    .cr-submit {
        font-size: 13px;
        padding: 12px 20px;
        width: 100%;
    }
  }
}


/* ========================================================================
   SHOP PAGE (.sh-*)
   ======================================================================== */

.sh-page {
    min-height: 100vh;
    background: #fafafa;
    color: #1a1a1a;
    padding: 9.72222vw 4.16667vw 5.55556vw;
    max-width: 83.33333vw;
    margin: 0 auto;
}

.sh-page.sh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: none;
}

.sh-nothing {
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    letter-spacing: 0.13889vw;
    color: #999;
    text-transform: lowercase;
    margin-top: 2.77778vw;
}

/* Title */
.sh-title {
    font-family: var(--font-heading);
    font-size: clamp(3.61111vw, 7vw, 5.83333vw);
    font-weight: 400;
    letter-spacing: 0.20833vw;
    text-align: center;
    margin: 0 0 2.22222vw;
    color: #1a1a1a;
    line-height: 1;
}

/* Category tabs */
.sh-tabs {
    display: flex;
    justify-content: center;
    gap: 2.22222vw;
    margin-bottom: 4.44444vw;
}

.sh-tab {
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: #999;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0 0 0.55556vw;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.sh-tab:hover {
    color: #1a1a1a;
}

.sh-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* Grid */
.sh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.22222vw;
}

/* Card */
.sh-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sh-card-cat {
    font-family: var(--font-mono);
    font-size: 0.625vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.83333vw;
}

.sh-card-img-wrap {
    position: relative;
    background: #eaeaea;
    border-radius: 0.55556vw;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-card-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.sh-card:hover .sh-card-img {
    transform: scale(1.05);
}

.sh-card-name {
    font-family: var(--font-heading);
    font-size: 1.25vw;
    font-weight: 400;
    letter-spacing: 0.06944vw;
    color: #1a1a1a;
    margin-top: 0.97222vw;
}

/* Gated cards (holders only) */
.sh-card-gated {
    pointer-events: none;
}

.sh-card-gated .sh-card-img-wrap {
    filter: grayscale(0.6) brightness(0.7);
}

.sh-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(0.20833vw);
    color: rgba(255,255,255,0.7);
    z-index: 2;
}

/* Unlocked — hide lock */
.sh-card:not(.sh-card-gated) .sh-lock-overlay {
    display: none;
}

.sh-card:not(.sh-card-gated) .sh-card-img-wrap {
    filter: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  html:not(.desktop) {
    .sh-page {
        padding: 80px 24px 48px;
        max-width: 100%;
    }

    .sh-title {
        font-size: 36px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    .sh-nothing {
        font-size: 13px;
        letter-spacing: 1.5px;
        margin-top: 24px;
    }

    .sh-tabs {
        gap: 16px;
        flex-wrap: wrap;
    }

    .sh-tab {
        font-size: 11px;
        letter-spacing: 1.5px;
        padding: 6px 12px;
    }

    .sh-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sh-card-cat {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }

    .sh-card-img-wrap {
        border-radius: 8px;
    }

    .sh-card-name {
        font-size: 15px;
        letter-spacing: 0.5px;
        margin-top: 10px;
    }

    .sh-lock-overlay {
        backdrop-filter: blur(3px);
    }

    .sh-skel-grid {
        gap: 12px;
        padding: 24px;
    }

    .sh-skel-card {
        width: 140px;
        height: 180px;
        border-radius: 8px;
    }
  }
}

@media (max-width: 520px) {
  html:not(.desktop) {
    .sh-page {
        padding: 72px 16px 40px;
    }

    .sh-title {
        font-size: 28px;
        letter-spacing: 1.5px;
        margin-bottom: 16px;
    }

    .sh-nothing {
        font-size: 13px;
        letter-spacing: 1px;
        margin-top: 20px;
    }

    .sh-tabs {
        gap: 8px;
        justify-content: center;
    }

    .sh-tab {
        font-size: 12px;
        letter-spacing: 1px;
        padding: 8px 16px;
    }

    .sh-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sh-card-cat {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .sh-card-name {
        font-size: 16px;
        letter-spacing: 0.5px;
        margin-top: 10px;
    }

    .sh-skel-grid {
        padding: 16px;
    }

    .sh-skel-card {
        width: 100%;
        height: 200px;
    }
  }
}

/* ========================================
   ASTRO AI — TV BROADCAST PAGE
======================================== */

.ai-page {
    min-height: 100vh;
    background: #0a0a0a;
    overflow: hidden;
    position: relative;
}

/* Fullscreen video wallpaper (the room with the TV) */
.ai-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ── Character video positioned inside the background monitor ── */
.ai-tv-screen {
    position: fixed;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    width: 27%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.41667vw;
    z-index: 1;
}

.ai-tv-screen .ai-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scanlines over the character video */
.ai-tv-screen .ai-scanlines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 0.13889vw,
        rgba(0,0,0,0.12) 0.13889vw,
        rgba(0,0,0,0.12) 0.27778vw
    );
}

/* Logo — top left like main page */
.ai-logo {
    position: fixed;
    top: 2.22222vw;
    left: 2.77778vw;
    z-index: 10;
    transition: transform 0.3s ease;
}

.ai-logo:hover {
    transform: scale(1.05);
}

.ai-logo img {
    display: block;
    width: 8.33333vw;
    height: 8.33333vw;
}

/* ========================================
   ASTRO AI — RESPONSIVE
======================================== */
@media (max-width: 768px) {
  html:not(.desktop) {
    .ai-tv-screen {
        width: 34%;
        top: 18%;
    }

    .ai-logo img {
        width: 11.71875vw;
        height: 11.71875vw;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .ai-tv-screen {
        width: 42%;
        top: 20%;
    }

    .ai-logo {
        top: 4.16667vw;
    }
  }
}

/* ========================================
   ASTRO ACCELERATOR PAGE (.ac-*)
======================================== */

/* ── Hero ── */
.ac-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.ac-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.ac-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 60%,
        rgba(250, 250, 250, 1) 100%
    );
}

.ac-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2.77778vw 15vh;
    will-change: transform, opacity;
}

.ac-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.88889vw, 10vw, 9.72222vw);
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: 0.41667vw;
    line-height: 0.92;
    margin: 0;
    opacity: 0;
    animation: abt-hero-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.ac-hero-sub {
    font-family: var(--font-mono);
    font-size: clamp(0.76389vw, 1.3vw, 1.04167vw);
    color: rgba(10, 10, 10, 0.5);
    margin-top: 1.94444vw;
    letter-spacing: 0.20833vw;
    max-width: 34.72222vw;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    animation: abt-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.ac-scroll-arrow {
    position: absolute;
    bottom: 2.77778vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    animation: abt-arrow-in 0.5s 1.6s forwards, abt-bounce 2.5s 2.2s ease infinite;
}

/* ── Scroll-linked origin text ── */
.ac-origin {
    min-height: 320vh;
    position: relative;
    background: #fafafa;
}

.ac-origin-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.41667vw;
    padding: 0 2.77778vw;
}

.ac-origin-line {
    margin: 0;
    text-align: center;
    will-change: opacity, transform;
}

.ac-origin-big {
    font-family: var(--font-heading);
    font-size: clamp(3.33333vw, 7vw, 6.66667vw);
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: 0.27778vw;
    line-height: 1.05;
}

.ac-origin-sm {
    font-family: var(--font-mono);
    font-size: clamp(0.90278vw, 1.5vw, 1.25vw);
    color: rgba(0, 0, 0, 0.45);
    letter-spacing: 0.13889vw;
    line-height: 1.6;
}

/* ── Divider between sections ── */
.ac-divider {
    width: 100%;
    height: 0.06944vw;
    background: rgba(0, 0, 0, 0.08);
}

/* ── Sections ── */
.ac-section {
    padding: 8.33333vw 2.77778vw;
}

.ac-dark {
    background: #fafafa;
}

.ac-light {
    background: #fafafa;
}

/* ── Headings (matches About pattern) ── */
.ac-section-heading {
    text-align: center;
    margin-bottom: 5vw;
}

.ac-section-the {
    display: none;
}

.ac-section-name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3.61111vw, 7vw, 6.66667vw);
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: 0.20833vw;
    line-height: 0.9;
}


/* ── Reveal animation ── */
.ac-reveal {
    opacity: 0;
    transform: translateY(2.77778vw);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── The Fund text ── */
.ac-text {
    font-family: var(--font-heading);
    font-size: clamp(1.38889vw, 2.5vw, 1.94444vw);
    font-weight: 400;
    color: #0a0a0a;
    text-align: center;
    max-width: 48.61111vw;
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: 0.06944vw;
}

/* ── Perks (What You Get) ── */
.ac-perks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.22222vw;
    max-width: 69.44444vw;
    margin: 0 auto;
}

.ac-perk {
    text-align: center;
    padding: 2.22222vw 1.38889vw;
}

.ac-perk-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    color: rgba(0, 0, 0, 0.35);
    letter-spacing: 0.20833vw;
    margin-bottom: 1.11111vw;
}

.ac-perk-title {
    font-family: var(--font-heading);
    font-size: 1.94444vw;
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: 0.13889vw;
    margin: 0 0 0.83333vw;
}

.ac-perk-desc {
    font-family: var(--font-mono);
    font-size: 0.83333vw;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.7;
    margin: 0;
}

/* ── Portfolio ── */
.ac-portfolio {
    display: flex;
    gap: 2.22222vw;
    max-width: 48.61111vw;
    margin: 0 auto;
    justify-content: center;
}

.ac-portfolio-card {
    flex: 1;
    max-width: 22.22222vw;
    background: #fff;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.55556vw;
    padding: 2.22222vw;
}

.ac-portfolio-soon {
    border-style: dashed;
    border-color: rgba(0, 0, 0, 0.15);
}

.ac-portfolio-tag {
    font-family: var(--font-mono);
    font-size: 0.625vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
}

.ac-portfolio-name {
    font-family: var(--font-heading);
    font-size: 2.22222vw;
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: 0.13889vw;
    margin: 0.83333vw 0;
}

.ac-portfolio-desc {
    font-family: var(--font-mono);
    font-size: 0.83333vw;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.7;
    margin: 0 0 1.11111vw;
}

.ac-portfolio-status {
    font-family: var(--font-mono);
    font-size: 0.69444vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    padding: 0.27778vw 0.69444vw;
    border-radius: 0.27778vw;
}

.ac-status-active {
    background: #0a0a0a;
    color: #fff;
}

.ac-status-soon {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
}

/* ── Partners ── */
.ac-partners {
    display: flex;
    gap: 3.33333vw;
    justify-content: center;
    align-items: center;
}

.ac-partner {
    padding: 1.94444vw 3.33333vw;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.55556vw;
}

.ac-partner-name {
    font-family: var(--font-heading);
    font-size: clamp(1.52778vw, 3vw, 2.22222vw);
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: 0.20833vw;
}

/* ── Apply form ── */
.ac-apply-section {
    padding-bottom: 6.94444vw;
}

.ac-form {
    max-width: 41.66667vw;
    margin: 0 auto;
}

.ac-form-row {
    display: flex;
    gap: 1.38889vw;
}

.ac-form-row .ac-form-group {
    flex: 1;
}

.ac-form-group {
    margin-bottom: 1.38889vw;
}

.ac-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.69444vw;
    font-weight: 700;
    letter-spacing: 0.13889vw;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.41667vw;
}

.ac-input,
.ac-textarea {
    width: 100%;
    background: #fff;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.55556vw;
    color: #0a0a0a;
    font-family: var(--font-mono);
    font-size: 0.90278vw;
    padding: 0.83333vw 0.97222vw;
    outline: none;
    transition: border-color 0.25s ease;
    box-sizing: border-box;
}

.ac-input:focus,
.ac-textarea:focus {
    border-color: #0a0a0a;
}

.ac-textarea {
    resize: vertical;
    min-height: 5.55556vw;
}

.ac-submit {
    display: block;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.83333vw;
    font-weight: 700;
    letter-spacing: 0.20833vw;
    text-transform: uppercase;
    color: #fff;
    background: #0a0a0a;
    border: none;
    border-radius: 0.55556vw;
    padding: 0.97222vw;
    cursor: pointer;
    transition: opacity 0.25s ease;
    margin-top: 0.55556vw;
}

.ac-submit:hover {
    opacity: 0.85;
}

.ac-status {
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    margin: 0.83333vw 0 0;
    display: none;
    text-align: center;
}

/* ========================================
   ASTRO ACCELERATOR — RESPONSIVE
======================================== */
@media (max-width: 900px) {
  html:not(.desktop) {
    .ac-perks {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.66667vw;
    }

    .ac-portfolio {
        flex-direction: column;
        align-items: center;
    }

    .ac-portfolio-card {
        max-width: 100%;
        width: 100%;
    }

    .ac-partners {
        flex-direction: column;
        gap: 2.22222vw;
    }

    .ac-partner {
        width: 100%;
        text-align: center;
    }

    .ac-form-row {
        flex-direction: column;
        gap: 0;
    }
  }
}

@media (max-width: 768px) {
  html:not(.desktop) {
    .ac-hero-sub {
        font-size: 13px;
        max-width: 90%;
        margin-top: 16px;
        letter-spacing: 1px;
    }

    .ac-origin-big {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .ac-origin-sm {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .ac-section-name {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .ac-text {
        font-size: 16px;
        max-width: 90%;
    }

    .ac-perk-num {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .ac-perk-title {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .ac-perk-desc {
        font-size: 14px;
    }

    .ac-portfolio-tag {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .ac-portfolio-name {
        font-size: 20px;
        letter-spacing: 1px;
        margin: 8px 0;
    }

    .ac-portfolio-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .ac-portfolio-status {
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 4px;
        letter-spacing: 1px;
    }

    .ac-partner {
        padding: 16px 24px;
        border-radius: 8px;
    }

    .ac-partner-name {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .ac-form {
        max-width: 100%;
    }

    .ac-label {
        font-size: 11px;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .ac-input,
    .ac-textarea {
        font-size: 16px;
        padding: 12px;
        border-radius: 8px;
    }

    .ac-textarea {
        min-height: 100px;
    }

    .ac-submit {
        font-size: 14px;
        padding: 12px 24px;
        border-radius: 8px;
        letter-spacing: 2px;
        margin-top: 8px;
    }

    .ac-status {
        font-size: 12px;
        margin-top: 10px;
    }

    .ac-portfolio-card {
        padding: 20px;
        border-radius: 8px;
    }

    .ac-section-heading {
        margin-bottom: 32px;
    }

    .ac-form-group {
        margin-bottom: 14px;
    }
  }
}

@media (max-width: 520px) {
  html:not(.desktop) {
    .ac-hero-content {
        padding: 0 3.84615vw 12vh;
    }

    .ac-section {
        padding: 15.38462vw 3.84615vw;
    }

    .ac-perks {
        grid-template-columns: 1fr;
    }

    .ac-text {
        font-size: 15px;
        max-width: 100%;
    }

    .ac-origin-big {
        font-size: 22px;
    }

    .ac-origin-sm {
        font-size: 12px;
    }

    .ac-hero-title {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .ac-section-name {
        font-size: 24px;
    }
  }
}

/* ========================================
   BLACK ROOM INFO PAGE (.bri-*)
======================================== */

.bri-page {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5.55556vw;
}

/* ── Interactive Canvas Background ── */
.bri-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Info page — terminal header on dark bg */
.bri-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.bri-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}
.bri-header {
    position: absolute;
    top: 80px;
    left: 32px;
    z-index: 10;
    text-align: left;
}
.bri-header .xc-term-line {
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.5;
}
.bri-back-link {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}
.bri-back-link:hover {
    color: rgba(255,255,255,0.8);
}
.bri-prompt {
    color: rgba(255,255,255,0.7) !important;
}
.bri-desc {
    color: rgba(255,255,255,0.4) !important;
}

/* Title — bottom center */
.bri-title {
    position: absolute;
    bottom: 2.5vw;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1.94444vw;
    font-weight: 900;
    letter-spacing: 0.20833vw;
    color: #fff;
    white-space: nowrap;
    z-index: 10;
    margin: 0;
}

/* ── 3D Scene ── */
.bri-scene {
    width: 40.27778vw;
    height: 40.27778vw;
    z-index: 2;
    animation: briFloat 4s ease-in-out infinite;
}

.bri-model {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

@keyframes briFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.97222vw); }
}

/* ── Info Points ── */
.bri-points {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.bri-point {
    position: absolute;
    pointer-events: auto;
    padding: 1.38889vw;
    cursor: default;
}

.bri-point-tl { top: 22%; left: 22%; }
.bri-point-tr { top: 22%; right: 22%; }
.bri-point-bl { bottom: 22%; left: 22%; }
.bri-point-br { bottom: 22%; right: 22%; }

/* Dot */
.bri-dot {
    width: 0.83333vw;
    height: 0.83333vw;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    animation: briPulse 3s ease-in-out infinite;
}

.bri-dot::before {
    content: '';
    position: absolute;
    inset: -0.41667vw;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: briRing 3s ease-in-out infinite;
}

@keyframes briPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes briRing {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.8); opacity: 0; }
}

/* Info text — extends from dot toward nearest screen edge */
.bri-tooltip {
    position: absolute;
    width: 16.66667vw;
    padding: 0;
    background: none;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    top: 50%;
}

/* Left-side dots: text extends LEFT, aligned RIGHT (near dot) */
.bri-point-tl .bri-tooltip,
.bri-point-bl .bri-tooltip {
    right: calc(100% + 0.55556vw);
    transform: translateY(-50%) translateX(0.69444vw);
    text-align: right;
}

/* Right-side dots: text extends RIGHT, aligned LEFT (near dot) */
.bri-point-tr .bri-tooltip,
.bri-point-br .bri-tooltip {
    left: calc(100% + 0.55556vw);
    transform: translateY(-50%) translateX(-0.69444vw);
    text-align: left;
}

.bri-point:hover .bri-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.bri-point:hover .bri-dot {
    animation: none;
    opacity: 1;
}

.bri-tt-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625vw;
    font-weight: 700;
    letter-spacing: 0.20833vw;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.41667vw;
}

.bri-tt-title {
    font-family: var(--font-heading);
    font-size: 1.38889vw;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.13889vw;
    margin: 0 0 0.41667vw;
}

.bri-tt-text {
    font-family: var(--font-mono);
    font-size: 0.76389vw;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   BLACK ROOM INFO — RESPONSIVE
======================================== */
@media (max-width: 768px) {
  html:not(.desktop) {
    .bri-scene {
        width: 200px;
        height: 200px;
    }

    .bri-point-tl { top: 15%; left: 8%; }
    .bri-point-tr { top: 15%; right: 8%; }
    .bri-point-bl { bottom: 18%; left: 8%; }
    .bri-point-br { bottom: 18%; right: 8%; }

    .bri-tooltip {
        width: 120px;
    }

    .bri-tt-title {
        font-size: 11px;
    }

    .bri-tt-text {
        font-size: 10px;
    }
  }
}

@media (max-width: 480px) {
  html:not(.desktop) {
    .bri-scene {
        width: 180px;
        height: 180px;
    }

    .bri-point-tl { top: 12%; left: 5%; }
    .bri-point-tr { top: 12%; right: 5%; }
    .bri-point-bl { bottom: 15%; left: 5%; }
    .bri-point-br { bottom: 15%; right: 5%; }

    .bri-tooltip {
        width: 110px;
    }

    .bri-tt-title {
        font-size: 10px;
    }

    .bri-tt-text {
        font-size: 9px;
    }
  }
}

/* ========================================
   BETA TERMINAL PAGE
======================================== */
.beta-page {
    margin: 0;
    padding: 0;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding-top: 24px;
}

.beta-page .xc-logo {
    margin-bottom: 0;
    flex-shrink: 0;
}

.beta-terminal {
    width: 100%;
    max-width: 48.61111vw;
    padding: 2.77778vw 1.38889vw;
    margin: auto 0;
    cursor: text;
}

.beta-line {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.38889vw;
    color: #000;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}

.beta-heading {
    color: #000;
    font-size: 1.52778vw;
    letter-spacing: 0.13889vw;
}

.beta-muted {
    color: rgba(0, 0, 0, 0.35);
}

.beta-cmd {
    color: rgba(0, 0, 0, 0.45);
}

.beta-prompt-echo {
    color: #000;
}

.beta-error {
    color: #000;
    text-decoration: underline;
}

/* Inline prompt */
.beta-input-line {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.38889vw;
    color: #000;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.beta-input-line .beta-ps1 {
    white-space: nowrap;
    flex-shrink: 0;
}

.beta-input-line .beta-input {
    flex: 0 0 auto;
    width: 1ch;
    max-width: calc(100% - 2ch);
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
}

.beta-cursor {
    display: inline-block;
    width: 0.76389vw;
    height: 1.52778vw;
    background: #000;
    vertical-align: text-bottom;
    flex-shrink: 0;
    animation: beta-blink 1s step-end infinite;
}

@keyframes beta-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
  html:not(.desktop) {
    .beta-terminal {
        padding: 3.125vw 2.08333vw;
    }
  }
}

