/* ==========================================================================
   QUINN ANTHONY — DESIGN SYSTEM & HOME SCREEN STYLES
   ========================================================================== */

:root {
    --bg-void: #000000;
    --bg-obsidian: #050507;
    --text-pure: #ffffff;
    --text-silver: rgba(255, 255, 255, 0.78);
    --text-muted: rgba(255, 255, 255, 0.42);
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.35);
    --glass-surface: rgba(12, 12, 16, 0.48);
    --glass-hover: rgba(26, 26, 34, 0.65);
    
    --font-display: 'Syne', 'Outfit', sans-serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-editorial: 'Cormorant Garamond', Georgia, serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-void);
    color: var(--text-pure);
    font-family: var(--font-sans);
    overflow: hidden; /* Full-bleed locked home screen experience */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

[hidden] {
    display: none !important;
}

/* ==========================================================================
   SUBTLE FILM GRAIN OVERLAY
   ========================================================================== */
.film-grain {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   TOP NAVIGATION HEADER + TOP-OF-SCREEN MP3 & BEATS PLAYER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 45;
    display: flex;
    flex-direction: column;
    padding: 0.7rem clamp(0.85rem, 1.6vw, 1.75rem) 0.55rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.82) 78%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(0.4rem, 0.8vw, 0.85rem);
    width: 100%;
    min-width: 0;
}

/* Integrated Compact Top-of-Screen MP3 & Beats Deck (Shrunk so Nav Links have Priority) */
.top-mp3-player {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    background: rgba(12, 14, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), inset 0 0 14px rgba(0, 240, 255, 0.04);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    flex: 0 0 auto;
    white-space: nowrap;
}

.top-mp3-player.is-playing {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 240, 255, 0.14);
}

.mp3-transport {
    display: flex;
    align-items: center;
    gap: 0.08rem;
}

.mp3-ctrl-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-silver);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.mp3-ctrl-btn:hover {
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.1);
}

.mp3-play-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: var(--text-pure);
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    padding: 0;
}

.mp3-play-btn:hover {
    background: #00f0ff;
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
    transform: scale(1.06);
}

.mp3-viz-canvas {
    width: 22px;
    height: 14px;
    flex-shrink: 0;
}

.mp3-track-box {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    width: 68px;
    flex-shrink: 0;
}

.mp3-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.2rem;
}

.mp3-now-title {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-pure);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68px;
}

.mp3-time-readout {
    display: none;
}

.mp3-seek-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    cursor: pointer;
}

.mp3-seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 6px #00f0ff;
    cursor: pointer;
}

.mp3-Utility-btns {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.mp3-volume-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0 0.1rem;
}

.mp3-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 38px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    outline: none;
    cursor: pointer;
}

.mp3-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffa3;
    box-shadow: 0 0 6px #00ffa3;
    cursor: pointer;
}

.mp3-vault-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.16rem 0.38rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mp3-vault-btn:hover,
.mp3-vault-btn[aria-expanded="true"] {
    background: rgba(0, 240, 255, 0.14);
    border-color: rgba(0, 240, 255, 0.45);
    color: #00f0ff;
}

.mp3-sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffa3;
    box-shadow: 0 0 8px #00ffa3;
}

.mp3-sync-btn.is-syncing svg {
    animation: mp3Spin 0.8s linear infinite;
    color: #00f0ff;
}

@keyframes mp3Spin {
    to { transform: rotate(360deg); }
}

/* Top Expandable Playlist & Google Drive Auto-Sync Drawer */
.mp3-playlist-drawer {
    margin-top: 0.65rem;
    background: rgba(8, 10, 16, 0.96);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.92), 0 0 35px rgba(0, 240, 255, 0.1);
    padding: 1rem 1.25rem;
    max-height: 62vh;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mp3-playlist-drawer[hidden] {
    display: none !important;
}

.mp3-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mp3-drawer-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mp3-cloud-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 255, 163, 0.12);
    border: 1px solid rgba(0, 255, 163, 0.4);
    color: #00ffa3;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.mp3-drawer-subtitle {
    font-size: 0.74rem;
    color: var(--text-silver);
}

.mp3-drawer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mp3-search-input {
    padding: 0.38rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.74rem;
    width: 175px;
}

.mp3-filter-pills {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem;
    border-radius: 6px;
}

.mp3-filter-pill {
    padding: 0.28rem 0.65rem;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-silver);
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.mp3-filter-pill.active {
    background: var(--text-pure);
    color: #000000;
}

.mp3-drive-link-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #00f0ff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mp3-drive-link-btn:hover {
    background: #00f0ff;
    color: #000000;
}

.mp3-drawer-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-silver);
    cursor: pointer;
}

.mp3-tracklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 0.55rem;
    overflow-y: auto;
    padding-right: 0.25rem;
    max-height: 42vh;
}

.mp3-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-pure);
    text-align: left;
    cursor: pointer;
    transition: all 0.22s ease;
}

.mp3-track-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.35);
    transform: translateY(-1px);
}

.mp3-track-item.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.16) 0%, rgba(181, 124, 255, 0.12) 100%);
    border-color: #00f0ff;
}

.mp3-item-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.mp3-item-idx {
    font-size: 0.64rem;
    font-weight: 700;
    color: #00f0ff;
    width: 18px;
    flex-shrink: 0;
}

.mp3-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mp3-item-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-pure);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp3-item-cat {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mp3-item-play-badge {
    font-size: 0.65rem;
    color: #00ffa3;
    flex-shrink: 0;
}


.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-pure);
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.nav-logo-img {
    height: 1.35rem;
    width: auto;
    object-fit: contain;
    transition: filter 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.brand-mark:hover .brand-monogram {
    border-color: var(--text-pure);
    background: var(--text-pure);
    transform: scale(1.06);
}

.brand-mark:hover .nav-logo-img {
    filter: invert(1);
    transform: scale(1.08);
}

.brand-domain {
    font-size: clamp(0.62rem, 0.68vw, 0.75rem);
    font-weight: 500;
    letter-spacing: clamp(0.12em, 0.2vw, 0.26em);
    color: var(--text-silver);
    transition: color 0.3s ease;
}

.brand-mark:hover .brand-domain {
    color: var(--text-pure);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 0.95vw, 1.15rem);
    flex: 1 1 auto;
    min-width: 0;
}

.nav-item {
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
    text-decoration: none;
    color: #e2e8f0;
    font-size: clamp(0.66rem, 0.74vw, 0.82rem);
    font-weight: 600;
    letter-spacing: clamp(0.06em, 0.1vw, 0.13em);
    text-transform: uppercase;
    position: relative;
    padding: 0.38rem 0;
    white-space: nowrap;
    transition: color 0.35s ease, transform 0.25s ease;
}

.nav-idx {
    font-size: clamp(0.58rem, 0.62vw, 0.66rem);
    color: #38bdf8;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.35s ease;
}

.nav-ext-arrow {
    font-size: 0.65rem;
    opacity: 0.65;
    margin-left: 0.1rem;
    transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.nav-item-nonprofit {
    color: #e2e8f0;
}

.nav-item-nonprofit .nav-idx {
    color: #38bdf8;
}

.nav-item-nonprofit::after {
    background: linear-gradient(90deg, #38bdf8, #a855f7);
}

.nav-item:hover .nav-ext-arrow {
    opacity: 1;
    color: #38bdf8;
    transform: translate(2px, -2px);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-pure);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out-expo);
}

.nav-item:hover {
    color: var(--text-pure);
}

.nav-item:hover .nav-idx {
    color: var(--text-pure);
}

.nav-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Header Smoke Control & Zone Out Buttons */
.smoke-trigger-btn,
.zone-out-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.36rem clamp(0.55rem, 0.72vw, 0.82rem);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-silver);
    font-family: var(--font-sans);
    font-size: clamp(0.58rem, 0.62vw, 0.66rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.35s var(--ease-out-expo);
}

.zone-out-trigger-btn {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(0, 240, 255, 0.14));
    border-color: rgba(168, 85, 247, 0.45);
    color: #f8fafc;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.2);
}

.zone-out-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.32), rgba(0, 240, 255, 0.28));
    border-color: #00f0ff;
    color: #ffffff;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 26px rgba(168, 85, 247, 0.42), 0 0 16px rgba(0, 240, 255, 0.35);
}

.zone-out-spark {
    display: inline-block;
    color: #00f0ff;
    font-size: 0.78rem;
    line-height: 1;
    text-shadow: 0 0 8px #00f0ff, 0 0 14px #a855f7;
    animation: zoneSparkSpin 4s linear infinite;
}

@keyframes zoneSparkSpin {
    0% { transform: rotate(0deg) scale(0.95); filter: hue-rotate(0deg); }
    50% { transform: rotate(180deg) scale(1.2); filter: hue-rotate(180deg); }
    100% { transform: rotate(360deg) scale(0.95); filter: hue-rotate(360deg); }
}

.smoke-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    color: var(--text-pure);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.06);
}

.smoke-trigger-btn:active {
    transform: translateY(0) scale(0.97);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   MAIN HERO STAGE & DUAL SMOKE CANVASES
   ========================================================================== */
.hero-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 48%, #0a0a0e 0%, #030304 45%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.smoke-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Back smoke drifts behind the logo and big white letters */
.smoke-back {
    z-index: 5;
    opacity: 0.85;
}

/* Dynamic reactive logo positioned directly behind QUINN ANTHONY */
.logo-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    pointer-events: none;
}

/* Front smoke blows directly OVER the big white letters occasionally */
.smoke-front {
    z-index: 20;
    mix-blend-mode: screen;
}

/* ==========================================================================
   CENTERPIECE TYPOGRAPHY
   ========================================================================== */
