:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: rgba(21, 21, 21, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --text-dim: #555555;
    --border-primary: rgba(255,255,255,0.01);
    --border-secondary: rgba(255,255,255,0.008);
    --border-hover: rgba(255,255,255,0.02);
    --shadow-light: rgba(255, 255, 255, 0.01);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    
    --discord-online: #23a55a;
    --discord-idle: #f0b232;
    --discord-dnd: #f23f43;
    /* Make offline appear green as requested */
    --discord-offline: #23a55a;
    --spotify-green: #1db954;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

*::selection {
    background: #333333;
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: var(--text-dim);
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 25s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 30s; animation-delay: 5s; width: 2px; height: 2px; }
.particle:nth-child(3) { left: 35%; animation-duration: 20s; animation-delay: 10s; }

@keyframes float {
    0% {
        transform: translateY(-100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) translateX(30px);
        opacity: 0;
    }
}

.ambient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    z-index: 0;
    animation: ambientPulse 15s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


.main-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 3; /* ensure content sits above overlay/background */
    gap: 40px;
    padding: 40px;
    align-items: center;
    justify-content: center;
}


.widgets-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 320px;
    flex-shrink: 0;
}


.widget {
    background: rgba(18,18,18,0.55);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(6px) saturate(1.02);
    -webkit-backdrop-filter: blur(6px) saturate(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
    transition: all 0.3s ease;
    animation: slideInLeft 1s ease-out;
}

.widget:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px var(--shadow-dark);
    transform: translateY(-2px);
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-primary);
}

.widget-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
}

.widget-icon i {
    font-size: 14px;
    color: var(--text-secondary);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--discord-offline);
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.online { background: var(--discord-online); }
.status-indicator.idle { background: var(--discord-idle); }
.status-indicator.dnd { background: var(--discord-dnd); }
.status-indicator.offline { background: var(--discord-offline); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.discord-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.avatar:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px var(--shadow-light);
}

.status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background: var(--discord-offline);
}

.status-badge.online { background: var(--discord-online); }
.status-badge.idle { background: var(--discord-idle); }
.status-badge.dnd { background: var(--discord-dnd); }
.status-badge.offline { background: var(--discord-offline); }

.profile-info {
    flex: 1;
    min-width: 0;
}

.username {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.spotify-widget .widget-icon {
    color: var(--spotify-green);
}

.playback-status {
    display: flex;
    align-items: center;
}

.play-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    /* Show green even when idle */
    background: var(--spotify-green);
    animation: pulse 2s ease-in-out infinite;
}

.play-indicator.playing {
    background: var(--spotify-green);
    animation: pulse 1s ease-in-out infinite;
}

.spotify-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.track-details {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-container {
    flex-shrink: 0;
}

.album-art {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid var(--border-secondary);
    object-fit: cover;
    transition: all 0.3s ease;
    display: none;
}

.album-art:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px var(--shadow-light);
}

.album-art.visible {
    display: block;
}

.album-container.hidden {
    display: none;
}

.progress-container {
    display: none;
}

.progress-container.visible {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--text-secondary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Spotify Embed */
.spotify-embed-container {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    /* Stretch to full widget width (widget has 24px padding) */
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
}

.spotify-embed-container iframe {
    width: 100%;
    height: 152px; /* standard embed height to avoid internal scrollbars */
    border: 0;
}

/* Compact variant: visually smaller without scrollbars by scaling */
.spotify-embed-container.compact {
    height: 134px; /* 152px * 0.88 */
}
.spotify-embed-container.compact iframe {
    transform: scale(0.88);
    transform-origin: top left;
    width: calc(100% / 0.88); /* expand width so scaled content fits container */
    height: 152px; /* keep native height to prevent internal scrollbars */
}

.spotify-actions {
    margin-top: 10px;
}

.btn-spotify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    padding: 6px 10px;
    border-radius: 8px;
    transition: all .2s ease;
}

.btn-spotify:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* Utility */
.hidden { display: none !important; }

@media (max-width: 480px) {
    .spotify-embed-container iframe {
    height: 152px; /* standard on small screens as well to avoid scrollbars */
    }
}

.profile-section {
    flex: 1;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.profile-card {
    background: rgba(18,18,18,0.6);
    border: 1px solid rgba(255,255,255,0.035);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(8px) saturate(1.03);
    -webkit-backdrop-filter: blur(8px) saturate(1.03);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-secondary), transparent);
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.main-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--border-secondary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.avatar-border {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.profile-avatar:hover .avatar-border {
    opacity: 1;
    transform: rotate(180deg);
}

.profile-avatar:hover .main-avatar-img {
    border-color: var(--border-hover);
    box-shadow: 0 0 30px var(--shadow-light);
}

.profile-details {
    flex: 1;
}

.display-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.name-text {
    color: var(--text-primary);
    position: relative;
}

.name-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-secondary);
    transition: width 0.3s ease;
}

