:root {
  color-scheme: dark;
  --page: #080b13;
  --ink: #f3f5ff;
  --muted: #a0aabd;
  --line: rgba(171, 191, 229, .16);
  --accent: #9fe2ff;
  --halo: #4474ca;
  --art-filter: none;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
:root[data-tone="violet"] { --accent: #dcb1ff; --halo: #8c56d2; --art-filter: hue-rotate(53deg) saturate(1.08); }
:root[data-tone="gold"] { --accent: #ffce91; --halo: #bf7848; --art-filter: hue-rotate(151deg) saturate(.98); }
* { box-sizing: border-box; }
html { min-width: 280px; background: var(--page); }
body { margin: 0; background: radial-gradient(ellipse at 74% 42%, #10172955, transparent 56%), var(--page); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
body:has(> .site-footer) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.site-footer { margin-top: auto; padding: 14px max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .8125rem; line-height: 1.65; }
.site-footer-links, .site-footer-meta { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 1rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }
.about-contact { color: var(--accent); text-underline-offset: .18em; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(87.5%, 1440px); margin: 0 auto; }
.top { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 680; font-size: 19px; letter-spacing: .035em; white-space: nowrap; }
.brand img, .about-dialog img { object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px #c5e1ff43; }
nav { display: flex; gap: clamp(23px, 3.4vw, 54px); align-items: center; align-self: stretch; }
nav a, nav button, nav summary { padding: 0 2px; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
nav .current { position: relative; color: var(--ink); }
nav .current::after { position: absolute; content: ""; height: 2px; border-radius: 3px; bottom: -1px; left: 2px; right: 2px; background: var(--accent); }
nav button:hover, nav summary:hover { color: var(--ink); }
main:focus { outline: none; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(490px, calc(100svh - 230px), 740px); }
.intro { position: relative; width: max-content; max-width: 53%; z-index: 2; padding: 58px 0 60px; }
.overline { color: var(--accent); margin: 0 0 clamp(18px, 2.8vh, 30px); font-size: 13px; font-weight: 540; letter-spacing: .21em; display: flex; align-items: center; gap: 13px; }
.signal { width: 23px; height: 1px; background: var(--accent); position: relative; }
.signal::after { content: ""; position: absolute; width: 5px; height: 5px; top: -2px; right: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
h1, h2, p { margin: 0; }
h1 { line-height: 1.12; font-size: clamp(56px, 5.8vw, 104px); letter-spacing: -.065em; }
h1 span, h1 strong { display: block; }
h1 span { font-size: .88em; font-weight: 410; color: #cfdae9; }
h1 strong { margin-top: .12em; font-weight: 790; color: #f5f7ff; white-space: nowrap; }
h1 i { display: inline-block; width: .115em; height: .115em; border-radius: 3px; background: var(--accent); margin: 0 0 .04em .11em; box-shadow: 0 0 .22em color-mix(in srgb, var(--accent) 32%, transparent); }
.welcome { margin: 24px 0 29px; color: #aab4c5; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.86; letter-spacing: .035em; }
.enter { display: inline-flex; align-items: center; justify-content: center; min-width: 114px; min-height: 46px; padding: 0 19px; border: 1px solid #c7ecff; border-radius: 7px; background: linear-gradient(112deg, #b4eaff, #96c8ff); box-shadow: 0 5px 25px #569ed819; color: #101a2a; font-size: 14px; font-weight: 700; }
.enter:hover { filter: brightness(1.08); }
.art { container-type: size; grid-template: minmax(0,1fr) / minmax(0,1fr); position: absolute; z-index: -1; right: -5.8%; top: 0; bottom: 0; width: 68%; pointer-events: none; display: grid; place-items: center; }
.orbital-glow { position: absolute; inset: 8% 3% 8% 10%; background: radial-gradient(ellipse, color-mix(in srgb, var(--halo) 18%, transparent), transparent 69%); }
.core { min-width: 0; min-height: 0; position: relative; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); object-fit: contain; filter: var(--art-filter); mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent), linear-gradient(to bottom, transparent, black 10%, black 88%, transparent); mask-composite: intersect; }
.console { border-top: 1px solid var(--line); padding: 24px 0 39px; display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.work { display: flex; align-items: center; gap: 15px; }
.work-symbol { width: 45px; height: 45px; flex: none; position: relative; border: 1px solid #4f627b77; border-radius: 11px; background: linear-gradient(145deg,#26304466,#0b121c); }
.work-symbol i { position: absolute; width: 26px; height: 13px; border: 1px solid var(--accent); border-radius: 50%; left: 9px; top: 15px; transform: rotate(-40deg); }
.work-symbol i:nth-child(2) { transform: rotate(20deg); opacity: .65; }
.work-symbol i:nth-child(3) { transform: rotate(80deg); opacity: .5; }
.caption, .control-label { color: var(--muted); font-size: 12px; letter-spacing: .09em; }
.work h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: .06em; font-weight: 650; }
.spectrum, .choices { display: flex; align-items: center; }
.spectrum { gap: 17px; }
.choices { gap: 5px; }
.choices button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 20px; background: transparent; color: #b7c0d2; font-size: 13px; white-space: nowrap; }
.choices button:hover { background: #a8c5ee0c; }
.choices button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 37%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: #f2f5ff; }
.choices button i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #a7e9ff; }
.choices [data-tone="violet"] i { background: #c997fa; }
.choices [data-tone="gold"] i { background: #f3bd78; }
dialog { color: var(--ink); background: #101622; border: 1px solid #344154; }
dialog::backdrop { background: rgba(2,5,12,.83); backdrop-filter: blur(8px); }
.about-dialog { width: min(450px, calc(100% - 32px)); margin: auto; padding: 35px; border-radius: 18px; box-shadow: 0 20px 80px #0008; }
.about-dialog h2 { margin: 20px 0 12px; font-size: 28px; }
.about-dialog p { margin-top: 11px; color: #b7c1d3; line-height: 1.85; font-size: 15px; }
.close, .exit { background: #192232; color: #e6eefa; border: 1px solid #4d5e744d; border-radius: 8px; }
.close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; font-size: 23px; }
.viewer { width: min(1140px, calc(100% - 36px)); height: min(790px, 89dvh); max-width: none; max-height: none; margin: auto; padding: 0; border-radius: 13px; background: #090d16; overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.viewer-top, .viewer-tools { padding: 15px 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.viewer-top { border-bottom: 1px solid var(--line); }
.viewer-top h2 { font-size: 20px; }
.exit { display: inline-flex; align-items: center; gap: 15px; padding: 0 13px; min-height: 37px; font-size: 13px; }
.exit span { font-size: 21px; }
.visual-field { position: relative; overflow: hidden; cursor: grab; touch-action: none; outline-offset: -3px!important; background: #070b13; }
.visual-field:active { cursor: grabbing; }
.visual-field img { width: 100%; height: 100%; object-fit: contain; display: block; filter: var(--art-filter); transform: translate(var(--pan-x,0%), var(--pan-y,0%)) scale(var(--zoom,1.35)); user-select: none; pointer-events: none; }
.viewer-tools { border-top: 1px solid var(--line); font-size: 13px; color: #bcc5d6; }
.viewer-tools label { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.viewer-tools input { accent-color: var(--accent); width: min(22vw, 140px); }
@media (min-width: 751px) and (max-width: 950px) {
  .shell { width: 90%; }
  .hero { min-height: clamp(480px, 69svh, 650px); }
  h1 { font-size: clamp(48px, 6.3vw, 60px); }
  .art { width: 63%; right: -4%; }
}
@media (max-width: 750px) {
  .shell { width: calc(100% - 40px); max-width: 560px; }
  .top { min-height: 66px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  nav { gap: 18px; }
  nav a, nav button, nav summary { font-size: 12px; }
  .hero { min-height: auto; display: flex; flex-flow: column; align-items: stretch; }
  .intro { width: auto; max-width: none; padding: 43px 0 0; }
  .overline { font-size: 11px; margin-bottom: 17px; gap: 10px; }
  h1 { font-size: clamp(45px, 11.7vw, 66px); }
  .welcome { font-size: 14px; margin: 16px 0 19px; }
  .enter { min-height: 43px; padding: 0 15px; font-size: 13px; gap: 22px; }
  .art { position: relative; right: auto; inset-block: auto; align-self: center; width: min(100vw, calc(100% + 32px)); height: clamp(243px, 77vw, 360px); margin-top: -15px; }
  .console { padding: 20px 0 30px; gap: 16px; flex-wrap: wrap; }
  .work { gap: 10px; }
  .work-symbol { width: 38px; height: 38px; }
  .work-symbol i { left: 6px; top: 12px; }
  .work h2 { font-size: 16px; }
  .caption, .control-label { font-size: 11px; }
  .spectrum { gap: 8px; }
  .choices { gap: 0; }
  .choices button { min-height: 36px; padding: 0 8px; gap: 6px; font-size: 12px; }
  .viewer-top, .viewer-tools { padding: 12px; gap: 10px; }
  .viewer-tools { flex-wrap: wrap; font-size: 12px; }
  .viewer { width: calc(100% - 18px); height: 86dvh; }
}
@media (max-width: 550px) {
  .console { align-items: flex-start; flex-direction: column; }
  .spectrum { width: 100%; justify-content: space-between; }
  .choices button { padding: 0 12px; }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 30px); }
  nav { gap: 10px; }
  .intro { padding-top: 35px; }
  .choices button { padding: 0 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .core, .visual-field img { transition: filter .45s ease; }
  button, .work-symbol { transition: color .18s, background-color .18s, border-color .18s; }
}
.apps { position: relative; align-self: center; }
.apps summary { display: inline-flex; gap: 7px; min-height: 44px; align-items: center; cursor: pointer; list-style: none; }
.apps summary::-webkit-details-marker { display: none; }
.apps summary::after { content: ""; width: 5px; height: 5px; border: solid var(--accent); border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.apps[open] summary::after { transform: translateY(1px) rotate(225deg); }
.apps summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-links { position: absolute; z-index: 3; top: 100%; right: -16px; min-width: 138px; padding: 6px; border: 1px solid #344154; border-radius: 9px; background: #121925; box-shadow: 0 13px 32px #02050c77; }
.app-links a, .unavailable-app { display: flex; align-items: center; min-height: 43px; padding: 6px 12px; border-radius: 5px; color: var(--ink); white-space: nowrap; }
.unavailable-app { justify-content: space-between; gap: 12px; color: #b2bdcc; }
.unavailable-app small { font-size: .8rem; }
.app-links a:hover, .app-links a:focus-visible { background: #243043; }
@media (max-width: 430px) {
  nav { gap: 11px; }
  .apps summary { gap: 5px; }
}

