/* ============================================
   封神与哪吒 - 战斗界面样式
   对标《赵云与阿斗》棋盘式塔防布局
   ============================================ */

/* ---------- 战场主容器 ---------- */
.battle-container {
    position: relative;
    width: 100%;
    min-height: 667px;
    display: flex;
    flex-direction: column;
    background:
        /* 远山剪影 */
        radial-gradient(ellipse 200% 30% at 50% 0%, rgba(155, 142, 196, 0.08) 0%, transparent 60%),
        /* 底部土地纹理 */
        linear-gradient(180deg,
            transparent 0%,
            transparent 60%,
            rgba(200, 168, 120, 0.08) 100%);
    overflow: hidden;
}

/* ============================================
   1. 顶部信息栏（极简）
   ============================================ */
.top-bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 14px 6px;
    z-index: 5;
}

/* 左上角馒头数量 */
.mantou-display {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 10px 4px 4px;
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 4px rgba(44, 44, 44, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.mantou-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8e8 0%, #f0e0c0 60%, #d4b890 100%);
    border: 1.5px solid #c9a878;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.mantou-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.mantou-count {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--color-ink);
    font-weight: 500;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* 顶部中央关卡名 */
.level-info {
    text-align: center;
    flex: 1;
    padding-top: 2px;
}

.level-name {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-ink);
    letter-spacing: 4px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(44, 44, 44, 0.1);
}

.wave-text {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--color-ink-light);
    letter-spacing: 2px;
    margin-top: 3px;
}

/* 右上角暂停按钮 */
.btn-pause {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(44, 44, 44, 0.12);
    color: var(--color-ink);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background var(--transition-fast);
}

.btn-pause:active {
    background: rgba(44, 44, 44, 0.12);
}

/* 关卡导航按钮 */
.level-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.level-nav-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(44, 44, 44, 0.15);
    color: var(--color-ink);
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.level-nav-btn:active {
    transform: scale(0.9);
    background: rgba(212, 168, 83, 0.3);
}

.level-name-wrapper {
    text-align: center;
    min-width: 60px;
}

/* 顶部山水装饰 */
.mountain-deco {
    position: absolute;
    top: 28px;
    width: 60px;
    height: 16px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.mountain-deco.left { left: 0; }
.mountain-deco.right { right: 0; transform: scaleX(-1); }

/* ============================================
   2. 中央棋盘格战场（核心区域，上下对称）
   ============================================ */
.battlefield {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4px 10px;
    position: relative;
    gap: 0;
}

/* 战场区域（敌方/我方） */
.battle-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ========== 敌人连续移动层 ========== */
.enemy-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.enemy-unit {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: left, top;
    transition: none;
}

.enemy-unit .unit-text {
    font-size: 1.05rem;
    color: var(--color-ink);
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.4),
        0 1px 2px rgba(44, 44, 44, 0.4);
    line-height: 1;
}

.enemy-unit .speech-bubble {
    position: absolute;
    top: -18px;
    white-space: nowrap;
    font-size: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px;
    border-radius: 4px;
    color: var(--color-ink);
    border: 1px solid rgba(44, 44, 44, 0.15);
}

/* 敌方区域（上方）*/
.battle-zone-enemy {
    /* 数据已做左右镜像，敌方出兵门在顶部、主营在分割线处 */
}

/* 战场格子网格（5x8 = 40格） */
.battle-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 8 / 5;
    background: rgba(232, 224, 204, 0.4);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(44, 44, 44, 0.08);
    position: relative;
}

/* ============================================
   中央分割线
   ============================================ */
.battle-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 0;
    margin: 2px 0;
    position: relative;
    z-index: 5;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-gold) 30%,
        var(--color-gold) 70%,
        transparent 100%);
    max-width: 120px;
    position: relative;
}

.divider-line::before,
.divider-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(212, 168, 83, 0.5);
}

.divider-line::before { left: 20%; }
.divider-line::after  { right: 20%; }

