/* Lucky Ember Games — 公司网站样式。午夜蓝黑底，余烬橙和香槟色点缀；标题用 Barlow Condensed 配一行斜体衬线字，正文用系统字体。
   页面背后是一张固定铺满窗口的三维画布（js/stage.js），各区块半透明地盖在它上面滚动。 */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; src: url("../fonts/BarlowCondensed-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("../fonts/BarlowCondensed-700.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #05070f;
  --panel: rgba(12, 15, 27, .68); --panel-hi: rgba(255, 255, 255, .05);
  --line: rgba(222, 228, 255, .09); --line2: rgba(222, 228, 255, .18);
  --ink: #f4f2ee; --soft: #d5d6de; --muted: #a2a6b6; --dim: #6c7082;
  --ember: #ff5a1f; --ember2: #ff8a3c; --gold: #e8c88c; --cream: #fff1dc;
  --accent: var(--ember2);
  --disp: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--disp); font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
::selection { background: var(--ember); color: #160a04; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - var(--pad) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: #1a1206; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- 背后的画面 ---------- */
/* 画布还没画出来（或者浏览器不支持）时的底图：右边一团余烬的光 */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(34% 46% at 74% 46%, rgba(255, 110, 40, .34), rgba(255, 90, 31, .08) 55%, transparent 75%), radial-gradient(60% 50% at 20% 100%, rgba(70, 100, 190, .16), transparent 70%), var(--bg); }
#stage { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
#stage.ready { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* ---------- 导航 ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(16px + env(safe-area-inset-top)) var(--pad) 16px; }
/* 离开顶部后的半透明毛玻璃底画在伪元素上：要是直接加在导航自己身上，里面那层整屏菜单就会被框死在导航这一条里 */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: rgba(5, 7, 15, .66); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav.scrolled::before { opacity: 1; }
.menu-btn, .nav-foot { display: none; }
.sm { display: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.brand b { font-weight: 500; color: var(--muted); }
.mark { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 12px rgba(255, 106, 42, .45)); }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 38px); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav nav a:not(.btn) { color: var(--muted); position: relative; padding: 6px 0; transition: color .25s; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ember2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav nav a:not(.btn):hover { color: var(--ink); }
.nav nav a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- 按钮 ---------- */
.btn { --tx: 0px; --ty: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border-radius: 999px;
  font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transform: translate(var(--tx), var(--ty)); transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .35s; will-change: transform; }
.btn-solid { background: linear-gradient(180deg, #fff6e6, #f3cf9a); color: #1c1108; box-shadow: 0 14px 40px -14px rgba(255, 110, 40, .85), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.btn-solid:hover { box-shadow: 0 18px 54px -12px rgba(255, 110, 40, 1), 0 0 0 1px rgba(255, 255, 255, .4) inset; }
.btn-ghost { border-color: var(--line2); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 255, 255, .05); }
.nav .btn { min-height: 40px; padding: 0 20px; font-size: 12px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: max(100svh, 680px); display: flex; flex-direction: column; justify-content: center; touch-action: pan-y; }
.hero-copy { width: min(1200px, 100% - var(--pad) * 2); margin-inline: auto; padding: 96px 0 120px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 90, 31, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }
.hero h1 { font-size: clamp(54px, 7.2vw, 118px); line-height: .9; max-width: none; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; transform: translateY(112%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .09s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .18s; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .9em; text-transform: none; letter-spacing: -.02em; padding-right: .12em; background: linear-gradient(100deg, var(--cream), #ffb066 45%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { to { transform: none; } }
.lede { margin: 28px 0 34px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--soft); max-width: 500px !important; opacity: 0; animation: fade .9s .45s ease forwards; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero .cta { opacity: 0; animation: fade .9s .6s ease forwards; }
@keyframes fade { to { opacity: 1; } }
/* 首屏底边：一条细线，左边三项事实，右边一句操作提示 */
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; width: min(1200px, 100% - var(--pad) * 2); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 20px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); opacity: 0; animation: fade 1s .8s ease forwards; }
.hero-meta { display: flex; gap: clamp(28px, 5vw, 72px); margin: 0; }
.hero-meta dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero-meta dd { margin: 0; font-family: var(--disp); font-weight: 500; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.hint { margin: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hint-touch { display: none; }
/* 鼠标指到背后漂浮的游戏图标时：换成手型，图标下面跟一个小标签（js/stage.js 里创建和摆位置） */
.pick .hero, .pick .contact { cursor: pointer; }
.orbit-tag { position: fixed; left: 0; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(8, 10, 20, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.orbit-tag.on { opacity: 1; }
.orbit-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.orbit-tag b { font-weight: 600; color: var(--ink); }
.orbit-tag span { color: var(--muted); }

/* ---------- 各区块公用 ---------- */
section { position: relative; }
.games, .studio, .principles { padding: clamp(96px, 13vw, 180px) 0; background: rgba(5, 7, 15, .6); }
/* 从首屏到内容区，背后的画面是慢慢暗下去的 */
.games { background: linear-gradient(180deg, rgba(5, 7, 15, 0), rgba(5, 7, 15, .6) 420px); }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ember2); }
.kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; }
h2 { font-size: clamp(48px, 7.4vw, 108px); }
h2 .thin { display: block; margin-top: .2em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .5em; line-height: 1.1; text-transform: none; letter-spacing: -.01em; color: var(--gold); }
h3 { font-size: 30px; }
.section-lede { margin: 26px 0 0; max-width: 54ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.big { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--ink); }
/* 滚动到了才显示。只有脚本能跑时（html 上有 js 这个类）才先藏起来，不开脚本的浏览器和搜索引擎直接看到全部内容 */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* 玻璃质感的面板；带 .tilt 的会跟着鼠标倾斜，并在鼠标处有一块光 */
.tilt, .more, .facts { position: relative; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel-hi), rgba(255, 255, 255, .012)), var(--panel); }
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --lit: 0; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s, opacity .9s var(--ease); overflow: hidden; }
.tilt::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--lit); transition: opacity .3s; background: radial-gradient(280px circle at var(--mx) var(--my), rgba(255, 150, 80, .2), transparent 65%); background: radial-gradient(280px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 24%, transparent), transparent 65%); }
.tilt:hover { border-color: rgba(255, 150, 80, .5); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.js .tilt.reveal { transform: perspective(900px) translateY(28px); }
.js .tilt.reveal.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* ---------- 游戏 ---------- */
.game { position: relative; scroll-margin-top: 96px; }
.game + .game { margin-top: clamp(110px, 15vw, 210px); }
/* 每款游戏开头一条编号线 */
.game-no { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(40px, 6vw, 76px); font-family: var(--disp); font-weight: 700; font-size: 17px; letter-spacing: .22em; color: var(--accent); }
.game-no::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.game-no::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(222, 228, 255, .1) 30%, transparent); opacity: .7; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.game-grid.flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 11px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink); font-weight: 600; background: rgba(255, 255, 255, .03); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill.live { color: #8ee6a6; border-color: rgba(142, 230, 166, .38); }
.pill.dev { color: var(--gold); border-color: rgba(232, 200, 140, .38); }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.app-id img { width: 76px; height: 76px; border-radius: 19px; flex: none; box-shadow: 0 18px 36px -14px #000, 0 0 0 1px var(--line2); }
.app-id h3 { font-size: clamp(28px, 2.6vw, 34px); letter-spacing: .03em; line-height: 1.02; margin-bottom: 6px; }
.app-id span { font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.features { list-style: none; margin: 32px 0 36px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.features li { padding: 22px 22px 24px; }
.features b { display: block; margin-bottom: 8px; font-family: var(--disp); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.features b::before { content: ""; display: block; width: 20px; height: 2px; margin-bottom: 14px; border-radius: 2px; background: var(--accent); }
.features span { font-size: 15px; line-height: 1.55; color: var(--muted); }
.fineprint { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--dim); }

/* 截图样机：竖屏游戏左右排开；横屏游戏（.land）上下叠放。--ar 是截图的宽高比，--k 可以把某一组样机整体缩小一点 */
.phones { position: relative; }
.phone-stage { position: relative; height: clamp(470px, 58vw, 650px); perspective: 1500px; perspective-origin: 50% 45%; }
.phone-stage::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 70px; border-radius: 50%; filter: blur(26px); opacity: .5; pointer-events: none; background: rgba(255, 138, 60, .5); background: color-mix(in srgb, var(--accent) 55%, transparent); }
.phone { --x: 0px; --y: 0px; --z: 0px; --ry: 0deg; --rx: 0deg; --o: 1; --s: 1; position: absolute; left: 50%; top: 50%; margin: 0; height: calc(clamp(400px, 49vw, 560px) * var(--k, 1)); aspect-ratio: var(--ar, 600 / 1304);
  transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)) rotateY(var(--ry)) rotateX(var(--rx)) scale(var(--s)); opacity: var(--o);
  border-radius: 36px; padding: 6px; background: linear-gradient(155deg, #585d6e, #171920 34%, #0b0c11 62%, #3a3e4c);
  box-shadow: 0 50px 90px -34px #000, 0 0 0 1px rgba(222, 228, 255, .12), inset 0 0 0 1px rgba(0, 0, 0, .7);
  transition: transform .8s var(--ease), opacity .6s ease, box-shadow .6s ease; transform-style: preserve-3d; cursor: pointer; will-change: transform; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #0a0b10; }
.phone::after { content: ""; position: absolute; inset: 6px; border-radius: 30px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .2), transparent 26%, transparent 72%, rgba(255, 255, 255, .06)); mix-blend-mode: screen; }
.phone.is-front { cursor: default; box-shadow: 0 60px 120px -40px #000, 0 0 90px -26px rgba(255, 138, 60, .6), 0 0 0 1px rgba(222, 228, 255, .2); box-shadow: 0 60px 120px -40px #000, 0 0 90px -26px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 1px rgba(222, 228, 255, .2); }
.phones.land .phone-stage { height: clamp(380px, 46vw, 520px); perspective-origin: 50% 50%; }
.phones.land .phone { height: auto; width: min(100%, clamp(280px, 40vw, 520px)); border-radius: 26px; padding: 5px; }
.phones.land .phone img { border-radius: 21px; }
.phones.land .phone::after { inset: 5px; border-radius: 21px; }
.phone-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--ink); font-size: 17px; cursor: pointer; transition: border-color .25s, color .25s, transform .25s var(--ease); }
.round:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.dots { display: flex; gap: 8px; }
.dots button { width: 26px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: var(--line2); cursor: pointer; transition: background .3s, width .3s var(--ease); }
.dots button[aria-selected="true"] { background: var(--accent); width: 46px; }

