/* ===========================
   QISSA - CUSTOM STYLES
   Artsy, non-corporate design
   =========================== */

:root {
    /* Documentary Color Palette - WCAG AA Compliant */
    --qissa-orange: #FF8C42;      /* Warm orange - warmth, stories */
    --qissa-purple: #8B7DB6;      /* Muted purple - contemplation */
    --qissa-gold: #DAA520;        /* Goldenrod - completion, achievement */
    --qissa-deep-purple: #7A6BA8; /* Soft violet - depth */
    --qissa-teal: #00CED1;        /* Dark turquoise - hope, connection */
    --qissa-pink: #E8927C;        /* Warm terracotta - humanity, warmth */
    --qissa-mustard: #DAA520;     /* Goldenrod */
    --qissa-cream: #F5E6D3;       /* Warm cream - transcripts, warmth */

    /* Neutrals - Dark cinematic atmosphere */
    --bg-primary: #0D0D0D;        /* Near black */
    --bg-secondary: #1A1A1A;      /* Deep charcoal */
    --bg-card: rgba(26, 26, 26, 0.9);
    --text-primary: #E8E8E8;      /* Brighter light gray for 4.5:1 contrast - WCAG AA */
    --text-secondary: #B8B8B8;    /* Lighter gray for 4.5:1 contrast - WCAG AA */
    --text-body: #1F1F1F;

    /* Accent colors with variants */
    --orange-light: #FFA500;      /* Orange */
    --orange-dark: #CC5500;       /* Dark orange */
    --purple-light: #8B7DB6;      /* Muted purple */
    --teal-light: #00CED1;        /* Dark turquoise */
    --pink-light: #E8927C;        /* Warm terracotta */

    /* Glass effect - subtle tint */
    --glass-bg: rgba(13, 13, 13, 0.85);
    --glass-border: rgba(0, 206, 209, 0.15);
}

/* ===========================
   TYPOGRAPHY - DOCUMENTARY STYLE
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;600;700&family=DM+Mono:wght@400;500&display=swap');

body {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

h1 {
    font-weight: 600;
    font-size: 5.5em;
    line-height: 1.1;
    letter-spacing: 1px;
}

h2 {
    font-weight: 600;
    font-size: 3em;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

h3 {
    font-weight: 500;
    font-size: 1.8em;
    line-height: 1.3;
}

h4 {
    font-weight: 500;
    font-size: 1.4em;
    line-height: 1.4;
}

h5 {
    font-weight: 500;
    font-size: 1.125em;
    line-height: 1.5;
}

h6 {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: max(0.9em, 1rem);
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--qissa-pink);
}

a {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.5;
    text-decoration: none;
    color: var(--qissa-teal);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--qissa-pink);
}

/* ===========================
   COMPONENTS
   =========================== */

/* Primary Button */
.btn-primary {
    background-color: var(--qissa-pink);
    color: var(--text-primary);
    padding: 12px 32px;
    border-radius: 6px;
    border: 2px solid var(--qissa-teal);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--qissa-teal);
    border-color: var(--qissa-pink);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--qissa-purple);
    color: var(--text-primary);
    padding: 12px 32px;
    border-radius: 8px;
    border: 2px solid var(--qissa-mustard);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background-color: var(--qissa-mustard);
    border-color: var(--qissa-purple);
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 206, 209, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Stat Item */
.stat-item {
    padding: 1rem;
}

/* ===========================
   HERO SECTION
   =========================== */

/* Hero section with rounded corner (qissa.org style) */
.hero-section {
    border-bottom-right-radius: 150px;
    padding-top: 100px;
    padding-bottom: 200px;
}

/* ===========================
   ANIMATIONS
   =========================== */

/* City Lights Background Animation - Dark Noir Neon */
.city-lights-animation {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(204, 85, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 139, 139, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(199, 21, 133, 0.05) 0%, transparent 50%);
    animation: cityLights 12s ease-in-out infinite;
}

@keyframes cityLights {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Road Overlay */
.road-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8) 0%, transparent 100%);
    pointer-events: none;
}

/* Map Route Drawing Animation */
.map-route {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
}

