:root, :host {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #fff7fb;
  background: #110d19;
  --home-surface: #382d40e8;
  --muted: #c9bacc;
  --line: rgb(255 225 244 / .15);
  --sunset: linear-gradient(105deg, #ffd1ab, #ffa5c5 57%, #cca5ff);
}

*, *::before, *::after { box-sizing: border-box; }
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html:has(> body.home-page) { scroll-behavior: auto; }
@media (forced-colors: none) {
  @supports selector(::-webkit-scrollbar) {
    ::-webkit-scrollbar { width: .75rem; height: .75rem; }
    ::-webkit-scrollbar-track {
      border-radius: 999px;
      background: linear-gradient(var(--scroll-track-angle, 180deg), #b18ac941, #9974b036 31%, #74548f38 72%, #9e78bc3b);
      box-shadow: inset 0 0 0 1px #be94da2b, inset 0 0 .28rem #a37abf2a;
    }
    ::-webkit-scrollbar-track:vertical { --scroll-track-angle: 90deg; }
    ::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: linear-gradient(var(--scroll-thumb-angle, 90deg), #c79281, #bf82a2 57%, #a88ac8) padding-box;
    }
    ::-webkit-scrollbar-thumb:vertical { --scroll-thumb-angle: 180deg; }
    ::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(var(--scroll-thumb-angle, 90deg), #d09d8d, #ca90af 57%, #b098cf) padding-box;
    }
    ::-webkit-scrollbar-corner { background: transparent; }
  }
  @supports not selector(::-webkit-scrollbar) {
    :root { scrollbar-color: #bc88b0 #46334f; }
    :where(*) { scrollbar-width: thin; }
  }
}
body {
  margin: 0;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 12% 32%, #392151 0%, transparent 55%),
    radial-gradient(ellipse at 88% 73%, #3d2039 0%, transparent 56%);
}
.site-background {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #ffccdf; outline-offset: 4px; }
button, input, select { color: inherit; font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { opacity: .65; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.page { max-width: 1550px; margin-inline: auto; padding: clamp(.65rem, 1.75vw, 1.65rem); }
.page:has(> .site-header) { padding-block-start: 0; }
.home-page > .page { padding-block-end: 0; }
.slide {
  border: 1px solid var(--line);
  border-radius: clamp(1.45rem, 2.8vw, 2.6rem);
}
.home-sections > section + section { margin-block-start: 1rem; }
.home-sections > section, .project-roadmap, #pc-port { scroll-margin-block-start: 5.5rem; }
.hero, .story-backdrop {
  position: relative;
  isolation: isolate;
}
.hero {
  display: grid;
  align-content: safe center;
  overflow: clip;
  background: #21162b43;
  box-shadow: 0 1.75rem 5.5rem #07050d62;
}
.hero { min-height: clamp(27rem, 57vw, 45rem); }
.hero-image, :is(.hero, .story-backdrop)::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-image { z-index: -2; object-fit: cover; object-position: 58% 60%; opacity: .86; }
.hero::after {
  content: '';
  z-index: -1;
  background:
    linear-gradient(90deg, #100b19fc 0%, #100b19ed 36%, #100b19a8 68%, #100b1959 100%),
    linear-gradient(180deg, #100b19d9 0%, transparent 30%, #100b1938 60%, #100b19c2 100%);
}

.site-header {
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .1rem clamp(.55rem, 2.15vw, 2rem);
  position: sticky;
  inset-block-start: 0;
  margin-block-end: clamp(.7rem, 1.4vw, 1.15rem);
  border-radius: 0 0 .85rem .85rem;
  background: var(--home-surface);
  backdrop-filter: blur(14px);
}
.glass {
  border: 1px solid #fff0f349;
  border-radius: 100vmax;
  background: linear-gradient(145deg, #fff4ff27, #db9dd015 48%, #31213c72);
  box-shadow: inset 0 1px 1px #ffedf73b, 0 .4rem 1.4rem #120d1a34;
  backdrop-filter: blur(18px) saturate(150%);
}
.nav-rail, .nav-sections { display: contents; }
.nav-arrow { display: none; }
.nav {
  grid-area: 1 / 1;
  display: flex;
  justify-content: center;
  justify-self: center;
  gap: .17rem;
  max-width: 100%;
  padding: .25rem;
}
.nav a, .account-button, .connect-button {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-height: 2.65rem;
  padding: .45rem .87rem;
  border-radius: 100vmax;
  color: #fff5fa;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover, .account-button:hover { background: #fff0f92b; }
.nav a { gap: .35rem; padding-inline: .55rem; font-size: .86rem; }
.nav-sections > a { min-width: 0; }
.nav a[aria-current] { background: #fff0f927; color: #fff; }
.nav svg, .account-button svg, .connect-button svg, .dialog-close svg {
  flex: none;
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav svg { width: 1.25rem; }
.site-header :is(.account-button, .connect-button) svg { width: 1.35rem; }
.social-links {
  display: flex;
  flex: none;
  align-items: center;
  gap: .1rem;
  padding-inline-start: .3rem;
  border-inline-start: 1px solid var(--line);
}
.nav .social-links a { justify-content: center; padding-inline: .48rem; }
.social-icon { display: block; width: var(--social-icon-size, 2.6rem); aspect-ratio: 1; object-fit: contain; flex: none; }
.social-icon[src="/service-icons/youtube.png"] { transform: scale(2); pointer-events: none; }
img:is([src="/service-icons/discord.jpg"], [src="/service-icons/telegram.svg"]) { border-radius: 22%; }
img[src="/service-icons/steam.png"] { filter: brightness(0) invert(1); }
.social-links span { display: none; }
.header-back { display: none; }
.header-actions { grid-area: 1 / 2; display: flex; align-items: center; justify-self: end; gap: .55rem; }
.nav-toggle { display: none; }
.site-language { position: relative; flex: none; z-index: 2; }
.language-button, .nav-toggle {
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  padding: .35rem .6rem;
  color: #fff5fa;
  font-size: .8rem;
  font-weight: 650;
  cursor: pointer;
}
.language-button { display: flex; min-width: 2.55rem; padding-inline: .45rem; list-style: none; }
.language-button::-webkit-details-marker { display: none; }
.language-button:hover, .language-button:focus-visible, .nav-toggle:hover { background-color: #fff0f927; }
.language-button:focus-visible { outline: 2px solid #ffccdf; outline-offset: 3px; }
.language-button svg, .language-search svg, .nav-toggle svg, .nav-arrow svg {
  flex: none;
  width: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header :is(.language-button, .nav-toggle, .nav-arrow) svg { width: 1.2rem; }
.language-button img, .language-options img { flex: none; border-radius: .12rem; object-fit: cover; }
.language-panel {
  position: absolute;
  top: calc(100% + .55rem);
  inset-inline-end: 0;
  display: grid;
  gap: .6rem;
  width: min(16rem, calc(100vw - 5rem));
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #271a32;
  box-shadow: 0 .75rem 2.5rem #0d071cd6;
}
.language-heading { display: flex; justify-content: space-between; gap: .4rem; font-size: .9rem; font-weight: 700; }
.language-total { color: var(--muted); font-variant-numeric: tabular-nums; }
.language-search { position: relative; display: block; }
.language-search svg { position: absolute; top: .62rem; left: .55rem; color: var(--muted); pointer-events: none; }
.language-search input {
  width: 100%;
  min-height: 2.25rem;
  padding: .35rem .5rem .35rem 1.85rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #1b1326;
  font-size: 1rem;
}
.language-options { display: grid; gap: .2rem; max-height: min(50dvh, 23rem); overflow: auto; margin: 0; padding: 0 .15rem; list-style: none; }
.language-options a { display: flex; align-items: center; gap: .5rem; padding: .5rem; border-radius: .5rem; font-size: .9rem; }
.language-options a:hover, .language-options a[aria-current] { background: #fff0f927; }
.language-options span, .language-empty { color: var(--muted); font-size: .8rem; }
.account { position: relative; display: flex; align-items: center; gap: .35rem; }
.account-button, .connect-button { min-height: 2.75rem; padding-inline: 1rem; }
.account .account-logout { width: 2.75rem; justify-content: center; padding-inline: 0; }
.account-link[aria-current="page"] { background-color: #fff0f927; }
.connect-button {
  border: 1px solid #ffe3e8;
  background: var(--sunset);
  color: #251223;
  font-weight: 750;
}
.connect-button:hover { filter: brightness(1.09); }
.account-message {
  position: absolute;
  z-index: 1;
  right: 0;
  top: calc(100% + .5rem);
  width: min(75vw, 15rem);
  padding: .72rem .9rem;
  border-radius: .9rem;
  background-color: #261931;
  font-size: .88rem;
}
.server {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.65rem;
  padding: .42rem .92rem;
  color: #faeef5;
  font-size: .84rem;
  font-weight: 600;
  margin-top: 1.4rem;
}
.server-dot { width: .47rem; height: .47rem; flex: none; border-radius: 50%; background: #e4c2d6; }
.server[data-state='online'] .server-dot { background: #a4efc4; box-shadow: 0 0 .75rem #a4efc481; }
.server[data-state='offline'] .server-dot { background: #ffb4a0; }

.hero-content {
  width: min(100%, 60rem);
  padding: clamp(1.35rem, 5dvh, 4rem) clamp(1.35rem, 6.7vw, 6.5rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.18rem;
  color: #ffd8e6;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.9rem; height: 2px; border-radius: 1px; background: var(--sunset); }
.hero-logo {
  display: block;
  width: clamp(9rem, min(26vw, 38dvh), 22rem);
  max-width: 100%;
  height: auto;
}
.hero-description {
  max-width: 26rem;
  margin-top: 1.65rem;
  color: #f3e1e9;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.55;
}
.wiki-inline-link { color: #ffc5e0; text-decoration: underline; text-underline-offset: .2em; }
.home-pitch { max-width: 58ch; }
.home-pitch strong { color: #ffd1e2; font-weight: 750; }
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.75rem;
  padding: .65rem 1.3rem;
  border: 1px solid #ffe3e8;
  border-radius: .85rem;
  background: var(--sunset);
  box-shadow: 0 .45rem 1.6rem #e07bc437;
  color: #251223;
  font-size: .96rem;
  font-weight: 750;
}
.hero-link:hover { filter: brightness(1.09); }
.apply-link { display: inline-flex; align-items: center; gap: .35rem; }
.apply-link svg {
  flex: none; width: 1.15rem; height: 1.15rem; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}

.story {
  display: grid;
  align-content: safe center;
  background: radial-gradient(ellipse at 90% 0%, #3a244777, transparent 65%), #19122172;
}
.slide-content { width: min(100%, 84rem); margin-inline: auto; padding: clamp(1.1rem, 6vw, 5rem); }
.story h2, .hero h2 { font-size: clamp(2rem, min(5vw, 10dvh), 4.5rem); line-height: 1.02; letter-spacing: -.065em; }

.hero.world-hero { min-block-size: 0; align-content: safe center; }
.hero.world-hero::after { background: linear-gradient(180deg, #100b19f5, #100b19c7 45%, #100b19fa); }
.world-content {
  --catalog-padding: clamp(.75rem, 2vw, 1.25rem);
  --catalog-background: #1b1327ed;
  display: grid;
  gap: clamp(.75rem, 2.5dvh, 1.55rem);
  width: min(100%, 88rem);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(.85rem, 3.5dvh, 2.5rem) clamp(.85rem, 4vw, 3.5rem);
}
.server-directory, .server-missions {
  display: grid;
  gap: clamp(.55rem, 1.6vw, 1rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.server-directory-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1rem;
}
.server-directory-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  font-weight: 650;
  white-space: nowrap;
}
.server-directory-link:hover { background-color: #6f476e70; }
.server-directory-link svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.server-type {
  --server-accent: #ff9ebd;
  --server-glow: #ff72952b;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.65rem, 1.75vw, 1.2rem);
  min-block-size: 7.6rem;
  padding: clamp(.8rem, 2vw, 1.5rem);
  min-inline-size: 0;
  border: 1px solid color-mix(in srgb, var(--server-accent) 33%, transparent);
  border-radius: 1.15rem;
  background: radial-gradient(ellipse at 0% 0%, var(--server-glow), transparent 80%), #211629;
  box-shadow: inset 0 1px 1px #ffe8f421, 0 .6rem 1.4rem #0e07185c;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.server-type[data-server-mode='pve'] { --server-accent: #b9e9d9; --server-glow: #77d6c025; }
.server-type[data-server-mode='rp'] { --server-accent: #d9b7ff; --server-glow: #bf8fff35; }
.server-type:is(:hover, [aria-current]) {
  border-color: var(--server-accent);
  background-color: #30203c;
  box-shadow: inset 0 1px 1px #ffe8f436, 0 0 1.15rem var(--server-glow);
}
.server-type:focus-visible, .server-panel-heading a:focus-visible { outline-offset: 3px; }
.server-type > svg {
  display: block;
  inline-size: clamp(2.3rem, 4.9vw, 4.2rem);
  padding: clamp(.35rem, .65vw, .65rem);
  border: 1px solid color-mix(in srgb, var(--server-accent) 32%, transparent);
  border-radius: .8rem;
  background: var(--server-glow);
  fill: none;
  stroke: var(--server-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.server-type::after {
  inline-size: .5rem;
  block-size: .5rem;
  border: solid var(--server-accent);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
  content: '';
}
.server-type[aria-expanded='true']::after { rotate: 225deg; }
.server-type > span { display: grid; gap: .25rem; min-inline-size: 0; }
.server-type strong { font-size: clamp(1.4rem, 2.7vw, 2.1rem); line-height: 1.05; }
.server-type span span, .server-panel p { color: var(--muted); line-height: 1.42; }
.server-panel { overflow-anchor: none; }
.server-panel, .server-panel-heading { min-inline-size: 0; scroll-margin-block-start: 5.5rem; }
.server-panel { display: grid; gap: .9rem; }
.server-panel.section-panel { padding: var(--catalog-padding); background: var(--catalog-background); }
.server-panel-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem .9rem; }
.server-panel-heading h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
.server-panel-heading a { color: #ffc6e6; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; }
.server-missions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.server-missions > div { display: grid; gap: .35rem; align-content: start; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; }

@media (max-width: 620px) {
  .server-directory, .server-missions { grid-template-columns: minmax(0, 1fr); }
  .server-type { min-block-size: 4.5rem; }
}

.world-business {
  min-width: 0; scroll-margin-block-start: 5.5rem;
  border: 1px solid var(--line); border-radius: 1.15rem; background: var(--catalog-background);
}
.world-business > summary {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  min-height: 3.75rem; padding: .85rem var(--catalog-padding);
  border-radius: inherit; list-style: none; cursor: pointer;
}
.world-business[open] > summary { min-height: 0; padding-block-end: .5rem; }
.world-business > summary::-webkit-details-marker { display: none; }
.world-business > summary:hover h4 { color: #ffc7de; }
.world-business > summary:focus-visible { outline: 2px solid #ffccdf; outline-offset: 2px; }
.world-business > summary h4 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.world-business > summary::after {
  flex: none; width: .6rem; height: .6rem; margin-inline-end: .25rem;
  border: solid #ffc7de; border-width: 0 2px 2px 0; transform: rotate(45deg); content: '';
}
.world-business[open] > summary::after { transform: rotate(225deg); }
.world-business .role-card { --role-accent: #ffd2ab; }
.role-catalog.section-panel {
  --catalog-heading-size: clamp(1.025rem, 1.48vw, 1.275rem);
  display: grid;
  gap: .8rem;
  min-width: 0;
  padding: var(--catalog-padding);
  background: var(--catalog-background);
}
.world-business > .role-catalog.section-panel {
  padding-block-start: 0; border: 0; border-radius: 0; background: none;
}
.role-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .7rem;
  scroll-margin-block-start: 6.5rem;
}
.role-search { display: grid; gap: .3rem; min-width: 0; }
.role-search label { font-size: .85rem; font-weight: 650; color: #ffe0ee; }
.role-search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #ffe1f244;
  border-radius: .7rem;
  background: #291d35;
}
.role-search-field:focus-within { border-color: #e3aacf; box-shadow: 0 0 0 2px #e7a8cf29; }
.role-search-field input {
  width: 100%; min-width: 0; padding: .5rem .7rem;
  border: 0; border-radius: inherit; outline: none; background: transparent; font-size: 1rem;
}
.role-search-field input:focus-visible { outline: 2px solid transparent; outline-offset: -2px; }
.role-search-button {
  display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0;
  border: 0; border-inline-start: 1px solid #ffe1f23b;
  border-start-end-radius: .64rem; border-end-end-radius: .64rem;
  background: linear-gradient(145deg, #53375d, #382845);
  color: #fff;
}
.role-search-button:hover { background: linear-gradient(145deg, #65456d, #443150); }
.role-search-button:focus-visible { outline-offset: -3px; }
.role-search-button svg { width: 1.2rem; height: 1.2rem; }
.role-search-status {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
@media (min-width: 761px) {
  .role-tools { grid-template-columns: minmax(0, 1fr) clamp(28rem, 51%, 34rem) minmax(0, 1fr); }
  .role-search {
    grid-column: 2;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
  }
  .role-search label {
    color: inherit;
    font-size: var(--catalog-heading-size);
    font-weight: 760;
    line-height: 1.13;
    letter-spacing: -.018em;
  }
  .role-back { grid-column: 3; }
}
@media (761px <= width < 980px) {
  .role-back { grid-column: 2; grid-row: 2; }
}
.character-search {
  width: 100%; min-width: 0; min-height: 2.8rem; padding: .5rem .7rem; border: 1px solid #ffe1f244;
  border-radius: .7rem; background: #291d35; font-size: 1rem; font-weight: 400;
}
.role-back {
  display: inline-flex; justify-self: start; align-items: center; gap: .45rem; min-height: 2.8rem;
  padding: .5rem .8rem; border: 1px solid #ffe1f244; border-radius: .7rem; background: #352641; font-weight: 650;
}
.role-back:hover { background: #4b3557; }
.role-back svg { width: 1.1rem; height: 1.1rem; }
.role-back:dir(rtl) svg { transform: scaleX(-1); }
.role-card-carousel { position: relative; isolation: isolate; min-width: 0; }
.role-card-carousel:has(> .role-card-grid[hidden]) { display: none; }
.role-card-carousel > .role-card-grid { position: relative; z-index: 1; }
.role-card-ambient {
  position: absolute; inset: 0 auto auto 0; pointer-events: none;
  filter: blur(1.65rem) saturate(155%);
  transform: scale(1.18);
  opacity: 0;
  transition: opacity .4s ease;
}
.role-card-ambient[data-ambient-active] { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .role-card-ambient { transition: none; }
}
.role-card-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(12.75rem, 20vw, 14.25rem);
  gap: clamp(.55rem, 1.2vw, .95rem);
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: .35rem;
  padding: .4rem .35rem .65rem;
}
.role-card-grid[tabindex]:focus-visible { outline: 2px solid #ffccdf; outline-offset: -2px; border-radius: .85rem; }
.role-card {
  --role-accent: #ffc2de;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 80% 12%, color-mix(in srgb, var(--role-accent) 23%, transparent), transparent 70%), #281c35;
  scroll-snap-align: start;
}
.role-card-select {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  justify-items: start;
  gap: .42rem;
  width: 100%;
  height: 100%;
  padding: clamp(.72rem, 1.4vw, 1.15rem);
  border: 0;
  border-radius: inherit;
  background: none;
  text-align: start;
}
.role-card:is(:focus-within, [data-video-open]) { border-color: var(--role-accent); }
.role-card-select:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .role-card { transition: transform 180ms ease; }
  .role-card:not([data-video-open]):hover {
    z-index: 1;
    transform: scale(1.018);
    border-color: #ffb7d8;
    animation: role-card-glow 2.5s ease-in-out infinite alternate;
  }
}
@keyframes role-card-glow {
  from { border-color: #ffb7d8; box-shadow: 0 0 .38rem #ff9ebe40; }
  to { border-color: #c8a5ff; box-shadow: 0 0 .6rem #c197ff70; }
}
.role-card:last-child { scroll-snap-align: end; }
.role-card[data-role-filter="marine"] { --role-accent: #83e6e3; }
.role-card[data-role-filter="aviation"] { --role-accent: #bac9ff; }
.role-card[data-role-filter="sport"] { --role-accent: #ffcd91; }
.role-card-art, .role-card-select:has(.role-card-art)::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.role-card-art { z-index: -2; object-fit: cover; object-position: center 42%; }
.role-card-select:has(.role-card-art)::before {
  z-index: -1;
  background: linear-gradient(180deg, #150d2059, #150d204d 32%, #150d20f5 64%, #150d20);
  content: '';
}
.role-card-select > .role-card-icon {
  box-sizing: content-box;
  align-self: center; justify-self: center;
  width: clamp(2.65rem, 4.5vw, 3.7rem); height: auto; aspect-ratio: 1; padding: .68rem;
  border: 1px solid color-mix(in srgb, var(--role-accent) 30%, transparent);
  border-radius: 1rem; background: #20152dd9; color: var(--role-accent);
}
.role-card-select:has(.role-card-art) > .role-card-icon {
  align-self: start; justify-self: start; width: 1.4rem; padding: .42rem; border-radius: .7rem;
}
.role-catalog-svg-defs { position: absolute; pointer-events: none; }
.role-card[data-role-shorts] { --role-icon-inset: .65rem; --role-icon-size: 2.5rem; }
.role-card[data-role-shorts] .role-card-select { padding-block-start: var(--role-icon-inset); }
.role-card[data-role-shorts] .role-card-select > .role-card-icon {
  box-sizing: border-box;
  align-self: start; justify-self: start;
  width: var(--role-icon-size); height: var(--role-icon-size); padding: .55rem; border-radius: .7rem;
}
.role-card-name { font-size: clamp(.98rem, 1.45vw, 1.23rem); font-weight: 750; line-height: 1.18; }
.role-card-description { color: #e8d9ec; font-size: .83rem; line-height: 1.36; }
.role-card-count { color: var(--role-accent); font-size: .8rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.role-catalog .role-card {
  --role-icon-inset: .75rem;
  --role-icon-size: 2.5rem;
  background: radial-gradient(ellipse at 76% 17%, color-mix(in srgb, var(--role-accent) 17%, transparent), transparent 58%), #23182f;
}
.role-catalog .role-card-select {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: var(--role-icon-inset) clamp(.75rem, 1.25vw, .95rem) .72rem;
}
.role-catalog .role-card-select:has(.role-card-art)::before {
  background: linear-gradient(180deg, #150d2085, #150d2038 25%, #150d2073 41%, #150d20ed 63%, #150d20fa 83%, #150d20);
}
.role-catalog .role-card-select > .role-card-icon {
  box-sizing: border-box;
  position: absolute; inset-block-start: var(--role-icon-inset); inset-inline-start: var(--role-icon-inset);
  width: var(--role-icon-size); height: var(--role-icon-size); padding: .5rem;
  border-radius: .72rem;
  background: linear-gradient(145deg, #4f3659db, #241831e8);
  box-shadow: inset 0 1px #ffe8ff24, 0 .25rem .8rem #0b061c28;
}
.role-catalog .role-card-video-toggle {
  border-radius: .72rem;
  background: linear-gradient(145deg, #4f3659db, #241831e8);
  box-shadow: inset 0 1px #ffe8ff24, 0 .25rem .8rem #0b061c28;
}
.role-catalog .role-card-video-toggle:hover { background: #513555; }
.role-card-copy {
  grid-row: 2;
  display: grid;
  gap: .38rem;
  width: 100%;
  min-width: 0;
}
.role-card-copy .role-card-name {
  font-size: var(--catalog-heading-size);
  line-height: 1.13;
  font-weight: 760;
  letter-spacing: -.018em;
  text-shadow: 0 1px .5rem #100819a6;
}
.role-card-copy .role-card-description {
  block-size: 2lh;
  font-size: .82rem;
  line-height: 1.36;
  text-wrap: balance;
}
.role-card-copy .role-card-count {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: .45rem;
  min-height: 1.8rem; padding-block-start: .36rem;
  color: #e8cfeb;
}
.role-card-copy .role-card-count::before {
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, #e6b4e343, #dca3de13);
  content: '';
}
.role-card-number {
  display: grid; place-items: center;
  min-width: 1.6rem; min-height: 1.35rem; padding-inline: .34rem;
  border: 1px solid color-mix(in srgb, var(--role-accent) 24%, transparent);
  border-radius: 99rem;
  background: color-mix(in srgb, var(--role-accent) 9%, transparent);
  color: var(--role-accent);
}
.world-business .role-card-copy .role-card-name { min-block-size: 2lh; }
.world-business .role-card-copy .role-card-description { block-size: 3lh; }
.role-card-video-toggle {
  position: absolute;
  inset-block-start: var(--role-icon-inset);
  inset-inline-end: var(--role-icon-inset);
  display: grid;
  place-items: center;
  width: var(--role-icon-size);
  height: var(--role-icon-size);
  padding: 0;
  border: 1px solid #ffb8c766;
  border-radius: .7rem;
  background: #21152beb;
}
.role-card-video-toggle:hover { background: #38253e; }
.role-card-video-toggle svg { width: 1.3rem; height: 1.3rem; }
.role-card-player {
  position: absolute;
  inset: 0;
  background: #17101f;
}
.role-card[data-video-open] { border-color: #e8b7e46b; }
.role-card-player-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .8rem;
  padding: .45rem .55rem; border: 1px solid var(--line); border-radius: .75rem; background: #20162b;
}
.role-card-player-top { display: flex; align-items: flex-start; gap: .35rem; min-width: 0; }
.role-card-player-heading { display: flex; align-items: center; min-width: 0; gap: .4rem; }
.role-card-player-icon { flex: none; color: #ffc2de; }
.role-card-player-icon svg { display: block; width: 1.1rem; height: 1.1rem; }
.role-card-player-title { font-size: .82rem; font-weight: 750; line-height: 1.2; }
.role-card-video-close {
  display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  border: 0; border-radius: .5rem; background: #fff0f910;
}
.role-card-video-close:hover { background: #fff0f929; }
.role-card-video-close svg { width: 1rem; height: 1rem; }
.role-card-player-frame, .role-card-frame-toggle { position: absolute; inset: 0; }
.role-card-frame-toggle { width: 100%; padding: 0; border: 0; border-radius: inherit; background: none; }
.role-card-frame-toggle:focus-visible { outline-offset: -4px; z-index: 1; }
.role-card-player-frame :is(video, iframe) {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: contain;
}
.role-card-player-actions { display: flex; align-items: center; gap: .35rem; max-width: 100%; }
.role-card-player-tools:not([data-native-controls]) .role-card-volume,
.role-card-clip-control:not([data-muted]) .role-clip-sound-off,
.role-card-clip-control[data-muted] .role-clip-sound-on { display: none; }
.role-card-volume { position: relative; flex: none; }
.role-card-clip-control {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0;
  border: 0; border-radius: .45rem; background: #fff0f914; color: #ffdeed;
}
.role-card-clip-control:hover { background: #fff0f92e; }
.role-card-clip-control svg { width: 1.1rem; height: 1.1rem; }
.role-card-volume-panel {
  position: absolute; z-index: 2; inset-block-start: 100%; inset-inline-start: 0;
  display: grid; align-items: center; width: 8rem; min-height: 2rem; padding: .32rem .55rem;
  border: 1px solid #e8b7e46b; border-radius: .55rem; background: #322440; box-shadow: 0 .4rem 1.2rem #100818a0;
}
.role-card-volume-panel input { width: 100%; margin: 0; accent-color: #f5bce5; cursor: pointer; }
.role-card-player-select {
  min-height: 2.1rem; padding: .3rem .55rem;
  border: 0; border-radius: .5rem; background: var(--sunset); color: #251724; font-size: .85rem; font-weight: 750;
}
.role-card-player-select:hover { filter: brightness(1.08); }
.role-card-player-tools[data-native-controls] {
  position: absolute; z-index: 2; inset: 0;
  flex-flow: column nowrap; align-items: stretch;
  padding: .45rem; border: 0; background: transparent; pointer-events: none;
  transition: opacity .36s ease;
}
.role-card-player-tools[data-native-controls]::before {
  position: absolute; z-index: -1;
  inset: 0 0 auto; height: 17%;
  background: linear-gradient(180deg, #150d20 0%, #150d20 85%, #150d2000 100%);
  pointer-events: none;
  content: '';
}
.role-card-player-tools[data-native-controls] :is(button, .role-card-volume) { pointer-events: auto; }
.role-card-player-tools[data-native-controls][data-tools-hidden] { opacity: 0; }
.role-card-player-tools[data-native-controls][data-tools-hidden] :is(button, .role-card-volume) { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .role-card-player-tools[data-native-controls] { transition: none; }
}
.role-card-player-tools[data-native-controls] .role-card-player-heading {
  flex: 1; min-height: 2rem; padding: .34rem .42rem;
}
.role-card-player-tools[data-native-controls] .role-card-player-title {
  font-size: .8rem; text-shadow: 0 1px .3rem #25152b;
}
.role-card-player-tools[data-native-controls] .role-card-player-select {
  flex: 1; padding-inline: .4rem;
  color: #fff6fb;
}
.role-card-player-tools[data-native-controls] .role-card-volume-panel {
  inset-block-start: auto;
  inset-block-end: 100%;
}
.role-card-player-tools[data-native-controls] .role-card-glass,
.role-card-paused-indicator {
  border: 1px solid #ffd5f28c;
  background: linear-gradient(145deg, #ffe6f340, #cc9ce422 40%, #4e316332), #1b10269c;
  box-shadow: inset 0 1px #fff0fb4d, 0 .25rem .8rem #160a2380;
  -webkit-backdrop-filter: blur(10px) saturate(145%);
  backdrop-filter: blur(10px) saturate(145%);
}
.role-card-player-tools[data-native-controls] .role-card-player-select.role-card-glass {
  background: linear-gradient(110deg, #ffccab79, #f592c15c 54%, #b88bea79), #2819348c;
}
.role-card-player-tools[data-native-controls] button.role-card-glass:hover { filter: brightness(1.12); }
.role-card-paused-indicator {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: none; place-items: center; width: 3.25rem; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
}
.role-card-frame-toggle[data-clip-paused] .role-card-paused-indicator { display: grid; }
.role-card-paused-indicator::before {
  width: .88rem; height: 1.02rem; border-radius: .14rem;
  background: linear-gradient(90deg, #fff3fb 30%, transparent 30% 70%, #fff3fb 70%);
  content: '';
}
.role-results, .role-result-list { display: grid; align-content: start; gap: .55rem; min-width: 0; }
.role-results:focus-visible { outline: 2px solid #ffccdf; outline-offset: 2px; }
.role-video-pending { padding: .55rem .8rem; color: var(--muted); font-size: .85rem; }
.role-category { min-width: 0; padding-inline: .8rem; border: 1px solid var(--line); border-radius: .85rem; background: #271c34; }
.role-category summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .6rem;
  min-height: 2.8rem; list-style: none; cursor: pointer;
}
.role-category summary::-webkit-details-marker { display: none; }
.role-category summary::after {
  width: .45rem; height: .45rem; border: solid #ffbdd9; border-width: 0 2px 2px 0;
  transform: rotate(45deg); content: '';
}
.role-category[open] summary::after { transform: rotate(225deg); }
.role-category-name { min-width: 0; font-weight: 700; }
.role-category-count { color: #ffc7de; font-size: .82rem; font-variant-numeric: tabular-nums; }
.role-category p { color: var(--muted); font-size: .87rem; line-height: 1.4; }
.role-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .4rem; margin: .6rem 0 .8rem; padding: 0; list-style: none;
}
.role-list li { min-width: 0; padding: .42rem .55rem; border-radius: .48rem; background: #352641; color: #fff0fa; font-size: .88rem; }
.role-empty { padding: .6rem; color: var(--muted); }


.story > :is(.section-stack, .application-layout) { width: min(100%, 75rem); padding-block: clamp(1.2rem, 5dvh, 4.25rem); }
.section-stack { display: grid; gap: clamp(1rem, 3dvh, 2rem); }
.story-backdrop {
  --backdrop-direction: 90deg;
  background: #191221;
}
.story-backdrop:dir(rtl) { --backdrop-direction: 270deg; }
.story-backdrop > .hero-image { border-radius: inherit; object-position: center; opacity: 1; }
.story-backdrop::after {
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(var(--backdrop-direction), #100b19f7, #100b19e8 43%, #100b19c2 69%, #100b1978);
  content: '';
}
.story-backdrop > .section-stack { grid-template-columns: minmax(0, 46rem); }
.story-backdrop.project-slide::after { background: #100b19c7; }
.story-backdrop.project-slide > .hero-image { object-position: 42% center; }
.project-slide #project-title { text-shadow: 0 .08em .11em #24122e, 0 .12em .35em #24122e; }
.project-slide > .section-stack { grid-template-columns: minmax(0, 1fr); gap: clamp(.85rem, 2.7dvh, 1.65rem); }
.project-slide .section-copy p { max-width: 56rem; }
.project-roadmap, .project-recruitment {
  padding: clamp(.8rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #1b1225d9;
}
.project-roadmap h3, .project-recruitment h3 { font-size: clamp(1.16rem, 2.4vw, 1.6rem); }
.project-recruitment { display: flex; align-items: center; justify-content: space-between; gap: .85rem; }
.project-recruitment p { margin-top: .35rem; color: var(--muted); }
.project-recruitment ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: 0; margin: .5rem 0 0; list-style: none; }
.project-recruitment li { display: inline-flex; align-items: center; gap: .4rem; }
.project-recruitment li::before { flex: none; width: .3rem; height: .3rem; border-radius: 50%; background: #ffc4de; content: ''; }
.project-recruitment .hero-link { flex: none; justify-content: center; margin: 0; }
.story-backdrop :is(h1, h2, #profile-status) { text-shadow: 0 .12rem .6rem #120b19; }
.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.1rem, 5vw, 4.5rem);
}
.section-copy { display: grid; gap: .95rem; }
.section-copy p { max-width: 30rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.55; }
.section-panel {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: linear-gradient(150deg, #fff0fa0c, #0c07152b);
}
.story-backdrop .section-panel { background-color: #1b1225d4; }
.testing-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .95rem; padding: clamp(1rem, 3vw, 1.75rem); }
.application-slide {
  position: relative;
  isolation: isolate;
  background: #160e2050;
}
.application-slide::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, #100b19f2, #100b19c7 56%, #100b19a6);
  content: '';
}
.application-slide .application-backdrop { border-radius: inherit; opacity: 1; object-position: center; }
.application-slide .testing-form { background: #21172ced; }
.testing-form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; font-weight: 600; }
.testing-form input:not([type='radio']), .testing-form textarea, .testing-form select {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .55rem .75rem;
  border: 1px solid #ffe1f244;
  border-radius: .65rem;
  background: #1b1326;
  font-size: 1rem;
  font-weight: 400;
}
.testing-form textarea { resize: vertical; min-height: 4.5rem; font-family: inherit; }
.contact-methods { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-methods legend { padding: 0; margin-block-end: .4rem; font-weight: 600; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.contact-option { position: relative; min-width: 0; cursor: pointer; }
.contact-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.contact-choice {
  display: flex; align-items: center; gap: .45rem; min-height: 2.55rem; padding: .3rem .55rem;
  border: 1px solid var(--line); border-radius: .65rem; background: #ffffff0c;
  font-size: .88rem; line-height: 1.2; overflow-wrap: normal;
}
.contact-choice img { width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; object-fit: contain; }
.contact-choice img[src="/service-icons/mail.svg"] { filter: invert(1); }
.contact-option:hover .contact-choice { background: #ffffff18; }
.contact-option input:checked + .contact-choice {
  border-color: #fca5d4; background: #fca5d429; box-shadow: inset 0 0 0 1px #fca5d4;
}
.contact-option input:focus-visible + .contact-choice { outline: 2px solid #fff; outline-offset: 2px; }
.contact-field input:disabled { opacity: .55; }
.testing-form small { color: var(--muted); font-size: .84rem; font-weight: 400; }
#nickname-status[data-state='available'] { color: #adf1cc; }
#nickname-status:is([data-state='taken'], [data-state='error']) { color: #ffbfc6; }
.testing-form .hero-link { justify-content: center; margin: 0; }
.testing-status { font-size: .9rem; line-height: 1.4; color: var(--muted); }
.testing-status:empty { display: none; }
.testing-status[data-state='error'] { color: #ffbfc6; }
.testing-status[data-state='success'] { color: #adf1cc; }

.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.news-entry { display: grid; align-content: start; gap: .5rem; padding: clamp(.9rem, 2.2vw, 1.5rem); }
.news-entry h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.roadmap-update { margin: .45rem 0 0; color: var(--muted); line-height: 1.5; }
.roadmap-update time { margin-inline-end: .5rem; color: #ffd1e2; font-weight: 700; white-space: nowrap; }
.roadmap {
  --roadmap-gap: .85rem;
  --roadmap-node-size: 2.75rem;
  --roadmap-link-inset: .35rem;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--roadmap-gap);
  margin: .9rem 0 0; padding: 0; list-style: none;
}
.roadmap li {
  position: relative; display: grid; align-content: start; gap: .28rem;
  min-width: 0; padding-block-start: calc(var(--roadmap-node-size) + .55rem);
}
.roadmap li::before {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: var(--roadmap-node-size); height: var(--roadmap-node-size);
  border: 2px solid #c1a8cb8a; border-radius: 50%;
  background: radial-gradient(circle at 48% 28%, var(--roadmap-node-light), #21172d 85%);
  content: '';
}
.roadmap li[data-stage='done']::before { border-color: #a4efc4; }
.roadmap li[aria-current='step']::before { border-color: #ffd0e6; box-shadow: 0 0 .75rem #ff8bc8c0; }
@media (prefers-reduced-motion: no-preference) {
  .roadmap li[aria-current='step']::before { animation: roadmap-current-pulse 2.4s ease-out infinite; }
}
@keyframes roadmap-current-pulse {
  0% { box-shadow: 0 0 .45rem #ff8bc8a6, 0 0 0 0 #ff8bc88a; }
  70%, 100% { box-shadow: 0 0 .5rem #ff8bc8a6, 0 0 0 .45rem #ff8bc800; }
}
.roadmap li:not(:last-child)::after {
  position: absolute; inset-block-start: calc(var(--roadmap-node-size) * .5 - .24rem);
  inset-inline-start: calc(var(--roadmap-node-size) + var(--roadmap-link-inset));
  width: calc(100% + var(--roadmap-gap) - var(--roadmap-node-size) - 2 * var(--roadmap-link-inset));
  height: .48rem; background: #bfa5cb75;
  clip-path: polygon(0 40%, 96% 40%, 96% 0, 100% 50%, 96% 100%, 96% 60%, 0 60%); content: '';
}
.roadmap li[data-stage='done']:not(:last-child)::after { background: #a4efc4; }
.roadmap li:dir(rtl)::after { transform: scaleX(-1); }
.roadmap-numeral {
  position: absolute; z-index: 1; inset-block-start: 0; inset-inline-start: 0;
  display: grid; place-items: center;
  width: var(--roadmap-node-size); height: var(--roadmap-node-size);
  font: 900 1.45rem/1 Impact, 'Arial Black', system-ui, sans-serif;
  color: var(--roadmap-number-color);
}
.roadmap-numeral img { display: block; width: var(--roadmap-glyph-width); height: auto; }
.roadmap li:nth-child(1) { --roadmap-number-color: #ffd382; --roadmap-node-light: #51352b; }
.roadmap li:nth-child(1) .roadmap-numeral { text-shadow: .07em .07em #a75b42; }
.roadmap li:nth-child(2) { --roadmap-number-color: #ff515b; --roadmap-node-light: #512637; }
.roadmap li:nth-child(2) .roadmap-numeral {
  font-family: 'Arial Black', system-ui, sans-serif;
  letter-spacing: .06em;
  text-shadow: 0 1px #7f152d;
}
.roadmap li:nth-child(3) { --roadmap-node-light: #494455; --roadmap-glyph-width: 63%; }
.roadmap li:nth-child(4) { --roadmap-node-light: #4e4050; --roadmap-glyph-width: 66%; }
.roadmap li:nth-child(5) { --roadmap-node-light: #364a36; --roadmap-glyph-width: 62%; }
.roadmap li:nth-child(6) { --roadmap-node-light: #4b2c67; --roadmap-glyph-width: 64%; }
.roadmap h4 { margin: 0; font-size: .91rem; line-height: 1.35; }
.roadmap time { color: var(--muted); font-size: .8rem; font-weight: 650; }
.roadmap li[aria-current='step'] h4 { color: #ffd1e2; }
.roadmap li > p:not(.stage-status) { font-size: .89rem; }
.roadmap p:not(.stage-status), .faq-list p, .news-entry p { color: var(--muted); line-height: 1.5; }
.stage-status, .news-entry time { color: #ffd1e2; font-size: .82rem; font-weight: 700; }
[data-stage='done'] .stage-status { color: #a4efc4; }

.roadmap-goal {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem;
  margin-block-start: 1rem; padding-block-start: .75rem; border-block-start: 1px solid var(--line);
}
.roadmap-goal h4 { margin: 0; color: #ffd1e2; font-size: .95rem; }
.roadmap-goal p { color: var(--muted); font-size: .89rem; }

.faq-list { display: grid; gap: .45rem; max-width: 49rem; }
.faq-list summary { cursor: pointer; padding: .72rem 1rem; font-weight: 650; }
.faq-list summary::marker { color: #ffc2dc; }
.faq-list summary:focus-visible { outline: 2px solid #ffccdf; outline-offset: 2px; border-radius: 1.15rem; }
.faq-list p { padding: 0 1rem .85rem; }
.faq-list a, .news-entry a { width: fit-content; color: #ffc5e0; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }

.login-dialog {
  width: min(calc(100% - 2rem), 25rem);
  max-height: calc(100dvh - 2rem);
  padding: clamp(1rem, 5vw, 1.8rem);
  border: 1px solid #ffd9ef53;
  border-radius: 1.5rem;
  background: linear-gradient(150deg, #33233f, #1c1426);
  color: inherit;
  box-shadow: 0 2rem 6rem #080511a0;
}
.login-dialog::backdrop { background: #110a1bb5; backdrop-filter: blur(10px); }
.login-dialog form { display: grid; gap: .95rem; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dialog-heading h2 { font-size: 1.55rem; }
.dialog-close {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff10;
}
.login-dialog label { display: grid; gap: .35rem; font-size: .92rem; }
.login-dialog input:not([type='radio']) {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid #ffe1f244;
  border-radius: .65rem;
  padding: .5rem .65rem;
  background: #1b1326;
  font-size: 1rem;
}
.login-dialog .hero-link { justify-content: center; margin-top: .25rem; }
.oauth-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .95rem; }
.oauth-options a {
  display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 2.6rem;
  padding: .4rem; border: 1px solid var(--line); border-radius: .65rem;
  background: #ffffff10; color: inherit; font-weight: 650; text-decoration: none;
}
.oauth-options a:only-of-type, .oauth-options a:not([hidden]):has(+ [hidden]), .oauth-options [hidden] + a { grid-column: 1 / -1; }
.oauth-options a:hover { border-color: #fca5d4; background: #ffffff1c; }
.oauth-icon-library { position: absolute; pointer-events: none; }
.oauth-icon { display: block; flex: none; width: 1.1rem; height: 1.1rem; }
.site-legal-links { display: flex; flex-wrap: wrap; gap: .25rem .85rem; color: var(--muted); font-size: .78rem; }
.site-legal-links a { color: inherit; text-underline-offset: .15em; }
#login-dialog {
  padding: clamp(1rem, 4vw, 1.65rem);
  border-color: #f5caf047;
  background: radial-gradient(ellipse at 0 0, #44304c88, transparent 66%), #21182c;
}
#login-dialog form { gap: .75rem; }
#login-dialog .dialog-heading h2 {
  text-wrap: balance;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  line-height: 1.15;
}
#login-dialog .dialog-close { flex-shrink: 0; }
#login-dialog .dialog-close:hover { background: #fff0f92b; }
#login-dialog input:not([type='radio']):focus-visible {
  border-color: #ffc4e0;
  outline: 2px solid #ffc4e04d;
  outline-offset: 1px;
}
#login-dialog .signup-password { position: relative; }
#login-dialog .signup-password[data-strength] input {
  padding-inline-end: 6.1rem;
  border-color: var(--password-strength);
}
#login-dialog .signup-password[data-strength] input:focus-visible { outline-color: var(--password-strength); }
.signup-password[data-strength='weak'] { --password-strength: #ff8c9c; }
.signup-password[data-strength='medium'] { --password-strength: #ffd077; }
.signup-password[data-strength='strong'] { --password-strength: #8ce6ac; }
.signup-password-strength {
  position: absolute;
  inset-inline-end: .7rem;
  inset-block-start: 50%;
  translate: 0 -50%;
  color: var(--password-strength);
  font-size: .78rem;
  font-weight: 700;
  pointer-events: none;
}
#login-dialog .oauth-options { margin-block-start: .65rem; }
.auth-mode-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  width: 100%;
  min-height: 2.75rem;
  margin-block-start: .75rem;
  padding: .4rem .8rem;
  border: 1px solid #f5c8ed3d;
  border-radius: .65rem;
  background: #f1bbed10;
  color: #ffe0f0;
  text-align: start;
  font-size: .92rem;
  font-weight: 650;
}
.auth-mode-switch:hover { border-color: #f5c8ed87; background: #f1bbed24; }
.auth-mode-switch svg {
  flex: none;
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#login-dialog .site-legal-links {
  justify-content: center;
  margin-block-start: .8rem;
  padding-block-start: .65rem;
  border-block-start: 1px solid #f5c8ed29;
}
#login-dialog .site-legal-links a {
  padding-block: .2rem;
  text-decoration: underline;
  text-decoration-color: #f5c8ed64;
}
#login-dialog .site-legal-links a:hover { color: #ffe0f0; text-decoration-color: currentColor; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1rem, 2.6vw, 2.25rem);
  margin-block-start: 1rem;
  padding: clamp(1.15rem, 3.3vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 2.8vw, 2.2rem) clamp(1.25rem, 2.8vw, 2.2rem) 0 0;
  background: var(--home-surface);
}
.footer-brand {
  display: flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  gap: .6rem;
}
.footer-brand img { width: 3.8rem; height: 3.8rem; }
.footer-brand > span { display: grid; gap: .15rem; }
.footer-brand strong { font-size: 1.2rem; letter-spacing: .035em; }
.footer-brand span span { color: var(--muted); font-size: .82rem; }
.site-footer h2 { margin-block-end: .65rem; font-size: .95rem; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: .55rem 1rem; padding: 0; margin: 0; list-style: none; }
.footer-navigation a { color: #e8d7e8; font-size: .9rem; }
.footer-community .social-links { flex-wrap: wrap; gap: .35rem; padding: 0; border: 0; }
.footer-community .social-links a, .footer-feedback {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.35rem;
  padding: .38rem .65rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: #ffffff0d;
  font-size: .82rem;
}
.footer-community .social-links a:hover, .footer-feedback:hover { background: #fff0f927; }
.footer-community .social-links span { display: inline; }
.footer-community .social-links { --social-icon-size: 2.1rem; }
.footer-contact { min-block-size: 2.35rem; margin-block-start: .55rem; }
.footer-feedback { max-width: 100%; text-align: start; }
.footer-feedback svg { flex: none; width: 1.05rem; }
.footer-contact[data-floating] .footer-feedback {
  position: fixed; z-index: 3; inset-inline-end: 1.15rem; inset-block-end: 1.1rem;
  justify-content: center; width: 2.75rem; min-height: 2.75rem; padding: 0;
  background: #493751; box-shadow: 0 .35rem 1rem #120a1b73;
}
.footer-contact[data-floating] .footer-feedback:hover { background: #584360; }
.footer-contact[data-floating] .footer-feedback svg { width: 1.25rem; }
.footer-contact[data-floating] .footer-feedback span { display: none; }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem 1.1rem;
  padding-block-start: .85rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
}
.footer-bottom small { font-size: .78rem; }
.site-footer :is(.footer-navigation, .site-legal-links) a:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .site-footer { grid-template-columns: minmax(0, 1fr); }
}
.login-error { color: #ffbfc6; font-size: .91rem; }
.feedback-trigger { display: none; }
@media (min-width: 761px) and (pointer: fine) {
  body:not(:has(.footer-contact)) .feedback-trigger {
    position: fixed; z-index: 3; inset-inline-end: 1.15rem; inset-block-end: 1.1rem;
    display: grid; place-items: center; width: 2.75rem; min-height: 2.75rem; padding: 0;
    color: #fff5fa; background-color: #493751;
  }
  body:not(:has(.footer-contact)) .feedback-trigger:hover { background-color: #584360; }
}
.feedback-trigger svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
.feedback-dialog textarea {
  width: 100%; min-height: 6rem; padding: .6rem .65rem; border: 1px solid #ffe1f244;
  border-radius: .65rem; background: #1b1326; color: inherit; font: inherit; resize: vertical;
}
.feedback-attachments small { color: var(--muted); font-size: .8rem; }
.feedback-attachments input { min-width: 0; font-size: .86rem; }
.feedback-attachments input::file-selector-button {
  margin-inline-end: .55rem; padding: .3rem .55rem; border: 1px solid var(--line);
  border-radius: .45rem; background: #352641; color: inherit; font: inherit; cursor: pointer;
}
.feedback-status { font-size: .9rem; color: #adf1cc; }
.feedback-status[data-state='error'] { color: #ffbfc6; }

.account-main { min-height: clamp(21rem, 62dvh, 43rem); margin-top: 1rem; }
.account-main h1 {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: clamp(1rem, 4.25vw, 3rem); line-height: 1.08; letter-spacing: -.045em;
}
.account-main #profile-name { color: #ffd1e5; }
.account-main .hero-link { justify-self: start; margin: 0; }
.profile-action { gap: .4rem; padding: .42rem .65rem; font-size: .85rem; }
.profile-action svg {
  flex: none; width: 1.15rem; height: 1.15rem; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.profile-guest-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.profile-sign-in-methods, .profile-referrals, .profile-characters { display: grid; gap: .65rem; padding: 1rem; }
.profile-sign-in-methods h2, .profile-referrals h2, .profile-characters h2 { margin: 0; font-size: 1.18rem; }
.profile-sign-in-methods p, .profile-characters > p { color: var(--muted); margin: 0; font-size: .9rem; }
.oauth-reward {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem;
  padding: .45rem .7rem; border: 1px solid #bd8df640; border-radius: .7rem;
  background: linear-gradient(110deg, #9a59e822, #502f7017); color: #e9ddf2;
}
.oauth-reward-amount {
  display: inline-flex; align-items: center; gap: .36em; color: #fff6ff;
  font-size: clamp(1.3rem, 1rem + .8vw, 1.75rem); font-weight: 950; letter-spacing: -.04em; line-height: 1.05;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 1px #1c0e29, 1px 2px #1c0e29, 0 0 .38rem #bc73ff56;
}
.oauth-reward-amount::before {
  content: ''; width: .82em; height: .62em; border-radius: .18em;
  border: .08em solid #e7c3ff; background: linear-gradient(#a863f2 29%, #e1b5fe 29% 43%, #8b52da 43%);
  box-shadow: 0 .07em #2a123e;
}
.oauth-reward > span { flex: 1 1 15rem; }
.profile-referrals label { font-size: .9rem; font-weight: 650; }
.referral-note { color: var(--muted); font-size: .85rem; line-height: 1.4; }
#signup-referral-note { display: block; margin-block-start: .35rem; }
.referral-code-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.referral-code-row input {
  min-width: 0; max-width: 100%; min-height: 3rem; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: .65rem; background: #1b1326; color: inherit;
  font: 700 1rem ui-monospace, monospace; letter-spacing: .06em;
}
.character-toolbar, .character-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.character-toolbar { justify-content: space-between; }
.character-list { list-style: none; margin: 0; }
.character-add-slot { border: 1px dashed #ffc2de91; background: #321f372e; }
.character-add-card {
  display: grid; place-content: center; justify-items: center; gap: .55rem;
  width: 100%; height: 100%; padding: .65rem; border: 0; border-radius: inherit;
  background: transparent; color: var(--role-accent); font-size: .9rem; font-weight: 700;
}
.character-add-card:focus-visible { outline-offset: -4px; }
.character-add-card svg {
  width: 2.5rem; height: 2.5rem; fill: none;
  stroke: currentColor; stroke-width: 1.5; stroke-linecap: round;
}
.character-preview-button { padding-block-end: 3.15rem; color: inherit; }
.character-preview-button:disabled { cursor: default; }
.character-card-art {
  overflow: clip; background: url('/account-dusk.webp') 62% center / cover;
}
.character-card-art canvas { display: block; width: 100%; height: 100%; }
.character-card .role-card-name { overflow-wrap: anywhere; }
.character-pick {
  position: absolute; inset-block-end: .72rem; inset-inline-start: clamp(.72rem, 1.4vw, 1.15rem);
  min-height: 2rem; padding-inline: .65rem;
}
.character-editor-preview {
  display: grid; place-items: center; min-height: 0; margin: 0; position: relative;
  background: linear-gradient(#150d209c, #150d20ee), url('/account-dusk.webp') 62% center / cover;
}
.character-online { color: #adf1cc; }
.character-editor :is(.character-action, .hero-link) { padding: .42rem .65rem; font-size: .85rem; }
.character-action {
  border: 1px solid var(--line); border-radius: 100vmax; background: #ffffff08; color: inherit;
  font: inherit; font-size: .85rem; cursor: pointer;
}
.character-action:hover:not(:disabled) { background: #ffffff1c; border-color: #fca5d4; }
.character-action:disabled { opacity: .5; cursor: default; }
.character-editor { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr); gap: .85rem; align-items: start; }
.character-editor-preview { padding: .5rem; border: 1px solid var(--line); border-radius: .85rem; }
.character-editor-preview canvas { display: block; width: 100%; height: 18rem; cursor: grab; }
.character-editor-preview canvas:active { cursor: grabbing; }
.character-editor-preview > p {
  display: grid; align-items: center; min-height: clamp(10rem, 28vw, 16rem);
  color: var(--muted); font-size: .85rem; text-align: center;
}
.character-editor-preview canvas:not([hidden]) + p { display: none; }
.character-editor-fields, .character-editor label { display: grid; gap: .55rem; min-width: 0; font-size: .9rem; }
.character-editor label { gap: .35rem; }
.character-wardrobe {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .55rem;
  min-width: 0; margin: 0; padding: .55rem; border: 1px solid var(--line); border-radius: .85rem;
}
.character-wardrobe legend { padding: 0 .25rem; color: var(--muted); }
.character-editor :is(input, select) {
  width: 100%; min-width: 0; padding: .57rem .65rem; border-radius: .65rem;
  border: 1px solid var(--line); background: #1b1326; color: inherit; font: inherit; font-size: 1rem;
}
@media (max-width: 34rem) {
  .character-editor { grid-template-columns: minmax(0, 1fr); }
  .character-editor-preview canvas { height: 13rem; }
}
.profile-characters > .feedback-status[data-state='success'] { color: #adf1cc; }
.profile-characters > .feedback-status[data-state='error'] { color: #ffbfc6; }
.profile-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .55rem; }
.profile-providers form {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .55rem; min-width: 0; padding: .55rem .65rem;
  border: 1px solid var(--line); border-radius: .8rem; background: #ffffff08;
}
.profile-providers .provider-name { display: inline-flex; align-items: center; gap: .45rem; }
.profile-providers [data-provider-status] { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; }
.profile-providers [data-linked='true'] {
  padding: .28rem .52rem; border: 1px solid #92ecb94f; border-radius: 100vmax;
  color: #adf1cc; background: #5ceaa315; font-weight: 650;
}
.provider-check { font-size: 1rem; line-height: 1; }
.profile-providers .hero-link { padding: .42rem .65rem; font-size: .85rem; }
.profile-providers form[data-link-failed] { display: grid; grid-template-columns: minmax(0, 1fr); }
.profile-providers .provider-error {
  padding: .55rem .65rem; border: 1px solid #ff72837d; border-radius: .5rem;
  background: #572634; color: #ffe0e5; font-weight: 650; line-height: 1.35;
}
.profile-providers form[data-link-failed] .hero-link { justify-self: end; }
.profile-providers .hero-link[data-link-error] {
  border-color: #ff849b; background: #9b3d53; color: #fff6f8;
  animation: provider-link-shake 3s ease-in-out;
}
@keyframes provider-link-shake {
  0%, 10%, 36%, 48%, 72%, 86%, 100% { translate: 0; }
  2%, 6%, 38%, 42%, 74%, 78% { translate: -4px; }
  4%, 8%, 40%, 44%, 76%, 80% { translate: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-providers .hero-link[data-link-error] { animation: none; }
}
.profile-link-status { margin: 0; }

@media (min-width: 1061px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-self: stretch;
    gap: .35rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    direction: ltr;
  }
  .nav-rail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    overflow: hidden;
  }
  .nav-sections {
    grid-area: 1 / 2;
    display: flex;
    justify-content: safe center;
    gap: .17rem;
    margin-block: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-sections:dir(rtl) { direction: rtl; }
  .nav-sections > a { flex: none; }
  .nav-sections[data-more-left] { --nav-fade-left: 1.5rem; }
  .nav-sections[data-more-right] { --nav-fade-right: 1.5rem; }
  .nav-sections:is([data-more-left], [data-more-right]) {
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--nav-fade-left, 0px),
      #000 calc(100% - var(--nav-fade-right, 0px)), transparent 100%);
  }
  .nav-sections a[data-nav-clipped] { opacity: .8; }
  .nav-sections a:focus-visible { outline-offset: -2px; }
  .nav > .social-links {
    --social-icon-size: calc(clamp(1.55rem, 25vw - 15rem, 3.9rem) / 1.5);
    padding: 0;
    border: 0;
  }
  .nav > .social-links a { padding-inline: .35rem; }
  .nav-arrow {
    grid-row: 1;
    display: grid;
    place-items: center;
    align-self: stretch;
    width: 2.25rem;
    min-height: 2.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff5fa;
  }
  .nav-arrow-left { grid-column: 1; }
  .nav-arrow-right { grid-column: 3; }
  .nav-arrow[aria-disabled='true'] { opacity: .42; cursor: default; }
  .nav-arrow[aria-disabled='false']:is(:hover, :focus-visible) { background-color: #fff0f927; }
  .nav-arrow:focus-visible { outline-offset: -3px; }
}

@media (max-width: 1060px) {
  .site-header { --nav-toggle-height: 2.55rem; grid-template-columns: minmax(0, 1fr); }
  .header-actions { grid-column: 1; }
  .site-language { position: static; }
  .language-panel { inset-inline-end: .45rem; width: min(16rem, calc(100% - .9rem)); }
  .nav-toggle { display: inline-flex; min-width: 2.35rem; min-height: var(--nav-toggle-height); padding-inline: .4rem; }
  .nav { grid-area: 2 / 1 / 3 / -1; flex-wrap: wrap; }
  .nav-label, .account-link span { overflow: hidden; text-overflow: ellipsis; }
  .account-link span { max-inline-size: 10rem; }
  .site-header[data-menu-ready] .nav {
    position: absolute;
    z-index: 1;
    grid-area: 1 / 1 / 2 / 2;
    inset-block-start: calc(50% + var(--nav-toggle-height) / 2 + .45rem);
    inset-inline-end: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem;
    width: min(20rem, calc(100vw - 2.5rem));
    max-width: none;
    max-height: 68dvh;
    overflow: auto;
    padding: .55rem;
    border-radius: 1.15rem;
    background: #271a32fa;
    box-shadow: 0 .75rem 2.5rem #0d071cd6;
  }
  .site-header[data-menu-open] .nav { display: grid; }
  .site-header .nav a { min-height: 2.75rem; white-space: normal; }
  .nav .social-links {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding: .35rem 0 0;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .nav .social-links a { flex: 1; flex-direction: column; gap: .25rem; min-width: 0; }
  .nav .social-links span { display: inline; font-size: .76rem; }
}

@media (max-width: 860px) {
  .roadmap {
    --roadmap-gap: 1.1rem;
    --roadmap-link-inset: .2rem;
    grid-template-columns: minmax(0, 1fr);
  }
  .roadmap li {
    align-content: center; min-block-size: var(--roadmap-node-size);
    padding-block-start: 0; padding-inline-start: calc(var(--roadmap-node-size) + .7rem);
  }
  .roadmap li:not(:last-child)::after {
    inset-block-start: calc(var(--roadmap-node-size) + var(--roadmap-link-inset));
    inset-inline-start: calc(var(--roadmap-node-size) * .5 - .215rem);
    width: .43rem; height: calc(100% + var(--roadmap-gap) - var(--roadmap-node-size) - 2 * var(--roadmap-link-inset));
    clip-path: polygon(40% 0, 60% 0, 60% calc(100% - .28rem), 100% calc(100% - .28rem), 50% 100%, 0 calc(100% - .28rem), 40% calc(100% - .28rem));
  }
  .project-recruitment { align-items: start; flex-direction: column; }
}

@media (max-width: 760px) {
  .header-actions:has(.account-link:not([hidden])) { gap: .25rem; }
  .header-actions:has(.account-link:not([hidden])) :is(.account-button, .connect-button) {
    min-height: 2.3rem;
    padding-inline: .45rem;
    font-size: .8rem;
  }
  .header-actions:has(.account-link:not([hidden])) .connect-button { min-width: 2.3rem; justify-content: center; }
  .header-actions:has(.account-link:not([hidden])) .account-logout { width: 2.3rem; padding-inline: 0; }
  .application-slide > .application-layout {
    width: min(100%, 35rem);
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
    padding: clamp(.85rem, 3.4vw, 1.65rem);
  }
  .application-layout .section-copy { gap: .45rem; }
  .application-layout h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1.1; }
  .application-layout .section-copy p { font-size: .95rem; line-height: 1.4; }
  .testing-form { gap: .7rem; padding: clamp(.75rem, 3vw, 1.15rem); }
  .testing-form label { gap: .3rem; font-size: .93rem; }
  .application-slide::before {
    background-image: linear-gradient(180deg, #100b19ec, #100b19c7 40%, #100b19ed);
  }
  .application-slide .application-backdrop { object-position: 65% center; }
}

@media (max-width: 680px), (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .site-header {
    position: sticky;
    top: 0;
    margin-bottom: .7rem;
    padding-block: .45rem;
    border-radius: .8rem;
    background: #1a1323f5;
  }
  .header-back {
    grid-area: 1 / 1;
    display: grid;
    place-items: center;
    min-width: var(--nav-toggle-height);
    min-height: var(--nav-toggle-height);
    padding: 0;
    color: var(--text);
  }
  .header-back svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .site-header:has(.header-back) { grid-template-columns: auto minmax(0, 1fr); }
  .site-header:has(.header-back) .header-actions { grid-column: 2; }
  .site-header[data-menu-ready]:has(.header-back) .nav { grid-column: 2; }
}

@media (max-width: 680px) {
  .news-list { grid-template-columns: minmax(0, 1fr); }
  .story-backdrop::after { background: linear-gradient(180deg, #100b19e0, #100b19bf 40%, #100b19ef); }
  .story-backdrop > .hero-image { object-position: 65% center; }
  .home-pitch { font-size: clamp(.88rem, 2.75vw, 1rem); }
  .profile-characters > p { text-wrap: pretty; }
}

@media (max-width: 520px) {
  .hero { align-content: safe end; }
  .hero-image { object-position: 66% 50%; }
  .project-hero .hero-image { object-position: 84% 50%; }
  .world-hero .hero-image { object-position: 77% 50%; }
  .role-tools { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .role-category { padding-inline: .6rem; }
  .role-category-name { font-size: .9rem; }
  .hero::after {
    background: linear-gradient(180deg, #100b19ed, #100b197d 34%, #100b19d9 64%, #100b19fa 100%);
  }
  .nav a { gap: .3rem; padding-inline: .55rem; font-size: .8rem; }
  .hero-content { padding: 1.5rem 1.15rem clamp(1.5rem, 6dvh, 3rem); }
  .hero-logo { width: clamp(9rem, min(54vw, 35dvh), 13.1rem); }
  .hero-description { margin-top: 1.1rem; }
  .hero-link { margin-top: 1.15rem; }
}

@media (max-width: 600px) {
  .site-header { --nav-toggle-height: 2.3rem; padding-inline: .45rem; }
  .header-actions { gap: .25rem; }
  .account-button, .connect-button { min-height: 2.3rem; gap: .22rem; padding-inline: .38rem; font-size: .76rem; }
  .account-button span { max-width: 6rem; overflow: hidden; text-overflow: ellipsis; }
  .language-button { min-height: 2.3rem; gap: .24rem; padding-inline: .48rem; }
  .site-header :is(.account-button, .connect-button) svg { width: 1rem; }
  .nav-toggle { min-width: 2.05rem; }
}

@media (max-width: 480px) {
  .header-actions, .header-actions:has(.account-link:not([hidden])) { gap: .15rem; }
  .connect-button { padding-inline: .3rem; }
  .account-link { min-width: 2.15rem; justify-content: center; }
  .account-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (max-width: 420px) {
  .site-header[data-menu-ready] .nav { grid-template-columns: minmax(0, 1fr); }
  .account-button { min-width: 2.15rem; justify-content: center; }
  .account-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .account { gap: .25rem; }
}

@media (max-width: 360px) {
  .site-header { gap: .35rem; padding-inline: 0; }
  .language-button { gap: .18rem; padding-inline: .17rem; }
  .connect-button { min-width: 2.3rem; justify-content: center; }
  .site-header .nav a { padding-inline: .42rem; white-space: normal; }
}

@media (max-width: 520px) and (max-height: 700px) {
  .world-content { gap: .55rem; padding-block: .65rem; }
  .story > .section-stack { gap: .65rem; padding-block: .75rem; }
  .section-stack h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .section-copy { gap: .45rem; }
  .section-copy p { font-size: .9rem; line-height: 1.35; }
  .faq-list summary { padding-block: .6rem; font-size: .9rem; }
  .news-list { gap: .55rem; }
  .news-entry { gap: .3rem; padding: .7rem; }
  .news-entry p, .news-entry a { font-size: .9rem; }
}

@media (max-width: 680px) and (pointer: fine), (max-width: 680px) and (pointer: none) {
  .site-header { position: relative; margin-bottom: 0; padding-block: .1rem; background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .role-card, .role-card:not([data-video-open]):hover { transition: none; transform: none; animation: none; }
}

:host([data-shared-site-header]) {
  display: block;
  font: 1rem/normal 'Segoe UI', system-ui, sans-serif;
  background: transparent;
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
}
:host([data-shared-site-header]) .site-header { position: relative; }
@media (max-width: 680px) and (pointer: fine), (max-width: 680px) and (pointer: none) {
  :host([data-shared-site-header]) { position: relative; }
}

/* Keep carousel movement inside the opening panel. */
.home-sections > #home {
  --hero-ideal-height: clamp(27rem, 57vw, 45rem);
  --hero-available-height: calc(100dvh - var(--hero-top, 5rem) - .5rem);
  block-size: min(var(--hero-ideal-height), max(0px, var(--hero-available-height)));
  min-block-size: 0;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
}
#home::after { opacity: .5; }
.hero-slider { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; min-block-size: 0; overflow: clip; }
.hero-track { display: flex; align-items: stretch; min-inline-size: 0; min-block-size: 0; }
.hero-panel { flex: 0 0 100%; min-width: 0; min-block-size: 0; max-width: none; }
#home .hero-panel :is(h2, .hero-description, .eyebrow, .hero-test-socials) {
  text-shadow: 0 1px .2rem #100b19, 0 0 .55rem #100b19c9;
}
.hero-panel h2 { max-width: min(100%, 23ch); text-wrap: balance; overflow-wrap: normal; }
@media (max-width: 520px) {
  #home .hero-panel h2 { max-width: 100%; font-size: clamp(1.15rem, 6.15vw, 2rem); }
}
.hero-panel:not(:first-child) { display: none; }
#home[data-carousel] .hero-track {
  transform: translateX(var(--hero-offset, 0%));
  opacity: var(--hero-track-opacity, 1);
  direction: ltr;
}
#home:not([data-carousel]) .hero-panel:first-child,
#home[data-carousel] .hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: clamp(.5rem, 3dvh, 2rem);
}
#home .hero-logo { width: clamp(6rem, min(26vw, 34dvh), 22rem); }
html[dir="rtl"] .hero-panel { direction: rtl; }
#home[data-carousel] .hero-panel:nth-child(2) { animation: hero-arrive .75s cubic-bezier(.2,.7,.25,1); }
@keyframes hero-arrive { from { opacity: .25; translate: 0 .9rem; } }
.hero-controls {
  position: absolute; right: clamp(.9rem, 4vw, 3rem); inset-block-start: .85rem;
  display: flex; align-items: center; gap: .45rem; z-index: 1;
}
.hero-stars { display: flex; direction: rtl; gap: .12rem; }
.hero-stars button, .hero-rotation {
  display: grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem;
}
.hero-stars button {
  padding: 0; border: 0; background: transparent;
  color: #08060b; -webkit-text-stroke: 1px #f2dce9; font-size: 1.38rem; line-height: 1;
}
.hero-stars button[data-lit] { color: #fff; text-shadow: 0 0 .55rem #fbd2e594; }
.hero-stars button[aria-current="true"] { text-shadow: 0 0 .85rem #ffc8ec; }
.hero-stars button:focus-visible, .hero-rotation:focus-visible { outline: 2px solid #ffc8ec; outline-offset: 2px; }
.hero-rotation {
  margin-inline-start: .35rem; border: 1px solid #f7d1eb66; border-radius: 50%;
  background: #28192de8; color: #fff; font-size: .72rem;
}
.hero-rotation:hover { background: #573457; }
.hero-timer { position: absolute; inset: auto 0 0; height: .22rem; background: #f5cde52b; }
.hero-timer span { display: block; width: 100%; height: 100%; background: var(--sunset); transform: scaleX(0); transform-origin: left; }
#home .hero-slider { margin-block-start: 2.75rem; }
@media (prefers-reduced-motion: reduce) {
  #home[data-carousel] .hero-track, #home[data-carousel] .hero-panel { transition: none; animation: none; }
}

.hero-panel-platform { position: relative; }
.hero-region-map { display: grid; justify-items: center; width: min(100%, 25rem); margin: .85rem 0 0; }
.hero-globe {
  position: relative; isolation: isolate; width: clamp(8rem, 26vw, 11rem); aspect-ratio: 1;
  border: 1px solid #ffcde78c; border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0 17%, #eebaf439 17.4% 17.8%, transparent 18% 24%),
    radial-gradient(ellipse at 38% 29%, #845b9f, #38224e 55%, #161023 85%);
  box-shadow: inset 0 0 1.55rem #c987ec5c, 0 0 2.45rem #b854d146;
}
.hero-globe::before, .hero-globe::after { position: absolute; inset: 0 21%; border: 1px solid #efc5fa52; border-radius: 50%; content: ''; }
.hero-globe::after { inset-inline: 40%; }
@media (min-width: 1061px) {
  .hero-panel-platform { padding-inline-end: 39%; }
  .hero-panel-platform h2 { font-size: clamp(2rem, 3.45vw, 3rem); }
  .hero-region-map { position: absolute; inset-inline-end: 4%; top: 50%; transform: translateY(-50%); width: 34%; margin: 0; }
  .hero-globe { width: clamp(12rem, 24vw, 19rem); }
}

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 1; display: grid; place-items: center;
  width: clamp(1.65rem, 4vw, 4rem); height: clamp(8rem, 41%, 19rem);
  padding: 0; border: 0; background: transparent; color: #fff1fa;
  opacity: 0; transition: opacity .25s ease, color .25s ease;
}
.hero-arrow-prev { left: 0; }
.hero-arrow-next { right: 0; }
.hero-arrow::before {
  position: absolute; inset: 0 -1rem; content: '';
  background: radial-gradient(ellipse at left, #f78bce4d, transparent 70%);
  opacity: .8; pointer-events: none; transition: opacity .25s ease;
}
.hero-arrow-next::before { transform: scaleX(-1); }
.hero-arrow::after {
  content: ''; position: absolute; inset-block: 0; left: 17%; width: 83%;
  background: #f9c4e7c2;
  clip-path: polygon(85% 0, 0 50%, 85% 100%, calc(85% + 2px) 100%, 2px 50%, calc(85% + 2px) 0);
  mask-image: linear-gradient(transparent, #000 28% 72%, transparent);
  pointer-events: none;
}
.hero-arrow-next::after { left: auto; right: 17%; transform: scaleX(-1); }
#home:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:is(:hover, :focus-visible)::before { opacity: 1; }
.hero-arrow:focus-visible { outline: 2px solid #ffc8ec; outline-offset: -2px; }
@media (hover: none) {
  .hero-arrow { opacity: .85; height: 28%; top: 53%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-arrow, .hero-arrow::before { transition: none; }
}

.hero-photo-strip {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; z-index: -2; pointer-events: none; transition: opacity .5s ease;
}
#home .hero-cover { position: absolute; inset: 0; z-index: -3; }
#home .hero-cover .hero-image { object-position: 90% 54%; opacity: 1; }
#home[data-panorama-ready] .hero-photo-strip { opacity: 1; }
#home[data-panorama-ready] .hero-globe { border-color: transparent; background: none; box-shadow: none; }
#home[data-panorama-ready] .hero-globe::before,
#home[data-panorama-ready] .hero-globe::after { content: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-photo-strip { transition: none; }
}
@media (min-width: 681px) {
  #home::after {
    background:
      linear-gradient(90deg, #100b19f7 0%, #100b19d9 32%, #100b1973 57%, #100b1938 100%),
      linear-gradient(180deg, #100b1980, transparent 28% 65%, #100b19c9);
  }
}

.hero-test-socials {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem;
  margin-block-start: 1rem; color: var(--muted); font-size: .95rem;
}
.hero-test-socials .social-links { border: 0; padding: 0; }
.hero-test-socials a {
  display: grid; place-items: center; padding: .35rem; border-radius: 50%;
}
.hero-test-socials a:is(:hover, :focus-visible) { background: #fff0f92b; }
@media (max-width: 520px) {
  .hero-test-socials { --social-icon-size: 2rem; }
}


@media (max-width: 680px) {
  .home-sections > #home { --hero-ideal-height: 37rem; }
  #home:not([data-carousel]) .hero-panel:first-child,
  #home[data-carousel] .hero-panel {
    justify-content: flex-start;
    position: relative;
    padding: .65rem clamp(1.65rem, 6vw, 2.4rem) clamp(.55rem, 2.4dvh, 1.55rem);
  }
  #home .hero-panel h2 {
    font-size: clamp(1.25rem, 6.6vw, 2.15rem);
    line-height: 1.08;
    margin-block-end: .55rem;
  }
  #home .hero-logo { width: clamp(5.75rem, min(36vw, 23dvh), 10rem); }
  #home .hero-panel .eyebrow { margin-block-end: .45rem; font-size: .73rem; }
  #home .hero-description { margin-block-start: auto; font-size: clamp(.91rem, 3.65vw, 1.05rem); line-height: 1.45; }
  #home .hero-link { margin-block-start: .9rem; }
  #home::after {
    background: linear-gradient(180deg, #100b19d9, #100b1966 26%, transparent 42%, #100b19ce 63%, #100b19fa 92%);
  }
  #home .hero-region-map {
    position: absolute; inset-block-start: clamp(4.25rem, 15vw, 5.8rem); inset-inline-end: .85rem;
    width: min(100% - 1.7rem, 12rem); margin: 0;
  }
}

@media (max-width: 1060px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .site-header { margin-block-end: .4rem; padding-block: .25rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .home-sections > #home { --hero-ideal-height: 100dvh; }
  #home .hero-slider { margin-block-start: 2.35rem; }
  #home:not([data-carousel]) .hero-panel:first-child,
  #home[data-carousel] .hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-block-size: 0;
    padding: .5rem clamp(1.7rem, 5vw, 3.5rem) .6rem;
  }
  #home .hero-panel :is(h1, h2, .eyebrow) { position: static; margin: 0; }
  #home .hero-panel h2 {
    max-width: min(100%, 30rem);
    font-size: clamp(1.3rem, 4.4vw, 2.15rem);
    line-height: 1.08;
  }
  #home .hero-description { max-width: 54ch; margin-block-start: .55rem; font-size: .92rem; line-height: 1.38; }
  #home .hero-link { min-height: 2.4rem; margin-block-start: .6rem; padding: .3rem .85rem; font-size: .87rem; }
  #home .hero-region-map { display: none; }
  #home .hero-controls { inset-block-start: .35rem; right: .8rem; gap: .2rem; }
  #home .hero-test-socials { --social-icon-size: 1.55rem; margin-block-start: .35rem; font-size: .8rem; }
  #home .hero-test-socials a { padding: .2rem; }
  #home::after {
    background:
      linear-gradient(90deg, #100b19ed, #100b19c9 45%, #100b1959 100%),
      linear-gradient(180deg, #100b1999, transparent 35% 72%, #100b19a6);
  }
}

@media (max-width: 680px), (max-width: 1060px) and (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .language-button { min-width: var(--nav-toggle-height); padding-inline: .3rem; }
  .header-actions .connect-button { white-space: nowrap; }
}

@media (max-width: 360px) {
  .site-header:has(.header-back) { column-gap: .2rem; }
  .site-header .header-back { min-width: 2rem; }
  .header-actions .connect-button,
  .header-actions:has(.account-link:not([hidden])) .connect-button {
    gap: .18rem;
    padding-inline: .2rem;
    font-size: .73rem;
  }
  .site-header .connect-button svg { width: .85rem; }
  .site-header .language-button,
  .header-actions .account-button,
  .header-actions:has(.account-link:not([hidden])) .account-logout {
    min-width: 2rem;
    width: 2rem;
    padding-inline: 0;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #home .hero-description {
    position: relative;
    isolation: isolate;
  }
  #home .hero-description::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -.18rem -.32rem;
    border-radius: .45rem;
    background: #100b1940;
    box-shadow: 0 0 .85rem .4rem #100b1940;
    pointer-events: none;
  }
}


@media (max-height: 360px) and (orientation: landscape) {
  #home .hero-panel h2 { font-size: clamp(1.15rem, 4vw, 1.55rem); }
  #home .hero-description { margin-block-start: .35rem; font-size: .85rem; }
  #home .hero-link { margin-block-start: .35rem; min-height: 2.1rem; }
}

.hero-opening-heading {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.8vw, 2rem);
}
#home .hero-opening .hero-logo {
  flex: none;
  width: clamp(6rem, 13vw, 11rem);
  filter: drop-shadow(0 .35rem .7rem #100b19d9);
}
#home .hero-opening h1 {
  font-size: clamp(2.5rem, 5.15vw, 5.25rem);
  line-height: .99;
  letter-spacing: -.045em;
  text-shadow: 0 .1em .38em #100b19d9;
}
.hero-online-status { color: #a4efc4; }
.hero-opening-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  margin-block-start: 1.35rem;
}
#home .hero-opening-actions .hero-link { margin: 0; }
.hero-owner-link {
  min-height: 2.45rem;
  padding: .45rem .85rem;
  font-size: .92rem;
  font-weight: 650;
}
.hero-owner-link:is(:hover, :focus-visible) { background: #473047; }

@media (max-width: 680px) {
  #home .hero-opening h1 { font-size: clamp(1.55rem, 7vw, 2.7rem); }
  #home .hero-opening .hero-logo { width: clamp(3.2rem, 16vw, 5.5rem); }
  .hero-opening-actions { margin-block-start: .75rem; }
  .hero-opening-actions .hero-link { min-height: 2.45rem; padding: .45rem .75rem; font-size: .88rem; }
  .hero-owner-link { padding-inline: .65rem; font-size: .84rem; }
}

@media (max-width: 360px) and (orientation: portrait) {
  #home .hero-opening .hero-description { line-height: 1.32; }
  .hero-opening-actions { gap: .35rem .55rem; margin-block-start: .5rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  #home .hero-opening { justify-content: flex-start; }
  #home .hero-opening .eyebrow { margin-block-end: .35rem; font-size: .68rem; }
  #home .hero-opening h1 { font-size: clamp(1.4rem, 4.3vw, 2.2rem); }
  #home .hero-opening .hero-logo { width: clamp(3rem, 20dvh, 5rem); }
  #home .hero-opening .hero-description { margin-block-start: .45rem; }
  .hero-opening-actions { margin-block-start: .5rem; }
  .hero-owner-link { min-height: 2.1rem; padding-block: .25rem; }
}

.character-list[data-creating] {
  display: flex;
  align-items: flex-start;
}
.character-list[data-creating] > .role-card { flex: 0 0 clamp(12.75rem, 20vw, 14.25rem); }
.character-list[data-creating] > .character-add-slot {
  flex-basis: min(100%, 37rem);
  aspect-ratio: auto;
  container: character-create / inline-size;
  border-style: solid;
  transform: none;
  animation: none;
}
.character-editor[data-create] {
  grid-template-columns: minmax(0, min(42%, 13rem)) minmax(0, 1fr);
  padding: .7rem;
}
.character-editor[data-create] .character-editor-preview {
  gap: .45rem;
  min-width: 0;
}
.character-editor[data-create] .character-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: .3rem;
}
.character-editor[data-create] .character-controls > :is(.character-action, .hero-link) {
  justify-self: stretch;
  justify-content: center;
  min-height: 2.25rem;
  padding-inline: .35rem;
  line-height: 1.15;
  text-align: center;
}
.character-editor #character-cancel {
  border-color: #f589a88c;
  background: #7b2943;
  color: #ffe9ef;
}
.character-editor #character-cancel:hover:not(:disabled) { background: #a53b59; }
@container character-create (max-width: 26rem) {
  .character-editor[data-create] { grid-template-columns: minmax(0, 1fr); }
}