.hero-centerpiece {
    position: relative;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(3.2rem, 6.5vh, 4.8rem) 1.5rem clamp(1.2rem, 2.8vh, 2.2rem);
    max-width: 1500px;
    width: 100%;
    animation: heroReveal 1.8s var(--ease-out-expo) forwards;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.eyebrow-tag {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: clamp(0.55rem, 1.6vh, 1.35rem);
    opacity: 0.7;
}

.eyebrow-line {
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.eyebrow-text {
    font-size: clamp(0.6rem, 0.7vw, 0.72rem);
    font-weight: 500;
    letter-spacing: clamp(0.22em, 0.36vw, 0.42em);
    color: var(--text-silver);
    text-transform: uppercase;
}

/* BIG WHITE LETTERS: QUINN ANTHONY + LUXURY NEON TRACER STAGE */
.title-stage-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(0.55rem, 1.6vh, 1.35rem);
    padding: 0.32em 0.5em;
    max-width: calc(100vw - 2rem);
    transition: transform 0.55s var(--ease-out-expo);
}

.hero-title {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: clamp(1.85rem, min(6.3vw, 9.6vh), 7.5rem);
    line-height: 0.96;
    letter-spacing: 0.09em;
    white-space: nowrap !important;
    color: transparent; /* Visually rendered by #title-fx-canvas for pixel-level light & neon outline tracing */
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    user-select: none;
}

.title-fx-canvas {
    position: absolute;
    inset: -28px -40px;
    width: calc(100% + 80px);
    height: calc(100% + 56px);
    z-index: 2;
    pointer-events: none;
}

/* SUBTITLE: The Only Limit Is Your Imagination */
.hero-subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.76rem, min(1.8vw, 2.35vh), 1.68rem);
    letter-spacing: clamp(0.16em, 0.28vw, 0.34em);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95);
    margin-bottom: clamp(1.25rem, 3.6vh, 3.6rem);
    padding-left: 0.28em; /* Visually balance letter-spacing */
    position: relative;
}

.hero-subtitle::after {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    margin: clamp(0.65rem, 1.7vh, 1.6rem) auto 0;
}

/* ==========================================================================
   REALM PORTAL CARDS (GAMES / INNOVATIONS / MUSIC / BOOKS)
   ========================================================================== */
.realm-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 255px));
    gap: clamp(0.65rem, 1.05vw, 1.1rem);
    justify-content: center;
    width: 100%;
    max-width: 1120px;
    z-index: 25; /* Interactive above ambient smoke, while wisps still feel immersive */
}

.realm-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.85rem, 1.4vh, 1.15rem) clamp(1rem, 1.2vw, 1.4rem);
    background: var(--glass-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-pure);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.45s var(--ease-out-expo);
    overflow: visible;
}

.card-fx-canvas {
    position: absolute;
    inset: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
    pointer-events: none;
    z-index: 5;
}

.realm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.realm-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 255, 255, 0.05);
}

.realm-card:hover::before {
    opacity: 1;
}

.realm-number {
    font-family: var(--font-editorial);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-right: 1rem;
    transition: color 0.35s ease;
}

.realm-card:hover .realm-number {
    color: var(--text-pure);
}

.realm-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.realm-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-pure);
    margin-bottom: 0.2rem;
}

.realm-sub {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: color 0.35s ease;
}

.realm-card:hover .realm-sub {
    color: var(--text-silver);
}

.realm-arrow {
    width: 17px;
    height: 17px;
    color: var(--text-muted);
    transition: transform 0.4s var(--ease-out-expo), color 0.35s ease;
}

.realm-card:hover .realm-arrow {
    color: var(--text-pure);
    transform: translate(3px, -3px);
}

/* ==========================================================================
   HEADER CONTROLS & BACK TO STAGE BUTTON
   ========================================================================== */
.header-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.back-home-btn {
    position: fixed;
    top: 4.35rem;
    left: 1.75rem;
    z-index: 44;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.92rem;
    border-radius: 999px;
    background: rgba(10, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
    transition: all 0.35s var(--ease-out-expo);
}

.back-home-btn[hidden] {
    display: none !important;
}

.back-home-btn:hover {
    background: var(--text-pure);
    color: var(--bg-void);
    transform: translateX(-2px);
}

.nav-item.active-nav {
    color: var(--text-pure);
}

.nav-item.active-nav .nav-idx {
    color: #00f0ff;
}

.nav-item.active-nav::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   GAMES / INTERACTIVE WORLDS PORTAL PAGE (PLAY • INNOVATE • LEARN)
   ========================================================================== */
.games-portal-page {
    position: fixed;
    inset: 0;
    z-index: 26;
    overflow-y: auto;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(16, 18, 28, 0.92) 0%, rgba(4, 4, 7, 0.96) 55%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 7.5rem 3.5rem 6rem;
    scroll-behavior: smooth;
    animation: portalFadeIn 0.65s var(--ease-out-expo) forwards;
}

.games-portal-page[hidden] {
    display: none !important;
}

@keyframes portalFadeIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.games-portal-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.portal-hero-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

.portal-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.38em;
    color: var(--text-silver);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.portal-main-title {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: clamp(2.4rem, 5.2vw, 4.75rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-pure);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.16);
    margin-bottom: 1rem;
}

.portal-main-sub {
    max-width: 660px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-silver);
    margin-bottom: 2.5rem;
}

/* Pillar Filter Tabs (All / Play / Innovate / Learn) */
.pillar-nav-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.pillar-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-silver);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
}

.pillar-num {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pillar-tab:hover {
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.06);
}

.pillar-tab.active {
    background: var(--text-pure);
    color: var(--bg-void);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

.pillar-tab.active .pillar-num {
    color: rgba(0, 0, 0, 0.55);
}

/* Pillar Section Headers */
.pillar-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pillar-section[hidden] {
    display: none !important;
}

.pillar-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-index-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #00f0ff;
    margin-bottom: 0.45rem;
}

.pillar-heading {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-pure);
}

.pillar-desc {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-silver);
    max-width: 460px;
}

/* ==========================================================================
   01 / PLAY — GAME CARDS & SLAVER'S GATE FEATURED CARD
   ========================================================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.75rem;
}

.game-card {
    grid-column: span 6;
    background: rgba(14, 15, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.45s var(--ease-out-expo);
}

.itch-game-card {
    grid-column: span 3;
}

@media (max-width: 1100px) {
    .itch-game-card {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .itch-game-card {
        grid-column: span 12;
    }
}

.game-card[hidden],
.itch-store-banner[hidden] {
    display: none !important;
}

.featured-game-card {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: stretch;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(20, 22, 32, 0.88) 0%, rgba(10, 10, 15, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.18);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.08);
}

.game-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #07070b;
    overflow: hidden;
}

.featured-game-card .game-card-media {
    width: 300px;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    aspect-ratio: 1 / 1;
}

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s var(--ease-out-expo);
}

.game-card:hover .game-card-img {
    transform: scale(1.05);
}

.procedural-cover {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.24em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.cover-outpost {
    background: radial-gradient(circle at 30% 30%, #3b2416 0%, #120c08 70%, #050507 100%);
}

.cover-cellmax {
    background: radial-gradient(circle at 70% 30%, #103832 0%, #071418 70%, #050507 100%);
}

.game-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    pointer-events: none;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(0, 255, 163, 0.45);
    color: #00ffa3;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    backdrop-filter: blur(8px);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffa3;
    box-shadow: 0 0 8px #00ffa3;
}

.badge-tag {
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-pure);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    backdrop-filter: blur(8px);
}

.game-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    flex: 1;
}

.game-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.game-engine {
    color: #b57cff;
}

.game-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-pure);
}

.game-synopsis {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-silver);
}

.game-controls-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    font-size: 0.68rem;
    color: var(--text-silver);
}

.game-controls-hint span {
    margin-right: 0.5rem;
}

.game-controls-hint b {
    color: var(--text-pure);
    font-weight: 700;
}

.game-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn-primary-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.78rem 1.4rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: var(--text-pure);
    color: var(--bg-void);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s var(--ease-out-expo);
}

.btn-primary-launch:hover {
    background: #00f0ff;
    border-color: #00f0ff;
    color: #000000;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.45);
    transform: translateY(-2px);
}

.btn-secondary-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
}

.btn-secondary-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

/* See More Button */
.see-more-row {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
}

.btn-see-more:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-pure);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
}

.btn-see-more[aria-expanded="true"] .see-more-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   02 / INNOVATE — THE Q TOOL & GAME APPS
   ========================================================================== */
.innovate-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 1.75rem;
}

.tool-card {
    position: relative;
    padding: 2rem;
    background: rgba(14, 15, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    transition: all 0.45s var(--ease-out-expo);
}

.featured-tool-card {
    background: linear-gradient(145deg, rgba(24, 18, 42, 0.82) 0%, rgba(10, 12, 22, 0.9) 100%);
    border-color: rgba(181, 124, 255, 0.35);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-q-logo {
    height: 28px;
    width: auto;
}

.tool-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.tool-status-pill {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #00f0ff;
}

.tool-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-pure);
}

.tool-tagline {
    font-size: 0.82rem;
    font-weight: 600;
    color: #b57cff;
    letter-spacing: 0.04em;
}

.tool-description {
    font-size: 0.86rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-silver);
}

.tool-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.feature-chip {
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.66rem;
    color: var(--text-silver);
    letter-spacing: 0.06em;
}

.tool-actions {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* ==========================================================================
   03 / LEARN — YOUTUBE CHANNEL CARDS
   ========================================================================== */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.yt-card {
    background: rgba(14, 15, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.45s var(--ease-out-expo);
}

.yt-card[hidden],
.extra-game-card[hidden],
.extra-learn-drawer[hidden] {
    display: none !important;
}

.yt-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 65, 108, 0.5);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
}

.yt-thumbnail-wrap {
    position: relative;
    height: 195px;
    background: #08080c;
    overflow: hidden;
}

.yt-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.yt-card:hover .yt-thumb-img {
    transform: scale(1.06);
}

.yt-procedural-thumb {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e1633 0%, #07070c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.yt-thumb-logo {
    height: 58px;
    width: auto;
    opacity: 0.85;
}

.yt-thumb-caption {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--text-silver);
}

.yt-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.22rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-pure);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.yt-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.yt-play-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 0, 55, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 0, 55, 0.45);
    transition: transform 0.35s var(--ease-out-expo);
}

.yt-card:hover .yt-play-circle {
    transform: scale(1.12);
}

.yt-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.yt-tag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.yt-badge {
    color: #ff3860;
}

.yt-level {
    color: var(--text-muted);
}

.yt-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-pure);
}

