/* 危机合约 · 重燃测试作战 — LOCAL PREVIEW ONLY (work/crisis-event-20261021). js/ui/crisisEvent.js + crisisPages.js.
   Pages are laid out in the reference video's pixels on a 1280×720 stage (.cc-stage) scaled by --cc-s. */

/* ---------- lobby card: the 活动中心 tab on its own, at the foot of the right column ---------- */
.hub-right .cc-card { margin-top: auto; }
.cc-card { position: relative; display: block; width: 100%; aspect-ratio: 2.62; flex: none; padding: 0; overflow: hidden; cursor: pointer;
  border: 0; border-radius: .07rem; background: #e9e9e9; color: #161616; text-align: left; isolation: isolate;
  box-shadow: 0 .06rem .22rem rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease; animation: cc-card-in 520ms cubic-bezier(.2, .8, .2, 1) 520ms backwards; }
.cc-card:hover { transform: translateY(-.03rem); filter: brightness(1.04); box-shadow: 0 .1rem .3rem rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .55), 0 0 .22rem rgba(225, 29, 42, .45); }
.cc-card:focus-visible { outline: 2px solid #ff3d4a; outline-offset: 2px; }
/* the art: the event scene's lit platform (the same plate the event page uses), faded into the white card */
.cc-card__art { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #efefef 0%, #ececec 38%, rgba(236, 236, 236, .82) 50%, rgba(236, 236, 236, .25) 66%, rgba(236, 236, 236, 0) 80%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .09) .6px, transparent .9px) 0 0 / 4px 4px,
    url(https://speedcdn.jiangjiangze.icu/assets/local/sp-crisis-20261021-a94f75cbeb5d/ui/main-plate.jpg) 86% 56% / 330% auto no-repeat, #2a0d0f; }
.cc-card__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%) -150% 0 / 60% 100% no-repeat;
  animation: cc-card-shine 5.2s ease-in-out 2s infinite; }
.cc-card__mark { position: absolute; left: 3.8%; top: 50%; width: 7.2%; aspect-ratio: 1.15; transform: translateY(-50%); border: 1.5px solid rgba(20, 20, 20, .5); border-radius: 2px; }
.cc-card__mark i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%);
  border-left: .07rem solid #1a1a1a; border-top: .045rem solid transparent; border-bottom: .045rem solid transparent; }
