/* 给图零零完整的一生
   画面主体都在 WebGL 画布里；这里只有压在上面的少量界面。
   用色：近黑 #0A0408、米白 #F5EDE6、特效粉 #FF3D7F（只改 --pink 一处）、亮黄只给最要紧的、青色是她发卡上的那一点蓝。
   老内核：不用 inset、aspect-ratio、flex gap。 */
@font-face { font-family: "Smiley Sans"; src: url("assets/SmileySans-Oblique.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Smiley Sans"; src: url("assets/SmileySans-Oblique.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
:root {
  color-scheme: dark;
  --disp: "Smiley Sans", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --pink: #FF3D7F;
  --ink: #0A0408;
  --paper: #F5EDE6;
  --yellow: #FCEE0A;
  --cyan: #2DE2E6;
  --dim: rgba(245, 237, 230, .62);
  --line: rgba(245, 237, 230, .22);
  --cjk: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", var(--cjk);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--paper); font-family: var(--cjk); overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; }
/* 只做手机竖版。所有东西都在 #stage 里：窗口比手机宽（电脑、平板横着放）的时候它是居中的一条竖屏，两边留空。
   它带一个 transform，里面 position: fixed 的元素就都以它为准，不用一个个改；宽度和左边距由 js 算（T.stageFit） */
#stage { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; -webkit-transform: translateZ(0); transform: translateZ(0); }
#gl { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }

/* ---------- 按钮：硬边、切角、实色 ---------- */
.btn { position: relative; display: inline-block; font-weight: 900; letter-spacing: .02em; line-height: 1; white-space: nowrap; transition: transform .08s, filter .12s; }
.btn:active { transform: translateY(2px) scale(.98); filter: brightness(1.25); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.main { background: var(--pink); color: var(--ink); font-size: 21px; padding: 0 22px; height: 58px; font-style: italic;
  -webkit-clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.btn.main b { font-family: var(--num); font-size: 26px; margin-left: 10px; font-style: italic; }
.btn.main.empty { background: #3a2a32; color: var(--dim); }
.btn.ghost { background: rgba(10, 4, 8, .72); color: var(--paper); border: 1px solid var(--line); font-size: 15px; padding: 0 14px; height: 44px;
  -webkit-clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.btn.ghost.sm { height: 38px; font-size: 14px; }
.btn.ghost.on { background: var(--paper); color: var(--ink); }
.btn.side { height: 58px; padding: 0 12px; min-width: 84px; text-align: center; }
.btn.side span { display: block; font-size: 16px; }
.btn.side small { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--pink); }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- 主画面 ---------- */
#hud { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
#hud > * { pointer-events: auto; }
#hud.quiet .hud-bottom, #hud.quiet #btnMenu { opacity: .0; pointer-events: none; }
@keyframes hudIn { from { opacity: 0; } to { opacity: 1; } }
.hud-top { position: absolute; left: 0; top: 0; width: 100%; padding: calc(10px + var(--safe-t)) 12px 26px 14px; display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(rgba(10, 4, 8, .86), rgba(10, 4, 8, .5) 62%, rgba(10, 4, 8, 0)); pointer-events: none !important; }
.hud-top > * { pointer-events: auto; }
.life .lab { font-size: 12px; font-weight: 700; color: var(--dim); letter-spacing: .08em; }
.life .num { margin-top: 2px; white-space: nowrap; }
.life .num b { font-family: var(--num); font-style: italic; font-size: 40px; line-height: 1; color: var(--paper); letter-spacing: .01em; display: inline-block; transform-origin: left bottom; text-shadow: 3px 3px 0 var(--pink); }
.life .num b.bump { animation: bump .32s; }
@keyframes bump { 0% { transform: scale(1.32); color: var(--yellow); } 100% { transform: scale(1); } }
.life .num span { font-family: var(--num); font-size: 15px; color: var(--dim); margin-left: 8px; font-weight: 700; }
/* 图例：三种碎片各一个按钮（色块就是那种碎片的样子），比去点小碎片好点。这一行比上面的读数宽，让它自己往右伸，不把右上角的按钮挤走 */
#cnt { margin-top: 8px; width: 168px; display: flex; white-space: nowrap; }
#cnt button { flex: 0 0 auto; display: flex; align-items: center; height: 32px; padding: 0 9px 0 8px; margin-right: 6px; font-size: 12px; font-weight: 700; color: var(--paper); background: rgba(10,4,8,.6); border: 1px solid var(--line); }
#cnt button:active { background: rgba(255,61,127,.28); }
#cnt b { font-family: var(--num); font-size: 15px; margin-left: 5px; color: var(--paper); }
#cnt .sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; -webkit-transform: skewX(-12deg); transform: skewX(-12deg); }
#cnt .sw.lit { background: var(--paper); }
#cnt .sw.lock { background: #e8c4d2; opacity: .75; }
#cnt .sw.void { background: repeating-linear-gradient(135deg, #8a6878 0, #8a6878 2px, #1c0d16 2px, #1c0d16 4px); box-shadow: 0 0 0 1px rgba(245,237,230,.35); }
.life .track { position: relative; width: 168px; height: 3px; margin-top: 7px; background: rgba(245,237,230,.16); -webkit-transform: skewX(-24deg); transform: skewX(-24deg); }
.life .track i { position: absolute; left: 0; top: 0; height: 100%; min-width: 5px; background: var(--pink); box-shadow: 0 0 8px rgba(255,61,127,.8); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.hud-title { position: absolute; left: 16px; bottom: calc(112px + var(--safe-b)); padding-left: 15px; font-size: 50px; line-height: 1; pointer-events: none !important; transition: opacity .25s; }
.hud-title::before { content: ''; position: absolute; left: 2px; top: 1px; bottom: 5px; width: 4px; background: var(--pink); -webkit-transform: skewX(-9deg); transform: skewX(-9deg); }
.hud-title i { display: block; font-family: var(--num); font-style: normal; font-size: 10px; letter-spacing: .34em; color: rgba(245,237,230,.55); margin-bottom: 8px; white-space: nowrap; }
.hud-title span { display: block; font-size: .5em; color: var(--paper); letter-spacing: .08em; text-shadow: 0 2px 10px rgba(10,2,7,.9); }
.hud-title em { display: block; margin-top: .09em; font-style: normal; color: var(--pink); text-shadow: 3px 3px 0 var(--ink), 0 4px 18px rgba(10,2,7,.8); white-space: nowrap; }
#hud.quiet .hud-title { opacity: 0; }
.hud-bottom { position: absolute; left: 0; bottom: 0; width: 100%; padding: 30px 12px calc(14px + var(--safe-b)); display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(rgba(10, 4, 8, 0), rgba(10, 4, 8, .62) 45%, rgba(10, 4, 8, .9)); pointer-events: none !important; transition: opacity .2s; }
.hud-bottom > * { pointer-events: auto; }
.hud-bottom .main { flex: 1 1 auto; margin: 0 8px; max-width: 280px; text-align: center; }
.btn.main.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.28); } }

/* 点中一块碎片时的说明 */
#tip { position: fixed; left: 12px; right: 12px; bottom: calc(96px + var(--safe-b)); background: rgba(10, 4, 8, .94); border: 1px solid var(--line); border-left: 4px solid var(--pink); padding: 12px 14px 12px 14px; animation: tipIn .18s both; z-index: 5; }
@keyframes tipIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#tip .k { font-size: 12px; font-weight: 700; color: var(--dim); }
#tip .n { font-size: 22px; font-weight: 900; font-style: italic; margin-top: 3px; }
#tip .s { font-size: 13px; color: var(--dim); margin-top: 5px; line-height: 1.5; }
#tip .row { margin-top: 10px; display: flex; flex-wrap: wrap; }
#tip .row .btn.ghost { height: 46px; line-height: 44px; }
#tip .row .btn { margin-right: 8px; }
#tip.void { border-left-color: var(--cyan); }
#tip .x { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; font-size: 20px; color: var(--dim); }

/* 叙事字幕、提示、底部按钮 */
#cap { position: fixed; left: 0; width: 100%; bottom: calc(15% + var(--safe-b)); text-align: center; padding: 0 22px; font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: var(--paper); pointer-events: none; opacity: 0; transition: opacity .45s; text-shadow: 0 0 12px rgba(10, 4, 8, .9), 0 1px 2px rgba(10, 4, 8, .9); z-index: 4; }
#cap.on { opacity: 1; }
#cap b { color: var(--pink); font-family: var(--num); font-size: 1.25em; font-style: italic; }
#cap.big { font-size: 28px; font-weight: 900; font-style: italic; }
#hint { position: fixed; left: 0; width: 100%; bottom: calc(118px + var(--safe-b)); text-align: center; font-size: 15px; font-weight: 700; color: var(--paper); letter-spacing: .1em; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 4; }
#hint.on { opacity: 1; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
#acts { position: fixed; left: 0; width: 100%; bottom: calc(26px + var(--safe-b)); text-align: center; z-index: 5; pointer-events: none; }
#acts .btn { pointer-events: auto; margin: 0 6px; min-width: 190px; text-align: center; animation: tipIn .22s both; }
#acts .btn.ghost { min-width: 120px; height: 50px; }
#skip { position: fixed; right: 12px; top: calc(12px + var(--safe-t)); z-index: 6; }

/* ---------- 猜拳 ---------- */
#duel { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
#duel > * { pointer-events: auto; }
.duel-top { position: absolute; left: 0; top: 0; width: 100%; padding: calc(10px + var(--safe-t)) 12px 0 14px; display: flex; justify-content: space-between; align-items: center; }
.duel-top .score { font-family: var(--num); font-style: italic; font-weight: 900; font-size: 30px; }
.duel-top .score i { font-style: normal; font-size: 13px; color: var(--dim); font-family: var(--cjk); margin: 0 6px; }
.duel-top .score b { color: var(--pink); }
.duel-top .score em { display: inline-block; margin-left: 10px; padding: 2px 8px; font-style: normal; font-size: 15px; color: var(--ink); background: var(--yellow); vertical-align: middle; }
#duelClose.got { background: var(--yellow); color: var(--ink); animation: gotPulse 1.1s infinite; }
@keyframes gotPulse { 0%, 100% { -webkit-filter: brightness(1); filter: brightness(1); } 50% { -webkit-filter: brightness(1.22); filter: brightness(1.22); } }
#helpBtn, #shareBtn { position: fixed; right: 12px; top: calc(62px + var(--safe-t)); z-index: 7; height: 34px; padding: 0 12px; font-size: 14px; }
#shareBtn { top: calc(102px + var(--safe-t)); }
#shareBtn[data-m="album"] { right: 38px; }
/* 首页读数下面的排名：点它去榜单 */
.rk { display: inline-block; margin-top: 7px; height: 26px; line-height: 24px; padding: 0 9px 0 10px; font-family: var(--disp); font-size: 14px; letter-spacing: .04em; color: var(--yellow); background: rgba(10,4,8,.72); border: 1px solid rgba(252,238,10,.55);
  -webkit-clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.rk:after { content: ' ›'; }
/* 榜单这一屏：和菜单一样占左边一块，拼图侧身让位 */
#rank { position: fixed; left: 0; top: calc(64px + var(--safe-t)); bottom: calc(10px + var(--safe-b)); width: 78%; padding: 0 0 0 16px; z-index: 6; display: flex; flex-direction: column; }
#rank .rtabs { display: flex; flex: 0 0 auto; }
#rank .rtab { height: 40px; padding: 0 12px; margin-right: 6px; font-family: var(--disp); font-size: 18px; color: var(--dim); background: rgba(10,4,8,.72); border: 1px solid var(--line);
  -webkit-clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
#rank .rtab.on { background: var(--pink); color: var(--ink); border-color: var(--pink); }
#rank .rper { flex: 0 0 auto; margin: 10px 0 8px; display: flex; align-items: center; }
#rank .rp { height: 28px; padding: 0 10px; margin-right: 6px; font-size: 13px; font-weight: 700; color: var(--dim); border: 1px solid var(--line); }
#rank .rp.on { color: var(--ink); background: var(--paper); border-color: var(--paper); }
#rank .rsub { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rank .rlist { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 6px; }
#rank .rrow { display: flex; align-items: center; height: 34px; padding: 0 8px 0 0; border-bottom: 1px solid rgba(245,237,230,.08); animation: miIn .3s both; }
#rank .rrow i { flex: 0 0 34px; font-family: var(--num); font-style: italic; font-weight: 700; font-size: 17px; color: var(--dim); text-align: center; }
#rank .rrow .nm { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rank .rrow b { flex: 0 0 auto; font-family: var(--disp); font-weight: 400; font-size: 16px; color: var(--paper); margin-left: 8px; }
#rank .rrow.top1 i { color: var(--yellow); font-size: 22px; } #rank .rrow.top2 i { color: var(--paper); font-size: 20px; } #rank .rrow.top3 i { color: var(--pink); font-size: 19px; }
#rank .rrow.top1 b { color: var(--yellow); }
#rank .rrow.me { background: rgba(255,61,127,.2); } #rank .rrow.me .nm { color: var(--pink); }
#rank .rmsg { padding: 30px 0; font-size: 14px; font-weight: 700; color: var(--dim); }
#rank .rme { flex: 0 0 auto; margin-top: 8px; padding: 9px 12px; background: var(--paper); color: var(--ink); border-left: 5px solid var(--pink); display: flex; flex-wrap: wrap; align-items: baseline; margin-right: 6px; }
#rank .rme .k { font-size: 13px; font-weight: 900; margin-right: 8px; }
#rank .rme .v { font-family: var(--disp); font-size: 22px; }
#rank .rme .s { flex: 1 0 100%; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: rgba(10,4,8,.7); }
#rank .rbtn { flex: 0 0 auto; margin-top: 10px; }
#rank .rbtn .btn { height: 46px; line-height: 46px; padding: 0 22px; font-size: 18px; }
#helpBtn[data-m="album"] { right: 38px; }
#duelClose.bump { animation: bump .32s; }
.duel-bottom { position: absolute; left: 0; bottom: 0; width: 100%; padding: 0 12px calc(16px + var(--safe-b)); text-align: center; }
.duel-bottom .sub { min-height: 30px; font-size: 20px; color: var(--paper); text-shadow: 0 2px 10px rgba(10,2,7,.9); margin: 10px 0 4px; }
.vs { display: flex; align-items: stretch; justify-content: center; height: 72px; }
.vs .cell { position: relative; flex: 1 1 0; max-width: 150px; display: flex; align-items: center; justify-content: center; background: rgba(10,4,8,.82); border: 1px solid var(--line); color: rgba(245,237,230,.45);
  -webkit-clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); transition: background .16s, color .16s, opacity .2s; }
.vs .cell small { position: absolute; left: 9px; top: 6px; font-size: 12px; font-weight: 700; color: var(--dim); }
.vs .cell.her small { left: auto; right: 9px; color: var(--pink); }
.vs .cell .ic { display: none; width: 32px; height: 32px; margin-right: 6px; }
.vs .cell .ic svg { display: block; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.vs .cell b { font-family: var(--disp); font-weight: 400; font-size: 22px; letter-spacing: .04em; }
.vs .cell.on { color: var(--paper); border-color: rgba(245,237,230,.5); }
.vs .cell.on .ic { display: block; }
.vs .cell.her.on { color: var(--pink); border-color: var(--pink); }
.vs .cell.slam { animation: slam .2s cubic-bezier(.2,.9,.3,1.2); }
@keyframes slam { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.vs .dots { display: none; }
.vs.chant .cell.her .dots { display: flex; }
.vs .dots i { width: 9px; height: 9px; margin: 0 5px; background: rgba(255,61,127,.25); -webkit-transform: rotate(45deg); transform: rotate(45deg); transition: background .08s, transform .12s; }
.vs .cell[data-b="1"] .dots i:nth-child(-n+1), .vs .cell[data-b="2"] .dots i:nth-child(-n+2), .vs .cell[data-b="3"] .dots i:nth-child(-n+3) { background: var(--pink); -webkit-transform: rotate(45deg) scale(1.3); transform: rotate(45deg) scale(1.3); }
.vs .mid { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--disp); line-height: 1; }
.vs .mid i { font-family: var(--num); font-style: italic; font-size: 22px; font-weight: 700; color: var(--dim); letter-spacing: .06em; }
.vs .mid em { display: none; font-style: normal; font-size: 30px; white-space: nowrap; text-shadow: 2px 2px 0 var(--ink); }
.vs .mid small { display: none; margin-top: 5px; font-size: 15px; color: var(--ink); background: var(--yellow); padding: 2px 7px; font-family: var(--disp); white-space: nowrap; }
.vs.done .mid i { display: none; }
.vs.done .mid em { display: block; }
.vs.done .mid small:not(:empty) { display: block; }
.vs .mid.pop { animation: slam .22s cubic-bezier(.2,.9,.3,1.2); }
.vs.r-me .mid em { color: var(--yellow); }
.vs.r-her .mid em { color: var(--pink); }
.vs.r-tie .mid em { color: var(--paper); }
.vs.r-me .cell.me { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.vs.r-me .cell.me small { color: rgba(10,2,7,.6); }
.vs.r-me .cell.her, .vs.r-her .cell.me { opacity: .5; }
.vs.r-her .cell.her { background: var(--pink); color: var(--ink); }
.vs.r-her .cell.her small { color: rgba(10,2,7,.6); }
.btn.hand.sel { background: var(--pink); }
.duel-bottom .rule { font-size: 13px; color: var(--dim); font-weight: 700; margin-bottom: 12px; }
.duel-bottom .rule b { color: var(--yellow); }
.hands { display: flex; justify-content: center; }
.btn.hand { flex: 1 1 0; max-width: 150px; height: 64px; margin: 0 5px; font-size: 22px; font-style: italic; background: var(--paper); color: var(--ink);
  -webkit-clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }

/* ---------- 舞台上每场戏共用的顶栏、说明条、菜单列（不是弹窗，没有遮罩） ---------- */
#bar { position: fixed; left: 0; top: 0; width: 100%; padding: calc(10px + var(--safe-t)) 12px 26px 12px; display: flex; align-items: center; z-index: 8;      /* 压在菜单、排行、任务这些整页的层上面，返回键才点得到 */
  background: linear-gradient(rgba(10, 4, 8, .92), rgba(10, 4, 8, .6) 60%, rgba(10, 4, 8, 0)); pointer-events: none; }
#bar > * { pointer-events: auto; }
#bar.in { animation: barIn .3s both; }
@keyframes barIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
#bar .bt { margin-left: 12px; min-width: 0; }
#bar .bt b { display: block; font-size: 22px; font-weight: 900; font-style: italic; line-height: 1.1; text-shadow: 3px 3px 0 var(--pink); white-space: nowrap; }
#bar .bt span { display: block; font-size: 12px; font-weight: 700; color: var(--dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#panel { position: fixed; left: 0; bottom: 0; width: 100%; max-height: 50%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 34px 16px calc(18px + var(--safe-b)); z-index: 5;
  background: linear-gradient(rgba(10, 4, 8, 0), rgba(10, 4, 8, .86) 34px, rgba(10, 4, 8, .95)); }
#panel.in { animation: panelIn .28s both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lead .k { font-size: 12px; font-weight: 700; color: var(--pink); letter-spacing: .08em; }
.lead .n { font-size: 28px; font-weight: 900; font-style: italic; margin-top: 2px; line-height: 1.15; text-shadow: 3px 3px 0 var(--pink); }
.lead .s { font-size: 13.5px; line-height: 1.65; color: var(--dim); margin-top: 8px; }
#panel .row { display: flex; flex-wrap: wrap; margin-top: 12px; }
#panel .row .btn { margin: 0 8px 8px 0; }
.btn.act { background: var(--pink); color: var(--ink); height: 46px; padding: 0 20px; font-size: 16px; font-style: italic; line-height: 46px;
  -webkit-clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
#panel .btn.ghost { height: 46px; line-height: 44px; }
.filebtn { position: relative; overflow: hidden; cursor: pointer; }
.filebtn input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rules { margin: 8px 0 0; padding-left: 18px; }
.rules li { font-size: 13px; line-height: 1.6; color: var(--dim); }
.check div { font-size: 13.5px; margin-top: 6px; font-weight: 700; }
.check .ok { color: var(--cyan); }
.check .bad { color: var(--yellow); }
.k2 { font-size: 12px; font-weight: 700; color: var(--dim); margin-top: 12px; }
.gain { margin-top: 8px; font-size: 14px; font-weight: 900; color: var(--pink); font-style: italic; }
.foot { margin-top: 2px; font-size: 12px; color: var(--dim); line-height: 1.6; }
#menu { position: fixed; left: 0; top: 0; height: 100%; width: 74%; padding: 0 0 0 22px; display: flex; flex-direction: column; justify-content: center; z-index: 6; overflow-y: auto; }
#menu .mi { display: block; text-align: left; padding: 11px 0; animation: miIn .34s both; }
@keyframes miIn { from { opacity: 0; transform: translateX(-26px) skewX(-8deg); } to { opacity: 1; transform: none; } }
#menu .mi .n { display: block; font-size: 32px; font-weight: 900; font-style: italic; line-height: 1.1; text-shadow: 4px 4px 0 var(--pink); }
#menu .mi .s { display: block; font-size: 12px; font-weight: 700; color: var(--dim); margin-top: 5px; }
#menu .mi:active .n { color: var(--yellow); }
#menu .mi:last-child .n { font-size: 20px; color: var(--dim); text-shadow: none; }
.help { animation: miIn .34s both; padding-right: 8px; }
.help h4 { margin: 14px 0 5px; font-size: 18px; font-weight: 900; color: var(--pink); font-style: italic; }
.help p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.7; color: var(--paper); text-shadow: 0 0 8px var(--ink); }
.help b { color: var(--yellow); }
.rar-row { display: flex; flex-wrap: wrap; margin: 8px 0 2px; }
.rar-row span { font-size: 12px; font-weight: 900; padding: 5px 9px; margin: 0 6px 6px 0; color: var(--ink); background: #9A8F96; font-style: italic; }
.rar-row span:nth-child(2) { background: var(--paper); }
.rar-row span:nth-child(3) { background: var(--pink); }
.rar-row span:nth-child(4) { background: var(--yellow); }
.rar-row span:nth-child(5) { background: var(--cyan); }

/* ---------- 导览：一圈光，光圈以外点不动 ---------- */
#tour { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 29; pointer-events: none; }
#tour .tb { position: absolute; background: rgba(10, 4, 8, .76); pointer-events: auto; }
#tour .tr { position: absolute; border: 2px solid var(--pink); box-shadow: 0 0 24px rgba(255, 61, 127, .7), inset 0 0 18px rgba(255, 61, 127, .25); pointer-events: auto; animation: ring 1.3s infinite; }
#tour.act .tr { pointer-events: none; border-color: var(--yellow); box-shadow: 0 0 24px rgba(252, 238, 10, .7), inset 0 0 18px rgba(252, 238, 10, .2); }
@keyframes ring { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
#tour .tbub { position: absolute; background: var(--paper); color: var(--ink); padding: 12px 14px 12px 16px; pointer-events: auto; border-left: 5px solid var(--pink);
  -webkit-clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
#tour .tbub.in { animation: tipIn .22s both; }
#tour .tno { font-family: var(--num); font-style: italic; font-weight: 900; font-size: 13px; color: rgba(10, 4, 8, .5); letter-spacing: .06em; }
#tour .ttxt { font-size: 16px; font-weight: 700; line-height: 1.55; margin-top: 2px; }
#tour .ttxt b { color: #D4145A; font-weight: 900; }
#tour .trow { margin-top: 10px; display: flex; align-items: center; }
#tour .tnext { height: 40px; line-height: 40px; padding: 0 18px; font-size: 15px; margin-right: 12px; }
#tour .tskip { font-size: 13px; font-weight: 700; color: rgba(10, 4, 8, .55); padding: 10px 4px; }

#toast { position: fixed; left: 0; width: 100%; top: calc(104px + var(--safe-t)); padding: 0 14px; z-index: 40; text-align: center; pointer-events: none; animation: tipIn .18s both; }
#toast span { display: inline-block; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 900; padding: 10px 16px; line-height: 1.5; }
#nogl { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: var(--ink); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; }
#nogl h2 { font-size: 24px; font-style: italic; color: var(--pink); margin: 0 0 12px; }
#nogl p { font-size: 14px; line-height: 1.8; color: var(--dim); margin: 0; }
#boot { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: none; align-items: center; justify-content: center; flex-direction: column; background: var(--ink); z-index: 30; }
body.booting #boot { display: flex; }
#gate { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 30; cursor: pointer; }
#gate .bolt { width: 64px; height: 64px; background: var(--pink); -webkit-clip-path: polygon(61% 5%, 21% 55%, 46% 55%, 34% 95%, 80% 39%, 54% 39%, 69% 5%); clip-path: polygon(61% 5%, 21% 55%, 46% 55%, 34% 95%, 80% 39%, 54% 39%, 69% 5%); animation: pulse 1.2s infinite; }
#gate p { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: .12em; margin: 22px 0 0; text-shadow: 3px 3px 0 var(--pink); }
#gate small { font-size: 13px; color: var(--dim); font-weight: 700; margin-top: 12px; letter-spacing: .06em; }
#boot p { font-size: 13px; letter-spacing: .3em; color: var(--dim); font-weight: 700; margin-top: 18px; }
#boot .bolt { width: 46px; height: 46px; background: var(--pink); -webkit-clip-path: polygon(61% 5%, 21% 55%, 46% 55%, 34% 95%, 80% 39%, 54% 39%, 69% 5%); clip-path: polygon(61% 5%, 21% 55%, 46% 55%, 34% 95%, 80% 39%, 54% 39%, 69% 5%); animation: pulse 1s infinite; }

/* ---------- 电脑和横屏：拼图在左，标题和按钮在右 ---------- */
@media (max-height: 660px) {
  .life .num b { font-size: 32px; }
  #cap { font-size: 16px; }
  #hint { bottom: calc(100px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) { .btn.main.pulse, #hint.on { animation: none; } }

/* ---------- 标题字：得意黑（开源字体，见 THIRD_PARTY.txt）。它本身是斜的，不再另加斜体和加粗 ---------- */
.btn, .life .num b, .life .num span, .life .lab, .lead .n, .lead .k, #bar .bt b, #menu .mi .n, #cap.big, .duel-top .score, .duel-bottom .sub, .hud-title, .hud-title em,
#gate p, #tip .n, .help h4, .gain, #tour .tno, .rar-row span, .btn.side small, #rail i, #toast span, .k2 { font-family: var(--disp); font-style: normal; font-weight: 400; letter-spacing: .03em; }
.btn.main { font-size: 26px; }
.btn.main b { font-family: var(--disp); font-size: 30px; font-style: normal; font-weight: 400; }
.btn.ghost { font-size: 17px; }
.btn.ghost.sm { font-size: 16px; }
.btn.side span { font-size: 19px; }
.btn.side small { font-size: 12.5px; }
.btn.act { font-size: 19px; }
.life .lab { font-size: 14px; letter-spacing: .1em; }
.life .num b { font-size: 48px; }
.life .num span { font-size: 18px; }
.lead .n { font-size: 34px; }
.lead .k { font-size: 14px; }
#bar .bt b { font-size: 27px; }
#menu .mi .n { font-size: 40px; }
#menu .mi:last-child .n { font-size: 24px; }
#cap.big { font-size: 33px; }
#gate p { font-size: 32px; }
#tip .n { font-size: 26px; }
.help h4 { font-size: 21px; }
.gain { font-size: 16px; }
.duel-top .score { font-size: 34px; }
#toast span { font-size: 16px; }
/* 读数和按钮淡入淡出，不硬切 */
#hud { transition: opacity .28s; }
#hud.off { opacity: 0; }
#hud.off, #hud.off * { pointer-events: none !important; }
@media (hover: hover) {
  .btn:hover { filter: brightness(1.16); }
  #menu .mi:hover .n { color: var(--yellow); }
}
/* 猜拳的三只手 */
.btn.hand { height: 88px; padding: 6px 0 0; font-size: 22px; }
.btn.hand svg { display: block; width: 36px; height: 36px; margin: 0 auto 2px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.btn.hand:active { transform: translateY(3px) scale(.95); }
/* 图鉴右侧：按天跳转 */
#rail { position: fixed; right: 3px; top: calc(74px + var(--safe-t)); bottom: calc(18px + var(--safe-b)); width: 26px; z-index: 6; display: flex; flex-direction: column; justify-content: space-between; touch-action: none; cursor: pointer; animation: barIn .3s both; }
#rail i { display: block; font-size: 12px; line-height: 1; padding: 3px 0; text-align: center; color: var(--dim); }
#rail i.own { color: var(--paper); }
#rail i.on { color: var(--ink); background: var(--pink); }
/* 铸造走到第几步 */
.steps { display: flex; margin-bottom: 10px; }
.steps i { display: block; width: 30px; height: 4px; background: var(--line); margin-right: 6px; }
.steps i.on { background: var(--pink); }
.rules li b { color: var(--paper); font-weight: 900; }
.cprow { display: flex; align-items: center; margin-top: 8px; padding: 6px 6px 6px 10px; background: rgba(245,237,230,.06); border: 1px solid var(--line); }
.cprow .k { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--dim); margin-right: 10px; }
.cprow b { flex: 1 1 auto; min-width: 0; font-family: var(--num); font-size: 16px; font-weight: 700; color: var(--yellow); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-user-select: text; user-select: text; }
.cprow .btn { flex: 0 0 auto; height: 32px; line-height: 30px; padding: 0 12px; font-size: 14px; margin-left: 8px; }

/* ---------- 拍下来的那张图 ---------- */
#photo { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 28; background: rgba(10, 4, 8, .84); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(16px + var(--safe-t)) 18px calc(18px + var(--safe-b)); }
#photo img { display: block; max-width: 86%; max-height: 66%; border: 6px solid var(--paper); box-shadow: 10px 10px 0 var(--pink); transform: rotate(-2deg); animation: photoIn .36s both; -webkit-user-select: auto; user-select: auto; -webkit-touch-callout: default; }
@keyframes photoIn { from { opacity: 0; transform: rotate(6deg) scale(1.25); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
#photo .ptip { margin-top: 22px; font-size: 13px; color: var(--dim); font-weight: 700; text-align: center; }
#photo .prow { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; }
#photo .prow .btn { margin: 0 6px 8px; height: 46px; line-height: 44px; }
#acts .btn.ghost { min-width: 96px; height: 58px; font-size: 19px; }

/* 右上角：图鉴和菜单 */
.hud-tr { display: flex; flex: 0 0 auto; }
.hud-tr .btn { margin-left: 8px; }
/* ---------- 消消乐：底部的步数和进度 ---------- */
#mstat { position: fixed; left: 0; width: 100%; bottom: calc(96px + var(--safe-b)); text-align: center; font-family: var(--disp); font-size: 20px; color: var(--paper); letter-spacing: .04em; pointer-events: none; z-index: 4; text-shadow: 0 0 10px var(--ink), 2px 2px 0 var(--ink); }
#mstat b { font-weight: 400; font-size: 34px; color: var(--pink); margin: 0 4px; display: inline-block; }
#mstat b.low { color: var(--yellow); }
#mstat b.bump { animation: bump .3s; }
#mstat i { font-style: normal; color: var(--dim); margin: 0 10px; }
#mstat small { display: block; margin-top: 6px; font-family: var(--cjk); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--dim); }
#mstat small em { font-style: normal; }
#mstat.end { bottom: calc(104px + var(--safe-b)); }
#mstat.end small { font-size: 14px; color: var(--paper); }
#acts.three .btn { min-width: 0; padding: 0 16px; margin: 0 4px; }
#acts.three .btn.ghost { min-width: 0; }

/* ---------- 首页：大厅的版式（参考二游的大厅：人物居中占满，顶上是读数牌，两侧是入口牌，底下是导航栏，中间最大的是主按钮） ----------
   这一段放在最后，盖住前面首页的旧规则。牌子都是同一种：半透明深底、细线框、切一个角、一行很小的英文加一行中文 */
.hud-top { padding: calc(10px + var(--safe-t)) 10px 20px 10px; align-items: flex-start; }
.life { position: relative; padding: 7px 18px 9px 11px; background: rgba(10, 4, 8, .6); border: 1px solid var(--line); border-left: 3px solid var(--pink);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.life .lab { font-size: 11px; letter-spacing: .06em; }
.life .lab i { font-family: var(--num); font-style: normal; font-size: 9px; letter-spacing: .22em; margin-left: 8px; color: rgba(245,237,230,.45); }
.life .num b { font-size: 34px; text-shadow: 2px 2px 0 var(--pink); }
.life .num span { font-size: 14px; margin-left: 6px; }
.life .track { width: 150px; margin-top: 6px; }
#rankChip.rk { margin-top: 0; height: 36px; line-height: 34px; padding: 0 10px 0 12px; font-size: 14px;
  -webkit-clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
#cnt { position: absolute; left: 10px; top: calc(96px + var(--safe-t)); width: auto; margin-top: 0; }
.hud-left, .hud-right { position: absolute; top: calc(146px + var(--safe-t)); transition: opacity .2s; }
.hud-left { left: 10px; } .hud-right { right: 10px; }
#hud.quiet .hud-left, #hud.quiet .hud-right { opacity: 0; pointer-events: none; }
.tile { display: block; width: 76px; margin-bottom: 8px; padding: 8px 9px 9px; text-align: left; color: var(--paper);
  background: linear-gradient(135deg, rgba(245,237,230,.2), rgba(10,4,8,.72) 58%); border: 1px solid var(--line);
  -webkit-clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform .08s, filter .12s; }
.tile:active { transform: translateY(2px) scale(.98); filter: brightness(1.3); }
.tile i { display: block; font-family: var(--num); font-style: normal; font-size: 9px; letter-spacing: .22em; color: rgba(245,237,230,.5); }
.tile span { display: block; margin-top: 6px; font-family: var(--disp); font-size: 19px; line-height: 1; letter-spacing: .04em; }
.tile small { display: block; margin-top: 6px; font-size: 10px; font-weight: 700; color: var(--pink); white-space: nowrap; }
.hud-right .tile { text-align: right; -webkit-clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  background: linear-gradient(225deg, rgba(245,237,230,.2), rgba(10,4,8,.72) 58%); }
.hud-title { bottom: calc(92px + var(--safe-b)); left: 12px; font-size: 32px; }
.hud-title i { font-size: 8px; margin-bottom: 6px; }
.hud-bottom { padding: 24px 8px calc(8px + var(--safe-b)); align-items: flex-end; }
.nv { flex: 1 1 0; height: 50px; text-align: center; color: var(--dim); background: rgba(10, 4, 8, .62); border-top: 1px solid var(--line); transition: filter .12s; }
.nv:active { filter: brightness(1.5); }
.nv i { display: block; font-family: var(--num); font-style: normal; font-size: 9px; letter-spacing: .2em; opacity: .6; }
.nv span { display: block; margin-top: 6px; font-family: var(--disp); font-size: 16px; line-height: 1; letter-spacing: .06em; }
.nv.on { color: var(--paper); border-top: 2px solid var(--pink); }
.hud-bottom .main { flex: 0 0 136px; max-width: none; margin: 0 6px; height: 66px; padding: 0 4px; font-size: 18px; }
.hud-bottom .main b { font-size: 21px; margin-left: 6px; }

/* ---------- 导航栏和几个大页面跟上大厅的版式 ---------- */
#nav { position: fixed; left: 0; bottom: 0; width: 100%; z-index: 7; transition: opacity .2s, transform .2s; }
#nav.off { opacity: 0; pointer-events: none !important; -webkit-transform: translateY(14px); transform: translateY(14px); }
#nav.off > * { pointer-events: none; }
/* 页面顶上的那一条：返回是一块切角的牌，标题小一号，下面压一道粉线 */
#bar .bt b { font-size: 22px; text-shadow: none; font-style: normal; letter-spacing: .06em; }
#bar .bt b:after { content: ''; display: block; width: 28px; height: 3px; margin-top: 5px; background: var(--pink); -webkit-transform: skewX(-24deg); transform: skewX(-24deg); }
#bar .bt span { margin-top: 5px; }
/* 菜单：一摞牌子，和大厅两侧的入口牌是同一种 */
#menu { width: 66%; padding: calc(70px + var(--safe-t)) 0 calc(96px + var(--safe-b)) 12px; justify-content: flex-start; counter-reset: mi; }
#menu .mi { position: relative; padding: 10px 12px 11px 44px; margin-bottom: 8px; background: linear-gradient(135deg, rgba(245,237,230,.16), rgba(10,4,8,.72) 55%); border: 1px solid var(--line); border-left: 3px solid var(--pink);
  -webkit-clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); counter-increment: mi; }
#menu .mi:before { content: '0' counter(mi); position: absolute; left: 11px; top: 12px; font-family: var(--num); font-size: 15px; font-style: italic; color: rgba(245,237,230,.45); }
#menu .mi .n { font-size: 21px; font-style: normal; text-shadow: none; letter-spacing: .04em; }
#menu .mi .s { margin-top: 5px; font-size: 11px; }
#menu .mi:active { filter: brightness(1.4); }
#menu .mi:last-child { background: none; border-color: transparent; padding-left: 12px; }
#menu .mi:last-child:before { content: ''; }
#menu .mi:last-child .n { font-size: 16px; color: var(--dim); }
#menu .help { padding-right: 10px; }
/* 排行、图鉴：给底下的导航栏让出位置 */
#rank { bottom: calc(88px + var(--safe-b)); }
#rail { bottom: calc(92px + var(--safe-b)); }

/* ---------- 猜拳、消消乐、铸造：跟上大厅的版式 ---------- */
/* 猜拳顶上和别的页面一样：左边返回，旁边是标题，比分是右边的一块牌 */
.duel-top { justify-content: flex-start; padding: calc(10px + var(--safe-t)) 10px 0 12px; }
.duel-top .bt { margin-left: 12px; min-width: 0; }
.duel-top .bt b { display: block; font-family: var(--disp); font-weight: 400; font-size: 22px; line-height: 1.1; letter-spacing: .06em; white-space: nowrap; }
.duel-top .bt b:after { content: ''; display: block; width: 28px; height: 3px; margin-top: 5px; background: var(--pink); -webkit-transform: skewX(-24deg); transform: skewX(-24deg); }
.duel-top .bt span { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.duel-top .score { margin-left: auto; padding: 5px 10px 6px 12px; font-size: 26px; white-space: nowrap; background: rgba(10, 4, 8, .6); border: 1px solid var(--line); border-right: 3px solid var(--pink);
  -webkit-clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.duel-top .score i { font-size: 11px; margin: 0 5px; }
.duel-top .score em { font-size: 12px; margin-left: 6px; padding: 2px 6px; }
/* 对战条的两格是同一种牌：左边切右上角，右边切左上角 */
.vs .cell { background: linear-gradient(135deg, rgba(245,237,230,.14), rgba(10,4,8,.82) 55%);
  -webkit-clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.vs .cell.her { background: linear-gradient(225deg, rgba(245,237,230,.14), rgba(10,4,8,.82) 55%);
  -webkit-clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); }
.vs.r-me .cell.me { background: var(--paper); }
.vs.r-her .cell.her { background: var(--pink); }
/* 消消乐底下的读数：垫一条深色的带子，上下各一道细线，字才不会和棋盘的光混在一起 */
#mstat { padding: 9px 0 10px; background: linear-gradient(90deg, rgba(10,4,8,0), rgba(10,4,8,.66) 18%, rgba(10,4,8,.66) 82%, rgba(10,4,8,0));
  border-top: 1px solid rgba(245,237,230,.12); border-bottom: 1px solid rgba(245,237,230,.12); }
/* 说明区（铸造的几步、看卡时的说明）：左上角压一道粉线，和页面标题下面那道是一套 */
#panel:before { content: ''; position: absolute; left: 16px; top: 20px; width: 28px; height: 3px; background: var(--pink); -webkit-transform: skewX(-24deg); transform: skewX(-24deg); }

/* ---------- 图标和红点：按钮一眼看得出是干什么的（图标都是线条画的，颜色跟着文字走） ---------- */
.nv svg, .tile svg, #btnDraw svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nv { height: 54px; padding-top: 6px; }
.nv svg { display: block; width: 22px; height: 22px; margin: 0 auto; }
.nv span { margin-top: 4px; font-size: 13px; }
.nv.on svg { color: var(--pink); }
.tile { position: relative; padding-top: 9px; }
.tile svg { display: block; width: 24px; height: 24px; color: var(--paper); }
.hud-right .tile svg { margin-left: auto; }
.tile span { margin-top: 7px; }
#btnDraw svg { display: inline-block; vertical-align: middle; width: 24px; height: 24px; margin: -3px 6px 0 0; stroke-width: 2; }
/* 红点：右上角一个带白边的点，轻轻跳 */
.dot:after { content: ''; position: absolute; right: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 2px rgba(245,237,230,.9), 0 0 8px rgba(255,45,85,.9); animation: dotBeat 1.6s infinite; }
.hud-left .tile.dot:after { right: 16px; }
@keyframes dotBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
/* 返回的按钮前面带一个箭头 */
#barBack:before, #duelClose:before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; -webkit-transform: rotate(45deg) translateY(-1px); transform: rotate(45deg) translateY(-1px); }
/* 名次牌前面一个小奖杯的位置留给文字本身：加粗一点、带箭头，看得出能点 */
#rankChip.rk { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .dot:after { animation: none; } }

/* ---------- 加载提示：屏幕中间一块小牌子，三道粉色的斜杠轮流亮 ---------- */
#loading { position: fixed; left: 50%; top: 44%; z-index: 9; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); padding: 10px 16px 10px 14px; white-space: nowrap; pointer-events: none;
  background: rgba(10, 4, 8, .82); border: 1px solid var(--line); border-left: 3px solid var(--pink); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--paper); }
#loading i { display: inline-block; width: 5px; height: 14px; margin-right: 4px; vertical-align: -2px; background: var(--pink); -webkit-transform: skewX(-18deg); transform: skewX(-18deg); opacity: .25; animation: loadBar .9s infinite; }
#loading i:nth-child(2) { animation-delay: .15s; } #loading i:nth-child(3) { animation-delay: .3s; margin-right: 10px; }
@keyframes loadBar { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
#rank .rmsg:before { content: ''; display: inline-block; width: 5px; height: 14px; margin-right: 8px; vertical-align: -2px; background: var(--pink); -webkit-transform: skewX(-18deg); transform: skewX(-18deg); animation: loadBar .9s infinite; }

/* ---------- 猜拳界面重排：这一拳的胜负放到上面（标题下面的一条），她的身上不再压东西；下面三只手是三块大按钮，图标大、粉色描边，一眼知道要点哪里 ---------- */
#duel .vs { position: fixed; left: 12px; right: 12px; top: calc(60px + var(--safe-t)); height: 52px; }
#duel .vs .cell { max-width: none; }
#duel .vs .cell b { font-size: 18px; }
#duel .vs .cell .ic, #duel .vs .cell .ic svg { width: 26px; height: 26px; }
#duel .vs .mid { flex: 0 0 92px; }
#duel .vs .mid em { font-size: 24px; }
#helpBtn[data-m="duel"] { top: calc(122px + var(--safe-t)); }
#shareBtn[data-m="duel"] { top: calc(162px + var(--safe-t)); }
.duel-bottom { padding: 0 8px calc(14px + var(--safe-b)); background: linear-gradient(rgba(10,4,8,0), rgba(10,4,8,.7) 40%, rgba(10,4,8,.9)); }
.duel-bottom .sub { margin: 26px 0 4px; }
.duel-bottom .rule { margin-bottom: 10px; }
.btn.hand { max-width: none; height: 92px; margin: 0 4px; padding: 10px 0 0; font-size: 17px; font-style: normal; color: var(--paper); background: linear-gradient(160deg, rgba(255,61,127,.28), rgba(10,4,8,.86) 60%); border: 1px solid var(--pink);
  -webkit-clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.btn.hand svg { width: 42px; height: 42px; margin: 0 auto 6px; color: var(--pink); stroke-width: 1.9; }
.btn.hand:active, .btn.hand.sel { background: var(--pink); color: var(--ink); }
.btn.hand:active svg, .btn.hand.sel svg { color: var(--ink); }

/* 「教程」「晒一下」：在图鉴、排行、消消乐、铸造这些有顶栏的页面里，放进顶栏那一行的右边并排，不再压着下面的内容 */
#helpBtn[data-m="album"], #helpBtn[data-m="rank"], #helpBtn[data-m="match"], #helpBtn[data-m="forge"], #helpBtn[data-m="mine"] { top: calc(12px + var(--safe-t)); right: 12px; }
#shareBtn[data-m="album"], #shareBtn[data-m="rank"], #shareBtn[data-m="match"], #shareBtn[data-m="forge"], #shareBtn[data-m="mine"] { top: calc(12px + var(--safe-t)); right: 76px; }

#hud.tipon .hud-title { opacity: 0; }
/* 矮屏（360×640 这一档）：说明区可以占到六成高，里面的字和间距收紧一点，主按钮不用往下划才看得到；上面的卡会跟着缩小 */
@media (max-height: 700px) {
  #panel { max-height: 62%; padding-top: 26px; }
  #panel:before { top: 14px; }
  #panel .lead .n { font-size: 26px; }
  #panel .rules li { font-size: 13px; line-height: 1.45; }
  #panel .row { margin-top: 8px; }
  #panel .foot { margin-top: 6px; font-size: 11.5px; }
  #panel .btn { height: 42px; line-height: 40px; }
  #panel .btn.act { line-height: 42px; }
}

/* ---------- 菜单、排行、任务：都是一整页（拼图退到后面），不再是「拼图侧过身、字挤在左半边」 ---------- */
#menu svg, #tasks svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menu { left: 0; top: calc(60px + var(--safe-t)); bottom: 0; width: 100%; height: auto; padding: 6px 12px calc(96px + var(--safe-b)); justify-content: flex-start; counter-reset: none; }
.mhead { display: flex; align-items: center; flex: 0 0 auto; padding: 12px 14px 12px 12px; background: linear-gradient(135deg, rgba(245,237,230,.16), rgba(10,4,8,.76) 60%); border: 1px solid var(--line); border-left: 3px solid var(--pink);
  -webkit-clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); animation: miIn .3s both; }
.mhead .av { flex: 0 0 54px; width: 54px; height: 54px; margin-right: 12px; display: flex; align-items: center; justify-content: center; color: var(--paper); background: rgba(245,237,230,.08); border: 1px solid var(--line); }
.mhead .av svg { width: 30px; height: 30px; }
.mwho { flex: 1 1 auto; min-width: 0; }
.mwho b { display: block; font-family: var(--disp); font-weight: 400; font-size: 22px; line-height: 1.1; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mwho span { display: block; margin-top: 7px; font-size: 12px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.mpk { flex: 0 0 auto; text-align: center; padding-left: 12px; border-left: 1px solid var(--line); }
.mpk b { display: block; font-family: var(--num); font-style: italic; font-size: 28px; line-height: 1; color: var(--pink); }
.mpk span { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--dim); }
.mgrid { display: flex; flex-wrap: wrap; flex: 0 0 auto; margin: 8px -4px 0; }
.mt { position: relative; width: calc(25% - 8px); margin: 4px; height: 88px; padding: 14px 0 0; text-align: center; color: var(--paper);
  background: linear-gradient(160deg, rgba(245,237,230,.14), rgba(10,4,8,.76) 60%); border: 1px solid var(--line);
  -webkit-clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  animation: miIn .3s both; transition: transform .08s, filter .12s; }
.mt:active { transform: translateY(2px) scale(.97); filter: brightness(1.4); }
.mt svg { display: block; width: 28px; height: 28px; margin: 0 auto 9px; color: var(--pink); }
.mt span { display: block; font-family: var(--disp); font-size: 14px; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
#menu .help { padding: 12px 14px; background: rgba(10,4,8,.6); border: 1px solid var(--line); margin-bottom: 10px; }
#menu .help h4:first-child { margin-top: 0; }
#menu > .btn.ghost { align-self: flex-start; }
/* 排行：整页宽。上面一排四个榜，下面是榜，自己的成绩是底下一块名牌 */
#rank { left: 12px; right: 12px; width: auto; padding: 0; top: calc(66px + var(--safe-t)); }
#rank .rtab { flex: 1 1 0; margin-right: 6px; padding: 0; text-align: center; font-size: 16px; white-space: nowrap; }
#rank .rtab:last-child { margin-right: 0; }
#rank .rlist { padding: 2px 10px 2px 4px; background: rgba(10,4,8,.55); border: 1px solid var(--line); }
#rank .rrow { height: 38px; }
#rank .rrow .nm { font-size: 15px; }
#rank .rme { margin-right: 0; }
#rank .rbtn { display: flex; justify-content: flex-end; }
/* 任务：一条一条的牌子，能领的那条描粉边 */
#tasks { position: fixed; left: 12px; right: 12px; top: calc(70px + var(--safe-t)); bottom: calc(92px + var(--safe-b)); z-index: 6; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tsec { margin: 12px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--dim); }
.tsec:first-child { margin-top: 0; }
.trow { display: flex; align-items: center; height: 58px; padding: 0 10px 0 12px; margin-bottom: 6px; background: linear-gradient(135deg, rgba(245,237,230,.12), rgba(10,4,8,.76) 55%); border: 1px solid var(--line); border-left: 3px solid rgba(245,237,230,.3); animation: miIn .3s both; }
.trow.can { border-color: var(--pink); border-left-color: var(--pink); }
.trow.got { opacity: .5; }
.trow svg { flex: 0 0 26px; width: 26px; height: 26px; margin-right: 10px; color: var(--paper); }
.trow.can svg { color: var(--pink); }
.trow .tn { flex: 1 1 auto; min-width: 0; }
.trow .tn b { display: block; font-family: var(--disp); font-weight: 400; font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .tn small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--dim); }
.trow .tn small:empty { display: none; }
.trow .tr { flex: 0 0 auto; margin: 0 10px; font-family: var(--disp); font-size: 15px; color: var(--yellow); white-space: nowrap; }
.trow .btn { flex: 0 0 auto; height: 36px; line-height: 34px; padding: 0 14px; font-size: 15px; }
.trow .btn.act { line-height: 36px; }
.trow .td { flex: 0 0 auto; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--dim); }
/* 首页左边现在有两块牌（铸造、任务） */
.hud-left .tile.dot:after { right: 6px; }

/* 出框调整台里的预览：只留卡，界面都藏起来 */
.tune #hint, .tune #acts, .tune #hud, .tune #nav, .tune #cap, .tune #tip, .tune #loading { display: none !important; }

/* ==================== 2026-11-19 美术修稿（ui.zip）：首页 ==================== */
/* 左上：一个钟 + 「你为她拼回了」+ 一条心电图一样的进度线拉到右边；右上角一个小标签；大标题和右上的「排行榜」去掉（排行在底栏） */
.hud-title, #rankChip { display: none !important; }
.hud-top { padding: calc(8px + var(--safe-t)) 10px 0 6px; }
.life { -webkit-box-flex: 1; flex: 1 1 auto; position: relative; min-height: 76px; padding: 6px 0 0 74px; background: none; border: 0; }
.life .clk { position: absolute; left: 0; top: 0; width: 70px; height: 70px; overflow: visible; }
.life .clk .tk line { stroke: rgba(245,237,230,.32); stroke-width: .9; }
/* 2026-11-20 用户：钟用美术的图（assets/ui/clock.png，指针擦掉了）。这里只叠会动的：表盘里一片淡粉的扇形 + 灰圈上亮起的粉弧 + 一根指针 */
.life .clk .pie { fill: none; stroke: rgba(255,61,127,.16); stroke-width: 34; transition: stroke-dasharray .6s; }
.life .clk .arc { fill: none; stroke: var(--pink); stroke-width: 2.4; -webkit-filter: drop-shadow(0 0 2px rgba(255,61,127,.95)); filter: drop-shadow(0 0 2px rgba(255,61,127,.95)); transition: stroke-dasharray .6s; }
.life .clk .hand { stroke: var(--paper); stroke-width: 3; stroke-linecap: round; transition: transform .6s; }
.life .lab { font-size: 11px; color: rgba(245,237,230,.78); }
.life .num b { font-size: 30px; text-shadow: 2px 2px 0 var(--pink); }
.life .track { position: absolute; left: 62px; right: 2px; top: 60px; width: auto; height: 22px; margin: 0; background: none; -webkit-transform: none; transform: none; }
.life .track .ecg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.life .track .ecg path { fill: none; stroke: rgba(245,237,230,.8); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* 亮的那段：上下各多留 12px，波峰和光晕不会被这一层的边裁掉（2026-11-19 用户：「顶部的线……有一块缺了」） */
.life .track #lifeBar { position: absolute; left: 0; top: -12px; height: calc(100% + 24px); min-width: 0; overflow: hidden; background: none; box-shadow: none; }
.life .track #lifeBar .ecg { top: 12px; height: calc(100% - 24px); width: 300px; }
.life .track #lifeBar .ecg path { stroke: var(--pink); stroke-width: 2; -webkit-filter: drop-shadow(0 0 3px rgba(255,61,127,.9)); filter: drop-shadow(0 0 3px rgba(255,61,127,.9)); }
.life .track #lifeBar:after { content: ''; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; margin-top: -2px; background: var(--paper); box-shadow: 0 0 6px rgba(245,237,230,.8); }
.life .track .cap { position: absolute; right: 0; top: -2px; width: 2px; height: 26px; background: var(--paper); }
.life .track .cap:before { content: ''; position: absolute; right: -2px; top: 0; width: 7px; height: 7px; border: 1px solid var(--paper); background: rgba(10,4,8,.6); }
/* 三个数字：竖着一摞深色小牌，左边一道粉 */
#cnt { position: absolute; left: 8px; top: calc(92px + var(--safe-t)); width: auto; margin: 0; display: block; }
#cnt button { display: flex; height: 27px; margin: 0 0 6px; padding: 0 10px 0 7px; font-size: 12px; background: rgba(14,8,12,.84); border: 1px solid rgba(245,237,230,.14); border-left: 2px solid var(--pink);
  -webkit-clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); }
/* 四个入口：美术给的方框，图标在上、字在下；左边铸造/任务，右边猜拳/消消乐，下面一排和「找回碎片」对齐 */
.hud-left, .hud-right { top: auto; bottom: calc(86px + var(--safe-b)); }
.hud-left { left: 6px; } .hud-right { right: 6px; }
.tile, .hud-right .tile { width: 76px; height: 78px; margin: 10px 0 0; padding: 0; text-align: center; background: url(assets/ui/tile.png) center / 100% 100% no-repeat; border: 0;
  -webkit-clip-path: none; clip-path: none; box-shadow: none; }
.tile svg { display: block; width: 28px; height: 28px; margin: 15px auto 0; fill: none; stroke: var(--paper); stroke-width: 1.7; }
.tile span { margin-top: 5px; font-size: 15px; }
.tile small, .tile i { display: none; }
.tile.dot:after, .hud-left .tile.dot:after { right: 4px; top: 4px; }
/* 底栏：深色一条，四个按钮各在一个小方框里；「找回碎片」浮在底栏上面正中，只在首页和任务页 */
.hud-bottom { padding: 6px 10px calc(6px + var(--safe-b)); background: linear-gradient(to top, rgba(14,10,13,.98) 72%, rgba(14,10,13,0)); justify-content: space-around; }
.nv { -webkit-box-flex: 0; flex: 0 0 64px; height: 68px; background: none; border: 0; color: rgba(245,237,230,.62); }
.nv svg { display: block; width: 48px; height: 48px; margin: 0 auto; padding: 12px; background: url(assets/ui/tile.png) center / 100% 100% no-repeat; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nv span { margin-top: 3px; font-size: 12px; }
.nv.on { color: var(--paper); border: 0; }
.nv.on svg { -webkit-filter: drop-shadow(0 0 6px rgba(255,61,127,.8)); filter: drop-shadow(0 0 6px rgba(255,61,127,.8)); }
#nav .btn.main { position: absolute; left: 88px; right: 88px; bottom: calc(100% + 24px); width: auto; max-width: 200px; height: 54px; margin: 0 auto; padding: 0; max-width: none; color: var(--paper);
  background: url(assets/ui/find.png) center / 100% 100% no-repeat; -webkit-clip-path: none; clip-path: none; font-size: 22px; font-style: normal; letter-spacing: .12em; }
#nav .btn.main svg { display: none; }
#nav .btn.main b { font-size: 16px; margin-left: 4px; color: var(--pink); }
#nav .btn.main.empty { background: url(assets/ui/find.png) center / 100% 100% no-repeat; color: var(--dim); }
#nav:not(.hub) .btn.main { display: none; }

/* ==================== 2026-11-19 美术修稿：排行榜 ==================== */
#rank { left: 12px; right: 12px; width: auto; padding: 0; bottom: calc(88px + var(--safe-b)); }
#rank .rtabs { justify-content: space-between; }
#rank .rtab { -webkit-box-flex: 1; flex: 1 1 0; min-width: 0; height: 40px; margin: 0 3px; padding: 0 4px; font-size: 15px; color: rgba(245,237,230,.75); border: 0;
  background: url(assets/ui/rtab.png) center / 100% 100% no-repeat; -webkit-clip-path: none; clip-path: none; white-space: nowrap; }
#rank .rtab:first-child { margin-left: 0; } #rank .rtab:last-child { margin-right: 0; }
#rank .rtab.on { color: #fff; text-shadow: 0 0 8px rgba(255,61,127,.9);
  background: url(assets/ui/rtab.png) center / 100% 100% no-repeat, linear-gradient(90deg, rgba(255,61,127,.62), rgba(120,14,60,.5)) center / calc(100% - 10px) calc(100% - 10px) no-repeat; }
#rank .rper { margin: 10px 0 0; }
/* 领奖台：第二、第一、第三；数字在头像框顶上的六边形里，冒出卡框一截 */
#rank .rpod { flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: space-between; margin: 40px 0 8px; }
#rank .pc { position: relative; width: 30.5%; height: 150px; text-align: center;
  background: url(assets/ui/frame-top2.png) center / 100% 100% no-repeat, linear-gradient(rgba(52,10,32,.92), rgba(14,6,12,.96)) center / calc(100% - 12px) calc(100% - 12px) no-repeat; }
#rank .pc.p1 { width: 35%; height: 178px; background: url(assets/ui/frame-top1.png) center / 100% 100% no-repeat, linear-gradient(rgba(80,14,46,.94), rgba(16,6,12,.96)) center / calc(100% - 12px) calc(100% - 12px) no-repeat; }
#rank .pc.p3 { background: url(assets/ui/frame-top3.png) center / 100% 100% no-repeat, linear-gradient(rgba(52,10,32,.92), rgba(14,6,12,.96)) center / calc(100% - 12px) calc(100% - 12px) no-repeat; }
#rank .pc .av { position: relative; width: 62px; height: 102px; margin: -34px auto 0; }
#rank .pc.p1 .av { width: 72px; height: 118px; margin-top: -36px; }
#rank .pc .face { position: absolute; left: 15%; top: 56%; width: 70%; height: 42.6%; border-radius: 50%; object-fit: cover; background: #2a1420; }
#rank .pc .ring { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url(assets/ui/ava2.png) center / 100% 100% no-repeat; }
#rank .pc.p1 .ring { background-image: url(assets/ui/ava1.png); }
#rank .pc.p3 .ring { background-image: url(assets/ui/ava3.png); }
#rank .pc .no { position: absolute; left: 0; top: 7%; width: 100%; font-family: var(--num); font-style: normal; font-size: 22px; line-height: 1; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
#rank .pc.p1 .no { font-size: 26px; }
#rank .pc .nm { margin: 4px 8px 0; font-size: 13px; font-weight: 700; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rank .pc .sc { margin-top: 4px; font-family: var(--num); font-style: italic; font-weight: 700; font-size: 21px; color: var(--paper); }
#rank .pc.p1 .sc { font-size: 25px; color: var(--pink); text-shadow: 0 0 10px rgba(255,61,127,.6); }
#rank .pc.empty .face { opacity: .25; }
#rank .pc.empty .nm, #rank .pc.empty .sc { color: var(--dim); }
#rank .pc.me .nm { color: var(--pink); }
/* 第四名往后：一个大框，有表头 */
#rank .rlist { padding: 8px 12px 10px; margin-top: 2px;
  background: url(assets/ui/rlist.png) center / 100% 100% no-repeat, linear-gradient(rgba(22,8,16,.9), rgba(10,4,8,.94)) center / calc(100% - 8px) calc(100% - 8px) no-repeat; }
#rank .rhead { display: flex; align-items: center; height: 28px; font-size: 12px; font-weight: 700; color: rgba(245,237,230,.55); border-bottom: 1px solid rgba(255,61,127,.35); }
#rank .rhead i { flex: 0 0 40px; text-align: center; font-style: normal; }
#rank .rhead .nm { flex: 1 1 auto; padding-left: 8px; }
#rank .rhead b { flex: 0 0 auto; font-weight: 700; }
#rank .rrow { height: 40px; padding: 0 4px 0 0; border-bottom: 1px solid rgba(245,237,230,.07); }
#rank .rrow i { flex: 0 0 40px; }
#rank .rrow .nm { padding-left: 8px; }
#rank .rrow b { font-family: var(--num); font-style: italic; font-weight: 700; font-size: 17px; }
#rank .rrow.me { background: linear-gradient(90deg, rgba(255,61,127,.38), rgba(255,61,127,.08)); }
#rank .rrow.me i, #rank .rrow.me b { color: var(--pink); }
/* 我：底下一条，美术给的框 */
#rank .rme { position: relative; margin: 8px 0 0; padding: 10px 76px 10px 16px; color: var(--paper); border: 0;
  background: url(assets/ui/rme.png) center / 100% 100% no-repeat, linear-gradient(rgba(40,8,24,.92), rgba(12,4,8,.94)) center / calc(100% - 8px) calc(100% - 8px) no-repeat; }
#rank .rme .v { color: var(--pink); font-family: var(--num); font-style: italic; font-weight: 700; }
#rank .rme .s { color: rgba(245,237,230,.6); }
#rank .rme .rsh { position: absolute; right: 14px; top: 50%; height: 30px; margin-top: -15px; padding: 0 12px; font-size: 14px; color: var(--paper); background: rgba(255,61,127,.25); border: 1px solid var(--pink); }

/* ==================== 2026-11-19 美术修稿：猜拳的名字框（顶上「猜拳」那块牌） ==================== */
.duel-top .bt { padding: 7px 22px 8px; background: url(assets/ui/name.png) center / 100% 100% no-repeat; }
.duel-top .bt b { font-size: 20px; }
/* 矮屏（高度不到 700，比如 360×640）：首页上下的界面收一号，不压住她的手 */
@media (max-height: 700px) {
  .life { min-height: 64px; padding-left: 64px; }
  .life .clk { width: 60px; height: 60px; }
  .life .num b { font-size: 26px; }
  .life .track { left: 54px; top: 52px; }
  #cnt { top: calc(76px + var(--safe-t)); }
  #cnt button { height: 24px; margin-bottom: 4px; font-size: 11px; }
  .hud-left, .hud-right { bottom: calc(74px + var(--safe-b)); }
  .tile, .hud-right .tile { width: 66px; height: 68px; margin-top: 6px; }
  .tile svg { width: 24px; height: 24px; margin-top: 12px; }
  .tile span { margin-top: 4px; font-size: 13px; }
  .nv { flex: 0 0 56px; height: 58px; }
  .nv svg { width: 40px; height: 40px; padding: 10px; }
  .nv span { font-size: 11px; margin-top: 2px; }
  #nav .btn.main { left: 76px; right: 76px; max-width: 180px; height: 48px; bottom: calc(100% + 20px); font-size: 19px; }
  #rank { bottom: calc(76px + var(--safe-b)); }
}

/* ==================== 2026-11-19 整体检查：其余按钮也换成美术的方框，进出首页带一点动效 ==================== */
/* 菜单里的方块：和首页入口、底栏同一种框，白色图标 */
.mt { height: auto; padding: 0 0 8px; background: none; border: 0; -webkit-clip-path: none; clip-path: none; }
.mt svg { width: 100%; max-width: 64px; height: auto; margin: 0 auto 6px; padding: 18px; box-sizing: border-box; color: var(--paper);
  background: url(assets/ui/tile.png) center / 100% 100% no-repeat; }
.mt span { font-size: 13px; }
.mt.dot:after { right: calc(50% - 30px); top: 2px; }
/* 猜拳的三个出拳键：同一种框；选中的那个框里亮粉 */
.btn.hand { background: url(assets/ui/tile.png) center / 100% 100% no-repeat; border: 0; -webkit-clip-path: none; clip-path: none; color: var(--paper); }
.btn.hand svg { color: var(--paper); }
.btn.hand:active, .btn.hand.sel { color: #fff; background: url(assets/ui/tile.png) center / 100% 100% no-repeat, linear-gradient(160deg, rgba(255,61,127,.75), rgba(150,20,80,.6)) center / calc(100% - 22px) calc(100% - 22px) no-repeat; }
.btn.hand:active svg, .btn.hand.sel svg { color: #fff; -webkit-filter: drop-shadow(0 0 6px rgba(255,61,127,.9)); filter: drop-shadow(0 0 6px rgba(255,61,127,.9)); }
/* 进出首页：左上的读数从上面落下来，数字牌和左边两块从左边、右边两块从右边滑进来（错开一点），走的时候反过来 */
.hud-top .life, .hud-top .tag, #cnt, .hud-left, .hud-right { transition: transform .42s cubic-bezier(.2, .9, .25, 1), opacity .3s; }
#hud.off .hud-top .life, #hud.off .hud-top .tag { -webkit-transform: translateY(-18px); transform: translateY(-18px); }
#hud.off #cnt { -webkit-transform: translateX(-24px); transform: translateX(-24px); }
#hud.off .hud-left { -webkit-transform: translateX(-36px); transform: translateX(-36px); }
#hud.off .hud-right { -webkit-transform: translateX(36px); transform: translateX(36px); }
#hud:not(.off) #cnt { transition-delay: .05s; } #hud:not(.off) .hud-left, #hud:not(.off) .hud-right { transition-delay: .08s; }
/* 「找回碎片」按下去：框里闪一下粉 */
#nav .btn.main:active { -webkit-filter: brightness(1.35) drop-shadow(0 0 10px rgba(255,61,127,.8)); filter: brightness(1.35) drop-shadow(0 0 10px rgba(255,61,127,.8)); }
@media (prefers-reduced-motion: reduce) { .hud-top .life, .hud-top .tag, #cnt, .hud-left, .hud-right { transition: opacity .2s; } }

/* 2026-11-20 字幕跟着界面让位（js/ui.js 的 placeCap）：挪位置的时候滑过去 */
#cap { transition: opacity .45s, bottom .3s; }

/* ==================== 2026-11-20 美术修稿（ui(1).zip「标题」）：开场「点一下屏幕」那一页 ==================== */
/* 深色底（背景中间）+ 四周的碎玻璃慢慢飘 + 大标题「给图零零 完整的一生」+ 小标题「帮我把它们找回来，好不好？」，底下一行「点一下屏幕」 */
#boot, #gate { background: #07030a url(assets/title/bg.jpg) center / cover no-repeat; }
#gate { -webkit-box-pack: start; justify-content: flex-start; padding-top: calc(17vh + var(--safe-t)); overflow: hidden; }
#gate .tg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url(assets/title/glass.png) center / cover no-repeat; pointer-events: none;
  -webkit-animation: tgDrift 8s ease-in-out infinite alternate; animation: tgDrift 8s ease-in-out infinite alternate; }
@-webkit-keyframes tgDrift { 0% { -webkit-transform: scale(1.02); opacity: .8; } 100% { -webkit-transform: scale(1.07) translateY(-8px); opacity: 1; } }
@keyframes tgDrift { 0% { transform: scale(1.02); opacity: .8; } 100% { transform: scale(1.07) translateY(-8px); opacity: 1; } }
#gate .ttl { position: relative; display: block; width: 94%; max-width: 460px; pointer-events: none;
  -webkit-filter: drop-shadow(0 0 14px rgba(255,61,127,.45)); filter: drop-shadow(0 0 14px rgba(255,61,127,.45));
  -webkit-animation: ttlIn 1.1s cubic-bezier(.2,.8,.2,1) both; animation: ttlIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
#gate .tsub { position: relative; display: block; width: 80%; max-width: 390px; margin-top: 7vh; pointer-events: none;
  -webkit-animation: ttlIn 1s .55s cubic-bezier(.2,.8,.2,1) both; animation: ttlIn 1s .55s cubic-bezier(.2,.8,.2,1) both; }
@-webkit-keyframes ttlIn { 0% { opacity: 0; -webkit-transform: translateY(14px) scale(.96); } 100% { opacity: 1; -webkit-transform: none; } }
@keyframes ttlIn { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 100% { opacity: 1; transform: none; } }
#gate .bolt { display: none; }
#gate .go { position: absolute; left: 0; width: 100%; bottom: calc(12vh + var(--safe-b)); text-align: center; pointer-events: none;
  -webkit-animation: ttlIn .8s 1.1s both; animation: ttlIn .8s 1.1s both; }
#gate .go p { margin: 0; font-size: 24px; -webkit-animation: goPulse 1.8s 2s ease-in-out infinite; animation: goPulse 1.8s 2s ease-in-out infinite; }
#gate .go small { display: block; margin-top: 10px; }
@-webkit-keyframes goPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes goPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-height: 700px) { #gate { padding-top: calc(12vh + var(--safe-t)); } #gate .tsub { margin-top: 5vh; } #gate .go { bottom: calc(9vh + var(--safe-b)); } }

/* ==================== 2026-11-20 美术修稿（ui(1).zip「猜拳」）：照「猜拳界面效果图」 ==================== */
/* 她身后是晶格底（着色器里画，assets/rps/bg.jpg）；顶上「回拼图」「猜拳」带一小段心电线、比分套「你 0:0 她」的框；
   下面一排：「你」的名字框 —— 带心电线的 VS —— 「她」的名字框（两个框都是美术的「vs名字框」） */
.duel-top .bt b:after { width: 74px; height: 12px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 12'%3E%3Cpath d='M0 7h22l3-5 4 9 3-7 3 3h39' fill='none' stroke='%23FF3D7F' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  -webkit-transform: none; transform: none; -webkit-filter: drop-shadow(0 0 2px rgba(255,61,127,.8)); filter: drop-shadow(0 0 2px rgba(255,61,127,.8)); }
.duel-top .score { padding: 7px 18px 8px; background: url(assets/ui/rtab.png) center / 100% 100% no-repeat; border: 0; -webkit-clip-path: none; clip-path: none; }
.duel-top .score b { color: var(--pink); text-shadow: 0 0 8px rgba(255,61,127,.7); }
#duel .vs { height: 56px; }
#duel .vs .cell, #duel .vs .cell.her { background: url(assets/ui/name.png) center / 100% 100% no-repeat; border: 0; -webkit-clip-path: none; clip-path: none; }
#duel .vs .cell small { left: 12px; top: 5px; }
#duel .vs .cell.her small { right: 12px; }
#duel .vs .mid { -webkit-box-flex: 0; flex: 0 0 31%; max-width: 132px; background: url(assets/rps/vs.png) center / 100% auto no-repeat; }
#duel .vs .mid i { visibility: hidden; }
#duel .vs.done .mid { background: none; }
/* 出完拳：赢的那一格框里亮起来（白或粉），框本身不动 */
#duel .vs.r-me .cell.me { background: url(assets/ui/name.png) center / 100% 100% no-repeat, linear-gradient(rgba(245,237,230,.92), rgba(245,237,230,.92)) center / calc(100% - 14px) calc(100% - 14px) no-repeat; }
#duel .vs.r-her .cell.her { background: url(assets/ui/name.png) center / 100% 100% no-repeat, linear-gradient(rgba(255,61,127,.92), rgba(255,61,127,.92)) center / calc(100% - 14px) calc(100% - 14px) no-repeat; }

/* 2026-11-20 美术「标题/背景」（四角粉光、框线、碎玻璃的整幅）给开场前「正在找回她的碎片」那一页 */
#boot { background: #07030a url(assets/title/boot.jpg) center / cover no-repeat; }

/* ==================== 2026-11-20 全部统一成美术这一版的风格（用户：「所有的ui风格都要向这一次的风格一样，不要出现两种风格」） ====================
   老的那套（米白纸片、粉色切角按钮、浅色的块）都换掉，只剩两种零件：
   · 面板：深色玻璃（上浅下深的暗紫黑）+ 一圈很淡的细边 + 左上、右下两个粉色的折角
   · 按钮：美术的框（assets/ui/find.png，「找回碎片」那个框），主按钮框里填粉、次按钮框里填深色玻璃；不再切角 */
:root { --glass1: rgba(36, 16, 30, .94); --glass2: rgba(10, 5, 10, .94); --gline: rgba(245, 237, 230, .16); }
#tour .tbub, #tip, #toast span, #panel, #menu .help, #tasks .trow {
  background:
    linear-gradient(var(--pink), var(--pink)) left top / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) left top / 2px 16px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 2px 16px no-repeat,
    linear-gradient(165deg, var(--glass1), var(--glass2));
  border: 1px solid var(--gline); color: var(--paper);
  -webkit-clip-path: none; clip-path: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 26px rgba(255, 61, 127, .07);
}
/* 导览的说明条：深色玻璃，字是浅的；压在遮罩上面（以前遮罩盖在它上面，按钮后面看着像一道灰黑的条） */
#tour .tbub { z-index: 2; padding: 13px 14px 12px 16px; border-left-width: 1px; }
#tour .tno { color: rgba(245, 237, 230, .45); }
#tour .ttxt { color: var(--paper); }
#tour .ttxt b { color: var(--pink); }
#tour .tskip { color: rgba(245, 237, 230, .55); }
#tour .trow { margin-top: 12px; background: none; border: 0; box-shadow: none; }
/* 说明、提示条 */
#tip { border-left-width: 1px; }
#tip.void { background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 16px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left top / 2px 16px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 2px 16px no-repeat,
    linear-gradient(165deg, var(--glass1), var(--glass2)); }
#toast span { color: var(--paper); font-weight: 400; padding: 11px 18px; }
/* 底部弹出的面板（铸造、分享、说明……）：去掉左上那道斜杠，靠折角 */
#panel { border-width: 1px 0 0; }
#panel:before { display: none; }
/* 任务的每一行 */
#tasks .trow { border-left-width: 1px; box-shadow: none; }
#tasks .trow.can { background:
    linear-gradient(var(--pink), var(--pink)) left top / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) left top / 2px 16px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 2px 16px no-repeat,
    linear-gradient(165deg, rgba(70, 18, 44, .94), var(--glass2)); border-color: rgba(255, 61, 127, .45); }
