/* ==========================================================================
   ROUF.TOP — Architectural Maker 3D Spatial Studio Design System
   Pure Vanilla CSS • Zero Runtime CDN Overhead • Ultra-Lightweight & Responsive
   ========================================================================== */

:root {
    --bg-deep: #080a0e;
    --glass-bg: rgba(14, 17, 23, 0.72);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-modal: rgba(11, 14, 20, 0.94);
    --glass-modal-border: rgba(255, 255, 255, 0.16);
    --accent-orange: #FF4500;
    --accent-cyan: #00F0FF;
    --accent-blue: #3b82f6;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--bg-deep);
    font-family: var(--font-sans);
    color: var(--text-primary);
    position: relative;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
}

/* 3D WebGL Canvas Viewport */
#canvas-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    touch-action: none;
    background: radial-gradient(circle at 50% 55%, #151924 0%, #0c0e14 65%, #080a0e 100%);
}

/* ==========================================================================
   CINEMATIC DIRECTOR'S INTRO: "THE AWAKENING"
   Pure Black • Typographic Suspense • Expands Then Fades
   ========================================================================== */

.cinema-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s ease;
}

.cinema-loader.cinema-exit {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.cinema-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* ==========================================================================
   CINEMATIC INTRO: "THE AWAKENING"
   Center-Anchored Kinetic Handoff • Zero Dead Black Screen • Continuous Zoom
   ========================================================================== */

/* Element 1: "Welcome to" Dead Center Monospace */
.cinema-text-welcome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 3.6vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.16em;
    padding-left: 0.16em; /* Optical symmetry: balances trailing letter-spacing */
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    opacity: 1;
    will-change: transform, opacity, filter;
    pointer-events: none;
    z-index: 2;
}

/* Seamless Ascending Dissolve: "Welcome to" floats gently upward and dissolves */
.cinema-text-welcome.ascend-dissolve {
    animation: cinemaWelcomeAscend 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cinemaWelcomeAscend {
    0% {
        transform: translate(-50%, -50%);
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        transform: translate(-50%, calc(-50% - 28px));
        opacity: 0;
        filter: blur(4px);
    }
}

/* Element 2: "ROUFSWEB" Dead Center Brand Title (Optically Centered to Subpixel) */
.cinema-text-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: clamp(2.4rem, 8vw, 5.4rem);
    letter-spacing: 0.18em;
    padding-left: 0.18em; /* Optical symmetry: balances trailing letter-spacing so word is dead-center */
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    pointer-events: none;
    z-index: 3;
}

/* Seamless Rising Arrival: "ROUFSWEB" smoothly rises from below into the exact same center position */
.cinema-text-brand.rise-arrive {
    visibility: visible !important;
    animation: cinemaBrandRise 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cinemaBrandRise {
    0% {
        transform: translate(-50%, calc(-50% + 28px));
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Samsung Boot Animation Inspired State: In-Text Glow with Minimal Bleed
   Luminance lives inside the letter glyphs via fluid gradient sweep; outer bleed is kept razor-tight (1px - 3.5px) */
.cinema-text-brand.boot-shimmer-loop {
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.78) 25%,
        #dbeafe 38%,
        #ffffff 47%,
        #00f0ff 50%,
        #ffffff 53%,
        #dbeafe 62%,
        rgba(255, 255, 255, 0.78) 75%,
        rgba(255, 255, 255, 0.65) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: samsungShimmerWave 2.2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite,
               samsungInTextGlow 2.0s ease-in-out infinite alternate;
}

@keyframes samsungShimmerWave {
    0% {
        background-position: 130% 0;
    }
    100% {
        background-position: -130% 0;
    }
}

@keyframes samsungInTextGlow {
    0% {
        filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 2.5px rgba(0, 240, 255, 0.40));
    }
    100% {
        filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 3.5px rgba(0, 240, 255, 0.65));
    }
}