.cc-card__name { position: absolute; left: 14%; top: 16%; font: 500 .25rem/1.32 "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; letter-spacing: .01em; color: #191919; }
.cc-card__deco { position: absolute; left: 14%; bottom: 9%; display: flex; align-items: center; gap: .04rem; }
.cc-card__deco i { width: .07rem; height: .07rem; border: 1px solid rgba(0, 0, 0, .45); }
.cc-card__deco b { width: .62rem; height: 2px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .4) 0 2px, transparent 2px 3px); }
.cc-card__edge { position: absolute; right: 0; bottom: 0; width: 22%; height: 9%; background: linear-gradient(90deg, transparent, #d9162a); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
@keyframes cc-card-in { from { opacity: 0; transform: translateX(.3rem); } }
@keyframes cc-card-shine { 0%, 70% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@media (max-height: 560px) and (min-aspect-ratio: 4/3) { .cc-card { aspect-ratio: 3.4; } .cc-card__name { font-size: max(.2rem, 11px); top: 12%; } }

/* ---------- lobby hand-off: the hub pushes in and darkens under the wipe, and settles back afterwards ---------- */
.lobby-hub.cc-leaving > .topbar, .lobby-hub.cc-leaving > .hub-stage { animation: cc-hub-out 620ms cubic-bezier(.5, 0, .75, 0) forwards; }
.lobby-hub.cc-returning > .topbar, .lobby-hub.cc-returning > .hub-stage { animation: cc-hub-in 820ms cubic-bezier(.2, .8, .2, 1) backwards; }
.lobby-hub.cc-leaving .hub-bg, .lobby-hub.cc-leaving > :first-child { transition: filter 600ms ease; filter: brightness(.4) saturate(.5); }
@keyframes cc-hub-out { to { transform: scale(1.06); filter: brightness(.35) saturate(.4); opacity: .6; } }
@keyframes cc-hub-in { from { transform: scale(1.06); filter: brightness(.35) saturate(.4); opacity: .6; } }

/* ---------- shell ---------- */
.cc-host { position: fixed; inset: 0; z-index: 9000; }
.cc-root { --cc-s: 1; --cc-font: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  position: absolute; inset: 0; overflow: hidden; background: #000; color: #f2f2f2; font: 400 14px/1.4 var(--cc-font); user-select: none; -webkit-user-select: none; }
.cc-root.is-wipe { background: transparent; }
.cc-root.is-leaving { background: transparent; pointer-events: none; }
.cc-root .num { font-family: "Segoe UI", "Helvetica Neue", Arial, var(--cc-font); font-variant-numeric: tabular-nums; }
.cc-root button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* the wipe: three slanted bands (red, deep red, black) */
.cc-wipe { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.cc-wipe i { position: absolute; top: -10%; bottom: -10%; left: -30%; width: 160%; transform: translateX(-140%) skewX(-18deg); }
.cc-wipe i:nth-child(1) { background: #e5172c; }
.cc-wipe i:nth-child(2) { background: #7c0915; }
.cc-wipe i:nth-child(3) { background: #000; }
.cc-root.is-wipe .cc-wipe i { animation: cc-wipe-in 520ms cubic-bezier(.7, 0, .3, 1) forwards; }
.cc-root.is-wipe .cc-wipe i:nth-child(2) { animation-delay: 60ms; }
.cc-root.is-wipe .cc-wipe i:nth-child(3) { animation-delay: 130ms; }
.cc-root.is-film .cc-wipe { animation: cc-fade-out 260ms ease forwards; }
.cc-root.is-film .cc-wipe i { transform: translateX(0) skewX(-18deg); }
.cc-root.is-leaving .cc-wipe i { animation: cc-wipe-through 560ms cubic-bezier(.7, 0, .3, 1) forwards; }
.cc-root.is-leaving .cc-wipe i:nth-child(2) { animation-delay: 40ms; }
.cc-root.is-leaving .cc-wipe i:nth-child(3) { animation-delay: 80ms; }
.cc-root.is-leaving .cc-pages { animation: cc-pages-out 560ms linear forwards; }
@keyframes cc-wipe-in { to { transform: translateX(0) skewX(-18deg); } }
@keyframes cc-wipe-through { 0% { transform: translateX(-140%) skewX(-18deg); } 48% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(140%) skewX(-18deg); } }
@keyframes cc-pages-out { 0% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(.97); } 46%, 100% { opacity: 0; } }
@keyframes cc-fade-out { to { opacity: 0; } }
@keyframes cc-fade-in { from { opacity: 0; } }

/* the film */
.cc-film { position: absolute; inset: 0; background: #000; display: grid; place-items: center; }
.cc-film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cc-film canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* 消散: the last frame lives on the canvas, breaking up over the main page as it builds in */
.cc-film.is-dust { background: transparent; pointer-events: none; }
.cc-film.is-gl video { visibility: hidden; }
.cc-film.is-fade video { transition: opacity 600ms ease; opacity: 0; }
.cc-film.is-dust .cc-skip { opacity: 0; transition: opacity 200ms ease; }
.cc-skip { position: absolute; right: 3.2%; top: 4.5%; display: inline-flex; align-items: center; gap: 2px; padding: calc(7px * var(--cc-s)) calc(14px * var(--cc-s)) calc(7px * var(--cc-s)) calc(18px * var(--cc-s));
  font: 500 calc(15px * var(--cc-s))/1 var(--cc-font) !important; letter-spacing: .12em; color: rgba(255, 255, 255, .85) !important;
  background: rgba(0, 0, 0, .35) !important; border: 1px solid rgba(255, 255, 255, .35) !important; border-radius: 16px !important;
  opacity: 0; transform: translateY(-6px); transition: opacity 300ms ease, transform 300ms ease, background 150ms ease; pointer-events: none; }
.cc-skip.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cc-skip:hover { background: rgba(229, 23, 44, .55) !important; color: #fff !important; }
.cc-skip i { width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.cc-skip i:first-of-type { margin-left: 6px; }

/* ---------- pages + stage ---------- */
.cc-pages, .cc-page { position: absolute; inset: 0; }
.cc-page { overflow: hidden; background: #050505; animation: cc-fade-in 260ms ease; }
.cc-bleed { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(18px) brightness(.7); }
.cc-stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform: translate(-50%, -50%) scale(var(--cc-s)); transform-origin: 50% 50%; }
.cc-plate { position: absolute; inset: 0; width: 1280px; height: 720px; display: block; }
.cc-logo-stage { position: absolute; inset: 0; width: 1280px; height: 720px; opacity: 0; pointer-events: none; }

/* shared chrome */
.cc-crumb { position: absolute; left: 35px; top: 20px; font-size: 13.5px; color: #f0f0f0; letter-spacing: .02em; }
.cc-x { position: absolute; left: 1218px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: #f1f1f1 !important; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); transition: transform 150ms ease, background 150ms ease; z-index: 5; }
.cc-x svg { width: 15px; height: 15px; stroke: #1b1b1b; stroke-width: 2.6; stroke-linecap: round; }
.cc-x:hover { transform: scale(1.08); background: #fff !important; }
.cc-x.is-light { position: static; background: transparent !important; box-shadow: none; width: 22px; height: 22px; }
.cc-x.is-light svg { stroke: #fff; width: 18px; height: 18px; }
.cc-help { position: absolute; left: 1168px; top: 15px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #f1f1f1 !important; color: #f1f1f1 !important;
  font: 700 16px/24px var(--cc-font) !important; text-align: center; z-index: 5; }
.cc-help:hover { background: rgba(255, 255, 255, .12) !important; }
.cc-status { position: absolute; left: 17px; top: 697px; display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.cc-status svg { width: 11px; height: 10px; fill: currentColor; margin-right: 1px; }
.cc-status span { margin-left: 13px; color: rgba(255, 255, 255, .75); }
.cc-check { width: 19px; height: 19px; margin-left: 4px; fill: none; stroke: #f4f4f4; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.cc-coin { position: absolute; left: 995px; top: 16px; width: 148px; height: 26px; display: flex; align-items: center; border-radius: 13px;
  background: linear-gradient(90deg, rgba(40, 40, 40, .85), rgba(70, 70, 70, .6)) !important; z-index: 5; }
.cc-coin img { width: 24px; height: 24px; margin-left: 6px; }
.cc-coin span { margin-left: auto; margin-right: 10px; font-size: 15px; color: #f2f2f2; }

/* ---------- 活动中心 ---------- */
.cc-rail { position: absolute; left: 22px; top: 48px; width: 24px; height: 660px; pointer-events: none; }
.cc-rail::before { content: ''; position: absolute; left: 16px; top: 22px; bottom: 0; width: 1px; background: rgba(255, 255, 255, .22); }
.cc-rail::after { content: ''; position: absolute; left: 4px; top: 40px; bottom: 0; width: 4px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 25px); }
.cc-rail b { position: absolute; left: 13px; top: 6px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #f4f4f4; }
.cc-rail i { position: absolute; left: 18px; width: 4px; height: 4px; }
.cc-rail .c1 { top: 18px; background: #26d4f4; } .cc-rail .c2 { top: 23px; background: #ff3fd5; } .cc-rail .c3 { top: 28px; background: #ffe11a; }

.cc-nav { position: absolute; inset: 0; pointer-events: none; }
.cc-tab { position: absolute; left: 35px; width: 173px; height: 50px; pointer-events: auto; text-align: left; transition: filter 150ms ease, transform 150ms ease; }
.cc-tab > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 3px; }
.cc-tab:not(.is-on):hover { filter: brightness(1.18); transform: translateX(2px); }
.cc-tab::before { content: ''; position: absolute; left: -4px; top: 22px; width: 9px; height: 4px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 2px; background: rgba(0, 0, 0, .4); }
.cc-tab__name { position: absolute; left: 15px; top: 14px; display: flex; align-items: center; font-size: 14.5px; font-weight: 500; color: #f4f4f4; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); white-space: nowrap; }
.cc-tab.is-on { left: 0; top: 106px; width: 222px; height: 63px; }
.cc-tab.is-on::before { display: none; }
.cc-tab.is-on > img { left: 35px; width: 187px; height: 63px; border-radius: 0 4px 4px 0; }
.cc-tab__band { position: absolute; left: 0; top: 0; width: 35px; height: 63px; background: repeating-linear-gradient(135deg, #e3192b 0 3px, #cf1324 3px 5px); }
.cc-tab__mark { position: absolute; left: 40px; top: 26px; width: 14px; height: 11px; border: 1px solid rgba(30, 30, 30, .55); border-radius: 1px; }
.cc-tab__mark i { position: absolute; left: 4px; top: 1.5px; border-left: 6px solid #1b1b1b; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.cc-tab.is-on .cc-tab__name { left: 58px; top: 10px; display: block; font-size: 16.2px; line-height: 21px; color: #1d1d1d; text-shadow: none; white-space: normal; }
.cc-tab__edge { position: absolute; left: 223px; top: 1px; width: 6px; height: 61px; border: 2px solid #d4192b; border-left: 0; }
.cc-tab__tag { position: absolute; left: 196px; top: 64px; width: 24px; height: 6px; background: #d4192b; clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%); }
.cc-tab-timer { position: absolute; left: 41px; width: 166px; height: 14px; display: flex; align-items: center; gap: 3px; padding-left: 4px;
  font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #ff5317, #ff6f2a 70%, rgba(255, 111, 42, .85)); }
.cc-tab-timer svg { width: 11px; height: 11px; fill: #fff; stroke: #ff5a1d; stroke-width: 1.3; }

.cc-info { position: absolute; left: 930px; top: 78px; width: 320px; height: 190px; }
.cc-info__help { position: absolute; right: 2px; top: 3px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #f0f0f0; }
.cc-info__help span { width: 20px; height: 20px; border-radius: 50%; background: #5d5d5d; color: #f4f4f4; font: 700 14px/20px var(--cc-font); text-align: center; }
.cc-info__help:hover span { background: #7a7a7a; }
.cc-info__title { position: absolute; right: 4px; top: 22px; margin: 0; font-size: 29px; font-weight: 500; line-height: 40px; color: #fafafa; white-space: nowrap; letter-spacing: .01em; }
.cc-info::after { content: ''; position: absolute; left: 323px; top: 20px; width: 2px; height: 54px; background: #f2f2f2; }
.cc-info__time { position: absolute; right: 4px; top: 59px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #f2f2f2; white-space: nowrap; }
.cc-info__time svg { width: 13px; height: 13px; fill: #f4f4f4; stroke: #111; stroke-width: 1.5; }
.cc-info__pill { position: absolute; right: 4px; top: 88px; width: 66px; height: 19px; border-radius: 10px; background: #ffe01a; color: #191919; font-size: 12.5px; font-weight: 500; line-height: 19px; text-align: center; }
.cc-info__hard { position: absolute; left: 20px; top: 120px; font-size: 15px; font-weight: 700; color: #ffd423; letter-spacing: .02em; }
.cc-info__hard::after { content: ''; position: absolute; left: 0; top: 23px; width: 297px; height: 2px; background: rgba(205, 205, 205, .75); }
.cc-info__desc { position: absolute; left: 20px; top: 150px; width: 300px; margin: 0; font-size: 13.6px; line-height: 18px; color: #f2f2f2; }

.cc-mcard { position: absolute; left: 263px; width: 214px; text-align: right; transition: filter 150ms ease, transform 150ms ease; }
.cc-mcard:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cc-mcard img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.cc-mcard--tasks { top: 518px; height: 39px; }
.cc-mcard__name { position: absolute; right: 7px; font-size: 16px; font-weight: 500; color: #fff; }
.cc-mcard--tasks .cc-mcard__name { top: 1px; }
.cc-mcard__n { position: absolute; right: 7px; top: 19px; font-size: 15px; color: #fff; }
.cc-mcard__time { position: absolute; left: 124px; top: 36px; width: 84px; height: 19px; font-size: 15px; line-height: 19px; text-align: center; color: #f4f4f4; }

.cc-record { position: absolute; left: 940px; top: 505px; width: 320px; height: 190px; }
.cc-record__bar { position: absolute; left: 10px; top: 27px; width: 295px; height: 25px; padding-left: 8px; font-size: 15px; line-height: 25px; color: #f2f2f2;
  background: linear-gradient(90deg, rgba(72, 72, 72, .82), rgba(62, 62, 62, .6)); }
.cc-record__bar i { position: absolute; right: 64px; top: 3px; width: 38px; height: 19px; opacity: .35;
  background: linear-gradient(60deg, transparent 47%, #ddd 48% 52%, transparent 53%) 0 0 / 19px 19px, linear-gradient(-60deg, transparent 47%, #ddd 48% 52%, transparent 53%) 0 0 / 19px 19px; }
.cc-record__n { position: absolute; left: 214px; top: 1px; font-size: 54px; line-height: 56px; font-weight: 500; color: #fafafa; }
.cc-record__glyph { position: absolute; left: 257px; top: 12px; width: 39px; height: 39px; mix-blend-mode: screen; }
.cc-go { position: absolute; left: 103px; top: 137px; width: 202px; height: 38px; display: flex; align-items: center; border-radius: 20px;
  background: linear-gradient(180deg, #fbfbfb, #ececec) !important; box-shadow: 0 0 0 2px #2d2d2d, 0 0 0 4px rgba(240, 240, 240, .9), 0 4px 12px rgba(0, 0, 0, .45); transition: filter 150ms ease, transform 150ms ease; }
.cc-go:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cc-go__line { position: relative; margin-left: 25px; width: 82px; height: 1px; background: #8a8a8a; }
.cc-go__line::before, .cc-go__line::after { content: ''; position: absolute; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: #8a8a8a; }
.cc-go__line::before { left: -2px; } .cc-go__line::after { right: -2px; }
.cc-go span { margin-left: 20px; font-size: 16px; font-weight: 500; color: #2b2b2b; letter-spacing: .08em; }
.cc-go__icon { margin-left: auto; margin-right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #3a3a3a; position: relative; }
.cc-go__icon::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2.5px solid #f0f0f0; border-right-color: transparent; transform: rotate(-30deg); }

/* entry build after the film: logo stage → the scene, the tabs slide in, the panels rise */
.cc-main.is-fresh .cc-logo-stage { animation: cc-logo 1500ms cubic-bezier(.2, .7, .2, 1) forwards; }
.cc-main.is-fresh .cc-plate { animation: cc-plate 1600ms cubic-bezier(.25, .7, .2, 1) backwards; }
.cc-main.is-fresh .cc-bleed { animation: cc-fade-in 900ms ease 500ms backwards; }
.cc-main.is-fresh .cc-tab, .cc-main.is-fresh .cc-tab-timer { animation: cc-tab-in 440ms cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(140ms + var(--i) * 45ms); }
.cc-main.is-fresh .cc-crumb, .cc-main.is-fresh .cc-rail, .cc-main.is-fresh .cc-x { animation: cc-fade-in 400ms ease 120ms backwards; }
.cc-main.is-fresh .cc-info { animation: cc-rise 520ms cubic-bezier(.2, .8, .2, 1) 780ms backwards; }
.cc-main.is-fresh .cc-mcard { animation: cc-rise 480ms cubic-bezier(.2, .8, .2, 1) 900ms backwards; }
.cc-main.is-fresh .cc-record { animation: cc-rise 520ms cubic-bezier(.2, .8, .2, 1) 980ms backwards; }
.cc-main.is-fresh::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 30, 50, .0) 0 7px, rgba(255, 30, 50, .55) 7px 9px, rgba(255, 30, 50, 0) 9px 23px);
  animation: cc-glitch 300ms steps(5) forwards; }
.cc-main.is-back .cc-stage { animation: cc-back 360ms cubic-bezier(.2, .8, .2, 1); }
@keyframes cc-logo { 0% { opacity: 0; transform: scale(1.32); filter: brightness(2.4) blur(5px); } 14% { opacity: 1; filter: none; }
  55% { opacity: 1; transform: scale(1); } 82% { opacity: 0; transform: scale(.95); } 100% { opacity: 0; } }
@keyframes cc-plate { 0%, 36% { opacity: 0; transform: scale(1.18) translateY(-24px); filter: blur(7px) brightness(1.7); } 78% { opacity: 1; filter: none; } 100% { transform: none; } }
/* …or through the film's dissolve: its title frame was the logo stage, so the scene is already there under the dust */
.cc-main.is-dusted .cc-logo-stage { animation: none; opacity: 0; }
.cc-main.is-dusted .cc-plate { animation: cc-plate-settle 1400ms cubic-bezier(.2, .7, .2, 1) backwards; }
.cc-main.is-dusted .cc-bleed { animation: none; }
.cc-main.is-dusted::after { display: none; }
@keyframes cc-plate-settle { from { transform: scale(1.06); filter: brightness(1.35); } }
/* mounted early under the opaque film: hold the build until the dissolve starts */
.cc-main.is-held, .cc-main.is-held * { animation-play-state: paused !important; }
@keyframes cc-tab-in { from { opacity: 0; transform: translateX(-60px); } }
@keyframes cc-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes cc-glitch { 0% { opacity: 1; transform: translateX(-14px); } 40% { opacity: .8; transform: translateX(10px); } 100% { opacity: 0; transform: none; } }
@keyframes cc-back { from { opacity: .4; transform: translate(-50%, -50%) scale(calc(var(--cc-s) * 1.04)); } }

/* ---------- dialogs ---------- */
.cc-modal { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; animation: cc-fade-in 200ms ease; }
.cc-dim { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cc-rules { width: calc(580px * var(--cc-s)); max-height: 80%; display: flex; flex-direction: column; background: #f2f2f2; color: #333; border-radius: 4px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6); font-size: calc(13px * var(--cc-s)); animation: cc-pop 240ms cubic-bezier(.2, .8, .2, 1); }
.cc-rules header { position: relative; display: flex; align-items: center; justify-content: center; height: calc(44px * var(--cc-s)); background: #2c2c2c; color: #fff; font-size: calc(15px * var(--cc-s)); }
.cc-rules header .cc-x { position: absolute; right: calc(12px * var(--cc-s)); top: 50%; transform: translateY(-50%); }
.cc-rules__body { padding: calc(16px * var(--cc-s)) calc(26px * var(--cc-s)); overflow: auto; line-height: 1.7; }
.cc-rules__body h3 { margin: .6em 0 .2em; font-size: 1.05em; color: #222; }
.cc-rules__body p { margin: 0 0 .4em; }
.cc-rules__body .t-note { margin-top: 1em; color: #a33; }
@keyframes cc-pop { from { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .cc-root *, .cc-card, .lobby-hub.cc-leaving > *, .lobby-hub.cc-returning > * { animation-duration: 1ms !important; animation-delay: 0ms !important; }
}

/* ---------- 协议空间 (敌人详情): the reference's light sheet at 154,110 (972×500) on the 1280×720 stage, its ten dark
   cards (82×117, pitch 92×128) and the 敌方情报 column — filled with this game's leaders and elites ---------- */
.cs-sheet__panel { position: absolute; left: 154px; top: 110px; width: 972px; height: 500px; background: #ecebea; border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45); color: #2b2b2b; overflow: hidden; animation: cc-pop 220ms cubic-bezier(.2, .8, .2, 1); }
.cs-sheet__panel > header { height: 46px; display: flex; align-items: center; padding-left: 26px; font-size: 15px; letter-spacing: .5px;
  color: #333; border-bottom: 1px solid #c9c8c6; }
.cs-sheet__panel .cs-back { position: absolute; right: 10px; top: 9px; width: 108px; height: 28px; border: 2px solid #4a4a4a; border-radius: 14px;
  background: #f6f6f5; color: #333; font-size: 14px; display: flex; align-items: center; justify-content: flex-end; padding-right: 20px; cursor: pointer; }
.cs-back i { position: absolute; left: 3px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #3c3c3c; }
.cs-back i::before { content: ''; position: absolute; left: 7px; top: 6px; width: 6px; height: 6px; border-left: 2px solid #f2f2f2; border-bottom: 2px solid #f2f2f2; transform: rotate(45deg); }
.cs-back:hover { background: #fff; }
.cs-sheet__hatch { position: absolute; right: 0; bottom: 28px; width: 47px; height: 30px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, #c4c3c1 0 4px, transparent 4px 9px); }

.cs-en__h { position: absolute; top: 64px; margin: 0; font-size: 15px; font-weight: 500; color: #333; }
.cs-en__h::after { content: ''; position: absolute; left: 0; top: 23px; width: 32px; height: 2px; background: #bdbcba; }
.cs-en__h--list { left: 29px; }
.cs-en__h--info { left: 434px; }

.cs-en__grid { position: absolute; left: 29px; top: 105px; display: grid; grid-template-columns: repeat(4, 82px); grid-auto-rows: 117px; gap: 11px 10px; }
.cs-sheet__panel .cs-en__card { position: relative; width: 82px; height: 117px; padding: 0; border: 0; border-radius: 2px; overflow: hidden; cursor: pointer;
  background: repeating-radial-gradient(ellipse at 30% 70%, #151515 0 5px, #262626 5px 6px), #121212; transition: transform 120ms ease, background-color 120ms ease; }
.cs-en__card.is-slot { cursor: default; background: #d9d8d6; }
.cs-en__topo { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .7)); pointer-events: none; z-index: 1; }
.cs-en__ticks { position: absolute; left: 5px; top: 3px; z-index: 2; font-size: 6px; letter-spacing: 1px; color: #8a8a8a; }
.cs-en__ticks::before { content: ''; display: inline-block; width: 14px; height: 2px; margin-right: 3px; vertical-align: middle; background: #8a8a8a; }
.cs-en__card img { position: absolute; left: 4px; top: 16px; width: 74px; height: 74px; object-fit: cover; }
.cs-en__rank { position: absolute; left: 5px; bottom: 4px; z-index: 2; font-size: 10px; letter-spacing: 1px; color: #bdbdbd; }
.cs-en__card:hover:not(.is-slot) { transform: translateY(-2px); }
.cs-en__card.is-on { background: #8e8e8c; box-shadow: 0 0 0 2px #f4f4f2, 0 0 0 3px #d8bd4a; }
.cs-en__card.is-on .cs-en__rank, .cs-en__card.is-on .cs-en__ticks { color: #f0f0f0; }

.cs-en__head { position: absolute; left: 434px; top: 106px; width: 508px; height: 54px; display: flex; align-items: flex-end; gap: 6px;
  padding: 0 0 7px 10px; box-sizing: border-box; animation: cc-fade-in 200ms ease; }
.cs-en__band { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(115deg, transparent 52%, rgba(255, 255, 255, .35) 52% 56%, transparent 56% 62%, rgba(255, 255, 255, .25) 62% 64%, transparent 64%), linear-gradient(90deg, #cfcfcd, #dcdcda 60%, #c3c3c1); }
.cs-en__band i { position: absolute; left: 4px; top: 3px; font-size: 8px; font-style: normal; font-weight: 700; color: #6c6c6c; letter-spacing: .5px; }
.cs-en__art { position: absolute; right: 40px; bottom: 0; z-index: 1; width: 112px; height: 112px; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.cs-en__name { position: relative; z-index: 2; font-size: 21px; font-weight: 600; color: #222; line-height: 1; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-en__lv { position: relative; z-index: 2; font-size: 11px; color: #555; padding-left: 7px; border-left: 1px solid #8c8c8c; line-height: 1; }
.cs-en__lv i { font-style: normal; font-size: 9px; }
.cs-en__no { position: relative; z-index: 2; font-size: 32px; font-weight: 500; color: #2a2a2a; line-height: .8; }

.cs-en__body { position: absolute; left: 434px; top: 174px; width: 508px; bottom: 60px; overflow-y: auto; font-size: 13.5px; color: #444; }
.cs-en__label { display: block; width: 140px; height: 16px; line-height: 16px; padding-left: 6px; box-sizing: border-box; background: #cbcac8; font-size: 12px; color: #333; }
.cs-en__body p { margin: 8px 2px 18px; line-height: 1.5; }
.cs-en__body p.cs-en__ab { margin: 6px 2px; display: flex; gap: 6px; }
.cs-en__ab i { flex: none; width: 13px; height: 10px; margin-top: 5px; border-radius: 1px; background: #8a8a88; }

/* ---------- 选择指标 (cs-page): the contract screen of the reference (4:33–5:53), in its 1280×720 stage pixels ---------- */
.cs-page .cs-star { width: 14px; height: 14px; vertical-align: -1px; }
.cs-page .cs-star--big { width: 46px; height: 48px; }
.cs-title { position: absolute; left: 32px; top: 58px; font-size: 22px; font-weight: 600; color: #fff; letter-spacing: 1px; line-height: 30px; }
.cs-title__block { position: absolute; left: -32px; top: 2px; width: 22px; height: 38px;
  background: repeating-linear-gradient(160deg, #f2f2f2 0 6px, #2a2a2a 6px 8px); }
.cs-title__deco { position: absolute; left: 0; top: 32px; display: flex; gap: 3px; }
.cs-title__deco i { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 5px solid #9a9a9a; }
.cs-title__deco b { position: absolute; left: 108px; top: -26px; width: 22px; height: 16px; opacity: .25;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px); }
.cs-topline { position: absolute; left: 135px; top: 62px; width: 1110px; height: 1px; background: rgba(255, 255, 255, .35); }
.cs-vsep { position: absolute; left: 950px; top: 100px; width: 1px; height: 480px; background: rgba(255, 255, 255, .28); }

.cs-page .cs-pill { position: absolute; top: 70px; height: 29px; border-radius: 15px; display: flex; align-items: center; font-size: 13.5px; }
.cs-page .cs-pill--first { left: 628px; width: 162px; background: #1c1c1c; color: #f0f0f0; box-shadow: inset 0 0 0 1px #3a3a3a; }
.cs-pill--first img { width: 18px; height: 18px; margin-left: 11px; }
.cs-pill--first span { flex: 1; text-align: center; padding-right: 4px; }
.cs-pill--first i { width: 20px; height: 20px; margin-right: 4px; border-radius: 50%; background: #f2f2f2; color: #1c1c1c; font: 700 12px/20px Georgia, serif; text-align: center; font-style: normal; }
.cs-page .cs-pill--share { left: 806px; width: 136px; background: #f4f4f4; color: #2a2a2a; }
.cs-pill--share span { flex: 1; text-align: center; padding-left: 8px; }
.cs-pill--share img { width: 20px; height: 20px; margin-right: 12px; }
.cs-page .cs-pill:hover { filter: brightness(1.12); }

.cs-sort { position: absolute; left: 958px; top: 70px; width: 288px; height: 29px; z-index: 8; display: flex; border-radius: 15px; background: #ececec; color: #2a2a2a; }
.cs-page .cs-sort__pick { position: relative; width: 206px; height: 29px; display: flex; align-items: center; padding-left: 15px; font-size: 13.5px; border-radius: 15px 0 0 15px; }
.cs-sort__pick::after { content: ''; position: absolute; right: 0; top: 7px; width: 1px; height: 15px; background: #8a8a8a; }
.cs-sort .cs-caret { position: absolute; right: 13px; top: 12px; }
.cs-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #333; }
.cs-sort.is-open .cs-sort__pick { background: #9b9b9b; color: #fff; }
.cs-sort.is-open .cs-caret { border-top: 0; border-bottom: 6px solid #fff; }
.cs-page .cs-sort__dir { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 7px; font-size: 13.5px; }
.cs-sort__dir img, .cs-intel__sort img { width: 17px; height: 14px; transition: transform 160ms ease; }
.cs-sort__dir img.is-up, .cs-intel__sort img.is-up { transform: scaleY(-1); }
.cs-menu { position: absolute; left: 0; top: 45px; width: 288px; padding: 0; border-radius: 4px; overflow: hidden; background: #d8d8d8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4); animation: cc-fade-in 140ms ease; }
.cs-page .cs-menu button { position: relative; display: flex; align-items: center; width: 100%; height: 40px; padding-left: 15px; font-size: 14px; color: #333; }
.cs-page .cs-menu button.is-on { background: #5e5e5e; color: #f2f2f2; }
.cs-menu button.is-on::before { content: ''; position: absolute; left: 3px; top: 10px; width: 2px; height: 20px; background: #f2f2f2; }
.cs-page .cs-menu button:not(.is-on):hover { background: #e6e6e6; }
.cs-tick { position: absolute; right: 18px; top: 12px; width: 6px; height: 12px; border-right: 2px solid #f2f2f2; border-bottom: 2px solid #f2f2f2; transform: rotate(45deg); }
/* the click-away layer sits under the stage: while the menu is open only the sort control takes clicks */
.cs-menu-catch { position: absolute; inset: 0; z-index: 5; }
.cs-page:has(.cs-menu-catch) > .cc-stage { z-index: 6; pointer-events: none; }
.cs-page:has(.cs-menu-catch) .cs-sort { pointer-events: auto; }

/* board: three level rows (label + tile band); tiles sit in a track that scrolls sideways across the bands */
.cs-board { position: absolute; left: 0; top: 0; }
.cs-row { position: absolute; left: 0; width: 950px; height: 128px; pointer-events: none; }
.cs-row__label { position: absolute; left: 22px; top: 0; width: 73px; height: 128px; box-sizing: border-box; border-left: 3px solid var(--lc);
  background: linear-gradient(90deg, rgba(38, 38, 40, .9), rgba(28, 28, 30, .55)); }
.cs-row__label b { position: absolute; left: 13px; top: 46px; font-size: 32px; font-weight: 500; line-height: 1; color: #fff; }
.cs-row:nth-of-type(2) .cs-row__label b { color: #ffd9b0; text-shadow: 0 0 8px rgba(255, 140, 40, .5); }
.cs-row:nth-of-type(3) .cs-row__label b { color: #ff6a55; text-shadow: 0 0 8px rgba(255, 60, 40, .45); }
.cs-row__label .cs-star { position: absolute; left: 36px; top: 56px; width: 22px; height: 22px; }
.cs-row__tri { position: absolute; right: 6px; top: 4px; display: flex; flex-direction: column; gap: 2px; }
.cs-row__tri i { width: 0; height: 0; border-top: 7px solid transparent; border-right: 10px solid rgba(255, 255, 255, .18); }
.cs-row__band { position: absolute; left: 103px; top: 0; width: 847px; height: 128px; background: rgba(18, 18, 20, .9); }
.cs-board__sep { position: absolute; left: 95px; top: 145px; width: 1px; height: 400px; background: rgba(255, 255, 255, .3); }
.cs-link { position: absolute; width: 7px; height: 36px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 2px, #7a7a7a 2px 5px, transparent 5px); }
.cs-link b { position: absolute; left: 0; width: 7px; height: 2px; background: #7a7a7a; }
.cs-link b:first-child { top: 0; }
.cs-link b:last-child { bottom: 0; }

.cs-track { position: absolute; left: 103px; top: 0; width: 847px; height: 575px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; pointer-events: none; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-track__in { position: relative; height: 575px; }
.cs-track .cs-tile:not(.cs-tile--void) { pointer-events: auto; }
.cs-hlink { position: absolute; width: 26px; height: 9px; margin-top: -4px; pointer-events: none;
  background: linear-gradient(180deg, transparent 3px, #7a7a7a 3px 5px, transparent 5px); }
.cs-hlink b { position: absolute; top: 0; width: 2px; height: 9px; background: #7a7a7a; }
.cs-hlink b:first-child { left: 4px; }
.cs-hlink b:last-child { right: 4px; }
.cs-scroll { position: absolute; top: 300px; width: 26px; height: 60px; border: 0; padding: 0; cursor: pointer; z-index: 3;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7)); }
.cs-scroll::after { content: ''; position: absolute; left: 7px; top: 24px; width: 10px; height: 10px; border-top: 2px solid #f4c21c; border-right: 2px solid #f4c21c; transform: rotate(45deg); }
.cs-scroll--r { left: 924px; }
.cs-scroll--l { left: 103px; transform: scaleX(-1); }
.cs-scroll:hover::after { border-color: #fff; }
.cs-page .cs-tile { position: absolute; width: 72px; height: 93px; box-sizing: border-box; border: 1px solid #4c4c4c; background: #121213;
  transition: background-color 140ms ease, border-color 140ms ease; }
.cs-tile::before, .cs-tile::after { content: ''; position: absolute; width: 5px; height: 5px; border: 1px solid #9a9a9a; pointer-events: none; }
.cs-tile::before { left: -2px; bottom: -2px; border-right: 0; border-top: 0; }
.cs-tile::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.cs-page .cs-tile:not(.cs-tile--void):hover { border-color: #8a8a8a; background: #1d1d1e; }
.cs-tile__flag { position: absolute; left: 3px; top: 3px; width: 18px; height: 20px; }
.cs-tile__glyph { position: absolute; left: 14px; top: 25px; width: 44px; height: 43px; transition: opacity 140ms ease; }
.cs-page .cs-tile.is-on { margin-top: -12px; height: 105px; border-color: #ff6a55; background: linear-gradient(180deg, #e2301f, #c41f15); }
.cs-page .cs-tile.is-on:hover { background: linear-gradient(180deg, #ea3a28, #cc2519); }
.cs-tile.is-on .cs-tile__glyph { top: 35px; }
.cs-tile__check { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 2px; background: #f4f4f4; }
.cs-tile__check::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border-right: 2.5px solid #d22a1d; border-bottom: 2.5px solid #d22a1d; transform: rotate(45deg); }
.cs-tile__mark { position: absolute; left: 27px; top: -13px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid #f4c21c; }
.cs-tile__cancel { position: absolute; left: -1px; top: calc(100% + 1px); width: 72px; height: 27px; line-height: 27px; text-align: center; font-size: 13px;
  color: #f0f0f0; background: rgba(90, 90, 90, .92); white-space: nowrap; animation: cc-fade-in 120ms ease; }
.cs-tile.is-clash .cs-tile__glyph { opacity: .3; }
.cs-tile__clash { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-size: 14px; color: #fff; line-height: 1; }
.cs-tile__clash i { position: absolute; left: 27px; top: 21px; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; }
.cs-tile__clash i::after { content: ''; position: absolute; left: 6px; top: -1px; width: 2px; height: 16px; background: #fff; transform: rotate(-45deg); }
.cs-page .cs-tile--void { border-color: #2c2c2c; pointer-events: none;
  background: linear-gradient(45deg, transparent 48.6%, #3a3a3a 48.6% 51.4%, transparent 51.4%) center / 28px 28px no-repeat,
    linear-gradient(-45deg, transparent 48.6%, #3a3a3a 48.6% 51.4%, transparent 51.4%) center / 28px 28px no-repeat, rgba(18, 18, 20, .6); }
.cs-tile--void::before, .cs-tile--void::after { border-color: #3a3a3a; }
.cs-tile__id { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 10px; line-height: 1; letter-spacing: .08em; color: #8a8a8a; pointer-events: none; }
.cs-tile.is-on .cs-tile__id { color: rgba(255, 255, 255, .85); }
.cs-tile.is-clash .cs-tile__id { opacity: .4; }
/* a tag's symbol: the video's glyph or a drawn one, its Ⅰ/Ⅱ/Ⅲ mark on top (js/ui/crisisTags.js Glyph) */
.cs-glyph { display: block; width: 44px; height: 43px; }
.cs-glyph > img, .cs-glyph > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* V1.1 groups: a header over each group's columns, a faint rule between groups */
.cs-ghead { position: absolute; top: 112px; height: 24px; display: flex; align-items: center; gap: 7px; box-sizing: border-box; padding-right: 7px; overflow: hidden;
  white-space: nowrap; font-size: 12.5px; color: #e8e8e8; background: linear-gradient(90deg, rgba(20, 20, 22, .92), rgba(20, 20, 22, .55)); border-top: 2px solid rgba(255, 255, 255, .5); }
.cs-ghead b { display: grid; place-items: center; width: 22px; height: 100%; flex: none; font-size: 13px; font-weight: 800; color: #1a1a1a; background: #f2f2f2; }
.cs-ghead em { margin-left: auto; padding: 0 5px; font-size: 12px; font-style: normal; line-height: 16px; color: #fff; background: #d8261c; }
.cs-gsep { position: absolute; top: 112px; width: 1px; height: 432px; background: rgba(255, 255, 255, .14); pointer-events: none; }
/* press-and-drag: the empty board under the tiles takes the pointer (the track lets it through) */
.cs-board__hit { position: absolute; left: 103px; top: 104px; width: 847px; height: 446px; cursor: grab; touch-action: pan-y; }
.cs-track .cs-tile { touch-action: pan-y; }
.cs-board.is-dragging, .cs-board.is-dragging * { cursor: grabbing !important; }
.cs-board.is-dragging .cs-tile { pointer-events: none; }

/* 单人 / 四人: rated apart */
.cs-mode { position: absolute; left: 330px; top: 70px; height: 29px; display: flex; align-items: center; }
.cs-page .cs-mode button { width: 66px; height: 29px; font-size: 13.5px; color: #f0f0f0; background: #1c1c1c; box-shadow: inset 0 0 0 1px #3a3a3a; }
.cs-page .cs-mode button:first-child { border-radius: 15px 0 0 15px; }
.cs-page .cs-mode button:nth-child(2) { border-radius: 0 15px 15px 0; }
.cs-page .cs-mode button.is-on { color: #2a2a2a; background: #f4f4f4; box-shadow: none; }
.cs-page .cs-mode button:not(.is-on):hover { background: #2c2c2e; }

.cs-set { position: absolute; left: 408px; top: 145px; width: 542px; height: 399px; pointer-events: none; }
.cs-set img { position: absolute; inset: 0; width: 542px; height: 399px; }
.cs-set__name { position: absolute; left: 260px; top: 102px; font-size: 18px; color: #8c8c8c; }
.cs-set__need { position: absolute; left: 260px; top: 148px; font-size: 13.5px; color: #f0f0f0; }
.cs-set__lv { position: absolute; left: 258px; top: 186px; display: flex; align-items: center; gap: 8px; color: #8c8c8c; }
.cs-set__lv .cs-star { width: 34px; height: 34px; opacity: .55; }
.cs-set__lv b { font-size: 36px; font-weight: 500; line-height: 1; }

/* picked list (right column) and its rows, shared with 综合情报 (cs-item--sheet) */
.cs-list { position: absolute; left: 950px; top: 107px; width: 296px; padding-left: 8px; box-sizing: border-box; height: 470px; overflow-y: auto; scrollbar-width: none; }
.cs-item { position: relative; min-height: 70px; margin-bottom: 9px; background: rgba(66, 66, 68, .94); color: #f2f2f2; animation: cc-fade-in 160ms ease; }
.cs-lv { position: absolute; left: 0; top: 5px; width: 45px; height: 16px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.cs-lv b { font-size: 14px; line-height: 1; color: #fff; }
.cs-lv .cs-star { width: 14px; height: 14px; }
.cs-lv__arrow { position: absolute; left: -7px; top: 2px; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #f4c21c; }
.cs-item__glyph { position: absolute; left: 10px; top: 25px; width: 32px; height: 32px; }
.cs-item__sep { position: absolute; left: 51px; top: 24px; width: 1px; height: 36px; background: #6e6e6e; }
.cs-item__text { position: relative; margin: 0 50px 0 59px; padding: 4px 0 9px; }
.cs-item__id { display: inline-block; margin-right: 6px; padding: 0 4px; font-size: 11px; font-style: normal; font-weight: 700; line-height: 16px; vertical-align: 1px; color: #1a1a1a; background: #d8d8d8; border-radius: 2px; }
.cs-item__text b { display: block; font-size: 13.5px; font-weight: 500; line-height: 22px; }
.cs-item__text span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: #9e9e9e; }
.cs-item__text em { font-style: normal; }
.cs-item__text em.is-on { color: #ffa21f; }
.cs-item__flag { position: absolute; right: 34px; top: 5px; width: 16px; height: 18px; }
.cs-page .cs-item__del { position: absolute; right: 8px; top: 6px; bottom: 6px; width: 22px; height: auto; border-radius: 2px; background: #dadada; }
.cs-page .cs-item__del:hover { background: #fff; }
.cs-item__del i { position: absolute; left: 6px; top: 50%; margin-top: -4px; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid #3a3a3a; border-top: 0; border-radius: 0 0 2px 2px; }
.cs-item__del i::before { content: ''; position: absolute; left: -3px; top: -4px; width: 12px; height: 2px; background: #3a3a3a; }
.cs-item__del i::after { content: ''; position: absolute; left: 2px; top: -7px; width: 2px; height: 2px; border: 1px solid #3a3a3a; border-bottom: 0; }
.cs-empty { position: absolute; left: 0; right: 0; top: 232px; text-align: center; }
.cs-empty b { display: block; font-size: 17px; font-weight: 500; color: #f0f0f0; letter-spacing: 1px; }
.cs-empty span { display: block; margin-top: 6px; font-size: 12.5px; color: #a8a8a8; }

.cs-page .cs-clear { position: absolute; left: 830px; top: 594px; width: 120px; height: 28px; border-radius: 14px; background: rgba(36, 36, 38, .85);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; font-size: 13.5px; color: #f0f0f0; animation: cc-fade-in 160ms ease; }
.cs-page .cs-clear:hover { background: rgba(60, 60, 62, .9); }
.cs-clear i { position: absolute; left: 10px; top: 6px; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid #f0f0f0; border-top-color: transparent; border-radius: 50%; transform: rotate(-30deg); }
.cs-clear i::after { content: ''; position: absolute; left: -3px; top: -1px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid #f0f0f0; transform: rotate(-60deg); }

/* bottom bar: 最高纪录 · 综合情报 | 指标总计 · 行动开始 */
.cs-record { position: absolute; left: 30px; top: 632px; width: 140px; height: 50px; }
.cs-record .cs-star--big { position: absolute; left: 0; top: 0; }
.cs-record b { position: absolute; left: 65px; top: 2px; font-size: 32px; font-weight: 500; line-height: 1; color: #fff; }
.cs-record span { position: absolute; left: 66px; top: 38px; font-size: 12px; color: #d8d8d8; white-space: nowrap; }
.cs-bsep { position: absolute; left: 178px; top: 641px; width: 1px; height: 40px; background: rgba(255, 255, 255, .3); }
.cs-page .cs-intel { position: absolute; left: 199px; top: 640px; width: 158px; height: 42px; border-radius: 21px; background: rgba(58, 58, 60, .92); color: #f2f2f2; }
.cs-page .cs-intel:hover { background: rgba(78, 78, 80, .95); }
.cs-intel img { position: absolute; left: 16px; top: 5px; width: 33px; height: 33px; }
.cs-intel span { position: absolute; left: 74px; top: 9px; font-size: 15px; }
.cs-intel em { position: absolute; left: 84px; top: 32px; font-size: 5px; font-style: normal; letter-spacing: .5px; color: #8c8c8c; white-space: nowrap; }
.cs-score { position: absolute; left: 836px; top: 640px; width: 124px; height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-right: 18px; box-sizing: border-box;
  background: linear-gradient(90deg, transparent, rgba(20, 20, 22, .75) 35%); }
.cs-score b { font-size: 32px; font-weight: 500; line-height: 1; color: #fff; letter-spacing: 1px; }
.cs-score .cs-star { width: 26px; height: 26px; }
.cs-page .cs-go { position: absolute; left: 952px; top: 640px; width: 294px; height: 42px; border-radius: 21px; color: #fff;
  background: linear-gradient(90deg, #c71d1f, #dc2423 40%, #d21e20); box-shadow: 0 0 18px rgba(220, 30, 30, .35); }
.cs-page .cs-go:hover { filter: brightness(1.1); }
.cs-page .cs-go.is-idle { filter: saturate(.85) brightness(.9); }
.cs-go img { position: absolute; left: 28px; top: -22px; width: 106px; height: 96px; pointer-events: none; }
.cs-go span { position: absolute; right: 27px; top: 8px; font-size: 19px; letter-spacing: 1px; }
.cs-go em { position: absolute; right: 30px; top: 31px; font-size: 7px; font-style: normal; letter-spacing: 1px; color: rgba(255, 255, 255, .7); }
.cs-bottomline { position: absolute; left: 0; top: 713px; width: 1280px; height: 7px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 22px), linear-gradient(90deg, #a5121a, #d01b21 50%, #a5121a); }

/* ---------- 综合情报 (the cs-sheet panel shared with 协议空间): 关卡/敌人信息 left, 当前指标总计 + picked rows right ---------- */
.cs-sheet__panel > header .cc-x.is-dark { left: auto; right: 12px; top: 9px; width: 28px; height: 28px; background: transparent !important; box-shadow: none; }
.cs-sheet__panel > header .cc-x.is-dark svg { width: 20px; height: 20px; stroke: #333; stroke-width: 2.4; }
.cs-intel__info { position: absolute; left: 26px; top: 65px; width: 510px; height: 357px; box-sizing: border-box; padding: 14px 16px 0 37px; background: #dcdbd9; color: #444; }
.cs-intel__info h4 { position: relative; margin: 6px 0 6px; font-size: 16px; font-weight: 500; color: #333; }
.cs-intel__info h4::before { content: ''; position: absolute; left: -24px; top: 8px; width: 9px; height: 6px; border-radius: 1px 3px 1px 1px; background: #3a3a3a; }
.cs-intel__info h4::after { content: ''; display: block; width: 104px; height: 3px; margin-top: 2px; background: linear-gradient(90deg, #c4c3c1, transparent); }
.cs-intel__info p { margin: 0 0 22px; font-size: 13.5px; line-height: 20px; }
.cs-sheet__panel .cs-intel__enemies { position: absolute; left: 27px; top: 439px; width: 171px; height: 32px; border-radius: 16px; background: #3e3e3e; color: #f2f2f2; }
.cs-sheet__panel .cs-intel__enemies:hover { background: #555; }
.cs-intel__enemies img { position: absolute; left: 22px; top: -5px; width: 44px; height: 38px; }
.cs-intel__enemies span { position: absolute; left: 92px; top: 6px; font-size: 14px; }
.cs-sheet__vsep { position: absolute; left: 548px; top: 65px; width: 1px; height: 405px; background: #cbcac8; }
.cs-intel__sum { position: absolute; left: 559px; top: 65px; width: 383px; height: 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 7px;
  box-sizing: border-box; background: #262626; color: #f2f2f2; font-size: 13px; }
.cs-intel__sum b { display: flex; align-items: center; gap: 3px; font-weight: 500; }
.cs-intel__sum .cs-star { width: 14px; height: 14px; }
.cs-intel__list { position: absolute; left: 559px; top: 95px; width: 383px; height: 330px; overflow-y: auto; scrollbar-width: none; }
.cs-item--sheet { background: #3d3d3d; }
.cs-item--sheet .cs-item__text { margin-right: 30px; }
.cs-item--sheet .cs-item__flag { right: 8px; }
.cs-sheet .cs-star { width: 14px; height: 14px; }
.cs-intel__sort { position: absolute; left: 557px; top: 441px; width: 246px; height: 30px; box-sizing: border-box; border: 1px solid #c4c4c4; border-radius: 15px; background: #f7f7f6; color: #333; font-size: 13.5px; }
.cs-intel__sort > span { position: absolute; left: 14px; top: 5px; }
.cs-intel__sort .cs-caret { position: absolute; left: 141px; top: 11px; }
.cs-intel__bar { position: absolute; left: 166px; top: 6px; width: 1px; height: 16px; background: #888; }
.cs-sheet__panel .cs-intel__sort button { position: absolute; left: 174px; top: 0; right: 0; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 10px; color: #333; }

/* ---------- 首通奖励: dark title band + light body with the 1/2/3 → 15/30/45 coin table ---------- */
.cs-first__panel { position: absolute; left: 155px; top: 200px; width: 970px; height: 320px; overflow: hidden; border-radius: 3px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  animation: cc-pop 220ms cubic-bezier(.2, .8, .2, 1); }
.cs-first__panel > header { position: relative; height: 70px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(40, 40, 42, .94); color: #fff; }
.cs-first__panel > header b { position: relative; font-size: 18px; font-weight: 500; letter-spacing: 1px; }
.cs-first__wm { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); font-size: 84px; font-weight: 900; letter-spacing: 18px; color: rgba(255, 255, 255, .05); white-space: nowrap; pointer-events: none; }
.cs-first__dots { position: absolute; left: 455px; top: 54px; width: 60px; height: 2px; background: repeating-linear-gradient(90deg, #8a8a8a 0 2px, transparent 2px 5px); }
.cs-first__panel > header .cc-x { position: absolute; right: 14px; top: 24px; }
.cs-first__body { height: 250px; box-sizing: border-box; padding: 25px 0 0 125px; background: #f2f2f1; color: #333; }
.cs-first__flag { position: relative; display: inline-flex; align-items: center; height: 18px; padding: 0 6px 0 40px; background: #ff9670; color: #fff; font-size: 13px; }
.cs-first__flag img { position: absolute; left: 8px; top: -9px; width: 24px; height: 26px; }
.cs-first__body > p { margin: 18px 0 9px; font-size: 14.5px; }
.cs-first__table { display: flex; width: 718px; }
.cs-first__col { flex: 1; display: flex; flex-direction: column; }
.cs-first__col + .cs-first__col { border-left: 1px solid rgba(255, 255, 255, .3); }
.cs-first__col > b { height: 43px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 27px; font-weight: 500; color: #fff; }
.cs-first__col > b .cs-star { width: 22px; height: 22px; }
.cs-first__col > span { height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 29px; color: #fff; }
.cs-first__col > span img { width: 26px; height: 26px; mix-blend-mode: lighten; }
.cs-first__col.c1 > b { background: linear-gradient(90deg, #ff8d17, #ff7d12); }
.cs-first__col.c2 > b { background: linear-gradient(90deg, #ff7210, #ff5a0c); }
.cs-first__col.c3 > b { background: linear-gradient(90deg, #ff4c14, #f2190b); }
.cs-first__col.c1 > span { background: #8e8e8e; }
.cs-first__col.c2 > span { background: #727272; }
.cs-first__col.c3 > span { background: #474747; }
.cs-first__note { margin: 8px 0 0; font-size: 14.5px; color: #444; }

/* ---------- 清空选择's confirm: a full-width white band, salmon warning, 取消 / 确认 pills on its lower edge ---------- */
.cc-modal__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.cc-modal__stage { pointer-events: none; }
.cc-modal__stage > * { pointer-events: auto; }
.cc-modal.cs-confirm .cc-modal__dim { backdrop-filter: blur(6px); }
.cs-confirm__band { position: absolute; left: 0; top: 252px; width: 1280px; height: 218px; background: #fbfbfb; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  animation: cs-band-in 260ms cubic-bezier(.2, .8, .2, 1); }
@keyframes cs-band-in { from { transform: scaleY(.2); opacity: 0; } }
.cs-confirm__band::before { content: ''; position: absolute; left: 14px; top: 6px; width: 120px; height: 5px;
  background: radial-gradient(circle at 2.5px 2.5px, #f4c21c 2.5px, transparent 3px) 0 0 / 120px 5px no-repeat, linear-gradient(#cfcfcf, #cfcfcf) 12px 2px / 108px 1px no-repeat; }
.cs-confirm__band::after { content: ''; position: absolute; right: 0; top: 0; width: 382px; height: 16px; background: repeating-linear-gradient(-45deg, #dcdcdc 0 2px, transparent 2px 5px); }
.cs-confirm__wm { position: absolute; left: 0; top: 28px; width: 170px; height: 170px; opacity: .07;
  background: repeating-linear-gradient(0deg, #000 0 2px, transparent 2px 4px); clip-path: polygon(0 10%, 92% 10%, 46% 96%); }
.cs-confirm__band > b { position: absolute; left: 0; right: 0; top: 76px; text-align: center; font-size: 18px; font-weight: 600; color: #1e1e1e; }
.cs-confirm__warn { position: absolute; left: 408px; top: 110px; width: 464px; height: 26px; line-height: 26px; text-align: center; background: #ff8f7c; color: #fff; font-size: 14px; }
.cs-confirm__btns { position: absolute; left: 425px; top: 193px; display: flex; gap: 25px; }
.cc-modal .cs-cbtn { position: relative; width: 203px; height: 42px; border-radius: 21px; display: flex; align-items: center; justify-content: flex-end; padding-right: 44px; box-sizing: border-box;
  font-size: 15px; box-shadow: 0 0 0 3px #ececec, 0 3px 8px rgba(0, 0, 0, .35); cursor: pointer; }
.cc-modal .cs-cbtn--no { background: #4a4a4a; color: #fff; }
.cc-modal .cs-cbtn--ok { background: #ffe31a; color: #222; }
.cc-modal .cs-cbtn:hover { filter: brightness(1.08); }
.cs-cbtn__line { position: absolute; left: 22px; top: 20px; width: 84px; height: 1px; background: currentColor; opacity: .45; }
.cs-cbtn__line::before, .cs-cbtn__line::after { content: ''; position: absolute; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.cs-cbtn__line::before { left: -1px; }
.cs-cbtn__line::after { right: -1px; }
.cs-cbtn__icon { position: absolute; right: 12px; top: 11px; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; font-style: normal; text-align: center; }
.cs-cbtn--no .cs-cbtn__icon { background: #f2f2f2; color: #4a4a4a; font: 900 11px/20px Arial, sans-serif; }
.cs-cbtn--ok .cs-cbtn__icon { border: 3px solid #222; }
.cs-cbtn--ok .cs-cbtn__icon::after { content: ''; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #222; }

/* ---------- first-visit guide: a dimmed stage with one lit box, a dark tip and 点击任意处继续 ---------- */
.cs-guide { position: absolute; inset: 0; z-index: 40; cursor: pointer; overflow: hidden; }
.cs-guide.is-banner { background: rgba(0, 0, 0, .38); }
.cs-guide.is-wait { pointer-events: none; cursor: default; }
.cs-guide__box { position: absolute; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .42), inset 0 0 14px rgba(255, 255, 255, .3);
  transition: left 240ms ease, top 240ms ease, width 240ms ease, height 240ms ease; }
.cs-guide__tip { position: absolute; box-sizing: border-box; padding: 14px 18px 12px 18px; display: flex; align-items: center; color: #fff;
  background: repeating-radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, .03) 0 1px, transparent 1px 7px), rgba(14, 14, 14, .9); animation: cc-fade-in 220ms ease; }
.cs-guide__tip::after { content: ''; position: absolute; right: 8px; bottom: 4px; width: 40px; height: 3px; background: repeating-linear-gradient(90deg, #6a6a6a 0 2px, transparent 2px 4px); }
.cs-guide__tip p { margin: 0; font-size: 14px; line-height: 1.6; }
.cs-guide__tip em, .cs-guide__banner em { font-style: normal; color: #ffb02b; }
.cs-guide__tip.has-arrow::before { content: ''; position: absolute; left: -9px; top: 22px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 9px solid #f4c21c; }
.cs-guide__banner { position: absolute; left: 430px; top: 78px; width: 420px; height: 30px; line-height: 30px; text-align: center; font-size: 14px; color: #fff;
  border-left: 2px solid #fff; border-right: 2px solid #fff; background: linear-gradient(90deg, rgba(10, 10, 10, .55), rgba(10, 10, 10, .9) 50%, rgba(10, 10, 10, .55)); animation: cc-fade-in 260ms ease; }
.cs-guide__cont { position: absolute; padding: 3px 44px; font-size: 13px; color: #fff; white-space: nowrap; animation: cs-blink 1.6s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(10, 10, 10, .85) 22% 78%, transparent); }
.cs-guide__cont::before, .cs-guide__cont::after { position: absolute; top: 2px; color: #f4c21c; font-weight: 700; }
.cs-guide__cont::before { content: '›'; left: 28px; }
.cs-guide__cont::after { content: '‹'; right: 28px; }
@keyframes cs-blink { 50% { opacity: .55; } }
.cs-guide__hand { position: absolute; width: 34px; height: 40px; background: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); pointer-events: none;
  clip-path: polygon(8% 0, 30% 0, 30% 38%, 92% 46%, 100% 62%, 86% 100%, 26% 100%, 0 70%, 8% 52%); transform: rotate(-28deg); animation: cs-tap 1s ease-in-out infinite; }
@keyframes cs-tap { 50% { translate: -4px -4px; } }
.cc-stage .cs-guide__skip { position: absolute; left: 22px; top: 594px; height: 26px; padding: 0 14px; border-radius: 13px; pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .55); color: #eee; font-size: 12.5px; }
.cc-stage .cs-guide__skip:hover { background: rgba(40, 40, 40, .8); }

/* ---------- main-page backdrop (MainScene): the game's layers on the 1280×720 stage, moving like the reference ---------- */
.cc-scene { overflow: hidden; background: #000; }
.cc-scene > * { position: absolute; display: block; pointer-events: none; }
.cc-sc-base { left: 0; top: 0; width: 1280px; height: 720px; }
.cc-sc-title1 { left: 87px; top: 101px; width: 1106px; height: 116px; }
.cc-sc-title2 { left: 432px; top: 246px; width: 553px; height: 77px; }
.cc-sc-logo { left: 714px; top: 188px; width: 175px; height: 177px; }
.cc-sc-halo { left: 727px; top: 201px; width: 150px; height: 151px; mix-blend-mode: screen; animation: cc-sc-halo 2.8s ease-in-out infinite alternate; }
@keyframes cc-sc-halo { from { opacity: .2; transform: scale(.94); } to { opacity: .85; transform: scale(1.14); } }
/* the left emblem's red light breathing */
.cc-sc-glow { left: 0; top: 160px; width: 560px; height: 560px; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 36, 36, .42), rgba(255, 36, 36, .12) 60%, transparent); animation: cc-sc-glow 4.2s ease-in-out infinite alternate; }
@keyframes cc-sc-glow { from { opacity: .25; } to { opacity: 1; } }
/* a warm sheen sweeping the platform, lit only where the base itself is bright (stack, beams, tile rims) */
.cc-sc-sheen { left: 470px; top: 220px; width: 810px; height: 500px; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 0 40%, rgba(255, 150, 90, .9) 50%, transparent 60% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: var(--m) -470px -220px / 1280px 720px no-repeat; mask: var(--m) -470px -220px / 1280px 720px no-repeat luminance;
  animation: cc-sc-sheen 7s linear infinite; }
@keyframes cc-sc-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* the four blocks round the logo: the game's flat masks, shaded here, drifting on their own loops */
.cc-sc-block { filter: drop-shadow(2px 4px 0 rgba(28, 28, 30, .95)) drop-shadow(0 8px 10px rgba(0, 0, 0, .55));
  animation: cc-sc-drift var(--t) ease-in-out infinite; }
.cc-sc-block i { position: absolute; inset: 0; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.cc-sc-block i.is-gray { background: linear-gradient(200deg, #d6d6d6, #9a9a9a 40%, #5c5c5c 78%, #444); }
.cc-sc-block i.is-orange { background: linear-gradient(160deg, #ffc08a, #f6782f 50%, #c2451b); }
@keyframes cc-sc-drift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(var(--dx), calc(var(--dy) * -1)) rotate(var(--r)); }
  65% { transform: translate(calc(var(--dx) * -.5), var(--dy)) rotate(calc(var(--r) * -.6)); }
}
/* the white arrow under the logo, pointing into the stack */
.cc-sc-drop { left: 784px; top: 338px; width: 36px; height: 40px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)) drop-shadow(0 0 14px rgba(255, 60, 40, .7));
  animation: cc-sc-drop 1.6s ease-in-out infinite alternate; }
.cc-sc-drop i { position: absolute; inset: 0; background: #fff; clip-path: polygon(36% 0, 64% 0, 64% 52%, 100% 52%, 50% 100%, 0 52%, 36% 52%); }
@keyframes cc-sc-drop { from { transform: translateY(-2px); } to { transform: translateY(5px); } }
/* red sparks rising off the platform */
.cc-sc-spark { width: 12px; height: 12px; opacity: 0; filter: drop-shadow(0 0 4px rgba(255, 40, 24, .9));
  animation: cc-sc-spark var(--t) ease-out var(--d) infinite; }
.cc-sc-spark i { position: absolute; inset: 0; background: #ff3b2c; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
@keyframes cc-sc-spark {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.6); }
  18% { opacity: 1; }
  70% { opacity: .8; }
  100% { opacity: 0; transform: translate(10px, -46px) rotate(140deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-scene * { animation: none !important; }
  .cc-sc-spark { opacity: 0; }
}

/* ---- the contract outside the event pages: the waiting room's strip, the effects column's entry ---------------- */
.cc-tagstrip { display: flex; align-items: center; gap: 8px; max-width: min(56vw, 760px); padding: 4px 10px 4px 6px;
  background: linear-gradient(90deg, rgba(150, 20, 24, .78), rgba(40, 8, 10, .7)); border-left: 3px solid #e3262e; color: #fff; }
.cc-tagstrip__head { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.cc-tagstrip__head b { font-size: 13px; letter-spacing: .12em; }
.cc-tagstrip__head em { font-style: normal; font-size: 11px; opacity: .8; }
.cc-tagstrip__head i { font-style: normal; font-size: 13px; color: #ffcf4a; }
.cc-tagstrip__list { display: flex; flex-wrap: wrap; gap: 3px; }
.cc-tagstrip__tag { width: 26px; height: 26px; display: grid; place-items: center; background: rgba(0, 0, 0, .35); }
.cc-tagstrip__tag .cs-glyph { position: relative; width: 22px; height: 22px; }
.cc-tagstrip.is-compact .cc-tagstrip__tag { width: 20px; height: 20px; }
.cc-tagstrip.is-compact .cc-tagstrip__tag .cs-glyph { width: 17px; height: 17px; }
.cc-tagrows { display: grid; gap: 3px; margin-top: 6px; max-height: 60vh; overflow: hidden; }
.cc-tagrows.is-long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-tagrows__row { display: grid; grid-template-columns: 18px auto; column-gap: 6px; align-items: center; font-size: 12px; }
.cc-tagrows__row .cs-glyph { position: relative; width: 18px; height: 18px; grid-row: span 2; }
.cc-tagrows__row span { grid-column: 2; opacity: .78; font-size: 11px; line-height: 1.3; }
.effect--crisis { background: #8f1418; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.cc-shopline { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px; margin: 0 6px; font-size: 12px; color: #fff;
  background: rgba(143, 20, 24, .85); border-left: 3px solid #ff3a3a; white-space: nowrap; }
.cc-shopline b { letter-spacing: .1em; }
.cc-shopline i { font-style: normal; margin-left: 2px; color: #ffcf4a; }
.cc-shopline i.is-out { color: #ff8080; }
.cc-shopline .is-freeze { color: #9fe3ff; }
.cc-shopline__core { position: relative; }
.cc-shopline__core > button { font: inherit; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .25); padding: 1px 6px; cursor: pointer; }
.cc-shopline__core > button.is-unset { border-color: #ffcf4a; animation: cc-blink 1.2s ease-in-out infinite; }
.cc-shopline__core i { font-style: normal; color: #ffcf4a; }
.cc-shopline__menu { position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 30; display: flex; flex-direction: column; min-width: 140px;
  background: rgba(20, 6, 8, .96); border: 1px solid #8f1418; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.cc-shopline__menu button { font: inherit; text-align: left; color: #fff; background: none; border: 0; padding: 5px 9px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.cc-shopline__menu button:hover, .cc-shopline__menu button.is-on { background: #8f1418; }
.cc-shopline__menu em { padding: 6px 9px; font-style: normal; opacity: .7; }
@keyframes cc-blink { 50% { border-color: rgba(255, 207, 74, .25); } }
/* 商店封存: the shop card the contract seals until the next refresh */
.scard__sealed { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-12deg); z-index: 4; padding: 2px 10px;
  font-size: 14px; font-weight: 900; letter-spacing: .3em; color: #fff; background: rgba(143, 20, 24, .9); border: 2px solid #ff4a4a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); pointer-events: none; }

/* Keep arbitrarily many contract tags out of the room header's sizing flow. */
.rs-top:has(.cc-tagstrip) { position: relative; padding-bottom: 37px; }
.rs-top:has(.cc-tagstrip) .rs-top__left { position: static; }
.rs-top .cc-tagstrip { position: absolute; left: .22rem; right: .3rem; bottom: 3px; width: auto;
  max-width: none; min-width: 0; height: 30px; min-height: 0; box-sizing: border-box; overflow: hidden;
  gap: 8px; padding: 3px 6px; }
.rs-top .cc-tagstrip__head { flex: none; }
.rs-top .cc-tagstrip__head b { font-size: 11px; letter-spacing: .04em; }
.rs-top .cc-tagstrip__head em { font-size: 10px; }
.rs-top .cc-tagstrip__head i { font-size: 11px; }
.rs-top .cc-tagstrip__list { display: flex; flex: 1 1 0; min-width: 0; flex-wrap: nowrap;
  overflow-x: auto; overflow-y: hidden; max-height: 24px; gap: 3px; overscroll-behavior-x: contain;
  scrollbar-width: none; touch-action: pan-x; }
.rs-top .cc-tagstrip__list::-webkit-scrollbar { display: none; }
.rs-top .cc-tagstrip__tag { flex: 0 0 22px; width: 22px; height: 22px; }
.rs-top .cc-tagstrip__tag .cs-glyph { position: relative; width: 18px; height: 18px; }

/* Contract share code dialog, within the existing scaled 1280x720 stage. */
.cs-share-panel { position:absolute; left:300px; top:70px; width:680px; padding:24px; box-sizing:border-box; background:#11231f; border:1px solid #56e6bd; color:#eaf4f0; box-shadow:0 12px 50px #000a; }
.cs-share-panel header { position:relative; padding:0 40px 14px 0; font-size:25px; font-weight:700; }
.cs-share-panel header .cc-x { top:0; right:0; }
.cs-share-panel p,.cs-share-note { font-size:15px; line-height:1.5; color:#b6ccc3; }
.cs-share-panel label { display:block; margin-top:16px; margin-bottom:8px; font-size:17px; }
.cs-share-panel textarea { display:block; width:100%; height:90px; padding:10px; box-sizing:border-box; resize:none; background:#081411; color:#e8fff6; border:1px solid #517b6c; font:14px/1.5 monospace; overflow-wrap:anywhere; user-select:text; }
.cs-share-panel textarea:focus { outline:2px solid #56e6bd; }
.cs-share-panel button { margin-top:10px; padding:8px 18px; font-size:16px; color:#e8fff6; background:#214338; border:1px solid #5acda9; cursor:pointer; }
.cs-share-panel button:disabled { opacity:.4; cursor:default; }
.cs-share-note { min-height:24px; margin-top:10px; }
.cs-share-panel footer { display:flex; justify-content:flex-end; gap:12px; }
.cr-squad--solo { left:652px; width:574px; justify-content:center; }
