/* 主体：chessbox 风格（和前两个游戏的棋盘同宽、同色系） */
.kt-game {
    max-width: 400px;
    margin: 0 auto;
    background: #bbada0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.kt-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.kt-gold {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5f554c;
}

.kt-gold span {
    display: inline-block;
    min-width: 48px;
    padding: 1px 10px;
    border-radius: 12px;
    background: #5f554c;
    color: #ffd76a;
    font-size: 1.2rem;
    text-align: center;
}

.kt-btn-start {
    padding: 5px 14px;
    border: none;
    border-radius: 8px;
    background: #8f7a66;
    color: #f9f6f2;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.kt-btn-start:hover {
    background: #7f6a56;
}

.kt-btn-restart {
    padding: 5px 12px;
    border: 1px solid #8f7a66;
    border-radius: 8px;
    background: transparent;
    color: #5f554c;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.kt-btn-restart:hover {
    background: rgba(143, 122, 102, 0.15);
}

/* 怪物状态面板 */
.kt-monster {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    color: #5f554c;
}

.kt-monster-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;
}

.kt-shield-row {
    margin-top: 10px;
}

.kt-monster progress {
    width: 100%;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.kt-monster progress::-webkit-progress-bar {
    background-color: #e0dcd6;
    border-radius: 8px;
}

#hpBar::-webkit-progress-value {
    background: linear-gradient(90deg, #ff5f6d, #ffc371);
    border-radius: 8px;
}

#shieldBar::-webkit-progress-value {
    background: linear-gradient(90deg, #5b8def, #7cc6fe);
    border-radius: 8px;
}

/* 属性列表：左属性、右按钮 */
.kt-stats {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 4px 14px;
    color: #5f554c;
}

.kt-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ece4dc;
}

.kt-stat-row:last-child {
    border-bottom: none;
}

.kt-stat-left {
    font-weight: 600;
}

.kt-stat-left span {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    margin-left: 4px;
}

.kt-upgrade-btn {
    min-width: 92px;
    padding: 4px 12px;
    border: 1px solid #2e8f7b;
    border-radius: 8px;
    background: transparent;
    color: #2e8f7b;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.kt-upgrade-btn:hover {
    background: #2e8f7b;
    color: #fff;
}

@media (max-width: 480px) {
    .kt-game {
        padding: 12px;
    }

    .kt-upgrade-btn {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}