/* Continuous Accelerating Portal Zoom: Single 0% to 100% Curve (Zero Stepping) */
.cinema-text-brand.screen-zoom-fill {
    visibility: visible !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 6px rgba(0, 240, 255, 0.5)) !important;
    animation: cinemaScreenZoomFill 0.95s cubic-bezier(0.55, 0.0, 0.85, 0.25) forwards !important;
}

@keyframes cinemaScreenZoomFill {
    0% {
        transform: translate(-50%, -50%) scale(1.0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(8.0);
        opacity: 0;
    }
}

/* Optical Typography Alignment: Cursor hangs outside layout flow with zero box-model width */
.cinema-cursor {
    position: absolute;
    left: 100%;
    top: 0;
    bottom: 0;
    width: 0;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-weight: 300;
    animation: cinemaCursorBlink 0.60s step-start infinite;
    pointer-events: none;
    overflow: visible;
    white-space: nowrap;
    transition: opacity 0.25s ease;
}

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

/* Mobile Screen Tuning */
@media (max-width: 640px) {
    .cinema-text-welcome {
        font-size: clamp(1.0rem, 4.8vw, 1.45rem);
        letter-spacing: 0.12em;
    }
    .cinema-text-brand {
        font-size: clamp(1.8rem, 8.5vw, 2.9rem);
        letter-spacing: 0.12em;
    }
}

/* Inclusive Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cinema-text-welcome.ascend-dissolve {
        animation: cinemaFadeReduced 0.3s ease forwards !important;
    }
    .cinema-text-brand.rise-arrive {
        animation: cinemaFadeInReduced 0.3s ease forwards !important;
    }
    .cinema-text-brand.screen-zoom-fill {
        animation: cinemaFadeReduced 0.4s ease forwards !important;
    }
    @keyframes cinemaFadeReduced {
        0% { opacity: 1; }
        100% { opacity: 0; }
    }
    @keyframes cinemaFadeInReduced {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }
    .top-watermark,
    .studio-dock,
    #pins-container {
        transform: none !important;
        transition: opacity 0.25s ease !important;
    }
}

/* Spatial Glassmorphism */
.spatial-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.spatial-modal {
    background: var(--glass-modal);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid var(--glass-modal-border);
    box-shadow: 0 32px 90px -12px rgba(0, 0, 0, 0.92), 0 0 45px rgba(255, 69, 0, 0.16);
}

/* Top-Left Architectural Watermark (Staggered UI Cascade) */
.top-watermark {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 20;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.studio-revealed .top-watermark {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 140ms;
}

.watermark-btn {
    padding: 6px 14px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--glass-border);
}

.watermark-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.watermark-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
}

.watermark-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
}

.watermark-handle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
}

.touch-gesture-pill {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.25);
    pointer-events: none;
    white-space: nowrap;
}

/* Mobile Virtual Thumb Joystick (Ergonomic Bottom-Left Touch Control) */
.mobile-joystick-zone {
    position: fixed;
    left: 16px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    z-index: 28;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    touch-action: none;
}

body.studio-revealed .mobile-joystick-zone {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 300ms;
}

.joystick-base {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.32);
    background: radial-gradient(circle, rgba(15, 23, 42, 0.78) 0%, rgba(8, 12, 20, 0.88) 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(56, 189, 248, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: none;
    cursor: pointer;
}

.joystick-knob {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.92), rgba(37, 99, 235, 0.95));
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 0 12px rgba(56, 189, 248, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.04s linear;
}

.joystick-label {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    pointer-events: none;
}

@media (max-width: 768px), (pointer: coarse) {
    .touch-gesture-pill {
        display: inline-flex;
    }
    .mobile-joystick-zone {
        display: flex;
    }
}

/* 3D World Floating Pins & Shelf Pill (Staggered UI Cascade) */
#pins-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.studio-revealed #pins-container {
    opacity: 1;
    transform: scale(1.0);
    transition-delay: 360ms;
}

.shelf-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.2s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 15;
}

.shelf-pin:hover {
    transform: translate(-50%, -108%) scale(1.06);
}

