:root {
  --bg: #0f0c0a; --raise: #1c1714; --ink: #f6e7d0; --soft: #c9b8a0; --muted: #85786b; --line: rgba(246, 231, 208, .16);
  --cream: #fde5c1; --seal: #c8414f; --moon-size: 13px; --tab-font-size: 15px;
  --serif: "DTM Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --ease: cubic-bezier(.7, 0, .2, 1); --out: cubic-bezier(.16, 1, .3, 1);
  --face: 48px; --pill: 36px; --bar: calc(var(--gut) * 2 + var(--face)); --cap: 136px; --gut: 18px; --side: 12px;
  --bw-tall: 74cqw; --bw-wide: 90cqw; --boxh: 100cqh; --gap: 5cqw;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); height: 100%; }
body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 500 14px/1.6 var(--serif); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; -webkit-user-drag: none; user-select: none; }
p, h1, h2, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
html[lang="en"] .zh, html[lang="zh-Hans"] .en { display: none; }
[data-decrypt] { position: relative; -webkit-text-fill-color: transparent; }
[data-decrypt]::after {
  content: attr(data-decrypt); position: absolute; left: 50%; translate: -50% 0;
  -webkit-text-fill-color: currentColor; pointer-events: none; opacity: .68;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.magnet { translate: var(--mx, 0px) var(--my, 0px); }
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; justify-content: center; padding: 0 var(--gut); animation: drop .9s var(--out) .1s backwards; transition: visibility 0s; }
.dock { position: relative; display: flex; align-items: center; max-width: 100%; }
.tab-gap { width: 26px; flex: 0 1 auto; }
.tab-gap:has(+ .lang-toggle[hidden]) { display: none; }
.tab { --lit: 0; position: relative; z-index: 1; flex: none; height: var(--pill); display: inline-flex; align-items: center; gap: 10px; font-size: var(--tab-font-size); white-space: nowrap; color: var(--muted); transition: color .5s ease, opacity .6s ease .5s, translate 1s var(--out) .5s; }
.tab[aria-current] { --lit: 1; color: var(--cream); }
.lang-toggle {
  --moon-size: 15px; --moon-gap: 2px; --choice-width: calc(var(--moon-size) + var(--moon-gap) / 2);
  position: relative; isolation: isolate; flex: none; display: grid;
  grid-template-columns: repeat(2, var(--choice-width)); transition: opacity .28s ease;
}
.lang-toggle[hidden] { display: none; }
.lang-choice {
  --reveal: 100%; position: relative; display: grid; place-items: center; grid-template-columns: var(--moon-size);
  justify-content: end; min-height: 44px; padding: 0 calc(var(--moon-gap) / 2); border: 0;
  border-radius: 100px; background: transparent; color: var(--cream); font: 500 10px/1 var(--serif); cursor: pointer;
}
.lang-choice > * { grid-area: 1 / 1; }
.lang-choice:first-child { margin-left: calc(var(--choice-width) - 24px); }
.lang-choice:last-child { margin-right: calc(var(--choice-width) - 24px); }
.lang-choice .moon {
  box-shadow: none; opacity: 1;
  mask: radial-gradient(circle, transparent calc(var(--moon-size) / 2), black calc(var(--moon-size) / 2 + 1px)) 50% 50% / 320% 100% no-repeat;
  transition: mask-position 1.1s var(--ease);
}
.lang-choice .moon::after { content: none; }
.lang-choice > span { position: relative; mix-blend-mode: difference; }
.lang-choice[lang="en"] { --reveal: 0%; justify-content: start; font-size: 8px; }
.lang-choice[aria-pressed="true"] .moon { mask-position: var(--reveal) 50%; }
.lang-choice:focus-visible { outline-offset: -2px; }
@media (forced-colors: active) {
  .lang-choice > span { mix-blend-mode: normal; }
  .lang-choice[aria-pressed="true"] { text-decoration: underline; }
}
.page-work > .lang-toggle { position: fixed; z-index: 30; top: var(--gut); left: var(--gut); margin: 0; }
.moon { position: relative; flex: none; width: var(--moon-size); height: var(--moon-size); border-radius: 50%; overflow: hidden; background: var(--cream); opacity: calc(.62 + .38 * var(--lit)); box-shadow: 0 0 12px 1px rgba(253, 229, 193, calc(.6 * var(--lit))); transition: opacity .8s ease, box-shadow 1s ease; }
.moon::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--bg); transform: translateX(calc(-3.5px - 13.5px * var(--lit))); transition: transform 1.1s var(--ease); }
@media (hover: hover) {
  .tab:hover { color: var(--cream); }
  .tab:hover .moon { opacity: 1; }
  .me:hover .me-face { transform: scale(1.1) rotate(-10deg); box-shadow: 0 0 0 1px var(--cream), 0 0 28px rgba(253, 229, 193, .35); }
}
.tab.as-lit { --lit: 1; color: var(--cream); }
.tab.as-dark { --lit: 0; color: var(--muted); }
.dock.still *, .dock.still *::after { transition: none !important; }
.me { position: relative; z-index: 3; flex: none; width: var(--face); height: var(--face); border-radius: 50%; transition: translate .6s var(--out), box-shadow 1s ease, opacity .6s ease .36s, scale .9s var(--out) .36s; }
.me[aria-current], .me.as-lit { box-shadow: 0 0 0 2px rgba(253, 229, 193, .85), 0 0 30px 6px rgba(253, 229, 193, .26); }
.me.as-dark { box-shadow: none; }
.me-face { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(253, 229, 193, .22); transition: transform .7s var(--out), box-shadow .4s ease, opacity .4s ease; }
@media (prefers-reduced-motion: no-preference) {
  .me::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--cream); border-radius: 50%; pointer-events: none; opacity: 0; animation: ping 4.5s var(--out) 1.2s infinite; }
}
.room { position: fixed; inset: var(--bar) 0 0 0; display: flex; flex-direction: column; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.reel { flex: 1; min-height: 0; container-type: size; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; outline: none; transition: opacity .6s var(--ease); }
.reel::-webkit-scrollbar { display: none; }
.reel.free { scroll-snap-type: none; }
.track { position: relative; list-style: none; margin: 0; height: 100%; width: max-content; display: flex; align-items: center; gap: var(--gap);
  --w0: min(var(--bw0), calc(var(--boxh) * var(--ar0))); --wn: min(var(--bwn), calc(var(--boxh) * var(--arn)));
  padding: 0 calc(50cqw - var(--wn) / 2) 0 calc(50cqw - var(--w0) / 2); }
.slide { --bw: var(--bw-tall); position: relative; flex: none; width: min(var(--bw), calc(var(--boxh) * var(--ar))); aspect-ratio: var(--ar); scroll-snap-align: center; transform: scale(calc(1 - var(--a, 0) * .12)); }
.slide.wide { --bw: var(--bw-wide); }
.frame { position: relative; display: block; width: 100%; height: 100%; animation: rise 1.2s var(--out) both; animation-delay: calc(.12s + var(--i) * .07s); }
.pic { position: absolute; inset: 0; overflow: hidden; background: var(--raise); animation: wipe 1.3s var(--ease) both; animation-delay: calc(.05s + var(--i) * .07s); }
.pic img, .pic .wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateX(calc(var(--d, 0) * -6%)) scale(calc(1 + var(--a, 0) * .14)); }
.wallpaper { border: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.wallpaper.ready { opacity: 1; }
.pic::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: calc(var(--a, 0) * .6); pointer-events: none; }
.caption { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px var(--gut) max(var(--gut), env(safe-area-inset-bottom, 0px)); transition: opacity .5s var(--ease); }
.caption > .headline { animation: rise .9s var(--out) .45s both; --rise: 24px; }
.work-links { display: flex; flex-wrap: wrap; gap: 6px 20px; max-width: 100%; }
.work-links[hidden] { display: none; }
.work-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; font-size: var(--tab-font-size); color: var(--ink); }
.work-link-label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.work-links .arrow {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px;
  border: 1px solid var(--muted); border-radius: 50%; color: var(--soft); font-size: 14px; line-height: 1;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.work-links .download-icon { padding: 4px; }
@media (hover: hover) {
  .work-links a:hover .arrow { background: var(--cream); border-color: var(--cream); color: var(--bg); }
}
.dl-toast {
  position: fixed; z-index: 40; left: 50%; top: calc(var(--bar) + 8px);
  max-width: calc(100% - 2 * var(--gut)); translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 22px; border-radius: 999px;
  background: rgba(22, 18, 15, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .4);
  color: var(--soft); font-size: 13px; white-space: nowrap;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .3s ease, transform .5s var(--out);
}
.page-work .dl-toast { top: calc(var(--gut) + 52px); }
.dl-toast.on { opacity: 1; transform: none; pointer-events: auto; }
.dl-open {
  display: inline; padding: 6px 0; border: 0; border-radius: 0;
  background: transparent; color: var(--cream); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: opacity .2s ease;
}
.dl-dismiss {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.dl-view {
  position: fixed; z-index: 50; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(max(var(--gut), env(safe-area-inset-top, 0px)) + 48px) var(--side) calc(max(var(--gut), env(safe-area-inset-bottom, 0px)) + 36px);
  background: rgba(15, 12, 10, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; transition: opacity .25s ease;
}
.dl-view[hidden] { display: none; }
.dl-view.on { opacity: 1; }
.dl-stage { position: relative; flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.dl-loading { color: var(--muted); font-size: 13px; pointer-events: none; transition: opacity .25s ease; }
.dl-view.loaded .dl-loading { opacity: 0; }
.dl-img {
  position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; opacity: 0; transition: opacity .3s ease;
  user-select: auto; -webkit-user-select: auto; -webkit-touch-callout: default;
}
.dl-view.loaded .dl-img { opacity: 1; }
.dl-hint {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  max-width: calc(100% - 2 * var(--gut)); text-align: center;
  color: var(--soft); font-size: 13px; pointer-events: none;
}
.dl-close {
  position: fixed; z-index: 2; top: max(12px, env(safe-area-inset-top, 0px)); right: var(--gut);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(15, 12, 10, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.dl-close::before, .dl-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px;
  margin: -.75px 0 0 -8px; background: currentColor; transform: rotate(45deg);
}
.dl-close::after { transform: rotate(-45deg); }
@media (hover: hover) {
  .dl-open:hover { opacity: .78; }
  .dl-dismiss:hover { color: var(--ink); background: rgba(246, 231, 208, .08); }
  .dl-close:hover { background: var(--cream); border-color: var(--cream); color: var(--bg); }
}
.headline { display: grid; overflow: hidden; min-width: 0; padding-block-end: .12em; font: 900 40px/1.18 var(--serif); letter-spacing: .03em; color: var(--ink); }
@media (pointer: coarse) and (max-device-width: 899px) {
  .headline { font-size: 24px; }
}
@media (pointer: coarse) and (max-device-width: 899px) and (max-device-height: 599px) {
  .headline { font-size: 20px; }
}
.headline .rl { grid-area: 1 / 1; }
.hang { margin-left: -.5em; }
.sheet { position: absolute; z-index: 20; inset: 0; touch-action: pinch-zoom; }
.list .sheet { position: fixed; }
.room.solo { inset: 0; }
.page-work .bar { display: none; }
body.is-open .bar { visibility: hidden; pointer-events: none; transition: visibility 0s .6s; }
body.is-open .tab { opacity: 0; translate: calc(var(--pill) * -.8) 0; transition: opacity .28s ease, translate .5s var(--ease); }
body.is-open .bar .lang-toggle { opacity: 0; }
body.is-open .me { opacity: 0; scale: .7; transition: translate .6s var(--out), box-shadow .4s ease, opacity .3s ease .1s, scale .5s var(--ease) .1s; }
.sheet[hidden], .detail[hidden] { display: none; }
.detail { position: absolute; inset: 0; display: flex; flex-direction: column; }
.d-stage { flex: 1; min-height: 0; margin: calc(var(--gut) + env(safe-area-inset-top, 0px)) var(--side) 0; container-type: size; display: grid; place-items: center; }
.d-art { position: relative; width: min(100cqw, calc(100cqh * var(--ar))); aspect-ratio: var(--ar); overflow: hidden; background: var(--raise); }
.d-art img, .d-art .wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-art.wallpaper-backed { background: transparent; }
.d-art.wallpaper-backed img { visibility: hidden; }
.pic[popover]:popover-open { position: fixed; inset: 0 auto auto 0; margin: 0; padding: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.pic[popover]:popover-open img, .pic[popover]:popover-open .wallpaper { transform: none; }
.pic[popover]:popover-open::after { opacity: 0; }
.sheet[popover]:popover-open { width: auto; height: auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.pic[popover]::backdrop, .sheet[popover]::backdrop { background: transparent; pointer-events: none; }
.sheet.wallpaper-returning, .sheet.wallpaper-returning * { pointer-events: none; }
.d-info { flex: none; min-height: var(--cap); display: flex; flex-direction: column; gap: 10px; padding: 16px var(--gut) 22px; }
.arrow { color: var(--muted); }
.d-back { position: absolute; inset: 0; z-index: 1; cursor: zoom-out; }
html.has-cursor .d-back { cursor: none; }
.x, .step { position: absolute; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(15, 12, 10, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: 16px; cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease, opacity .5s var(--ease), transform .6s var(--out), translate .6s var(--out); }
.x:hover, .step:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.x { top: 10px; right: var(--gut); }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor; transform: rotate(45deg); transition: transform .6s var(--out); }
.x::after { transform: rotate(-45deg); }
.x:hover::before { transform: rotate(135deg); }
.x:hover::after { transform: rotate(45deg); }
.step { top: 10px; }
.step.prev { left: var(--gut); }
.step.next { left: calc(var(--gut) + 52px); }
.step[disabled] { opacity: .25; pointer-events: none; }
.x:not(:focus-visible), .step:not(:focus-visible) { opacity: 0 !important; pointer-events: none; }
.play { position: absolute; z-index: 2; left: 16px; bottom: 16px; width: 64px; height: 64px; border-radius: 50%; background: rgba(15, 12, 10, .5); border: 1px solid rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .35s ease, transform .6s var(--out), translate .6s var(--out), opacity .5s ease; }
.play:hover { background: var(--cream); transform: scale(1.08); }
.play-icon { position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -6px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; transition: border-color .35s ease; }
.play:hover .play-icon { border-left-color: var(--bg); }
.play .zh, .play .en { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d-art .player, .slide .player { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: #000; }
html.js .slide .play { opacity: 0; transform: scale(.4); pointer-events: none; transition: background .35s ease, transform .5s var(--ease), opacity .25s ease; }
html.js .slide.is-focus .play { opacity: 1; transform: none; pointer-events: auto; transition: background .35s ease, transform .9s var(--out) .25s, translate .6s var(--out), opacity .4s ease .25s; }
html.js .slide.is-focus .play:hover { transform: scale(1.08); transition-delay: 0s; }
body.is-open .slide .play, body.dragging .slide .play { opacity: 0; pointer-events: none; }
.detail.bare .d-stage { margin: 0; }
.ghost { position: fixed; z-index: 25; overflow: hidden; transform-origin: 0 0; pointer-events: none; background: var(--raise); }
.ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.is-open .reel { opacity: 0; pointer-events: none; }
body.is-open .caption .headline { opacity: 0; transition: opacity .15s ease; }
body.is-open .caption .work-links { visibility: hidden; }
.solo .d-art { animation: wipe 1.2s var(--ease) both; }
.solo .d-art img { animation: settle 1.8s var(--out) both; }
.solo .d-info > * { animation: rise 1s var(--out) .4s both; --rise: 18px; }
.solo .x, .solo .step { animation: pop .9s var(--out) .6s both; }
body.leaving .room { opacity: 0; transform: scale(.985); }
.room[hidden] { display: none; }
.room.away { pointer-events: none; }
.room.been .frame, .room.been .pic, .room.been .caption > * { animation: none; }
@media (max-width: 599px) {
  :root { --tab-font-size: 13px; }
  .bar { padding-inline: 6px; }
  .tab { gap: 5px; }
  .work-links { column-gap: 14px; }
}
@media (max-width: 439px) {
  :root { --tab-font-size: 12px; }
  .me { width: 38px; height: 38px; }
  .tab { gap: 4px; }
}
@media (max-width: 359px) {
  .me { width: 34px; height: 34px; }
  .tab { gap: 3px; }
}
@media (max-width: 599px) and (orientation: portrait) {
  .list-works { --cap: 168px; }
}
@media (max-width: 899px) and (orientation: portrait) {
  .caption { padding-top: 24px; }
  .page-work > .lang-toggle { left: 50%; translate: -50% 0; }
}
.aboutpage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 0 28px var(--bar); }
.aboutpage:not(.notfound) { justify-content: safe center; gap: 24px; padding-inline: 16px; overflow-y: auto; }
.sealmark { position: relative; flex: none; width: 132px; height: 132px; color: var(--seal); }
.sealmark svg, .sealmark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sealmark.drawing svg { opacity: 0; }
.out { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; }
.aboutpage .out { animation: rise 1s var(--out) 1.2s both; --rise: 12px; }
.out a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.out .icon { flex: none; width: 1.15em; height: 1.15em; margin-right: 2px; fill: currentColor; }
.out a:hover :is(.zh, .en) { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.out.about-links { display: grid; flex: none; justify-content: stretch; gap: 0; width: min(22rem, 100%); }
.about-links a { display: grid; grid-template-columns: 1.15em 1fr auto; gap: 9px; min-height: 44px; padding: 4px 10px; }
.about-links a + a { border-top: 1px solid var(--line); }
.nf { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.notfound .sealmark { width: 88px; height: 88px; }
.notfound .out { animation: rise 1s var(--out) .3s both; --rise: 12px; }
html.has-cursor .reel, html.has-cursor .reel a { cursor: none; }
body.dragging, body.dragging .reel, body.dragging .reel a { cursor: grabbing; }
.cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.cursor i { position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; border-radius: 50%; background: var(--cream); transform: scale(0); transition: transform .5s var(--out), background .3s ease; }
.cursor b { position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; display: grid; place-items: center; font: 500 22px/1 var(--serif); color: var(--bg); opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .5s var(--out); }
.cursor.dot i { transform: scale(.1); }
.cursor.open i, .cursor.go i { transform: scale(1); }
.cursor.go i { transform: scale(.72); background: rgba(253, 229, 193, .85); }
.cursor.drag i { transform: scale(.5); }
.cursor.open b, .cursor.go b, .cursor.drag b { opacity: 1; transform: none; }
.cursor.drag b { font-size: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise, 48px)); } }
@keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 36%, 100% { transform: scale(1.7); opacity: 0; } }
.room.shaderpage { inset: 0; }
.lab { --sheet: 0px; position: absolute; inset: 0; overflow: hidden; background: #000; }
.lab::before, .lab::after { content: ""; position: absolute; z-index: 1; pointer-events: none; }
.lab::before { left: 0; right: 0; top: 0; height: calc(var(--bar) + 40px); background: linear-gradient(rgba(15, 12, 10, .55), rgba(15, 12, 10, 0)); }
.lab::after { left: 0; bottom: var(--sheet); width: min(760px, 100%); height: 300px; background: radial-gradient(ellipse at 0 100%, rgba(15, 12, 10, .6), rgba(15, 12, 10, 0) 70%); transition: bottom .5s var(--out); }
.lab-stage { position: absolute; inset: 0; touch-action: none; }
.lab.drags .lab-stage { cursor: crosshair; }
.lab-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.lab-gl.on { opacity: 1; }
.lab-msg { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: min(420px, calc(100% - 2 * var(--gut))); text-align: center; color: var(--soft); font-size: 14px; pointer-events: none; }
.lab-msg > span { display: none; }
.lab[data-state="wait"] .m-wait, .lab[data-state="nogl"] .m-nogl, .lab[data-state="fail"] .m-fail, html:not(.js) .m-nogl { display: block; }
html:not(.js) .m-wait { display: none; }
.lab-msg .m-wait { opacity: 0; transition: opacity .3s ease; }
.lab.moon-in .m-wait { opacity: 1; }
.lab.moon-out .m-wait { display: block; opacity: 0; transition: opacity .6s ease .5s; }
.lab-moon { position: relative; display: block; width: 60px; height: 60px; margin: 0 auto 18px; }
.lab-moon::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(253, 229, 193, .3), rgba(253, 229, 193, .09) 60%, rgba(253, 229, 193, 0)); opacity: calc(.08 + .5 * var(--p, 0)); animation: moon-breathe 2.8s ease-in-out infinite; }
.lab-moon canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab.moon-full .lab-moon::before { opacity: 1; animation: none; transform: scale(1.3); transition: opacity .8s ease, transform .8s var(--out); }
@keyframes moon-breathe { 50% { transform: scale(1.08); } }
.lab:not([data-state="on"]) .lab-hud, .lab:not([data-state="on"]) .lab-ring { opacity: 0; pointer-events: none; }
.lab-ring { position: absolute; z-index: 2; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 1px 6px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.lab-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.lab.drags .lab-stage:hover ~ .lab-ring, .lab.drags.dragging .lab-ring { opacity: 1; }
.lab-folds { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.lab.folds-on[data-state="on"] .lab-folds { opacity: 1; }
.lab-folding .bar { pointer-events: none; }
.lab-folding .bar .dock { pointer-events: auto; }
.lf-edge { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.2; stroke-dasharray: 3 5; stroke-linecap: round; }
.lf-dot { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.lf-ring { fill: rgba(15, 12, 10, .2); stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; transition: stroke .2s ease, fill .2s ease; }
.lf-dot.on .lf-ring { fill: rgba(15, 12, 10, .34); stroke: rgba(255, 255, 255, .95); }
.lf-turn { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.lf-core { fill: #fff; }
.lf-n { fill: #fff; font: 600 12px/1 system-ui, sans-serif; paint-order: stroke; stroke: rgba(15, 12, 10, .7); stroke-width: 3px; }
.lab-hud { position: absolute; z-index: 3; left: var(--gut); bottom: calc(var(--sheet) + 18px + env(safe-area-inset-bottom, 0px)); right: calc(var(--gut) + 48px); display: flex; flex-direction: column; gap: 14px; pointer-events: none; transition: bottom .5s var(--out), opacity .5s ease; }
.lab-hud > * { pointer-events: auto; }
.lab-keys { display: flex; gap: 10px; }
.lab-hud > .lab-keys { pointer-events: none; }
.lab-keys > * { pointer-events: auto; }
.lab-round { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(15, 12, 10, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease, transform .5s var(--out); }
.lab-round svg { width: 18px; height: 18px; }
@media (hover: hover) { .lab-round:hover { background: var(--cream); border-color: var(--cream); color: var(--bg); } }
.lab-dl[aria-expanded="true"] { background: var(--cream); border-color: var(--cream); color: var(--bg); }
.lab-keys { align-items: center; }
.lab-q { display: flex; gap: 2px; height: 44px; padding: 3px; border-radius: 22px; border: 1px solid var(--line); background: rgba(15, 12, 10, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lab-q button { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; border: 0; border-radius: 19px; background: transparent; color: var(--soft); font-size: 13px; white-space: nowrap; cursor: pointer; transition: background .3s ease, color .3s ease; }
.lab-q button[aria-pressed="true"] { background: var(--cream); color: var(--bg); }
@media (hover: hover) { .lab-q button:not([aria-pressed="true"]):hover { color: var(--ink); } }
.lab-open { position: absolute; z-index: 4; right: var(--gut); bottom: calc(var(--sheet) + 18px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 22px; background: rgba(15, 12, 10, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: 14px; white-space: nowrap; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease, bottom .5s var(--out), opacity .5s ease; }
.lab-open svg { flex: none; width: 18px; height: 18px; }
.lab-open[aria-expanded="true"] { background: var(--cream); border-color: var(--cream); color: var(--bg); }
@media (hover: hover) { .lab-open:hover { background: var(--cream); border-color: var(--cream); color: var(--bg); } }
.lab-open .zh, .lab-open .en { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lab.recording .lab-open { opacity: .35; pointer-events: none; }
.lab:not([data-state="on"]) .lab-open { opacity: 0; pointer-events: none; }
.lab-panel { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; max-height: min(62%, 560px); display: flex; flex-direction: column; border-radius: 18px 18px 0 0; background: rgba(22, 18, 15, .82); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 0 0 1px var(--line), 0 -20px 60px rgba(0, 0, 0, .35); padding-bottom: env(safe-area-inset-bottom, 0px); transition: transform .6s var(--out), opacity .35s ease; }
.lab.folded .lab-panel { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s ease .1s; }
.lab:not([data-state="on"]):not([data-state="wait"]) .lab-panel { display: none; }
.lp-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; }
.lp-cur { flex: 1; min-width: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 6px; border: 0; border-radius: 14px; background: rgba(246, 231, 208, .06); color: var(--ink); text-align: left; cursor: pointer; transition: background .3s ease; }
.lp-cur-img { flex: none; width: 64px; height: 40px; border-radius: 8px; object-fit: cover; background: rgba(246, 231, 208, .08); box-shadow: 0 0 0 1px var(--line); }
.lp-cur-n { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; font-size: 15px; }
.lp-all { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); font-size: 13px; white-space: nowrap; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.lp-all svg { width: 15px; height: 15px; }
@media (hover: hover) { .lp-cur:hover { background: rgba(246, 231, 208, .1); } .lp-cur:hover .lp-all { background: var(--cream); border-color: var(--cream); color: var(--bg); } }
.lp-switch { flex: 1; min-width: 0; display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: rgba(246, 231, 208, .06); }
.lp-sh { flex: 1; min-width: 0; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 6px; border: 0; border-radius: 11px; background: transparent; color: var(--soft); font-size: 14px; line-height: 1.25; cursor: pointer; transition: background .3s ease, color .3s ease; }
.lp-sh[aria-pressed="true"] { background: rgba(246, 231, 208, .13); color: var(--ink); }
.lp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; scrollbar-width: thin; scrollbar-color: rgba(246, 231, 208, .18) transparent; }
.lp-sec { border-top: 1px solid var(--line); }
.lp-h { width: 100%; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; border: 0; background: none; color: var(--soft); font-size: 14px; cursor: pointer; text-align: left; }
.lp-t { display: flex; align-items: baseline; gap: 8px; }
.lp-h svg { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .5s var(--out); }
.lp-sec.open .lp-h { color: var(--ink); }
.lp-sec.open .lp-h svg { transform: rotate(180deg); }
@media (hover: hover) { .lp-h:hover { color: var(--ink); } }
.lp-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.lp-sec.open .lp-b { grid-template-rows: 1fr; }
.lp-in { min-height: 0; overflow: hidden; }
.lp-sec.open .lp-in { padding-bottom: 12px; }
.lp-hint { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.lp-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lp-chip { position: relative; min-width: 0; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 4px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--soft); font-size: 13px; line-height: 1.25; cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.lp-chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--bg); }
.lp-chip.edited::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--seal); }
@media (hover: hover) { .lp-chip:not([aria-pressed="true"]):hover { border-color: rgba(246, 231, 208, .4); color: var(--ink); } }
.lp-row { display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--soft); font-size: 13px; }
.lp-row[hidden] { display: none; }
.lp-wrap { align-items: flex-start; padding: 6px 0; }
.lp-wrap .lp-l { padding-top: 6px; }
.lp-l { flex: none; width: 76px; display: flex; flex-direction: column; line-height: 1.25; }
.lp-row.moved .lp-l { color: var(--cream); }
.lp-row input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.lp-row input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--soft) var(--f, 50%), var(--line) var(--f, 50%)); }
.lp-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border: 0; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgba(253, 229, 193, .12); transition: box-shadow .2s ease; }
.lp-row input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(253, 229, 193, .2); }
.lp-row input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: var(--line); }
.lp-row input[type="range"]::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--soft); }
.lp-row input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgba(253, 229, 193, .12); }
.lp-v { flex: none; width: 42px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-c + .lp-v { width: auto; flex: 1; text-align: left; letter-spacing: .06em; }
.lp-c { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.lp-c input { position: absolute; inset: -8px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.lp-dice { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 -6px 0 -4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft); cursor: pointer; }
.lp-dice svg { width: 18px; height: 18px; }
@media (hover: hover) { .lp-dice:hover { color: var(--cream); } }
.lp-tg { position: relative; flex: none; width: 42px; height: 24px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; transition: background .3s ease, border-color .3s ease; }
.lp-tg i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--soft); transition: transform .4s var(--out), background .3s ease; }
.lp-tg[aria-checked="true"] { background: var(--cream); border-color: var(--cream); }
.lp-tg[aria-checked="true"] i { transform: translateX(18px); background: var(--bg); }
.lp-pills, .lp-sws { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-pill { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: transparent; color: var(--soft); font-size: 12px; cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.lp-pill[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--bg); }
.lp-pic .lp-file { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.lp-pic.moved .lp-file { border-color: var(--soft); color: var(--cream); }
.lp-pic.drop .lp-file { border-style: dashed; border-color: var(--cream); color: var(--cream); }
@media (hover: hover) { .lp-pill:not([aria-pressed="true"]):hover { border-color: rgba(246, 231, 208, .4); color: var(--ink); } }
.lp-sw { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .3s ease; }
.lp-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--raise), 0 0 0 3.5px var(--cream); }
.lp-btn { flex: 1; min-width: 0; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 22px; background: transparent; color: var(--ink); font-size: 14px; white-space: nowrap; cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.lp-btn svg { flex: none; width: 16px; height: 16px; }
.lv { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; background: rgba(22, 18, 15, .82); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 0 0 1px var(--line), 0 -20px 60px rgba(0, 0, 0, .35); padding-bottom: env(safe-area-inset-bottom, 0px); opacity: 0; transform: translateY(calc(100% + 30px)); pointer-events: none; transition: transform .5s var(--ease), opacity .4s ease .1s; }
.lv.open { opacity: 1; transform: none; pointer-events: auto; transition: transform .6s var(--out), opacity .35s ease; }
.lv-in { padding: 12px 16px 14px; }
.lv-kind { margin-bottom: 8px; }
.lv [hidden] { display: none !important; }
.lv-note { margin: 4px 0 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-loop { color: var(--cream); }
.lv-go { display: flex; align-items: center; gap: 10px; }
.lv-export { background: var(--cream); border-color: var(--cream); color: var(--bg); }
@media (hover: hover) { .lv-export:hover { background: #fff3dd; } .lv-cancel:hover { border-color: var(--cream); } }
.lv-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.lv-bar i { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--cream); transition: width .3s linear; }
.lv-cancel { flex: none; width: auto; padding: 0 18px; }
.lab.recording .lp-head, .lab.recording .lp-body, .lab.recording .lab-hud, .lv.busy .lp-row, .lv.busy .lv-kind { opacity: .35; pointer-events: none; transition: opacity .3s ease; }
.lab.framed .lab-stage { box-shadow: 0 0 0 1px rgba(246, 231, 208, .22); }
.lv-export.saving { animation: lab-breathe 1.4s ease-in-out infinite; pointer-events: none; }
.lab-cover { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
.lab-cover.on { display: block; }
@keyframes lab-breathe { 50% { opacity: .55; } }
.lab-gal { position: absolute; z-index: 7; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: rgba(12, 10, 8, .74); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.lab-gal.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.lg-in { max-width: 1120px; min-height: 100%; margin: 0 auto; padding: calc(var(--bar) + 8px) 18px calc(32px + env(safe-area-inset-bottom, 0px)); }
.lg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lg-t { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.lg-t :is(.zh, .en) { font-size: 24px; font-weight: 900; }
.lg-n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lg-x { margin-left: auto; background: transparent; }
.lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.lg-card { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: var(--soft); text-align: left; cursor: pointer; transform: translateY(12px); opacity: 0; transition: transform .6s var(--out), opacity .4s ease; }
.lab-gal.open .lg-card { transform: none; opacity: 1; }
.lab-gal.open .lg-card:nth-child(2) { transition-delay: .04s; } .lab-gal.open .lg-card:nth-child(3) { transition-delay: .08s; } .lab-gal.open .lg-card:nth-child(4) { transition-delay: .12s; } .lab-gal.open .lg-card:nth-child(n+5) { transition-delay: .16s; }
.lg-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: rgba(246, 231, 208, .06); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .35); transition: box-shadow .3s ease; }
.lg-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--out); }
.lg-card[aria-current] .lg-img { box-shadow: 0 0 0 2px rgba(12, 10, 8, 1), 0 0 0 3.5px var(--cream), 0 18px 40px rgba(0, 0, 0, .35); }
.lg-nm { display: flex; flex-direction: column; line-height: 1.3; font-size: 14px; }
.lg-card[aria-current] .lg-nm { color: var(--ink); }
@media (hover: hover) { .lg-card:hover .lg-img img { transform: scale(1.04); } .lg-card:hover .lg-nm { color: var(--ink); } }
.lab-toast { position: absolute; z-index: 6; left: 50%; top: calc(var(--bar) + 8px); width: max-content; max-width: calc(100% - 2 * var(--gut)); translate: -50% 0; padding: 9px 16px; border-radius: 18px; background: rgba(15, 12, 10, .75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 13px; white-space: nowrap; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s ease, transform .5s var(--out); }
.lab-toast.url { white-space: normal; overflow-wrap: anywhere; }
.lab-toast.on { opacity: 1; transform: none; }
.shaderpage:fullscreen { inset: 0; }
.shaderpage:fullscreen .lab::before { display: none; }
@media (max-width: 440px) {
  .lab-hud { left: 12px; right: 60px; }
  .lab-keys { gap: 3px; flex-wrap: wrap; }
  .lab-q button { padding-inline: 4px; font-size: 12px; }
  .lab-open { right: 12px; }
}
@media (min-width: 900px) and (pointer: fine) {
  .list { --bw-tall: 76cqw; --bw-wide: 76cqw; --boxh: min(100cqh, calc(76cqw / 1.7778)); --gap: 3cqw; }
}
@media (min-width: 900px) {
  :root { --face: 64px; --pill: 44px; --cap: 140px; --gut: 40px; --side: 40px; }
  .caption, .d-info { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .caption { gap: 16px; padding-top: 22px; }
  .d-info { gap: 40px; padding-top: 22px; padding-bottom: max(var(--gut), env(safe-area-inset-bottom, 0px)); }
  .d-info .headline { flex: none; max-width: 52%; padding-right: 0; }
  .x, .step { width: 56px; height: 56px; font-size: 18px; }
  .x { top: 12px; right: var(--gut); }
  .step { top: calc((100% - var(--cap)) / 2); margin-top: -28px; }
  .step.prev { left: var(--gut); }
  .step.next { left: auto; right: var(--gut); }
  .play { left: 22px; bottom: 22px; width: 76px; height: 76px; }
  .play-icon { margin: -12px 0 0 -6px; border-width: 12px 0 12px 20px; }
  .notfound { gap: 36px; }
  .out { font-size: 15px; }
  .notfound .sealmark { width: 112px; height: 112px; }
  .lab-panel { left: auto; right: var(--gut); top: var(--bar); bottom: 100px; width: 340px; max-height: none; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .35); padding-bottom: 0; }
  .lab-panel { transform-origin: 100% 100%; }
  .lab.folded .lab-panel { transform: translateY(14px) scale(.98); }
  .lab-hud { left: 48px; bottom: 44px; right: 420px; gap: 20px; }
  .lg-in { padding: calc(var(--bar) + 20px) 64px 48px; }
  .lg-top { margin-bottom: 26px; }
  .lg-t :is(.zh, .en) { font-size: 30px; }
  .lg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
  .lg-nm { flex-direction: row; align-items: baseline; gap: 8px; font-size: 15px; }
  .lv { left: 48px; right: auto; bottom: 100px; width: 340px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .35); padding-bottom: 0; transform: translateY(14px) scale(.98); transform-origin: 0 100%; }
  .lab-open { right: var(--gut); bottom: 44px; width: auto; padding: 0 18px 0 14px; }
  .lab-open .zh, .lab-open .en { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .lab-toast { top: calc(var(--bar) + 4px); }
}
@media (orientation: landscape) and (max-width: 899px) {
  :root { --cap: 100px; --side: 18px; }
  .list-works { --cap: 112px; }
  .caption { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 12px; }
  .step { top: calc((100% - var(--cap)) / 2); margin-top: -22px; }
  .step.prev { left: 14px; }
  .step.next { left: auto; right: 14px; }
  .notfound { gap: 20px; padding-bottom: calc(var(--bar) / 2); }
}
@media (max-height: 500px) {
  .aboutpage:not(.notfound) { gap: 16px; padding-block: 12px; }
}
@media (pointer: fine) {
  .caption, .d-info { flex-wrap: wrap; row-gap: 6px; }
  .caption .headline, .d-info .headline { max-width: 100%; }
  .work-links { flex: none; flex-wrap: nowrap; overflow-x: auto; }
  .work-links a { flex: none; }
  .work-links a:focus-visible { outline-offset: -2px; }
}
@media (pointer: fine) and (max-width: 899px) {
  .caption, .d-info { flex-flow: column nowrap; justify-content: flex-start; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .slide, .pic img { transform: none !important; }
}
