.td-discovery {
    width:min(1240px,calc(100% - clamp(26px,6vw,80px)));
    margin-inline:auto;
    padding-block:clamp(18px,3.2vw,46px);
    color:var(--ink);
    min-width:0;
}
.td-discovery :focus-visible {outline:2px solid var(--gold);outline-offset:4px}
.td-discovery :is(h1,h2,h3,p) {margin:0}
.td-discovery-head {margin-bottom:clamp(15px,2.4vw,28px)}
.td-discovery .td-discovery-head h1 {font-size:clamp(2rem,5vw,4.7rem);line-height:1.04;margin:0 0 .29em}
.td-discovery .td-discovery-head p {max-width:64ch;line-height:1.43}
.td-discovery :is(.td-explore-doors,.td-editorial-grid,.td-rank-grid) {margin:0;padding:0;list-style:none;display:grid;gap:12px}
.td-explore-doors {grid-template-columns:repeat(2,minmax(0,1fr))}
.td-door,.td-creator-door,.td-editorial-card,.td-rank-profile {
    color:var(--ink);text-decoration:none;min-width:0;display:block;position:relative;border:1px solid var(--line);border-radius:14px;background:#161c27;
}
.td-discovery :is(.td-door,.td-creator-door,.td-editorial-card,.td-rank-profile):hover {border-color:var(--gold)}
.td-door {isolation:isolate;overflow:hidden;min-height:clamp(108px,15vw,205px);height:100%;display:grid;align-content:end;padding:clamp(12px,2vw,24px);background:var(--door,#23293b)}
.td-door-cosmos {--door:#202349}
.td-door-history {--door:#50372b}
.td-door-mystery {--door:#342831}
.td-door-guides {--door:#1e3a40}
.td-door-art {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}
.td-door::after {
    position:absolute;inset:0;content:"";z-index:-1;
    background:linear-gradient(90deg,#10121b 0%,rgb(14 17 25 / 83%) 47%,rgb(11 14 22 / 28%) 100%),
               linear-gradient(0deg,rgb(11 14 22 / 80%),transparent 80%);
}
.td-door-cover {position:absolute;right:7%;top:9%;bottom:9%;width:auto;height:82%;object-fit:contain;z-index:-2;border-radius:6px;box-shadow:0 5px 22px #10121b}
.td-door-copy {max-width:76%;min-width:0}
.td-explore .td-door h2 {font-size:clamp(1.3rem,3.15vw,2.7rem);line-height:1.04}
.td-door p,.td-creator-door p {color:#e4ddd7;font-size:clamp(.78rem,1.12vw,.98rem);line-height:1.32;margin-top:5px}
.td-door-copy p {max-width:38ch}
.td-discovery-arrow {display:grid;place-items:center;color:var(--gold);border:1px solid var(--line);width:34px;height:34px;border-radius:50%;font-weight:800;background:#141820}
.td-door .td-discovery-arrow,.td-editorial-card .td-discovery-arrow {position:absolute;right:12px;bottom:12px}
.td-creator-door {display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:12px;padding:clamp(12px,2vw,20px);background:linear-gradient(100deg,#211c18,#131925)}
.td-creator-door .td-discovery-arrow {flex:none}
.td-explore .td-creator-door h2 {font-size:clamp(1.2rem,2.5vw,2rem)}
.td-explore-selection {border-top:1px solid var(--line);padding-top:clamp(18px,3vw,38px);margin-top:clamp(18px,3vw,38px)}
.td-explore-selection h2,.td-editorial-routes h2 {font-size:clamp(1.55rem,3.2vw,2.9rem);margin-bottom:11px}
.td-explore-selection .sept-book-grid {margin-top:12px}
.td-explore-selection .sept-book img {aspect-ratio:3/4;object-fit:contain}
.td-editorial-routes {padding-bottom:clamp(16px,2.5vw,28px);border-bottom:1px solid var(--line)}
.td-editorial-grid,.td-rank-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.td-guide-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.td-editorial-card {overflow:hidden;height:100%;background:#151c28}
.sept-theme-cosmos .td-editorial-card {background:#1d1a34}
.sept-theme-history .td-editorial-card {background:#2b211e}
.sept-theme-mystery .td-editorial-card {background:#251c26}
.sept-theme-guides .td-editorial-card {background:#182a30}
.td-editorial-card picture {display:block;background:#10141e}
.td-editorial-card img {display:block;width:100%;height:auto;aspect-ratio:2.45;object-fit:contain}
.td-editorial-copy {padding:12px 48px 12px 13px}
.td-editorial-copy h3 {font-size:clamp(1.12rem,1.9vw,1.6rem);line-height:1.08;overflow-wrap:anywhere}
.td-editorial-copy p {margin-top:.27em;font-size:.81rem;line-height:1.28;overflow-wrap:anywhere}
.td-guide-grid .td-editorial-card {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
.td-guide-grid .td-editorial-card img {width:clamp(60px,12vw,100px);aspect-ratio:3/4}
.td-creator-ranking {min-height:50vh}
.td-rank-filters {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.td-rank-filters a {border:1px solid var(--line);border-radius:999px;min-height:40px;display:inline-flex;align-items:center;padding:4px 14px;text-decoration:none;font-size:.86rem;font-weight:750;background:#161d28}
.td-rank-filters a:hover {border-color:var(--gold)}
.td-rank-filters a[aria-current] {background:var(--gold);color:#19150d;border-color:var(--gold)}
.td-rank-profile {overflow:hidden;height:100%}
.td-rank-profile-art {position:relative;height:clamp(70px,11vw,135px);background:linear-gradient(130deg,#3a2c21,#202832 68%)}
.td-rank-profile-art img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.td-rank-position {position:absolute;top:10px;left:10px;color:#f9e3b1;background:#121721;border:1px solid #9d814c;padding:3px 8px;border-radius:7px;font-weight:750;font-size:.8rem}
.td-rank-profile-body {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px}
.td-rank-avatar {position:relative;overflow:hidden;border-radius:50%;display:grid;place-items:center;width:clamp(33px,4vw,48px);aspect-ratio:1;background:#3e3326;color:#f4d484;font-weight:800}
.td-rank-avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.td-rank-identity {display:grid;gap:3px;overflow-wrap:anywhere;line-height:1.1}
.td-rank-identity small,.td-rank-score small {color:var(--muted)}
.td-rank-score {white-space:nowrap;color:var(--gold);font-variant-numeric:tabular-nums;font-size:.95rem}
.td-rank-empty {padding:18px;border:1px dashed var(--line);border-radius:12px}

@media(max-width:960px) {
    .td-discovery + .sept-footer {grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
    .td-discovery + .sept-footer .sept-footer-auth {grid-column:1/-1;flex-wrap:wrap}
    .td-rank-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px) {
    .td-discovery + .sept-footer,.td-editorial-grid,.td-guide-grid,.td-explore-doors,.td-rank-grid {grid-template-columns:minmax(0,1fr)}
    .td-explore .td-door {min-height:110px}
    .td-door-copy {max-width:83%}
    .td-editorial-grid:not(.td-guide-grid) .td-editorial-card {display:grid;grid-template-columns:34% minmax(0,1fr);align-items:center}
    .td-editorial-grid:not(.td-guide-grid) .td-editorial-card img {aspect-ratio:1.35;object-fit:contain}
}
@media(prefers-reduced-motion:reduce) {
    .td-discovery * {transition:none!important}
}
