/* 星火：猎场协议 — 1–4 人非对称潜行 / 手机横屏战术台面 */
.hunt-shell {
  position: absolute !important; inset: 0; width: 100%; height: 100%; overflow: hidden;
  background: #02090b;
}
html:has(.hunt-live), body:has(.hunt-live) { overflow: hidden !important; height: 100%; }
#gWrap:has(.hunt-live) .hunt-shell { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.hunt-shell:fullscreen, .hunt-shell:-webkit-full-screen { width: 100vw; height: 100vh; }
.hunt-live {
  position: absolute; inset: 0; overflow: hidden; color: #e9feff;
  background: #02090b;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --hunt-cyan: #7ce8ea; --hunt-ice: #d9feff; --hunt-amber: #ffca5c;
  --hunt-rose: #ff5368; --hunt-green: #8effb2; --hunt-magenta: #ff6bd6;
  user-select: none; touch-action: none;
}
#gWrap:has(.hunt-live) .g-stage,
body.landscape-mode:has(.hunt-live) .g-stage {
  height: 100%; min-height: 0; padding: 0; border: 0; background: transparent;
}
body.landscape-mode:has(.hunt-live) .hunt-live,
#gWrap:has(.hunt-live) .hunt-live {
  position: absolute !important; inset: 0; width: 100%; height: 100% !important;
  min-height: 0; max-width: none; border-radius: 0; box-shadow: none;
}
.g-wrap.g-live:has(.hunt-live) .g-top,
.g-wrap.g-live:has(.hunt-live) .g-seats,
.g-wrap.g-live:has(.hunt-live) .g-acts,
.g-wrap.g-live:has(.hunt-live) .g-log,
.g-wrap.g-live:has(.hunt-live) .g-challenge,
.g-wrap.g-live:has(.hunt-live) .g-variant-chip,
.g-wrap.g-live:has(.hunt-live) .g-rogue,
.g-wrap.g-live:has(.hunt-live) .g-items,
.g-wrap.g-live:has(.hunt-live) .g-undo,
.g-wrap.g-live:has(.hunt-live) .g-final,
.g-wrap.g-live:has(.hunt-live) .g-victory,
.g-wrap.g-live:has(.hunt-live) .g-podium,
.g-wrap.g-live:has(.hunt-live) .g-help { display: none !important; }
.g-wrap.g-live:has(.hunt-live) .g-live-help,
#gWrap:has(.hunt-live) .g-live-help { display: none !important; }
.g-wrap.g-live:has(.hunt-live) .g-live-exit,
#gWrap:has(.hunt-live) .g-live-exit {
  display: inline-flex !important; align-items: center; justify-content: center;
  position: fixed !important; top: max(7px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right));
  left: auto; z-index: 80; min-width: 44px; height: 24px; padding: 0 8px;
  border: 1px solid rgba(124,232,234,.22); border-radius: 2px;
  background: rgba(3,15,18,.84); color: rgba(213,249,255,.78);
  font: 700 10px/1 "Noto Sans SC", sans-serif; letter-spacing: .06em;
  backdrop-filter: blur(6px);
}
.g-wrap.g-live:has(.hunt-live) .g-live-exit:hover { border-color: rgba(124,232,234,.55); color: #fff; }
.g-wrap:has(.hunt-result.on) .g-live-exit,
.g-wrap:has(.hunt-codex.on) .g-live-exit,
#gWrap:has(.hunt-result.on) .g-live-exit,
#gWrap:has(.hunt-codex.on) .g-live-exit { display: none !important; }
.g-wrap.g-live-done:has(.hunt-live) .g-stage,
.g-wrap:has(.hunt-result.on) .g-stage {
  position: fixed !important; inset: 0 !important; z-index: 260 !important;
  width: 100vw !important; height: 100vh !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: #02090b !important;
}
body.landscape-mode:has(.hunt-live) .topbar,
body.landscape-mode:has(.hunt-live) #dock { display: none !important; }
body:has(.hunt-live) #toastBox { bottom: 104px; z-index: 30; gap: 4px; }
body:has(.hunt-live) #toastBox .toast {
  max-width: 280px; padding: 5px 9px; border-radius: 2px;
  font: 600 8px/1.32 "Noto Sans SC", sans-serif; letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(0,0,0,.4); text-align: center;
}
body:has(.hunt-live) #toastBox .toast.warn { background: rgba(180,27,48,.9); color: #fff1f3; border: 1px solid rgba(255,83,104,.55); }

