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

/* 标题字: 俐方体 11 号 (OFL), 点阵 12 格一字, 字号取 12 的整数倍才不糊 */
@font-face { font-family: "Cubic"; src: url(/fonts/title.woff2?h=7d256139) format("woff2"); font-display: swap; }

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

@layer base {
  :root {
    --night: #17205f;        /* 没照到的地方 */
    --night-d: #0f1642;
    --fr: #5b95dc;           /* 游戏对话框的蓝边 */
    --fr-d: #2f5c9e;
    --sky: #8fc1ff;
    --slate: #2a343c;        /* 超市那块面板 */
    --slate-d: #131b22;
    --plum: #5c3b66;         /* 面板里的分隔线 */
    --page: #dbe5e8;         /* 社交网页的底 */
    --paper: #fff;
    --ink: #172038;
    --ink-2: #47536d;
    --red: #d3303a;
    --red-l: #ff7a75;
    --red-d: #96192a;
    --bar: 56px;
    --wrap: min(1320px, 100% - 120px);
    --hei: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    --dot: "Cubic", "PingFang SC", "Microsoft YaHei", monospace;
    /* 游戏里的标签形状: 两边都往右下斜, 台阶一格 4 像素 */
    --para: 0 0, calc(100% - 16px) 0, calc(100% - 16px) 20%, calc(100% - 12px) 20%, calc(100% - 12px) 40%, calc(100% - 8px) 40%, calc(100% - 8px) 60%, calc(100% - 4px) 60%, calc(100% - 4px) 80%, 100% 80%, 100% 100%,
      16px 100%, 16px 80%, 12px 80%, 12px 60%, 8px 60%, 8px 40%, 4px 40%, 4px 20%, 0 20%;
    --name: 0 0, calc(100% - 28px) 0, calc(100% - 28px) 12.5%, calc(100% - 24px) 12.5%, calc(100% - 24px) 25%, calc(100% - 20px) 25%, calc(100% - 20px) 37.5%, calc(100% - 16px) 37.5%, calc(100% - 16px) 50%,
      calc(100% - 12px) 50%, calc(100% - 12px) 62.5%, calc(100% - 8px) 62.5%, calc(100% - 8px) 75%, calc(100% - 4px) 75%, calc(100% - 4px) 87.5%, 100% 87.5%, 100% 100%, 0 100%;
    color-scheme: light;
    scroll-padding-top: 84px;
  }
  html { background: var(--night-d); -webkit-text-size-adjust: 100%; }
  body { font: 16px/1.85 var(--hei); color: var(--ink); background: var(--page); text-wrap: pretty; overflow-x: clip; }
  h1, h2, h3 { line-height: 1.3; font-weight: 400; }
  .t { font-family: var(--dot); font-weight: 400; -webkit-font-smoothing: none; }
  a { color: inherit; }
  code { font: 500 14px/1.7 ui-monospace, Menlo, Consolas, monospace; }
  :focus-visible { outline: 3px solid var(--fr-d); outline-offset: 3px; }
  .bar :focus-visible, .hero :focus-visible, .play :focus-visible, .shots :focus-visible, .foot :focus-visible, dialog :focus-visible { outline-color: #ffd257; }
  .skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--paper); }
  .skip:focus { left: 12px; }
  .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .defs { position: absolute; }
}

@layer layout {
  .wrap { width: var(--wrap); margin-inline: auto; }
  .sec { padding-block: 92px; }
  .body { border-top: 4px solid var(--fr-d); padding-top: 40px; }
  .qa.body { padding-top: 18px; }
  .sub { max-width: 44em; color: var(--ink-2); }
}