/* 按钮：美术的框 */
.btn.main, .btn.act, .btn.ghost {
  -webkit-clip-path: none; clip-path: none; border: 0; color: #fff; font-style: normal;
  background: url(assets/ui/find.png) center / 100% 100% no-repeat,
    linear-gradient(100deg, rgba(255, 61, 127, .95), rgba(196, 24, 96, .95)) center / calc(100% - 18px) calc(100% - 16px) no-repeat;
  text-shadow: 0 1px 6px rgba(80, 0, 30, .55);
}
.btn.ghost { color: var(--paper); text-shadow: none;
  background: url(assets/ui/find.png) center / 100% 100% no-repeat,
    linear-gradient(165deg, rgba(40, 18, 34, .9), rgba(10, 5, 10, .9)) center / calc(100% - 14px) calc(100% - 12px) no-repeat; }
.btn.ghost.on { color: #fff;
  background: url(assets/ui/find.png) center / 100% 100% no-repeat,
    linear-gradient(165deg, rgba(255, 61, 127, .5), rgba(120, 16, 64, .7)) center / calc(100% - 14px) calc(100% - 12px) no-repeat; }
.btn.main.empty { color: var(--dim);
  background: url(assets/ui/find.png) center / 100% 100% no-repeat,
    linear-gradient(165deg, rgba(40, 18, 34, .9), rgba(10, 5, 10, .9)) center / calc(100% - 18px) calc(100% - 16px) no-repeat; }
