:root { --bg:#16131f; --card:#211c2f; --card2:#2a2440; --line:#3a3350; --ink:#f3ede2; --mute:#a69fb6; --dim:#6f6884; --accent:#f2a65a; --accent2:#7fd1b9; --paper:#f6efe1; --r:16px; --pad:6vw; --ease:cubic-bezier(.2,.7,.2,1); }
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { background:var(--bg); color:var(--ink); font:16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing:antialiased; overflow-x:hidden;
  background-image:radial-gradient(900px 600px at 85% -10%, #f2a65a1f, transparent 60%), radial-gradient(800px 600px at -10% 30%, #7a3fb51c, transparent 60%); background-repeat:no-repeat; }
a { color:var(--accent); }
.serif, h1, h2, h3 { font-family: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif; letter-spacing:-.01em; }
::selection { background:#f2a65a55; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* 双语：html.zh 时显示 data-l="zh"，否则显示 data-l="en" */
html:not(.zh) [data-l="zh"], html.zh [data-l="en"] { display:none !important; }

/* 页首：吸顶、半透明 */
header.top { position:sticky; top:0; z-index:40; display:flex; align-items:center; justify-content:space-between; padding:12px var(--pad); gap:16px; background:#16131fcc; -webkit-backdrop-filter:blur(14px) saturate(1.4); backdrop-filter:blur(14px) saturate(1.4); border-bottom:1px solid #ffffff0d; }
.logo { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:bold; color:var(--ink); text-decoration:none; font-family:Georgia, serif; white-space:nowrap; }
.logo img { width:32px; height:32px; }
.logo small { font-size:13px; color:var(--mute); font-weight:normal; font-family:inherit; margin-left:4px; }
nav.main { display:flex; align-items:center; gap:22px; }
nav.main a { color:var(--mute); text-decoration:none; font-size:15px; transition:color .2s; }
nav.main a:hover { color:var(--ink); }
.lang { background:#ffffff08; border:1px solid var(--line); color:var(--ink); border-radius:20px; padding:6px 13px; font-size:13px; cursor:pointer; transition:border-color .2s, background .2s; }
.lang:hover { border-color:var(--accent); }

main { min-height:60vh; }
section { padding:48px var(--pad); }
.eyebrow { color:var(--accent); font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; margin-bottom:8px; }
html.zh .eyebrow { letter-spacing:.08em; }
h2 { font-size:32px; line-height:1.2; margin-bottom:6px; }
.sub { color:var(--mute); font-size:15px; margin-bottom:22px; }
.sub a { text-decoration:none; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; background:linear-gradient(180deg,#f7b56f,#ee9a48); color:#1b1420; padding:13px 26px; border-radius:30px; font-weight:700; font-size:16px; text-decoration:none; border:0; cursor:pointer; box-shadow:0 6px 18px #f2a65a33, inset 0 1px 0 #ffffff55; transition:transform .15s var(--ease), box-shadow .2s, filter .2s; white-space:nowrap; }
.btn:hover { transform:translateY(-1px); box-shadow:0 10px 24px #f2a65a4d, inset 0 1px 0 #ffffff55; }
.btn:active { transform:translateY(1px); }
.btn.ghost { background:#ffffff08; color:var(--ink); border:1px solid #4a4260; box-shadow:none; }
.btn.ghost:hover { border-color:var(--accent); }
.btn.small { padding:8px 16px; font-size:14px; }
.btn[disabled] { opacity:.5; cursor:default; transform:none; }

/* 首页：左文案、右直接能玩的游戏 */
.hero { padding:40px var(--pad) 30px; display:grid; grid-template-columns:1fr 420px; gap:56px; align-items:center; max-width:1240px; margin:0 auto; }
.hero h1 { font-size:58px; line-height:1.05; margin-bottom:18px; }
.hero h1 em { color:var(--accent); font-style:italic; }
.hero p.lead { color:var(--mute); font-size:19px; margin-bottom:24px; max-width:520px; }
.hero .feat { background:linear-gradient(135deg,#2a2440,#211c2f); border:1px solid #ffffff0f; border-radius:var(--r); padding:16px 18px; margin-bottom:24px; max-width:520px; }
.hero .feat b { font-family:Georgia, serif; font-size:19px; }
.hero .feat p { color:var(--mute); font-size:15px; margin-top:4px; }
.hero .cta { display:flex; gap:12px; flex-wrap:wrap; }
.stage { position:relative; width:420px; height:700px; border-radius:22px; overflow:hidden; background:#2b231d; box-shadow:0 30px 80px #000b, 0 0 0 1px #ffffff14; }
.stage iframe { width:100%; height:100%; border:0; display:block; }
.stage .poster { position:absolute; inset:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; gap:6px; padding:20px; background:#2b231d center/cover no-repeat; color:var(--ink); text-decoration:none; }
.stage .poster::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 30%, #140c18e6 88%); }
.stage .poster > * { position:relative; }
.stage .poster b { font-family:Georgia, "Songti SC", serif; font-size:26px; line-height:1.15; }
.stage .poster small { color:#d8cfc2; font-size:14px; line-height:1.45; margin-bottom:10px; }
.stage .poster .btn { align-self:stretch; padding:14px; font-size:17px; }
.stage-note { color:var(--mute); font-size:13px; text-align:center; margin-top:12px; }
.stage-note a { color:var(--mute); }

/* 货架 */
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:20px; }
.game { background:var(--card); border:1px solid #ffffff0d; border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; color:var(--ink); transition:transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.game:hover { transform:translateY(-3px); box-shadow:0 18px 40px #0008; border-color:#ffffff1f; }
.game .art { position:relative; aspect-ratio:5 / 3; display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start; padding:14px 16px; color:var(--ink); text-decoration:none; background:linear-gradient(135deg,#8c2f39,#e0a458) center/cover no-repeat; }
.game .art::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 45%, #0d0912d9); }
.game .art > * { position:relative; z-index:1; }
.game .art .t { font-size:23px; font-weight:bold; line-height:1.2; font-family:Georgia, "Songti SC", serif; text-shadow:0 2px 10px #000a; }
.game .art .pill { background:#140c18b3; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.game .meta { padding:14px 16px 18px; flex:1; display:flex; flex-direction:column; gap:12px; }
.game .meta p { color:var(--mute); font-size:14px; line-height:1.5; flex:1; }
.game .meta .row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.game .meta .row .hint { margin-left:auto; }
.pill { display:inline-block; font-size:11px; font-weight:700; padding:4px 9px; border-radius:20px; background:#3a3350; color:var(--accent2); letter-spacing:.06em; text-transform:uppercase; text-decoration:none; }
.pill.hot { color:var(--accent); }

/* 我的人生 */
.lives { background:var(--card); border:1px solid #ffffff0d; border-radius:var(--r); padding:22px 24px; }
.lives .stats { display:flex; gap:34px; flex-wrap:wrap; margin-bottom:12px; }
.lives .stats div b { display:block; font-size:34px; line-height:1.1; font-family:Georgia, serif; color:var(--accent); }
.lives .stats div span { color:var(--mute); font-size:13px; }
.lives h3 { font-size:18px; }
.endings { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:10px; margin-top:10px; }
.ending { border:1px dashed var(--line); border-radius:12px; padding:10px 12px; font-size:14px; color:var(--dim); }
.ending.got { border:1px solid #f2a65a88; color:var(--ink); background:linear-gradient(135deg,#3a2a1c,#2a2440); }
.ending small { display:block; color:var(--mute); font-size:12px; margin-top:2px; }
.empty { color:var(--mute); font-size:15px; }

/* 意向单：一行一个，右边票数按钮，底下一条相对票数 */
.wish { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:10px; }
.opt { position:relative; background:var(--card); border:1px solid #ffffff0d; border-radius:14px; padding:14px 14px 14px 16px; display:flex; gap:14px; align-items:center; overflow:hidden; transition:border-color .2s; }
.opt.on { border-color:#f2a65a66; }
.opt .txt { flex:1; min-width:0; }
.opt .txt b { display:block; font-size:16px; line-height:1.3; }
.opt .txt span { display:block; color:var(--mute); font-size:13px; line-height:1.45; margin-top:2px; }
.opt .txt .pill { margin-top:6px; }
.opt .bar-v { position:absolute; left:0; bottom:0; height:3px; background:linear-gradient(90deg,#f2a65a,#f7c88f); border-radius:0 3px 3px 0; transition:width .5s var(--ease); }
.opt .vote { flex:none; display:flex; align-items:center; gap:8px; background:#ffffff08; border:1px solid var(--line); color:var(--ink); border-radius:22px; padding:8px 14px; cursor:pointer; font-size:13px; font-weight:600; white-space:nowrap; transition:border-color .2s, background .2s, transform .15s; }
.opt .vote:hover:not(:disabled) { border-color:var(--accent); background:#f2a65a14; }
.opt .vote:active:not(:disabled) { transform:scale(.96); }
.opt .vote b { color:var(--accent); font-size:15px; }
.opt .vote b:empty { display:none; }
.opt .vote.on { border-color:var(--accent); background:#3a2a1c; color:var(--accent); }
.opt .vote:disabled { cursor:default; }
.wish-more { margin-top:18px; background:var(--card); border:1px solid #ffffff0d; border-radius:var(--r); padding:18px; display:grid; gap:10px; max-width:720px; }
input[type=text], input[type=email], textarea { background:#120f1a; border:1px solid #4a4260; color:var(--ink); padding:12px 14px; border-radius:12px; font:inherit; font-size:16px; width:100%; transition:border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px #f2a65a26; }
textarea { resize:vertical; min-height:64px; }
.form-row { display:flex; gap:10px; flex-wrap:wrap; }
.form-row input { flex:1; min-width:200px; }
.msg { font-size:14px; color:var(--accent2); min-height:20px; }
.msg:empty { min-height:0; }
.wish-msg:not(:empty) { margin-top:10px; }
.msg.err { color:#ff8f8f; }
.hint { color:var(--mute); font-size:13px; }

.join { margin:24px var(--pad) 48px; background:radial-gradient(600px 200px at 0% 0%, #f2a65a26, transparent 70%), linear-gradient(120deg,#2a2440,#211c2f); border:1px solid #ffffff12; border-radius:20px; padding:30px 32px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.join form { display:flex; gap:10px; flex-wrap:wrap; }
.join input { width:260px; border-radius:24px; }

/* 单款介绍页 */
.page { padding:28px var(--pad) 48px; max-width:1100px; }
.page.narrow { max-width:780px; }
.page h1 { font-size:46px; line-height:1.1; margin:10px 0; }
.page .lead { color:var(--mute); font-size:19px; margin-bottom:22px; }
.page h2 { margin-top:32px; margin-bottom:10px; font-size:24px; }
.page p, .page li { margin-bottom:10px; }
.page ul { padding-left:22px; }
.page li::marker { color:var(--accent); }
.page .two { display:grid; grid-template-columns:1fr 320px; gap:40px; align-items:start; }
.page .shot { display:block; width:100%; height:auto; border-radius:18px; box-shadow:0 24px 60px #0009, 0 0 0 1px #ffffff14; }
.legal p, .legal li { color:#d8d1c4; font-size:15px; }
.legal h2 { font-size:20px; }
.legal .upd { color:var(--mute); font-size:14px; margin-bottom:20px; }

footer.bottom { color:var(--dim); font-size:13px; padding:24px var(--pad) calc(34px + env(safe-area-inset-bottom)); border-top:1px solid #241f33; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
footer.bottom a { color:#8a83a0; text-decoration:none; margin-right:14px; transition:color .2s; }
footer.bottom a:hover { color:var(--ink); }

/* 提示条：cookie 说明、加到主画面 */
.bar { position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); max-width:560px; margin:0 auto; background:#2a2440f2; -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border:1px solid var(--line); border-radius:14px; padding:10px 12px 10px 16px; display:flex; gap:12px; align-items:center; box-shadow:0 10px 30px #000a; z-index:50; font-size:13px; line-height:1.45; animation:up .35s var(--ease); }
.bar p { flex:1; color:#d8d1c4; }
.bar .x { background:none; border:0; color:var(--mute); font-size:22px; cursor:pointer; padding:0 4px; }
@keyframes up { from { transform:translateY(20px); opacity:0; } }

@media (max-width: 1000px) {
  .hero { grid-template-columns:1fr 360px; gap:36px; }
  .hero h1 { font-size:46px; }
  .stage { width:360px; height:600px; }
}
@media (max-width: 900px) {
  :root { --pad:20px; }
  .hero { grid-template-columns:1fr; gap:18px; padding-top:22px; padding-bottom:8px; }
  .hero h1 { font-size:38px; margin-bottom:10px; }
  .hero p.lead { font-size:16px; margin-bottom:0; }
  .hero .feat, .hero .cta { display:none; }
  .stage { width:100%; height:auto; border-radius:20px; background:#140c18; }
  .stage .poster { position:relative; inset:auto; padding:calc(50% + 4px) 18px 18px; background-size:100% auto; background-position:top center; background-color:#140c18; }
  .stage .poster::before { background:linear-gradient(180deg, transparent 0, transparent 34%, #140c18 62%); }
  .stage-note { font-size:12px; }
  section { padding:36px var(--pad); }
  h2 { font-size:26px; }
  .page .two { grid-template-columns:1fr; gap:24px; }
  .page .two > :last-child { max-width:320px; }
  /* 手机上货架横向滑动 */
  .grid { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:14px; margin:0 calc(-1 * var(--pad)); padding:4px var(--pad) 12px; scroll-padding:0 var(--pad); scrollbar-width:none; }
  .grid::-webkit-scrollbar { display:none; }
  .grid .game { flex:0 0 80%; max-width:340px; scroll-snap-align:start; }
  .game:hover { transform:none; }
  .wish { grid-template-columns:1fr; }
  .endings { grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px) {
  nav.main a.opt-nav { display:none; }
  .logo { font-size:18px; }
  .logo small { display:none; }
  .page h1 { font-size:34px; }
  .page .lead { font-size:17px; }
  .lives { padding:18px; }
  .lives .stats { gap:22px; }
  .lives .stats div b { font-size:28px; }
  .join { padding:24px 20px; margin-bottom:32px; }
  .join h2 { font-size:22px; }
  .join input { width:100%; }
  .join form, .join > div { width:100%; }
  .join form .btn { flex:1; }
  .opt { padding:12px 12px 12px 14px; }
  .opt .txt span { font-size:12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}
