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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #0a0a0a 100%);
    min-height: 100vh;
    max-height: 100vh;
    color: #ffffff;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none; /* Prevent browser gestures */
}

/* === SmΔrt Galaxy Background Stars === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Cyan stars (primary SmΔrt color) */
        radial-gradient(circle at 10% 15%, rgba(0, 255, 255, 0.12) 1.5px, transparent 1.5px),
        radial-gradient(circle at 85% 25%, rgba(0, 255, 255, 0.10) 1.2px, transparent 1.2px),
        radial-gradient(circle at 45% 75%, rgba(0, 255, 255, 0.08) 1px, transparent 1px),
        /* Green stars (SmΔrt color) */
        radial-gradient(circle at 30% 40%, rgba(29, 255, 0, 0.09) 1.3px, transparent 1.3px),
        radial-gradient(circle at 70% 60%, rgba(29, 255, 0, 0.07) 1px, transparent 1px),
        radial-gradient(circle at 15% 85%, rgba(29, 255, 0, 0.08) 1.1px, transparent 1.1px),
        /* Yellow stars (SmΔrt color) */
        radial-gradient(circle at 55% 20%, rgba(252, 242, 10, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 90% 70%, rgba(252, 242, 10, 0.06) 0.9px, transparent 0.9px),
        radial-gradient(circle at 25% 55%, rgba(252, 242, 10, 0.07) 1.2px, transparent 1.2px),
        /* Purple accent stars */
        radial-gradient(circle at 65% 35%, rgba(255, 0, 255, 0.05) 0.8px, transparent 0.8px),
        radial-gradient(circle at 40% 90%, rgba(255, 0, 255, 0.04) 1px, transparent 1px),
        /* White/neutral stars */
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.06) 0.7px, transparent 0.7px),
        radial-gradient(circle at 5% 50%, rgba(255, 255, 255, 0.05) 0.8px, transparent 0.8px);
    background-size: 
        280px 280px, 320px 320px, 200px 200px,
        260px 260px, 180px 180px, 300px 300px,
        220px 220px, 150px 150px, 340px 340px,
        190px 190px, 250px 250px,
        170px 170px, 290px 290px;
    animation: backgroundTourbillion var(--animation-bg-duration, 45s) linear infinite;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

/* Enhanced title turning circle effect */
.title-tourbillion-enhanced {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background-image: 
        radial-gradient(circle at 50% 0%, #ff3366 4px, transparent 4px),
        radial-gradient(circle at 100% 50%, #00ffff 3px, transparent 3px),
        radial-gradient(circle at 50% 100%, #ff00ff 3.5px, transparent 3.5px),
        radial-gradient(circle at 0% 50%, #ffff00 3px, transparent 3px),
        radial-gradient(circle at 25% 25%, #ff3366 2px, transparent 2px),
        radial-gradient(circle at 75% 25%, #00ffff 2.5px, transparent 2.5px),
        radial-gradient(circle at 75% 75%, #ff00ff 2px, transparent 2px),
        radial-gradient(circle at 25% 75%, #ffff00 2.5px, transparent 2.5px);
    background-size: 80px 80px, 100px 100px, 90px 90px, 85px 85px, 60px 60px, 70px 70px, 65px 65px, 75px 75px;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    border-radius: 50%;
    animation: titleCircleTourbillion 8s ease-in-out infinite;
}

@keyframes titleCircleTourbillion {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% { 
        transform: translate(-50%, -50%) rotate(36deg) scale(0.8);
        opacity: 0.6;
    }
    25% { 
        transform: translate(-50%, -50%) rotate(90deg) scale(1.2);
        opacity: 0.9;
    }
    50% { 
        transform: translate(-50%, -50%) rotate(180deg) scale(1.5);
        opacity: 1;
    }
    75% { 
        transform: translate(-50%, -50%) rotate(270deg) scale(1.2);
        opacity: 0.8;
    }
    90% { 
        transform: translate(-50%, -50%) rotate(324deg) scale(0.8);
        opacity: 0.4;
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

.header {
    display: none;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    overflow: hidden;
    touch-action: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6666;
}

.modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.iframe-container {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.coming-soon {
    text-align: center;
    padding: 4rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-modal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
}

.action-modal-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.action-modal-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.action-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 60px;
}

.btn::before,
.btn-primary::before,
.btn-secondary::before,
.btn-tertiary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: all 0.3s ease;
    z-index: 0;
}

.btn:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-tertiary:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.1));
    color: #00ffff;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(200, 0, 255, 0.1));
    color: #ff00ff;
    box-shadow: 0 8px 32px rgba(255, 0, 255, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 0, 255, 0.4);
}

.btn-tertiary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(200, 200, 200, 0.05));
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

.btn-small {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-height: 50px;
    min-width: 120px;
}

/* Compatibility aliases for legacy .glass-btn* classes */
.glass-btn { @extend .btn; }
.glass-btn-primary { @extend .btn-primary; }
.glass-btn-secondary { @extend .btn-secondary; }
.glass-btn-tertiary { @extend .btn-tertiary; }
.glass-btn-small { @extend .btn-small; }

/* Fallback for non-preprocessor environments */
.glass-btn { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 60px;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: all 0.3s ease;
    z-index: 0;
}

.glass-btn:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.glass-btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.1));
    color: #00ffff;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
}

.glass-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.4);
}

