/* 首页游戏站：霓虹首屏 + 海报卡片墙 + 左右分栏详情（对标 motionsites.ai）。手机优先。 */
:root { --wall-max: 1320px; }
body[data-page="home"] main, body[data-page="detail"] main { max-width: var(--wall-max); padding: 0 16px 100px; }
@media (min-width: 760px) { body[data-page="home"] main { padding: 0 28px 120px; } }

#bar .tools { display: flex; gap: 8px; align-items: center; }
.tbtn { border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit; font-size: 14px;
  padding: 7px 14px; border-radius: 99px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.tbtn:hover { background: rgba(255, 255, 255, .09); }
.tbtn.on { border-color: rgba(255, 61, 139, .6); color: #fff; }
.tbtn b { color: var(--brand-deep); }
.tbtn.cta { background: #fff; color: #0a0a0d; border-color: #fff; font-weight: 700; }
.tbtn.cta:hover { background: #fff; box-shadow: 0 0 24px rgba(255, 61, 139, .5); }

/* ---------- 首屏：网格 + 霓虹光束 + 超大字 ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 -16px; padding: 64px 20px 40px; text-align: center; }
@media (min-width: 760px) { .hero { margin: 0 -28px; padding: 110px 28px 56px; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 30%, transparent 75%); }
.beam { position: absolute; z-index: -1; left: 50%; top: -20%; width: 140%; height: 220px; pointer-events: none; filter: blur(38px); opacity: .85;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 61, 139, .0) 20%, rgba(255, 61, 139, .75) 48%, rgba(192, 77, 255, .6) 60%, transparent 85%);
  transform-origin: center; animation: sweep 9s ease-in-out infinite alternate; }
.beam.b2 { top: 10%; height: 120px; opacity: .55; filter: blur(46px); animation-duration: 13s; animation-direction: alternate-reverse;
  background: linear-gradient(90deg, transparent 10%, rgba(109, 123, 255, .7) 45%, rgba(255, 61, 139, .5) 62%, transparent 90%); }
.beam.b3 { top: 32%; height: 3px; filter: blur(1px); opacity: .9; animation-duration: 7s;
  background: linear-gradient(90deg, transparent 15%, rgba(255, 170, 210, .95) 50%, transparent 85%); box-shadow: 0 0 30px 6px rgba(255, 61, 139, .55); }
@keyframes sweep { from { transform: translateX(-50%) rotate(-14deg); } to { transform: translateX(-50%) rotate(-6deg) translateY(30px); } }
.hero .glow { position: absolute; z-index: -1; left: 50%; top: 58%; width: 680px; height: 380px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 61, 139, .22), transparent); pointer-events: none; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; font-size: 13px; color: #e9e9ee;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); backdrop-filter: blur(8px); }
.badge i { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--grad); color: #fff; }
.hero h1 { margin: 22px auto 14px; max-width: 13em; font-size: clamp(38px, 9.4vw, 96px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, #ffc2dc 75%, #ff7ab3); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 80px rgba(255, 61, 139, .25); }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 26px auto 0; color: #b9b9c4; max-width: 30em; font-size: clamp(15px, 2.2vw, 18px); }
.hero .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero .acts .btn { display: inline-flex; align-items: center; gap: 8px; width: auto; margin: 0; padding: 13px 26px; font-size: 16px; }

/* 幕后演示：玻璃终端 */
.demo { margin: 34px auto 0; max-width: 520px; text-align: left; font: 14px/1.95 ui-monospace, "SF Mono", Menlo, "PingFang SC", monospace;
  background: rgba(14, 14, 20, .66); border: 1px solid var(--line2); border-radius: 18px; padding: 40px 18px 16px; min-height: 196px; position: relative;
  backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.demo::before { content: ""; position: absolute; left: 16px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57;
  box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840; }
.demo::after { content: "放着我来 · 幕后"; position: absolute; top: 9px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--dim); }
.demo .ln { display: flex; gap: 10px; opacity: 0; transform: translateY(6px); animation: lnIn .35s var(--ez) forwards; color: #c9c9d3; }
@keyframes lnIn { to { opacity: 1; transform: none; } }
.demo .ln i { font-style: normal; width: 1.3em; flex: none; text-align: center; color: var(--dim); }
.demo .ln.say { color: #ffb3d1; } .demo .ln.say i { color: var(--brand); }
.demo .ln.done { color: var(--leaf); font-weight: 700; } .demo .ln.done i { color: var(--leaf); }
.demo .cur::after { content: ""; display: inline-block; width: 8px; height: 1.05em; margin-left: 4px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 斜着滚动的海报带 */
.tunnel { position: relative; margin: 46px -16px 0; height: 240px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
@media (min-width: 760px) { .tunnel { margin: 56px -28px 0; height: 300px; } }
.tunnel .track { position: absolute; top: 20px; left: 0; display: flex; gap: 14px; width: max-content; animation: slide 70s linear infinite; }
.tunnel img { width: 140px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 1px solid var(--line2); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .9); }
@media (min-width: 760px) { .tunnel img { width: 190px; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 筛选条 ---------- */
.bar2 { position: sticky; top: 58px; z-index: 12; display: flex; gap: 10px; align-items: center; margin: 26px 0 18px; padding: 8px 0;
  background: linear-gradient(var(--bg) 70%, transparent); }
.seg { display: flex; flex: none; padding: 4px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); }
.seg button { font: inherit; font-size: 14px; border: 0; background: none; color: var(--sub); padding: 7px 14px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: #fff; color: #0a0a0d; font-weight: 700; }
.filter { display: flex; gap: 6px; overflow-x: auto; padding: 4px; scrollbar-width: none; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); min-width: 0; flex: 1; }
.filter::-webkit-scrollbar { display: none; }
.filter .chip { flex: none; background: none; border: 0; color: var(--sub); padding: 7px 13px; }
.filter .chip.on { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; }
.filter .chip small { color: var(--dim); margin-left: 3px; }
@media (max-width: 640px) { .bar2 { flex-direction: column; align-items: stretch; } .seg { align-self: flex-start; } }
.wallhead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.wallhead h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin: 0; letter-spacing: -.01em; }
.wallhead .n { color: var(--sub); font-size: 14px; }

/* ---------- 海报卡片墙 ---------- */
.wall { display: grid; gap: 22px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .wall { gap: 30px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; border: 0; padding: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  animation: rise .5s var(--ez) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.card .pic { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--c, #222);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s var(--ez), box-shadow .35s var(--ez); }
.card .pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ez); }
.card .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0a0a0d; font-size: 18px; padding-left: 3px;
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s var(--ez); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.card .fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 10, 14, .55); color: #fff; font-size: 15px; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); }
.card .fav.on { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 18px rgba(255, 61, 139, .7); }
.card .pill { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px;
  background: rgba(10, 10, 14, .55); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.card .pill.open { background: rgba(62, 224, 161, .2); border-color: rgba(62, 224, 161, .5); color: #b6ffe2; }
.card .pill.own { background: rgba(255, 176, 59, .25); border-color: rgba(255, 196, 92, .6); color: #ffe2a8; }
.card .meta { display: flex; align-items: center; gap: 8px; padding: 10px 4px 0; }
.card .t { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card .tag { flex: none; font-size: 13px; color: var(--sub); }
.card .ico { margin-left: auto; flex: none; color: var(--dim); font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .pic { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 30px 70px -24px var(--c, #ff3d8b); }
  .card:hover img { transform: scale(1.05); }
  .card:hover .play { opacity: 1; transform: none; }
}
.card:active .pic { transform: scale(.985); }
.more { display: block; width: auto; margin: 34px auto 0; padding: 12px 34px; }
.foot { margin: 70px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- 详情：手机底部弹层，桌面左右分栏 ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet .box { position: relative; background: var(--bg2); width: min(100%, 560px); max-height: 94vh; overflow: auto; border-radius: 26px 26px 0 0;
  border: 1px solid var(--line2); border-bottom: 0; animation: up .32s var(--ez); }
@keyframes up { from { transform: translateY(30px); opacity: .3; } }
.sheet .top { position: relative; aspect-ratio: 4 / 3; background: var(--c, #222) center/cover no-repeat; }
.sheet .top::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--bg2)); }
.sheet .x { position: absolute; top: 12px; left: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2);
  background: rgba(10, 10, 14, .6); color: #fff; font-size: 16px; cursor: pointer; backdrop-filter: blur(8px); }
.sheet .side { padding: 4px 20px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet .box { width: min(1120px, 100%); max-height: 88vh; border-radius: 28px; border-bottom: 1px solid var(--line2); display: grid; grid-template-columns: 1.35fr 1fr; overflow: hidden; }
  .sheet .top { aspect-ratio: auto; min-height: 560px; margin: 14px; border-radius: 20px; }
  .sheet .top::after { display: none; }
  .sheet .side { padding: 30px 28px 28px 14px; overflow: auto; }
}
.sheet h2 { margin: 0 0 2px; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.01em; }
.sheet .cat { color: var(--sub); font-size: 14px; margin-bottom: 14px; }
.sheet .one { color: #c9c9d3; margin: 0 0 16px; }
.sheet .btn { margin-top: 10px; }
.sheet .acts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.sheet .acts3 div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; font-size: 12px; color: var(--sub); }
.sheet .acts3 b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.sheet .how { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; margin: 0 0 12px; color: #d4d4dc; font-size: 15px; }
.sheet .how b { display: block; font-size: 12px; letter-spacing: .12em; color: var(--brand-deep); margin-bottom: 4px; }
.qr { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.qr img { width: 92px; height: 92px; flex: none; border-radius: 10px; background: #fff; padding: 4px; }
.qr .txt { font-size: 13px; color: var(--sub); }
.src { font-size: 12px; color: var(--dim); margin: 16px 0 0; line-height: 1.7; }
.src summary { cursor: pointer; }
.prep { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.prep .bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.prep .bar i { display: block; height: 100%; width: 30%; border-radius: 99px; background: var(--grad); animation: crawl 2.4s ease-in-out infinite; }
@keyframes crawl { 0% { margin-left: -32%; } 100% { margin-left: 102%; } }
.err { background: rgba(255, 106, 106, .08); border: 1px solid rgba(255, 106, 106, .3); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.err b { display: block; margin-bottom: 4px; }
.err .why { color: var(--sub); font-size: 13px; margin-top: 6px; word-break: break-all; }

/* ---------- 做游戏的过程：看得见的几段 ---------- */
.steps { list-style: none; margin: 14px 0; padding: 0; }
.st { position: relative; display: flex; gap: 12px; padding: 0 0 18px 0; }
.st:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.st.done:not(:last-child)::before { background: linear-gradient(var(--leaf), rgba(62, 224, 161, .2)); }
.st .dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line2); color: var(--sub); font-size: 14px; z-index: 1; }
.st.done .dot { background: var(--leaf-soft); border-color: var(--leaf); color: var(--leaf); }
.st.doing .dot { border-color: var(--brand); color: #fff; background: var(--brand-soft); animation: beat 1.3s ease-in-out infinite; }
.st.failed .dot { background: rgba(255, 106, 106, .12); border-color: var(--bad); color: var(--bad); }
@keyframes beat { 50% { box-shadow: 0 0 0 8px rgba(255, 61, 139, .16), 0 0 24px rgba(255, 61, 139, .5); } }
.st .body { flex: 1; min-width: 0; padding-top: 4px; }
.st b { font-size: 16px; font-weight: 700; }
.st.wait b { color: var(--dim); font-weight: 500; }
.st .what { color: var(--sub); font-size: 13px; }
.st .note { font-size: 14px; margin-top: 3px; color: #d4d4dc; }
.st.doing .note { color: #ffb3d1; font-weight: 700; }
.st .sec { color: var(--dim); font-size: 12px; margin-left: 6px; font-weight: 400; }
.st .live { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 9px; max-width: 280px; }
.st .live i { display: block; height: 100%; width: 34%; border-radius: 99px; background: var(--grad); animation: crawl 2.2s ease-in-out infinite; }
.shots { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.shots img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2);
  animation: pop .4s cubic-bezier(.22, 1.2, .36, 1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.st .err { margin-top: 10px; }
.st .err .row { justify-content: flex-start; margin: 10px 0 0; flex-wrap: wrap; }
.st details { margin-top: 8px; font-size: 13px; color: var(--sub); }
.st details summary { cursor: pointer; }
.st details code { display: block; margin-top: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; white-space: pre-wrap; word-break: break-all; font-size: 12px; max-height: 180px; overflow: auto; color: #c9c9d3; }
.doneline { color: var(--sub); font-size: 13px; margin: 2px 0 12px; }
.again { margin-top: 8px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--sub); text-decoration: underline; cursor: pointer; }
.again:hover { color: var(--brand-deep); }
@media (prefers-reduced-motion: reduce) { .beam, .tunnel .track { animation: none; } .demo .ln { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  #home span { display: none; }
  #tMine { display: none; }
  header#bar { padding-left: 14px; padding-right: 14px; }
}
html, body { overflow-x: hidden; }

/* ---------- 顶部输入框（和卡片墙联动） ---------- */
.prompt { max-width: 660px; margin: 6px auto 0; text-align: center; }
.pbox, #heroBox { text-align: left; }
.ptabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); margin-bottom: 10px; }
.ptabs button { font: inherit; font-size: 14px; border: 0; background: none; color: var(--sub); padding: 7px 16px; border-radius: 99px; cursor: pointer; }
.ptabs button.on { background: #fff; color: #0a0a0d; font-weight: 700; }
.pbox { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 18px; border-radius: 24px;
  background: rgba(14, 14, 20, .72); border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 61, 139, .08), 0 0 60px -20px rgba(255, 61, 139, .45); transition: box-shadow .25s, border-color .25s; }
.pbox:focus-within { border-color: rgba(255, 61, 139, .65); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 4px rgba(255, 61, 139, .14), 0 0 80px -16px rgba(255, 61, 139, .6); }
.pbox textarea { flex: 1; min-height: 52px; max-height: 120px; padding: 6px 0; border: 0; background: none; box-shadow: none; font-size: 17px; }
.pbox textarea:focus { box-shadow: none; }
.pgo { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 99px; background: #fff; color: #0a0a0d; font: inherit; font-weight: 800; cursor: pointer;
  transition: box-shadow .2s; white-space: nowrap; }
.pgo:hover { box-shadow: 0 0 26px rgba(255, 61, 139, .6); }
.pgo:disabled { opacity: .5; }
.prompt .chips { justify-content: center; margin-top: 12px; }
.prompt .chip { background: rgba(255, 255, 255, .04); }
.phint { text-align: center; font-size: 14px; margin-top: 10px; min-height: 1.6em; }
.phint a { color: #ffb3d1; text-decoration: none; }
.phint a:hover { text-decoration: underline; }
.phint b { color: #fff; }
#heroBox .prep { margin-top: 12px; }
/* 「直接按我的想法做」卡 */
.card.ask .pic { background: radial-gradient(circle at 30% 20%, rgba(255, 61, 139, .55), transparent 60%), radial-gradient(circle at 80% 90%, rgba(109, 123, 255, .5), transparent 60%), #14141c;
  box-shadow: inset 0 0 0 1px rgba(255, 61, 139, .45); }
.card.ask .askin { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 16px; text-align: center; }
.card.ask .askin span { font-size: 34px; color: #fff; text-shadow: 0 0 24px #ff3d8b; }
.card.ask .askin b { font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.card.ask .askin em { font-style: normal; color: #ffd1e6; font-size: 14px; word-break: break-all; }
@media (max-width: 480px) { .pbox { flex-direction: column; align-items: stretch; padding: 12px; } .pgo { width: 100%; } .ptabs button { padding: 7px 12px; font-size: 13px; } }

/* ---------- 做游戏总进度：百分比 + 一排灯 ---------- */
.pg { position: sticky; top: 62px; z-index: 3; margin: 6px 0 16px; padding: 14px 16px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 61, 139, .10), rgba(155, 92, 255, .05)), rgba(13, 13, 18, .92);
  border: 1px solid rgba(255, 61, 139, .35); box-shadow: 0 18px 50px -26px rgba(255, 61, 139, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pg.bad { border-color: rgba(255, 106, 106, .5); background: rgba(40, 14, 18, .92); box-shadow: none; }
.pg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pg-label { font-weight: 700; font-size: 15px; }
.pg-top b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg.bad .pg-top b { background: none; color: var(--bad); }
.pg-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 8px 0 12px; }
.pg-bar i { position: relative; display: block; height: 100%; border-radius: 99px; background: var(--grad); box-shadow: 0 0 18px rgba(255, 61, 139, .8);
  transition: width .9s cubic-bezier(.22, 1, .36, 1); overflow: hidden; }
.pg-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: translateX(-100%); animation: shine 1.6s ease-in-out infinite; }
.pg.bad .pg-bar i { background: var(--bad); box-shadow: none; } .pg.bad .pg-bar i::after { display: none; }
@keyframes shine { to { transform: translateX(100%); } }
.pg-lamps { display: flex; gap: 6px; flex-wrap: wrap; }
.lamp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); padding: 4px 10px 4px 8px; border-radius: 99px; border: 1px solid var(--line); }
.lamp i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.lamp.done { color: var(--leaf); border-color: rgba(62, 224, 161, .3); } .lamp.done i { background: var(--leaf); box-shadow: 0 0 8px var(--leaf); }
.lamp.doing { color: #fff; border-color: var(--brand); background: var(--brand-soft); } .lamp.doing i { background: var(--brand); animation: lamp 1s ease-in-out infinite; }
.lamp.failed { color: var(--bad); border-color: rgba(255, 106, 106, .4); } .lamp.failed i { background: var(--bad); }
@keyframes lamp { 50% { box-shadow: 0 0 0 4px rgba(255, 61, 139, .25), 0 0 14px var(--brand); } }
.st.doing { animation: fadeUp .4s ease; }
.st.doing .body { background: rgba(255, 61, 139, .06); border: 1px solid rgba(255, 61, 139, .22); border-radius: 14px; padding: 8px 12px 10px; margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { .pg-bar i::after, .lamp.doing i { animation: none; } }

/* ---------- 打了字后的两条路：一样大、一样醒目 ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; text-align: left; }
.paths:empty { display: none; }
.path { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; animation: fadeUp .35s ease;
  background: rgba(14, 14, 20, .78); border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.path.ref { border-color: rgba(109, 123, 255, .5); box-shadow: 0 0 50px -24px rgba(109, 123, 255, .9); }
.path.own { border-color: rgba(255, 61, 139, .55); box-shadow: 0 0 50px -24px rgba(255, 61, 139, .9); }
.path.none { opacity: .75; box-shadow: none; }
.path .ph { display: flex; gap: 10px; align-items: flex-start; }
.path .pi { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 20px; background: rgba(255, 255, 255, .06); }
.path b { display: block; font-size: 17px; font-weight: 800; }
.path small { display: block; color: var(--sub); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.pthumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pthumbs button { padding: 0; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #111; cursor: pointer; color: var(--ink); text-align: left; transition: transform .2s, border-color .2s; }
.pthumbs button:hover { transform: translateY(-2px); border-color: rgba(109, 123, 255, .8); }
.pthumbs img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.pthumbs span { display: block; font-size: 11px; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbtn { margin-top: auto; height: 46px; border-radius: 99px; border: 0; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 16px;
  background: #fff; color: #0a0a0d; transition: box-shadow .2s, background .2s; }
.pbtn:hover { box-shadow: 0 0 26px rgba(255, 61, 139, .6); }
.pbtn.ghost { background: linear-gradient(100deg, #6d7bff, #9b5cff); color: #fff; }
.pbtn.ghost:hover { box-shadow: 0 0 26px rgba(109, 123, 255, .7); }
.path.none .pbtn.ghost { background: rgba(255, 255, 255, .08); }
.pbtn:disabled { opacity: .55; }
@media (max-width: 640px) { .paths { grid-template-columns: 1fr; } }
.prompt .chips[hidden] { display: none; }
.pflow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pflow li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d4d4dc; padding: 9px 12px; border-radius: 12px; background: rgba(255, 61, 139, .06); border: 1px solid rgba(255, 61, 139, .16); }
.pflow i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--grad); color: #fff; }

/* 邀请码框 / 客服入口（花钱前一步才弹） */
.tokmask { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .18s; }
@media (min-width: 640px) { .tokmask { align-items: center; } }
.tokbox { position: relative; width: 100%; max-width: 420px; background: var(--panel, #15151b); border: 1px solid var(--line, #2a2a33);
  border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .tokbox { border-radius: 20px; } }
.tokbox .x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted, #999); font-size: 18px; cursor: pointer; }
.tokbox .tt { font-size: 18px; padding-right: 26px; line-height: 1.4; }
.tokbox input { font: inherit; font-size: 20px; letter-spacing: 3px; text-align: center; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line2, #3a3a44); background: rgba(255, 255, 255, .05); color: var(--ink, #fff); }
.kefu { display: flex; gap: 12px; align-items: center; margin-top: 6px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.kefu img { width: 96px; height: 96px; border-radius: 8px; background: #fff; flex: none; }
.kefu b { display: block; margin-bottom: 4px; }
.kefu span { display: block; font-size: 13px; color: var(--muted, #aaa); line-height: 1.5; }
.kefu small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #888); }
.small { font-size: 13px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 放着我来出品：首屏横排（12-04 晚，原来的匿名滚动条带认不出是谁的游戏） */
.mine { display: block; width: auto; margin: 40px -16px 0; text-align: left; }
@media (min-width: 760px) { .mine { margin: 48px -28px 0; } }
.minehead { display: flex; align-items: baseline; gap: 10px; padding: 0 16px 12px; flex-wrap: wrap; }
.minehead b { font-size: 18px; color: #fff; } .minehead span { color: #9a9aa6; font-size: 13px; }
.minerow { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mc { flex: 0 0 auto; width: 150px; scroll-snap-align: start; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
@media (min-width: 760px) { .mc { width: 190px; } .minerow { padding: 4px 28px 18px; } .minehead { padding: 0 28px 12px; } }
.mc img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line2); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .9); transition: transform .35s var(--ez); }
.mc:hover img { transform: translateY(-4px); }
.mc .mt { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 8px 2px 0; }
.mc .mt b { font-size: 14px; color: #fff; } .mc .mt i { font-style: normal; font-size: 11px; color: #9a9aa6; white-space: nowrap; }
.card .pic.po img { object-position: top; }

/* ---- 12-05 照 motionsites：卡片循环播放游戏短片 ---- */
.card .pic video, .mc .mpic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--c, #111); }
.card .pic video.hov, .mc .mpic video.hov { opacity: 0; transition: opacity .3s; }
.card .pic video.hov.on, .mc .mpic video.hov.on { opacity: 1; }
.mc .mpic { position: relative; width: 100%; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .9); transition: transform .35s var(--ez); background: #111; }
.mc .mpic img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.mc:hover .mpic { transform: translateY(-4px); }
.mc:hover img { transform: none; }

/* ---- 详情：左边大预览（手机框里直接玩），右边主按钮 + 一排小按钮 + 同类玩法 + 用 AI 改 ---- */
.sheet .stage { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 22px 0; background: #0b0b10; }
.sheet .stage::before { content: ""; position: absolute; inset: -40px; background: var(--bg) center/cover no-repeat; filter: blur(38px) saturate(1.3) brightness(.55); }
.sheet .phone { position: relative; height: min(62vh, 640px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .9); }
.sheet .phone iframe, .sheet .phone video, .sheet .phone img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: top; }
.sheet .phone .tap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 12px 22px; border-radius: 999px; border: 0;
  background: #fff; color: #111; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); white-space: nowrap; }
.sheet .phone .hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 12px; font-size: 12px; color: #ddd; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.sheet .stage .fs { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; cursor: pointer; backdrop-filter: blur(8px); }
@media (min-width: 900px) {
  .sheet .box { height: min(88vh, 820px); grid-template-rows: minmax(0, 1fr); }
  .sheet .stage { margin: 14px; border-radius: 20px; }
  .sheet .phone { height: min(calc(88vh - 76px), 744px); }
}
.sheet .btn.primary { width: 100%; background: #fff; color: #111; font-weight: 900; margin-top: 4px; }
.sheet .acts { display: flex; gap: 8px; margin: 12px 0 4px; }
.sheet .acts button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); color: var(--sub); font-size: 12px; cursor: pointer; }
.sheet .acts button i { font-style: normal; font-size: 18px; color: var(--ink); line-height: 1; }
.sheet .acts button:hover { border-color: var(--line2); color: var(--ink); }
.sheet .qrpop { display: flex; gap: 12px; align-items: center; margin: 8px 0; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.sheet .qrpop[hidden] { display: none; }
.sheet .qrpop img { width: 96px; height: 96px; border-radius: 8px; background: #fff; }
.sheet .sib { margin: 16px 0 6px; }
.sheet .sib > b, .sheet .cust > b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.sheet .sibrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet .sibrow button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); cursor: pointer; text-align: left; color: var(--sub); }
.sheet .sibrow button:hover { border-color: var(--brand-deep); }
.sheet .sibrow img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.sheet .sibrow span { display: block; padding: 5px 7px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .cust { margin: 14px 0 12px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.sheet .cust.glow { border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(255, 80, 160, .18); }
.sheet .cust .muted { font-size: 12px; margin-bottom: 10px; }
.sheet .cust .crow { display: flex; gap: 8px; }
.sheet .cust input { flex: 1; min-width: 0; padding: 12px 14px; }
.sheet .cust .btn { margin: 0; width: auto; padding: 0 16px; white-space: nowrap; }

/* ---- 12-05 首页游戏轮播（扇形，照 motionsites 截图） ---- */
.flow { position: relative; margin: 6px -16px 40px; }
@media (min-width: 760px) { .flow { margin: 10px -28px 56px; } }
.flow-stage { position: relative; height: 470px; overflow: hidden; user-select: none; -webkit-user-select: none; cursor: grab; }
.flow-stage.dragging { cursor: grabbing; }
@media (min-width: 760px) { .flow-stage { height: 560px; } }
.fcard { position: absolute; left: 50%; top: 46%; width: 230px; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: var(--c, #222); cursor: pointer; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .85);
  transition: transform .6s cubic-bezier(.22, .8, .25, 1), opacity .5s, filter .5s; will-change: transform; }
@media (min-width: 760px) { .fcard { width: 290px; } }
.flow-stage.dragging .fcard, .flow-stage.init .fcard { transition: none; }
.fcard img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.fcard .pill { position: absolute; top: 10px; left: 10px; }
.fcard.on { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 70px -20px rgba(0, 0, 0, .95); }
.farrow { position: absolute; top: calc(46% - 22px); z-index: 30; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111;
  font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); display: none; }
.farrow.l { left: 20px; } .farrow.r { right: 20px; }
@media (min-width: 760px) { .farrow { display: block; } .farrow.l { left: 36px; } .farrow.r { right: 36px; } }
.fcap { position: relative; display: flex; align-items: flex-end; gap: 12px; padding: 0 16px; margin-top: -40px; z-index: 25; pointer-events: none; }
@media (min-width: 760px) { .fcap { padding: 0 36px; margin-top: -54px; } }
.fcap .ft { flex: 1; min-width: 0; }
.fcap .ft b { display: block; font-size: clamp(24px, 4vw, 40px); font-weight: 900; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcap .ft span { color: var(--sub); font-size: 13px; }
.fcap .fauto { pointer-events: auto; display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--dim); font-size: 10px; letter-spacing: .14em; cursor: pointer; padding: 6px 0; }
.fcap .fauto i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 8px; letter-spacing: 0; }
.fcap .fnum { font-size: clamp(48px, 8vw, 96px); font-weight: 900; line-height: .9; color: rgba(255, 255, 255, .08); -webkit-text-stroke: 1px rgba(255, 255, 255, .16); }
.fcap .fnum small { font-size: 14px; -webkit-text-stroke: 0; color: var(--dim); margin-left: 4px; }
.flow-empty { text-align: center; padding: 80px 0; }
/* 点开动效 */
.flyimg { position: fixed; z-index: 60; object-fit: cover; object-position: top; border-radius: 22px; pointer-events: none;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); transition: all .44s cubic-bezier(.22, .8, .25, 1), opacity .2s; }
.flyimg.gone { opacity: 0; }
.sheet.flying .phone { opacity: 0; }
.sheet.flying .side, .sheet.flying .stage .fs { opacity: 0; transform: translateY(10px); }
.sheet .side { transition: opacity .35s .1s, transform .35s .1s; }
