:root {
  --ink: #07111f;
  --ink-soft: #283446;
  --night: #050913;
  --night-2: #0b1224;
  --paper: #f8fbff;
  --paper-warm: #fff8f3;
  --line: #d8e4ec;
  --cyan: #18d8ff;
  --cyan-deep: #0ba8d4;
  --coral: #ff6f4c;
  --green: #8af277;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(4, 13, 30, 0.18);
  --soft-shadow: 0 12px 30px rgba(4, 13, 30, 0.12);
  --header-height: 76px;
  --grid-bg-size: max(100vw, 1600px) auto;
  --section-y: clamp(46px, 6vw, 82px);
  --hero-y: clamp(440px, 58vh, 600px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #000000;
}

body {
  margin: 0;
  color: var(--ink);
  background: #02040a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--night);
  background: var(--cyan);
  border-radius: 8px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: rgba(5, 9, 19, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand,
.auth-logo {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 74px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(24, 216, 255, 0.5));
}

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 2px;
  color: rgba(255, 255, 255, 0.78);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-actions .button {
  white-space: nowrap;
}

.icon-link,
.nav-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  letter-spacing: 0;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible,
.icon-link:hover,
.icon-link:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #04101d;
  background: var(--cyan);
  box-shadow: 0 14px 34px rgba(24, 216, 255, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #69efff;
}

.button-coral {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 14px 34px rgba(255, 111, 76, 0.26);
}

.button-coral:hover,
.button-coral:focus-visible {
  background: #ff845f;
}

.button-outline,
.button-outline-dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
}

.button-outline-dark {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button-small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: var(--hero-y);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.subhero-media,
.auth-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

.hero-media {
  overflow: hidden;
  background-color: #02040a;
}

.hero-media::after {
  display: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-content {
  width: min(800px, calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(30px, 4vw, 46px) 0 clamp(54px, 6vw, 72px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-coral {
  color: var(--coral);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}

.hero-title img {
  width: clamp(58px, 5.8vw, 86px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 24px rgba(24, 216, 255, 0.42));
}

.hero h1 {
  max-width: none;
  font-size: clamp(4.5rem, 7vw, 6.35rem);
  font-weight: 950;
  overflow-wrap: normal;
  white-space: nowrap;
  text-shadow: 0 0 30px rgba(24, 216, 255, 0.34);
}

.hero h1 .tm {
  position: relative;
  top: -0.22em;
  margin-left: 0.08em;
  font-size: 0.17em;
  line-height: 0;
  text-shadow: 0 0 12px rgba(24, 216, 255, 0.45);
}

.hero-copy {
  width: min(570px, 100%);
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(780px, 100%);
  margin: 26px auto 0;
}

.hero-stats div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 12, 25, 0.6);
  border-radius: 8px;
}

.hero-stats dt {
  color: var(--cyan);
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
}

.section {
  padding: var(--section-y) 0;
}

.section-light {
  background: var(--paper);
}

.home-lower {
  --home-grid-overlap: clamp(100px, 11vw, 190px);
  --home-grid-fade: clamp(86px, 9vw, 150px);
  position: relative;
  margin-top: calc(-1 * var(--home-grid-overlap));
  padding-top: var(--home-grid-overlap);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: #020403;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.2) 34px, rgba(0, 0, 0, 0.7) 92px, #000 var(--home-grid-fade), #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.2) 34px, rgba(0, 0, 0, 0.7) 92px, #000 var(--home-grid-fade), #000 100%);
}

.home-lower::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 18, 15, 0.48), rgba(0, 42, 34, 0.2), rgba(0, 10, 8, 0.5)),
    url("assets/grid-bg-site.jpg") center top / var(--grid-bg-size);
  background-blend-mode: multiply, screen;
  mix-blend-mode: screen;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.44) 46px, #000 150px, #000 calc(100% - 260px), rgba(0, 0, 0, 0.42) calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.44) 46px, #000 150px, #000 calc(100% - 260px), rgba(0, 0, 0, 0.42) calc(100% - 90px), transparent 100%);
  pointer-events: none;
}