.divider-center {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.4);
    border: 2px solid var(--color-bg);
    flex-shrink: 0;
}

.divider-vs {
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(44, 44, 44, 0.3);
}

/* ---------- 格子基础 ---------- */
.cell {
    position: relative;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-normal),
        background-color var(--transition-normal);
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

/* ========== 三态格子系统 ========== */

/* 红色通道格 - 敌军行进专用，浅红虚线标记 */
.cell.path {
    background: linear-gradient(180deg, #f8e8e8 0%, #f0d8d8 100%);
    border: 1.5px dashed rgba(192, 80, 80, 0.4);
}

/* 白色阵地格 - 可放置防守单位，纯白底+实线边框 */
.cell.placeable {
    background: #ffffff;
    border: 1.5px solid rgba(44, 44, 44, 0.25);
    cursor: pointer;
}

.cell.placeable:hover {
    background: #f8f8f8;
    box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.3);
}

/* 出兵门格子（古风木质城门 - 固定在最左边） */
.cell.gate-cell {
    background:
        /* 左右边缘暗影 */
        linear-gradient(90deg, rgba(0,0,0,0.25) 0%, transparent 18%),
        linear-gradient(270deg, rgba(0,0,0,0.25) 0%, transparent 18%),
        /* 木纹横条纹理 */
        repeating-linear-gradient(0deg,
            rgba(0,0,0,0.07) 0px,
            rgba(0,0,0,0.07) 1px,
            transparent 1px,
            transparent 5px),
        /* 底色：深褐木门渐变 */
        linear-gradient(180deg, #7a5230 0%, #6a4220 40%, #5a3520 70%, #4a2d1a 100%);
    border: 2px solid #3a2010;
    border-radius: 6px 6px 2px 2px;
    position: relative;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.45),
        inset 0 2px 0 rgba(255, 220, 180, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 门框装饰线 */
.cell.gate-cell::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(139, 90, 58, 0.5);
    border-radius: 4px 4px 1px 1px;
    pointer-events: none;
}

/* 门环（金色兽首门环） */
.cell.gate-cell::after {
    content: '';
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid #d4a853;
    background: radial-gradient(circle at 30% 30%, #f5d878 0%, #d4a853 50%, #a07820 100%);
    box-shadow:
        0 0 4px rgba(212, 168, 83, 0.7),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* 哪吒位置（白色/浅色） */
.cell.nezha-spot {
    background: linear-gradient(180deg, #fff5e8 0%, #f5e8c8 100%);
    border: 1.5px solid var(--color-gold);
    box-shadow:
        0 0 8px rgba(212, 168, 83, 0.3),
        inset 0 0 4px rgba(255, 255, 255, 0.5);
}

/* 灰色锁定格 - 不可放置，灰底+虚线边框，可用铲子解锁为白色 */
.cell.locked {
    background: #d0d0d0;
    border: 1.5px dashed rgba(120, 120, 120, 0.6);
    cursor: pointer;
}

/* 已放置兵种的格子覆盖 */
.cell.placed {
    background: linear-gradient(180deg, #8fcab8 0%, #7cb8a8 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        0 2px 6px rgba(44, 44, 44, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* 拖拽悬停高亮 */
.cell.drag-over {
    background: linear-gradient(180deg, #ffe9a8 0%, #f5d878 100%) !important;
    border: 2px solid var(--color-gold) !important;
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.5) !important;
    transform: scale(1.05);
}

/* 解锁闪光特效 */
.cell.unlock-flash {
    animation: unlockFlash 0.5s ease;
}

@keyframes unlockFlash {
    0% {
        background: #d0d0d0;
        box-shadow: 0 0 0 rgba(74, 222, 128, 0);
    }
    40% {
        background: linear-gradient(180deg, #a8f0c0 0%, #7ee0a0 100%);
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.5);
        transform: scale(1.08);
    }
    100% {
        background: #ffffff;
        box-shadow: 0 0 0 rgba(74, 222, 128, 0);
        transform: scale(1);
    }
}

/* 合成目标高亮 */
.cell.merge-target {
    animation: mergeFlash 0.4s ease;
}

@keyframes mergeFlash {
    0%, 100% {
        box-shadow:
            0 2px 6px rgba(44, 44, 44, 0.15),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 20px rgba(212, 168, 83, 0.9),
            0 0 40px rgba(212, 168, 83, 0.5),
            inset 0 0 8px rgba(255, 235, 150, 0.8);
        background: linear-gradient(180deg, #fff0b8 0%, #ffd878 100%) !important;
    }
}

/* ============================================
   3. 文字兵种显示（核心视觉）
   ============================================ */
.unit-text {
    font-family: var(--font-title);
    font-size: 1.15rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(44, 44, 44, 0.25);
    pointer-events: none;
    position: relative;
    z-index: 2;
}

/* 兵种颜色 */
.unit-text.type-sword  { color: #c03c3c; }   /* 朱红 - 肉盾 */
.unit-text.type-spear  { color: #d4a853; }   /* 金色 - 输出 */
.unit-text.type-beast  { color: #4ade80; }   /* 翠绿 - 群伤 */
.unit-text.type-magic  { color: #60a5fa; }   /* 蓝色 - 远程 */
.unit-text.type-shovel { color: #4ade80; }   /* 铲子 - 翠绿 */
.unit-text.type-hero_fragment { color: #d4a853; }  /* 武将碎片 - 金色 */

/* 武将文字（更大 + 金色光晕） */
.unit-text.hero {
    font-size: 1.5rem;
    color: var(--color-gold) !important;
    animation: heroGlow 2s ease-in-out infinite;
    z-index: 3;
}

/* 武将卡牌（激活后的武将，带主题色边框） */
.unit-text.hero-card {
    font-size: 0.9rem;
    font-weight: bold;
    padding: 2px 4px;
    border: 2px solid;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
    animation: heroGlow 2s ease-in-out infinite;
    z-index: 3;
    line-height: 1.2;
    text-shadow: none;
}

/* 激活态武将碎片（保留原字，无单独边框，统一边框由父级cell提供） */
.unit-text.hero-fragment-activated {
    font-size: 1.15rem;
    font-weight: bold;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.85);
    animation: heroGlow 2s ease-in-out infinite;
    z-index: 3;
    line-height: 1.2;
    border: none;
    box-shadow: none;
}

/* ========== 激活态武将碎片对 - 统一边框 ========== */
.cell.hero-pair {
    position: relative;
    --pair-gap: 2px;
    --pair-border-width: 2.5px;
}

/* 水平方向：左单元格 */
.cell.hero-pair-h-left {
    border-left: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-top: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-bottom: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-right: none !important;
}
.cell.hero-pair-h-left::after {
    content: '';
    position: absolute;
    right: calc(-1 * var(--pair-gap));
    top: 0;
    bottom: 0;
    width: var(--pair-gap);
    background: var(--pair-color, #e74c3c);
    z-index: 1;
    pointer-events: none;
}

/* 水平方向：右单元格 */
.cell.hero-pair-h-right {
    border-right: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-top: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-bottom: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-left: none !important;
}
.cell.hero-pair-h-right::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--pair-gap));
    top: 0;
    bottom: 0;
    width: var(--pair-gap);
    background: var(--pair-color, #e74c3c);
    z-index: 1;
    pointer-events: none;
}

/* 垂直方向：上单元格 */
.cell.hero-pair-v-top {
    border-left: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-top: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-right: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-bottom: none !important;
}
.cell.hero-pair-v-top::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--pair-gap));
    left: 0;
    right: 0;
    height: var(--pair-gap);
    background: var(--pair-color, #e74c3c);
    z-index: 1;
    pointer-events: none;
}

/* 垂直方向：下单元格 */
.cell.hero-pair-v-bottom {
    border-left: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-bottom: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-right: var(--pair-border-width) solid var(--pair-color, #e74c3c) !important;
    border-top: none !important;
}
.cell.hero-pair-v-bottom::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--pair-gap));
    left: 0;
    right: 0;
    height: var(--pair-gap);
    background: var(--pair-color, #e74c3c);
    z-index: 1;
    pointer-events: none;
}

/* 未激活武将碎片 - 睡觉zzZ */
.sleep-zzz {
    position: absolute;
    top: -14px;
    right: -4px;
    font-size: 0.45rem;
    color: #999;
    font-weight: bold;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 5;
    animation: sleepFloat 1.8s ease-in-out infinite;
    text-shadow: 0 0 3px rgba(150, 150, 150, 0.5);
}
@keyframes sleepFloat {
    0%   { opacity: 0.15; transform: translateY(0) scale(0.7); }
    40%  { opacity: 0.6;  transform: translateY(-4px) scale(0.95); }
    60%  { opacity: 0.6;  transform: translateY(-4px) scale(0.95); }
    100% { opacity: 0.15; transform: translateY(-9px) scale(0.7); }
}

/* 武将名标记（激活态碎片下方小标签） */
.hero-badge {
    font-size: 0.5rem;
    font-weight: bold;
    padding: 0 3px;
    border: 1px solid;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.95);
    margin-top: 2px;
    line-height: 1.3;
    letter-spacing: 1px;
    z-index: 3;
    position: relative;
}

/* 武将等级标识（激活态碎片右上角） */
.hero-level-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.45rem;
    font-weight: bold;
    color: #fff;
    padding: 1px 3px;
    border-radius: 6px;
    line-height: 1.2;
    z-index: 4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

@keyframes heroGlow {
    0%, 100% {
        text-shadow:
            0 0 6px rgba(212, 168, 83, 0.5),
            0 0 14px rgba(212, 168, 83, 0.2),
            0 1px 2px rgba(44, 44, 44, 0.3);
    }
    50% {
        text-shadow:
            0 0 12px rgba(212, 168, 83, 0.8),
            0 0 24px rgba(212, 168, 83, 0.4),
            0 1px 2px rgba(44, 44, 44, 0.3);
    }
}

/* 哪吒特殊样式 */
.unit-text.nezha {
    font-size: 1.3rem;
    color: var(--color-red);
    text-shadow:
        0 0 8px rgba(192, 60, 60, 0.4),
        0 1px 2px rgba(44, 44, 44, 0.3);
    animation: nezhaGlow 2.5s ease-in-out infinite;
}

@keyframes nezhaGlow {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* 敌人文字（黑色书法字） */
.unit-text.enemy {
    font-size: 1.05rem;
    color: var(--color-ink);
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.4),
        0 0 4px rgba(44, 44, 44, 0.2);
}

/* 入侵者（敌方派出攻击我方的兵）- 红色边框区分 */
.enemy-unit.invader-unit {
    filter: drop-shadow(0 0 4px rgba(192, 60, 60, 0.4));
}

.enemy-unit.invader-unit .unit-text.enemy {
    color: var(--color-red);
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.6),
        0 1px 2px rgba(192, 60, 60, 0.5);
}

/* 攻击者（我方派出攻击敌方的兵）- 蓝色光晕区分 */
.enemy-unit.attacker-unit {
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5));
}

.enemy-unit.attacker-unit .unit-text {
    font-size: 1.05rem;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.6),
        0 1px 2px rgba(44, 44, 44, 0.3);
}

/* 敌军血条 */
.enemy-hp-bar {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    overflow: hidden;
    z-index: 5;
}

.enemy-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 2px;
    transition: width 0.2s ease;
}

/* 等级小圆点 */
.level-dots {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    z-index: 3;
}

.level-dots .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 2px rgba(44, 44, 44, 0.3);
}

/* 呼吸动画 */
.unit-text.breathing {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* 武将呼吸 + 光晕 */
.unit-text.hero.breathing {
    animation: heroGlow 2s ease-in-out infinite, breathe 3s ease-in-out infinite;
}

/* 攻击抖动 */
.unit-text.attacking {
    animation: attackShake 0.3s ease;
}

@keyframes attackShake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-3px) scale(1.1); }
    75%      { transform: translateX(3px) scale(1.1); }
}

