:root {
    --bg-color: #050a15;
    --primary-color: #00f0ff;
    --secondary-color: #ff003c;
    --text-color: #e0e6ed;
    --panel-bg: rgba(10, 20, 40, 0.6);
    --panel-border: rgba(0, 240, 255, 0.2);
    --board-bg: #e6c280; /* Traditional board color with a twist */
    --board-lines: #4a3018;
    --red-piece: #ff3333;
    --black-piece: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling, app is fixed size like a game */
    background-color: var(--bg-color);
    font-family: 'Noto Sans SC', 'Orbitron', sans-serif;
    color: var(--text-color);
}

/* 神经元背景 */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lowest z-index */
}

/* 主容器 */
#app {
    position: relative;
    z-index: 10; /* Above canvas */
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glassmorphism 面板通用样式 */
.glass-panel {
    background: rgba(10, 20, 40, 0.85);
    border: 1px solid var(--panel-border);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* 头部 */
header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    gap: 1rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Orbitron', sans-serif;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
}

#user-info span {
    font-size: 0.9rem;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    font-size: 0.8rem;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* 控件和按钮 */
#room-controls {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    outline: none;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.cyber-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-weight: bold;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,240,255,0.25), inset 0 0 8px rgba(0,240,255,0.08);
    text-shadow: 0 0 6px rgba(0,240,255,0.4);
}

.cyber-btn:hover {
    background: var(--primary-color);
    color: #050a15;
    box-shadow: 0 0 24px var(--primary-color), 0 0 48px rgba(0,240,255,0.35);
    text-shadow: none;
}

.cyber-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 12px var(--primary-color), inset 0 0 12px rgba(0,240,255,0.15);
}

.cyber-btn.danger {
    border-color: #ff3e3e;
    color: #ff3e3e;
    box-shadow: 0 0 8px rgba(255,62,62,0.25), inset 0 0 8px rgba(255,62,62,0.08);
    text-shadow: 0 0 6px rgba(255,62,62,0.4);
}
.cyber-btn.danger:hover {
    background: #ff3e3e;
    color: #fff;
    box-shadow: 0 0 24px #ff3e3e, 0 0 48px rgba(255,62,62,0.35);
    text-shadow: none;
}

.cyber-btn.danger:active {
    box-shadow: 0 0 12px #ff3e3e, inset 0 0 12px rgba(255,62,62,0.15);
}

.hidden {
    display: none !important;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* 主体布局 */
main {
    display: flex;
    flex: 1;
    gap: 1.5rem;
    overflow: hidden;
}

.game-container {
    flex: 5; /* 强化核心视觉 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.right-sidebar {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 300px;
    max-width: 400px;
    overflow: hidden;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 棋盘包裹层 */
.board-wrapper {
    position: relative;
    /* Maintain aspect ratio 9:10 for Chinese Chess */
    aspect-ratio: 9/10;
    width: 100%;
    max-width: 700px;
    max-height: 90vh; /* Free to expand now! */
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 240, 255, 0.3);
    background: #deb887; /* default board base */
    overflow: hidden;
}

#chess-board {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

/* 动画和特效 */
.pulsate {
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--primary-color); }
    100% { opacity: 0.7; }
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-container {
        padding: 0.5rem;
    }

    .board-wrapper {
        max-height: 55vh;
    }
    
    .controls {
        flex: none;
    }
}

/* Auth Modal Styles */
.cyber-auth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cyber-auth h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--panel-border);
}

.auth-tabs button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 10px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-tabs button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

#auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    outline: none;
}

#auth-submit {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.error-msg {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-align: center;
}

.success-msg {
    color: #00ff00;
    font-size: 0.9rem;
    text-align: center;
}

.cyber-btn.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* Chat Panel Styles */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent chat from overflowing sidebar */
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 4px;
}

.chat-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 5px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.chat-msg {
    font-size: 0.85rem;
    word-break: break-all;
}

.chat-msg .author {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 5px;
}

.chat-msg.self .author {
    color: var(--secondary-color);
}

.sys-msg {
    color: #888;
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    width: 100%;
}

.chat-input-area input {
    flex: 1;
    min-width: 0; /* 允许输入框根据容器自由收缩，防止挤压按钮 */
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--panel-border);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.chat-input-area button {
    padding: 8px 18px;
    flex-shrink: 0; /* 绝对禁止按钮在容器缩小时被挤压 */
    white-space: nowrap; /* 绝对禁止文字换行，确保“发送”完全显示 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chat-panel {
        max-width: none;
        height: 250px;
    }
}

/* Leaderboard Styles */
.leaderboard-content {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.leaderboard-content::-webkit-scrollbar {
    width: 5px;
}

.leaderboard-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
    text-align: center;
}

#leaderboard-table th {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    padding: 10px;
    border-bottom: 1px solid var(--panel-border);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 15, 0.95);
}