.animate-draw {
    animation: drawPath 2s ease-out forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ===========================
   BOARDING SEQUENCE
   =========================== */

.boarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

.boarding-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.boarding-video-idle {
    opacity: 0.5;
    transition: opacity 0.8s ease;
}

.boarding-video-idle.fade-out {
    opacity: 0;
}

.boarding-video-move {
    opacity: 0;
    transition: opacity 0.8s ease, transform 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    transform-origin: 50% 40%;
}

.boarding-video-move.active {
    opacity: 0.5;
}

.boarding-video-move.zoom-in {
    transform: scale(2.5);
}

.boarding-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boarding-overlay.hidden {
    display: none;
}

.boarding-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(0, 206, 209, 0.08) 0%,
        rgba(255, 105, 180, 0.04) 30%,
        transparent 70%
    );
}

.boarding-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 600px;
    transition: opacity 0.4s ease;
}

.boarding-content.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boarding-city {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--qissa-teal);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: boardingFadeUp 0.5s ease-out 0.3s forwards;
}

.boarding-driver-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin: 0;
    opacity: 0;
    animation: boardingFadeUp 0.6s ease-out 0.6s forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.boarding-tagline {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    opacity: 0;
    animation: boardingFadeUp 0.5s ease-out 0.9s forwards;
    font-style: italic;
}

.boarding-enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid var(--qissa-teal);
    color: var(--qissa-teal);
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    cursor: pointer;
    opacity: 0;
    animation: boardingFadeUp 0.5s ease-out 1.2s forwards;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.boarding-enter-btn:hover,
.boarding-enter-btn:focus-visible {
    background: var(--qissa-teal);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.4), 0 0 40px rgba(0, 206, 209, 0.15);
    outline: none;
}

.boarding-enter-icon {
    width: 1.25rem;
    height: 1.25rem;
}

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

@media (max-width: 768px) {
    .boarding-driver-name { font-size: 2.5rem; letter-spacing: 0.5px; }
    .boarding-content { bottom: 25%; }
}

/* Persistent car background video behind interview */
.car-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.car-bg-video.car-bg-active,
.car-bg-video.visible {
    opacity: 0.35;
}

.car-bg-video.exit-zoomed {
    transform: scale(1.5);
    transform-origin: 50% 40%;
}

.car-bg-video.exit-zoom-out {
    transform: scale(1);
    transition: transform 1.5s ease-out;
}

.car-bg-video.exit-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* ===========================
   RIDE SELECTION SCREEN
   =========================== */

.ride-selection-screen {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem;
}

.ride-selection-screen.hidden {
    display: none;
}

.ride-selection-inner {
    max-width: 900px;
    margin: 0 auto;
}

.ride-selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ride-selection-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--qissa-teal);
    text-decoration: none;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.ride-selection-back:hover {
    color: var(--qissa-pink);
}

.ride-selection-driver-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ride-selection-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--qissa-teal);
    object-fit: cover;
}

.ride-selection-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    margin: 0;
    color: var(--text-primary);
}

.ride-selection-meta {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.ride-selection-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.ride-selection-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.ride-progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(0, 206, 209, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.ride-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--qissa-teal), var(--qissa-pink));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.ride-progress-label {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.ride-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.ride-category-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.ride-category-card:hover {
    border-color: var(--qissa-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 206, 209, 0.15);
}

.ride-category-card:focus-visible {
    outline: 2px solid var(--qissa-orange);
    outline-offset: 2px;
}

.ride-category-icon {
    width: 32px;
    height: 32px;
    color: var(--qissa-teal);
    margin-bottom: 0.75rem;
}

.ride-category-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.ride-category-desc {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.ride-category-progress-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.ride-category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--qissa-teal);
    background: transparent;
}

.ride-category-dot.watched {
    background: var(--qissa-pink);
    border-color: var(--qissa-pink);
}

.ride-category-count {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Question List (within a category) */
.ride-question-list-container.hidden {
    display: none;
}

.ride-selection-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--qissa-teal);
    background: none;
    border: none;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.ride-selection-back-btn:hover {
    color: var(--qissa-pink);
}

.ride-question-list-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.ride-question-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ride-question-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ride-question-item:hover {
    border-color: var(--qissa-teal);
    transform: translateX(4px);
}

