/*
 * Project Myrkgard site: the launcher's storm, iron and gold.
 * Colors and the gold wordmark follow the launcher (src/launcher-theme.css,
 * src/home.css in the launcher's repository).
 *
 * With scripts on, the site is one screen that does not scroll: the header,
 * the page in view and the footer, over the realm's art. The pages switch in
 * place; a page's own panel scrolls only when its content is taller than the
 * screen, as the updates list does.
 */

/* ---------- Fonts: Inter Variable, as in the launcher ---------- */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;
  /* Iron, darkest to lightest. */
  --bg: #0b0807;
  --iron-0: #0e0b0b;
  --iron-1: #131012;
  --iron-2: #19151a;
  --iron-3: #221c1f;
  --edge: #2d2621;
  /* Text on iron. */
  --text: #ede4d4;
  --text-2: #c0b4a2;
  --text-3: #a89c8a;
  --muted: #978b7b;
  --faint: #6e645a;
  /* Gold, ember and storm light. */
  --gold: #e2b968;
  --gold-hi: #f8e2a8;
  --gold-lo: #a7742f;
  --ember: #d9492c;
  --storm: #a8ceff;
  --ok: #86d3a0;
  --gold-rgb: 226, 185, 104;
  --ember-rgb: 236, 92, 56;
  --storm-rgb: 168, 206, 255;
  --line: rgba(222, 184, 120, 0.12);
  --line-strong: rgba(222, 184, 120, 0.28);
  --gold-text: linear-gradient(180deg, #fff7da 0%, #f4d896 20%, #ddb366 44%, #a7732e 52%, #c48f45 63%, #e9c27a 82%, #f7dda0 100%);

  --sans: "Inter Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 68px;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: #3a3029 var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Fine grain over everything, as on the launcher. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.15;
}
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: 0.88em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
}
::selection {
  background: #6b4f24;
  color: #fff8ea;
}
:focus-visible {
  outline: 2px solid rgba(244, 220, 166, 0.9);
  outline-offset: 3px;
  border-radius: 4px;
}
/* A page's title takes the focus when the page opens, for screen readers. */
[data-view-title]:focus {
  outline: none;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #3a3029;
  border: 2px solid var(--bg);
  border-radius: 10px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--gold);
  color: #2a1806;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 12px;
}
.gold-text {
  background-image: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- One screen (with scripts) ---------- */

.js,
.js body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.js body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
main,
.site-footer {
  position: relative;
  z-index: 1;
}
.js .stage {
  min-height: 0;
  overflow: hidden;
  overflow: clip;
}
.view[data-view="lost"] {
  display: none;
}
/* Each page lies over the others; the one the address names shows. */
.js .view {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.28s ease,
    transform 0.45s var(--ease),
    visibility 0s linear 0.28s;
}
.js[data-page="home"] [data-view="home"],
.js[data-page="about"] [data-view="about"],
.js[data-page="updates"] [data-view="updates"],
.js[data-page="join"] [data-view="join"],
.js[data-page="faq"] [data-view="faq"],
.js[data-page="lost"] [data-view="lost"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.45s ease 0.08s,
    transform 0.6s var(--ease) 0.08s,
    visibility 0s;
}
.js .view-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3a3029 transparent;
  scrollbar-gutter: stable both-edges;
}
.view-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-block: clamp(16px, 3.4vh, 44px);
}
/* Without scripts, the pages follow one another. */
html:not(.js) .view {
  padding-top: var(--nav-h);
}

