@layer reset, base, layout, parts, scene, responsive, motion;

@font-face { font-family: "Maoken"; src: url(/fonts/title.woff2?h=a521feff) format("woff2"); font-display: swap; }
@property --dial { syntax: "<length>"; inherits: true; initial-value: 148px; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ol, ul, dl, dd, figure, table { margin: 0; }
  ol, ul { padding: 0; list-style: none; }
  img, picture, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button { font: inherit; color: inherit; cursor: pointer; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --ink: #231a3a;
    --night: #1a1430;
    --dawn: #bfe5df;
    --dawn-2: #eaf7f4;
    --noon: #ffc35a;
    --dusk: #2c3a94;
    --deep: #2b1957;
    --red: #c93744;
    --red-d: #9d2834;
    --kraft: #e0a868;
    --cyan: #7fe8e2;
    --ease: cubic-bezier(.3, 1.25, .5, 1);
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    --maoken: "Maoken", "PingFang SC", "Microsoft YaHei", sans-serif;
    --bar: 56px;
    --pad: max(24px, 50% - 680px);
    color-scheme: light;
    scroll-padding-top: 84px;
  }
  html { background: var(--night); scroll-behavior: smooth; }
  body { font: 17px/1.8 var(--sans); color: var(--ink); background: var(--dawn-2); -webkit-font-smoothing: antialiased; text-wrap: pretty; overflow-x: clip; }
  .t { font-family: var(--maoken); font-weight: 400; }
  h1, h2, h3 { font-weight: 400; line-height: 1.15; }
  h2.t { font-size: clamp(42px, 5.2vw, 72px); letter-spacing: .01em; }
  h3.t { font-size: 26px; }
  a { color: inherit; }
  code { font: .92em/1.6 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
  :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
  .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .defs { position: absolute; }
  .skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 14px; background: var(--noon); }
  .skip:focus { left: 12px; }
}

@layer layout {
  .wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
  .sec { --sp: clamp(72px, 9vw, 132px); padding-block: var(--sp); }
  .sub { margin-top: 14px; max-width: 34em; }

  .hero { position: relative; container-type: size; height: max(760px, 100svh); overflow: clip; background: var(--dawn); isolation: isolate; }
  .scene { position: absolute; top: var(--bar); height: calc(100vh - var(--bar)); width: calc((100vh - var(--bar)) * 1.6744); left: calc(50vw - 200px - (100vh - var(--bar)) * .6116); max-width: none; overflow: visible;
    height: calc(100cqh - var(--bar)); width: calc((100cqh - var(--bar)) * 1.6744); left: calc(50cqw - 200px - (100cqh - var(--bar)) * .6116); }
  .phone { position: absolute; right: var(--pad); top: calc(50% + var(--bar) / 2); translate: 0 -50%; width: 356px; }

  .story { background: var(--dawn-2); }
  .story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px 80px; align-items: center; }
  .credit { grid-column: 1 / -1; }

  .play { background: var(--noon); overflow: clip; }
  .play-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .manual { display: grid; grid-template-columns: 1.12fr 1fr; gap: 72px; margin: 88px 0 calc(var(--sp) * -1); align-items: end; }
  .m-hud { padding-bottom: calc(var(--sp) * .8); }

  .shots { background: var(--dusk); color: #eef0ff; }
  .grid { display: grid; grid-template-columns: 1.6436fr 1fr; gap: 36px 28px; margin-top: 40px; align-items: start; }

  .setup { background: var(--deep); color: #ebe5ff; }
  .setup-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
  .setup-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; margin-top: 56px; align-items: start; }
  .setup > .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px 64px; align-items: start; }
  .setup-top, .setup-grid { grid-column: 1 / -1; margin: 0; }

  .faq { position: relative; min-height: 900px; padding: 96px var(--pad) 96px; overflow: clip; isolation: isolate; background: #31266a; color: #efeaff; }
  .faq .stage { position: absolute; inset: 0; z-index: -1; }
  .faq .scene { top: 40px; height: 860px; width: 1440px; left: max(-150px, 50% - 720px); }
  .faq h2 { position: absolute; left: max(24px, 50% - 600px); top: 100px; }
  .faq .phone { position: relative; right: auto; top: auto; translate: none; margin-left: auto; width: min(620px, 52%); }
}