/* 排行榜里自己那一条、几个旧的浅色块 */
#rank .rp.on { color: #fff; background: rgba(255, 61, 127, .35); border-color: var(--pink); }
.vs.r-me .cell.me { color: var(--ink); }
.rar-row span:nth-child(2) { background: rgba(245, 237, 230, .85); }

/* ==================== 2026-11-20 按钮下面的字不出框（用户：「各种按钮的ui 下方的文字有点出框了」） ====================
   框套住整个按钮（图标 + 字），字在框里面，离框的下边留够空 */
/* 底栏：以前框只套图标、字掉在框外面 */
.nv { -webkit-box-flex: 0; flex: 0 0 58px; height: 62px; padding-top: 9px; background: url(assets/ui/tile.png) center / 100% 100% no-repeat; }
.nv svg { width: 22px; height: 22px; padding: 0; background: none; }
.nv span { margin-top: 5px; font-size: 11px; line-height: 1; white-space: nowrap; }
.nv.on { background: url(assets/ui/tile.png) center / 100% 100% no-repeat, linear-gradient(165deg, rgba(255, 61, 127, .45), rgba(120, 16, 64, .55)) center / calc(100% - 14px) calc(100% - 14px) no-repeat; }
.nv.on svg { color: #fff; }
/* 菜单里的方块：同样整块套框 */
.mt { height: auto; padding: 14px 0 14px; background: url(assets/ui/tile.png) center / 100% 100% no-repeat; }
.mt svg { width: 26px; height: 26px; max-width: none; margin: 0 auto 7px; padding: 0; background: none; }
.mt span { font-size: 12px; line-height: 1.1; }
.mt.dot:after { right: 6px; top: 6px; }
/* 猜拳的三个出拳键：图标小一点，字往上收，离框的下边留空 */
.btn.hand { height: 86px; padding: 13px 0 0; font-size: 15px; line-height: 1; }
.btn.hand svg { width: 32px; height: 32px; margin: 0 auto 7px; }
/* 首页的入口牌：字稍微往上 */
.tile svg { margin-top: 14px; }
.tile span { margin-top: 5px; font-size: 14px; line-height: 1; }
@media (max-height: 700px) {
  .nv { flex: 0 0 52px; height: 56px; padding-top: 7px; }
  .nv svg { width: 20px; height: 20px; }
  .nv span { font-size: 10px; margin-top: 4px; }
  .mt { padding: 11px 0 11px; }
  .mt svg { width: 22px; height: 22px; margin-bottom: 6px; }
  .mt span { font-size: 11px; }
  .btn.hand { height: 74px; padding-top: 10px; font-size: 13px; }
  .btn.hand svg { width: 26px; height: 26px; margin-bottom: 6px; }
  .tile svg { margin-top: 12px; }
  .tile span { font-size: 12px; }
}

/* ==================== 2026-11-20 猜拳页面理一理（用户：「猜拳页面ui风格不变，但是有点乱乱的」） ====================
   顶上一行：「回拼图」、「猜拳」、比分，一样高、垂直居中；下面一行：你 —— VS —— 她，和顶上一行左右对齐；
   右边原来叠在她头发上的「教程」「分享」挪到出拳键上面那一行的两头，中间是「赢一局 +1 块 · 今天还剩 N 次」——她的脸和手上不压东西 */
.duel-top { -webkit-box-align: center; align-items: center; padding: calc(10px + var(--safe-t)) 12px 0; }
.duel-top #duelClose { height: 40px; }
.duel-top .bt { margin-left: 10px; padding: 0 18px; height: 40px; display: flex; flex-direction: column; justify-content: center; }
.duel-top .score { height: 40px; display: flex; align-items: center; padding: 0 16px; }
#duel .vs { left: 12px; right: 12px; top: calc(60px + var(--safe-t)); height: 52px; }
#helpBtn[data-m="duel"], #shareBtn[data-m="duel"] { top: auto; bottom: calc(108px + var(--safe-b)); height: 30px; padding: 0 12px; font-size: 13px; }
#helpBtn[data-m="duel"] { left: 12px; right: auto; }
#shareBtn[data-m="duel"] { right: 12px; }
.duel-bottom .rule { margin: 0 60px 14px; line-height: 30px; height: 30px; }
.duel-bottom .sub { margin: 0 0 6px; }
@media (max-height: 700px) {
  #helpBtn[data-m="duel"], #shareBtn[data-m="duel"] { bottom: calc(94px + var(--safe-b)); height: 28px; font-size: 12px; }
  .duel-bottom .rule { margin-bottom: 10px; font-size: 12px; }
}
/* 首页点了一块的说明条：放在「找回碎片」上面，不和它叠在一起 */
#tip { bottom: calc(176px + var(--safe-b)); }
@media (max-height: 700px) { #tip { bottom: calc(150px + var(--safe-b)); } }

/* ==================== 2026-11-20 动效也换成这一版（用户：「各个页面的切换动画，以及各种其他动画，我看有些还是老的」） ====================
   老的那套：菜单项斜着（skew）甩进来、数字放大一倍半「砸」下来带黄色、照片歪着掉下来、拍立得白边。
   新的统一成「玻璃里透出来」：淡入 + 往上浮一点 + 一下亮光再暗回去；页面打开时一道粉色的扫描线从上往下扫过一次 */
@-webkit-keyframes miIn { from { opacity: 0; -webkit-transform: translateY(10px); -webkit-filter: brightness(1.8); } to { opacity: 1; -webkit-transform: none; -webkit-filter: none; } }
@keyframes miIn { from { opacity: 0; transform: translateY(10px); filter: brightness(1.8); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tipIn { from { opacity: 0; transform: translateY(8px); filter: brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); filter: brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
@keyframes barIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* 数字跳一下：放大一点点、粉色辉光一闪（不再黄色、不再砸下来） */
@keyframes bump { 0% { transform: scale(1.16); text-shadow: 0 0 14px rgba(255, 61, 127, .95), 2px 2px 0 var(--pink); } 100% { transform: scale(1); } }
@keyframes slam { 0% { transform: scale(1.1); filter: brightness(1.7); } 100% { transform: scale(1); filter: none; } }
/* 照片：不再歪着掉下来、不再是拍立得白边——淡入、轻轻放大到位，细边 + 粉色折角 + 一圈柔光 */
@keyframes photoIn { from { opacity: 0; transform: scale(1.05); filter: brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
#photo img { border: 1px solid rgba(245, 237, 230, .3); box-shadow: 0 0 0 1px rgba(10, 4, 8, .6), 0 10px 40px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 61, 127, .25); }
/* 页面打开：一道粉色的扫描线从上往下扫过一次（菜单、排行榜、任务、底部面板） */
#menu:after, #rank:after, #tasks:after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(255, 61, 127, 0), var(--pink) 30%, #fff 50%, var(--pink) 70%, rgba(255, 61, 127, 0));
  box-shadow: 0 0 14px rgba(255, 61, 127, .9); opacity: 0;
  -webkit-animation: scanDown .7s cubic-bezier(.3, .6, .3, 1) both; animation: scanDown .7s cubic-bezier(.3, .6, .3, 1) both; }
@-webkit-keyframes scanDown { 0% { opacity: 0; -webkit-transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; -webkit-transform: translateY(70vh); } }
@keyframes scanDown { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(70vh); } }
/* 任务的每一行、排行榜的每一行：和菜单一样一行行浮上来 */
#tasks .trow { -webkit-animation: miIn .32s both; animation: miIn .32s both; }
#tasks .trow:nth-child(2) { animation-delay: .03s; } #tasks .trow:nth-child(3) { animation-delay: .06s; } #tasks .trow:nth-child(4) { animation-delay: .09s; }
#tasks .trow:nth-child(5) { animation-delay: .12s; } #tasks .trow:nth-child(6) { animation-delay: .15s; } #tasks .trow:nth-child(n+7) { animation-delay: .18s; }

/* ==================== 2026-11-20 菜单重新排（用户：「整个菜单你要弄得和谐，好看一点」） ====================
   自己的牌（深色玻璃 + 粉色折角，头像、拼回多少、一条进度、卡包数）→「玩法」三块大牌（美术的方框，带一句说明）
   →「其他」一张玻璃面板里一行一行（左图标、右箭头或开关）→ 最底下淡淡的标题字，把空白压住 */
#menu { padding: 8px 14px calc(92px + var(--safe-b)); }
.mhead { padding: 12px 14px 12px 12px; border: 1px solid var(--gline); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  background:
    linear-gradient(var(--pink), var(--pink)) left top / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) left top / 2px 16px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 2px 16px no-repeat,
    linear-gradient(165deg, var(--glass1), var(--glass2)); }
.mhead .av { overflow: hidden; border-radius: 50%; border: 1px solid rgba(255, 61, 127, .55); box-shadow: 0 0 12px rgba(255, 61, 127, .35); background: none; padding: 0; }
.mhead .av img { display: block; width: 100%; height: 100%; }
.mwho .mbar { display: block; height: 3px; margin-top: 8px; background: rgba(245, 237, 230, .12); overflow: hidden; }
.mwho .mbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgba(255, 61, 127, .6), var(--pink)); box-shadow: 0 0 6px rgba(255, 61, 127, .8); }
.msec { margin: 18px 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: rgba(245, 237, 230, .55); display: flex; align-items: center; }
.msec:before { content: ''; width: 3px; height: 12px; margin-right: 8px; background: var(--pink); box-shadow: 0 0 6px rgba(255, 61, 127, .8); }
.msec:after { content: ''; flex: 1 1 auto; height: 1px; margin-left: 10px; background: linear-gradient(90deg, rgba(245, 237, 230, .18), rgba(245, 237, 230, 0)); }
.mgrid { margin: 0 -4px; }
.mt.big { width: calc(33.33% - 8px); padding: 16px 4px 14px; }
.mt.big svg { width: 30px; height: 30px; margin-bottom: 8px; color: var(--paper); }
.mt.big span { font-size: 14px; }
.mt.big small { display: block; margin-top: 5px; font-size: 10px; font-weight: 700; color: var(--pink); white-space: nowrap; }
.mlist { border: 1px solid var(--gline);
  background:
    linear-gradient(var(--pink), var(--pink)) left top / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) left top / 2px 16px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 2px 16px no-repeat,
    linear-gradient(165deg, var(--glass1), var(--glass2)); }
.mrow { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 14px; color: var(--paper); text-align: left; border-top: 1px solid rgba(245, 237, 230, .08);
  -webkit-animation: miIn .32s both; animation: miIn .32s both; }
.mrow:first-child { border-top: 0; }
.mrow:active { background: rgba(255, 61, 127, .15); }
.mrow svg { flex: 0 0 20px; width: 20px; height: 20px; margin-right: 12px; color: rgba(245, 237, 230, .8); }
.mrow span { flex: 1 1 auto; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.mrow .chev { width: 8px; height: 8px; border-right: 2px solid rgba(245, 237, 230, .45); border-top: 2px solid rgba(245, 237, 230, .45); -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.mrow em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 12px; color: #fff; background: rgba(255, 61, 127, .35); border: 1px solid var(--pink); }
.mbrand { margin-top: auto; padding-top: 18px; text-align: center; opacity: .2; pointer-events: none; }
.mbrand img { width: 62%; max-width: 260px; }
@media (max-height: 700px) {
  .msec { margin: 12px 2px 6px; }
  .mt.big { padding: 12px 4px 11px; }
  .mrow { height: 42px; }
  .mbrand { display: none; }
}

/* 2026-11-20 按下去都要有反应（没写按下样子的按钮统一亮一下、往下沉一点） */
button:active:not([disabled]) { -webkit-filter: brightness(1.25); filter: brightness(1.25); }

/* 消消乐教程里示范拖动的那只手（js/match.js 的 handOn） */
#mhand { position: fixed; left: 0; top: 0; z-index: 30; width: 46px; height: 46px; margin: -6px 0 0 -14px; pointer-events: none; opacity: 0;
  -webkit-filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)) drop-shadow(0 0 8px rgba(255, 61, 127, .7)); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)) drop-shadow(0 0 8px rgba(255, 61, 127, .7)); }