.yt-desc {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-silver);
}

.yt-watch-link {
    margin-top: auto;
    padding-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-pure);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.yt-watch-link:hover {
    color: #ff3860;
}

/* ==========================================================================
   PLAYABLE GAME THEATRE MODAL & THE Q TOOL MODAL
   ========================================================================== */
.game-theatre-modal,
.qtool-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}

.game-theatre-modal[hidden],
.qtool-modal[hidden] {
    display: none !important;
}

.theatre-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.75rem;
    background: #060609;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.theatre-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theatre-game-name {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--text-pure);
}

.theatre-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.theatre-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theatre-btn {
    padding: 0.48rem 1rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.theatre-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theatre-close-btn {
    background: rgba(255, 56, 96, 0.16);
    border-color: rgba(255, 56, 96, 0.45);
    color: #ff6b88;
}

.theatre-close-btn:hover {
    background: #ff3860;
    color: #ffffff;
}

.theatre-frame-wrap {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #000000;
}

#game-theatre-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* The Q Tool Window */
.qtool-modal {
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.qtool-window {
    width: 100%;
    max-width: 980px;
    background: #090a10;
    border: 1px solid rgba(181, 124, 255, 0.38);
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 45px rgba(181, 124, 255, 0.12);
    overflow: hidden;
}

.qtool-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qtool-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qtool-mini-logo {
    height: 30px;
    width: auto;
}

.qtool-modal-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--text-pure);
}

.qtool-modal-sub {
    font-size: 0.72rem;
    color: var(--text-silver);
}

.qtool-content {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1.75rem;
    padding: 1.75rem;
}

.qtool-controls-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.qtool-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-silver);
}

.qtool-field select,
.qtool-field input[type="range"] {
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.82rem;
}

.qtool-field select option {
    background: #0c0d14;
    color: #ffffff;
}

.qtool-field small {
    font-size: 0.7rem;
    color: #00f0ff;
    text-transform: none;
    letter-spacing: 0.04em;
}

.qtool-output-col {
    display: flex;
    flex-direction: column;
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.qtool-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-silver);
}

.qtool-copy-btn {
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #00f0ff;
    font-size: 0.66rem;
    font-weight: 600;
    cursor: pointer;
}

.qtool-code-box {
    padding: 1.15rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #d6e4ff;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 290px;
}

/* ==========================================================================
   CRITTER SNAP — INLINE PWA PROTOCOL BOX & FULL PWA GUIDE MODAL
   ========================================================================== */
.critter-snap-card {
    border-color: rgba(0, 255, 163, 0.25);
    background: linear-gradient(135deg, rgba(14, 28, 24, 0.88) 0%, rgba(10, 12, 18, 0.94) 100%);
}

.critter-snap-card:hover {
    border-color: rgba(0, 255, 163, 0.55);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 38px rgba(0, 255, 163, 0.14);
}

.wildcode-card {
    border-color: rgba(0, 240, 255, 0.28);
    background: linear-gradient(135deg, rgba(14, 20, 34, 0.9) 0%, rgba(18, 10, 26, 0.94) 100%);
}

.wildcode-card:hover {
    border-color: rgba(0, 240, 255, 0.65);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 240, 255, 0.16);
}

.wildcode-auth-box {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.28);
}

.wildcode-pill {
    color: #00f0ff;
}

.wildcode-upc-tag {
    padding: 0.22rem 0.6rem;
    border-radius: 4px;
    background: rgba(181, 124, 255, 0.14);
    border: 1px solid rgba(181, 124, 255, 0.4);
    color: #d8b8ff;
    font-family: monospace;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.chromafreq-card,
.chromafreq-tool-card {
    border-color: rgba(181, 124, 255, 0.38);
    background: linear-gradient(135deg, rgba(24, 16, 40, 0.92) 0%, rgba(12, 22, 34, 0.95) 100%);
}

.chromafreq-card:hover,
.chromafreq-tool-card:hover {
    border-color: rgba(0, 240, 255, 0.7);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 42px rgba(181, 124, 255, 0.22);
}

.chromafreq-info-box {
    background: linear-gradient(135deg, rgba(181, 124, 255, 0.08) 0%, rgba(0, 240, 255, 0.05) 100%);
    border-color: rgba(181, 124, 255, 0.35);
}

.chromafreq-pill {
    color: #d8b8ff;
}

.pwa-inline-box {
    padding: 0.95rem 1.15rem;
    border-radius: 8px;
    background: rgba(0, 255, 163, 0.045);
    border: 1px solid rgba(0, 255, 163, 0.24);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pwa-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pwa-badge-pill {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #00ffa3;
}

.pwa-guide-trigger {
    background: rgba(0, 255, 163, 0.12);
    border: 1px solid rgba(0, 255, 163, 0.38);
    color: #00ffa3;
    border-radius: 4px;
    padding: 0.24rem 0.65rem;
    font-family: var(--font-sans);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pwa-guide-trigger:hover {
    background: #00ffa3;
    color: #000000;
}

.pwa-mini-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-silver);
}

.pwa-mini-steps b {
    color: var(--text-pure);
    font-weight: 600;
}

.pwa-ico {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: #00f0ff;
    font-family: monospace;
    font-size: 0.72rem;
}

/* Full PWA Installation Protocol Modal */
.pwa-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.pwa-guide-modal[hidden] {
    display: none !important;
}

.pwa-modal-window {
    width: 100%;
    max-width: 980px;
    background: #080a0f;
    border: 1px solid rgba(0, 255, 163, 0.38);
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.92), 0 0 45px rgba(0, 255, 163, 0.14);
    overflow: hidden;
}

.pwa-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.75rem;
    background: rgba(0, 255, 163, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-modal-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.pwa-modal-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-pure);
}

.pwa-modal-sub {
    font-size: 0.72rem;
    color: var(--text-silver);
}

.pwa-modal-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pwa-hero-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.08) 0%, rgba(0, 240, 255, 0.04) 100%);
    border: 1px solid rgba(0, 255, 163, 0.25);
}

.pwa-protocol-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #00ffa3;
    margin-bottom: 0.35rem;
}

.pwa-banner-info h5 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-pure);
    margin-bottom: 0.45rem;
}

.pwa-banner-info p {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--text-silver);
    margin-bottom: 1rem;
}

.pwa-url-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pwa-url-bar input {
    flex: 1;
    min-width: 220px;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #00ffa3;
    font-family: monospace;
    font-size: 0.78rem;
}

.btn-copy-pwa,
.btn-open-pwa {
    padding: 0.65rem 1.05rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-copy-pwa {
    background: rgba(0, 255, 163, 0.15);
    border: 1px solid rgba(0, 255, 163, 0.45);
    color: #00ffa3;
}

.btn-copy-pwa:hover {
    background: #00ffa3;
    color: #000000;
}

.btn-open-pwa {
    background: var(--text-pure);
    border: 1px solid var(--text-pure);
    color: #000000;
}

.btn-open-pwa:hover {
    background: #00f0ff;
    border-color: #00f0ff;
}

.pwa-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #050609;
    border: 1px solid rgba(0, 255, 163, 0.3);
}

.pwa-qr-img {
    border-radius: 4px;
    display: block;
}

.pwa-qr-caption {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #00ffa3;
}

.pwa-platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pwa-platform-card {
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pwa-platform-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #00f0ff;
    margin-bottom: 0.25rem;
}

.pwa-platform-header h6 {
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-pure);
}

.pwa-step-list {
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-silver);
}

.pwa-step-list b {
    color: var(--text-pure);
}

/* Q Idea Engine Card & Info Box Accents */
.q-idea-card:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 38px rgba(139, 92, 246, 0.18);
}

.q-idea-info-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(139, 92, 246, 0.09));
    border-color: rgba(245, 158, 11, 0.32);
}

.q-idea-pill {
    color: #fbbf24;
}

.q-idea-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(139, 92, 246, 0.25));
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

/* ==========================================================================
   BOOKS / LITERARY VAULT & HALLOWEEN SHOWCASE STYLES
   ========================================================================== */
.halloween-badge {
    color: #fb923c !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    background: rgba(249, 115, 22, 0.1) !important;
}

.horror-book-card {
    grid-template-columns: 380px 1fr;
    border-color: rgba(234, 88, 12, 0.28);
    background: radial-gradient(circle at 18% 50%, rgba(185, 28, 28, 0.14), rgba(12, 10, 14, 0.95) 68%);
}

.horror-book-card:hover {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.9), 0 0 42px rgba(234, 88, 12, 0.22);
}

.book-cover-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.9rem 1.75rem 2rem;
    background: radial-gradient(circle at 50% 45%, rgba(234, 88, 12, 0.22), rgba(15, 10, 12, 0.96) 75%);
    min-height: 460px;
}

.book-3d-frame {
    position: relative;
    max-width: 245px;
    width: 100%;
    border-radius: 6px;
    box-shadow:
        -10px 16px 36px rgba(0, 0, 0, 0.88),
        0 0 28px rgba(234, 88, 12, 0.28),
        inset 2px 0 4px rgba(255, 255, 255, 0.22);
    transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo);
}

.horror-book-card:hover .book-3d-frame {
    transform: translateY(-6px) rotate(-1.5deg) scale(1.03);
    box-shadow:
        -14px 22px 46px rgba(0, 0, 0, 0.95),
        0 0 38px rgba(249, 115, 22, 0.42);
}

.book-cover-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.book-vol-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 0.2rem 0.65rem;
    margin-left: 0.45rem;
    vertical-align: middle;
    border-radius: 999px;
    color: #fdba74;
    background: rgba(234, 88, 12, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.45);
}

.halloween-pill {
    background: rgba(154, 52, 18, 0.82) !important;
    border-color: rgba(251, 146, 60, 0.55) !important;
    color: #ffedd5 !important;
}

.halloween-dot {
    background: #fb923c !important;
    box-shadow: 0 0 10px #fb923c !important;
}

.horror-book-info-box {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.12), rgba(234, 88, 12, 0.08));
    border-color: rgba(249, 115, 22, 0.35);
}

.horror-pill {
    color: #fb923c;
}

.btn-amazon-buy {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #ffffff !important;
    border: 1px solid rgba(253, 186, 116, 0.5) !important;
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.35);
}