/* ---------- The realm behind every page ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -4;
  will-change: transform;
}
.hero-art picture,
.hero-art img {
  width: 100%;
  height: 100%;
}
.hero-art img {
  object-fit: cover;
  object-position: 58% 42%;
  transform-origin: 62% 40%;
  animation: hero-drift 40s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-drift {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.14) translate3d(-1%, 0.5%, 0);
  }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(46% 34% at 50% 47%, rgba(11, 8, 7, 0.62), transparent 78%),
    radial-gradient(120% 70% at 50% 0%, rgba(var(--storm-rgb), 0.1), transparent 60%),
    radial-gradient(90% 55% at 50% 108%, rgba(var(--ember-rgb), 0.32), transparent 70%),
    linear-gradient(180deg, rgba(11, 8, 7, 0.86) 0%, rgba(11, 8, 7, 0.42) 26%, rgba(11, 8, 7, 0.5) 58%, rgba(11, 8, 7, 0.9) 88%, var(--bg) 100%),
    radial-gradient(130% 90% at 50% 45%, transparent 45%, rgba(11, 8, 7, 0.72) 100%);
}
/* Away from the home page the art steps back, so the page reads. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(90% 60% at 50% 110%, rgba(var(--ember-rgb), 0.14), transparent 70%),
    rgba(11, 8, 7, 0.66);
  opacity: 0;
  transition: opacity 0.7s ease;
}
html:not([data-page="home"]) .hero-veil {
  opacity: 1;
}
/* Lightning: site.js sets --strike-x and plays .is-striking now and then. */
.hero-backlight {
  position: absolute;
  inset: -20% -30% 25%;
  z-index: -2;
  background: radial-gradient(closest-side at var(--strike-x, 50%) 34%, rgba(var(--storm-rgb), 0.3), rgba(var(--storm-rgb), 0.08) 50%, transparent 78%);
  opacity: 0;
  pointer-events: none;
}
.is-striking .hero-backlight,
.is-striking .wm-rim {
  animation: strike 1.2s ease-out;
}
@keyframes strike {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 0.95;
  }
  12% {
    opacity: 0.2;
  }
  20% {
    opacity: 0.75;
  }
  55% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
  }
}
.hero-embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
html:not([data-page="home"]) .hero-embers {
  opacity: 0.55;
}
.hero-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  width: 100%;
  height: clamp(70px, 10vw, 150px);
  overflow: visible;
  pointer-events: none;
}
.ridge-fill {
  fill: var(--bg);
}
.ridge-edge,
.ridge-glow {
  fill: none;
  stroke: url(#ridge-edge);
  vector-effect: non-scaling-stroke;
}
.ridge-edge {
  stroke-width: 1.3;
}
.ridge-glow {
  stroke-width: 6;
  opacity: 0.55;
}

/* ---------- Buttons ---------- */

.btn {
  --h: 48px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 5px;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.35s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.btn > span {
  margin-right: -0.2em;
}
.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.btn-sm {
  --h: 38px;
  padding: 0 16px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
}
.btn-sm > span {
  margin-right: -0.16em;
}
.btn-lg {
  --h: 58px;
  padding: 0 38px;
  font-size: 14px;
  letter-spacing: 0.26em;
}
.btn-lg > span {
  margin-right: -0.26em;
}
/* The launcher's Play button. */
.btn-gold {
  overflow: hidden;
  color: #2a1806;
  background: linear-gradient(180deg, #fcebb7 0%, #efcd86 28%, #d6a85b 56%, #ba883f 80%, #a3712e 100%);
  text-shadow: 0 1px 0 rgba(255, 244, 212, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 238, 0.9),
    inset 0 -2px 0 rgba(108, 64, 18, 0.6),
    inset 0 0 0 1px rgba(255, 238, 196, 0.32),
    0 0 0 1px rgba(40, 22, 6, 0.95),
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(228, 170, 86, 0.18);
}
.btn-gold::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -20%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 246, 0.75) 50%, transparent 58%);
  transform: translateX(-90%);
  transition: transform 0.9s var(--ease);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 238, 0.95),
    inset 0 -2px 0 rgba(108, 64, 18, 0.6),
    inset 0 0 0 1px rgba(255, 238, 196, 0.42),
    0 0 0 1px rgba(40, 22, 6, 0.95),
    0 16px 38px rgba(0, 0, 0, 0.55),
    0 0 64px rgba(236, 182, 96, 0.36);
}
.btn-gold:hover::after {
  transform: translateX(90%);
}
.btn-gold:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}
.btn-ghost {
  color: #eadbb8;
  background: rgba(19, 16, 18, 0.55);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  color: var(--gold-hi);
  border-color: rgba(240, 206, 140, 0.55);
  background: rgba(var(--gold-rgb), 0.08);
}
.btn-ghost svg {
  transition: transform 0.3s var(--ease);
}
.btn-ghost:hover svg {
  transform: translateX(3px);
}
/* The frame and diamonds around the launcher's Play button. */
.framed {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border: 1px solid rgba(222, 184, 116, 0.26);
  border-radius: 9px;
  transition: border-color 0.3s ease;
}
.framed::before,
.framed::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  transform: rotate(45deg);
  background: var(--bg);
  border: 1px solid rgba(232, 196, 128, 0.6);
}
.framed::before {
  left: -4px;
}
.framed::after {
  right: -4px;
}
.framed:hover,
.framed:focus-within {
  border-color: rgba(240, 206, 140, 0.55);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
  view-transition-name: site-header;
}
.js .site-header {
  position: relative;
}
html:not([data-page="home"]) .site-header {
  border-bottom-color: rgba(222, 184, 120, 0.08);
}
.site-header.menu-open {
  background: rgba(11, 8, 7, 0.8);
  border-bottom-color: rgba(222, 184, 120, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 12px rgba(var(--ember-rgb), 0.25));
  transition: transform 0.5s var(--ease);
}
.brand:hover img {
  transform: scale(1.08);
}
.brand-name {
  margin-right: -0.32em;
  color: #d2c4ab;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.brand-name b {
  color: var(--gold);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 10px 14px;
  color: #b9ad9a;
  font: 500 14px/1 var(--sans);
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 0.35s var(--ease),
    top 0.35s var(--ease);
}
.nav-toggle span:first-child {
  top: 16px;
}
.nav-toggle span:last-child {
  top: 24px;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------- Home ---------- */

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: clamp(12px, 3vh, 40px) var(--gutter) clamp(18px, 4vh, 44px);
  text-align: center;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 940px;
  margin-block: auto;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: rgba(232, 204, 148, 0.86);
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.6em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.kicker > span {
  margin-right: -0.6em;
  white-space: nowrap;
}
.kicker::before,
.kicker::after {
  content: "";
  width: clamp(24px, 4vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 192, 124, 0.7));
}
.kicker::after {
  transform: scaleX(-1);
}