.home-lower::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(2, 4, 3, 0.88) 0, rgba(2, 4, 3, 0.44) 130px, rgba(0, 28, 23, 0.04) 28%, rgba(2, 4, 3, 0.16) 66%, rgba(2, 4, 3, 0.72) 88%, #02040a 100%),
    radial-gradient(circle at 50% 38%, rgba(31, 255, 213, 0.1), transparent 30%),
    radial-gradient(circle at 50% 76%, rgba(31, 255, 213, 0.08), transparent 32%);
  pointer-events: none;
}

.home-lower > .section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.home-lower .section-dark {
  isolation: auto;
}

.home-lower .section-dark::before,
.home-lower .section-dark::after {
  display: none;
}

.home-lower .section-head h2,
.home-lower .split-copy h2,
.home-lower .worlds-layout h2 {
  color: var(--white);
}

.home-lower .section-head p,
.home-lower .split-copy p,
.home-lower .worlds-layout p {
  color: rgba(255, 255, 255, 0.74);
}

.home-lower .platform-card,
.home-lower .feature-card {
  color: var(--white);
  background: rgba(2, 9, 18, 0.76);
  border-color: rgba(111, 211, 210, 0.28);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.home-lower .platform-card h3,
.home-lower .feature-card h3 {
  color: var(--white);
}

.home-lower .platform-card p,
.home-lower .feature-card p {
  color: rgba(255, 255, 255, 0.7);
}

.home-lower .store-button {
  color: #04101d;
  background: var(--cyan);
  box-shadow: 0 14px 34px rgba(24, 216, 255, 0.2);
}

.home-lower .store-button small {
  color: rgba(4, 16, 29, 0.62);
}

.home-lower .world-preview {
  border: 1px solid rgba(111, 211, 210, 0.28);
}

.home-lower .mini-list span {
  color: #dffdf8;
  background: rgba(24, 216, 255, 0.11);
  border-color: rgba(111, 211, 210, 0.24);
}

.home-lower .card-icon,
.home-lower .card-icon-coral,
.home-lower .card-icon-green {
  color: var(--white);
}

body[data-page="download"] main {
  --download-grid-start: clamp(330px, 42vh, 510px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #020403;
}

body[data-page="download"] main::before {
  content: "";
  position: absolute;
  inset: var(--download-grid-start) 0 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 18, 15, 0.48), rgba(0, 42, 34, 0.2), rgba(0, 10, 8, 0.5)),
    url("assets/grid-bg-site.jpg") center top / var(--grid-bg-size);
  background-blend-mode: multiply, screen;
  mix-blend-mode: screen;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 7%, rgba(0, 0, 0, 0.7) 18%, #000 30%, #000 86%, rgba(0, 0, 0, 0.42) 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 7%, rgba(0, 0, 0, 0.7) 18%, #000 30%, #000 86%, rgba(0, 0, 0, 0.42) 95%, transparent 100%);
  pointer-events: none;
}

body[data-page="download"] main::after {
  content: "";
  position: absolute;
  inset: var(--download-grid-start) 0 0;
  z-index: 3;
  background:
    linear-gradient(to bottom, rgba(2, 4, 3, 0) 0%, rgba(0, 28, 23, 0.04) 24%, rgba(2, 4, 3, 0.16) 66%, rgba(2, 4, 3, 0.72) 88%, #02040a 100%),
    radial-gradient(circle at 50% 38%, rgba(31, 255, 213, 0.1), transparent 30%);
  pointer-events: none;
}

.download-hero > .section-inner,
.specs-section > .section-inner {
  position: relative;
  z-index: 4;
}

.download-hero {
  position: relative;
  min-height: clamp(500px, 68vh, 680px);
  color: var(--white);
  background: transparent;
  overflow: visible;
}

.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.58) 100%),
    radial-gradient(circle at 50% 28%, rgba(0, 0, 0, 0.08), transparent 44%);
  pointer-events: none;
}