.pin-bubble {
    padding: 5px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.shelf-pin:hover .pin-bubble {
    border-color: rgba(255, 255, 255, 0.5);
}

.pin-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
}

.pin-dot.pulse {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.pin-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.pin-arrow {
    width: 6px;
    height: 6px;
    background: #12161f;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transform: rotate(45deg);
    margin: -3px auto 0;
}

/* Single Minimal Hover Tooltip in 3D Scene */
#hover-artifact-pill {
    position: fixed;
    transform: translate(-50%, -140%);
    pointer-events: none;
    z-index: 25;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#hover-artifact-pill .pill-inner {
    padding: 6px 12px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Snoo Speech Action Pill */
#snoo-speech-pill {
    position: fixed;
    transform: translate(-50%, -105%);
    z-index: 24;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

#snoo-speech-pill.pill-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.opacity-0,
#snoo-speech-pill.opacity-0,
#hover-artifact-pill.opacity-0 {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.snoo-speech-inner {
    padding: 6px 12px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

#snoo-speech-pill:hover .snoo-speech-inner {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.snoo-action-tag {
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.65rem;
    color: #ffffff;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Mascot SVG Animation Keyframes */
@keyframes snooBreathe {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

@keyframes antennaSpring {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(5deg); }
}

.snoo-breathe { animation: snooBreathe 3.2s ease-in-out infinite; }
.snoo-antenna-svg { transform-origin: 62px 30px; animation: antennaSpring 2.6s ease-in-out infinite; }


/* 5-Preset Architectural View Dock (Staggered UI Cascade) */
.studio-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 28px);
    z-index: 50;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.studio-revealed .studio-dock {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 240ms;
}

.dock-container {
    padding: 6px 8px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.dock-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.dock-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.dock-btn.active-dock-btn {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.8) 0%, rgba(37, 99, 235, 0.95) 100%) !important;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

.dock-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 2px;
}

.dock-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #ffffff;
}

.dock-btn:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Snoo-Held Glassmorphic Project Showcase Modal */
.banner-transition {
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

#project-banner-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 20px 84px 20px;
    background: transparent;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#project-banner-overlay.banner-closed {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(30px) scale(0.96);
}

#project-banner-overlay.banner-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: translateY(0px) scale(1);
}

.modal-snoo-wrapper {
    position: relative;
    width: 100%;
    max-width: 660px;
    z-index: 10;
    pointer-events: auto;
    margin: 0 auto;
}

.snoo-peek-bar {
    display: none; /* Snoo is alive in 3D right behind the card holding it! */
}

.modal-card-body {
    border-radius: 20px;
    padding: 16px 20px;
    background: rgba(9, 13, 22, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.15);
    max-height: min(580px, 70vh);
    overflow-y: auto;
    position: relative;
}

.modal-card-body .action-btn-primary {
    flex: initial;
    min-width: auto;
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 9999px;
    font-weight: 700;
    color: #07090e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-card-body .action-btn-secondary {
    flex: initial;
    min-width: auto;
    padding: 5px 11px;
    font-size: 11px;
    border-radius: 9999px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}

@media (max-width: 640px) {
    #project-banner-overlay {
        padding: 0 10px calc(76px + env(safe-area-inset-bottom, 0px)) 10px;
    }
    .modal-card-body {
        max-height: min(480px, 68vh);
        padding: 12px 14px;
        border-radius: 16px;
    }
}

.modal-close-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-icon:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: rotate(90deg);
}

/* 2D All Projects Directory Modal */
#directory-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(8, 10, 15, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: none;
    overflow-y: auto;
    padding: 32px 20px;
}

#directory-modal.show {
    display: block;
}

.directory-wrapper {
    max-width: 1040px;
    margin: 0 auto;
}

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

.directory-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 28px 0;
}

@media (max-width: 768px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }
}

.dir-card {
    background: rgba(14, 18, 27, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.dir-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.dir-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    margin-bottom: 8px;
}

.dir-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.dir-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 10px 0 16px;
}