.btn-amazon-buy:hover {
    background: linear-gradient(135deg, #fb923c, #f97316) !important;
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.52);
}

/* In-Page Horror Story #1 Author Reading & Original Score Video Box */
.horror-story-video-box {
    margin: 1.15rem 0 1.35rem;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(24, 9, 12, 0.92), rgba(12, 8, 16, 0.96));
    border: 1px solid rgba(249, 115, 22, 0.38);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.78),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.horror-story-video-box.is-playing-video {
    border-color: rgba(251, 146, 60, 0.82);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.88),
        0 0 32px rgba(234, 88, 12, 0.32);
}

.horror-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.horror-video-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fb923c;
}

.horror-video-audio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.24rem 0.68rem;
    border-radius: 999px;
    color: #fdba74;
    background: rgba(234, 88, 12, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.4);
    transition: all 0.28s ease;
}

.horror-video-audio-pill.is-muted-active {
    color: #fef08a;
    background: rgba(220, 38, 38, 0.28);
    border-color: rgba(251, 191, 36, 0.68);
    box-shadow: 0 0 16px rgba(234, 88, 12, 0.38);
}

.horror-video-meta {
    margin-bottom: 0.85rem;
}

.horror-video-title {
    margin: 0 0 0.32rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff7ed;
}

.horror-video-sub {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.52;
    color: rgba(255, 237, 213, 0.78);
}

.horror-video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #050307;
    border: 1px solid rgba(251, 146, 60, 0.36);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
}

.horror-story-yt-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.horror-video-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.85rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(251, 146, 60, 0.2);
}

.horror-video-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    flex: 1 1 280px;
}

.horror-cta-hook {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fb923c;
}

.horror-cta-copy {
    font-size: 0.79rem;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.85);
}

.horror-quick-play-btn {
    border-color: rgba(251, 146, 60, 0.5) !important;
    color: #ffedd5 !important;
    background: rgba(234, 88, 12, 0.18) !important;
    white-space: nowrap;
}

.horror-quick-play-btn:hover {
    background: rgba(249, 115, 22, 0.34) !important;
    border-color: rgba(253, 186, 116, 0.85) !important;
}

/* Second Book Showcase Card: Okay, But Where's The Off Switch? */
.offswitch-book-card {
    grid-template-columns: 380px 1fr;
    border-color: rgba(56, 189, 248, 0.28);
    background: radial-gradient(circle at 18% 50%, rgba(234, 88, 12, 0.1), rgba(10, 14, 22, 0.95) 68%);
}

.offswitch-book-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.9), 0 0 42px rgba(56, 189, 248, 0.2);
}

.offswitch-cover-stage {
    background: radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.18), rgba(12, 14, 20, 0.96) 75%);
}

.offswitch-book-card:hover .book-3d-frame {
    transform: translateY(-6px) rotate(1.2deg) scale(1.03);
    box-shadow:
        -14px 22px 46px rgba(0, 0, 0, 0.95),
        0 0 38px rgba(56, 189, 248, 0.38);
}

.offswitch-book-info-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(234, 88, 12, 0.08));
    border-color: rgba(56, 189, 248, 0.32);
}

.offswitch-pill {
    color: #38bdf8;
}

/* ==========================================================================
   ZONE OUT — SCREEN FADE & FULLSCREEN TRIPPY MUSIC VISUALIZER + MINIMAL HUD
   ========================================================================== */
body.zone-out-active .site-header,
body.zone-out-active .hero-stage,
body.zone-out-active .games-portal-page {
    opacity: 0 !important;
    transform: scale(1.06);
    filter: blur(18px);
    pointer-events: none !important;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s ease;
}

.site-header,
.hero-stage,
.games-portal-page {
    transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
}

.zone-out-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000000;
    overflow: hidden;
    opacity: 0;
    animation: zoneOutExplodeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.zone-out-stage[hidden] {
    display: none !important;
}

@keyframes zoneOutExplodeIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
        filter: brightness(2.2) contrast(1.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) contrast(1);
    }
}

.zone-out-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Minimal, Unintrusive Floating Controls at Bottom Center */
.zone-out-hud {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    background: rgba(6, 8, 14, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.75);
    opacity: 0.82;
    transition: opacity 0.45s ease, transform 0.35s ease, border-color 0.35s ease;
}

.zone-out-hud.is-idle {
    opacity: 0.22;
}

.zone-out-hud:hover {
    opacity: 1 !important;
    border-color: rgba(0, 240, 255, 0.42);
    transform: translateX(-50%) translateY(-2px);
}

.zo-hud-group {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.zo-hud-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.15rem;
}

.zo-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.zo-btn:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: rgba(0, 240, 255, 0.55);
    color: #ffffff;
}

.zo-icon-btn {
    padding: 0.26rem 0.5rem;
    font-size: 0.72rem;
}

.zo-track-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #00f0ff;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.25rem;
}

.zo-autotrip-btn.is-active {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}

.zo-glitch-btn {
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(192, 132, 252, 0.45);
    color: #e9d5ff;
}

.zo-glitch-btn.is-active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(236, 72, 153, 0.24));
    border-color: rgba(244, 114, 182, 0.65);
    color: #fdf4ff;
    box-shadow: 0 0 14px rgba(217, 70, 239, 0.28);
}

.zo-glitch-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.48), rgba(236, 72, 153, 0.44));
    border-color: #f0abfc;
    color: #ffffff;
}

/* Mutation pill disabled so effect titles never pop up over the visualizer */
.zo-mutation-pill,
.zo-mutation-pill.is-visible {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.zo-mutation-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff, 0 0 18px #d946ef;
}

.zo-explode-btn {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.28), rgba(0, 240, 255, 0.25));
    border-color: rgba(232, 121, 249, 0.65);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(217, 70, 239, 0.35);
}

.zo-explode-btn:hover {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.55), rgba(0, 240, 255, 0.5));
    border-color: #ffffff;
    box-shadow: 0 0 28px rgba(217, 70, 239, 0.8), 0 0 42px rgba(0, 240, 255, 0.55);
    transform: scale(1.06);
}

.zo-explode-btn:active {
    transform: scale(0.94);
}

