/* =====================================================================================================================
   RIFT - dark violet. Loaded AFTER style.css on every page, so it re-skins the whole site:
   charcoal surfaces, purple accents, compact navigation, and a centered photo-feed layout.
   slanted buttons. The old seasonal themes (halloween, autumn, light) are switched off; the site is always this.
   ===================================================================================================================== */

html, html[data-theme] {
  --primary: #a855f7;
  --primary-dark: #7e22ce;
  --primary-soft: rgba(168, 85, 247, .16);
  --gradient-main: linear-gradient(115deg, #4c1d95 0%, #6d28d9 40%, #9333ea 76%, #c084fc 100%);
  --gradient-warm: var(--gradient-main);
  --gradient-cool: var(--gradient-main);
  --bg: #111114;
  --panel: #1b1b20;
  --line: rgba(255, 255, 255, .08);
  --text: #f1eff5;
  --muted: #92909c;
  --page: #111114;
  --card: #111114;
  --topbar-bg: rgba(27, 27, 31, .97);
  --topbar-h: 60px;
  color-scheme: dark;
}

body, html[data-theme] body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background: #111114;
  color: var(--text);
  letter-spacing: .005em;
}
/* Headings/logo used to override to a thin Segoe UI - that's what made a heading like the
   Messages page's "Messages" look like a different, lighter font than nav links like "Photos"
   (body text, same Roboto as the nav). Dropped so every heading uses that same Roboto. */