.ride-question-item:focus-visible {
    outline: 2px solid var(--qissa-orange);
    outline-offset: 2px;
}

.ride-question-item.active {
    border-color: var(--qissa-pink);
    box-shadow: 0 0 12px rgba(255, 105, 180, 0.2);
}

.ride-question-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--qissa-teal);
    background: transparent;
    flex-shrink: 0;
}

.ride-question-dot.watched {
    background: var(--qissa-pink);
    border-color: var(--qissa-pink);
}

.ride-question-text {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.ride-question-status {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
        flex-shrink: 0;
}

@media (max-width: 768px) {
    .ride-selection-screen { padding: 1rem; }
    .ride-selection-title { font-size: 1.8rem; }
    .ride-selection-grid { grid-template-columns: 1fr; }
    .ride-selection-header { flex-direction: column; align-items: flex-start; }
}

/* ===========================
   DRIVER EXPERIENCE STYLES
   =========================== */

/* Immersive Layout */
.driver-experience-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.driver-experience-page.hidden {
    display: none;
}

/* Sticky Top Bar — semi-transparent overlay */
.experience-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-bottom: none;
}

.experience-topbar-left {
    display: flex;
    align-items: center;
}

.experience-topbar-driver {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.experience-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-topbar-routes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid rgba(0, 206, 209, 0.3);
    border-radius: 6px;
    color: var(--qissa-teal);
    padding: 0.4rem 0.75rem;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.experience-topbar-routes:hover {
    border-color: var(--qissa-pink);
    color: var(--qissa-pink);
}

.experience-topbar-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
}

.experience-topbar-back:hover {
    border-color: var(--qissa-pink);
    color: var(--qissa-pink);
}

/* Auto-hide UI — topbar, controls, now-playing hidden by default, shown on mouse move */
.driver-experience-page .experience-topbar,
.driver-experience-page .experience-controls,
.driver-experience-page .experience-now-playing {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.driver-experience-page.ui-active .experience-topbar,
.driver-experience-page.ui-active .experience-controls,
.driver-experience-page.ui-active .experience-now-playing {
    opacity: 1;
    pointer-events: auto;
}

/* Content Area */
.experience-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Video Section — immersive, centered */
.experience-video-section {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    padding: 0 2rem;
}

.experience-video-wrapper {
    position: relative;
    width: 100%;
    max-height: 85vh;
    aspect-ratio: 16 / 9;
    background: transparent;
    overflow: hidden;
}

.experience-video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 97%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 97%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-composite: source-in;
}

.windshield-reflection {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 30%,
        transparent 50%,
        rgba(255, 255, 255, 0.015) 70%,
        transparent 100%
    );
    animation: windshieldReflection 8s ease-in-out infinite;
}

@keyframes windshieldReflection {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Video Controls — semi-transparent bar at bottom of viewport */
.experience-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    border-top: none;
}

.experience-controls-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-controls-progress {
    flex: 1;
}

.experience-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Now Playing area — fixed above controls */
.experience-now-playing {
    padding: 0.75rem 1.5rem;
    position: fixed;
    bottom: 52px;
    left: 0;
    right: 0;
    z-index: 19;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.experience-chapter-label {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
        color: var(--qissa-teal);
    margin-bottom: 0.35rem;
}

.experience-question-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Sidebar — slide-in overlay from right */
.experience-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 85vw;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 206, 209, 0.15);
    overflow-y: auto;
    z-index: 25;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.experience-sidebar.visible {
    transform: translateX(0);
}

.sidebar-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.sidebar-section {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 206, 209, 0.08);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--qissa-teal);
    margin-bottom: 0.75rem;
}

.sidebar-question-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
}

.sidebar-question-item:hover {
    background: rgba(0, 206, 209, 0.05);
    border-color: rgba(0, 206, 209, 0.15);
}

.sidebar-question-item.active {
    background: rgba(255, 105, 180, 0.08);
    border-color: rgba(255, 105, 180, 0.3);
}

.sidebar-question-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--qissa-teal);
    background: transparent;
    flex-shrink: 0;
}

.sidebar-question-dot.watched {
    background: var(--qissa-pink);
    border-color: var(--qissa-pink);
}

