:root { color-scheme:dark; font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; background:#100d18; color:#EDE6F2; }
* { box-sizing:border-box; }
body { margin:0; }
button { font:inherit; cursor:pointer; }
button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
#app { max-width:500px; min-height:100dvh; margin:auto; padding:0 12px calc(16px + env(safe-area-inset-bottom)); background:#181324; isolation:isolate; }
.page-background { position:fixed; z-index:-1; inset:0; margin-inline:auto; width:min(100%,500px); height:100dvh; object-fit:cover; object-position:center top; opacity:.65; pointer-events:none; }
.masthead {
  position:sticky; top:0; z-index:4;
  /* Static translucent gradient: no per-frame backdrop blur. */
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:0 -12px; padding:calc(9px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 9px max(12px,env(safe-area-inset-left));
  background:linear-gradient(to bottom,#322442f5,#181324e8);
}
.brand { --brand-height:40px; display:flex; align-items:center; gap:3px; min-width:0; }
.logo { display:grid; place-items:center; width:var(--brand-height); height:var(--brand-height); object-fit:cover; border-radius:10px; flex:none; color:#EDE6F2; background:linear-gradient(145deg,#4a375e,#241B33); border:1px solid #b993db80; font-weight:900; }
.brand-words { min-width:0; display:grid; gap:2px; }
.brand-words strong { font-size:16px; }
.brand-words span { font-size:12px; color:#B7A8D9; }
.brand-words > * { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brand-title-image { display:block; width:auto; height:var(--brand-height); max-width:min(100%,220px); object-fit:contain; object-position:left center; }
.download-button {
  flex:none; min-height:44px; max-width:42%; padding:7px 12px; border:1px solid #d2a7f0a8;
  border-radius:999px; background:var(--accent); color:#181324; font-size:14px; font-weight:800;
  overflow-wrap:anywhere;
}
.download-button-image {
  display:grid; place-items:center; width:min(110px,42%); padding:0; border:0; background:transparent;
}
.download-button-image img { display:block; width:100%; height:40px; object-fit:contain; }
.hero { position:relative; overflow:hidden; isolation:isolate; margin:0 -12px 5px; }
.hero:not(:has(> img)) { aspect-ratio:1; display:flex; align-items:flex-end; background:linear-gradient(115deg,#241B33,#514060); }
.hero > img {
  display:block; width:100%; height:auto; aspect-ratio:auto 2 / 3;
  mask-image:linear-gradient(to bottom,transparent,#000 2%,#000 94%,transparent);
}
.masthead-startup { min-height:calc(62px + env(safe-area-inset-top)); }

.hero > .hero-sample { aspect-ratio:1; object-fit:cover; object-position:54% 34%; }
.hero-copy { padding:16px; max-width:94%; }
.hero:has(> img) > .hero-copy { position:absolute; inset:auto auto 0 0; }
.hero:has(> img):has(.hero-copy)::before {
  content:""; position:absolute; inset:auto 0 0; height:min(135px,45%);
  background:linear-gradient(to bottom,transparent,#110b1b9c); pointer-events:none;
}
.hero h1 { font-size:clamp(24px,7vw,34px); margin:0 0 4px; line-height:1.12; }
.hero p { font-size:13px; margin:0 0 8px; color:#EDE6F2; }
.hero-button { color:#EDE6F2; background:#241B33d9; border:1px solid #d4b1ed66; padding:5px 11px; border-radius:20px; font-size:13px; }
.hero-frames { position:absolute; z-index:1; inset:0; container-type:size; pointer-events:none; }
.hero-frame {
  position:absolute; display:grid; place-items:center; transform:translateY(-50%);
  width:min(clamp(30px,12cqw,55px),10.5cqh); aspect-ratio:817 / 1922;
  background:url("assets/hero-frame.webp") center / contain no-repeat;
}
.hero-frame::before {
  content:""; position:absolute; inset:9% 21%; border-radius:999px;
  background:linear-gradient(145deg,#f6dbff38,#6d3a9030);
  
}
.hero-frame-leftTop { top:15%; }
.hero-frame-leftBottom { top:44%; }
.hero-frame-rightTop { top:28%; }
.hero-frame-rightBottom { top:60%; }
.hero-frame-leftExtra { top:73%; }
.hero-frame-leftTop,.hero-frame-leftBottom,.hero-frame-leftExtra { left:2%; }
.hero-frame-rightTop,.hero-frame-rightBottom { right:2%; }
.hero-frame span {
  position:relative; writing-mode:vertical-rl; text-orientation:upright; white-space:nowrap; overflow:hidden; max-height:80%; padding:2px;
  color:#fff3b8; font-size:clamp(7px,min(3cqw,2.05cqh),15px); line-height:1.1;
  font-weight:900; -webkit-text-stroke:1.15px #350d39; paint-order:stroke fill;
  text-shadow:0 1px #e9a847,0 2px #5b1a5d,0 3px 3px #210b30;
}
.hero-frame-with-image { background:none; }
.hero-frame-with-image::before { content:none; }
.hero-frame-image { display:block; width:100%; height:100%; object-fit:contain; }
.tabs {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px;
  width:min(100%,365px); padding:3px; border:1px solid #bc59f690; border-radius:999px; margin:0 auto 12px;
  box-shadow:0 0 7px #ac41f758,inset 0 0 7px #ac41f73b; scroll-margin-top:calc(70px + env(safe-area-inset-top));
}
.tab {
  position:relative; display:flex; align-items:center; justify-content:center;
  gap:clamp(3px,1vw,6px); min-width:0; min-height:44px; padding:5px 6px;
  border:1px solid #b86df3; border-radius:999px;
  background:linear-gradient(135deg,transparent 44%,#fde2ff26 45%,#fde2ff11 62%,transparent 63%),
             linear-gradient(180deg,#8d4bbb 0%,#522080 48%,#32105d 75%,#6f2fa1 100%);
  box-shadow:inset 0 1px 2px #f5c8ffb0,0 2px 4px #080012b3;
  color:#fff0bc; font-size:clamp(11px,3.1vw,14px); font-weight:800; line-height:1.15;
  text-shadow:0 1px 2px #210827,0 0 2px #210827;
}
.tab::before {
  content:""; position:absolute; top:4px; left:10%; width:12%; height:3px;
  border-radius:50%; background:#fff1ff; box-shadow:0 0 5px #f9c5ff;
  pointer-events:none;
}
.tab-mark {
  flex:none; padding-right:clamp(3px,1vw,6px); border-right:1px solid #f0ceffa0;
  color:#fff1ff; font-weight:900; text-shadow:0 0 5px #ff9cf3,0 1px 1px #6a0c7d;
}
.tab:first-child .tab-mark { font-style:italic; }
.tab-label { min-width:0; overflow-wrap:anywhere; }
.tab[aria-pressed="true"] {
  border-color:#ffe9ff;
  background:linear-gradient(135deg,transparent 40%,#fff2ff45 41%,#ffe1ff19 63%,transparent 64%),
             linear-gradient(180deg,#ce57ff,#8d20d5 51%,#b019d8 76%,#fa59ef);
  box-shadow:inset 0 0 4px #fff3ffcf,0 0 7px #f488ff,0 0 10px #b31defa6;
}
.tab-with-art,.tab-with-art[aria-pressed="true"] { padding:0; border:0; background:transparent; box-shadow:none; }
.tab-with-art::before { content:none; }
.tab-art {
  display:block; width:100%; aspect-ratio:2.9; border-radius:999px;
  background-image:url("assets/navigation-art.webp"); background-repeat:no-repeat;
  filter:brightness(.84) saturate(.9);
}
.tab:nth-child(1) .tab-art { background-size:306.6% 296.5%; background-position:5.1% 50.9%; }
.tab:nth-child(2) .tab-art { background-size:337.4% 307.2%; background-position:52.4% 50.7%; }
.tab:nth-child(3) .tab-art { background-size:339.1% 307.2%; background-position:95.6% 50.7%; }
.tab[aria-pressed="true"] .tab-art { filter:brightness(1.16); box-shadow:0 0 6px #ed61ff,0 0 10px #9a36ee; }
.tab:focus-visible { z-index:1; outline-color:#fff0bc; }
.category-panel { overflow:hidden; border-radius:9px; }
.category-panel img { display:block; width:100%; height:auto; }
.empty { padding:15px; color:#B7A8D9; }
.shortcuts { position:fixed; right:max(4px,calc((100% - 500px)/2 + 4px)); top:52%; transform:translateY(-50%); z-index:3; display:grid; justify-items:end; gap:4px; }
.shortcut { display:grid; justify-items:center; align-content:center; gap:2px; min-width:44px; min-height:44px; color:#EDE6F2; background:#241B33ee; border:1px solid #b493db65; border-radius:9px; padding:4px; font-size:12px; }
.shortcut-mark { color:#B7A8D9; font-weight:800; font-size:16px; }
.shortcut-image { padding:0; border:0; background:transparent; }
.shortcut-image img { display:block; max-width:76px; max-height:44px; object-fit:contain; }
.toast { position:fixed; z-index:5; bottom:calc(14px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); background:#382748; margin:0; border-radius:8px; padding:8px 12px; font-size:13px; width:max-content; max-width:90vw; }

.business-dock { display:flex; align-items:center; gap:4px; margin-right:-4px; }
.business-dock .shortcut[hidden] { display:none; }
.business-handle {
  display:grid; place-items:center; flex:none; width:25px; min-height:44px; padding:0;
  border:1px solid #b493db80; border-right:0; border-radius:10px 0 0 10px;
  background:#241B33ee; color:#f4d9ff; font-size:24px; line-height:1;
}