.dir-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.dir-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3px 8px;
    border-radius: 5px;
}

.dir-actions {
    display: flex;
    gap: 10px;
}

.dir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
}

/* ==========================================================================
   Interactive 2D Cartoon Stage Widgets inside Spatial Modal
   ========================================================================== */

/* Stage 1: OmniScroll Virtual Dial */
.omniscroll-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    user-select: none;
    padding: 12px 10px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, rgba(10, 14, 22, 0.4) 100%);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 16px;
    margin: 8px 0;
}

.dial-container {
    position: relative;
    width: 130px;
    height: 130px;
    cursor: grab;
    touch-action: none;
}

.dial-container:active {
    cursor: grabbing;
}

.dial-outer-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #1a2232 0%, #0d121c 75%, #080c14 100%);
    border: 3px solid rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), inset 0 2px 6px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dial-ticks {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.28) 0deg 2deg, transparent 2deg 30deg);
    pointer-events: none;
}

.dial-knob {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d384e 0%, #171d2b 100%);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotate(0deg);
    transition: transform 0.05s linear;
}

.dial-indicator-dot {
    position: absolute;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 12px #00f0ff;
}

.dial-center-cap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0b1019;
    border: 1px solid rgba(0, 240, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f0ff;
    font-size: 0.82rem;
}

.dial-hud-readout {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.80rem;
    color: #94a3b8;
}

.dial-hud-readout strong {
    color: #00f0ff;
    font-size: 0.92rem;
}

.dial-hint {
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
}

/* Stage 2: Cloudflared Live Tunnel Visualizer */
.tunnel-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.06) 0%, rgba(10, 14, 22, 0.4) 100%);
    border: 1px solid rgba(255, 69, 0, 0.24);
    border-radius: 16px;
    margin: 8px 0;
}

.tunnel-nodes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 6px 10px;
}

.tunnel-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.node-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--node-color, #fff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.node-label {
    font-size: 0.70rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.tunnel-pipe {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin: 0 14px;
    position: relative;
    overflow: hidden;
}

.tunnel-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff4500, #ff8c00, transparent);
    background-size: 200% 100%;
    animation: packetStream 1.8s linear infinite;
    opacity: 0.95;
}

@keyframes packetStream {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tunnel-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.tunnel-toggle-btn {
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.4);
    color: #ff4500;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    transition: all 0.2s ease;
}

.tunnel-toggle-btn:hover {
    background: #ff4500;
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 69, 0, 0.5);
}

/* Stage 3: Nextcloud Pocket Server Console */
.nextcloud-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px;
    background: radial-gradient(circle, rgba(0, 130, 201, 0.06) 0%, rgba(10, 14, 22, 0.4) 100%);
    border: 1px solid rgba(0, 130, 201, 0.24);
    border-radius: 16px;
    margin: 8px 0;
}

.server-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 480px) {
    .server-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #f1f5f9;
}

.service-status {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-status::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.storage-meter-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.storage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.storage-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.storage-bar-fill {
    width: 38%;
    height: 100%;
    background: linear-gradient(90deg, #0082c9, #38bdf8);
    border-radius: 4px;
}

/* Stage 4: Lenovo Schematics PCB Callouts */
.schematic-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(10, 14, 22, 0.4) 100%);
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 16px;
    margin: 8px 0;
}

