/* The desktop navigation stays within reach on long archive and forum pages. */
:root { --studio-lilac: #c8b1ff; --rail: 192px; }
.primary .icon { width: 19px; height: 19px; }
@media (min-width: 1060px) {
  body { padding-left: var(--rail); }
  .top { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 12; border: 0; border-right: 1px solid #383041; background: #141119; }
  .top .top-inner { height: 100%; width: 100%; padding: 30px 14px 22px; display: flex; flex-direction: column; align-items: stretch; gap: 42px; }
  .top .wordmark { justify-content: center; font-size: 20px; }
  .top .primary { display: grid; align-content: start; gap: 5px; }
  .top .primary a { display: flex; gap: 13px; align-items: center; justify-content: flex-start; padding: 12px 15px; border-radius: 9px; }
  .top .primary a:after { display: none; }
  .top .primary a:hover { background: #292230; }
  .top .primary a[aria-current] { background: var(--studio-lilac); color: #21182e; }
  .top .actions { margin: auto 0 0; gap: 5px; padding-top: 18px; border-top: 1px solid #383041; }
  .top .actions .account { flex: 1; padding-inline: 5px; }
  .top #menu { position: absolute; left: 100%; bottom: 12px; top: auto; width: min(740px,75vw); border: 1px solid #51415d; background: #19141f; box-shadow: 0 10px 45px #0008; }
  .top .menu-grid { width: 92%; }
}
@media (max-width: 1059px) { .primary .icon { display: none; } }
.home .hero { border: 0; border-radius: 22px; align-items: flex-end; }
.home .hero-copy { padding-bottom: clamp(28px,4vw,64px); }
.home .hero-caption { top: 18px; right: 18px; bottom: auto; border-radius: 20px; }
.home .signal-bar { background: transparent; border: 0; border-bottom: 1px solid #413849; padding-inline: 4px; }
.home .section { margin-top: clamp(34px,4vw,66px); }
.home .section-heading { border: 0; padding-bottom: 0; }
.home .hero-actions .btn, .text-link { border-radius: 30px; }
.media-card { position: relative; overflow: hidden; }
.media-grid .media-card > a { position: relative; display: block; isolation: isolate; background: #211a29; }
.media-grid .media-card h3 { position: absolute; inset: auto 0 0; margin: 0; padding: 48px 16px 13px; color: white; background: linear-gradient(transparent,#0e0b15f2); pointer-events: none; }
.media-grid .media-card .play-icon { left: 12px; top: 12px; bottom: auto; border-radius: 50%; }
.media-grid .media-card .thumb small { top: 12px; bottom: auto; }
.media-grid .media-card > p { margin: 10px 16px; }
@media (min-width: 701px) {
  .home .media-grid { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 12px; align-items: stretch; }
  .home .media-grid .media-card { grid-column: 2; }
  .home .media-grid .media-card:first-child { grid-column: 1; grid-row: span 2; display: flex; flex-direction: column; }
  .home .media-grid .media-card:first-child > a { flex: 1; min-height: 225px; }
  .home .media-grid .media-card:first-child .thumb { position: absolute; inset: 0; height: 100%; }
  .home .media-card:not(:first-child) .thumb { aspect-ratio: 3.1; }
}
body .archive-intro { position: relative; isolation: isolate; overflow: hidden; background: #32253f !important; padding: clamp(22px,4vw,56px); border-radius: 18px; }
.archive-still { position: absolute; inset: 0 0 0 auto; width: 66%; height: 100%; object-fit: cover; z-index: -1; opacity: .82; mask-image: linear-gradient(90deg,transparent,#000 70%); }
.archive-intro .archive-index { color: white; background: #16101edb; padding: 10px 14px; border-radius: 8px; }
body[data-page="/community"] .member-head { isolation: isolate; overflow: hidden; position: relative; padding: clamp(26px,5vw,70px); border-radius: 20px; background: #d0b9ff; color: #21132e; }
body[data-page="/community"] .member-head h1 { color: inherit; max-width: 76%; }
body[data-page="/community"] .member-head p { color: #3d2d50; max-width: 76%; }
.forum-art { position: absolute; right: 3%; bottom: -22%; transform: rotate(-13deg); z-index: -1; color: #9067c8; }
.forum-art .icon { width: clamp(110px,20vw,290px); height: auto; stroke-width: .8; fill: #b393df; }
body[data-page="/community"] .member-aside { padding: 26px; background: #322240; }
body[data-page="/community"] .member-row { padding: 18px 22px; border-left: 3px solid #b695e0; background: #18151e; }
body[data-page="/valorant"] .competitive-board { gap: 0; overflow: hidden; border-radius: 18px; background: #241720; }
body[data-page="/valorant"] .competitive-board .game-banner { border: 0; background: repeating-linear-gradient(123deg,transparent 0 27px,#f8bfd40c 27px 28px),linear-gradient(115deg,#361b29,#18111b); }
body[data-page="/valorant"] .rr-score { background: #ffc3ca; }
body[data-page="/valorant"] .stats article { border-radius: 12px; border-top: 2px solid #dc9fb3; }
body[data-page="/planning"] .calendar-head { background: #d2bee9; color: #22162e; padding: 15px; border: 0; }
body[data-page="/planning"] .calendar-head a { background: #32263e; color: white; }
@media (max-width: 600px) {
  .home .hero { min-height: 440px; }
  .forum-art { right: -30px; bottom: -15px; opacity: .7; }
  body[data-page="/community"] .member-head h1 { max-width: 100%; }
  .archive-still { width: 85%; opacity: .52; }
}