.more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 72px); align-items: center; margin-top: clamp(90px, 12vw, 160px); padding: clamp(28px, 4vw, 52px); border-style: dashed; border-color: var(--line2); }
.more .kicker { margin-bottom: 12px; }
.more h3 { font-size: clamp(30px, 3.6vw, 46px); }
.more p { margin: 0; color: var(--muted); }
.more a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 工作室 ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio-copy p:not(.big) { color: var(--muted); max-width: 60ch; }
a.inline { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232, 200, 140, .45); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.facts div { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div:nth-child(2n) { border-right: 0; }
.facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.facts dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.facts dd { margin: 0; font-family: var(--disp); font-weight: 700; font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; line-height: 1; }

/* ---------- 原则 ---------- */
.principles { padding-top: 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { min-height: 350px; padding: 30px 28px 32px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 22px; }
.card::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: linear-gradient(90deg, var(--ember2), transparent); }
.card .num { position: absolute; top: 26px; left: 28px; font-family: var(--disp); font-weight: 700; font-size: 76px; line-height: 1; background: linear-gradient(180deg, var(--cream), #ffb066 50%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card h3 { font-size: 34px; margin-bottom: 12px; position: relative; }
.card p { margin: 0; color: var(--muted); font-size: 16px; position: relative; }

/* ---------- 联系：上面空出来的那块留给背后重新出现的余烬 ---------- */
.contact { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 12vw, 150px); background: linear-gradient(180deg, rgba(5, 7, 15, .6), rgba(5, 7, 15, 0) 260px); touch-action: pan-y; }
.ember-slot { height: clamp(320px, 56vh, 520px); }
.contact-box { text-align: center; }
.contact-box .kicker::after { content: ""; width: 30px; height: 1px; background: currentColor; }
.contact-box h2 { font-size: clamp(40px, 6.4vw, 88px); }
.mail { --tx: 0px; --ty: 0px; display: inline-block; margin: 40px 0 18px; font-family: var(--disp); font-weight: 700; font-size: clamp(26px, 4.4vw, 58px); letter-spacing: .02em; text-transform: uppercase; color: var(--gold);
  background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; padding-bottom: 6px; transform: translate(var(--tx), var(--ty)); transition: background-size .5s var(--ease), color .3s, transform .25s var(--ease); word-break: break-word; }
.mail:hover { background-size: 100% 2px; color: var(--cream); }
.contact-note { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); background: rgba(4, 5, 11, .9); font-size: 14px; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer .brand { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 28px; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.footer a:hover { color: var(--gold); }
address { font-style: normal; line-height: 1.7; margin-bottom: 18px; }
address b { color: var(--ink); font-weight: 600; }
address a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.legal { margin: 0; font-size: 12.5px; color: var(--dim); max-width: 80ch; }

/* ---------- 内容页：游戏详情、指南、公司介绍（页头页脚和首页一样，正文一栏） ---------- */
.page { padding: 132px 0 110px; }
.page > .wrap { width: min(900px, 100% - var(--pad) * 2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs > * + *::before { content: "/"; margin-right: 8px; color: var(--dim); }
.page h1 { font-size: clamp(44px, 6.6vw, 86px); margin-bottom: 20px; }
.page .lede2 { max-width: 64ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink); }
.byline { margin: 18px 0 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.page h2 { margin: 64px 0 16px; font-size: clamp(30px, 3.6vw, 42px); scroll-margin-top: 96px; }
.page h2::before { content: ""; display: block; width: 30px; height: 2px; margin-bottom: 18px; border-radius: 2px; background: var(--ember2); }
.page h3 { margin: 30px 0 8px; font-size: 23px; letter-spacing: .03em; line-height: 1.1; }
.page p, .page li { color: var(--soft); }
.page li { margin: 8px 0; }
.page ul, .page ol { padding-left: 22px; }
.page b { color: var(--ink); font-weight: 600; }
.page p a, .page li a, .page td a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232, 200, 140, .45); }
.page p a:hover, .page li a:hover { color: var(--cream); }
.page .cta { margin: 28px 0 0; }
.page .cta .btn { text-decoration: none; }
.page .cta .btn-solid { color: #1c1108; }
.page .cta .btn-ghost { color: var(--ink); }
.gamehead { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.gamehead img { width: 92px; height: 92px; flex: none; border-radius: 23px; box-shadow: 0 20px 40px -16px #000, 0 0 0 1px var(--line2); }
.gamehead .status { margin: 0 0 12px; }
.gamehead h1 { margin: 0; font-size: clamp(38px, 5.4vw, 70px); }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--panel-hi), rgba(255, 255, 255, .012)), var(--panel); }
.keyfacts div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.keyfacts div:nth-child(3n) { border-right: 0; }
.keyfacts div:nth-last-child(-n + 3) { border-bottom: 0; }
.keyfacts dt { margin-bottom: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.keyfacts dd { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; color: var(--ink); }
/* 截图：横向一排，可以左右划 */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 24%); gap: 14px; margin: 0 calc(var(--pad) * -1); padding: 6px var(--pad) 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.shots img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line2); scroll-snap-align: center; background: #0a0b10; }
.shots.land { grid-auto-columns: minmax(300px, 64%); }
.table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.page table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 15px; }
.page th { padding: 15px 16px; text-align: left; font: 600 11px/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); white-space: nowrap; }
.page td { padding: 14px 16px; vertical-align: middle; color: var(--soft); border-bottom: 1px solid var(--line); }
.page tr:last-child td { border-bottom: 0; }
.hand { white-space: nowrap; }
.pc { display: inline-block; min-width: 31px; margin: 1px 2px 1px 0; padding: 4px 4px 3px; border-radius: 6px; background: #f4f2ee; color: #14161d; font: 700 14px/1.15 var(--body); text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.pc.r { color: #cf2a2a; }
.note { margin: 20px 0; padding-left: 16px; border-left: 2px solid var(--line2); font-size: 13.5px; line-height: 1.6; color: var(--dim) !important; }
/* 常见问题：一问一答，点开看答案 */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { position: relative; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: .03em; line-height: 1.15; text-transform: uppercase; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--body); color: var(--ember2); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { margin: 0 0 22px; max-width: 70ch; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 64px; padding: clamp(26px, 4vw, 40px); border: 1px solid var(--line2); border-radius: 22px; background: radial-gradient(70% 140% at 100% 100%, rgba(255, 90, 31, .22), transparent 70%), var(--panel); }
.cta-band .kicker { margin-bottom: 10px; }
.cta-band h3 { margin: 0; font-size: clamp(26px, 3vw, 34px); max-width: 22ch; }
.cta-band .btn-solid { color: #1c1108; text-decoration: none; }
.linkcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.linkcard { display: block; padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel-hi), rgba(255, 255, 255, .012)), var(--panel); transition: border-color .3s, transform .4s var(--ease); }
.linkcard:hover { border-color: rgba(255, 138, 60, .55); transform: translateY(-3px); }
.linkcard b { display: block; margin-bottom: 8px; font-family: var(--disp); font-size: 24px; letter-spacing: .03em; line-height: 1.08; text-transform: uppercase; color: var(--ink); }
.linkcard b::after { content: " \2192"; color: var(--ember2); }
.linkcard span { font-size: 15px; line-height: 1.5; color: var(--muted); }
/* 首页每款游戏按钮旁边的“详情”链接 */
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.textlink::after { content: "\2192"; transition: transform .3s var(--ease); }
.textlink:hover::after { transform: translateX(4px); }

