/* 字体：原先外链 Google Fonts(Orbitron/Rajdhani)，改为本地系统字体栈，
   消除首屏阻塞与离线降级。Bahnschrift 是 Windows 自带的窄体技术风格字体，
   与 Rajdhani/Orbitron 观感接近。 */
:root {
  --font-display: 'Bahnschrift', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Bahnschrift', 'Segoe UI', system-ui, -apple-system, 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #8f674f; /* 与沙漠天空同色，避免画布未铺满时露出纯黑 */
  font-family: var(--font-body), sans-serif;
  cursor: none;
  /* 降低触控板/浏览器过度滚动、手势导航干扰。
     这一段是**真正能压住 Chrome"双指横滑=后退/前进"的关键**：
     Chrome 的 overscroll-history-navigation 只在出现横向 overscroll 时触发，
     显式把两个轴都设为 none 即可让滑动导航不生效（新版 Chrome 已移除
     chrome://flags 里的对应开关，只剩这条 CSS 和启动参数可用）。
     注意：CSS 只是声明，更硬的一层在 gameplay.js 的 wheel preventDefault。 */
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* 画布始终铺满视口，防止窗口/全屏切换后出现黑边或黑角 */
canvas#game-canvas,
body > canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* 菜单 */
#menu {
    position: fixed; inset: 0; z-index: 100;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1a2e 100%);
    display: flex; align-items: center; justify-content: center;
    cursor: default; overflow-y: auto;
}
.menu-container { text-align: center; padding: 30px 20px; }
.game-title {
    font-family: var(--font-display), sans-serif; font-size: 64px; font-weight: 900;
    background: linear-gradient(90deg, #ff4444, #ffffff, #4488ff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: titlePulse 3s ease-in-out infinite;
}
.game-subtitle {
    font-family: var(--font-display), sans-serif; font-size: 16px; color: #556; letter-spacing: 10px; margin-top: 6px;
}
@keyframes titlePulse {
    0%,100% { filter: brightness(1); } 50% { filter: brightness(1.3); }
}

/* 阵营选择 */
.team-select, .mode-select { margin: 28px 0 0; }
.team-select h2, .mode-select h2 { color: #99a; font-size: 18px; margin-bottom: 14px; letter-spacing: 4px; }

.team-buttons { display: flex; gap: 24px; justify-content: center; }
.team-btn {
    width: 140px; height: 100px; border: 2px solid #333; border-radius: 14px;
    background: rgba(255,255,255,0.03); color: #fff; font-size: 18px; font-family: var(--font-body);
    cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
}
.team-btn .team-icon { font-size: 32px; }
.team-btn.red:hover, .team-btn.red.selected {
    border-color: #ff4444; background: rgba(255,68,68,0.15); box-shadow: 0 0 25px rgba(255,68,68,0.3);
}
.team-btn.blue:hover, .team-btn.blue.selected {
    border-color: #4488ff; background: rgba(68,136,255,0.15); box-shadow: 0 0 25px rgba(68,136,255,0.3);
}

/* 模式选择 */
.mode-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mode-btn {
    width: 120px; padding: 14px 8px; border: 2px solid #2a2a3a; border-radius: 12px;
    background: rgba(255,255,255,0.02); color: #ccc; font-family: var(--font-body);
    cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column;
    align-items: center; gap: 4px;
}
.mode-btn .mode-icon { font-size: 28px; }
.mode-btn .mode-name { font-size: 18px; font-weight: 700; font-family: var(--font-display); letter-spacing: 1px; }
.mode-btn .mode-desc { font-size: 12px; color: #778; }
.mode-btn:hover, .mode-btn.selected {
    border-color: #6c5ce7; background: rgba(108,92,231,0.15);
    box-shadow: 0 0 20px rgba(108,92,231,0.25); color: #fff;
}
.mode-btn.selected .mode-desc { color: #a89eec; }

/* 自定义设置面板 */
.custom-panel {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px;
}
.custom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    color: #ccc;
    font-size: 14px;
}
.custom-row label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-row label span {
    font-family: var(--font-display);
    color: #6c5ce7;
    font-weight: 700;
    min-width: 24px;
}
.custom-row input[type="range"] {
    width: 140px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(108, 92, 231, 0.3);
    border-radius: 3px;
    outline: none;
}
.custom-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #6c5ce7;
    border-radius: 50%;
    cursor: pointer;
}
.custom-row select {
    padding: 6px 12px;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.5);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
}
.custom-row select option {
    background: #1a1a2e;
    color: #fff;
}

.start-btn {
    margin-top: 24px;
    padding: 16px 48px;
    font-family: var(--font-display), sans-serif; font-size: 20px; font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a855f7);
    border: none; border-radius: 8px;
    color: #fff; cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(108,92,231,0.3);
}
.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(108,92,231,0.5);
}
.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.controls-info { margin-top: 28px; }
.controls-info h3 { color: #778; font-size: 14px; letter-spacing: 3px; margin-bottom: 12px; }
.control-grid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 8px 24px;
    justify-content: center;
    font-size: 13px;
    color: #99a;
}
.control-grid .key {
    font-family: var(--font-display), monospace;
    background: rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #ccd;
}