.zone-out-stage.is-detonating .zone-out-canvas {
    animation: zoRealityShatter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.zone-out-stage.is-glitch-storming .zone-out-canvas {
    animation: zoGlitchStormFilter 0.42s steps(3, end);
}

@keyframes zoRealityShatter {
    0% {
        filter: hue-rotate(180deg) contrast(1.65) brightness(1.35) saturate(2.8);
        transform: scale(1.09) rotate(2.4deg);
    }
    30% {
        filter: hue-rotate(95deg) contrast(1.45) brightness(1.2) saturate(2.4);
        transform: scale(0.96) rotate(-1.8deg);
    }
    65% {
        filter: hue-rotate(45deg) contrast(1.25) saturate(1.8);
        transform: scale(1.02) rotate(0.7deg);
    }
    100% {
        filter: none;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes zoGlitchStormFilter {
    0% {
        filter: hue-rotate(120deg) contrast(1.55) saturate(2.6) invert(0.18);
    }
    50% {
        filter: hue-rotate(-95deg) contrast(1.4) brightness(1.25) saturate(2.2);
    }
    100% {
        filter: none;
    }
}

.zo-exit-btn {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.zo-exit-btn:hover {
    background: rgba(244, 63, 94, 0.35);
    border-color: #fb7185;
    color: #ffffff;
}

/* ==========================================================================
   PORTAL TELEMETRY STRIP + TOP MP3 LIKE & PLAYLIST MODE CONTROLS
   ========================================================================== */
.portal-telemetry-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(195px, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 2rem;
}

.telemetry-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    padding: 0.78rem 1rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(14, 19, 32, 0.86), rgba(7, 10, 18, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.telemetry-chip:hover {
    border-color: rgba(0, 240, 255, 0.42);
    transform: translateY(-2px);
}

.telemetry-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-bottom: 0.18rem;
}

.telemetry-dot.cyan { background: #00f0ff; box-shadow: 0 0 10px #00f0ff; }
.telemetry-dot.violet { background: #c084fc; box-shadow: 0 0 10px #c084fc; }
.telemetry-dot.emerald { background: #34d399; box-shadow: 0 0 10px #34d399; }
.telemetry-dot.amber { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
.telemetry-dot.crimson { background: #fb7185; box-shadow: 0 0 10px #fb7185; }
.telemetry-dot.pink { background: #f472b6; box-shadow: 0 0 10px #f472b6; }

.telemetry-val {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #ffffff;
}

.telemetry-lbl {
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.88);
    letter-spacing: 0.03em;
}

/* Top MP3 Player Heart / Like Button & Drawer Mode Button */
.mp3-like-current-btn {
    font-size: 0.82rem;
    line-height: 1;
    color: rgba(248, 250, 252, 0.82);
    transition: all 0.2s ease;
}

.mp3-like-current-btn.is-liked {
    color: #f43f5e !important;
    border-color: rgba(244, 63, 94, 0.55) !important;
    background: rgba(244, 63, 94, 0.18) !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

.mp3-liked-filter-pill {
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.38) !important;
}

.mp3-liked-filter-pill.active {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(217, 70, 239, 0.3)) !important;
    border-color: #fb7185 !important;
    color: #ffffff !important;
}

.mp3-mode-toggle-btn {
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.38);
    background: rgba(0, 240, 255, 0.1);
    color: #a5f3fc;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mp3-mode-toggle-btn.is-playlist-mode {
    border-color: #fb7185;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.28), rgba(217, 70, 239, 0.25));
    color: #fff1f2;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.32);
}

.mp3-item-right {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.mp3-drawer-heart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.mp3-drawer-heart-btn:hover {
    border-color: #fb7185;
    color: #fda4af;
}

.mp3-drawer-heart-btn.is-liked {
    border-color: rgba(244, 63, 94, 0.65);
    background: rgba(244, 63, 94, 0.22);
    color: #fb7185;
}

/* ==========================================================================
   02 INNOVATIONS — R&D LAB BENTO SHOWCASE & SPEC ARCHITECTURE
   ========================================================================== */
.innovations-bento-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.rd-showcase-card {
    display: grid;
    grid-template-columns: 390px 1fr;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(14, 19, 32, 0.94), rgba(7, 9, 16, 0.96));
    border: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.84), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease;
}

.rd-showcase-card[hidden],
.rd-companion-grid[hidden],
.book-bento-showcase[hidden] {
    display: none !important;
}

.rd-showcase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 38px rgba(0, 240, 255, 0.16);
}

.rd-qidea-card {
    border-color: rgba(192, 132, 252, 0.26);
}

.rd-qidea-card:hover {
    border-color: rgba(192, 132, 252, 0.62);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 38px rgba(192, 132, 252, 0.18);
}

.rd-media-bay {
    position: relative;
    padding: 1.35rem;
    background: radial-gradient(circle at 50% 45%, rgba(0, 240, 255, 0.12), rgba(5, 7, 14, 0.96) 76%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rd-qidea-card .rd-media-bay {
    background: radial-gradient(circle at 50% 45%, rgba(192, 132, 252, 0.14), rgba(5, 7, 14, 0.96) 76%);
}

.rd-media-frame {
    position: relative;
    width: 100%;
    height: 295px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #05070e;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.82);
}

.rd-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.rd-showcase-card:hover .rd-media-img {
    transform: scale(1.04);
}

.rd-media-hud-overlay {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.36rem 0.65rem;
    border-radius: 8px;
    background: rgba(4, 7, 15, 0.84);
    border: 1px solid rgba(0, 240, 255, 0.32);
    backdrop-filter: blur(8px);
    font-family: monospace;
    font-size: 0.63rem;
    color: #a5f3fc;
}

.rd-qatools-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: radial-gradient(circle at 50% 35%, rgba(0, 240, 255, 0.18), rgba(217, 70, 239, 0.12) 48%, rgba(6, 9, 18, 0.98) 88%);
}

.rd-qatools-logo {
    height: 74px;
    width: auto;
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.45));
}

.rd-qatools-badge-text {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #ffffff;
    text-align: center;
}

.rd-qatools-module-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.rd-qatools-module-pills span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #e2e8f0;
}

.rd-card-content {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.rd-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rd-domain-pill {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #67e8f9;
}

.rd-arch-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(192, 132, 252, 0.14);
    border: 1px solid rgba(192, 132, 252, 0.38);
    color: #e9d5ff;
}

.rd-card-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.rd-card-synopsis {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.62;
    color: rgba(226, 232, 240, 0.86);
}

.rd-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.rd-spec-item {
    padding: 0.8rem 0.9rem;
    border-radius: 11px;
    background: rgba(6, 10, 19, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.rd-spec-num {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #00f0ff;
    margin-bottom: 0.32rem;
}

.rd-spec-item p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(203, 213, 225, 0.85);
}

.rd-companion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
}

.rd-mini-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(14, 19, 32, 0.9), rgba(8, 11, 20, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rd-mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.48);
}

.rd-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.rd-mini-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.rd-mini-desc {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.55;
    color: rgba(203, 213, 225, 0.84);
}

/* ==========================================================================
   04 BOOKS — BALANCED EDITORIAL BENTO & IN-PAGE CINEMA THEATRE
   ========================================================================== */
.books-editorial-stack {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.book-bento-showcase {
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(18, 12, 16, 0.95), rgba(8, 10, 18, 0.97));
    border: 1px solid rgba(249, 115, 22, 0.34);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.offswitch-bento-showcase {
    background: linear-gradient(145deg, rgba(12, 18, 28, 0.95), rgba(8, 11, 19, 0.97));
    border-color: rgba(56, 189, 248, 0.34);
}

.book-bento-top {
    display: grid;
    grid-template-columns: 330px 1fr;
    align-items: stretch;
}

.book-pedestal-col {
    padding: 1.85rem 1.5rem;
    background: radial-gradient(circle at 50% 45%, rgba(234, 88, 12, 0.2), rgba(9, 7, 12, 0.96) 76%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.offswitch-bento-showcase .book-pedestal-col {
    background: radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.18), rgba(9, 12, 20, 0.96) 76%);
}

.book-pedestal-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.book-dossier-col {
    padding: 1.85rem 2.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.book-stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.book-story-card {
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    background: rgba(12, 9, 14, 0.84);
    border: 1px solid rgba(251, 146, 60, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.book-story-card.story-locked {
    border-color: rgba(244, 63, 94, 0.32);
    background: rgba(20, 9, 14, 0.84);
}

.story-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.story-pill {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fdba74;
}

.story-pill.locked {
    color: #fda4af;
}

.story-score-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.8);
}

.book-story-card h5 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: #ffffff;
}

.book-story-card p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.48;
    color: rgba(226, 232, 240, 0.82);
}

/* Dedicated Bottom Cinema Row inside Book 01 */
.horror-bento-showcase .horror-story-video-box {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(249, 115, 22, 0.32);
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(24, 9, 14, 0.96), rgba(8, 6, 12, 0.98));
}

.horror-cinema-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 1.5rem;
    align-items: center;
}

.horror-cinema-info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.offswitch-chapters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.offswitch-chapter-chip {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: rgba(7, 12, 22, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.offswitch-chip-wide {
    grid-column: 1 / -1;
}

.chap-idx {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #38bdf8;
    margin-bottom: 0.24rem;
}

.offswitch-chapter-chip p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.44;
    color: rgba(226, 232, 240, 0.85);
}

/* ==========================================================================
   03 MUSIC & BEATS PORTAL PAGE (MASTER CONSOLE · SONIC MATRIX · LOCAL PLAYLIST)
   ========================================================================== */
.music-studio-deck {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.35rem;
    padding: 1.55rem 1.75rem;
    border-radius: 18px;
    background: radial-gradient(circle at 12% 20%, rgba(0, 240, 255, 0.13), rgba(217, 70, 239, 0.09) 45%, rgba(8, 12, 20, 0.95) 85%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 1.35rem;
}

.studio-deck-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.studio-mode-pill.is-playlist-active {
    background: rgba(244, 63, 94, 0.24) !important;
    border-color: #fb7185 !important;
    color: #ffe4e6 !important;
}

.studio-title-viz-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.studio-now-meta {
    flex: 1;
    min-width: 0;
}

.studio-deck-now-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.1vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #ffffff;
    text-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

.studio-deck-sub {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.52;
    color: rgba(226, 232, 240, 0.82);
}

.music-page-viz-canvas {
    width: 210px;
    height: 56px;
    border-radius: 10px;
    background: rgba(4, 7, 15, 0.82);
    border: 1px solid rgba(0, 240, 255, 0.24);
    flex-shrink: 0;
}

.studio-deck-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.52rem;
}

.studio-ctrl-btn {
    padding: 0.52rem 0.85rem !important;
    font-size: 0.69rem !important;
}

.studio-ctrl-play-btn {
    padding: 0.56rem 1.15rem !important;
}

.studio-like-current-btn {
    border-color: rgba(244, 63, 94, 0.45) !important;
    color: #fecdd3 !important;
    background: rgba(244, 63, 94, 0.12) !important;
    padding: 0.52rem 0.88rem !important;
    font-size: 0.69rem !important;
}

.studio-like-current-btn.is-liked {
    background: rgba(244, 63, 94, 0.32) !important;
    border-color: #fb7185 !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
}

.studio-playlist-mode-btn {
    border-color: rgba(192, 132, 252, 0.45) !important;
    color: #e9d5ff !important;
    background: rgba(168, 85, 247, 0.12) !important;
    padding: 0.52rem 0.88rem !important;
    font-size: 0.69rem !important;
}

.studio-playlist-mode-btn.is-active {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(168, 85, 247, 0.32)) !important;
    border-color: #fb7185 !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.35);
}

.studio-zoneout-btn {
    border-color: rgba(217, 70, 239, 0.5) !important;
    color: #f5d0fe !important;
    background: rgba(217, 70, 239, 0.14) !important;
    padding: 0.52rem 0.88rem !important;
    font-size: 0.69rem !important;
}

.studio-inquire-current-btn {
    border-color: rgba(0, 240, 255, 0.45) !important;
    color: #a5f3fc !important;
    background: rgba(0, 240, 255, 0.1) !important;
    padding: 0.52rem 0.88rem !important;
    font-size: 0.69rem !important;
}

.studio-quick-reach-card {
    height: 100%;
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(12, 16, 28, 0.88);
    border: 1px solid rgba(217, 70, 239, 0.32);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
}

.studio-reach-eyebrow {
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e879f9;
}

.studio-quick-reach-card h5 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: #ffffff;
}

.studio-quick-reach-card p {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.48;
    color: rgba(226, 232, 240, 0.78);
}

.studio-reach-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* ==========================================================================
   DUAL-PANE SONIC WORKSTATION (VAULT MATRIX + STICKY LOCAL PLAYLIST DOCK)
   ========================================================================== */
.sonic-workstation-layout {
    display: grid;
    grid-template-columns: 1fr 365px;
    gap: 1.25rem;
    align-items: start;
}

.sonic-vault-explorer {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.music-vault-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    background: rgba(10, 14, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.music-vault-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.music-vault-filter-pill,
.beat-catalog-pill {
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-vault-filter-pill:hover,
.beat-catalog-pill:hover {
    border-color: rgba(0, 240, 255, 0.45);
    color: #ffffff;
}

.music-vault-filter-pill.active,
.beat-catalog-pill.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.24), rgba(217, 70, 239, 0.22));
    border-color: rgba(0, 240, 255, 0.7);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.22);
}

.vault-liked-pill {
    border-color: rgba(244, 63, 94, 0.36);
    color: #fda4af;
}

.vault-liked-pill.active {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.34), rgba(217, 70, 239, 0.25));
    border-color: #fb7185;
}

