/* 我是大作家 · 短短文「边选边写」+ 炊视班品牌 */

/* ---------- 品牌 ---------- */
.brand-logo { height: 38px; width: auto; flex: none; }
.lg-sep { width: 2px; height: 20px; border-radius: 1px; background: rgba(51,65,92,.25); margin: 0 2px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand img { height: 26px; width: auto; }
.f2 .bub.swap span { animation: sSwap .45s var(--spring); }
@keyframes sSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 选玩法：横滑 ---------- */
.modes.rail { grid-template-columns: repeat(3, 1fr); max-width: 1180px; }
.mode.soon { background: repeating-linear-gradient(135deg, #e3e9f1 0 14px, #eef2f7 14px 28px); border-style: dashed; box-shadow: 0 10px 0 rgba(51,65,92,.12); cursor: default; }
.mode.soon .pop-t { color: var(--navy2); text-shadow: none; }
.mode.soon .pop-b { background: rgba(255,255,255,.85); border-style: dashed; }
.mode.soon:hover { transform: none; }
.ill-soon { display: grid; place-items: center; }
.ill-soon .lock { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--navy); background: #fff; display: grid; place-items: center; font-size: 36px; box-shadow: 0 5px 0 var(--navy); }
.swipe-hint, .rail-dots { display: none; }

/* ---------- 选频道和题材 ---------- */
#suMode { justify-self: center; }
.setup { max-width: 640px; margin: 0 auto; padding: 4px 18px 40px; display: flex; flex-direction: column; gap: 16px; }
.setup h2 { text-align: center; font-size: clamp(30px, 6vw, 44px); }
.seg2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 30px; border: 3px solid var(--navy); background: #fff; box-shadow: 0 4px 0 rgba(51,65,92,.2); }
.seg2 .pill { position: absolute; left: 4px; top: 4px; bottom: 4px; border-radius: 24px; background: var(--navy); transition: transform .35s var(--spring), width .2s; }
.seg2 button { position: relative; height: 48px; border-radius: 24px; font-size: 16px; font-weight: 900; color: var(--navy); transition: color .2s; }
.seg2 button.on { color: #fff; }
.su-h { display: flex; align-items: baseline; justify-content: space-between; }
.su-h b { font-size: 18px; font-weight: 900; }
.su-h small { font-size: 12px; font-weight: 700; color: var(--navy2); }
.genres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gn { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 78px; padding: 12px 12px 10px; border-radius: 18px; border: 3px solid var(--navy); background: #fff; text-align: left; box-shadow: 0 3px 0 rgba(51,65,92,.25); transition: transform .2s var(--spring), box-shadow .2s, background .2s; }
.gn b { font-size: 16px; font-weight: 900; }
.gn small { font-size: 12px; font-weight: 700; color: var(--navy2); line-height: 1.4; }
.gn.on { background: var(--or-t); box-shadow: 0 5px 0 var(--navy); transform: translateY(-2px); }
.gn.on::after { content: "♪"; position: absolute; right: 10px; top: 8px; font-size: 16px; font-weight: 900; color: var(--or3); animation: sNote 1s ease-in-out infinite; }
.gn.deal { animation: sDeal .45s var(--spring) both; }
@keyframes sNote { 50% { transform: translateY(-4px) rotate(10deg); } }
@keyframes sDeal { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.hookbox { background: #fff; border: 3px solid var(--navy); border-radius: 22px; padding: 14px 16px 16px; box-shadow: 0 4px 0 rgba(51,65,92,.2); display: flex; flex-direction: column; gap: 8px; }
.hb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hb-tag { font-size: 12px; font-weight: 900; color: #fff; background: var(--navy); border-radius: 10px; padding: 3px 10px; }
.hb-re { font-size: 13px; font-weight: 900; padding: 8px 0 8px 8px; }
.hb-re:disabled { opacity: .5; }
.hb-txt { font-size: 16px; line-height: 1.75; font-weight: 700; min-height: 56px; }
.hb-txt.in { animation: sSwap .4s var(--spring); }
.hb-own { width: 100%; min-height: 96px; resize: vertical; border: 2px dashed rgba(51,65,92,.35); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--navy); background: var(--inset); }
.hb-own:focus { outline: none; border-color: var(--navy); background: #fff; }
.link-btn { align-self: center; padding: 10px; font-size: 14px; font-weight: 700; color: var(--navy2); }
.link-btn:hover { color: var(--navy); }

/* ---------- 边选边写 ---------- */
#story.active { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
#story .bar { position: relative; flex: none; }
.beats { display: flex; gap: 6px; width: min(420px, 100%); }
.bt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bt i { height: 12px; border-radius: 6px; border: 2px solid var(--navy3); background: #fff; }
.bt small { font-size: 11px; font-weight: 700; color: var(--navy3); text-align: center; white-space: nowrap; }
.bt small em { font-style: normal; color: var(--gold2); margin-left: 1px; }
.bt.d i { border-color: var(--navy); background: var(--or2); }
.bt.d small { color: var(--navy2); }
.bt.n i { border-color: var(--navy); background: repeating-linear-gradient(135deg, var(--or1) 0 5px, #fff 5px 10px); background-size: 200% 100%; animation: sStripe 1.2s linear infinite; }
.bt.n small { color: var(--navy); font-weight: 900; }
@keyframes sStripe { to { background-position: -28px 0; } }
#story:not(.mode-level) .lv-only { display: none; }
.story { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; padding: 0 20px 20px; max-width: 1240px; width: 100%; margin: 0 auto; }
.sheet { min-height: 0; display: flex; flex-direction: column; background: #fffdf8; border: 3px solid var(--navy); border-radius: 26px; box-shadow: 0 6px 0 rgba(51,65,92,.2); overflow: hidden; }
.sh-head { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px 10px; border-bottom: 2px dashed rgba(51,65,92,.18); }
.sh-head b { font-size: 18px; font-weight: 900; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-head small { flex: none; font-size: 12px; font-weight: 700; color: var(--navy2); }
.sh-head small b { font-size: 12px; color: var(--or3); }
.sh-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.idea-line { font-size: 13px; line-height: 1.6; color: var(--navy2); background: var(--inset); border-radius: 12px; padding: 8px 12px; }
.idea-line small { font-size: 11px; font-weight: 900; color: #fff; background: var(--navy3); border-radius: 6px; padding: 1px 6px; margin-right: 6px; }
.psg-wrap { position: relative; }
.psg { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 17px; line-height: 1.95; text-indent: 2em; white-space: pre-wrap; color: var(--navy); }
.psg-wrap:not(:last-of-type) .psg { color: #4a5874; }
.psg-wrap.typing .psg::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--or3); animation: sCaret .8s steps(2) infinite; }
@keyframes sCaret { 50% { opacity: 0; } }
.psg-wrap.landed .psg { animation: sLand .6s var(--ease); }
@keyframes sLand { from { background: rgba(255,201,147,.45); } to { background: transparent; } }
.psg-gain { position: absolute; right: -6px; top: -12px; transform: rotate(8deg); font-size: 12px; font-weight: 900; color: #fff; background: var(--or3); border: 2px solid var(--navy); border-radius: 10px; padding: 2px 8px; box-shadow: 0 3px 0 var(--navy); }
.psg-gain.pop { animation: sGain .6s var(--spring); }
@keyframes sGain { from { transform: rotate(8deg) scale(0); } }
.psg-redo { margin-top: 4px; font-size: 12px; font-weight: 900; color: var(--navy2); padding: 6px 10px; border-radius: 12px; border: 2px dashed rgba(51,65,92,.3); }
.psg-redo:hover { color: var(--navy); border-color: var(--navy); }
.st-bub { display: flex; align-items: flex-start; gap: 10px; background: #eef2f7; border: 2px solid var(--navy); border-radius: 18px; padding: 10px 12px; }
.st-bub .mascot { width: 34px; height: 34px; }
.st-bub small { display: block; font-size: 11px; font-weight: 900; color: var(--navy2); margin-bottom: 2px; }
.st-bub .say { font-size: 14px; font-weight: 700; line-height: 1.55; }
.st-bub.hop .mascot { animation: hop .7s var(--spring); }
.st-bub.think .mascot { animation: wobble 1.4s ease-in-out infinite; }
.st-bub.think .say::after { content: ""; display: inline-block; width: 1.4em; animation: dots 1.2s steps(4) infinite; }
.st-bub.hidden { display: none; }

/* 选走向 */
.pick { min-height: 0; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 3px solid var(--navy); border-radius: 26px; padding: 14px 14px 16px; box-shadow: 0 6px 0 rgba(51,65,92,.2); overflow: hidden; }
.pk-grip { display: none; }
.pk-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pk-head small { display: block; font-size: 12px; font-weight: 900; color: var(--or3); }
.pk-head b { font-size: 19px; font-weight: 900; }
.pk-re { flex: none; font-size: 13px; font-weight: 900; padding: 10px 0 10px 10px; }
.pk-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 6px; }
.pk-item { position: relative; display: flex; gap: 10px; text-align: left; border: 3px solid var(--navy); border-radius: 18px; padding: 11px 14px 12px; background: #fff; box-shadow: 0 4px 0 var(--navy); transition: transform .15s, box-shadow .15s; }
.pk-item:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.pk-item:hover { background: #fffaf3; }
.pk-item.on { background: var(--or-t); }
.pk-item .pk-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pk-item h4 { font-size: 16px; font-weight: 900; }
.pk-item p { font-size: 14px; line-height: 1.55; color: var(--navy2); font-weight: 600; }
.pk-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pk-tags .chip { height: 24px; font-size: 12px; padding: 0 9px; }
.chip.gold { background: var(--gold); }
.chip.hid { background: #ece4ff; }
.egg-hint { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 900; color: #8a5a00; }
.pk-key { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--navy); background: var(--or1); display: grid; place-items: center; font-weight: 900; }
.pk-item.rare { background: linear-gradient(180deg, #fff8e0, #fff); box-shadow: 0 4px 0 var(--navy), 0 0 0 4px var(--gold); animation: sGlow 1.6s ease-in-out infinite; }
@keyframes sGlow { 50% { box-shadow: 0 4px 0 var(--navy), 0 0 0 4px var(--gold), 0 0 22px 4px rgba(255,201,60,.55); } }
.pk-item.hid { background: linear-gradient(180deg, #f3eeff, #fff); }
.pk-item.locked { opacity: .75; border-style: dashed; box-shadow: 0 3px 0 rgba(51,65,92,.3); }
.pk-item.flip { animation: sFlip .55s var(--spring) both; }
@keyframes sFlip { from { opacity: 0; transform: perspective(600px) rotateX(-70deg) translateY(16px); } }
.pk-item.back { min-height: 84px; align-items: center; justify-content: center; gap: 10px; background: repeating-linear-gradient(135deg, #d6ebff 0 10px, #eaf4ff 10px 20px); animation: sBreath 1.2s ease-in-out infinite; animation-delay: calc(var(--k) * .15s); }
.pk-item.back b { font-size: 26px; font-weight: 900; }
@keyframes sBreath { 50% { transform: scale(.97); opacity: .75; } }
.pk-own { flex: none; height: 48px; border-radius: 24px; border: 3px dashed var(--navy); background: var(--bg); font-size: 15px; font-weight: 900; }
.pick.writing .pk-re, .pick.writing .pk-own, .pick.done .pk-own { display: none; }
.pick.writing .pk-list { display: none; }
.pk-dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); margin-left: 4px; animation: sDot 1s infinite; vertical-align: middle; }
.pk-dots i:nth-child(2) { animation-delay: .15s; } .pk-dots i:nth-child(3) { animation-delay: .3s; }
.pk-writing { display: flex; align-items: center; gap: 10px; padding: 14px 6px; font-size: 15px; font-weight: 900; }
.pk-writing .mascot { animation: wobble 1.4s ease-in-out infinite; }
.pk-writing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); margin-left: 4px; animation: sDot 1s infinite; }
.pk-writing i:nth-child(2) { animation-delay: .15s; } .pk-writing i:nth-child(3) { animation-delay: .3s; }
@keyframes sDot { 50% { transform: translateY(-5px); opacity: .4; } }
.done-acts { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.da-row { display: flex; gap: 10px; }
.da-row .gb { flex: 1; padding: 0 10px; }
.own-count { text-align: right; font-size: 12px; font-weight: 700; color: var(--navy3); margin-top: 4px; }

/* ---------- 惊喜 ---------- */
.lv-pass { position: absolute; left: 50%; top: 38%; translate: -50% -50%; display: grid; justify-items: center; gap: 8px; padding: 18px 30px 16px; background: linear-gradient(180deg, var(--or1), var(--or2)); border: 4px solid var(--navy); border-radius: 26px; box-shadow: 0 8px 0 var(--navy); animation: modalIn .5s var(--spring); }
.lv-pass b { font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 var(--navy), 2px 0 0 var(--navy), -2px 0 0 var(--navy), 0 -2px 0 var(--navy); }
.lv-pass small { font-size: 13px; font-weight: 900; color: var(--navy); }
.lp-stars { display: flex; gap: 6px; }
.lp-stars svg { width: 42px; height: 42px; animation: sStar .45s var(--spring) both; }
.lp-stars svg:nth-child(2) { width: 52px; height: 52px; margin-top: -8px; }
@keyframes sStar { from { transform: scale(0) rotate(-90deg); } }
.lv-pass.out, .hot-ev.out, .quote-ev.out { animation: fadeOut .28s forwards; }
.hot-ev { position: absolute; left: 50%; top: 14px; translate: -50% 0; width: min(420px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 3px solid var(--navy); border-radius: 20px; box-shadow: 0 5px 0 var(--navy); animation: sDrop .55s var(--spring); }
@keyframes sDrop { from { transform: translateY(-140%); } }
.he-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #d8452f; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.hot-ev div { flex: 1; min-width: 0; }
.hot-ev small { display: block; font-size: 11px; font-weight: 900; color: var(--navy2); }
.hot-ev b { display: block; font-size: 16px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-rank { flex: none; font-size: 13px; font-weight: 900; display: flex; align-items: center; gap: 4px; }
.he-rank em { font-style: normal; font-size: 11px; color: #fff; background: #d8452f; border-radius: 6px; padding: 1px 5px; }
.quote-ev { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(51,65,92,.25); animation: fadeIn .2s; }
.qe-card { width: min(320px, calc(100vw - 48px)); padding: 18px 20px 14px; background: linear-gradient(160deg, #fff, var(--or-t)); border: 4px solid var(--navy); border-radius: 24px; box-shadow: 0 8px 0 var(--navy); transform: rotate(-3deg); animation: sQuote .65s var(--spring); display: grid; gap: 10px; }
@keyframes sQuote { from { transform: rotate(-30deg) scale(.3); opacity: 0; } }
.qe-card small { font-size: 12px; font-weight: 900; color: var(--or3); }
.qe-card p { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; font-weight: 900; line-height: 1.6; }
.qe-brand { justify-self: end; font-size: 11px; font-weight: 700; color: var(--navy3); }

.ssr-stage { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; color: #fff; background: radial-gradient(circle at 50% 45%, #4a5a7c 0, #263149 55%, #1b2336 100%); animation: fadeIn .3s; overflow: hidden; }
.ssr-stage.out { animation: fadeOut .28s forwards; }
.ss-rays { position: absolute; left: 50%; top: 45%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,201,60,.18) 0 9deg, rgba(255,201,60,0) 9deg 22deg); opacity: 0; transition: opacity .6s; animation: sSpin 18s linear infinite; }
.ss-glow { position: absolute; left: 50%; top: 45%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(rgba(255,201,60,.5), rgba(255,201,60,0) 70%); opacity: 0; transition: opacity .6s; }
.ssr-stage.open .ss-rays, .ssr-stage.open .ss-glow { opacity: 1; }
@keyframes sSpin { to { transform: rotate(360deg); } }
.ss-t { position: relative; font-size: clamp(34px, 8vw, 52px); font-weight: 900; color: var(--gold); text-shadow: 0 5px 0 #1b2336, 3px 0 0 #1b2336, -3px 0 0 #1b2336, 0 -3px 0 #1b2336; animation: slamIn .5s var(--spring) both; }
.ss-sub { position: relative; font-size: 13px; font-weight: 700; color: #c9d2e0; }
.ss-card { position: relative; width: min(320px, 86vw); padding: 10px; border-radius: 26px; border: 4px solid #1b2336; background: linear-gradient(160deg, #fff3c4, var(--gold) 55%, var(--gold2)); box-shadow: 0 10px 0 #1b2336, 0 0 60px rgba(255,201,60,.55); transform: perspective(800px) rotateY(180deg) scale(.6); opacity: 0; transition: transform .8s var(--spring), opacity .3s; }
.ssr-stage.open .ss-card { transform: rotate(-2deg); opacity: 1; }
.ss-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 8px; color: #1b2336; }
.ss-top b { font-family: "Noto Serif SC", serif; font-size: 28px; font-weight: 900; }
.ss-top span { font-size: 12px; font-weight: 900; background: #fff; border: 2px solid #1b2336; border-radius: 10px; padding: 2px 8px; }
.ss-in { position: relative; overflow: hidden; background: #fffdf8; border-radius: 18px; border: 3px solid #1b2336; padding: 16px; color: var(--navy); display: grid; gap: 10px; min-height: 160px; }
.ss-in h3 { font-size: 19px; font-weight: 900; text-align: center; }
.ss-txt { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 16px; line-height: 1.85; font-weight: 600; position: relative; }
.ss-wm { position: absolute; right: -14px; bottom: -10px; height: 96px; width: auto; opacity: .1; transform: rotate(-12deg); }
.ss-col { position: relative; font-size: 13px; font-weight: 700; color: #c9d2e0; }
.ss-col b { color: var(--gold); }
.ss-go { position: relative; opacity: 0; pointer-events: none; transition: opacity .3s; min-width: 220px; }
.ssr-stage.done .ss-go { opacity: 1; pointer-events: auto; }

/* ---------- 完稿仪式 ---------- */
.cer { position: fixed; inset: 0; z-index: 70; overflow-y: auto; background: rgba(238,242,247,.97); animation: fadeIn .3s; }
.cer.out { animation: fadeOut .25s forwards; }
.cer-in { position: relative; max-width: 440px; margin: 0 auto; padding: 34px 20px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cer-x { position: absolute; right: 14px; top: 14px; }
.cer-t { font-size: 42px; letter-spacing: .06em; animation: slamIn .5s var(--spring) both; }
.cer-sub { font-size: 14px; font-weight: 700; color: var(--navy2); }
.cer-book { position: relative; width: 236px; height: 300px; margin: 8px 0 4px; animation: sBook .8s var(--spring) .2s both; }
@keyframes sBook { from { transform: translateY(-60px) rotate(-8deg); opacity: 0; } }
.cb-back { position: absolute; left: 14px; top: 10px; width: 222px; height: 290px; border-radius: 8px 20px 20px 8px; background: var(--bl2); border: 3px solid var(--navy); }
.cb-face { position: absolute; inset: 0 14px 10px 0; border-radius: 6px 20px 20px 6px; background: var(--navy); box-shadow: 0 10px 0 rgba(51,65,92,.25); padding: 22px 18px 18px 26px; display: flex; flex-direction: column; color: #fff; overflow: hidden; }
.cb-face::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.2); }
.cb-face small { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #c9d2e0; }
.cb-face h3 { margin-top: 16px; font-family: "Noto Serif SC", serif; font-size: 27px; font-weight: 900; line-height: 1.35; letter-spacing: 2px; word-break: break-all; }
.cb-au { margin-top: auto; font-size: 12px; font-weight: 700; color: #c9d2e0; }
.cb-au b { color: #fff; }
.cb-w { margin-top: 4px; font-size: 12px; font-weight: 700; color: #c9d2e0; }
.cer-stamp { position: absolute; right: -22px; top: 150px; width: 96px; height: 96px; border-radius: 50%; border: 4px solid #d8452f; color: #d8452f; background: rgba(255,255,255,.9); box-shadow: 0 0 0 4px rgba(255,255,255,.9); display: grid; place-content: center; text-align: center; line-height: 1.1; transform: rotate(-14deg) scale(3); opacity: 0; }
.cer.stamp .cer-stamp { animation: sStamp .35s cubic-bezier(.5,0,.75,1.4) forwards; }
@keyframes sStamp { to { transform: rotate(-14deg) scale(1); opacity: 1; } }
.cer-stamp small { font-size: 10px; font-weight: 900; }
.cer-stamp b { font-family: "Noto Serif SC", serif; font-size: 26px; font-weight: 900; letter-spacing: 2px; }
.cer-stamp em { font-style: normal; font-size: 9px; font-weight: 900; }
.cer-stats { width: 100%; display: flex; background: #fff; border: 3px solid var(--navy); border-radius: 20px; padding: 12px 8px; box-shadow: 0 4px 0 rgba(51,65,92,.2); }
.cer-stats div { flex: 1; display: grid; justify-items: center; gap: 2px; }
.cer-stats div + div { border-left: 2px dashed rgba(51,65,92,.2); }
.cer-stats b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cer-stats small { font-size: 12px; font-weight: 700; color: var(--navy2); }
.cer-quote { width: 100%; display: flex; gap: 10px; align-items: flex-start; background: var(--or-t); border: 3px solid var(--navy); border-radius: 18px; padding: 10px 14px; }
.cer-quote span { flex: none; font-size: 11px; font-weight: 900; color: #fff; background: var(--navy); border-radius: 8px; padding: 2px 8px; margin-top: 3px; }
.cer-quote p { font-family: "Noto Serif SC", serif; font-size: 15px; font-weight: 700; line-height: 1.6; }
.cer-pen { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; }
.cer-pen input { flex: 1; min-width: 0; height: 40px; border: 2px dashed rgba(51,65,92,.35); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--navy); background: #fff; }
.cer-pen input:focus { outline: none; border-color: var(--navy); }
.cer-row { width: 100%; display: flex; gap: 8px; }
.cer-row .gb { flex: 1; padding: 0 6px; font-size: 14px; }
.poster-view { max-height: 62vh; overflow-y: auto; border-radius: 16px; border: 3px solid var(--navy); background: var(--or1); }
.poster-view img { display: block; width: 100%; height: auto; }
.pv-tip { margin-top: 10px; text-align: center; font-size: 12px; font-weight: 700; color: var(--navy2); }

/* ---------- 平板 / 手机 ---------- */
@media (max-width: 960px) {
  .modes.rail { grid-template-columns: repeat(3, 1fr); }
  .story { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 0 12px 0; gap: 0; }
  .sheet { border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: none; }
  .pick { margin: -16px -12px 0; border-radius: 26px 26px 0 0; border-bottom: 0; border-left: 0; border-right: 0; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); max-height: 56vh; max-height: 56dvh; box-shadow: 0 -6px 0 rgba(51,65,92,.08); position: relative; z-index: 2; }
  /* 选项抽屉：读的时候收起只露一条，选的时候拉起 */
  .story { position: relative; grid-template-rows: minmax(0, 1fr); }
  .sh-body { padding-bottom: 104px; }
  .pick { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-height: 82vh; max-height: 82dvh; transform: translateY(calc(100% - 84px - env(safe-area-inset-bottom))); transition: transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .3s; box-shadow: 0 -4px 0 rgba(51,65,92,.08), 0 -10px 24px rgba(51,65,92,.10); }
  .pick.open { transform: none; box-shadow: 0 -6px 0 rgba(51,65,92,.08), 0 -18px 40px rgba(51,65,92,.22); }
  .pick:not(.open) .pk-head { cursor: pointer; }
  .pk-grip { display: block; width: 100%; height: 22px; margin: -6px 0 0; padding: 0; border: 0; background: none; cursor: pointer; }
  .pk-grip i { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(51,65,92,.25); margin: 0 auto; }
  .pick.writing, .pick.done { max-height: 82vh; max-height: 82dvh; }
}
@media (min-width: 961px) { .pk-grip { display: none; } }

/* ---------- 朗读：当前句高亮 ---------- */
.snt { transition: background .3s, color .3s; border-radius: 4px; }
.snt.on { background: linear-gradient(transparent 55%, rgba(255,196,0,.38) 55%); }
.snt.hit { font-weight: 800; color: var(--navy, #33415c); }
.snt.gold { font-weight: 900; color: #b8860b; background: linear-gradient(transparent 50%, rgba(255,210,60,.5) 50%); }
#pkStatus { font-weight: 800; }
.pk-skip { margin-left: 8px; padding: 4px 10px; border: 2px solid rgba(51,65,92,.25); border-radius: 999px; background: #fff; font: inherit; font-size: 12px; font-weight: 800; color: var(--navy2, #50607e); cursor: pointer; }
.pk-skip:active { transform: scale(.96); }
.pk-tip { margin: 6px 0 10px; font-size: 13px; font-weight: 700; color: var(--navy2, #50607e); text-align: center; }
@media (max-width: 760px) {
  /* 选玩法：横向滑动，露出下一张的边，告诉用户不止一种 */
  .choose { padding: 0 0 40px; }
  .choose > h2, .choose > p { padding: 0 20px; }
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--navy2); }
  .swipe-hint i { width: 30px; height: 12px; background: linear-gradient(90deg, transparent 0 2px, var(--navy2) 2px 24px, transparent 24px) center / 100% 3px no-repeat; position: relative; animation: sNudge 1.4s ease-in-out infinite; }
  .swipe-hint i::after { content: ""; position: absolute; right: 2px; top: 1px; width: 7px; height: 7px; border-right: 3px solid var(--navy2); border-top: 3px solid var(--navy2); transform: rotate(45deg); }
  @keyframes sNudge { 50% { transform: translateX(6px); } }
  .modes.rail { display: flex; gap: 14px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 40px 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .modes.rail::-webkit-scrollbar { display: none; }
  .modes.rail > .mode { flex: 0 0 min(300px, 78vw); scroll-snap-align: center; }
  .modes.rail > .mode:hover { transform: none; }
  .rail-dots { display: flex; justify-content: center; gap: 8px; }
  .rail-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--navy3); transition: width .25s var(--spring), background .2s; cursor: pointer; }
  .rail-dots i.on { width: 22px; background: var(--navy); }
  .mode .ill { height: 120px; }
  .mode h3 { font-size: 21px; }
}
@media (max-width: 640px) {
  .brand-logo { height: 32px; }
  .logo { font-size: 16px; gap: 6px; }
  .genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup { gap: 14px; padding: 0 16px 30px; }
  #story .bar { grid-template-columns: auto 1fr auto; }
  #story .bar .hud { height: 34px; font-size: 13px; padding: 0 8px 0 3px; }
  #story .bar .hud .ico { width: 22px; height: 22px; font-size: 11px; }
  #story.mode-level #stFansH { display: none; }
  .beats { gap: 4px; }
  .bt small { font-size: 10px; }
  .bt i { height: 10px; }
  .sh-head { padding: 12px 14px 8px; }
  .sh-head b { font-size: 16px; }
  .sh-body { padding: 12px 16px 26px; }
  .psg { font-size: 16px; line-height: 1.9; }
  .pk-head b { font-size: 17px; }
  .pk-item { padding: 10px 12px 11px; }
  .pk-item p { font-size: 13.5px; }
  .pk-key { width: 32px; height: 32px; }
  .cer-row .gb { font-size: 13px; }
}