@layer parts {
  /* 顶栏 */
  .bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: var(--bar); padding-inline: max(20px, 54px); background: var(--night-d); color: #e6ecff; }
  .brand { font-size: 24px; line-height: 1; text-decoration: none; white-space: nowrap; }
  .bar nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
  .bar nav a { padding: 6px 0; text-decoration: none; color: #bcc8ee; }
  .bar nav a:hover { color: #fff; }

  /* 红色平行四边形 = 下载 (画在 ::before 上, 按钮本身不裁, 焦点框才看得见) */
  .dl-btn, .alt-btn, .pill { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: #fff; text-decoration: none; line-height: 1; }
  .dl-btn, .alt-btn { min-height: 60px; padding: 0 46px; font-size: 24px; }
  .dl-btn::before, .alt-btn::before, .pill::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(var(--para)); background: var(--red); box-shadow: inset 0 4px 0 var(--red-l), inset 0 -4px 0 var(--red-d); }
  .dl-btn, .alt-btn, .pill { text-shadow: 1px 0; }
  .dl-btn:hover::before, .pill:hover::before { background: #b92530; }
  .alt-btn::before { background: #2f63b3; box-shadow: inset 0 4px 0 #86b6f2, inset 0 -4px 0 #1f4686; }
  .alt-btn:hover::before { background: #3a72c6; }
  .pill { min-height: 40px; padding: 0 30px; font-size: 24px; white-space: nowrap; }

  /* 首屏: 没开灯的宿舍, 摄像头照到哪儿哪儿才有颜色
     --mid 光锥正中的朝向 (0 朝上, 顺时针), --hw 半宽; 这里算的是没有脚本时的静止位置, 动起来由 site.js 接管 */
  .hero { --px: 3px; --mid: 242; --a: calc(var(--mid) * 1deg); --hw: 17deg; --cx: calc(100% - 31 * var(--px)); --cy: calc(38 * var(--px)); --r: calc(var(--a) - 246deg);
    --lx: calc(var(--cx) + (5 * sin(var(--r)) - 22 * cos(var(--r))) * var(--px)); --ly: calc(var(--cy) - (22 * sin(var(--r)) + 5 * cos(var(--r))) * var(--px));
    position: relative; height: max(100svh - var(--bar), 540px); overflow: hidden; background: var(--night); color: #eaf1ff; }
  .layer { position: absolute; inset: 0; overflow: hidden; }
  .art img { width: calc(760 * var(--px)); max-width: none; height: calc(340 * var(--px)); image-rendering: pixelated; }
  .lit { clip-path: polygon(var(--lx) var(--ly), calc(var(--lx) + 4000px * sin(var(--a) - var(--hw))) calc(var(--ly) - 4000px * cos(var(--a) - var(--hw))), calc(var(--lx) + 4000px * sin(var(--a) + var(--hw))) calc(var(--ly) - 4000px * cos(var(--a) + var(--hw)))); }
  .hero[data-time="day"] .lit { clip-path: none !important; }
  .sign { position: absolute; left: calc(17 * var(--px)); top: calc(48 * var(--px)); display: flex; gap: calc(4 * var(--px)); line-height: 0; fill: #95a8f4; shape-rendering: crispEdges; }
  .sign svg { display: block; height: calc(48 * var(--px)); }
  .s1 { width: calc(198 * var(--px)); }
  .s2 { width: calc(98 * var(--px)); }
  .lit .sign { fill: #d8343d; }
  .lit .sh { fill: #7c1a2c; }
  .cam { position: absolute; right: calc(8 * var(--px)); top: calc(2 * var(--px)); width: calc(62 * var(--px)); height: calc(52 * var(--px)); }
  .cam img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
  .cam-body { transform-origin: calc(39 / 62 * 100%) calc(36 / 52 * 100%); rotate: var(--r); }
  .vac, .vac-led { position: absolute; left: calc(128 * var(--px)); top: calc(262 * var(--px)); }
  .vac { width: calc(30 * var(--px)); max-width: none; height: calc(12 * var(--px)); image-rendering: pixelated; }
  .vac-led { width: calc(3 * var(--px)); height: var(--px); margin: calc(5 * var(--px)) 0 0 calc(10 * var(--px)); background: #3fd0ff; }
  .drop { position: absolute; left: calc(331 * var(--px)); top: calc(97 * var(--px)); width: calc(2 * var(--px)); height: calc(3 * var(--px)); background: #8fc4ea; opacity: 0; }

  .hud { position: absolute; left: calc(17 * var(--px)); top: calc(6 * var(--px)); font-size: calc(8 * var(--px)); line-height: 1.5; color: #fff; }
  .dial { position: absolute; left: 0; top: 0; width: calc(13 * var(--px)); height: calc(26 * var(--px)); overflow: visible; }
  .hud p { display: grid; align-content: center; height: calc(26 * var(--px)); padding: 0 calc(10 * var(--px)) 0 calc(18 * var(--px)); background: rgb(13 19 25 / .94); border-radius: calc(13 * var(--px)) calc(2 * var(--px)) calc(2 * var(--px)) calc(13 * var(--px)); }
  .dial path, .dial circle { stroke: none; }
  .d1 { fill: #574a2a; } .d2 { fill: #2b2358; } .sun { fill: #8a7440; } .moon { fill: #fff; } .dial .cut { fill: none; stroke: #0d1319; stroke-width: 2; }
  [data-time="day"] .d1 { fill: #f2b63c; } [data-time="day"] .sun { fill: #fff2b8; } [data-time="day"] .d2 { fill: #1b1733; } [data-time="day"] .moon { fill: #575276; }
  .next { position: absolute; left: calc(8 * var(--px)); top: calc(24 * var(--px)); width: max-content; border: 0; padding: 0 calc(9 * var(--px)); height: calc(13 * var(--px)); font-size: calc(6 * var(--px)); line-height: 1; color: #0c1a38; background: none; isolation: isolate; }
  .next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fr); box-shadow: inset 0 calc(var(--px) * -1) 0 #3566ac; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%); }
  .next:hover::before { background: #7fb3f2; }
  .next::after { content: ""; position: absolute; inset: -5px 0; }

  /* 游戏的对话框 */
  .say { position: absolute; right: calc(18 * var(--px)); bottom: 34px; width: 548px; padding: 22px 28px 26px; background: rgb(12 19 26 / .95); border: 4px solid var(--fr); box-shadow: 0 0 0 4px rgb(10 18 42 / .85); }
  .say::before, .say::after { content: ""; position: absolute; inset-inline: 0; height: 12px; background: linear-gradient(135deg, var(--fr) 8px, transparent 8.5px) left / 50% 100% no-repeat, linear-gradient(225deg, var(--fr) 8px, transparent 8.5px) right / 50% 100% no-repeat; }
  .say::before { top: 0; }
  .say::after { bottom: 0; scale: 1 -1; }
  .who { position: relative; isolation: isolate; width: fit-content; padding: 10px 52px 10px 34px; font-size: 24px; line-height: 1; color: #fff; }
  .who::before, .who::after { content: ""; position: absolute; clip-path: polygon(var(--name)); }
  .who::before { inset: 0; z-index: -2; background: var(--fr); }
  .who::after { inset: 4px 6px 4px 4px; z-index: -1; background: linear-gradient(var(--fr) 0 0) 10px 50% / 4px 60% no-repeat, #0d151c; }
  .say .who { position: absolute; left: -4px; bottom: calc(100% + 8px); }
  .lead { font-size: 18px; line-height: 1.75; }
  .facts { display: grid; grid-template-columns: repeat(4, auto); margin-top: 16px; }
  .facts dt { padding: 0 18px 5px 0; border-bottom: 3px solid var(--plum); font-size: 14px; line-height: 1.6; color: var(--sky); }
  .facts dd { padding: 7px 18px 0 0; font-size: 16px; line-height: 1.5; white-space: nowrap; }
  .facts small { display: block; font-size: 14px; color: #c3d3ee; }
  .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
  .say .dl-btn { flex: 1; }

  /* 节名: 对话框上那块名牌 */
  .tag { position: relative; isolation: isolate; width: fit-content; padding: 14px 64px 14px 42px; font-size: 36px; line-height: 1; }
  .tag::before, .tag::after { content: ""; position: absolute; clip-path: polygon(var(--name)); }
  .tag::before { inset: 0; z-index: -2; background: var(--fr-d); }
  .tag::after { inset: 4px 6px 0 4px; z-index: -1; background: linear-gradient(var(--fr-d) 0 0) 14px 50% / 6px 60% no-repeat, var(--paper); }
  h3.t { font-size: 24px; }

  /* 故事 */
  .story-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .tell p { max-width: 31em; font-size: 18px; }
  .tell p + p { margin-top: 14px; }
  .chores { display: flex; gap: 40px; margin-top: 34px; }
  .chores li { text-align: center; font-size: 15px; color: var(--ink-2); }
  .chores img { width: 192px; max-width: none; height: 180px; image-rendering: pixelated; }
  .credit div { display: grid; grid-template-columns: 110px 1fr; padding: 11px 0; border-bottom: 2px solid rgb(47 92 158 / .28); }
  .credit div:first-child { padding-top: 0; }
  .credit dt { color: var(--fr-d); }

  /* 玩法: 超市那块面板 */
  .play { background: var(--slate); color: #dfe9f6; }
  .play .tag { color: #fff; }
  .play .tag::before { background: var(--fr); }
  .play .tag::after { background: linear-gradient(var(--fr) 0 0) 14px 50% / 6px 60% no-repeat, var(--slate-d); }
  .play .body { border-color: var(--fr); }
  .play-grid { display: grid; grid-template-columns: minmax(0, 590fr) minmax(0, 640fr); gap: 48px 64px; align-items: start; }
  .play h3 { margin: 18px 0 8px; color: var(--sky); }
  .play p + p { margin-top: 8px; }
  .watch { grid-row: 1 / span 2; }
  .fig { border: 4px solid #55738f; background: #000; }
  .fig img { width: 100%; }
  .play article:last-child { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 30px; align-items: center; padding-top: 40px; border-top: 4px solid var(--plum); }
  .play article:last-child h3 { margin-top: 0; }

  /* 人物: 游戏里的社交网页 */
  .web { background: var(--page); border: 4px solid var(--ink); }
  .web-top { height: 34px; background: #31426f; }
  .web-top i { float: right; width: 34px; height: 24px; margin: 5px 8px; background: linear-gradient(45deg, transparent 46%, #31426f 46% 54%, transparent 54%) center / 12px 12px no-repeat, linear-gradient(-45deg, transparent 46%, #31426f 46% 54%, transparent 54%) center / 12px 12px no-repeat, #f3f6fb; }
  .web-url { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; background: #eef1f2; font-size: 15px; color: #3a4252; }
  .web-url img { width: 40px; max-width: none; height: 22px; image-rendering: pixelated; }
  .web-brand { padding: 10px 24px; background: #1b1d22; font-size: 24px; line-height: 1.4; color: #e6ecff; }
  .web-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 24px; }
  .post { background: var(--paper); }
  .post.pair { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
  .post.pair img { width: 100%; height: 100%; object-fit: cover; }
  .post.pair div { align-self: center; padding: 20px 28px; }
  .prof { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 22px; padding: 24px 24px 0; }
  .av img { width: 96px; height: 96px; image-rendering: pixelated; }
  .said { margin-top: 4px; }
  .said b { font-weight: 400; color: #0b76b8; }
  .stat { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, auto); margin: 16px -24px 0; padding: 12px 24px; border-top: 2px solid #d3def5; font-size: 14px; color: #4b5c93; }
  .stat li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
  .stat b { font-weight: 600; }
  .stat li::before { content: ""; width: 18px; height: 18px; background: currentColor; mask: var(--ic) center / contain no-repeat; }
  .i-like { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M0 4h1v4H0zM2 4h1v4H2zM3 3h1v5H3zM4 1h1v7H4zM5 0h1v8H5zM6 2h2v6H6zM8 3h1v4H8z'/%3E%3C/svg%3E"); }
  .i-eye { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M2 2h5v1H2zM1 3h2v1H1zM6 3h2v1H6zM0 4h2v2H0zM3 4h3v2H3zM7 4h2v2H7zM1 6h2v1H1zM6 6h2v1H6zM2 7h5v1H2z'/%3E%3C/svg%3E"); }
  .i-msg { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M0 1h9v1H0zM0 2h1v4H0zM8 2h1v4H8zM0 6h9v1H0zM2 7h2v1H2zM2 8h1v1H2zM2 3h5v1H2zM2 4h3v1H2z'/%3E%3C/svg%3E"); }
  .i-man { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h3v1H3zM2 1h1v3H2zM6 1h1v3H6zM3 4h3v1H3zM2 5h1v1H2zM6 5h1v1H6zM1 6h1v3H1zM7 6h1v3H7zM2 8h5v1H2z'/%3E%3C/svg%3E"); }
  .club { grid-column: 1 / -1; padding: 24px; }
  .club ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
  .club li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; }
  .club b { display: block; font-size: 17px; }
  .club .av { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; background: #cfdcf3; }
  .club .shiba { place-items: start; }
  .club .shiba img { width: 160px; max-width: none; height: 88px; translate: -10px -2px; }
  .club .man::before { content: ""; width: 45px; height: 45px; margin-bottom: -27px; background: #7f92c4; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h3v5H3zM2 1h5v3H2zM1 6h7v3H1zM2 5h5v1H2z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

  /* 画面 */
  .shots { background: var(--night); color: #e6ecff; }
  .shots .tag::before { background: var(--fr); }
  .shots .tag::after { background: linear-gradient(var(--fr) 0 0) 14px 50% / 6px 60% no-repeat, var(--night-d); }
  .shots .body { border-color: var(--fr); }
  .shots .sub { color: #c3cff5; }
  /* 一排两张, 按比例分宽, 高就齐 */
  .grid { display: flex; flex-wrap: wrap; gap: 30px 24px; margin-top: 28px; }
  .grid li { flex: var(--ar) 1 calc(var(--ar) * 250px); }
  .grid picture { aspect-ratio: var(--ar); }
  .shot { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
  .shot picture { border: 4px solid #32418f; background: #000; overflow: hidden; }
  .shot img { width: 100%; height: 100%; object-fit: cover; }
  .shot:hover picture { border-color: var(--fr); }
  .cap { display: block; padding-top: 8px; font-size: 15px; line-height: 1.6; color: #d5dffb; }
  .play .shot picture { border-color: #55738f; }
  .play .shot:hover picture { border-color: var(--sky); }
  .play .cap { display: none; }

  /* 配置 */
  .spec { width: 100%; margin-top: 24px; background: var(--paper); }
  .spec th, .spec td { padding: 13px 20px; text-align: left; font-weight: 400; vertical-align: top; border-bottom: 2px solid #dbe4f5; }
  .spec thead th, .spec thead td { border-bottom: 3px solid var(--fr-d); color: var(--fr-d); font-weight: 600; }
  .spec tbody th { width: 150px; color: var(--ink-2); }
  .spec td:nth-child(2) { width: 46%; }
  .spec tbody tr:last-child > * { border-bottom: 0; }

  /* 安装 */
  .setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .steps { counter-reset: s; display: grid; gap: 16px; margin-top: 16px; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
  .steps li::before { content: counter(s); font: 24px/30px var(--dot); text-align: center; color: #fff; background: var(--fr-d); height: 30px; }
  .how h3:not(:first-child) { margin-top: 38px; }
  .path { margin-top: 12px; padding: 12px 16px; background: var(--paper); overflow-wrap: anywhere; }
  .tip { margin-top: 10px; }
  .side { display: grid; gap: 36px; }
  .opt-in { position: relative; padding: 24px 30px 30px; background: #363f44; border: 4px solid #55738f; color: #b4d2f4; font-size: 24px; line-height: 1.3; }
  .opt-x { position: absolute; right: 18px; top: 18px; width: 36px; height: 34px; background: linear-gradient(45deg, transparent 44%, #2a0a10 44% 56%, transparent 56%) center / 18px 18px no-repeat, linear-gradient(-45deg, transparent 44%, #2a0a10 44% 56%, transparent 56%) center / 18px 18px no-repeat, #a02a2c; }
  .opt dl { margin-top: 20px; }
  .opt dt { color: #6fb0ff; }
  .opt dd { display: grid; grid-template-columns: 210px minmax(0, 250px); align-items: center; gap: 8px; margin-top: 8px; padding: 5px 0; }
  .opt b { position: relative; padding: 4px 14px; font-weight: 400; background: #5b95dc; color: #1a1d38; }
  .opt b::after { content: ""; position: absolute; right: 14px; top: 50%; width: 14px; height: 12px; margin-top: -6px; background: #1a1d38; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .opt .on { width: fit-content; margin-block: 16px 14px; outline: 4px solid #ffd257; outline-offset: 5px; }
  .opt figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
  .file { padding: 28px 30px 30px; background: var(--paper); border: 4px solid var(--fr-d); }
  .file dl { margin-top: 8px; }
  .file .second { margin-top: 28px; border-top: 4px solid var(--fr-d); }
  .file dl div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; font-size: 15px; border-bottom: 2px solid #dbe4f5; }
  .file dt { color: var(--ink-2); }
  .file dd { overflow-wrap: anywhere; }
  .file code { font-size: 13px; }
  .file-act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
  .plain { border: 2px solid currentColor; padding: 8px 20px; background: none; font-size: 15px; }
  .plain:hover { background: #eef3fb; }

  /* 问答 */
  .qa details { border-bottom: 2px solid rgb(47 92 158 / .3); }
  .qa summary { position: relative; padding: 17px 52px 17px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: linear-gradient(var(--fr-d) 0 0) center / 20px 4px no-repeat, linear-gradient(var(--fr-d) 0 0) center / 4px 20px no-repeat; }
  .qa details[open] summary::after { background: linear-gradient(var(--fr-d) 0 0) center / 20px 4px no-repeat; }
  .qa p { max-width: 54em; padding: 0 52px 20px 0; color: var(--ink-2); }
  .qa code { overflow-wrap: anywhere; }

  /* 页脚 */
  .foot { overflow: hidden; padding: 64px 0 72px; background: var(--night-d); color: #b9c5ea; font-size: 15px; }
  .foot-title { margin-bottom: 10px; font-size: 36px; line-height: 1.2; color: #95a8f4; }
  .foot .wrap { position: relative; }
  .foot-dog { position: absolute; right: 0; bottom: -72px; width: 160px; max-width: none; height: 88px; image-rendering: pixelated; }
  .links { display: flex; gap: 24px; margin-top: 12px; }

  /* 弹窗 */
  dialog { padding: 0; border: 0; color: #e6ecff; }
  dialog::backdrop { background: rgb(8 12 38 / .8); }
  .x { position: absolute; top: 14px; right: 14px; z-index: 1; width: 44px; height: 40px; border: 0; background: linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%) center / 18px 18px no-repeat, linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%) center / 18px 18px no-repeat, #a8242f; }
  .dlg { width: min(460px, 100% - 32px); padding: 22px 26px 30px; background: #0f171e; border: 4px solid var(--fr); }
  .dlg-file { margin: 18px 0; font-size: 14px; color: #c3d3ee; overflow-wrap: anywhere; }
  #ts-box { display: grid; place-items: center; min-height: 70px; }
  #dl-status { margin-top: 14px; font-size: 15px; }
  #dl-link { margin-top: 18px; width: 100%; }
  .lb { width: min(1280px, 100% - 24px); max-height: calc(100svh - 24px); overflow: visible; background: transparent; }
  .lb picture img { width: auto; min-width: min(100%, 900px); height: auto; max-height: calc(100svh - 130px); margin-inline: auto; object-fit: contain; background: #05081c; }
  #lb-cap { margin-top: 12px; text-align: center; }
  .lb-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
  .lb-nav button { width: 48px; height: 44px; border: 0; background: #2f63b3; font-size: 22px; line-height: 1; }
  .lb .x { top: 8px; right: 8px; }

  /* 隐私 / 条款 / 404 */
  .doc-page { min-height: 100svh; }
  .doc { max-width: 720px; padding-block: 72px 96px; }
  .doc h1 { margin: 22px 0 26px; font-size: 48px; line-height: 1.25; }
  .doc h2 { margin: 30px 0 6px; font-size: 19px; font-weight: 700; }
  .doc p { margin-top: 10px; }
  .doc .dl-btn { margin-top: 18px; font-family: var(--dot); }
  .doc .date { margin-top: 36px; font-size: 14px; color: var(--ink-2); }
  .back { color: var(--fr-d); }
}

@layer responsive {
  /* 一格多大: 看得到约 480×270 格, 但不能比画布还宽还高 */
  @supports (width: round(down, 1px, 1px)) {
    .hero { --px: max(2px, round(up, 100vw / 760, .5px), round(up, (100svh - var(--bar)) / 340, .5px), round(down, min(100vw / 480, (100svh - var(--bar)) / 270) + .03px, .5px)); }
  }
  @media (max-width: 1180px) {
    .play-grid { gap: 40px; }
    .play article:last-child { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 22px; }
    .club ul { grid-template-columns: 1fr; gap: 14px; }
    .stat { grid-template-columns: auto auto; gap: 4px 12px; }
    .story-grid, .setup-grid { gap: 48px; }
    .chores { gap: 16px; }
    .chores img { width: 128px; height: 120px; }
  }
  @media (max-width: 1000px) {
    :root { --wrap: min(1320px, 100% - 72px); }
    .bar { padding-inline: 36px; }
    .bar nav { display: none; }
    .bar .pill { margin-left: auto; }
    .say { width: min(480px, 52vw); }
    .facts { grid-template-columns: auto auto; gap: 10px 0; }
    .story-grid, .setup-grid, .play-grid { grid-template-columns: minmax(0, 1fr); }
    .watch { grid-row: auto; }
    .post.pair { grid-template-columns: minmax(0, 1fr); }
    .post.pair img { height: auto; }
    .web-in { grid-template-columns: minmax(0, 1fr); }
  }
  /* 竖屏: 字两行在墙上, 人在中间, 对话框在下 */
  @media (orientation: portrait), (max-width: 760px) and (min-height: 521px), (max-width: 480px) {
    .hero { --px: 2px; --mid: 206; --hw: 20deg; --u: calc((100vw - 36px) / 198); --cx: calc(100% - 4px - 23 * var(--px)); --cy: calc(6px + 36 * var(--px)); height: max(100svh - var(--bar), min(700px, 100svh + 70px)); }
    .art img { width: calc(320 * var(--px)); height: calc(480 * var(--px)); }
    .art, .vac, .drop { translate: min(0px, 50vw - 100 * var(--px)) 0; }
    .sign { left: 18px; top: 104px; flex-direction: column; gap: calc(2 * var(--u)); }
    .sign svg { height: calc(48 * var(--u)); }
    .s1 { width: calc(198 * var(--u)); }
    .s2 { width: calc(98 * var(--u)); }
    .cam { right: 4px; top: 6px; }
    .vac, .vac-led, .drop { display: none; }
    .hud { left: 18px; top: 10px; font-size: 20px; line-height: 1.15; }
    .dial { width: 28px; height: 56px; }
    .hud p { height: 56px; padding: 0 16px 0 38px; border-radius: 28px 4px 4px 28px; }
    .next { left: 16px; top: 53px; height: 36px; padding: 0 22px; font-size: 18px; }
    .say { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 16px 14px 16px; }
    .lead { font-size: 16px; line-height: 1.65; }
    .say { display: flex; flex-direction: column; }
    .cta { order: 1; margin-top: 12px; }
    .facts { order: 2; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 14px; }
    .facts dt { padding-bottom: 2px; }
    .facts dd { padding-top: 3px; font-size: 15px; }
    .say .who { bottom: calc(100% + 6px); padding: 6px 40px 6px 28px; }
    @supports (width: round(down, 1px, 1px)) {
      .hero { --px: max(2px, round(down, 100vw / 190 + .03px, .5px), round(up, (100svh - var(--bar)) / 480, .5px)); }
    }
  }
  @media (min-width: 600px) and (orientation: portrait) {
    .hero { --px: 3px; --mid: 217; --u: calc(.85 * var(--px)); }
    .sign { top: calc(50 * var(--px)); }
    .facts { grid-template-columns: repeat(4, auto); }
    @supports (width: round(down, 1px, 1px)) {
      .hero { --px: max(3px, round(up, 100vw / 320, .5px), round(up, (100svh - var(--bar)) / 480, .5px)); }
    }
  }
  @media (min-width: 2000px) {
    .say { width: 700px; padding: 30px 38px 36px; }
    .lead { font-size: 23px; }
    .facts dt { font-size: 17px; }
    .facts dd { font-size: 20px; }
    .say .dl-btn { min-height: 76px; font-size: 36px; }
    .say .who { font-size: 36px; padding: 12px 64px 12px 40px; }
  }
  @media (max-width: 680px) {
    :root { --bar: 52px; --wrap: min(1320px, 100% - 36px); scroll-padding-top: 72px; }
    .bar { padding-inline: 18px; }
    .pill { min-height: 38px; padding: 0 24px; }
    .sec { padding-block: 64px; }
    .body { padding-top: 28px; }
    .tag { padding: 12px 56px 12px 38px; }
    .cta > * { flex: 1 1 100%; }
    .dl-btn, .alt-btn { min-height: 56px; padding: 0 22px; white-space: nowrap; }
    .story-grid, .setup-grid { gap: 40px; }
    .tell p { font-size: 17px; }
    .chores { justify-content: space-between; gap: 0; }
    .chores img { width: 106px; height: 99px; }
    .credit div { grid-template-columns: 92px 1fr; }
    .play article:last-child { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
    .web { margin-inline: -18px; border-inline: 0; }
    .web-in { gap: 14px; padding: 14px; }
    .prof { grid-template-columns: 80px minmax(0, 1fr); gap: 4px 16px; padding: 18px 16px 0; }
    .av img { width: 80px; height: 80px; }
    .stat { margin: 14px -16px 0; padding: 12px 16px; }
    .club, .post.pair div { padding: 18px 16px; }
    .grid { gap: 22px; }
    .grid li { flex: 1 0 100%; }
    .spec { font-size: 15px; }
    .spec th, .spec td { padding: 11px 12px; }
    .spec tbody th { width: 78px; }
    .opt-in { padding: 18px 18px 24px; }
    .opt dd { grid-template-columns: 118px minmax(0, 1fr); line-height: 1.15; }
    .opt .on { width: auto; }
    .file { padding: 22px 18px 24px; }
    .file dl div { grid-template-columns: 70px 1fr; gap: 10px; }
    .file-act > * { flex: 1; white-space: nowrap; }
    .qa summary { font-size: 16px; padding-right: 40px; }
    .qa p { padding-right: 20px; }
    .doc h1 { font-size: 36px; }
  }
  @media (max-width: 380px) {
    .hero:has(.alt-btn) { height: max(100svh - var(--bar), min(760px, 100svh + 130px)); }
    .bar { gap: 12px; }
    .bar .pill { padding: 0 18px; }
    .lead { font-size: 15px; }
    .say .who { padding-right: 34px; white-space: nowrap; }
  }
  @media (max-width: 340px) {
    .brand, .bar .pill { font-size: 18px; }
    .chores img { width: 88px; height: auto; }
    .facts dd { font-size: 14px; }
    .dl-btn, .alt-btn { padding: 0 18px; }
  }
  @media (max-height: 640px) and (orientation: landscape) {
    .say { bottom: 20px; }
    .say .who { display: none; }
  }
  @media (max-height: 520px) and (orientation: landscape) and (min-width: 481px) {
    .hero { --px: max(1.5px, 100vw / 760); height: max(100svh - var(--bar), 320px); }
    .hud { display: none; }
    .sign { top: calc(26 * var(--px)); }
    .say { right: 20px; bottom: 10px; width: min(470px, 70vw); padding: 10px 16px 14px; }
    .lead { font-size: 15px; line-height: 1.6; }
    .facts { grid-template-columns: repeat(4, auto); margin-top: 8px; }
    .facts dt { padding: 0 12px 1px 0; border-bottom-width: 2px; font-size: 13px; }
    .facts dd { padding: 3px 12px 0 0; font-size: 13px; }
    .facts small { display: inline; margin-left: 4px; font-size: 13px; }
    .cta { margin-top: 10px; }
    .cta > * { flex: 1 1 0; }
    .say .dl-btn, .say .alt-btn { min-height: 46px; padding: 0 18px; }
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .drop { animation: drip 2.6s steps(14) infinite; }
    @keyframes drip { 0%, 40% { opacity: 1; translate: 0 0; } 41% { opacity: 1; } 78% { opacity: 1; translate: 0 calc(54 * var(--px)); } 80%, 100% { opacity: 0; translate: 0 calc(54 * var(--px)); } }
    .vac, .vac-led { animation: roam 26s linear infinite alternate; }
    @keyframes roam { to { translate: calc(112 * var(--px)) 0; } }
    :root { interpolate-size: allow-keywords; }
    .qa details::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
    .qa details[open]::details-content { block-size: auto; }
    ::view-transition-group(shot) { animation-duration: .32s; }
  }
}