/* The launcher's gold wordmark: base, storm rim and a glint. */
.wordmark {
  display: block;
  margin: clamp(8px, 1.6vh, 14px) -0.14em 0 0;
  font-size: clamp(40px, min(11.6vw, 15vh), 124px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wm {
  position: relative;
  display: grid;
}
.wm > span {
  grid-area: 1 / 1;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.wm-base {
  background-image: var(--gold-text);
  filter: drop-shadow(0 1px 0 rgba(44, 22, 6, 0.95)) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 30px rgba(222, 150, 70, 0.16));
}
.wm-rim {
  background-image: linear-gradient(180deg, #f0f6ff 0%, rgba(214, 228, 255, 0.66) 24%, rgba(214, 228, 255, 0) 58%);
  -webkit-mask-image: radial-gradient(46% 170% at var(--strike-x, 50%) 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(46% 170% at var(--strike-x, 50%) 0%, #000 30%, transparent 80%);
  filter: drop-shadow(0 0 14px rgba(var(--storm-rgb), 0.6));
  opacity: 0;
}
/* Only the mask band moves; the bright letters inside slide back. */
.wm > .wm-shine {
  -webkit-mask-image: linear-gradient(100deg, transparent 23%, #000 50%, transparent 77%);
  mask-image: linear-gradient(100deg, transparent 23%, #000 50%, transparent 77%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0;
  animation: glint 11s var(--ease) 2.4s infinite;
  will-change: transform, opacity;
}
.wm-shine > span {
  display: block;
  background-image: linear-gradient(180deg, rgba(255, 252, 240, 0.95), rgba(255, 244, 214, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: glint-back 11s var(--ease) 2.4s infinite;
  will-change: transform;
}
@keyframes glint {
  0% {
    opacity: 0;
    transform: translateX(-80%);
  }
  2% {
    opacity: 0.9;
  }
  13% {
    opacity: 0.9;
  }
  16%,
  100% {
    opacity: 0;
    transform: translateX(80%);
  }
}
@keyframes glint-back {
  0% {
    transform: translateX(80%);
  }
  16%,
  100% {
    transform: translateX(-80%);
  }
}

.hero-sub {
  margin-top: clamp(10px, 2vh, 16px);
  color: #eadbb8;
  font: 500 clamp(11px, 1.3vw, 13px) / 1 var(--sans);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}
.hero-sub span {
  margin-right: -0.42em;
  white-space: nowrap;
}
.divider {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(380px, 72vw);
  margin: clamp(12px, 2.4vh, 22px) auto 0;
}
.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 172, 104, 0.55) 72%, rgba(var(--ember-rgb), 0.75));
}
.divider span:last-child {
  transform: scaleX(-1);
}
.divider b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--ember-rgb), 0.9);
}
.divider i {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ff9a6a, var(--ember));
  box-shadow: 0 0 10px rgba(var(--ember-rgb), 0.85);
}
.hero-lead {
  max-width: 600px;
  margin-top: clamp(14px, 2.8vh, 26px);
  color: #e3d7c2;
  font-size: clamp(15px, min(1.7vw, 2.4vh), 19px);
  line-height: 1.6;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  margin-top: clamp(18px, 4vh, 36px);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(14px, 3.2vh, 30px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 11, 11, 0.62);
  color: var(--text-3);
  font: 500 12.5px/1 var(--sans);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.chip[hidden] {
  display: none;
}
.chip b {
  color: var(--text);
  font-weight: 600;
}
/* The newest update, from config.js. */
.chip-link {
  max-width: 100%;
  padding-left: 5px;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}
.chip-link .badge {
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
}
.chip-link [data-latest-title] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-link svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.chip-link:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.chip-link:hover svg {
  transform: translateX(3px);
}
.dot {
  --state: var(--gold);
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--state);
  color: var(--state);
}
.dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: ring 2.6s ease-out infinite;
}
@keyframes ring {
  from {
    opacity: 0.85;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(2.1);
  }
}

/* The official servers' countdown. */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 28px);
  max-width: 780px;
  margin-top: clamp(18px, 3.6vh, 40px);
  padding: clamp(10px, 1.8vh, 16px) clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(25, 21, 26, 0.78), rgba(14, 11, 11, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.04),
    0 18px 40px -24px rgba(0, 0, 0, 0.8);
  text-align: left;
}
.countdown-num {
  display: flex;
  flex: none;
  align-items: baseline;
  gap: 10px;
}
.countdown-num span {
  min-width: 2ch;
  background-image: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font: 600 clamp(34px, min(4.6vw, 6vh), 52px) / 1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-align: right;
}
.countdown-num small {
  color: var(--gold);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.countdown-text {
  padding-left: clamp(14px, 2.4vw, 28px);
  border-left: 1px solid var(--line);
}
.countdown-title {
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
}
.countdown-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.countdown.is-closed .countdown-num {
  display: none;
}
.countdown.is-closed .countdown-text {
  padding-left: 0;
  border-left: 0;
  text-align: center;
}

/* ---------- Page heads ---------- */

.section-head {
  max-width: 820px;
  margin: 0 auto clamp(22px, 4.2vh, 48px);
  text-align: center;
}
.section-head h1 {
  margin-top: clamp(12px, 2vh, 18px);
  font-size: clamp(28px, min(4.4vw, 6vh), 50px);
  letter-spacing: -0.015em;
}
.section-head h1 em {
  font-style: normal;
  background-image: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.section-lead {
  margin-top: clamp(10px, 1.8vh, 18px);
  color: var(--text-2);
  font-size: clamp(15px, 2.1vh, 17px);
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(25, 21, 26, 0.8), rgba(14, 11, 11, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.04),
    0 24px 48px -28px rgba(0, 0, 0, 0.7);
  transition:
    border-color 0.35s ease,
    transform 0.5s var(--ease),
    box-shadow 0.5s ease;
}
/* A soft light that follows the pointer (site.js sets --mx and --my). */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(var(--gold-rgb), 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.card:hover {
  border-color: var(--line-strong);
}
.card:hover::before {
  opacity: 1;
}
.features .card:hover,
.steps .card:hover {
  transform: translateY(-3px);
}

/* ---------- The project ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vh, 18px);
}
.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: clamp(10px, 1.6vh, 14px) 14px;
  padding: clamp(16px, 2.6vh, 26px) clamp(18px, 2vw, 24px);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 0%, rgba(var(--gold-rgb), 0.2), rgba(var(--gold-rgb), 0.04));
  color: var(--gold);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h2 {
  font-size: 17px;
}
.feature p {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: clamp(14px, 1.9vh, 15px);
  line-height: 1.6;
}

/* ---------- Updates ---------- */

.updates-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: clamp(14px, 3vh, 36px);
}
.updates-head {
  margin-bottom: clamp(14px, 2.6vh, 28px);
  text-align: center;
}
.updates-head h1 {
  margin: clamp(10px, 1.6vh, 16px) -0.12em 0 0;
  background-image: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(44, 22, 6, 0.95)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  font-size: clamp(32px, min(6vw, 7.4vh), 72px);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.updates-head .section-lead {
  margin-top: clamp(8px, 1.4vh, 14px);
}
.updates-layout {
  display: grid;
  flex: 1;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  min-height: 0;
}
.rail {
  min-height: 0;
  padding-bottom: 24px;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail-title {
  margin: 12px 0 14px;
  color: var(--faint);
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.rail ol {
  position: relative;
  padding-left: 18px;
}
.rail ol::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.45), rgba(var(--gold-rgb), 0.06));
}
.rail li[hidden] {
  display: none;
}
.rail a {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}
.rail a > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -17px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  transform: rotate(45deg);
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  background: var(--bg);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.rail a small {
  flex: none;
  color: var(--faint);
  font-size: 12px;
}
.rail a:hover {
  color: var(--text);
}
.rail a.is-active {
  background: rgba(var(--gold-rgb), 0.07);
  color: var(--gold-hi);
}
.rail a.is-active::before {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.7);
}
.updates-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters[hidden] {
  display: none;
}
.filter {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 16, 18, 0.6);
  color: var(--text-2);
  font: 500 13px/1 var(--sans);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}
