/* A useful catalogue entrance, with the worlds as the visual signature. */
:root { --surface: #000; --text: #f1f2f4; --muted: #a3acb9; --rule: #242b33; --accent: #c5e6ff; --world-color: #79c9ff; color-scheme: dark; background: #000; }
.portal-home { background: #000; }
.portal-home ::selection { color: #eff7ff; background: #263c50; }
.portal-home .page { width: 100%; min-height: 100dvh; padding: 0; overflow: clip; }
.portal-home .page .junction-header { margin: 0 clamp(22px, 4vw, 72px); min-height: 80px; padding: 14px 0; border: 0; z-index: 4; }
.portal-home .wordmark .mark { color: #d1d5dc; }
.header-coordinate { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; margin: 0; color: #a3acb9; font: .625rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .03em; white-space: nowrap; }
.coordinate-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--world-color); box-shadow: 0 0 9px var(--world-color); transition: background .5s, box-shadow .5s; }
.portal-main { position: relative; flex: 1; min-width: 0; padding: 0 clamp(22px, 4vw, 72px); }
.space-intro { width: min(100%, 1400px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(32px, 4vw, 64px); padding: clamp(36px, 4vw, 64px) 0 clamp(48px, 5vw, 76px); }
.space-intro h1 { margin: 0; font-size: clamp(3.25rem, 5.6vw, 5.75rem); font-weight: 400; letter-spacing: -.065em; line-height: 1.02; }
.space-intro h1 > span { color: var(--accent); }
.space-subtitle { max-width: 28rem; color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 22px 0 0; text-wrap: pretty; }
.home-discovery { width: 100%; max-width: 30rem; margin-top: 32px; display: grid; gap: 14px; }
.home-search label { display: block; margin-bottom: 10px; font-size: .8125rem; color: #c7d1dc; }
.home-search-field { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 7px; border: 1px solid #3a4754; border-radius: 8px; background: #0d1014; }
.home-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.home-search input { width: 100%; min-width: 0; padding: 9px 8px; border: 0; outline: 0; border-radius: 0; background: transparent; color: #eef1f5; font: inherit; font-size: 1rem; line-height: 1.5; }
.home-search input::placeholder { color: #a3acb9; opacity: 1; }
.home-search-field .mod-button { flex-shrink: 0; min-height: 42px; border-color: transparent; background: #1c2834; color: #d4eaff; }
.home-search-field .mod-button:hover { background: #2c3e50; }
.portal-home .home-browse { margin: 0; min-height: 48px; justify-content: space-between; padding-inline: 16px; font-size: .875rem; font-weight: 500; }
.home-browse span { font-size: 1.1rem; }
.home-tools { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.home-tools a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #bdd4e7; font-size: .8125rem; text-decoration: none; }
.home-tools a:hover { color: #fff; }
@media (max-width: 1400px) { .header-coordinate { display: none; } }
/* A manually selected feature. The image moves only in response to the pointer. */
.home-feature { min-width: 0; }
.feature-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; min-height: 44px; margin-bottom: 10px; }
.feature-heading > p { margin: 0; color: #c7d1dc; font-size: .8125rem; }
.feature-stage { min-width: 0; }
.feature-panel[hidden], .feature-choices[hidden] { display: none; }
.feature-media { margin: 0; }
.feature-art { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid #303d49; border-radius: 10px; background: #101820; }
.feature-photo { display: block; width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--feature-x, 0px), var(--feature-y, 0px), 0) scale(1.04); transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.feature-photo[hidden], .feature-unavailable[hidden] { display: none; }
.feature-unavailable { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; color: #b9c5d2; font-size: .875rem; text-align: center; line-height: 1.5; }
.feature-media figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; margin-top: 10px; color: #9faab8; font-size: .625rem; line-height: 1.6; }
.feature-media figcaption a { color: inherit; text-underline-offset: 3px; text-decoration-color: #53616e; }
.feature-media figcaption a:hover { color: #d0e6f7; }
.feature-info { min-height: 152px; padding: 22px 0 18px; }
.feature-info h2 { margin: 0; color: #eaf3fa; font-weight: 450; font-size: clamp(1.375rem, 2vw, 1.875rem); letter-spacing: -.045em; line-height: 1.15; }
.feature-info p { max-width: 36rem; color: var(--muted); margin: 10px 0 3px; font-size: .8125rem; line-height: 1.6; }
.feature-entry { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; color: var(--accent); font-size: .8125rem; text-decoration: none; }
.feature-entry span { transition: transform .2s; }
.feature-entry:hover span { transform: translate(3px, -3px); }
.feature-choices { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid #303943; }
.feature-choices button { min-height: 44px; padding: 9px 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #a3acb9; font: inherit; font-size: .75rem; line-height: 1.4; cursor: pointer; }
.feature-choices button:hover { color: #eaf3fa; background: #101922; }
.feature-choices button[aria-pressed="true"] { border-color: #45627a; background: #142433; color: #d0eaff; }
.feature-alternatives { color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.feature-alternatives a { color: var(--accent); text-underline-offset: 3px; }
[data-home-motion="paused"] .portal-home *, [data-home-motion="paused"] .portal-home *::before, [data-home-motion="paused"] .portal-home *::after { animation: none !important; transition: none !important; }
[data-home-motion="paused"] :is(.feature-entry span, .collection-arrow, .world-entry svg) { transform: none; }
.home-worlds { width: min(100%, 1320px); margin-inline: auto; padding: 30px 0 34px; border-block: 1px solid var(--rule); }
.worlds-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.worlds-heading h2 { margin: 0; font-size: 1.125rem; font-weight: 450; letter-spacing: -.025em; }
.portal-stage { position: relative; width: 100%; height: clamp(350px, 31vw, 460px); margin-top: 12px; isolation: isolate; }
#portal-canvas { width: 100%; height: 100%; display: block; position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
[data-scene="ready"] #portal-canvas { opacity: 1; }
.portal-links { position: absolute; inset: 0; }
.world-portal { --portal-x: 50%; --portal-y: 48%; --portal-width: 170px; --portal-height: 260px; position: absolute; display: block; left: var(--portal-x); top: var(--portal-y); width: var(--portal-width); height: var(--portal-height); min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); border-radius: 50%; text-decoration: none; -webkit-tap-highlight-color: transparent; outline-offset: 12px; color: #a3acb9; }
.world-portal[data-portal="gmod"] { --portal-x: 13%; --portal-y: 40%; --portal-width: 122px; --portal-height: 198px; --portal-color: #66c7ff; }
.world-portal[data-portal="cod"] { --portal-x: 30%; --portal-y: 51%; --portal-width: 160px; --portal-height: 260px; --portal-color: #ff9851; }
.world-portal[data-portal="mario"] { --portal-color: #79c9ff; --portal-width: 190px; --portal-height: 302px; }
.world-portal[data-portal="minecraft"] { --portal-x: 71%; --portal-y: 46%; --portal-width: 155px; --portal-height: 245px; --portal-color: #ffab60; }
.world-portal[data-portal="pokemon"] { --portal-x: 88%; --portal-y: 36%; --portal-width: 115px; --portal-height: 190px; --portal-color: #9bbfff; }
.portal-label { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .6875rem; font-weight: 450; line-height: 1.4; white-space: nowrap; transition: color .25s; padding: 4px; }
.portal-number { font: .5625rem ui-monospace, monospace; color: #959ca8; }
.portal-arrow { opacity: 0; color: var(--portal-color); transition: opacity .25s; }
.world-portal:is(:hover, :focus-visible, [data-selected="true"]) { color: #f3f4f8; }
.world-portal:is(:hover, :focus-visible, [data-selected="true"]) .portal-arrow { opacity: 1; }
.world-portal:focus-visible { outline: 2px solid var(--portal-color); }
.portal-fallback { overflow: hidden; position: absolute; inset: 0; border: 2px solid var(--portal-color); border-radius: 50%; background: #080d13; box-shadow: 0 0 16px color-mix(in srgb, var(--portal-color) 35%, transparent), inset 0 0 28px color-mix(in srgb, var(--portal-color) 15%, transparent); display: grid; place-items: center; }
.portal-photo { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--photo-zoom, 1.035)); opacity: 1; }
[data-scene="ready"] .portal-fallback { visibility: hidden; }
.world-selection { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px 32px; margin: 16px auto 0; padding: 22px 0 0; min-height: 60px; max-width: 660px; border-top: 1px solid #1e252e; }
.world-copy { min-width: 0; }
.world-copy h3 { font-size: 1.0625rem; font-weight: 450; letter-spacing: -.025em; line-height: 1.35; margin: 0 0 7px; }
.world-copy p { font-size: .8125rem; line-height: 1.5; color: #a3acb9; margin: 0; }
.world-entry { display: inline-flex; align-items: center; gap: 18px; font-size: .8125rem; line-height: 1.5; padding: 0; text-decoration: none; min-height: 44px; color: #d6e9f7; white-space: nowrap; }
.world-entry svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .2s; }
.world-entry:hover { color: var(--world-color); }
.world-entry:hover svg { transform: translateX(4px); }
.portal-credit { max-width: 660px; font-size: .625rem; color: #959fae; margin: 12px auto 0; line-height: 1.8; }
.portal-credit a { color: inherit; text-underline-offset: 3px; text-decoration-color: #475461; }
.portal-credit a:hover { color: #c7dfef; }
.home-collections { width: min(100%, 1200px); margin: 0 auto; padding: 60px 0 64px; }
.collections-intro { margin-bottom: 30px; }
.collections-intro h2 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.25; }
.collections-intro p { color: var(--muted); font-size: .875rem; line-height: 1.6; margin: 10px 0 0; }
.collection-links { margin: 0; padding: 0; list-style: none; }
.collection-links li + li { border-top: 1px solid #1e252e; }
.collection-links a { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) auto; align-items: center; gap: 16px 40px; min-height: 86px; padding: 20px 0; text-decoration: none; }
.collection-name { color: #e3edf5; font-size: 1.125rem; letter-spacing: -.025em; }
.collection-description { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.collection-arrow { color: #b2cfe5; font-size: 1.25rem; transition: transform .2s; }
.collection-links a:hover .collection-name { color: var(--accent); }
.collection-links a:hover .collection-arrow { transform: translate(2px, -2px); }
.space-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin: 0 clamp(22px, 4vw, 72px); padding: 18px 0; border-top: 1px solid var(--rule); color: #a3acb9; }
.space-footer p { font-size: .6875rem; line-height: 1.6; margin: 0; }
.space-footer a, .space-tools button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font-family: inherit; font-size: .6875rem; line-height: 1.5; }
.space-footer a:hover { color: #fff; }
.space-tools { display: flex; align-items: center; gap: 24px; }
.space-tools button { border: 0; background: transparent; padding: 0; color: #a3acb9; cursor: pointer; }
.space-tools button[hidden] { display: none; }
.space-tools button:hover { color: #fff; }
.space-tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.motion-play { display: none; }
[aria-pressed="true"] .motion-play { display: block; }
[aria-pressed="true"] .motion-pause { display: none; }
.portal-home .skip-link { z-index: 5; }
:is(a, button):focus-visible { outline: 2px solid #b9dcff; outline-offset: 5px; }
@media (max-width: 1000px) {
  .space-intro { gap: 32px; }
  .space-intro h1 { font-size: clamp(3rem, 5.8vw, 4rem); }
}
@media (max-width: 850px) {
  .header-coordinate { display: none; }
  .world-portal[data-portal="gmod"] { --portal-width: 85px; --portal-height: 160px; }
  .world-portal[data-portal="cod"] { --portal-width: 115px; --portal-height: 215px; }
  .world-portal[data-portal="mario"] { --portal-width: 145px; --portal-height: 255px; }
  .world-portal[data-portal="minecraft"] { --portal-width: 115px; --portal-height: 205px; }
  .world-portal[data-portal="pokemon"] { --portal-width: 80px; --portal-height: 155px; }
}
@media (max-width: 900px) {
  .space-intro { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 38px 44px; }
  .space-intro h1 { font-size: clamp(2.75rem, 8.8vw, 4.75rem); }
  .space-subtitle { margin-top: 16px; max-width: 30rem; font-size: .9375rem; }
  .home-discovery { max-width: none; margin-top: 26px; }
  .feature-art { aspect-ratio: 16 / 9; }
  .feature-info { min-height: 0; }
  .collection-links a { column-gap: 24px; }
}
@media (max-width: 700px) {
  .portal-home .page .junction-header { min-height: 80px; margin-inline: 22px; }
  .portal-stage { height: max(440px, 27.5rem); margin-top: 0; }
  .world-portal[data-portal="gmod"] { --portal-x: 24%; --portal-y: 22%; --portal-width: 72px; --portal-height: 116px; }
  .world-portal[data-portal="cod"] { --portal-x: 21%; --portal-y: 68%; --portal-width: 88px; --portal-height: 150px; }
  .world-portal[data-portal="mario"] { --portal-x: 50%; --portal-y: 47%; --portal-width: 99px; --portal-height: 172px; }
  .world-portal[data-portal="minecraft"] { --portal-x: 80%; --portal-y: 65%; --portal-width: 84px; --portal-height: 143px; }
  .world-portal[data-portal="pokemon"] { --portal-x: 78%; --portal-y: 22%; --portal-width: 70px; --portal-height: 110px; }
  .portal-label { gap: 3px; top: calc(100% + 9px); font-size: .625rem; }
  .portal-number { display: none; }
  .portal-arrow { font-size: .625rem; }
  .world-selection { gap: 16px; margin-top: 0; }
  .world-copy h3 { font-size: 1rem; }
  .world-copy p { font-size: .75rem; }
  .world-entry { gap: 10px; font-size: .75rem; }
  .home-collections { padding-block: 44px; }
  .collection-links a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding-block: 20px; }
  .collection-name { font-size: 1rem; }
  .collection-description { grid-column: 1; grid-row: 2; font-size: .8125rem; }
  .collection-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .space-footer { margin-inline: 22px; padding-block: 14px; }
  .space-tools { gap: 18px; }
}
@media (max-width: 360px) {
  .world-selection { flex-wrap: wrap; gap: 6px; }
  .world-copy { flex-basis: 100%; }
  .world-entry { justify-content: flex-start; }
  .home-search-field { gap: 0; }
  .feature-choices { gap: 4px; }
  .feature-choices button { padding-inline: 9px; }
  .home-search input { padding-inline: 5px; }
  .home-search-field .mod-button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { html:not([data-home-motion="running"]) *, html:not([data-home-motion="running"]) *::before, html:not([data-home-motion="running"]) *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
  .portal-fallback { visibility: visible !important; background: Canvas; border: 2px solid LinkText; }
  #portal-canvas { visibility: hidden; }
  .portal-label, .portal-number { color: LinkText; }
  .home-search-field { border-color: FieldText; }
  .home-search-field:focus-within { outline: 2px solid Highlight; }
}
