@font-face { font-family: "FangYuan"; src: url("../assets/font/fangyuan.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PuHui"; src: url("../assets/font/puhui-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PuHui"; src: url("../assets/font/puhui-bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
:root {
  --ink: #2a2440; --ink2: #6b6585; --paper: #ffffff; --line: rgba(80, 70, 140, .16);
  --basic: #ff8a4c; --trick: #8b6cf0; --equip: #2fa67b; --good: #2fbf71; --bad: #ef4558; --gold: #f7b733;
  --sans: "PuHui", "Microsoft YaHei", "PingFang SC", sans-serif;
  --title: "FangYuan", "PuHui", sans-serif;
  --acc: linear-gradient(135deg, #5ee7c5, #4aa8ff); --acc-1: #5ee7c5; --acc-2: #4aa8ff; --acc-ink: #3d4f8a; --glass: rgba(255, 255, 255, .58);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #cfe3ff; overflow: hidden; touch-action: manipulation; font-family: var(--sans); font-weight: 500; color: var(--ink); user-select: none; }
#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(#bcd8ff, #e7d9ff); }
#stage { position: relative; width: 1600px; height: 900px; transform-origin: center center; overflow: hidden; flex: none; --dx: 0px; --dy: 0px; }
#bg { position: absolute; inset: 0; background: url("../assets/img/bg.webp") center/cover; }
.screen { position: absolute; inset: 0; display: none; }
.screen.active { display: block; }
.hidden { display: none !important; }

/* ---------- 文字与按钮 ---------- */
/* 标题：两个吵架的聊天气泡 */
.logo { font-family: var(--title); font-weight: normal; display: flex; align-items: flex-end; letter-spacing: 1px; line-height: 1; }
.logo .bb { position: relative; padding: .14em .4em .18em; border-radius: .38em; white-space: nowrap; }
.logo .b1 { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: .04em solid #fff;
  box-shadow: 0 .06em .22em rgba(60, 100, 180, .22); z-index: 1; }
.logo .b1 i { font-style: normal; background: var(--acc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.logo .b1::after { content: ""; position: absolute; left: .42em; bottom: -.2em; border-style: solid; border-width: .24em .22em 0 0; border-color: rgba(255, 255, 255, .92) transparent transparent transparent; }
.logo .b2 { background: var(--acc); color: #fff; border: .04em solid rgba(255, 255, 255, .95); margin-left: -.16em; transform: rotate(4deg) translateY(-.3em);
  box-shadow: 0 .08em .24em rgba(40, 120, 200, .3); z-index: 2; }
.logo .b2::after { content: ""; position: absolute; right: .46em; bottom: -.2em; border-style: solid; border-width: .24em 0 0 .22em; border-color: #4aa8ff transparent transparent transparent; }
.logo.big { font-size: 132px; position: absolute; left: 0; right: 0; top: calc(118px + var(--dy) / 2); justify-content: center; }
.logo.mid { font-size: 50px; }
.logo.tiny { font-size: 24px; }
.logo.tiny .b2 { transform: rotate(4deg) translateY(-.22em); }
.subtitle .msg { display: inline-flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 2px solid #fff; border-radius: 18px; padding: 8px 22px; box-shadow: 0 4px 14px rgba(70, 90, 170, .14); text-shadow: none; }
.subtitle .msg b { font-size: .62em; color: #fff; background: var(--acc); border-radius: 8px; padding: 2px 8px; }
.subtitle { position: absolute; top: calc(306px + var(--dy) / 2); left: 0; right: 0; text-align: center; font-size: 28px; font-weight: 700; color: #4a5a90; }
/* 按钮：糖果玻璃（半透明磨砂 + 薄荷 → 天蓝），圆角方形 */
.btn { font-family: var(--title); font-size: 30px; padding: 12px 34px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .92); cursor: pointer;
  background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--acc-ink); box-shadow: 0 6px 18px rgba(80, 100, 180, .18);
  transition: transform .12s, filter .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 9px 22px rgba(80, 100, 180, .24); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 8px rgba(80, 100, 180, .2); }
.btn.primary { background: var(--acc); color: #fff; border-color: rgba(255, 255, 255, .95); text-shadow: 0 1px 0 rgba(20, 90, 140, .28); }
.btn.small { font-size: 22px; padding: 8px 22px; }
.btn:disabled { filter: grayscale(.8) opacity(.55); cursor: default; transform: none; }
.icon { width: 46px; height: 46px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .92); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 20px; color: var(--acc-ink);
  cursor: pointer; font-weight: 700; box-shadow: 0 3px 10px rgba(70, 50, 140, .18); }
.icon.off { opacity: .45; }
.icon svg { display: block; margin: 0 auto; }
.icon.on { background: var(--acc); color: #fff; }
#btn-full { position: absolute; top: 24px; right: 28px; z-index: 5; height: 54px; padding: 0 22px; display: flex; align-items: center; gap: 8px; font-size: 22px; }
#btn-full svg { margin: 0; }
.icon.pill { width: auto; min-width: 46px; padding: 0 14px; border-radius: 14px; font-family: var(--title); font-size: 19px; font-weight: normal; }

/* ---------- 标题页 ---------- */
/* 首页封面：背景 + 12 位 AI娘合成的一张图。按舞台像素 1:1 居中：16:9 正好是中间的安全区，更宽 / 更高的屏多露一点背景 */
#scr-title { background: url("../assets/img/title_cover_land.webp") center / 2133px 1200px no-repeat; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.title-btns { position: absolute; bottom: calc(34px + var(--dy) / 2); left: 0; right: 0; display: flex; justify-content: center; gap: 28px; }

/* ---------- 选人 ---------- */
.sel-head { position: absolute; left: 50px; right: 50px; top: calc(28px + var(--dy) / 4); display: flex; align-items: center; justify-content: space-between; }
.mode-switch { display: flex; gap: 6px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 5px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .92); }
.mode { font-family: var(--title); font-size: 24px; border: 0; padding: 8px 20px; border-radius: 14px; background: transparent; color: var(--acc-ink); cursor: pointer; }
.mode.on { background: var(--acc); color: #fff; }
.sel-body { position: absolute; left: 40px; right: 40px; top: calc(130px + var(--dy) / 4); bottom: calc(30px + var(--dy) / 4); display: flex; gap: 26px; }
#sel-grid { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 12px; }   /* 两行拉满，和右边详情卡上下对齐 */   /* 11 人：每行 6 张，两行放下 */
.pick { position: relative; border-radius: 18px; overflow: hidden; cursor: pointer; border: 4px solid #fff;
  background: linear-gradient(160deg, var(--l), #fff 70%); box-shadow: 0 6px 16px rgba(70, 50, 140, .16); transition: transform .15s; }
.pick:hover { transform: translateY(-4px); }
.pick.on { border-color: var(--c); box-shadow: 0 0 0 4px var(--c), 0 10px 22px rgba(70, 50, 140, .25); }
.pick img { position: absolute; left: 50%; top: 24px; bottom: 44px; height: calc(100% - 68px); width: auto; max-width: none; transform: translateX(-50%); }   /* 按卡片高度铺满：头顶贴着标签行，不留空白；左右居中、两边略裁 */   /* 卡片拉高后立绘略放大、贴着名字条往上放（两边各裁约一成，多是空白） */   /* 立绘按卡片宽度完整显示（原来宽 214 裁掉两边） */
.pick .pn { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 4px; background: var(--c); color: #fff; font-family: var(--title); font-size: 25px; text-align: center; white-space: nowrap; }
.pick .pn.long { font-size: 19px; padding: 11px 2px; }
#sel-detail { width: 520px; border-radius: 26px; background: rgba(255, 255, 255, .86); border: 4px solid #fff; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(70, 50, 140, .2); }



/* 按钮固定在面板底部，技能说明太长时在中间滚动 */


.sd-name { font-family: var(--title); font-size: 40px; color: var(--c, #5a4aa8); }
.sd-title { font-size: 18px; color: var(--ink2); font-weight: 700; }
.sd-bio { font-size: 14px; line-height: 1.45; color: var(--ink2); font-weight: 700; }
.sd-hp { font-size: 22px; color: #ff4f70; font-weight: 800; }
#sd-skills { display: flex; flex-direction: column; gap: 8px; }
.sd-skill { background: var(--l, #f3f0ff); border-radius: 14px; padding: 10px 12px; }
.sd-skill em { white-space: nowrap; font-style: normal; font-size: 14px; font-weight: 800; color: #fff; background: var(--c); border-radius: 8px; padding: 1px 8px; margin-left: 4px; vertical-align: 3px; }
.sd-skill b { font-family: var(--title); font-size: 22px; color: var(--c); }
.sd-skill p { margin: 3px 0 0; font-size: 15px; line-height: 1.42; font-weight: 700; }
#btn-go { margin-top: 8px; }

/* ---------- 牌桌 ---------- */
#topbar { position: absolute; left: 24px; right: 24px; top: 12px; height: 50px; display: flex; align-items: center; justify-content: space-between; }
#info { font-size: 20px; font-weight: 700; color: #5a4aa8; background: rgba(255, 255, 255, .8); padding: 6px 18px; border-radius: 20px; }
.tb-btns { display: flex; gap: 10px; }
#seats { position: absolute; inset: 0; pointer-events: none; }
.hero { position: absolute; width: 214px; height: 300px; border-radius: 20px; border: 5px solid #fff; overflow: hidden; pointer-events: auto;
  background: linear-gradient(165deg, var(--l), #ffffff 75%); box-shadow: 0 8px 20px rgba(70, 50, 140, .22); transition: box-shadow .2s, filter .3s; }
.hero .por { position: absolute; left: 50%; top: 6px; width: 250px; transform: translateX(-50%); transition: transform .12s; }
.hero .por img { width: 250px; display: block; }
.hero .plate { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px 6px; background: linear-gradient(transparent, var(--c) 30%); color: #fff; text-align: center; }
.hero .plate b { font-family: var(--title); font-size: 26px; display: block; line-height: 1.1; }
.hero .plate small { font-size: 13px; opacity: .92; }
.hero .hp { position: absolute; left: 8px; top: 8px; display: flex; gap: 2px; }
.heart { width: 24px; height: 22px; }
.heart path { fill: #ff4f70; stroke: #fff; stroke-width: 2.4; }
.heart.empty path { fill: #c9c4d8; }
.hero .cnt { position: absolute; right: 8px; top: 8px; min-width: 40px; height: 34px; padding: 0 8px; border-radius: 10px; background: #fff; color: var(--ink);
  font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.hero .cnt i { display: inline-block; width: 13px; height: 18px; border-radius: 3px; background: linear-gradient(135deg, #8b6cf0, #4fb3e8); }
.hero .side { position: absolute; left: 8px; top: 40px; font-family: var(--title); font-size: 18px; color: #fff; padding: 2px 14px;
  border-radius: 12px; background: #8b84b0; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); white-space: nowrap; z-index: 3; }
.hero .side:empty { display: none; }
.hero .side.ally { background: #34b37a; } .hero .side.foe { background: #e2525b; } .hero .side.mentor { background: #9b7bff; }
.hero .side.nat-cn, .hero .side.nat-us { box-shadow: 0 0 0 2px #fff; } .hero .side.ally.nat-cn, .hero .side.ally.nat-us { background: #34b37a; }
.hero .side.role-lord { background: linear-gradient(#ffcf5a, #ff8a3f); } .hero .side.role-loyal { background: #3f8fe8; }
.hero .side.role-rebel { background: #e2525b; } .hero .side.role-spy { background: #7a5cd6; } .hero .side.unknown { background: #a7a2c2; }
.hero .you { position: absolute; right: 8px; top: 48px; background: #ffcf3f; color: #fff; font-family: var(--title); font-size: 20px; width: 34px; height: 34px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.hero .stags { position: absolute; left: 6px; right: 6px; bottom: 64px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.hero .stags span { background: rgba(255, 255, 255, .94); color: var(--c); font-family: var(--title); font-size: 17px; padding: 1px 8px; border-radius: 10px; cursor: help; }
.hero .stags.many { gap: 3px; } .hero .stags.many span { font-size: 15px; padding: 0 6px; }   /* 技能多（4 个以上）时标签小一号 */
.hero .status { position: absolute; left: 8px; top: 74px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hero .status span { background: rgba(42, 36, 64, .82); color: #fff; font-size: 16px; font-weight: 800; padding: 2px 9px; border-radius: 9px; }
.hero .status .ban { background: #e53340; } .hero .status .dumb { background: #8b5cf6; }
.hero .status .eq { background: var(--equip); } .hero .status .boost { background: #ff7f3f; } .hero .status .bomb { background: #c62f3b; }
.hero .stag-old { position: absolute; right: 8px; bottom: 66px; background: rgba(255, 255, 255, .92); color: var(--c); font-family: var(--title); font-size: 18px;
  padding: 2px 10px; border-radius: 10px; cursor: help; }
.hero.turn { box-shadow: 0 0 0 5px var(--c), 0 0 34px var(--c); }
.hero.target { cursor: pointer; box-shadow: 0 0 0 6px #ffcf3f, 0 0 26px #ffb03f; }
/* 选目标的光圈：外圈静态，里面一层只动透明度（逐帧改阴影在平板上会占满主线程） */
.hero.target::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 0 6px #ff8a3f, inset 0 0 36px rgba(255, 138, 63, .75); opacity: 0; animation: fadepulse .8s ease-in-out infinite; will-change: opacity; }
@keyframes fadepulse { 50% { opacity: 1; } }
.hero.drop { animation: none; transform: scale(1.05); box-shadow: 0 0 0 6px #ffcf3f, 0 0 44px rgba(255, 190, 60, .95); }
.hero .tnum { position: absolute; right: 8px; top: 50px; width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: #fff; border: 3px solid #fff;
  font-family: var(--title); font-size: 24px; line-height: 34px; text-align: center; box-shadow: 0 3px 8px rgba(200, 100, 30, .35); z-index: 4; }
.hero .tnum:empty { display: none; }
.hero.out { filter: grayscale(1) brightness(1.05); }
.hero .stamp { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) rotate(-14deg); font-family: var(--title); font-size: 44px; color: #e53340;
  border: 6px double #e53340; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .7); white-space: nowrap; }
.hero .muted { position: absolute; left: 8px; top: 40px; background: #555a; color: #fff; font-size: 16px; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.hero.shake { animation: shake .45s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px) rotate(-2deg); } 40% { transform: translateX(10px) rotate(2deg); }
  60% { transform: translateX(-7px); } 80% { transform: translateX(5px); } }
.hero .flash { position: absolute; inset: 0; background: rgba(255, 60, 90, .45); opacity: 0; pointer-events: none; }

/* 说话气泡 */
.bubble { position: absolute; max-width: 300px; padding: 10px 16px; background: #fff; border: 3px solid var(--c); border-radius: 18px; font-size: 19px; font-weight: 700;
  line-height: 1.35; color: var(--ink); box-shadow: 0 6px 16px rgba(70, 50, 140, .2); z-index: 40; pointer-events: none; animation: pop .22s cubic-bezier(.3, 1.6, .5, 1); }
.bubble::after { content: ""; position: absolute; width: 16px; height: 16px; background: #fff; border: 3px solid var(--c); border-width: 0 3px 3px 0; }
.bubble.down::after { left: 30px; top: -10px; transform: rotate(-135deg); }
.bubble.up::after { left: 30px; bottom: -10px; transform: rotate(45deg); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 牌 */
.card { position: absolute; width: 150px; height: 212px; border-radius: 16px; background: #fff; border: 4px solid #fff; overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 12px rgba(60, 40, 120, .22); transition: transform .15s, left .25s, top .25s, box-shadow .15s; }
.card .cn { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: var(--basic); color: #fff; font-family: var(--title); font-size: 27px; line-height: 40px !important;
  text-align: center; line-height: 32px; letter-spacing: 1px; }
.card.trick .cn { background: var(--trick); }
.card.equip .cn { background: var(--equip); }
.card .cn { text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.card.long .cn { font-size: 22px; letter-spacing: 0; }
.card.big.long .cn { font-size: 28px; }
.card img { position: absolute; left: 8px; top: 44px; width: 126px; height: 112px; object-fit: cover; border-radius: 10px; }
.card .cd { position: absolute; left: 4px; right: 4px; bottom: 6px; height: 42px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.card .ct { position: absolute; right: 10px; top: 48px; font-size: 13px; background: rgba(255, 255, 255, .9); padding: 0 5px; border-radius: 6px; color: var(--ink2); font-weight: 700; }
.card.sel { transform: translateY(-34px) scale(1.04); box-shadow: 0 0 0 4px #ffcf3f, 0 12px 22px rgba(60, 40, 120, .3); }
.card.hov { transform: translateY(-20px) scale(1.04); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 14px 26px rgba(60, 40, 120, .32); }
.card.sel.hov { transform: translateY(-34px) scale(1.04); box-shadow: 0 0 0 4px #ffcf3f, 0 14px 26px rgba(60, 40, 120, .34); }
.card.can.hov { box-shadow: 0 0 0 4px rgba(255, 200, 60, .95), 0 14px 26px rgba(60, 40, 120, .32); }
.card.can { box-shadow: 0 0 0 3px rgba(255, 200, 60, .9), 0 4px 12px rgba(60, 40, 120, .22); }
.card.dim { filter: grayscale(.6) brightness(.92); }
.card.pick2 { box-shadow: 0 0 0 4px #ef4558, 0 6px 16px rgba(200, 30, 60, .3); transform: translateY(-22px); }
.card.big { width: 190px; height: 268px; border-radius: 18px; cursor: default; }
.card.big .cn { height: 48px; line-height: 48px !important; font-size: 33px; }
.card.big img { left: 10px; top: 54px; width: 162px; height: 146px; }
.card.big .cd { font-size: 19px; height: 54px; }
.card.big .ct { top: 58px; }
.cardback { position: absolute; width: 150px; height: 212px; border-radius: 14px; border: 4px solid #fff; background: linear-gradient(135deg, #8b6cf0, #4fb3e8);
  box-shadow: 0 4px 12px rgba(60, 40, 120, .22); }
.cardback::after { content: "✦"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 44px; }

#hand { position: absolute; left: calc(270px + var(--dx)); top: calc(668px + var(--dy)); width: 900px; height: 232px; }
#hand .card { touch-action: none; }
#hand .card.dragging { opacity: .25; }
.card .kn { display: none; position: absolute; left: 6px; top: 46px; width: 26px; height: 26px; border-radius: 50%; background: rgba(42, 36, 64, .7); color: #fff;
  font-size: 15px; font-weight: 800; line-height: 26px; text-align: center; }
@media (hover: hover) and (pointer: fine) { #hand.keys .card .kn:not(:empty) { display: block; } }
.card.ghost { left: 0; top: 0; pointer-events: none; z-index: 70; transition: none; opacity: .96; box-shadow: 0 20px 40px rgba(60, 40, 120, .38); }
.card.ghost.armed { box-shadow: 0 0 0 5px #ffcf3f, 0 0 34px rgba(255, 190, 60, .85), 0 20px 40px rgba(60, 40, 120, .38); }
#table::after { content: ""; position: absolute; inset: 14px 60px 24px; border: 4px dashed transparent; border-radius: 30px; display: flex; align-items: center; justify-content: center;
  font-family: var(--title); font-size: 42px; color: transparent; transition: border-color .15s, background .15s, color .15s; }
#scr-game.dropping #table::after { border-color: rgba(255, 255, 255, .9); background: rgba(255, 210, 90, .14); color: #fff; text-shadow: 0 2px 10px rgba(90, 60, 160, .55); }
#scr-game.drop-any #table::after { content: "松手出牌"; }
#scr-game.drop-one #table::after { content: "拖到对手身上"; }
#ctip { position: absolute; z-index: 32; min-width: 230px; max-width: 460px; background: rgba(255, 255, 255, .97); border: 3px solid #8fd3ff; border-radius: 18px;
  padding: 10px 16px; box-shadow: 0 10px 26px rgba(70, 50, 140, .28); pointer-events: none; font-size: 18px; line-height: 1.45; color: var(--ink); font-weight: 700; }
#ctip .tt b { font-family: var(--title); font-weight: normal; color: #e0632a; }
#ctip .tno { margin-top: 4px; color: #e2525b; font-weight: 800; font-size: 16px; }
#ctip .tgo { margin-top: 8px; display: flex; align-items: center; gap: 10px; font-weight: 800; color: #5a4aa8; font-size: 16px; }
#ctip .tgo .btn { pointer-events: auto; font-size: 22px; padding: 6px 24px; }
#skillbox kbd { margin-left: 6px; vertical-align: 3px; }
#hint small { font-size: 14px; color: var(--ink2); }
/* 手机 / 平板：不显示键盘提示 */
@media (hover: none), (pointer: coarse) { kbd, .kb, .hero .tnum { display: none !important; } }
kbd { font-family: var(--sans); font-size: 13px; font-weight: 800; background: #eef0ff; border: 2px solid #d9d4f5; border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; color: #5a4aa8; }
#table { position: absolute; left: calc(260px + var(--dx)); top: calc(390px + var(--dy) / 2); width: 900px; height: 260px; pointer-events: none; }
#pile { position: absolute; inset: 0; }
#pile .played { position: absolute; transition: opacity .4s; }
#pile .played .who { position: absolute; left: 0; right: 0; top: -26px; text-align: center; font-weight: 800; font-size: 16px; color: #fff;
  text-shadow: 0 1px 3px rgba(40, 20, 90, .6); white-space: nowrap; }
#phase { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-size: 18px; font-weight: 800; color: #5a4aa8; text-shadow: 0 1px 0 #fff, 0 0 8px #fff; }

#chat { position: absolute; right: 22px; top: 76px; width: 370px; height: calc(516px + var(--dy)); border-radius: 22px; background: rgba(255, 255, 255, .78); border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(70, 50, 140, .16); overflow: hidden; display: flex; flex-direction: column; }
.chat-head { padding: 10px 14px; font-weight: 800; color: #5a4aa8; background: rgba(255, 255, 255, .8); border-bottom: 2px solid var(--line); font-size: 17px; }
#chat-list { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; gap: 7px; }
.msg { display: flex; gap: 8px; align-items: flex-start; animation: msgin .25s ease-out; }
.msg img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--c); flex: none; }
.msg .mb { background: #fff; border-radius: 4px 14px 14px 14px; padding: 5px 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); max-width: 290px; }
.msg .mw { font-size: 12px; font-weight: 800; color: var(--c); }
.msg .mt { font-size: 15px; line-height: 1.35; }
.msg .mt b { color: #e0632a; }
.msg.me { flex-direction: row-reverse; }
.msg.me .mb { border-radius: 14px 4px 14px 14px; background: #fff7d6; }
.sys { align-self: center; font-size: 13px; color: #8a83a8; background: rgba(255, 255, 255, .7); padding: 2px 10px; border-radius: 10px; animation: msgin .25s ease-out; }
.sys.bad { color: #e0435a; font-weight: 800; }
.sys.good { color: #2a9d63; font-weight: 800; }
.sys.prop { color: #6a5fb8; font-weight: 700; background: rgba(255, 255, 255, .82); }
/* 互动道具 */
#hinfo .hi-props { margin: 10px 0 4px; padding: 8px 8px 6px; border-radius: 16px; background: var(--l); }
#hinfo .hp-row { display: flex; justify-content: space-between; gap: 4px; }
#hinfo .hp-b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0 3px; border: 2px solid #fff; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .85); font-family: var(--title); font-size: 14px; color: var(--acc-ink); transition: transform .12s; }
#hinfo .hp-b img { width: 46px; height: 46px; object-fit: contain; }
#hinfo .hp-b:hover { transform: translateY(-3px) scale(1.06); }
#hinfo .hp-b:active { transform: scale(.94); }
#hinfo .hp-note { margin-top: 5px; font-size: 13px; font-weight: 700; color: #6b6585; text-align: center; line-height: 1.35; }
#stage.portrait #hinfo .hp-b { font-size: 18px; } #stage.portrait #hinfo .hp-b img { width: 62px; height: 62px; } #stage.portrait #hinfo .hp-note { font-size: 17px; }
#stage.tiny #hinfo .hp-b { font-size: 19px; } #stage.tiny #hinfo .hp-b img { width: 60px; height: 60px; } #stage.tiny #hinfo .hp-note { font-size: 18px; }
.prop-fly { position: absolute; width: 84px; height: 84px; object-fit: contain; pointer-events: none; z-index: 60; filter: drop-shadow(0 6px 8px rgba(60, 50, 120, .3)); }
#hinfo .hp-b.sig { position: relative; border-color: #ffc83c; background: linear-gradient(#fffaf0, #fff1cf); }
#hinfo .hp-b.sig::after { content: "专属"; position: absolute; top: -8px; right: -4px; font-size: 11px; color: #fff; background: #f0a030; border-radius: 8px; padding: 0 5px; line-height: 16px; }
/* 砸中效果的说明小字 */
.prop-stamp em, .prop-land em, .prop-splat2 em, .prop-rocket em { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-style: normal;
  font-family: var(--title); font-size: 17px; color: var(--acc-ink); background: rgba(255, 255, 255, .95); border: 2px solid #fff; border-radius: 12px; padding: 2px 10px;
  box-shadow: 0 3px 10px rgba(60, 50, 120, .2); }
.prop-stamp, .prop-land, .prop-splat2, .prop-rocket, .prop-win, .prop-seal { position: absolute; pointer-events: none; z-index: 59; }
/* 点踩 / 点赞：图标砰地盖上去 */
.prop-stamp { transform: translate(-50%, -50%) rotate(var(--r)); animation: stampin 1.9s ease-out forwards; }
.prop-stamp img { width: 130px; height: 130px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(60, 50, 120, .3)); }
.prop-stamp.bad em { color: #7a6a95; }
@keyframes stampin { 0% { transform: translate(-50%, -50%) rotate(var(--r)) scale(2.2); opacity: 0; } 12% { transform: translate(-50%, -50%) rotate(var(--r)) scale(.92); opacity: 1; }
  20% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -60%) rotate(var(--r)) scale(1); opacity: 0; } }
/* 报错弹窗：一个小系统窗口糊在卡上 */
.prop-win { width: 230px; transform: translate(-50%, -50%) rotate(var(--r)); background: #fff; border: 2px solid #c9cde0; border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(40, 40, 90, .35); font-size: 15px; color: #3d3f5c; animation: winpop 2.3s ease-out forwards; }
.prop-win .pw-t { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(#f1f3fa, #e3e7f3); padding: 3px 8px; font-size: 13px; font-weight: 800; color: #5b6080; }
.prop-win .pw-t i { font-style: normal; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; background: #ff6b6b; color: #fff; font-size: 11px; }
.prop-win .pw-b { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 800; line-height: 1.3; }
.prop-win .pw-b b { flex: none; width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 20px; color: #fff; background: #ffb020; border-radius: 50%; }
.prop-win .pw-f { text-align: right; padding: 0 10px 9px; }
.prop-win .pw-f span { display: inline-block; font-size: 13px; font-weight: 800; color: #fff; background: #4aa8ff; border-radius: 6px; padding: 2px 14px; animation: winok 2.3s linear forwards; }
@keyframes winpop { 0% { transform: translate(-50%, -50%) rotate(var(--r)) scale(.3); opacity: 0; } 10% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1.08); opacity: 1; }
  18% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); } 78% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); opacity: 1; }
  84% { transform: translate(-50%, -50%) rotate(var(--r)) scale(.96); } 100% { transform: translate(-50%, -50%) rotate(var(--r)) scale(.6); opacity: 0; } }
@keyframes winok { 0%, 76% { filter: none; } 80% { filter: brightness(.8); } 100% { filter: brightness(.8); } }
/* Claude 封号章：红色印章 */
.prop-seal { transform: translate(-50%, -50%) rotate(var(--r)); animation: sealin 2s ease-out forwards; }
.prop-seal b { display: block; font-family: var(--title); font-weight: normal; font-size: 54px; letter-spacing: 6px; color: #e03a3a; padding: 6px 16px 4px 22px; border: 6px double #e03a3a;
  border-radius: 12px; background: rgba(255, 255, 255, .55); text-shadow: 0 0 1px #e03a3a; mix-blend-mode: multiply; }
@keyframes sealin { 0% { transform: translate(-50%, -50%) rotate(var(--r)) scale(2.6); opacity: 0; } 10% { transform: translate(-50%, -50%) rotate(var(--r)) scale(.9); opacity: 1; }
  18% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); } 85% { opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); opacity: 0; } }
/* 糊脸 / 蘑菇云 / 长卷轴 */
.prop-splat2 { transform: translate(-50%, -50%) rotate(var(--r)); animation: splat 2.6s ease-out forwards; }
.prop-splat2 img { width: 200px; height: 200px; object-fit: contain; }
.prop-splat2.nuke { animation: mushroom 2.6s ease-out forwards; } .prop-splat2.nuke img { width: 230px; height: 230px; }
.prop-splat2.scroll img { width: 240px; height: 240px; }
@keyframes splat { 0% { transform: translate(-50%, -50%) rotate(var(--r)) scale(.3); opacity: 0; } 8% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1.12, .9); opacity: 1; }
  16% { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); } 70% { transform: translate(-50%, -42%) rotate(var(--r)) scale(1); opacity: 1; } 100% { transform: translate(-50%, -30%) rotate(var(--r)) scale(1); opacity: 0; } }
@keyframes mushroom { 0% { transform: translate(-50%, -30%) scale(.2); opacity: 0; } 15% { transform: translate(-50%, -55%) scale(1.1); opacity: 1; } 25% { transform: translate(-50%, -55%) scale(1); }
  75% { transform: translate(-50%, -62%) scale(1.03); opacity: 1; } 100% { transform: translate(-50%, -75%) scale(1.08); opacity: 0; } }
/* 落地：大白饭、小鱼干、枕头、外卖、显卡、嘉年华 */
.prop-land { transform: translate(-50%, -50%); animation: propland 1.7s ease-out forwards; }
.prop-land img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(60, 50, 120, .3)); }
.prop-land i { position: absolute; top: 0; left: 50%; font-style: normal; font-size: 26px; color: #ff6b9a; animation: heartup 1.5s ease-out forwards; opacity: 0; }
.prop-land i.z { color: #8b7bd8; font-family: var(--title); font-size: 30px; }
.prop-land i:nth-of-type(2) { animation-delay: .25s; margin-left: -30px; } .prop-land i:nth-of-type(3) { animation-delay: .5s; margin-left: 22px; }
@keyframes propland { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 25% { transform: translate(-50%, -50%) scale(1); }
  75% { transform: translate(-50%, -62%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.9); opacity: 0; } }
@keyframes heartup { 0% { transform: translateY(0) scale(.5); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-70px) scale(1.2); opacity: 0; } }
/* Grok 的火箭：落到卡上再冲天 */
.prop-rocket { transform: translate(-50%, -50%); animation: rocketup 1.8s ease-in forwards; }
.prop-rocket img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255, 170, 60, .8)); }
@keyframes rocketup { 0% { transform: translate(-50%, -50%) scale(.5); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 45% { transform: translate(-50%, -55%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -360px) scale(.8); opacity: 0; } }
/* 送算力：卡片带电一闪 */
.hero.charged { animation: charged 1.3s ease-out; }
@keyframes charged { 0%, 100% { box-shadow: none; } 15%, 45%, 75% { box-shadow: 0 0 0 4px #fff, 0 0 26px 10px rgba(95, 216, 255, .9); } 30%, 60% { box-shadow: 0 0 0 3px #bff0ff, 0 0 12px 4px rgba(95, 216, 255, .5); } }
@keyframes msgin { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

#actions { position: absolute; right: 22px; top: calc(606px + var(--dy)); width: 370px; height: 272px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
#hint { min-height: 54px; font-size: 18px; font-weight: 700; color: #5a4aa8; background: rgba(255, 255, 255, .78); border-radius: 16px; padding: 8px 14px; line-height: 1.4; }
#btn-end { font-size: 34px; }
#btn-end.ready { box-shadow: 0 6px 18px rgba(80, 100, 180, .2), 0 0 0 6px rgba(94, 200, 230, .3); animation: endpulse 1.2s ease-in-out infinite; will-change: transform; }
#btn-end.ready, #skillbox .btn.sk-ready { backdrop-filter: none; -webkit-backdrop-filter: none; }   /* 底色本来就不透明，模糊看不见；按钮一直在动时还要每帧重算模糊，平板上白耗 GPU */
@keyframes endpulse { 50% { transform: scale(1.04); } }   /* 只动缩放，光圈是静态的 */
#skillbox { display: flex; flex-wrap: wrap; gap: 8px; }
#skillbox .btn { font-size: 22px; padding: 7px 16px; }
/* 现在能用的主动技能：渐变底 + 一呼一吸的光晕 + 扫光 + 闪星，一眼看出来 */
#skillbox .skw { position: relative; display: inline-flex; }
#skillbox .skw > .btn { position: relative; z-index: 1; }
#skillbox .skglow { display: none; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(255, 200, 60, .95), 0 0 30px 12px rgba(255, 186, 50, .7); opacity: .25; animation: glowbreath 1.6s ease-in-out infinite; will-change: opacity; }
#skillbox .skw.on .skglow { display: block; }
@keyframes glowbreath { 50% { opacity: 1; } }
#skillbox .btn.sk-ready { position: relative; overflow: hidden; color: #fff; background: var(--acc); border-color: #fff; text-shadow: 0 1px 0 rgba(20, 90, 140, .3);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 214, 90, .75), 0 0 14px 6px rgba(255, 196, 60, .45); }
#skillbox .btn.sk-ready::before { content: "✦"; display: inline-block; margin-right: 5px; color: #fff3a0; text-shadow: 0 0 6px #ffc83c, 0 0 2px #ffb020; animation: sktwinkle 1.6s ease-in-out infinite; will-change: transform, opacity; }
#skillbox .btn.sk-ready::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-130%);
  animation: skshine 2.4s ease-in-out infinite; will-change: transform; }
#skillbox .btn.sk-ready kbd { background: rgba(255, 255, 255, .9); color: var(--acc-ink); }
@keyframes skshine { 0%, 50% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes sktwinkle { 0%, 100% { transform: scale(.8) rotate(0); opacity: .75; } 50% { transform: scale(1.3) rotate(90deg); opacity: 1; } }
.hero .stags span.sk-ready { position: relative; background: var(--acc); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 206, 70, .85), 0 0 12px rgba(255, 190, 50, .7); }
.hero .stags span.sk-ready::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffc83c, 0 0 20px 5px rgba(255, 186, 50, .85); opacity: 0; animation: fadepulse 1.6s ease-in-out infinite; will-change: opacity; }
@media (prefers-reduced-motion: reduce) { #skillbox .skglow, #skillbox .btn.sk-ready::before, #skillbox .btn.sk-ready::after, .hero .stags span.sk-ready::after, .hero.target::after, #btn-end.ready { animation: none; } #skillbox .skglow { opacity: .6; } }
#skillbox .passive { font-size: 16px; font-weight: 800; color: #6b6585; background: rgba(255, 255, 255, .78); border-radius: 14px; padding: 8px 12px; }

#prompt { position: absolute; left: calc(270px + var(--dx)); top: calc(572px + var(--dy)); width: 900px; height: 74px; border-radius: 22px; background: rgba(255, 255, 255, .95); border: 3px solid #8fd3ff;
  box-shadow: 0 8px 24px rgba(70, 50, 140, .25); display: flex; align-items: center; gap: 12px; padding: 0 14px; z-index: 30; }
#prompt-text { flex: 1; font-size: 20px; font-weight: 800; }
#prompt-btns { display: flex; gap: 10px; }
#prompt-btns .btn { font-size: 22px; padding: 6px 18px; }
#prompt-timer { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(#4aa8ff var(--p, 100%), #e6eefb 0); display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #e0632a; }

#fx { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.float { position: absolute; font-family: var(--title); font-size: 54px; color: #ff4f70; text-shadow: 0 3px 0 #fff, 0 0 10px #fff; animation: rise 1s ease-out forwards; }
.float.heal { color: #2fbf71; }
@keyframes rise { from { transform: translateY(0) scale(.6); opacity: 0; } 20% { transform: translateY(-10px) scale(1.2); opacity: 1; } to { transform: translateY(-80px) scale(1); opacity: 0; } }
.banner { position: absolute; left: 0; right: 0; top: calc(330px + var(--dy) / 2); text-align: center; font-family: var(--title); font-size: 120px; z-index: 60;
  background: linear-gradient(#fff3a0, #ff7a3d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 12px 20px rgba(90, 60, 160, .35));
  animation: bannerin .9s ease-out forwards; }
@keyframes bannerin { 0% { transform: scale(2.2) rotate(-6deg); opacity: 0; } 18% { transform: scale(.95) rotate(-4deg); opacity: 1; } 28% { transform: scale(1) rotate(-4deg); }
  80% { opacity: 1; } 100% { transform: scale(1.04) rotate(-4deg); opacity: 0; } }
.cutin { position: absolute; left: -10%; right: -10%; top: calc(300px + var(--dy) / 2); height: 300px; transform: rotate(-6deg); z-index: 55; overflow: visible;
  background: linear-gradient(90deg, transparent, var(--l) 12%, #fff 50%, var(--l) 88%, transparent); border-top: 10px solid var(--c); border-bottom: 10px solid var(--c);
  animation: cutin 1.25s ease-in-out forwards; }
.cutin img { position: absolute; right: 22%; top: -120px; width: 420px; transform: rotate(6deg); animation: cutimg 1.25s ease-out forwards; }
.cutin .ct1 { position: absolute; left: 22%; top: 70px; font-family: var(--title); font-size: 110px; color: var(--c); transform: rotate(6deg);
  text-shadow: 0 5px 0 #fff, 0 -3px 0 #fff, 4px 0 0 #fff, -4px 0 0 #fff; }
.cutin .ct2 { position: absolute; left: 22%; top: 30px; font-size: 26px; font-weight: 800; color: #fff; background: var(--c); padding: 2px 14px; border-radius: 14px; transform: rotate(6deg); }
@keyframes cutin { 0% { transform: rotate(-6deg) translateX(-110%); } 18% { transform: rotate(-6deg) translateX(0); } 82% { transform: rotate(-6deg) translateX(0); opacity: 1; }
  100% { transform: rotate(-6deg) translateX(110%); opacity: 0; } }
@keyframes cutimg { from { transform: rotate(6deg) translateX(200px); } 25% { transform: rotate(6deg) translateX(0); } to { transform: rotate(6deg) translateX(-40px); } }
.arrow { position: absolute; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 140, 60, 0), #ff8a3f 40%, #ff4f70); transform-origin: 0 50%;
  animation: arrow .55s ease-out forwards; z-index: 45; }
@keyframes arrow { from { clip-path: inset(0 100% 0 0); opacity: 1; } 60% { clip-path: inset(0 0 0 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 0; } }
.spark { position: absolute; width: 14px; height: 14px; border-radius: 50%; animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

#toast { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); background: rgba(42, 36, 64, .88); color: #fff; padding: 10px 22px; border-radius: 20px;
  font-size: 20px; font-weight: 700; opacity: 0; transition: opacity .25s; z-index: 90; pointer-events: none; }
#toast.on { opacity: 1; }
#modal { position: absolute; inset: 0; background: rgba(60, 40, 120, .35); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-box { width: 1180px; max-height: calc(800px + var(--dy)); overflow: auto; background: #fff; border-radius: 26px; padding: 28px 34px; border: 5px solid #fff;
  box-shadow: 0 20px 50px rgba(40, 20, 90, .35); display: flex; flex-direction: column; gap: 16px; }
.modal-box h2 { font-family: var(--title); font-size: 44px; margin: 0; color: #5a4aa8; }
.modal-box h3 { margin: 6px 0 0; color: #3f8fd8; }
.modal-box p, .modal-box li { font-size: 18px; line-height: 1.6; }
/* 设置面板 */
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 44px; }
.set-col h3 { margin: 4px 0 6px; }
.set-row { display: flex; align-items: center; gap: 14px; min-height: 54px; }
.set-row label { width: 128px; flex: none; font-size: 20px; font-weight: 800; color: var(--ink); }
.set-row input[type="range"] { flex: 1; accent-color: #4aa8ff; height: 28px; cursor: pointer; }
.set-row .val { width: 40px; text-align: right; font-size: 18px; font-weight: 800; color: #5a4aa8; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: #eef3ff; }
.seg button { font-family: var(--title); font-size: 19px; border: 0; background: transparent; color: var(--acc-ink); padding: 6px 16px; border-radius: 12px; cursor: pointer; }
.seg button.on { background: var(--acc); color: #fff; box-shadow: 0 3px 8px rgba(60, 140, 220, .3); }
.modal-box p.set-note { font-size: 15px; line-height: 1.5; color: var(--ink2); margin: -4px 0 6px; }
.set-foot { display: flex; gap: 14px; justify-content: flex-end; }
.rules-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.rc { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 14px; }
.rc img { width: 120px; border-radius: 12px; }
.rc b { font-family: var(--title); font-size: 22px; }
.pickrow { display: flex; gap: 20px; justify-content: center; padding: 16px; }
.pickrow .card { position: relative; }
.result { display: flex; gap: 30px; align-items: center; }
.result img { width: 360px; }
.result .rr { flex: 1; }
.result .rt { font-family: var(--title); font-size: 64px; color: #ff7a3d; }
.rank { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.rank div { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.rank img { width: 46px; border-radius: 50%; }

/* ================= 竖屏（手机竖着拿）：舞台宽 760 起、高 1300 起，--dy = 高 - 1300，--w = 舞台宽 ================= */
/* 标题：整组内容竖直居中 */
#stage.portrait .logo.big { font-size: 102px; top: calc(118px + var(--dy) / 2); }
#stage.portrait .subtitle { top: calc(1300px + var(--dy) / 2); font-size: 32px; }   /* 挪到按钮下面，别压住上层云台人物的头 */
#stage.portrait #scr-title { background-image: url("../assets/img/title_cover_port.webp"); background-size: 1013px 1800px; }
#stage.portrait .title-btns { top: calc(1088px + var(--dy) / 2); bottom: auto; left: 50%; right: auto; width: 680px; transform: translateX(-50%); flex-wrap: wrap; gap: 22px; }
#stage.portrait .title-btns .btn { width: 320px; padding: 16px 0; font-size: 34px; }
/* 选人：上面 5 列小卡，下面详情 */
#stage.portrait .sel-head { left: 16px; right: 16px; top: calc(24px + var(--dy) / 10); flex-direction: column; gap: 14px; }
#stage.portrait .sel-head .logo.mid { font-size: 52px; }
#stage.portrait .mode { font-size: 22px; padding: 8px 18px; }
#stage.portrait .sel-body { left: 16px; right: 16px; top: calc(236px + var(--dy) / 10); bottom: calc(20px + var(--dy) / 10); flex-direction: column; gap: 16px; }
#stage.portrait #sel-grid { flex: none; gap: 10px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; }
#stage.portrait .pick { aspect-ratio: 1 / 1.95; }
#stage.portrait .pick { height: auto; aspect-ratio: 1 / 1.95; }   /* 卡片高度跟着立绘比例走，下面不留白 */
#stage.portrait .pick img { left: 0; right: 0; width: 100%; top: 26px; height: auto; bottom: auto; object-fit: initial; transform: none; }   /* 竖屏用半身图 */   /* 窄卡片按宽度完整缩放，不再只露一张脸 */
#stage.portrait .pick .pn { font-size: 18px; padding: 6px 2px; }
#stage.portrait .pick .pn.long { font-size: 13px; padding: 8px 1px; }
#stage.portrait #sel-detail { width: auto; flex: 1; }



#stage.portrait .sd-name { font-size: 52px; }
#stage.portrait .sd-title { font-size: 22px; }
#stage.portrait .sd-bio { font-size: 17px; }
#stage.portrait .sd-hp { font-size: 26px; }
#stage.portrait .sd-skill b { font-size: 28px; }
#stage.portrait .sd-skill em { font-size: 16px; }
#stage.portrait .sd-skill p { font-size: 19px; }
#stage.portrait .modal-box p, #stage.portrait .modal-box li { font-size: 21px; }
/* 对局：位置由 ui.js relayout() 算好写进变量（--hand-y 等），这里只管用 */
#stage.portrait #topbar { left: 14px; right: 14px; top: 10px; height: 56px; }
#stage.portrait #topbar .logo { display: none; }
#stage.portrait #info { font-size: 22px; padding: 6px 16px; }
#stage.portrait .tb-btns { gap: 8px; }
#stage.portrait .tb-btns .icon { width: 52px; height: 52px; font-size: 22px; }
#stage.portrait .tb-btns .icon.pill { width: auto; padding: 0 14px; font-size: 21px; }
#stage.portrait #table { left: 0; width: var(--w); top: var(--table-y); height: 270px; }
#stage.portrait #chat { left: 16px; right: 16px; width: auto; top: var(--chat-y); height: var(--chat-h); }
#stage.portrait .chat-head { font-size: 20px; }
#stage.portrait .msg img { width: 50px; height: 50px; }
#stage.portrait .msg .mb { max-width: 590px; padding: 6px 12px; }
#stage.portrait .msg .mw { font-size: 15px; }
#stage.portrait .msg .mt { font-size: 21px; }
#stage.portrait .sys { font-size: 17px; }
#stage.portrait #actions { left: var(--act-x); right: 16px; width: auto; top: var(--me-y); height: var(--act-h); gap: 10px; }
#stage.portrait #hint { font-size: 23px; line-height: 1.35; }
#stage.portrait #hint small { font-size: 17px; }
#stage.portrait #skillbox .btn { font-size: 25px; }
#stage.portrait #btn-end { font-size: 32px; padding: 10px 0; }
#stage.portrait #hand { left: 16px; top: var(--hand-y); width: calc((var(--w) - 32px) / var(--hand-s)); height: 220px; scale: var(--hand-s); transform-origin: 0 0; }
#stage.portrait #prompt { left: 16px; width: calc(var(--w) - 32px); top: var(--prompt-y); }
#stage.portrait .bubble { font-size: 24px; max-width: 400px; }
#stage.portrait #prompt-text { font-size: 24px; }
#stage.portrait #prompt-btns .btn { font-size: 24px; }
#stage.portrait #ctip { font-size: 25px; max-width: 640px; }
#stage.portrait #toast { font-size: 27px; max-width: calc(var(--w) - 60px); text-align: center; }
#stage.portrait .banner { top: calc(var(--table-y) + 60px); font-size: 100px; }
#stage.portrait .cutin { top: calc(var(--table-y) + 20px); height: 260px; }
#stage.portrait .cutin img { width: 330px; right: 3%; top: -90px; }
#stage.portrait .cutin .ct1 { left: 6%; top: 84px; font-size: 80px; }
#stage.portrait .cutin .ct2 { left: 6%; }
/* 弹窗 */
#stage.portrait .modal-box { width: calc(var(--w) - 36px); max-height: calc(100% - 60px); padding: 24px 22px; }
#stage.portrait .settings { grid-template-columns: 1fr; }
#stage.portrait .rules-cards { grid-template-columns: repeat(3, 1fr); }
#stage.portrait .result { flex-direction: column; gap: 10px; }
#stage.portrait .result img { width: 260px; }
#stage.portrait .result .rt { font-size: 52px; }
#stage.portrait .pickrow { flex-wrap: wrap; }
#stage.portrait #btn-full { top: 20px; right: 20px; }

/* v11 炸弹猫：宕机牌、牌堆提示、剧透 / 插队窗口 */
.card.bomb .cn { background: #d8364a; }
.card.bomb { box-shadow: 0 0 0 3px #ff6b6b, 0 6px 18px rgba(216, 54, 74, .35); }
#info small { color: #d8364a; font-size: .8em; margin-left: 2px; }
#info #bombs { color: #d8364a; }
#known { position: absolute; left: 50%; top: -92px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; white-space: nowrap;
  background: rgba(255, 255, 255, .92); border-radius: 16px; padding: 5px 12px; font-size: 17px; font-weight: 700; color: #5a4aa8; box-shadow: 0 3px 10px rgba(90, 74, 168, .18); z-index: 60; pointer-events: none; }
#known.hidden { display: none; }
#known .kt { color: #8a7fc0; font-size: 15px; }
#known .kc { background: #efeaff; border-radius: 10px; padding: 2px 8px; }
#known .kc.boom { background: #d8364a; color: #fff; }
#known .kc.unk { color: #aaa; }
.peekrow .pk { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; border-radius: 16px; padding: 6px; transition: transform .15s; }
.peekrow .pk .card { cursor: pointer; }
.peekrow .pk.set { transform: none; }
.peekrow .pk.set .pkn { background: #8b6cf0; color: #fff; }
.peekrow .pk.boom .pkn { background: #d8364a; color: #fff; }
.peekrow .pkn { font-size: 18px; font-weight: 800; color: #5a4aa8; background: #efeaff; border-radius: 12px; padding: 3px 12px; }
.pknote { text-align: center; color: #d8364a; font-weight: 700; font-size: 18px; margin: 4px 0 0; }
.pkgo { display: flex; gap: 14px; justify-content: center; margin-top: 12px; }
#stage.portrait #known { font-size: 20px; top: auto; bottom: 20px; }

/* v16 技能好懂一点：角色详情卡 */
#hinfo { position: absolute; z-index: 40; width: 400px; max-height: 620px; overflow-y: auto; scrollbar-width: thin; background: #fff; border: 4px solid var(--c); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(70, 50, 140, .25); padding: 14px 16px 12px; color: #3d3566; }
#hinfo.hidden { display: none; }
#hinfo .hi-head { display: flex; align-items: center; gap: 12px; }
#hinfo .hi-head img { width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--c); background: var(--l); }
#hinfo .hi-nm { flex: 1; display: flex; flex-direction: column; }
#hinfo .hi-nm b { font-family: var(--title); font-weight: normal; font-size: 30px; color: var(--c); line-height: 1.1; }
#hinfo .hi-nm small { font-size: 16px; font-weight: 700; color: #8a82b0; }
#hinfo .hi-x { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--l); color: var(--c); font-size: 20px; font-weight: 900; cursor: pointer; }
#hinfo .hi-stat { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
#hinfo .hi-stat span { background: var(--l); border-radius: 10px; padding: 2px 10px; font-size: 16px; font-weight: 800; }
#hinfo .hi-st { font-size: 16px; font-weight: 800; color: #e2525b; margin-bottom: 6px; }
#hinfo .hi-rel { font-size: 15px; font-weight: 700; line-height: 1.4; border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; background: #f4f1ff; }
#hinfo .hi-rel b { margin-right: 6px; color: #fff; border-radius: 8px; padding: 0 8px; font-size: 14px; }
#hinfo .hi-rel.ally b { background: var(--good); } #hinfo .hi-rel.friend b { background: #6c9cf0; } #hinfo .hi-rel.rival b { background: var(--bad); } #hinfo .hi-rel.mentor b { background: #9b7bff; }
#hinfo .hi-skills { display: flex; flex-direction: column; gap: 8px; }
#hinfo .hi-sk { background: var(--l); border-radius: 14px; padding: 8px 12px; border: 3px solid transparent; }
#hinfo .hi-sk.focus { border-color: var(--c); }
#hinfo .hi-sk1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
#hinfo .hi-sk1 b { font-family: var(--title); font-weight: normal; font-size: 23px; color: var(--c); }
#hinfo .hi-sk1 em { font-style: normal; font-size: 13px; font-weight: 800; color: #fff; border-radius: 8px; padding: 1px 7px; background: #9a93bf; }
#hinfo .hi-sk1 em.active { background: var(--c); }
#hinfo .hi-sk1 i { font-style: normal; font-size: 13px; font-weight: 800; color: var(--c); background: #fff; border-radius: 8px; padding: 1px 7px; }
#hinfo .hi-short { font-size: 17px; font-weight: 800; margin-top: 2px; }
#hinfo .hi-desc { font-size: 14px; font-weight: 600; line-height: 1.45; color: #6b6585; margin-top: 2px; }
#stage.portrait #hinfo { width: 560px; max-height: 1000px; }
#stage.portrait #hinfo .hi-short { font-size: 23px; } #stage.portrait #hinfo .hi-desc { font-size: 19px; }
#stage.portrait #hinfo .hi-sk1 b { font-size: 28px; } #stage.portrait #hinfo .hi-stat span { font-size: 20px; }
/* 角色卡上：主动技能实心、被动技能描边 */
.hero .stags span.passive { background: rgba(255, 255, 255, .86); box-shadow: inset 0 0 0 2px var(--c); }
.hero { cursor: pointer; }
/* 自己的技能栏：被动技能标签 */
#skillbox .pchip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--title); font-size: 19px; color: #6b6585; background: rgba(255, 255, 255, .85);
  border: 2px dashed #b9b2dc; border-radius: 14px; padding: 4px 12px; cursor: help; }
#skillbox .pchip small { font-family: var(--body, inherit); font-size: 13px; font-weight: 800; color: #8b6cf0; }
#skillbox .pchip.off { opacity: .55; }
#stage.portrait #skillbox .pchip { font-size: 23px; }
/* 技能触发：名字 + 一句话 */
.skpop { position: absolute; z-index: 45; transform: translate(-50%, 0); white-space: nowrap; background: #fff; border: 3px solid var(--c); border-radius: 16px; padding: 4px 14px;
  display: flex; flex-direction: column; align-items: center; animation: skpop 2s ease-out forwards; pointer-events: none; }
.skpop b { font-family: var(--title); font-weight: normal; font-size: 26px; color: var(--c); line-height: 1.2; }
.skpop span { font-size: 16px; font-weight: 800; color: #4a4270; }
@keyframes skpop { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.9); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
.cutin .ct3 { position: absolute; left: 22%; top: 200px; font-size: 30px; font-weight: 800; color: #4a4270; background: #fff; border: 3px solid var(--c); padding: 2px 16px; border-radius: 14px; transform: rotate(6deg); }
/* 手牌挤在一起：牌名靠左，露出来的一截也认得出 */
#hand.tight .card .cn { text-align: left; padding-left: 10px; }
#hand.tight .card .cn::first-letter { font-size: 1.05em; }
/* 选角：技能先看一句话，点开看完整说明 */
.sd-skill { cursor: pointer; }
.sd-skill .sd-short { font-size: 17px; font-weight: 800; margin-top: 2px; color: #3d3566; }
.sd-skill p { display: none; }
.sd-skill.open p { display: block; }
.sd-skill .sd-more { font-size: 13px; font-weight: 800; color: var(--c); margin-left: 4px; }
.sd-skill.open .sd-more { display: none; }
#sd-bio { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
#sd-bio.open { display: block; }
#stage.portrait .sd-skill .sd-short { font-size: 22px; }

/* 操作区：提示太长就截断，给技能栏让位置 */
#hint { flex: 0 1 auto; min-height: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
#skillbox { flex: none; align-items: center; }
#btn-end { flex: none; margin-top: auto; }

/* 手机横屏（画面缩得很小）：详情卡、牌说明、技能提示放大 */
#stage.tiny #hinfo { width: 600px; max-height: 820px; }
#stage.tiny #hinfo .hi-nm b { font-size: 40px; } #stage.tiny #hinfo .hi-nm small { font-size: 22px; }
#stage.tiny #hinfo .hi-stat span { font-size: 24px; } #stage.tiny #hinfo .hi-rel { font-size: 22px; }
#stage.tiny #hinfo .hi-sk1 b { font-size: 34px; } #stage.tiny #hinfo .hi-sk1 em, #stage.tiny #hinfo .hi-sk1 i { font-size: 19px; }
#stage.tiny #hinfo .hi-short { font-size: 28px; } #stage.tiny #hinfo .hi-desc { font-size: 22px; }
#stage.tiny #ctip { font-size: 28px; max-width: 700px; }
#stage.tiny .skpop b { font-size: 38px; } #stage.tiny .skpop span { font-size: 24px; }
#stage.tiny #skillbox .pchip { font-size: 24px; }

/* v16b 选人界面：上面头像 + 基本信息，下面整宽技能列表，按钮在底 */
/* v32 选人详情：左边一整列放完整立绘（不放大裁切），右边名字 / 简介 / 技能，按钮横在最下面 */
#sel-detail { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 16px; align-items: start; row-gap: 8px; padding: 16px 18px 14px; }
.sd-top { display: contents; }
.sd-portrait { grid-column: 1; grid-row: 1; position: relative; width: 200px; aspect-ratio: 2 / 3; border-radius: 20px; overflow: hidden; background: var(--l); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(70, 50, 140, .15); }
.sd-alt { position: absolute; right: 6px; top: 6px; white-space: nowrap; font-family: var(--title); font-size: 15px; color: #fff; cursor: pointer;
  background: linear-gradient(#ffb36b, #f08a3c); border: 2px solid #fff; border-radius: 10px; padding: 2px 9px; box-shadow: 0 3px 10px rgba(200, 110, 40, .35); }
.sd-alt:hover { filter: brightness(1.06); }
.sd-alt.hidden { display: none; }
.sd-skin { top: auto; bottom: 6px; }   /* 换装按钮放左下，不和小DeepSeek 的套壳按钮挤 */
#stage.portrait .sd-alt { font-size: 18px; }
.msg .mw small { font-weight: 700; opacity: .7; }
.sd-portrait img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: 50% 0; }
.sd-head { grid-column: 2; grid-row: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sd-name { line-height: 1.05; }
.sd-hp span { letter-spacing: 1px; }
.sd-rels { display: flex; flex-wrap: wrap; gap: 5px; }
.sd-rels span { font-size: 14px; font-weight: 800; background: #f3f0ff; border-radius: 10px; padding: 2px 8px 2px 2px; cursor: help; }
.sd-rels b { color: #fff; border-radius: 8px; padding: 0 6px; margin-right: 4px; font-size: 13px; }
.sd-rels .ally b { background: var(--good); } .sd-rels .friend b { background: #6c9cf0; } .sd-rels .rival b { background: var(--bad); } .sd-rels .mentor b { background: #9b7bff; }
.sd-bio { -webkit-line-clamp: 3 !important; }
.sd-sk-head { grid-column: 1 / 3; grid-row: 2; font-family: var(--title); font-size: 22px; color: var(--c); margin-top: 2px; }
.sd-sk-head small { font-family: inherit; font-size: 14px; color: #9a93bf; margin-left: 6px; }
#sel-detail #sd-skills { grid-column: 1 / 3; grid-row: 3; align-self: stretch; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; gap: 6px; }
.sd-skill { padding: 7px 12px; }
.sd-skill b { font-size: 21px; }
.sd-btns { grid-column: 1 / 3; grid-row: 4; display: flex; gap: 10px; }
.sd-btns #btn-back { flex: 1; } .sd-btns #btn-go { flex: 2.2; }
/* 角色格：角上标心态、技能数 */
.pick .pbadge { position: absolute; left: 6px; top: 6px; right: 6px; display: flex; justify-content: space-between; pointer-events: none; }
.pick .pbadge span { white-space: nowrap; font-size: 14px; font-weight: 800; color: var(--c); background: rgba(255, 255, 255, .9); border-radius: 9px; padding: 1px 7px; }
.pick .pnat { display: none; position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); font-family: var(--title); font-size: 16px; color: #fff; border: 2px solid #fff; border-radius: 10px; padding: 0 10px; white-space: nowrap; pointer-events: none; }
.pick .pnat.cn { background: #ff5a5a; } .pick .pnat.us { background: #4a7dff; } #scr-select.nation-on .pick .pnat { display: block; }
#stage.portrait .pick .pnat { font-size: 18px; bottom: 58px; }
#stage.portrait .pick .pbadge span { font-size: 12px; padding: 0 5px; }
.mode-desc { position: absolute; right: 4px; top: 76px; font-size: 16px; font-weight: 800; color: #6b5fb0; background: rgba(255, 255, 255, .72); border-radius: 12px; padding: 3px 12px; white-space: nowrap; }
#stage.portrait .sd-portrait { width: 264px; }
#stage.portrait #sel-detail { grid-template-columns: 264px minmax(0, 1fr); }
#stage.portrait .sd-rels span { font-size: 18px; } #stage.portrait .sd-rels b { font-size: 16px; }
#stage.portrait .sd-sk-head { font-size: 28px; } #stage.portrait .sd-sk-head small { font-size: 18px; }
#stage.portrait .pick .pbadge span { font-size: 15px; }
#stage.portrait .mode-desc { position: static; font-size: 19px; white-space: normal; text-align: center; }

/* 技能一行：名字 + 主动/被动 + 一句话，点开看完整说明 */
.sd-skill .sd-row { display: flex; align-items: center; gap: 8px; }
.sd-skill .sd-row b { flex: none; font-size: 22px; }
.sd-skill .sd-row em { flex: none; margin-left: 0; background: #9a93bf; }
.sd-skill .sd-row em.active { background: var(--c); }
.sd-skill .sd-row .sd-short { flex: 1; min-width: 0; margin: 0; font-size: 16px; }
.sd-skill .sd-row i { flex: none; font-style: normal; color: var(--c); font-size: 14px; transition: transform .15s; }
.sd-skill.open .sd-row i { transform: rotate(180deg); }
.sd-skill p { margin-top: 4px; }
#stage.portrait .sd-skill .sd-row b { font-size: 26px; }
#stage.portrait .sd-skill .sd-row .sd-short { font-size: 20px; }

/* v17 玩法说明：整页，左边栏目、右边内容 */
#rules { position: absolute; inset: 0; z-index: 95; display: flex; background: linear-gradient(#eef3ff, #f6efff); }
#rules.hidden { display: none; }
#rules .ru-side { flex: none; width: 270px; padding: 28px 18px; display: flex; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, .7); border-right: 3px solid #fff; }
#rules .ru-logo { font-family: var(--title); font-size: 38px; color: #5a4aa8; margin: 0 6px 12px; }
#ru-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
#ru-nav button { text-align: left; font-family: var(--title); font-size: 22px; color: #6b6585; background: transparent; border: 0; border-radius: 14px; padding: 10px 16px; cursor: pointer; }
#ru-nav button:hover { background: rgba(139, 108, 240, .1); }
#ru-nav button.on { background: #fff; color: #5a4aa8; box-shadow: inset 4px 0 0 #8b6cf0, 0 2px 8px rgba(90, 74, 168, .12); }
#rules #ru-close kbd { font-size: 13px; margin-left: 6px; }
#ru-main { flex: 1; overflow-y: auto; padding: 30px 40px 40px; scrollbar-width: thin; }
#ru-main h2 { font-family: var(--title); font-weight: normal; font-size: 40px; color: #5a4aa8; margin: 0 0 12px; }
#ru-main h2 small { font-family: var(--sans); font-size: 16px; color: #8a82b0; margin-left: 10px; }
#ru-main h3 { font-family: var(--title); font-weight: normal; font-size: 26px; color: #6c5cc8; margin: 22px 0 10px; }
#ru-main .ru-lead { font-size: 18px; line-height: 1.6; color: #4a4270; max-width: 900px; }
.ru-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0; }
.ru-steps > div { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 3px 10px rgba(90, 74, 168, .1); }
.ru-steps i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: #8b6cf0; color: #fff; font-family: var(--title); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.ru-steps b { font-family: var(--title); font-weight: normal; font-size: 22px; color: #4a3f9a; }
.ru-steps span { font-size: 15px; line-height: 1.5; color: #5d5680; font-weight: 700; }
.ru-tip { background: #fff7d6; border: 2px solid #ffd76a; border-radius: 14px; padding: 10px 14px; font-size: 17px; font-weight: 700; color: #6a5420; }
.ru-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.ru-card { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 2px 8px rgba(90, 74, 168, .08); position: relative; }
.ru-card img { width: 92px; height: 92px; border-radius: 12px; flex: none; object-fit: cover; }
.ru-card .ru-cn { position: absolute; left: 10px; top: 10px; width: 92px; text-align: center; font-family: var(--title); font-size: 17px; color: #fff; background: var(--basic); border-radius: 12px 12px 0 0; padding: 1px 0; }
.ru-card.trick .ru-cn { background: var(--trick); } .ru-card.equip .ru-cn { background: var(--equip); } .ru-card.bomb .ru-cn { background: #d8364a; }
.ru-card .ru-cd { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ru-card .ru-cd b { font-size: 17px; color: #3d3566; }
.ru-card .ru-cd span { font-size: 14px; line-height: 1.45; color: #5d5680; font-weight: 600; }
.ru-card .ru-cd small { font-size: 13px; color: #9a93bf; font-weight: 800; }
.ru-flow { display: flex; gap: 10px; margin-bottom: 12px; }
.ru-flow > div { flex: 1; background: #fff; border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.ru-flow b { font-family: var(--title); font-weight: normal; font-size: 24px; color: #5a4aa8; }
.ru-flow span { font-size: 15px; font-weight: 700; color: #5d5680; }
.ru-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.55; color: #3d3566; max-width: 1000px; }
.ru-list b.rel { color: #fff; border-radius: 8px; padding: 0 8px; margin-right: 8px; font-size: 14px; }
.ru-list b.rel.ally { background: var(--good); } .ru-list b.rel.friend { background: #6c9cf0; } .ru-list b.rel.rival { background: var(--bad); }
.ru-note { font-size: 15px; color: #6b6585; font-weight: 700; }
.ru-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
.ru-ch { background: #fff; border-radius: 18px; padding: 12px 14px; border-left: 6px solid var(--c); display: flex; flex-direction: column; gap: 8px; }
.ru-ch1 { display: flex; gap: 12px; align-items: center; }
.ru-ch1 img { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--c); background: var(--l); }
.ru-ch1 div { display: flex; flex-direction: column; }
.ru-ch1 b { font-family: var(--title); font-weight: normal; font-size: 26px; color: var(--c); line-height: 1.1; }
.ru-ch1 small { font-size: 14px; color: #8a82b0; font-weight: 700; }
.ru-ch1 span { font-size: 14px; color: #ff4f70; letter-spacing: 1px; }
.ru-sks { display: flex; flex-direction: column; gap: 4px; }
.ru-sk { display: flex; align-items: center; gap: 8px; background: var(--l); border-radius: 10px; padding: 4px 10px; cursor: help; }
.ru-sk b { font-family: var(--title); font-weight: normal; font-size: 19px; color: var(--c); flex: none; }
.ru-sk em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; border-radius: 7px; padding: 0 6px; background: #9a93bf; flex: none; }
.ru-sk em.active { background: var(--c); }
.ru-sk span { font-size: 15px; font-weight: 700; color: #4a4270; }
.ru-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ru-props { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.ru-props span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--title); font-size: 17px; color: var(--acc-ink); background: #fff; border-radius: 16px; padding: 8px 14px 6px; }
.ru-props img { width: 64px; height: 64px; object-fit: contain; }
/* 全明星组队页 */
#scr-team.active { display: flex; } #scr-team { flex-direction: column; align-items: center; padding: 26px 30px 24px; gap: 14px; }
.tm-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tm-sub { font-size: 20px; font-weight: 700; color: #4a5a90; background: rgba(255, 255, 255, .78); border-radius: 14px; padding: 4px 16px; }
.tm-body { flex: 1; min-height: 0; width: 100%; display: flex; align-items: stretch; gap: 14px; }
.tm-vs { flex: none; align-self: center; font-family: var(--title); font-size: 46px; color: #fff; background: var(--acc); border: 3px solid #fff; border-radius: 50%;
  width: 84px; height: 84px; line-height: 78px; text-align: center; box-shadow: 0 6px 18px rgba(60, 90, 170, .25); }
.tm-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 3px solid #fff; border-radius: 24px; padding: 14px 16px; box-shadow: 0 8px 24px rgba(60, 80, 160, .14); --n: #4a7dff; }
.tm-side.nat-cn { --n: #ff5a5a; }
.tm-name { display: flex; align-items: baseline; gap: 12px; }
.tm-name b { font-family: var(--title); font-weight: normal; font-size: 34px; color: #fff; background: var(--n); border-radius: 14px; padding: 0 16px; }
.tm-name small { font-size: 16px; font-weight: 800; color: #6b6585; }
.tm-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tm-slot { position: relative; height: 330px; border-radius: 18px; overflow: hidden; background: var(--l, #f1f3fa); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(60, 50, 140, .14); }
.tm-slot img { width: 100%; height: auto; display: block; transform: scale(1.25); transform-origin: 50% 6%; }
.tm-slot .tm-nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 6px; text-align: center; background: linear-gradient(transparent, var(--c) 60%); color: #fff; }
.tm-slot .tm-nm b { display: block; font-family: var(--title); font-weight: normal; font-size: 28px; line-height: 1.1; }
.tm-slot .tm-nm small { display: block; }
.tm-slot .tm-nm small { font-size: 12px; font-weight: 700; opacity: .9; }
.tm-slot .tm-you, .tm-slot .tm-x { position: absolute; top: 6px; right: 6px; font-style: normal; font-family: var(--title); color: #fff; border: 2px solid #fff; border-radius: 50%;
  width: 36px; height: 36px; line-height: 32px; text-align: center; font-size: 18px; }
.tm-slot .tm-you { background: #ffb020; } .tm-slot .tm-x { background: rgba(80, 80, 110, .55); cursor: pointer; }
.tm-slot .tm-x:hover { background: #e2525b; }
.tm-slot.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255, 255, 255, .5); border: 3px dashed #c3c9e6; box-shadow: none; }
.tm-slot.empty span { font-size: 54px; line-height: 1; color: #b4bbdc; } .tm-slot.empty small { font-size: 14px; font-weight: 700; color: #9aa0c0; }
.tm-rels { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.tm-rels span { font-size: 14px; font-weight: 800; color: #4a5a90; background: #fff; border-radius: 12px; padding: 3px 10px 3px 4px; display: inline-flex; align-items: center; gap: 6px; }
.tm-rels span b { font-size: 12px; color: #fff; border-radius: 9px; padding: 1px 7px; background: #6c9cf0; }
.tm-rels .ally b { background: var(--good); } .tm-rels .rival b { background: var(--bad); } .tm-rels .mentor b { background: #9b7bff; }
.tm-rels .none { background: none; color: #9aa0c0; padding: 3px 0; }
.tm-roster { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-pick { position: relative; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 5px; border-radius: 16px; cursor: pointer;
  border: 3px solid #fff; background: rgba(255, 255, 255, .9); font-family: var(--title); font-size: 15px; color: var(--c); transition: transform .12s; }
.tm-pick img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--c); background: var(--l); }
#stage:not(.portrait) .tm-roster { flex-wrap: nowrap; }   /* 横屏：中国队 7 人排一行（换行会被底下的按钮挡住），头像跟着收窄 */
#stage:not(.portrait) .tm-pick { flex: 1 1 0; min-width: 0; width: auto; max-width: 104px; }
#stage:not(.portrait) .tm-pick img { width: 100%; max-width: 72px; height: auto; aspect-ratio: 1; }
.tm-pick:hover { transform: translateY(-3px); }
.tm-pick.on { border-color: var(--n); background: var(--l); box-shadow: 0 0 0 2px var(--n); }
.tm-pick.you { cursor: default; opacity: .75; }
.tm-pick i { position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 13px; color: #fff; background: var(--n); border: 2px solid #fff; border-radius: 10px; padding: 0 6px; }
.tm-btns { display: flex; gap: 14px; }
.tm-btns #tm-go { min-width: 260px; }
#stage.portrait #scr-team { padding: 20px 16px; gap: 12px; }
#stage.portrait .tm-body { flex-direction: column; gap: 10px; }
#stage.portrait .tm-vs { width: 64px; height: 64px; line-height: 58px; font-size: 34px; margin: -18px 0; z-index: 2; }
#stage.portrait .tm-slot { height: 230px; } #stage.portrait .tm-slot .tm-nm b { font-size: 24px; }
#stage.portrait .tm-pick img { width: 64px; height: 64px; }
#stage.portrait .tm-name b { font-size: 30px; } #stage.portrait .tm-name small { font-size: 18px; }
#stage.portrait .tm-pick { width: 104px; font-size: 17px; }
#stage.portrait .tm-rels span { font-size: 16px; }
#stage.portrait .tm-sub { font-size: 18px; text-align: center; }
#stage.portrait .tm-btns { flex-wrap: wrap; justify-content: center; } #stage.portrait .tm-btns #tm-go { min-width: 0; flex-basis: 100%; }
#stage.tiny .tm-sub { font-size: 26px; } #stage.tiny .tm-name small { font-size: 21px; } #stage.tiny .tm-rels span { font-size: 19px; } #stage.tiny .tm-rels span b { font-size: 16px; }
#stage.tiny .tm-pick { font-size: 20px; width: 112px; } #stage.tiny .tm-slot .tm-nm small { font-size: 16px; }
.ru-props small { font-family: var(--body, inherit); font-size: 12px; font-weight: 800; color: #8a83a8; }
.ru-props.sig span { min-width: 96px; } .ru-props.sig b { font-weight: normal; }
.ru-modes > div { background: #fff; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.ru-modes > div > b { font-family: var(--title); font-weight: normal; font-size: 28px; color: #5a4aa8; }
.ru-modes span { font-size: 16px; line-height: 1.6; color: #4a4270; font-weight: 600; }
.ru-keys { display: flex; flex-wrap: wrap; gap: 10px; }
.ru-keys span { background: #fff; border-radius: 12px; padding: 8px 14px; font-size: 16px; font-weight: 700; color: #4a4270; }
.ru-keys kbd { font-family: var(--sans); font-size: 14px; background: #efeaff; border: 1px solid #cfc6f5; border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; margin: 0 2px; }
/* 竖屏：栏目变成顶部一排 */
#stage.portrait #rules { flex-direction: column; }
#stage.portrait #rules .ru-side { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px 16px 10px; border-right: 0; border-bottom: 3px solid #fff; }
#stage.portrait #rules .ru-logo { font-size: 40px; margin: 0 12px 0 4px; }
#stage.portrait #ru-nav { flex-direction: row; flex-wrap: wrap; order: 3; flex: 1 1 100%; gap: 6px; margin-top: 8px; }
#stage.portrait #ru-nav button { font-size: 24px; padding: 8px 14px; }
#stage.portrait #rules #ru-close { margin-left: auto; }
#stage.portrait #ru-main { padding: 20px 20px 40px; }
#stage.portrait .ru-steps { grid-template-columns: 1fr 1fr; }
#stage.portrait .ru-cards, #stage.portrait .ru-chars, #stage.portrait .ru-modes { grid-template-columns: 1fr; }
#stage.portrait .ru-list, #stage.portrait .ru-steps span, #stage.portrait .ru-card .ru-cd span { font-size: 20px; }
#stage.portrait .ru-sk span { font-size: 19px; }
#stage.tiny #ru-main { font-size: 125%; }
#stage.tiny .ru-list { font-size: 24px; } #stage.tiny .ru-card .ru-cd span, #stage.tiny .ru-steps span, #stage.tiny .ru-sk span, #stage.tiny .ru-modes span { font-size: 20px; }
#stage.tiny #ru-nav button { font-size: 28px; }
/* v23 Kimi 的乐队：排练一次来一名乐手（鼓手 / 吉他手 / 键盘手），到齐了金光闪，大家都看得见 */
.hero .band { position: absolute; right: 5px; top: 46px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.hero .band i { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 2px dashed rgba(155, 123, 255, .75); display: grid; place-items: center; overflow: hidden; }
.hero .band i img { width: 40px; height: 40px; object-fit: cover; opacity: .25; filter: grayscale(1); }
.hero .band i.on { background: #fff; border: 2px solid #9b7bff; box-shadow: 0 2px 6px rgba(80, 60, 160, .35); }
.hero .band i.on img { opacity: 1; filter: none; }
.hero .band i.new { animation: bandpop .6s cubic-bezier(.2, 1.6, .4, 1); }
.hero .band.full i { border-color: #ffc83a; box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(255, 190, 50, .95); }   /* 静态光圈，不逐帧改阴影 */
@keyframes bandpop { 0% { transform: scale(.2); } 100% { transform: scale(1); } }
.hero.has-band .you { right: auto; left: 8px; top: 40px; }   /* 右边一列让给乐队 */
.hero.has-band .tnum { z-index: 3; }
.float.band { color: #7b5cff; font-size: 34px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .hero .band i.new { animation: none; } }
