:root {
  color-scheme: dark;
  --bg: #111417;
  --bg-deep: #0b0e10;
  --panel: #171b1f;
  --panel-raised: #1d2227;
  --line: #2a3036;
  --line-soft: rgba(234, 223, 201, 0.1);
  --ink: #f3ead8;
  --ink-soft: #b8b0a1;
  --ink-dim: #7f7a71;
  --copper: #c78b42;
  --copper-bright: #edae61;
  --cream: #eadfc9;
  --green: #81b29a;
  --red: #df765f;
  --max-width: 1240px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 32px);
}
body {
  margin: 0;
  min-width: min(320px, 100%);
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
::selection {
  background: rgba(199, 139, 66, 0.32);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
img {
  max-width: 100%;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--bg-deep);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(17, 20, 23, 0.97);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  color: var(--cream);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.primary-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.primary-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current=page] {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
}
.header-setup {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--cream);
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
.header-setup:hover {
  border-color: rgba(199, 139, 66, 0.48);
  background: rgba(199, 139, 66, 0.08);
  transform: translateY(-1px);
}
.header-setup[data-copied=true] {
  border-color: rgba(129, 178, 154, 0.38);
  color: #b9d2c5;
}
.header-copy-glyph {
  position: relative;
  width: 15px;
  height: 17px;
  flex: 0 0 auto;
}
.header-copy-glyph::before,
.header-copy-glyph::after {
  position: absolute;
  width: 8px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  content: "";
}
.header-copy-glyph::before {
  top: 1px;
  left: 2px;
  opacity: 0.58;
}
.header-copy-glyph::after {
  top: 5px;
  left: 6px;
  background: var(--bg);
}
.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
.icon-button img {
  display: block;
  width: 20px;
  height: 20px;
  opacity: 0.78;
  transition: opacity 160ms ease;
}
.icon-button:hover {
  border-color: rgba(199, 139, 66, 0.48);
  background: rgba(199, 139, 66, 0.08);
  transform: translateY(-2px);
}
.icon-button:hover img {
  opacity: 1;
}
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--copper-bright);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow > span {
  width: 22px;
  height: 1px;
  background: currentColor;
}
.button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-width: 164px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 740;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}
.button:disabled {
  cursor: default;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--cream);
  color: var(--bg-deep);
  box-shadow: 0 12px 40px rgba(234, 223, 201, 0.09);
}
.button-primary:hover {
  background: #fff6e4;
}
.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}
.button-secondary:hover {
  border-color: rgba(199, 139, 66, 0.48);
  background: rgba(199, 139, 66, 0.08);
}
.text-link {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
}
.text-link span {
  color: var(--copper-bright);
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 130px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 11px;
}
.footer-brand {
  color: var(--ink-soft);
}
.site-footer > p {
  margin: 0;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 18px;
  justify-self: end;
}
.footer-links a:hover {
  color: var(--cream);
}
.docs-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px) 180px;
  gap: clamp(36px, 5vw, 74px);
  align-items: start;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: 54px 0 120px;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  max-height: calc(100svh - var(--header-height) - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.docs-home {
  display: block;
  padding: 4px 2px 20px;
  border-bottom: 1px solid var(--line);
}
.docs-home span {
  display: block;
  color: var(--copper-bright);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.docs-home b {
  display: block;
  margin-top: 3px;
  color: var(--cream);
  font-size: 18px;
  letter-spacing: -0.035em;
}
.docs-nav section {
  margin-top: 24px;
  margin-bottom: 25px;
}
.docs-nav h2 {
  margin: 0 0 7px;
  color: #73797c;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.docs-nav a {
  display: block;
  padding: 6px 9px;
  margin-left: -9px;
  border-left: 1px solid transparent;
  border-radius: 0 6px 6px 0;
  color: #92979a;
  font-size: 11px;
  line-height: 1.4;
}
.docs-nav a:hover {
  color: var(--cream);
}
.docs-nav a[aria-current=page] {
  border-left-color: var(--copper);
  background: rgba(199, 139, 66, 0.07);
  color: var(--cream);
}
.doc-pagination {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.doc-mobile-toc {
  display: none;
}
@media (max-width: 1080px) {
  .doc-mobile-toc {
    display: block;
    margin: 0 0 24px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
  }
  .doc-mobile-toc summary {
    cursor: pointer;
  }
  .doc-mobile-toc nav {
    display: grid;
    gap: 10px;
    padding-top: 16px;
  }
}
.doc-pagination a {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.doc-pagination a:hover,
.doc-pagination a:focus-visible {
  border-color: var(--copper-bright);
}
.doc-pagination span {
  color: var(--ink-dim);
  font-size: 12px;
}
.doc-pagination strong {
  color: var(--cream);
}
.docs-mobile-nav {
  display: none;
}
.doc-article {
  min-width: 0;
}
.doc-breadcrumb {
  display: flex;
  gap: 8px;
  margin: 1px 0 20px;
  color: var(--ink-dim);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc-breadcrumb a:hover {
  color: var(--copper-bright);
}
.doc-article > h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.05;
}
.doc-article h2 {
  padding-top: 30px;
  margin: 56px 0 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 28px;
  font-weight: 690;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.doc-article h3 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.03em;
}
.doc-article h4 {
  margin: 28px 0 10px;
  color: var(--cream);
  font-size: 15px;
}
.doc-article p,
.doc-article li {
  color: #aaa79f;
  font-size: 14px;
  line-height: 1.78;
}
.doc-article p {
  margin: 14px 0;
}
.doc-article strong {
  color: var(--cream);
}
.doc-article img {
  max-width: 100%;
  height: auto;
}
.doc-article audio {
  display: block;
  width: min(100%, 480px);
  margin: 16px 0;
}
.doc-article a {
  color: var(--copper-bright);
  text-decoration: underline;
  text-decoration-color: rgba(237, 174, 97, 0.28);
  text-underline-offset: 3px;
}
.doc-article p:has(> a > img) {
  margin: 26px 0 18px;
}
.doc-article a:has(> img) {
  display: block;
  text-decoration: none;
}
.doc-article a > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  object-fit: cover;
  transition: border-color 180ms ease, transform 180ms ease;
}
.doc-article a:hover > img {
  border-color: rgba(199, 139, 66, 0.48);
  transform: translateY(-2px);
}
.doc-article ul,
.doc-article ol {
  padding-left: 24px;
}
.doc-article li {
  margin: 7px 0;
  padding-left: 4px;
}
.doc-article li::marker {
  color: var(--copper);
}
.doc-article blockquote {
  padding: 8px 0 8px 18px;
  margin: 24px 0;
  border-left: 2px solid var(--copper);
}
.doc-article blockquote p {
  color: var(--cream);
}
.doc-article code {
  padding: 2px 5px;
  border: 1px solid rgba(234, 223, 201, 0.1);
  border-radius: 5px;
  background: #171c20;
  color: #d7b98f;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.85em;
}
.doc-article pre {
  position: relative;
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1013;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}
.doc-article pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c9c3b8;
  font-size: 11px;
  line-height: 1.75;
}
.copy-code {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #171b1f;
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 9px;
}
.copy-code:hover {
  color: var(--cream);
}
.doc-article table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 12px;
}
.doc-article th,
.doc-article td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc-article th {
  background: var(--panel);
  color: var(--cream);
  font-weight: 670;
}
.doc-article td {
  color: var(--ink-soft);
}
.doc-article hr {
  height: 1px;
  margin: 45px 0;
  border: 0;
  background: var(--line);
}
.doc-end {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 10px;
}
.doc-end a {
  color: var(--ink-soft);
  text-decoration: none;
}
.page-toc {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  max-height: calc(100svh - var(--header-height) - 70px);
  overflow: auto;
}
.page-toc p {
  margin: 0 0 12px;
  color: #71777b;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-toc a {
  display: block;
  padding: 4px 0;
  color: #73797c;
  font-size: 10px;
  line-height: 1.45;
}
.page-toc a:hover,
.page-toc a[aria-current=true] {
  color: var(--cream);
}
.page-toc .toc-level-3 {
  padding-left: 10px;
}
.page-toc .toc-level-4 {
  padding-left: 20px;
}
.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(800px, calc(100% - 48px));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
}
.not-found h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  letter-spacing: -0.06em;
  line-height: 1;
}
.not-found > p:not(.eyebrow) {
  color: var(--ink-soft);
}
@media (max-width: 1120px) {
  .docs-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 42px;
  }
  .page-toc {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 18px;
  }
  .primary-nav {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-setup {
    height: 34px;
    padding-inline: 9px;
    font-size: 10px;
  }
  .site-footer,
  .docs-shell {
    width: min(100% - 32px, var(--max-width));
  }
  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 0;
  }
  .site-footer > p {
    text-align: left;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-self: start;
  }
  .docs-shell {
    display: block;
    padding-top: 24px;
  }
  .docs-sidebar {
    display: none;
  }
  .docs-mobile-nav {
    display: block;
    margin-bottom: 38px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
  }
  .docs-mobile-nav summary {
    display: flex;
    justify-content: space-between;
    padding: 11px 13px;
    color: var(--cream);
    cursor: pointer;
    font-size: 12px;
    font-weight: 680;
    list-style: none;
  }
  .docs-mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .docs-mobile-nav[open] summary {
    border-bottom: 1px solid var(--line);
  }
  .docs-mobile-nav > div {
    max-height: 56vh;
    padding: 18px;
    overflow: auto;
  }
  .doc-article > h1 {
    font-size: clamp(38px, 12vw, 54px);
  }
  .doc-article table {
    display: block;
    overflow-x: auto;
  }
}
@media (max-width: 430px) {
  .brand-mark {
    width: 27px;
    height: 27px;
  }
  .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Locale controls stay available on both desktop and mobile docs. */
.translation-notice { margin: 1rem 0 1.5rem; padding: 1rem; border-left: 2px solid #b78764; background: #ffffff05; font-size: .9rem; }
html[lang="ko"] .doc-article { word-break: keep-all; overflow-wrap: anywhere; }

.language-menu { position: relative; font-size: 12px; }
.language-menu summary { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-soft); border-radius: 8px; cursor: pointer; list-style: none; color: var(--ink); }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover, .language-menu[open] summary { background: #ffffff08; }
.language-menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; max-height: 60vh; overflow-y: auto; padding: 6px; border: 1px solid var(--line-soft); border-radius: 10px; background: #191d21; box-shadow: 0 12px 32px #0005; }
.language-menu nav a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 6px; }
.language-menu nav a:hover, .language-menu nav a[aria-current] { background: #ffffff08; color: var(--cream); }
.language-menu summary:focus-visible, .language-menu a:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
html[lang="ko"] .world-landing { word-break: keep-all; overflow-wrap: anywhere; }

.world-landing {
  --paper:#eee9dc;
  --accent:#ee9e5e;
  color: var(--paper);
  background: #111518;
}
.world-landing em {
  font-style: normal;
  color: var(--accent);
}
.world-landing h1,
.world-landing h2,
.world-landing h3 {
  letter-spacing: -.065em;
  line-height: .95;
  margin: 0;
  font-weight: 850;
}
.world-landing .eyebrow {
  font-size: 10px;
  letter-spacing: .19em;
  color: #aea99d;
}
.world-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.world-link {
  font-size: 13px;
  border-bottom: 1px solid #756854;
  padding-bottom: 6px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a6b58c;
}
.world-controls button,
.item-options button,
.source-tabs button {
  border: 1px solid #ffffff22;
  background: #14191acc;
  color: #c3c0b5;
  padding: 10px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}
.world-controls button[aria-pressed=true],
.item-options button[aria-pressed=true],
.source-tabs button[aria-pressed=true] {
  background: var(--paper);
  border-color: var(--paper);
  color: #15191a;
}
.world-controls button:disabled {
  opacity: .45;
  cursor: wait;
}
.world-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  padding: 22px 5%;
  background: #e9e2d0;
  color: #191d1e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.world-strip i {
  font-size: 20px;
  font-style: normal;
  color: #a96537;
}
.world-items,
.world-sound,
.world-source {
  max-width: 1440px;
  margin: auto;
  padding: 130px 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
}
.world-landing h2 {
  font-size: clamp(45px, 5.8vw, 86px);
}
.world-section-copy > p:not(.eyebrow),
.world-sound > div > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.85;
  color: #a9aaa3;
  margin: 25px 0;
}
.item-showcase {
  min-width: 0;
  position: relative;
  border: 1px solid #4a4638;
  background:
    radial-gradient(
      ellipse,
      #493c2655,
      transparent 70%);
  padding: 25px;
}
.item-coordinate,
.sound-caption {
  font-size: 10px;
  letter-spacing: .13em;
  color: #bbb3a1;
}
.item-art {
  height: 330px;
  display: grid;
  place-items: center;
}
.item-art img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 28px #0009);
  transform: rotate(-12deg);
}
.item-options {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.item-options button {
  font-size: 10px;
  padding: 9px;
}
.item-options a {
  margin-left: auto;
  font-size: 11px;
}
.world-sound {
  border-top: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
}
.sound-player {
  border-top: 1px solid #796248;
  padding-top: 20px;
}
.sound-player > img {
  width: 100%;
  mix-blend-mode: screen;
  height: 180px;
  object-fit: fill;
}
.sound-progress {
  height: 2px;
  background: #ffffff22;
  overflow: hidden;
}
.sound-progress > span {
  height: 100%;
  width: 0;
  display: block;
  background: var(--accent);
}
.sound-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
}
.sound-play {
  background: var(--accent);
  color: #171a1a;
  border: 0;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
.sound-actions label {
  display: block;
  font-size: 10px;
  color: #aaa;
}
.sound-actions select {
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #696253;
  padding: 6px 20px 6px 0;
  font: inherit;
}
.sound-actions select option {
  background: #171b1f;
}
.sound-actions a {
  margin-left: auto;
  font-size: 12px;
}
.sound-player > p {
  font-size: 11px;
  color: #b4afa2;
}
.source-window {
  min-width: 0;
  border: 1px solid #ffffff22;
  background: #0d1113;
}
.source-tabs {
  display: flex;
  border-bottom: 1px solid #ffffff22;
  gap: 0;
  align-items: center;
}
.source-tabs button {
  border: 0;
  border-radius: 0;
  padding: 15px 18px;
}
.source-tabs > span {
  margin-left: auto;
  margin-right: 15px;
  font-size: 11px;
  color: #8c918b;
}
.source-window pre {
  padding: 25px;
  margin: 0;
  min-height: 310px;
  max-height: 390px;
  overflow: auto;
  color: #d7b88c;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre;
}
.source-footer {
  border-top: 1px solid #ffffff22;
  display: flex;
  justify-content: space-between;
  padding: 16px;
  font-size: 10px;
  color: #b0aaa0;
}
.world-delivery {
  padding: 110px 6%;
  background: #111518;
  color: var(--paper);
}
.world-delivery > .eyebrow {
  color: #a5afb8;
}
.world-delivery h2 em {
  color: var(--accent);
}
.delivery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 50px 0 30px;
  border-top: 1px solid #ffffff20;
}
.delivery-pair > a {
  padding: 35px 35px 35px 0;
}
.delivery-pair > a + a {
  padding-left: 45px;
  border-left: 1px solid #ffffff20;
}
.delivery-pair span {
  font-size: 10px;
  letter-spacing: .13em;
}
.delivery-pair h3 {
  font-size: 42px;
  margin-top: 30px;
}
.delivery-pair p {
  font-size: 14px;
  max-width: 370px;
  line-height: 1.7;
  color: #b5bdc4;
  margin: 20px 0;
}
.delivery-pair strong {
  font-size: 13px;
}
.hero-start {
  max-width: 380px;
  scroll-margin-top: 100px;
  text-align: center;
}
.hero-start .world-actions {
  justify-content: center;
}
.hero-start [data-copy-agent-instruction] {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 48px;
}
.hero-start [data-copy-feedback] {
  margin: 12px 0 0;
  max-width: none;
  color: #a9aaa3;
  font-size: clamp(8px, 2.5cqi, 11px);
  line-height: 1.5;
  min-height: 0;
  text-align: left;
  white-space: nowrap;
}
.world-landing button:focus-visible,
.world-landing a:focus-visible,
.world-landing select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.world-landing button:hover:not(:disabled) {
  border-color: var(--accent);
}
@media (max-width: 850px) {
  .world-strip {
    flex-wrap: wrap;
    font-size: 9px;
    gap: 14px;
    padding: 17px;
  }
  .world-strip i:last-of-type {
    display: none;
  }
  .world-items,
  .world-sound,
  .world-source {
    padding: 80px 6%;
    gap: 45px;
    grid-template-columns: 1fr;
  }
  .world-landing h2 {
    font-size: 58px;
  }
  .world-source .source-window {
    max-width: 100%;
  }
  .world-delivery {
    padding: 70px 6%;
  }
  .item-art {
    height: 280px;
  }
}
@media (max-width: 480px) {
  .world-items,
  .world-sound,
  .world-source {
    padding: 65px 6%;
  }
  .world-landing h2 {
    font-size: 48px;
  }
  .delivery-pair {
    grid-template-columns: 1fr;
  }
  .delivery-pair > a + a {
    border-left: 0;
    border-top: 1px solid #ffffff20;
    padding: 35px 0;
  }
  .world-strip span {
    font-size: 8px;
  }
  .world-strip i {
    display: none;
  }
  .item-showcase {
    padding: 16px;
  }
  .source-tabs button {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-landing * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.source-result {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #ffffff15;
  padding: 12px 20px;
}
.source-result img {
  width: 120px;
  height: 70px;
  object-fit: contain;
  image-rendering: pixelated;
}
.source-result span {
  font-size: 9px;
  letter-spacing: .14em;
  color: #9f9f93;
}
.sound-another {
  border: 1px solid #766652;
  background: transparent;
  color: var(--paper);
  padding: 10px 14px;
  font-size: 12px;
  cursor: pointer;
}
.world-source .source-window pre {
  height: 280px;
  min-height: 0;
  max-height: none;
}
.source-code pre:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.source-result {
  padding: 25px;
}
.source-result img {
  width: 180px;
  height: 120px;
}
.sound-actions {
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .sound-actions {
    gap: 16px;
  }
  .sound-actions a {
    font-size: 11px;
    margin-left: 0;
  }
  .world-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 14px;
  }
  .world-strip i {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .world-stage[data-ready="true"] canvas { animation: model-arrive 800ms cubic-bezier(.2,.8,.2,1); }
  .sound-player.is-playing .sound-play { animation: sound-pulse 900ms ease-in-out infinite; }
  .world-link, .delivery-pair strong { transition: color 180ms ease; }
  .world-link:hover, .delivery-pair a:hover strong { color: var(--accent); }
  .item-options button, .world-controls button { transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
}
@keyframes model-arrive { from { opacity: .25; } to { opacity: 1; } }
@keyframes sound-pulse { 0%, 100% { box-shadow: 0 0 0 0 #ee9e5e00; } 50% { box-shadow: 0 0 0 10px #ee9e5e18; } }

/* Assets as Code: source-first framing around the real asset renderer. */
.world-landing { --paper: #eef2f6; --accent: #ffad70; background: #111518; }
.world-landing .eyebrow { font-size: 12px; letter-spacing: .13em; }
.world-landing .world-link { font-size: 14px; }
.world-controls button, .item-options button, .source-tabs button { font-size: 14px; }
.world-landing h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; }
.world-section-copy > p:not(.eyebrow), .world-sound > div > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; }
.aac-workflow, .aac-frontier { max-width: 1440px; margin: auto; padding: 80px 6%; }
.aac-workflow { border-bottom: 1px solid #ffffff20; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 48px 0 30px; gap: 30px; }
.workflow-steps li { border-top: 1px solid #ffffff30; padding-top: 18px; }
.workflow-steps li > span { font: 13px ui-monospace, monospace; color: var(--accent); }
.workflow-steps h3 { font-size: 24px; letter-spacing: -.035em; margin-top: 18px; }
.workflow-steps p, .section-lead { color: #b5bdc4; font-size: 16px; line-height: 1.7; }
.workflow-steps code { font-size: 14px; }
.section-lead { max-width: 650px; margin: 25px 0 40px; }
.aac-frontier { border-top: 1px solid #ffffff20; }
.frontier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.frontier-grid article { min-width: 0; border: 0; background: transparent; }
.frontier-grid article > img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; }
.frontier-grid article > div { padding: 24px 0; }
.frontier-grid h3 { font-size: 26px; letter-spacing: -.035em; }
.frontier-grid p { font-size: 16px; color: #b5bdc4; line-height: 1.65; min-height: 80px; }
.frontier-grid a { display: inline-block; font-size: 14px; margin: 0 16px 18px 0; text-decoration: underline; text-underline-offset: 4px; }
.evidence-note { max-width: 750px; font-size: 14px; line-height: 1.7; color: #a5afb8; margin: 24px 0; }
.world-source .source-window pre { font-size: 13px; color: #e6c69c; }
.source-tabs > span, .source-footer, .source-result span,
.item-coordinate, .sound-caption, .sound-player > p, .start-footnote { font-size: 12px; }
.item-options a, .sound-actions a, .sound-another, .delivery-pair strong { font-size: 14px; }
.delivery-pair p { font-size: 16px; }
.world-landing summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
@media (max-width: 900px) {
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .frontier-grid { grid-template-columns: 1fr; }
  .frontier-grid article { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .frontier-grid p { min-height: 0; }
}
@media (max-width: 480px) {
  .aac-workflow, .aac-frontier { padding: 64px 6%; }
  .workflow-steps { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .workflow-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
  .workflow-steps h3 { margin: 0; }
  .workflow-steps p { grid-column: 2; margin: 0 0 12px; }
  .frontier-grid article { display: block; }
  .source-footer { flex-wrap: wrap; gap: 10px; }
  .primary-nav { gap: 12px; }
}

/* Keep one dark canvas; structure comes from spacing, not color inversions. */
.world-items, .world-sound, .world-source { padding-top: 80px; padding-bottom: 80px; }
.world-delivery { max-width: 1440px; margin: auto; padding: 80px 6%; border-top: 1px solid #ffffff20; }
.delivery-pair { margin: 32px 0 24px; }
.delivery-pair h3 { font-size: 28px; margin-top: 0; letter-spacing: -.035em; }
.delivery-pair > a { padding-top: 28px; padding-bottom: 28px; }
.source-footer { justify-content: flex-end; }
.world-controls button[aria-pressed=true], .item-options button[aria-pressed=true], .source-tabs button[aria-pressed=true] {
  background: #273038; border-color: #75818a; color: var(--paper);
}
@media (max-width: 850px) {
  .frontier-grid article > div { padding: 24px; }
}
@media (max-width: 480px) {
  .world-items, .world-sound, .world-source, .world-delivery { padding-top: 56px; padding-bottom: 56px; }
  .frontier-grid article > div { padding: 24px 0; }
}

/* The hero has two owners: product copy and an interactive asset preview. */
.world-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 32px;
  width: min(100% - 80px, 1440px);
  margin: auto;
  padding: 40px 0 32px;
  background: transparent;
}
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.world-heading .eyebrow { margin: 0 0 24px; color: #aab2ba; font-size: 11px; letter-spacing: .12em; }
.world-heading h1 { font-size: clamp(88px, 9.5vw, 144px); font-weight: 780; line-height: .88; letter-spacing: -.075em; }
.hero-subtitle { margin: 24px 0 0; color: var(--paper); font-size: clamp(20px, 2vw, 26px); line-height: 1.4; font-weight: 500; letter-spacing: -.035em; }
.world-intro > p { max-width: 400px; margin: 18px 0 0; color: #a8b1b9; font-size: 16px; line-height: 1.85; }
.world-intro .world-actions { margin-top: 28px; gap: 24px; }
.world-intro .button { width: auto; min-width: 0; padding: 12px 20px; }
.hero-preview { min-width: 0; position: relative; isolation: isolate; background: transparent; }
.hero-preview::before { content: ''; position: absolute; z-index: -1; inset: 6% -4% 12%; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, #ac68291b, transparent 66%); }
.hero-preview::after { content: ''; position: absolute; z-index: -1; inset: 12% 8% 24%; border: 1px solid #e7b77f13; border-radius: 50%; transform: rotate(-22deg); pointer-events: none; }
.specimen-id { font: 10px ui-monospace, monospace; letter-spacing: .1em; color: #a98e72; }
.world-heading h1 span { color: var(--accent); }
.preview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 20px; font-size: 12px; }
.preview-heading > span { color: #d3d9df; font-weight: 600; }
.preview-heading a { color: #a8b1b9; }
.world-stage { position: relative; height: clamp(390px, 39vw, 560px); min-width: 0; touch-action: pan-y; }
.world-stage canvas, .world-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; touch-action: none; cursor: grab; }
.world-stage canvas:active { cursor: grabbing; }
.world-stage img { mix-blend-mode: lighten; pointer-events: none; }
.world-note { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 16px; text-align: center; font-size: 11px; color: #9da8b0; line-height: 1.5; }
.world-controls { display: flex; align-items: start; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-top: 0; }
.world-controls > div, .view-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.world-controls button { padding: 8px 10px; font-size: 11px; border-radius: 6px; }
.view-options { margin-left: auto; font-size: 11px; }
.view-options summary { padding: 8px 4px; cursor: pointer; color: #a8b1b9; }
.view-options .view-controls { margin-top: 8px; }
.world-index { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 0; color: #98a3ad; font-size: 11px; line-height: 1.5; }
.world-index > span { font-family: ui-monospace, monospace; }
@media (max-width: 900px) {
  .world-hero { grid-template-columns: minmax(0, 1fr); max-width: 620px; padding: 44px 0 56px; gap: 36px; }
  .world-heading h1 { font-size: clamp(60px, 10vw, 84px); }
  .world-stage { height: 400px; }
  .world-intro > p { max-width: 480px; }
}
@media (max-width: 480px) {
  .world-hero { width: calc(100% - 32px); padding-top: 36px; gap: 28px; }
  .world-heading .eyebrow { margin-bottom: 18px; font-size: 10px; }
  .world-heading h1 { font-size: clamp(56px, 15vw, 68px); }
  .hero-subtitle { margin-top: 20px; font-size: 21px; }
  .world-intro > p { font-size: 14px; line-height: 1.8; margin-top: 12px; }
  .world-intro .world-actions { gap: 18px; margin-top: 22px; }
  .world-stage { height: 300px; }
  .preview-heading { padding: 14px 16px; }
  .world-controls { padding: 10px; }
  .world-controls button { padding: 8px; }
}

.world-intro .hero-start .button { width: 100%; }

.hero-proof { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 24px 0 12px; border-top: 1px solid #ffffff20; }
.hero-code { display: block; width: fit-content; }
.hero-code > span { display: block; margin-bottom: 10px; color: #869096; font: 10px ui-monospace, monospace; letter-spacing: .04em; }
.hero-code code { display: block; white-space: pre; color: #c2c8c7; font: 12px/1.7 ui-monospace, monospace; }
.hero-code b { color: var(--accent); font-weight: 500; }
.hero-proof-message { display: flex; gap: 20px; align-items: center; }
.hero-proof-message > span { font-size: 38px; color: var(--accent); }
.hero-proof-message p { max-width: 310px; margin: 0; color: #c1c6c8; font-size: 18px; line-height: 1.5; letter-spacing: -.03em; }
@media (max-width: 900px) {
  .hero-proof { gap: 20px; }
  .hero-code code { font-size: 10px; }
  .hero-proof-message { gap: 12px; }
  .hero-proof-message p { font-size: 15px; }
}
@media (max-width: 480px) {
  .hero-proof { grid-template-columns: 1fr; padding-top: 20px; gap: 18px; }
  .hero-proof-message { grid-row: 1; }
  .hero-code code { font-size: 11px; }
  .hero-preview::before { inset: 5% 0 15%; }
}

@media (max-width: 480px) {
  .world-hero { padding-top: 24px; row-gap: 16px; }
  .world-heading .eyebrow { margin-bottom: 14px; }
  .hero-subtitle { margin-top: 12px; }
  .world-intro > p { display: none; }
  .world-intro .world-actions { margin-top: 18px; }
}

/* Showcase composition: warm source typography, a gridded asset stage,
   and a compact index connecting the three real output types. */
.world-landing { --paper: #f5f0e8; --accent: #ff995c; background: #101315; }
.world-hero { width: min(100% - 96px, 1320px); padding: 64px 0 36px; column-gap: 44px; row-gap: 40px; }
.world-heading .eyebrow { display: flex; align-items: center; gap: 10px; color: #d8b18e; }
.world-heading .eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); }
.world-heading h1 { font-size: clamp(80px, 9.2vw, 138px); line-height: .93; letter-spacing: -.075em; }
.world-heading h1 span { color: var(--accent); }
.hero-subtitle { margin-top: 28px; font-weight: 600; }
.world-intro > p { max-width: 360px; font-size: 15px; line-height: 1.8; }
.hero-start { max-width: none; container-type: inline-size; }
.hero-start .world-actions { max-width: 320px; }
.world-landing .button-primary { background: var(--accent); border: 1px solid var(--accent); color: #17130f; box-shadow: none; border-radius: 5px; font-weight: 750; }
.world-landing .button-primary:hover { background: #ffb584; border-color: #ffb584; }
.hero-preview { overflow: clip; border: 1px solid #514034; border-radius: 12px; background: radial-gradient(ellipse at 55% 35%, #6c462530, transparent 67%), #181a1b; box-shadow: 0 30px 80px #0003; }
.hero-preview::before { inset: 0 0 120px; border-radius: 12px; background: linear-gradient(#dfa36e09 1px, transparent 1px), linear-gradient(90deg, #dfa36e09 1px, transparent 1px); background-size: 40px 40px; }
.hero-preview::after { inset: 21% 12% 29%; border-color: #dfa36e20; transform: rotate(-25deg); }
.preview-heading { padding: 18px 22px; border-bottom: 1px solid #ffffff0c; }
.preview-heading .specimen-id { color: #e3ac7c; font-weight: 400; }
.world-stage { height: clamp(340px, 31vw, 450px); }
.world-note { color: #bcc1bd; }
.world-controls { padding: 12px 18px; }
.world-controls button { background: #242625; border-color: #ffffff1c; padding: 9px 11px; }
.world-controls button[aria-pressed=true] { color: #ffd4b0; border-color: #ac7952; background: #483020; }
.world-index { padding: 14px 22px; border-top: 1px solid #ffffff12; color: #ccc4b9; }
.hero-proof { grid-template-columns: .85fr 1.15fr; gap: 44px; padding: 22px 0 0; border-color: #ffffff17; }
.hero-code { border-left: 2px solid #a16a43; padding-left: 18px; }
.hero-code > span { color: #a8aaa6; }
.hero-proof-message p { max-width: 400px; font-size: 17px; }
.aac-workflow, .aac-frontier, .world-items, .world-sound, .world-source, .world-delivery { max-width: 1416px; padding: 100px 48px; }
.world-landing h2 { font-size: clamp(34px, 4vw, 58px); letter-spacing: -.055em; line-height: 1.13; text-wrap: balance; }
.world-landing h2, .world-section-copy p, .world-sound > div > p { word-break: keep-all; overflow-wrap: anywhere; }
.aac-workflow { border-bottom: 0; }
.workflow-steps { gap: 24px; margin-top: 40px; }
.workflow-steps li { border-color: #745039; }
.workflow-steps h3 { font-size: 22px; }
.workflow-steps p { font-size: 14px; }
.world-items { border-top: 1px solid #ffffff17; }
.world-section-copy > .eyebrow, .world-sound > div > .eyebrow { margin: 0 0 22px; color: var(--accent); font-family: ui-monospace, monospace; }
.item-showcase { border-color: #65523c; border-radius: 10px; background: linear-gradient(45deg, #e9bf7b07 25%, transparent 25%, transparent 75%, #e9bf7b07 75%), linear-gradient(45deg, #e9bf7b07 25%, transparent 25%, transparent 75%, #e9bf7b07 75%), #1c1d19; background-size: 40px 40px; background-position: 0 0, 20px 20px; }
.item-art img { width: 260px; height: 260px; }
.item-options { border-top: 1px solid #ffffff15; padding-top: 18px; }
.sound-player { padding: 26px; border: 1px solid #3e5550; border-radius: 10px; background: #15201e; }
.sound-caption { color: #b5d3c6; }
.sound-player > img { margin-top: 20px; }
.world-source { gap: 8%; }
.source-window { border-radius: 10px; overflow: hidden; }
.frontier-grid { gap: 20px; margin-top: 42px; }
.frontier-grid article { border-top: 1px solid #725139; }
.frontier-grid article > img { background: radial-gradient(ellipse, #ba7a3720, transparent 70%); }
.frontier-grid article > div { padding: 24px 16px; }
.frontier-grid h3 { font-size: 24px; }
.frontier-grid p { font-size: 14px; }
.frontier-grid a { font-size: 12px; color: #dbc4ab; }
.delivery-pair { gap: 24px; border: 0; }
.delivery-pair > a, .delivery-pair > a + a { padding: 30px; border: 1px solid #ffffff23; border-radius: 8px; background: #191c1d; }
.delivery-pair p { max-width: 440px; }
.delivery-pair strong { color: var(--accent); }
.landing-finale { max-width: 1320px; margin: 0 auto; padding: 80px 32px 100px; border-top: 1px solid #9b6548; text-align: center; background: radial-gradient(ellipse at 50% 0, #bd642619, transparent 65%); }
.landing-finale .eyebrow { color: var(--accent); }
.landing-finale h2 { max-width: 780px; margin: 20px auto 32px; }
.landing-finale .button { margin-right: 24px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .world-hero { width: calc(100% - 64px); column-gap: 24px; }
  .world-heading h1 { font-size: 86px; }
  .world-controls { padding-inline: 12px; }
}
@media (max-width: 900px) {
  .world-hero { width: calc(100% - 64px); max-width: 680px; padding-top: 44px; row-gap: 32px; }
  .world-heading h1 { font-size: clamp(76px, 14vw, 112px); }
  .world-stage { height: 400px; }
  .hero-proof { gap: 24px; }
  .aac-workflow, .aac-frontier, .world-items, .world-sound, .world-source, .world-delivery { padding: 72px 32px; }
}
@media (max-width: 480px) {
  .world-hero { width: calc(100% - 36px); padding: 28px 0 24px; gap: 24px; }
  .world-heading h1 { font-size: clamp(68px, 19vw, 88px); }
  .hero-subtitle { font-size: 20px; margin-top: 18px; }
  .hero-start { max-width: none; }
  .world-stage { height: 280px; }
  .preview-heading { padding: 14px 16px; }
  .world-controls { gap: 6px; padding: 10px; }
  .world-controls button { padding: 8px; font-size: 10px; }
  .world-index { padding: 12px 14px; }
  .hero-proof { grid-template-columns: 1fr; gap: 20px; }
  .hero-proof-message p { font-size: 16px; }
  .aac-workflow, .aac-frontier, .world-items, .world-sound, .world-source, .world-delivery { padding: 56px 20px; }
  .world-landing h2 { font-size: 36px; }
  .sound-player { padding: 18px; }
  .item-art { height: 260px; }
  .delivery-pair { gap: 14px; }
  .delivery-pair > a, .delivery-pair > a + a { padding: 24px; }
  .landing-finale { padding: 56px 20px 64px; }
  .landing-finale h2 { font-size: 38px; }
  .landing-finale .button { margin-right: 0; }
  .landing-finale .world-link { display: inline-block; margin-top: 20px; }
}

/* One shared replay theater keeps gallery cards and scroll position stable. */
body.replay-open { overflow: hidden; }
.frontier-grid .replay-trigger { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 0 0; border-top: 1px solid #ffffff25; text-decoration: none; font-size: 14px; }
.replay-trigger > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #946b4d; border-radius: 50%; color: var(--accent); font-size: 10px; }
.replay-trigger:hover { color: var(--accent); }
.replay-dialog { width: min(960px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #65503e; border-radius: 12px; background: #141819; color: var(--paper); box-shadow: 0 32px 120px #0009; }
.replay-dialog::backdrop { background: #06090de0; backdrop-filter: blur(8px); }
.replay-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; }
.replay-header p { margin: 0 0 8px; color: var(--accent); font-size: 12px; }
.world-landing .replay-header h2 { font-size: 26px; line-height: 1.2; }
.replay-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; background: transparent; color: var(--paper); font-size: 28px; cursor: pointer; }
.replay-dialog video { display: block; width: 100%; height: auto; max-height: 65dvh; aspect-ratio: 16 / 9; background: #0b0e10; object-fit: contain; }
.replay-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 28px; }
.replay-footer p { margin: 0; font-size: 12px; color: #b5bdc4; }
.replay-footer a { flex-shrink: 0; color: var(--accent); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.replay-error { margin: 20px 28px 0; color: #ffd1b0; font-size: 14px; }
@media (max-width: 480px) {
  .replay-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .replay-header { padding: 16px; }
  .world-landing .replay-header h2 { font-size: 22px; }
  .replay-footer { align-items: start; flex-direction: column; gap: 12px; padding: 16px; }
  .replay-error { margin-inline: 16px; }
}