.pcb-rails-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.pcb-rail-pill {
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

/* Action Button Row */
.action-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.action-btn-primary {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

.action-btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.action-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 9999px; }

/* Responsive Adjustments for Mobile & Touch Viewports */
@media (max-width: 640px) {
    .top-watermark {
        top: calc(12px + env(safe-area-inset-top, 0px));
        left: 12px;
        right: 12px;
        justify-content: space-between;
        gap: 8px;
    }
    .watermark-btn {
        padding: 5px 11px;
        gap: 7px;
    }
    .watermark-name {
        font-size: 0.72rem;
    }
    .watermark-handle {
        display: none;
    }
    .studio-dock {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 16px);
    }
    .dock-container {
        padding: 5px 7px;
        gap: 3px;
        border-radius: 16px;
        overflow-x: auto;
        max-width: 100%;
        scrollbar-width: none;
    }
    .dock-container::-webkit-scrollbar {
        display: none;
    }
    .dock-btn {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        border-radius: 10px;
    }
    .dock-tooltip {
        display: none;
    }
    .shelf-pin .pin-title {
        font-size: 0.66rem;
    }
    #project-banner-overlay {
        padding: 0 10px calc(70px + env(safe-area-inset-bottom, 0px)) 10px;
    }
    .modal-card-body {
        padding: 12px 14px;
        max-height: 68vh;
        max-height: 68dvh;
    }
}

/* ==========================================================================
   PERSONAL ARCHIVE & MODAL ENHANCEMENTS
   ========================================================================== */
.personal-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.personal-fact-card {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.personal-fact-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
}

.personal-fact-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.personal-fact-value {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    line-height: 1.35;
}

.skill-cluster {
    margin: 10px 0;
}

.skill-cluster-title {
    font-family: var(--font-mono);
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.skill-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-chip {
    font-family: var(--font-mono);
    font-size: 0.70rem;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.skill-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.dir-tabs-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.dir-tab-btn {
    padding: 7px 16px;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dir-tab-btn.active-tab {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-weight: 600;
}

.contextual-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* ==========================================================================
   RON (B*BOT) TOUR COMPANION POPUP & CINEMATIC TOUR SUBTITLE BANNER
   ========================================================================== */
#ron-tour-card-overlay {
    position: fixed;
    inset: 0;
    z-index: 48;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#ron-tour-card-overlay.banner-closed {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#ron-tour-card-overlay.banner-closed .ron-tour-card {
    transform: translateY(28px) scale(0.95);
    opacity: 0;
}

#ron-tour-card-overlay.banner-open {
    opacity: 1 !important;
    visibility: visible !important;
}

#ron-tour-card-overlay.banner-open .ron-tour-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.tour-card-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.ron-tour-card {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    width: 100%;
    max-width: 360px;
    margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    padding: 18px 20px 16px 20px;
    border-radius: 22px;
    background: var(--glass-modal);
    border: 1px solid var(--glass-modal-border);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 240, 255, 0.09);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.tour-card-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-card-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: scale(1.08);
}

.tour-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tour-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tour-card-meta {
    flex: 1;
    min-width: 0;
}

.tour-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 8px;
    border-radius: 9999px;
    margin-bottom: 4px;
}

.tour-card-badge .badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
}

.tour-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.tour-card-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0 0 14px 0;
}

.tour-card-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.tour-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #031322;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.45);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.tour-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 240, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    filter: brightness(1.05);
}

.tour-btn-primary:active {
    transform: scale(0.97);
}

.tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Cinematic Tour Subtitle Banner */
#tour-subtitle-banner {
    position: fixed;
    left: 50%;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(0);
    width: calc(100vw - 28px);
    max-width: 620px;
    z-index: 44;
    pointer-events: auto;
    border-radius: 18px;
    background: rgba(10, 13, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 240, 255, 0.08);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

#tour-subtitle-banner.tour-subtitle-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(22px);
}

.tour-subtitle-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-station-tag {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.70rem;
    font-weight: 700;
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.14);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.03em;
}

.tour-subtitle-text {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #f1f5f9;
    font-weight: 500;
}

.tour-subtitle-skip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-subtitle-skip:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

@media (min-width: 769px) {
    .ron-tour-card {
        margin-bottom: 96px;
        max-width: 380px;
        padding: 20px 22px 18px 22px;
    }
    #tour-subtitle-banner {
        bottom: 96px;
        padding: 12px 18px;
    }
    .tour-subtitle-text {
        font-size: 0.86rem;
    }
}