/* The badge's own color, from config.js. */
.filter i {
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--tag, var(--text-2));
}
.filter span {
  margin-left: 6px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.filter:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.filter[aria-pressed="true"] {
  border-color: rgba(var(--gold-rgb), 0.55);
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold-hi);
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 280px);
}
.search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--faint);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 11, 11, 0.75);
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.search input::placeholder {
  color: var(--faint);
}
.search input:focus {
  outline: none;
  border-color: rgba(var(--gold-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.12);
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search-clear {
  position: absolute;
  right: 6px;
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.search.has-value .search-clear {
  display: grid;
}
.result-count {
  margin: 14px 0 12px;
  color: var(--faint);
  font-size: 13px;
}
/* The list scrolls in its panel; the head, filters and versions stay. */
.update-scroll {
  flex: 1;
  min-height: 220px;
  margin: 0 -10px 0 -6px;
  padding: 6px 10px clamp(20px, 4vh, 40px) 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #3a3029 transparent;
}
.update-list {
  display: grid;
  gap: 18px;
}
.entry {
  padding: 28px 30px 26px;
  scroll-margin-top: 12px;
}
.entry[hidden] {
  display: none;
}
.entry.is-entering {
  animation: enter 0.45s var(--ease) backwards;
}
@keyframes enter {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}
.entry.is-target {
  animation: target 2.6s var(--ease);
}
@keyframes target {
  0%,
  35% {
    border-color: rgba(var(--gold-rgb), 0.7);
    box-shadow:
      0 0 0 4px rgba(var(--gold-rgb), 0.12),
      0 24px 48px -28px rgba(0, 0, 0, 0.7);
  }
}
/* An update's picture, from its image in config.js. */
.entry-cover {
  position: relative;
  height: clamp(140px, 22vh, 220px);
  margin: -28px -30px 24px;
  overflow: hidden;
}
.entry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.entry-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 11, 11, 0) 40%, rgba(19, 16, 18, 0.92));
}
.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.version {
  padding: 6px 10px;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.18), rgba(var(--gold-rgb), 0.06));
  color: var(--gold-hi);
  font: 700 12.5px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.entry-head time {
  color: var(--muted);
  font-size: 13px;
}
.badge {
  padding: 5px 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f4d896, #c48f45);
  color: #2a1806;
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.entry-copy {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}
.entry-copy svg {
  width: 17px;
  height: 17px;
}
.entry-copy:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-hi);
}
.entry h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: -0.01em;
}
.entry-summary {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 16px;
}
.notes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-3);
  font-size: 15px;
}
.notes li {
  position: relative;
  padding-left: 22px;
}
.notes li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.85;
}
.entry strong {
  color: var(--text);
  font-weight: 600;
}
.entry h2 a,
.entry-summary a,
.notes a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(var(--gold-rgb), 0.4);
  text-underline-offset: 3px;
}
.entry-section {
  margin-top: 22px;
}
.entry-section h3 {
  color: var(--gold);
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.entry-section .notes {
  margin-top: 12px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* A badge: config.js gives its label and color. */
.tag {
  --tag: var(--text-2);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tag);
  font: 600 10.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@supports (color: color-mix(in srgb, red 10%, transparent)) {
  .tag {
    border-color: color-mix(in srgb, var(--tag) 26%, transparent);
    background: color-mix(in srgb, var(--tag) 8%, transparent);
  }
}
.entry .tags {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(var(--gold-rgb), 0.28);
  color: var(--gold-hi);
}
.empty {
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.empty[hidden] {
  display: none;
}
.empty button {
  margin-left: 6px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* No updates in config.js yet. */
.none {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 560px);
  margin: clamp(8px, 4vh, 48px) auto auto;
  padding: clamp(28px, 6vh, 56px) 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(14, 11, 11, 0.6);
  color: var(--muted);
  text-align: center;
}
.none[hidden] {
  display: none;
}
.none img {
  width: 48px;
  height: 48px;
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(var(--ember-rgb), 0.4));
}
.none-title {
  margin: 18px 0 6px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}
.view-updates.is-empty .updates-layout {
  display: none;
}

/* ---------- How to join ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vh, 18px);
}
.step {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vh, 30px) clamp(18px, 1.8vw, 24px) clamp(18px, 2.8vh, 28px);
}
.step-num {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: clamp(12px, 2.4vh, 24px);
  color: var(--gold-hi);
  font: 600 15px/1 var(--sans);
}
.step-num::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid rgba(var(--gold-rgb), 0.55);
  border-radius: 3px;
  background: rgba(var(--gold-rgb), 0.1);
  box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.15);
  transform: rotate(45deg);
}
.step h2 {
  margin-bottom: 8px;
  font-size: 17px;
}
.step p {
  color: var(--text-3);
  font-size: clamp(14px, 1.9vh, 15px);
}
.step-link,
.step .btn {
  margin-top: 18px;
}
.step-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.step-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.step-link:hover svg {
  transform: translateX(4px);
}
.step .step-note {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(var(--gold-rgb), 0.25);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.join-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  margin-top: clamp(20px, 4vh, 44px);
  text-align: center;
}
.join-foot p {
  max-width: 560px;
  color: var(--text-2);
}
.join-foot b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(14px, 2.4vh, 22px) 4px;
  color: var(--text);
  font: 600 17px/1.4 var(--sans);
  list-style: none;
  cursor: pointer;
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--gold-hi);
}
.faq-item summary i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: auto;
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.4s var(--ease);
}
.faq-item summary i::after {
  transform: rotate(90deg);
}
.faq-item[open] summary i::after {
  transform: rotate(0deg);
}
.faq-body {
  max-width: 720px;
  padding: 0 4px clamp(16px, 2.6vh, 24px);
  color: var(--text-2);
}
.faq-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(var(--gold-rgb), 0.4);
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(222, 184, 120, 0.08);
  background: rgba(8, 6, 6, 0.72);
}
.footer-bar {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 46px;
  padding-block: 8px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.45;
}
.footer-legal {
  flex: 1;
  min-width: 0;
}
.footer-build {
  flex: none;
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Not found ---------- */

/* 404.html, which hosts show at a missing address. */
.lost {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 64px var(--gutter);
  overflow: hidden;
  text-align: center;
}
.lost .hero-art img {
  animation: none;
  transform: scale(1.06);
  opacity: 0.5;
}
.lost-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px var(--gutter);
  text-align: center;
}
.lost-inner img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 26px rgba(var(--ember-rgb), 0.5));
}
.lost-inner h1 {
  margin-top: 26px;
  font-size: clamp(64px, min(14vw, 18vh), 140px);
  letter-spacing: 0.08em;
  line-height: 1;
}
.lost-inner p {
  max-width: 440px;
  margin: 14px 0 34px;
  color: var(--text-2);
  font-size: 17px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  z-index: 80;
  padding: 12px 18px;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: 999px;
  background: rgba(19, 16, 18, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font: 500 14px/1 var(--sans);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition:
    opacity 0.3s ease,
    transform 0.45s var(--ease);
  pointer-events: none;
}
.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reveals, as a page opens (only with scripts) ---------- */

.js [data-reveal]:not(.is-in) {
  opacity: 0;
}
.js [data-reveal].is-in {
  animation: reveal 0.8s var(--ease) backwards;
  animation-delay: calc(0.08s + var(--i, 0) * 70ms);
}
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

/* ---------- Page transitions (to and from 404.html) ---------- */

@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
}