/* 攻击闪光特效 */
.cell.attack-flash {
    animation: attackFlash 0.3s ease;
}

@keyframes attackFlash {
    0%   { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0); }
    50%  { box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.8), 0 0 16px rgba(212, 168, 83, 0.5); }
    100% { box-shadow: inset 0 0 0 rgba(255, 255, 255, 0); }
}

/* 伤害数字弹出 */
.damage-popup {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 10;
    animation: damageFloat 0.5s ease-out forwards;
}

@keyframes damageFloat {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    50%  { opacity: 1; transform: translateX(-50%) translateY(-8px) scale(1.2); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(0.8); }
}

/* ---------- 敌人血条（心形） ---------- */
.enemy-hp {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1px;
    z-index: 4;
}

.enemy-hp .heart {
    font-size: 0.55rem;
    color: var(--color-red);
    line-height: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.enemy-hp .heart.empty {
    opacity: 0.25;
}

/* ---------- 哪吒血条（心形 x10） ---------- */
.nezha-hp {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1px;
    z-index: 4;
}

.nezha-hp .heart {
    font-size: 0.6rem;
    color: var(--color-red);
    line-height: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.nezha-hp .heart.empty {
    opacity: 0.2;
}

/* ---------- 对话气泡 ---------- */
.speech-bubble {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(44, 44, 44, 0.15);
    z-index: 5;
    animation: bubbleFloat 2s ease-in-out infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #fff;
    border-bottom: 0;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-2px); }
}