.download-hero::after {
  display: none;
}

.download-hero-media {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: #010908;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0, 0, 0, 0.42) 68%, transparent 86%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0, 0, 0, 0.42) 68%, transparent 86%);
}

.download-hero-media::after {
  display: none;
}

.download-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none;
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.section-head {
  width: min(720px, 100%);
  margin-bottom: 34px;
}

.download-masthead {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 auto 30px;
  text-align: center;
}

.download-masthead-kicker {
  margin: 0;
  color: var(--cyan-deep);
  font-size: clamp(0.92rem, 1.45vw, 1.18rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 22px);
  color: var(--ink);
  font-size: clamp(2.35rem, 4.6vw, 4.45rem);
  font-weight: 950;
  overflow-wrap: normal;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(24, 216, 255, 0.18);
}

.download-title img {
  width: clamp(42px, 4.7vw, 70px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 22px rgba(24, 216, 255, 0.36));
}

.download-title .tm {
  position: relative;
  top: -0.24em;
  margin-left: 0.08em;
  font-size: 0.17em;
  line-height: 0;
}

.download-hero .download-title {
  color: var(--white);
  text-shadow: 0 0 32px rgba(24, 216, 255, 0.34);
}

.download-hero .download-masthead-kicker,
.download-hero .eyebrow {
  color: var(--cyan);
}

.download-hero .section-head {
  margin-inline: auto;
  text-align: center;
}

.download-hero .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.download-hero .download-status {
  color: #d9fff1;
  background: rgba(21, 116, 91, 0.42);
  border-color: rgba(138, 242, 119, 0.32);
  box-shadow: 0 0 30px rgba(24, 216, 255, 0.12);
}

.download-hero .download-card {
  color: var(--white);
  background: rgba(2, 9, 18, 0.78);
  border-color: rgba(111, 211, 210, 0.28);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.download-hero .download-card h3 {
  color: var(--white);
}

.download-hero .download-card p {
  color: rgba(255, 255, 255, 0.68);
}

.section-head-centered {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.split-copy h2,
.worlds-layout h2,
.reset-layout h2,
.specs-layout h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.35rem);
}

.section-head p,
.split-copy p,
.worlds-layout p,
.reset-layout p,
.specs-layout p,
.auth-panel p {
  color: #596575;
  font-size: 1rem;
}

.platform-grid,
.feature-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.platform-card,
.feature-card,
.download-card {
  border-radius: 8px;
}

.platform-card,
.download-card {
  min-height: 100%;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #04202b;
  background: rgba(24, 216, 255, 0.16);
  border-radius: 8px;
}

.card-icon-coral {
  color: #3a130a;
  background: rgba(255, 111, 76, 0.16);
}

.card-icon-green {
  color: #0f2710;
  background: rgba(138, 242, 119, 0.2);
}

.platform-card h3,
.download-card h3 {
  margin-top: 18px;
  font-size: 1.28rem;
}

.platform-card p,
.download-card p {
  color: var(--ink-soft);
}

.store-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 12px 16px;
  color: var(--white);
  background: #080b12;
  border-radius: 8px;
  font-weight: 900;
}

.store-button small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-dark {
  position: relative;
  color: var(--white);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-simuspaces-plaza.png");
  background-size: cover;
  background-position: center 38%;
  opacity: 0.34;
  filter: saturate(1.2);
}

.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.94), rgba(5, 9, 19, 0.76)),
    linear-gradient(0deg, rgba(5, 9, 19, 0.96), rgba(5, 9, 19, 0.4)),
    url("assets/grid-bg-site.jpg") center / cover;
  background-blend-mode: normal, normal, screen;
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.split-copy p,
.section-dark .feature-card p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.feature-card > svg {
  width: 34px;
  height: 34px;
  color: var(--coral);
}

.feature-card h3 {
  margin-top: 22px;
  font-size: 1.28rem;
}

.worlds-layout,
.reset-layout,
.specs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.84fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.world-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 1.35;
}