#leaderboard-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

#leaderboard-table tr:hover {
    background: rgba(0, 240, 255, 0.05);
}

#close-leaderboard-btn, #close-wrong-words-btn {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* QR Invite Popup Animation */
@keyframes qrFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ==========================================
   人机模式 - 隐藏侧边栏，棋盘居中放大
   ========================================== */
body.ai-mode .right-sidebar {
    display: none !important;
}

body.ai-mode main {
    justify-content: center;
    align-items: center;
}

body.ai-mode .game-container {
    flex: 1;
    max-width: 800px;
}

/* ==========================================
   沉浸式全屏 / 网页大屏自适应样式
   ========================================== */
body.fullscreen-active #app {
    max-width: 100vw;
    padding: 0.5rem;
    height: 100vh;
}

body.fullscreen-active header {
    position: fixed;
    top: -54px; /* 默认隐藏大部分高度，留出底部发光边框以作视觉引导 */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 1000;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(5, 10, 25, 0.95);
    border: 1.5px solid var(--primary-color);
    border-top: none;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
    border-radius: 0 0 15px 15px;
    padding: 8px 20px;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

body.fullscreen-active header:hover {
    top: 0; /* 悬浮触发：平滑下拉显示控制面板 */
}

/* 全屏状态下彻底隐藏大厅、房间、人机配置及上下特工头像等非对局关键 UI */
body.fullscreen-active header h1,
body.fullscreen-active header .mode-selector,
body.fullscreen-active header #room-controls,
body.fullscreen-active header #ai-controls,
body.fullscreen-active header #status-display,
body.fullscreen-active header #ai-game-bar {
    display: none !important;
}

/* 简化用户信息面板，只保留音乐和全屏切换 */
body.fullscreen-active #user-info {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

body.fullscreen-active #user-info > a,
body.fullscreen-active #user-info #leaderboard-btn,
body.fullscreen-active #user-info span,
body.fullscreen-active #user-info #logout-btn {
    display: none !important;
}

/* (移除旧的冗余状态提示样式) */

body.fullscreen-active .header-top {
    width: auto;
    gap: 0;
}

body.fullscreen-active main {
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* 彻底重置 right-sidebar 防止 backdrop-filter 产生包含块 (Containing Block) */
body.fullscreen-active .right-sidebar {
    flex: none !important; /* 防止它占用 flex 空间 */
    position: static !important;
    transform: none !important;
    backdrop-filter: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important; /* 让它本身不阻挡点击 */
}

/* 允许 controls 内部的交互元素重新响应点击 */
body.fullscreen-active .controls,
body.fullscreen-active .chat-panel {
    pointer-events: auto !important;
}

body.fullscreen-active .game-container {
    flex: 1 !important; /* 独占所有空间 */
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 3vw !important;
}

/* 联机全屏时额外右移 3vw（总计 6vw） */
body.fullscreen-active:not(.ai-mode) .game-container {
    padding-left: calc(9vw + 50px) !important;
}

body.fullscreen-active .board-wrapper {
    max-width: none !important;
    max-height: none !important;
    background: rgba(5, 10, 25, 0.85) !important;
    border: 1.5px solid rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.45), 0 0 20px rgba(0, 0, 0, 0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 状态报告控制区扁平化与浮动按钮化 */
body.fullscreen-active .controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important; /* 纵向堆叠按钮 */
    align-items: flex-end !important; /* 靠右对齐 */
    gap: 15px !important;
    z-index: 999;
    height: auto !important;
    width: auto !important;
}

body.fullscreen-active .controls h3,
body.fullscreen-active .controls .game-status h3,
body.fullscreen-active .controls #status-display,
body.fullscreen-active .controls #roster-panel {
    display: none !important;
}

body.fullscreen-active .controls .game-status {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 将回合状态独立悬浮于右上角安全区（四个角永远不会和居中的棋盘冲突） */
body.fullscreen-active #turn-indicator {
    position: fixed;
    top: 25px;
    right: 25px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    background: rgba(5, 10, 25, 0.85);
    border: 1.5px solid var(--primary-color);
    padding: 8px 25px;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
}

