/* ========================================
   GLOBAL STYLES & RESET
   ======================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: background-color 0.5s ease;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Removed glassmorphic background overlay */

body.lsw-theme-secondary {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 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(500px, 85vh, 750px);
    perspective: 1000px;
    /* Ensure consistent dimensions */
    min-height: 500px;
    max-height: 750px;
}

/* ========================================
   INDIVIDUAL CARD BASE STYLING - IMPROVED RESPONSIVENESS
   ======================================== */
.lsw-content-panel {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: clamp(12px, 2vw, 16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(20px, 5vw, 48px);
    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: #ffffff;
    border: none;
    overflow: hidden;
    /* Ensure consistent dimensions */
    min-height: 450px;
    box-sizing: border-box;
}

/* ========================================
   PROFILE CARD STYLING (Cards 1 & 6) - IMPROVED MOBILE LAYOUT
   ======================================== */
.lsw-person-showcase {
    display: flex;
    align-items: center;
    gap: clamp(16px, 4vw, 32px);
    padding: clamp(20px, 5vw, 48px);
    text-align: center;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    min-height: 450px;
}

.lsw-person-showcase .lsw-avatar-circle {
    width: clamp(80px, 20vw, 130px);
    height: clamp(80px, 20vw, 130px);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: clamp(4px, 0.8vw, 6px) solid #ffffff;
    box-shadow: 0 clamp(8px, 2vw, 16px) clamp(32px, 6vw, 64px) rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.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 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: clamp(20px, 5vw, 40px);
    color: #2c3e50;
    line-height: 1.1;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.lsw-person-showcase .lsw-role-tag {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    border-radius: 6px;
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: clamp(16px, 4vw, 24px);
    letter-spacing: 1px;
    border: 1px solid #e55353;
    box-shadow: none;
    text-shadow: none;
}

.lsw-person-showcase .lsw-bio-text {
    width: 100%;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.7;
    color: #495057;
    background: #f8f9fa;
    border-radius: 8px;
    padding: clamp(24px, 6vw, 36px);
    position: relative;
    box-shadow: none;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ff6b6b;
    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: 700;
    color: #ff6b6b;
    font-size: 1.1em;
    display: block;
    margin-bottom: 0.5em;
}

/* ========================================
   STORY CARD STYLING (Cards 2, 3, 4, 7, 8, 9) - IMPROVED MOBILE
   ======================================== */
.lsw-narrative-panel {
    padding: clamp(20px, 5vw, 48px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    min-height: 450px;
}

.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(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    background: #ff6b6b;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(16px, 4vw, 24px);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: #ffffff;
    box-shadow: 0 clamp(6px, 1.5vw, 12px) clamp(24px, 5vw, 48px) rgba(255, 107, 107, 0.3);
}

.lsw-narrative-panel h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(15px, 4vw, 30px);
    color: #2c3e50;
    text-align: center;
    line-height: 1.1;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.lsw-narrative-panel .lsw-story-subtext {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    color: #6c757d;
    text-align: center;
    font-style: italic;
    margin-bottom: clamp(15px, 3vw, 25px);
}

.lsw-narrative-panel .lsw-story-body {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.7;
    color: #495057;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: clamp(24px, 6vw, 36px);
    position: relative;
    box-shadow: none;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ff6b6b;
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Removed old border glow animation for cleaner white boxes */

.lsw-narrative-panel .lsw-emphasis-text,
.lsw-emphasis-text {
    color: #ff6b6b !important;
    font-weight: 700 !important;
}

/* ========================================
   COLOR-SPECIFIC LEFT BORDER STYLING
   ======================================== */

/* All Cards use accent color */
.lsw-content-panel .lsw-bio-text,
.lsw-content-panel .lsw-story-body,
.lsw-content-panel .lsw-quote-wrapper {
    border-left: 4px solid #ff6b6b;
}

/* ========================================
   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: 3px;
    width: calc(50% - 16px);
    background: linear-gradient(to right, #f093fb 0%, #ff6b6b 100%);
}

.lsw-decorative-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    width: calc(50% - 16px);
    background: linear-gradient(to left, #667eea 0%, #ff6b6b 100%);
}

/* Wayne's cards - Blue themed dividers */
.lsw-content-panel[data-set="1"] .lsw-decorative-divider::before {
    background: linear-gradient(to right, #667eea 0%, #9bb5ff 100%);
}

.lsw-content-panel[data-set="1"] .lsw-decorative-divider::after {
    background: linear-gradient(to left, #667eea 0%, #9bb5ff 100%);
}

.lsw-content-panel[data-set="1"] .lsw-decorative-circle {
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Christy's cards - Pink themed dividers */
.lsw-content-panel[data-set="2"] .lsw-decorative-divider::before {
    background: linear-gradient(to right, #f093fb 0%, #f8b4ff 100%);
}

.lsw-content-panel[data-set="2"] .lsw-decorative-divider::after {
    background: linear-gradient(to left, #f093fb 0%, #f8b4ff 100%);
}

.lsw-content-panel[data-set="2"] .lsw-decorative-circle {
    border: 3px solid #f093fb;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.lsw-decorative-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    z-index: 10;
    position: relative;
}

/* ========================================
   QUOTE CARD STYLING (Cards 5, 7-10) - IMPROVED MOBILE
   ======================================== */
.lsw-quotation-panel {
    padding: clamp(20px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    min-height: 450px;
}

.lsw-quotation-panel .lsw-story-top {
    text-align: center;
    margin-bottom: clamp(15px, 4vw, 30px);
    width: 100%;
    max-width: 100%;
}

.lsw-quotation-panel h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(15px, 4vw, 30px);
    color: #2c3e50;
    text-align: center;
    line-height: 1.1;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.lsw-quotation-panel .lsw-quote-wrapper {
    background: #f8f9fa;
    padding: clamp(24px, 6vw, 36px);
    border-radius: 8px;
    font-style: italic;
    position: relative;
    box-shadow: none;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ff6b6b;
    margin: clamp(20px, 4vw, 32px) 0;
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.lsw-quotation-panel .lsw-quote-wrapper::before {
    content: '"';
    position: absolute;
    top: clamp(-12px, -2.5vw, -18px);
    left: clamp(18px, 4vw, 24px);
    font-size: clamp(3rem, 7vw, 4.5rem);
    color: #ff6b6b;
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    opacity: 0.8;
}

/* Removed old colored border effects for clean white boxes */

.lsw-quotation-panel .lsw-quote-message {
    font-size: clamp(1.1rem, 2.6vw, 1.3rem);
    line-height: 1.8;
    margin-bottom: clamp(20px, 5vw, 28px);
    color: #2c3e50;
    text-align: center;
    font-weight: 500;
}

.lsw-quotation-panel .lsw-quote-attribution {
    text-align: center;
    font-weight: 700;
    color: #ff6b6b;
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
}

/* Subtitle styling to match flat design */
.lsw-subtitle {
    color: #6c757d;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 500;
    font-style: italic;
    margin-bottom: clamp(20px, 5vw, 32px);
}

/* ========================================
   ELEGANT GRADIENT CARD DESIGN
   ======================================== */
.lsw-content-panel[data-set="1"][data-index="0"],
.lsw-content-panel[data-set="1"][data-index="1"],
.lsw-content-panel[data-set="1"][data-index="2"],
.lsw-content-panel[data-set="1"][data-index="3"],
.lsw-content-panel[data-set="1"][data-index="4"] {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-left: 4px solid #667eea;
    color: #2c3e50;
}

.lsw-content-panel[data-set="2"][data-index="0"],
.lsw-content-panel[data-set="2"][data-index="1"],
.lsw-content-panel[data-set="2"][data-index="2"],
.lsw-content-panel[data-set="2"][data-index="3"],
.lsw-content-panel[data-set="2"][data-index="4"] {
    background: linear-gradient(135deg, #fdf0f4 0%, #ffffff 100%);
    border-left: 4px solid #f093fb;
    color: #2c3e50;
}

.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: #ff6b6b;
    border: 1px solid #e55353;
    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: none;
}

/* Wayne's cards - Blue accents */
.lsw-content-panel[data-set="1"] .lsw-panel-number {
    background: #667eea;
    border: 1px solid #5a6fd8;
}

.lsw-content-panel[data-set="1"] .lsw-action-prompt {
    background: #667eea;
    border: 1px solid #5a6fd8;
}

/* Christy's cards - Pink accents */
.lsw-content-panel[data-set="2"] .lsw-panel-number {
    background: #f093fb;
    border: 1px solid #e77fe9;
}

.lsw-content-panel[data-set="2"] .lsw-action-prompt {
    background: #f093fb;
    border: 1px solid #e77fe9;
}

/* Navigation bar - keep normal positioning and z-index */
#header,
#header-wrap,
.primary-menu,
.custom-mobile-menu-overlay,
.header-wrap-clone {
    z-index: 1000;
}

/* Higher z-index only when cards are active to prevent clipping */
body.cards-active #header,
body.cards-active #header-wrap,
body.cards-active .primary-menu,
body.cards-active .custom-mobile-menu-overlay,
body.cards-active .header-wrap-clone {
    z-index: 10000 !important;
}

/* Cards positioning */
.lsw-scroll-area {
    position: relative;
    z-index: 1;
}

.lsw-sticky-stack {
    z-index: 2;
}

/* Interactive hint for snapped cards - Flat design */
.lsw-action-prompt {
    position: absolute;
    bottom: clamp(10px, 2.5vw, 20px);
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
    border-radius: 6px;
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    border: 1px solid #e55353;
    max-width: 90%;
    text-align: center;
    box-shadow: none;
}

.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;
    }
}

/* ========================================
   REWRITTEN FROM SCRATCH (OVERRIDES)
   Purpose: Scope styles to .lsw-* only, unify visuals, and reduce jitter
   ======================================== */

/* Layout containers */
.lsw-scroll-area {
    position: relative;
    min-height: 500vh;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
}

.lsw-sticky-stack {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    width: min(95vw, 900px);
    height: clamp(450px, 80vh, 700px);
    perspective: 1000px;
}

/* Panels */
.lsw-sticky-stack .lsw-content-panel {
    position: absolute;
    inset: 0;
    border-radius: clamp(12px, 2vw, 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(20px, 5vw, 48px);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Unified text containers */
.lsw-sticky-stack .lsw-text-container {
    width: 100%;
    max-width: 860px;
    padding: clamp(24px, 6vw, 40px);
    border-radius: 8px;
    background: #f8f9fa;
    box-shadow: none;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ff6b6b;
    color: #495057;
    text-align: center;
}

/* Title sizes */
.lsw-sticky-stack .lsw-title {
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: none;
}
.lsw-sticky-stack .lsw-title-large { font-size: clamp(2.2rem, 7.5vw, 4.2rem); line-height: 1.1; }
.lsw-sticky-stack .lsw-title-medium { font-size: clamp(1.9rem, 6vw, 3.4rem); line-height: 1.1; }
.lsw-sticky-stack .lsw-title-small { font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.1; }

/* Per-set elegant gradient backgrounds */
.lsw-sticky-stack .lsw-content-panel[data-set="1"] {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-left: 4px solid #667eea;
    color: #2c3e50;
}
.lsw-sticky-stack .lsw-content-panel[data-set="2"] {
    background: linear-gradient(135deg, #fdf0f4 0%, #ffffff 100%);
    border-left: 4px solid #f093fb;
    color: #2c3e50;
}

/* Accent borders per set */
.lsw-sticky-stack .lsw-content-panel[data-set="1"] .lsw-text-container { border-left-color: #4F9EFE; }
.lsw-sticky-stack .lsw-content-panel[data-set="2"] .lsw-text-container { border-left-color: #F093FB; }

/* Number badge and hint */
.lsw-sticky-stack .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);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b6b;
    border: 1px solid #e55353;
    color: #ffffff;
    font-weight: 700;
    box-shadow: none;
}

/* Wayne's cards - Blue accents for sticky stack */
.lsw-sticky-stack .lsw-content-panel[data-set="1"] .lsw-panel-number {
    background: #667eea;
    border: 1px solid #5a6fd8;
}

.lsw-sticky-stack .lsw-content-panel[data-set="1"] .lsw-action-prompt {
    background: #667eea;
    border: 1px solid #5a6fd8;
}

/* Christy's cards - Pink accents for sticky stack */
.lsw-sticky-stack .lsw-content-panel[data-set="2"] .lsw-panel-number {
    background: #f093fb;
    border: 1px solid #e77fe9;
}

.lsw-sticky-stack .lsw-content-panel[data-set="2"] .lsw-action-prompt {
    background: #f093fb;
    border: 1px solid #e77fe9;
}

.lsw-sticky-stack .lsw-action-prompt {
    position: absolute;
    bottom: clamp(10px, 2.5vw, 20px);
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: #ffffff;
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
    border-radius: 6px;
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 1px solid #e55353;
    white-space: nowrap;
}
.lsw-sticky-stack .lsw-action-prompt.lsw-show-hint { opacity: 0.9; animation: lsw-pulse-hint 2s ease-in-out infinite; }

/* Person, narrative, quotation panels */
.lsw-sticky-stack .lsw-person-showcase,
.lsw-sticky-stack .lsw-narrative-panel,
.lsw-sticky-stack .lsw-quotation-panel {
    padding: clamp(16px, 4vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lsw-sticky-stack .lsw-avatar-circle {
    width: clamp(84px, 18vw, 132px);
    height: clamp(84px, 18vw, 132px);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

/* Decorative divider */
.lsw-sticky-stack .lsw-decorative-divider { display:flex; align-items:center; justify-content:center; margin: clamp(14px,4vw,28px) 0; height: 20px; width:100%; position: relative; }
.lsw-sticky-stack .lsw-decorative-divider::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); height:3px; width:calc(50% - 16px); background: linear-gradient(to right, #f093fb 0%, #ff6b6b 100%); }
.lsw-sticky-stack .lsw-decorative-divider::after { content:''; position:absolute; right:0; top:50%; transform:translateY(-50%); height:3px; width:calc(50% - 16px); background: linear-gradient(to left, #667eea 0%, #ff6b6b 100%); }
.lsw-sticky-stack .lsw-decorative-circle { width:16px; height:16px; border-radius:50%; background: #ffffff; border:3px solid #ff6b6b; box-shadow:0 4px 12px rgba(255, 107, 107, 0.3); }

/* Quote wrapper tweaks */
.lsw-sticky-stack .lsw-quote-wrapper { position: relative; font-style: italic; }
.lsw-sticky-stack .lsw-quote-wrapper::before { content:'"'; position:absolute; top: -12px; left: clamp(18px, 4vw, 24px); font-size: clamp(3rem, 7vw, 4.5rem); color: #ff6b6b; font-family: Georgia, serif; font-weight: 700; opacity: 0.8; }

/* Responsive */
@media (max-width: 768px) {
    .lsw-sticky-stack { width: 92vw; height: 76vh; transform: translateY(-50%); }
    .lsw-text-container { font-size: clamp(0.9rem, 3.2vw, 1.05rem); line-height: 1.55; }
}

@media (max-width: 480px) {
    .lsw-sticky-stack { height: 74vh; }
    .lsw-action-prompt { white-space: normal; max-width: 85%; }
}