/* ========================================
   GLOBAL STYLES & RESET
   ======================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Arial', sans-serif;
    transition: background-color 0.5s ease;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 50%, #16213e 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(120, 198, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body.lsw-theme-secondary {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #2d1b3d 100%);
}

/* ========================================
   LAYOUT CONTAINERS - IMPROVED SPACING & CENTERING
   ======================================== */
.lsw-main-wrapper {
    min-height: 100vh;
    padding: 0 clamp(10px, 4vw, 20px);
}

.lsw-opening-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.lsw-opening-section h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.lsw-opening-section p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    opacity: 0.9;
    max-width: 600px;
}

.lsw-scroll-area {
    position: relative;
    height: 500vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Improved top padding for better gap */
    padding-top: clamp(100px, 20vh, 200px);
}

.lsw-sticky-stack {
    position: sticky;
    /* Better centering - cards appear in middle of viewport */
    top: 50%;
    transform: translateY(-50%);
    width: min(95vw, 900px);
    height: clamp(450px, 80vh, 700px);
    perspective: 1000px;
}

/* ========================================
   INDIVIDUAL CARD BASE STYLING - IMPROVED RESPONSIVENESS
   ======================================== */
.lsw-content-panel {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: clamp(15px, 3vw, 25px);
    box-shadow: 
        0 clamp(8px, 2vw, 20px) clamp(32px, 8vw, 60px) rgba(0, 0, 0, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* More fluid padding for better mobile experience */
    padding: clamp(15px, 4vw, 40px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center bottom;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* Prevent content overflow on mobile */
    overflow: hidden;
}

/* ========================================
   PROFILE CARD STYLING (Cards 1 & 6) - IMPROVED MOBILE LAYOUT
   ======================================== */
.lsw-person-showcase {
    display: flex;
    align-items: center;
    gap: clamp(10px, 3vw, 25px);
    /* Better mobile padding */
    padding: clamp(15px, 4vw, 35px);
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

.lsw-person-showcase .lsw-avatar-circle {
    /* More responsive avatar sizing */
    width: clamp(80px, 20vw, 130px);
    height: clamp(80px, 20vw, 130px);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: clamp(2px, 0.4vw, 4px) solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 clamp(4px, 1vw, 10px) clamp(20px, 4vw, 40px) rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lsw-person-showcase .lsw-bio-section {
    flex: 1;
    min-width: 0;
    text-align: center;
    max-width: 100%;
    /* Better mobile spacing */
    margin-top: clamp(8px, 2vw, 15px);
    width: 100%;
}

.lsw-person-showcase .lsw-bio-section h2 {
    /* Big and bold header like screenshot */
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: clamp(20px, 5vw, 40px);
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.lsw-person-showcase .lsw-role-tag {
    display: inline-block;
    background: rgba(255, 165, 165, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 165, 165, 0.4);
    color: #ffa5a5;
    /* More responsive padding */
    padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 16px);
    border-radius: 25px;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: clamp(10px, 3vw, 20px);
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 165, 165, 0.4);
}

.lsw-person-showcase .lsw-bio-text {
    width: 100%;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: clamp(12px, 3vw, 16px);
    padding: clamp(20px, 5vw, 32px);
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #666;
    /* Handle text overflow better */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Removed old circular element for cleaner design */

.lsw-person-showcase .lsw-greeting-text {
    font-style: italic;
    font-weight: 600;
    color: #666;
}

/* ========================================
   STORY CARD STYLING (Cards 2, 3, 4, 7, 8, 9) - IMPROVED MOBILE
   ======================================== */
.lsw-narrative-panel {
    /* Better mobile padding */
    padding: clamp(15px, 4vw, 35px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lsw-narrative-panel .lsw-story-top {
    text-align: center;
    margin-bottom: clamp(15px, 4vw, 30px);
    width: 100%;
    max-width: 100%;
}

.lsw-narrative-panel .lsw-theme-icon {
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    background: rgba(255, 165, 165, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 165, 165, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(10px, 2.5vw, 15px);
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lsw-narrative-panel h2 {
    /* Big and bold header like screenshot */
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(15px, 4vw, 30px);
    color: #ffffff;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.lsw-narrative-panel .lsw-story-subtext {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-style: italic;
    margin-bottom: clamp(15px, 3vw, 25px);
}

.lsw-narrative-panel .lsw-story-body {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    color: #2c3e50;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: clamp(12px, 3vw, 16px);
    padding: clamp(20px, 5vw, 32px);
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #666;
    max-width: 100%;
    width: 100%;
    /* Better text handling */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Removed old border glow animation for cleaner white boxes */

.lsw-narrative-panel .lsw-emphasis-text {
    color: #666;
    font-weight: 600;
}

/* ========================================
   COLOR-SPECIFIC LEFT BORDER STYLING
   ======================================== */

/* Wayne's Cards - Blue Left Border */
.lsw-content-panel[data-set="1"] .lsw-bio-text,
.lsw-content-panel[data-set="1"] .lsw-story-body,
.lsw-content-panel[data-set="1"] .lsw-quote-wrapper {
    border-left: 4px solid #4F9EFE;
}

/* Christy's Cards - Pink Left Border */
.lsw-content-panel[data-set="2"] .lsw-bio-text,
.lsw-content-panel[data-set="2"] .lsw-story-body,
.lsw-content-panel[data-set="2"] .lsw-quote-wrapper {
    border-left: 4px solid #F093FB;
}

/* ========================================
   DECORATIVE CIRCLE DIVIDER (LIKE SCREENSHOT)
   ======================================== */

.lsw-decorative-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(15px, 4vw, 30px) 0;
    position: relative;
    width: 100%;
    height: 20px;
}

.lsw-decorative-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: calc(50% - 12px);
    background: linear-gradient(to right, #F093FB, rgba(255, 255, 255, 0.4));
}

.lsw-decorative-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: calc(50% - 12px);
    background: linear-gradient(to left, #4F9EFE, rgba(255, 255, 255, 0.4));
}

.lsw-decorative-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

/* ========================================
   QUOTE CARD STYLING (Cards 5, 7-10) - IMPROVED MOBILE
   ======================================== */
.lsw-quotation-panel {
    /* Better mobile padding */
    padding: clamp(15px, 4vw, 35px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lsw-quotation-panel .lsw-story-top {
    text-align: center;
    margin-bottom: clamp(15px, 4vw, 30px);
    width: 100%;
    max-width: 100%;
}

.lsw-quotation-panel h2 {
    /* Big and bold header like screenshot */
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(15px, 4vw, 30px);
    color: #ffffff;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.lsw-quotation-panel .lsw-quote-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(20px, 5vw, 32px);
    border-radius: clamp(12px, 3vw, 16px);
    font-style: italic;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #666;
    margin: clamp(20px, 4vw, 32px) 0;
    max-width: 100%;
    width: 100%;
    /* Better text handling */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.lsw-quotation-panel .lsw-quote-wrapper::before {
    content: '"';
    position: absolute;
    top: clamp(-10px, -2vw, -15px);
    left: clamp(15px, 3vw, 20px);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Georgia', serif;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

/* Removed old colored border effects for clean white boxes */

.lsw-quotation-panel .lsw-quote-message {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: clamp(16px, 4vw, 24px);
    color: #2c3e50;
    text-align: center;
}

.lsw-quotation-panel .lsw-quote-attribution {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: clamp(0.85rem, 2.2vw, 1.05rem);
}

/* ========================================
   INDIVIDUAL CARD BACKGROUND COLORS
   ======================================== */
.lsw-content-panel[data-set="1"][data-index="0"] {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 10%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="1"][data-index="1"] {
    background: linear-gradient(135deg, rgba(240, 147, 251, 1) 10%, rgba(245, 87, 108, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="1"][data-index="2"] {
    background: linear-gradient(135deg, rgba(79, 172, 254, 1) 10%, rgba(0, 242, 254, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="1"][data-index="3"] {
    background: linear-gradient(135deg, rgba(67, 233, 123, 1) 10%, rgba(56, 249, 215, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="1"][data-index="4"] {
    background: linear-gradient(135deg, rgba(250, 112, 154, 1) 10%, rgba(254, 225, 64, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="2"][data-index="0"] {
    background: linear-gradient(135deg, rgba(168, 237, 234, 1) 10%, rgba(254, 214, 227, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="2"][data-index="1"] {
    background: linear-gradient(135deg, rgba(255, 236, 210, 1) 10%, rgba(252, 182, 159, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="2"][data-index="2"] {
    background: linear-gradient(135deg, rgba(255, 154, 158, 1) 10%, rgba(254, 207, 239, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="2"][data-index="3"] {
    background: linear-gradient(135deg, rgba(161, 140, 209, 1) 10%, rgba(251, 194, 235, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-content-panel[data-set="2"][data-index="4"] {
    background: linear-gradient(135deg, rgba(250, 208, 196, 1) 10%, rgba(255, 209, 255, 0.15) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.lsw-panel-number {
    position: absolute;
    top: clamp(15px, 3vw, 25px);
    right: clamp(15px, 3vw, 25px);
    width: clamp(35px, 8vw, 50px);
    height: clamp(35px, 8vw, 50px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(0.8rem, 3vw, 1.1rem);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Interactive hint for snapped cards - Improved mobile positioning */
.lsw-action-prompt {
    position: absolute;
    bottom: clamp(10px, 2.5vw, 20px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
    border-radius: 25px;
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Better mobile positioning */
    max-width: 90%;
    text-align: center;
}

.lsw-action-prompt.lsw-show-hint {
    opacity: 0.9;
    animation: lsw-pulse-hint 2s ease-in-out infinite;
}

@keyframes lsw-pulse-hint {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
}

/* Better mobile hint positioning */
@media (max-width: 480px) {
    .lsw-action-prompt {
        bottom: clamp(8px, 2vw, 15px);
        font-size: 0.7rem;
        padding: 5px 12px;
        /* Allow text wrapping on very small screens */
        white-space: normal;
        max-width: 85%;
    }
}

/* Hide hint on very small screens to avoid clutter */
@media (max-width: 320px) {
    .lsw-action-prompt {
        display: none;
    }
}

.lsw-closing-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.lsw-closing-section h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.lsw-closing-section p {
    font-size: clamp(1rem, 4vw, 1.3rem);
    opacity: 0.9;
    max-width: 600px;
}

/* ========================================
   RESPONSIVE DESIGN BREAKPOINTS - IMPROVED MOBILE EXPERIENCE
   ======================================== */

/* Mobile Portrait - Better spacing and sizing */
@media (max-width: 480px) {
    .lsw-sticky-stack {
        width: 95vw;
        height: 75vh;
        min-height: 450px;
        /* Reset transform for better mobile positioning */
        top: 15vh;
        transform: none;
    }
    
    .lsw-scroll-area {
        padding-top: 80px;
    }
    
    /* Ensure cards don't get too small on mobile */
    .lsw-content-panel {
        padding: clamp(12px, 3vw, 20px);
        min-height: 400px;
    }
    
    /* Better text sizing for mobile portrait */
    .lsw-person-showcase .lsw-bio-text,
    .lsw-narrative-panel .lsw-story-body,
    .lsw-quotation-panel .lsw-quote-message {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        line-height: 1.5;
    }
}

/* Mobile Landscape - Special handling for landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .lsw-opening-section {
        height: 100vh;
        padding: 1rem;
    }
    
    .lsw-sticky-stack {
        height: 90vh;
        top: 5vh;
        transform: none;
        min-height: 350px;
    }
    
    .lsw-scroll-area {
        padding-top: 40px;
    }
    
    /* Tighter spacing for landscape */
    .lsw-content-panel {
        padding: clamp(10px, 2vw, 15px);
    }
    
    .lsw-person-showcase {
        gap: clamp(5px, 2vw, 15px);
    }
}

/* Small Mobile Devices - Extra care for very small screens */
@media (max-width: 320px) {
    .lsw-sticky-stack {
        height: 70vh;
        min-height: 400px;
    }
    
    .lsw-person-showcase .lsw-avatar-circle {
        width: 70px;
        height: 70px;
    }
    
    .lsw-person-showcase .lsw-bio-section h2 {
        font-size: 1.3rem;
    }
    
    .lsw-narrative-panel h2,
    .lsw-quotation-panel h2 {
        font-size: 1.1rem;
    }
}

/* Tablet Portrait - Optimized for tablet viewing */
@media (min-width: 481px) and (max-width: 768px) {
    .lsw-sticky-stack {
        width: 90vw;
        max-width: 700px;
        height: 75vh;
        top: 12.5vh;
        transform: none;
    }
    
    .lsw-scroll-area {
        padding-top: 100px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .lsw-sticky-stack {
        width: 85vw;
        max-width: 800px;
        /* Maintain centering for larger tablets */
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Large Desktop - Enhanced experience */
@media (min-width: 1440px) {
    .lsw-sticky-stack {
        max-width: 1000px;
        height: 700px;
    }
    
    .lsw-scroll-area {
        padding-top: clamp(150px, 25vh, 250px);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .lsw-content-panel {
        box-shadow: 
            0 clamp(8px, 2vw, 20px) clamp(32px, 8vw, 60px) rgba(0, 0, 0, 0.37),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .lsw-content-panel {
        transition: none;
    }
    
    body {
        transition: none;
    }
    
    @keyframes lsw-border-glow {
        0%, 100% { opacity: 0.6; }
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lsw-panel-number {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Touch optimization and mobile performance */
@media (hover: none) and (pointer: coarse) {
    .lsw-content-panel {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Improve touch scrolling performance */
    .lsw-scroll-area {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better mobile text selection */
    .lsw-person-showcase .lsw-bio-text,
    .lsw-narrative-panel .lsw-story-body,
    .lsw-quotation-panel .lsw-quote-message {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling on mobile */
    body {
        overflow-x: hidden;
    }
    
    /* Ensure content doesn't break layout */
    .lsw-person-showcase .lsw-bio-text,
    .lsw-narrative-panel .lsw-story-body,
    .lsw-quotation-panel .lsw-quote-message {
        /* Better word breaking for mobile */
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    /* Ensure panel number doesn't interfere with content */
    .lsw-panel-number {
        top: clamp(10px, 2vw, 15px);
        right: clamp(10px, 2vw, 15px);
        width: clamp(25px, 6vw, 40px);
        height: clamp(25px, 6vw, 40px);
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }
    
    /* Better mobile typography */
    .lsw-person-showcase .lsw-greeting-text {
        display: inline-block;
        margin-bottom: 0.5em;
    }
}

/* High resolution mobile displays */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .lsw-content-panel {
        /* Sharper borders on retina displays */
        border-width: 0.5px;
    }
}