@font-face {
  font-family: Pixellari;
  src: url('/assets/worlds/Pixellari.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('/assets/worlds/InterVariable-4.1.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #c0ee81;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* This standalone page owns its palette because it runs without the launcher's component library. */
.worlds-site {
  --page: #101914;
  --panel: #18231c;
  --panel-light: #1d2b22;
  --border: #304132;
  --text: #edf1e7;
  --muted: #a7b5a5;
  --green: #a4d86b;
  --green-deep: #638b43;
  color: var(--text);
  background: var(--page);
  font:
    15px/1.65 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
.site-header {
  min-height: 78px;
  padding: 15px max(28px, calc((100vw - 1216px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  background: var(--page);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font:
    19px/1 Pixellari,
    monospace;
  letter-spacing: 0.4px;
}
.brand img {
  flex: 0 0 auto;
  image-rendering: pixelated;
}
.brand span {
  overflow-wrap: anywhere;
}
.brand strong {
  color: var(--green);
  font-weight: 400;
}
.header-links {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
}
.header-links a:hover,
.site-footer a:hover {
  color: var(--green);
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--border);
  font-size: 12px;
}
.language-switch button {
  border: 0;
  padding: 7px 3px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}
.language-switch button[aria-pressed='true'] {
  color: var(--green);
}
.hero {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 78px 28px 72px;
  text-align: center;
  background:
    linear-gradient(180deg, #1019144d 0%, #10191426 35%, var(--page) 100%),
    url('/assets/worlds/scene-vanilla.svg') center 55% / cover;
  border-bottom: 1px solid var(--border);
}
.hero-content {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
}
.eyebrow {
  display: block;
  color: var(--green);
  font:
    11px/1.5 system-ui,
    sans-serif;
  font-weight: 700;
  letter-spacing: 2.2px;
  overflow-wrap: anywhere;
}
.hero h1 {
  margin: 28px auto 22px;
  width: min(590px, 100%);
}
.hero-logo {
  width: 100%;
  filter: drop-shadow(0 12px 15px #0007);
}
.hero-description {
  max-width: 550px;
  margin: 0 auto;
  color: #d2dbca;
  font-size: 17px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  padding: 10px 23px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.primary {
  border-color: var(--green);
  background: var(--green);
  color: #172410;
  box-shadow: inset 0 -3px #0002;
}
.primary:hover:enabled,
a.primary:hover {
  background: #b6e382;
  border-color: #b6e382;
}
.secondary {
  border-color: #607456;
  background: #18251dcc;
  color: var(--text);
}
.secondary:hover:enabled,
a.secondary:hover {
  border-color: var(--green);
  background: #25362a;
}
.hero-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}
.hero-bottom {
  position: absolute;
  bottom: 22px;
  left: max(28px, calc((100vw - 1216px) / 2));
  right: max(28px, calc((100vw - 1216px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8ea181;
  font:
    10px/1 Pixellari,
    monospace;
  letter-spacing: 2px;
}
.hero-bottom span:last-child {
  font:
    25px/1 system-ui,
    sans-serif;
}
.section {
  width: min(1216px, calc(100% - 56px));
  margin: 0 auto;
  padding: 76px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 44px;
  margin-bottom: 30px;
}
.section-heading > div {
  flex: 1;
  min-width: 0;
}
.section-heading h2,
.launcher-section h2 {
  font:
    34px/1.2 Pixellari,
    system-ui,
    sans-serif;
  margin-top: 12px;
  letter-spacing: 0.3px;
  overflow-wrap: anywhere;
}
.section-heading > p {
  max-width: 350px;
  color: var(--muted);
  font-size: 13px;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.pack-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--panel);
}
.pack-artwork {
  height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}
.theme-vanilla .pack-artwork {
  background-image: linear-gradient(#13220b00, #10191444), url('/assets/worlds/scene-vanilla.svg');
}
.theme-verity .pack-artwork {
  background-image: linear-gradient(#130f2300, #16132144), url('/assets/worlds/scene-verity.svg');
}
.theme-city .pack-artwork {
  background-image: linear-gradient(#211b1400, #211b1444), url('/assets/worlds/scene-city.svg');
}
.theme-horror .pack-artwork {
  background-image: linear-gradient(#07191518, #07191565), url('/assets/worlds/scene-hollow-pines.png');
}
.theme-horror .pack-copy .eyebrow { color: #8bc4ae; }
.pack-logo {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 6px 6px #0006);
}
.pack-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  padding: 26px;
  min-width: 0;
}
.pack-copy .eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
}
.theme-verity .pack-copy .eyebrow {
  color: #c1aedb;
}
.theme-city .pack-copy .eyebrow {
  color: #d9b789;
}
.pack-copy h3 {
  font:
    27px/1.25 Pixellari,
    system-ui,
    sans-serif;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.pack-copy p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.pack-select {
  width: 100%;
  margin-top: auto;
  padding: 11px 0;
  border: 1px solid var(--border);
  color: var(--green);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.pack-select:hover,
.pack-select[aria-pressed='true'] {
  background: #a4d86b10;
  border-color: var(--green-deep);
}
.world-section {
  border-top: 1px solid var(--border);
}
.hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.world-detail,
.hub-access {
  min-width: 0;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.world-pack-heading h3 {
  font:
    30px/1.2 Pixellari,
    system-ui,
    sans-serif;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.world-pack-heading > p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.release-note,
.empty-worlds {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}
.world-row {
  border-top: 1px solid var(--border);
  margin-top: 25px;
  padding-top: 23px;
}
.world-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.world-heading > div {
  min-width: 0;
  flex: 1;
}
.world-heading h4 {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.world-address {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.world-status {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.status-ready {
  color: var(--green);
}
.status-sleeping {
  color: #c4b393;
}
.status-starting,
.status-checking {
  color: #c7dcae;
}
.status-error {
  color: #e3aba0;
}
.world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.world-actions .button {
  padding: 9px 15px;
  font-size: 11px;
  min-height: 39px;
}
.world-hint,
.players {
  color: var(--muted);
  margin-top: 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.players {
  font-variant-numeric: tabular-nums;
}
.access-icon {
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}
.hub-access h3 {
  font-size: 19px;
  line-height: 1.35;
  margin-top: 17px;
}
.hub-access > p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 13px;
}
.hub-access form {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}
.hub-access label {
  color: var(--muted);
  font-size: 12px;
}
.hub-access input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  color: var(--text);
  background: var(--page);
  border-radius: 0;
}
.hub-access form .button {
  margin-top: 3px;
}
.hub-access .form-message {
  color: #d4c7aa;
  font-size: 12px;
}
.hub-access .form-message:empty {
  display: none;
}
.session-ready {
  margin: 24px 0 15px;
  color: var(--green);
  font-size: 13px;
}
.launcher-section {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 76px;
  align-items: center;
}
.launcher-section > div {
  min-width: 0;
}
.launcher-section > div > p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
  max-width: 530px;
}
.launcher-release {
  padding: 30px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
}
.launcher-release img {
  margin: 0 auto 20px;
  image-rendering: pixelated;
}
.launcher-release strong {
  display: block;
  font:
    25px/1.2 Pixellari,
    system-ui,
    sans-serif;
}
.launcher-section .launcher-release p {
  margin-top: 12px;
  font-size: 12px;
}
.launcher-downloads {
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.launcher-version {
  font-variant-numeric: tabular-nums;
}
.launcher-downloads .launcher-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.launcher-asset-name {
  max-width: 100%;
  font-size: 11px;
  font-weight: 400;
}
.launcher-release > button {
  margin-top: 18px;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px max(28px, calc((100vw - 1216px) / 2));
  border-top: 1px solid var(--border);
}
.site-footer .brand {
  font-size: 14px;
}
.site-footer p,
.site-footer > a:last-child {
  color: var(--muted);
  font-size: 11px;
}
.notice {
  color: var(--muted);
  padding: 20px 0;
}

@media (min-width: 1600px) {
  .hero {
    min-height: 720px;
  }
}
@media (max-width: 900px) {
  .section-heading {
    align-items: flex-start;
    gap: 25px;
  }
  .section-heading > p {
    max-width: 270px;
  }
  .pack-grid {
    gap: 14px;
  }
  .pack-artwork {
    height: 165px;
    padding: 22px;
  }
  .pack-copy {
    padding: 20px;
  }
  .pack-copy h3 {
    font-size: 23px;
  }
  .hub-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 16px;
  }
  .world-detail,
  .hub-access {
    padding: 24px;
  }
  .launcher-section {
    gap: 40px;
  }
}
@media (max-width: 650px) {
  .site-header {
    padding: 16px 20px;
    gap: 15px;
    min-height: 70px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .header-links {
    display: none;
  }
  .hero {
    min-height: 590px;
    padding: 60px 22px 85px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-note {
    max-width: 270px;
    margin: 24px auto 0;
  }
  .hero-bottom {
    left: 22px;
    right: 22px;
  }
  .section {
    width: calc(100% - 40px);
    padding: 48px 0;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    max-width: none;
    margin-top: 16px;
  }
  .section-heading h2,
  .launcher-section h2 {
    font-size: 30px;
  }
  .pack-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .pack-artwork {
    height: 210px;
    padding: 32px;
  }
  .pack-copy {
    padding: 25px;
  }
  .pack-copy h3 {
    font-size: 28px;
  }
  .hub-layout,
  .launcher-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .world-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer {
    padding: 25px 20px;
    gap: 18px;
  }
  .site-footer p {
    width: 100%;
    order: 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}

.site-brand img, .hero-logo { transition: transform 220ms ease, filter 220ms ease; }
.site-brand:hover img { transform: translateY(-2px) rotate(-4deg); }
.hero-home:hover .hero-logo { transform: translateY(-5px); filter: drop-shadow(0 8px 18px #9474cf30); }
.pack-card { transition: border-color 200ms ease, box-shadow 200ms ease; }
.pack-card:hover { border-color: #9dab7a; box-shadow: 0 8px 24px #0003; }
.secret-notice { position: fixed; z-index: 50; top: 92px; right: 24px; max-width: min(400px, calc(100vw - 48px)); display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #23301f; color: #e5e8ce; border: 2px solid #b2cd77; box-shadow: 5px 5px #090e0a; animation: secret-arrive 180ms ease both; }
.secret-notice[hidden], .secret-eyes[hidden] { display: none; }
.secret-notice img { flex: none; object-fit: contain; }
.secret-notice strong { font-family: Pixellari, monospace; font-size: 20px; }
.secret-notice p { margin: 4px 0 0; font-size: 12px; color: #b8c5a8; }
.secret-notice button { padding: 6px; color: inherit; background: none; border: 0; font-size: 22px; cursor: pointer; }
.secret-eyes { position: fixed; pointer-events: none; z-index: 15; top: 42%; right: 18%; width: 8px; height: 4px; background: #f2eef7; box-shadow: 15px 0 #f2eef7, 0 0 22px #d3a4ff; animation: secret-eyes 5s ease both; }
@keyframes secret-arrive { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes secret-eyes { 0%, 100% { opacity: 0; } 20%, 78% { opacity: .85; } }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .pack-card { opacity: 0; transform: translateY(16px); transition: opacity 420ms ease, transform 420ms ease, border-color 200ms ease, box-shadow 200ms ease; }
  .motion-ready .pack-card.is-revealed { opacity: 1; transform: none; }
  .motion-ready .pack-card:nth-child(2) { transition-delay: 70ms; }
  .motion-ready .pack-card:nth-child(3) { transition-delay: 140ms; }
}
@media (prefers-reduced-motion: reduce) {
  .site-brand img, .hero-logo, .pack-card, .secret-notice, .secret-eyes { transition: none; animation: none; }
  .site-brand:hover img, .hero-home:hover .hero-logo { transform: none; }
}
