/* Extracted from snar.html inline <style> block. */
/* Modern Dream Lexicon Custom Styles */
        .dream-hero {
            background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.15), transparent 60%),
                radial-gradient(circle at bottom left, rgba(75, 0, 130, 0.2), transparent 60%);
            padding-top: 140px;
            /* offset for header */
            padding-bottom: var(--space-xl);
            position: relative;
        }

        .dream-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            z-index: 0;
            opacity: 0.5;
        }

        .dream-container {
            position: relative;
            z-index: 1;
        }

        /* Search & Alphabet section */
        .search-section {
            background: rgba(15, 10, 30, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            padding: var(--space-xl);
            margin-bottom: var(--space-2xl);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .search-input-wrapper {
            position: relative;
            margin-bottom: var(--space-lg);
        }

        .search-icon {
            position: absolute;
            left: var(--space-md);
            top: 50%;
            transform: translateY(-50%);
            color: var(--color-silver-mist);
            font-size: 1.2rem;
        }

        .dream-search-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--color-mystic-gold);
            border-radius: 30px;
            padding: var(--space-md) var(--space-lg) var(--space-md) 3rem;
            color: #fff;
            font-size: 1.1rem;
            transition: all var(--transition-base);
        }

        .dream-search-input:focus {
            outline: none;
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
            background: rgba(0, 0, 0, 0.5);
        }

        .alphabet-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-bottom: var(--space-lg);
        }

        .alphabet-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--color-silver-mist);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-fast);
            font-family: var(--font-heading);
            font-size: 0.9rem;
        }

        .alphabet-btn:hover,
        .alphabet-btn.active {
            background: var(--color-mystic-gold);
            color: #000;
            border-color: var(--color-mystic-gold);
            transform: translateY(-2px);
        }

        /* Dictionary Results Grid */
        .dict-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--space-md);
        }

        @media (min-width: 768px) {
            .dict-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .dict-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: var(--space-lg);
            }
        }

        .dict-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: var(--radius-md);
            padding: var(--space-md);
            transition: all var(--transition-base);
            height: 100%;
        }

        .dict-card:hover {
            border-color: rgba(212, 175, 55, 0.3);
            background: rgba(255, 255, 255, 0.05);
            transform: translateY(-2px);
        }

        .dict-keyword {
            font-family: var(--font-heading);
            color: var(--color-mystic-gold);
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            padding-bottom: 0.5rem;
        }

        .dict-desc {
            font-size: 0.9rem;
            color: var(--color-silver-mist);
            line-height: 1.6;
            margin: 0;
        }

        .no-results {
            text-align: center;
            color: var(--color-silver-mist);
            padding: var(--space-xl);
            font-style: italic;
            grid-column: 1 / -1;
        }

        .loading-animation {
            display: none;
            text-align: center;
            margin: var(--space-lg) 0;
        }

        .moon-loader {
            font-size: 3rem;
            display: inline-block;
            animation: orbBounce 2s ease-in-out infinite;
            filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
        }

        /* Popular Dreams Quick Grid */
        .popular-dreams-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: var(--space-xl) 0;
        }

        @media (min-width: 640px) {
            .popular-dreams-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .popular-dreams-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .popular-card {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: var(--space-md);
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .popular-card:hover {
            background: rgba(212, 175, 55, 0.1);
            border-color: rgba(212, 175, 55, 0.4);
            transform: translateY(-3px);
        }

        .popular-card-emoji {
            font-size: 2rem;
            display: block;
            margin-bottom: 8px;
        }

        .popular-card-label {
            color: var(--color-starlight);
            font-size: 0.85rem;
            line-height: 1.3;
        }

        /* FAQ Section */
        .faq-section {
            margin-top: var(--space-3xl);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: var(--space-2xl);
        }

        .faq-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            overflow: hidden;
        }

        .faq-question {
            width: 100%;
            background: none;
            border: none;
            color: var(--color-starlight);
            font-family: var(--font-heading);
            font-size: 1.05rem;
            text-align: left;
            padding: var(--space-md) 0;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

        .faq-question:hover {
            color: var(--color-mystic-gold);
        }

        .faq-icon {
            font-size: 1.2rem;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .faq-item.open .faq-icon {
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.3s ease;
            color: var(--color-silver-mist);
            font-size: 0.95rem;
            line-height: 1.8;
        }

        .faq-item.open .faq-answer {
            max-height: 400px;
            padding-bottom: var(--space-md);
        }

        /* Cross-links section */
        .crosslinks-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space-md);
            margin-top: var(--space-lg);
        }

        @media (min-width: 768px) {
            .crosslinks-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .crosslink-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: var(--space-md);
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            text-decoration: none;
            color: var(--color-silver-mist);
            font-size: 0.9rem;
            text-align: center;
            transition: all 0.2s ease;
        }

        .crosslink-card:hover {
            background: rgba(157, 78, 221, 0.1);
            border-color: rgba(157, 78, 221, 0.3);
            color: var(--color-starlight);
            transform: translateY(-2px);
        }

        .crosslink-card .emoji {
            font-size: 1.8rem;
        }

        /* Sen Dne (Dream of the Day) widget */
        .dream-of-day {
            background: linear-gradient(135deg, rgba(138, 43, 226, 0.12) 0%, rgba(75, 0, 130, 0.2) 100%);
            border: 1px solid rgba(212, 175, 55, 0.25);
            border-radius: var(--radius-lg);
            padding: var(--space-lg) var(--space-xl);
            margin-bottom: var(--space-xl);
            display: flex;
            align-items: center;
            gap: var(--space-lg);
            position: relative;
            overflow: hidden;
        }

        .dream-of-day::before {
            content: '';
            position: absolute;
            top: -30px;
            right: -30px;
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
            border-radius: 50%;
        }

        .dod-emoji {
            font-size: 3.5rem;
            flex-shrink: 0;
            filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
            animation: float 4s ease-in-out infinite;
        }

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

        .dod-content {
            flex: 1;
        }

        .dod-label {
            font-size: 0.75rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--color-mystic-gold);
            opacity: 0.8;
            margin-bottom: 4px;
        }

        .dod-keyword {
            font-family: var(--font-heading);
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 6px;
        }

        .dod-desc {
            font-size: 0.9rem;
            color: var(--color-silver-mist);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Stats bar */
        .stats-bar {
            display: flex;
            justify-content: center;
            gap: var(--space-2xl);
            margin: var(--space-xl) 0 var(--space-lg);
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-family: var(--font-heading);
            font-size: 2rem;
            color: var(--color-mystic-gold);
            display: block;
            line-height: 1;
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--color-silver-mist);
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        /* Random dream button */
        .btn-random {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: var(--color-silver-mist);
            border-radius: 30px;
            padding: 8px 20px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn-random:hover {
            border-color: rgba(212, 175, 55, 0.4);
            color: var(--color-mystic-gold);
            background: rgba(212, 175, 55, 0.05);
        }

        /* Share button after result */
        .share-bar {
            display: none;
            margin-top: var(--space-md);
            gap: var(--space-sm);
            flex-wrap: wrap;
        }

        .share-bar.visible {
            display: flex;
        }

        .btn-share {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--color-silver-mist);
            border-radius: 20px;
            padding: 6px 14px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-share:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

/* Migrated from snar.html static style attributes. */
html body .mh-inline-937dd12a1d { max-width: 650px; }
html body .mh-inline-7eaa5de39e { animation-delay: 0.15s; }
html body .mh-inline-50c5890429 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 0.5rem; }
html body .mh-inline-ee869c43d5 { color: var(--color-silver-mist); margin-bottom: 1.5rem; font-size: 0.9rem; }
html body .mh-inline-116ccf6a1d { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 1rem; }
html body .mh-inline-ff70f9fca6 { animation-delay: 0.4s; }
html body .mh-inline-35ffd4b130 { color: var(--color-silver-mist); margin-bottom: 2rem; font-size: 0.9rem; }
html body .mh-inline-4dc17d5743 { margin-top: var(--space-3xl); border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-2xl); }
html body .mh-inline-d43c5e8766 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 0.5rem; }

/* Migrated from snar.html remaining static style attributes. */
html body .mh-inline-20b02501bd { margin: var(--space-2xl) 0; }
html body .mh-inline-b40d50db1e { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem; }
html body .mh-inline-a65d8d0b94 { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2rem 0; }
html body .mh-inline-992a972ff3 { max-width: 800px; margin: 0 auto; }

.alphabet-btn--all {
    width: auto;
    padding: 0 10px;
}

.load-more-wrapper {
    grid-column: 1 / -1;
    margin-top: 2rem;
    text-align: center;
}

.load-more-button {
    padding: 12px 30px;
}
