@font-face { font-family: "Directory Sans"; src: url("directory-ui/noto-sans-sc.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: dark;
  background: #02121d;
  color: #ecf7f7;
  font-family: "Directory Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --cyan: #55b8c7;
  --grid-gap: 1.8vw;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: #12334b #02121d; scrollbar-width: thin; }
body { margin: 0; min-width: 280px; background: #02121d; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #73d8e8; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top-nav { display: flex; justify-content: space-between; align-items: flex-start; height: 5.3vw; min-height: 68px; padding: 1.3vw 2.3vw 0; }
.back-link { display: grid; place-items: center; width: 3.6vw; height: 3.6vw; min-width: 44px; min-height: 44px; }
.back-link img { display: block; width: 100%; height: 100%; filter: invert(1) drop-shadow(0 0 8px #56c4d3); }
.sound-btn { display: grid; place-items: center; width: 3.1vw; height: 3.1vw; min-width: 40px; min-height: 40px; cursor: pointer; border: 1px solid #224258; border-radius: 50%; color: #527a92; background: #0c2539; }
.sound-btn .ic { width: max(18px, 1.45vw); height: max(18px, 1.45vw); }
.sound-btn .ic-off, .sound-btn.muted .ic-on { display: none; }
.sound-btn.muted .ic-off { display: block; }
.sound-btn:hover { color: #95d8df; border-color: #5690a6; }
.page-main { width: 84.9%; margin: 0 auto; padding-bottom: 50px; }
.cat-bar { position: relative; margin: 0 0 1.65vw; padding: .34vw .58vw; }
.cat-bar::before { content: ""; position: absolute; inset: 0; border: 1.6vw solid transparent; border-image: url("directory-ui/nav-skin.webp") 70 fill / 1.6vw stretch; opacity: 1; pointer-events: none; }
.cat-pill { position: relative; display: flex; gap: 0; justify-content: space-evenly; overflow-x: auto; scrollbar-width: none; }
.cat-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: .52vw; flex: 1 0 auto; min-height: 4.3vw; padding: 0 .65vw; color: #9cabc0; background: transparent; border: 0; cursor: pointer; white-space: nowrap; font-size: 1.52vw; line-height: 1.3; font-weight: 400; }
.cat-icon { display: block; width: 1.9vw; height: 1.9vw; object-fit: contain; opacity: .83; }
.cat-tab:hover { color: #edfaff; }
.cat-tab:focus-visible { outline-offset: -4px; }
.cat-tab.active { color: var(--cyan); }
.cat-tab.active::after { position: absolute; content: ""; width: calc(100% - 1.3vw); left: .65vw; bottom: 0; height: .3vw; background: #209faf; box-shadow: 0 0 14px #1dcee0b0; }
.lab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.lab-card { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1; border-radius: 7%; background: #062331; transition: box-shadow 160ms ease; }
.lab-card::before { position: absolute; inset: 0; content: ""; z-index: -1; background: url("directory-ui/card-skin.webp") center / 100% 100% no-repeat; opacity: .88; filter: saturate(.68) brightness(.9); border-radius: inherit; pointer-events: none; }
.lab-card:hover, .lab-card:focus-visible { box-shadow: 0 0 0 1px #5db9c9, 0 0 20px #37abb52a; }
.lab-card.hide { display: none; }
.card-title { position: absolute; z-index: 2; top: 7.2%; left: 7%; right: 3%; margin: 0; color: #f4faf7; font-size: 1.7vw; line-height: 1.2; font-weight: 700; letter-spacing: -.065em; text-shadow: 0 2px 3px #001923; overflow-wrap: anywhere; }
.card-title-long { font-size: 1.48vw; letter-spacing: -.055em; }
.card-art { position: absolute; display: grid; place-items: center; top: 20%; left: 5.5%; width: 89%; height: 64%; overflow: hidden; }
.card-art img { display: block; position: absolute; width: auto; max-width: none; height: var(--art-scale, 125%); object-fit: contain; mix-blend-mode: lighten; mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent), linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
.card-art-refined { overflow: visible; }
.card-art-refined img { width: 100%; height: 117%; object-fit: contain; mix-blend-mode: normal; mask-image: none; }
.card-art[data-art="solid"] img { width: 130%; height: 145%; }
.card-art[data-art="conic"] img { width: 109%; height: 117%; }
.card-art[data-art="rocket"] img { width: 106%; height: 121%; }
.card-art[data-art="river"] img { width: 108%; height: 127%; }
.card-art[data-art="micro"] img { width: 106%; height: 118%; }
.card-art[data-art="dna"] img { width: 105%; height: 118%; }
.card-art[data-art="orbital"] img { width: 93%; height: 109%; filter: brightness(.88) saturate(.88); }
.card-foot { position: absolute; display: flex; align-items: center; justify-content: space-between; left: 7%; right: 6%; bottom: 6%; color: #dce9ed; font-size: 1.18vw; font-weight: 400; line-height: 1.2; }
.play-badge { display: block; width: 2vw; height: 2vw; opacity: .43; filter: invert(80%) sepia(20%) saturate(500%) hue-rotate(160deg); }
.empty-state { display: none; padding: 3rem 1rem; text-align: center; }
.empty-state.show { display: block; }
.nebula { display: none; }
.page-foot { position: fixed; bottom: 3px; left: 50%; transform: translateX(-50%); z-index: 5; }
.icp-pill { display: block; padding: 4px 14px; color: #627d90; background: #0a1e2be8; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.icp-pill:hover { color: #d9ecf4; }
@media (min-width: 1921px) {
  .page-main { max-width: 1800px; }
  .card-title { font-size: 32px; }
  .card-title-long { font-size: 29px; }
  .card-foot { font-size: 22px; }
}
@media (max-width: 1050px) {
  .page-main { width: calc(100% - 48px); }
  .top-nav { padding: 14px 22px 0; height: 74px; }
  .cat-bar { margin-bottom: 22px; padding: 5px 9px; }
  .cat-bar::before { border-width: 16px; border-image-width: 16px; }
  .cat-pill { justify-content: flex-start; }
  .cat-tab { min-height: 44px; font-size: 17px; gap: 7px; padding: 0 13px; }
  .cat-icon { width: 24px; height: 24px; }
  .cat-tab.active::after { height: 3px; left: 13px; width: calc(100% - 26px); }
  .lab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card-title { font-size: 2.05vw; }
  .card-title-long { font-size: 1.88vw; }
  .card-foot { font-size: 1.5vw; }
  .play-badge { width: 27px; height: 27px; }
}
@media (max-width: 620px) {
  .page-main { width: calc(100% - 28px); }
  .top-nav { height: 65px; padding: 10px 14px 0; }
  .cat-bar { margin-bottom: 18px; }
  .cat-tab { font-size: 16px; padding-inline: 12px; }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .lab-card { aspect-ratio: .88; }
  .card-title { top: 7%; left: 8%; right: 7%; font-size: 3.55vw; letter-spacing: -.04em; line-height: 1.3; }
  .card-title-long { font-size: 3.35vw; }
  .card-art { top: 28%; height: 55%; }
  .card-art.card-art-refined img { width: 100%; height: 108%; }
  .card-foot { font-size: 2.85vw; bottom: 6%; }
  .play-badge { width: 21px; height: 21px; }
  .icp-pill { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .lab-card { transition: none; } }