.glass-btn-secondary {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(200, 0, 255, 0.1));
    color: #ff00ff;
    box-shadow: 0 8px 32px rgba(255, 0, 255, 0.2);
}

.glass-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 0, 255, 0.4);
}

.glass-btn-tertiary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(200, 200, 200, 0.05));
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.glass-btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

.glass-btn-small {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-height: 50px;
    min-width: 120px;
}

.btn-icon,
.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 1.3rem;
}

.embedded-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.embedded-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.embedded-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.embedded-icon {
    font-size: 1.5rem;
}

.embedded-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embedded-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.embedded-content {
    flex: 1;
    position: relative;
}

.embedded-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Enhanced GLB overlay styles */
.glb-overlay {
    position: fixed;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.glb-header {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2), 
        rgba(0, 0, 0, 0.1));
}

.glb-footer {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 320px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.15), 
        rgba(0, 0, 0, 0.05));
}

.glb-logo-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.glb-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.glb-instruction {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.glb-controls {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Hide/show animations for overlays */
.glb-overlay.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

/* Enhanced bottom action bar positioning */
.bottom-action-bar {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 200;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    min-width: 320px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.bottom-bar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.item-description {
    text-align: center;
    margin-bottom: 0.5rem;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.item-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* Expand/collapse state classes */
.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.expanded {
    max-height: 100vh;
    overflow: visible;
    opacity: 1;
}

/* Enhanced button styles */
.btn-small {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-height: 50px;
    min-width: 120px;
}

.btn-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: all 0.3s ease;
    z-index: 0;
}

.btn-small:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.btn-small.btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.1));
    color: #00ffff;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
}

.btn-small.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.4);
}

.btn-small.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(200, 0, 255, 0.1));
    color: #ff00ff;
    box-shadow: 0 8px 32px rgba(255, 0, 255, 0.2);
}

.btn-small.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 0, 255, 0.4);
}

.btn-small.btn-tertiary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(200, 200, 200, 0.05));
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.btn-small.btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

.btn-small .btn-icon,
.btn-small .btn-text {
    position: relative;
    z-index: 1;
}

.btn-small .btn-icon {
    font-size: 1.1rem;
}

.clipboard-widget {
    position: fixed;
    width: 410px;
    height: 630px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.clipboard-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
    user-select: none;
    min-height: 32px;
    max-height: 32px;
}

.clipboard-widget-header:active {
    cursor: grabbing;
}

.clipboard-widget-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.clipboard-icon {
    font-size: 14px;
}

.clipboard-widget-controls {
    display: flex;
    gap: 2px;
}

