:root {
  --ink: #12142a; --yellow: #ffd23f; --p1: #ff3b5c; --p2: #2f8bff; --card: rgba(16, 26, 54, 0.94);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font-family: var(--font); color: #fff; user-select: none; -webkit-user-select: none; }
body {
  background:
    repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,255,255,0.045) 0deg 5deg, transparent 5deg 13deg),
    radial-gradient(ellipse at 50% 35%, #1d5f7a 0%, #0d2b45 45%, #071526 100%);
}
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font-family: var(--font); cursor: pointer; }
a { color: #9fc4ff; }

/* ---------- HUD ---------- */
#topbar { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
#topbar button, #topbar .right { pointer-events: auto; }
.chip { background: rgba(10, 20, 40, 0.75); color: #fff; border: 2px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.chip:hover { border-color: var(--yellow); }
.right { display: flex; gap: 6px; }
#score { display: flex; align-items: center; gap: 10px; background: rgba(8, 16, 34, 0.82); border: 3px solid var(--yellow); border-radius: 18px; padding: 6px 14px; box-shadow: 0 0 24px rgba(255, 210, 63, 0.35); }
#score .side { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
#score .pts { font-size: 34px; min-width: 40px; text-align: center; text-shadow: 0 3px 0 var(--ink); }
#score .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
#score .srv { color: var(--yellow); font-size: 14px; visibility: hidden; filter: drop-shadow(0 0 4px var(--yellow)); }
#score .srv.on { visibility: visible; }
#score .vs { font-weight: 900; color: var(--yellow); font-style: italic; }
#ruleTag { position: fixed; top: 82px; left: 50%; transform: translateX(-50%); font-size: 13px; padding: 4px 12px; border-radius: 999px; background: rgba(8, 16, 34, 0.6); color: #cfe6ff; white-space: nowrap; }
#ruleTag:empty { display: none; }

#names div { position: fixed; transform: translate(-50%, -100%); font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 8px; background: rgba(8, 16, 34, 0.65); border: 2px solid; white-space: nowrap; pointer-events: none; }
#floaters div { position: fixed; transform: translate(-50%, -50%); font-weight: 900; font-size: 34px; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); pointer-events: none; animation: floatUp 0.9s ease-out forwards; white-space: nowrap; font-style: italic; }
#floaters div.super { color: #ff7a1a; font-size: 46px; animation-duration: 1.3s; }
#floaters div.smash { color: #ff4d6d; font-size: 42px; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.4); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 30% { transform: translate(-50%, -55%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); } }

#banner { position: fixed; top: 36%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0; }
#banner.show { animation: bannerIn 1.7s ease-out forwards; }
#banner .big { font-size: clamp(36px, 7vw, 72px); font-weight: 900; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink), 0 0 30px rgba(255,210,63,0.6); white-space: nowrap; font-style: italic; }
#banner .small { margin-top: 6px; display: inline-block; font-size: 20px; font-weight: 800; padding: 6px 16px; border-radius: 12px; background: rgba(8, 16, 34, 0.8); border: 2px solid var(--yellow); }
#banner .small:empty { display: none; }
@keyframes bannerIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-4deg); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(0); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }

#toast { position: fixed; bottom: 150px; left: 50%; transform: translateX(-50%); background: rgba(255, 210, 63, 0.95); color: var(--ink); font-weight: 800; padding: 10px 18px; border-radius: 14px; border: 3px solid var(--ink); opacity: 0; transition: opacity 0.25s; pointer-events: none; text-align: center; max-width: calc(100% - 32px); z-index: 30; }
#toast.show { opacity: 1; }

