.quest-detail { width: min(900px, calc(100% - 32px)); max-height: min(820px, calc(100dvh - 40px)); border: 1px solid #8b6b28; padding: 0; color: #dce2de; background: #050d12; box-shadow: 0 40px 120px #000; }
.quest-detail::backdrop { background: rgba(0,4,7,.82); backdrop-filter: blur(7px); }
.quest-detail > header { position: sticky; z-index: 2; top: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 20px 64px 18px 24px; border-bottom: 1px solid #57451e; background: linear-gradient(120deg,#0c2029,#070c10); }
.quest-detail > header > span { grid-column: 1; color: #d8a936; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.quest-detail > header h2 { grid-column: 1; margin: 0; color: #ffebbb; font: 500 clamp(1.6rem,4vw,2.4rem) var(--font-display); }
.quest-detail > header button { position: absolute; top: 17px; right: 18px; width: 44px; height: 44px; border: 1px solid #6a5728; color: #f2ce79; background: #071016; font-size: 1.5rem; cursor: pointer; }
.quest-detail__body { display: grid; gap: 18px; padding: 24px; }
.quest-detail__facts { display: flex; flex-wrap: wrap; gap: 12px; }
.quest-detail__facts .quest-card__meta { padding: 7px 10px; border: 1px solid #294751; background: #07171e; }
.quest-detail__people { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.quest-detail__people section { display: grid; gap: 4px; padding: 15px; border-left: 3px solid #d5a537; background: #091218; }
.quest-detail__people span, .quest-detail__people small { color: #91a2a6; }
.quest-detail__narrative { display: grid; gap: 1px; }
.quest-detail__story, .quest-detail__section { padding: 18px; border: 1px solid #223840; background: rgba(7,16,21,.8); }
.quest-detail h3 { margin: 0 0 10px; color: #e8bd5c; font: 500 1.05rem var(--font-display); }
.quest-detail p { margin: 0; line-height: 1.65; }
.quest-detail__list { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.quest-detail__chain { display: flex; flex-wrap: wrap; gap: 8px; }
.quest-detail__chain button { min-height: 42px; border: 1px solid #55707a; padding: 0 13px; color: #bee9f1; background: #07161d; cursor: pointer; }
.quest-detail .quest-reward--item { text-decoration: none; }
.quest-detail .quest-reward__item-icon { width: 46px; height: 46px; border: 1px solid #765b22; }
@media (max-width: 600px) { .quest-detail { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; } .quest-detail__body { padding: 14px; } .quest-detail__people { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .quest-card { transition: none; } }