/* ============================================
   4. 底部征兵操作栏
   ============================================ */
.bottom-bar {
    background: linear-gradient(0deg, rgba(232, 224, 204, 0.85) 0%, rgba(232, 224, 204, 0.4) 100%);
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    padding: 8px 10px calc(10px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 征兵槽位行 */
.recruit-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 左侧"营"图标 */
.camp-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.camp-btn:active {
    transform: scale(0.95);
}

.camp-icon {
    width: 22px;
    height: 18px;
    position: relative;
}

/* 房屋图标（CSS 绘制） */
.camp-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 8px solid var(--color-red);
}

.camp-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 3px;
    width: 16px;
    height: 10px;
    background: var(--color-gold-light);
    border: 1px solid var(--color-gold-dark);
}

.camp-label {
    font-family: var(--font-title);
    font-size: 0.55rem;
    color: var(--color-ink);
    margin-top: 1px;
    line-height: 1;
}

/* 征兵槽位容器 */
.slots-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

/* 单个槽位 */
.recruit-slot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px dashed rgba(44, 44, 44, 0.18);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-fast);
}

.recruit-slot.filled {
    background: linear-gradient(180deg, #fff8e8 0%, #f0e0c0 100%);
    border: 1.5px solid var(--color-gold);
    box-shadow: 0 2px 4px rgba(44, 44, 44, 0.1);
    cursor: grab;
}

.recruit-slot.filled:active {
    cursor: grabbing;
}

.recruit-slot.filled .slot-text {
    font-family: var(--font-title);
    font-size: 1.6rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(44, 44, 44, 0.2);
    pointer-events: none;
}

/* 槽位文字颜色（沿用兵种配色） */
.slot-text.type-sword  { color: #c03c3c; }
.slot-text.type-spear  { color: #d4a853; }
.slot-text.type-beast  { color: #4ade80; }
.slot-text.type-magic  { color: #60a5fa; }
.slot-text.type-shovel { color: #4ade80; }
.slot-text.type-hero_fragment { color: #d4a853; }

/* 槽位拖拽中 */
.recruit-slot.dragging {
    opacity: 0.4;
}

/* 槽位弹跳动画 */
.recruit-slot.bounce {
    animation: slotBounce 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes slotBounce {
    0%   { transform: scale(0.3) rotate(-10deg); opacity: 0; }
    50%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* 道具按钮（右下角） */
.item-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(155, 142, 196, 0.15);
    border: 1.5px solid rgba(155, 142, 196, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.item-btn:active {
    transform: scale(0.95);
}

.item-icon {
    font-size: 1.1rem;
    color: var(--color-purple-dark);
    line-height: 1;
}

.item-label {
    font-family: var(--font-title);
    font-size: 0.55rem;
    color: var(--color-purple-dark);
    margin-top: 1px;
    line-height: 1;
}

/* 征兵按钮（底部中央） */
.recruit-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2px;
}

.btn-recruit {
    min-width: 130px;
    padding: 9px 24px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: #fff;
    font-family: var(--font-title);
    box-shadow:
        0 3px 10px rgba(192, 60, 60, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    border: none;
    cursor: pointer;
}

.btn-recruit:active {
    transform: scale(0.96);
}

.btn-recruit .recruit-label {
    font-size: 1.05rem;
    letter-spacing: 3px;
    line-height: 1.1;
}

.btn-recruit .recruit-cost {
    font-family: var(--font-body);
    font-size: 0.6rem;
    opacity: 0.9;
    letter-spacing: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn-recruit .recruit-cost::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
}

/* 征兵按钮脉冲动画 */
.btn-recruit::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-red);
    opacity: 0;
    animation: recruitPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes recruitPulse {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.1); }
}

/* 馒头不足时按钮禁用 */
.btn-recruit.disabled {
    background: linear-gradient(135deg, #999 0%, #777 100%);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-recruit.disabled::after {
    display: none;
}

/* ============================================
   5. 新手引导提示
   ============================================ */
.guide-tip {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 168, 83, 0.95);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.2);
    z-index: 20;
    white-space: nowrap;
    animation: guideFloat 2s ease-in-out infinite;
}

.guide-tip::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(212, 168, 83, 0.95);
    border-bottom: 0;
}

.guide-tip .close-btn {
    margin-left: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.8;
}

@keyframes guideFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-3px); }
}

/* ============================================
   6. 拖拽幽灵元素
   ============================================ */
.drag-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-family: var(--font-title);
    font-size: 1.8rem;
    line-height: 1;
    text-shadow:
        0 2px 6px rgba(44, 44, 44, 0.4),
        0 0 12px rgba(255, 255, 255, 0.6);
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
    transition: none;
}

/* ============================================
   7. 道具弹窗
   ============================================ */
.item-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(44, 44, 44, 0.4);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
}

