/* Dream-number pages reuse the dictionary presentation without changing its colors. */
.seo-dream-page .seo-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.seo-dream-page .seo-topic-grid a {
    position: relative;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 104px;
    padding: 15px 27px 15px 12px;
    border-color: var(--dictionary-border);
    border-radius: 12px;
    box-shadow: 0 2px 0 var(--dictionary-border);
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.seo-dream-page .seo-topic-grid strong {
    color: var(--text);
    font-size: .92rem;
}

.seo-dream-page .seo-topic-grid span[lang] {
    color: var(--dictionary-accent);
    font-size: .79rem;
}

.seo-dream-page .seo-topic-grid small {
    font-size: .71rem;
}

.seo-dream-page .seo-topic-grid .dream-topic-arrow {
    position: absolute;
    top: 15px;
    right: 11px;
    color: var(--dictionary-accent);
    font-size: .95rem;
    line-height: 1;
}

/* The shared SEO list styles target divs; retain the same grid as range cards. */
.seo-dream-page .dream-match-list .dictionary-entry {
    display: grid;
    align-items: center;
    gap: 10px;
}

.seo-dream-page .dream-match-list .dictionary-entry-meanings {
    gap: 5px;
}

.seo-dream-page .dream-match-list .dictionary-entry-meanings b {
    color: var(--dictionary-accent);
    font-size: .66rem;
    line-height: 1.7;
}

.seo-dream-page .dream-match-3d {
    grid-template-columns: 64px minmax(0, 1fr);
}

.seo-dream-page .dream-match-3d .dictionary-entry-number {
    gap: 5px;
}

.seo-dream-page .dream-3d-badge {
    padding: 1px 5px;
    border: 1px solid var(--dictionary-border);
    border-radius: 4px;
    color: var(--dictionary-accent);
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.5;
}

.seo-dream-page .dream-guided-link,
.seo-dream-page .dream-empty-state {
    margin-top: 24px;
    padding: 13px 14px;
    border: 1px solid var(--dictionary-border);
    border-radius: 12px;
    background: var(--surface-soft);
    font-size: .83rem;
    line-height: 1.8;
}

.seo-dream-page .dream-empty-state p {
    margin: 0;
}

.seo-dream-page .dream-guided-link a,
.seo-dream-page .dream-empty-state a {
    color: var(--dictionary-accent);
    font-weight: 700;
    text-underline-offset: 3px;
}

.seo-dream-page .seo-faq summary:focus-visible {
    outline: 2px solid var(--dictionary-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (hover: hover) {
    .seo-dream-page .seo-topic-grid a:hover {
        border-color: var(--gold);
        background: var(--dictionary-tint);
        box-shadow: 0 4px 12px rgba(128, 96, 17, .09);
        transform: translateY(-1px);
    }

    .seo-dream-page .dream-match-3d:hover {
        border-color: var(--dictionary-border);
        background: var(--surface);
        box-shadow: 0 3px 10px rgba(37, 27, 9, .035);
        transform: none;
    }
}

@media (max-width: 380px) {
    .seo-dream-page .seo-topic-grid {
        gap: 9px;
    }

    .seo-dream-page .seo-topic-grid a {
        min-height: 100px;
        padding: 12px 23px 12px 10px;
    }

    .seo-dream-page .seo-topic-grid strong {
        font-size: .84rem;
    }

    .seo-dream-page .seo-topic-grid .dream-topic-arrow {
        right: 8px;
    }

    .seo-dream-page .dream-match-3d {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .seo-dream-page .dream-match-list .dictionary-entry {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seo-dream-page .seo-topic-grid a {
        transition: none;
    }

    .seo-dream-page .seo-topic-grid a:hover {
        transform: none;
    }
}