.widget-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.clipboard-widget-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clipboard-widget-content iframe {
    width: 100%;
    height: 95%;
    max-height: calc(100% - 20px);
    border: none;
    background: white;
    margin: 10px 0;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.clipboard-widget-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nw-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 8px 0;
    transition: all 0.2s ease;
}

.clipboard-widget-resize-handle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.resize-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transform: rotate(0deg);
    transition: all 0.2s ease;
}

.clipboard-widget-resize-handle:hover .resize-arrow {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.fullscreen-app-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1500;
}

.fullscreen-app-content {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fullscreen-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 50px;
}

.fullscreen-app-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.fullscreen-app-controls {
    display: flex;
    gap: 8px;
}

.fullscreen-app-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-app-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
}

.fullscreen-app-btn.back-btn {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.1));
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.fullscreen-app-btn.back-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 255, 0.2));
    border-color: rgba(0, 255, 255, 0.5);
}

.fullscreen-app-btn.close-btn {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 50, 50, 0.1));
    color: #ff6666;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.fullscreen-app-btn.close-btn:hover {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.3), rgba(255, 50, 50, 0.2));
    border-color: rgba(255, 100, 100, 0.5);
}

.fullscreen-app-iframe-container {
    flex: 1;
    position: relative;
    padding: 16px;
}

.fullscreen-app-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Disable main interactions when fullscreen app is active */
.fullscreen-app-active #canvas-container {
    pointer-events: none;
}