#mhand svg { width: 100%; height: 100%; fill: #fff; stroke: #0a0207; stroke-width: 1.6; stroke-linejoin: round; -webkit-transition: -webkit-transform .15s; transition: transform .15s; }
#mhand.press svg { -webkit-transform: scale(.86) translateY(2px); transform: scale(.86) translateY(2px); }
#mhand:after { content: ''; position: absolute; left: 10px; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 61, 127, .9); opacity: 0; }
#mhand.press:after { -webkit-animation: handTap .5s ease-out; animation: handTap .5s ease-out; }
@keyframes handTap { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.8); } }
@-webkit-keyframes handTap { 0% { opacity: .9; -webkit-transform: scale(.5); } 100% { opacity: 0; -webkit-transform: scale(1.8); } }

/* ==================== 2026-11-20 带框按钮里的图标和字上下居中（用户：「这些ui里面的文字都快超出去了，也修改下，上下居中」） ====================
   美术的方框（assets/ui/tile.png）里面那圈细线在上 14%、下 13%、左右 13% 处：图标和字当成一组，在这个框里面上下左右居中，
   字和框底那道折角之间留空。首页四个入口、底栏、菜单方块、猜拳出拳键都照这个来 */
.tile, .hud-right .tile, .nv, .mt, .mt.big, .btn.hand {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 0 4px; text-align: center; overflow: visible;      /* 不用百分比的内边距：百分比按外面那一层的宽算，底栏、出拳键会被撑大、图标被挤没 */
}
.tile svg, .nv svg, .mt svg, .btn.hand svg { -webkit-flex-shrink: 0; flex-shrink: 0; }
.hud-right .tile svg { margin: 0; }      /* 右边两个入口以前图标靠右（margin-left:auto），现在和左边一样居中 */
.tile svg { margin: 0; width: 24px; height: 24px; }
.tile span { margin-top: 6px; font-size: 14px; line-height: 1; }
.nv { height: 60px; }
.nv svg { margin: 0; width: 20px; height: 20px; }
.nv span { margin-top: 5px; font-size: 11px; line-height: 1; }
.mt svg, .mt.big svg { margin: 0; }
.mt span, .mt.big span { margin-top: 6px; line-height: 1.1; }
.mt.big { min-height: 96px; }
.mt.big small { margin-top: 4px; }
.btn.hand svg { margin: 0 0 6px; width: 30px; height: 30px; }
.btn.hand { line-height: 1; }
/* 红点：压在框的右上角上，不被裁 */
.tile.dot:after, .hud-left .tile.dot:after, .mt.dot:after { right: 3px; top: 3px; z-index: 1; }
@media (max-height: 700px) {
  .tile svg { width: 21px; height: 21px; }
  .tile span { margin-top: 5px; font-size: 12px; }
  .nv { height: 54px; }
  .nv svg { width: 18px; height: 18px; }
  .nv span { margin-top: 4px; font-size: 10px; }
  .mt.big { min-height: 84px; }
  .btn.hand svg { width: 24px; height: 24px; margin-bottom: 5px; }
}
/* 排行榜前三名的头像：对准美术头像框里那个圆（圆心在框高的 71%、直径约框宽的 76%），不是图片盒子的中心（上面有徽章、翅膀） */
#rank .pc .face { left: 13%; top: 48.4%; width: 74%; height: 45.2%; }