/* ---------- Smaller screens ---------- */

/* Short screens, such as 1366x768 laptops: the pages still fit. */
@media (max-height: 760px) and (min-width: 701px) {
  .view-inner {
    padding-block: 12px;
  }
  .section-head {
    margin-bottom: 18px;
  }
  .section-head h1 {
    margin-top: 10px;
    font-size: clamp(28px, 5.6vh, 40px);
  }
  .section-lead {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
  }
  .features,
  .steps {
    gap: 12px;
  }
  .feature {
    gap: 8px 12px;
    padding: 14px 18px 16px;
  }
  .feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .feature-icon svg {
    width: 18px;
    height: 18px;
  }
  .feature h2,
  .step h2 {
    font-size: 16px;
  }
  .feature p,
  .step p {
    font-size: 14px;
    line-height: 1.55;
  }
  .step {
    padding: 16px 18px;
  }
  .step-num {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    font-size: 14px;
  }
  .step-link,
  .step .btn {
    margin-top: 12px;
  }
  .step .step-note {
    margin-top: 10px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .join-foot {
    margin-top: 16px;
  }
  .home {
    padding-block: 10px 14px;
  }
  .hero-cta {
    margin-top: 20px;
  }
  .hero-meta {
    margin-top: 14px;
  }
  .countdown {
    margin-top: 16px;
  }
  .faq-item summary {
    padding-block: 12px;
    font-size: 16px;
  }
}

@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.3s ease,
      transform 0.4s var(--ease),
      visibility 0s linear 0.4s;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.3s ease,
      transform 0.4s var(--ease),
      visibility 0s;
  }
  .nav-links a {
    padding: 16px 4px;
    border-bottom: 1px solid rgba(222, 184, 120, 0.07);
    font-size: 16px;
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a.is-active {
    color: var(--gold-hi);
  }
  /* The updates page scrolls as a whole; the version list goes. */
  .updates-shell {
    height: auto;
    min-height: 100%;
  }
  .updates-layout {
    display: block;
  }
  .rail {
    display: none;
  }
  .update-scroll {
    min-height: 0;
    margin: 0;
    padding: 0 0 32px;
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .features,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .countdown-note {
    display: none;
  }
  .countdown-title {
    font-size: 14px;
  }
  /* The launcher's version is on the home page. */
  .footer-bar {
    gap: 12px;
    font-size: 11px;
  }
  .footer-build {
    display: none;
  }
  .effects-toggle {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }
  .entry {
    padding: 22px 20px;
  }
  .entry-cover {
    margin: -22px -20px 20px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search {
    width: 100%;
  }
  .toast {
    bottom: 96px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 11px;
    letter-spacing: 0.24em;
  }
  .nav-discord {
    width: 38px;
    padding: 0;
  }
  .nav-discord > span {
    display: none;
  }
  /* Phones: the home page fits too. */
  .home {
    padding: 14px var(--gutter) 16px;
  }
  .wordmark {
    margin-top: 8px;
  }
  .hero-sub {
    margin-top: 10px;
  }
  .divider {
    margin-top: 12px;
  }
  .hero-lead {
    margin-top: 14px;
  }
  .hero-meta {
    gap: 8px;
    margin-top: 16px;
  }
  .chip {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
  }
  .chip-link {
    padding-left: 4px;
  }
  .countdown {
    margin-top: 16px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
  }
  .hero-cta .framed,
  .hero-cta .btn,
  .join-foot .framed {
    width: 100%;
  }
  .framed .btn {
    flex: 1;
  }
  .btn-lg {
    --h: 52px;
    padding: 0 20px;
    font-size: 13px;
    letter-spacing: 0.2em;
  }
  .btn-lg > span {
    margin-right: -0.2em;
  }
  .countdown {
    gap: 12px;
    padding: 10px 14px;
  }
  .countdown-text {
    padding-left: 12px;
  }
  .join-foot .framed {
    max-width: 340px;
  }
}

/* ---------- The Effects switch, as on the launcher ---------- */

.effects-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 11, 11, 0.62);
  color: var(--text-3);
  font: 500 12.5px/1 var(--sans);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.effects-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.effects-toggle img {
  width: 14px;
  height: 14px;
}
.effects-toggle i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.effects-toggle[aria-pressed="true"] i {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.8);
}

/* With Effects off: no embers, lightning, glints, drift, reveals or fades. */
.no-effects,
.no-effects .update-scroll {
  scroll-behavior: auto;
}
.no-effects *,
.no-effects *::before,
.no-effects *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
}
.no-effects .view {
  transform: none !important;
  transition: none !important;
}
.no-effects .hero-art img {
  animation: none;
  transform: scale(1.06);
}
.no-effects::view-transition-old(root),
.no-effects::view-transition-new(root) {
  animation: none;
}