.hunt-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hunt-vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 26%, rgba(0,0,0,.25) 72%, rgba(0,0,0,.76) 100%),
    linear-gradient(180deg, rgba(0,0,0,.62), transparent 17%, transparent 72%, rgba(0,0,0,.64));
  box-shadow: inset 0 0 150px rgba(0,0,0,.6);
}
.hunt-scan {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .11; mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(122,237,240,.13) 4px, transparent 5px);
  animation: huntScan 8s linear infinite;
}
@keyframes huntScan { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
.hunt-grain {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 顶栏 */
.hunt-top {
  position: absolute; z-index: 12; top: 0; left: 0; right: 0; height: 58px;
  display: flex; align-items: stretch; gap: 7px; padding: 7px 9px 6px;
  background: linear-gradient(180deg, rgba(2,11,13,.96) 0%, rgba(2,11,13,.66) 70%, transparent 100%);
  border-bottom: 1px solid rgba(124,232,234,.13);
  pointer-events: none;
}
.hunt-top > * { pointer-events: auto; }
.hunt-brand {
  width: 186px; min-width: 186px; display: flex; align-items: center; gap: 7px;
  padding-left: 3px; border-right: 1px solid rgba(124,232,234,.12);
}
.hunt-mark {
  width: 27px; height: 27px; display: grid; place-items: center;
  border: 1px solid rgba(255,202,92,.55); color: var(--hunt-amber);
  background: rgba(255,202,92,.06); font: 900 11px/1 "Noto Sans SC", sans-serif; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  box-shadow: 0 0 18px rgba(255,202,92,.1);
}
.hunt-brand-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hunt-brand-copy small { color: rgba(124,232,234,.56); font: 700 6.5px/1.2 "Noto Sans SC", sans-serif; letter-spacing: .15em; white-space: nowrap; }
.hunt-brand-copy b { color: #f0feff; font: 900 19px/.98 "Noto Sans SC", sans-serif; letter-spacing: .08em; }
.hunt-brand-copy em { color: rgba(238,255,255,.5); font: 600 7px/1.2 "Noto Sans SC", sans-serif; letter-spacing: .08em; white-space: nowrap; }
.hunt-timer {
  width: 112px; min-width: 112px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 8px; border-left: 1px solid rgba(124,232,234,.1); border-right: 1px solid rgba(124,232,234,.1);
}
.hunt-timer b { color: var(--hunt-amber); font: 900 25px/.9 "Noto Sans SC", sans-serif; letter-spacing: .04em; text-shadow: 0 0 16px rgba(255,202,92,.2); }
.hunt-timer span { color: rgba(238,255,255,.44); font: 700 6.5px/1 "Noto Sans SC", sans-serif; letter-spacing: .16em; margin-top: 4px; }
.hunt-timer i { width: 100%; height: 2px; margin-top: 6px; background: rgba(255,202,92,.15); display: block; }
.hunt-timer i u { display: block; height: 100%; width: 100%; background: var(--hunt-amber); box-shadow: 0 0 8px rgba(255,202,92,.6); }
.hunt-objective {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 5px;
}
.hunt-objective > span { color: rgba(124,232,234,.55); font: 700 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .13em; }
.hunt-objective > div { display: flex; align-items: baseline; gap: 9px; margin-top: 2px; }
.hunt-objective b { color: #f2ffff; font: 900 18px/.95 "Noto Sans SC", sans-serif; letter-spacing: .03em; }
.hunt-objective em { color: rgba(255,202,92,.72); font: 700 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .04em; font-style: normal; }
.hunt-objective em.on { color: var(--hunt-green); }
.hunt-segs { display: flex; gap: 3px; margin-top: 5px; width: 100%; }
.hunt-segs i { display: block; height: 3px; flex: 1; background: rgba(255,202,92,.14); border: 1px solid rgba(255,202,92,.12); }
.hunt-segs i.done { background: var(--hunt-green); border-color: rgba(142,255,178,.7); box-shadow: 0 0 9px rgba(142,255,178,.4); }
.hunt-alert {
  width: 122px; min-width: 122px; display: flex; flex-direction: column; justify-content: center;
  padding-left: 6px; border-left: 1px solid rgba(124,232,234,.1);
}
.hunt-alert > span { color: rgba(255,83,104,.64); font: 700 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .12em; }
.hunt-alert > div { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.hunt-alert b { color: #ff8395; font: 900 18px/.95 "Noto Sans SC", sans-serif; }
.hunt-alert em { color: rgba(255,131,149,.75); font: 600 7px/1 "Noto Sans SC", sans-serif; font-style: normal; white-space: nowrap; }
.hunt-alert i { height: 3px; margin-top: 5px; background: rgba(255,83,104,.16); display: block; }
.hunt-alert i u { display: block; height: 100%; width: 0; background: #ff5368; box-shadow: 0 0 8px rgba(255,83,104,.55); transition: width .18s; }
.hunt-alert i u.danger { background: #ff335c; animation: huntAlertPulse .55s infinite alternate; }
@keyframes huntAlertPulse { from { opacity: .55; } to { opacity: 1; } }

/* 面板通用 */
.hunt-squad-panel, .hunt-objective-panel, .hunt-skill-card {
  position: absolute; z-index: 11;
  background:
    linear-gradient(135deg, rgba(3,21,23,.9), rgba(2,12,14,.78)),
    radial-gradient(circle at 0 0, rgba(124,232,234,.1), transparent 65%);
  border: 1px solid rgba(124,232,234,.16);
  box-shadow: 0 12px 30px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(7px);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.hunt-panel-head { display: flex; justify-content: space-between; align-items: center; height: 18px; padding: 0 7px; border-bottom: 1px solid rgba(124,232,234,.1); }
.hunt-panel-head span { color: rgba(206,251,255,.62); font: 800 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .13em; }
.hunt-panel-head i { color: var(--hunt-green); font: 700 6px/1 "Noto Sans SC", sans-serif; letter-spacing: .12em; font-style: normal; }
.hunt-panel-head button {
  width: 18px; height: 15px; border: 1px solid rgba(255,202,92,.32); background: rgba(255,202,92,.06);
  color: var(--hunt-amber); font: 900 9px/1 "Noto Sans SC", sans-serif; padding: 0; cursor: pointer;
}
.hunt-panel-head button:hover { background: rgba(255,202,92,.16); }

.hunt-squad-panel { top: 62px; left: 8px; width: 146px; height: 205px; }
.hunt-squad { padding: 4px 5px 0; display: flex; flex-direction: column; gap: 2px; }
.hunt-squad-row {
  position: relative; display: grid;
  grid-template-columns: 7px 1fr 28px; grid-template-rows: 14px 5px 10px;
  column-gap: 4px; align-items: center; min-height: 31px; padding: 2px 4px;
  background: rgba(255,255,255,.024); border-left: 2px solid var(--c);
  transition: background .15s;
}
.hunt-squad-row .dot { grid-row: 1; width: 5px; height: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 7px var(--c); }
.hunt-squad-row .copy { grid-row: 1; min-width: 0; display: flex; align-items: baseline; gap: 3px; overflow: hidden; }
.hunt-squad-row .copy b { color: #eaffff; font: 800 8px/1 "Noto Sans SC", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hunt-squad-row .copy b u { color: var(--hunt-cyan); font: 800 5px/1 "Noto Sans SC", sans-serif; text-decoration: none; letter-spacing: .08em; }
.hunt-squad-row .copy b s { color: rgba(255,202,92,.6); font: 700 5px/1 "Noto Sans SC", sans-serif; text-decoration: none; letter-spacing: .08em; }
.hunt-squad-row .copy small { display: none; }
.hunt-squad-row em { grid-row: 1; color: rgba(226,255,255,.7); font: 800 7px/1 "Noto Sans SC", sans-serif; font-style: normal; text-align: right; }
.hunt-squad-row .bar { grid-column: 1 / 3; grid-row: 2; height: 3px; background: rgba(124,232,234,.1); overflow: hidden; }
.hunt-squad-row .bar u { display: block; height: 100%; width: 100%; background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); transition: width .2s; }
.hunt-squad-row i { grid-column: 3; grid-row: 2 / 4; color: rgba(200,250,255,.44); font: 600 6px/1.1 "Noto Sans SC", sans-serif; font-style: normal; text-align: right; letter-spacing: .03em; }
.hunt-squad-row.down { background: rgba(255,83,104,.075); border-left-color: #ff5368; }
.hunt-squad-row.down .bar u { background: #ff5368; }
.hunt-squad-row.down i { color: #ff8395; }
.hunt-squad-row.gone { opacity: .55; }
.hunt-squad-row.hacking { background: rgba(255,202,92,.07); }
.hunt-squad-row.hacking i { color: var(--hunt-amber); }
.hunt-feed {
  height: 20px; padding: 4px 7px 0; color: rgba(218,252,255,.55);
  font: 600 6.5px/1.2 "Noto Sans SC", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top: 1px solid rgba(124,232,234,.07); margin: 2px 0 0;
}
.hunt-squad-foot {
  position: absolute; left: 6px; right: 6px; bottom: 5px; display: flex; justify-content: space-between; align-items: center;
  padding-top: 4px; border-top: 1px solid rgba(124,232,234,.08);
}
.hunt-squad-foot span { color: rgba(124,232,234,.5); font: 700 6px/1 "Noto Sans SC", sans-serif; letter-spacing: .1em; }
.hunt-squad-foot span.loud { color: var(--hunt-amber); }
.hunt-squad-foot b { color: rgba(238,255,255,.7); font: 700 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .06em; }

.hunt-objective-panel { top: 62px; right: 8px; width: 158px; height: 190px; }
.hunt-term-list { padding: 3px 5px 0; display: flex; flex-direction: column; gap: 2px; }
.hunt-term-row {
  display: grid; grid-template-columns: 18px 1fr 29px; align-items: center; min-height: 19px;
  padding: 1px 4px; background: rgba(255,255,255,.022); border-left: 1px solid rgba(124,232,234,.24);
}
.hunt-term-row .num { color: rgba(124,232,234,.45); font: 700 6px/1 "Noto Sans SC", sans-serif; letter-spacing: .06em; }
.hunt-term-row .copy { min-width: 0; }
.hunt-term-row .copy b { display: block; color: rgba(232,255,255,.78); font: 700 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .04em; }
.hunt-term-row .copy i { display: block; height: 2px; margin-top: 3px; background: rgba(124,232,234,.12); overflow: hidden; }
.hunt-term-row .copy i u { display: block; height: 100%; width: 0; background: var(--hunt-cyan); }
.hunt-term-row em { color: rgba(124,232,234,.48); font: 700 5.5px/1 "Noto Sans SC", sans-serif; font-style: normal; text-align: right; white-space: nowrap; }
.hunt-term-row.done { border-left-color: var(--hunt-green); background: rgba(142,255,178,.06); }
.hunt-term-row.done .copy u { background: var(--hunt-green); }
.hunt-term-row.done em { color: var(--hunt-green); }
.hunt-term-row.hacking { border-left-color: var(--hunt-amber); background: rgba(255,202,92,.07); }
.hunt-term-row.hacking .copy u { background: var(--hunt-amber); }
.hunt-term-row.hacking em { color: var(--hunt-amber); animation: huntBlink .7s infinite alternate; }
@keyframes huntBlink { from { opacity: .45; } to { opacity: 1; } }
.hunt-exit { position: relative; margin: 5px 5px 0; padding: 4px 5px; border: 1px solid rgba(255,202,92,.16); background: rgba(255,202,92,.04); }
.hunt-sentry { position: absolute; right: 5px; top: 4px; color: rgba(255,107,122,.55); font: 800 5.5px/1 "Noto Sans SC", sans-serif; font-style: normal; letter-spacing: .09em; }
.hunt-sentry.on { color: #ff8a96; }
.hunt-sentry.rage { color: #ff335c; animation: huntBlink .6s infinite alternate; }
.hunt-exit span { display: block; color: rgba(255,202,92,.55); font: 700 5.5px/1 "Noto Sans SC", sans-serif; letter-spacing: .12em; }
.hunt-exit b { display: inline-block; margin-top: 2px; color: rgba(255,202,92,.86); font: 800 7px/1 "Noto Sans SC", sans-serif; }
.hunt-exit i { display: block; height: 2px; margin-top: 3px; background: rgba(255,202,92,.12); }
.hunt-exit i u { display: block; height: 100%; width: 0; background: var(--hunt-green); transition: width .2s; }
.hunt-mini { position: absolute; left: 5px; right: 5px; bottom: 5px; height: 43px; border: 1px solid rgba(124,232,234,.1); }
.hunt-mini canvas { width: 100%; height: 100%; display: block; }
.hunt-mini small { position: absolute; left: 4px; top: 3px; color: rgba(124,232,234,.34); font: 700 5px/1 "Noto Sans SC", sans-serif; letter-spacing: .1em; pointer-events: none; }

.hunt-skill-card { right: 8px; bottom: 88px; width: 158px; height: 50px; padding: 4px 7px; }
.hunt-skill-card small { display: block; color: rgba(124,232,234,.47); font: 700 5.5px/1 "Noto Sans SC", sans-serif; letter-spacing: .12em; }
.hunt-skill-card b { display: inline-block; margin-top: 3px; color: #eaffff; font: 800 9px/1 "Noto Sans SC", sans-serif; letter-spacing: .05em; }
.hunt-skill-card span { display: block; margin-top: 2px; color: rgba(222,255,255,.46); font: 600 6px/1.2 "Noto Sans SC", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hunt-skill-card em { position: absolute; right: 7px; top: 5px; color: var(--hunt-green); font: 700 6px/1 "Noto Sans SC", sans-serif; font-style: normal; }
.hunt-skill-card em.cool { color: var(--hunt-amber); }

/* 摇杆与行动键 */
.hunt-joy {
  position: absolute; z-index: 12; left: 9px; bottom: 8px; width: 104px; height: 104px;
  border-radius: 50%; border: 1px solid rgba(124,232,234,.2);
  background: radial-gradient(circle, rgba(4,25,27,.78) 0%, rgba(2,10,12,.66) 62%, rgba(2,10,12,.22) 100%);
  box-shadow: inset 0 0 24px rgba(0,0,0,.55), 0 0 0 4px rgba(124,232,234,.03);
  touch-action: none; cursor: grab;
}
.hunt-joy.active { border-color: rgba(255,202,92,.45); cursor: grabbing; }
.hunt-joy-ring { position: absolute; inset: 12px; border-radius: 50%; border: 1px dashed rgba(124,232,234,.18); }
.hunt-joy-ring::before, .hunt-joy-ring::after { content: ''; position: absolute; background: rgba(124,232,234,.18); }
.hunt-joy-ring::before { left: 50%; top: 2px; bottom: 2px; width: 1px; }
.hunt-joy-ring::after { top: 50%; left: 2px; right: 2px; height: 1px; }
.hunt-joy-knob {
  position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid rgba(124,232,234,.55); background: radial-gradient(circle at 35% 30%, rgba(124,232,234,.24), rgba(6,29,32,.9));
  box-shadow: 0 0 14px rgba(124,232,234,.16), inset 0 0 10px rgba(124,232,234,.1);
  transition: transform .08s;
}
.hunt-joy > span { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; color: rgba(124,232,234,.42); font: 700 5.5px/1 "Noto Sans SC", sans-serif; letter-spacing: .13em; }

.hunt-actions { position: absolute; z-index: 12; right: 8px; bottom: 8px; width: 158px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.hunt-act {
  position: relative; height: 36px; border: 1px solid rgba(124,232,234,.2); border-radius: 2px;
  background: linear-gradient(180deg, rgba(10,33,36,.78), rgba(3,15,17,.9));
  color: rgba(232,255,255,.9); text-align: left; padding: 4px 5px; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  transition: background .15s, border-color .15s, transform .1s;
}
.hunt-act:active { transform: scale(.97); }
.hunt-act:disabled { opacity: .38; cursor: not-allowed; }
.hunt-act span { display: block; font: 800 8px/1 "Noto Sans SC", sans-serif; letter-spacing: .07em; }
.hunt-act b { display: block; margin-top: 2px; color: rgba(124,232,234,.62); font: 600 6px/1.1 "Noto Sans SC", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hunt-act small { position: absolute; right: 4px; top: 4px; color: rgba(255,202,92,.42); font: 700 5px/1 "Noto Sans SC", sans-serif; letter-spacing: .08em; }
.hunt-act.hack { grid-column: 1 / 4; height: 36px; border-color: rgba(255,202,92,.28); background: linear-gradient(180deg, rgba(45,33,12,.8), rgba(18,13,4,.92)); }
.hunt-act.hack.active { border-color: rgba(255,202,92,.8); box-shadow: 0 0 18px rgba(255,202,92,.14); animation: huntHackPulse .8s infinite alternate; }
@keyframes huntHackPulse { from { box-shadow: 0 0 10px rgba(255,202,92,.1); } to { box-shadow: 0 0 22px rgba(255,202,92,.26); } }
.hunt-act.skill { border-color: rgba(88,229,255,.28); }
.hunt-act.stance.on { border-color: rgba(142,255,178,.65); background: linear-gradient(180deg, rgba(15,48,32,.8), rgba(4,20,13,.9)); }
.hunt-act.stance.on b { color: var(--hunt-green); }

.hunt-prompt {
  position: absolute; z-index: 11; left: 155px; right: 174px; bottom: 9px; min-height: 34px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3px 10px;
  border-top: 1px solid rgba(124,232,234,.14); border-bottom: 1px solid rgba(124,232,234,.06);
  background: linear-gradient(180deg, transparent, rgba(2,10,12,.74) 28%, rgba(2,10,12,.82));
  pointer-events: none; text-align: center;
}
.hunt-prompt b { color: rgba(232,255,255,.85); font: 800 8px/1.15 "Noto Sans SC", sans-serif; letter-spacing: .05em; }
.hunt-prompt small { display: block; margin-top: 2px; color: rgba(188,245,247,.45); font: 600 6px/1.2 "Noto Sans SC", sans-serif; }
.hunt-prompt.danger b { color: #ff8395; }
.hunt-stance-chip {
  position: absolute; z-index: 11; left: 118px; bottom: 74px; width: 106px; height: 26px;
  display: flex; align-items: center; gap: 4px; padding: 0 7px;
  border: 1px solid rgba(124,232,234,.12); background: rgba(3,15,18,.68); backdrop-filter: blur(4px);
}
.hunt-stance-chip span { width: 5px; height: 5px; border-radius: 50%; background: var(--hunt-green); box-shadow: 0 0 8px var(--hunt-green); }
.hunt-stance-chip b { color: rgba(232,255,255,.68); font: 700 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .06em; }
.hunt-stance-chip em { margin-left: auto; color: rgba(124,232,234,.52); font: 700 6px/1 "Noto Sans SC", sans-serif; font-style: normal; }

/* 横幅、提示 */
.hunt-banner {
  position: absolute; z-index: 20; left: 50%; top: 72px; transform: translate(-50%, -8px);
  min-width: 242px; max-width: 420px; padding: 10px 18px 9px; text-align: center;
  background: linear-gradient(90deg, transparent, rgba(4,18,21,.9) 16%, rgba(4,18,21,.94) 84%, transparent);
  border-top: 1px solid rgba(255,202,92,.32); border-bottom: 1px solid rgba(255,202,92,.16);
  opacity: 0; pointer-events: none;
}
.hunt-banner.on { animation: huntBanner 2.6s ease both; }
@keyframes huntBanner {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  12% { opacity: 1; transform: translate(-50%, 0); }
  76% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}
.hunt-banner small { display: block; color: var(--hunt-amber); font: 800 6.5px/1 "Noto Sans SC", sans-serif; letter-spacing: .2em; }
.hunt-banner b { display: block; margin-top: 3px; color: #f2ffff; font: 900 18px/1.05 "Noto Sans SC", sans-serif; letter-spacing: .1em; text-shadow: 0 0 20px rgba(255,202,92,.18); }
.hunt-banner em { display: block; margin-top: 3px; color: rgba(220,255,255,.55); font: 600 6.5px/1.2 "Noto Sans SC", sans-serif; letter-spacing: .06em; font-style: normal; }
.hunt-toast {
  position: absolute; z-index: 24; left: 50%; bottom: 118px; transform: translate(-50%, 8px);
  max-width: 280px; padding: 6px 12px; border: 1px solid rgba(124,232,234,.2);
  background: rgba(3,17,20,.92); color: rgba(230,255,255,.86);
  font: 700 7px/1.3 "Noto Sans SC", sans-serif; letter-spacing: .04em; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.hunt-toast.on { opacity: 1; transform: translate(-50%, 0); }
.hunt-toast.danger { border-color: rgba(255,83,104,.5); color: #ffdbe0; background: rgba(43,9,16,.92); }
.hunt-toast.good { border-color: rgba(142,255,178,.45); color: #dcffe8; }

/* 行动手册 */
.hunt-codex, .hunt-result {
  position: absolute; z-index: 30; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 10px; background: rgba(1,8,10,.7); backdrop-filter: blur(7px);
}
.hunt-codex.on, .hunt-result.on { display: flex; }
.hunt-codex-card {
  position: relative; width: min(720px, 92vw); max-height: 92vh; overflow: auto; padding: 14px 18px 12px;
  background: linear-gradient(135deg, rgba(5,27,29,.97), rgba(2,11,13,.96));
  border: 1px solid rgba(124,232,234,.24); box-shadow: 0 22px 80px rgba(0,0,0,.6);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.hunt-codex-close { position: absolute; right: 10px; top: 9px; width: 24px; height: 24px; border: 1px solid rgba(124,232,234,.24); background: rgba(255,255,255,.04); color: rgba(230,255,255,.8); font: 800 15px/1 "Noto Sans SC", sans-serif; cursor: pointer; }
.hunt-codex-kicker { color: var(--hunt-amber); font: 800 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .18em; }
.hunt-codex-card h2 { margin: 4px 0 10px; color: #f2ffff; font: 900 25px/1 "Noto Sans SC", sans-serif; letter-spacing: .08em; }
.hunt-codex-card h2 small { margin-left: 8px; color: rgba(124,232,234,.45); font: 600 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .05em; }
.hunt-codex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.hunt-codex-cols section h3 { margin: 0 0 4px; color: var(--hunt-cyan); font: 800 9px/1 "Noto Sans SC", sans-serif; letter-spacing: .1em; }
.hunt-codex-cols section p { margin: 0 0 5px; color: rgba(220,255,255,.62); font: 500 8px/1.5 "Noto Sans SC", sans-serif; }
.hunt-codex-cols section p b { color: rgba(238,255,255,.9); }
.hunt-codex-foot { display: flex; justify-content: space-between; margin-top: 9px; padding-top: 7px; border-top: 1px solid rgba(124,232,234,.1); color: rgba(124,232,234,.45); font: 700 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .06em; }
.hunt-codex-foot b { color: var(--hunt-amber); }

/* 结算 */
.hunt-result-card {
  width: min(560px, 92vw); padding: 20px 24px 18px; text-align: center;
  background: linear-gradient(135deg, rgba(5,27,29,.97), rgba(2,11,13,.97));
  border: 1px solid rgba(124,232,234,.28); box-shadow: 0 26px 90px rgba(0,0,0,.66);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.hunt-result-card.win { border-color: rgba(142,255,178,.42); }
.hunt-result-card.lose { border-color: rgba(255,83,104,.35); }
.hunt-result-kicker { margin: 0; color: var(--hunt-amber); font: 800 7px/1 "Noto Sans SC", sans-serif; letter-spacing: .18em; }
.hunt-result-card h2 { margin: 6px 0 4px; color: #f2ffff; font: 900 31px/1 "Noto Sans SC", sans-serif; letter-spacing: .12em; }
.hunt-result-card.lose h2 { color: #ffb6c2; }
.hunt-result-reason { margin: 0 auto; max-width: 430px; color: rgba(220,255,255,.58); font: 500 8px/1.45 "Noto Sans SC", sans-serif; }
.hunt-result-stats { display: flex; gap: 6px; margin: 13px 0 10px; }
.hunt-result-stats > * { flex: 1; padding: 6px 3px; border: 1px solid rgba(124,232,234,.12); background: rgba(255,255,255,.025); }
.hunt-result-stats b, .hunt-result-stats span { color: rgba(238,255,255,.9); font: 800 16px/1 "Noto Sans SC", sans-serif; }
.hunt-result-stats small { display: block; margin-top: 3px; color: rgba(124,232,234,.45); font: 600 6px/1 "Noto Sans SC", sans-serif; letter-spacing: .08em; }
.hunt-result-squad { display: flex; flex-direction: column; gap: 3px; margin: 9px 0; text-align: left; }
.hunt-result-squad > div { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-left: 2px solid var(--c); background: rgba(255,255,255,.022); }
.hunt-result-squad i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.hunt-result-squad b { color: rgba(238,255,255,.86); font: 700 8px/1 "Noto Sans SC", sans-serif; }
.hunt-result-squad small { color: rgba(124,232,234,.44); font: 600 6px/1 "Noto Sans SC", sans-serif; }
.hunt-result-mvp { margin: 8px 0 12px; padding: 7px; border: 1px solid rgba(255,202,92,.16); background: rgba(255,202,92,.04); text-align: left; }
.hunt-result-mvp small { display: block; color: rgba(255,202,92,.54); font: 700 6px/1 "Noto Sans SC", sans-serif; letter-spacing: .1em; }
.hunt-result-mvp b { display: inline-block; margin-top: 3px; color: #f2ffff; font: 800 10px/1 "Noto Sans SC", sans-serif; }
.hunt-result-mvp span { margin-left: 5px; color: rgba(124,232,234,.5); font: 600 6px/1 "Noto Sans SC", sans-serif; }
.hunt-result-actions { display: flex; gap: 6px; }
.hunt-result-actions button { flex: 1; height: 31px; border: 1px solid rgba(124,232,234,.24); background: rgba(255,255,255,.04); color: rgba(232,255,255,.8); font: 800 8px/1 "Noto Sans SC", sans-serif; letter-spacing: .06em; cursor: pointer; }
.hunt-result-actions button.primary { border-color: rgba(255,202,92,.5); background: rgba(255,202,92,.12); color: #fff3d4; }
.hunt-result-actions button:hover { filter: brightness(1.25); }

/* 小屏适配 */
@media (max-width: 720px) {
  .hunt-top { height: 54px; gap: 4px; padding-left: 6px; padding-right: 6px; }
  .hunt-brand { width: 144px; min-width: 144px; gap: 4px; }
  .hunt-brand-copy small { font-size: 5.2px; }
  .hunt-brand-copy b { font-size: 16px; }
  .hunt-timer { width: 88px; min-width: 88px; }
  .hunt-timer b { font-size: 20px; }
  .hunt-alert { width: 92px; min-width: 92px; }
  .hunt-objective b { font-size: 15px; }
  .hunt-squad-panel { width: 126px; height: 198px; }
  .hunt-objective-panel { width: 142px; height: 186px; }
  .hunt-skill-card { width: 142px; bottom: 86px; }
.hunt-actions { width: 142px; }
  .hunt-prompt { left: 137px; right: 153px; }
  .hunt-joy { width: 90px; height: 90px; }
  .hunt-stance-chip { left: 105px; width: 96px; }
}
@media (max-height: 360px) {
  .hunt-objective-panel { height: 170px; }
  .hunt-mini { height: 34px; }
  .hunt-squad-panel { height: 180px; }
  .hunt-feed { display: none; }
  .hunt-skill-card { height: 42px; bottom: 78px; }
  .hunt-actions { grid-template-columns: 1fr 1fr; gap: 3px; }
  .hunt-act { height: 31px; }
  .hunt-act.hack { height: 31px; }
  .hunt-joy { width: 84px; height: 84px; }
  .hunt-prompt { bottom: 6px; }
}