/* 分享不了时摆出来的那张图：底再暗一点，提示字不和后面榜单的字叠在一起 */
#photo { background: rgba(10, 4, 8, .93); }

/* ==================== 2026-11-20 加载页（R010）：进度条、百分比，慢了或失败了给「重试」「先进去」 ====================
   都在屏幕中间偏下，离开顶上的状态栏和胶囊、底下的作品栏（R009 的 --safe-t、--safe-b） */
#boot { padding: var(--safe-t) 0 var(--safe-b); }
#boot .bbar { position: relative; width: 62%; max-width: 260px; height: 3px; margin-top: 16px; background: rgba(245, 237, 230, .14); overflow: hidden; }
#boot .bbar i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--pink); box-shadow: 0 0 8px rgba(255, 61, 127, .9); transition: width .3s; }
#boot .bpct { margin-top: 8px; font-family: var(--num); font-size: 13px; letter-spacing: .1em; color: rgba(245, 237, 230, .7); }
#boot .bmore { margin-top: 22px; text-align: center; font-size: 13px; color: var(--paper); }
#boot .brow { margin-top: 12px; }
#boot .brow .btn { height: 40px; line-height: 40px; min-width: 96px; margin: 0 6px; padding: 0 16px; font-size: 14px; font-style: normal; }
#boot .btn.act.sm { height: 40px; }

