@font-face { font-family: 'Smiley'; src: url('assets/smiley.woff2') format('woff2'); font-display: swap; }
:root {
  --bg: #0b0a08; --bg2: #14110c; --card: #16130e; --card2: #1e1a12; --line: rgba(230,200,140, .18);
  --ink: #f5eedc; --dim: #a99f86; --blue: #d4af37; --cyan: #f3d98b; --sun: #e6c068; --pink: #e8b4a0; --green: #b9d27a; --red: #ff6b6b;
  --r: 18px; --title: 'Smiley', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #030303; color: var(--ink);
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
#app { position: relative; width: 100%; max-width: 440px; height: 100dvh; margin: 0 auto; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #2a2214 0%, var(--bg) 60%); }
@media (min-width: 600px) { body { display: grid; place-items: center; } #app { height: min(100dvh, 900px); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px var(--line); } }

.scene { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 18px 96px; overflow-y: auto; overflow-x: hidden;
  animation: sceneIn .45s cubic-bezier(.2,.8,.2,1); scrollbar-width: none; }
.scene::-webkit-scrollbar { display: none; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 36px; }
.top .tag { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(212,175,55,.18); color: var(--cyan); white-space: nowrap; }
.top h2 { font-family: var(--title); font-weight: 400; font-size: 24px; margin: 0; flex: 1; letter-spacing: .5px; }
.back { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 18px; }
.mute { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 16px; }

.btn { display: block; width: 100%; padding: 15px 18px; border-radius: 16px; font-size: 17px; font-weight: 600; letter-spacing: 1px;
  background: linear-gradient(180deg, #f3d98b, #b88a2a); box-shadow: 0 6px 0 #5c4410, 0 10px 24px rgba(212,175,55,.35); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #5c4410; }
.btn.sun { background: linear-gradient(180deg, #f6dc8e, #b8892c); color: #1a1205; box-shadow: 0 6px 0 #6b4e10, 0 10px 24px rgba(212,160,60,.35); }
.btn.ghost { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.btn.ghost:active { box-shadow: inset 0 0 0 1px var(--line); }
.btn:disabled { opacity: .4; pointer-events: none; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.grow { flex: 1; }
.dim { color: var(--dim); } .small { font-size: 13px; } .center { text-align: center; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border-radius: var(--r); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.stack > * + * { margin-top: 12px; }

/* —— 标题页 —— */
.scene:has(.title-wrap) { padding-bottom: 22px; }
.title-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.logo { font-family: var(--title); font-size: 50px; line-height: 1.05; margin: 8px 0 6px;
  background: linear-gradient(180deg, #fff 30%, #f6e3a8); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(243,217,139,.45)); }
.slogan { font-family: var(--title); font-size: 22px; color: var(--sun); letter-spacing: 2px; }
.xt { width: 200px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); user-select: none; -webkit-user-drag: none; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.waves { position: absolute; left: -10%; right: -10%; bottom: -30px; height: 160px; pointer-events: none; opacity: .7; }
.badge4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 4px; width: 100%; }
.badge4 span { font-size: 12px; padding: 7px 0; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--dim); }

/* —— 对话气泡（小豚说话） —— */
.say { display: flex; gap: 10px; align-items: flex-end; margin: 4px 0 14px; }
.say img { width: 54px; flex: none; animation: bob 3s ease-in-out infinite; }
.say .bubble { background: #fff; color: #14110c; border-radius: 16px 16px 16px 4px; padding: 11px 14px; font-size: 15px; line-height: 1.55; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* —— 人格输入 —— */
.steps { display: flex; gap: 6px; margin-bottom: 10px; } .steps i { flex: 1; height: 5px; border-radius: 9px; background: rgba(255,255,255,.12); }
.steps i.on { background: var(--cyan); }
.acc { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); margin: 6px 0 12px; }
.acc .bar { flex: 1; height: 10px; border-radius: 9px; background: rgba(255,255,255,.1); overflow: hidden; }
.acc .bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); border-radius: 9px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.acc em { font-style: normal; color: var(--ink); font-weight: 700; min-width: 40px; text-align: right; }
.pairs { display: grid; gap: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: .15s; }
.opt b { display: block; font-size: 20px; } .opt span { font-size: 12px; color: var(--dim); }
.opt.on { background: linear-gradient(180deg, #d4af37, #a67c1a); box-shadow: 0 0 0 2px var(--cyan), 0 6px 18px rgba(212,175,55,.4); }
.opt.on span { color: #fff7e0; }
.zgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zgrid .opt { padding: 10px 4px; } .zgrid .opt b { font-size: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
.field select, .field input { font: inherit; font-size: 16px; color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; appearance: none; -webkit-appearance: none; }
.field select option { color: #000; }
.grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.skip { font-size: 14px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }

/* —— 人格卡 —— */
.pcard { position: relative; border-radius: 22px; padding: 22px 18px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, var(--c1, #3a3020), var(--c2, #12100b)); box-shadow: 0 16px 40px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.2);
  animation: flip .8s cubic-bezier(.2,.9,.25,1.2); }
@keyframes flip { from { transform: perspective(800px) rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.pcard .ptype { font-family: var(--title); font-size: 40px; margin: 6px 0; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.pcard .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; }
.pcard .tags span { font-size: 13px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.18); }
.pcard .src { display: flex; justify-content: center; gap: 8px; font-size: 12px; opacity: .9; flex-wrap: wrap; }
.pcard .src span { padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.2); }
.pcard img { width: 110px; margin-top: -6px; }
.merge { position: relative; height: 150px; margin: 10px 0; }
.merge i { position: absolute; top: 25px; left: 50%; width: 100px; height: 100px; margin-left: -50px; border-radius: 50%; mix-blend-mode: screen; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 14px; border-radius: 99px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.chip.on { background: var(--sun); color: #1a1205; box-shadow: none; font-weight: 700; }

/* —— 关卡通用 —— */
.hud { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.hud b { color: var(--sun); font-size: 18px; }
.stage { position: relative; border-radius: 20px; overflow: hidden; background: #0e0c09; box-shadow: inset 0 0 0 1px var(--line); touch-action: manipulation; }
canvas { display: block; width: 100%; }

/* —— 弹窗 —— */
.modal { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: rgba(5,5,4,.6); backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal .box { width: 100%; max-height: 90%; overflow-y: auto; background: linear-gradient(180deg, #221c12, #12100b); border-radius: 22px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.15); animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.modal h3 { font-family: var(--title); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.modal p { line-height: 1.65; margin: 0 0 14px; }
.src-note { font-size: 12px; color: var(--dim); }

/* —— 路线 —— */
.daytabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.daytabs button { flex: none; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 14px; }
.daytabs button.on { background: var(--blue); font-weight: 700; }
.daytabs button.done::after { content: ' ★'; color: var(--sun); }
.stop { position: relative; padding: 12px 12px 10px; border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
.stop + .stop { margin-top: 10px; }
.stop .h { display: flex; align-items: baseline; gap: 8px; }
.stop .h b { font-size: 16px; } .stop .h .t { font-variant-numeric: tabular-nums; color: var(--cyan); font-weight: 700; font-size: 15px; }
.stop .h .star { margin-left: auto; font-size: 20px; color: rgba(255,255,255,.2); transition: .3s; }
.stop .h .star.on { color: var(--sun); text-shadow: 0 0 12px var(--sun); transform: scale(1.2); }
.stop .why { font-size: 13px; color: var(--dim); margin: 4px 0 8px; }
.crowd { position: relative; height: 34px; border-radius: 10px; background: rgba(0,0,0,.25); touch-action: none; cursor: pointer; }
.crowd .pk { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(214,96,86,.55) 0 6px, rgba(214,96,86,.35) 6px 12px); border-radius: 6px; }
.crowd .cl { position: absolute; top: 0; bottom: 0; background: rgba(0,0,0,.45); }
.crowd .knob { position: absolute; top: -4px; bottom: -4px; border-radius: 8px; background: rgba(243,217,139,.35); box-shadow: 0 0 0 2px var(--cyan); transition: left .12s; display: grid; place-items: center; font-size: 11px; font-weight: 700; min-width: 14px; }
.crowd .knob.bad { background: rgba(214,96,86,.4); box-shadow: 0 0 0 2px var(--red); }
.axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
.lunch { font-size: 12px; color: var(--dim); text-align: center; margin: 8px 0; }
.must { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; width: 100%; }
.must.on { box-shadow: 0 0 0 2px var(--sun); background: rgba(230,192,104,.14); }
.must .ck { width: 24px; height: 24px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 2px var(--dim); display: grid; place-items: center; }
.must.on .ck { background: var(--sun); box-shadow: none; color: #1a1205; }
.must small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }

/* —— 智民里 —— */
.town { position: relative; height: 420px; border-radius: 20px; overflow: hidden; background:
  linear-gradient(90deg, transparent 47%, rgba(255,255,255,.06) 47% 53%, transparent 53%),
  linear-gradient(0deg, transparent 47%, rgba(255,255,255,.06) 47% 53%, transparent 53%), #100e0a; box-shadow: inset 0 0 0 1px var(--line); }
.room { position: absolute; width: 38%; height: 22%; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #2a2418, #1a160f); box-shadow: 0 6px 0 #3d2e0e, inset 0 0 0 1px rgba(255,255,255,.18); font-size: 14px; font-weight: 600; transition: .2s; }
.room em { font-style: normal; font-size: 26px; }
.room.got { background: linear-gradient(180deg, #e6c068, #b8892c); color: #1a1205; box-shadow: 0 6px 0 #6b4e10; }
.room .stamp { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; display: none; place-items: center; transform: rotate(-12deg); box-shadow: 0 0 0 2px #fff; }
.room.got .stamp { display: grid; animation: pop .4s; }
.room.center { background: linear-gradient(180deg, #2e261a, #14110b); box-shadow: 0 6px 0 #6b4e10, 0 0 30px rgba(212,175,55,.5); }
.walker { position: absolute; width: 56px; transform: translate(-50%, -80%); transition: left .7s cubic-bezier(.4,0,.2,1), top .7s cubic-bezier(.4,0,.2,1); pointer-events: none; z-index: 5; filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.stamps { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.stamps i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; font-style: normal; font-size: 16px; opacity: .35; }
.stamps i.on { opacity: 1; background: var(--red); box-shadow: 0 0 0 2px #fff; transform: rotate(-10deg); }

/* —— 成为 SPU —— */
.abil { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.abil span { text-align: center; font-size: 12px; padding: 8px 2px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--dim); }
.abil span.cur { box-shadow: 0 0 0 2px var(--cyan); color: var(--ink); }
.abil span.ok { background: var(--green); color: #1d2608; font-weight: 700; }
.q { font-size: 17px; line-height: 1.6; margin-bottom: 12px; }
.ans { display: block; width: 100%; text-align: left; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.ans.ok { background: rgba(185,210,122,.25); box-shadow: 0 0 0 2px var(--green); }
.ans.no { background: rgba(214,96,86,.2); box-shadow: 0 0 0 2px var(--red); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ans .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: #1a1205; font-weight: 800; margin-right: 8px; font-size: 13px; }
.timer { height: 8px; border-radius: 9px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 12px; }
.timer b { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--sun), var(--red)); }
.cert { text-align: center; border-radius: 22px; padding: 22px; background: linear-gradient(160deg, #fff6e3, #ffe2a8); color: #3a2400; box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: flip .8s; }
.cert h3 { font-family: var(--title); font-weight: 400; font-size: 32px; margin: 4px 0; color: #8a6414; }
.tl { position: relative; padding-left: 18px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl div { position: relative; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.tl div::before { content: ''; position: absolute; left: -17px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.tl b { color: var(--cyan); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* —— 问小豚 —— */
#askBtn { position: absolute; right: 12px; bottom: 14px; z-index: 40; width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #f3d98b, #7a5a14); box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.25); }
#askBtn img { width: 58px; margin-top: 2px; }
#askBtn::after { content: '问我'; position: absolute; top: -8px; left: -10px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--sun); color: #1a1205; }
#askBtn.hide, #askBtn.off { display: none; }
#chat { position: absolute; inset: 0; z-index: 60; display: none; flex-direction: column; background: rgba(10,9,8,.97); }
#chat.open { display: flex; animation: sceneIn .3s; }
#chat .head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
#chat .head img { width: 42px; } #chat .head b { flex: 1; font-size: 17px; } #chat .head small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; }
#msgs { flex: 1; overflow-y: auto; padding: 14px; }
.m { max-width: 85%; padding: 10px 13px; border-radius: 16px; margin-bottom: 10px; line-height: 1.6; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.m.bot { background: #fff; color: #14110c; border-bottom-left-radius: 4px; }
.m.me { margin-left: auto; background: var(--blue); border-bottom-right-radius: 4px; }
.m .cat { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #f3e6c2; color: #8a6a1c; margin-bottom: 4px; }
#chat .quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
#chat .quick button { flex: none; font-size: 13px; padding: 7px 11px; border-radius: 99px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); }
#chat form { display: flex; gap: 8px; padding: 10px 12px 16px; }
#chat input { flex: 1; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--ink); }
#chat form button { padding: 0 18px; border-radius: 14px; background: var(--blue); font-weight: 700; }

.toast { position: absolute; left: 50%; top: 18px; z-index: 80; transform: translateX(-50%); padding: 9px 16px; border-radius: 99px; background: rgba(0,0,0,.75); font-size: 14px; white-space: nowrap; animation: toast 1.8s forwards; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 70; }

/* ================= 视觉升级：玻璃质感、光效、入场动效 ================= */
#app { background: radial-gradient(120% 60% at 50% -5%, #3a2d14 0%, #15120c 38%, #080706 75%, #050504 100%); isolation: isolate; }
.bg-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#root { position: absolute; inset: 0; z-index: 1; }
.fg-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }

/* 场景里的块依次浮入 */
.scene > * { animation: rise .6s cubic-bezier(.2,.9,.25,1.15) backwards; }
.scene > *:nth-child(2) { animation-delay: .06s; } .scene > *:nth-child(3) { animation-delay: .12s; } .scene > *:nth-child(4) { animation-delay: .18s; }
.scene > *:nth-child(5) { animation-delay: .24s; } .scene > *:nth-child(6) { animation-delay: .3s; } .scene > *:nth-child(n+7) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(4px); } }
.pairs > *, .zgrid > *, .stack > *, .stop, .ans, .must, .chips > *, .badge4 > *, .abil > * { animation: rise .5s cubic-bezier(.2,.9,.25,1.15) backwards; }
.pairs > :nth-child(2), .zgrid > :nth-child(2), .stack > :nth-child(2), .stop:nth-child(2), .ans:nth-of-type(2), .badge4 > :nth-child(2), .abil > :nth-child(2), .chips > :nth-child(2) { animation-delay: .07s; }
.pairs > :nth-child(3), .zgrid > :nth-child(3), .stack > :nth-child(3), .stop:nth-child(3), .ans:nth-of-type(3), .badge4 > :nth-child(3), .abil > :nth-child(3), .chips > :nth-child(3) { animation-delay: .14s; }
.pairs > :nth-child(4), .zgrid > :nth-child(4), .stack > :nth-child(4), .stop:nth-child(4), .ans:nth-of-type(4), .badge4 > :nth-child(4), .abil > :nth-child(4), .chips > :nth-child(4) { animation-delay: .21s; }
.zgrid > :nth-child(n+5), .stop:nth-child(n+5), .ans:nth-of-type(n+5), .abil > :nth-child(5) { animation-delay: .28s; }
.zgrid > :nth-child(n+9) { animation-delay: .35s; }

/* 顶栏 */
.top h2 { background: linear-gradient(90deg, #fff, #f6e3a8 60%, #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.top .tag { background: linear-gradient(90deg, rgba(243,217,139,.22), rgba(212,175,55,.12)); box-shadow: inset 0 0 0 1px rgba(243,217,139,.35), 0 0 14px rgba(243,217,139,.2); }
.back, .mute { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); backdrop-filter: blur(8px); transition: transform .15s; }
.back:active, .mute:active { transform: scale(.9); }

/* 玻璃卡片 + 渐变描边 */
.card, .stop, .opt, .ans, .must, .chip, .daytabs button, .abil span, .badge4 span {
  background: linear-gradient(160deg, rgba(120,100,60,.22), rgba(30,27,20,.28)) !important;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.card, .stop { position: relative; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12); }
.card::before, .stop::before, .modal .box::before, .pcard::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(243,225,180,.6), rgba(255,255,255,.05) 40%, rgba(230,192,104,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* 按钮：流光扫过 + 呼吸光晕 */
.btn { position: relative; overflow: hidden; transition: transform .12s, box-shadow .12s, filter .2s; }
.btn::after { content: ''; position: absolute; top: -50%; bottom: -50%; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: sweep 3.2s ease-in-out infinite; }
.btn.ghost::after { opacity: .35; }
@keyframes sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn.sun { animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 6px 0 #6b4e10, 0 10px 40px rgba(230,190,100,.7), 0 0 0 4px rgba(240,210,130,.18); } }
.btn:hover { filter: brightness(1.08); }
.ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.45), transparent 60%); transform: scale(0); animation: rip .6s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }

/* 选项 */
.opt, .ans, .must, .chip { transition: transform .18s cubic-bezier(.2,.9,.3,1.4), box-shadow .2s; }
.opt:active, .ans:active, .must:active, .chip:active { transform: scale(.95); }
.opt.on { background: linear-gradient(160deg, #ecd08a, #9c7420) !important; animation: onPulse 1.8s ease-in-out infinite; transform: translateY(-2px); }
@keyframes onPulse { 50% { box-shadow: 0 0 0 2px var(--cyan), 0 0 26px rgba(243,217,139,.55); } }
.chip.on { background: linear-gradient(180deg, #f3d98b, #c9a03c) !important; box-shadow: 0 0 20px rgba(230,190,100,.5); }
.ans.ok { background: linear-gradient(160deg, rgba(185,210,122,.45), rgba(70,80,30,.35)) !important; }
.ans.no { background: linear-gradient(160deg, rgba(214,96,86,.4), rgba(90,25,20,.35)) !important; }
.must.on { background: linear-gradient(160deg, rgba(230,192,104,.35), rgba(90,65,15,.3)) !important; }

/* 标题页 */
.hero { position: relative; width: 240px; height: 230px; display: grid; place-items: center; }
.hero .halo { position: absolute; width: 230px; height: 230px; border-radius: 50%; filter: blur(22px); opacity: .7;
  background: conic-gradient(from 0deg, #f3d98b, #a67c1a, #e8b4a0, #e6c068, #f3d98b); animation: spin 8s linear infinite; }
.hero .ring { position: absolute; width: 250px; height: 250px; border-radius: 50%; border: 1.5px dashed rgba(243,225,180,.35); animation: spin 22s linear infinite; }
.hero .ring i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #f3d98b, 0 0 4px #fff; }
.hero .ring i:nth-child(1) { top: -5px; left: 50%; } .hero .ring i:nth-child(2) { bottom: 18%; left: 2%; background: #e6c068; box-shadow: 0 0 14px #e6c068; }
.hero .ring i:nth-child(3) { bottom: 10%; right: 8%; background: #e8b4a0; box-shadow: 0 0 14px #e8b4a0; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .xt { position: relative; width: 210px; }
.logo { background: linear-gradient(100deg, #fff 20%, #f6e3a8 40%, #fff 55%, #f3d98b 75%, #fff 90%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 5s linear infinite; font-size: 56px; }
.slogan { text-shadow: 0 0 18px rgba(230,192,104,.6); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); text-shadow: 0 0 28px rgba(230,192,104,.9); } }
.badge4 span { color: #ecdcb0; box-shadow: inset 0 0 0 1px rgba(243,225,180,.2); animation: rise .5s backwards, floaty 3.4s ease-in-out infinite; font-size: 12px; }
.badge4 span b { display: block; font-size: 18px; margin-bottom: 2px; }
.badge4 span:nth-child(2) { animation-delay: .07s, .4s; } .badge4 span:nth-child(3) { animation-delay: .14s, .8s; } .badge4 span:nth-child(4) { animation-delay: .21s, 1.2s; }
@keyframes floaty { 50% { transform: translateY(-4px); } }

/* 小豚说话 */
.say .bubble { position: relative; background: linear-gradient(180deg, #ffffff, #efe6cf); animation: bubbleIn .5s cubic-bezier(.2,.9,.3,1.4) backwards .15s; transform-origin: 0 100%; }
@keyframes bubbleIn { from { transform: scale(.4); opacity: 0; } }
.say img { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }

/* 准确度条：流动高光 */
.acc .bar b { position: relative; overflow: hidden; box-shadow: 0 0 14px rgba(243,217,139,.6); }
.acc .bar b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: sweep 2s linear infinite; width: 40%; }
.steps i { transition: background .4s; } .steps i.on { box-shadow: 0 0 10px var(--cyan); }

/* 人格卡：全息流光 */
.pcard::after { content: ''; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%); animation: holo 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes holo { 0% { transform: translateX(-40%); } 100% { transform: translateX(40%); } }
.pcard .ptype { animation: rise .7s .3s backwards; }
.pcard .tags span { animation: rise .5s backwards; backdrop-filter: blur(6px); }
.pcard .tags span:nth-child(1) { animation-delay: .45s; } .pcard .tags span:nth-child(2) { animation-delay: .55s; } .pcard .tags span:nth-child(3) { animation-delay: .65s; } .pcard .tags span:nth-child(4) { animation-delay: .75s; }
.merge i { filter: blur(.5px); box-shadow: 0 0 40px currentColor; color: #fff; }

/* 舞台 */
.stage { box-shadow: 0 14px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(243,225,180,.25), inset 0 0 40px rgba(243,217,139,.08); }
.hud b { text-shadow: 0 0 12px rgba(230,192,104,.7); display: inline-block; }

/* 弹窗 */
.modal .box { position: relative; background: linear-gradient(165deg, rgba(46,40,28,.92), rgba(20,18,14,.95)); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(212,175,55,.25); overflow: hidden; }
.modal .box > * { position: relative; }
.modal .box h3 { background: linear-gradient(90deg, #fff, #f3d98b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal .box::after { content: ''; position: absolute; width: 220px; height: 220px; right: -80px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(243,217,139,.35), transparent 70%); pointer-events: none; }

/* 路线 */
.daytabs button.on { background: linear-gradient(180deg, #ecd08a, #9c7420) !important; box-shadow: 0 0 18px rgba(212,175,55,.55); }
.stop .h .star.on { animation: starPop .5s cubic-bezier(.2,.9,.3,1.6); }
@keyframes starPop { 0% { transform: scale(.3) rotate(-60deg); } 100% { transform: scale(1.2); } }
.crowd { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.crowd .knob { backdrop-filter: blur(2px); }
.crowd .knob:not(.bad) { box-shadow: 0 0 0 2px var(--cyan), 0 0 16px rgba(243,217,139,.7); }

/* 智民里 */
.town { background:
  radial-gradient(circle at 77% 50%, rgba(212,175,55,.25), transparent 35%),
  linear-gradient(90deg, transparent 47%, rgba(255,255,255,.07) 47% 53%, transparent 53%),
  linear-gradient(0deg, transparent 47%, rgba(255,255,255,.07) 47% 53%, transparent 53%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px), #0f0d0a; }
.room { transition: transform .2s cubic-bezier(.2,.9,.3,1.4), box-shadow .2s; }
.room:active { transform: translateY(4px) scale(.97); }
.room em { animation: floaty 2.6s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.room:nth-child(2) em { animation-delay: .5s; } .room:nth-child(3) em { animation-delay: 1s; } .room:nth-child(4) em { animation-delay: 1.5s; } .room:nth-child(5) em { animation-delay: 2s; }
.room.center { animation: biwen 2.4s ease-in-out infinite; }
@keyframes biwen { 50% { box-shadow: 0 6px 0 #6b4e10, 0 0 50px rgba(230,190,90,.85); } }
.room.got .stamp { animation: slam .45s cubic-bezier(.2,.9,.3,1.5); }
@keyframes slam { 0% { transform: scale(3) rotate(-30deg); opacity: 0; } 100% { transform: rotate(-12deg); } }
.stamps i.on { animation: slam .45s cubic-bezier(.2,.9,.3,1.5); }

/* 终关 */
.abil span.ok { background: linear-gradient(180deg, #cfe3a0, #8fae4a) !important; box-shadow: 0 0 16px rgba(185,210,122,.6); }
.abil span.cur { animation: onPulse 1.6s ease-in-out infinite; }
.cert { position: relative; overflow: hidden; }
.cert::after { content: ''; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.6) 50%, transparent 60%); animation: holo 2.8s ease-in-out infinite; }

/* 问小豚按钮 */
#askBtn { animation: askFloat 3s ease-in-out infinite; }
#askBtn::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(243,217,139,.6); animation: pulseRing 2s ease-out infinite; }
@keyframes askFloat { 50% { transform: translateY(-6px); } }
@keyframes pulseRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
#chat { background: linear-gradient(180deg, rgba(14,13,11,.97), rgba(6,6,6,.98)); backdrop-filter: blur(12px); }
.m { animation: rise .35s cubic-bezier(.2,.9,.3,1.3) backwards; }
.m.me { background: linear-gradient(160deg, #ecd08a, #9c7420); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

.scene > * { flex-shrink: 0; }
.top h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crowd { background: linear-gradient(90deg, rgba(185,210,122,.12), rgba(185,210,122,.05)); }
.crowd .pk { background: repeating-linear-gradient(135deg, rgba(214,96,86,.75) 0 6px, rgba(214,96,86,.45) 6px 12px); box-shadow: 0 0 12px rgba(214,96,86,.45); }
.crowd .cl { background: rgba(0,0,0,.55); }
.must .ck { color: transparent; transition: .2s; } .must.on .ck { color: #1a1205; }
.modal .emo { font-size: 44px; line-height: 1; margin: 6px 0 4px; animation: slam .5s cubic-bezier(.2,.9,.3,1.5); filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }

/* ================= 黑金主题收尾 ================= */
:root { --gold: #d4af37; --gold2: #f3d98b; --gold3: #8a6414; --red: #d66056; --green: #b9d27a; }
html, body { background: #000; }
#app { background: radial-gradient(110% 55% at 50% -8%, #3a2d14 0%, #15120c 40%, #080706 72%, #030303 100%); }
@media (min-width: 600px) { #app { box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(212,175,55,.35); } }
.btn { color: #1a1205; background: linear-gradient(180deg, #f6e3a8 0%, #d4af37 48%, #a67c1a 100%); box-shadow: 0 5px 0 #5c4410, 0 10px 26px rgba(212,175,55,.28), inset 0 1px 0 rgba(255,255,255,.6); }
.btn:active { box-shadow: 0 1px 0 #5c4410; }
.btn.sun { color: #f3d98b; background: linear-gradient(180deg, #2a2216, #0e0c08); box-shadow: 0 5px 0 #000, 0 0 0 1.5px #d4af37, 0 10px 28px rgba(212,175,55,.25), inset 0 1px 0 rgba(243,217,139,.25); letter-spacing: 3px; }
@keyframes glow { 50% { box-shadow: 0 5px 0 #000, 0 0 0 1.5px #f3d98b, 0 10px 44px rgba(212,175,55,.55); } }
.btn.ghost { color: #ecdcb0; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(212,175,55,.35); }
.btn::after { background: linear-gradient(90deg, transparent, rgba(255,250,230,.55), transparent); }
.btn.sun::after { background: linear-gradient(90deg, transparent, rgba(243,217,139,.3), transparent); }
.card, .stop, .opt, .ans, .must, .chip, .daytabs button, .abil span, .badge4 span { background: linear-gradient(160deg, rgba(48,40,26,.55), rgba(14,12,9,.7)) !important; }
.card::before, .stop::before, .modal .box::before, .pcard::before { background: linear-gradient(140deg, rgba(243,217,139,.75), rgba(212,175,55,.08) 38%, rgba(212,175,55,.04) 62%, rgba(243,217,139,.55)); }
.opt.on, .daytabs button.on { background: linear-gradient(160deg, #e9c96a, #a67c1a) !important; color: #1a1205; }
.opt.on span { color: #3a2a08; }
@keyframes onPulse { 50% { box-shadow: 0 0 0 1.5px #f3d98b, 0 0 24px rgba(212,175,55,.55); } }
.chip.on { color: #1a1205 !important; }
.say .bubble { background: linear-gradient(160deg, rgba(42,35,22,.92), rgba(16,14,10,.94)); color: #f5eedc; border: 1px solid rgba(212,175,55,.45); box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(243,217,139,.15); }
.m.bot { background: linear-gradient(160deg, #2a2316, #14110c); color: #f5eedc; border: 1px solid rgba(212,175,55,.35); }
.m.me { background: linear-gradient(160deg, #e9c96a, #a67c1a); color: #1a1205; }
.m .cat { background: rgba(212,175,55,.18); color: #f3d98b; }
#chat form button { background: linear-gradient(180deg, #f3d98b, #b88a2a); color: #1a1205; }
.logo { background: linear-gradient(100deg, #fff4d0 10%, #d4af37 30%, #fff8e1 50%, #b8892c 70%, #f6e3a8 90%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 16px rgba(212,175,55,.35)); }
.slogan { color: #e6c068; }
.top h2 { background: linear-gradient(90deg, #f5eedc, #d4af37 55%, #f5eedc); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; }
.hero .halo { background: conic-gradient(from 0deg, #f3d98b, #6b4e10, #d4af37, #2a2216, #f3d98b); opacity: .55; }
.hero .ring { border-color: rgba(212,175,55,.4); }
.hero .ring i { background: #f3d98b !important; box-shadow: 0 0 14px #d4af37 !important; }
.pcard { background: linear-gradient(160deg, var(--c1, #3a2f18), var(--c2, #0d0c0a)); color: #f5eedc; }
.pcard .ptype { background: linear-gradient(180deg, #fff4d0, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.pcard .tags span { background: rgba(212,175,55,.14); box-shadow: inset 0 0 0 1px rgba(212,175,55,.35); color: #f3d98b; }
.pcard .src span { background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(212,175,55,.18); }
.pcard::after { background: linear-gradient(115deg, transparent 42%, rgba(243,217,139,.22) 50%, transparent 58%); }
.modal .box { background: linear-gradient(165deg, rgba(38,32,22,.97), rgba(10,9,7,.98)); box-shadow: 0 30px 80px rgba(0,0,0,.75), 0 0 50px rgba(212,175,55,.15); }
.modal .box h3 { background: linear-gradient(90deg, #fff4d0, #d4af37); -webkit-background-clip: text; background-clip: text; }
.modal .box::after { background: radial-gradient(circle, rgba(212,175,55,.25), transparent 70%); }
.room { background: linear-gradient(180deg, #2a2418, #15120c); color: #ecdcb0; box-shadow: 0 6px 0 #000, inset 0 0 0 1px rgba(212,175,55,.4); }
.room.got { background: linear-gradient(180deg, #f3d98b, #b88a2a); color: #1a1205; box-shadow: 0 6px 0 #5c4410, 0 0 22px rgba(212,175,55,.4); }
.room.center { background: linear-gradient(180deg, #0f0d09, #000); color: #f3d98b; box-shadow: 0 6px 0 #000, 0 0 0 1.5px #d4af37, 0 0 30px rgba(212,175,55,.35); }
@keyframes biwen { 50% { box-shadow: 0 6px 0 #000, 0 0 0 1.5px #f3d98b, 0 0 50px rgba(212,175,55,.6); } }
.room .stamp, .stamps i.on { background: #9e2b25; }
.town { background: radial-gradient(circle at 77% 50%, rgba(212,175,55,.16), transparent 35%), linear-gradient(90deg, transparent 47%, rgba(212,175,55,.08) 47% 53%, transparent 53%), linear-gradient(0deg, transparent 47%, rgba(212,175,55,.08) 47% 53%, transparent 53%), repeating-linear-gradient(0deg, rgba(212,175,55,.04) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(212,175,55,.04) 0 1px, transparent 1px 22px), #0c0b08; box-shadow: inset 0 0 0 1px rgba(212,175,55,.3); }
.stage { background: #0c0b08; box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(212,175,55,.35); }
#askBtn { background: radial-gradient(circle at 50% 35%, #3a2f1a, #0b0a07); box-shadow: 0 8px 24px rgba(0,0,0,.6), 0 0 0 2px #d4af37, 0 0 20px rgba(212,175,55,.35); }
#askBtn::before { border-color: rgba(212,175,55,.6); }
#askBtn::after { background: linear-gradient(180deg, #f3d98b, #b88a2a); color: #1a1205; }
.acc .bar b { background: linear-gradient(90deg, #6b4e10, #d4af37, #f6e3a8); box-shadow: 0 0 14px rgba(212,175,55,.6); }
.steps i.on { background: #d4af37; box-shadow: 0 0 10px rgba(212,175,55,.8); }
.crowd .knob { background: rgba(243,217,139,.3); }
.crowd .knob:not(.bad) { box-shadow: 0 0 0 2px #f3d98b, 0 0 16px rgba(212,175,55,.7); }
.crowd { background: linear-gradient(90deg, rgba(185,210,122,.1), rgba(185,210,122,.04)); }
.abil span.ok { color: #1d2608; }
.top .tag { color: #f3d98b; }
.timer b { background: linear-gradient(90deg, #f3d98b, #d4af37, #9e2b25); }
.tl b, .tl div::before { color: #e6c068; } .tl div::before { background: #d4af37; box-shadow: 0 0 8px #d4af37; }
.cert { background: linear-gradient(160deg, #fff4d6, #e9c96a 60%, #b88a2a); color: #2a1d05; }
.cert h3 { color: #4a3208; }
/* 主次对调：.sun（主行动）实心金，.btn（普通）黑底金边 */
.btn { color: #f3d98b; background: linear-gradient(180deg, #2a2216, #0e0c08); box-shadow: 0 5px 0 #000, 0 0 0 1.5px rgba(212,175,55,.85), 0 10px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(243,217,139,.2); }
.btn:active { box-shadow: 0 1px 0 #000, 0 0 0 1.5px rgba(212,175,55,.85); }
.btn::after { background: linear-gradient(90deg, transparent, rgba(243,217,139,.25), transparent); }
.btn.sun { color: #1a1205; background: linear-gradient(180deg, #fbeab4 0%, #e2bd55 45%, #a67c1a 100%); box-shadow: 0 5px 0 #5c4410, 0 10px 30px rgba(212,175,55,.35), inset 0 1px 0 rgba(255,255,255,.65); letter-spacing: 3px; }
.btn.sun:active { box-shadow: 0 1px 0 #5c4410; }
.btn.sun::after { background: linear-gradient(90deg, transparent, rgba(255,252,235,.7), transparent); }
@keyframes glow { 50% { box-shadow: 0 5px 0 #5c4410, 0 10px 46px rgba(212,175,55,.7), 0 0 0 4px rgba(243,217,139,.15); } }
.btn.ghost { color: #ecdcb0; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(212,175,55,.3); }

/* 首页：四个独立板块 */
.home-head { display: flex; align-items: center; gap: 6px; margin: 6px 0 14px; }
.home-head > div:last-child { flex: 1; min-width: 0; }
.hero.sm { width: 132px; height: 132px; flex: none; }
.hero.sm .halo { width: 120px; height: 120px; } .hero.sm .ring { width: 136px; height: 136px; } .hero.sm .xt { width: 120px; }
.home-head .logo { font-size: 40px; margin: 4px 0; }
.home-head .slogan { font-size: 18px; letter-spacing: 1px; transform-origin: left center; }
.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mod { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; padding: 16px 14px 14px; min-height: 148px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(58,48,30,.75), rgba(12,10,8,.85)); box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(212,175,55,.38), inset 0 1px 0 rgba(243,217,139,.18);
  transition: transform .18s cubic-bezier(.2,.9,.3,1.4), box-shadow .2s; animation: rise .55s cubic-bezier(.2,.9,.25,1.15) backwards; }
.mod:nth-child(2) { animation-delay: .08s; } .mod:nth-child(3) { animation-delay: .16s; } .mod:nth-child(4) { animation-delay: .24s; }
.mod:active { transform: scale(.95); }
.mod::after { content: ''; position: absolute; top: -60%; bottom: -60%; width: 35%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(243,217,139,.18), transparent); animation: sweep 4s ease-in-out infinite; }
.mod:nth-child(2)::after { animation-delay: .6s; } .mod:nth-child(3)::after { animation-delay: 1.2s; } .mod:nth-child(4)::after { animation-delay: 1.8s; }
.mod em { font-style: normal; font-size: 34px; margin: 8px 0 4px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); animation: floaty 3s ease-in-out infinite; }
.mod:nth-child(2) em { animation-delay: .5s; } .mod:nth-child(3) em { animation-delay: 1s; } .mod:nth-child(4) em { animation-delay: 1.5s; }
.mod b { font-size: 17px; color: #f5eedc; letter-spacing: .5px; }
.mod small { font-size: 12.5px; color: #a99f86; }
.mod-n { position: absolute; top: 12px; left: 14px; font-family: var(--title); font-size: 22px; background: linear-gradient(180deg, #fff4d0, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mod-min, .mod-ok { position: absolute; top: 14px; right: 12px; font-size: 11px; padding: 2px 8px; border-radius: 99px; color: #d9c79a; box-shadow: inset 0 0 0 1px rgba(212,175,55,.35); }
.mod-ok { background: linear-gradient(180deg, #f3d98b, #b88a2a); color: #1a1205; box-shadow: none; font-weight: 700; }
.mod.done { box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 0 0 1.5px #d4af37, 0 0 22px rgba(212,175,55,.25); }
.mod:nth-child(3) { background: linear-gradient(160deg, rgba(110,86,36,.75), rgba(18,14,8,.88)); box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(243,217,139,.7), 0 0 26px rgba(212,175,55,.22); }
.skip { color: #c8b98f; }
.mod { padding-top: 44px; min-height: 168px; }
.mod em { margin: 0 0 6px; font-size: 36px; }
.scene:has(.mods) { justify-content: center; padding-bottom: 40px; }
.home-head { margin-bottom: 22px; }

/* ===== ④ SPU 与 SAIG：三段互动 ===== */
.steps4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.steps4 span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 12px; font-size: 13px; color: #a99f86; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(212,175,55,.2); transition: .3s; }
.steps4 i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; box-shadow: inset 0 0 0 1px rgba(212,175,55,.5); }
.steps4 span.cur { color: #f5eedc; box-shadow: inset 0 0 0 1.5px #d4af37, 0 0 16px rgba(212,175,55,.3); }
.steps4 span.ok { color: #1a1205; background: linear-gradient(180deg, #f3d98b, #b88a2a); }
.steps4 span.ok i { box-shadow: none; }

.formula { text-align: center; font-family: var(--title); font-size: 40px; margin: 2px 0 10px; background: linear-gradient(180deg, #fff4d0, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; }
.formula sup { font-size: 24px; }
.formula small { display: block; font-family: -apple-system, 'PingFang SC', sans-serif; font-size: 11px; color: #a99f86; -webkit-text-fill-color: #a99f86; margin-top: 2px; }
.umeter { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 2px 6px; color: #a99f86; font-size: 14px; }
.unum { font-family: var(--title); font-weight: 400; font-size: 40px; color: #f3d98b; text-shadow: 0 0 20px rgba(212,175,55,.6); transition: color .3s; font-variant-numeric: tabular-nums; }
.unum.low { color: #7d7360; text-shadow: none; }
.ftip { min-height: 44px; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.55; color: #f5eedc; background: rgba(212,175,55,.08); box-shadow: inset 0 0 0 1px rgba(212,175,55,.3); margin-bottom: 10px; }
.ftip.pop { animation: bubbleIn .45s cubic-bezier(.2,.9,.3,1.4); }
.slider { display: block; margin: 10px 0 4px; font-size: 14px; color: #ecdcb0; }
.slider > div { display: flex; justify-content: space-between; margin-bottom: 6px; }
.slider > div b { color: #f3d98b; font-variant-numeric: tabular-nums; }
.gold-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 9px; background: linear-gradient(90deg, #3a2c12, #d4af37); outline: none; box-shadow: inset 0 0 0 1px rgba(243,217,139,.3); }
.gold-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff8e1, #d4af37 60%, #8a6414); box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 0 18px rgba(212,175,55,.8); cursor: pointer; }
.gold-range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff8e1, #d4af37 60%, #8a6414); box-shadow: 0 0 18px rgba(212,175,55,.8); }

.order { position: relative; padding: 14px; border-radius: 18px; margin-bottom: 14px; background: linear-gradient(160deg, rgba(70,56,30,.7), rgba(14,12,9,.85)); box-shadow: inset 0 0 0 1.5px rgba(243,217,139,.6), 0 0 26px rgba(212,175,55,.18); animation: rise .5s backwards; }
.order-tag { font-size: 12px; color: #e6c068; margin-bottom: 6px; }
.order > b { display: block; font-size: 17px; line-height: 1.5; color: #fff8e6; }
.order-bar { height: 6px; border-radius: 9px; background: rgba(255,255,255,.08); margin-top: 10px; overflow: hidden; }
.order-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a67c1a, #f3d98b); box-shadow: 0 0 10px #d4af37; transition: width .5s cubic-bezier(.2,.9,.3,1.2); }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.slot { position: relative; aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 26px; border: 1.5px dashed rgba(212,175,55,.4); background: rgba(0,0,0,.25); transition: .3s; }
.slot i { position: absolute; top: 3px; left: 6px; font-style: normal; font-size: 10px; color: #a99f86; }
.slot.on { border: 1.5px solid #f3d98b; background: radial-gradient(circle, rgba(212,175,55,.35), rgba(0,0,0,.2)); box-shadow: 0 0 18px rgba(212,175,55,.45); animation: slam .45s cubic-bezier(.2,.9,.3,1.5); }
.hand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.acard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 16px; text-align: center;
  background: linear-gradient(170deg, #2e2618, #0d0b08); box-shadow: 0 6px 16px rgba(0,0,0,.5), inset 0 0 0 1.5px rgba(212,175,55,.6), inset 0 1px 0 rgba(243,217,139,.25);
  animation: deal .5s cubic-bezier(.2,.9,.3,1.3) backwards; transition: transform .15s; }
.acard:active { transform: translateY(-6px) scale(1.04); }
.acard em { font-style: normal; font-size: 28px; }
.acard b { font-size: 15px; color: #f3d98b; }
.acard small { font-size: 11px; color: #a99f86; line-height: 1.35; }
.acard.no { animation: shake .35s; box-shadow: 0 6px 16px rgba(0,0,0,.5), inset 0 0 0 1.5px #d66056; }
@keyframes deal { from { transform: translateY(60px) rotate(-8deg) scale(.8); opacity: 0; } }
.effects { display: flex; flex-direction: column; gap: 6px; }
.eff { padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; background: rgba(212,175,55,.07); box-shadow: inset 2px 0 0 #d4af37; animation: rise .4s backwards; color: #ecdcb0; }
.eff b { color: #f3d98b; margin-right: 6px; }

.track-wrap { position: relative; padding-left: 4px; }
.track { position: relative; padding-left: 56px; --prog: 0px; }
.track::before { content: ''; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: rgba(212,175,55,.18); }
.track::after { content: ''; position: absolute; left: 24px; top: 10px; width: 4px; height: var(--prog); border-radius: 4px; background: linear-gradient(180deg, #fff4d0, #d4af37); box-shadow: 0 0 12px #d4af37; transition: height .6s cubic-bezier(.2,.9,.3,1.1); }
.node { position: relative; display: flex; gap: 10px; margin-bottom: 14px; opacity: .28; filter: blur(1px); transition: opacity .5s, filter .5s, transform .5s; transform: translateX(10px); }
.node.on { opacity: 1; filter: none; transform: none; }
.node > i { position: absolute; left: -50px; top: 6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; background: #14110b; box-shadow: inset 0 0 0 1.5px rgba(212,175,55,.5); z-index: 1; }
.node.on > i { box-shadow: inset 0 0 0 2px #f3d98b, 0 0 16px rgba(212,175,55,.6); }
.node > div { flex: 1; padding: 10px 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(48,40,26,.55), rgba(14,12,9,.7)); box-shadow: inset 0 0 0 1px rgba(212,175,55,.3); }
.node b { color: #f3d98b; font-size: 15px; }
.node p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: #ecdcb0; }
.track-xt { position: absolute; left: -6px; width: 44px; top: 0; z-index: 2; transition: top .6s cubic-bezier(.2,.9,.3,1.1); filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); pointer-events: none; animation: bob 2.4s ease-in-out infinite; }
.uover { position: absolute; left: 12px; top: 8px; display: flex; flex-direction: column; font-size: 11px; color: #a99f86; pointer-events: none; }
.uover .unum { font-size: 30px; line-height: 1.1; }
.formula { font-size: 32px; margin: 0 0 8px; }
.slider { margin: 12px 0 2px; }
.ftip { min-height: 70px; display: flex; align-items: center; }
.ftip.pop { animation: tipIn .35s ease-out; }
@keyframes tipIn { from { opacity: .3; box-shadow: inset 0 0 0 1px rgba(243,217,139,.9), 0 0 20px rgba(212,175,55,.5); } }
/* 小豚游过转场 */
.scene.leaving { z-index: 2; pointer-events: none; background: radial-gradient(110% 55% at 50% -8%, #3a2d14 0%, #15120c 40%, #080706 72%, #030303 100%); }
.scene.leaving > * { animation: none; }
canvas.swim { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
.swim-xt { position: absolute; left: 0; top: 0; width: 140px; z-index: 31; pointer-events: none; filter: drop-shadow(0 0 18px rgba(243,217,139,.55)) drop-shadow(0 8px 14px rgba(0,0,0,.6)); will-change: transform; }
/* 人流时光机 */
.heatmap { border-radius: 18px 18px 0 0; }
.timemachine { margin: 0 0 12px; padding: 10px 12px 12px; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, rgba(26,21,12,.95), rgba(12,11,8,.95)); border: 1px solid rgba(212,175,55,.35); border-top: 0; }
.tm-row { display: flex; align-items: center; gap: 10px; }
.tm-play { flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #f3d98b, #b8892c); color: #1a1205; font-size: 14px; font-weight: 700; box-shadow: 0 0 14px rgba(212,175,55,.5); }
.tm-clock { flex: none; width: 52px; font-variant-numeric: tabular-nums; color: var(--sun); font-size: 17px; }
.tm-range { flex: 1; min-width: 0; }
.tm-msg { margin-top: 8px; min-height: 20px; font-size: 13px; color: var(--dim); }
.tm-msg.ok { color: #f3d98b; } .tm-msg.bad { color: #ff7a5c; }
/* 人格星图 */
.starmap { position: relative; margin: 8px 0 14px; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: radial-gradient(80% 70% at 50% 45%, rgba(58,45,20,.55), rgba(8,7,6,.9) 70%), #070605; box-shadow: inset 0 0 0 1px rgba(212,175,55,.35), 0 10px 30px rgba(0,0,0,.5); }
.starmap-cv { display: block; width: 100%; height: 320px; }
.seals { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; pointer-events: none; }
.seal { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; font-family: var(--title); font-size: 17px; letter-spacing: 1px; color: #fff4d0;
  background: linear-gradient(160deg, #b5301f, #7a1a10); box-shadow: inset 0 0 0 2px rgba(255,220,160,.55), 0 4px 12px rgba(0,0,0,.5); writing-mode: vertical-rl; animation: sealIn .38s cubic-bezier(.3,1.6,.5,1) backwards; }
.seal.now { animation: none; }
@keyframes sealIn { from { transform: scale(2.4) rotate(-12deg); opacity: 0; } 70% { transform: scale(.92) rotate(2deg); opacity: 1; } }
.sm-title { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font-family: var(--title); font-size: 30px; opacity: 0; transform: translateY(8px); transition: opacity .7s, transform .7s;
  background: linear-gradient(180deg, #fff4d0, #d4af37); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(212,175,55,.5)); }
.starmap.fin .sm-title { opacity: 1; transform: none; }
.sm-skip { position: absolute; right: 12px; top: 10px; font-size: 11px; color: rgba(255,255,255,.4); }
/* 语音问小豚 */
#chat .xt-av { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
#chat .xt-av img { width: 46px; transform-origin: 50% 90%; }
#chat .head.talking .xt-av img { animation: xtTalk .32s ease-in-out infinite alternate; }
#chat .head.talking .xt-av::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(243,217,139,.7); animation: pulseRing 1s ease-out infinite; }
@keyframes xtTalk { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.08, .94) rotate(3deg); } }
#chat .read { flex: none; font-size: 12px; padding: 6px 10px; border-radius: 99px; color: var(--dim); box-shadow: inset 0 0 0 1px rgba(212,175,55,.35); }
#chat .read.on { color: #1a1205; background: linear-gradient(180deg, #f3d98b, #b88a2a); }
#chat .mic { position: relative; flex: none; width: 48px; border-radius: 14px; background: rgba(212,175,55,.12); box-shadow: inset 0 0 0 1px rgba(212,175,55,.5); font-size: 20px; overflow: visible; }
#chat .mic span { position: relative; z-index: 1; }
#chat .mic i { position: absolute; inset: 0; border-radius: 14px; border: 2px solid rgba(243,217,139,.8); opacity: 0; }
#chat.listening .mic { background: linear-gradient(180deg, #f3d98b, #b88a2a); }
#chat.listening .mic i { animation: micWave 1.5s ease-out infinite; }
#chat.listening .mic i:nth-child(2) { animation-delay: .5s; } #chat.listening .mic i:nth-child(3) { animation-delay: 1s; }
@keyframes micWave { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
#chat .listen-tip { display: none; text-align: center; font-size: 13px; color: #f3d98b; padding: 6px; }
#chat.listening .listen-tip { display: block; animation: tipIn .3s; }
.scene.settled > * { animation: none; }
.zgrid .zg { font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols', serif; font-size: 26px; font-weight: 400; color: #f3d98b; }
/* 首页「江汉交汇，往哪游」 */
.scene:has(.harbor) { padding-bottom: 28px; }
.harbor-head { text-align: center; margin: 4px 0 8px; }
.logo.sm { font-size: 40px; margin: 0; }
.slogan.sm { font-size: 17px; margin-top: 2px; }
.harbor { position: relative; flex: 1 0 auto; min-height: 520px; max-height: 600px; border-radius: 26px; overflow: hidden; touch-action: none;
  background: radial-gradient(70% 60% at 50% 50%, rgba(58,45,20,.55), rgba(8,7,6,.92) 75%), #070605; box-shadow: inset 0 0 0 1px rgba(212,175,55,.35), 0 14px 40px rgba(0,0,0,.55); }
.harbor-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.dest { position: absolute; z-index: 2; width: 132px; transform: translate(-50%, -50%); padding: 10px 8px 9px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(34,27,14,.92), rgba(12,10,7,.92)); box-shadow: inset 0 0 0 1px rgba(212,175,55,.45), 0 8px 22px rgba(0,0,0,.5); transition: transform .25s, box-shadow .25s; }
.dest em { display: block; font-style: normal; font-size: 26px; line-height: 1.1; }
.dest b { display: block; font-size: 15px; margin-top: 3px; color: #fff4d0; white-space: nowrap; }
.dest small { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; white-space: nowrap; }
.dest .dest-n { position: absolute; left: 9px; top: 6px; font-family: var(--title); font-size: 16px; color: #d4af37; }
.dest.aim { transform: translate(-50%, -50%) scale(1.1); box-shadow: inset 0 0 0 2px #f3d98b, 0 0 26px rgba(243,217,139,.65); }
.dest.done { background: linear-gradient(180deg, rgba(212,175,55,.32), rgba(80,60,20,.85)); }
.dest.done small { color: #f3d98b; }
.dest.hit { animation: destHit .4s ease-out; }
@keyframes destHit { 40% { transform: translate(-50%, -50%) scale(1.22); } }
.harbor-tip { position: absolute; z-index: 3; left: 50%; top: 62%; transform: translateX(-50%); width: 220px; text-align: center; padding: 8px 10px; border-radius: 14px; pointer-events: none;
  background: rgba(10,9,7,.82); box-shadow: inset 0 0 0 1px rgba(212,175,55,.5); transition: opacity .3s; animation: tipBob 2.4s ease-in-out infinite; }
.harbor-tip b { display: block; color: #f3d98b; font-size: 15px; } .harbor-tip span { display: block; font-size: 13px; color: #fff4d0; margin-top: 2px; } .harbor-tip small { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }
.harbor-tip.hide { opacity: 0; }
@keyframes tipBob { 50% { transform: translateX(-50%) translateY(-4px); } }
.ghost-hand { position: absolute; z-index: 4; left: 0; top: 0; display: none; pointer-events: none; filter: drop-shadow(0 0 8px rgba(243,217,139,.9)) drop-shadow(0 3px 6px rgba(0,0,0,.6)); }

/* 弹窗内容多时可滚动；必打卡弹窗的按钮行贴底，永远点得到 */
.modal .box { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding-bottom: 0; }
.modal .box > :last-child { margin-bottom: 20px; }
.modal .box > .must-act { position: sticky; bottom: 0; z-index: 2; margin: 12px -20px 0; padding: 12px 20px 16px;
  background: linear-gradient(180deg, rgba(20,18,14,0), rgba(20,18,14,.96) 30%); }
.must-act .btn { white-space: nowrap; font-size: 15px; padding-left: 8px; padding-right: 8px; }
.must-act .btn.sun b { font-weight: 400; opacity: .8; margin-left: 4px; }
/* 金边改成边框背景，滚动时不会跟着内容跑 */
.modal .box::before { display: none; }
.modal .box { border: 1px solid transparent; background: linear-gradient(165deg, rgba(38,32,22,.97), rgba(10,9,7,.98)) padding-box,
  linear-gradient(140deg, rgba(243,217,139,.75), rgba(212,175,55,.08) 38%, rgba(212,175,55,.04) 62%, rgba(243,217,139,.55)) border-box; }