.display-name:hover .name-text::after {
    width: 100%;
}

.bio-section {
    margin-bottom: 20px;
}

.bio-text {
    font-size: 18px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0;
}

.typing-text {
    display: inline;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--text-primary);
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    display: inline-flex;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--discord-offline);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.online { background: var(--discord-online); }
.status-dot.idle { background: var(--discord-idle); }
.status-dot.dnd { background: var(--discord-dnd); }
.status-dot.offline { background: var(--discord-offline); }

.status-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    margin: 30px 0;
}

.social-links {
    margin-bottom: 30px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.link-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-link:hover .link-icon {
    background: var(--bg-primary);
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.link-icon i {
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.social-link:hover .link-icon i {
    color: var(--text-primary);
}

.link-label {
    font-weight: 500;
    font-size: 16px;
    flex: 1;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.social-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
}

.footer {
    border-top: 1px solid var(--border-primary);
    padding-top: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright i {
    font-size: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-site * {
    cursor: none !important;
}

.entry-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full-screen GIF background (place your GIF at assets/bg.gif) */
    background: url('assets/bg.gif') center center/cover no-repeat;
    background-color: #000000; /* fallback */
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.entry-page.fade-out {
    opacity: 0;
    pointer-events: none;
}

.entry-container {
    text-align: center;
    position: relative;
}

.entry-container { display: flex; align-items: center; gap: 18px; }

/* hide small inline GIF since we use a full-page background GIF */
.entry-gif { display: none !important; }


.entry-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
    transition: opacity 0.3s ease;
    margin-bottom: 2rem;
    cursor: pointer;
}

.entry-text:hover {
    opacity: 0.7;
}

/* Neon / pulse for entry text */
.entry-text {
    position: relative;
    z-index: 10001;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.06), 0 0 24px rgba(29,185,84,0.04), 0 0 48px rgba(29,185,84,0.02);
    animation: entryPulse 2400ms ease-in-out infinite;
}

@keyframes entryPulse {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(29,185,84,0)); }
    50% { transform: translateY(-4px) scale(1.02); filter: drop-shadow(0 8px 28px rgba(29,185,84,0.06)); }
    100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(29,185,84,0)); }
}

/* small bouncing arrow using pseudo element */
.entry-text::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    vertical-align: middle;
    transform-origin: 50% 50%;
    animation: arrowBounce 1400ms ease-in-out infinite;
    opacity: 0.95;
}

@keyframes arrowBounce {
    0% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Ripple effect for clicks on entry page */
.entry-container { position: relative; }
.entry-ripple {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(29,185,84,0.12) 40%, rgba(29,185,84,0.06) 100%);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 10000;
    animation: rippleExpand 700ms cubic-bezier(.22,.9,.35,1) forwards;
    opacity: 0.95;
}

@keyframes rippleExpand {
    to {
        transform: translate(-50%, -50%) scale(28);
        opacity: 0;
    }
}

.audio-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333333;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 10000;
}

.audio-control.visible {
    display: flex !important;
}

.audio-control:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #555555;
    transform: scale(1.1);
}

.audio-control.muted {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
}

.audio-control.muted .fas {
    color: #ff4444;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
}

.cursor-ring {
    width: 24px;
    height: 24px;
    border: 1px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.cursor.hover .cursor-dot {
    width: 6px;
    height: 6px;
}

.cursor.hover .cursor-ring {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}


@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
    
    .widgets-section {
        width: 100%;
        max-width: 600px;
        flex-direction: row;
        gap: 20px;
    }
    
    .widget {
        flex: 1;
        animation: fadeInUp 1s ease-out;
    }
}

