/* 字阵破译 · 直播画面
   画框固定 540×960（9:16），由 app.js 按窗口等比缩放；Unity 官方客户端 1080×1920 时缩放为 2 倍。 */
:root {
  --bg: #0b1416;
  --panel: #15262a;
  --panel-2: #101e21;
  --line: #23393e;
  --line-2: #2e474c;
  --text: #f1e6cf;
  --muted: #8fa6a1;
  --soft: #c9d5d2;
  --tile: #ede3cc;
  --tile-edge: #a8976e;
  --tile-ink: #1e1a16;
  --cinnabar: #d2462f;
  --cinnabar-deep: #8e2615;
  --cinnabar-soft: #ffb39f;
  --gold: #e0b252;
  --gold-deep: #8c6a22;
  --jade: #3b5a45;
  --jade-bg: #1c2a24;
  --violet: #2d2647;
  --fit: 1;
  /* 直播间实际可见宽度比 9:16 更窄，悬赏和字阵都留出侧边浮层空间。 */
  --safe-x: 74px;
  --scene-scale: .77165;
  --ops-w: 520px;
  --tile-font: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --ui-font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: var(--text); background: #070d0f; font-family: var(--ui-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.stage { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100vw; height: 100vh; }
.frame-box { position: relative; flex: none; width: calc(540px * var(--fit)); height: calc(960px * var(--fit)); }
.stream-frame {
  position: absolute; top: 0; left: 0; width: 540px; height: 960px;
  transform: scale(var(--fit)); transform-origin: 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px 212px 132px minmax(0, 1fr) 32px auto; gap: 5px;
  padding: 10px var(--safe-x); overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, #1d1a2e 0%, var(--bg) 60%);
  isolation: isolate;
}

/* ---------- 顶部 ---------- */
.hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hud-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 0 1 118px; }
.hud-eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.hud-eyebrow strong { color: var(--text); font-weight: 700; }
.hud-theme { font-family: var(--tile-font); font-size: 22px; font-weight: 900; letter-spacing: 2px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-right { display: flex; align-items: center; gap: 14px; flex: none; }
.hud-progress { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--muted); font-size: 11px; }
.hud-progress strong { color: var(--text); font-size: 16px; }
.meter { width: 120px; height: 6px; border-radius: 3px; background: #1d3236; overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; background: var(--cinnabar); transition: width .4s ease; }
.timer-ring {
  --p: 1; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, var(--panel) 80%, transparent 81% 100%), conic-gradient(var(--gold) calc(var(--p) * 360deg), #1d3236 0);
}
.timer-ring strong { font-size: 13px; font-weight: 900; line-height: 16px; font-variant-numeric: tabular-nums; }
.timer-ring span { font-size: 8px; color: var(--muted); }
.timer-ring.is-urgent { background: radial-gradient(closest-side, #2a1410 80%, transparent 81% 100%), conic-gradient(var(--cinnabar) calc(var(--p) * 360deg), #3a1a14 0); animation: urgentPulse 1s ease-in-out infinite; }
.timer-ring.is-urgent strong, .timer-ring.is-urgent span { color: var(--cinnabar-soft); }
@keyframes urgentPulse { 50% { transform: scale(1.06); } }

/* ---------- 悬赏令 ---------- */
.bounties { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; }
.bounty { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; min-height: 0; padding: 6px 6px 6px 7px; border-radius: 4px; background: linear-gradient(180deg, #efe3c6, #dccaa2); color: #2b2118; box-shadow: inset 0 0 0 1px #9c7b46, inset 0 0 14px rgba(120, 82, 30, .25), 0 3px 6px rgba(0, 0, 0, .4); overflow: hidden; transition: filter .3s; }
.bounty::before { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #6b4b25; }
.bounty-head { display: flex; align-items: flex-start; gap: 4px; min-width: 0; }
.bounty-no { flex: none; width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cinnabar); color: #fff4e6; font-size: 10px; font-weight: 900; margin-top: 1px; }
.bounty-clue { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; color: #2e2217; font-size: 12px; font-weight: 700; line-height: 15px; max-height: 30px; overflow: hidden; }
.slots { display: flex; flex: none; gap: 3px; }
.slot { width: 20px; height: 20px; border-radius: 3px; border: 1px solid #a88a58; background: rgba(255, 250, 235, .55); display: flex; align-items: center; justify-content: center; color: var(--cinnabar-deep); font-family: var(--tile-font); font-weight: 900; font-size: 14px; }
.bounty-word { font-family: var(--tile-font); font-weight: 900; font-size: 21px; letter-spacing: 1px; line-height: 22px; color: #2b2118; white-space: nowrap; }
.bounty-by { display: flex; align-items: center; gap: 4px; padding-right: 26px; color: #5e4a33; font-size: 10px; white-space: nowrap; overflow: hidden; }
.bounty-stamp { position: absolute; right: 5px; bottom: 4px; width: 24px; height: 24px; border: 2px solid rgba(190, 50, 30, .85); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(190, 50, 30, .9); font-family: var(--tile-font); font-size: 14px; font-weight: 900; transform: rotate(-14deg); }
.bounty.is-found { filter: saturate(.75) brightness(.9); }
.bounty.is-fresh { filter: none; box-shadow: inset 0 0 0 2px var(--cinnabar), 0 0 18px rgba(210, 70, 47, .6); animation: bountyFlip .6s cubic-bezier(.2, .9, .3, 1.3); }
.bounty.is-fresh .bounty-stamp { animation: stampIn .45s cubic-bezier(.2, .9, .3, 1.4) both; }
.bounty.is-glow { box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px rgba(224, 178, 82, .65); }
.bounty.is-missed { filter: grayscale(.8) brightness(.7); }
@keyframes bountyFlip { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes stampIn { from { transform: rotate(-30deg) scale(2.2); opacity: 0; } }

/* ---------- 字阵 ---------- */
.board-wrap { position: relative; padding: 6px; border-radius: 14px; background: radial-gradient(circle at 50% 50%, rgba(224, 178, 82, .08) 0 30%, transparent 31%), repeating-radial-gradient(circle at 50% 50%, transparent 0 46px, rgba(224, 178, 82, .07) 47px 48px), linear-gradient(180deg, #23201c, #15130f); box-shadow: inset 0 0 0 1px #4a3d2a, inset 0 0 0 4px #1a1611, inset 0 0 0 5px #5b4a30, 0 8px 18px rgba(0, 0, 0, .45); }
.board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); gap: 4px; height: 100%; }
.cell { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-family: var(--tile-font); font-weight: 900; font-size: 31px; line-height: 1; user-select: none; }
.cell.is-live { background: linear-gradient(160deg, #f6eed8 0%, #d8c9a2 100%); color: #17110b; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 3px 0 #8e7f60, 0 5px 8px rgba(0, 0, 0, .4); transition: transform .2s; }
.cell.is-empty { background: rgba(0, 0, 0, .25); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); color: transparent; }
.cell.is-glow { box-shadow: 0 0 0 3px var(--gold), 0 4px 0 var(--tile-edge), 0 0 20px rgba(224, 178, 82, .7); animation: glowPulse 1.2s ease-in-out infinite; }
.cell.is-final { background: var(--gold); color: var(--tile-ink); box-shadow: 0 4px 0 var(--gold-deep), 0 0 26px rgba(224, 178, 82, .8); transform: scale(1.1); z-index: 2; animation: finalBreathe 1.6s ease-in-out infinite; }
.cell.is-solved { background: var(--gold); color: var(--tile-ink); box-shadow: 0 4px 0 var(--gold-deep), 0 0 34px rgba(224, 178, 82, .95); transform: scale(1.18); z-index: 3; }
.cell.is-clearing { z-index: 4; background: var(--cinnabar); color: #fff4e6; box-shadow: 0 4px 0 var(--cinnabar-deep), 0 0 26px rgba(210, 70, 47, .85); animation: tileClear .9s cubic-bezier(.3, .7, .4, 1) forwards; }
.cell.is-shattering { z-index: 3; background: var(--tile); color: var(--tile-ink); animation: tileShatter .7s ease-in forwards; }
.cell.is-close { box-shadow: 0 0 0 3px var(--gold), 0 4px 0 var(--tile-edge); animation: tileWobble .8s ease-in-out; }
.cell.is-near { box-shadow: 0 0 0 2px rgba(201, 213, 210, .7), 0 4px 0 var(--tile-edge); animation: tileNudge .6s ease-in-out; }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 3px var(--gold), 0 4px 0 var(--tile-edge), 0 0 30px rgba(224, 178, 82, .95); } }
@keyframes finalBreathe { 50% { transform: scale(1.16); } }
@keyframes tileClear {
  0% { transform: scale(1); }
  25% { transform: translateY(-6px) scale(1.18); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); background: #3a3a3a; color: #a3a3a3; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
}
/* 已组成词语的字：灰掉但保留，没猜中的观众还能回看“原来是这几个字”。 */
.cell.is-used { background: linear-gradient(160deg, #4a4a48, #353533); color: #a9a6a0; text-shadow: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2px 0 #222; filter: grayscale(1); }
.cell.is-used[data-no]::after { content: attr(data-no); position: absolute; right: 3px; top: 2px; min-width: 13px; height: 13px; padding: 0 2px; border-radius: 7px; background: rgba(0, 0, 0, .35); color: #c9c6bf; font-family: var(--ui-font); font-size: 9px; font-weight: 700; line-height: 13px; text-align: center; }
@keyframes tileShatter {
  0% { transform: none; }
  30% { transform: rotate(-8deg) scale(1.04); filter: brightness(1.2); }
  100% { transform: translateY(24px) rotate(16deg) scale(.5); opacity: 0; filter: blur(2px); }
}
@keyframes tileWobble { 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } }
@keyframes tileNudge { 30% { transform: translateY(-3px); } 60% { transform: translateY(1px); } }

.callout { position: absolute; left: 50%; top: 206px; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--cinnabar); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 10px) scale(.9); }
.callout.is-show { animation: calloutIn 2.4s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.callout.is-final { background: var(--gold); }
.callout.is-final .callout-who, .callout.is-final .callout-word { color: var(--tile-ink); }
.callout-who { color: #fff4e6; font-size: 14px; font-weight: 700; }
.callout-word { color: #fff4e6; font-family: var(--tile-font); font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.callout-points { color: #ffe2a8; font-size: 15px; font-weight: 900; }
.callout.is-final .callout-points { color: var(--cinnabar-deep); }
@keyframes calloutIn { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.85); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 82% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -16px) scale(.96); } }

.event-banner { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 7; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(45, 38, 71, .95); border: 1px solid #5b4f8f; color: #e8e2ff; font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(-8px); pointer-events: none; text-align: center; }
.event-banner.is-show { animation: bannerIn 2.6s ease forwards; }
.event-banner b { color: #fff; }
.event-banner.tone-like { background: rgba(28, 42, 36, .95); border-color: var(--jade); color: #ddf2e6; }
.event-banner.tone-hint { background: rgba(26, 26, 18, .95); border-color: var(--gold-deep); color: #ffe2a8; }
@keyframes bannerIn { 0% { opacity: 0; transform: translateY(-8px); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }

.sprint-banner { position: absolute; left: 50%; bottom: 18px; z-index: 5; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 14px; background: rgba(11, 20, 22, .92); border: 1px solid var(--gold); text-align: center; white-space: nowrap; }
.sprint-banner span { color: var(--gold); font-size: 12px; letter-spacing: 3px; }
.sprint-banner strong { font-size: 15px; }
.sprint-banner small { color: var(--muted); font-size: 12px; }

/* ---------- 终极字谜 ---------- */
.final-bar { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); min-width: 0; }
.lock { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.final-label { flex: none; color: var(--gold); font-size: 13px; white-space: nowrap; }
.final-hint { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.final-bar.is-open { border: 2px solid var(--gold); background: #1a1a12; box-shadow: 0 0 24px rgba(224, 178, 82, .25); }
.final-bar.is-open .lock { display: none; }
.final-bar.is-open .final-hint { color: var(--text); font-size: 13px; }
.final-bar.is-open .slot, .final-bar.is-solved .slot { width: 28px; height: 28px; font-size: 19px; border-color: var(--gold); }
.final-bar.is-solved { border: 2px solid var(--gold); background: #2a2210; }
.final-bar.is-solved .slot { background: var(--gold); color: var(--tile-ink); }

/* ---------- 下方战报 ---------- */
.lower { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 0; }
.summon-sticker { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; border: 1px solid var(--gold-deep); border-radius: 8px; background: rgba(35, 23, 13, .95); color: #ffe3a4; font-size: 12px; line-height: 15px; }
.summon-sticker strong { font-size: 13px; }
.summon-sticker b { color: #fff4db; font-size: 17px; }
.joystick-symbol { display: block; width: 24px; height: 22px; font-size: 24px; line-height: 22px; text-align: center; }
.guess-strip { display: none; }
.guess-pill { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #132225; color: var(--muted); font-size: 11px; white-space: nowrap; animation: pillIn .3s ease; }
.guess-pill b { color: var(--soft); font-weight: 600; }
.guess-pill.kind-hit { background: var(--cinnabar); color: #fff4e6; }
.guess-pill.kind-hit b { color: #fff; }
.guess-pill.kind-close, .guess-pill.kind-order { background: #3a2a12; color: var(--gold); }
.guess-pill.kind-near { background: #1d3236; color: var(--soft); }
.guess-pill.kind-final { background: var(--gold); color: var(--tile-ink); }
.guess-pill.is-leaving { opacity: 0; transition: opacity .4s; }
@keyframes pillIn { from { opacity: 0; transform: translateY(6px); } }
.feed { position: absolute; left: 8px; top: 86px; z-index: 4; display: flex; flex-direction: column; gap: 2px; width: 190px; padding: 4px 6px; border-radius: 8px; background: rgba(12, 10, 20, .55); }
.feed:empty { display: none; }
.feed-row { display: flex; align-items: center; gap: 5px; height: 17px; color: #e6dccb; font-size: 11px; white-space: nowrap; overflow: hidden; }
.feed-row b { color: var(--text); }
.feed-row .word { font-family: var(--tile-font); font-weight: 900; color: var(--text); font-size: 13px; }
.feed-row.is-new { animation: pillIn .35s ease; }
.tag { flex: none; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.tag-hit { background: var(--cinnabar); color: #fff4e6; }
.tag-close, .tag-order { background: var(--gold); color: var(--tile-ink); }
.tag-near { background: #1d3236; color: var(--soft); }
.tag-gift { background: var(--violet); color: #d9d0ff; }
.tag-like { background: var(--jade); color: #ddf2e6; }
.tag-hint { background: #3a2a12; color: var(--gold); }
.tag-final { background: var(--gold); color: var(--tile-ink); }
.rank-list { display: flex; gap: 6px; height: 26px; overflow: hidden; }
.rank-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rank-line .rank-list { flex: 1; min-width: 0; }
.rank-period { flex: none; color: var(--gold); font-size: 10px; }
.rank { flex: none; display: flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--panel); color: #dde6e3; font-size: 11px; white-space: nowrap; max-width: 150px; }
.rank .no { color: var(--muted); }
.rank .name { overflow: hidden; text-overflow: ellipsis; }
.rank b { color: var(--gold); }
.rank-empty { color: var(--muted); font-size: 11px; line-height: 26px; }
.gift-bar { display: flex; gap: 4px; padding: 7px 4px; border-radius: 12px; background: var(--panel); }
.rules-sticker { flex: 0 0 42px; }
.rules-sticker summary { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--gold); font-size: 9px; cursor: pointer; list-style: none; }
.rules-sticker summary::-webkit-details-marker { display: none; }
.rules-sticker summary img { width: 24px; height: 22px; object-fit: contain; }
.rules-sticker summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.rules-sticker-panel { position: absolute; right: var(--safe-x); bottom: 112px; z-index: 8; width: 220px; padding: 10px; border: 1px solid var(--gold-deep); border-radius: 10px; background: rgba(16, 22, 25, .97); box-shadow: 0 4px 24px rgba(0, 0, 0, .65); color: var(--text); }
.joystick-guide { display: block; width: 100%; height: auto; margin-bottom: 8px; }
.rules-sticker-panel h3 { margin: 0 0 7px; color: var(--gold); font-size: 12px; text-align: center; }
.rules-command { font-size: 13px; text-align: center; }
.rules-command strong { color: #ffdb7d; font-size: 18px; }
.rules-command small { display: block; margin-top: 3px; font-size: 10px; }
.rules-sticker-panel dl { margin: 9px 0; padding: 7px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.rules-sticker-panel dl div { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; font-size: 11px; }
.rules-sticker-panel dt { color: #ffdb7d; }
.rules-sticker-panel dd { margin: 0; }
.rules-note { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.gift { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.gift b { color: var(--text); font-size: 11px; font-weight: 700; }
.gift span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 10px; white-space: nowrap; }
.gift > span { min-height: 22px; overflow: visible; text-overflow: clip; font-size: 9px; line-height: 11px; white-space: normal; }
.energy { width: 52px; height: 4px; border-radius: 2px; background: var(--bg); overflow: hidden; }
.energy span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .3s; }

.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; color: var(--bg); font-size: 10px; font-weight: 700; background-size: cover; background-position: center; }
.avatar-sm { width: 16px; height: 16px; font-size: 9px; }
.avatar-lg { width: 56px; height: 56px; font-size: 24px; }

/* ---------- 结算 ---------- */
.settlement { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: 12px; padding: 22px calc(var(--safe-x) + 6px) 18px; background: rgba(11, 20, 22, .97); animation: settleIn .45s ease; overflow: hidden; }
@keyframes settleIn { from { opacity: 0; transform: scale(.98); } }
.settle-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.settle-head span { color: var(--muted); font-size: 12px; letter-spacing: 4px; }
.settle-head strong { font-family: var(--tile-font); color: var(--gold); font-size: 24px; font-weight: 900; letter-spacing: 3px; }
.settle-answer { display: flex; justify-content: center; gap: 12px; }
.settle-answer span { width: 84px; height: 84px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--tile-ink); font-family: var(--tile-font); font-weight: 900; font-size: 48px; box-shadow: 0 6px 0 var(--gold-deep), 0 0 30px rgba(224, 178, 82, .45); animation: answerPop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.settle-answer span:nth-child(2) { animation-delay: .08s; }
.settle-answer span:nth-child(3) { animation-delay: .16s; }
.settle-answer span:nth-child(4) { animation-delay: .24s; }
@keyframes answerPop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
.settle-meta { text-align: center; color: var(--muted); font-size: 13px; }
.settle-mvp { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #2a1410; border: 2px solid var(--cinnabar); }
.settle-mvp div { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.settle-mvp div span { color: var(--cinnabar-soft); font-size: 11px; letter-spacing: 2px; }
.settle-mvp div strong { font-size: 22px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settle-mvp div small { color: var(--soft); font-size: 12px; }
.settle-mvp em { font-style: normal; color: #ffe2a8; font-size: 30px; font-weight: 900; }
.settle-mvp.is-none { background: var(--panel); border-color: var(--line-2); }
.settle-mvp.is-none div span { color: var(--muted); }
.settle-section { display: flex; flex-direction: column; gap: 8px; }
.settle-section-head { display: flex; justify-content: space-between; font-size: 13px; }
.settle-section-head span { color: var(--muted); }
.settle-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.settle-word { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 9px; border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 12px; min-width: 0; }
.settle-word b { font-family: var(--tile-font); font-weight: 900; font-size: 15px; color: var(--text); white-space: nowrap; }
.settle-word span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settle-word.is-missed b { color: #7f8b88; }
.settle-leaders { display: flex; flex-direction: column; gap: 6px; }
.settle-leaders li { display: flex; align-items: center; gap: 8px; color: #dde6e3; font-size: 13px; }
.settle-leaders .no { width: 18px; color: var(--muted); font-weight: 700; }
.settle-leaders .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settle-leaders .meta { color: var(--muted); font-size: 11px; }
.settle-leaders b { width: 48px; text-align: right; color: var(--gold); }
.settle-assist { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel); font-size: 13px; }
.settle-assist span { color: var(--muted); font-size: 12px; }
.settle-countdown { margin-top: auto; padding: 12px; border-radius: 12px; border: 1px solid #1d3236; background: var(--panel-2); text-align: center; color: var(--gold); font-size: 14px; }

/* ---------- 运营面板（?debug=1 / #ops） ---------- */
.ops-panel, .ops-resizer { display: none; }
body.ops-mode .stage { justify-content: center; padding-right: calc(var(--ops-w) + 30px); }
body.ops-mode .ops-panel { position: fixed; right: 8px; top: 8px; display: grid; grid-template-rows: auto auto minmax(0, 1fr); width: var(--ops-w); height: calc(100vh - 16px); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0f1b1e; color: var(--text); }
body.ops-mode .ops-resizer { display: block; position: fixed; right: calc(var(--ops-w) + 8px); top: 8px; width: 10px; height: calc(100vh - 16px); padding: 0; border: 0; cursor: col-resize; background: transparent; }
body.ops-resizing, body.ops-resizing * { cursor: col-resize !important; user-select: none; }
.ops-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 11px; border-bottom: 1px solid var(--line); }
.ops-eyebrow { display: block; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.ops-header h2 { margin-top: 3px; font-size: 19px; }
.ops-pill { border: 1px solid var(--jade); border-radius: 999px; padding: 4px 8px; color: #ddf2e6; background: var(--jade-bg); font-size: 11px; font-weight: 700; }
.ops-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ops-tabs button { min-height: 32px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--panel); font-size: 12px; font-weight: 700; cursor: pointer; }
.ops-tabs button.is-active { border-color: var(--gold); color: var(--tile-ink); background: var(--gold); }
.ops-tab-panel { min-height: 0; overflow: auto; padding: 12px; }
.ops-tab-panel.is-active { display: grid; align-content: start; gap: 12px; }
.ops-answer-card { display: grid; gap: 5px; border: 1px solid var(--gold-deep); border-radius: 8px; padding: 11px; background: #1a1a12; }
.ops-answer-card span, .ops-answer-card small, .ops-stat-grid span, .ops-health-grid span, .ops-info-list span, .ops-section-head span { color: var(--muted); font-size: 11px; }
.ops-answer-card strong { color: var(--gold); font-family: var(--tile-font); font-size: 26px; font-weight: 900; }
.ops-bounties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.ops-bounties span { padding: 5px 8px; border-radius: 6px; background: var(--panel); color: var(--soft); font-size: 12px; }
.ops-bounties span.is-found { background: var(--jade-bg); color: #ddf2e6; text-decoration: line-through; }
.ops-stat-grid, .ops-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.ops-stat-grid div, .ops-health-grid div { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: var(--panel); }
.ops-stat-grid strong, .ops-health-grid strong, .ops-info-list strong { overflow: hidden; font-size: 16px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.ops-info-list { display: grid; gap: 6px; }
.ops-info-list div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; align-items: center; }
.ops-section { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.ops-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ops-section-head h3 { font-size: 14px; }
.skill-dock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.skill-dock button, .danmu-form button, .demo-controls button, .demo-controls a, .ops-link, .button-link { min-width: 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 9px; color: var(--text); background: var(--panel); font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-dock button:hover, .demo-controls button:hover, .danmu-form button:hover { border-color: var(--gold); }
.danmu-form { display: grid; grid-template-columns: 88px minmax(0, 1fr) 62px; gap: 6px; min-height: 36px; }
.danmu-form input { min-width: 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 9px; color: var(--text); background: var(--bg); font-size: 12px; outline: none; }
.demo-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.voice-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) 72px auto; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
.voice-controls label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.voice-controls input[type="range"] { width: 100%; accent-color: var(--gold); }
.voice-controls button { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; color: var(--text); background: var(--panel); font-size: 12px; font-weight: 700; cursor: pointer; }
.event-log { display: grid; align-content: start; gap: 4px; min-height: 94px; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: rgba(0, 0, 0, .2); }
.event-log span { border-left: 2px solid var(--muted); padding: 3px 6px; color: var(--soft); font-size: 11px; line-height: 1.3; }
.event-log span.hit, .event-log span.final { border-left-color: var(--cinnabar); color: var(--cinnabar-soft); }
.event-log span.gift { border-left-color: var(--gold); color: #ffe2a8; }
.event-log span.like { border-left-color: var(--jade); color: #ddf2e6; }
.event-log span.error { border-left-color: #ff6b6b; color: #ffb3b3; }
.ops-iframe { width: 100%; height: min(700px, calc(100vh - 168px)); min-height: 440px; border: 1px solid var(--line); border-radius: 8px; background: #071126; }
.ops-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ops-link-grid a { border: 1px solid var(--line); border-radius: 8px; padding: 9px 8px; color: var(--soft); background: var(--panel); font-size: 11px; text-align: center; text-decoration: none; }
.ops-raw { min-height: 120px; max-height: 280px; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow: auto; color: var(--soft); background: rgba(0, 0, 0, .22); font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1040px) { body.ops-mode .stage { padding-right: 0; } .ops-panel, .ops-resizer { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .cell, .callout, .event-banner, .bounty, .timer-ring, .lantern, .hero-flag::after, .plaque, .shock-ring, .smoke, .ember { animation-duration: .01ms !important; }
}

/* ---------- 破阵关场景 ---------- */
.siege-wrap { position: relative; min-width: 0; }
.siege { position: absolute; left: 0; top: 0; width: 508px; height: 266px; transform: scale(var(--scene-scale)); transform-origin: 0 0; border-radius: 15px; overflow: hidden; box-shadow: 0 0 0 1px #3a2c22, 0 8px 18px rgba(0, 0, 0, .5); }
.siege-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.siege-hp { position: absolute; left: 8px; top: 8px; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(12, 10, 20, .6); font-size: 11px; color: #f3dcb6; }
.siege-hp span { font-weight: 900; letter-spacing: 2px; color: #ffb39f; }
.siege-hp .hp { width: 150px; height: 12px; border-radius: 6px; background: #2a1414; overflow: hidden; box-shadow: inset 0 0 0 1px #5a2a20; }
.siege-hp .hp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff6a3d, #d2462f); transition: width .6s cubic-bezier(.3, .8, .3, 1); }
.siege-hp b { font-variant-numeric: tabular-nums; }
.play-guide { position: absolute; left: 18px; top: 35px; z-index: 5; display: flex; flex-direction: column; gap: 3px; padding: 7px 12px; border: 1px solid rgba(242, 207, 122, .65); border-radius: 10px; background: rgba(35, 17, 13, .83); box-shadow: 0 3px 12px rgba(0, 0, 0, .45); }
.play-guide-action { display: flex; align-items: center; gap: 10px; color: #fff4dc; font-size: 17px; font-weight: 800; line-height: 26px; white-space: nowrap; }
.play-guide-action strong { color: #ffdb7d; font-size: 26px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 2px 0 #6c2916; }
.play-guide-example { display: flex; gap: 16px; color: #e6d4bd; font-size: 12px; line-height: 14px; white-space: nowrap; }
.play-guide-example b { color: #ffdb7d; font-weight: 800; }
.siege.is-hurt .siege-bg { animation: siegeShake .45s ease; }
@keyframes siegeShake { 20% { transform: translate(-3px, 1px); } 40% { transform: translate(3px, -1px); } 60% { transform: translate(-2px, 1px); } 80% { transform: translate(1px, 0); } }

/* 关底匾额：终极字谜的谜面和空格，开局就挂在城楼上，被封印链锁着。 */
.plaque { position: absolute; left: 330px; top: 84px; z-index: 4; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 10px 5px; border-radius: 6px; background: linear-gradient(180deg, #4a2414, #24110b); box-shadow: inset 0 0 0 2px #d9a441, inset 0 0 0 4px #3b1d14, inset 0 0 0 5px #8c6a22, 0 0 22px rgba(255, 190, 90, .55), 0 4px 10px rgba(0, 0, 0, .6); color: #f2cf7a; white-space: nowrap; animation: bossPulse 2.4s ease-in-out infinite; }
.plaque-head { display: flex; align-items: center; gap: 4px; }
.plaque-tag { padding: 1px 6px; border-radius: 3px; background: var(--cinnabar); color: #fff4e6; font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.plaque .pslot { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: rgba(242, 207, 122, .14); box-shadow: inset 0 0 0 1px rgba(242, 207, 122, .55); color: #ffe7a8; font-family: var(--tile-font); font-size: 19px; font-weight: 900; }
.plaque-lock { font-style: normal; font-size: 16px; filter: drop-shadow(0 0 4px rgba(255, 200, 100, .9)); }
.plaque-clue { display: flex; align-items: center; gap: 5px; max-width: 230px; color: #fff4dc; font-family: var(--tile-font); font-size: 15px; font-weight: 900; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; }
.plaque-clue em { font-family: var(--ui-font); font-style: normal; font-size: 10px; color: var(--gold); letter-spacing: 1px; }
.plaque-clue small { padding: 0 5px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #ffb39f; font-family: var(--ui-font); font-size: 10px; letter-spacing: 0; }
.plaque.is-jolt { animation: plaqueJolt .5s ease, bossPulse 2.4s ease-in-out .5s infinite; }
.plaque.is-straining { box-shadow: inset 0 0 0 2px #ff7a4a, inset 0 0 0 4px #3b1d14, inset 0 0 0 5px #d2462f, 0 0 30px rgba(255, 90, 40, .9), 0 4px 10px rgba(0, 0, 0, .6); animation: plaqueStrain .9s ease-in-out infinite; }
.plaque.is-open { box-shadow: inset 0 0 0 2px var(--gold), 0 0 30px rgba(255, 200, 100, 1); }
.plaque.is-solved { background: linear-gradient(180deg, #f2cf7a, #c9952f); color: #2b1a0c; box-shadow: 0 0 30px rgba(255, 210, 120, .95); animation: none; transform: translateX(-50%) scale(1.12); transition: transform .5s cubic-bezier(.2, .9, .3, 1.4); }
.plaque.is-solved .pslot { background: rgba(255, 255, 255, .35); color: #2b1a0c; box-shadow: none; }
.plaque.is-solved .plaque-clue { color: #3b1d0c; }
@keyframes bossPulse { 50% { box-shadow: inset 0 0 0 2px #f2cf7a, inset 0 0 0 4px #3b1d14, inset 0 0 0 5px #8c6a22, 0 0 34px rgba(255, 200, 100, .85), 0 4px 10px rgba(0, 0, 0, .6); } }
@keyframes plaqueJolt { 20% { transform: translateX(-50%) translateY(-4px) rotate(-2deg); } 50% { transform: translateX(-50%) translateY(2px) rotate(1.5deg); } 75% { transform: translateX(-50%) rotate(-.5deg); } }
@keyframes plaqueStrain { 25% { transform: translateX(calc(-50% - 2px)) rotate(-1deg); } 75% { transform: translateX(calc(-50% + 2px)) rotate(1deg); } }
/* 封印链：每盏灯笼一根，破译时断开。 */
.chains { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.chain { transform-box: fill-box; fill: none; stroke: #e0b252; stroke-width: 2.4; stroke-dasharray: 5 3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255, 200, 100, .8)); transition: opacity .4s; }
.chain.is-snapping { animation: chainSnap .7s ease-in forwards; }
.chain.is-broken { opacity: 0; }
@keyframes chainSnap { 0% { stroke: #fff; stroke-width: 4; } 30% { stroke: #ff7a4a; opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(18px); } }

.gate { position: absolute; left: 298px; top: 198px; width: 64px; height: 68px; z-index: 1; border-radius: 32px 32px 0 0; overflow: hidden; }
.gate-light { position: absolute; inset: 0; background: radial-gradient(circle at 50% 80%, #fff3c8 0%, #ffc45e 45%, rgba(255, 140, 40, 0) 80%); opacity: 0; transition: opacity .8s; }
.door { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(90deg, #4b2a18 0 7px, #3a2012 7px 8px); box-shadow: inset 0 0 0 1px #1d0f08; transition: transform 1.2s cubic-bezier(.5, 0, .2, 1); }
.door::after { content: ""; position: absolute; top: 40%; width: 5px; height: 5px; border-radius: 50%; background: #c9a04a; }
.door-l { left: 0; transform-origin: left center; }
.door-l::after { right: 3px; }
.door-r { right: 0; transform-origin: right center; }
.door-r::after { left: 3px; }
.gate.is-open .gate-light { opacity: .85; }
.gate.is-open .door-l { transform: perspective(120px) rotateY(55deg); }
.gate.is-open .door-r { transform: perspective(120px) rotateY(-55deg); }
.gate.is-solved .gate-light { opacity: 1; }
.gate.is-solved .door-l { transform: perspective(120px) rotateY(80deg); }
.gate.is-solved .door-r { transform: perspective(120px) rotateY(-80deg); }

.lanterns, .cracks, .fx, .squad { position: absolute; inset: 0; pointer-events: none; }
.lanterns { z-index: 3; }
.lantern { position: absolute; top: 152px; width: 24px; height: 40px; margin-left: -12px; transform-origin: 50% 0; animation: lanternSway 3.2s ease-in-out infinite; }
.lantern::before { content: ""; position: absolute; left: 11px; top: 0; width: 2px; height: 8px; background: #2a1a10; }
.lantern-body { position: absolute; left: 0; top: 8px; width: 24px; height: 26px; border-radius: 45%; background: radial-gradient(circle at 50% 45%, #ffd27a 0%, #ff7a3a 35%, #c2321c 75%); box-shadow: 0 0 14px rgba(255, 120, 50, .85), inset 0 0 0 1px #7a1a0c; display: flex; align-items: center; justify-content: center; color: #fff1d0; font-size: 11px; font-weight: 900; text-shadow: 0 0 3px #7a1a0c; }
.lantern-body::before, .lantern-body::after { content: ""; position: absolute; left: 5px; width: 14px; height: 3px; border-radius: 1px; background: #3a2010; }
.lantern-body::before { top: -2px; }
.lantern-body::after { bottom: -2px; }
.lantern-tassel { position: absolute; left: 10px; top: 35px; width: 4px; height: 6px; border-radius: 0 0 2px 2px; background: #e0b252; }
.lantern.is-glow .lantern-body { box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(255, 210, 100, 1); }
.lantern.is-out { animation: none; transform: rotate(14deg); }
.lantern.is-out .lantern-body { background: radial-gradient(circle at 50% 45%, #5b4a44 0%, #2e2522 80%); box-shadow: inset 0 0 0 1px #1a1412; color: #8a7a70; text-shadow: none; }
.lantern.is-out .lantern-tassel { background: #5e5240; }
.lantern.is-hit { animation: lanternHit .9s cubic-bezier(.2, .8, .3, 1); }
.lantern.is-hit .lantern-body { animation: lanternBodyHit .9s ease-out; }
@keyframes lanternBodyHit { 0% { filter: brightness(3) saturate(.4); } 25% { filter: brightness(1.8); } 100% { filter: none; } }
@keyframes lanternSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes lanternHit { 0% { transform: rotate(0) scale(1.45); } 12% { transform: rotate(28deg) scale(1.2); } 32% { transform: rotate(-22deg) scale(1.05); } 52% { transform: rotate(18deg); } 72% { transform: rotate(8deg); } 100% { transform: rotate(14deg); } }

.cracks { z-index: 2; }
.crack { position: absolute; top: 198px; width: 34px; height: 46px; margin-left: -17px; opacity: .9; }
.crack svg { width: 100%; height: 100%; stroke: #120b07; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.crack.is-new { animation: crackIn .5s ease-out; }
@keyframes crackIn { from { transform: scale(.2); opacity: 0; } }

.squad-label { position: absolute; left: 10px; top: 150px; z-index: 3; padding: 1px 6px; border-radius: 3px; background: rgba(210, 70, 47, .85); color: #fff4e6; font-size: 10px; font-weight: 900; letter-spacing: 2px; }
.squad { z-index: 3; }
.hero { position: absolute; top: 190px; width: 30px; margin-left: -15px; display: flex; flex-direction: column; align-items: center; transition: left .5s ease; }
.hero .avatar { width: 22px; height: 22px; font-size: 11px; box-shadow: 0 0 0 2px #f2cf7a; position: relative; z-index: 1; }
.hero-body { width: 20px; height: 16px; margin-top: -2px; clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #c2321c, #7a1a0c); }
.hero-flag { position: absolute; left: 22px; top: -6px; width: 2px; height: 34px; background: #3a2a1a; }
.hero-flag::after { content: ""; position: absolute; left: 2px; top: 0; width: 12px; height: 9px; background: #e0b252; clip-path: polygon(0 0, 100% 50%, 0 100%); animation: flagWave 1.2s ease-in-out infinite; transform-origin: left center; }
.hero-name { margin-top: 1px; max-width: 34px; color: #f3e6cf; font-size: 9px; line-height: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.hero.is-ghost { opacity: .45; }
.hero.is-ghost .avatar { box-shadow: 0 0 0 1px #8a7a70; background: #3a3230 !important; color: #8a7a70; }
.hero.is-ghost .hero-body { background: #3a3230; }
.hero.is-ghost .hero-flag { display: none; }
.hero.is-shooting { animation: heroShoot .55s ease; }
@keyframes flagWave { 50% { transform: scaleX(.75) skewY(6deg); } }
@keyframes heroShoot { 0% { transform: none; } 22% { transform: translateX(-4px) scale(.94, 1.06); } 34% { transform: translate(3px, -5px) scale(1.14); } 60% { transform: translateY(-2px) scale(1.04); } 100% { transform: none; } }

.fx { z-index: 5; }
/* 箭：元素原点就是箭尖，transform-origin 设在箭尖，旋转时箭尖始终对准轨迹。 */
.arrow { position: absolute; left: 0; top: 0; width: 46px; height: 10px; margin: -5px 0 0 -46px; transform-origin: 100% 50%; will-change: transform, opacity; }
.arrow b { position: absolute; display: block; }
.arrow-shaft { left: 8px; right: 7px; top: 4px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, #8a5a2a, #e0b252 60%, #fff1c8); }
.arrow-head { right: 0; top: 0; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 10px solid #fff7dc; filter: drop-shadow(0 0 3px #ffd27a); }
.arrow-fletch { left: 2px; top: 1px; width: 10px; height: 8px; background: linear-gradient(90deg, #c2321c, #ff7a3a); clip-path: polygon(0 0, 100% 40%, 100% 60%, 0 100%, 30% 50%); }
.arrow-trail { right: 6px; top: 3px; width: 70px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 210, 120, 0), rgba(255, 220, 140, .75)); filter: blur(1px); }
.arrow.is-hit .arrow-shaft { box-shadow: 0 0 6px #ffd27a; }
.arrow.is-hit .arrow-trail { width: 96px; height: 6px; top: 2px; background: linear-gradient(90deg, rgba(255, 150, 60, 0), rgba(255, 200, 100, .55) 50%, rgba(255, 245, 210, .95)); box-shadow: 0 0 10px rgba(255, 190, 90, .9); }
.arrow.is-ghost .arrow-trail, .arrow.is-ghost .arrow-fletch { display: none; }
.arrow.is-stuck { opacity: 1; animation: arrowStuck .9s ease-in forwards; }
.arrow.is-stuck .arrow-trail { display: none; }
@keyframes arrowStuck { 0%, 45% { opacity: 1; margin-top: -5px; } 100% { opacity: 0; margin-top: 30px; } }
.muzzle { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 245, 210, .95), rgba(255, 190, 90, 0) 70%); opacity: 0; animation: muzzle .3s ease-out both; }
@keyframes muzzle { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.ember { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px #ff9a3a; animation: ember .6s ease-in forwards; }
@keyframes ember { to { opacity: 0; transform: translate(-4px, 16px) scale(.3); } }
.impact-flash { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 240, 200, .9) 35%, rgba(255, 200, 100, 0) 70%); animation: impactFlash .25s ease-out forwards; }
@keyframes impactFlash { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.shock-ring { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid rgba(255, 220, 140, .95); box-shadow: 0 0 12px rgba(255, 180, 80, .9); animation: shockRing .6s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes shockRing { from { transform: scale(.4); opacity: 1; } to { transform: scale(4.2); opacity: 0; border-width: 1px; } }
.smoke { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, rgba(120, 110, 100, .75), rgba(80, 70, 60, 0) 70%); opacity: 0; animation: smoke 1.2s ease-out forwards; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(0) scale(.5); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-34px) scale(2.2); } }
.hit-score { position: absolute; z-index: 6; transform: translate(-50%, -50%); color: #ffe7a8; font-size: 16px; font-weight: 900; text-shadow: 0 0 6px #c2321c, 0 2px 0 #5a1a0c; white-space: nowrap; animation: hitScore 1.1s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes hitScore { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.4); } 18% { opacity: 1; transform: translate(-50%, -60%) scale(1.25); } 30% { transform: translate(-50%, -60%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150%) scale(1); } }
.spark.is-hot { width: 5px; height: 5px; background: #ff9a3a; box-shadow: 0 0 6px #ff5a1a; }
.lantern.is-targeted .lantern-body { animation: lanternTarget .7s ease-in; }
@keyframes lanternTarget { 70% { box-shadow: 0 0 0 2px rgba(255, 240, 200, .9), 0 0 26px rgba(255, 210, 120, 1); } 100% { box-shadow: 0 0 0 3px #fff, 0 0 30px #fff3c8; } }
.burst { position: absolute; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 200, 90, .8) 30%, rgba(255, 90, 40, 0) 70%); animation: burst .6s ease-out forwards; }
.spark { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 8px #ffb04a; }
@keyframes burst { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- 闯关进度（顶部三步） ---------- */
.phase-steps { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.phase-steps li { position: relative; display: flex; align-items: center; gap: 3px; padding: 4px 7px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .3s, color .3s; }
.phase-steps li + li::before { content: ""; position: absolute; left: -5px; top: 50%; width: 6px; height: 2px; background: var(--line-2); }
.phase-steps b { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #22303a; color: var(--muted); font-size: 11px; }
.phase-steps em { font-style: normal; color: inherit; font-variant-numeric: tabular-nums; }
.phase-steps li.is-active { background: linear-gradient(180deg, #e8bd5c, #b8862e); color: #2b1a0c; box-shadow: 0 0 14px rgba(224, 178, 82, .55); }
.phase-steps li.is-active b { background: #2b1a0c; color: var(--gold); }
.phase-steps li.is-done { color: #e9d9b0; }
.phase-steps li.is-done b { background: var(--jade); color: #ddf2e6; font-size: 0; }
.phase-steps li.is-done b::after { content: "✓"; font-size: 11px; }

/* ---------- 场景装饰：云、火把、旌旗 ---------- */
.cloud { position: absolute; z-index: 0; height: 18px; border-radius: 999px; background: radial-gradient(closest-side, rgba(255, 214, 170, .5), rgba(255, 214, 170, 0)); filter: blur(1px); pointer-events: none; animation: cloudDrift 46s linear infinite; }
.cloud-a { top: 34px; width: 120px; animation-delay: -6s; }
.cloud-b { top: 64px; width: 90px; opacity: .7; animation-duration: 62s; animation-delay: -30s; }
.cloud-c { top: 18px; width: 70px; opacity: .55; animation-duration: 54s; animation-delay: -44s; }
@keyframes cloudDrift { from { transform: translateX(-140px); } to { transform: translateX(560px); } }
.stars circle { fill: #fff3d0; animation: twinkle 3s ease-in-out infinite; }
.stars circle:nth-child(2n) { animation-delay: -1.4s; }
@keyframes twinkle { 50% { opacity: .25; } }
.torch { position: absolute; top: 196px; z-index: 2; width: 10px; height: 26px; margin-left: -5px; pointer-events: none; }
.torch::before { content: ""; position: absolute; left: 3px; top: 10px; width: 4px; height: 16px; border-radius: 1px; background: #3a2414; }
.torch::after { content: ""; position: absolute; left: -4px; top: -6px; width: 18px; height: 20px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #fff6c8 0%, #ffbf4a 35%, rgba(255, 90, 30, .7) 60%, rgba(255, 90, 30, 0) 75%); filter: drop-shadow(0 0 8px rgba(255, 150, 60, .9)); transform-origin: 50% 90%; animation: flame .5s ease-in-out infinite alternate; }
.torch-l { left: 286px; }
.torch-r { left: 374px; }
.torch-r::after { animation-delay: -.25s; }
@keyframes flame { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.88, 1.12) rotate(3deg); opacity: .85; } }
.flag-cloth { transform-box: fill-box; transform-origin: 0 50%; animation: flagWave 1.4s ease-in-out infinite; }
.wall-flag:nth-of-type(2n) .flag-cloth { animation-delay: -.7s; }
.siege.is-solved-scene .wall-flag .flag-cloth { fill: var(--gold); }

/* ---------- 预言席 ---------- */
.prophets { position: absolute; right: 8px; top: 8px; z-index: 4; display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(40, 22, 60, .78); box-shadow: inset 0 0 0 1px #8f74d9; }
.prophets-label { color: #d9ccff; font-size: 11px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; }
.prophets-label::before { content: "🔒 "; }
.prophet-seats { display: flex; }
.prophet-seats .avatar { width: 20px; height: 20px; margin-left: -5px; box-shadow: 0 0 0 2px #2a1640; }
.prophet-seats .avatar:first-child { margin-left: 0; }
.prophet-count { margin-left: 3px; color: #fff; font-size: 11px; font-weight: 900; }
.prophets.is-new { animation: prophetIn .8s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes prophetIn { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(160, 130, 255, .9); } 60% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(160, 130, 255, 0); } }
.tag-prophecy { background: #4a2f7a; color: #e8e0ff; }
.event-banner.tone-prophecy { background: rgba(50, 26, 80, .96); border-color: #8f74d9; color: #efe8ff; }

/* ---------- 连破 ---------- */
.combo { position: absolute; right: 14px; top: 150px; z-index: 6; color: #fff1c4; font-family: var(--tile-font); font-size: 30px; font-weight: 900; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 0 2px #7a1a0c, 0 3px 0 #8e2615, 0 0 18px rgba(255, 120, 50, .95); opacity: 0; pointer-events: none; }
.combo.is-show { animation: comboIn 1.6s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.combo small { font-size: 16px; margin-right: 4px; }
@keyframes comboIn { 0% { opacity: 0; transform: scale(2.4); } 15% { opacity: 1; transform: scale(.95); } 25% { transform: scale(1.05); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-14px) scale(1); } }
.siege.is-quake .siege-bg, .siege.is-quake .lanterns, .siege.is-quake .gate { animation: siegeQuake .6s ease; }
@keyframes siegeQuake { 10% { transform: translate(-6px, 2px); } 25% { transform: translate(6px, -3px); } 40% { transform: translate(-5px, 2px); } 55% { transform: translate(4px, -1px); } 70% { transform: translate(-2px, 1px); } }

/* ---------- 每条弹幕一支箭：未命中弹开 ---------- */
.arrow.is-miss .arrow-shaft { background: linear-gradient(90deg, #6a5a4a, #c9c1b2); }
.arrow.is-miss .arrow-head { border-left-color: #e6e0d4; filter: none; }
.arrow.is-miss .arrow-fletch { background: #8a7a70; }
.arrow.is-miss .arrow-trail { display: none; }
.arrow.is-near .arrow-shaft { background: linear-gradient(90deg, #8a6a2a, #f2cf7a); }
.arrow.is-near .arrow-trail { width: 48px; background: linear-gradient(90deg, rgba(224, 178, 82, 0), rgba(242, 207, 122, .6)); }
.shot-tag { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 2px; border-radius: 999px; background: rgba(12, 10, 20, .72); color: #e9e2d2; font-size: 10px; white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%); }
.shot-tag .avatar { width: 14px; height: 14px; font-size: 8px; }
.shot-tag b { max-width: 64px; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.shot-tag i { font-style: normal; color: var(--muted); }
.shot-tag.kind-close i, .shot-tag.kind-order i, .shot-tag.kind-near i { color: var(--gold); }
.shot-tag.kind-prophecy { background: rgba(60, 30, 100, .9); }
.shot-tag.kind-prophecy i { color: #d9ccff; }
.archer { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); pointer-events: none; }
.archer .avatar { width: 18px; height: 18px; font-size: 9px; box-shadow: 0 0 0 1px #f2cf7a; }

/* ---------- 底部提示条 ---------- */
.tip-bar { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 4px; border-radius: 999px; border: 1px solid #4a3d2a; background: linear-gradient(90deg, #2a1f12, #15130f 60%); min-width: 0; overflow: hidden; }
.tip-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--cinnabar); color: #fff4e6; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.tip-text { flex: 1; min-width: 0; margin: 0; color: #f1e6cf; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-text.is-swap { animation: tipSwap .45s ease; }
@keyframes tipSwap { from { opacity: 0; transform: translateY(8px); } }
.final-mini { flex: none; display: flex; align-items: center; gap: 4px; }
.final-mini em { font-style: normal; color: var(--gold); font-size: 11px; font-weight: 900; }
.final-mini .slot { width: 20px; height: 20px; font-size: 13px; background: rgba(224, 178, 82, .12); border-color: var(--gold-deep); color: var(--gold); }
.tip-bar.is-open { border-color: var(--gold); background: linear-gradient(90deg, #4a3410, #1a1a12 70%); box-shadow: 0 0 18px rgba(224, 178, 82, .3); }
.tip-bar.is-open .tip-tag { background: var(--gold); color: var(--tile-ink); }
.tip-bar.is-open .final-hint { color: var(--text); font-size: 13px; }
.tip-bar.is-open .slot, .tip-bar.is-solved .slot { width: 20px; height: 20px; font-size: 13px; }
.tip-bar.is-solved { border-color: var(--gold); background: #2a2210; }
.tip-bar.is-solved .slot { background: var(--gold); color: var(--tile-ink); }

/* ---------- 终极字谜舞台 ---------- */
.board-wrap.is-final-stage .board { filter: brightness(.6); transition: filter .6s; }
.final-stage { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-radius: 14px; background: radial-gradient(70% 60% at 50% 45%, rgba(70, 46, 12, .78), rgba(10, 8, 6, .55)); }
.final-stage-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.final-stage-head span { padding: 3px 14px; border-radius: 999px; background: var(--gold); color: var(--tile-ink); font-size: 13px; font-weight: 900; letter-spacing: 4px; }
.final-stage-head strong { max-width: 460px; color: #fff4dc; font-family: var(--tile-font); font-size: 26px; font-weight: 900; line-height: 1.25; letter-spacing: 1px; text-shadow: 0 2px 0 #000, 0 0 16px rgba(224, 178, 82, .6); }
.final-stage-tiles { position: relative; display: flex; justify-content: center; gap: 12px; min-height: 76px; }
.stage-tile { position: relative; width: 72px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(160deg, #ffe7a0, #d9a441); color: #2b1a0c; font-family: var(--tile-font); font-size: 46px; font-weight: 900; box-shadow: 0 5px 0 #8c6a22, 0 0 26px rgba(224, 178, 82, .75); animation: stageBreathe 1.8s ease-in-out infinite; }
.stage-tile:nth-child(2n) { animation-delay: -.6s; }
.stage-tile.is-order { background: linear-gradient(160deg, #ffc2a8, #d2462f); color: #fff4e6; box-shadow: 0 5px 0 #8e2615, 0 0 22px rgba(210, 70, 47, .8); animation: tileWobble .8s ease-in-out; }
.stage-tile.is-solved { animation: stageSolved 1.1s ease-in-out infinite alternate; }
.stage-tile.is-timeout { background: linear-gradient(160deg, #e7dcc2, #a8976e); box-shadow: 0 5px 0 #6b5d40; animation: none; }
@keyframes stageBreathe { 50% { transform: translateY(-4px); box-shadow: 0 9px 0 #8c6a22, 0 0 36px rgba(224, 178, 82, .95); } }
@keyframes stageSolved { from { box-shadow: 0 5px 0 #8c6a22, 0 0 20px rgba(255, 220, 120, .8); } to { box-shadow: 0 5px 0 #8c6a22, 0 0 48px rgba(255, 230, 150, 1); transform: scale(1.06); } }
.final-stage-slots { display: flex; gap: 8px; }
.final-stage-slots .slot { width: 30px; height: 30px; font-size: 20px; border: 2px dashed var(--gold); background: rgba(0, 0, 0, .3); color: var(--gold); }
.final-stage-hint { padding: 6px 16px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff4dc; font-size: 15px; font-weight: 700; text-align: center; }
.final-stage-hint b { color: var(--gold); }
.final-stage-timer { color: var(--gold); font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000; }
.final-stage-timer.is-urgent { color: var(--cinnabar-soft); animation: urgentPulse 1s ease-in-out infinite; }
.final-stage.is-solved .final-stage-head span { background: var(--cinnabar); color: #fff4e6; }
.final-stage.is-solved .final-stage-timer, .final-stage.is-timeout .final-stage-timer { display: none; }

/* ---------- 开局引导 ---------- */
.intro { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; padding: 16px 22px; border-radius: 14px; background: rgba(10, 8, 6, .95); animation: introFade 6.4s ease forwards; }
.intro-title { text-align: center; color: var(--gold); font-family: var(--tile-font); font-size: 24px; font-weight: 900; letter-spacing: 3px; }
.intro-step { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); opacity: 0; animation: introStep .5s ease forwards; }
.intro-step[data-intro="1"] { animation-delay: .3s; }
.intro-step[data-intro="2"] { animation-delay: 1.6s; }
.intro-step[data-intro="3"] { animation-delay: 2.9s; }
.intro-step > b { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cinnabar); color: #fff4e6; font-size: 16px; font-weight: 900; }
.intro-step p { color: #f1e6cf; font-size: 15px; font-weight: 700; }
.intro-demo { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mini-card { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 4px; background: linear-gradient(180deg, #efe3c6, #dccaa2); color: #2b2118; font-size: 13px; font-weight: 700; }
.mini-card i { width: 16px; height: 16px; border: 1px solid #a88a58; border-radius: 3px; background: rgba(255, 250, 235, .55); }
.mini-tiles { gap: 4px; }
.mini-tiles i { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 5px; background: #e9e1cd; color: #2a241c; font-family: var(--tile-font); font-style: normal; font-size: 17px; font-weight: 900; }
.mini-tiles i.hot { animation: miniHot 1s ease 2.2s both; }
@keyframes miniHot { to { background: var(--gold); box-shadow: 0 0 10px rgba(224, 178, 82, .9); } }
.mini-chat { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; font-weight: 700; }
.mini-chat span { margin-right: 6px; color: var(--muted); font-size: 12px; }
.mini-hit { padding: 3px 10px; border-radius: 999px; background: var(--cinnabar); color: #fff4e6; font-size: 13px; font-weight: 900; animation: introStep .4s cubic-bezier(.2, .9, .3, 1.4) 3.6s both; }
@keyframes introStep { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes introFade { 0% { opacity: 0; } 5% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }

.sprint-banner { display: none !important; }

/* 两侧裁切区：只放装饰（竖幅祥云纹），不放任何信息。 */
.stream-frame::before, .stream-frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--safe-x); z-index: -1; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(224, 178, 82, .06) 0 2px, transparent 2px 46px), linear-gradient(90deg, rgba(120, 30, 20, .35), rgba(120, 30, 20, 0)); }
.stream-frame::before { left: 0; }
.stream-frame::after { right: 0; transform: scaleX(-1); }
/* 终极舞台出现时，字阵里的金字已经飞到中央；背后只留灰掉的已破译词，方便回看。 */
.board-wrap.is-final-stage .cell.is-final, .board-wrap.is-final-stage .cell.is-solved { visibility: hidden; }

/* ---------- 段位头衔 ---------- */
.hero-title { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 0 4px; border-radius: 3px; background: rgba(43, 26, 12, .85); color: #f2cf7a; font-size: 8px; font-weight: 900; line-height: 11px; white-space: nowrap; }
.rank-title { flex: none; padding: 0 4px; border-radius: 3px; background: #3a2a12; color: var(--gold); font-size: 9px; font-style: normal; font-weight: 900; line-height: 14px; }
.event-banner.tone-promote { background: rgba(58, 40, 10, .96); border-color: var(--gold); color: #ffe9b0; }

/* ---------- 攻城车（大额礼物） ---------- */
.ram { position: absolute; left: 0; top: 0; z-index: 6; width: 130px; height: 56px; pointer-events: none; }
.ram-roof { position: absolute; left: 14px; top: 0; width: 74px; height: 24px; clip-path: polygon(10% 100%, 50% 0, 90% 100%); background: linear-gradient(180deg, #7a4a24, #3d2410); }
.ram-log { position: absolute; left: 4px; top: 22px; width: 108px; height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, #8a5a2c 0 14px, #6e4420 14px 16px); box-shadow: 0 2px 0 #2a170a; }
.ram-head { position: absolute; left: 108px; top: 18px; width: 20px; height: 20px; border-radius: 4px 10px 10px 4px; background: radial-gradient(circle at 40% 35%, #e8e2d4, #8a8478 70%); box-shadow: 0 0 8px rgba(255, 220, 140, .6); }
.ram-wheel { position: absolute; top: 34px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #c9a04a 0 3px, #3a2414 4px 7px, #6e4420 8px 9px, #2a170a 10px); animation: wheelSpin .4s linear infinite; }
.ram-wheel.w1 { left: 10px; } .ram-wheel.w2 { left: 44px; } .ram-wheel.w3 { left: 78px; }
@keyframes wheelSpin { to { transform: rotate(360deg); } }
.ram .ram-rider { position: absolute; left: 40px; top: -6px; width: 22px; height: 22px; font-size: 11px; box-shadow: 0 0 0 2px #f2cf7a; }
.burst-big { width: 160px; height: 160px; margin: -80px 0 0 -80px; }
.siege-flash { position: absolute; left: 0; right: 0; top: 300px; z-index: 15; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; animation: siegeFlash 2.4s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.siege-flash b { padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff4dc; font-size: 16px; }
.siege-flash strong { color: #ffd27a; font-family: var(--tile-font); font-size: 46px; font-weight: 900; letter-spacing: 6px; text-shadow: 0 3px 0 #8e2615, 0 0 24px rgba(255, 120, 50, .95); }
@keyframes siegeFlash { 0% { opacity: 0; transform: scale(2); } 15% { opacity: 1; transform: scale(.95); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.gift-big b { color: #ffd27a; }
.gift-big span { color: #f2b35a; }