/* ==================== R009 首页顶上收成一行（2026-11-20 用户在两种排法里选了这一种） ====================
   胶囊下面只留一条：小一号的钟 + 「你为她拼回了 00:00 / 24:00」+ 下面一条心电线；右上的英文小标签去掉了（那一行本来就是胶囊的地方）；
   三个数字牌从左边竖排改成钟下面横排一行，左边让出来，不压她的手 */
.life { min-height: 50px; padding: 1px 0 0 56px; }
.life .clk { width: 50px; height: 50px; }
.life .lab { display: inline-block; vertical-align: baseline; margin-right: 8px; }
.life .num { display: inline-block; margin-top: 0; }
.life .num b { font-size: 26px; }
.life .track { left: 56px; top: 34px; height: 16px; }
#cnt { left: 8px; right: 8px; top: calc(66px + var(--safe-t)); display: -webkit-box; display: -webkit-flex; display: flex; }
#cnt button { margin: 0 6px 0 0; }
@media (max-height: 700px) {
  .life { min-height: 46px; padding-left: 50px; }
  .life .clk { width: 46px; height: 46px; }
  .life .num b { font-size: 24px; }
  .life .track { left: 50px; top: 32px; }
  #cnt { top: calc(58px + var(--safe-t)); }
}

/* R009：顶上让出容器的胶囊以后，任务列表往下挪了，底边要停在「找回碎片」上面（任务页底栏上也有这个按钮），不钻到它后面 */
#tasks { bottom: calc(164px + var(--safe-b)); }
@media (max-height: 700px) { #tasks { bottom: calc(146px + var(--safe-b)); } }

/* ==================== R064（2026-11-22）铸造做成主线 ==================== */
/* 首页第二排只放两个一样大的大按钮：「找回碎片」（粉）和「铸造」（青，共建的颜色）。两个共用上面 #nav .btn.main 的样式（矮屏时一起变矮），
   只分左右；铸造把同一张框图转成青色（用户 11-22：「这个铸造和旁边的按钮不一样大啊」） */
#nav .btn.main { max-width: none; margin: 0; letter-spacing: .08em; }
#nav #btnDraw { left: 10px; right: calc(50% + 5px); }
#nav #btnForge { left: calc(50% + 5px); right: 10px; -webkit-filter: hue-rotate(205deg) saturate(1.4); filter: hue-rotate(205deg) saturate(1.4); }
#nav #btnForge:active { -webkit-filter: hue-rotate(205deg) saturate(1.4) brightness(1.35); filter: hue-rotate(205deg) saturate(1.4) brightness(1.35); }
#nav #btnForge.pulse { -webkit-animation: pulseC 1.6s infinite; animation: pulseC 1.6s infinite; }
@-webkit-keyframes pulseC { 0%, 100% { -webkit-filter: hue-rotate(205deg) saturate(1.4); } 50% { -webkit-filter: hue-rotate(205deg) saturate(1.4) brightness(1.5); } }
@keyframes pulseC { 0%, 100% { -webkit-filter: hue-rotate(205deg) saturate(1.4); filter: hue-rotate(205deg) saturate(1.4); } 50% { -webkit-filter: hue-rotate(205deg) saturate(1.4) brightness(1.5); filter: hue-rotate(205deg) saturate(1.4) brightness(1.5); } }
@media (prefers-reduced-motion: reduce) { #nav #btnForge.pulse { -webkit-animation: none; animation: none; } }
/* 原来左上角的「铸造」小牌让给「任务」；猜拳、消消乐在右边并排。第一排三个小入口，第二排两个大按钮，第三排底栏 */
.hud-left, .hud-right { bottom: calc(174px + var(--safe-b)); }
.hud-right { display: -webkit-box; display: -webkit-flex; display: flex; }
.hud-right .tile { margin-left: 6px; }
@media (max-height: 700px) { .hud-left, .hud-right { bottom: calc(148px + var(--safe-b)); } }
/* 顶上「未铸造」：青色，带箭头，点了直接进铸造页 */
#cnt button[data-k=void] { border-left-color: var(--cyan); color: var(--cyan); }
#cnt button[data-k=void] b { color: var(--cyan); }
#cnt button[data-k=void]:after { content: ''; display: block; width: 6px; height: 6px; margin-left: 7px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); -webkit-transform: rotate(45deg); transform: rotate(45deg); }
/* 玩家铸造的卡进卡池的轮播：有几张轮几张，没有就不显示 */
#mintTick { position: absolute; left: 8px; right: 8px; top: calc(102px + var(--safe-t)); height: 26px; padding: 0 10px; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; align-items: center; font-size: 12px; font-weight: 700; color: var(--paper); white-space: nowrap; overflow: hidden; pointer-events: none;
  background: linear-gradient(90deg, rgba(45,226,230,.22), rgba(14,8,12,.2)); border-left: 2px solid var(--cyan); transition: opacity .35s, transform .42s; }
#mintTick i { -webkit-box-flex: 0; flex: 0 0 auto; margin-right: 8px; font-style: normal; font-family: var(--disp); font-size: 13px; color: var(--cyan); }
#mintTick span { -webkit-box-flex: 1; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#mintTick em { font-style: normal; color: var(--cyan); }
#mintTick.fade { opacity: 0; -webkit-transform: translateY(-4px); transform: translateY(-4px); }
#hud.off #mintTick, #hud.quiet #mintTick { opacity: 0; }
@media (max-height: 700px) { #mintTick { top: calc(90px + var(--safe-t)); height: 24px; } }
/* 集齐那一屏：剩下的要你来铸造 */
#allDone { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 30; background: rgba(8,3,7,.88); text-align: center; color: var(--paper); padding-top: calc(70px + var(--safe-t)); animation: tipIn .3s both; }
#allDone .cards { position: relative; height: 150px; width: 220px; margin: 0 auto 26px; }
#allDone .cards i { position: absolute; left: 50%; top: 0; width: 92px; height: 128px; margin-left: -46px; border: 2px dashed rgba(45,226,230,.75); background: rgba(45,226,230,.06); }
#allDone .cards i:nth-child(1) { -webkit-transform: translateX(-62px) rotate(-12deg); transform: translateX(-62px) rotate(-12deg); opacity: .55; }
#allDone .cards i:nth-child(3) { -webkit-transform: translateX(62px) rotate(12deg); transform: translateX(62px) rotate(12deg); opacity: .55; }
#allDone .cards i:nth-child(2) { z-index: 1; background: rgba(14,30,34,.9); }
#allDone .cards i:nth-child(2):before, #allDone .cards i:nth-child(2):after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--cyan); }
#allDone .cards i:nth-child(2):before { width: 30px; height: 4px; margin: -2px 0 0 -15px; }
#allDone .cards i:nth-child(2):after { width: 4px; height: 30px; margin: -15px 0 0 -2px; }
#allDone .k { font-family: var(--num); font-size: 13px; letter-spacing: .3em; color: rgba(245,237,230,.55); }
#allDone .t { margin-top: 8px; font-family: var(--disp); font-size: 46px; line-height: 1.1; text-shadow: 3px 3px 0 var(--pink); }
#allDone .s { margin-top: 18px; font-size: 16px; font-weight: 700; line-height: 1.7; }
#allDone .s b { font-family: var(--num); font-size: 22px; color: var(--cyan); margin: 0 3px; }
#allDone .go { display: block; width: 220px; height: 56px; margin: 34px auto 0; padding: 0; border: 0; color: var(--paper); font-family: var(--disp); font-size: 24px; letter-spacing: .12em;
  background: url(assets/ui/find.png) center / 100% 100% no-repeat; -webkit-filter: hue-rotate(205deg) saturate(1.4); filter: hue-rotate(205deg) saturate(1.4); }
#allDone .later { display: block; margin: 14px auto 0; padding: 8px 16px; background: none; border: 0; color: rgba(245,237,230,.6); font-size: 14px; }
@media (max-height: 700px) { #allDone { padding-top: calc(34px + var(--safe-t)); } #allDone .cards { height: 132px; margin-bottom: 16px; } #allDone .t { font-size: 40px; } #allDone .go { margin-top: 24px; } }
/* 铸造页说明条顶上的热度：多少人想要，第一名挂「最想要」 */
#panel .heat { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; align-items: center; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: rgba(245,237,230,.75); }
#panel .heat .lab { margin-right: 8px; font-family: var(--disp); font-size: 15px; color: var(--pink); }
#panel .heat .bar { position: relative; width: 86px; height: 6px; margin-right: 8px; background: rgba(245,237,230,.12); }
#panel .heat .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--pink), var(--yellow, #FCEE0A)); }
#panel .heat b { margin-right: 3px; font-family: var(--num); font-size: 15px; color: var(--paper); }
#panel .heat .no { margin-left: auto; padding: 1px 7px; border: 1px solid rgba(252,238,10,.6); color: #FCEE0A; font-size: 11px; }

/* ==================== R065、R067（2026-11-22）消消乐、猜拳里的排行 ==================== */
/* 页面里一条小牌「今日第 N 名」：消消乐在棋盘下面的读数下方，猜拳在三只手上面那一行的上面 */
#rkChip { position: fixed; left: 50%; z-index: 7; height: 28px; padding: 0 12px 0 8px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; align-items: center;
  -webkit-transform: translateX(-50%); transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--paper); white-space: nowrap;
  background: rgba(14,8,12,.84); border: 1px solid rgba(245,237,230,.16); border-left: 2px solid var(--yellow); }