/* ---------- 隐私政策等文字页 ---------- */
.doc { padding: 150px 0 96px; }
.doc .wrap { width: min(760px, 100% - var(--pad) * 2); }
.doc h1 { font-size: clamp(44px, 7vw, 80px); margin-bottom: 10px; }
.doc .date { color: var(--dim); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 40px; }
.doc h2 { font-size: 30px; margin: 46px 0 12px; color: var(--gold); scroll-margin-top: 96px; }
.doc h3 { font-size: 21px; letter-spacing: .03em; line-height: 1.15; margin: 26px 0 8px; color: var(--ink); }
.doc b { color: var(--ink); font-weight: 600; }
.doc.lost { min-height: 72vh; display: flex; align-items: center; }
.doc.lost .cta { margin-top: 30px; }
.doc.lost .btn { text-decoration: none; }
.doc.lost .btn-solid { color: #1c1108; }
.doc.lost .btn-ghost { color: var(--ink); }
.footer .legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ember2); text-decoration: underline; text-underline-offset: 3px; }

/* 中等宽度放不下右边那句提示 */
@media (max-width: 1180px) and (min-width: 901px) { .hint { display: none; } }

/* ---------- 窄屏：平板竖屏和手机 ---------- */
@media (max-width: 900px) {
  /* 导航：链接收进右上角的按钮，点开是整屏菜单，大字一行一项 */
  .brand, .menu-btn { position: relative; z-index: 2; }
  .menu-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); cursor: pointer; }
  .menu-btn i { width: 18px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
  .nav.open .menu-btn i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .menu-btn i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: calc(96px + env(safe-area-inset-top)) var(--pad) calc(36px + env(safe-area-inset-bottom));
    background: radial-gradient(90% 50% at 80% 100%, rgba(255, 90, 31, .16), transparent 70%), rgba(5, 7, 15, .97); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
  .nav.open nav { opacity: 1; visibility: visible; }
  .nav nav > a { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .6s var(--ease), color .25s; }
  .nav.open nav > a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 80ms); }
  .nav nav > a:not(.btn) { padding: 4px 0; font: 700 clamp(46px, 13.5vw, 72px)/1.04 var(--disp); letter-spacing: .01em; color: var(--ink); }
  .nav nav > a:not(.btn)::after { display: none; }
  .nav nav > .btn { margin-top: 30px; min-height: 54px; padding: 0 34px; font-size: 13px; }
  .nav-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: auto 0 0; padding-top: 28px; font-size: 12px; letter-spacing: .14em; }
  .nav nav .nav-foot a { padding: 0; color: var(--muted); }
  .nav nav .nav-foot a::after { display: none; }
  .menu-open, .menu-open body { overflow: hidden; }

  /* 首屏：火种在上半屏，文字沉到下半屏，中间垫一层渐暗；最底下一条三格的数据栏 */
  .hero { justify-content: flex-end; min-height: max(100svh, 760px); }
  .hero::before { content: ""; position: absolute; inset: 30% 0 0 0; background: linear-gradient(180deg, transparent, rgba(5, 7, 15, .7) 30%, rgba(5, 7, 15, .9)); pointer-events: none; }
  .hero-copy { position: relative; padding: 0 0 142px; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 0 calc(18px + env(safe-area-inset-bottom)); }
  .hero-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0; }
  .hero-meta div + div { padding-left: clamp(14px, 4vw, 32px); border-left: 1px solid var(--line); }
  .hint { white-space: normal; font-size: 10px; letter-spacing: .2em; color: var(--dim); }

  /* 游戏：一栏到底。先是状态和图标名字，紧接着就是截图，然后才是介绍、特点和按钮 */
  .game-grid, .game-grid.flip { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .game-copy { display: contents; }
  .status { order: 1; margin-bottom: 18px; }
  .app-id { order: 2; margin-bottom: 8px; }
  .phones { order: 3; margin: 0 calc(var(--pad) * -1) 34px; overflow: hidden; }
  .game-copy > .big { order: 4; }
  .features { order: 5; }
  .game-copy > .cta { order: 6; }
  .fineprint { order: 7; }
  .phones.land .phone-stage { height: clamp(300px, 74vw, 460px); }
  .phones.land .phone { width: min(86%, 460px); }
  .studio-grid, .more { grid-template-columns: 1fr; }

  /* 原则：三张卡改成横排——左边编号，右边标题和说明 */
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 64px 1fr; align-items: start; min-height: 0; padding: 26px 24px 28px; }
  .card .num { position: static; grid-row: 1 / span 2; font-size: 44px; }
  .card h3 { font-size: 30px; margin: 4px 0 10px; }
  .card p { grid-column: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lg { display: none; }
  .sm { display: inline; }
  .brand { font-size: 19px; letter-spacing: .07em; gap: 9px; }
  .mark { width: 29px; height: 29px; }
  .nav { padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 12px; }

  .hero { min-height: max(100svh, 700px); }
  .eyebrow { font-size: 11px; letter-spacing: .16em; gap: 10px; margin-bottom: 16px; white-space: nowrap; }
  .hero h1 { font-size: clamp(50px, 15.4vw, 66px); }
  .lede { margin: 18px 0 24px; font-size: 16px; line-height: 1.55; }
  .hero .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .cta .btn { min-height: 52px; padding: 0 12px; }
  .hero-copy { padding-bottom: 128px; }
  .hero-meta dt { font-size: 10px; letter-spacing: .2em; }
  .hero-meta dd { font-size: 16px; letter-spacing: .06em; }

  .games, .studio, .principles { padding: 84px 0; }
  .principles { padding-top: 0; }
  .section-head { margin-bottom: 44px; }
  h2 { font-size: clamp(46px, 13.4vw, 60px); }
  h2 .thin { font-size: .52em; }
  .section-lede { margin-top: 20px; font-size: 16px; }
  .big { font-size: 18px; line-height: 1.5; }
  .game + .game { margin-top: 104px; }
  .game-no { margin-bottom: 30px; font-size: 15px; }
  .app-id { gap: 14px; }
  .app-id img { width: 64px; height: 64px; border-radius: 16px; }
  .app-id h3 { font-size: 27px; }
  .app-id span { font-size: 13px; }
  .phone-stage { height: 500px; }
  .phone { height: calc(440px * var(--k, 1)); border-radius: 32px; }
  .phone img, .phone::after { border-radius: 26px; }
  .phones.land .phone-stage { height: 76vw; }
  .phone-nav { margin-top: 18px; }
  .phone-nav .round { display: none; }           /* 手机上直接划，或者点两边露出来的那台 */
  .dots { gap: 10px; }
  .dots button { width: 22px; height: 3px; box-sizing: content-box; padding: 12px 0; background-clip: content-box; }
  .dots button[aria-selected="true"] { width: 40px; background-clip: content-box; }
  /* 特点：不要一张张盒子，改成带编号的细线列表，手机上更干净也更短 */
  .features { grid-template-columns: 1fr; gap: 0; margin: 26px 0 30px; border-top: 1px solid var(--line); counter-reset: feat; }
  .features li { display: grid; grid-template-columns: 40px 1fr; padding: 18px 0 19px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; counter-increment: feat; }
  .features li::after { content: "0" counter(feat); grid-column: 1; grid-row: 1 / span 2; padding-top: 3px; font: 700 14px/1 var(--disp); letter-spacing: .14em; color: var(--accent); }
  .features b, .features span { grid-column: 2; }
  .features b { margin-bottom: 5px; font-size: 21px; }
  .features b::before { display: none; }
  .game-copy > .cta .btn { width: 100%; min-height: 54px; }
  .fineprint { margin-top: 24px; padding-top: 0; border-top: 0; font-size: 12.5px; }
  .more { margin-top: 84px; padding: 28px 22px; gap: 14px; }
  .more h3 { font-size: 30px; }

  .studio-grid { gap: 34px; }
  .facts div { padding: 22px 18px; }
  .facts dd { font-size: 24px; }
  .card { grid-template-columns: 54px 1fr; padding: 24px 20px 26px; }
  .card .num { font-size: 38px; }
  .card h3 { font-size: 27px; }
  .ember-slot { height: clamp(260px, 42vh, 360px); }
  .contact-box h2 .thin { font-size: .44em; }
  .mail { margin: 30px 0 16px; font-size: clamp(24px, 7.4vw, 34px); }

  .footer { padding-top: 40px; }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; width: 100%; }
  .doc { padding-top: 120px; }
  .page { padding: 112px 0 84px; }
  .gamehead { gap: 16px; align-items: flex-start; }
  .gamehead img { width: 68px; height: 68px; border-radius: 17px; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .keyfacts div { padding: 16px 18px; }
  .keyfacts div:nth-child(3n) { border-right: 1px solid var(--line); }
  .keyfacts div:nth-child(2n) { border-right: 0; }
  .keyfacts div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .keyfacts div:nth-last-child(-n + 2) { border-bottom: 0; }
  .keyfacts dd { font-size: 19px; }
  .shots { grid-auto-columns: 62%; }
  .shots.land { grid-auto-columns: 86%; }
  .page h2 { margin-top: 52px; }
  .qa summary { font-size: 20px; }
  .page .cta { display: grid; gap: 10px; }
  .cta-band .btn { width: 100%; }
  .game-copy > .cta { flex-direction: column; align-items: stretch; }
  .textlink { justify-content: center; }
}
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }

/* ---------- 不想看动画的人 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .line > span, .lede, .hero .cta, .hero-foot { animation: none; transform: none; opacity: 1; }
  .dot { animation: none; }
  .js .reveal, .js .tilt.reveal { opacity: 1; transform: none; transition: none; }
  .phone, .tilt, .btn, .mail { transition: none; }
  .hint { display: none; }
}