.music-vault-right-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.vault-view-switcher {
    display: inline-flex;
    padding: 0.18rem;
    border-radius: 999px;
    background: rgba(4, 7, 14, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.vault-view-btn {
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.vault-view-btn.active {
    background: rgba(0, 240, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.music-vault-search-wrap {
    width: 225px;
}

.music-vault-search {
    width: 100%;
    padding: 0.44rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 8, 15, 0.9);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.music-vault-search:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* A–Z Instant Crate Scrubber Bar */
.vault-alpha-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.48rem 0.85rem;
    border-radius: 10px;
    background: rgba(8, 12, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.alpha-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: rgba(148, 163, 184, 0.85);
    margin-right: 0.25rem;
}

.alpha-pill {
    padding: 0.22rem 0.56rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.16s ease;
}

.alpha-pill:hover,
.alpha-pill.active {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.18);
    color: #ffffff;
}

.vault-showing-readout {
    margin-left: auto;
    font-size: 0.66rem;
    color: rgba(148, 163, 184, 0.88);
}

/* ==========================================================================
   3 CREATIVE TRACKLIST VIEW MODES (SOLVING SCREEN SPACE FOR 45+ TRACKS)
   ========================================================================== */
.music-listen-grid {
    max-height: 610px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

/* VIEW 1: Ultra-Compact 3-Column Sonic Matrix (Fits 21-27 tracks onscreen at once!) */
.music-listen-grid.view-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 0.52rem;
}

/* VIEW 2: Studio Console Table (Single-Column High-Density DAW Tracklist) */
.music-listen-grid.view-table {
    display: flex;
    flex-direction: column;
    gap: 0.36rem;
}

/* VIEW 3: Vinyl Crate Deck Cards */
.music-listen-grid.view-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 0.78rem;
}

.music-listen-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.52rem 0.68rem;
    border-radius: 10px;
    background: rgba(11, 15, 25, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.18s ease;
}

.music-listen-grid.view-cards .music-listen-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0.88rem;
    gap: 0.68rem;
    background: linear-gradient(155deg, rgba(16, 22, 36, 0.92), rgba(9, 12, 22, 0.95));
}

.music-listen-card:hover {
    border-color: rgba(0, 240, 255, 0.42);
    background: rgba(16, 23, 38, 0.95);
    transform: translateY(-1px);
}

.music-listen-card.is-playing {
    border-color: #00f0ff;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(217, 70, 239, 0.12));
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
}

.music-listen-card.is-liked-track {
    border-left: 3px solid #fb7185;
}

.listen-card-left {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.listen-card-num {
    font-size: 0.63rem;
    font-weight: 800;
    color: rgba(0, 240, 255, 0.78);
    font-family: monospace;
    flex-shrink: 0;
}

.listen-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.listen-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listen-card-cat {
    font-size: 0.6rem;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listen-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
}

.music-listen-grid.view-cards .listen-card-actions {
    justify-content: space-between;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.listen-action-btn {
    padding: 0.26rem 0.46rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.16s ease;
}

.listen-action-btn:hover {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.18);
    color: #ffffff;
}

.listen-like-btn {
    color: rgba(248, 250, 252, 0.75);
    font-size: 0.72rem;
    padding: 0.22rem 0.44rem;
}

.listen-like-btn:hover {
    border-color: #fb7185;
    color: #fda4af;
    background: rgba(244, 63, 94, 0.15);
}

.listen-like-btn.is-liked {
    border-color: rgba(244, 63, 94, 0.68);
    background: rgba(244, 63, 94, 0.24);
    color: #fb7185;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.listen-inquire-mini-btn {
    border-color: rgba(217, 70, 239, 0.38);
    color: #f5d0fe;
    background: rgba(217, 70, 239, 0.12);
}

.listen-inquire-mini-btn:hover {
    border-color: #f0abfc;
    background: rgba(217, 70, 239, 0.28);
}

/* ==========================================================================
   STICKY LOCAL PLAYLIST & LIKED SONGS DOCK (RIGHT PANE)
   ========================================================================== */
.local-playlist-dock {
    position: sticky;
    top: 1rem;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(14, 16, 28, 0.95), rgba(8, 10, 18, 0.98));
    border: 1px solid rgba(244, 63, 94, 0.38);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.85), 0 0 28px rgba(244, 63, 94, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.playlist-dock-header {
    padding: 1.15rem 1.15rem 0.9rem;
    background: radial-gradient(circle at 85% 15%, rgba(244, 63, 94, 0.18), rgba(217, 70, 239, 0.1) 55%, transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.playlist-dock-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.playlist-dock-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #fb7185;
}

.playlist-dock-count {
    font-size: 0.64rem;
    font-weight: 800;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #ffe4e6;
}

.playlist-dock-title {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.12rem;
    color: #ffffff;
}

.playlist-dock-sub {
    margin: 0 0 0.8rem;
    font-size: 0.74rem;
    line-height: 1.45;
    color: rgba(203, 213, 225, 0.82);
}

.playlist-dock-primary-btns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.48rem;
    margin-bottom: 0.68rem;
}

.playlist-play-all-btn,
.playlist-shuffle-btn {
    padding: 0.52rem 0.65rem !important;
    font-size: 0.66rem !important;
    justify-content: center;
}

.playlist-play-all-btn.is-active-playlist-mode {
    background: linear-gradient(135deg, #f43f5e, #d946ef) !important;
    border-color: #fda4af !important;
    color: #ffffff !important;
}

.playlist-save-bar {
    display: flex;
    gap: 0.38rem;
}

.custom-playlist-input {
    flex: 1;
    min-width: 0;
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(4, 7, 14, 0.9);
    color: #ffffff;
    font-size: 0.72rem;
    outline: none;
}

.custom-playlist-input:focus {
    border-color: #fb7185;
}

.playlist-save-mix-btn {
    padding: 0.38rem 0.68rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.42);
    background: rgba(0, 240, 255, 0.14);
    color: #a5f3fc;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.playlist-save-mix-btn:hover {
    background: rgba(0, 240, 255, 0.28);
    color: #ffffff;
}

.saved-mixes-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-top: 0.48rem;
}

.saved-mix-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(192, 132, 252, 0.38);
    color: #e9d5ff;
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
}

.saved-mix-chip:hover {
    border-color: #00f0ff;
    color: #ffffff;
}

.playlist-dock-list {
    max-height: 360px;
    min-height: 170px;
    overflow-y: auto;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.playlist-empty-state {
    padding: 1.35rem 0.75rem;
    text-align: center;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.76rem;
    line-height: 1.5;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.playlist-dock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.46rem 0.6rem;
    border-radius: 9px;
    background: rgba(15, 20, 34, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.16s ease;
}

.playlist-dock-item.is-playing {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.14);
}

.playlist-item-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.playlist-item-order {
    font-size: 0.62rem;
    font-weight: 800;
    color: #fb7185;
    font-family: monospace;
}

.playlist-item-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-ctrls {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.playlist-mini-btn {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.62rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.playlist-mini-btn:hover {
    border-color: #00f0ff;
    color: #ffffff;
}

.playlist-mini-btn.remove:hover {
    border-color: #fb7185;
    background: rgba(244, 63, 94, 0.25);
    color: #ffffff;
}

.playlist-dock-footer {
    padding: 0.7rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.playlist-footer-btn {
    flex: 1;
    padding: 0.38rem 0.5rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
}

.playlist-footer-btn:hover {
    border-color: #00f0ff;
    color: #ffffff;
    background: rgba(0, 240, 255, 0.16);
}

.playlist-footer-btn.danger {
    flex: 0 0 auto;
    border-color: rgba(244, 63, 94, 0.35);
    color: #fda4af;
}

.playlist-footer-btn.danger:hover {
    background: rgba(244, 63, 94, 0.25);
    border-color: #fb7185;
    color: #ffffff;
}

/* Buy Beats: 4 Licensing Tiers Grid & High-Density Beat Store */
.beat-license-tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.beat-tier-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.35rem;
    border-radius: 16px;
    background: rgba(10, 14, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.beat-tier-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.78);
}

.featured-tier-card {
    border-color: rgba(0, 240, 255, 0.48);
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15), rgba(10, 14, 24, 0.94) 70%);
    box-shadow: 0 12px 36px rgba(0, 240, 255, 0.12);
}

.exclusive-tier-card {
    border-color: rgba(217, 70, 239, 0.42);
    background: radial-gradient(circle at 50% 0%, rgba(217, 70, 239, 0.14), rgba(10, 14, 24, 0.94) 70%);
}

.beat-tier-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #00f0ff;
    margin-bottom: 0.45rem;
}

.exclusive-tier-card .beat-tier-tag {
    color: #f0abfc;
}

.beat-tier-name {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.12rem;
    color: #ffffff;
}

.beat-tier-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #67e8f9;
    margin-bottom: 0.95rem;
}

.beat-tier-price span {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.85);
}

.beat-tier-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    font-size: 0.77rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.85);
}

.beat-tier-select-btn {
    width: 100%;
    justify-content: center;
}

/* Beat Store Catalog Grid */
.beat-store-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.beat-catalog-eyebrow {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00f0ff;
}

.beat-catalog-title {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #ffffff;
}

.beat-catalog-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.beat-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 0.85rem;
}

.beat-store-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.78rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(14, 19, 32, 0.92), rgba(8, 11, 19, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.11);
    transition: all 0.22s ease;
}

.beat-store-card:hover {
    border-color: rgba(217, 70, 239, 0.55);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
}

.beat-store-card.is-playing {
    border-color: #00f0ff;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.24);
}

.beat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.beat-sku-pill {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.13);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #67e8f9;
}

.beat-status-tag {
    font-size: 0.59rem;
    font-weight: 700;
    color: #86efac;
    letter-spacing: 0.06em;
}

.beat-card-name {
    margin: 0.3rem 0 0.15rem;
    font-family: var(--font-display);
    font-size: 0.98rem;
    color: #ffffff;
}

.beat-card-tags {
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.88);
}

.beat-card-actions {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr;
    gap: 0.45rem;
}

.beat-preview-btn,
.beat-buy-btn {
    padding: 0.46rem 0.65rem;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.beat-preview-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.beat-preview-btn:hover {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.18);
}

.beat-buy-btn {
    border: 1px solid rgba(217, 70, 239, 0.6);
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.32), rgba(0, 240, 255, 0.25));
    color: #ffffff;
}

.beat-buy-btn:hover {
    border-color: #ffffff;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.55), rgba(0, 240, 255, 0.45));
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.4);
}