#rkChip svg { width: 16px; height: 16px; margin-right: 5px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#rkChip:after { content: ''; display: block; width: 5px; height: 5px; margin-left: 7px; border-top: 2px solid rgba(245,237,230,.7); border-right: 2px solid rgba(245,237,230,.7); -webkit-transform: rotate(45deg); transform: rotate(45deg); }
#rkChip:active { background: rgba(252,238,10,.2); }
#rkChip[data-m="match"] { bottom: calc(40px + var(--safe-b)); }
#rkChip[data-m="duel"] { bottom: calc(146px + var(--safe-b)); }
@media (max-height: 700px) { #rkChip[data-m="match"] { bottom: calc(30px + var(--safe-b)); } #rkChip[data-m="duel"] { bottom: calc(128px + var(--safe-b)); } }
/* 弹出的排行：这次的成绩、今天第几名、离上一名差多少、前五名。点哪里都收起 */
#rkCard { position: fixed; left: 16px; right: 16px; top: calc(70px + var(--safe-t)); z-index: 9; padding: 12px 14px 12px; background: rgba(12,6,10,.95); border: 1px solid rgba(245,237,230,.16);
  border-top: 3px solid var(--yellow); box-shadow: 0 10px 30px rgba(0,0,0,.55); color: var(--paper); animation: tipIn .2s both; }
