.eridiumx-panel {
    --erx-ink: #f3eee9;
    --erx-muted: #c6bdb8;
    --erx-rule: #3c3439;
    --erx-panel: #1d1a20;
    --erx-pane: #211e26;
    --erx-keys: #19171d;
    --erx-accent: #edb688;
    --erx-focus: #eac09a;
    --erx-shadow: #100d1280;
    --erx-glow: #56372a83;
    --erx-padding: clamp(1.15rem, 4.5vw, 3.5rem);
    color: var(--erx-ink);
    background: var(--erx-panel);
    border: 1px solid var(--erx-rule);
    border-radius: 1.25rem;
    margin-block: clamp(2.1rem, 6vw, 4.5rem) 0;
    scroll-margin-top: .5rem;
}

:root[data-bs-theme="light"] .eridiumx-panel {
    --erx-ink: #282129;
    --erx-muted: #5a4c53;
    --erx-rule: #d6c6c0;
    --erx-panel: #f9f3ee;
    --erx-pane: #fffbf7;
    --erx-keys: #f3eae3;
    --erx-accent: #875033;
    --erx-focus: #8b4e2d;
    --erx-shadow: #54352223;
    --erx-glow: #d69c7460;
}

.eridiumx-intro {
    padding: var(--erx-padding);
    border-radius: inherit;
    background: radial-gradient(ellipse at 87% 0%, var(--erx-glow), transparent 68%);
}

.eridiumx-platforms {
    color: var(--erx-muted);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .025em;
}

.eridiumx-title {
    font-size: clamp(3rem, 7.8vw, 6rem);
    line-height: .96;
    font-weight: 760;
    letter-spacing: -.075em;
}

.eridiumx-title span { color: var(--erx-accent); }

.eridiumx-intro-text {
    max-width: 43ch;
    color: var(--erx-muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
}

.eridiumx-panel .btn {
    --bs-btn-padding-x: .95rem;
    --bs-btn-padding-y: .6rem;
    --bs-btn-font-weight: 650;
    --bs-btn-border-radius: .45rem;
    --bs-btn-active-border-color: var(--erx-accent);
    --bs-btn-hover-border-color: var(--erx-accent);
}

.eridiumx-download {
    --bs-btn-color: #231710;
    --bs-btn-bg: #edb688;
    --bs-btn-border-color: #edb688;
    --bs-btn-hover-color: #231710;
    --bs-btn-hover-bg: #f7c99f;
    --bs-btn-active-color: #231710;
    --bs-btn-active-bg: #e7a977;
}

.eridiumx-docs {
    --bs-btn-color: var(--erx-ink);
    --bs-btn-border-color: var(--erx-rule);
    --bs-btn-hover-color: var(--erx-accent);
    --bs-btn-hover-bg: var(--erx-keys);
    --bs-btn-active-color: var(--erx-ink);
    --bs-btn-active-bg: var(--erx-keys);
}

.eridiumx-panel .btn:focus-visible {
    outline: 2px solid var(--erx-focus);
    outline-offset: 4px;
    box-shadow: none;
}

.eridiumx-release {
    color: var(--erx-muted);
    font-size: .875rem;
    line-height: 1.5;
}

.eridiumx-release strong {
    color: var(--erx-ink);
    font-variant-numeric: tabular-nums;
    padding-inline-end: .55rem;
    border-inline-end: 1px solid var(--erx-rule);
}

.eridiumx-shortcuts {
    padding: clamp(1rem, 2.8vw, 1.6rem);
    border: 1px solid var(--erx-rule);
    border-radius: .75rem;
    background: var(--erx-pane);
    box-shadow: 0 .75rem 2.3rem var(--erx-shadow);
}

.eridiumx-shortcuts h3,
.eridiumx-function h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: -.02em;
    font-weight: 680;
}

.eridiumx-shortcuts dl > div {
    padding-block: .8rem;
    border-block-end: 1px solid var(--erx-rule);
    font-size: .9375rem;
}

.eridiumx-shortcuts dt { font-weight: 550; }

.eridiumx-shortcuts kbd {
    background: var(--erx-keys);
    color: var(--erx-ink);
    border: 1px solid var(--erx-rule);
    border-block-end-width: 2px;
    padding: .16rem .36rem;
    border-radius: .28rem;
    font-size: .875rem;
}

.eridiumx-shortcuts p {
    margin-top: 1rem;
    color: var(--erx-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.eridiumx-function {
    padding: clamp(1.2rem, 2.8vw, 2rem) var(--erx-padding);
}

.eridiumx-function p { color: var(--erx-muted); line-height: 1.62; }

.eridiumx-release-foot {
    padding: 1.2rem var(--erx-padding);
    color: var(--erx-muted);
    font-size: .875rem;
}

.eridiumx-release-foot p:first-child { color: var(--erx-ink); font-weight: 600; }
.eridiumx-release-foot p { max-width: 69ch; line-height: 1.55; }

@media (min-width: 768px) {
    .eridiumx-function:nth-child(even) { border-inline-start: 1px solid var(--erx-rule); }
}

@media (prefers-reduced-motion: no-preference) {
    .eridiumx-arriving {
        --erx-from-y: 14px;
        animation: eridiumx-enter .54s cubic-bezier(.2,.72,.32,1) backwards;
    }

    .eridiumx-arriving[data-eridiumx-motion="slide"] {
        --erx-from-x: -12px;
        --erx-from-y: 6px;
    }

    .eridiumx-arriving[data-eridiumx-motion="scale"] {
        --erx-from-scale: .98;
        animation-delay: .06s;
    }

    .eridiumx-shortcuts {
        transition: transform .25s ease, box-shadow .25s ease;
    }

    @keyframes eridiumx-enter {
        from { opacity: .38; transform: translate(var(--erx-from-x, 0px), var(--erx-from-y)) scale(var(--erx-from-scale, 1)); }
        to { opacity: 1; transform: none; }
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .eridiumx-shortcuts:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 1rem 2.8rem var(--erx-shadow), 0 0 1.9rem var(--erx-glow);
    }
}

@media (prefers-reduced-motion: reduce) {
    :root:has(.eridiumx-panel) { scroll-behavior: auto; }
}