/* Pillar 03: Music & Beat Inquiry Form Layout */
.music-inquiry-layout {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.music-inquiry-form-card {
    padding: 1.75rem;
    border-radius: 18px;
    background: rgba(10, 14, 24, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.82);
}

.inquiry-form-header {
    margin-bottom: 1.25rem;
}

.inquiry-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00f0ff;
    margin-bottom: 0.4rem;
}

.inquiry-form-header h4 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: #ffffff;
}

.inquiry-form-header p {
    margin: 0;
    font-size: 0.83rem;
    color: rgba(203, 213, 225, 0.82);
}

.inquiry-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
    margin-bottom: 1.2rem;
}

.inquiry-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.inquiry-field-full {
    grid-column: 1 / -1;
}

.inquiry-field label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.88);
}

.inquiry-field input,
.inquiry-field select,
.inquiry-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 8, 16, 0.9);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.83rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-field input:focus,
.inquiry-field select:focus,
.inquiry-field textarea:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}

.inquiry-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.inquiry-status-banner,
.quick-dm-feedback {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.55);
    color: #d1fae5;
    font-size: 0.8rem;
    line-height: 1.45;
}

.music-inquiry-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.inquiry-side-card {
    padding: 1.35rem;
    border-radius: 16px;
    background: rgba(10, 14, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-dm-card {
    border-color: rgba(217, 70, 239, 0.42);
    background: radial-gradient(circle at 80% 20%, rgba(217, 70, 239, 0.15), rgba(10, 14, 24, 0.94));
}

.side-card-eyebrow {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00f0ff;
}

.inquiry-side-card h5 {
    margin: 0.3rem 0 0.6rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: #ffffff;
}

.inquiry-side-card p {
    margin: 0 0 1rem;
    font-size: 0.81rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.82);
}

.beat-how-steps {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.79rem;
    line-height: 1.48;
    color: rgba(226, 232, 240, 0.85);
}

.w-full-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1180px) {
    .sonic-workstation-layout,
    .music-studio-deck,
    .rd-showcase-card,
    .book-bento-top,
    .horror-cinema-grid,
    .music-inquiry-layout {
        grid-template-columns: 1fr;
    }

    .portal-telemetry-strip,
    .beat-license-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rd-spec-grid,
    .book-stories-grid,
    .rd-companion-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GLOBAL QUICK MESSAGE / DM QUINN FLOATING WIDGET (FAB + SLIDE-UP DRAWER)
   ========================================================================== */
body.zone-out-active .quick-dm-fab,
body.zone-out-active .quick-dm-modal {
    opacity: 0 !important;
    pointer-events: none !important;
}

.quick-dm-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.45rem;
    z-index: 950;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.68rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(8, 12, 22, 0.92), rgba(22, 12, 34, 0.92));
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.8), 0 0 22px rgba(0, 240, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-dm-fab:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: #f0abfc;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 28px rgba(217, 70, 239, 0.45);
}

.quick-dm-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffa3;
    box-shadow: 0 0 10px #00ffa3;
    animation: dmPulseGlow 2s infinite ease-in-out;
}

@keyframes dmPulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.65; }
}

.quick-dm-fab-icon {
    color: #00f0ff;
}

.quick-dm-modal {
    position: fixed;
    right: 1.5rem;
    bottom: 4.65rem;
    width: min(410px, calc(100vw - 2rem));
    z-index: 960;
    border-radius: 18px;
    background: rgba(8, 11, 20, 0.96);
    border: 1px solid rgba(0, 240, 255, 0.42);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.92), 0 0 36px rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    animation: quickDmSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-dm-modal[hidden] {
    display: none !important;
}

@keyframes quickDmSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-dm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(217, 70, 239, 0.14));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-dm-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.quick-dm-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.quick-dm-sub {
    margin: 0.12rem 0 0;
    font-size: 0.69rem;
    color: rgba(203, 213, 225, 0.82);
}

.quick-dm-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 0.78rem;
}

.quick-dm-close-btn:hover {
    border-color: #fb7185;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.28);
}

.quick-dm-body {
    padding: 1.05rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.68rem;
}

.quick-dm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.quick-dm-chip {
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.quick-dm-chip.active,
.quick-dm-chip:hover {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.18);
    color: #ffffff;
}

.quick-dm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.quick-dm-body input,
.quick-dm-body textarea {
    width: 100%;
    padding: 0.58rem 0.75rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(4, 7, 14, 0.92);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    outline: none;
}

.quick-dm-body input:focus,
.quick-dm-body textarea:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.22);
}

.quick-dm-actions {
    display: flex;
    gap: 0.55rem;
}

.quick-dm-send-btn {
    flex: 1;
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (ZERO OVERLAP AT ALL SHRUNK WINDOW WIDTHS & HEIGHTS)
   ========================================================================== */
@media (max-width: 1720px) {
    .site-header {
        padding: 0.65rem 1.25rem 0.5rem;
    }

    .header-main-row {
        gap: 0.55rem;
    }

    .brand-domain {
        font-size: 0.64rem;
        letter-spacing: 0.14em;
    }

    .main-nav {
        gap: 0.7rem;
    }

    .nav-item {
        font-size: 0.72rem;
        letter-spacing: 0.07em;
    }

    .smoke-trigger-btn,
    .zone-out-trigger-btn {
        padding: 0.34rem 0.66rem;
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }
}

/* Whenever viewport is <= 1540px (or JS detects tight horizontal space),
   place the 5 navigation links on their own full-width centered row so
   QUINNANTHONY.COM, the MP3 player, and the Nav Links NEVER overlap! */
.site-header.is-compact-wrap .header-main-row {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.42rem;
}

.site-header.is-compact-wrap .main-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.15rem;
    padding-top: 0.32rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.is-compact-wrap .back-home-btn {
    top: 5.75rem;
}

@media (max-width: 1540px) {
    .site-header {
        padding: 0.6rem 1.15rem 0.5rem;
    }

    .header-main-row {
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 0.42rem;
    }

    .main-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem 1.15rem;
        padding-top: 0.32rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .back-home-btn {
        top: 5.75rem;
        left: 1.15rem;
    }

    .games-portal-page {
        padding-top: 8.65rem;
    }

    .hero-centerpiece {
        padding-top: 5.2rem;
    }
}

@media (max-width: 1024px) {
    .featured-game-card {
        grid-column: span 12;
        grid-template-columns: 1fr;
    }

    .game-card {
        grid-column: span 6;
    }

    .innovate-grid,
    .learn-grid,
    .qtool-content,
    .pwa-platforms-grid,
    .pwa-hero-banner,
    .music-studio-deck,
    .music-inquiry-layout {
        grid-template-columns: 1fr;
    }

    .beat-license-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .realm-dock {
        grid-template-columns: repeat(2, minmax(195px, 260px));
        max-width: 560px;
        gap: 0.75rem;
    }
}

@media (max-width: 900px) {
    .brand-domain {
        display: none;
    }

    .hero-title {
        white-space: nowrap !important;
        font-size: clamp(1.65rem, 6.2vw, 3.6rem);
    }

    .realm-dock {
        grid-template-columns: repeat(2, minmax(160px, 240px));
        max-width: 520px;
        gap: 0.65rem;
    }

    .hero-subtitle {
        letter-spacing: 0.16em;
        margin-bottom: 1.35rem;
    }

    .games-portal-page {
        padding: 7.4rem 1.25rem 4.5rem;
    }

    .game-card {
        grid-column: span 12;
    }

    .beat-license-tiers-grid,
    .inquiry-form-grid,
    .quick-dm-row {
        grid-template-columns: 1fr;
    }

    .quick-dm-fab {
        right: 0.9rem;
        bottom: 0.85rem;
        padding: 0.5rem 0.85rem;
        font-size: 0.64rem;
    }
}

@media (max-width: 640px) {
    .mp3-volume-wrap {
        display: none;
    }

    .header-controls {
        gap: 0.35rem;
    }

    .smoke-trigger-btn,
    .zone-out-trigger-btn {
        padding: 0.3rem 0.52rem;
        font-size: 0.55rem;
    }

    .realm-dock {
        grid-template-columns: repeat(2, minmax(135px, 1fr));
        gap: 0.5rem;
    }

    .realm-card {
        padding: 0.7rem 0.8rem;
    }

    .realm-number {
        font-size: 1rem;
        margin-right: 0.55rem;
    }

    .realm-title {
        font-size: 0.74rem;
        letter-spacing: 0.08em;
    }

    .realm-sub {
        font-size: 0.62rem;
    }
}

@media (max-height: 760px) {
    .hero-stage {
        overflow-y: auto;
    }

    .eyebrow-tag {
        margin-bottom: 0.4rem;
    }

    .title-stage-wrap {
        margin-bottom: 0.35rem;
        padding: 0.2em 0.4em;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .hero-subtitle::after {
        margin-top: 0.5rem;
    }

    .realm-card {
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   MINIMALIST LUXURY MOTIF — VISUAL, INTUITIVE, ZERO-CLUTTER ARCHITECTURE
   ========================================================================== */

.games-portal-page {
    background: radial-gradient(circle at 50% 0%, rgba(14, 19, 32, 0.98) 0%, rgba(3, 5, 9, 0.99) 70%) !important;
}

.portal-hero-header {
    text-align: center;
    margin-bottom: 2.2rem !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.portal-main-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.75rem) !important;
    font-weight: 800;
    letter-spacing: 0.28em !important;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 1.35rem 0 !important;
}

.pillar-nav-bar {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem !important;
    padding: 0.32rem !important;
    border-radius: 999px !important;
    background: rgba(10, 12, 18, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    backdrop-filter: blur(20px);
}

.pillar-tab {
    padding: 0.5rem 1.25rem !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: rgba(226, 232, 240, 0.68) !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    transition: all 0.22s ease !important;
}

.pillar-tab:hover {
    color: #ffffff !important;
}

.pillar-tab.active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

/* Minimalist Luxury Master Audio Console on Music Page */
.music-luxury-console {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    background: rgba(8, 10, 16, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(24px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.luxury-console-left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 240px;
}

.luxury-transport-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.lux-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lux-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.lux-play-orb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #ffffff;
    color: #05070c;
    font-size: 0.95rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
    transition: all 0.22s ease;
}

.lux-play-orb:hover {
    transform: scale(1.06);
    box-shadow: 0 0 32px rgba(0, 240, 255, 0.45);
}

.luxury-now-playing {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.luxury-now-tag {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
}

.luxury-now-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.luxury-console-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.lux-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(241, 245, 249, 0.9);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lux-pill-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.lux-pill-btn.is-liked,
.lux-pill-btn.is-playlist-mode {
    border-color: rgba(244, 114, 182, 0.55);
    background: rgba(244, 114, 182, 0.15);
    color: #f9a8d4;
}

.lux-pill-btn.primary {
    background: #ffffff;
    color: #05070c;
    border-color: #ffffff;
    font-weight: 700;
}

.lux-pill-btn.subtle {
    opacity: 0.72;
    padding: 0.38rem 0.68rem;
    font-size: 0.66rem;
}

.lux-pill-btn.subtle:hover {
    opacity: 1;
}

.lux-pill-btn.danger:hover {
    border-color: rgba(248, 113, 113, 0.55);
    color: #fca5a5;
}

/* Minimalist Toolbar */
.music-vault-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 14px !important;
    background: rgba(8, 10, 16, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.pill-count {
    opacity: 0.55;
    font-size: 0.65rem;
    margin-left: 0.2rem;
}

.vault-alpha-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.alpha-pill {
    padding: 0.26rem 0.52rem !important;
    border-radius: 6px !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.06em !important;
}

/* Minimalist Saved Playlist Strip */
.minimal-playlist-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.15rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(244, 114, 182, 0.07);
    border: 1px solid rgba(244, 114, 182, 0.24);
}

.minimal-playlist-left,
.minimal-playlist-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.minimal-playlist-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #f9a8d4;
    margin-right: 0.35rem;
}

/* Full-Width Luxury Track Grid & Tiles */
.music-listen-grid.view-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 0.6rem !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
}

.music-listen-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.68rem 0.9rem !important;
    border-radius: 12px !important;
    background: rgba(11, 14, 22, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.065) !important;
    transition: all 0.2s ease !important;
}

.music-listen-card:hover {
    background: rgba(18, 23, 36, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-1px);
}

.music-listen-card.is-playing {
    background: rgba(0, 240, 255, 0.08) !important;
    border-color: rgba(0, 240, 255, 0.42) !important;
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.12) !important;
}

.listen-card-orb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.music-listen-card:hover .listen-card-orb,
.beat-store-card:hover .listen-card-orb {
    background: #ffffff;
    color: #05070c;
    border-color: #ffffff;
}

.music-listen-card.is-playing .listen-card-orb,
.beat-store-card.is-playing .listen-card-orb {
    background: #00f0ff;
    color: #04070e;
    border-color: #00f0ff;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
}

.listen-card-cat {
    font-size: 0.56rem !important;
    letter-spacing: 0.16em !important;
    font-weight: 700 !important;
    opacity: 0.6;
}

.listen-card-cat.is-beat {
    color: #7dd3fc !important;
}

.listen-card-cat.is-song {
    color: #c4b5fd !important;
}

.listen-card-actions,
.beat-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    flex-shrink: 0;
}

.listen-like-btn,
.listen-action-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.76rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
}