.item-modal-mask.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.item-modal {
    width: 80%;
    max-width: 280px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-gold);
    box-shadow: var(--shadow-ink-heavy);
    padding: 14px;
    animation: fadeInUp 0.3s ease;
}

.item-modal-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--color-ink);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(44, 44, 44, 0.08);
}

.item-row .item-name {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-ink);
}

.item-row .item-count {
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: var(--color-gold-dark);
}

/* 道具分类标签 */
.item-section-label {
    font-family: var(--font-title);
    font-size: 0.7rem;
    color: var(--color-ink-light);
    letter-spacing: 2px;
    padding: 6px 8px 2px;
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
    margin-top: 4px;
}

.item-section-label:first-child {
    margin-top: 0;
}

/* 血量道具行 - 红色高亮 */
.item-row.hp-item {
    background: rgba(255, 240, 240, 0.7);
    border: 1px solid rgba(192, 80, 80, 0.2);
}

.item-row.hp-item .item-name {
    color: var(--color-red);
    font-weight: 500;
}

.item-row.hp-item .item-count {
    color: var(--color-red);
}

.item-modal-close {
    width: 100%;
    margin-top: 10px;
    padding: 7px;
    background: rgba(44, 44, 44, 0.08);
    border: 1px solid rgba(44, 44, 44, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-ink);
    font-family: var(--font-title);
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 2px;
}

