/* An open composition around the original art and functional world cards. */
/* Five navigation items keep full touch targets when the wiki is added. */
@media (max-width: 760px) {
  .sidebar nav .nav-item { min-height: 56px; padding: 8px 2px; }
}
:root {
  font-size: 100%;
  line-height: 1.6;
  --space-detail: .75rem;
  --space-group: 1.5rem;
  --space-section: clamp(5rem, 8vw, 7.5rem);
}
body { background-size: 100% 100%, 64px 64px, 64px 64px; }
.page { width: 100%; max-width: 1500px; padding: 56px 48px 40px 148px; }
.page-lights { opacity: .72; }
.hero:before { display: none; }
.hero-grid { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 32px; }
.hero-main { min-height: 476px; aspect-ratio: auto; }
.hero-panel { display: none; }
.hero-art-shell { inset: 0 -4px 0 0; border-radius: 0; overflow: visible; }
.hero-art-shell .hero-render { width: 113%; right: -3%; bottom: 0; }
.hero-copy { width: 57%; height: auto; min-height: 100%; padding: 36px 0 34px; gap: 18px; }
.hero-meta { gap: 6px; }
.hero-version { position: static; font-size: .875rem; }
.online { min-width: 0; border: 0; padding: 0; margin: 0; background: none; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.hero-title.brand-sign { position: relative; inset: auto; flex: 0 0 auto; translate: none; transform: none; display: block; width: max-content; max-width: 100%; padding: 0; margin-top: 8px; pointer-events: auto; color: var(--flame); background: none; -webkit-text-fill-color: currentColor; }
.hero-title .brand-word { font-size: min(7.5vw, 7rem); line-height: 1.18; gap: .015em; }
.hero-title .brand-word > span { animation-duration: 5.8s; }
.hero-title:hover .brand-word > span { animation: word-hover 2s ease-in-out infinite; animation-delay: calc(var(--letter) * -.13s); }
.hero-intro { font: 400 clamp(1.375rem, 1.9vw, 1.875rem)/1.25 RussoOne, Arial, sans-serif; max-width: 13em; }
.hero-description { max-width: 27em; font-size: 1rem; line-height: 1.65; color: #D9C3AB; }
.play-hint { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-top: -8px; max-width: 20em; }
.hero-small { padding: 20px 0 0; gap: 20px; grid-template-rows: minmax(238px, 1fr) auto; }
.render-card { padding: 18px 16px; flex-direction: column; align-items: stretch; justify-content: flex-end; }
.render-card:before { border: 1px solid #64646466; background: radial-gradient(ellipse at 65% 110%, #E8500233, transparent 62%), linear-gradient(135deg, #33333370, #000000); }
.render-card .render-label { font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.25; margin-top: 8px; overflow-wrap: anywhere; }
.render-card .render-visual { position: relative; inset: auto; width: 100%; height: 150px; min-height: 150px; flex: none; }
.hero-bottom { margin-top: 28px; padding: 22px 0 0; border-top: 0; gap: 24px; }
.server-address { font-size: 1rem; min-height: 48px; padding: 10px 14px; gap: 12px; border-color: #64646466; background: #00000066; }
.server-address small { display: inline; font-size: .875rem; margin-left: 4px; }
.hero-actions { gap: 24px; }
.next-section { font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; }
.motion-toggle { min-height: 44px; font-size: .875rem; padding: 9px 12px; background: transparent; border-color: #64646466; }
.motion-indicator { animation: none; }
.section { margin-top: var(--space-section); scroll-margin-top: 40px; }
.section-rail { margin-bottom: 36px; gap: 16px; font-size: .875rem; letter-spacing: .06em; flex-wrap: wrap; }
.section-rail span { flex-shrink: 1; overflow-wrap: anywhere; }
.section-rail span:last-child { color: var(--muted); }
.section-rail:before, .ambient-orbit, .world-watermark { display: none; }
.world-section { padding-top: 0; }
.world-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.world-copy { padding-top: 0; }
.world-copy h2, .feature-heading h2, .section-label h2 { font-size: clamp(1.875rem, 3.2vw, 2.875rem); line-height: 1.16; color: var(--text); background: none; -webkit-text-fill-color: currentColor; text-shadow: none; }
.world-copy p { max-width: 32em; margin-top: 22px; font-size: 1rem; line-height: 1.7; color: #D9C3AB; }
.world-lines { height: 76px; }
.root-line, .branch-line, .world-lines i, .world-lines i:after { border-color: #646464A6; }
.world-grid { gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.world-grid article { min-width: 0; }
.world-summary { font-size: .875rem; color: var(--muted); margin-top: 16px; text-align: center; line-height: 1.5; }
.world-tile .world-label { font-size: clamp(1rem, 1.4vw, 1.4375rem); white-space: normal; overflow-wrap: anywhere; }
.lobby-restored .world-label { height: auto; min-height: 24%; padding: 6px 8px; }
.world-tile .world-cta { font-size: .875rem; }
.feature-heading { gap: 24px; margin-bottom: 28px; }
.feature-heading h3 { font-size: clamp(1.375rem, 2.1vw, 1.875rem); line-height: 1.25; }
.feature-heading p { max-width: 34em; margin-top: 16px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.number { display: none; }
.panorama { height: auto; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; border: 1px solid #64646455; overflow: hidden; }
.panorama img { width: 100%; height: 100%; object-fit: contain; object-position: center; mask-image: none; -webkit-mask-image: none; }
.panorama span { font-size: .875rem; bottom: 18px; right: 18px; padding: 10px 14px; }
.panorama:hover img { transform: none; }
.panorama:hover { border-color: #F1600199; }
.feature-grid { display: block; margin-top: 56px; }
.feature-stack { display: block; }
.feature-grid article { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 56px; padding: 48px 0; border-top: 1px solid #64646455; }
.feature-grid article .feature-heading { margin: 0; }
.feature-image, .feature-image.tall, .feature-stack .feature-image { height: auto; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000000; border: 1px solid #64646455; }
.feature-image img { height: 100%; width: 100%; object-fit: contain; }
.feature-image:hover img { transform: none; }
.feature-image:hover { border-color: #F1600199; }
.artifact-carousel { border: 1px solid #64646466; border-radius: 22px; background: radial-gradient(ellipse at 50% 100%, #E8500226, transparent 62%); padding: 18px; }
.carousel-stage { height: 274px; }
.carousel-slide { height: 236px; width: clamp(80px, 22%, 120px); }
.carousel-controls { min-height: 44px; gap: 12px; padding-right: 0; justify-content: center; flex-wrap: wrap; }
.carousel-arrow, .carousel-pause { height: 44px; min-width: 44px; border-radius: 10px; background: #000000; color: var(--sand); }
.carousel-pause { position: static; min-width: 98px; min-height: 44px; height: auto; padding: 8px; margin-left: 4px; font-size: .875rem; line-height: 1.3; }
.carousel-count, .item-switches span { font-size: .875rem; min-width: 70px; }
.artifact-carousel--hero { padding: 12px 14px 14px; align-self: stretch; }
.artifact-carousel--hero .carousel-stage { height: 154px; }
.artifact-carousel--hero .carousel-slide { height: 146px; width: clamp(58px, 23%, 90px); }
.artifact-carousel--hero .carousel-controls { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 0; gap: 8px; min-height: 44px; }
.artifact-carousel--hero .carousel-arrow { width: 44px; min-width: 44px; height: 44px; font-size: 1.125rem; }
.artifact-carousel--hero .render-label { font-size: clamp(1rem, 1.3vw, 1.1875rem); }
.section-label { min-height: 0; margin-bottom: 32px; }
.section-label > span { display: none; }
.gallery-grid { gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.gallery-card > .gallery-photo { border: 1px solid #64646466; border-radius: 16px; transition: border-color .35s var(--ease-soft); }
.gallery-card > .gallery-caption { min-height: 0; padding: 16px 0 0; background: none; }
.gallery-caption strong { font-size: 1.0625rem; line-height: 1.4; padding-right: 30px; transition: color .35s var(--ease-soft); }
.gallery-caption small { font-size: .875rem; }
.gallery-card svg { right: 0; top: 19px; width: 22px; height: 22px; display: block; }
.gallery-card:hover, .gallery-card:focus-visible { box-shadow: none; }
.gallery-card:hover .gallery-photo, .gallery-card:focus-visible .gallery-photo { border-color: #F16001; }
.gallery-card:hover .gallery-photo > img, .gallery-card:focus-visible .gallery-photo > img { transform: none; }
.gallery-card:hover .gallery-caption strong { color: #D9C3AB; }
footer { margin-top: var(--space-section); padding: 32px 0; border: 0; border-top: 1px solid #64646466; border-radius: 0; background: none; gap: 28px; }
.footer-top { background: none; border-radius: 0; padding: 0; gap: 28px; flex-wrap: wrap; }
.footer-top > button, .footer-top nav { font-size: .875rem; }
.footer-top nav { gap: 20px; flex-wrap: wrap; margin-top: 0; }
.footer-top nav a, .footer-top nav button { min-height: 44px; display: inline-flex; align-items: center; }
.footer-main > p { margin-top: 18px; font-size: .75rem; line-height: 1.7; text-align: left; }
.sidebar { left: 24px; top: 56px; width: 84px; height: auto; min-height: 520px; padding-bottom: 24px; border-color: #A7A7A7A6; background: #000000; }
.sidebar nav { gap: 16px; }
.nav-item { font-size: .875rem; line-height: 1.4; padding: 10px 3px; gap: 7px; overflow-wrap: anywhere; }
.side-logo { margin-bottom: 18px; padding-bottom: 18px; }
.nav-item:hover, .next-section:hover, .motion-toggle:hover, .server-address:hover { transform: none; }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 36px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
dialog h2 { font-size: clamp(1.625rem, 4vw, 2rem); line-height: 1.25; margin-top: 18px; padding-right: 24px; overflow-wrap: anywhere; }
.dialog-kicker, .dialog-lead { font-size: .875rem; }
.dialog-close { width: 44px; height: 44px; top: 10px; right: 10px; position: sticky; float: right; margin: -26px -26px 0 0; z-index: 3; }
li strong, li p, .world-dialog-description, .world-dialog-note { font-size: 1rem; line-height: 1.65; }
ol { margin: 28px 0; }
li { margin-bottom: 24px; }
.copy-field { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; min-height: 56px; background: #000000; }
.server-ip { width: 100%; min-width: 0; padding: 6px 0; border: 0; outline: none; border-radius: 0; background: transparent; color: #F9F9F9; font: 600 1rem/1.5 Manrope, Arial, sans-serif; user-select: text; }
.server-ip:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.copy-field-action { min-width: 44px; height: 44px; padding: 10px; flex: 0 0 44px; border: 1px solid #64646480; border-radius: 8px; background: #333333; }
.orange-button { min-height: 52px; font-size: 1rem; }
[data-copy][aria-busy="true"] { cursor: progress; opacity: .7; }
[data-copy].is-copied { border-color: #D9C3AB; }
.team-dialog { width: min(1060px, calc(100% - 32px)); }
.team-grid { gap: 24px; }
.team-grid button { position: relative; border-radius: 14px; }
.item-switches { gap: 16px; }
.item-switches button { min-width: 44px; min-height: 44px; font-size: 1.125rem; }
.item-dialog { width: min(560px, calc(100% - 32px)); }
.item-dialog-stage { height: min(48svh, 390px); margin-top: 24px; padding: 24px; }
.image-dialog { width: min(1200px, calc(100% - 32px)); padding: 58px 24px 24px; }
.image-dialog .dialog-close { margin-top: -48px; margin-right: -14px; }
.lightbox-frame { position: relative; display: grid; place-items: center; min-height: min(42svh, 340px); border-radius: 12px; background: #000000; }
.lightbox-frame > img { display: block; width: 100%; height: auto; max-height: 72svh; object-fit: contain; border-radius: 12px; }
.lightbox-frame > img[hidden], .image-status[hidden], #lightbox-retry[hidden], .image-fallback[hidden] { display: none; }
.image-status { padding: 28px; max-width: 30em; color: #D9C3AB; font-size: 1rem; line-height: 1.65; text-align: center; }
.image-status.is-loading:before { content: ''; display: block; width: 26px; height: 26px; margin: 0 auto 18px; border: 2px solid #646464; border-top-color: #F16001; border-radius: 50%; animation: image-loading 1s linear infinite; }
@keyframes image-loading { to { rotate: 360deg; } }
.lightbox-actions { display: flex; justify-content: center; }
#lightbox-retry { margin-top: 16px; min-height: 44px; font-size: .875rem; }
.image-dialog > p { font-size: 1rem; line-height: 1.5; margin-top: 20px; color: #D9C3AB; }
.image-fallback { position: absolute; inset: 0; z-index: 2; padding: 24px; display: grid; place-items: center; background: #000000; color: #D9C3AB; font-size: 1rem; line-height: 1.6; text-align: center; pointer-events: none; }
.feature-image, .panorama { position: relative; }
body.has-open-dialog { overflow: hidden; }
.has-open-dialog .page-glow i, .has-open-dialog .brand-word > span, .has-open-dialog .play-button, .has-open-dialog .play-button:before, .has-open-dialog .play-button:after, .hero-title.motion-offscreen .brand-word > span { animation-play-state: paused; }
#toast { font-size: .875rem; line-height: 1.5; max-width: calc(100% - 32px); width: max-content; text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 1199px) {
  .page { padding: 40px 32px 32px 132px; }
  .sidebar { left: 20px; top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-main { min-height: 438px; }
  .hero-copy { width: 54%; padding: 24px 0; }
  .hero-title .brand-word { font-size: min(10vw, 6.5rem); }
  .hero-art-shell .hero-render { width: 105%; right: -2%; }
  .hero-small { padding-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr); grid-template-rows: minmax(238px, auto); gap: 20px; align-items: stretch; }
  .artifact-carousel--hero { grid-column: auto; align-self: stretch; }
  .artifact-carousel--hero .carousel-stage { height: 154px; }
  .render-card { min-height: 238px; }
  .world-top { gap: 40px; }
  .feature-grid article { gap: 36px; }
  .footer-top { display: flex; }
}
@media (max-width: 899px) {
  .page { padding: 32px 24px calc(116px + env(safe-area-inset-bottom)); }
  .sidebar { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(430px, calc(100% - 24px)); height: auto; min-height: 72px; border-radius: 20px; padding: 6px 8px; flex-direction: row; background: #000000; }
  .side-logo { display: none; }
  .sidebar nav { flex-direction: row; gap: 0; justify-content: space-around; }
  .nav-item { flex: 1; min-width: 0; font-size: .875rem; gap: 3px; padding: 8px 3px; }
  .nav-item svg { width: 24px; height: 24px; }
  .hero-main { margin: 0; min-height: 426px; }
  .hero-title .brand-word { font-size: min(10vw, 6.5rem); }
  .hero-small { gap: 16px; }
  .hero-actions { width: auto; gap: 18px; }
  .world-top { gap: 32px; }
  .feature-grid article { gap: 28px; }
  .world-grid { gap: 16px; }
  .world-lines { height: 64px; }
  .world-tile .world-label { font-size: 1rem; padding: 8px 10px; }
  .gallery-grid { gap: 28px 24px; }
  #toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 639px) {
  :root { --space-section: 5rem; }
  body { background-size: 100% 100%, 48px 48px, 48px 48px; }
  .page { padding-left: 20px; padding-right: 20px; padding-top: 24px; }
  .hero-grid { gap: 24px; }
  .hero-main { min-height: 0; padding-bottom: 0; }
  .hero-copy { width: 100%; min-height: 0; padding: 0; gap: 18px; }
  .hero-meta { width: 100%; }
  .hero-title.brand-sign { margin-top: 4px; position: relative; z-index: 3; }
  .hero-title .brand-word { font-size: min(20vw, 6rem); }
  .hero-intro { font-size: 1.625rem; max-width: 10em; }
  .hero-description { max-width: 23em; color: #D9C3AB; }
  .hero-art-shell { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1.3; margin-top: 28px; overflow: visible; }
  .hero-art-shell .hero-render { width: 150%; right: 2%; bottom: -3px; }
  .hero-main { display: flex; flex-direction: column; }
  .hero-main .hero-art-shell { order: 2; }
  .hero-main .hero-copy { order: 1; }
  .play-button { width: max-content; min-width: 176px; min-height: 56px; height: auto; font-size: 1.25rem; }
  .play-hint { margin-top: -8px; }
  .hero-small { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 18px; padding: 0; }
  .render-card { min-height: 208px; padding: 16px 14px; }
  .render-card .render-label { font-size: 1rem; line-height: 1.3; }
  .render-card:before, .render-card:after { inset: 18px 0 0; }
  .render-visual { bottom: 74px; }
  .artifact-carousel--hero { grid-column: 1 / -1; padding: 14px; }
  .artifact-carousel--hero .carousel-stage { height: 182px; }
  .artifact-carousel--hero .carousel-slide { height: 170px; width: clamp(62px, 22%, 105px); }
  .artifact-carousel--hero .render-label { font-size: 1.125rem; }
  .hero-bottom { margin-top: 24px; padding-top: 20px; gap: 16px; align-items: stretch; }
  .server-address { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .server-address small { margin-left: auto; }
  .hero-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .section { scroll-margin-top: 24px; }
  .section-rail { font-size: .875rem; gap: 12px; margin-bottom: 28px; letter-spacing: .025em; }
  .world-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .world-copy h2, .feature-heading h2, .section-label h2 { font-size: 1.875rem; line-height: 1.2; }
  .world-copy p { margin-top: 18px; }
  .lobby-restored { width: min(100%, 480px); margin: 0 auto; }
  .lobby-restored .world-label { font-size: 1.25rem; }
  .world-lines { display: none; }
  .world-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 36px; }
  .world-grid .world-tile { max-width: 480px; margin: auto; }
  .world-tile .world-label { font-size: clamp(1.125rem, 5vw, 1.4375rem); padding: 10px 14px; }
  .world-summary { margin-top: 12px; }
  .feature-heading { margin-bottom: 24px; }
  .feature-heading h3 { font-size: 1.5rem; }
  .feature-heading p { margin-top: 14px; }
  .panorama { border-radius: 14px; }
  .panorama span { bottom: 12px; right: 12px; font-size: .875rem; padding: 7px 10px; }
  .feature-grid { margin-top: 40px; }
  .feature-grid article { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 0; }
  .feature-image, .feature-image.tall, .feature-stack .feature-image { border-radius: 14px; }
  .artifact-carousel { padding: 14px; }
  .carousel-stage { height: 250px; }
  .carousel-slide { height: 220px; width: clamp(72px, 23%, 110px); }
  .carousel-controls { gap: 8px; padding-right: 0; justify-content: center; }
  .carousel-count { min-width: 58px; font-size: .875rem; }
  .carousel-pause { min-width: 98px; padding: 0 6px; }
  .section-label { margin-bottom: 28px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gallery-card > .gallery-photo { border-radius: 14px; }
  .gallery-card > .gallery-caption { padding-top: 14px; }
  .gallery-caption strong { font-size: 1rem; }
  .gallery-card svg { top: 17px; right: 0; }
  footer { align-items: flex-start; gap: 18px; padding: 28px 0; }
  .footer-logo { flex-basis: 48px; width: 48px; }
  .footer-logo img { width: 48px; height: 48px; }
  .footer-top { display: block; }
  .footer-top > button { text-align: left; font-size: .875rem; }
  .footer-top nav { font-size: .875rem; gap: 8px 14px; margin-top: 16px; }
  .footer-main > p { font-size: .75rem; margin-top: 16px; }
  dialog { padding: 28px 20px; max-height: calc(100svh - 24px); }
  .dialog-close { margin: -18px -10px 0 0; }
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .image-dialog { padding: 56px 14px 20px; }
  .image-dialog .dialog-close { margin: -46px -4px 0 0; }
  .image-status { padding: 24px 16px; }
  .item-dialog-stage { padding: 20px; height: min(45svh, 360px); }
}
@media (max-width: 359px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .nav-item { font-size: .8125rem; }
  .hero-actions { flex-wrap: wrap; }
  .render-card { padding: 14px 12px; }
  .carousel-controls { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .carousel-pause { position: static; margin-left: 4px; }
}
@media (hover: none) {
  .world-cta { opacity: .9; translate: 0 var(--world-rise); }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .image-status:before { animation: none; }
}