.fullscreen-app-active #bottom-action-bar {
    display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .clipboard-widget {
        width: min(410px, 95vw);
        height: min(630px, 90vh);
        max-width: 95vw;
        max-height: 90vh;
    }
    
    .clipboard-widget-header {
        padding: 8px 10px;
        min-height: 36px;
        max-height: 36px;
    }
    
    .clipboard-widget-title {
        font-size: 14px;
    }
    
    .widget-btn {
        min-width: 24px;
        height: 24px;
        font-size: 16px;
    }
    
    .clipboard-widget-resize-handle {
        width: 24px;
        height: 24px;
    }
    
    .resize-arrow {
        font-size: 12px;
    }
    
    .fullscreen-app-content {
        top: 5%;
        left: 5%;
        right: 5%;
        bottom: 5%;
    }
    
    .fullscreen-app-header {
        padding: 10px 12px;
        min-height: 45px;
    }
    
    .fullscreen-app-icon {
        font-size: 1.3rem;
    }
    
    .fullscreen-app-btn {
        font-size: 1.1rem;
        padding: 6px 10px;
        min-width: 36px;
        height: 36px;
    }
    
    .glb-header, .glb-footer {
        width: 90%;
        max-width: 400px;
    }
    
    .glb-logo-text {
        font-size: 1.2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .glass-btn-small {
        width: 100%;
        max-width: 200px;
    }
    
    /* 📱 Mobile responsive loading screen */
    .loading-title-row {
        gap: 4px;
        flex-wrap: nowrap;
        max-width: 100vw;
        padding: 0 10px;
    }
    
    .loading-title-text {
        font-size: 48px;
    }
    
    :root {
        --loading-logo-size: 70px;
    }
    
    .loading-subtitle {
        font-size: 14px !important;
        padding: 0 15px;
        max-width: 90vw;
    }
    
    .welcome-text-loading span {
        font-size: 16px !important;
    }
    
    .bottom-arrow-loading {
        bottom: 15%;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .loading-title-text {
        font-size: 36px;
    }
    
    :root {
        --loading-logo-size: 55px;
    }
    
    .loading-subtitle {
        font-size: 12px !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .clipboard-widget {
        border-width: 0.5px;
    }
}

/* Add new styles for GLB button effects */
.glb-button-glow {
    animation: buttonGlow 2s ease-in-out infinite alternate;
}

@keyframes buttonGlow {
    from {
        box-shadow: 0 0 5px #00ffff;
    }
    to {
        box-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

/* Enhanced particle effects */
.particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Floating text styles */
.floating-text {
    position: absolute;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-shadow: 0 0 10px #00ffff;
    pointer-events: none;
    animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced GLB overlay styles */
.glb-overlay-enhanced {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    z-index: 500;
    text-align: center;
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Add cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff3366 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: lighten;
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0.8;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease-out;
}

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

/* @tweakable loading logo container size in pixels */
:root {
    --loading-logo-size: 120px;
    --loading-logo-a-opacity: 1.0;
    --loading-logo-b-opacity: 1.0;
    --loading-logo-a-scale: 1.0;
    --loading-logo-b-scale: 1.0;
    --loading-logo-a-z-index: 1;
    --loading-logo-b-z-index: 2;
    /* @tweakable delta rotation animation duration in seconds */
    --delta-rotation-duration: 4s;
    /* @tweakable delta rotation pause duration as percentage of cycle */
    --delta-rotation-pause: 8%;
}

/* Title row: Sm + [logos] + rt */
.loading-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-title-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 450;
    font-size: 84px;
    /* White text */
    color: #ffffff;
    /* 3D shadow effect with SmΔrt brand colors */
    text-shadow: 
        1px 1px 0px #006666,
        2px 2px 0px #008888,
        3px 3px 0px #00aaaa,
        0 0 20px #00ffff,
        0 0 40px rgba(0, 255, 255, 0.5);
    line-height: 1;
    user-select: none;
}

.loading-logos-wrapper {
    position: relative;
    width: var(--loading-logo-size);
    height: var(--loading-logo-size);
}

.loading-logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loading-logo-a {
    /* @tweakable first logo opacity */
    opacity: var(--loading-logo-a-opacity);
    /* @tweakable first logo scale */
    transform: scale(var(--loading-logo-a-scale));
    z-index: var(--loading-logo-a-z-index);
    /* @tweakable apply color cycle shadow animation - synced with logo-b */
    animation: deltaColorCycle var(--delta-rotation-duration) linear infinite;
}

.loading-logo-b {
    /* @tweakable second logo opacity */
    opacity: var(--loading-logo-b-opacity);
    /* @tweakable second logo scale */
    transform: scale(var(--loading-logo-b-scale));
    z-index: var(--loading-logo-b-z-index);
    /* @tweakable apply delta rotation and color cycle animations */
    animation: deltaRotate var(--delta-rotation-duration) linear infinite, 
               deltaColorCycle var(--delta-rotation-duration) linear infinite;
    transform-origin: center center;
    pointer-events: none;
}

/* @tweakable delta rotation keyframes with pauses */
@keyframes deltaRotate {
    0% { transform: rotate(0deg) scale(var(--loading-logo-b-scale)); }
    8% { transform: rotate(0deg) scale(var(--loading-logo-b-scale)); }
    33.33% { transform: rotate(120deg) scale(var(--loading-logo-b-scale)); }
    41.33% { transform: rotate(120deg) scale(var(--loading-logo-b-scale)); }
    66.66% { transform: rotate(240deg) scale(var(--loading-logo-b-scale)); }
    74.66% { transform: rotate(240deg) scale(var(--loading-logo-b-scale)); }
    100% { transform: rotate(360deg) scale(var(--loading-logo-b-scale)); }
}

/* @tweakable delta color cycle with drop shadow matching SVG group colors */
/* blue=#00ffff (cyan), green=#1dff00 (lime), yellow=#fcf20a */
/* Includes animated white glow layer that pulses every 12s (synced with 3x color cycle) */
@keyframes deltaColorCycle {
    /* Blue phase: 0% - 33.33% - white glow starts dim */
    0% { filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 60px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)); }
    8% { filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 60px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.3)); }
    16% { filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 60px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)); }
    24% { filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 60px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.3)); }
    32% { filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 60px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.15)); }
    /* Transition to Green - white glow builds */
    33.33% { filter: drop-shadow(0 0 35px rgba(29, 255, 0, 0.9)) drop-shadow(0 0 60px rgba(29, 255, 0, 0.5)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.2)); }
    /* Green phase: 33.33% - 66.66% - white glow peaks */
    41.33% { filter: drop-shadow(0 0 35px rgba(29, 255, 0, 0.9)) drop-shadow(0 0 60px rgba(29, 255, 0, 0.5)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 35px rgba(29, 255, 0, 0.9)) drop-shadow(0 0 60px rgba(29, 255, 0, 0.5)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.6)); }
    58% { filter: drop-shadow(0 0 35px rgba(29, 255, 0, 0.9)) drop-shadow(0 0 60px rgba(29, 255, 0, 0.5)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.4)); }
    65% { filter: drop-shadow(0 0 35px rgba(29, 255, 0, 0.9)) drop-shadow(0 0 60px rgba(29, 255, 0, 0.5)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.2)); }
    /* Transition to Yellow - white glow dims */
    66.66% { filter: drop-shadow(0 0 35px rgba(252, 242, 10, 0.9)) drop-shadow(0 0 60px rgba(252, 242, 10, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.15)); }
    /* Yellow phase: 66.66% - 100% - white glow subtle pulse */
    74.66% { filter: drop-shadow(0 0 35px rgba(252, 242, 10, 0.9)) drop-shadow(0 0 60px rgba(252, 242, 10, 0.5)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.25)); }
    83% { filter: drop-shadow(0 0 35px rgba(252, 242, 10, 0.9)) drop-shadow(0 0 60px rgba(252, 242, 10, 0.5)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.4)); }
    91% { filter: drop-shadow(0 0 35px rgba(252, 242, 10, 0.9)) drop-shadow(0 0 60px rgba(252, 242, 10, 0.5)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.2)); }
    99% { filter: drop-shadow(0 0 35px rgba(252, 242, 10, 0.9)) drop-shadow(0 0 60px rgba(252, 242, 10, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)); }
    /* Back to Blue */
    100% { filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 60px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)); }
}

