.rd { --rd-c: var(--p, var(--accent, #e11d48)); --rd-bg: var(--surface, #fff); --rd-tx: var(--text, var(--ink, #1a1a1a)); position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.rd-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 16, .55); backdrop-filter: blur(4px); animation: rdFade .3s ease both; }
.rd-panel { position: relative; width: min(900px, 100%); height: min(94vh, 100%); background: var(--rd-bg); color: var(--rd-tx); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px -20px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; animation: rdUp .5s cubic-bezier(.2,.8,.2,1) both; }
.rd.closing .rd-panel { animation: rdDown .35s ease both; }
.rd.closing .rd-backdrop { animation: rdFade .35s ease reverse both; }
.rd-bar { position: relative; flex: none; display: flex; justify-content: center; align-items: center; height: 54px; border-bottom: 1px solid color-mix(in srgb, var(--rd-tx) 10%, transparent); }
.rd-bar::before { content: ""; width: 46px; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--rd-tx) 20%, transparent); }
.rd-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--rd-c); transform-origin: 0 50%; transform: scaleX(var(--rp, 0)); }
.rd-close { position: absolute; right: 14px; top: 9px; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--rd-tx); background: color-mix(in srgb, var(--rd-tx) 8%, transparent); transition: transform .2s, background .2s; }
.rd-close:hover { transform: rotate(90deg); background: var(--rd-c); color: #fff; }
.rd-close svg { width: 18px; height: 18px; }
.rd-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.rd-body { max-width: 740px; margin: 0 auto; padding: 26px 24px 70px; }
.rd-img { margin: 0 0 26px; }
.rd-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 20px; display: block; }
.rd-head { text-align: center; margin-bottom: 30px; }
.rd-chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; color: #fff; background: var(--rd-c); text-decoration: none; margin-bottom: 14px; }
.rd-title { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
.rd-meta { font-size: 13.5px; opacity: .7; margin-top: 12px; }
.rd-prose { font-size: 17px; line-height: 1.85; }
.rd-prose > * + * { margin-top: 1.1em; }
.rd-prose h2 { font-size: 25px; line-height: 1.3; margin-top: 1.8em; }
.rd-prose h3 { font-size: 20px; line-height: 1.35; margin-top: 1.4em; }
.rd-prose a { color: var(--rd-c); text-underline-offset: 3px; }
.rd-prose ul, .rd-prose ol { padding-left: 1.3em; }
.rd-prose li + li { margin-top: .4em; }
.rd-prose li::marker { color: var(--rd-c); }
.rd-prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-radius: 16px; background: color-mix(in srgb, var(--rd-c) 8%, transparent); border-left: 4px solid var(--rd-c); }
.rd-prose > * { animation: rdIn .6s cubic-bezier(.2,.8,.2,1) both; }
.rd-prose > *:nth-child(-n+6) { animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
.rd-lock { overflow: hidden; }
@keyframes rdUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rdDown { from { transform: none; } to { transform: translateY(100%); } }
@keyframes rdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rdIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) { .rd-panel { height: 100%; border-radius: 0; } .rd-body { padding: 20px 18px 60px; } .rd-img img { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { .rd-panel, .rd-backdrop, .rd-prose > * { animation: none !important; } }