.world-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-carousel {
  background: rgba(2, 9, 18, 0.7);
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 480ms ease, transform 680ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(2, 9, 18, 0.72);
  border: 1px solid rgba(111, 211, 210, 0.36);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  color: #04101d;
  background: var(--cyan);
}

.carousel-button-prev {
  left: 12px;
}

.carousel-button-prev svg {
  transform: rotate(180deg);
}

.carousel-button-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 2;
  display: flex;
  gap: 7px;
  padding: 7px;
  background: rgba(2, 9, 18, 0.68);
  border: 1px solid rgba(111, 211, 210, 0.24);
  border-radius: 8px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.44);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 18px;
  background: var(--cyan);
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #04202b;
  background: rgba(24, 216, 255, 0.13);
  border: 1px solid rgba(11, 168, 212, 0.18);
  border-radius: 8px;
  font-weight: 850;
}

.reset-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.94), rgba(5, 9, 19, 0.68)),
    url("assets/grid-bg-site.jpg") center / cover,
    url("assets/hero-simuspaces-plaza.png") center / cover;
  background-blend-mode: normal, screen, normal;
}

.reset-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 520px);
}

.reset-layout p {
  color: rgba(255, 255, 255, 0.76);
}

.reset-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reset-form label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.input-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.input-row:focus-within {
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 4px rgba(24, 216, 255, 0.14);
}

.input-row svg {
  color: var(--cyan-deep);
}

.input-row input {
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  color: #063416;
  background: rgba(138, 242, 119, 0.24);
  border: 1px solid rgba(43, 161, 70, 0.28);
  border-radius: 8px;
  font-weight: 800;
}

.form-status-error {
  color: #4a130b;
  background: rgba(255, 111, 76, 0.18);
  border-color: rgba(198, 49, 31, 0.28);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #02040a;
}

.footer-inner {
  width: min(1160px, calc(100% - 36px));
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  justify-self: start;
}

.footer-brand img {
  width: 64px;
  height: 50px;
  object-fit: contain;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  justify-self: end;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-socials {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  transition: opacity 170ms ease, transform 170ms ease, filter 170ms ease;
}

.social-link:hover,
.social-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 0.86;
  transform: translateY(-1px);
}

.social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-link img[src$="discord.png"] {
  width: 29px;
  height: 29px;
  transform: translateY(2px);
}

.social-link-x img {
  filter: invert(1);
}

.site-footer p {
  justify-self: end;
  margin: 0;
  font-size: 0.9rem;
  text-align: right;
}

.docs-page {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
  color: var(--white);
  background: #020403;
}

.legal-page {
  background: #030813;
}

.legal-hero {
  padding-bottom: 44px;
}

.legal-updated {
  display: inline-flex;
  margin-top: 4px;
  padding: 8px 12px;
  color: #d9fff1;
  background: rgba(21, 116, 91, 0.32);
  border: 1px solid rgba(138, 242, 119, 0.26);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 850;
}

.legal-shell {
  align-items: start;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-article h3 {
  margin: 26px 0 8px;
  color: #dffdf8;
  font-size: 1.05rem;
}

.legal-article p + p {
  margin-top: 12px;
}

.legal-article a {
  color: var(--cyan);
  font-weight: 850;
}

.docs-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 18, 15, 0.52), rgba(0, 42, 34, 0.18), rgba(0, 10, 8, 0.52)),
    url("assets/grid-bg-site.jpg") center top / var(--grid-bg-size);
  background-blend-mode: multiply, screen;
  mix-blend-mode: screen;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 170px, #000 calc(100% - 220px), rgba(0, 0, 0, 0.42) calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 170px, #000 calc(100% - 220px), rgba(0, 0, 0, 0.42) calc(100% - 90px), transparent 100%);
}