/* === DELTA SVG GROUP VISIBILITY - JS CONTROLLED === */
/* Colors are now controlled by JavaScript for precise sync */
.loading-logo-b #blue,
.loading-logo-b #green,
.loading-logo-b #yellow {
    /* No CSS animation - JS handles opacity directly */
    animation: none !important;
    transition: none !important;
}

/* Initial states - JS will override these immediately */
.loading-logo-b #blue {
    opacity: 1;
}

.loading-logo-b #green {
    opacity: 0;
}

.loading-logo-b #yellow {
    opacity: 0;
}

/* Remove old keyframes - no longer needed */

.loading-subtitle {
    margin-top: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 15px #00ffff, 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Legacy loading-text class for backwards compatibility */
.loading-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    animation: textPulse 2s ease-in-out infinite;
}

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

/* Enhanced title effects */
.title-tourbillion {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: 
        radial-gradient(circle at 20% 30%, #ff3366 3px, transparent 3px),
        radial-gradient(circle at 60% 70%, #00ffff 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, #ff00ff 2.5px, transparent 2.5px),
        radial-gradient(circle at 30% 80%, #ffff00 2px, transparent 2px);
    background-size: 80px 80px, 120px 120px, 100px 100px, 90px 90px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    animation: titleTourbillion 4s linear infinite;
}

@keyframes titleTourbillion {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0;
    }
    25% { 
        transform: rotate(90deg) scale(1.2);
        opacity: 0.8;
    }
    50% { 
        transform: rotate(180deg) scale(0.8);
        opacity: 1;
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 0;
    }
}

.slim-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    max-width: 1280px;
    max-height: 720px;
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.slim-unextend {
    position: absolute;
    top: 12px;
    right: 54px;
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    color: #667eea;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    font-weight: bold;
    line-height: 1;
}

.slim-unextend:hover {
    background: rgba(102, 126, 234, 0.6);
    border-color: rgba(102, 126, 234, 0.7);
    color: #8b9ef9;
    transform: scale(1.1);
}

.slim-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 100, 100, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 100, 100, 0.5);
    border-radius: 50%;
    color: #ff6666;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    font-weight: normal;
    line-height: 1;
}