.sidebar-question-text {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.78rem;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

.sidebar-question-item.active .sidebar-question-text {
    color: var(--qissa-pink);
}

.sidebar-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
}

.sidebar-category-link:hover {
    background: rgba(0, 206, 209, 0.05);
    border-color: rgba(0, 206, 209, 0.15);
}

.sidebar-category-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    letter-spacing: 1px;
        color: var(--text-primary);
}

.sidebar-category-count {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.sidebar-category-arrow {
    color: var(--qissa-teal);
    flex-shrink: 0;
}

/* Sidebar destination accordion */
.sidebar-destination {
    border-bottom: 1px solid rgba(0, 206, 209, 0.08);
}

.sidebar-destination:last-child {
    border-bottom: none;
}

.sidebar-destination-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-destination-header:hover {
    background: rgba(0, 206, 209, 0.05);
}

.sidebar-destination-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.sidebar-destination-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.sidebar-destination.expanded .sidebar-destination-name {
    color: var(--qissa-teal);
}

.sidebar-destination-chevron {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.sidebar-destination.expanded .sidebar-destination-chevron {
    transform: rotate(180deg);
    color: var(--qissa-teal);
}

.sidebar-destination-questions {
    padding: 0 0.75rem 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .experience-video-section {
        padding: 0;
        min-height: 70vh;
    }

    .experience-sidebar {
        width: 100%;
        max-width: none;
    }

    .experience-topbar-back > span:not(.btn-tooltip),
    .experience-topbar-routes > span:not(.btn-tooltip) {
        display: none;
    }

    .experience-controls {
        flex-wrap: wrap;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .experience-controls-left {
        order: 1;
    }

    .experience-controls-right {
        order: 2;
    }

    .experience-controls-progress {
        order: 3;
        flex: 0 0 100%;
    }

    .experience-question-text {
        font-size: 1.2rem;
    }
}

.story-btn {
    background: transparent;
    border: 1px solid rgba(0, 206, 209, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    color: var(--qissa-teal);
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-btn:hover {
    color: var(--qissa-pink);
    border-color: var(--qissa-pink);
    transform: scale(1.05);
}

.story-time {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.story-progress-bar {
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid rgba(0, 139, 139, 0.25);
    height: 4px;
    border-radius: 9999px;
    overflow: hidden;
    cursor: pointer;
    transition: height 0.2s ease;
}

.story-progress-bar:hover {
    height: 6px;
    border-color: rgba(199, 21, 133, 0.4);
}

.story-progress-fill {
    background: linear-gradient(90deg,
        var(--qissa-pink) 0%,
        var(--qissa-teal) 50%,
        var(--qissa-purple) 100%);
    height: 100%;
    transition: width 0.1s linear;
}


/* ===========================
   UNMUTE PROMPT OVERLAY
   =========================== */

.unmute-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.unmute-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.unmute-overlay-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.unmute-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.5rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.unmute-driver-name {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 1rem;
    color: var(--qissa-teal);
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.unmute-sound-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.sound-bar {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--qissa-pink);
    border-radius: 2px;
    animation: soundWave 1.2s ease-in-out infinite;
}

.sound-bar:nth-child(1) { animation-delay: 0s; }
.sound-bar:nth-child(2) { animation-delay: 0.15s; }
.sound-bar:nth-child(3) { animation-delay: 0.3s; }
.sound-bar:nth-child(4) { animation-delay: 0.45s; }
.sound-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes soundWave {
    0%, 100% { height: 8px; opacity: 0.4; }
    50% { height: 32px; opacity: 1; }
}

.unmute-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--qissa-pink);
    border: 3px solid var(--qissa-teal);
    color: var(--text-primary);
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 0 15px rgba(255, 105, 180, 0.4),
        0 0 30px rgba(0, 206, 209, 0.2);
    min-height: 48px;
}

.unmute-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 20px rgba(255, 105, 180, 0.6),
        0 0 40px rgba(0, 206, 209, 0.4);
}

@media (max-width: 768px) {
    .unmute-title { font-size: 2.5rem; }
    .unmute-btn { padding: 0.75rem 1.5rem; font-size: 1.1rem; }
}


/* Watched/unwatched dots (used in sidebar) */
.watched-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--qissa-teal);
}

.unwatched-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    background: transparent;
}