.listen-like-btn:hover,
.listen-action-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.listen-like-btn.is-liked {
    background: rgba(244, 114, 182, 0.18) !important;
    border-color: rgba(244, 114, 182, 0.55) !important;
    color: #f472b6 !important;
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.28) !important;
}

/* Minimalist Beat Store Cards & Tiers */
.beat-tier-card {
    padding: 1.35rem !important;
    border-radius: 14px !important;
    background: rgba(10, 13, 21, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
}

.beat-tier-essence {
    margin: 0 0 0.5rem 0;
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.78);
    line-height: 1.45;
}

.beat-store-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.8rem 1rem !important;
    border-radius: 12px !important;
    background: rgba(11, 14, 22, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.beat-card-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.beat-card-name {
    margin: 0 !important;
    font-size: 0.88rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Minimalist Centered Inquiry Card */
.music-inquiry-centered-wrap {
    max-width: 680px;
    margin: 0 auto;
}

/* Minimalist Horror Video Bar on Books Page */
.horror-minimal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.horror-minimal-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.minimal-empty-state {
    grid-column: 1 / -1;
    padding: 2.5rem 1rem;
    text-align: center;
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
    .music-luxury-console {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .music-page-viz-canvas {
        width: 100%;
    }
}

/* ==========================================================================
   THE Q TOOL — INTERACTIVE 3D HARDWARE SHOWCASE & $399 BUY MODAL
   ========================================================================== */
.qtool-3d-showcase-card {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1.35fr 1fr !important;
    gap: 2.25rem !important;
    padding: 2rem !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg, rgba(12, 16, 28, 0.96), rgba(7, 10, 18, 0.98)) !important;
    border: 1px solid rgba(56, 189, 248, 0.38) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 45px rgba(56, 189, 248, 0.12) !important;
    align-items: center !important;
    position: relative;
    overflow: hidden;
}

.qtool-3d-stage-col {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    min-width: 0;
}

.qtool-3d-viewport {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 42%, rgba(30, 41, 59, 0.88) 0%, rgba(9, 13, 22, 0.98) 68%, rgba(4, 6, 12, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.qtool-3d-viewport:active {
    cursor: grabbing;
}

#qtool-3d-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.qtool-3d-top-hud {
    position: absolute;
    top: 0.9rem;
    left: 0.95rem;
    right: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    pointer-events: none;
    z-index: 4;
}

.qtool-3d-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(8, 12, 22, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.42);
    backdrop-filter: blur(10px);
    color: #e0f2fe;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.qtool-3d-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: qtoolPulse 1.8s infinite ease-in-out;
}

@keyframes qtoolPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
}

.qtool-3d-spin-btn {
    pointer-events: auto;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.qtool-3d-spin-btn.is-spinning,
.qtool-3d-spin-btn:hover {
    border-color: #38bdf8;
    color: #ffffff;
    background: rgba(56, 189, 248, 0.2);
}

.qtool-3d-hint-pill {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.36rem 0.95rem;
    border-radius: 999px;
    background: rgba(6, 9, 17, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(8px);
    z-index: 4;
}

.qtool-3d-controls-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qtool-angle-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.qtool-angle-btn {
    flex: 1 1 auto;
    padding: 0.48rem 0.75rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(226, 232, 240, 0.85);
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.qtool-angle-btn:hover,
.qtool-angle-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.22));
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.qtool-real-photos-strip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    background: rgba(8, 12, 21, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.qtool-photos-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.9);
    white-space: nowrap;
    margin-right: 0.2rem;
}

.qtool-photo-thumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.55rem 0.25rem 0.25rem;
    border-radius: 9px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.qtool-photo-thumb:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.95);
}

.qtool-photo-thumb img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.qtool-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.qtool-header-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qtool-flagship-pill {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22)) !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    color: #7dd3fc !important;
}

.qtool-price-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.qtool-main-heading {
    font-size: clamp(1.85rem, 3vw, 2.5rem) !important;
    letter-spacing: 0.04em !important;
    margin: 0 !important;
}

.qtool-buy-cta-box {
    margin-top: 0.5rem;
    padding: 1.15rem 1.35rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 12, 22, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.32);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.qtool-price-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.qtool-price-label {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #38bdf8;
}

.qtool-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.qtool-price-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.qtool-price-sub {
    font-size: 0.76rem;
    color: rgba(148, 163, 184, 0.9);
    font-weight: 500;
}

.qtool-buy-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #a855f7 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    padding: 0.85rem 1.65rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.38) !important;
}

.qtool-buy-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 16px 38px rgba(99, 102, 241, 0.55) !important;
}

/* ==========================================================================
   Q TOOL $399 BUY MODAL & PHOTO LIGHTBOX
   ========================================================================== */
.qtool-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(3, 6, 14, 0.86);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow-y: auto;
}

.qtool-modal-backdrop[hidden] {
    display: none !important;
}

.qtool-modal-card {
    position: relative;
    width: 100%;
    max-width: 620px;
    padding: 2rem;
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(13, 18, 32, 0.98), rgba(7, 10, 19, 0.99));
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.92), 0 0 50px rgba(56, 189, 248, 0.16);
    color: #f8fafc;
}

.qtool-modal-close {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qtool-modal-close:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
}

.qtool-modal-header {
    margin-bottom: 1.35rem;
}

.qtool-modal-badge-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.qtool-modal-price-pill {
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.55);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.qtool-modal-title {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: #ffffff;
}

.qtool-modal-subtitle {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(203, 213, 225, 0.88);
}

.qtool-order-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.qtool-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.qtool-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.qtool-form-field label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.9);
}

.qtool-form-field input,
.qtool-form-field select,
.qtool-form-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(6, 9, 18, 0.92);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qtool-form-field input:focus,
.qtool-form-field select:focus,
.qtool-form-field textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.qtool-form-submit-row {
    margin-top: 0.35rem;
}

.qtool-submit-email-btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.4rem !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #a855f7 100%) !important;
}

.qtool-order-fallback {
    margin-top: 1.25rem;
    padding: 1.15rem;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.45);
}

.qtool-fallback-check {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #34d399;
    margin-bottom: 0.3rem;
}

.qtool-fallback-head p {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    color: #e2e8f0;
    line-height: 1.45;
}

.qtool-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.qtool-fallback-btn {
    font-size: 0.78rem !important;
    padding: 0.6rem 0.95rem !important;
    text-decoration: none;
}

.qtool-lightbox-card {
    position: relative;
    max-width: 760px;
    width: 100%;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(9, 13, 24, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.4);
    text-align: center;
}

.qtool-lightbox-card img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    object-fit: contain;
}

.qtool-lightbox-caption {
    margin: 0.75rem 0 0;
    font-size: 0.86rem;
    color: #e2e8f0;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .qtool-3d-showcase-card {
        grid-template-columns: 1fr !important;
        padding: 1.35rem !important;
    }
    .qtool-3d-viewport {
        height: 360px;
    }
    .qtool-form-grid {
        grid-template-columns: 1fr;
    }
}


