body.cinema { font-family: "PingFang SC", "Helvetica Neue", sans-serif; letter-spacing: 0.3px; }
.cinema .stage { display: block; }
.cinema canvas.gl { position: absolute; inset: 0; display: block; animation: glin .45s ease both; }
@keyframes glin { from { opacity: 0; } }

.cinema .hud { background: none; border: 0; backdrop-filter: none; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
.cinema .hud.tl { top: 14px; left: 22px; gap: 12px; }
.cinema .hud.tr { top: 14px; right: 22px; }
.cinema .hud.tr .ghost, .cinema .hud.tr select { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.12); color: #e8ecf4; border-radius: 20px; font-size: 12px; }
.cinema .clock { font-size: 26px; font-weight: 300; letter-spacing: 2px; color: #fff; }
.cinema .cond { font-size: 13px; color: rgba(255,255,255,0.75); }
.cinema .hud.bottom { bottom: 12px; background: none; min-width: 640px; }
.cinema .replay { opacity: 0.55; transition: opacity .2s; }
.cinema .replay:hover { opacity: 1; }

.cinema .chips { gap: 14px; }
.cinema .pchip { flex-direction: column; gap: 4px; background: none; padding: 0; border: 0; font-size: 12px; color: #e8ecf4; }
.cinema .pchip .avatar { width: 42px; height: 42px; font-size: 18px; box-shadow: 0 0 0 2px rgba(0,0,0,0.6), 0 0 0 4px rgba(255,255,255,0.15); position: relative; }
.cinema .pchip.on .avatar { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--c), 0 0 18px var(--c); }
.cinema .pchip .bar3 i { width: 13px; height: 3px; }
.cinema .pchip.out { text-decoration: none; opacity: 0.35; filter: grayscale(1); }

.labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.nameplate { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: opacity .2s; white-space: nowrap; }
.nameplate b { font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px #000, 0 0 2px #000; padding: 0 2px; border-bottom: 2px solid var(--c); }
.nameplate .ring { display: block; width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #6ac46a var(--e), rgba(255,255,255,0.15) var(--e)); box-shadow: 0 0 0 1px rgba(0,0,0,0.5); }
.nameplate .say { order: -1; max-width: 220px; white-space: normal; background: rgba(250,248,240,0.95); color: #1a1a1a; font-size: 12px; line-height: 1.45; padding: 5px 10px; border-radius: 10px; position: relative; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.nameplate .say p { margin: 0; }
.nameplate .say p + p { margin-top: 3px; padding-top: 3px; border-top: 1px dashed rgba(0,0,0,0.12); }
.nameplate .say p.old { color: #8a8678; font-size: 11px; }
.nameplate .say.stale { opacity: 0.6; }
/* 被挪上去的名牌：名字下面拖一根细线指回头顶，看得出是谁的气泡 */
.nameplate.lifted::after { content: ''; width: 1px; height: 10px; background: rgba(255,255,255,0.5); }
.nameplate .say.now { box-shadow: 0 0 0 2px var(--c), 0 4px 14px rgba(0,0,0,0.35); }
.nameplate .say.now p:last-child { animation: sayIn .25s ease-out; }
@keyframes sayIn { from { opacity: 0; transform: translateY(4px); } }
.nameplate .say::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: rgba(250,248,240,0.95); border-bottom: 0; }
.nameplate.dim { opacity: 0.35; }
.nameplate.hot b { font-size: 14px; }

.subtitle { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 6; max-width: 70%; text-align: center; font-size: 20px; font-weight: 300; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 10px #000, 0 0 3px #000; opacity: 0; transition: opacity .6s; pointer-events: none; }
.subtitle.show { opacity: 1; }

.cinema .tip { background: rgba(10,12,16,0.88); border: 0; border-left: 3px solid var(--c, #888); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.cinema .drawer { top: 0; bottom: 0; background: linear-gradient(90deg, rgba(10,12,16,0.82), rgba(10,12,16,0.96)); border: 0; width: 420px; }
.cinema .result { top: auto; bottom: 130px; background: rgba(8,10,14,0.85); border: 0; border-top: 2px solid var(--gold); border-radius: 4px; }
.cinema .pchip.me > span:nth-child(2) { color: #ffd890; font-weight: 700; }
.cinema .pchip.me .avatar { box-shadow: 0 0 0 2px #000, 0 0 0 4px #f0c860; }
.cinema .hud.tr a.ghost.home { background: linear-gradient(135deg, rgba(240,200,96,0.9), rgba(224,138,58,0.9)); color: #1a1205; border: 0; font-weight: 600; }
.megaBtn { position: absolute; z-index: 6; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 28px; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: #1a1205; background: linear-gradient(135deg, #f0c860, #e08a3a); box-shadow: 0 6px 24px rgba(224, 138, 58, 0.45); }
.megaBtn:disabled { filter: grayscale(1); opacity: 0.55; cursor: default; box-shadow: none; }
.megaBtn.live { animation: megaPulse 1.2s infinite; }
@keyframes megaPulse { 50% { box-shadow: 0 0 0 8px rgba(240, 200, 96, 0.25), 0 6px 24px rgba(224, 138, 58, 0.45); } }
.mega { position: absolute; z-index: 8; right: 22px; bottom: 80px; width: 360px; background: rgba(12, 12, 16, 0.94); border: 1px solid rgba(240, 200, 96, 0.35); border-radius: 14px; padding: 12px 14px; display: none; box-shadow: 0 14px 40px rgba(0,0,0,0.55); }
.mega.show { display: block; }
.mega .mhead { display: flex; justify-content: space-between; align-items: center; }
.mega .mhead b { color: #f6dca0; font-size: 15px; }
.mega .msub { font-size: 12px; color: var(--muted); }
.mega .ring .track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 3; }
.mega .ring .bar { fill: none; stroke: #f0c860; stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 20px 20px; transition: stroke-dashoffset .9s linear; }
.mega .ring text { fill: #f6dca0; font-size: 12px; font-weight: 700; }
.mega .mlines { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 13px; }
.mega .ml { padding: 5px 10px; border-radius: 10px; max-width: 85%; line-height: 1.5; }
.mega .ml.user { align-self: flex-end; background: rgba(90, 120, 180, 0.6); }
.mega .ml.char { align-self: flex-start; background: rgba(240, 200, 96, 0.16); border-left: 2px solid #f0c860; }
.mega .ml.sys { align-self: center; color: var(--muted); font-size: 12px; background: none; }
.mega .mform { display: flex; gap: 6px; align-items: center; }
.mega .mform input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 6px 10px; }
.mega .mcount { font-size: 11px; color: var(--muted); min-width: 34px; text-align: right; }
.mega .mact { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.cinema .nextAt { font-size: 11px; color: rgba(255,255,255,0.6); }
.megaBtn[hidden] { display: none; }
.labels .float-text { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; font-size: 16px; font-weight: 700; color: #fff; text-shadow: 0 1px 0 #3b2f2a, 0 0 3px #3b2f2a, 1px 1px 0 #3b2f2a, -1px -1px 0 #3b2f2a; }
.devpanel { position: absolute; z-index: 6; left: 14px; top: 108px; width: 300px; max-height: calc(100vh - 230px); overflow-y: auto; display: none; flex-direction: column; gap: 8px; background: rgba(12, 14, 18, 0.9); border: 1px solid rgba(126, 240, 160, 0.35); border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.devpanel.show { display: flex; }
.devpanel .dvhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.devpanel .dvhead b { color: #b6f5c8; }
.devpanel .msub { font-size: 12px; color: var(--muted); }
.devpanel .dvtools { display: flex; flex-wrap: wrap; gap: 5px; }
.devpanel .dvtools .chip.on { background: rgba(126, 240, 160, 0.22); border-color: #7ef0a0; }
.devpanel .dvtools select { background: rgba(255,255,255,0.06); }
.devpanel .dvhint { font-size: 12px; color: #d8ffe4; background: rgba(126, 240, 160, 0.08); border-radius: 6px; padding: 4px 8px; }
.devpanel .dvsub { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.devpanel .dvtrash { display: flex; flex-direction: column; gap: 4px; }
.devpanel .dvt { display: flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 4px; border-radius: 6px; }
.devpanel .dvt.on { background: rgba(126, 240, 160, 0.15); }
.devpanel .dvt span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devpanel .dvt small { color: var(--muted); }
.devpop { position: fixed; z-index: 9; display: none; width: 236px; background: rgba(12, 14, 18, 0.95); border: 1px solid rgba(255, 211, 106, 0.4); border-radius: 10px; padding: 8px 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-size: 13px; }
.devpop .dphead { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.devpop .dphead button { margin-left: auto; }
.devpop .msub { font-size: 12px; color: var(--muted); }
.devpop .dpi { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.devbox .devpanel { position: static; width: auto; max-height: none; overflow: visible; background: none; border: 0; box-shadow: none; padding: 0; }
.devbox .devpanel .dvhead b { display: none; }