/* ===========================
   VIDEO LOADING INDICATOR
   =========================== */

.video-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 24;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-loading-indicator.visible {
    opacity: 1;
}

.video-loading-indicator .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 206, 209, 0.2);
    border-top-color: var(--qissa-teal);
    border-radius: 50%;
    animation: loadingSpin 0.8s linear infinite;
}

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

/* ===========================
   GAMIFICATION
   =========================== */

/* Progress Ring (SVG circle on category cards) */
.category-progress-ring {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
}

.category-progress-ring circle {
    fill: none;
    stroke-width: 3;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.category-progress-ring .ring-bg {
    stroke: rgba(0, 206, 209, 0.15);
}

.category-progress-ring .ring-fill {
    stroke: var(--qissa-teal);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.ride-category-card.completed .category-progress-ring .ring-fill {
    stroke: var(--qissa-gold);
}

.category-progress-ring .ring-text {
    fill: var(--text-secondary);
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 8px;
    text-anchor: middle;
    dominant-baseline: central;
}

.ride-category-card.completed .category-progress-ring .ring-text {
    fill: var(--qissa-gold);
}

/* Category Card: Completed state (gold glow) */
.ride-category-card.completed {
    border-color: var(--qissa-gold);
    box-shadow:
        0 0 15px rgba(218, 165, 32, 0.25),
        0 0 30px rgba(218, 165, 32, 0.1);
}

.ride-category-card.completed:hover {
    border-color: var(--qissa-gold);
    box-shadow:
        0 0 20px rgba(218, 165, 32, 0.35),
        0 0 40px rgba(218, 165, 32, 0.15);
}

/* Completion Badge on category card */
.category-badge {
    display: none;
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    color: var(--qissa-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(218, 165, 32, 0.12);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

.ride-category-card.completed .category-badge {
    display: block;
}

/* Completion Celebration Modal */
.completion-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    animation: completionFadeIn 0.5s ease-out;
}

.completion-modal.hidden {
    display: none;
}

.completion-modal-content {
    text-align: center;
    max-width: 420px;
    padding: 3rem 2rem;
}

.completion-avatar-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--qissa-gold), var(--qissa-orange), var(--qissa-gold));
    box-shadow:
        0 0 30px rgba(218, 165, 32, 0.4),
        0 0 60px rgba(218, 165, 32, 0.2);
    animation: goldPulse 2s ease-in-out infinite;
}

.completion-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
}

.completion-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    color: var(--qissa-gold);
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.completion-driver {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 1rem;
    color: var(--qissa-teal);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.completion-message {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 2rem;
}

.completion-dismiss-btn {
    background: var(--qissa-gold);
    border: 2px solid var(--qissa-orange);
    color: var(--bg-primary);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 0 15px rgba(218, 165, 32, 0.3),
        0 0 30px rgba(218, 165, 32, 0.15);
    min-height: 48px;
}

.completion-dismiss-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 20px rgba(218, 165, 32, 0.5),
        0 0 40px rgba(218, 165, 32, 0.25);
}

@keyframes completionFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes goldPulse {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(218, 165, 32, 0.4),
            0 0 60px rgba(218, 165, 32, 0.2);
    }
    50% {
        box-shadow:
            0 0 40px rgba(218, 165, 32, 0.6),
            0 0 80px rgba(218, 165, 32, 0.3);
    }
}

/* Progress Toast */
.progress-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 45;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(0, 206, 209, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--qissa-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.15);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.progress-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.progress-toast.category-complete {
    border-color: rgba(218, 165, 32, 0.4);
    color: var(--qissa-gold);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.2);
}

/* ===========================
   CONTEXTUAL HINTS
   =========================== */

.context-hint {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 206, 209, 0.08);
    border: 1px solid rgba(0, 206, 209, 0.25);
    border-radius: 8px;
    padding: 10px 18px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    line-height: 1.6;
    text-align: center;
    animation: hintGlow 3s ease-in-out infinite;
    animation-play-state: paused;
}

.context-hint.visible {
    opacity: 1;
    transform: translateY(0);
    animation-play-state: running;
}

