/* W1 屏幕样式：登录 / 创建角色 / 美味镇 / 出海 / 世界地图 / 美味岛 / 菜单栏与顶栏 / 公告板 / 个人资料。坐标单位 = 原作舞台像素。 */

/* ---------- 创建角色（原作 TDEnterUI；screens/create_role.js，UI_SPEC §3.1b） ---------- */
.cr-wrap { position: absolute; left: 0; top: 0; width: 950px; height: 600px; overflow: hidden; background: #2d9fdc; }
.cr-layer { background-repeat: no-repeat; }
.cr-char { pointer-events: auto; cursor: pointer; outline: none; }
.cr-char:focus-visible { outline: 2px dashed rgba(255, 255, 255, .7); outline-offset: -4px; }
.cr-btn {
  position: absolute; border: 0; padding: 0; margin: 0; background: transparent no-repeat 0 0 / 100% 100%;
  cursor: pointer; pointer-events: auto; outline: none; touch-action: manipulation;
}
.cr-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 1px; }
/* 手机上骰子（36×37）/ 检查重名（84×31）只有约 24 / 20 CSS px 高：透明热区往外扩（UI_SPEC §2.4），不碰输入框 */
.cr-dice::before, .cr-check::before { content: ""; position: absolute; }
.cr-dice::before { left: -14px; right: -6px; top: -12px; bottom: -10px; }
.cr-check::before { left: -10px; right: -12px; top: -14px; bottom: -10px; }
/* 原作 userNameText：微软雅黑 Bold 17 px、白字、左对齐、透明底（灰色胶囊是 name_panel 图里的） */
.cr-input {
  position: absolute; box-sizing: border-box; margin: 0; padding: 0 0 0 2px; border: 0; border-radius: 0; outline: none;
  background: transparent; color: #fff; caret-color: #fff; text-align: left;
  font: bold 17px/28px "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  -webkit-appearance: none; appearance: none; -webkit-user-select: text; user-select: text; touch-action: manipulation; pointer-events: auto;
}
.cr-input::selection { background: rgba(255, 255, 255, .35); }
/* 提示行 validationName：微软雅黑 12 px 粗体、居中（对过原作导出图：字在 465–475 行） */
.cr-tip {
  position: absolute; box-sizing: border-box; padding-top: 1px; overflow: hidden; white-space: nowrap; text-align: center; pointer-events: none;
  font: bold 12px/16px "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}
.cr-fail { position: absolute; left: 0; top: 0; width: 950px; height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #0b2a52; }
.cr-fail-msg { font-size: 20px; font-weight: bold; color: #fff; }

/* ---------- 登录（UI_SPEC §3.1） ---------- */
.lg-wrap { position: absolute; left: 0; top: 0; width: 950px; height: 600px; background: #0b2a52; }
.lg-bg { background-size: 950px 600px; }
.lg-shade { position: absolute; left: 0; top: 0; width: 950px; height: 600px; background: rgba(0, 0, 0, .45); }
.lg-title { position: absolute; left: 0; width: 950px; top: 18px; text-align: center; }
.lg-title-main {
  display: block; font-size: 50px; font-weight: 900; letter-spacing: 6px; color: #fff4c6;
  -webkit-text-stroke: 3px #8a3c00; paint-order: stroke fill; text-shadow: 0 0 10px #ffcf3a, 0 4px 0 #5a2600;
}
.lg-title-sub { display: block; margin-top: 2px; font-size: 20px; font-weight: bold; color: #cdeeff; letter-spacing: 4px; text-shadow: 0 2px 2px #000; }
.lg-body { display: flex; align-items: center; justify-content: center; }
.lg-view { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 18px; box-sizing: border-box; }
/* 6 位码：照原作黄色位图数字 digits_yellow 的配色（橙黄渐变 + 深棕描边），用文字画保证手机上清楚 */
.lg-code {
  padding: 2px 30px; border-radius: 12px; background: linear-gradient(180deg, #123f73, #0b2a52); border: 3px solid #0a2344;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
  font-size: 66px; line-height: 84px; font-weight: 900; letter-spacing: 10px; font-family: "Arial Black", Arial, var(--td-font);
  background-clip: padding-box; color: #ffd84a; -webkit-text-stroke: 2px #6b2c00; paint-order: stroke fill; text-shadow: 0 3px 0 #6b2c00, 0 0 10px rgba(255, 190, 40, .55);
}
.lg-say { font-size: 18px; font-weight: bold; color: #0b2e57; }
.lg-say em { font-style: normal; color: #c2185b; }
.lg-cmd { font-size: 24px; font-weight: 900; color: #ffd100; -webkit-text-stroke: 2px #1a1a1a; paint-order: stroke fill; letter-spacing: 2px; }
.lg-copy { height: 48px; font-size: 21px; padding: 0 26px; }
.lg-row { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.lg-cd { color: #0b2e57; font-weight: bold; }
.lg-link { border: 0; background: none; color: #0d4fa0; font-size: 16px; font-weight: bold; text-decoration: underline; cursor: pointer; padding: 6px 4px; pointer-events: auto; }
.lg-status { font-size: 15px; color: #164a82; min-height: 20px; }
.lg-hint { font-size: 14px; color: #3d6f9c; }
.lg-ok { gap: 16px; }
.lg-ok-top { font-size: 20px; font-weight: bold; color: #0b6b23; }
.lg-who { font-size: 34px; font-weight: 900; color: #ffe066; -webkit-text-stroke: 2px #5a2a00; paint-order: stroke fill; text-shadow: 0 3px 0 #5a2a00; }
.lg-ok-btns { gap: 34px; }
.lg-start { height: 54px; min-width: 200px; font-size: 24px; }
.lg-notme { height: 44px; }
.lg-note { font-size: 15px; color: #164a82; text-align: center; }
.lg-foot { position: absolute; left: 0; width: 950px; top: 534px; text-align: center; font-size: 16px; color: #d7efff; text-shadow: 0 1px 2px #000; letter-spacing: 1px; }
.lg-dev { position: absolute; left: 14px; top: 560px; border: 1px dashed #9cc; background: rgba(0, 0, 0, .45); color: #bff; font-size: 14px; padding: 4px 10px; border-radius: 6px; cursor: pointer; }

/* ---------- 美味镇 ---------- */
.tw-wrap { position: absolute; left: 0; top: 0; width: 950px; height: 600px; }
.tw-over { opacity: 0; transition: opacity .12s; background-size: 100% 100% !important; }
.tw-over.on { opacity: 1; }
.tw-hits { position: absolute; left: 0; top: 0; width: 950px; height: 600px; z-index: 1000; pointer-events: none; }
.tw-enter { background-size: 100% 100% !important; }
.tw-pier-bubble { background-size: 100% 100% !important; transition: filter .12s; }
.tw-pier-bubble.night { filter: hue-rotate(-148deg) brightness(.82) contrast(.87) saturate(1.15); }
.tw-pier-bubble.on { filter: brightness(1.15); }
.tw-pier-bubble.night.on { filter: hue-rotate(-148deg) brightness(.95) contrast(.87) saturate(1.15); }
.tw-pier-text {
  position: absolute; text-align: center; white-space: nowrap; pointer-events: none;
  font-size: 23px; line-height: 32px; font-weight: 900; letter-spacing: 1px; color: #fffbe8;
  -webkit-text-stroke: 3px #a64200; paint-order: stroke fill; text-shadow: 0 2px 0 rgba(90, 30, 0, .6);
}
.tw-wrap[data-variant="night"] .tw-pier-text { -webkit-text-stroke-color: #3a2a86; text-shadow: 0 2px 0 rgba(20, 10, 60, .6); }
.tw-pier-glow { position: absolute; left: 0; top: 0; width: 950px; height: 600px; pointer-events: none; z-index: 262; }
.tw-pier-glow polygon { fill: rgba(255, 240, 150, 0); stroke: rgba(255, 214, 0, 0); stroke-width: 4; stroke-linejoin: round; transition: all .12s; }
.tw-pier-glow.on polygon { fill: rgba(255, 244, 170, .16); stroke: #ffd400; }
.tw-bcast { position: absolute; left: 0; top: 0; width: 950px; height: 600px; z-index: 1100; pointer-events: none; display: none; }
.tw-bcast.on { display: block; }
.tw-bcast-bg { pointer-events: auto; }
.tw-bcast .td-img:not(.tw-bcast-bg) { background-size: 100% 100%; }
.tw-bcast-text { pointer-events: auto; overflow-y: auto; white-space: pre-wrap; padding: 2px 8px; box-sizing: border-box; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.tw-bcast-btn {
  position: absolute; z-index: 1100; border: 0; padding: 0; background: transparent no-repeat center / 100% 100%;
  cursor: pointer; pointer-events: auto; outline: none;
}
.tw-bcast-btn::before { content: ""; position: absolute; left: -6px; right: -18px; top: -14px; bottom: -14px; }
.tw-bcast-btn.off { display: none; }
.tw-label, .tw-blank { background-size: 100% 100%; }
/* 瞭望台 · 钓鱼（钓鱼 v2）：改了用途的建筑写文字招牌，样子照原作建筑名（白字深描边 + 黄光） */
.tw-textlabel {
  position: absolute; text-align: center; white-space: nowrap; pointer-events: none;
  font-size: 17px; line-height: 35px; font-weight: 900; letter-spacing: 1px; color: #fffdf0;
  -webkit-text-stroke: 3px #4a2308; paint-order: stroke fill; text-shadow: 0 0 6px rgba(255, 236, 140, .95), 0 0 10px rgba(255, 220, 90, .6);
}
.tw-wrap[data-variant="night"] .tw-textlabel { -webkit-text-stroke-color: #1c2f86; }

/* ---------- 出海 ---------- */
.sl-wrap { position: absolute; left: 0; top: 0; width: 950px; height: 600px; }
.sl-wrap > .td-img:first-child { background-size: 100% 100% !important; }
.sl-shade { position: absolute; background: rgba(0, 10, 30, .3); }

/* ---------- 世界地图 ---------- */
.wm-wrap { position: absolute; left: 0; top: 0; width: 950px; height: 600px; }
.wm-wrap .td-img { background-size: 100% 100%; }
.wm-under-shade { position: absolute; left: 0; top: 0; width: 950px; height: 600px; background: rgba(0, 6, 20, .6); z-index: 50; }
.wm-dark { filter: brightness(.4) saturate(.3); }
.wm-over { opacity: 0; transition: opacity .12s; }
.wm-over.on { opacity: 1; }
.wm-hits { position: absolute; left: 0; top: 0; width: 950px; height: 600px; z-index: 1000; pointer-events: none; }
.wm-char { transition: transform .45s ease-in-out; }

/* ---------- 美味岛 ---------- */
.is-wrap { position: absolute; left: 0; top: 0; width: 950px; height: 600px; }
.is-wrap .td-img:not(.is-ring) { background-size: 100% 100%; }
.is-node { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.is-pin.press { filter: brightness(1.18); }
.is-hits { position: absolute; left: 0; top: 0; width: 950px; height: 600px; z-index: 1000; pointer-events: none; }

/* ---------- 菜单栏（右下，原作 TDMenuUI）+ 后退 + 顶栏（左上玩家信息框、右上货币胶囊 + 世界地图）----------
   全部贴**舞台矩形**的角（--stage-l/t/r/b，lib/stage.js applyFit），不贴窗口角：宽屏两边留边再宽，底栏 / 跳转面板也不会跨到舞台外。
   鼠标设备 --ui = --ui-menu = 舞台缩放（和原作同位同大）；触屏放大（lib/stage.js fitStage）。
   备战房间（chrome.menuScale = 'stage'）底栏跟舞台一样大，正好填进房间底图给它留的空条。 */
.mb-br {
  position: absolute; right: var(--stage-r, 0px); bottom: var(--stage-b, 0px); width: 500px; height: 440px; z-index: 3;
  transform-origin: 100% 100%; transform: scale(var(--ui-menu, var(--ui))); pointer-events: none;
}
#td-root.td-menu-stage .mb-br { transform: scale(var(--stage-scale, 1)); }
.mb-back { display: none; }
.mb-br.has-back .mb-back { display: block; }
.mb-back-hit { position: absolute; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; pointer-events: auto; outline: none; }
.mb-back-btn { background-size: 100% 100% !important; }
.mb-img { background-size: 100% 100% !important; }
.mb-btn { position: absolute; border: 0; padding: 0; margin: 0; background: transparent no-repeat center / 100% 100%; cursor: pointer; pointer-events: auto; outline: none; }
.mb-btn.off { cursor: default; }
.mb-btn:not(.off):active { filter: brightness(1.12); }
.mb-tasktip { display: none; background-size: 100% 100%; animation: mb-bob 1s ease-in-out infinite; }
.mb-tasktip.on { display: block; }
@keyframes mb-bob { 50% { transform: translateY(-3px); } }
.mb-jump .mb-btn.off { filter: grayscale(1); }
#td-root.td-no-menubar .mb-br, #td-root.td-no-hud .mb-tl, #td-root.td-no-hud .mb-tr, #td-root.td-no-hud .mb-side { display: none; }

/* 左上玩家框：贴**屏幕**左边（HUD 左缘 + 4，HUD 已经让过刘海），顶 = 舞台顶 + 4；和「好友」「邮件」（social.css .sc-tl）同一个锚点、同一个缩放原点，
   左边对齐（老板 09-30 03:2x「移动过来对齐」；原作这三样是同一块 RoomAvatarInfo）。以前 left 贴舞台左边（--stage-l），宽屏上比好友 / 邮件往右错开一截留边。 */
.mb-tl { position: absolute; left: 4px; top: calc(var(--stage-t, 0px) + 4px); z-index: 2; transform-origin: 0 0; transform: scale(var(--ui)); pointer-events: none; }
.mb-me {
  position: relative; display: block; width: 118px; height: 97px; padding: 0; border: 0; cursor: pointer; pointer-events: auto; outline: none;
  background: transparent no-repeat 0 0 / 100% 100%;
}
.mb-me:active { filter: brightness(1.1); }
.mb-me-face { position: absolute; left: 8px; top: 6px; width: 102px; height: 58px; overflow: hidden; background: no-repeat 50% 4px / 62px 80px; border-radius: 6px; }
/* 等级徽章缩小放进框右上的浅蓝小框（底图 (78.5,8)~(109,31.5)）：原作 m_stLevelMovie 在玩家框里 scale 0.551×0.564、
   注册点 (76.55,7.5)（TDGame2V2BattleUI sprite 1661/1736 的 PlaceObject2 矩阵），56×40 的徽章缩成 30.8×22.6 正好填满浅蓝框；战斗 HUD 同一位置 */
.mb-me-lv { position: absolute; left: 78.5px; top: 8.5px; width: 56px; height: 40px; transform: scale(.551, .564); transform-origin: 0 0; background-repeat: no-repeat; pointer-events: none; }
/* 经验条（老板 09-28）：名字条底部一条细条，名字上移 2px 让位 */
.mb-me-exp { display: none; position: absolute; left: 13px; width: 92px; top: 82px; height: 4px; border-radius: 2px; background: rgba(40, 8, 0, .55); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); overflow: hidden; pointer-events: none; }
.mb-me-exp.on { display: block; }
.mb-me-exp > i { display: block; height: 100%; width: 0; background: linear-gradient(#e9ff8a, #5fcf1c); border-radius: 2px; }
.mb-me-name {
  position: absolute; left: 9px; width: 100px; top: 66px; height: 18px; line-height: 18px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 13px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #3a1500, -1px -1px 0 #3a1500, 1px -1px 0 #3a1500, -1px 1px 0 #3a1500;
}
.mb-tr { position: absolute; right: var(--stage-r, 0px); top: var(--stage-t, 0px); width: 0; height: 0; z-index: 2; transform-origin: 100% 0; transform: scale(var(--ui)); pointer-events: none; }
/* 地球左边一行：「VIP签到」+ 设置齿轮（今日局数 / 金币 / 点券 09-30 挪进左边侧边栏 .mb-side 和背包；齿轮位置不变） */
.mb-chips { position: absolute; right: 4px; top: 4px; display: flex; gap: 8px; pointer-events: none; }
/* 原作 ServerListUI 摆在 (800,0)：地球 + 线路条占 797.5..926 × 0..96；这一行让到它左边 */
.mb-tr.has-globe .mb-chips { right: 158px; }
.mb-globe { display: none; position: absolute; right: 24px; top: 0; width: 128.5px; height: 96px; pointer-events: none; }
.mb-tr.has-globe .mb-globe { display: block; }
/* 面板开着时（公告板「荣誉殿堂」/ 个人资料：没声明 chrome、顶栏跟着底层屏幕）不画地球。地球 + 线路条占舞台 797.5..926 × 0..96，
   正好压在面板右上的关闭钮上（公告板 804..837 × 62..95；手机顶栏按 --ui 放大后整颗盖住，点关闭反而开了海图）——老板 09-28。
   原作弹窗是盖在地球上面的，跟海图一样不画（lib/chrome.js）；只藏地球，金币条留在原位不跳。 */
#td-root.td-overlay-open .mb-globe { display: none; }
.mb-globe .td-img { background-size: 100% 100%; }
.mb-globe-btn { position: absolute; left: 1.5px; top: 0; width: 126px; height: 74px; padding: 0; border: 0; margin: 0; cursor: pointer; pointer-events: auto; outline: none; background: transparent no-repeat 0 0 / 100% 100%; }
.mb-globe-btn:active { filter: brightness(1.1); }
/* 美食VIP「VIP签到」（原作 RightMenu 最上面一行、地球左边第一格）：放在金币条最左边；有地球的屏才画，面板开着不画（同地球） */
.mb-vip { display: none; flex: none; position: relative; width: 69px; height: 52px; margin: -4px 0 0; padding: 0; border: 0; cursor: pointer; pointer-events: auto; outline: none; background: transparent no-repeat; }
.mb-tr.has-globe .mb-vip { display: block; }
#td-root.td-overlay-open .mb-vip { display: none; }
.mb-vip:active { filter: brightness(1.12); }
/* 备战房间别人座位上的「☆VIPn☆」（viplist 10-01；原作 TableSeat.vipmc：座位 (10,44)，vipTxt 宋体 11 粗、左对齐（这里 12：手机横屏舞台缩到 0.7 倍左右，11 太小），颜色按等级分档
   TableSeat.vipColor：1~3 绿 / 4~6 蓝 / 7~9 紫 / 10~12 金 / 13~14 红 / 15~16 橙 = .w2-vip1~6；原作字上有内阴影 + 斜面，这里用一圈深褐描边，浅色座位底上手机也看得清）。
   扫光：原作 22 帧 @12fps，前 12 帧一道白色双斜杠从右往左扫过（遮罩 = 字框里 (5,3.5) 53×8.8），这里用 ::after 当遮罩窗、背景位置逐帧移。
   不挡点击：头像在它下面，点字等于点头像（弹玩家菜单）。 */
.w2-vip { pointer-events: none; overflow: visible !important; text-shadow: 1px 0 #3a1800, -1px 0 #3a1800, 0 1px #3a1800, 0 -1px #3a1800, 1px 1px #3a1800; }
.w2-vip1 { color: #00ff42 !important; }
.w2-vip2 { color: #00baff !important; }
.w2-vip3 { color: #db7bff !important; }
.w2-vip4 { color: #ffd100 !important; }
.w2-vip5 { color: #f60e0e !important; }
.w2-vip6 { color: #ff8a4d !important; }
.w2-vip::after {
  content: ''; position: absolute; left: 5px; top: 3.5px; width: 53px; height: 8.8px; overflow: hidden; pointer-events: none;
  background: no-repeat 58.6px -3.35px / 19.5px 14.5px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 39 29'%3E%3Cpath fill='%23fff' d='M20 0h12L13 28H0zM34 0h4L21 28h-5z'/%3E%3C/svg%3E");
  animation: w2-vip-glint 1.8333s steps(12, end) infinite;
}
@keyframes w2-vip-glint { 0% { background-position-x: 58.6px; } 54.545% { background-position-x: -32.6px; } 100% { background-position-x: -32.6px; } }
@media (prefers-reduced-motion: reduce) { .w2-vip::after { animation: none; display: none; } }
.mb-vip.lit { animation: mb-vip-lit 1.1s ease-in-out infinite alternate; }
@keyframes mb-vip-lit { from { filter: drop-shadow(0 0 1px #fff6a8); } to { filter: drop-shadow(0 0 7px #ffe45c) brightness(1.12); } }
/* 假期特惠（原作 RightMenu.menuHolidayRechargeActivityBtn，68×57）：插在「VIP签到」左边，显示规则同它 */
.mb-hol { display: none; flex: none; position: relative; width: 68px; height: 56px; margin: -6px 0 0; padding: 0; border: 0; cursor: pointer; pointer-events: auto; outline: none; background: transparent no-repeat; }
.mb-tr.has-globe .mb-hol { display: block; }
#td-root.td-overlay-open .mb-hol { display: none; }
.mb-hol:active { filter: brightness(1.12); }
/* 国庆活动入口（CSS 画的红底金字小牌，menubar.js buildGuoqing）：活动开着（.on）且有地球的屏才画，面板开着不画 */
.mb-gq { display: none; flex: none; position: relative; width: 58px; height: 40px; margin: 2px 4px 0 0; padding: 0 0 0 14px; border: 2px solid #ffd45c; border-radius: 10px; cursor: pointer; pointer-events: auto; outline: none; background: linear-gradient(#e8453a, #a50f16); color: #ffe27a; font: bold 15px/36px "PingFang SC", "Microsoft YaHei", sans-serif; text-shadow: 0 1px 0 #5a0000; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); animation: mb-gq-lit 1.2s ease-in-out infinite alternate; }
.mb-tr.has-globe .mb-gq.on { display: block; }
#td-root.td-overlay-open .mb-gq { display: none; }
.mb-gq:active { filter: brightness(1.12); }
.mb-gq-i { position: absolute; left: 4px; top: 9px; width: 11px; height: 15px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 40%, #ffec8a, #ff8a2a 70%); box-shadow: 0 0 6px #ffcf4a; }
@keyframes mb-gq-lit { from { box-shadow: 0 0 2px #ffd45c; } to { box-shadow: 0 0 10px #ffd45c; } }
/* 国庆图标（老板 10-01 04:0x 让 GPT 照假期特惠 / VIP签到出的，assets/ui/guoqing/ town）：取到图后 buildGuoqing 加 .img（宽高按 layout 写，84×56）；
   上面的红底金字小牌是取图失败时的退路。悬停光晕 / 按下变亮照假期特惠的 over / down 帧，用 CSS 做（图只有一帧，省一半多字节） */
.mb-gq.img { width: 84px; height: 56px; margin: -6px 0 0; padding: 0; border: 0; border-radius: 0; background-color: transparent; background-repeat: no-repeat; box-shadow: none; animation: none; }
.mb-gq.img > * { display: none; }
@media (hover: hover) { .mb-gq.img:hover { filter: drop-shadow(0 0 3px rgba(236, 118, 50, .95)); } }
.mb-gq.img:active { filter: brightness(1.07) drop-shadow(0 0 3px rgba(236, 118, 50, .95)); }
.mb-globe-name {
  position: absolute; left: 0; top: 72px; width: 128.5px; height: 24px; line-height: 24px; text-align: center; white-space: nowrap; overflow: hidden;
  font-family: var(--td-song); font-size: 12px; color: #fefefe; pointer-events: none;
}
.mb-chip {
  pointer-events: auto; box-sizing: border-box; height: 28px; border-radius: 14px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px 0 3px; border: 1.5px solid #9fd3ff; color: #fff; font-size: 16px; font-weight: bold; white-space: nowrap;
  background: rgba(8, 51, 92, .88); box-shadow: 0 2px 4px rgba(0, 0, 0, .45); text-shadow: 0 1px 1px #000; font-family: var(--td-font); outline: none;
}
button.mb-chip { cursor: pointer; }
button.mb-chip:active { filter: brightness(1.15); }
.mb-g, .mb-d, .mb-l, .mb-b { flex: none; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 14px; line-height: 20px; text-align: center; font-weight: 900; box-sizing: border-box; text-shadow: none; }
.mb-g { background: radial-gradient(circle at 35% 30%, #fff3a0, #ffc81e 55%, #d88a00); color: #6b3500; border: 1.5px solid #8a5200; }
.mb-d { background: radial-gradient(circle at 35% 30%, #a8e4ff, #2f95e8 55%, #1560b0); color: #fff; border: 1.5px solid #0b3f7a; }
.mb-l { background: radial-gradient(circle at 35% 30%, #ffd0e6, #f05a9c 55%, #b8246a); color: #fff; border: 1.5px solid #7a1046; font-size: 12px; }
/* 银行（10-01）：侧边栏「银行」一行的小圆章 */
.mb-b { background: radial-gradient(circle at 35% 30%, #b8f0e6, #2a9d8f 55%, #1d6e64); color: #fff; border: 1.5px solid #134a43; font-size: 12px; }
.mb-gear { width: 32px; padding: 0; justify-content: center; }

/* ---------- 左边侧边栏（老板 09-30 03:2x「这三个的话放侧边栏或者背包」）：今日局数 / 金币 / 点券 / 礼券 ----------
   贴屏幕左边（HUD 左缘，同玩家框、好友 / 邮件），顶 = 舞台顶 + 124 × --ui（好友 / 邮件钮底在 4 + (95 + 21) × --ui），按 --ui 以左上角缩放。
   默认收起：只露 24×56 的把手（金币图标 + ▶），不挡地图；点把手在它右边展开面板（箭头朝左），再点收回。
   把手永远在屏幕左边不动（连点只会开 / 关，不会点到面板里的金币跳去背包）。
   面板一行 20 高、整块约 90 高：手机横屏（--ui 0.8）展开后到 ~171 px，公屏（默认收起，只露输入条）压不到；把手 19 px 宽，落在舞台左边的留边里。 */
.mb-side {
  position: absolute; left: 0; top: calc(var(--stage-t, 0px) + 124px * var(--ui, 1)); z-index: 2; display: flex; align-items: flex-start;
  transform-origin: 0 0; transform: scale(var(--ui)); pointer-events: none; font-family: var(--td-font);
}
.mb-side-panel {
  display: none; pointer-events: auto; box-sizing: border-box; min-width: 150px; margin-left: -1.5px; padding: 3px 8px 3px 8px; flex-direction: column; gap: 1px;
  background: rgba(8, 51, 92, .92); border: 1.5px solid #9fd3ff; border-radius: 0 10px 10px 0; box-shadow: 2px 2px 5px rgba(0, 0, 0, .45);
}
.mb-side.open .mb-side-panel { display: flex; }
.mb-side-row {
  display: flex; align-items: center; gap: 5px; height: 20px; margin: 0; padding: 0 2px; border: 0; border-radius: 10px; background: transparent; outline: none;
  color: #fff; font: bold 14px/20px var(--td-font); white-space: nowrap; text-shadow: 0 1px 1px #000; text-align: left;
}
.mb-side-row .mb-g, .mb-side-row .mb-d, .mb-side-row .mb-l, .mb-side-row .mb-b { width: 18px; height: 18px; font-size: 11px; line-height: 15px; }
button.mb-side-row { cursor: pointer; pointer-events: auto; }
button.mb-side-row:hover { background: rgba(159, 211, 255, .18); }
button.mb-side-row:active { filter: brightness(1.15); }
.mb-side-k { flex: none; font-style: normal; font-size: 12px; font-weight: normal; color: #cfeeff; }
.mb-side-row > span { flex: 1; padding-left: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.mb-side-row.mb-day { justify-content: center; height: 18px; font-size: 13px; line-height: 17px; color: #cfeeff; border-bottom: 1px solid rgba(159, 211, 255, .35); border-radius: 0; }
.mb-side-row.mb-day.full { color: #ffb3a3; }
.mb-side-tab {
  flex: none; position: relative; width: 24px; height: 56px; margin: 0; padding: 7px 0 0; box-sizing: border-box; cursor: pointer; pointer-events: auto; outline: none;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: rgba(8, 51, 92, .92); border: 1.5px solid #9fd3ff; border-left: 0; border-radius: 0 10px 10px 0; box-shadow: 2px 2px 4px rgba(0, 0, 0, .45);
}
.mb-side-tab .mb-g { width: 18px; height: 18px; font-size: 11px; line-height: 15px; }
.mb-side-tab:active { filter: brightness(1.15); }
.mb-side-arrow { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 9px; border-color: transparent transparent transparent #cfeeff; }
.mb-side.open .mb-side-arrow { border-width: 7px 9px 7px 0; border-color: transparent #cfeeff transparent transparent; }
/* 展开时把手和面板接成一块：把手右边不描边、不圆角，压在面板左边框上（z 在上），面板左边框只在把手下面露出来 */
.mb-side.open .mb-side-tab { z-index: 1; border-right: 0; border-radius: 0; box-shadow: none; }
/* 今天局数打满了（有上限时）：把手描一圈红，收起着也看得见 */
.mb-side.full .mb-side-tab { border-color: #ff7f6e; }
.mb-gear-i {
  width: 20px; height: 20px; display: block;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M19.4 13a7.6 7.6 0 0 0 0-2l2.1-1.6-2-3.5-2.5 1a7.4 7.4 0 0 0-1.7-1L15 3.3h-4l-.4 2.6a7.4 7.4 0 0 0-1.7 1l-2.5-1-2 3.5L6.6 11a7.6 7.6 0 0 0 0 2l-2.1 1.6 2 3.5 2.5-1a7.4 7.4 0 0 0 1.7 1l.4 2.6h4l.4-2.6a7.4 7.4 0 0 0 1.7-1l2.5 1 2-3.5zM13 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z' transform='translate(-1 0)'/%3E%3C/svg%3E");
}

/* ---------- 面板（公告板 / 个人资料） ---------- */
.pn-wrap { position: absolute; left: 0; top: 0; width: 950px; height: 600px; }
.pn-shade { position: absolute; left: 0; top: 0; width: 950px; height: 600px; background: rgba(0, 8, 24, .5); pointer-events: auto; }
.pn-body { font-size: 17px; }
.pn-tabs { position: absolute; left: 10px; right: 10px; top: 8px; display: flex; gap: 6px; }
.pn-tab {
  pointer-events: auto; cursor: pointer; height: 34px; padding: 0 18px; border-radius: 10px 10px 4px 4px;
  border: 2px solid #1d5e9e; background: linear-gradient(180deg, #4a9fdc, #2a74b6); color: #dff3ff;
  font-size: 17px; font-weight: bold; text-shadow: 0 1px 1px #0b2e57;
}
.pn-tab.on { background: linear-gradient(180deg, #fff6c8, #ffd66a); color: #6b3500; border-color: #b36b00; text-shadow: none; }
.bd-sub { top: 46px; }
.bd-sub .pn-tab { height: 30px; font-size: 16px; padding: 0 14px; border-radius: 15px; }
.bd-list {
  position: absolute; left: 10px; right: 10px; top: 50px; bottom: 36px; overflow-y: auto; touch-action: pan-y;
  background: #e2f3ff; border: 2px solid #5aa3dc; border-radius: 8px; -webkit-overflow-scrolling: touch;
}
.bd-list.with-sub { top: 84px; }
.bd-row, .bd-item { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 40px; border-bottom: 1px solid #b9dcf5; color: #0b2e57; }
.bd-row.me { background: #fff2c2; }
.bd-rank { width: 34px; height: 28px; line-height: 28px; text-align: center; font-weight: 900; color: #3b6f9f; flex: none; border-radius: 14px; }
.bd-rank.m1 { background: linear-gradient(#ffe56b, #f0a800); color: #5a2a00; }
.bd-rank.m2 { background: linear-gradient(#f2f6fa, #a9b7c6); color: #2d3a48; }
.bd-rank.m3 { background: linear-gradient(#ffd0a0, #c9793a); color: #4a2300; }
.bd-name { flex: 1; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-sub2 { color: #4d7aa6; font-size: 15px; white-space: nowrap; }
.bd-val { font-weight: 900; color: #c55a00; white-space: nowrap; }
.bd-item { padding: 8px 14px; align-items: flex-start; }
.bd-ts { color: #5a86ad; font-size: 14px; width: 92px; flex: none; }
.bd-text { flex: 1; line-height: 1.5; }
.bd-empty { padding: 60px 20px; text-align: center; color: #3d6f9c; font-size: 18px; }
.bd-me { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 26px; line-height: 26px; font-weight: bold; color: #0b2e57; }

.pf-left { position: absolute; left: 14px; top: 14px; width: 170px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pf-avatar { position: relative; width: 106px; height: 138px; background-size: 100% 100%; background-color: rgba(255, 255, 255, .5); border: 2px solid #5aa3dc; border-radius: 10px; }
.pf-name { font-size: 20px; font-weight: 900; color: #fff; -webkit-text-stroke: 1px #0b3d73; paint-order: stroke fill; text-shadow: 0 2px 0 #0b3d73; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-uid { font-size: 14px; color: #164a82; }
.pf-small { height: 32px; min-width: 70px; font-size: 16px; }
.pf-table { position: absolute; left: 198px; right: 14px; top: 12px; background: #e2f3ff; border: 2px solid #5aa3dc; border-radius: 8px; overflow: hidden; }
.pf-row { display: flex; min-height: 34px; align-items: center; border-bottom: 1px solid #b9dcf5; padding: 0 12px; font-size: 16px; }
.pf-row:last-child { border-bottom: 0; }
.pf-k { width: 84px; flex: none; color: #3d6f9c; font-weight: bold; }
.pf-v { color: #0b2e57; font-weight: bold; }
.pf-btns { position: absolute; left: 0; right: 0; bottom: 42px; display: flex; justify-content: center; gap: 22px; }
.pf-allout { position: absolute; right: 16px; bottom: 12px; font-size: 14px; }
.pf-note { position: absolute; left: 16px; bottom: 16px; font-size: 13px; color: #164a82; }
.lg-device { font-size: 15px; color: #164a82; }
.mb-dot { display: none; border-radius: 50%; background: #ff3a2a; border: 2px solid #fff; box-sizing: border-box; pointer-events: none; }
.mb-dot.on { display: block; }

/* ---------- 美味岛点关卡弹的「创建通关房间」框（原作 TDLobbyRoomUI.CreateTable；screens/island_rooms.js，docs/MEISHI_TD_ROOMLIST_EMOTE.md §1.2~§1.3） ----------
   挂 #td-hud、按舞台缩放（写法同 .sc-mq）；z 10：在公屏（z 2）上面、玩家菜单（z 30）/ 邀请名单（z 200）/ #td-modal 下面。整层不接收指针，只有框本身接收 */
.ir-layer {
  position: absolute; left: var(--stage-l, 0); top: var(--stage-t, 0); width: 950px; height: 600px; transform-origin: 0 0;
  transform: scale(var(--stage-scale, 1)); pointer-events: none; z-index: 10; display: none; font-family: var(--td-song);
}
.ir-layer.on { display: block; }
.ir-box { position: absolute; pointer-events: auto; background: no-repeat 0 0 / 100% 100%; -webkit-user-select: none; user-select: none; }
.ir-img { position: absolute; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.ir-btn {
  position: absolute; border: 0; padding: 0; margin: 0; background: transparent no-repeat 0 0 / 100% 100%; cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ir-btn.ir-off { filter: grayscale(1) brightness(.85); cursor: default; }
/* 扫荡钮（原作 wbossFastPKBtn）：没开放上灰（照原作 addMatrix 锁页签），点了照样飘原因 */
.ir-btn.ir-locked { filter: grayscale(1) brightness(.85); }
/* 手机横屏框只有约 0.65 倍，密码勾选（27×29）在屏幕上不到 20 CSS 像素：点击范围往外扩（画面不变；下沿只扩到 473，碰不到 475 起的「创建」） */
.ir-check::after { content: ''; position: absolute; left: -10px; right: -10px; top: -8px; bottom: -6px; }
.ir-input {
  position: absolute; box-sizing: border-box; margin: 0; padding: 0 3px; border: 0; outline: none; background: transparent;
  font-family: var(--td-song); line-height: 1; -webkit-user-select: text; user-select: text; touch-action: manipulation;
}
.ir-query { color: #5b7fa0; font-size: var(--ir-font14, 14px); text-align: center; caret-color: #9fc3e6; }
.ir-query::placeholder { color: #5b7fa0; opacity: 1; }
.ir-name, .ir-pw { color: #000; font-size: var(--ir-font, 12px); text-align: center; }
/* 列表：行宽 594、行高 44，一屏 5 行；原生滚动条藏起来，用原作皮肤的滚动条（手指照样能滑） */
.ir-list {
  position: absolute; overflow-x: hidden; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ir-list::-webkit-scrollbar { display: none; }
.ir-rows { position: relative; width: 594px; }
.ir-row { position: absolute; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.ir-row:hover { transform: translateY(-1px); } /* 原作 SpecifyItem：悬停整行上移 1 像素，没有选中态 */
.ir-t {
  position: absolute; display: flex; align-items: center; white-space: nowrap; overflow: visible; pointer-events: none;
  font-size: var(--ir-font, 12px); font-weight: bold; font-family: var(--td-song); line-height: 1;
}
.ir-code {
  justify-content: center; color: #f8ffc6;
  text-shadow: 1px 0 0 #0f5d00, -1px 0 0 #0f5d00, 0 1px 0 #0f5d00, 0 -1px 0 #0f5d00, 1px 1px 0 #0f5d00, -1px -1px 0 #0f5d00, 1px -1px 0 #0f5d00, -1px 1px 0 #0f5d00;
}
.ir-rname { justify-content: flex-start; padding-left: 2px; color: #002855; overflow: hidden; }
/* 2 倍速（老板 09-29 23:5x）：正在 2 倍速打的房间「×2」，颜色同战斗里的倍速按钮（黄字、深红描边） */
.ir-sp {
  justify-content: center; color: #fff34a;
  text-shadow: 1px 0 0 #7a2400, -1px 0 0 #7a2400, 0 1px 0 #7a2400, 0 -1px 0 #7a2400, 1px 1px 0 #7a2400, -1px -1px 0 #7a2400, 1px -1px 0 #7a2400, -1px 1px 0 #7a2400;
}
.ir-bidi { unicode-bidi: isolate; }
.ir-note {
  position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none;
  color: #9ed3fe; font-size: var(--ir-font, 12px); font-weight: bold; text-shadow: 0 1px 1px #000;
}
.ir-scroll { position: absolute; }
.ir-sb-arrow { position: absolute; border: 0; padding: 0; margin: 0; background: transparent no-repeat; cursor: pointer; outline: none; }
.ir-sb-track { position: absolute; background-repeat: repeat-y; background-size: 16px 1px; cursor: pointer; }
.ir-sb-thumb { position: absolute; cursor: pointer; touch-action: none; }
.ir-sb-thumb > div { position: absolute; background-repeat: no-repeat; }
.ir-sb-d { background-size: 11px 8px; }
.ir-thumb { background-color: #000; }
.ir-mice { position: absolute; pointer-events: none; }

/* ---------- 扫荡框（原作 TDWorldBossLevelExtUI.swf TDWorldBossLevelFastPKPanel「一键扫荡」；screens/sweep_dialog.js，docs/MEISHI_TD_SWEEP.md §4.2~§4.4）----------
   挂 #td-modal（舞台坐标，跟舞台缩放）；图全在 assets/ui/sweep 图集里（原作位图 1 倍）。原作规则字底色 #23c3f7、关键词 #fcbd34（worldBoss.xml rule）。
   手机字号：--swp-fNN = 屏幕上不小于 11 CSS 像素的字号（sweep_dialog.js fontPx） */
.swp-mask { position: absolute; background: rgba(0, 0, 0, .45); pointer-events: auto; -webkit-user-select: none; user-select: none; font-family: var(--td-song); }
.swp-panel, .swp-box, .swp-right { position: absolute; }
.swp-img { position: absolute; background-repeat: no-repeat; pointer-events: none; }
.swp-btn {
  position: absolute; border: 0; padding: 0; margin: 0; background-color: transparent; background-repeat: no-repeat; cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.swp-btn.swp-off { filter: grayscale(1) brightness(.85); cursor: default; }
.swp-t {
  position: absolute; display: flex; align-items: center; justify-content: center; white-space: nowrap; pointer-events: none;
  font-weight: bold; line-height: 1.1; font-size: var(--swp-f13, 13px);
}
.swp-map { justify-content: flex-start; color: #fff; font-size: var(--swp-f13, 13px); text-shadow: 0 1px 2px #0b1f55; }
.swp-lbl { color: #4a2f94; font-size: var(--swp-f14, 14px); }
.swp-big { color: #fff; font-size: var(--swp-f20, 20px); text-shadow: 1px 0 0 #5a3db5, -1px 0 0 #5a3db5, 0 1px 0 #5a3db5, 0 -1px 0 #5a3db5; }
.swp-pill { color: #fff; font-size: var(--swp-f16, 16px); }
.swp-times { position: absolute; display: flex; align-items: center; justify-content: center; gap: 4px; pointer-events: none; font-weight: bold; }
.swp-times-a { color: #fff; font-size: var(--swp-f14, 14px); text-shadow: 1px 0 0 #6a45c9, -1px 0 0 #6a45c9, 0 1px 0 #6a45c9, 0 -1px 0 #6a45c9; }
.swp-times-n { color: #3fd9ff; font-size: var(--swp-f20, 20px); text-shadow: 1px 0 0 #1b3d9e, -1px 0 0 #1b3d9e, 0 1px 0 #1b3d9e, 0 -1px 0 #1b3d9e; }
.swp-why { color: #e8301c; font-size: var(--swp-f12, 12px); white-space: normal; text-align: center; }
.swp-rowt { justify-content: flex-start; color: #fff; font-size: var(--swp-f12, 12px); overflow: hidden; text-overflow: ellipsis; }
.swp-body {
  position: absolute; overflow-x: hidden; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: #5b8fe0 transparent;
}
.swp-grid { position: relative; width: 308px; margin: 4px auto 0; }
.swp-cell { position: absolute; box-sizing: border-box; border: 1px solid #3f7fd6; border-radius: 5px; background: rgba(8, 30, 84, .55); }
.swp-cell .w3-ico { left: -1px; top: -1px; }
.swp-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; color: #fff; }
.swp-more { display: flex; align-items: center; justify-content: center; color: #ffe45c; font-size: var(--swp-f12, 12px); font-weight: bold; text-align: center; }
.swp-note { position: relative; margin: 8px 4px 2px; color: #9ed3fe; font-size: var(--swp-f12, 12px); line-height: 1.45; white-space: normal; }
.swp-lv { color: #ffe45c; font-weight: bold; }
.swp-none { position: relative; padding: 10px 0; text-align: center; color: #9ed3fe; font-size: var(--swp-f12, 12px); }
.swp-rules { position: relative; padding: 6px 4px 0; color: #23c3f7; font-size: var(--swp-f13, 13px); font-weight: bold; line-height: 1.55; }
.swp-rule { margin-bottom: 8px; white-space: normal; }
.swp-rule-i { color: #fff; margin-right: 4px; }
.swp-key { color: #fcbd34; }
.swp-link {
  position: absolute; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; outline: none; text-align: right;
  color: #9ed3fe; font-family: var(--td-song); font-size: var(--swp-f12, 12px); text-decoration: underline; white-space: nowrap;
}
.swp-run { position: relative; margin-bottom: 6px; }
.swp-sep { position: relative; height: 22px; display: flex; align-items: center; justify-content: center; }
.swp-sep-line { position: absolute; left: 50%; top: 5px; background-repeat: no-repeat; transform: translateX(-50%) scaleX(.72); pointer-events: none; }
.swp-sep-t { position: relative; color: #7ff0ff; font-size: var(--swp-f12, 12px); font-weight: bold; text-shadow: 0 1px 1px #0b1f55; }
.swp-play { position: absolute; }
.swp-cat { position: absolute; top: 40px; left: -40px; width: 128px; height: 49px; background-repeat: no-repeat; }
.swp-playing { color: #fff; font-size: var(--swp-f14, 14px); }
/* sweepq（09-30）：一次选好几张图（选图态）、2 小时 / 每天额度、结果按图汇总 + 格子一个个弹出来 */
.swp-headt { color: #fff; font-size: var(--swp-f14, 14px); text-shadow: 0 1px 2px #0b1f55; letter-spacing: 1px; }
.swp-rec { color: #6a45c9; font-size: var(--swp-f12, 12px); }
.swp-plan { color: #9ed3fe; font-size: var(--swp-f12, 12px); overflow: hidden; text-overflow: ellipsis; }
.swp-maps { position: relative; padding-top: 2px; }
.swp-mrow {
  position: relative; margin: 0 0 4px; border: 1px solid #2d62b8; border-radius: 6px; background: rgba(8, 30, 84, .55); box-sizing: border-box;
}
.swp-mrow.swp-on { border-color: #7ff0ff; background: rgba(28, 86, 170, .6); box-shadow: 0 0 6px rgba(127, 240, 255, .45) inset; }
.swp-mrow.swp-dis { opacity: .6; }
.swp-mname {
  position: absolute; left: 6px; top: 3px; max-width: 196px; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; outline: none;
  color: #fff; font-family: var(--td-song); font-weight: bold; font-size: var(--swp-f13, 13px); text-align: left; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-shadow: 0 1px 2px #0b1f55;
}
.swp-mrow.swp-focus .swp-mname { color: #ffe45c; }
.swp-msub { position: absolute; left: 6px; top: 22px; max-width: 198px; color: #9ed3fe; font-size: var(--swp-f12, 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.swp-mwhy { position: absolute; right: 8px; top: 12px; max-width: 120px; color: #ff8a70; font-size: var(--swp-f12, 12px); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.swp-mn {
  display: flex; align-items: center; justify-content: center; color: #3fd9ff; font-weight: bold; font-size: var(--swp-f16, 16px); pointer-events: none;
  text-shadow: 1px 0 0 #1b3d9e, -1px 0 0 #1b3d9e, 0 1px 0 #1b3d9e, 0 -1px 0 #1b3d9e;
}
.swp-sum {
  position: relative; margin: 2px 0 4px; text-align: center; color: #ffe45c; font-weight: bold; font-size: var(--swp-f16, 16px);
  text-shadow: 1px 0 0 #8a4b00, -1px 0 0 #8a4b00, 0 1px 0 #8a4b00, 0 -1px 0 #8a4b00; animation: swp-sum-in .45s ease-out both;
}
.swp-mexp { position: relative; margin: 2px 4px 0; color: #9ed3fe; font-size: var(--swp-f12, 12px); text-align: right; }
.swp-msub.swp-msub-miss { color: #ffb199; }
.swp-cond { position: relative; margin: 2px 4px 4px; color: #fcbd34; font-size: var(--swp-f12, 12px); font-weight: bold; line-height: 1.45; white-space: normal; }
.swp-miss { position: relative; margin: 0 4px 6px; color: #ff8a70; font-size: var(--swp-f12, 12px); font-weight: bold; line-height: 1.45; white-space: normal; }
.swp-mstop, .swp-stopall { position: relative; margin: 2px 4px 0; color: #ff8a70; font-size: var(--swp-f12, 12px); white-space: normal; }
.swp-cell.swp-pop { animation: swp-pop .38s cubic-bezier(.2, 1.6, .5, 1) both; }
@keyframes swp-pop { from { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes swp-sum-in { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .swp-cell.swp-pop, .swp-sum { animation: none; } }