.item-modal-close:active {
    background: rgba(44, 44, 44, 0.15);
}

/* 营弹窗提示文字 */
.camp-hint {
    font-size: 0.6rem;
    color: var(--color-ink-light);
    text-align: center;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* ========== 营弹窗 - 方格展示（整齐网格） ========== */
#campList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
}

.camp-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid rgba(44, 44, 44, 0.15);
    border-radius: var(--radius-sm);
    gap: 4px;
    position: relative;
    box-shadow: 0 1px 3px rgba(44, 44, 44, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    aspect-ratio: 1;
    min-height: 56px;
    padding: 4px;
}

.camp-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(44, 44, 44, 0.12);
    border-color: rgba(212, 168, 83, 0.4);
    z-index: 2;
}

/* 交替背景色，整齐不单调 */
.camp-cell:nth-child(4n+1) {
    background: linear-gradient(180deg, #fffefb 0%, #fff8e8 100%);
    border-color: rgba(212, 168, 83, 0.25);
}
.camp-cell:nth-child(4n+2) {
    background: linear-gradient(180deg, #fbfffb 0%, #e8f8e8 100%);
    border-color: rgba(74, 222, 128, 0.25);
}
.camp-cell:nth-child(4n+3) {
    background: linear-gradient(180deg, #fff8f8 0%, #f8e8e8 100%);
    border-color: rgba(192, 80, 80, 0.2);
}
.camp-cell:nth-child(4n) {
    background: linear-gradient(180deg, #f8f8ff 0%, #e8e8f8 100%);
    border-color: rgba(96, 165, 250, 0.25);
}

.camp-cell-char {
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: var(--color-ink);
    line-height: 1;
    font-weight: 500;
}

.camp-cell-count {
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: var(--color-gold-dark);
    font-weight: 600;
    line-height: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.camp-empty {
    text-align: center;
    padding: 20px 10px;
    font-size: 0.75rem;
    color: var(--color-ink-light);
    grid-column: 1 / -1;
}

/* ============================================
   8. Toast 提示
   ============================================ */
.toast {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 44, 44, 0.85);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================
   9. 合成金光特效
   ============================================ */
.merge-effect {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    border-radius: var(--radius-sm);
    animation: mergeBurst 0.6s ease-out forwards;
}

@keyframes mergeBurst {
    0% {
        background: radial-gradient(circle, rgba(255, 235, 150, 0.9) 0%, transparent 60%);
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        background: radial-gradient(circle, rgba(255, 235, 150, 0) 0%, transparent 60%);
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ============================================
   10. 响应式适配
   ============================================ */
@media screen and (max-width: 375px) {
    .battle-grid {
        gap: 2px;
        padding: 3px;
        max-width: 300px;
    }

    .unit-text {
        font-size: 1rem;
    }

    .unit-text.hero {
        font-size: 1.3rem;
    }

    .unit-text.nezha {
        font-size: 1.1rem;
    }

    .unit-text.enemy {
        font-size: 0.9rem;
    }

    .level-name {
        font-size: 1.3rem;
    }

    .recruit-slot.filled .slot-text {
        font-size: 1.4rem;
    }

    .btn-recruit {
        min-width: 110px;
        padding: 8px 18px;
    }

    .divider-center {
        width: 28px;
        height: 28px;
    }
}

@media screen and (min-width: 768px) {
    .battle-grid {
        gap: 3px;
        max-width: 380px;
    }

    .unit-text {
        font-size: 1.4rem;
    }

    .unit-text.hero {
        font-size: 1.8rem;
    }

    .unit-text.nezha {
        font-size: 1.6rem;
    }
}

/* ============================================
   入场动画
   ============================================ */
.cell {
    animation: fadeIn 0.4s ease both;
}

/* 使用CSS变量实现基于行列的延迟动画（JS渲染时注入 --row 和 --col） */
.cell {
    animation-delay: calc(var(--row, 0) * 0.04s + var(--col, 0) * 0.02s);
}

/* ============================================
   开场动画：哪吒字从门飞到主营
   ============================================ */
.intro-flyer {
    animation: introFloat 0.6s ease-in-out;
}

@keyframes introFloat {
    0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    20%  { transform: translate(-50%, -50%) scale(1.0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* 哪吒位置开场闪烁 */
.cell.intro-flash {
    animation: nezhaFlash 0.8s ease-in-out;
}

@keyframes nezhaFlash {
    0%, 100% { box-shadow: 0 0 8px rgba(212, 168, 83, 0.3), inset 0 0 4px rgba(255, 255, 255, 0.5); }
    30%      { box-shadow: 0 0 24px rgba(212, 168, 83, 0.8), inset 0 0 12px rgba(255, 235, 180, 0.8); background: linear-gradient(180deg, #fff8d8 0%, #f5e8a8 100%); }
    60%      { box-shadow: 0 0 16px rgba(212, 168, 83, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.6); }
}

/* 倒计时数字弹跳 */
#countdown {
    animation: countBounce 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes countBounce {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   开场动画：哪吒字从门沿路径走到位置
   ============================================ */
.intro-nezha {
    position: absolute;
    z-index: 101;
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--color-gold);
    text-shadow:
        0 0 10px rgba(212, 168, 83, 0.6),
        0 0 20px rgba(212, 168, 83, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: none;
    animation: nezhaBob 0.3s ease-in-out infinite alternate;
}

@keyframes nezhaBob {
    from { transform: translate(-50%, -50%) scale(1); }
    to   { transform: translate(-50%, -60%) scale(1.05); }
}

/* 哪吒到达后的落定放大闪烁 */
.intro-nezha.arrived {
    animation: nezhaArriveFlash 0.5s ease-out forwards;
}

@keyframes nezhaArriveFlash {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    30%  { transform: translate(-50%, -50%) scale(1.6); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* ============================================
   游戏结束弹窗
   ============================================ */
.game-over-overlay {
    position: absolute;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: overlayFadeIn 0.4s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.game-over-card {
    background: linear-gradient(180deg, #fffdf5 0%, #f5edd8 100%);
    border: 2px solid var(--color-gold);
    border-radius: 16px;
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(232, 224, 204, 0.4);
    animation: cardPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 280px;
    width: 80%;
}

@keyframes cardPopIn {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.game-over-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 8px;
}

.game-over-icon.win {
    animation: winBounce 0.6s ease infinite alternate;
}

.game-over-icon.lose {
    animation: loseShake 0.5s ease;
}

@keyframes winBounce {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes loseShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

.game-over-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 6px;
}

.game-over-title.win  { color: var(--color-gold); }
.game-over-title.lose { color: var(--color-red); }

.game-over-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-ink-light);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.game-over-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 18px;
    padding: 10px 0;
    border-top: 1px dashed rgba(44, 44, 44, 0.12);
    border-bottom: 1px dashed rgba(44, 44, 44, 0.12);
}

.game-over-stat {
    text-align: center;
}

.game-over-stat .stat-value {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--color-ink);
    line-height: 1;
}

.game-over-stat .stat-label {
    font-size: 0.6rem;
    color: var(--color-ink-light);
    margin-top: 2px;
}

.game-over-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-game-over {
    padding: 8px 20px;
    font-family: var(--font-title);
    font-size: 0.85rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    letter-spacing: 2px;
    transition: all var(--transition-fast);
}

.btn-game-over:active {
    transform: scale(0.95);
}

.btn-restart {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(192, 60, 60, 0.3);
}

.btn-lobby {
    background: rgba(44, 44, 44, 0.08);
    color: var(--color-ink);
    border: 1px solid rgba(44, 44, 44, 0.15);
}