/* Breathing glow on the border */
@keyframes hintGlow {
    0%, 100% {
        border-color: rgba(0, 206, 209, 0.25);
        box-shadow: 0 0 8px rgba(0, 206, 209, 0.05), inset 0 0 8px rgba(0, 206, 209, 0.03);
    }
    50% {
        border-color: rgba(0, 206, 209, 0.5);
        box-shadow: 0 0 20px rgba(0, 206, 209, 0.12), inset 0 0 12px rgba(0, 206, 209, 0.06);
    }
}

/* Teal accent dot before hint text */
.context-hint .hint-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--qissa-teal);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(0, 206, 209, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
    animation-play-state: paused;
}

.context-hint.visible .hint-dot {
    animation-play-state: running;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(0, 206, 209, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 10px rgba(0, 206, 209, 0.8); transform: scale(1.3); }
}

/* Keyboard shortcut labels inline */
.context-hint kbd {
    display: inline-block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 7px;
    margin: 0 3px;
    vertical-align: baseline;
}

/* Highlighted action words */
.context-hint em {
    font-style: normal;
    color: var(--qissa-teal);
}

/* Separator between hint phrases */
.context-hint .hint-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
    vertical-align: middle;
}

/* ---- Boarding hint: below Start the Ride button ---- */
.context-hint--boarding {
    margin-top: 1.5rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Selection hint: below "Choose Your Route" heading ---- */
.context-hint--selection {
    display: inline-block;
    margin-top: 0.75rem;
}

/* ---- Route return hint: below category grid ---- */
.context-hint--routes {
    display: inline-block;
    margin-top: 1.25rem;
}

/* ---- Routes button tooltip with arrow ---- */
.experience-topbar-routes {
    position: relative;
}

.btn-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 206, 209, 0.4);
    border-radius: 6px;
    padding: 5px 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 21;
}

/* Arrow pointing up to the button */
.btn-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.85);
    border-top: 1px solid rgba(0, 206, 209, 0.4);
    border-left: 1px solid rgba(0, 206, 209, 0.4);
}

/* Show tooltip when UI is active */
.driver-experience-page.ui-active .btn-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Now-playing pulse indicator (always visible during playback) ---- */
.now-playing-pulse {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 21;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.now-playing-pulse.active {
    opacity: 1;
}

.now-playing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--qissa-teal);
    animation: nowPlayingPulse 1.8s ease-in-out infinite;
}

.now-playing-label {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes nowPlayingPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); box-shadow: 0 0 0 rgba(0, 206, 209, 0); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 8px rgba(0, 206, 209, 0.5); }
}

/* ---- Mobile scroll affordance ---- */
.scroll-affordance {
    display: none;
}

@media (max-width: 768px) {
    .scroll-affordance {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        bottom: 56px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 18;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    .scroll-affordance.visible {
        opacity: 1;
    }

    .scroll-affordance-label {
        font-family: 'DM Mono', 'Courier New', monospace;
        font-size: 9px;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.4);
        margin-bottom: 4px;
    }

    .scroll-affordance-chevron {
        width: 20px;
        height: 20px;
        color: rgba(255, 255, 255, 0.3);
        animation: scrollBounce 2s ease-in-out infinite;
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(4px); opacity: 0.7; }
}

