/* The normal pages (News, How to join, Gallery, FAQ). Loaded after style.css and uses its colors,
   buttons, cursor and Discord hand-off. Same look as the intro, just a page you read top to bottom. */

html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
html::-webkit-scrollbar { display: block; width: 8px; }
html::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* background: a blurred still, very dark */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--black); }
.page-bg__img {
  position: absolute; inset: -8%;
  background: center / cover no-repeat;
  filter: blur(40px) saturate(1.1); opacity: 0.32; transform: scale(1.06);
}
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(7, 7, 8, 0.6) 55%, var(--black) 100%),
    linear-gradient(to bottom, rgba(7, 7, 8, 0.2), var(--black) 85%);
}

/* header */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.top.is-stuck {
  background: rgba(7, 7, 8, 0.72); border-color: var(--line);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.top .wordmark { position: static; white-space: nowrap; }
.top__nav { position: relative; isolation: isolate; display: flex; gap: 4px; font: 600 14px/1 var(--display); }
.top__nav a { position: relative; white-space: nowrap; padding: 10px 14px; border-radius: 999px; color: var(--muted); transition: color 0.3s, background 0.3s; }
.top__nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.top__nav a[aria-current="page"] { color: var(--white); }
.top__nav a[aria-current="page"]:hover { background: none; }
/* the pill behind the current page; slides to the next tab when you switch pages */
.top__pill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, 0.1); pointer-events: none; z-index: -1; }
.top__nav a { z-index: 0; }
.top__end { margin-left: auto; display: flex; gap: 8px; }
.btn--sm { height: 40px; padding: 0 16px; gap: 9px; font-size: 13px; }
.btn--sm i { font-size: 14px; }
.top__menu { display: none; width: 40px; padding: 0; justify-content: center; }

/* page head */
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin: 0 auto; }
.wrap--narrow { width: min(820px, 100% - var(--gutter) * 2); }
.head { padding: clamp(48px, 9vh, 110px) 0 clamp(28px, 5vh, 52px); }
.head .label { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.head__title { margin-top: 18px; font: 900 clamp(46px, 8vw, 112px)/0.92 var(--display); letter-spacing: -0.045em; }
.head__title span { color: var(--soft); }
.head__lead { margin-top: 22px; max-width: 560px; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }

main.content { flex: 1; padding-bottom: 110px; }

/* small round tabs (news + gallery filters) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: 999px;
  background: none; border: 1px solid var(--line); color: var(--muted);
  font: 600 13px/1 var(--display);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.tab:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.tab.is-on { background: var(--white); color: var(--black); border-color: var(--white); }
.tab small { font: 600 11px/1 var(--body); opacity: 0.6; }

/* glass card */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* ---------- news ---------- */
.news { display: grid; gap: 14px; }
.post { padding: clamp(22px, 3vw, 34px); scroll-margin-top: 90px; transition: border-color 0.6s; }
.post.is-hot { border-color: rgba(255, 255, 255, 0.45); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--soft); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  font: 600 12px/1 var(--display);
}
.pill--ver { background: none; border: 1px solid var(--line); color: var(--muted); }
.pill--pin { background: none; color: var(--muted); padding-left: 0; }
.post__title { margin-top: 14px; font: 800 clamp(22px, 2.4vw, 30px)/1.12 var(--display); letter-spacing: -0.025em; }
.post__body { margin-top: 12px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.post__body strong { color: var(--white); }
.post__img { display: block; max-width: 100%; max-height: 460px; margin: 14px 0 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); cursor: zoom-in; }
.post__link { margin-left: auto; display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; color: var(--soft); background: none; border: 0; transition: color 0.3s, background 0.3s; }
.post__link:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.changes { margin-top: 20px; display: grid; gap: 16px; }
.changes__group h4 { display: flex; align-items: center; gap: 9px; font: 700 12px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.changes__group h4 i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; background: rgba(255, 255, 255, 0.08); }
.changes__group[data-kind="added"] h4 i { color: var(--live); background: rgba(53, 208, 127, 0.12); }
.changes__group[data-kind="fixed"] h4 i { color: #e8b65a; background: rgba(232, 182, 90, 0.12); }
.changes__group[data-kind="removed"] h4 i { color: #ef5a5a; background: rgba(239, 90, 90, 0.12); }
.changes__group[data-kind="changed"] h4 i { color: #7aa7ff; background: rgba(122, 167, 255, 0.12); }
.changes__group[data-kind="soon"] h4 i { color: #c49bff; background: rgba(196, 155, 255, 0.12); }
.changes__group ul { margin-top: 10px; display: grid; gap: 7px; padding-left: 31px; }
.changes__group li { position: relative; color: var(--muted); font-size: 15px; }
.changes__group li::before { content: ""; position: absolute; left: -16px; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--soft); }
.more { margin-top: 16px; background: none; border: 0; padding: 0; color: var(--white); font: 600 13px/1 var(--display); display: inline-flex; align-items: center; gap: 8px; }
.more i { transition: transform 0.4s var(--ease); }
.more[aria-expanded="true"] i { transform: rotate(180deg); }

.state { padding: 54px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.state__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.state h3 { margin-top: 18px; font: 700 20px/1.2 var(--display); }
.state p { margin-top: 8px; color: var(--muted); max-width: 420px; }
.state .btn { margin-top: 22px; }
.skel { height: 210px; border-radius: 20px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.03) 70%) 0 0 / 300% 100%; border: 1px solid var(--line); animation: skel 1.6s linear infinite; }
@keyframes skel { to { background-position: -150% 0; } }

/* ---------- how to join ---------- */
.need { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 44px; }
.need .card { padding: 20px 22px; }
.need i { font-size: 18px; }
.need h3 { margin-top: 14px; font: 700 16px/1.2 var(--display); }
.need p { margin-top: 6px; color: var(--muted); font-size: 14px; }

.road { position: relative; display: grid; gap: 14px; counter-reset: step; }
.stop { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 0 18px; padding: 24px 26px 24px 0; }
.stop__num {
  position: relative; z-index: 1; margin-left: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); border: 1px solid rgba(255, 255, 255, 0.3);
  font: 800 16px/1 var(--display);
}
.stop__num::before { counter-increment: step; content: counter(step); }
.stop__kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); display: flex; align-items: center; gap: 8px; }
.stop h3 { margin-top: 6px; font: 800 clamp(20px, 2vw, 25px)/1.15 var(--display); letter-spacing: -0.02em; }
.stop p { margin-top: 8px; color: var(--muted); max-width: 620px; }
.stop__do { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.stop code, .faq code { padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); font: 500 0.9em/1.4 ui-monospace, Consolas, monospace; color: var(--white); }
.tip { margin-top: 14px; display: flex; gap: 10px; font-size: 14px; color: var(--soft); }
.tip i { margin-top: 3px; }