@media (max-width: 768px) {
    .widgets-section {
        flex-direction: column;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .main-avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .display-name {
        font-size: 28px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
    }
    
    .profile-card {
        padding: 25px 20px;
    }
    
    .widget {
        padding: 20px;
    }
    
    .display-name {
        font-size: 24px;
    }
    
    .particles-container {
        display: none;
    }
}

.main-site {
    animation: siteEnter 1s ease-out;
    /* solid black background */
    background: #000000;
    min-height: 100vh;
}

@keyframes siteEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Outer containers: fully transparent (0 opacity) - inner items keep their borders/details */
.widget,
.profile-card,
.gs-card,
.widgets-section {
    background: rgba(0,0,0,0) !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Keep inner items visible with their own backgrounds/borders */
.gs-item,
.social-link,
.spotify-widget,
.profile-header,
.links-grid a {
    /* preserve inherited text color so this selector is not empty for linters */
    color: inherit;
}

.notification.success {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.notification.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #22c55e;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}


.social-link.copying {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.05);
}

.gear-setup-section {
    margin-top: 28px;
    scroll-margin-top: 80px;
    padding: 0 40px 60px;
    display: flex;
    justify-content: center;
}

.gs-card {
    width: 100%;
    max-width: 1000px;
    background: rgba(20,20,20,0.55);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    overflow: hidden;
    backdrop-filter: blur(6px) saturate(1.02);
    -webkit-backdrop-filter: blur(6px) saturate(1.02);
    transition: opacity .25s ease, transform .25s ease, max-height .3s ease;
}

/* subtle full-screen overlay to darken animated background for contrast */
.site-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
    z-index: 2;
}

.gs-header { padding: 16px 18px; border-bottom: 1px solid var(--border-primary); }
.gs-title { font-size: 16px; letter-spacing: .06em; color: var(--text-primary); font-weight: 700; }

.gs-header { display: flex; align-items: center; gap: 12px; }
.gs-toggle { margin-left: auto; background: transparent; border: 1px solid var(--border-secondary); color: var(--text-secondary); padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: all .18s ease; display: inline-flex; align-items: center; justify-content: center; }
.gs-toggle i { font-size: 14px; }
.gs-toggle:hover { color: var(--text-primary); border-color: var(--border-hover); transform: translateY(-2px); }
.gs-toggle[aria-pressed="true"] { background: rgba(255,255,255,0.03); color: var(--spotify-green); border-color: rgba(29,185,84,0.12); }

/* Toggle button pressed micro animation */
.gs-toggle.pressed {
    transform: translateY(2px) scale(0.98);
    opacity: 0.95;
}

/* Title glow when switching */
.title-glow {
    box-shadow: 0 6px 28px rgba(29,185,84,0.08), 0 2px 8px rgba(255,255,255,0.02) inset;
    transition: box-shadow 300ms ease;
}

/* Grid fade transitions */
.gs-grid {
    transition: opacity 360ms ease, transform 360ms ease;
    opacity: 1;
}
.gs-grid.fade-out { opacity: 0; transform: translateY(6px); }
.gs-grid.fade-in { opacity: 1; transform: translateY(0); }

.gs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.gs-grid { min-height: 360px; align-content: start; }

/* Ensure the card is a positioning context for grid transitions */
.gs-card { position: relative; }
.gs-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-tertiary); border: 1px solid var(--border-primary); border-radius: 12px; text-decoration: none; color: var(--text-secondary); transition: all .2s ease; position: relative; }
.gs-item:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-2px); box-shadow: 0 10px 28px var(--shadow-dark); }
.gs-item.wide { grid-column: span 2; }
.gs-thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; padding: 0; overflow: hidden; }
.gs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-thumb-box { width: 44px; height: 44px; border-radius: 10px; background: #ffffff10; border: 1px solid var(--border-secondary); display: flex; align-items: center; justify-content: center; }
.gs-meta { display: flex; flex-direction: column; min-width: 0; }
.gs-cat { font-size: 11px; color: var(--text-muted); letter-spacing: .08em; }
.gs-name { font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-external { margin-left: auto; color: var(--text-dim); border: 1px solid var(--border-secondary); border-radius: 8px; padding: 6px; }
.gs-item:hover .gs-thumb { background: var(--bg-primary); border-color: var(--border-hover); color: var(--text-primary); }
.gs-item:hover .gs-thumb-box { background: #ffffff12; }

.gs-footer { padding: 8px 14px 16px; text-align: center; }
.gs-view-all { display: inline-block; color: var(--text-secondary); font-size: 13px; text-decoration: none; border: 1px solid var(--border-secondary); padding: 6px 10px; border-radius: 8px; background: var(--bg-secondary); transition: all .2s ease; }
.gs-view-all:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--bg-tertiary); }

@media (max-width: 768px) {
    .gs-card { width: 100%; }
    .gs-grid { grid-template-columns: 1fr; }
    .gs-item.wide { grid-column: auto; }
        .gear-setup-section { padding: 0 20px 40px; }
}

/* Subtle background effect particles */
.effect-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0; /* behind content */
    overflow: hidden;
}

.effect-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    filter: blur(1px);
    opacity: 0.9;
    transform: translate3d(0,0,0);
    will-change: transform, opacity;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0.9; }
    50% { transform: translateY(-20px) translateX(8px); opacity: 0.7; }
    100% { transform: translateY(0) translateX(-6px); opacity: 0.9; }
}

/* Network background canvas (nodes + connecting lines) */
.network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* behind snow (1) and content (3) */
}