/* HUD */
#hud {
    position: fixed; inset: 0; pointer-events: none; z-index: 10;
    background: transparent;
}

#crosshair {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 24px; height: 24px;
}
.ch-line { position: absolute; background: rgba(255,255,255,0.85); }
.ch-top, .ch-bottom { left: 50%; transform: translateX(-50%); width: 2px; height: 8px; }
.ch-top { top: 0; }
.ch-bottom { bottom: 0; }
.ch-left, .ch-right { top: 50%; transform: translateY(-50%); width: 8px; height: 2px; }
.ch-left { left: 0; }
.ch-right { right: 0; }
.ch-dot {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 3px; height: 3px; background: rgba(255,255,255,0.6); border-radius: 50%;
}

#health-bar {
    position: absolute; bottom: 24px; left: 24px;
    display: flex; align-items: center; gap: 10px;
}
.bar-label {
    font-family: var(--font-display), sans-serif; font-size: 14px; color: #ff6b6b;
    font-weight: 700;
}
.bar-outer {
    width: 160px; height: 18px;
    background: rgba(0,0,0,0.5); border-radius: 3px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}
.bar-inner {
    height: 100%; background: linear-gradient(90deg, #ff4444, #ff6b6b);
    transition: width 0.15s ease;
}
#health-text {
    font-family: var(--font-display), sans-serif; font-size: 16px; color: #fff;
    min-width: 36px;
}

#ammo-display {
    position: absolute; bottom: 24px; right: 24px;
    text-align: right;
}
#weapon-name {
    font-family: var(--font-display), sans-serif; font-size: 14px; color: #aabbcc;
    letter-spacing: 2px; margin-bottom: 4px;
}
#ammo-current {
    font-family: var(--font-display), sans-serif; font-size: 32px; font-weight: 700;
    color: #fff;
}
#ammo-total {
    font-family: var(--font-display), sans-serif; font-size: 18px; color: #778;
}
#reload-indicator {
    font-family: var(--font-body), sans-serif; font-size: 14px;
    color: #ffaa44; margin-top: 4px;
}

#pickup-banner {
    position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display), sans-serif; font-size: 18px; font-weight: 700;
    color: #44ff44; text-shadow: 0 0 12px #44ff44;
    pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
#pickup-banner.show { opacity: 1; }

#charge-bar {
    position: absolute;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%);
    width: 260px;
    height: 18px;
    border-radius: 999px;
    background: rgba(10, 8, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    box-shadow: 0 0 18px rgba(123, 77, 255, 0.18);
}
#charge-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7b4dff, #ff66ff);
    box-shadow: 0 0 18px rgba(255, 102, 255, 0.45);
    transition: width 0.2s linear;
}
#charge-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

#mode-indicator {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display), sans-serif; font-size: 14px;
    color: #aabbcc; letter-spacing: 2px;
}

#evolution-panel {
    position: absolute; top: 48px; left: 50%; transform: translateX(-50%);
    display: none; gap: 8px;
}
#evolution-panel.show { display: flex; }
.evolution-slot {
    width: 28px; height: 28px;
    border: 2px solid #556; border-radius: 4px;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: all 0.3s;
}
.evolution-slot.filled {
    border-color: #44ff44;
    background: rgba(68,255,68,0.15);
    box-shadow: 0 0 8px #44ff4444;
}
.evolution-slot.terminator {
    border-color: #44ccff;
    background: rgba(68,204,255,0.2);
    box-shadow: 0 0 10px #44ccff66;
}
.evolution-slot.inferno {
    border-color: #ff4444;
    background: rgba(255,68,68,0.2);
    box-shadow: 0 0 12px #ff444466;
}