.panel { position: fixed; left: 16px; bottom: 16px; width: 250px; background: rgba(8, 16, 34, 0.78); border: 2px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 8px 12px; }
.panel.rside { left: auto; right: 16px; }
.panel .who { font-size: 13px; font-weight: 900; margin-bottom: 2px; }
.panel .row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.panel .lbl { width: 54px; font-size: 12px; font-weight: 700; color: #cfe6ff; }
.bar { flex: 1; height: 14px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 2px solid var(--ink); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe14d, #ff8a1a, #ff2d55); border-radius: 999px; transition: width 0.05s linear; }
.bar.energy i { background: linear-gradient(90deg, #4fd1ff, #8a6bff, #ff5ad1); transition: width 0.2s; }
.bar.full i { animation: glow 0.5s infinite alternate; }
@keyframes glow { from { filter: brightness(1); } to { filter: brightness(1.6); } }
.panel .tip { font-size: 12px; font-weight: 800; color: var(--yellow); min-height: 16px; }
.panel .tip.blink { animation: blink 0.6s infinite alternate; }
@keyframes blink { from { opacity: 1; } to { opacity: 0.35; } }
#keys { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,0.7); white-space: nowrap; }
#keys b { color: var(--yellow); }
@media (max-width: 1000px) { #keys { display: none; } }

/* ---------- 回放 ---------- */
#replay { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#replay .lb { position: absolute; left: 0; right: 0; height: 11vh; background: #000; animation: lbIn 0.35s ease-out; }
#replay .lb.top { top: 0; } #replay .lb.bot { bottom: 0; }
@keyframes lbIn { from { height: 0; } }
#replay .tag { position: absolute; top: calc(11vh + 16px); left: 24px; font-weight: 900; font-size: 26px; font-style: italic; letter-spacing: 2px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
#replay .tag i { color: #ff3b5c; animation: blink 0.5s infinite alternate; font-style: normal; }
#replay .tag span { color: var(--yellow); font-size: 18px; margin-left: 6px; }
#replay .cap { position: absolute; bottom: calc(11vh + 18px); left: 50%; transform: translateX(-50%); font-size: 20px; font-weight: 900; padding: 8px 20px; border-radius: 12px; background: rgba(8, 16, 34, 0.85); border: 2px solid var(--yellow); white-space: nowrap; }
#replay .slow { position: absolute; top: calc(11vh + 22px); right: 24px; font-weight: 900; font-size: 14px; letter-spacing: 4px; color: #9fc4ff; }
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 6; }
#flash.on { animation: flash 0.45s ease-out; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }

/* ---------- 通用卡片 ---------- */
.screen, .modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 10, 22, 0.5); z-index: 10; }
.modal { background: rgba(4, 10, 22, 0.72); z-index: 20; }
.card { width: min(520px, 100%); background: var(--card); border: 3px solid var(--yellow); border-radius: 24px; padding: 24px 26px; box-shadow: 0 10px 0 var(--ink), 0 0 60px rgba(255, 210, 63, 0.25); }
.card.scroll { max-height: calc(100vh - 32px); overflow-y: auto; width: min(640px, 100%); }
.title { font-size: 46px; font-weight: 900; text-align: center; letter-spacing: 2px; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); font-style: italic; }
.title span { color: var(--yellow); }
.sub { text-align: center; color: #9fc4ff; font-size: 13px; letter-spacing: 3px; margin: 4px 0 18px; }
label { display: block; font-size: 13px; color: #cfe6ff; font-weight: 700; margin: 12px 0 6px; }
input[type=text], input:not([type]) { width: 100%; font-size: 18px; padding: 10px 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; font-family: var(--font); outline: none; }
input:focus { border-color: var(--yellow); }
.big-btn { display: block; width: 100%; margin-top: 18px; font-size: 20px; font-weight: 900; padding: 12px; border-radius: 16px; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform 0.08s; }
.big-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.big-btn:disabled { background: #6b7a90; cursor: default; }
.big-btn.alt { background: #4fd1ff; }
.btns { display: flex; gap: 10px; }
.btns .big-btn { flex: 1; }
.links { text-align: center; margin-top: 14px; font-size: 13px; color: #9fc4ff; }
#over .win { text-align: center; font-size: 40px; font-weight: 900; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
#over .final { text-align: center; font-size: 22px; font-weight: 800; margin-top: 6px; }
#over { background: rgba(4, 10, 22, 0.35); }
#over .rematch { display: flex; justify-content: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
#over .rematch div { padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,0.08); font-weight: 800; font-size: 14px; }
#over .rmsg { text-align: center; margin-top: 10px; font-weight: 800; color: #cfe6ff; min-height: 20px; }
#over .rmsg.hot { color: var(--yellow); animation: blink 0.6s infinite alternate; }
#againBtn.pulse { animation: againPulse 0.7s infinite alternate; }
@keyframes againPulse { from { transform: scale(1); } to { transform: scale(1.06); box-shadow: 0 5px 0 var(--ink), 0 0 26px var(--yellow); } }

/* ---------- 拳皇式选人 ---------- */
#select { flex-direction: column; justify-content: space-between; padding: 14px 18px; background:
  linear-gradient(115deg, rgba(255, 59, 92, 0.28) 0%, transparent 30%, transparent 70%, rgba(47, 139, 255, 0.28) 100%),
  repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px),
  radial-gradient(ellipse at 50% 40%, #13284d 0%, #070d1c 80%); }
.sel-head { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.sel-title { font-size: 34px; font-weight: 900; font-style: italic; letter-spacing: 3px; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink), 0 0 24px rgba(255,210,63,0.5); color: var(--yellow); }
.sel-title span { font-size: 18px; color: #fff; margin-left: 10px; letter-spacing: 1px; }
.sel-body { flex: 1; width: 100%; display: grid; grid-template-columns: 1fr minmax(320px, 470px) 1fr; gap: 12px; align-items: center; min-height: 0; }
.pane { position: relative; height: 100%; max-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden; }
.pane .art { position: absolute; bottom: 120px; height: min(60vh, 440px); filter: drop-shadow(0 10px 0 rgba(0,0,0,0.35)); animation: artIn 0.35s cubic-bezier(.2,1.4,.4,1); }
.pane.p1 .art { left: 6%; } .pane.p2 .art { right: 6%; transform: scaleX(-1); }
@keyframes artIn { from { opacity: 0; translate: -60px 0; } }
.pane.p2 .art { animation-name: artIn2; } @keyframes artIn2 { from { opacity: 0; translate: 60px 0; } }
.pane .ptag { position: absolute; top: 8px; font-size: 54px; font-weight: 900; font-style: italic; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.pane.p1 .ptag { left: 10px; color: var(--p1); } .pane.p2 .ptag { right: 10px; color: var(--p2); }
.pane .info { position: relative; width: 100%; max-width: 330px; background: rgba(6, 12, 26, 0.88); border-radius: 14px; padding: 10px 14px; border: 3px solid; }
.pane.p1 .info { border-color: var(--p1); align-self: flex-start; } .pane.p2 .info { border-color: var(--p2); align-self: flex-end; }
.pane .cname { font-size: 30px; font-weight: 900; font-style: italic; line-height: 1.1; }
.pane .cname small { font-size: 15px; color: #9fc4ff; margin-left: 8px; font-style: normal; }
.pane .ctitle { font-size: 13px; color: var(--yellow); font-weight: 800; }
.pane .pname { font-size: 13px; color: #cfe6ff; margin: 2px 0 6px; }
.stat { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; margin: 3px 0; }
.stat b { width: 34px; color: #cfe6ff; }
.stat .seg5 { display: flex; gap: 3px; }
.stat .seg5 i { width: 22px; height: 10px; transform: skewX(-20deg); background: rgba(255,255,255,0.12); border: 1px solid rgba(0,0,0,0.5); }
.stat .seg5 i.on { background: linear-gradient(90deg, #ffe14d, #ff8a1a); }
.pane .supl { margin-top: 6px; font-size: 13px; font-weight: 800; }
.pane .supl span { color: #ff8a1a; }
.pane .status { position: absolute; top: 74px; font-size: 22px; font-weight: 900; font-style: italic; padding: 2px 14px; transform: skewX(-12deg); }
.pane.p1 .status { left: 14px; } .pane.p2 .status { right: 14px; }
.status.ok { background: #2fcf74; color: var(--ink); animation: stamp 0.35s cubic-bezier(.2,1.6,.4,1); }
.status.wait { background: rgba(255,255,255,0.15); }
.status.ai { background: #a56dff; }
@keyframes stamp { from { transform: skewX(-12deg) scale(2.2); opacity: 0; } }
.pane .empty { margin: auto; text-align: center; color: rgba(255,255,255,0.75); }
.pane .empty .q { font-size: 160px; font-weight: 900; color: rgba(255,255,255,0.08); line-height: 1; }
.pane .empty .t { font-weight: 900; font-style: italic; font-size: 18px; animation: blink 0.8s infinite alternate; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 6px 12px; }
.cardc { position: relative; aspect-ratio: 0.82; transform: skewX(-8deg); border-radius: 10px; border: 4px solid rgba(255,255,255,0.18); overflow: hidden; cursor: pointer; transition: transform 0.12s, border-color 0.12s; box-shadow: 0 6px 0 rgba(0,0,0,0.45); }
.cardc .bg { position: absolute; inset: -10%; transform: skewX(8deg); }
.cardc img { position: absolute; left: 50%; top: 4%; width: 112%; transform: translateX(-50%) skewX(8deg); }
.cardc .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0 5px; background: rgba(6, 12, 26, 0.85); text-align: center; font-weight: 900; font-size: 15px; }
.cardc .lab small { display: block; font-size: 10px; color: #9fc4ff; letter-spacing: 1px; }
.cardc:hover { transform: skewX(-8deg) translateY(-3px); }
.cardc.c1 { border-color: var(--p1); box-shadow: 0 0 0 3px var(--p1), 0 0 26px var(--p1); transform: skewX(-8deg) scale(1.06); z-index: 1; }
.cardc.c2 { border-color: var(--p2); box-shadow: 0 0 0 3px var(--p2), 0 0 26px var(--p2); transform: skewX(-8deg) scale(1.06); z-index: 1; }
.cardc.c1.c2 { border-color: var(--p1); box-shadow: -4px 0 0 3px var(--p1), 4px 0 0 3px var(--p2); }
.cardc .badge { position: absolute; top: 4px; font-size: 16px; font-weight: 900; font-style: italic; padding: 0 8px; border-radius: 6px; transform: skewX(8deg); -webkit-text-stroke: 1px var(--ink); }
.cardc .b1 { left: 6px; background: var(--p1); } .cardc .b2 { right: 6px; background: var(--p2); }
.cardc.locked::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.12); animation: blink 0.4s 3 alternate; }
.sel-foot { width: 100%; max-width: 960px; text-align: center; }
#selMsg { font-weight: 800; color: #cfe6ff; min-height: 22px; }
.foot-row { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 4px; flex-wrap: wrap; }
.foot-row .big-btn { width: 240px; margin-top: 0; }
#aiBox { display: flex; gap: 6px; align-items: center; font-weight: 800; font-size: 14px; background: rgba(8,16,34,0.7); border-radius: 14px; padding: 8px 10px; }
#aiBox .lv { border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; font-weight: 900; background: #4fd1ff; color: var(--ink); }
#aiBox .lv[data-lv=easy] { background: #6dff9a; } #aiBox .lv[data-lv=hard] { background: #ff6b8a; }
/* 第一次来、对面空着：提示条 + 「电脑」难度框发光（只动 opacity，Chromebook 也不卡） */
#selMsg.hint { display: inline-block; margin: 0 12px 2px; padding: 3px 12px; border-radius: 9px; border: 1.5px solid var(--yellow); background: rgba(255, 214, 61, 0.12); color: #fff3b0; font-size: 14px; }
#selMsg.hint::before { content: '👇 '; }
#aiBox { position: relative; }
#aiBox.nudge::after { content: ''; position: absolute; inset: -3px; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 3px var(--yellow), 0 0 22px var(--yellow); opacity: 0; animation: aiNudge 1.1s ease-in-out infinite alternate; }
@keyframes aiNudge { to { opacity: 1; } }
.venues { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.vlab { font-weight: 900; font-style: italic; font-size: 18px; color: var(--yellow); line-height: 1; -webkit-text-stroke: 1px var(--ink); }
.vlab small { display: block; font-size: 10px; letter-spacing: 2px; color: #9fc4ff; -webkit-text-stroke: 0; }
#venueRow { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 820px; }
.vcard { position: relative; width: 94px; aspect-ratio: 16 / 9; border-radius: 10px; border: 3px solid rgba(255,255,255,0.18); overflow: hidden; cursor: pointer; transform: skewX(-8deg); box-shadow: 0 4px 0 rgba(0,0,0,0.45); transition: transform 0.12s, border-color 0.12s;
  background: radial-gradient(ellipse at 50% 35%, #1d5f7a 0%, #0d2b45 45%, #071526 100%); }
.vcard img { position: absolute; inset: 0 -8%; width: 116%; height: 100%; object-fit: cover; transform: skewX(8deg); }
.vcard .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0 2px; background: rgba(6, 12, 26, 0.8); text-align: center; font-weight: 900; font-size: 11px; white-space: nowrap; overflow: hidden; }
.vcard .lab small { font-size: 9px; color: #9fc4ff; letter-spacing: 1px; margin-left: 4px; }
.vcard:hover { transform: skewX(-8deg) translateY(-2px); }
.vcard.on { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow), 0 0 20px rgba(255,210,63,0.7); transform: skewX(-8deg) scale(1.06); z-index: 1; }
.vcard.dis { cursor: default; }
.vcard.dis:not(.on) { filter: saturate(0.5) brightness(0.7); }
.vcard.dis:hover:not(.on) { transform: skewX(-8deg); }
.venues .who { font-size: 11px; color: #9fc4ff; font-weight: 700; max-width: 64px; text-align: left; }
@media (max-width: 560px) { .vcard { width: 82px; } .vcard .lab { font-size: 9px; letter-spacing: -0.2px; } .vcard .lab small, .venues .who { display: none; } }
.share { margin-top: 8px; font-size: 12px; color: #9fc4ff; }
/* 设置里的天气按钮 */
#wxSel { flex-wrap: wrap; align-self: flex-start; margin-top: 6px; }
#wxSel button { padding: 6px 10px; font-size: 13px; display: flex; align-items: center; gap: 4px; }
#wxSel button i { font-style: normal; font-size: 15px; }
#wxSel button.na { opacity: 0.35; }
#wxSel.dis button:not(.on) { filter: saturate(0.5) brightness(0.75); }
.share b { color: var(--yellow); user-select: text; -webkit-user-select: text; }

/* ---------- VS 开场 ---------- */
#vs { position: fixed; inset: 0; z-index: 12; overflow: hidden; }
#vs .half { position: absolute; top: 0; bottom: 0; width: 56%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 5% 8vh; }
#vs .half.l { left: 0; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); background: linear-gradient(135deg, #ff3b5c, #7a0f2a); animation: vsL 0.5s cubic-bezier(.2,1.2,.3,1); }
#vs .half.r { right: 0; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); background: linear-gradient(225deg, #2f8bff, #0b2a6b); align-items: flex-end; animation: vsR 0.5s cubic-bezier(.2,1.2,.3,1); }
@keyframes vsL { from { transform: translateX(-100%); } } @keyframes vsR { from { transform: translateX(100%); } }
#vs img { position: absolute; bottom: 0; height: 88vh; }
#vs .l img { left: 6%; } #vs .r img { right: 6%; transform: scaleX(-1); }
#vs .nm { position: relative; font-size: clamp(30px, 5vw, 60px); font-weight: 900; font-style: italic; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
#vs .ch { position: relative; font-size: 20px; font-weight: 800; color: var(--yellow); -webkit-text-stroke: 1px var(--ink); }
#vs .vsText { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: clamp(90px, 16vw, 200px); font-weight: 900; font-style: italic; color: var(--yellow); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 10px 0 var(--ink), 0 0 60px rgba(255,210,63,0.8); animation: vsPop 0.6s 0.35s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes vsPop { from { transform: translate(-50%, -50%) scale(4); opacity: 0; } }
#vs .go { position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); font-size: 40px; font-weight: 900; font-style: italic; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; animation: vsPop 0.4s 2.3s both; }

/* ---------- 设置 ---------- */
#settings h2, #help h2 { margin: 6px 0 12px; color: var(--yellow); font-size: 22px; }
#settings h3 { margin: 16px 0 6px; font-size: 16px; color: var(--yellow); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 800; }
.opt > span { flex: 1; }
.opt small { display: block; font-size: 12px; color: #9fc4ff; font-weight: 600; }
.opt input[type=range] { width: 220px; accent-color: var(--yellow); }
.sw { position: relative; width: 52px; height: 28px; margin: 0; }
.sw input { display: none; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: #3a4660; border: 2px solid var(--ink); transition: background 0.15s; cursor: pointer; }
.sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.sw input:checked + i { background: #2fcf74; }
.sw input:checked + i::after { transform: translateX(24px); }
.seg { display: flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.seg button { border: 0; padding: 7px 12px; background: #2a3550; color: #fff; font-weight: 800; }
.seg button.on { background: var(--yellow); color: var(--ink); }
.opt.col { flex-direction: column; align-items: stretch; }
#voicePick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#voicePick button { border: 3px solid transparent; border-radius: 12px; padding: 8px 6px; background: rgba(255,255,255,0.08); color: #fff; font-weight: 900; font-size: 15px; }
#voicePick button small { display: block; font-size: 11px; color: #9fc4ff; font-weight: 600; }
#voicePick button.on { border-color: var(--yellow); background: rgba(255,210,63,0.15); }
#voicePick .none { grid-column: 1 / -1; font-size: 13px; color: #9fc4ff; font-weight: 600; }
.keys-note { font-size: 12px; color: #9fc4ff; line-height: 1.6; margin-top: 6px; }
.pad { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 6px 0; border-radius: 12px; background: rgba(255,255,255,0.06); }
.pad .pn { flex: 1; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad .live { width: 12px; height: 12px; border-radius: 50%; background: #3a4660; }
.pad .live.on { background: #6dff9a; box-shadow: 0 0 10px #6dff9a; }
.pad select { font-family: var(--font); font-weight: 800; border-radius: 8px; padding: 4px 6px; }
.nopad { font-size: 13px; color: #9fc4ff; padding: 8px 0; }

#help table { width: 100%; border-collapse: collapse; font-size: 14px; }
#help td { padding: 6px 4px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.08); line-height: 1.5; }
#help td:first-child { white-space: nowrap; font-weight: 800; color: #cfe6ff; padding-right: 12px; }
#help li { margin: 6px 0; font-size: 14px; line-height: 1.6; }
#help .note { font-size: 13px; color: #9fc4ff; }

@media (max-width: 900px) {
  .sel-body { grid-template-columns: 1fr; }
  .pane { display: none; }
  .sel-title { font-size: 24px; }
}
@media (max-width: 560px) {
  #score .pts { font-size: 26px; } #score .side { font-size: 13px; } #score .nm { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .panel { width: 46%; } .title { font-size: 34px; }
  .opt { flex-wrap: wrap; } .opt input[type=range] { width: 100%; }
}

/* ---------- 新手教练 ---------- */
#coach { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(8, 16, 34, 0.82); border: 2px solid rgba(255,255,255,0.18); opacity: 0; transition: opacity 0.15s; pointer-events: none; z-index: 4; white-space: nowrap; }
#coach.show { opacity: 1; }
#coach svg { width: 40px; height: 40px; transform: rotate(-90deg); }
#coach circle { fill: none; stroke-width: 5; }
#coach .bg { stroke: rgba(255,255,255,0.15); }
#coach .fg { stroke-dasharray: 113.1; stroke-dashoffset: 113.1; stroke-linecap: round; transition: stroke-dashoffset 0.06s linear; }
#coach b { display: block; font-size: 18px; font-weight: 900; }
#coach small { display: block; font-size: 12px; color: #cfe6ff; font-weight: 700; }
#coach.pulse { animation: coachPulse 0.35s infinite alternate; border-color: #ff5a5a; }
@keyframes coachPulse { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.08); } }

/* ---------- 动画教学 ---------- */
#tutorial { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.tut { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 10px; }
.tut-h { font-weight: 900; font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tut-h .kb { display: inline-grid; place-items: center; min-width: 28px; padding: 0 6px; height: 28px; font-size: 13px; border-radius: 7px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.tut canvas { width: 100%; aspect-ratio: 320 / 180; border-radius: 10px; display: block; }
.tut-c { font-size: 13px; line-height: 1.6; color: #cfe6ff; margin-top: 6px; }
.tut-c b { color: var(--yellow); }

/* 中英文两份内容按语言显示 */
html[lang="en"] [data-lang="zh"], html[lang="zh-CN"] [data-lang="en"] { display: none; }
.opt > span > b { font-weight: 800; }

/* ---------- 双打 ---------- */
.modes { pointer-events: auto; }
.modes.dis button:not(.on) { opacity: 0.45; }
.pane.xtra { display: none; }
.sel-body.dbl { grid-template-rows: 1fr 1fr; grid-template-areas: "p0 grid p1" "p2 grid p3"; }
.sel-body.dbl .pane.xtra { display: flex; }
.sel-body.dbl #pane0 { grid-area: p0; } .sel-body.dbl #pane1 { grid-area: p1; } .sel-body.dbl #pane2 { grid-area: p2; } .sel-body.dbl #pane3 { grid-area: p3; }
.sel-body.dbl .grid { grid-area: grid; }
.sel-body.dbl .pane { max-height: none; min-height: 0; }
.sel-body.dbl .pane .art { height: min(24vh, 180px); bottom: 62px; }
.sel-body.dbl .pane.p1 .art { left: auto; right: 8%; } .sel-body.dbl .pane.p2 .art { right: auto; left: 8%; }
.sel-body.dbl .pane .ptag { font-size: 34px; top: 2px; }
.sel-body.dbl .pane .status { top: 46px; font-size: 16px; }
.sel-body.dbl .pane .info { padding: 6px 10px; }
.sel-body.dbl .pane .cname { font-size: 22px; }
.sel-body.dbl .pane .ctitle, .sel-body.dbl .pane .stat, .sel-body.dbl .pane .supl { display: none; }
.sel-body.dbl .pane .empty .q { font-size: 80px; }
.sel-body.dbl .pane .empty .t { font-size: 15px; }
.sel-body.dbl .pane.sit { cursor: pointer; }
.sel-body.dbl .pane.sit:hover .empty .q { color: rgba(255,255,255,0.22); }
.panel.up { bottom: 128px; }
#vs.dbl img { height: 74vh; }
#vs.dbl .l img.m2 { left: 32%; } #vs.dbl .r img.m2 { right: 32%; }
@media (max-width: 900px) {
  .sel-body.dbl { grid-template-rows: none; grid-template-areas: none; grid-template-columns: 1fr 1fr; }
  .sel-body.dbl .grid { grid-column: 1 / -1; grid-row: 1; }
  .sel-body.dbl #pane0, .sel-body.dbl #pane1, .sel-body.dbl #pane2, .sel-body.dbl #pane3 { grid-area: auto; min-height: 150px; }
}

/* ---------- Key 登录 / 档案 / 商店（主会话）---------- */
#keyIn { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; }
#authMsg { min-height: 20px; margin-top: 6px; color: #ff8a8a; font-weight: 800; font-size: 13px; }
#coinChip { border-color: var(--yellow); color: var(--yellow); }
.seg10 { display: flex; gap: 2px; }
.seg10 i { width: 11px; height: 10px; transform: skewX(-20deg); background: rgba(255,255,255,0.12); border: 1px solid rgba(0,0,0,0.5); }
.seg10 i.on { background: linear-gradient(90deg, #ffe14d, #ff8a1a); }
.seg10 i.gear { background: linear-gradient(90deg, #6dff9a, #2fcf74); }
.stat em { font-style: normal; color: #6dff9a; font-weight: 900; margin-left: 4px; }
.card.wide { width: min(860px, 100%); }
.pf-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
#pfPrev { width: 180px; height: 252px; object-fit: contain; background: radial-gradient(circle at 50% 60%, rgba(255,210,63,0.18), transparent 70%); border-radius: 16px; }
#pfInfo { flex: 1; min-width: 240px; }
.pf-name { font-size: 28px; font-weight: 900; }
.pf-lv { font-weight: 900; color: var(--yellow); display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.pf-lv small { color: #9fc4ff; font-weight: 700; }
.xpbar { flex: 0 0 160px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #4fd1ff, #8a6bff); }
.pf-coins { font-size: 20px; font-weight: 900; color: var(--yellow); }
.pf-rec, .pf-bonus { color: #cfe6ff; font-size: 13px; margin-top: 4px; }
.tagg { background: rgba(109,255,154,0.15); color: #6dff9a; border-radius: 6px; padding: 1px 6px; font-weight: 800; }
.tags { display: inline-block; background: rgba(255,210,63,0.12); color: var(--yellow); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 12px; margin-top: 4px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.slotc, .itemc { position: relative; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 8px; text-align: center; font-size: 13px; }
.slotc .sl { font-size: 11px; color: #9fc4ff; font-weight: 800; }
.slotc .empty, .inv .empty { color: rgba(255,255,255,0.4); padding: 14px 0; }
.sw { width: 34px; height: 34px; border-radius: 50%; margin: 6px auto; border: 3px solid var(--ink); }
.itemc .nm, .slotc .nm { font-weight: 900; }
.itemc .nm small { display: block; font-size: 11px; color: #9fc4ff; font-weight: 700; }
.itemc .bt, .slotc .bt { font-size: 12px; color: #cfe6ff; min-height: 16px; }
.itemc .sk { font-size: 12px; color: var(--yellow); margin-top: 2px; }
.itemc .pr { font-weight: 900; color: var(--yellow); margin-top: 4px; }
.itemc .pr small { color: #9fc4ff; font-weight: 700; }
.itemc .rar { display: inline-block; font-size: 10px; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,0.15); vertical-align: middle; }
.r-r { border-color: #4fa3ff; } .r-r .rar { background: #2f6fd8; }
.r-e { border-color: #c77dff; box-shadow: 0 0 16px rgba(199,125,255,0.35); } .r-e .rar { background: linear-gradient(90deg, #a56dff, #ffb000); color: #12142a; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.shop-grid .pet-note { grid-column: 1 / -1; font-size: 12px; color: #9fc4ff; line-height: 1.6; } /* 宠物页的说明 */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.mini { margin-top: 6px; border: 2px solid var(--ink); border-radius: 10px; padding: 5px 12px; font-weight: 900; background: var(--yellow); color: var(--ink); }
.mini:disabled { background: #4a5670; color: #c8d2e4; cursor: default; }
.seg.tabs { flex-wrap: wrap; margin-top: 10px; }
#shop h2 .coins { font-size: 16px; color: var(--yellow); margin-left: 8px; }
#replay .skip { position: absolute; bottom: calc(11vh + 20px); right: 24px; font-size: 13px; font-weight: 800; color: rgba(255,255,255,0.75); background: rgba(8,16,34,0.6); padding: 4px 10px; border-radius: 8px; }

/* 暂停 */
#topbar .left { display: flex; gap: 8px; align-items: center; }
#pause { background: rgba(4, 10, 22, 0.22); z-index: 12; }
#pause .card { background: rgba(10, 20, 40, 0.82); }
#pause .card { text-align: center; min-width: 300px; }
#pause .ptitle { font-size: 44px; font-weight: 900; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
#pause .phint { margin-top: 8px; font-size: 15px; font-weight: 700; color: #cfe6ff; }

/* ---------- 在线、聊天、邀请（social.js） ---------- */
#soc { position: fixed; left: 12px; top: 12px; z-index: 15; width: 250px; pointer-events: none; }
body.soc-select #soc { top: 64px; }
body.soc-play #soc { top: 56px; }
#soc > * { pointer-events: auto; }
.soc-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(10, 20, 40, 0.82); color: #fff; border: 2px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800; }
.soc-pill:hover { border-color: var(--yellow); }
.soc-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7894; }
.soc-pill .dot.on { background: #4dff8a; box-shadow: 0 0 8px #4dff8a; }
.soc-pill .badge, .soc-row .un { min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 999px; background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 900; font-style: normal; text-align: center; }
.soc-list { margin-top: 6px; background: rgba(8, 16, 34, 0.9); border: 2px solid rgba(255,255,255,0.18); border-radius: 14px; padding: 6px; max-height: 50vh; overflow-y: auto; }
.soc-list .none { font-size: 12px; color: #9fc4ff; padding: 8px; }
.soc-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 10px; cursor: pointer; }
.soc-row:hover { background: rgba(255,255,255,0.08); }
.soc-row img { width: 34px; height: 34px; border-radius: 50%; background: #2a3550; border: 2px solid rgba(255,255,255,0.3); object-fit: cover; }
.soc-row .nm { flex: 1; min-width: 0; }
.soc-row .nm b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-row .nm small { display: block; font-size: 11px; color: #9fc4ff; font-weight: 700; }
.soc-row .nm small.st-play { color: #ff9a5a; } .soc-row .nm small.st-lobby { color: #4dff8a; }
.soc-row .soc-inv { border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow); padding: 3px 7px; font-size: 15px; }
#socChat { position: fixed; left: 16px; bottom: 16px; width: 300px; height: 340px; z-index: 16; display: flex; flex-direction: column; background: rgba(8, 16, 34, 0.94); border: 2px solid var(--yellow); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
body.soc-play #socChat { bottom: 150px; height: 300px; }
#socChat .hd { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(255,255,255,0.06); }
#socChat .hd img { width: 32px; height: 32px; border-radius: 50%; background: #2a3550; }
#socChat .hd .nm { flex: 1; } #socChat .hd b { display: block; font-size: 14px; } #socChat .hd small { font-size: 11px; color: #9fc4ff; font-weight: 700; }
#socChat .x { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; padding: 0 4px; }
#socChat .msgs { flex: 1; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; user-select: text; -webkit-user-select: text; }
#socChat .m { align-self: flex-start; max-width: 80%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: #2a3550; font-size: 13px; font-weight: 600; word-break: break-word; }
#socChat .m.me { align-self: flex-end; background: var(--yellow); color: var(--ink); border-radius: 12px 12px 4px 12px; }
#socChat .hint { margin: auto; font-size: 12px; color: #9fc4ff; }
#socChat form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(255,255,255,0.1); }
#socChat input { flex: 1; min-width: 0; border: 2px solid rgba(255,255,255,0.25); border-radius: 10px; background: rgba(255,255,255,0.08); color: #fff; padding: 6px 10px; font: inherit; font-size: 13px; user-select: text; -webkit-user-select: text; }
#socChat input:focus { outline: none; border-color: var(--yellow); }
#socChat form button { border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 900; padding: 0 12px; }
#socNotes { position: fixed; top: 56px; right: 12px; z-index: 17; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.soc-note { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 290px; padding: 10px 12px; background: rgba(8, 16, 34, 0.94); border: 2px solid #4fd1ff; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,0.45); transform: translateX(calc(100% + 24px)); opacity: 0; transition: transform 0.35s cubic-bezier(.2,1.2,.3,1), opacity 0.3s; flex-wrap: wrap; }
.soc-note.in { transform: none; opacity: 1; }
.soc-note.invite { border-color: var(--yellow); }
.soc-note img { width: 38px; height: 38px; border-radius: 50%; background: #2a3550; }
.soc-note .tx { flex: 1; min-width: 0; font-size: 13px; }
.soc-note .tx b { display: block; font-size: 14px; color: var(--yellow); }
.soc-note .tx span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.soc-note.invite .tx span { white-space: normal; }
.soc-note .btns { display: flex; gap: 6px; width: 100%; justify-content: flex-end; }
.soc-note .btns button { border: 2px solid var(--ink); border-radius: 10px; padding: 4px 14px; font-weight: 900; background: #2a3550; color: #fff; }
.soc-note .btns .yes { background: var(--yellow); color: var(--ink); }
@media (max-width: 560px) { #soc { width: 200px; } #socChat { width: calc(100% - 32px); } .soc-note { width: 250px; } }

/* 首页滚动的玩法小贴士 */
#tips { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); cursor: pointer; user-select: none; }
#tips .ico { font-size: 16px; flex: none; }
#tips .win { flex: 1; height: 36px; overflow: hidden; display: flex; align-items: center; }
#tips .txt { font-size: 13px; font-weight: 700; line-height: 18px; color: #cfe6ff; transition: transform 0.3s ease, opacity 0.3s ease; }
#tips .txt.out { transform: translateY(-110%); opacity: 0; }
#tips .txt.in { transform: translateY(110%); opacity: 0; transition: none; }

/* 首页英文标题：P 是匹克球拍；A 是一个球——从右边飞进来，把 B 和 LL 撞开，停在中间慢慢转，LL 后面留一点拖影 */
.title .lg-p { display: inline-block; width: 0.6em; height: 0.96em; vertical-align: -0.14em; margin-right: 0.02em; transform: rotate(-8deg); background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 88'%3E %3Cpath d='M11 54 L27 54 L25 62 L13 62 Z' fill='%23e2a92a' stroke='%2312142a' stroke-width='3.5' stroke-linejoin='round'/%3E %3Crect x='10' y='60' width='18' height='22' rx='4' fill='%232b3150' stroke='%2312142a' stroke-width='3.5'/%3E %3Cpath d='M11 65 L27 69 M11 71 L27 75 M11 77 L24 80' stroke='%238f9ac8' stroke-width='2.4'/%3E %3Crect x='8' y='80' width='22' height='6' rx='3' fill='%2312142a'/%3E %3Crect x='3' y='3' width='48' height='55' rx='16' fill='%23ffd23f' stroke='%2312142a' stroke-width='4'/%3E %3Crect x='9' y='9' width='36' height='43' rx='11' fill='%23ffe066' stroke='%23e9b520' stroke-width='2.5'/%3E %3Cpath d='M14 18 Q18 13 26 13' stroke='%23fff6c8' stroke-width='4' fill='none' stroke-linecap='round'/%3E %3C/svg%3E"); filter: drop-shadow(0 5px 0 var(--ink)); }
.title .bl, .title .bl span { display: inline-block; color: #fff; }
.title .lb { display: inline-block; animation: lgB 1.3s ease-out 0.4s both; }
.title .ll { display: inline-block; position: relative; z-index: 3; animation: lgLL 1.3s ease-out 0.4s both; }
.title .slot { display: inline-block; position: relative; width: 0.86em; height: 0.86em; vertical-align: -0.1em; margin: 0 0.02em; }
.title .ball { position: absolute; inset: 0; z-index: 2; animation: lgFly 0.7s cubic-bezier(.25, .75, .35, 1) 0.4s both; }
.title .ball::before, .title .ball::after, .title .spin { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.title .ball::before { z-index: 1; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cdefs%3E%3CradialGradient id='g' cx='0.36' cy='0.32' r='0.75'%3E %3Cstop offset='0' stop-color='%23f6ff9e'/%3E%3Cstop offset='0.5' stop-color='%23d9f53c'/%3E%3Cstop offset='1' stop-color='%2393b414'/%3E%3C/radialGradient%3E%3C/defs%3E %3Ccircle cx='36' cy='36' r='32' fill='url(%23g)' stroke='%2312142a' stroke-width='4'/%3E%3C/svg%3E"); filter: drop-shadow(0 5px 0 var(--ink)); }
.title .spin { z-index: 2; animation: lgSpinIn 0.7s cubic-bezier(.25, .75, .35, 1) 0.4s both; }
.title .holes { position: absolute; inset: 9%; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Ccircle cx='36' cy='18' r='4.2' fill='%2312142a' opacity='0.85'/%3E%3Ccircle cx='22' cy='28' r='4.2' fill='%2312142a' opacity='0.85'/%3E%3Ccircle cx='50' cy='28' r='4.2' fill='%2312142a' opacity='0.85'/%3E%3Ccircle cx='36' cy='36' r='4.2' fill='%2312142a' opacity='0.85'/%3E%3Ccircle cx='24' cy='46' r='4.2' fill='%2312142a' opacity='0.85'/%3E%3Ccircle cx='48' cy='46' r='4.2' fill='%2312142a' opacity='0.85'/%3E%3Ccircle cx='36' cy='54' r='4.2' fill='%2312142a' opacity='0.85'/%3E%3Ccircle cx='14' cy='38' r='3.4' fill='%2312142a' opacity='0.55'/%3E%3Ccircle cx='58' cy='38' r='3.4' fill='%2312142a' opacity='0.55'/%3E%3C/svg%3E"); animation: lgSpin 9s linear 1.1s infinite; }
.title .ball::after { z-index: 3; inset: 14% 40% 46% 16%; background: radial-gradient(ellipse at 40% 40%, rgba(255,255,255,0.75), rgba(255,255,255,0) 70%); }
.title .trail { position: absolute; z-index: 0; left: 50%; top: 22%; height: 56%; border-radius: 0 999px 999px 0; mix-blend-mode: screen; background: linear-gradient(90deg, rgba(225,255,70,0.95), rgba(225,255,70,0.4) 40%, rgba(225,255,70,0)); animation: lgTrail 1.3s ease-out 0.4s both; }
@keyframes lgFly { from { transform: translateX(7em); opacity: 0; } 10% { opacity: 1; } to { transform: none; } }
@keyframes lgSpinIn { from { transform: rotate(-900deg); } to { transform: none; } }
@keyframes lgSpin { to { transform: rotate(-360deg); } }
@keyframes lgTrail { 0% { width: 3.2em; opacity: 0.9; } 50% { width: 2.6em; opacity: 0.85; } 100% { width: 1em; opacity: 0.5; } }
@keyframes lgLL { 0%, 52% { transform: translateX(-0.9em); } 63% { transform: translateX(0.22em); } 80% { transform: translateX(-0.05em); } 100% { transform: none; } }
@keyframes lgB { 0%, 52% { transform: none; } 62% { transform: translateX(-0.12em); } 80% { transform: translateX(0.02em); } 100% { transform: none; } }

/* ---------- 装备图标（gearicons.js） ---------- */
.gsi { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 4px; flex: none; }
.seg.tabs button .gsi { margin-right: 5px; }
.gi { display: flex; justify-content: center; margin: 4px auto; }
.gic { display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.45)); }
.gic.r-e { filter: drop-shadow(0 0 6px rgba(199,125,255,0.6)) drop-shadow(0 2px 0 rgba(0,0,0,0.45)); }

/* 首页演示换镜头 / 换场地时的黑场（demo.js） */
#demoFade { position: fixed; inset: 0; z-index: 1; background: #050a18; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#demoFade.on { opacity: 1; }

/* ---------- 观战（main.js 的 spectBar、social.js 的 socWatch） ---------- */
#spectBar { position: fixed; top: 96px; left: 12px; z-index: 14; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(260px, calc(100% - 24px)); background: rgba(8, 16, 34, 0.78); border: 2px solid #4fd1ff; border-radius: 14px; padding: 6px 8px; } /* 左上角，不挡球场 */
#spectBar .who { font-weight: 900; font-size: 12px; color: #cfe6ff; }
#spectBar .views { flex-wrap: wrap; }
#spectBar .views button { padding: 4px 8px; font-size: 11px; }
#spectBar .quit { font-size: 11px; padding: 4px 10px; }
@media (max-width: 560px) { #spectBar { top: 136px; max-width: 200px; padding: 5px 6px; } #spectBar .views button { padding: 3px 6px; font-size: 10px; } } /* 左上角，在「在线 N」和 🎤 那一行（top 56px）下面；手机：「← 选人」会折成两行，再往下让开 */
#socWatch { position: fixed; top: 56px; right: 12px; z-index: 17; display: flex; flex-direction: column; align-items: flex-end; }
#socWatch .soc-list { width: 200px; }
#socWatch .kick { border: 2px solid var(--ink); border-radius: 10px; background: #ff6b8a; color: var(--ink); font-weight: 900; padding: 3px 10px; }
body.soc-watched #socNotes { top: 100px; }
.soc-row .soc-watch { border: 2px solid var(--ink); border-radius: 10px; background: #4fd1ff; padding: 3px 7px; font-size: 15px; }

/* ---------- 语音（talk.js：麦克风按钮和语音名单；social.js：语音消息） ---------- */
#talk { position: fixed; left: 150px; top: 12px; z-index: 15; }
body.soc-select #talk { top: 64px; }
body.soc-play #talk { top: 56px; }
#talk .row { display: flex; }
#talk .mic, #talk .more { background: rgba(10, 20, 40, 0.82); color: #fff; border: 2px solid rgba(255,255,255,0.25); padding: 4px 10px; font-size: 14px; font-weight: 800; }
#talk .mic { border-radius: 999px 0 0 999px; }
#talk .more { border-radius: 0 999px 999px 0; border-left: 0; padding: 4px 8px; font-size: 11px; }
#talk .mic.on { border-color: #4dff8a; }
#talk .mic.live { background: #1f6b3a; }
#talk.me-talk .mic { box-shadow: 0 0 0 3px rgba(77,255,138,0.45), 0 0 14px #4dff8a; }
#talk .tpanel { margin-top: 6px; width: 240px; background: rgba(8, 16, 34, 0.92); border: 2px solid rgba(255,255,255,0.18); border-radius: 14px; padding: 8px; font-size: 13px; }
#talk .tpanel .seg { margin-bottom: 6px; }
#talk .tpanel .seg button { padding: 4px 8px; font-size: 12px; }
#talk .tpanel .none { color: #9fc4ff; font-size: 12px; }
#talk .tpanel .warn { color: #ffd23f; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
#talk .tpanel .warn a { display: block; color: #4fd1ff; word-break: break-all; }
#talk .trow { display: flex; align-items: center; gap: 6px; padding: 4px 2px; }
#talk .trow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#talk .trow .wave { font-style: normal; opacity: 0.25; }
#talk .trow.talking .wave { opacity: 1; animation: blink 0.4s infinite alternate; }
#talk .trow button { border: 2px solid var(--ink); border-radius: 8px; padding: 2px 8px; font-size: 11px; font-weight: 800; background: #2a3550; color: #fff; }
#talk .trow button.muted { background: #ff6b8a; color: var(--ink); }
#httpsHint { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; color: #4fd1ff; text-align: center; }
#socChat form .rec { border: 2px solid var(--ink); border-radius: 10px; background: #2a3550; color: #fff; padding: 0 8px; font-size: 15px; min-width: 38px; touch-action: none; }
#socChat form .rec.on { background: #ff3b5c; animation: blink 0.5s infinite alternate; }
#socChat .m .vplay { border: 0; background: none; color: inherit; font: inherit; font-weight: 800; padding: 0; cursor: pointer; }
#socChat .m .vplay.playing { animation: blink 0.4s infinite alternate; }

/* ---------- 手机横屏（touch.js：摇杆、按钮、全屏、竖屏提示）---------- */
.fsLink, .chip.fsBtn { display: none; }
body.canfs:not(.isfs):not(.app) .fsLink { display: inline; }
body.canfs:not(.isfs):not(.app) .chip.fsBtn { display: inline-block; }
/* 首页：教人「添加到主屏幕」（iPhone / 安卓各看各的那句；已经从桌面图标打开就不显示） */
#a2hs { display: none; margin-top: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(79, 209, 255, 0.1); border: 1px solid rgba(79, 209, 255, 0.35); font-size: 12px; font-weight: 700; line-height: 1.5; color: #cfe6ff; text-align: center; }
#a2hs span { display: none; }
body.touch.ios:not(.app) #a2hs, body.touch.android:not(.app) #a2hs { display: block; }
body.ios #a2hs .a2-ios, body.android #a2hs .a2-and { display: inline; }
/* 竖着拿手机：整屏提示横过来 */
#rotate { display: none; position: fixed; inset: 0; z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 38%, #1d5f7a 0%, #0d2b45 45%, #071526 100%); }
@media (orientation: portrait) { body.touch #rotate { display: flex; } }
#rotate .ph { width: 64px; height: 104px; border: 5px solid #fff; border-radius: 14px; position: relative; animation: rotPh 2.2s ease-in-out infinite; }
#rotate .ph i { position: absolute; left: 50%; bottom: 6px; width: 14px; height: 4px; margin-left: -7px; border-radius: 2px; background: #fff; }
#rotate .ph::after { content: ''; position: absolute; inset: 8px 6px 16px; border-radius: 4px; background: var(--yellow); opacity: 0.85; }
@keyframes rotPh { 0%, 25% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
#rotate .msg { font-size: 24px; font-weight: 900; color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }


/* 触屏设备上的比赛 HUD：键位提示用不上；能量面板缩小，放到摇杆和按钮上面；顶栏避开刘海 */
body.touch #keys { display: none; }
body.touch #topbar { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); }

/* 手机横屏（矮屏）：首页、选人、弹窗压紧，按钮都能点到 */
@media (orientation: landscape) and (max-height: 500px) {
  .screen, .modal { padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); overflow-y: auto; align-items: safe center; }
  .card { padding: 12px 18px; border-radius: 18px; box-shadow: 0 6px 0 var(--ink), 0 0 40px rgba(255, 210, 63, 0.2); }
  .card.scroll { max-height: calc(100dvh - 12px); }
  .big-btn { margin-top: 10px; padding: 8px; font-size: 18px; }
  /* 首页：名字和 Key 并排，标题不动 */
  #title .card { width: min(620px, 100%); display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  #title .card > * { grid-column: 1 / -1; }
  #title .card > label { margin: 4px 0; }
  #title .card > label:nth-of-type(1) { grid-column: 1; grid-row: 3; } #title .card > label:nth-of-type(2) { grid-column: 2; grid-row: 3; }
  #title .card > #nameIn { grid-column: 1; grid-row: 4; } #title .card > #keyIn { grid-column: 2; grid-row: 4; }
  #title input { font-size: 16px; padding: 7px 12px; }
  #title .sub { margin: 2px 0 6px; }
  #title #authMsg { min-height: 16px; margin-top: 2px; }
  #title .links { margin-top: 8px; }
  #title #tips { margin-top: 8px; padding: 4px 10px; }
  #title #tips .win { height: 30px; }
  body.touch #title #tips { display: none; } /* 贴士讲的是键盘按键，手机上用不上 */
  #a2hs { margin-top: 8px; padding: 4px 10px; }
  /* 选人：两侧小立绘，中间 6×2 角色卡，下面一行场地 */
  #select { padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .sel-title { font-size: 20px; letter-spacing: 1px; }
  .sel-head { gap: 6px; }
  .sel-head .seg button { padding: 4px 10px; font-size: 13px; }
  .sel-head .chip { padding: 3px 9px; font-size: 12px; }
  .sel-body { grid-template-columns: 1fr auto 1fr; gap: 6px; }
  .pane { display: flex; max-height: none; height: 100%; }
  .pane .art { height: calc(100dvh - 190px); bottom: 26px; }
  .pane.p1 .art { left: 0; } .pane.p2 .art { right: 0; }
  .pane .ptag { font-size: 26px; top: 0; -webkit-text-stroke: 2px var(--ink); text-shadow: 0 3px 0 var(--ink); }
  .pane.p1 .ptag { left: auto; right: 4px; } .pane.p2 .ptag { right: auto; left: 4px; } /* 左上角是「在线」那一行，1P 字样让到另一边 */
  .pane .status { top: auto; bottom: 52px; font-size: 14px; padding: 1px 8px; z-index: 1; } /* 放到名字上面：左上角那一行会挡住 */
  .pane.p1 .status { left: 4px; } .pane.p2 .status { right: 4px; }
  .pane .info { padding: 3px 8px; border-width: 2px; border-radius: 10px; }
  .pane .cname { font-size: 16px; } .pane .cname small { display: none; }
  .pane .ctitle, .pane .stat, .pane .supl { display: none; }
  .pane .pname { font-size: 11px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pane .empty .q { font-size: 70px; } .pane .empty .t { font-size: 13px; }
  .grid { grid-template-columns: repeat(6, auto); gap: 6px; padding: 4px 6px; align-content: center; }
  .cardc { width: calc((100dvh - 206px) / 2 * 0.82); border-width: 3px; border-radius: 8px; box-shadow: 0 4px 0 rgba(0,0,0,0.45); }
  .cardc .lab { font-size: 12px; padding: 2px 0 3px; }
  .cardc .badge { font-size: 12px; padding: 0 5px; }
  .sel-body.dbl { grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr 1fr; grid-template-areas: "p0 grid p1" "p2 grid p3"; }
  .sel-body.dbl .grid { grid-area: grid; grid-column: auto; grid-row: auto; }
  .sel-body.dbl #pane0 { grid-area: p0; } .sel-body.dbl #pane1 { grid-area: p1; } .sel-body.dbl #pane2 { grid-area: p2; } .sel-body.dbl #pane3 { grid-area: p3; }
  .sel-body.dbl #pane0, .sel-body.dbl #pane1, .sel-body.dbl #pane2, .sel-body.dbl #pane3 { min-height: 0; }
  .sel-body.dbl .pane .art { height: calc(50dvh - 110px); bottom: 26px; }
  .sel-body.dbl .pane .ptag { font-size: 20px; }
  .sel-body.dbl .pane .status { top: auto; bottom: 40px; font-size: 12px; }
  .sel-body.dbl .pane .cname { font-size: 14px; }
  .sel-body.dbl .pane .empty .q { display: none; }
  .sel-foot { max-width: none; }
  .venues { margin-bottom: 2px; gap: 6px; }
  .vlab { font-size: 13px; }
  #venueRow { flex-wrap: nowrap; max-width: none; gap: 5px; }
  .vcard { width: 62px; border-width: 2px; border-radius: 7px; }
  .vcard .lab { font-size: 9px; letter-spacing: -0.3px; }
  .vcard .lab small, .venues .who { display: none; }
  #selMsg { font-size: 12px; min-height: 16px; }
  #selMsg.hint { font-size: 12px; padding: 1px 10px; margin-bottom: 0; }
  .foot-row { margin-top: 2px; gap: 10px; }
  .foot-row .big-btn { width: 170px; padding: 6px; font-size: 17px; }
  #aiBox { padding: 4px 8px; font-size: 13px; }
  #aiBox .lv { padding: 5px 12px; }
  .share { display: none; }
  /* VS 开场、结算、暂停 */
  #vs .ch { font-size: 14px; }
  #vs .go { font-size: 28px; bottom: 6vh; }
  #over .win { font-size: 28px; } #over .final { font-size: 17px; }
  #pause .ptitle { font-size: 32px; }
  /* 设置、档案、商店 */
  #settings h2, #help h2 { font-size: 18px; margin: 2px 0 6px; }
  .opt { padding: 6px 0; }
  .opt input[type=range] { width: 180px; }
  #pfPrev { width: 110px; height: 154px; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
}

/* 触屏比赛 HUD：能量面板缩小，挪到两侧（左边在「在线」那一行下面，右边在设置按钮下面），让出摇杆和按钮的位置 */
body.touch .panel { width: 168px; padding: 3px 8px 4px; border-radius: 12px; border-width: 1.5px; bottom: auto; }
body.touch .panel .who { font-size: 11px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.touch .panel .row { margin: 2px 0; gap: 6px; }
body.touch .panel .lbl { width: 30px; font-size: 10px; }
body.touch .panel .bar { height: 8px; border-width: 1.5px; }
body.touch .panel .tip { font-size: 10px; min-height: 0; line-height: 1.3; }
body.touch #panelL { left: max(12px, env(safe-area-inset-left)); top: 98px; }
body.touch #panelL2 { left: max(12px, env(safe-area-inset-left)); top: 158px; }
body.touch #panelR { right: max(12px, env(safe-area-inset-right)); top: 54px; }
body.touch #panelR2 { right: max(12px, env(safe-area-inset-right)); top: 114px; }
/* 教练提示放到最底下中间（摇杆和按钮之间），小一点，不挡自己的球员 */
body.touch #coach { bottom: max(6px, env(safe-area-inset-bottom)); padding: 4px 12px 4px 6px; gap: 6px; max-width: calc(100% - 420px); white-space: normal; }
body.touch #coach svg { width: 28px; height: 28px; flex: none; }
body.touch #coach b { font-size: 14px; line-height: 1.2; }
body.touch #coach small { font-size: 10px; line-height: 1.25; }
body.touch #toast { bottom: auto; top: 36%; }
@media (orientation: landscape) and (max-height: 500px) {
  #topbar { top: max(6px, env(safe-area-inset-top)); }
  #topbar .chip { padding: 4px 10px; font-size: 12px; }
  #score { padding: 2px 12px; border-width: 2px; border-radius: 14px; gap: 8px; }
  #score .side { font-size: 13px; gap: 6px; }
  #score .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #score .pts { font-size: 24px; min-width: 28px; }
  #ruleTag { top: 50px; font-size: 11px; padding: 2px 10px; max-width: calc(100% - 400px); overflow: hidden; text-overflow: ellipsis; }
  #banner .big { font-size: 34px; } #banner .small { font-size: 14px; }
  #replay .tag { font-size: 18px; top: calc(11vh + 6px); } #replay .cap { font-size: 14px; bottom: calc(11vh + 8px); } #replay .skip { bottom: calc(11vh + 8px); }
}

/* 手机 HUD 精简（Shane：太乱太大）：按钮、摇杆、面板、提示都缩小变淡 */
body.touch .panel { width: 124px; padding: 2px 7px 3px; background: rgba(8, 16, 34, 0.5); border-color: rgba(255, 255, 255, 0.1); }
body.touch .panel .who { font-size: 10px; }
body.touch .panel .lbl, body.touch .panel .tip { display: none; }
body.touch .panel .row { margin: 3px 0 0; }
body.touch .panel .bar { height: 5px; border-width: 1px; }
body.touch #panelL2 { top: 140px; } body.touch #panelR2 { top: 96px; }
body.touch #coach { padding: 3px 10px 3px 4px; background: rgba(8, 16, 34, 0.6); border-width: 1px; max-width: calc(100% - 360px); }
body.touch #coach svg { width: 22px; height: 22px; }
body.touch #coach b { font-size: 12px; } body.touch #coach small { display: none; }
body.touch #toast { font-size: 13px; padding: 5px 12px; border-width: 2px; border-radius: 10px; }
@media (orientation: landscape) and (max-height: 500px) {
  #topbar .chip { padding: 3px 8px; font-size: 11px; border-width: 1.5px; }
  #score { padding: 1px 10px; gap: 6px; box-shadow: 0 0 12px rgba(255, 210, 63, 0.25); }
  #score .side { font-size: 11px; gap: 5px; }
  #score .pts { font-size: 20px; min-width: 24px; }
  #score .dot { width: 10px; height: 10px; }
  #ruleTag { top: 40px; font-size: 10px; padding: 1px 8px; opacity: 0.85; }
  #names div { font-size: 10px; padding: 1px 6px; border-width: 1.5px; }
  #banner .big { font-size: 28px; }
}

/* 摇杆和按钮（Shane：像枪战手游）：左半屏浮动摇杆，按哪出现在哪、松手消失；右下一组半透明圆键沿拇指弧线排开 */
#touchCtl { position: fixed; inset: 0; z-index: 3; pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#touchCtl .tzone { position: absolute; left: 0; bottom: 0; width: 50%; top: calc(env(safe-area-inset-top, 0px) + 48px); pointer-events: auto; touch-action: none; } /* 上面让出「← 选人」「暂停」那一行 */
#touchCtl .stick { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(8, 16, 34, 0.15) 40%, rgba(8, 16, 34, 0.4)); border: 2px solid rgba(255, 255, 255, 0.35); pointer-events: none; opacity: 0; transition: opacity 0.12s; }
#touchCtl .stick.act { opacity: 1; }
#touchCtl .stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff59a, #ffd23f 55%, #c9a400); border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); opacity: 0.9; }
#touchCtl .tbtns { position: absolute; right: calc(env(safe-area-inset-right, 0px) + 10px); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); width: 170px; height: 170px; }
#touchCtl .tb { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; border-radius: 50%; border: 2px solid rgba(18, 20, 42, 0.7); color: var(--ink); font-family: var(--font); pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; opacity: 0.6; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); transition: opacity 0.1s; }
#touchCtl .tb .ico { width: 42%; height: 42%; flex: none; }
#touchCtl .tb b { font-size: 10px; font-weight: 900; line-height: 1; white-space: nowrap; }
#touchCtl .tb .ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
#touchCtl .tb .ring circle { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--ch, 100); opacity: 0; }
#touchCtl .tb.chg .ring circle { opacity: 0.95; }
#touchCtl .tb.max .ring circle { stroke: #6dff9a; }
#touchCtl .tb.dn { opacity: 0.95; transform: scale(0.94); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
/* Shane 定的位置（2×2）：下排左抽球、右起跳；上排左吊球、右大招。抽球最大 */
#touchCtl .tb-d { right: 70px; bottom: 0; width: 74px; height: 74px; background: radial-gradient(circle at 38% 30%, #fff3a0, #ffd23f 60%); }
#touchCtl .tb-d b { font-size: 12px; }
#touchCtl .tb-j { right: 0; bottom: 8px; width: 60px; height: 60px; background: radial-gradient(circle at 38% 30%, #c9ffd9, #6dff9a 60%); }
#touchCtl .tb-l { right: 76px; bottom: 84px; width: 62px; height: 62px; background: radial-gradient(circle at 38% 30%, #c4f1ff, #4fd1ff 60%); }
#touchCtl .tb-s { right: 4px; bottom: 80px; width: 56px; height: 56px; color: #fff; background: radial-gradient(circle at 38% 30%, #c9b8ff, #8a6bff 60%); opacity: 0.4; }
#touchCtl .tb-s.full { opacity: 0.95; background: radial-gradient(circle at 38% 30%, #ffd0f0, #ff5ad1 55%, #8a6bff); animation: tbFull 0.5s infinite alternate; }
@keyframes tbFull { to { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3), 0 0 20px #ff5ad1; } }