.ready { margin-top: 44px; padding: clamp(30px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.ready h2 { font: 900 clamp(36px, 5vw, 64px)/0.95 var(--display); letter-spacing: -0.04em; }
.ready p { margin-top: 14px; color: var(--muted); }
.ready .join__cta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- gallery ---------- */
.shots { columns: 3 300px; column-gap: 14px; }
.shot {
  position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0;
  break-inside: avoid; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; transition: transform 1.1s var(--ease), filter 0.6s; }
.shot:hover img { transform: scale(1.045); }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 40px 18px 16px; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  opacity: 0; transform: translateY(8px); transition: opacity 0.45s, transform 0.45s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
.shot__cap b { font: 700 15px/1.2 var(--display); color: var(--white); }
.shot__cap small { color: rgba(242, 241, 238, 0.7); font-size: 12px; }
@media (hover: none) { .shot__cap { opacity: 1; transform: none; } }

.viewer {
  position: fixed; inset: 0; z-index: 160;
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: 70px clamp(16px, 7vw, 110px) 28px;
  background: rgba(5, 5, 6, 0.9);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
}
.viewer img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); user-select: none; }
.viewer__cap { margin-top: 18px; text-align: center; }
.viewer__cap b { font: 700 17px/1.2 var(--display); }
.viewer__cap small { display: block; margin-top: 4px; color: var(--soft); font-size: 13px; }
.viewer__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); color: var(--white);
  transition: background 0.3s;
}
.viewer__btn:hover { background: rgba(255, 255, 255, 0.18); }
.viewer__x { top: 18px; right: 18px; }
.viewer__prev { left: 18px; top: 50%; translate: 0 -50%; }
.viewer__next { right: 18px; top: 50%; translate: 0 -50%; }
.viewer__count { position: absolute; top: 30px; left: 24px; color: var(--soft); font: 600 13px/1 var(--display); letter-spacing: 0.08em; }
.gallery-add { margin-top: 26px; display: flex; gap: 10px; color: var(--soft); font-size: 14px; }
.gallery-add i { margin-top: 3px; }

/* ---------- faq ---------- */
.search {
  position: relative; display: block; margin-bottom: 48px;
}
.search i { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--soft); }
.search input {
  width: 100%; height: 56px; padding: 0 20px 0 50px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--white);
  font-size: 16px; outline: none; transition: border-color 0.3s, background 0.3s;
}
.search input::placeholder { color: var(--soft); }
.search input:focus { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.07); }
.faq__group + .faq__group { margin-top: 38px; }
.faq__group > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 13px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 4px; list-style: none; cursor: pointer;
  font: 700 clamp(16px, 1.4vw, 19px)/1.3 var(--display); letter-spacing: -0.01em;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\f067"; font: 900 12px/1 "Font Awesome 6 Free"; flex: none;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--white); color: var(--black); border-color: var(--white); }
.faq summary:hover { color: var(--white); }
.faq__a { overflow: hidden; }
.faq__a > div { padding: 0 52px 22px 4px; color: var(--muted); }
.faq__a p + p, .faq__a ul { margin-top: 10px; }
.faq__a ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.faq__a a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.faq mark { background: rgba(255, 255, 255, 0.22); color: var(--white); border-radius: 3px; }
.faq__none { padding: 40px 0; color: var(--muted); text-align: center; }
.faq__more { margin-top: 50px; padding: 28px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.faq__more h3 { font: 700 19px/1.2 var(--display); }
.faq__more p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.faq__more .btn { margin-left: auto; }

/* footer is a normal row at the end here, not the slide-up panel */
.page .footer { position: static; transform: none !important; }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }

@media (max-width: 900px) {
  .top { gap: 12px; flex-wrap: wrap; }
  .top__menu { display: inline-flex; }
  .top__nav { order: 3; flex-basis: 100%; display: none; flex-direction: column; padding: 8px 0 4px; }
  .top.is-open .top__nav { display: flex; }
  .top.is-open { background: rgba(7, 7, 8, 0.92); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
  .top__nav a { padding: 14px; }
  .need { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top__end .btn__text { display: none; }
  .stop { grid-template-columns: 52px 1fr; padding-right: 0; }
  .stop__num { margin-left: 4px; width: 38px; height: 38px; font-size: 14px; }
  .faq__a > div { padding-right: 4px; }
  .viewer__prev, .viewer__next { top: auto; bottom: 22px; translate: none; }
  .faq__more .btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* page switch: the page fades out, the next one fades in (see pages.js) */
@media (max-width: 900px) { .top__pill { display: none; } .top__nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); } }