.slim-close:hover {
    background: rgba(255, 100, 100, 0.6);
    border-color: rgba(255, 100, 100, 0.7);
    color: #ff8888;
    transform: scale(1.1);
}

.slim-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* SmΔrt Panel System - Canonical Panel Styles */
/* @tweakable panel border radius in pixels */
.smart-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    /* @tweakable panel border radius */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

/* @tweakable panel hover ring color and size */
.smart-panel:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* @tweakable panel focus ring color */
.smart-panel:focus-within {
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

/* Backward compatibility alias */
.panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.panel:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.panel:focus-within {
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

/* SmΔrt Toast Notification Styles */
.smart-toast {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.smart-toast-info {
    border-color: rgba(0, 255, 255, 0.5) !important;
}

.smart-toast-success {
    border-color: rgba(0, 255, 0, 0.5) !important;
}

.smart-toast-warning {
    border-color: rgba(255, 200, 0, 0.5) !important;
}

.smart-toast-error {
    border-color: rgba(255, 0, 0, 0.5) !important;
}

/* ============================================
   WELCOME TEXT IN LOADING OVERLAY
   ============================================ */
.welcome-text-loading {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: white;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: welcomeLoadingFade 4s ease-in-out 1.5s forwards;
    white-space: nowrap;
}

@keyframes welcomeLoadingFade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
        filter: blur(5px);
        letter-spacing: 0.3em;
    }
    30% {
        opacity: 1;
        filter: blur(0);
        letter-spacing: 0.15em;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0.9;
        transform: translateX(-50%) translateY(0);
    }
}

/* Pulse effect after initial animation */
.welcome-text-loading.pulse {
    animation: welcomeLoadingPulse 2.5s ease-in-out infinite;
    opacity: 1;
}

@keyframes welcomeLoadingPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6);
        opacity: 0.85;
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 50px rgba(255, 255, 255, 0.5);
        opacity: 1;
    }
}

/* ============================================
   BOTTOM ARROW IN LOADING OVERLAY
   ============================================ */
.bottom-arrow-loading {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: arrowLoadingFade 3s ease-out 2s forwards;
}

@keyframes arrowLoadingFade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bottom-arrow-loading .arrow-container {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 1.8rem;
}

.bottom-arrow-loading .arrow-double {
    color: white;
    opacity: 0.9;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4);
    animation: arrowPulseLoadingLeft 1.5s ease-in-out infinite;
}

.bottom-arrow-loading .arrow-double:last-child {
    animation: arrowPulseLoadingRight 1.5s ease-in-out infinite;
}

.bottom-arrow-loading .arrow-logo {
    font-size: 2.2rem;
    color: white;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
    animation: logoGlowLoading 2s ease-in-out infinite;
}

.bottom-arrow-loading .arrow-hint {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: white;
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes arrowPulseLoadingLeft {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-5px);
    }
}

@keyframes arrowPulseLoadingRight {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

@keyframes logoGlowLoading {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.7),
            0 0 45px rgba(255, 255, 255, 0.4);
        transform: scale(1.08);
    }
}

@keyframes hintPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Float animation after loading visible */
.bottom-arrow-loading.float {
    animation: arrowFloatLoading 3s ease-in-out infinite;
}

@keyframes arrowFloatLoading {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ============================================
   BROWSER COMPATIBILITY WARNING
   ============================================ */
.browser-compat-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 10000;
    max-width: 90%;
    width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.browser-compat-warning.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.browser-compat-warning .warning-content {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.98));
    border: 1px solid rgba(255, 200, 0, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 200, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.browser-compat-warning .warning-main {
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-right: 30px;
}

.browser-compat-warning .warning-recommend {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85rem;
    font-style: italic;
}

.browser-compat-warning .warning-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.browser-compat-warning .warning-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: scale(1.1);
}