:root {
    --primary: #0a0a0a;
    --secondary: #151515;
    --accent: #ff3e3e;
    --accent2: #3e9fff;
    --text: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --border: rgba(255,255,255,0.1);

    /* LOOM.ECHO specific variables to match loomecho.css */
    --loom-primary: #c5d6e8;
    --loom-secondary: #a4b7d9;
    --loom-accent: #8d9fc7;
    --loom-text: #526686;
    --loom-background: #f5f8fc;
    --loom-gradient-1: #e8edf7;
    --loom-gradient-2: #d5e0f2;
    --loom-critical: #e17979;

    /* MOONCUT specific variables */
    --dream-bg: #a7b5e9;
    --dream-text: #f0f2fa;
    --dream-dark: #6d7ab5;
    --dream-accent: #e8e8f0;

    /* GREENBOTTLE specific variables */
    --deep-charcoal: #1B1C1E;
    --absinthe-green: #B6FF9E;
    --glowing-teal: #5AF2D1;
    --pale-mint: #CFFFE3;

    /* OLDCLOCKS specific variables */
    --bg-color: #1a1a1a;
    --text-color: #d4d4d4;
    --accent-color: #c2a87d;
    --muted-color: #666666;

    /* GHOSTLINE specific variables */
    --ghost-dark: #000000;
    --ghost-green: #00FF9C; 
    --ghost-purple: #FF00FF;
    --ghost-blue: #00b4ff;

    /* REDLIGHTFEELINGS specific variables */
    --traffic-dark: #1a1a1a;
    --traffic-red: #e63946;
    --traffic-amber: #f9c846;
    --traffic-text: #f1f1f1;
    --traffic-muted: #888888;
    
    /* BUZZTRACE specific variables */
    --nature-bg: #fafaf8;
    --nature-primary: #E39827;
    --nature-secondary: #84A982;
    --nature-text: #333333;
    --nature-muted: #999999;
}

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

@keyframes floatingAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

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

body {
    background: var(--primary);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cursor trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,62,62,0.3);
    box-shadow: 0 0 15px rgba(255,62,62,0.6);
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: screen;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH5AoIBgsrsh5vcQAAAFVJREFUaN7t2MEJwCAQRNFvYhmWaRmWYRnprAQDucxJ5r3L/oVDYFNJkiRJ+oykATcw+2ROYGVPZH+8JWknmf2YE8jsieyP9zNIkiRJ0qfz6KP7Pj2qD1olDpsGHAAAAABJRU5ErkJggg==');
    opacity: 0.03;
    pointer-events: none;
    z-index: 10;
    animation: noiseAnimation 8s infinite linear;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--primary), transparent);
    z-index: 1;
}

.hero .glitch-text {
    position: relative;
    z-index: 2;
}

.hero .tagline,
.hero .subtitle {
    position: relative;
    z-index: 2;
}

.glitch-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 800;
    margin: 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--text);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-top: 1rem;
    color: var(--accent);
    font-style: italic;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.7;
    font-weight: 300;
}

/* Enhanced Hero Section with Floating Text */

/* Floating phrases animation */
.floating-phrases {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.phrase-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-phrase {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 4vw, 3rem);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    animation: floatAndFade 15s linear infinite;
}

.floating-phrase:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-phrase:nth-child(2) {
    top: 25%;
    left: 65%;
    animation-delay: 3s;
}

.floating-phrase:nth-child(3) {
    top: 45%;
    left: 25%;
    animation-delay: 6s;
}

.floating-phrase:nth-child(4) {
    top: 65%;
    left: 70%;
    animation-delay: 9s;
}

.floating-phrase:nth-child(5) {
    top: 80%;
    left: 15%;
    animation-delay: 12s;
}

.floating-phrase:nth-child(6) {
    top: 35%;
    left: 80%;
    animation-delay: 5s;
}