#score-board {
    position: absolute; top: 18px; right: 24px;
    display: flex; align-items: center; gap: 16px;
    font-family: var(--font-display), sans-serif; font-size: 16px;
}
.score-red { color: #ff6b6b; }
.score-blue { color: #6b9fff; }
.score-vs { color: #778; }

#kill-feed {
    position: absolute; top: 60px; right: 24px;
    display: flex; flex-direction: column; gap: 6px;
    font-family: var(--font-body), sans-serif; font-size: 13px;
}
.kill-msg {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.5); padding: 6px 12px;
    border-radius: 4px; animation: killFeedIn 0.3s ease;
}
@keyframes killFeedIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
#damage-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(255,0,0,0.3) 100%);
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}

#hit-marker {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none;
}

#hit-flash-border {
    position: absolute; inset: 0;
    border: 3px solid transparent;
    pointer-events: none; transition: border-color 0.1s;
}
#hit-flash-border.hit { border-color: rgba(255,100,100,0.6); }
#hit-flash-border.kill { border-color: rgba(255,200,50,0.8); }

#combo-counter {
    position: absolute; top: 35%; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display), sans-serif; font-size: 24px; font-weight: 900;
    color: #ffcc66; text-shadow: 0 0 16px #ffcc66;
    pointer-events: none;
}

#damage-numbers {
    position: absolute; inset: 0; pointer-events: none;
}
.damage-number {
    position: absolute;
    font-family: var(--font-display), sans-serif; font-weight: 900;
    font-size: 20px; color: #fff;
    text-shadow: 0 0 8px currentColor;
    pointer-events: none; animation: damageFloat 1s ease forwards;
}
.damage-number.crit { color: #ffcc66; font-size: 26px; }
.damage-number.limb { color: #99ccff; font-size: 16px; }
@keyframes damageFloat {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.8); }
}

#kill-flash {
    position: absolute; inset: 0;
    background: rgba(255,200,50,0.15);
    opacity: 0; pointer-events: none;
    transition: opacity 0.1s;
}

#kill-confirm {
    position: absolute; top: 40%; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display), sans-serif; font-size: 28px; font-weight: 900;
    color: #ffcc66; text-shadow: 0 0 20px #ffcc66;
    opacity: 0; pointer-events: none;
}

#death-screen {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(80, 0, 0, 0.35); pointer-events: none;
    animation: deathFadeIn 0.5s ease;
}
.death-text {
    font-family: var(--font-display); font-size: 48px; font-weight: 900;
    color: #ff3333; text-shadow: 0 0 30px rgba(255,0,0,0.5);
    animation: deathPulse 1.5s ease-in-out infinite;
}
.death-timer {
    font-size: 18px; color: #cc8888; margin-top: 12px;
    font-family: var(--font-body); letter-spacing: 2px;
}
#death-screen.challenge-revive {
    background: radial-gradient(circle at center, rgba(150, 20, 20, 0.52), rgba(30, 0, 0, 0.78));
}
#death-screen.challenge-revive .death-timer {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    margin-top: 18px; color: #ffd0a0; text-shadow: 0 0 18px rgba(255,120,40,0.95);
}
.death-timer-label {
    font-size: 22px; font-weight: 800; letter-spacing: 5px; color: #ffcc88;
}
.death-timer-num {
    font-family: var(--font-display); font-size: 96px; font-weight: 900; line-height: 1;
    color: #ff5533; text-shadow: 0 0 18px rgba(255,60,30,1), 0 0 48px rgba(255,120,30,0.75);
    animation: deathCountdownPulse 0.75s ease-in-out infinite;
}
.death-timer-unit {
    font-size: 26px; font-weight: 900; letter-spacing: 4px; color: #ffeecc;
}
@keyframes deathFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes deathPulse { 0%,100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes deathCountdownPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* 生化倒计时大字 */
#bio-countdown {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; pointer-events: none; z-index: 50;
}
#bio-countdown .bio-count-num {
    font-family: var(--font-display); font-size: 140px; font-weight: 900; line-height: 1;
    background: linear-gradient(180deg, #ff6600, #ff2200);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: none; filter: drop-shadow(0 0 24px rgba(255,80,0,0.9));
    animation: bioCountPulse 0.8s ease-in-out infinite;
}
#bio-countdown .bio-count-label {
    font-family: var(--font-body); font-size: 22px; font-weight: 700;
    color: #ffaa44; letter-spacing: 6px; margin-top: 8px;
    text-shadow: 0 0 12px rgba(255,140,0,0.8);
}
#bio-countdown .bio-count-alert {
    font-family: var(--font-display); font-size: 36px; font-weight: 900;
    color: #44ff44; text-shadow: 0 0 20px rgba(68,255,68,0.9);
    animation: bioAlertPulse 0.4s ease-in-out infinite;
}
@keyframes bioCountPulse { 0%,100% { filter: drop-shadow(0 0 20px rgba(255,80,0,0.7)); } 50% { filter: drop-shadow(0 0 40px rgba(255,80,0,1)); } }
@keyframes bioAlertPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* 生化局间结算 */
#bio-round-end {
    position: fixed; inset: 0; z-index: 180; background: rgba(0,0,0,0.82);
    display: flex; align-items: center; justify-content: center; cursor: default;
}
.bio-round-container { text-align: center; }
#bio-round-result {
    font-family: var(--font-display); font-size: 52px; font-weight: 900; margin-bottom: 18px;
}
#bio-round-score {
    font-family: var(--font-body); font-size: 28px; color: #ccddff;
    letter-spacing: 3px; margin-bottom: 24px;
}
#bio-round-next {
    font-family: var(--font-body); font-size: 20px; color: #88aacc;
    letter-spacing: 2px;
}