/* ---- Keyboard shortcut legend ---- */
.shortcut-btn {
    background: transparent;
    border: 1px solid rgba(0, 206, 209, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    color: var(--qissa-teal);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 500;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcut-btn:hover {
    color: var(--qissa-pink);
    border-color: var(--qissa-pink);
    transform: scale(1.05);
}

.shortcut-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.shortcut-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.shortcut-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    max-width: 360px;
    width: 90%;
}

.shortcut-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-row:last-child {
    border-bottom: none;
}

.shortcut-action {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.shortcut-key {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--qissa-teal);
    background: rgba(0, 206, 209, 0.08);
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 0.05em;
}

.shortcut-close {
    display: block;
    margin: 1.25rem auto 0;
    background: none;
    border: none;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 16px;
    transition: color 0.2s;
}

.shortcut-close:hover {
    color: var(--text-primary);
}

/* ---- Completion modal: dual CTA buttons ---- */
.completion-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.completion-secondary-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.completion-secondary-btn:hover {
    border-color: var(--qissa-teal);
    color: var(--qissa-teal);
}

/* Reduced motion: disable animations, keep opacity transitions */
@media (prefers-reduced-motion: reduce) {
    .context-hint {
        animation: none;
        transition: opacity 0.15s ease;
        transform: none;
    }
    .context-hint .hint-dot {
        animation: none;
        box-shadow: 0 0 4px rgba(0, 206, 209, 0.5);
    }
    .btn-tooltip {
        transition: opacity 0.1s ease;
        transform: none;
    }
    .driver-experience-page.ui-active .btn-tooltip {
        transform: none;
    }
    .now-playing-dot {
        animation: none;
        opacity: 0.7;
    }
    .scroll-affordance-chevron {
        animation: none;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .context-hint {
        font-size: 11px;
        padding: 8px 14px;
    }
    .btn-tooltip {
        font-size: 9px;
        padding: 4px 8px;
    }
    .now-playing-pulse {
        top: 10px;
        left: 10px;
    }
    .now-playing-label {
        display: none;
    }
    .shortcut-btn {
        display: none;
    }
}

/* ===========================
   SEARCH FUNCTIONALITY
   =========================== */

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--qissa-orange);
    background: rgba(255, 255, 255, 0.08);
}

/* Form inputs matching qissa.org */
input[type='text'],
input[type='email'],
input[type='search'],
textarea {
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    background-color: white;
    border: 1px solid rgba(204, 204, 204, 1);
    border-radius: 4px;
    padding: 4px 10px;
}

input[type='text']:hover,
input[type='email']:hover,
input[type='search']:hover,
textarea:hover {
    border-color: rgba(54, 94, 212, 1);
}

input[type='text']:focus,
input[type='email']:focus,
input[type='search']:focus,
textarea:focus {
    outline: none;
    border-color: var(--qissa-orange);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* ===========================
   READABILITY
   =========================== */

/* Cap line length on prose content for readability (~75ch) */
.container p {
    max-width: 75ch;
}

/* ===========================
   ACCESSIBILITY
   =========================== */

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--qissa-orange);
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:not(.focus:not-sr-only) {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */


/* ===========================
   CUSTOM SCROLLBAR
   =========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 206, 209, 0.3);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 206, 209, 0.5);
}

/* ===========================
   PARTNER LOGOS
   =========================== */

.partner-logo {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.05);
}

/* ===========================
   LOADING STATES
   =========================== */

.loading-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

/* (Scan lines and film grain removed — documentary aesthetic) */

/* Chromatic Aberration Text Effect - Subtle Noir */
.retro-chrome-text {
    position: relative;
    color: var(--text-primary);
}

.retro-chrome-text::before,
.retro-chrome-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
}

.retro-chrome-text::before {
    color: var(--qissa-teal);
    transform: translate(-1px, 0);
    opacity: 0.4;
}

.retro-chrome-text::after {
    color: var(--qissa-pink);
    transform: translate(1px, 0);
    opacity: 0.4;
}

/* Retro Grid Background - Dark Noir */
.retro-grid {
    background-image:
        linear-gradient(rgba(0, 139, 139, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 139, 139, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
}

.retro-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(26, 26, 46, 0.8) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Neon Glow Animation */
@keyframes neonGlow {
    0%, 100% {
        text-shadow:
            0 0 10px var(--qissa-teal),
            0 0 20px var(--qissa-teal),
            0 0 30px var(--qissa-teal),
            0 0 40px var(--qissa-pink);
    }
    50% {
        text-shadow:
            0 0 5px var(--qissa-teal),
            0 0 10px var(--qissa-teal),
            0 0 15px var(--qissa-teal),
            0 0 20px var(--qissa-pink);
    }
}

.neon-text {
    animation: neonGlow 2s ease-in-out infinite;
}

/* Retro Loading Animation */
@keyframes retroLoad {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.retro-loader {
    background: linear-gradient(
        90deg,
        var(--qissa-pink),
        var(--qissa-teal),
        var(--qissa-purple),
        var(--qissa-mustard),
        var(--qissa-pink)
    );
    background-size: 300% 300%;
    animation: retroLoad 3s ease infinite;
}

