﻿/* 逆时巫师 Reverse Wizard - 主样式
 * 舞台固定 1600x900 设计尺寸，整体按窗口等比缩放（见 js/ui/stage.js）
 */
:root {
  --gold: #e8c26a;
  --gold-2: #b8893a;
  --gold-dim: #7a5b26;
  --ink: #f3e6c8;
  --ink-dim: #b9a98a;
  --panel: rgba(18, 14, 22, 0.86);
  --panel-2: rgba(32, 24, 38, 0.92);
  --line: rgba(232, 194, 106, 0.35);
  --fire: #ff6a2a;
  --frost: #59d4ff;
  --arcane: #c45cff;
  --neutral: #d9d2c0;
  --secret: #3ee0a5;
  --mana: #3d6bff;
  --freeze: #9fe6ff;
  --danger: #ff4d4d;
  --ok: #57e389;
  --font-title: "STKaiti", "KaiTi", "楷体", "Microsoft YaHei", serif;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #07060a; overflow: hidden; font-family: var(--font); color: var(--ink); user-select: none; }
button { font-family: inherit; }
img { -webkit-user-drag: none; }

#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #1a1220 0%, #050407 75%); }
#stage { position: relative; width: 1600px; height: 900px; transform-origin: center center; overflow: hidden; flex: none; }

.screen { position: absolute; inset: 0; display: none; }
.screen.active { display: block; }

/* ============ 通用按钮 ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 96px; height: 38px; padding: 0 18px; border-radius: 6px; cursor: pointer;
  font-size: 15px; font-weight: bold; letter-spacing: 1px; color: #2a1a06;
  background: linear-gradient(180deg, #ffe7a3 0%, #e8c26a 45%, #b8893a 100%);
  border: 1px solid #6b4a17; box-shadow: 0 2px 0 #4a3210, 0 0 12px rgba(232, 194, 106, 0.25), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .08s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.12); box-shadow: 0 2px 0 #4a3210, 0 0 22px rgba(255, 210, 120, 0.55), inset 0 1px 0 rgba(255,255,255,0.6); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 #4a3210; }
.btn:disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; }
.btn:disabled, .btn:disabled:hover { opacity: .55; box-shadow: none !important; transform: none; }
.btn.ghost { background: rgba(255,255,255,0.04); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: rgba(232,194,106,0.12); }
.btn.red { background: linear-gradient(180deg, #ff9b8a, #d9493a 50%, #8f2219); color: #fff; border-color: #5a120c; text-shadow: 0 1px 1px #000; }
.btn.blue { background: linear-gradient(180deg, #a8d8ff, #3d8be0 50%, #1d4f99); color: #fff; border-color: #102b55; text-shadow: 0 1px 1px #000; }
.btn.small { height: 28px; min-width: 60px; font-size: 13px; padding: 0 10px; }
.btn.big { height: 54px; min-width: 260px; font-size: 20px; letter-spacing: 4px; }
.btn.pulse { animation: btnPulse 1.4s infinite; }
@keyframes btnPulse { 0%,100% { box-shadow: 0 2px 0 #4a3210, 0 0 8px rgba(255,210,120,.4); } 50% { box-shadow: 0 2px 0 #4a3210, 0 0 26px rgba(255,210,120,.95); } }

/* ============ 主菜单 ============ */
#screen-menu { background: #000 url("../images/nswsbig.jpg") center/cover no-repeat; }
#screen-menu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 30%, rgba(0,0,0,.75) 100%); }
.menu-box { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 18px; align-items: center; }
.menu-box .btn.big { width: 320px; }
.menu-box .btn .sub { font-size: 12px; letter-spacing: 1px; opacity: .7; font-weight: normal; }
.menu-title { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); text-align: center; text-shadow: 0 0 20px #000; }
.menu-foot { position: absolute; right: 20px; bottom: 14px; font-size: 12px; color: var(--ink-dim); text-shadow: 0 1px 2px #000; }
.menu-sparks { position: absolute; inset: 0; pointer-events: none; }

/* ============ 测试模式设置页 ============ */
#screen-setup { background: #0b0910 url("../img/1.jpg") center/cover; }
#screen-setup::before { content: ""; position: absolute; inset: 0; background: rgba(5,3,8,.78); }
.setup-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 860px; padding: 30px 40px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 0 60px rgba(0,0,0,.8); }
.setup-panel h2 { margin: 0 0 6px; font-family: var(--font-title); font-size: 34px; color: var(--gold); letter-spacing: 6px; }
.setup-panel .desc { color: var(--ink-dim); font-size: 14px; margin-bottom: 20px; line-height: 1.7; }
.setup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.seat { padding: 14px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-top: 4px solid var(--c); }
.seat input[type=text] { width: 100%; height: 32px; margin: 8px 0; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line); background: rgba(0,0,0,.4); color: var(--ink); font-size: 15px; }
.seat label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-dim); cursor: pointer; }
.setup-row { display: flex; gap: 26px; align-items: center; margin: 10px 0; font-size: 14px; color: var(--ink-dim); flex-wrap: wrap; }
.setup-row input[type=number] { width: 120px; height: 30px; background: rgba(0,0,0,.4); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; }
.setup-row select { height: 30px; background: #1a1420; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.setup-actions { display: flex; gap: 16px; justify-content: flex-end; margin-top: 24px; }

/* ============ 游戏主界面 ============ */
#screen-game { background: #0b0910; }
#screen-game::before { content: ""; position: absolute; inset: 0; background: url("../img/2.jpg") center/cover; opacity: .22; filter: blur(2px) saturate(.8); }
#screen-game::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); }
#screen-game > * { z-index: 1; }

#topbar { position: absolute; left: 0; top: 0; width: 1600px; height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: linear-gradient(180deg, rgba(30,22,36,.98), rgba(18,13,22,.92)); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.6); }
#topbar .logo { font-family: var(--font-title); font-size: 24px; color: var(--gold); letter-spacing: 3px; text-shadow: 0 0 10px rgba(232,194,106,.5); white-space: nowrap; }
#topbar .round-info { font-size: 15px; white-space: nowrap; }
#topbar .round-info b { color: var(--gold); }
.phase-track { display: flex; gap: 2px; }
.phase-track span { padding: 3px 9px; font-size: 13px; border-radius: 3px; background: rgba(255,255,255,.05); color: var(--ink-dim); }
.phase-track span.on { background: linear-gradient(180deg, #ffe7a3, #c49544); color: #2a1a06; font-weight: bold; box-shadow: 0 0 10px rgba(232,194,106,.6); }
.view-tabs { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.view-tabs .lbl { font-size: 13px; color: var(--ink-dim); margin-right: 4px; }
.view-tab { position: relative; height: 32px; padding: 0 12px; border-radius: 5px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.view-tab i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.view-tab.on { border-color: var(--c); background: rgba(255,255,255,.12); box-shadow: inset 0 -3px 0 var(--c); }
.view-tab .ping { position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #f00; animation: ping 1s infinite; }
.view-tab .ai-tag { font-size: 10px; padding: 0 4px; border-radius: 3px; background: #445; color: #9cf; }
@keyframes ping { 50% { transform: scale(1.4); opacity: .6; } }
.top-btns { display: flex; gap: 6px; }

/* ============ 对手面板 ============ */
#opponents { position: absolute; left: 10px; top: 56px; width: 1580px; height: 150px; display: flex; gap: 10px; }
.opp { position: relative; flex: 1; border-radius: 8px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-top: 3px solid var(--c); padding: 8px 10px; display: grid; grid-template-columns: 210px 1fr; gap: 8px; cursor: pointer; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.opp:hover { box-shadow: 0 0 18px rgba(255,255,255,.08); }
.opp.acting { box-shadow: 0 0 0 2px var(--c), 0 0 24px var(--c); }
.opp .pname { font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.opp .pname .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.badge { font-size: 11px; padding: 1px 6px; border-radius: 3px; background: rgba(255,255,255,.1); color: var(--ink-dim); font-weight: normal; }
.badge.gold { background: linear-gradient(180deg, #ffe7a3, #c49544); color: #2a1a06; }
.badge.red { background: #7a1d1d; color: #ffd0d0; }
.badge.green { background: #1d5a3a; color: #c8ffd8; }
.badge.blue { background: #1d3a6a; color: #cfe3ff; }
.opp .stats { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.opp .counts { display: flex; gap: 10px; font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.opp .counts b { color: var(--ink); }
.opp .right { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opp .equip { display: flex; gap: 6px; align-items: flex-start; }
.mini-zone { display: flex; gap: 3px; flex-wrap: nowrap; overflow: hidden; height: 66px; align-items: flex-end; }
.zone-label { font-size: 11px; color: var(--ink-dim); }

/* 资源条 */
.bar { position: relative; height: 14px; border-radius: 7px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; transition: width .35s ease; }
.bar .txt { position: absolute; inset: 0; font-size: 11px; line-height: 13px; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; font-weight: bold; }
.bar.mana .fill { background: linear-gradient(90deg, #1f3fc2, #4f86ff, #9ec0ff); box-shadow: 0 0 8px #4f86ff; }
.bar.freeze .fill { background: linear-gradient(90deg, #4fb6d8, #b8f1ff); box-shadow: 0 0 8px #9fe6ff; }
.bar.gold .fill { background: linear-gradient(90deg, #a27118, #f2c75a, #fff0b0); box-shadow: 0 0 8px #f2c75a; }
.bar .ticks { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--tick) - 1px), rgba(0,0,0,.35) calc(var(--tick) - 1px), rgba(0,0,0,.35) var(--tick)); }
.res-row { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-dim); }

/* ============ 时间轮 ============ */
#wheel-wrap { position: absolute; left: 10px; top: 214px; width: 362px; height: 376px; border-radius: 10px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); }
#wheel-wrap .wt { position: absolute; left: 10px; top: 6px; font-size: 13px; color: var(--gold); letter-spacing: 2px; }
#wheel-wrap .unlock { position: absolute; right: 10px; top: 6px; display: flex; gap: 4px; }
#wheel { position: absolute; left: 6px; top: 22px; width: 350px; height: 350px; }
.wheel-marker, .wheel-loop { transition: transform .6s cubic-bezier(.5,1.6,.5,1); }
.wheel-marker { cursor: help; }

/* ============ 怪物区 ============ */
#board { position: absolute; left: 382px; top: 214px; width: 808px; height: 376px; border-radius: 10px; background: linear-gradient(180deg, rgba(20,16,26,.55), rgba(10,8,14,.75)); border: 1px solid rgba(255,255,255,.08); }
#board::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background: url("../images/sets/3-500x.png") center/cover; opacity: .16; }
.slots { position: absolute; left: 14px; top: 10px; display: flex; gap: 14px; }
.slot { position: relative; width: 185px; height: 290px; display: flex; flex-direction: column; align-items: center; }
.slot .owner { width: 100%; height: 24px; border-radius: 5px 5px 0 0; font-size: 13px; text-align: center; line-height: 24px; background: linear-gradient(180deg, var(--c), rgba(0,0,0,.4)); color: #fff; text-shadow: 0 1px 2px #000; font-weight: bold; }
.slot .holder { position: relative; width: 170px; height: 236px; margin-top: 6px; border-radius: 10px; border: 2px dashed rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.25); font-size: 13px; }
.slot .holder.has { border: none; }
.slot.targetable .holder { cursor: crosshair; }
.slot.targetable .mcard { box-shadow: 0 0 0 3px #ff4040, 0 0 30px #ff2020; animation: targetPulse 1s infinite; }
@keyframes targetPulse { 50% { box-shadow: 0 0 0 3px #ffb0b0, 0 0 40px #ff4040; } }
.mcard { position: relative; width: 170px; height: 236px; border-radius: 10px; overflow: visible; box-shadow: 0 6px 18px rgba(0,0,0,.7); transition: transform .2s; }
.mcard img { width: 100%; height: 100%; border-radius: 10px; display: block; }
.mcard.defeated img { filter: grayscale(1) brightness(.45); }
.mcard.defeated::after { content: "已击败"; position: absolute; left: 0; right: 0; top: 42%; text-align: center; font-family: var(--font-title); font-size: 30px; color: #ffd36b; text-shadow: 0 0 8px #000, 0 0 16px #a00; transform: rotate(-12deg); }
.mcard .killer { position: absolute; left: 0; right: 0; top: 60%; text-align: center; font-size: 13px; font-weight: bold; text-shadow: 0 1px 3px #000; }
.mcard.statue img { filter: saturate(0) brightness(1.3) sepia(.2) hue-rotate(160deg); }
.mcard.statue::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(135deg, rgba(180,240,255,.55), rgba(80,160,220,.25)); z-index: 1; }
.hp-orb { position: absolute; right: -10px; bottom: -10px; z-index: 3; min-width: 56px; height: 56px; padding: 0 6px; border-radius: 28px; display: flex; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(circle at 35% 30%, #ff8a8a, #c41d1d 55%, #5a0606); border: 2px solid #ffd36b; box-shadow: 0 0 14px rgba(255,40,40,.7); font-weight: bold; font-size: 22px; color: #fff; text-shadow: 0 2px 2px #000; line-height: 1; }
.hp-orb small { font-size: 10px; opacity: .85; }
.hp-orb.mana { background: radial-gradient(circle at 35% 30%, #9ec0ff, #2d55d8 55%, #0a1a5a); box-shadow: 0 0 14px rgba(60,100,255,.7); font-size: 16px; }
.gold-orb { position: absolute; left: -10px; bottom: -10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, #fff3b5, #e2b23a 55%, #7a5310); border: 2px solid #5a3d0a; font-weight: bold; font-size: 18px; color: #3a2405; }
.bodies { position: absolute; left: 50%; transform: translateX(-50%); top: -12px; z-index: 3; padding: 2px 8px; border-radius: 10px; background: #2a1030; border: 1px solid #c45cff; font-size: 12px; white-space: nowrap; }
.m-status { position: absolute; left: 6px; top: 6px; z-index: 3; display: flex; flex-direction: column; gap: 3px; }
.lvl-tag { position: absolute; right: 6px; top: 6px; z-index: 3; padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: bold; background: rgba(0,0,0,.65); color: var(--gold); border: 1px solid var(--gold-dim); }
.slot .steps { margin-top: 14px; font-size: 12px; color: var(--ink-dim); }

#playzone { position: absolute; left: 382px; top: 520px; width: 808px; height: 70px; padding: 4px 12px; display: flex; align-items: center; gap: 10px; }
#playzone .zl { font-size: 12px; color: var(--ink-dim); white-space: nowrap; line-height: 1.4; }
#playzone .zl b { color: var(--arcane); font-size: 16px; }
.auras { display: flex; gap: 4px; flex-wrap: wrap; max-width: 260px; }
.aura { font-size: 11px; padding: 2px 6px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid var(--ac, #888); color: #fff; white-space: nowrap; }

/* ============ 右侧面板 ============ */
#side { position: absolute; left: 1200px; top: 214px; width: 390px; height: 376px; border-radius: 10px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; overflow: hidden; }
.side-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-tabs button { flex: 1; height: 30px; background: none; border: none; color: var(--ink-dim); cursor: pointer; font-size: 13px; }
.side-tabs button.on { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
#log { flex: 1; overflow-y: auto; padding: 6px 10px; font-size: 12.5px; line-height: 1.55; }
#log::-webkit-scrollbar, .scroll::-webkit-scrollbar { width: 6px; }
#log::-webkit-scrollbar-thumb, .scroll::-webkit-scrollbar-thumb { background: rgba(232,194,106,.3); border-radius: 3px; }
.log-e { padding: 1px 0; border-bottom: 1px dashed rgba(255,255,255,.04); color: #cfc3a8; }
.log-e .who { font-weight: bold; }
.log-e.sys { color: var(--gold); text-align: center; }
.log-e.phase { color: #8fb4ff; }
.piles { padding: 10px; font-size: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pile-box { padding: 8px; border-radius: 6px; background: rgba(255,255,255,.04); text-align: center; }
.pile-box img { width: 56px; border-radius: 4px; display: block; margin: 0 auto 4px; }
.pile-box b { color: var(--gold); font-size: 18px; }

/* ============ 提示栏 ============ */
#prompt { position: absolute; left: 382px; top: 596px; width: 1208px; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 8px; background: linear-gradient(90deg, rgba(60,40,10,.85), rgba(25,18,30,.85)); border: 1px solid var(--line); }
#prompt .ptxt { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#prompt .ptxt b { color: var(--gold); }
#prompt .wait { color: var(--ink-dim); }

/* ============ 我的面板 ============ */
#me { position: absolute; left: 10px; top: 598px; width: 362px; height: 294px; border-radius: 10px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-top: 3px solid var(--c); padding: 10px 12px; }
#me .pname { font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
#me .pname .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
#me .stats { margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
#me .bar { height: 18px; border-radius: 9px; }
#me .bar .txt { font-size: 12px; line-height: 17px; }
#me .equip-row { display: flex; gap: 10px; align-items: flex-start; }
.slot-box { position: relative; width: 72px; height: 100px; border-radius: 6px; border: 1px dashed rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 11px; color: rgba(255,255,255,.35); text-align: center; flex: none; }
.slot-box.has { border: none; }
.slot-box .lab { position: absolute; bottom: -16px; left: 0; right: 0; font-size: 11px; color: var(--ink-dim); text-align: center; white-space: nowrap; }
.pile-mini { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-dim); }
.pile-mini .pm { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,.04); }
.pile-mini .pm:hover { background: rgba(232,194,106,.12); }
.pile-mini .pm b { color: var(--ink); font-size: 15px; }
/* 查看商店：悬停弹出商店售卖卡牌与价格 */
#me { z-index: 6; }
.shop-peek { position: relative; margin-top: 18px; height: 34px; padding: 0 12px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: default; font-size: 14px; font-weight: bold; letter-spacing: 1px; color: var(--gold); background: linear-gradient(180deg, rgba(232,194,106,.18), rgba(232,194,106,.06)); border: 1px solid var(--gold-dim); white-space: nowrap; }
.shop-peek:hover, .shop-peek.open { background: linear-gradient(180deg, rgba(232,194,106,.32), rgba(232,194,106,.12)); color: #fff3cf; }
.shop-peek .sp-ico { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b5, #e2b23a 55%, #7a5310); border: 1px solid #5a3d0a; }
.shop-pop { position: absolute; left: calc(100% + 14px); bottom: -6px; display: none; padding: 12px 16px 14px; border-radius: 10px; background: linear-gradient(180deg, rgba(40,26,12,.98), rgba(20,14,10,.98)); border: 1px solid var(--gold-dim); box-shadow: 0 10px 40px rgba(0,0,0,.85); cursor: default; letter-spacing: 0; }
.shop-pop::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 16px; } /* 悬停桥，鼠标移入弹层时不消失 */
.shop-peek:hover .shop-pop, .shop-peek.open .shop-pop { display: block; animation: modalIn .18s ease-out; }
.shop-peek.open .shop-pop { animation: none; }
.shop-pop .sp-title { font-family: var(--font-title); font-size: 18px; color: var(--gold); margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.shop-pop .sp-title small { font-family: var(--font); font-size: 12px; font-weight: normal; color: var(--ink-dim); }
.shop-pop .sp-row { display: flex; gap: 14px; }
.shop-pop .sp-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.shop-pop .sp-item .card { width: 104px; height: 144px; }
.shop-pop .price { font-size: 16px; }
.shop-pop .sp-empty { width: 300px; padding: 14px 0; text-align: center; font-size: 13px; font-weight: normal; line-height: 1.8; color: var(--ink-dim); }
.shop-pop .sp-empty b { color: var(--gold); }

/* 手牌 */
#hand { position: absolute; left: 382px; top: 650px; width: 1208px; height: 250px; }
#hand .hcard { position: absolute; bottom: 14px; width: 152px; height: 211px; transition: transform .18s, left .25s, box-shadow .18s; cursor: pointer; border-radius: 9px; }
#hand .hcard:hover { transform: translateY(-26px) scale(1.06); z-index: 50 !important; }
#hand .hcard.playable { box-shadow: 0 0 0 3px #4dff7a, 0 0 18px #2bd45a; }
#hand .hcard.selected { transform: translateY(-34px); box-shadow: 0 0 0 3px #ffd36b, 0 0 22px #ffb020; }
#hand .hcard.dim { filter: brightness(.55) saturate(.6); }
#hand .hcard.locked { cursor: not-allowed; }
.hand-empty { position: absolute; left: 0; right: 0; top: 90px; text-align: center; color: var(--ink-dim); font-size: 15px; }
.hand-hidden { position: absolute; left: 0; right: 0; top: 60px; text-align: center; color: var(--ink-dim); }

/* 卡牌 */
.card { position: relative; border-radius: 8px; overflow: visible; }
.card > img { width: 100%; height: 100%; display: block; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.card .cost-badge { position: absolute; left: -6px; top: -6px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 17px; color: #fff; border: 2px solid #fff; text-shadow: 0 1px 2px #000; z-index: 2; }
.card .cost-badge.down { background: radial-gradient(circle at 35% 30%, #8dffb0, #13a046); }
.card .cost-badge.up { background: radial-gradient(circle at 35% 30%, #ff9a9a, #c01d1d); }
.card .tag { position: absolute; left: 50%; transform: translateX(-50%); bottom: -9px; padding: 0 6px; border-radius: 8px; font-size: 11px; background: #2b1f08; border: 1px solid var(--gold-dim); color: var(--gold); white-space: nowrap; z-index: 2; }
.card.mini { width: 46px; height: 64px; }
.card.mini > img { border-radius: 4px; }
.card.sm { width: 72px; height: 100px; }
.card.md { width: 120px; height: 166px; }
.card.lg { width: 168px; height: 233px; }
.card.back > img { filter: brightness(.9); }
.card.countered > img { filter: grayscale(1) brightness(.5); }

/* ============ 预览 ============ */
#preview { position: absolute; z-index: 400; width: 330px; pointer-events: none; display: none; }
#preview img { width: 330px; height: 457px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(232,194,106,.6), 0 10px 40px rgba(0,0,0,.9); display: block; }
#preview .ptext { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(10,8,14,.94); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
#preview .ptext .k { color: var(--gold); }

/* ============ 弹窗 ============ */
#modal-layer { position: absolute; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
#modal-layer.show { display: flex; }
#modal-layer.soft { background: rgba(0,0,0,.25); }
.modal { position: relative; min-width: 520px; max-width: 1400px; max-height: 820px; padding: 22px 28px; border-radius: 12px; background: linear-gradient(180deg, #2a2030 0%, #17111c 100%); border: 1px solid var(--gold-dim); box-shadow: 0 0 0 1px #000, 0 0 50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); animation: modalIn .22s ease-out; display: flex; flex-direction: column; }
@keyframes modalIn { from { transform: scale(.92); opacity: 0; } }
.modal h3 { margin: 0 0 14px; font-family: var(--font-title); font-size: 24px; color: var(--gold); text-align: center; letter-spacing: 2px; }
.modal .mbody { overflow-y: auto; padding: 6px; }
.modal .mfoot { display: flex; gap: 12px; justify-content: center; margin-top: 16px; align-items: center; }
.modal .hint { color: var(--ink-dim); font-size: 13px; text-align: center; margin-bottom: 10px; }
.modal.parchment { background: linear-gradient(180deg, #efe0bd, #d7c08d); color: #2e2011; border-color: #6b4a17; }
.modal.parchment h3 { color: #5a3a10; }
.choice-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.choice-cards .card { cursor: pointer; transition: transform .15s, box-shadow .15s; border-radius: 8px; }
.choice-cards .card:hover { transform: translateY(-6px); }
.choice-cards .card.sel { box-shadow: 0 0 0 4px #ffd36b, 0 0 26px #ffb020; transform: translateY(-8px); }
.choice-cards .card .src { position: absolute; top: -10px; right: -6px; z-index: 2; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #333; border: 1px solid #777; }
.choice-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.num-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 640px; }
.num-pick .btn { min-width: 52px; }
.level-pick { display: flex; gap: 22px; justify-content: center; }
.level-pick .lv { position: relative; width: 150px; cursor: pointer; text-align: center; transition: transform .15s; }
.level-pick .lv img { width: 150px; height: 208px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.7); }
.level-pick .lv:hover { transform: translateY(-8px); }
.level-pick .lv.locked { filter: grayscale(1) brightness(.4); cursor: not-allowed; }
.level-pick .lv .cnt { margin-top: 6px; font-size: 13px; color: var(--ink-dim); }
.level-pick .lv .lock { position: absolute; top: 80px; left: 0; right: 0; font-size: 18px; color: #fff; text-shadow: 0 0 6px #000; }

/* 商店 */
#shop { position: absolute; left: 382px; top: 214px; width: 808px; height: 376px; z-index: 5; border-radius: 10px; background: linear-gradient(180deg, rgba(40,26,12,.97), rgba(20,14,10,.97)); border: 1px solid var(--gold-dim); padding: 12px 18px; display: none; }
#shop.show { display: block; animation: modalIn .25s; }
#shop h4 { margin: 0 0 6px; font-family: var(--font-title); font-size: 22px; color: var(--gold); letter-spacing: 3px; display: flex; align-items: center; gap: 12px; }
#shop h4 small { font-family: var(--font); font-size: 13px; color: var(--ink-dim); letter-spacing: 0; }
.shop-row { display: flex; gap: 22px; justify-content: center; margin-top: 4px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.shop-item .card { width: 150px; height: 208px; }
.price { display: flex; align-items: center; gap: 4px; font-weight: bold; color: var(--gold); }
.coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b5, #e2b23a 55%, #7a5310); border: 1px solid #5a3d0a; vertical-align: middle; }
.shop-actions { position: absolute; right: 18px; top: 12px; display: flex; gap: 8px; }

/* ============ 浮动数字与特效 DOM ============ */
#fx-canvas { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; z-index: 200; pointer-events: none; }
#fx-layer { position: absolute; inset: 0; z-index: 210; pointer-events: none; overflow: hidden; }
.float-num { position: absolute; font-weight: 900; font-size: 34px; color: #fff; text-shadow: 0 0 6px #000, 0 2px 0 #000; animation: floatUp 1.1s ease-out forwards; white-space: nowrap; transform: translate(-50%, -50%); }
.float-num.dmg { color: #ff4040; font-size: 44px; -webkit-text-stroke: 1px #3a0000; }
.float-num.immune { color: #c9d6ff; font-size: 28px; }
.float-num.mana { color: #7fa8ff; font-size: 24px; }
.float-num.freeze { color: #b8f1ff; font-size: 24px; }
.float-num.gold { color: #ffd36b; font-size: 24px; }
.float-num.loss { color: #ff8080; font-size: 22px; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 30% { transform: translate(-50%, -60%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -160%) scale(1); } }
.banner { position: absolute; left: 0; right: 0; top: 380px; height: 120px; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 64px; color: #fff3cf; letter-spacing: 16px; text-shadow: 0 0 20px #ffb020, 0 0 40px #a05a00, 0 4px 0 #000; background: linear-gradient(90deg, transparent, rgba(0,0,0,.75) 25%, rgba(0,0,0,.75) 75%, transparent); animation: bannerIn var(--d, 1.2s) ease-in-out forwards; }
.banner small { display: block; font-size: 20px; letter-spacing: 6px; opacity: .8; }
@keyframes bannerIn { 0% { opacity: 0; transform: scaleY(0); } 15% { opacity: 1; transform: scaleY(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scaleY(.6); } }
.showcase { position: absolute; transform: translate(-50%, -50%); animation: showcaseIn var(--d, 1s) ease-out forwards; }
.showcase img { width: 100%; height: 100%; border-radius: 14px; box-shadow: 0 0 40px var(--glow, #ffd36b), 0 0 0 3px var(--glow, #ffd36b); }
@keyframes showcaseIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotateY(90deg); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotateY(0); } 30% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.85); } }
.legend-rays { position: absolute; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,220,120,.35) 0deg 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 65%); mask: radial-gradient(circle, #000 10%, transparent 65%); animation: raysSpin 2.4s linear forwards; }
@keyframes raysSpin { from { transform: translate(-50%, -50%) rotate(0) scale(.4); opacity: 0; } 15% { opacity: 1; } to { transform: translate(-50%, -50%) rotate(90deg) scale(1.2); opacity: 0; } }
.dim-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.85)); animation: dimInOut var(--d, 1.4s) ease forwards; }
@keyframes dimInOut { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.boss-title { position: absolute; left: 0; right: 0; top: 640px; text-align: center; font-family: var(--font-title); animation: bossTitle var(--d, 2.4s) ease forwards; }
.boss-title .t1 { font-size: 26px; letter-spacing: 12px; color: #ffcf7a; text-shadow: 0 0 10px #000; }
.boss-title .t2 { font-size: 72px; letter-spacing: 18px; color: #fff; text-shadow: 0 0 24px #ff3b1f, 0 0 50px #a01000, 0 4px 0 #000; }
@keyframes bossTitle { 0% { opacity: 0; transform: scale(1.6); filter: blur(8px); } 18% { opacity: 1; transform: scale(1); filter: blur(0); } 82% { opacity: 1; } 100% { opacity: 0; } }
.shake { animation: shake var(--d, .4s) linear; }
@keyframes shake { 0%,100% { transform: translate(0,0); } 10% { transform: translate(calc(var(--a) * -1), calc(var(--a) * .5)); } 20% { transform: translate(var(--a), calc(var(--a) * -.6)); } 30% { transform: translate(calc(var(--a) * -.8), calc(var(--a) * -.4)); } 40% { transform: translate(calc(var(--a) * .7), calc(var(--a) * .7)); } 50% { transform: translate(calc(var(--a) * -.5), calc(var(--a) * .3)); } 60% { transform: translate(calc(var(--a) * .4), calc(var(--a) * -.4)); } 75% { transform: translate(calc(var(--a) * -.2), calc(var(--a) * .2)); } }
.drop-in { animation: dropIn var(--d, .6s) cubic-bezier(.3,1.4,.6,1) both; }
@keyframes dropIn { 0% { transform: translateY(-260px) scale(1.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.rise-in { animation: riseIn var(--d, .9s) ease-out both; }
@keyframes riseIn { 0% { transform: translateY(60px) scale(.6); opacity: 0; filter: brightness(3) blur(4px); } 100% { transform: none; opacity: 1; filter: none; } }
.slam-in { animation: slamIn var(--d, .7s) cubic-bezier(.2,1.6,.5,1) both; }
@keyframes slamIn { 0% { transform: scale(2.4); opacity: 0; filter: brightness(2); } 55% { transform: scale(.94); opacity: 1; } 100% { transform: none; filter: none; } }
.counter-stamp { position: absolute; transform: translate(-50%, -50%) rotate(-14deg); font-family: var(--font-title); font-size: 64px; color: #ff4040; border: 6px solid #ff4040; padding: 0 20px; border-radius: 10px; text-shadow: 0 0 10px #000; animation: stamp .9s ease-out forwards; background: rgba(0,0,0,.4); }
@keyframes stamp { 0% { transform: translate(-50%, -50%) rotate(-14deg) scale(3); opacity: 0; } 25% { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.dice-pop { position: absolute; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 14px; background: linear-gradient(135deg, #fff, #d8d0c0); color: #2a1a06; font-size: 46px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.8); animation: diceRoll .9s ease-out forwards; }
@keyframes diceRoll { 0% { transform: translate(-50%, -50%) rotate(-540deg) scale(.2); } 50% { transform: translate(-50%, -50%) rotate(0) scale(1.2); } 65% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
.reverse-clock { position: absolute; width: 420px; height: 420px; transform: translate(-50%, -50%); animation: clockSpin 1.6s ease-in-out forwards; }
.reverse-clock img { width: 100%; height: 100%; filter: drop-shadow(0 0 30px #ffcc55); }
.reverse-clock2 { position: absolute; transform: translate(-50%, -50%) scale(.4); opacity: 0; will-change: transform; }
.reverse-clock2 img { position: relative; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 0 18px #ff8a20) drop-shadow(0 0 40px rgba(255,90,20,.7)); }
.reverse-clock2 .rc-glow { position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255,140,40,.55) 0%, rgba(255,70,10,.25) 45%, rgba(255,40,0,0) 70%); animation: rcGlow .35s ease-in-out infinite alternate; }
@keyframes rcGlow { from { opacity: .7; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes clockSpin { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(0) scale(.3); } 25% { opacity: 1; transform: translate(-50%, -50%) rotate(-120deg) scale(1); } 75% { opacity: 1; transform: translate(-50%, -50%) rotate(-540deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-720deg) scale(1.6); } }

/* ============ 教程 ============ */
#tut-layer { position: absolute; inset: 0; z-index: 350; pointer-events: none; }
.coach { position: absolute; width: 380px; padding: 16px 18px 14px; border-radius: 12px; pointer-events: auto; background: linear-gradient(180deg, #f3e5c2, #dcc492); color: #2e2011; border: 2px solid #8a6424; box-shadow: 0 10px 40px rgba(0,0,0,.8); font-size: 15px; line-height: 1.7; animation: modalIn .25s; }
.coach .who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--font-title); font-size: 20px; color: #6b3f0e; }
.coach .who img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #8a6424; object-fit: cover; object-position: top; background: #fff; }
.coach b { color: #a3290f; }
.coach .cfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.coach .step { font-size: 12px; color: #7a6040; }
.tut-highlight { position: absolute; border-radius: 10px; box-shadow: 0 0 0 4px #ffd36b, 0 0 0 9999px rgba(0,0,0,.45), 0 0 30px 6px #ffb020; pointer-events: none; transition: all .3s; animation: hlPulse 1.4s infinite; }
@keyframes hlPulse { 50% { box-shadow: 0 0 0 6px #fff1b8, 0 0 0 9999px rgba(0,0,0,.45), 0 0 40px 10px #ffb020; } }
.tut-slide { position: absolute; inset: 0; pointer-events: auto; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.72); }
.tut-slide .sheet { width: 980px; min-height: 520px; padding: 34px 44px; border-radius: 14px; background: linear-gradient(180deg, #f1e2bd, #d6bd88); color: #2e2011; border: 2px solid #7a5520; box-shadow: 0 0 60px rgba(0,0,0,.9); display: flex; flex-direction: column; }
.tut-slide h2 { margin: 0 0 16px; font-family: var(--font-title); font-size: 36px; color: #5a3a10; letter-spacing: 4px; }
.tut-slide .content { flex: 1; font-size: 17px; line-height: 1.85; display: flex; gap: 30px; align-items: flex-start; }
.tut-slide .content .txt { flex: 1; }
.tut-slide .content img.side { width: 300px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.tut-slide b { color: #a3290f; }
.tut-slide .nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.tut-slide .dots { display: flex; gap: 6px; }
.tut-slide .dots i { width: 10px; height: 10px; border-radius: 50%; background: #b59a66; }
.tut-slide .dots i.on { background: #6b3f0e; }
.kw { display: inline-block; padding: 0 6px; border-radius: 4px; color: #fff; font-weight: bold; font-size: 15px; }
.kw.fire { background: #c2401a; } .kw.frost { background: #2d86b8; } .kw.arcane { background: #8a34c2; } .kw.neutral { background: #6b6252; } .kw.secret { background: #1c8a63; }

/* 胜利 */
.win-panel { text-align: center; }
.win-panel .crown { font-family: var(--font-title); font-size: 54px; color: var(--gold); text-shadow: 0 0 20px #ffb020; }
.score-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.score-table th, .score-table td { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.score-table th { color: var(--gold); font-weight: normal; }

/* 调试面板 */
.debug-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 14px; }
.debug-grid .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.debug-grid select, .debug-grid input { height: 30px; background: #1a1420; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.card-browser { display: flex; flex-wrap: wrap; gap: 8px; }
.rules-text { font-size: 14px; line-height: 1.85; color: #e9dcc0; max-width: 980px; }
.rules-text h4 { color: var(--gold); margin: 14px 0 4px; font-size: 16px; }
.rules-text b { color: #ffd36b; }
.toast { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 420; padding: 10px 22px; border-radius: 8px; background: rgba(20,14,24,.95); border: 1px solid var(--gold-dim); font-size: 15px; animation: toast 2.4s ease forwards; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ============ 声音设置 ============ */
.menu-audio { position: absolute; right: 20px; top: 18px; }
.vol-panel { display: flex; flex-direction: column; gap: 16px; padding: 6px 10px; }
.vol-row { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 14px; font-size: 16px; }
.vol-row .vl { color: var(--ink); font-weight: bold; }
.vol-row b { text-align: right; color: var(--gold); font-size: 16px; }
.vol-row input[type=range] { -webkit-appearance: none; appearance: none; height: 10px; border-radius: 5px; background: rgba(0,0,0,.5); border: 1px solid var(--line); cursor: pointer; }
.vol-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b5, #e2b23a 55%, #7a5310); border: 2px solid #3a2405; cursor: pointer; }
.vol-mute { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-dim); cursor: pointer; }
.vol-now { font-size: 13px; color: var(--ink-dim); border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.vol-now span { color: var(--gold); }

/* ============ 逆转时序状态：手牌区火光边框 + 出牌区标签 ============ */
#reverse-aura { position: absolute; z-index: 5; pointer-events: none; border-radius: 14px; opacity: 0; transform: scale(1.02); transition: opacity .45s ease, transform .45s ease; }
#reverse-aura.on { opacity: .85; transform: scale(1); }
#reverse-aura .ra-glow { position: absolute; inset: 0; border-radius: 14px; box-shadow: 0 0 12px 3px rgba(255,170,90,.45), 0 0 28px 8px rgba(255,130,60,.22), inset 0 0 16px 3px rgba(255,180,100,.18); animation: raFlicker .2s steps(2) infinite alternate, raPulse 1.8s ease-in-out infinite; }
/* 流动火焰描边：渐变沿边框流动，mask 只保留边框 */
#reverse-aura .ra-border { position: absolute; inset: 0; border-radius: 14px; padding: 3px;
  background: repeating-linear-gradient(115deg, #ff8a4a 0 14px, #ffad66 22px, #ffe2b0 30px, #ffad66 38px, #ff8a4a 52px);
  background-size: 260px 260px; animation: raFlow 1.3s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(255,170,90,.8)) drop-shadow(0 0 8px rgba(255,130,60,.5)); }
#reverse-aura .ra-b2 { inset: -4px; padding: 3px; border-radius: 18px; opacity: .35; filter: blur(3px); animation: raFlow .8s linear infinite reverse; }
#reverse-tag { position: absolute; z-index: 6; pointer-events: none; height: 24px; padding: 0 12px 0 8px; display: flex; align-items: center; gap: 6px; border-radius: 12px; font-size: 13px; font-weight: 900; letter-spacing: 2px; color: #fff3d0;
  background: linear-gradient(180deg, #ff8a20, #c8300c); border: 2px solid #3a0d02; box-shadow: 0 0 12px rgba(255,100,20,.9); text-shadow: 0 1px 0 #3a0d02, 1px 0 0 #3a0d02, -1px 0 0 #3a0d02, 0 -1px 0 #3a0d02;
  opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
#reverse-tag.on { opacity: 1; transform: none; animation: raPulse 1.6s ease-in-out infinite; }
#reverse-tag i { width: 14px; height: 14px; background: url("../images/others/items/逆转时序指示物.png") center/contain no-repeat; animation: raSpin 1.2s linear infinite reverse; }
@keyframes raFlow { to { background-position: 260px 0; } }
@keyframes raFlicker { from { opacity: .85; } to { opacity: 1; } }
@keyframes raPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }
@keyframes raSpin { to { transform: rotate(360deg); } }