/* 游戏结束 */
#game-over {
    position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center; cursor: default;
    padding: 24px;
    overflow-y: auto;
}
.go-container {
    text-align: center;
    width: min(92vw, 820px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.go-container h1 { font-family: var(--font-display); font-size: 52px; font-weight: 900; margin-bottom: 14px; flex-shrink: 0; }
.go-container p { color: #99a; font-size: 17px; margin-bottom: 18px; flex-shrink: 0; }
#go-leaderboard {
    margin: 0 auto 22px;
    padding: 14px 14px;
    width: min(100%, 760px);
    max-height: min(48vh, 460px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    text-align: left;
}
#go-leaderboard::-webkit-scrollbar {
    width: 10px;
}
#go-leaderboard::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
}
#go-leaderboard::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}
.go-leaderboard-title {
    font-family: var(--font-display), sans-serif;
    font-size: 16px;
    color: #ffd36b;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-align: center;
}
.go-leaderboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #d9dfef;
    font-size: 15px;
    border: 1px solid transparent;
}
.go-leaderboard-row + .go-leaderboard-row {
    margin-top: 5px;
}
.go-leaderboard-row.top1 {
    background: linear-gradient(90deg, rgba(255, 211, 107, 0.18), rgba(255, 211, 107, 0.08));
    border-color: rgba(255, 211, 107, 0.35);
}
.go-leaderboard-row.top2 {
    background: linear-gradient(90deg, rgba(206, 214, 224, 0.16), rgba(206, 214, 224, 0.07));
    border-color: rgba(206, 214, 224, 0.3);
}
.go-leaderboard-row.top3 {
    background: linear-gradient(90deg, rgba(205, 127, 80, 0.18), rgba(205, 127, 80, 0.08));
    border-color: rgba(205, 127, 80, 0.35);
}
.go-leaderboard-row.is-player {
    box-shadow: inset 0 0 0 1px rgba(108, 92, 231, 0.55);
    background-color: rgba(108, 92, 231, 0.12);
}
.go-leaderboard-rank {
    width: 42px;
    font-family: var(--font-display), sans-serif;
    color: #ffd36b;
    font-weight: 700;
    flex-shrink: 0;
}
.go-leaderboard-row.top2 .go-leaderboard-rank { color: #cfd8e3; }
.go-leaderboard-row.top3 .go-leaderboard-rank { color: #d99663; }
.go-leaderboard-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.go-leaderboard-damage {
    font-family: var(--font-display), sans-serif;
    color: #88ffb0;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 14px;
}
.go-leaderboard-empty {
    color: #99a;
    text-align: center;
    font-size: 15px;
}
.go-match-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.go-team-panel {
    min-width: 0;
}
.go-team-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.06);
}
.go-team-title.red { color: #ff6666; border: 1px solid rgba(255,68,68,0.35); }
.go-team-title.blue { color: #66aaff; border: 1px solid rgba(68,136,255,0.35); }
.go-team-score {
    color: #ffffff;
    font-size: 18px;
}
.go-team-winner {
    color: #88ffb0;
    font-size: 12px;
    padding: 2px 7px;
    border: 1px solid rgba(136,255,176,0.38);
    border-radius: 999px;
    letter-spacing: 1px;
}
.go-stats-header,
.go-stats-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px 38px 38px;
    align-items: center;
    gap: 8px;
}
.go-stats-header {
    padding: 4px 10px 6px;
    color: #7f8da8;
    font-size: 12px;
    letter-spacing: 2px;
    text-align: center;
}
.go-stats-header .go-stats-name {
    text-align: left;
}
.go-stats-row {
    text-align: center;
}
.go-stats-row .go-leaderboard-name {
    text-align: left;
}
.go-stats-row.team-red .go-leaderboard-name { color: #ff8a8a; }
.go-stats-row.team-blue .go-leaderboard-name { color: #8bbcff; }
.go-stat-k { color: #88ffb0; font-family: var(--font-display), sans-serif; font-weight: 800; }
.go-stat-d { color: #ff8a8a; font-family: var(--font-display), sans-serif; font-weight: 800; }
.go-stat-a { color: #ffd36b; font-family: var(--font-display), sans-serif; font-weight: 800; }
@media (max-width: 720px) {
    .go-match-stats { grid-template-columns: 1fr; }
}

/* 挑战模式变身选择 */
#challenge-transform {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center; cursor: default;
}
.challenge-transform-container { text-align: center; }
.challenge-transform-title {
    font-family: var(--font-display), sans-serif; font-size: 36px; font-weight: 900;
    color: #fff; letter-spacing: 4px; margin-bottom: 12px;
    text-shadow: 0 0 20px #ff4444;
}
.challenge-transform-subtitle {
    font-family: var(--font-body), sans-serif; font-size: 18px;
    color: #aabbcc; margin-bottom: 32px;
}
.challenge-transform-buttons {
    display: flex; gap: 40px; justify-content: center;
}
.transform-btn {
    width: 260px; padding: 32px 24px; border: 2px solid #556;
    border-radius: 14px; background: rgba(255,255,255,0.05);
    color: #fff; cursor: pointer; transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-family: var(--font-body), sans-serif;
}
.transform-btn:hover { transform: scale(1.05); border-color: #fff; background: rgba(255,255,255,0.12); }
.transform-btn.hunter { border-color: #44ccff; }
.transform-btn.hunter:hover { background: rgba(68,204,255,0.18); box-shadow: 0 0 30px #44ccff88; }
.transform-btn.zombie { border-color: #ff4444; }
.transform-btn.zombie:hover { background: rgba(255,68,68,0.18); box-shadow: 0 0 30px #ff444488; }
.transform-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #556 !important;
    background: rgba(255,255,255,0.02) !important;
    box-shadow: none !important;
}
.transform-btn.disabled:hover {
    transform: scale(1);
}
.transform-icon { font-size: 48px; }
.transform-name { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.transform-desc { font-size: 14px; color: #aabbcc; }
.transform-stat { font-size: 15px; color: #ffcc66; font-weight: 600; }
.transform-note { font-size: 12px; color: #88ccff; font-style: italic; }
.transform-note.ultimate-available { color: #44ff44; font-weight: 700; }

/* 猎手变体选择 */
#hunter-select {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.88);
    display: flex; align-items: center; justify-content: center; cursor: default;
    pointer-events: auto;
}
#hunter-select .hunter-btn,
#challenge-transform .transform-btn {
    pointer-events: auto;
    cursor: pointer;
}
.hunter-select-container { text-align: center; }
.hunter-select-title {
    font-family: var(--font-display), sans-serif; font-size: 32px; font-weight: 900;
    color: #fff; letter-spacing: 4px; margin-bottom: 32px;
    text-shadow: 0 0 20px #ffaa44;
}
.hunter-select-buttons {
    display: flex; gap: 32px; justify-content: center;
}
.hunter-btn {
    width: 220px; padding: 28px 20px; border: 2px solid #556;
    border-radius: 12px; background: rgba(255,255,255,0.05);
    color: #fff; cursor: pointer; transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-family: var(--font-body), sans-serif;
}
.hunter-btn:hover { transform: scale(1.07); border-color: #fff; background: rgba(255,255,255,0.12); }
.hunter-btn.blade { border-color: #aa66ff; }
.hunter-btn.blade:hover { background: rgba(170,102,255,0.18); box-shadow: 0 0 24px #aa66ff88; }
.hunter-btn.sniper { border-color: #44ccff; }
.hunter-btn.sniper:hover { background: rgba(68,204,255,0.18); box-shadow: 0 0 24px #44ccff88; }
.hunter-icon { font-size: 42px; }
.hunter-name { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.hunter-desc { font-size: 14px; color: #aabbcc; }
.hunter-stat { font-size: 13px; color: #ffcc66; font-weight: 600; }