.floating-phrase:nth-child(7) {
    top: 75%;
    left: 45%;
    animation-delay: 8s;
}

.floating-phrase:nth-child(8) {
    top: 10%;
    left: 45%;
    animation-delay: 11s;
}

@keyframes floatAndFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    10% {
        opacity: 0.3;
        transform: translateY(0);
    }
    90% {
        opacity: 0.3;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Digital Ticker */
.digital-ticker {
    position: absolute;
    bottom: 120px;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 5;
}

.ticker-track {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    color: var(--accent);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.ticker-track span {
    margin-right: 50px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Network Status Indicator */
.network-status {
    position: absolute;
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Add Space Mono font for ticker text */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* Main layout */
.hub {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Intro section */
.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 6rem 0;
    align-items: center;
}

.intro-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--text), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-content p {
    font-size: 1.2rem;
    max-width: 90%;
    color: var(--text-secondary);
}

.intro-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-404 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10rem;
    font-weight: 700;
    opacity: 0.1;
    user-select: none;
    animation: floatingAnimation 6s ease-in-out infinite;
}

/* Worlds container */
.worlds-container {
    margin: 6rem 0;
    display: block !important;
    visibility: visible !important;
}

.worlds-container h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.world-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.world-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.world-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.world-thumb {
    height: 200px;
    background: linear-gradient(45deg, #111, #222);
    position: relative;
    overflow: hidden;
}

.world-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.vantablack-thumb {
    background: linear-gradient(45deg, #090909, #1a1a1a);
}

.chimeworm-thumb {
    background: linear-gradient(45deg, #8354e6, #4e91f5);
}

.wyrmwares-thumb {
    background: linear-gradient(45deg, #76520e, #c69320);
}

.loomecho-thumb {
    background: linear-gradient(135deg, var(--loom-gradient-1), var(--loom-gradient-2));
}

.mooncut-thumb {
    background: linear-gradient(45deg, #3d0a4f, #9b1c8a);
}

.greenbottle-thumb {
    background: linear-gradient(to bottom, #1B1C1E, #2A2C2E);
    position: relative;
    overflow: hidden;
}

.greenbottle-thumb::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 70px;
    background: rgba(90, 242, 209, 0.3);
    border-radius: 50% 50% 5% 5%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(5px);
    box-shadow: 0 0 15px rgba(90, 242, 209, 0.8);
}

.greenbottle-thumb::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #B6FF9E;
    bottom: 15px;
    right: 15px;
    box-shadow: 0 0 10px rgba(182, 255, 158, 0.7);
}

/* Add ghostline thumb styling */
.ghostline-thumb {
    background: linear-gradient(rgba(10, 10, 20, 0.7), rgba(10, 10, 20, 0.9)), 
                url('../images/ghostline-thumb.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.ghostline-thumb::before {
    content: '👻';
    position: absolute;
    font-size: 3rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    text-shadow: 0 0 15px rgba(169, 165, 217, 0.8);
}

.world-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
}

.world-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.8rem;
}

.world-card p {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

.aesthetic-tag {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.view-cta {
    color: var(--accent);
    font-weight: 600;
}

/* About section */
.about-section {
    margin: 8rem 0;
    padding: 3rem;
    background: var(--secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.about-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-section p {
    max-width: 800px;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.project-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

footer p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .intro-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .world-grid {
        grid-template-columns: 1fr;
    }
}

/* New Longform Worlds Layout */
.worlds-longform {
    margin-top: 4rem;
}

.world-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    min-height: 90vh;
    padding: 4rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.world-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    opacity: 0.7;
    z-index: -1;
}

.world-section[data-theme="corporate"] {
    background: linear-gradient(to right, rgba(25,25,25,0.8), rgba(30,30,30,0.8));
    border-left: 4px solid #2c2c2c;
}

.world-section[data-theme="calm"] {
    background: linear-gradient(to right, rgba(15,40,38,0.8), rgba(20,35,33,0.8));
    border-left: 4px solid #23967f;
}

.world-section[data-theme="retro"] {
    background: linear-gradient(135deg, var(--dream-bg) 0%, var(--dream-dark) 100%);
    border-left: 4px solid #9b1c8a;
}

.world-section[data-theme="magical"] {
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--glowing-teal) 100%);
    border-left: 4px solid #B6FF9E;
}

.world-section[data-theme="archive"] {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--accent-color) 100%);
    border-left: 4px solid #888;
}

.world-section[data-theme="paranormal"] {
    background: linear-gradient(135deg, var(--ghost-dark) 0%, var(--ghost-purple) 100%);
    border-left: 4px solid #a9a5d9;
}

.world-section[data-theme="traffic"] {
    background: linear-gradient(135deg, var(--traffic-dark) 0%, #2a2a2a 100%);
    border-left: 4px solid var(--traffic-red);
}

.world-section[data-theme="nature"] {
    background: linear-gradient(135deg, var(--nature-bg) 0%, #E5DECE 100%);
    border-left: 4px solid var(--nature-primary);
}

.world-section.alt {
    grid-template-areas: "info preview";
}

.world-section:not(.alt) {
    grid-template-areas: "preview info";
}

/* Replace iframe previews with screenshot images */
.world-preview {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Keep the 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background-position: center;
    background-size: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.world-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.world-preview:active {
    transform: scale(0.98);
}

[data-theme="corporate"] .world-preview {
    background-image: url('../images/screenshots/vantablack-screenshot.jpg');
}

[data-theme="calm"] .world-preview {
    background-image: url('../images/screenshots/loomecho-screenshot.jpg');
}

[data-theme="retro"] .world-preview {
    background-image: url('../images/screenshots/mooncut-screenshot.jpg');
}

[data-theme="magical"] .world-preview {
    background-image: url('../images/screenshots/greenbottle-screenshot.jpg');
}

[data-theme="archive"] .world-preview {
    background-image: url('../images/screenshots/oldclocks-screenshot.jpg');
}

[data-theme="paranormal"] .world-preview {
    background-image: url('../images/screenshots/ghostline-screenshot.jpg');
}

[data-theme="traffic"] .world-preview {
    background-image: url('../images/screenshots/redlightfeelings-screenshot.jpg');
}

[data-theme="nature"] .world-preview {
    background-image: url('../images/screenshots/buzztrace-screenshot.jpg');
}

[data-theme="nature"] .world-info h3,
[data-theme="nature"] .world-info p,
[data-theme="nature"] .world-description p {
    color: var(--nature-text);
}

[data-theme="nature"] .world-tagline {
    color: var(--nature-primary);
}

.world-info {
    grid-area: info;
    padding: 2rem;
}

.world-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.world-tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 2rem;
}

.world-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.world-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.world-tags .tag {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.world-tags .tag:hover {
    background: rgba(255,255,255,0.2);
}

.world-enter {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.world-enter:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,62,62,0.3);
}

@keyframes scanline {
    0% { transform: translateY(-200px); }
    100% { transform: translateY(200px); }
}

/* Media queries for responsive design */
@media (max-width: 1200px) {
    .world-section {
        padding: 2rem;
    }
    
    .world-info h3 {
        font-size: 2.5rem;
    }
    
    .world-tagline {
        font-size: 1.3rem;
    }
}

@media (max-width: 900px) {
    .world-section, .world-section.alt {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "preview"
            "info";
        min-height: auto;
    }
    
    .world-preview {
        height: 50vh;
    }
}

/* Brand Palette */
.brand-palette {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    position: relative;
}

.palette-bg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

[data-theme="corporate"] .palette-bg {
    background: linear-gradient(135deg, #080808 0%, #222222 100%);
}

[data-theme="calm"] .palette-bg {
    background: linear-gradient(135deg, var(--loom-background) 0%, var(--loom-secondary) 100%);
}

[data-theme="retro"] .palette-bg {
    background: linear-gradient(135deg, var(--dream-bg) 0%, var(--dream-dark) 100%);
}

[data-theme="magical"] .palette-bg {
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--glowing-teal) 100%);
}

[data-theme="archive"] .palette-bg {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--accent-color) 100%);
}

[data-theme="paranormal"] .palette-bg {
    background: linear-gradient(135deg, var(--ghost-dark) 0%, var(--ghost-purple) 100%);
}

.brand-logo {
    width: 60%;
    height: auto;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
}

/* Remove the forced white filter from earlier to let logos show in their original colors */
[data-theme="corporate"] .brand-logo {
    mix-blend-mode: difference; /* This will handle dark/light contrast naturally */
}

[data-theme="calm"] .brand-logo {
    filter: drop-shadow(0 0 8px rgba(141, 159, 199, 0.3));
}

[data-theme="retro"] .brand-logo {
    filter: brightness(0) invert(1); /* Mooncut stays light */
}

/* Prevent Mooncut logo from changing on hover */
[data-theme="retro"] .brand-palette:hover .brand-logo {
    filter: brightness(0) invert(1) !important; /* Force white even on hover */
    transform: scale(1.05);
}

[data-theme="magical"] .brand-logo {
    filter: drop-shadow(0 0 8px rgba(90, 242, 209, 0.4)); /* Greenbottle gets glow */
}

[data-theme="archive"] .brand-logo {
    filter: sepia(0.3) brightness(0.9); /* Oldclocks gets vintage treatment */
}

[data-theme="paranormal"] .brand-logo {
    filter: brightness(1.2); /* Ghostline gets slight glow */
}

.palette-colors {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.color-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="retro"] .palette-colors .color-dot:nth-child(1) { background: var(--dream-bg); }
[data-theme="retro"] .palette-colors .color-dot:nth-child(2) { background: var(--dream-dark); }
[data-theme="retro"] .palette-colors .color-dot:nth-child(3) { background: var(--dream-accent); }

[data-theme="magical"] .palette-colors .color-dot:nth-child(1) { background: var(--deep-charcoal); }
[data-theme="magical"] .palette-colors .color-dot:nth-child(2) { background: var(--glowing-teal); }
[data-theme="magical"] .palette-colors .color-dot:nth-child(3) { background: var(--absinthe-green); }

[data-theme="archive"] .palette-colors .color-dot:nth-child(1) { background: var(--bg-color); }
[data-theme="archive"] .palette-colors .color-dot:nth-child(2) { background: var(--accent-color); }
[data-theme="archive"] .palette-colors .color-dot:nth-child(3) { background: var(--text-color); }

[data-theme="paranormal"] .palette-colors .color-dot:nth-child(1) { background: var(--ghost-dark); }
[data-theme="paranormal"] .palette-colors .color-dot:nth-child(2) { background: var(--ghost-green); }
[data-theme="paranormal"] .palette-colors .color-dot:nth-child(3) { background: var(--ghost-purple); }

.brand-palette:hover .brand-logo {
    filter: brightness(1) contrast(1);
    transform: scale(1.05);
}

/* Fix for hidden links - override any display:none properties */
.nav-links, 
.footer-links, 
.legal-links, 
.world-links,
.nav-link,
.footer-link,
.world-card,
.world-grid,
.world-enter {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific fix for grid layout elements */
.world-grid {
    display: grid !important;
}

/* Ensure buttons and links have proper cursor */
a, button, .world-card, .world-enter {
    cursor: pointer !important;
}

/* Fix for potentially hidden navigation links */
.nav-links a, 
.footer-links a, 
.legal-links a,
.top-nav a {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--text) !important; /* Ensure text is visible */
}

/* Fix for invisible text in links */
a.world-enter {
    color: var(--accent) !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* Fix for mobile navigation */
@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
    }
}