h1, h2, h3, .logo-text {
  letter-spacing: -.005em;
}
::selection { background: #8b3bd1; color: #fff; }
a { color: inherit; }
* { scrollbar-width: thin; scrollbar-color: #49325f #111114; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #111114; }
::-webkit-scrollbar-thumb { background: #49325f; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #7e22ce; }

/* seasonal decoration is gone for good */
.hw-fx, .autumn-leaves, .leaf, .cd-theme-toggle, .cd-theme, .cd-modes { display: none !important; }

/* ───── TOP BAR ───── */
.topbar, html[data-theme] .topbar {
  background: var(--topbar-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: none;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, .72) 50%, transparent 100%);
}
.topbar-brand, .topbar-brand.always {
  opacity: 1 !important; transform: none !important; pointer-events: auto; cursor: pointer;
  font-size: .8rem; font-weight: 600; letter-spacing: .46em; text-transform: uppercase; color: var(--text);
  padding-left: 4px;
}
.burger-cat, .logo-cat {
  animation: none !important; filter: none !important;
  width: 28px !important; height: 28px !important; transition: transform .3s ease, filter .3s ease;
}
.side-toggle:hover .burger-cat, html[data-theme] .side-toggle:hover .burger-cat { filter: drop-shadow(0 0 9px rgba(168, 85, 247, .75)) !important; transform: scale(1.08); }
.icon-btn { border-radius: 0; color: #a9a49e; }
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.btn-login {
  color: var(--muted) !important; background: transparent !important; border: 0 !important;
  font-size: .7rem !important; font-weight: 600 !important; letter-spacing: .2em; text-transform: uppercase;
}
.btn-login:hover { color: #fff !important; }
.top-search, .top-mid input { background: #0b0b0c; border: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }

/* ───── BUTTONS: straight edges, purple ───── */
.btn-dl, .hero-dl, .btn-primary, .comment-send, .follow-btn, .fl-accept, html[data-theme] .btn-dl {
  background: var(--gradient-main) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important;
  clip-path: none !important;
  padding: 11px 30px !important; font-size: .72rem !important; font-weight: 600 !important;
  letter-spacing: .2em; text-transform: uppercase; box-shadow: none !important; transition: filter .2s;
}
.btn-dl:hover, .hero-dl:hover, .btn-primary:hover, .comment-send:hover, .follow-btn:hover { filter: brightness(1.18); background: var(--gradient-main) !important; }
.settings-page [data-dnd] { clip-path: none; }
.btn-danger { background: transparent !important; color: #ff6b6b !important; border: 1px solid rgba(255, 107, 107, .6) !important; border-radius: 0 !important; clip-path: none; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.hot-btn, .btn-more, .rail-discord, .dl-pill {
  background: transparent !important; color: #eeeae4 !important; border: 1px solid rgba(255, 255, 255, .2) !important; border-radius: 0 !important;
  font-size: .72rem !important; font-weight: 600 !important; letter-spacing: .16em; text-transform: uppercase; box-shadow: none !important;
}
.hot-btn:hover, .btn-more:hover, .rail-discord:hover { border-color: var(--primary) !important; background: rgba(168, 85, 247, .09) !important; }

/* ───── SIDE DRAWER ───── */
.cat-drawer, html[data-theme] .cat-drawer { background: #050505; border-right: 1px solid rgba(255, 255, 255, .08); box-shadow: none; }
.cd-nav a {
  font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #a29d97;
  padding: 15px 28px; border-left: 2px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.cd-nav a:hover { color: #fff; border-left-color: var(--primary); background: linear-gradient(90deg, rgba(168, 85, 247, .16), transparent); }
.side-scrim { background: rgba(0, 0, 0, .72); }

/* ───── HOME: HERO ───── */
.home-hero.dm-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: min(82vh, 760px); padding: 130px 24px 90px; overflow: hidden;
  background: #000 !important; background-image: none !important;
}
.dm-hero::before {                      /* faint facet lines, like light in a cut stone */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background:
    linear-gradient(115deg, transparent 49.7%, rgba(255, 255, 255, .045) 50%, transparent 50.3%) 0 0 / 220px 220px,
    linear-gradient(65deg, transparent 49.7%, rgba(255, 255, 255, .03) 50%, transparent 50.3%) 0 0 / 220px 220px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 30%, transparent 78%);
}
.dm-hero-glow {
  position: absolute; left: 50%; top: 42%; width: 1100px; height: 720px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(168, 85, 247, .30), rgba(76, 29, 149, .18) 52%, transparent 78%);
  filter: blur(10px);
}
.dm-hero-logo { position: relative; width: min(340px, 62vw); max-height: 340px; height: auto; object-fit: contain; filter: drop-shadow(0 0 46px rgba(168, 85, 247, .38)); }
.dm-hero-sub { position: relative; margin-top: 34px; font-size: .76rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.dm-hero-sub #heroOnline { color: var(--text); }
.dm-hero-cta { position: relative; margin-top: 42px; display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.dm-ghost {
  display: inline-block; padding: 11px 30px; border: 1px solid rgba(255, 255, 255, .26); color: #eeeae4; text-decoration: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: border-color .2s, background .2s;
}
.dm-ghost:hover { border-color: var(--primary); background: rgba(168, 85, 247, .10); }

/* ───── HOME: FOUR POINTS, NUMBERED, NO PICTURES ───── */
.home-features, html[data-theme] .home-features {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1240px; margin: 0 auto; padding: 0 24px;
  border-top: 1px solid var(--line); background: transparent;
}
.hf { padding: 46px 30px 50px; border-right: 1px solid var(--line); }
.hf:last-child { border-right: 0; }
.hf-img { display: none !important; }
.hf-num { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .34em; color: var(--primary); margin-bottom: 26px; }
.hf-title, html[data-theme] .hf-title { font-size: .95rem !important; font-weight: 300 !important; letter-spacing: .26em; text-transform: uppercase; color: #fff !important; margin-bottom: 14px; }
.hf-text { font-size: .86rem; line-height: 1.85; color: var(--muted); }
@media (max-width: 960px) { .home-features { grid-template-columns: 1fr 1fr !important; } .hf:nth-child(2) { border-right: 0; } .hf { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .home-features { grid-template-columns: 1fr !important; } .hf { border-right: 0; } }

/* ───── FEED, RAIL, CARDS: hairline boxes, sharp corners ───── */
.feed-title {
  font-size: 1.35rem; font-weight: 300; letter-spacing: .01em; margin: 6px 0 22px;
}
.feed-title::before { content: "\25C6"; color: var(--primary); font-size: .55em; margin-right: .9em; vertical-align: middle; }
.rail-title, .cd-label, .search-label, .fo-title, .ped-mon, .featured-tag, .a11y-name, .st-sec h3 {
  font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .3em !important; text-transform: uppercase; color: var(--muted) !important;
}
html[data-theme] :is(.post, .login-card, .report-card, .spanel, .st-sec, .panel, .dl-tile, .profile-panel, .faq-item, .rail-box, .home-link, .rc, .statbox, .card, .update-card, .updates-list > article, .req) {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px; box-shadow: none;
  transition: border-color .25s, background .25s;
}
html[data-theme] :is(.post, .rail-box, .home-link, .rc, .card, .update-card, .dl-tile, .faq-item):hover { border-color: rgba(168, 85, 247, .5); }
.rail-thumb { border-radius: 0; }
.rail-item:hover .rail-name { color: #fff; }
a:hover .rail-name { color: var(--primary); }
.rail-by, .post-handle, .post-time { color: var(--muted); }

input, textarea, select, html[data-theme] input, html[data-theme] textarea, html[data-theme] select {
  background: #0c0c0d; color: var(--text); border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px rgba(168, 85, 247, .5); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--primary); border-radius: 0; }
hr, .divider { border-color: var(--line); }

/* tabs and small chips lose their pill shape */
:is(.utab, .fl-tab, .stab, .snav, .rtab, .update-tag, .tag, .chip, .pill) { border-radius: 0; }
:is(.utab, .fl-tab, .stab, .snav, .rtab).active { background: var(--gradient-main) !important; color: #fff !important; }

/* ───── ACCOUNT / LOGIN / SIGN-UP ───── */
.login-card { padding: 44px 40px; }
.login-brand { font-size: 1.1rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; }
.login-cat, .cat-shift img { animation: none !important; filter: none !important; }
.login-sub { color: var(--muted); letter-spacing: .02em; }

/* ───── EVERY OTHER ROUNDED COMPONENT: squared off ───── */
html .a11y-reset,
html .a11y-row,
html .adm-btn,
html .adm-in,
html .adm-note,
html .big-cta,
html .btn-danger,
html .btn-dl,
html .btn-login,
html .btn-more,
html .cd-mode,
html .comment-body,
html .comment-input,
html .comment-send,
html .compose,
html .compose-btn,
html .dl-banner,
html .dl-feat,
html .dl-tile,
html .efreq,
html .evc,
html .evc-img,
html .export-opt,
html .faq-item,
html .featured,
html .field input,
html .fl-accept,
html .fl-decline,
html .fl-item,
html .fl-tab,
html .fo-nick-btn,
html .fo-pin,
html .follow-btn,
html .follow-link,
html .friend-btn,
html .friend-panel,
html .hero-banner,
html .hero-dl,
html .home-link,
html .hot-btn,
html .icon-btn,
html .image-card,
html .image-menu,
html .image-menu-btn,
html .image-menu-item,
html .image-photo,
html .img-report,
html .login-alt,
html .login-card,
html .login-hint,
html .nick-input,
html .nm-accept,
html .nm-decline,
html .nm-item,
html .notif-menu,
html .photo,
html .pm-item,
html .pm-token-ic,
html .pm-tokens,
html .post,
html .pphoto,
html .profile-gear,
html .profile-menu,
html .profile-report-btn,
html .profile-spotify,
html .profile-statbox,
html .ptab,
html .rail-discord,
html .rail-item,
html .report-cancel,
html .report-card,
html .report-close,
html .report-details,
html .report-reason,
html .report-submit,
html .req,
html .room-card,
html .room-stat,
html .rooms-filter,
html .rooms-tabs,
html .search-card,
html .search-field,
html .search-tabs,
html .set-logout,
html .settings-card,
html .sfield input,
html .sfield textarea,
html .side-discord,
html .side-link,
html .skip-link,
html .spotify-now .sp-art,
html .sresult,
html .ssave,
html .sselect,
html .stab,
html .stat-item,
html .statbox-clickable,
html .title-cancel,
html .title-edit,
html .title-input,
html .title-save,
html .toast,
html .top-search,
html .update-card,
html .update-tag,
html .utab,
html .wc-card,
html .wc-hero,
html .wc-reward,
html .wc-reward-img,
html .wc-reward-status,
html .wc-timer,
html body.home .rail > .rail-item,
html input[type="email"],
html input[type="password"],
html input[type="search"],
html input[type="text"],
html input[type="url"],
html select,
html textarea { border-radius: 2px; }

/* ───── PURPLE / DARK SITE-WIDE REFRESH ───── */
.topbar, html[data-theme] .topbar {
  height: var(--topbar-h);
  padding: 0 max(16px, calc((100vw - 1140px) / 2));
  gap: 18px;
  background: var(--topbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
.top-left { flex: 0 0 auto; }
.top-right { flex: 1 1 auto; min-width: 0; justify-content: space-between; gap: 14px; }
.top-nav-links.site-nav-links { display: flex; align-items: center; gap: 3px; margin: 0; flex: 0 0 auto; }
.top-nav-links.site-nav-links a {
  padding: 8px 10px; border-radius: 5px; color: #c2bfca; font-size: .88rem;
  font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.top-nav-links.site-nav-links a:hover,
.top-nav-links.site-nav-links a[aria-current="page"] { color: #fff; background: #29242f; }
#searchBtn.icon-btn {
  display: flex !important; flex: 1 1 360px; width: auto; max-width: none; min-width: 180px;
  height: 36px; justify-content: flex-start; gap: 10px; padding: 0 12px;
  border: 1px solid #35333b; border-radius: 5px; background: #111114; color: #a8a4b1;
}
#searchBtn::after { content: "Search People and Rooms"; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
#searchBtn:hover { border-color: #665078; background: #151419; }
.notif-btn { flex: 0 0 auto; }
.topbar .btn-dl { display: none; }
.topbar .btn-login { flex: 0 0 auto; padding: 8px 13px; border-radius: 5px !important; color: #fff !important; background: #7e22ce !important; letter-spacing: 0; text-transform: none; font-size: .86rem !important; }
.topbar .btn-login:hover { background: #9333ea !important; }

body.home .home-hero,
body.home .home-features { display: none !important; }
body.home .feed-layout {
  grid-template-columns: minmax(0, 780px) minmax(270px, 320px);
  gap: 32px; max-width: 1140px; padding: 26px 0 64px;
}
body.home .feed { grid-column: 1; grid-row: 1; min-width: 0; }
body.home .rail-col { grid-column: 2; grid-row: 1; min-width: 0; }
body.home .feed-title { margin: 2px 0 22px; padding: 0; border: 0; font-size: 1.35rem; font-weight: 500; letter-spacing: 0; }
body.home .feed-title::before { content: none; }
body.home .featured-slideshow,
body.home .home-links,
body.home .rail-col > .hot-btn { display: none !important; }
body.home .rail-box-head strong { font-size: .94rem; }
body.home .rail > .rail-item {
  display: flex; align-items: center; gap: 10px; padding: 6px 2px; margin: 0;
  overflow: visible; border: 0; background: transparent;
}
body.home .rail > .rail-item .rail-thumb {
  width: 80px; height: 46px; aspect-ratio: auto; flex: 0 0 80px;
  border-radius: 4px; background-size: cover !important;
}
body.home .rail > .rail-item .rail-meta { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; }
body.home .rail > .rail-item .rail-name { font-size: .82rem; }
body.home .rail > .rail-item .rail-by { font-size: .72rem; }
.rail-box, .post, .room-card, .update-card, .home-link, .rail-item, .card,
.login-card, .faq-item, .settings-card, .search-card, .profile-panel { border-radius: 5px !important; }
.rail-box { background: #1b1b20; border-color: #29282f; }
.post { background: #1b1b20; border: 1px solid #29282f; }
.topbar::after { background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .55), transparent); }
.hot-btn svg { color: var(--primary); }

@media (max-width: 1180px) {
  body.home .feed-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 900px) {
  .top-nav-links.site-nav-links { gap: 0; }
  .top-nav-links.site-nav-links a { padding: 8px 7px; font-size: .82rem; }
  #searchBtn.icon-btn { flex-basis: 240px; min-width: 150px; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .top-nav-links.site-nav-links { display: none; }
  .top-right { justify-content: flex-end; gap: 6px; }
  #searchBtn.icon-btn { flex: 1 1 auto; max-width: 240px; min-width: 0; }
  #searchBtn::after { content: "Search"; }
  body.home .feed-layout { grid-template-columns: 1fr; gap: 18px; padding: 24px 16px 50px; }
  body.home .feed { grid-column: 1; grid-row: 1; }
  body.home .rail-col { grid-column: 1; grid-row: 2; }
  body.home .rail > .rail-item { display: flex; }
}
@media (max-width: 440px) {
  /* search can't be allowed to grow unbounded here - it would crowd the notification bell
     and the avatar/login button off to the right. */
  #searchBtn.icon-btn { max-width: 150px; }
  .topbar .btn-login { padding: 8px 9px; }
}

/* ───── PRIVACY POLICY: shared Rift shell and dark violet content layout ───── */
.privacy-page {
  position: relative;
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 100px) 0 72px;
}
.privacy-heading {
  position: relative;
  padding: 0 0 42px;
  border-bottom: 1px solid var(--line);
}
.privacy-eyebrow {
  margin: 0 0 16px;
  color: #c084fc;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .32em;
}
.privacy-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.privacy-updated {
  margin: 18px 0 0;
  color: #c084fc;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.privacy-lead {
  max-width: 790px;
  margin: 24px 0 0;
  color: #b8b4c1;
  font-size: 1.05rem;
  line-height: 1.85;
}
.privacy-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(28px, 6vw, 76px);
}
.privacy-content section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.privacy-content h2 {
  margin: 0 0 14px;
  color: #f5efff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.privacy-content p,
.privacy-content li { color: #a9a6b2; font-size: .91rem; line-height: 1.85; }
.privacy-content p { margin: 0 0 12px; }
.privacy-content p:last-child { margin-bottom: 0; }
.privacy-content ul { margin: 0; padding-left: 20px; }
.privacy-content li + li { margin-top: 9px; }
.privacy-content strong { color: #e8ddf5; font-weight: 500; }
.privacy-content a { color: #c084fc; text-decoration-color: #75469b; text-underline-offset: 3px; }
.privacy-content a:hover { color: #fff; }
.privacy-content .privacy-notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid #a855f7;
  background: linear-gradient(90deg, rgba(168, 85, 247, .1), transparent);
}
.privacy-footer {
  display: flex;
  gap: 24px;
  padding-top: 26px;
  color: #918d99;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.privacy-footer a { text-decoration: none; }
.privacy-footer a:hover,
.privacy-footer a[aria-current="page"] { color: #c084fc; }
@media (max-width: 700px) {
  .privacy-page { width: min(100% - 32px, 1040px); padding-top: 42px; }
  .privacy-content { grid-template-columns: 1fr; }
  .privacy-content section { padding: 24px 0; }
  .privacy-lead { font-size: .96rem; }
}

/* ───── SETTINGS: Do Not Disturb ───── */
.dnd-status {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 8px 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(168, 85, 247, .22);
  background: linear-gradient(105deg, rgba(126, 34, 206, .14), rgba(27, 16, 40, .18));
  color: #e9d9ff;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.5;
}
.dnd-status::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #918d99;
}
.dnd-status.dnd-active::before {
  background: #c084fc;
  box-shadow: 0 0 12px rgba(192, 132, 252, .7);
}
.dnd-description {
  max-width: 560px;
  margin: 0 0 22px;
  color: #aaa6b3;
  font-size: .9rem;
  line-height: 1.75;
}
.dnd-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.settings-page .dnd-options .btn-dl {
  display: inline-flex;
  width: auto !important;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px !important;
  border: 1px solid rgba(168, 85, 247, .38) !important;
  background: rgba(83, 33, 126, .2) !important;
  color: #e8d9f8 !important;
  font-size: .72rem !important;
  letter-spacing: .1em;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.settings-page .dnd-options .btn-dl:hover {
  border-color: rgba(192, 132, 252, .8) !important;
  background: rgba(126, 34, 206, .36) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.settings-page .dnd-options .btn-dl[data-dnd="0"] {
  border-color: rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #bcb8c4 !important;
}
.settings-page .dnd-options .btn-dl[data-dnd="0"]:hover {
  border-color: rgba(255, 255, 255, .32) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
}
.settings-page .dnd-options .btn-dl:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.dnd-message { min-height: 1.4em; margin: 12px 0 0; color: #f0a2ad; font-size: .84rem; }
@media (max-width: 560px) {
  .dnd-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ───── DOWNLOAD PAGE REDESIGN ───── */
.dl-page .dl-wrap {
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 46px) 0 72px;
}
.dl-page .dl-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
  min-height: 440px;
  margin: 0 0 54px;
  border: 1px solid rgba(192, 132, 252, .24);
  border-radius: 22px;
  background: radial-gradient(ellipse at 12% 0%, rgba(126, 34, 206, .22), transparent 52%), #17121f;
  box-shadow: 0 22px 80px rgba(48, 10, 86, .2);
}
.dl-page .dl-banner::after { display: none; }
.dl-page .dl-banner-body {
  position: static;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 66px);
  color: var(--text);
}
.dl-page .dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid rgba(192, 132, 252, .25);
  border-radius: 999px;
  background: rgba(126, 34, 206, .14);
  color: #dfc2ff;
  font-size: .7rem;
  letter-spacing: .14em;
}
.dl-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #c084fc; box-shadow: 0 0 12px #a855f7; }
.dl-page .dl-banner-body h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.1vw, 4.45rem);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 800;
}
.dl-page .dl-banner-body h1 span {
  color: #c084fc;
  background: linear-gradient(100deg, #c084fc, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dl-page .dl-banner-body p {
  max-width: 460px;
  margin: 0;
  color: #c5bdcf;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
}
.dl-art-wrap {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0 21px 21px 0;
  background: #5b0a9a;
}
.dl-page .dl-banner-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.dl-art-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(23, 18, 31, .34), transparent 44%), radial-gradient(ellipse at 50% 48%, transparent 32%, rgba(25, 4, 42, .18) 100%);
}
.dl-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding: 13px 18px;
  border: 1px solid rgba(216, 180, 254, .35);
  border-radius: 9px;
  background: linear-gradient(110deg, #6d28d9, #9333ea);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(112, 36, 189, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dl-primary-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(112, 36, 189, .42); }
.dl-hero-facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: #aaa1b7; font-size: .8rem; }
.dl-platform-section { margin: 0 0 58px; scroll-margin-top: calc(var(--topbar-h) + 22px); }
.dl-section-heading { margin-bottom: 22px; }
.dl-eyebrow { color: #bf83f7; font-size: .7rem; font-weight: 800; letter-spacing: .18em; }
.dl-section-heading h2 { margin: 7px 0 5px; font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 750; letter-spacing: -.035em; }
.dl-section-heading p { margin: 0; color: #9d96a7; font-size: .95rem; }
.dl-page .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: none; margin: 0; }
.dl-page .dl-platform-card {
  position: relative;
  min-height: 172px;
  align-items: flex-start;
  gap: 18px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(39, 30, 49, .96), rgba(24, 22, 29, .96));
  box-shadow: none;
}
.dl-page .dl-platform-card:hover { transform: translateY(-3px); border-color: rgba(192, 132, 252, .48); background: linear-gradient(145deg, rgba(54, 35, 72, .98), rgba(26, 23, 33, .98)); }
.dl-platform-icon { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.06); }
.dl-page .dl-icon { width: 32px; height: 32px; }
.dl-platform-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.dl-page .dl-small { color: #b9a8ca; font-size: .69rem; font-weight: 800; letter-spacing: .13em; }
.dl-page .dl-big { color: #f6f1fa; font-size: 1.25rem; font-weight: 750; }
.dl-platform-detail { margin-top: 3px; color: #aaa2b2; font-size: .88rem; line-height: 1.45; }
.dl-card-go { display: grid; width: 34px; height: 34px; margin: auto 0 0 auto; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(168,85,247,.15); color: #d8b4fe; font-size: 1.1rem; }
.dl-feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; padding: 19px 22px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.025); }
.dl-feature-strip div { display: flex; flex-direction: column; gap: 5px; }
.dl-feature-strip b { color: #e9e2ef; font-size: .84rem; }
.dl-feature-strip span { color: #91899b; font-size: .78rem; line-height: 1.45; }
.dl-page .dl-faq { max-width: 820px; margin: 0 auto; }
.dl-page .dl-faq .dl-section-heading { margin-bottom: 18px; }
.dl-page .dl-faq h2 { text-align: left; }
.dl-page .faq-item { margin-bottom: 9px; border-radius: 10px; }
.dl-page .faq-q { padding: 17px 19px; font-size: .94rem; }
.dl-page .dl-back { margin: 38px auto 0; font-size: .86rem; }
@media (max-width: 760px) {
  .dl-page .dl-wrap { width: min(100% - 32px, 620px); padding-top: calc(var(--topbar-h) + 24px); }
  .dl-page .dl-banner { grid-template-columns: 1fr; min-height: 0; margin-bottom: 38px; }
  .dl-art-wrap { min-height: 250px; grid-row: 1; border-radius: 21px 21px 0 0; }
  .dl-page .dl-banner-img { object-position: center 45%; }
  .dl-art-glow { background: linear-gradient(0deg, rgba(23,18,31,.28), transparent 40%); }
  .dl-page .dl-banner-body { padding: 28px; }
  .dl-page .dl-banner-body h1 { font-size: clamp(2.45rem, 10vw, 3.6rem); }
  .dl-page .dl-banner-body p { font-size: .96rem; }
  .dl-page .dl-grid { grid-template-columns: 1fr; }
  .dl-page .dl-platform-card { min-height: 145px; }
  .dl-feature-strip { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 420px) {
  .dl-page .dl-wrap { width: calc(100% - 24px); }
  .dl-page .dl-banner-body { padding: 22px; }
  .dl-page .dl-platform-card { gap: 12px; padding: 18px; }
  .dl-platform-icon { width: 44px; height: 44px; }
  .dl-page .dl-big { font-size: 1.12rem; }
}
/* DOWNLOAD PAGE: PC / QUEST platform switcher */
body.dl-page {
  min-height: 100vh;
  overflow-x: hidden;
  color: #f8f4ff;
  background: radial-gradient(ellipse at 50% 68%, #241036 0%, #130d1d 50%, #100e13 100%);
}
body.dl-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("assets/diamond-logo.png");
  background-repeat: repeat;
  background-size: 230px;
  transform: rotate(-12deg) scale(1.2);
}
.download-experience {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 64px));
  min-height: calc(100vh - var(--topbar-h, 64px));
  margin: 0 auto;
  padding: calc(var(--topbar-h, 64px) + clamp(18px, 3vh, 34px)) 0 24px;
  display: flex;
  flex-direction: column;
}
.download-platform-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto clamp(22px, 4vh, 48px);
  padding: 5px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(20, 15, 27, .76);
  box-shadow: 0 10px 36px rgba(0,0,0,.16);
}
.download-platform-tab {
  min-width: 112px;
  height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #b6aabd;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.download-platform-tab:hover { color: #fff; background: rgba(168,85,247,.12); }
.download-platform-tab.is-active {
  color: #fff;
  border-color: rgba(216,180,254,.14);
  background: linear-gradient(145deg, rgba(116,42,171,.45), rgba(72,32,108,.5));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 5px 18px rgba(112,36,189,.16);
}
.download-platform-tab:focus-visible { outline: 2px solid #d8b4fe; outline-offset: 3px; }
.platform-tab-icon { height: 29px; font-size: 1.7rem; line-height: 1; }
.platform-tab-icon.quest-infinity { font-family: Arial, sans-serif; font-size: 2rem; font-weight: 400; }
.download-hero {
  flex: 1;
  min-height: min(590px, 67vh);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
  animation: download-fade-in .26s ease both;
}
.download-hero[hidden] { display: none; }
@keyframes download-fade-in { from { opacity: .35; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.download-copy { max-width: 500px; padding: 14px 0 25px; }
.download-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: #c89af5; font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.download-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9b3ff; box-shadow: 0 0 13px #ad5afa; }
.download-copy h1 { margin: 0 0 22px; color: #fff; font-size: clamp(3.5rem, 6.5vw, 6.1rem); font-weight: 800; letter-spacing: -.065em; line-height: .96; }
.download-copy h1 span { color: #d7b4ff; }
.download-copy > p:not(.download-requirements) { max-width: 470px; margin: 0; color: #d0c6d9; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.75; }
.download-copy .download-requirements { margin: 24px 0 0; color: #b2a4bd; font-size: .9rem; font-style: italic; }
.download-action {
  width: min(100%, 420px);
  min-height: 58px;
  margin-top: 27px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  background: linear-gradient(105deg, #7023b1, #963fe0);
  box-shadow: 0 10px 30px rgba(97,27,153,.26);
  color: white;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .035em;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.download-action span { font-size: 1.15rem; }
.download-action:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 14px 34px rgba(127,49,194,.36); }
.download-action:focus-visible { outline: 2px solid #e4caff; outline-offset: 3px; }
.download-art-stage {
  position: relative;
  min-width: 0;
  min-height: clamp(390px, 48vw, 560px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.download-art-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(94%, 510px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,38,161,.34), rgba(61,23,95,.18) 48%, transparent 72%);
  filter: blur(3px);
}
.download-art-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10%; right: 4%; bottom: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195,143,242,.48), transparent);
  box-shadow: 0 0 35px 12px rgba(137,61,194,.12);
}
.download-art-orbit {
  position: absolute;
  z-index: -1;
  width: min(88%, 455px);
  aspect-ratio: 1;
  border: 1px solid rgba(213,174,246,.13);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(.55);
  box-shadow: 0 0 50px rgba(140,69,197,.1), inset 0 0 35px rgba(140,69,197,.08);
}
.download-platform-art {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.36));
}
.download-pc-art { width: 112%; }
.download-quest-art { width: 88%; }
.download-art-caption { position: absolute; bottom: 2%; color: rgba(226,203,247,.68); font-size: .63rem; font-weight: 800; letter-spacing: .2em; text-align: center; }
.download-footnote { margin: 12px 0 0; color: #96899f; font-size: .8rem; text-align: center; }
@media (min-width: 1200px) and (min-height: 780px) {
  .download-experience { padding-top: calc(var(--topbar-h, 64px) + 22px); }
  .download-hero { min-height: 630px; }
}
@media (max-width: 760px) {
  .download-experience { width: min(100% - 36px, 560px); min-height: calc(100vh - var(--topbar-h, 64px)); padding-top: calc(var(--topbar-h, 64px) + 12px); }
  .download-platform-tabs { margin-bottom: 10px; }
  .download-platform-tab { height: 60px; min-width: 98px; }
  .download-hero { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .download-copy { max-width: none; padding: 20px 0 0; }
  .download-copy h1 { font-size: clamp(3.3rem, 13vw, 5.2rem); }
  .download-copy > p:not(.download-requirements) { max-width: 560px; }
  .download-copy .download-requirements { margin-top: 15px; }
  .download-action { margin-top: 18px; }
  .download-art-stage { min-height: min(82vw, 420px); grid-row: 1; }
  .download-platform-art { max-height: 410px; }
  .download-pc-art { width: 100%; }
  .download-quest-art { width: 84%; }
  .download-art-caption { bottom: 0; }
  .download-footnote { margin: 16px 0 4px; }
}
@media (max-width: 420px) {
  .download-experience { width: calc(100% - 28px); }
  .download-art-stage { min-height: 300px; }
  .download-platform-art { max-height: 320px; }
  .download-kicker { margin-bottom: 15px; font-size: .62rem; }
  .download-copy h1 { margin-bottom: 15px; }
}

.platform-tab-icon.rift-steam-icon { display: grid; width: 27px; height: 27px; place-items: center; }
.platform-tab-icon.rift-steam-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }


.platform-tab-icon.rift-meta-icon { display: grid; width: 32px; height: 27px; place-items: center; }
.platform-tab-icon.rift-meta-icon img { display: block; width: 29px; height: 24px; object-fit: contain; }
/* Inputs inside their own bordered wrapper: the wrapper stays the only visible box.
   The blanket "input, textarea, select" rule above wins on specificity over style.css's
   ".search-field input { background:none; border:none }", which painted a second dark
   field with its own border inside .search-field / .rooms-filter / .top-search. */
html .search-field input,
html .rooms-filter input,
html .top-search input,
html[data-theme] .search-field input,
html[data-theme] .rooms-filter input,
html[data-theme] .top-search input {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  padding: 0;
  height: auto;
}
html .search-field input:focus,
html .rooms-filter input:focus,
html .top-search input:focus,
html[data-theme] .search-field input:focus,
html[data-theme] .rooms-filter input:focus,
html[data-theme] .top-search input:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}