@layer parts {
  /* 顶上黑边 + 左上角的圆盘、红条、钱: 跟游戏画面一个摆法 */
  .bar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; height: var(--bar); padding-inline: var(--pad); background: var(--night); color: #fff; }
  .brand { margin-left: calc(var(--dial) + 16px); font-size: 24px; text-decoration: none; white-space: nowrap; }
  .bar nav { display: flex; gap: 26px; margin-inline: auto 28px; font-size: 15px; }
  .bar nav a { text-decoration: none; color: #cfc8e6; padding-block: 6px; border-bottom: 3px solid transparent; }
  .bar nav a:hover { color: #fff; }
  .bar nav a[aria-current] { color: #fff; border-color: var(--red); }
  .pill { border: 0; padding: 8px 18px 7px; font-size: 17px; line-height: 1.2; color: #fff; background: var(--red); border-radius: 8px; }
  .pill:hover { background: #b92f3c; }
  .bar :focus-visible { outline-color: #fff; }
  .hud { position: absolute; left: var(--pad); top: 10px; width: var(--dial); height: var(--dial); pointer-events: none; }
  .hud-dial { position: relative; width: 100%; height: 100%; overflow: visible; }
  .ptr { transform-origin: 60px 60px; transform: rotate(-45deg); }
  .ptr-t { font: 700 11.500px var(--sans); fill: var(--ink); }
  .d-l { font: 800 10px var(--sans); letter-spacing: .06em; fill: #a49dc6; }
  .d-n { font: 800 16px var(--sans); fill: #fff; }
  .hud-bar { position: absolute; left: 60%; top: calc(var(--bar) - 4px); width: 380px; height: 38px; background: #5a5573; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--night); transition: top .4s, height .4s, width .4s, border-width .4s; }
  .hud-bar i { position: absolute; inset: 0; background: #c5434d; transform-origin: 0 50%; scale: var(--left, 1) 1; }
  .hud-bar b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 var(--sans); color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .35); }
  .hud-tab { position: absolute; left: 60%; top: calc(var(--bar) + 36px); display: flex; align-items: center; gap: 10px; width: 250px; height: 38px; padding-left: 60px; background: #3c3868; clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%); color: #fff; font: 800 18px/1 var(--sans); transition: opacity .25s; }
  .hud-tab svg { width: 24px; }
  html { --dial: 148px; transition: --dial .45s var(--ease); }
  html.past { --dial: 66px; }
  .past .hud-bar { top: calc(var(--bar) - 10px); height: 7px; border-width: 0; width: 100vw; box-shadow: none; }
  .past .hud-bar b, .past .hud-tab { opacity: 0; }

  /* 手机: 画面右下角那台 */
  .phone { padding: 12px; background: #17122b; border-radius: 40px; box-shadow: 0 0 0 3px #9a93cf, 0 0 0 7px #17122b, 22px 26px 0 4px rgb(31 102 114 / .36); }
  .screen { padding: 14px 18px 18px; border-radius: 28px; background: #fff; }
  .stat { display: flex; justify-content: space-between; padding: 0 6px; font-size: 13px; font-weight: 700; color: #6c6488; }
  .screen h1 { margin-top: 8px; }
  .screen h1 .t { display: block; font-size: 46px; line-height: 1.1; }
  .screen h1 small { font-size: 14px; color: #5c5478; line-height: 1.5; }
  .lead { margin-top: 8px; font-size: 16px; line-height: 1.7; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .facts div { padding: 8px 12px 9px; background: #e3f4f0; border-radius: 12px; line-height: 1.35; }
  .facts dt { font-size: 12px; color: #40706c; }
  .facts dd { font-weight: 700; font-size: 16px; }
  .facts small { display: block; font-weight: 400; font-size: 12px; color: #40706c; }
  .cta { display: grid; gap: 8px; margin-top: 14px; }
  .dl-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 15px 28px 13px; font-size: 25px; line-height: 1.2; color: #fff; background: var(--red); border-radius: 14px; box-shadow: inset 0 -5px 0 var(--red-d); text-decoration: none; }
  .dl-btn:hover { background: #b92f3c; }
  .dl-btn:active { box-shadow: inset 0 3px 0 var(--red-d); }
  .alt-btn { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); padding: 11px 24px 9px; font-size: 21px; line-height: 1.2; background: transparent; border-radius: 14px; }
  .alt-btn:hover { background: #f1eefc; }
  .apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 16px; }
  .apps a { display: grid; justify-items: center; gap: 4px; font-size: 13px; line-height: 1.3; text-decoration: none; }
  .apps svg, .m-phone svg { width: 46px; height: 46px; padding: 8px; border-radius: 12px; fill: #fff; background: var(--tile); }
  .apps a:hover svg { filter: brightness(1.1); }
  .k { fill: var(--tile); }
  .a1 { --tile: #8a5cc9; } .a2 { --tile: #d7d0ee; } .a3 { --tile: #3d8fe0; } .a4 { --tile: #bfe5df; } .a5 { --tile: #56657f; } .a6 { --tile: #2fa661; }
  .c1 { --tile: #2fa661; } .c2 { --tile: #8a5cc9; } .c3 { --tile: #3d8fe0; } .c4 { --tile: #1f95a3; } .c5 { --tile: #b98212; }

  /* 故事 */
  .big { margin-top: 22px; font-size: clamp(20px, 2vw, 25px); line-height: 1.75; max-width: 24em; }
  .rent { position: relative; display: flex; height: 52px; margin-top: 34px; max-width: 560px; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink); font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; }
  .rent b { display: grid; place-items: center; padding-inline: 16px; background: var(--ink); color: #fff; }
  .rent .paid { flex: 1.7; display: grid; place-items: center; color: #fff; background: #c23f4a; }
  .rent .gap { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); background: repeating-linear-gradient(-45deg, #ffe08f 0 10px, #ffd062 10px 20px); }
  .rent svg { width: 24px; height: 24px; fill: var(--ink); }
  .who { display: grid; gap: 6px; margin-top: 30px; }
  .who div, .credit div { display: grid; grid-template-columns: 4em 1fr; gap: 12px; }
  .who dt { color: #40706c; }
  .who dd { font-weight: 700; }
  .window { --fold: 14px; --cw: 84px; position: relative; padding: 34px 50px 22px; }
  .pane { position: relative; border: 14px solid #fff; background: #fff; box-shadow: 0 0 0 2px #a3d8cf; }
  .pane img { width: 100%; aspect-ratio: 1.24; object-fit: cover; object-position: 48% 50%; }
  .pane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#fff, #fff) 50% 0 / 10px 100% no-repeat, linear-gradient(#fff, #fff) 0 52% / 100% 10px no-repeat; }
  .pane::before { content: ""; position: absolute; left: -34px; right: -34px; bottom: -36px; height: 22px; background: linear-gradient(#fff 60%, #cfe6e4 0); box-shadow: 0 0 0 2px #a3d8cf; }
  .window::before { content: ""; position: absolute; z-index: 2; left: -14px; right: -14px; top: 4px; height: 12px; border-radius: 6px; background: linear-gradient(#a87740 50%, #8a5f30 0); }
  .window::after { content: ""; position: absolute; z-index: 1; inset: 10px 0 -8px; --cu: repeating-linear-gradient(90deg, #ffe1a0 0 var(--fold), #f7cf84 0 calc(var(--fold) * 2));
    background: var(--cu) 0 0 / var(--cw) 100% no-repeat, var(--cu) 100% 0 / var(--cw) 100% no-repeat;
    mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--fold)) no-repeat, radial-gradient(circle at 50% 0, #000 calc(var(--fold) - .5px), transparent var(--fold)) 0 100% / calc(var(--fold) * 2) var(--fold) repeat-x; }
  .credit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 40px; padding-top: 28px; border-top: 3px solid #bfe5df; font-size: 15px; }
  .credit div { grid-template-columns: 6em 1fr; }
  .credit dt { color: #40706c; }

  /* 玩法 */
  .clock { position: relative; container-type: inline-size; }
  .disc { width: 100%; height: auto; overflow: visible; }
  .r1 { fill: var(--ink); } .r2 { fill: #fff; } .r3 { stroke: var(--ink); stroke-width: 10; } .r4 { fill: none; stroke: var(--ink); stroke-width: 8; }
  .hub { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: #fff; font: 800 5cqw/1 var(--sans); }
  .hub span { font-size: 2.9cqw; letter-spacing: .06em; color: #b9b2d6; margin-bottom: .9cqw; }
  .slots li { position: absolute; white-space: nowrap; padding: .18em .62em .12em; font-size: clamp(20px, 4.6cqw, 30px); line-height: 1.2; background: var(--cyan); border: 4px solid #fff; border-radius: 10px; box-shadow: 0 0 0 4px var(--ink); translate: -50% -50%; }
  .slots li:nth-child(1) { left: 86%; top: 15%; }
  .slots li:nth-child(2) { left: 86%; top: 85%; }
  .slots li:nth-child(3) { left: 14%; top: 85%; }
  .slots li:nth-child(4) { left: 14%; top: 15%; }
  .acts-col > p { margin-top: 20px; max-width: 26em; }
  .acts { margin-top: 28px; border-top: 3px solid var(--ink); }
  .acts div { display: grid; grid-template-columns: 5em 1fr; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 3px solid var(--ink); }
  .acts dt { font-size: 24px; line-height: 1.3; }
  .m-hud img { width: 100%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink); }
  .manual figcaption { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; margin-top: 18px; }
  .manual figcaption b { font-size: 24px; line-height: 1.3; white-space: nowrap; }
  .m-phone { display: grid; grid-template-columns: 1fr 316px; gap: 32px; align-items: center; }
  .m-phone ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 12px; order: 2; padding: 34px 24px 40px; background: #43307f; color: #fff; border: 12px solid #17122b; border-bottom: 0; border-radius: 46px 46px 0 0; box-shadow: 0 0 0 3px #9a93cf, 0 0 0 7px #17122b; }
  .m-phone li { display: grid; justify-items: center; gap: 7px; font-size: 14px; line-height: 1.4; }
  .m-phone svg { width: 66px; height: 66px; padding: 12px; border-radius: 16px; }
  .m-phone figcaption { grid-template-columns: 1fr; gap: 4px; margin: 0; }

  /* 画面 */
  .shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
  .shot img { width: 100%; border: 5px solid #fff; box-shadow: 0 0 0 3px #12194e; }
  .shot .cap { display: block; margin-top: 12px; font-weight: 700; font-size: 16px; line-height: 1.5; }
  .shot:hover img { border-color: var(--cyan); }
  .g-b img { aspect-ratio: 1; object-fit: cover; object-position: 50% 0; }
  .g-d { align-self: center; justify-self: center; text-align: center; }
  .lanterns { position: relative; display: flex; justify-content: center; gap: 26px; padding: 40px 30px 0; }
  .lanterns::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: #5b3a35; box-shadow: inset 0 -5px 0 #452a28; }
  .lanterns li { position: relative; display: grid; place-items: center; width: 84px; height: 178px; padding: 14px 0; font-size: 30px; line-height: 1; letter-spacing: .06em; writing-mode: vertical-rl; color: #7a1f16; background: repeating-linear-gradient(#ffd37a 0 15px, #f5b552 15px 18px); border-radius: 40px / 46px; box-shadow: 0 0 0 10px rgb(255 211 122 / .16), 0 0 0 24px rgb(255 211 122 / .08); }
  .lanterns li::before { content: ""; position: absolute; left: 50%; top: -30px; width: 4px; height: 24px; translate: -50% 0; background: #12194e; }
  .lanterns li::after { content: ""; position: absolute; inset: -7px 20px; background: linear-gradient(#2a1a2c 0 11px, transparent 11px calc(100% - 11px), #2a1a2c 0); }
  .g-d p { margin-top: 30px; font-weight: 700; }
  .shots :focus-visible { outline-color: var(--cyan); }

  /* 安装 */
  .crates { display: flex; align-items: end; gap: 12px 40px; }
  .crates figure { display: grid; justify-items: center; }
  .crate { height: auto; }
  .one { width: 128px; } .many { width: 252px; }
  .crates figcaption { display: grid; justify-items: center; margin-top: 8px; font-size: 15px; line-height: 1.4; color: #c9bdf0; }
  .crates figcaption b { font: 800 26px/1.3 var(--sans); color: #fff; }
  .how h3:not(:first-child) { margin-top: 40px; }
  .how > p { margin-top: 12px; }
  .steps { counter-reset: s; display: grid; gap: 18px; margin-top: 20px; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
  .steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; padding-top: 3px; font: 25px/1 var(--maoken); color: var(--ink); background: linear-gradient(90deg, transparent 42%, #d8485a 42% 58%, transparent 58%) 0 0 / 100% 9px no-repeat, var(--kraft); }
  .path { padding: 12px 16px; background: #1c0f3f; border-left: 6px solid var(--cyan); }
  .setting { padding-top: 6px; }
  .panel { padding: 22px 26px 26px; color: var(--ink); background: #e7e2fa; border: 5px solid #17122b; box-shadow: 0 0 0 3px #9a93cf; border-radius: 18px; }
  .panel-h { font-size: 30px; text-align: center; }
  .row { display: grid; grid-template-columns: 6.2em 1fr; align-items: center; gap: 14px; margin-top: 14px; min-height: 54px; }
  .row.dim { color: #5d5580; }
  .row i:not(.ar) { display: block; height: 14px; border-radius: 7px; background: #c8bfeb; }
  .row .w1 { width: 62%; } .row .w2 { background: linear-gradient(90deg, #8d7fc4 70%, #c8bfeb 70%) !important; }
  .row.lang { padding: 10px 12px; margin-inline: -12px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 4px #f6bd45; font-weight: 700; }
  .pick { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; }
  .pick output { font-size: 19px; }
  .ar { display: block; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 10px; background: var(--red); position: relative; }
  .ar::after { content: ""; position: absolute; inset: 12px 14px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .ar.l { background: #c8bfeb; rotate: 180deg; }
  button.ar:hover { background: #b92f3c; }
  .setting figcaption { margin-top: 18px; font-size: 15px; color: #c9bdf0; }
  .setup :focus-visible, .faq :focus-visible { outline-color: var(--cyan); }

  /* 面单 */
  .label { padding: 22px 28px 26px; color: var(--ink); background: #fff; border-top: 26px solid var(--red); border-radius: 6px; }
  .label-h { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
  .bars { height: 44px; width: min(56%, 280px); fill: var(--ink); }
  .label h3 { font-size: 34px; }
  .label dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 2px dashed #cfc8e6; font-size: 16px; line-height: 1.6; }
  .label dt { color: #5c5478; }
  .label dd { font-weight: 700; overflow-wrap: anywhere; }
  .label code { font-weight: 500; }
  .label .second { margin-top: 28px; border-top: 3px solid var(--ink); }
  .file-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
  .label .dl-btn { font-size: 22px; padding: 13px 26px 11px; }
  .plain { border: 2px solid var(--ink); padding: 11px 20px; border-radius: 14px; background: #fff; font-size: 16px; line-height: 1.4; }
  .plain:hover { background: #f1eefc; }
  .fine { margin-top: 14px; font-size: 14px; color: #5c5478; }
  .req table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
  .req caption { caption-side: bottom; padding-top: 14px; text-align: left; font-size: 14px; color: #c9bdf0; }
  .req th, .req td { padding: 12px 14px 12px 0; text-align: left; border-bottom: 2px solid #55408c; vertical-align: top; }
  .req thead th { color: #fff; font-weight: 700; }
  .req tbody th { color: #c9bdf0; font-weight: 400; white-space: nowrap; }

  /* 问答: 手机里的消息 */
  .chat { box-shadow: 0 0 0 3px #9a93cf, 0 0 0 7px #17122b, 22px 26px 0 4px rgb(13 5 36 / .5); }
  .chat .screen { background: #efeafc; padding: 16px 22px 26px; }
  .qa { display: grid; gap: 12px; }
  .qa summary { display: flex; justify-content: flex-end; cursor: pointer; list-style: none; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary span { position: relative; max-width: 88%; padding: 13px 20px; font-weight: 700; line-height: 1.6; color: var(--ink); background: var(--cyan); border-radius: 18px 18px 4px 18px; }
  .qa summary:hover span { background: #a4f1ec; }
  .qa details p { width: fit-content; max-width: 92%; margin-top: 12px; padding: 13px 18px; font-size: 16px; line-height: 1.75; color: var(--ink); background: #fff; border-radius: 18px 18px 18px 4px; }
  .qa details[open] { padding-bottom: 8px; }

  /* 页脚 */
  .foot { padding: 56px 0 72px; background: var(--night); color: #cfc8e6; font-size: 15px; }
  .foot-title { font-size: 40px; line-height: 1.2; color: #fff; margin-bottom: 8px; }
  .links { display: flex; gap: 24px; margin-top: 8px; }

  /* 弹窗 */
  dialog { border: 0; padding: 0; color: var(--ink); }
  dialog::backdrop { background: rgb(20 14 40 / .78); }
  .lb::backdrop { background: rgb(20 14 40 / .9); }
  .x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: #e7e2fa; }
  .x::before, .x::after { content: ""; position: absolute; inset: 19px 11px; background: var(--ink); rotate: 45deg; }
  .x::after { rotate: -45deg; }
  .dlg { width: min(440px, 100% - 32px); padding: 30px 28px 28px; background: #fff; border-top: 26px solid var(--red); border-radius: 8px; text-align: center; }
  .dlg h2 { font-size: 40px; }
  .dlg-file { margin: 8px 0 18px; font-size: 14px; line-height: 1.6; color: #5c5478; overflow-wrap: anywhere; }
  #ts-box { min-height: 70px; display: grid; place-items: center; }
  #dl-status { margin-top: 14px; font-size: 16px; line-height: 1.6; }
  #dl-link { margin-top: 16px; font-size: 22px; }
  .lb { width: min(1280px, 100% - 24px); max-width: none; max-height: none; background: transparent; overflow: visible; color: #fff; }
  .lb picture { display: grid; justify-items: center; }
  .lb img { max-height: calc(100svh - 150px); width: auto; border: 5px solid #fff; background: var(--night); }
  .lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 14px; }
  .lb-nav { display: flex; align-items: center; gap: 16px; }
  .lb-nav button { position: relative; width: 48px; height: 44px; border: 0; border-radius: 10px; background: var(--red); }
  .lb-nav button::after { content: ""; position: absolute; inset: 13px 17px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .lb-nav button:first-child { rotate: 180deg; }
  .lb .x { top: -52px; right: 0; }

  /* 隐私 / 条款 / 404 */
  .doc-page { display: flow-root; background: var(--dawn); min-height: 100svh; }
  .doc { max-width: 760px; margin-block: 56px; padding: 40px 48px 48px; background: #fff; border-top: 26px solid var(--red); border-radius: 6px; }
  .doc h1 { font-size: 48px; margin: 14px 0 22px; }
  .doc h2 { font-size: 20px; font-weight: 700; margin: 30px 0 6px; }
  .doc p { margin-top: 10px; }
  .doc .dl-btn { margin-top: 16px; font-family: var(--maoken); font-size: 24px; }
  .doc .date { margin-top: 34px; font-size: 14px; color: #5c5478; }
  .back { color: #40706c; }
}

/* 插画的颜色: art.py 写, 早上一套 (:root)、午夜一套 (.night) */
@layer scene {
  /*scene*/
  :root{--wl:#bfe5df;--wr:#d8f2ed;--fl:#8fd0c6;--fl2:#84c7bd;--seam:#67afa4;--bsl:#7cbdb3;--bsr:#a0d7cd;--cor:#a3d5cc;--wsh:#7cbdb3;--wf:#ffffff;--sky:#93ddf2;--orb:#fff3b8;--cld:#ffffff;--far:#5fb3c4;--far2:#3f9a95;--sill:#cfe6e4;--cu1:#ffe1a0;--cu2:#f7cf84;--rod:#8a5f30;--sun:#dcf8e9;--sw:#b8c6d6;--kb:#c98f52;--kb2:#9c6a36;--hk:#f6d27a;--rg:#f5f8fc;--ky:#f0b942;--k1:#d43d4a;--k2:#f0913a;--k3:#4a5fd0;--k4:#5b2da6;--stk:#d9a05c;--brh:#f3cf6b;--brb:#d43d4a;--brl:#c99a3c;--bk:#4f7fd6;--bk2:#3b63b4;--bk3:#2f5199;--wat:#9fe0f2;--hdl:#f5f8fc;--shw:#1f6672;--pt:#ffffff;--pt2:#cfe0ea;--pt3:#eef6fa;--soil:#5b3818;--g1:#2f9a6b;--g2:#48b981;--g3:#217a58}
  .night{--wl:#382d6c;--wr:#3c2f71;--fl:#2f2a65;--fl2:#2c2863;--seam:#27255b;--bsl:#2b2760;--bsr:#322b67;--cor:#322a67;--wsh:#2b2760;--wf:#443176;--sky:#170b3d;--orb:#fff3c9;--cld:#33236f;--far:#100628;--far2:#0b041d;--sill:#3b2d6e;--cu1:#442c5a;--cu2:#422952;--rod:#2e183a;--sun:#4a3a92;--sw:#36286a;--kb:#3a2043;--kb2:#311a3b;--hk:#422a4f;--rg:#423075;--ky:#41263f;--k1:#3c1341;--k2:#41203c;--k3:#211868;--k4:#25115c;--stk:#3d2246;--brh:#42294b;--brb:#3c1341;--brl:#3a213d;--bk:#221d6a;--bk2:#1f1960;--bk3:#1c1658;--wat:#5b62b8;--hdl:#423075;--shw:#0d0524;--pt:#443176;--pt2:#3b2c70;--pt3:#412f74;--soil:#251333;--g1:#1c214b;--g2:#212651;--g3:#1a1d45}
  .wl{fill:var(--wl)}.wr{fill:var(--wr)}.fl{fill:var(--fl)}.fl2{fill:var(--fl2)}.seam{fill:none;stroke:var(--seam);stroke-width:1.6}.bsl{fill:var(--bsl)}.bsr{fill:var(--bsr)}.cor{fill:none;stroke:var(--cor);stroke-width:2}.wsh{fill:var(--wsh)}.wf{fill:var(--wf)}.sky{fill:var(--sky)}.orb{fill:var(--orb)}.cld{fill:var(--cld)}.far{fill:var(--far)}.far2{fill:var(--far2)}.sill{fill:var(--sill)}.cu1{fill:var(--cu1)}.cu2{fill:var(--cu2)}.rod{fill:var(--rod)}.sun{fill:var(--sun)}.sw{fill:var(--sw)}.kb{fill:var(--kb)}.kb2{fill:var(--kb2)}.hk{fill:var(--hk)}.rg{fill:none;stroke:var(--rg);stroke-width:3}.ky{fill:var(--ky)}.k1{fill:var(--k1)}.k2{fill:var(--k2)}.k3{fill:var(--k3)}.k4{fill:var(--k4)}.stk{fill:none;stroke:var(--stk);stroke-width:8}.brh{fill:var(--brh)}.brb{fill:var(--brb)}.brl{fill:none;stroke:var(--brl);stroke-width:2}.bk{fill:var(--bk)}.bk2{fill:var(--bk2)}.bk3{fill:var(--bk3)}.wat{fill:var(--wat)}.hdl{fill:none;stroke:var(--hdl);stroke-width:4}.shw{fill:var(--shw)}.pt{fill:var(--pt)}.pt2{fill:var(--pt2)}.pt3{fill:var(--pt3)}.soil{fill:var(--soil)}.g1{fill:var(--g1)}.g2{fill:var(--g2)}.g3{fill:var(--g3)}
  .bl{fill:#b07a42}.br{fill:#e0a868}.bt{fill:#f1cd95}.bi{fill:#3f2610}.bi2{fill:#8d6233}.bi3{fill:#6d4823}.rd{fill:#d43d4a}.rd2{fill:#f5f0e6}.f1{fill:#d9a766}.f2{fill:#c9955a}.f3{fill:#c18a4c}.f4{fill:#f4d49f}.tp{fill:#d8485a}.tp2{fill:#a93242}.hole{fill:#5f3c1c}.gl{fill:#231a3a}.st{fill:#cb3441}.sg{fill:#ffffff}.pr{fill:#7d5328}.tu{fill:#7c8fe0}.tu2{fill:#dfe9ff}.lms{fill:#f6b93c}.lm2{fill:#fff0c2}.pan{fill:#2e2547}.bo{fill:#4a5fd0}.bo2{fill:#e9eef5}.tr{fill:#a93242}.trt{fill:#d8485a}.sm{fill:none;stroke:#c99b5d;stroke-width:2}.hi{fill:none;stroke:#fbe3b8;stroke-width:2}.hi2{fill:none;stroke:#efc187;stroke-width:2}.lmp{fill:none;stroke:#231a3a;stroke-width:6}.kss{fill:none;stroke:#8a5f30;stroke-width:5}.rg2{fill:none;stroke:#8d96ad;stroke-width:5}
  /*end*/
  .wsh { opacity: .35; } .shw { opacity: .36; } .night .shw { opacity: .5; } .kss { opacity: .4; } .ao { fill: #4a2a1a; opacity: .12; } .stk, .lmp { stroke-linecap: round; }
  .crate .hi, .crate .hi2 { stroke-width: 1.2; }
  .crate .shw { fill: #12062e; opacity: .5; }
  .glow { mix-blend-mode: screen; }
  .n-rug { fill: #4a2058; } .n-rl { fill: none; stroke: #6d3a86; stroke-width: 5; }
  .n-kb { fill: #8a5a6a; } .n-kb2 { fill: #74485f; } .n-gl { fill: #1a0f38; }
  .n-wd.l { fill: #3b2352; } .n-wd.r { fill: #54336a; } .n-wd.u { fill: #6a4480; } .n-in { fill: #2a1742; }
  .n-dk.l { fill: #160c30; } .n-dk.r { fill: #1e1240; } .n-dk.u { fill: #2b1c57; }
  .n-tv { fill: #9fe8ff; } .n-tv2 { fill: #d8f7ff; }
  .n-rd.l { fill: #64244c; } .n-rd.r { fill: #7d2f5a; } .n-rd.u { fill: #93406d; }
  .n-cs.l { fill: #40509f; } .n-cs.r { fill: #4d5fb5; } .n-cs.u { fill: #6276cc; }
  .n-ph { fill: #0f0726; } .n-ph2 { fill: #b9f3ff; }
}

@layer responsive {
  @media (max-width: 1080px) {
    .bar nav { gap: 18px; margin-right: 18px; }
    .play-grid, .manual { gap: 48px; }
  }
  @media (max-width: 900px) {
    :root { --pad: 18px; --bar: 52px; scroll-padding-top: 74px; }
    html { --dial: 92px; }
    html.past { --dial: 56px; }
    .bar nav { display: none; }
    .pill { margin-left: auto; font-size: 16px; padding: 8px 14px 7px; }
    .brand { font-size: 22px; margin-left: calc(var(--dial) + 10px); }
    .hud { top: 8px; }
    .hud-bar { width: 176px; height: 25px; border-width: 3px; top: calc(var(--bar) - 8px); }
    .hud-bar b, .hud-tab { font-size: 13px; }
    .hud-tab { top: calc(var(--bar) + 17px); width: 130px; height: 24px; padding-left: 36px; gap: 6px; clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); }
    .hud-tab svg { width: 16px; }
    .past .hud-bar { top: calc(var(--bar) - 8px); width: 100vw; height: 6px; border-width: 0; }

    .hero { container-type: inline-size; height: auto; --sw: min(180cqw, 1040px, 84svh); }
    .hero .stage { position: relative; height: calc(var(--bar) + 8px + var(--sw) * .493); overflow: clip; }
    .hero .scene { width: var(--sw); height: calc(var(--sw) * .5973); left: calc(50cqw - var(--sw) * .3653); top: calc(var(--bar) + 8px - var(--sw) * .066); }
    .faq { min-height: 0; padding: 0; }
    .faq .stage { position: relative; height: 400px; }
    .faq .scene { width: 860px; height: 514px; left: max(-50px, 50% - 420px); top: -10px; }
    .faq h2 { left: 20px; top: 48px; }
    .faq .phone { width: auto; margin: -30px 0 0; }
    .phone { position: relative; right: auto; top: auto; translate: none; width: auto; margin: -10px 0 0; padding: 6px 6px 0; border-radius: 30px 30px 0 0; box-shadow: 0 -3px 0 #9a93cf; }
    .screen { padding: 14px 16px 22px; border-radius: 24px 24px 0 0; }
    .stat { display: none; }
    .screen h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
    .screen h1 .t { font-size: 36px; }
    .screen h1 small { font-size: 13px; }
    .lead { margin-top: 4px; font-size: 15px; line-height: 1.65; }
    .facts { margin-top: 10px; grid-template-columns: 1fr 1fr; }
    .facts div { padding: 6px 12px 7px; }
    .facts dd { font-size: 15px; }
    .cta { margin-top: 12px; }
    .dl-btn { padding: 14px 20px 12px; font-size: 23px; }

    .wrap { width: calc(100% - 40px); }
    .story-grid, .play-grid, .manual, .setup > .wrap, .setup-top, .setup-grid { grid-template-columns: minmax(0, 1fr); }
    .setup > .wrap { gap: 56px; }
    .setup-grid { gap: 56px; }
    .credit { grid-template-columns: 1fr; }
    .window { max-width: 620px; }
    .clock { max-width: 620px; width: 100%; margin-inline: auto; }
    .manual { gap: 48px; margin: 64px 0 0; }
    .m-hud { padding-bottom: 0; }
    .m-phone { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .m-phone ul { order: 0; grid-template-columns: repeat(5, 1fr); padding: 24px 14px 18px; border: 8px solid #17122b; border-radius: 28px; }
    .m-phone figcaption { grid-template-columns: auto 1fr; gap: 18px; }
    .grid { grid-template-columns: minmax(0, 1fr); }
    .crates { justify-content: center; gap: 20px; }
  }
  @media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 36px); }
    .story-grid { gap: 48px; }
    .rent { height: 48px; font-size: 14px; }
    .rent b { padding-inline: 11px; }
    .rent .gap { gap: 4px; }
    .rent svg { width: 20px; height: 20px; }
    .window { --fold: 11px; --cw: 66px; padding: 30px 38px 20px; }
    .pane { border-width: 10px; }
    .pane::before { left: -26px; right: -26px; bottom: -30px; height: 20px; }
    .pane::after { background-size: 8px 100%, 100% 8px; }
    .acts div { grid-template-columns: 4.9em 1fr; gap: 10px; }
    .acts dt { font-size: 22px; }
    .manual figcaption { gap: 14px; }
    .m-phone ul { padding: 20px 8px 14px; gap: 4px; }
    .m-phone svg { width: 48px; height: 48px; padding: 9px; border-radius: 12px; }
    .m-phone li { font-size: 13px; }
    .lanterns { gap: 16px; padding-inline: 14px; }
    .lanterns li { width: clamp(68px, 22vw, 84px); }
    .one { width: 88px; } .many { width: 176px; }
    .crates figcaption b { font-size: 22px; }
    .panel { padding: 18px 18px 20px; }
    .row { grid-template-columns: 5em 1fr; gap: 10px; }
    .row.lang { margin-inline: -8px; padding: 8px 10px; }
    .pick output { font-size: 17px; }
    .label { padding: 18px 18px 22px; }
    .label dl div { grid-template-columns: 4.6em 1fr; gap: 8px; font-size: 15px; }
    .file-act > * { flex: 1 1 auto; }
    .doc { padding: 28px 22px 34px; margin-block: 0; border-radius: 0; width: 100%; min-height: 100svh; }
    .doc h1 { font-size: 38px; }
  }
  @supports not (width: 1cqw) {
    @media (max-width: 900px) { .hero { --sw: min(180vw, 1040px); } .hero .scene { left: calc(50vw - var(--sw) * .3653); } }
  }
  @media (max-width: 350px) {
    html:not(.past) { --dial: 76px; }
    .brand { font-size: 19px; }
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .scene .bx { animation: land .62s var(--d, 0s) both; }
    .scene .shw { animation: fade .5s .35s both; }
    .b6 { --d: .05s; } .b5 { --d: .16s; } .b4 { --d: .27s; } .b3 { --d: .46s; } .b2 { --d: .58s; } .b1 { --d: .7s; } .b7 { --d: .9s; }
    @keyframes land { from { transform: translateY(-900px); animation-timing-function: cubic-bezier(.5, 0, .9, .7); } 62% { transform: none; animation-timing-function: cubic-bezier(.2, .6, .4, 1); } 78% { transform: translateY(-13px); animation-timing-function: cubic-bezier(.6, 0, .8, .4); } to { transform: none; } }
    @keyframes fade { from { opacity: 0; } }
    .qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .28s, content-visibility .28s allow-discrete; }
    .qa details[open]::details-content { block-size: auto; }
    :root { interpolate-size: allow-keywords; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; transition: none; }
    .hud-bar, .hud-tab { transition: none; }
  }
}