.docs-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(2, 4, 3, 0.9), rgba(2, 4, 3, 0.44) 22%, rgba(2, 4, 3, 0.68) 78%, #02040a 100%),
    radial-gradient(circle at 28% 12%, rgba(24, 216, 255, 0.12), transparent 30%),
    radial-gradient(circle at 74% 48%, rgba(31, 255, 213, 0.08), transparent 28%);
}

.docs-page > * {
  position: relative;
  z-index: 1;
}

.docs-hero {
  padding: clamp(44px, 7vw, 82px) 0 18px;
}

.docs-hero h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(2.55rem, 5.8vw, 4.85rem);
  text-shadow: 0 0 28px rgba(24, 216, 255, 0.22);
}

.docs-hero p:not(.eyebrow) {
  width: min(720px, 100%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.docs-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(2, 9, 18, 0.76);
  border: 1px solid rgba(111, 211, 210, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.docs-sidebar-title {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-sidebar a {
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  font-weight: 800;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible {
  color: var(--white);
  background: rgba(24, 216, 255, 0.1);
}

.docs-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.docs-article {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 28px);
  background: rgba(2, 9, 18, 0.76);
  border: 1px solid rgba(111, 211, 210, 0.26);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.docs-article h2 {
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}

.docs-article p {
  color: rgba(255, 255, 255, 0.72);
}

.callout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.callout-row span {
  padding: 10px 12px;
  color: #dffdf8;
  background: rgba(24, 216, 255, 0.1);
  border: 1px solid rgba(111, 211, 210, 0.24);
  border-radius: 8px;
  font-weight: 850;
}

.docs-definition-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.docs-definition-list div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.docs-definition-list dt {
  color: var(--white);
  font-weight: 900;
}

.docs-definition-list dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.docs-breadcrumb {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
}

.api-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.api-summary-card,
.api-member-row {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(111, 211, 210, 0.22);
  border-radius: 8px;
}

.api-summary-card span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.api-summary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 1.05rem;
}

.api-summary-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.api-member-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.api-member-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.api-member-row code {
  min-width: 0;
  color: var(--cyan);
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.api-member-row p {
  min-width: 0;
  margin: 0;
}

.docs-article pre {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0 0;
  padding: 18px;
  color: #dffdf8;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(111, 211, 210, 0.22);
  border-radius: 8px;
  white-space: pre;
  overflow-wrap: normal;
  tab-size: 2;
}

.docs-article pre code {
  display: block;
  min-width: max-content;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.csharp-code .cs-keyword {
  color: #ff7ab6;
}

.csharp-code .cs-type {
  color: #78dce8;
}

.csharp-code .cs-string {
  color: #a9dc76;
}

.csharp-code .cs-comment {
  color: #6d7f86;
  font-style: italic;
}

.csharp-code .cs-number {
  color: #ffd866;
}

.csharp-code .cs-method {
  color: #82aaff;
}

.csharp-code .cs-attr {
  color: #c3e88d;
}

.csharp-code .cs-preprocessor {
  color: #ffcb6b;
}

.subhero {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.subhero::before,
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 7, 16, 0.94), rgba(3, 7, 16, 0.55)),
    linear-gradient(0deg, rgba(3, 7, 16, 0.78), rgba(3, 7, 16, 0.12));
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/grid-bg-site.jpg") center / cover;
  mix-blend-mode: screen;
  opacity: 0.2;
}

.subhero-content {
  padding: 50px 0;
}

.subhero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
}

.subhero p:not(.eyebrow) {
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.03rem;
}

.download-status {
  display: inline-flex;
  padding: 10px 12px;
  color: #11320b;
  background: rgba(138, 242, 119, 0.22);
  border: 1px solid rgba(43, 161, 70, 0.22);
  border-radius: 8px;
  font-weight: 850;
}

.download-card {
  position: relative;
}

.download-card > svg {
  width: 38px;
  height: 38px;
  color: var(--cyan-deep);
}

.download-card .button {
  width: 100%;
  margin-top: 10px;
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 9px;
  color: #04202b;
  background: rgba(24, 216, 255, 0.16);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge-coral {
  color: #3a130a;
  background: rgba(255, 111, 76, 0.16);
}

.badge-green {
  color: #0f2710;
  background: rgba(138, 242, 119, 0.2);
}

.specs-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #000000;
}

.specs-section::before {
  display: none;
}

.specs-section::after {
  display: none;
}

.specs-layout p {
  color: rgba(255, 255, 255, 0.75);
}

.spec-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.spec-table div {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table span {
  color: rgba(255, 255, 255, 0.62);
}

.auth-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 46px 18px;
  overflow: hidden;
  isolation: isolate;
}

.auth-panel {
  width: min(520px, 100%);
  padding: clamp(22px, 4vw, 32px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-logo img {
  width: 74px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 14px rgba(24, 216, 255, 0.5));
}

.auth-panel h1 {
  font-size: clamp(2.1rem, 5.8vw, 3.35rem);
}

.reset-form-stacked {
  margin-top: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
  font-weight: 850;
}

.auth-links a {
  color: var(--cyan-deep);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: calc(var(--header-height) + 10px);
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 14px;
    background: rgba(5, 9, 19, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease;
  }

  .site-header[data-open="true"] .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px;
  }

  .header-actions {
    justify-self: end;
  }

  .platform-grid,
  .feature-grid,
  .download-grid,
  .api-summary-grid,
  .split-copy,
  .worlds-layout,
  .reset-layout,
  .specs-layout,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-sidebar-title {
    grid-column: 1 / -1;
  }

  .api-member-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .world-preview {
    order: 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 32px 0;
    text-align: center;
  }

  .footer-brand,
  .footer-socials,
  .site-footer nav,
  .site-footer p {
    justify-self: center;
  }

  .site-footer p {
    text-align: center;
  }

  .download-title {
    font-size: 3.45rem;
  }

  .download-title img {
    width: 58px;
  }

  .hero h1 {
    font-size: 4.65rem;
  }

  .hero-title {
    gap: 14px;
  }

  .hero-title img {
    width: 66px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand img {
    width: 58px;
    height: 46px;
  }

  .header-actions .icon-link {
    display: none;
  }

  .header-actions .button {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: clamp(460px, 72vh, 600px);
    align-items: end;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(1, 14, 14, 0.95), rgba(1, 23, 24, 0.62)),
      linear-gradient(0deg, rgba(1, 11, 15, 0.94), rgba(3, 21, 21, 0.22));
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-inline: 14px;
    padding: 38px 0 48px;
  }

  .hero h1 {
    font-size: 2.78rem;
  }

  .download-masthead {
    margin-bottom: 32px;
  }

  .download-title {
    gap: 10px;
    font-size: 2.35rem;
  }

  .download-title img {
    width: 42px;
  }

  .hero-title {
    gap: 10px;
  }

  .hero-title img {
    width: 50px;
  }

  .action-row,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .action-row .button {
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }

  .docs-hero {
    padding-top: 46px;
  }

  .docs-sidebar {
    grid-template-columns: 1fr;
  }

  .carousel-button {
    width: 36px;
    height: 36px;
  }

  .carousel-dots {
    max-width: calc(100% - 24px);
    overflow: hidden;
  }

  .platform-card,
  .feature-card,
  .download-card,
  .reset-form,
  .auth-panel {
    padding: 22px;
  }

  .spec-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auth-hero {
    align-items: start;
    padding-top: 34px;
  }
}

.docs-sidebar-divider {
  display: block;
  height: 1px;
  margin: 8px 0;
  background: rgba(111, 211, 210, 0.2);
}

.docs-sidebar a.is-active {
  color: var(--white);
  background: rgba(24, 216, 255, 0.12);
}

.docs-article h3 {
  margin-top: 24px;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.docs-article code {
  color: #dffdf8;
  background: rgba(24, 216, 255, 0.08);
  border: 1px solid rgba(111, 211, 210, 0.15);
  border-radius: 6px;
  padding: 0.08em 0.32em;
}

.docs-article pre code,
.api-member-row code {
  background: transparent;
  border: 0;
  padding: 0;
}

.callout {
  margin-top: 20px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(24, 216, 255, 0.08);
  border: 1px solid rgba(111, 211, 210, 0.24);
  border-radius: 8px;
}

.callout strong {
  display: block;
  color: var(--white);
}

.callout p {
  margin: 6px 0 0;
}

.api-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.api-pattern {
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(111, 211, 210, 0.22);
  border-radius: 8px;
}

.api-pattern h3 {
  margin-top: 0;
}

.api-pattern p {
  margin-bottom: 14px;
}

.api-pattern a,
.source-link,
.api-next-list a {
  color: var(--cyan);
  font-weight: 900;
}

.api-next-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.api-next-list a {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(111, 211, 210, 0.22);
  border-radius: 8px;
}

.api-next-list span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.api-checklist {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 1.3rem;
  color: rgba(255, 255, 255, 0.74);
}

.api-member-list.compact .api-member-row {
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
}

.example-filter {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--white);
  font-weight: 900;
}

.example-filter input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(111, 211, 210, 0.28);
  border-radius: 8px;
  outline: 0;
}

.example-filter input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(24, 216, 255, 0.12);
}

.examples-list {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.api-example[hidden] {
  display: none;
}

.example-heading {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.example-heading h2 {
  overflow-wrap: anywhere;
}

.source-link {
  flex: 0 0 auto;
  padding: 9px 11px;
  background: rgba(24, 216, 255, 0.09);
  border: 1px solid rgba(111, 211, 210, 0.24);
  border-radius: 8px;
}

.code-block {
  max-height: 560px;
  white-space: pre;
}

.code-block[data-loaded="false"] {
  color: #ffd9cf;
  border-color: rgba(255, 111, 76, 0.42);
}

.code-frame-shell {
  overflow: hidden;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(111, 211, 210, 0.22);
  border-radius: 8px;
}

.code-frame-note {
  margin: 0;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(24, 216, 255, 0.06);
  border-bottom: 1px solid rgba(111, 211, 210, 0.18);
  font-size: 0.86rem;
}

.code-frame-note a {
  color: var(--cyan);
  font-weight: 900;
}

.code-frame {
  display: block;
  width: 100%;
  height: min(70vh, 560px);
  min-height: 280px;
  background: #050913;
  border: 0;
  color-scheme: dark;
}

.wiki-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.wiki-guide-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(111, 211, 210, 0.22);
  border-radius: 8px;
}

.wiki-guide-card span {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 950;
}

.wiki-guide-card strong {
  color: var(--white);
  font-size: 1.2rem;
}

.wiki-guide-card p {
  margin: 0;
}

.wiki-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.wiki-flow a,
.wiki-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  color: #dffdf8;
  background: rgba(24, 216, 255, 0.1);
  border: 1px solid rgba(111, 211, 210, 0.24);
  border-radius: 8px;
  font-weight: 850;
}

.wiki-flow a {
  color: var(--cyan);
}

.wiki-shot {
  position: relative;
  overflow: hidden;
  margin: 22px 0 0;
  background:
    linear-gradient(135deg, rgba(24, 216, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(2, 9, 18, 0.72);
  border: 1px solid rgba(111, 211, 210, 0.24);
  border-radius: 8px;
}

.wiki-shot::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
}

.wiki-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 48px);
  object-fit: cover;
}

.wiki-shot figcaption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(2, 9, 18, 0.86);
  border-top: 1px solid rgba(111, 211, 210, 0.18);
  font-size: 0.9rem;
}

.wiki-shot.is-missing::after {
  content: "Screenshot placeholder\\A" attr(data-missing-src);
  position: absolute;
  inset: 0 0 48px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  text-align: center;
  white-space: pre-wrap;
}

.wiki-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 920px) {
  .api-pattern-grid,
  .api-member-list.compact .api-member-row,
  .wiki-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .example-heading {
    display: grid;
  }

  .source-link {
    width: max-content;
  }
}