#rkCard .rc-t { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; align-items: center; font-size: 12px; color: rgba(245,237,230,.6); }
#rkCard .rc-t b { margin-right: 8px; font-family: var(--disp); font-size: 17px; font-weight: 400; color: var(--paper); }
#rkCard .rc-t .rc-x { margin-left: auto; width: 30px; height: 30px; padding: 0; background: none; border: 0; color: rgba(245,237,230,.7); font-size: 22px; line-height: 1; }
#rkCard .rc-h { margin-top: 4px; font-size: 13px; font-weight: 700; color: rgba(245,237,230,.75); }
#rkCard .rc-n { margin-top: 4px; padding-bottom: 2px; overflow: visible; font-family: var(--disp); font-size: 34px; line-height: 1.15; color: var(--yellow); text-shadow: 2px 2px 0 rgba(255,61,127,.6); }
#rkCard .rc-g { font-size: 13px; font-weight: 700; color: var(--paper); }
#rkCard .rc-l { margin-top: 10px; border-top: 1px solid rgba(245,237,230,.12); }
#rkCard .rc-r { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; align-items: center; height: 30px; font-size: 13px; border-bottom: 1px solid rgba(245,237,230,.06); }
#rkCard .rc-r i { width: 30px; font-style: normal; font-family: var(--num); font-size: 15px; color: rgba(245,237,230,.55); }
#rkCard .rc-r span { -webkit-box-flex: 1; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rkCard .rc-r b { margin-left: 8px; font-family: var(--num); font-size: 14px; }
#rkCard .rc-r.me { background: rgba(252,238,10,.12); }
#rkCard .rc-r.me i, #rkCard .rc-r.me span, #rkCard .rc-r.me b { color: var(--yellow); }
#rkCard .rc-d { height: 16px; line-height: 12px; text-align: center; color: rgba(245,237,230,.4); }
#rkCard .rc-w { padding: 18px 0; text-align: center; font-size: 13px; color: rgba(245,237,230,.6); }
@media (max-height: 700px) { #rkCard { top: calc(56px + var(--safe-t)); padding: 10px 12px; } #rkCard .rc-n { font-size: 30px; } #rkCard .rc-r { height: 27px; } }

/* ==================== R064b（2026-11-22）铸造页选题那一步的说明条压薄 ==================== */
/* 11-22 用户：「铸造页面的下方ui太厚了，有点挡住现在铸造的卡片了」。三行：题目和「‹ 1/55 ›」、热度、两个按钮；上面的卡跟着变大（flows.js 的 stageSpot 按说明条的顶边算） */
#panel.slim { padding: 10px 16px calc(8px + var(--safe-b)); }
#panel.slim .fhd { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
#panel.slim .fhd .n { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; font-family: var(--disp); font-size: 23px; line-height: 1.2; color: var(--paper);
  text-shadow: 2px 2px 0 var(--pink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
#panel.slim .pg { -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
#panel.slim .pt { min-width: 44px; padding: 0 4px; text-align: center; font-family: var(--num); font-size: 14px; font-weight: 700; color: rgba(245,237,230,.8); }
#panel.slim .pa { position: relative; width: 32px; height: 28px; padding: 0; background: rgba(245,237,230,.06); border: 1px solid rgba(255,61,127,.55); }
#panel.slim .pa:before { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -4px 0 0 -2px; border-left: 2px solid var(--pink); border-bottom: 2px solid var(--pink);
  -webkit-transform: rotate(45deg); transform: rotate(45deg); }
#panel.slim .pa.nx:before { margin-left: -6px; -webkit-transform: rotate(-135deg); transform: rotate(-135deg); }
#panel.slim .pa:active { background: rgba(255,61,127,.3); }
#panel.slim .heat { margin: 4px 0 0; }
#panel.slim .fs { margin-top: 4px; font-size: 12.5px; line-height: 18px; color: var(--dim); }
#panel.slim .row { margin-top: 8px; }
#panel.slim .row .btn { margin: 0 8px 0 0; height: 40px; line-height: 40px; padding: 0 20px; font-size: 17px; }
#panel.slim .row { -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
#panel.slim .row .fr { margin-left: auto; padding: 8px 2px 8px 10px; background: none; border: 0; color: var(--cyan); font-family: var(--disp); font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
#panel.slim .row .fr:after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 5px; vertical-align: 2px; border-right: 2px solid var(--cyan); border-top: 2px solid var(--cyan); -webkit-transform: rotate(45deg); transform: rotate(45deg); }