/* 爆改聊天面板为高科技侧滑抽屉 (Overlay Drawer) */
body.fullscreen-active .chat-panel {
    position: fixed;
    top: 0;
    right: -340px; /* 默认移出右侧视口 */
    width: 320px;
    height: 100vh;
    z-index: 1001; /* 盖在最上层 */
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(5, 10, 25, 0.96) !important;
    border-left: 2px solid var(--primary-color) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8) !important;
    padding: 25px !important;
    display: flex !important; /* 强制覆盖 .hidden 实现动画过渡 */
    max-width: none !important;
}

body.fullscreen-active .chat-panel.drawer-open {
    right: 0 !important; /* 展开状态 */
}

/* 全屏悬浮聊天开关按钮样式 */
#chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(5, 10, 25, 0.85);
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-toggle-btn:hover {
    background: var(--primary-color);
    color: #050a15;
    box-shadow: 0 0 25px var(--primary-color);
    transform: scale(1.1);
}

/* 仅在全屏下显示该按钮 */
#chat-toggle-btn.hidden {
    display: none !important;
}

body.fullscreen-active #chat-toggle-btn {
    display: flex !important;
}


/* 兼容原生全屏 API 状态下的自适应布局 */
:-webkit-full-screen .board-wrapper,
:-moz-full-screen .board-wrapper,
:-ms-fullscreen .board-wrapper,
:fullscreen .board-wrapper {
    max-height: 86vh;
    max-width: 86vh;
}

/* ==========================================
   赛博高感官视觉增强与霓虹动效
   ========================================== */

/* 1. 极其精美的赛博霓虹滚动条 (替换全局默认丑陋的滚动条) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 15, 30, 0.5);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, #bd00ff 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

/* 2. 徽章（Badge）与卡片发光特效 */
.badge {
    box-shadow: 0 0 8px var(--primary-color);
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge.danger {
    background: #ff0055;
    color: #fff;
    box-shadow: 0 0 8px #ff0055;
}

/* 3. 按钮矢量图标微交互悬浮动效 */
.cyber-btn i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.cyber-btn:hover i {
    transform: scale(1.15) translateY(-1px);
    text-shadow: 0 0 8px currentColor;
}

.cyber-btn.active i {
    text-shadow: 0 0 8px currentColor;
}

/* 4. 极致科幻的高亮与呼吸文本 */
.highlight {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    font-weight: bold;
}

/* 状态通知板的精美呼吸效果 */
.pulsate {
    text-shadow: 0 0 6px var(--primary-color);
    animation: textPulse 2.5s infinite alternate;
}

@keyframes textPulse {
    from {
        opacity: 0.85;
        text-shadow: 0 0 4px var(--primary-color);
    }
    to {
        opacity: 1;
        text-shadow: 0 0 12px var(--primary-color), 0 0 20px rgba(0, 240, 255, 0.4);
    }
}

/* 手机端恢复纵向滚动（桌面端保持 overflow: hidden 不变） */
/* 排除游戏固定布局页面（象棋等），它们需要保持固定视口 */
@media (max-width: 768px) {
    body:not(.game-layout), html {
        overflow-y: auto;
        overflow-x: hidden;
    }
    /* 象棋棋盘手机端自适应 */
    body.game-layout main {
        flex-direction: column;
    }
    body.game-layout .board-wrapper {
        max-height: 48vh;
        max-width: 95vw;
    }
    body.game-layout .controls {
        flex: none;
    }
    body.game-layout .chat-panel {
        max-width: none;
        height: 200px;
    }
}

/* ==========================================
   极简联机交互看板 (Roster Mini)
   ========================================== */
.roster-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 6px;
}

.seat-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #bbb;
    transition: all 0.3s ease;
}

.seat-badge.active-occupied {
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.08);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.seat-badge#seat-red.active-occupied {
    border-color: rgba(255, 62, 62, 0.4);
    background: rgba(255, 62, 62, 0.08);
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.15);
}

.seat-action-btn.micro {
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 8px;
    margin-left: 4px;
    height: auto;
}

.spectator-badge {
    border-color: rgba(100, 255, 100, 0.2);
    color: #8f8;
    font-size: 0.75rem;
    justify-content: flex-start;
}

/* ==========================================
   将军 (Check) 战场霓虹警报
   ========================================== */
.board-wrapper.check-alert {
    border-color: #ff003c !important;
    animation: warningPulse 1.2s infinite alternate !important;
}

@keyframes warningPulse {
    from {
        box-shadow: 0 0 25px rgba(255, 0, 60, 0.4), 0 0 10px rgba(0, 0, 0, 0.8);
    }
    to {
        box-shadow: 0 0 55px rgba(255, 0, 60, 0.95), 0 0 20px rgba(255, 0, 60, 0.5);
    }
}

