/* hexroar.beeddy.com: every style on every page (the server's CSP allows no inline styles).
   Source: design canvas page "官网", board v53 (SiteHome, SiteHomePhone, SiteHomeZh, SiteSupport, SitePrivacy,
   SiteSpec). Numbers are the boards' own; see site/README.md. */

/* ---------- fonts: title faces only, subset to the characters the pages use (tools/site/build_site.py fonts) */
@font-face {
  font-family: "Grenze Gotisch";
  src: url("/assets/fonts/grenze-gotisch-titles.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Hexroar Serif SC";
  src: url("/assets/fonts/noto-serif-sc-titles.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Hexroar Serif TC";
  src: url("/assets/fonts/noto-serif-tc-titles.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --display: "Grenze Gotisch", serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
html:lang(zh-Hans) {
  --display: "Hexroar Serif SC", "Songti SC", serif;
  --text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "SF Pro Text", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}
html:lang(zh-Hant) {
  --display: "Hexroar Serif TC", "Songti TC", serif;
  --text: -apple-system, BlinkMacSystemFont, "PingFang TC", "SF Pro Text", "Helvetica Neue", "Microsoft JhengHei", sans-serif;
}

/* ---------- base */
html { background: #0a090c; scroll-padding-top: 52px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: #0a090c;
  color: #f5f5f7;
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: #f0a94a; text-decoration: none; }
a:hover { color: #f7c77f; text-decoration: underline; }
img, video { display: block; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 40;
  padding: 10px 16px; border-radius: 980px; background: #f0a94a; color: #1a1206; font-size: 15px; font-weight: 600;
}
.skip:focus { top: 8px; color: #1a1206; text-decoration: none; }
.glass { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18,16,21,0.72);
  border-bottom: 0.5px solid rgba(255,255,255,0.14);
}
.bar-in {
  max-width: 1120px; margin: 0 auto; height: 52px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
a.brand { display: flex; align-items: center; gap: 10px; color: #f5f5f7; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6.5px; }
.brand span { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1; }
html:lang(zh) .brand span { font-size: 19px; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.nav-links a, .lang > summary { color: rgba(245,245,247,0.82); }
.bar-end { display: flex; align-items: center; gap: 16px; }
.soon {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 980px;
  background: rgba(232,160,64,0.16); color: #f5c27a; font-size: 12px; font-weight: 600; white-space: nowrap;
}
/* language: the board's globe link, opening the three languages */
.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13px;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { text-decoration: underline; }
.lang-list {
  position: absolute; right: -12px; top: 34px; min-width: 150px; padding: 6px;
  border-radius: 14px; background: rgba(28,27,31,0.94); border: 0.5px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column;
}
.lang-list a { padding: 9px 12px; border-radius: 9px; font-size: 14px; color: rgba(245,245,247,0.9); }
.lang-list a:hover { background: rgba(118,118,128,0.24); color: #f5f5f7; text-decoration: none; }
.lang-list a[aria-current] { color: #f0a94a; }
/* the narrow-screen menu */
.menu { display: none; }
.menu > summary {
  list-style: none; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 -12px 0 -6px; cursor: pointer; color: rgba(245,245,247,0.86);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 52px; padding: 14px 40px 30px;
  background: rgba(18,16,21,0.94); border-bottom: 0.5px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; gap: 2px; font-family: var(--display);
}
.menu-panel a { padding: 6px 0; font-size: 34px; font-weight: 700; color: #f5f5f7; }
html:lang(zh) .menu-panel a { font-size: 30px; font-weight: 900; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu { display: block; }
}
@media (max-width: 600px) { .hide-s { display: none; } }

/* ---------- shared section parts */
.sec { padding: clamp(80px, 10vw, 140px) 22px; box-sizing: border-box; }
.sec-in { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.eyebrow { font-family: var(--display); font-size: 24px; font-weight: 600; color: #f0a94a; }
.h2 {
  margin: 0; font-family: var(--display); font-size: clamp(46px, 6vw, 80px); line-height: 1; font-weight: 800;
  text-align: center; text-wrap: balance;
}
.intro {
  margin: 0; max-width: 680px; font-size: 21px; line-height: 1.45; color: rgba(235,235,245,0.72);
  text-align: center; text-wrap: pretty;
}
.intro.w700 { max-width: 700px; }
.intro.w720 { max-width: 720px; }
.intro.w640 { max-width: 640px; }
html:lang(zh) .eyebrow { font-size: 20px; font-weight: 700; letter-spacing: 0.08em; }
html:lang(zh) .h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.18; font-weight: 900; letter-spacing: 0.02em; }
html:lang(zh) .intro { text-wrap: balance; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; }
.store-soon {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.32); background: rgba(0,0,0,0.55); color: #f5f5f7;
  font-size: 17px; font-weight: 600;
}
.card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1); }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(0,0,0,0.6); }

/* ---------- hero */
.hero { position: relative; min-height: 860px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.par { position: absolute; inset: 0; }
.hero-art { object-position: 50% 30%; }
.hero-shade-1 { background: linear-gradient(180deg, rgba(10,9,12,0.35) 0%, rgba(10,9,12,0) 22%, rgba(10,9,12,0.15) 45%, rgba(10,9,12,0.82) 74%, #0a090c 100%); }
.hero-shade-2 { background: radial-gradient(ellipse 46% 34% at 50% 72%, rgba(10,9,12,0.55) 0%, rgba(10,9,12,0) 100%); }
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-in {
  position: relative; width: 100%; max-width: 980px; box-sizing: border-box; padding: 0 22px 64px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.hero h1 { margin: 0; line-height: 0; }
.mark { position: relative; display: inline-block; width: min(400px, 74vw); margin: -40px 0 -30px; }
.mark img { width: 100%; height: auto; }
html:lang(zh) .mark { width: min(560px, 88vw); margin: -44px 0 -34px; }
.tagline {
  margin: 0; font-family: var(--display); font-size: clamp(50px, 7.6vw, 104px); line-height: 0.98; font-weight: 800;
  color: #f5f5f7; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
html:lang(zh) .tagline { line-height: 1.12; letter-spacing: 0.04em; font-weight: 900; }
.lede {
  margin: 0; max-width: 660px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: rgba(235,235,245,0.8);
  text-wrap: pretty;
}
html:lang(zh) .lede { text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; padding-top: 10px; }
.hero-cta a { font-size: 17px; }
.fine { margin: 0; font-size: 14px; color: rgba(235,235,245,0.6); }

/* falling stars and embers */
.star {
  position: absolute; width: 180px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,200,120,0), rgba(255,228,170,0.95));
  box-shadow: 0 0 10px rgba(255,190,110,0.7); rotate: 28deg; opacity: 0; animation: shoot 11s linear infinite;
}
.star-1 { left: 58%; top: 6%; animation-delay: 1.5s; }
.star-2 { left: 70%; top: 2%; width: 120px; animation-delay: 6.8s; }
.star-3 { left: 8%; top: 14%; width: 140px; animation-delay: 9.6s; }
.ember {
  position: absolute; bottom: 40px; width: 3px; height: 3px; border-radius: 50%; background: #ffc06a;
  box-shadow: 0 0 8px 2px rgba(255,150,60,0.65); animation: ember 8s linear infinite;
}
.ember-1 { left: 18%; --dx: 30px; animation-delay: 0s; }
.ember-2 { left: 27%; --dx: -20px; animation-delay: 2.6s; }
.ember-3 { left: 41%; --dx: 40px; animation-delay: 5.1s; }
.ember-4 { left: 58%; --dx: -36px; animation-delay: 1.3s; }
.ember-5 { left: 66%; --dx: 24px; animation-delay: 3.9s; }
.ember-6 { left: 79%; --dx: -28px; animation-delay: 6.4s; }
.ember-7 { left: 88%; --dx: 18px; animation-delay: 4.5s; }
/* the warm light that sweeps over the wordmark, only on the letters */
.shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255,230,180,0) 40%, rgba(255,238,205,0.9) 50%, rgba(255,230,180,0) 60%);
  background-size: 300% 100%; mix-blend-mode: screen; animation: shine 6.5s ease-in-out infinite;
}
.shine-en {
  -webkit-mask: url("/assets/img/wordmark-en.webp") center / 100% 100% no-repeat;
  mask: url("/assets/img/wordmark-en.webp") center / 100% 100% no-repeat;
}
.shine-zh {
  -webkit-mask: url("/assets/img/wordmark-zh.webp") center / 100% 100% no-repeat;
  mask: url("/assets/img/wordmark-zh.webp") center / 100% 100% no-repeat;
}

/* ---------- at a glance */
.glance { border-top: 0.5px solid rgba(255,255,255,0.12); border-bottom: 0.5px solid rgba(255,255,255,0.12); background: #0d0c10; }
.glance-in {
  max-width: 1120px; margin: 0 auto; padding: 22px; box-sizing: border-box;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.glance-in::-webkit-scrollbar, .chapters::-webkit-scrollbar { display: none; }
.g {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px;
  scroll-snap-align: start; border-right: 0.5px solid rgba(255,255,255,0.12);
}
.g:last-child { border-right: 0; }
.g-k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(235,235,245,0.6); }
.g-v { font-size: 20px; font-weight: 700; color: rgba(245,245,247,0.9); }
.g-icons { display: flex; align-items: center; gap: 8px; height: 26px; color: rgba(245,245,247,0.9); }
.g-s { font-size: 12px; color: rgba(235,235,245,0.6); }
.g img { width: 26px; height: 26px; border-radius: 6px; }

/* ---------- heroes */
.heroes {
  width: 100%; margin-top: 30px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(470px, 100%), 1fr)); gap: 18px;
}
.hero-card {
  border-radius: 28px; overflow: hidden; isolation: isolate; background: #141317;
  border: 0.5px solid rgba(255,255,255,0.1); display: flex; flex-direction: column;
}
.hc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.hc-fade { background: linear-gradient(180deg, rgba(20,19,23,0) 55%, rgba(20,19,23,0.92) 100%); }
.pill {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: 980px; background: rgba(0,0,0,0.55); color: #f5f5f7;
  font-size: 12px; font-weight: 600;
}
.pill-full { background: rgba(36,26,12,0.7); color: #f5c27a; }
.hc-body {
  position: relative; padding: 20px 24px 24px 196px; min-height: 190px;
  display: flex; flex-direction: column; gap: 8px;
}
.hc-glow { position: absolute; left: 14px; top: -118px; width: 170px; height: 300px; }
.glow-mage { background: radial-gradient(ellipse 50% 32% at 50% 80%, rgba(232,140,50,0.35), rgba(232,140,50,0) 70%); }
.glow-knight { background: radial-gradient(ellipse 50% 32% at 50% 80%, rgba(214,224,236,0.24), rgba(214,224,236,0) 70%); }
.glow-elf { background: radial-gradient(ellipse 50% 32% at 50% 80%, rgba(222,190,110,0.3), rgba(222,190,110,0) 70%); }
.glow-ghost { background: radial-gradient(ellipse 50% 32% at 50% 80%, rgba(205,215,225,0.24), rgba(205,215,225,0) 70%); }
.hc-portrait {
  position: absolute; left: 14px; top: -118px; width: 170px; height: 290px;
  object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.7));
}
.hc-portrait.sq { left: -46px; width: 290px; height: 290px; }
.hc-name { margin: 0; font-family: var(--display); font-size: 34px; line-height: 1.02; font-weight: 700; }
html:lang(zh) .hc-name { font-size: 28px; line-height: 1.15; font-weight: 900; }
.hc-tag { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; }
.tag-mage { color: #f5c27a; }
.tag-knight { color: #e4e9f0; }
.tag-elf { color: #e8cf8a; }
.tag-ghost { color: #dfe5ec; }
.hc-desc { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(235,235,245,0.72); }
.hc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 4px; font-size: 13px; color: rgba(235,235,245,0.6); }
.hc-meta b, .hc-meta strong { color: #f5f5f7; font-weight: 600; }
@media (max-width: 600px) {
  .hc-body { padding: 64px 20px 22px; }
  .hc-glow, .hc-portrait { left: auto; right: 6px; top: -116px; width: 112px; height: 170px; }
  .hc-portrait.sq { left: auto; right: -23px; top: -116px; width: 170px; height: 170px; }
}

/* ---------- effects */
.sec-effects { background: linear-gradient(180deg, #0a090c 0%, #0f0d12 50%, #0a090c 100%); border-top: 0.5px solid rgba(255,255,255,0.08); }
.bento {
  width: 100%; margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px; gap: 16px;
}
.b-big { grid-column: span 2; grid-row: span 2; }
.b-wide { grid-column: span 2; }
.b-full { grid-column: 1 / -1; grid-row: span 2; }
@media (max-width: 760px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
  .b-big, .b-wide, .b-full { grid-column: auto; grid-row: auto; }
}
.tile {
  position: relative; margin: 0; border-radius: 28px; overflow: hidden; isolation: isolate; background: #000;
  border: 0.5px solid rgba(255,255,255,0.1);
}
.tile video { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tile:hover video { transform: scale(1.045); }
.tile .shade { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%); }
.tile.b-wide .shade { background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.75) 100%); }
.tile.b-big .shade { background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.75) 100%); }
.tile.b-full .shade { background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 45%), linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.6) 100%); }
.tile figcaption { position: absolute; left: 20px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.tile.b-wide figcaption { left: 22px; bottom: 18px; }
.tile.b-big figcaption { left: 24px; bottom: 22px; }
.tile.b-full figcaption { left: 28px; bottom: 26px; max-width: 420px; gap: 6px; }
.tc-k { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(235,235,245,0.7); }
html:lang(zh) .tc-k { letter-spacing: normal; text-transform: none; }
.tc-n { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; }
.b-wide .tc-n { font-size: 30px; }
.b-big .tc-n { font-size: 40px; }
.b-full .tc-n { font-size: 48px; }
html:lang(zh) .tc-n { font-size: 24px; font-weight: 900; line-height: 1.1; }
html:lang(zh) .b-wide .tc-n { font-size: 26px; }
html:lang(zh) .b-big .tc-n { font-size: 34px; }
html:lang(zh) .b-full .tc-n { font-size: 40px; }
.tc-d { font-size: 15px; line-height: 1.45; color: rgba(235,235,245,0.8); }
.feats {
  width: 100%; margin-top: 18px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px;
}
.feat {
  padding: 26px; border-radius: 22px; background: #141317; border: 0.5px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 10px;
}
.feat-t { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.05; }
html:lang(zh) .feat-t { font-size: 21px; line-height: 1.25; font-weight: 900; }
.feat-d { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(235,235,245,0.72); }

/* ---------- the night: ten bells */
.sec-night { border-top: 0.5px solid rgba(255,255,255,0.08); border-bottom: 0.5px solid rgba(255,255,255,0.08); }
.bells { width: 100%; max-width: 900px; margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.bells-row { position: relative; display: flex; align-items: center; justify-content: space-between; }
.bells-line { position: absolute; left: 12px; right: 18px; top: 50%; height: 2px; background: linear-gradient(90deg, rgba(240,169,74,0.5), rgba(185,227,247,0.5)); }
.bell {
  position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #6b5a3e; background: #2c2932;
  animation: toll 11s ease-out infinite;
}
.bell:nth-child(3) { animation-delay: 1s; }
.bell:nth-child(4) { animation-delay: 2s; }
.bell:nth-child(5) { animation-delay: 3s; }
.bell:nth-child(6) { animation-delay: 4s; }
.bell:nth-child(7) { animation-delay: 5s; }
.bell:nth-child(8) { animation-delay: 6s; }
.bell:nth-child(9) { animation-delay: 7s; }
.bell:nth-child(10) { animation-delay: 8s; }
.king-bell {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #b9e3f7; background: #16222a;
  display: flex; align-items: center; justify-content: center; color: #b9e3f7;
  animation: king 11s ease-in-out infinite;
}
.bells-labels { display: flex; justify-content: space-between; font-size: 13px; color: rgba(235,235,245,0.6); }
.bells-labels .k { color: #b9e3f7; font-weight: 600; }
.pause-note {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 980px;
  background: rgba(118,118,128,0.16); font-size: 15px; color: rgba(235,235,245,0.82);
}

/* ---------- chapters */
.chapters {
  width: 100%; margin-top: 26px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.chap {
  position: relative; border-radius: 22px; overflow: hidden; isolation: isolate; background: #141317;
  border: 0.5px solid rgba(255,255,255,0.1); aspect-ratio: 3 / 4; scroll-snap-align: start;
}
.chap .shade { background: linear-gradient(180deg, rgba(10,9,12,0) 35%, rgba(10,9,12,0.92) 100%); }
.chap-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 980px; background: rgba(245,245,247,0.16); font-size: 12px; font-weight: 600;
}
.chip-full { background: rgba(232,160,64,0.2); color: #f5c27a; }
.chap-k { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(235,235,245,0.6); }
html:lang(zh) .chap-k { letter-spacing: normal; text-transform: none; }
.chap-n { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 700; }
html:lang(zh) .chap-n { font-size: 24px; line-height: 1.2; font-weight: 900; }
.chap-d { font-size: 15px; line-height: 1.4; color: rgba(235,235,245,0.72); }

/* ---------- devices */
.sec-devices { padding-top: 0; }
.devices { position: relative; width: 100%; max-width: 1000px; margin-top: 34px; aspect-ratio: 1000 / 600; }
.mac { position: absolute; left: 13%; top: 0; width: 74%; }
.mac-body {
  border-radius: 22px 22px 6px 6px; padding: 12px 12px 18px;
  background: linear-gradient(160deg, #3a3a3e, #1d1d1f 45%, #111113);
  box-shadow: 0 50px 100px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.screen { position: relative; overflow: hidden; background: #000; }
.mac-screen { aspect-ratio: 16 / 10; border-radius: 10px; }
.mac-base {
  position: relative; left: -7%; width: 114%; height: 16px; border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #4a4a4f 0%, #2a2a2e 60%, #161618 100%); box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.tablet, .phone {
  position: absolute; bottom: 0; border-radius: 26px; box-sizing: border-box;
  background: linear-gradient(145deg, #3a3a3e, #1d1d1f 40%, #111113);
  box-shadow: 0 30px 70px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.tablet { left: 0; width: 38%; padding: 11px; }
.phone { right: 0; width: 33%; padding: 7px; }
.tablet-screen { aspect-ratio: 4 / 3; border-radius: 16px; }
.phone-screen { aspect-ratio: 19.5 / 9; border-radius: 20px; }
.dev-list {
  width: 100%; max-width: 900px; margin-top: 26px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px;
}
.dev { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.dev-n { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 700; }
html:lang(zh) .dev-n { font-size: 22px; font-weight: 900; }
.dev-d { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(235,235,245,0.72); }

/* ---------- buy once */
.sec-buy { background: #0d0c10; border-top: 0.5px solid rgba(255,255,255,0.08); }
.sec-buy .sec-in { max-width: 1040px; }
.plans {
  width: 100%; max-width: 980px; margin-top: 26px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px;
}
.plan {
  padding: 32px; border-radius: 28px; background: #16151a; border: 0.5px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; gap: 18px;
}
.plan-full { position: relative; background: linear-gradient(160deg, #241c12 0%, #16151a 55%); border: 1px solid rgba(240,169,74,0.55); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-head { display: flex; flex-direction: column; gap: 4px; }
.plan-name { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
html:lang(zh) .plan-name { font-size: 28px; line-height: 1.1; font-weight: 900; }
.plan-sub { font-size: 15px; color: rgba(235,235,245,0.6); }
.price { text-align: right; }
.price-v { font-size: 28px; font-weight: 700; color: #f5c27a; }
.price-u { font-size: 12px; color: rgba(235,235,245,0.6); }
.rule { height: 0.5px; background: rgba(255,255,255,0.12); }
.plan-full .rule { background: rgba(240,169,74,0.3); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 2px; }
.plan-note { font-size: 12px; line-height: 1.5; color: rgba(235,235,245,0.6); }
.perks {
  width: 100%; margin-top: 10px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px;
}
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 20px 4px; }
.perk svg { flex-shrink: 0; }
.perk-text { display: flex; flex-direction: column; gap: 4px; }
.perk-t { margin: 0; font-size: 17px; font-weight: 700; }
.perk-d { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(235,235,245,0.72); }

/* ---------- closing: the Sleepless King */
.closing { position: relative; overflow: hidden; min-height: 580px; display: flex; align-items: center; }
.closing-art { object-position: 75% 30%; }
.closing .shade {
  background: linear-gradient(90deg, #0a090c 0%, rgba(10,9,12,0.92) 32%, rgba(10,9,12,0.35) 62%, rgba(10,9,12,0.2) 100%),
              linear-gradient(180deg, #0a090c 0%, rgba(10,9,12,0) 18%, rgba(10,9,12,0) 82%, #0a090c 100%);
}
.closing-in {
  position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 80px 22px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.closing-h {
  margin: 0; max-width: 600px; font-family: var(--display); font-size: clamp(44px, 5.4vw, 72px); line-height: 1;
  font-weight: 800; text-wrap: balance;
}
html:lang(zh) .closing-h { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.2; font-weight: 900; letter-spacing: 0.02em; }
.closing-p { margin: 0; max-width: 480px; font-size: 21px; line-height: 1.45; color: rgba(235,235,245,0.78); }
.closing .store-soon { margin-top: 8px; }

/* ---------- footer */
.foot { border-top: 0.5px solid rgba(255,255,255,0.12); background: #0a090c; }
.foot-in {
  max-width: 980px; margin: 0 auto; padding: 28px 22px 40px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px; font-size: 12px; line-height: 1.6; color: rgba(235,235,245,0.6);
}
a.by { display: inline-flex; align-items: center; gap: 10px; color: rgba(245,245,247,0.86); align-self: flex-start; }
.by img { width: 24px; height: 24px; border-radius: 6px; }
.foot-rule { height: 0.5px; background: rgba(255,255,255,0.12); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot-links a, .foot-langs a { color: rgba(235,235,245,0.8); }
.foot-langs a[aria-current] { color: #f5f5f7; }
.foot p { margin: 0; }

/* ---------- support, privacy, 404 */
.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.doc { flex-grow: 1; padding: clamp(48px, 7vw, 96px) 22px clamp(72px, 9vw, 120px); box-sizing: border-box; }
.doc-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 34px; }
.doc-head { display: flex; flex-direction: column; gap: 12px; }
.doc-h1 { margin: 0; font-family: var(--display); font-size: clamp(52px, 6vw, 76px); line-height: 1; font-weight: 800; }
html:lang(zh) .doc-h1 { font-size: clamp(42px, 4.8vw, 60px); line-height: 1.18; font-weight: 900; letter-spacing: 0.02em; }
.doc-lede { margin: 0; font-size: 21px; line-height: 1.45; color: rgba(235,235,245,0.72); }
.doc-date { margin: 0; font-size: 13px; color: rgba(235,235,245,0.6); }
.write {
  padding: 24px; border-radius: 22px; background: #16151a; border: 0.5px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.write-l { display: flex; align-items: flex-start; gap: 16px; min-width: 0; flex: 1 1 360px; }
.badge {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(232,160,64,0.16); color: #f0a94a;
  display: flex; align-items: center; justify-content: center;
}
.write-text { display: flex; flex-direction: column; gap: 4px; }
.write-t { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.05; }
html:lang(zh) .write-t { font-size: 22px; font-weight: 900; line-height: 1.25; }
.write-d { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(235,235,245,0.72); }
a.btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 980px; background: #f0a94a;
  color: #1a1206; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.group { display: flex; flex-direction: column; gap: 8px; }
.group-h {
  margin: 0; padding: 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(235,235,245,0.6);
}
.list { border-radius: 14px; background: #1c1b1f; overflow: hidden; }
details.row { border-bottom: 0.5px solid rgba(255,255,255,0.1); }
details.row:last-child { border-bottom: 0; }
details.row > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 50px; padding: 12px 18px; box-sizing: border-box; font-size: 17px; color: #f5f5f7;
}
details.row > summary::-webkit-details-marker { display: none; }
details.row > summary::after {
  content: ""; flex-shrink: 0; width: 7px; height: 7px; border-right: 2px solid rgba(235,235,245,0.4);
  border-bottom: 2px solid rgba(235,235,245,0.4); transform: rotate(-45deg); transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
details.row[open] > summary::after { transform: rotate(45deg); }
.row-a { margin: 0; padding: 0 18px 16px; font-size: 15px; line-height: 1.55; color: rgba(235,235,245,0.72); }
.label-card {
  padding: 28px; border-radius: 22px; background: #16151a; border: 0.5px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.badge-lg { width: 56px; height: 56px; border-radius: 16px; }
.label-t { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
html:lang(zh) .label-t { font-size: 28px; font-weight: 900; line-height: 1.2; }
.label-d { margin: 0; max-width: 460px; font-size: 15px; line-height: 1.5; color: rgba(235,235,245,0.72); }
.prose {
  padding: 18px; border-radius: 14px; background: #1c1b1f; display: flex; flex-direction: column; gap: 12px;
  font-size: 17px; line-height: 1.55; color: rgba(245,245,247,0.9);
}
.prose p { margin: 0; }
.doc-foot { margin: 0; padding: 0 18px; font-size: 13px; line-height: 1.5; color: rgba(235,235,245,0.6); }
.lost { align-items: center; text-align: center; }
.lost .doc-head { align-items: center; }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; font-size: 15px; }

/* ---------- motion (SiteSpec "动效"); all of it stops under reduced motion */
@keyframes drift { 0% { transform: scale(1.04) translate3d(0,0,0); } 100% { transform: scale(1.1) translate3d(-1.2%,-0.8%,0); } }
.kenburns { animation: drift 26s ease-in-out infinite alternate; }
@keyframes ember { 0% { transform: translate3d(0,0,0); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translate3d(var(--dx),-460px,0); opacity: 0; } }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 1.5% { opacity: 1; } 7% { opacity: 0; translate: 460px 250px; } 100% { opacity: 0; translate: 460px 250px; } }
@keyframes shine { 0% { background-position: 120% 0; } 40%, 100% { background-position: -20% 0; } }
@keyframes toll {
  0%, 4% { background: #2c2932; box-shadow: 0 0 0 0 rgba(245,194,122,0); }
  7% { background: #f5c27a; box-shadow: 0 0 22px 6px rgba(232,160,64,0.55); }
  22%, 100% { background: #2c2932; box-shadow: 0 0 0 0 rgba(245,194,122,0); }
}
@keyframes king {
  0%, 60% { box-shadow: 0 0 18px 4px rgba(185,227,247,0.25); }
  70% { box-shadow: 0 0 40px 12px rgba(185,227,247,0.7); }
  100% { box-shadow: 0 0 18px 4px rgba(185,227,247,0.25); }
}
@keyframes flicker {
  0%, 100% { filter: brightness(1) saturate(1); }
  18% { filter: brightness(1.12) saturate(1.15); }
  22% { filter: brightness(0.96); }
  47% { filter: brightness(1.07) saturate(1.1); }
  71% { filter: brightness(0.98); }
  83% { filter: brightness(1.14) saturate(1.2); }
}
.flicker { animation: flicker 3.4s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(240,169,74,0.08), 0 30px 80px rgba(232,140,50,0.10); }
  50% { box-shadow: 0 0 0 6px rgba(240,169,74,0.16), 0 30px 90px rgba(232,140,50,0.24); }
}
.plan-full { animation: glow 4.5s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; translate: 0 48px; scale: 0.97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes par { to { translate: 0 180px; } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
  .plan-full.reveal { animation: rise linear both, glow 4.5s ease-in-out infinite; animation-timeline: view(), auto; animation-range: entry 0% cover 24%, normal; }
  .par { animation: par linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
}
@media (prefers-reduced-motion: reduce) {
  .kenburns, .ember, .star, .shine, .bell, .king-bell, .flicker, .plan-full, .reveal, .par, .plan-full.reveal { animation: none; }
  .card, .tile video, details.row > summary::after { transition: none; }
}
