* {
    user-select: none !important;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    --app-zoom: 0.75;
}


#video-bg {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -1; /* 比内容低，但比canvas高或相同 */
}

#my_canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* 比视频更低 */
}

/* 确保内容在视频上方 */
.content, .container, .text, .pick-order, .textBy, .activity-banner {
    z-index: 1; /* 确保这些内容在视频上方 */
}



canvas {
    position: fixed;
    /* 使用 fixed 定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* 将 z-index 设置为负值，确保 canvas 在其他元素后面 */
}

.text {
    color: #fff;
    letter-spacing: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    /* 和按钮的字体大小一致 */
    line-height: 40px;
    /* 设置行高，使文本在按钮高度中心对齐 */
    padding: 0 10px;
    /* 添加一些横向内边距，使文本不紧贴边缘 */
    border-radius: 5px;
    /* 圆角边框与按钮保持一致 */
    text-align: center;
    /* 居中对齐 */
    background-color: rgba(0, 0, 0, 0.5);
    /* 添加一个半透明的背景以提高可读性 */
}


.pick-order {
    color: #ebfceb;
    letter-spacing: 2px;
    position: absolute;
    left: 50%;
    top: 2%;
    /* 修改为 50% 以使元素在垂直方向上居中 */
    transform: translate(-50%, -50%);
    /* 确保水平和垂直居中 */
    display: none;
    /* 根据需要动态修改 */
    font-size: 30px;
    /* 默认字体大小 */
    text-align: center;
    /* 文本水平居中 */
    padding: 10px 20px;
    /* 添加内边距，根据需要调整 */
    border-radius: 8px;


    height: 4vh;
    /* 设置高度为视口高度的4% */
    line-height: 4vh;
    /* 设置行高与高度相同，以确保文本垂直居中 */
}

.po-highlight {
    font-size: 50px;
    /* 高亮显示时的字体大小 */
    color: #ff0505;
    /* 高亮颜色 */
}

.textBy {
    color: #fff;
    letter-spacing: 2px;
    position: absolute;
    left: 90%;
    width: 500px;
    top: 2%;
    transform: translate(-50%, -50%);
}

.client-version {
    color: rgba(255, 241, 106, 0.95);
    font-size: 0.92em;
    font-weight: 800;
    letter-spacing: 0;
}

.activity-banner {
    display: none;
}

body {


    font-family: Arial, sans-serif;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100vw / var(--app-zoom));
    height: calc(100vh / var(--app-zoom)) !important;
    margin: 0;
    overflow: hidden !important;
    background: #000 !important;
    transform: scale(var(--app-zoom));
    transform-origin: top left;
}

html {
    background: #000;
    overflow: hidden;
}

.containerTitle {
    display: flex;
    /* 使用 Flexbox 布局 */
    justify-content: center;
    /* 使 .box 居中 */
    align-items: center;
    /* 垂直居中对齐 */
}



/* 霓虹灯文字 */
.box {
    width: 100%;
    /* 投影效果 */
    -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(0, 0, 0, 0.2));

    margin-right: 20px;
    /* 给 .box 元素添加右边距，以给两个元素之间留出空间 */
    margin-bottom: 100px;
}

h1 {
    color: #fff;
    font-size: 96px;
    /* 字间距 */
    letter-spacing: 15px;
    /* 转大写 */
    text-transform: uppercase;
    text-align: center;
    line-height: 76px;
    outline: none;
    /* 自定义属性 --c,可通过 var 函数对其调用 */
    --c: lightseagreen;
    /* 调用自定义属性--c，设置文字阴影（发光效果） */
    text-shadow: 0 0 10px var(--c),
        0 0 20px var(--c),
        0 0 40px var(--c),
        0 0 80px var(--c),
        0 0 160px var(--c);
    /* 执行动画：动画名 时长 线性的 无限次播放 */
    animation: boxanimate 5s linear infinite;
}

h2 {
    margin-top: 100px;
    color: #fff;
    font-size: 60px;
    /* 字间距 */
    letter-spacing: 15px;
    /* 转大写 */
    text-transform: uppercase;
    text-align: center;
    line-height: 76px;
    outline: none;
    /* 自定义属性 --c,可通过 var 函数对其调用 */
    --c: lightseagreen;
    /* 调用自定义属性--c，设置文字阴影（发光效果） */
    text-shadow: 0 0 10px var(--c),
        0 0 20px var(--c),
        0 0 40px var(--c),
        0 0 80px var(--c),
        0 0 160px var(--c);
    /* 执行动画：动画名 时长 线性的 无限次播放 */
    animation: boxanimate 5s linear infinite;
}


/* 定义动画 */
@keyframes boxanimate {
    to {
        /* 色相旋转过滤镜（设置度数可改变颜色） */
        filter: hue-rotate(360deg);
    }
}


.container {
    width: 98%;
    /* 宽度为 98% */
    height: 96%;
    /* 高度为 90% */
    display: flex;
    /* 使用 flex 布局 */
    flex-direction: column;
    /* 垂直方向布局 */
    display: none;
    /* 初始隐藏容器 */
    margin-top: 2%;
    /* 上外边距为 10% */
    margin-bottom: 0;
    /* 确保没有底部外边距 */
}

.top-areas {
    display: flex;
    flex-wrap: wrap;
    flex: 1.2;
    height: 950px;
    margin-bottom: 2px;
}

.top-block {
    flex: 1;
    margin: 0px;
    padding: 5px;
    position: relative;
    overflow: visible;
    background: rgba(255, 255, 255, 0.1);
    color: #e0f7fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 5px solid rgba(255, 255, 255, 0.3);
}

/* 高亮边框效果，改变边框颜色并增加发光效果 */
.highlight {
    border-color: rgb(219, 226, 14);
    /* 高亮边框的颜色 */
    box-shadow: 0 0 10px rgba(219, 226, 14, 0.8), 0 0 20px rgba(219, 226, 14, 0.6);
    /* 发光效果 */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* 添加颜色和阴影的过渡效果 */
}


.middle-area {
    border: 1px solid #4db6ac;
    position: relative;
    padding: 10px;
    flex: 0.9;
    border-radius: 4px;
}

.middle-area {
    background-color: rgba(0, 0, 0, 0.5);
    height: 400px;
}

.area-count-badge {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 25;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid rgba(118, 255, 229, 0.34);
    border-radius: 5px;
    background: rgba(3, 20, 19, 0.78);
    color: #ecfff8;
    line-height: 1;
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.28),
        inset 0 0 14px rgba(35, 255, 183, 0.06);
    pointer-events: none;
}

.area-count-label,
.area-count-unit {
    color: rgba(216, 255, 246, 0.76);
    font-size: 13px;
    font-weight: 800;
}

.area-count-value {
    color: #fff04a;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}


.bottom-area {
    border: 1px solid #4db6ac;
    position: relative;
    padding: 10px;
    flex: 0.8;
    background-color: rgba(0, 0, 0, 0.5);
    height: 500px;
    margin-top: -1px
}


.player {
    width: 50px;
    min-height: 100px;
    height: auto;
    padding: 5px;
    padding-top: 50px;
    border: 2px solid #00695c;
    background: linear-gradient(180deg, #b9f7ff 0%, #769597 140%);
    position: absolute;
    box-sizing: border-box;
    cursor: move;
    color: #004d40;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* 添加字体大小 */
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    margin-top: 8px;
    margin-left: 8px !important;
}

.player>#text:first-child {
    font-size: 16px;
}

.player:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.player-field {
    margin-bottom: 2px;
}

.player-fields {
    position: relative;
    z-index: 6;
}

.player-value,
.player-rank-medal {
    color: #155bd4;
    font-size: 13px;
    font-weight: 700;
    text-shadow: none;
}

.player-rank-medal {
    font-size: 15px;
}

.dota-stats-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 7px auto 0;
    padding: 7px;
    border: 1px solid rgba(0, 87, 79, 0.42);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)),
        rgba(0, 78, 70, 0.14);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.34),
        0 4px 9px rgba(0, 51, 45, 0.12);
    box-sizing: border-box;
}

.dota-stat-item {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 42px;
    padding: 6px 4px;
    border: 1px solid rgba(0, 88, 80, 0.18);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07)),
        rgba(0, 73, 65, 0.09);
    overflow: hidden;
}

.dota-stat-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3px 4px;
    border-radius: 5px;
    background: rgba(0, 112, 101, 0.76);
    color: #f3fffb;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.dota-stat-value {
    display: block;
    min-width: 0;
    width: 100%;
    color: #155bd4;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.14;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.dota-stat-winrate .dota-stat-label {
    background: rgba(14, 116, 144, 0.82);
}

.dota-stat-champion .dota-stat-label {
    background: rgba(180, 83, 9, 0.86);
}

.dota-stat-position .dota-stat-label {
    background: rgba(37, 99, 235, 0.82);
}

.dota-stat-ladder .dota-stat-label {
    background: rgba(126, 34, 206, 0.82);
}

.dota-trophy {
    margin-left: 2px;
}

.player-nickname {
    margin-bottom: 4px;
    color: #003c35;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.compact-nickname {
    display: none;
}

.ready-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 20;
    padding: 3px 6px;
    border-radius: 4px;
    background: #00a86b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(0, 168, 107, 0.8);
    pointer-events: none;
}

.player-ready {
    border-color: #00d084;
    box-shadow: 0 0 0 1px rgba(0, 208, 132, 0.65), 0 4px 12px rgba(0, 0, 0, 0.24);
}


/* 添加硬件加速 */
.player {
    transform: translateZ(0);
}


/* 方式1：隐藏且保留布局（不可交互） */
.hidden-visibility {
    visibility: hidden;
}

/* 方式2：隐藏且不保留布局（推荐用于需要腾出空间的场景） */
.hidden-offscreen {
    position: absolute;
    left: -9999px;
}



@keyframes animateDS {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 300% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* 头像CSS */
.avatar {
    width: 40px;
    /* 头像宽度 */
    height: 40px;
    /* 头像高度 */
    position: absolute;
    /* 绝对定位 */
    top: 2px;
    /* 离顶部的距离 */
    left: 2px;
    /* 离右边的距离 */
    border-radius: 5px;
    /* 使头像呈圆形 */
    border: 2px solid white;
    /* 可以为头像添加边框 */
    z-index: 8;

}

/* Roll点徽章：显示在头像右下角 */
.roll-badge {
    position: absolute;
    top: 22px;
    left: 44px;
    z-index: 12;
    padding: 2px 7px;
    border-radius: 12px;
    background: #d32f2f;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.player-compact .roll-badge {
    display: none;
}

/*audioIcon */
.audioIcon {
    width: 40px;
    /* 头像宽度 */
    height: 40px;
    /* 头像高度 */
    position: absolute;
    /* 绝对定位 */
    top: 5px;
    /* 离顶部的距离 */
    right: 5px;
    /* 离右边的距离 */
    border-radius: 5px;
    /* 使头像呈圆形 */

    pointer-events: auto;
    z-index: 8;

    /* 图像背景及样式 */
    background-image: url('icon/ui/audio.png');
    /* 设置背景图 */
    background-size: cover;
    /* 确保背景图像覆盖整个元素 */
    background-position: center;
    /* 背景图居中 */

    /* 设置背景透明 */
    background-color: transparent;
    /* 透明背景 */
    padding: 0;
    border: none;
}

.audioCount {
    position: absolute;
    /* 绝对定位 */
    top: 20%;
    /* 垂直居中 */
    left: 50%;
    /* 水平居中 */
    transform: translate(-50%, -50%);
    /* 通过平移使其完全居中 */

    color: rgb(242, 255, 0);
    /* 文字颜色 */
    font-weight: bold;
    /* 粗体 */
    font-size: 20px;
    /* 字体大小 */

    text-shadow:
        -0.5px -0.5px 0 #000000,
        /* 上左 */
        0.5px -0.5px 0 #000000,
        /* 上右 */
        -0.5px 0.5px 0 #000000,
        /* 下左 */
        0.5px 0.5px 0 #000000;
    /* 下右 */


}

.player-compact {
    min-height: 68px;
    padding: 38px 4px 5px;
    border-width: 1px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.12;
    overflow: hidden;
}

.player-compact .player-fields,
.player-compact .rounded-corners {
    display: none;
}

.player-compact .avatar {
    width: 30px;
    height: 30px;
    top: 4px;
    left: 4px;
    border-width: 1px;
}

.player-compact .audioIcon {
    width: 28px;
    height: 28px;
    top: 5px;
    right: 4px;
}

.player-compact .audioCount {
    font-size: 15px;
}

.player-compact .compact-nickname {
    display: block;
    width: 100%;
    color: #003c35;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-compact .ready-badge {
    top: -6px;
    right: -5px;
    padding: 2px 5px;
    font-size: 11px;
}

/*MvpCSS */
.mvp {
    width: 40px;
    /* 头像宽度 */
    height: 40px;
    /* 头像高度 */
    position: absolute;
    /* 绝对定位 */
    top: -30px;
    /* 离顶部的距离 */
    left: 5px;
    /* 离右边的距离 */
    border-radius: 5px;
    /* 使头像呈圆形 */
    pointer-events: none;
    /* 禁用鼠标事件 */
}

.smvp {
    width: 60px;
    /* 头像宽度 */
    height: 60px;
    /* 头像高度 */
    position: absolute;
    /* 绝对定位 */
    top: -40px;
    /* 离顶部的距离 */
    left: -5px;
    /* 离右边的距离 */
    border-radius: 5px;
    /* 使头像呈圆形 */
    pointer-events: none;
    /* 禁用鼠标事件 */
}



/*宣言 */
.rounded-corners {
    width: 90%;
    /* 宽度与基础元素相同 */
    height: 20x;
    /* 设定高度 */
    background-color: #2196f3;
    /* 蓝色背景 */
    border-radius: 10px 10px 0 0;
    /* 左右上角圆角 */
    position: absolute;
    /* 绝对定位，使其相对于基础元素定位 */

    left: 50%;
    /* 水平居中 */
    transform: translateX(-50%);
    /* 使自身水平居中 */

    bottom: 100%;
    /* 底部紧贴基础元素的顶部 */

    color: rgb(225, 255, 0);
    /* 字体颜色 */
    font-size: 15px;
    /* 设置字体大小 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    /* 字体描边效果 */

    display: flex;
    /* 使用 flexbox 布局 */
    justify-content: center;
    /* 水平居中对齐 */
    align-items: center;
    /* 垂直居中对齐 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 添加阴影效果 */
}



#loginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loginForm input {
    margin: 5px;
    padding: 10px;
    width: 200px;
    border: 1px solid #004d40;
    border-radius: 5px;
}


#winAndLoseForm {
    /* display: flex; */
    flex-direction: column;
    /* 先竖直排列输入框 */
    padding: 0px;
    background-color: rgba(255, 255, 255, 0.2);
    /* 背景颜色 */
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* 阴影 */
    margin-bottom: 2px;
}

#winAndLoseForm .button-container {
    display: flex;
    /* 使用 Flexbox 布局 */
    justify-content: space-between;
    /* 水平分散对齐 */
    margin-top: 0px;
    /* 上边距以分开输入框和按钮 */
}


/* 每个按钮的样式 */
.win-button {
    padding: 20px 15px;
    /* 调整按钮的内边距以提高可点击性 */
    border-radius: 4px;
    /* 圆角 */
    border: none;
    /* 去掉默认边框 */
    background-color: #b93739;
    /* 按钮的背景颜色 */
    color: white;
    /* 按钮的文字颜色 */
    cursor: pointer;
    /* 鼠标光标形状 */
    margin: 0 5px;
    /* 为每个按钮添加水平间距 */
}

/* 每个按钮的样式 */
.dwin-button {
    padding: 20px 15px;
    /* 调整按钮的内边距以提高可点击性 */
    border-radius: 4px;
    /* 圆角 */
    border: none;
    /* 去掉默认边框 */
    background-color: #229677;
    /* 按钮的背景颜色 */
    color: white;
    /* 按钮的文字颜色 */
    cursor: pointer;
    /* 鼠标光标形状 */
    margin: 0 5px;
    /* 为每个按钮添加水平间距 */
}


/* 添加悬停效果 */
.win-button:hover {
    background-color: #45a049;
    /* 悬停时改变背景颜色 */
}

/* 每个按钮的样式 */
.lose-button {
    padding: 20px 15px;
    /* 调整按钮的内边距以提高可点击性 */
    border-radius: 4px;
    /* 圆角 */
    border: none;
    /* 去掉默认边框 */
    background-color: #543ec0;
    /* 按钮的背景颜色 */
    color: white;
    /* 按钮的文字颜色 */
    cursor: pointer;
    /* 鼠标光标形状 */
    margin: 0 5px;
    /* 为每个按钮添加水平间距 */
}

/* 添加悬停效果 */
.lose-button:hover {
    background-color: #45a049;
    /* 悬停时改变背景颜色 */
}



/* 对话框样式 */
.modal {
    display: none;
    /* 默认隐藏对话框 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* 如果需要，可以滚动 */
    background-color: rgba(0, 0, 0, 0.4);
    /* 黑色背景，带透明度 */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 在顶部留出一些空间 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* 你可以设置合适的宽度 */
    border-radius: 10px;
    /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* 阴影效果 */
    text-align: center;
    /* 居中内容 */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#confirmButton,
#cancelButton {
    padding: 10px 15px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#confirmButton {
    background-color: #4caf50;
    /* 确认按钮样式 */
    color: white;
}

#confirmButton:hover {
    background-color: #45a049;
    /* 悬停样式 */
}

#cancelButton {
    background-color: #f44336;
    /* 取消按钮样式 */
    color: white;
}

#cancelButton:hover {
    background-color: #d32f2f;
    /* 悬停样式 */
}




#addPlayerForm {
    width: 100%;
}

.admin-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 6px;
}

.admin-panel-section {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 260px;
    max-width: 100%;
    padding: 6px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(77, 182, 172, 0.55);
    border-radius: 5px;
}

.admin-settings-panel {
    flex: 0 1 530px;
}

.admin-add-player-panel {
    flex: 0 1 360px;
}

.admin-data-panel {
    flex: 0 1 620px;
}

.admin-pick-panel {
    flex: 0 1 700px;
}

.admin-external-panel {
    flex: 0 1 520px;
}

.admin-section-title {
    color: #e0f7fa;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.admin-control-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-panel button {
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.1;
}

.admin-action-stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-action-label {
    min-width: auto;
    color: #b2dfdb;
    font-size: 12px;
    white-space: nowrap;
}

.admin-debug-group {
    opacity: 0.78;
}

#addPlayerForm input {
    margin: 0;
    height: 31px;
    padding: 6px 8px;
    width: 140px;
    border: 1px solid #004d40;
    border-radius: 5px;
    box-sizing: border-box;
}

.admin-panel label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e0f7fa;
    font-size: 12px;
}

.admin-panel-section input {
    width: 140px;
}

#topAreaNum,
#topAlignCount,
#middleAlignCount,
#teamNum {
    width: 68px;
}

#pickOrder {
    width: 170px;
}

.field-settings-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.field-settings-title {
    color: #e0f7fa;
    font-size: 12px;
    white-space: nowrap;
}

.desc-settings-panel {
    align-items: flex-start;
    flex-basis: 360px;
}

#descTextInput {
    width: min(360px, 100%);
    min-height: 72px;
    resize: vertical;
    padding: 7px 9px;
    border: 1px solid rgba(224, 247, 250, 0.22);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    color: #f3fff8;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.35;
}

#descTextInput:focus {
    outline: 1px solid rgba(128, 255, 219, 0.55);
}

.card-data-view-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card-data-view-button {
    min-width: 54px;
    padding: 7px 9px;
    border: 1px solid rgba(224, 247, 250, 0.22);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f7fa;
}

.card-data-view-button.active {
    background: #00695c;
    color: white;
    box-shadow: 0 0 0 1px rgba(224, 247, 250, 0.5) inset;
}

@media (max-width: 860px) {
    .admin-panel-section {
        flex-basis: 100%;
    }
}

#saveSettingsButton {
    background-color: #00695c;
    color: white;
}

#createSnapshotButton {
    background-color: #455a64;
    color: white;
}

#restoreSnapshotButton {
    background-color: #b93739;
    color: white;
}

.player {
    will-change: transform;
    backface-visibility: hidden;
}


#loginMessage {
    color: #d32f2f;
}

.connection-status {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;
    max-width: 320px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    background: rgba(24, 36, 48, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.connection-status-ok {
    background: rgba(0, 105, 92, 0.92);
}

.connection-status-warn {
    background: rgba(194, 117, 0, 0.94);
}

.connection-status-error {
    background: rgba(183, 37, 39, 0.94);
}

.hidden {
    display: none !important;
}

body.board-mode .container {
    width: calc(100% - 18px);
    height: calc(100% - 102px);
    margin: 92px 9px 9px;
    gap: 8px;
    box-sizing: border-box;
}

body.board-mode .activity-banner {
    position: fixed;
    top: 8px;
    left: 14px;
    right: 430px;
    z-index: 39;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 7px 14px;
    border: 1px solid rgba(118, 255, 229, 0.35);
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(7, 32, 31, 0.92), rgba(0, 10, 10, 0.82));
    color: rgba(235, 255, 247, 0.92);
    box-shadow:
        inset 0 0 20px rgba(62, 255, 218, 0.06),
        0 6px 20px rgba(0, 0, 0, 0.34);
    box-sizing: border-box;
}

.activity-banner-title {
    color: #fff16a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
    text-shadow:
        0 0 8px rgba(255, 241, 106, 0.42),
        0 1px 2px rgba(0, 0, 0, 0.92);
    white-space: nowrap;
}

.activity-sponsor-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    min-width: 0;
    color: rgba(239, 255, 250, 0.92);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.activity-sponsor-label {
    color: rgba(118, 255, 229, 0.92);
}

body.board-mode .top-areas {
    flex: 0 0 31%;
    min-height: 220px;
    height: auto;
    gap: 5px;
    margin: 0;
}

body.board-mode .top-block {
    padding: 5px;
    border: 2px solid rgba(117, 240, 226, 0.32);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(12, 18, 18, 0.9), rgba(3, 8, 8, 0.78));
    color: rgba(225, 255, 249, 0.86);
    box-shadow:
        inset 0 0 20px rgba(61, 255, 214, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

body.board-mode .middle-area,
body.board-mode .bottom-area {
    box-sizing: border-box;
    border: 1px solid rgba(87, 224, 207, 0.42);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(3, 13, 13, 0.78), rgba(0, 0, 0, 0.78));
    box-shadow:
        inset 0 0 22px rgba(62, 255, 218, 0.04),
        0 3px 14px rgba(0, 0, 0, 0.36);
}

body.board-mode .middle-area {
    flex: 0 0 25%;
    min-height: 220px;
    height: auto;
    padding: 8px;
}

body.viewer-mode .top-areas {
    flex: 1 1 0;
    min-height: 0;
}

body.viewer-mode .middle-area {
    flex: 1 1 0;
    min-height: 0;
    padding: 10px;
}

body.viewer-mode .bottom-area {
    display: none;
}

body.viewer-mode .player {
    padding-top: 78px;
    border-width: 2px;
    border-radius: 13px;
    font-size: 18px;
    line-height: 1.36;
}

body.viewer-mode .player-nickname {
    font-size: 24px;
    line-height: 1.18;
}

body.viewer-mode .player-value,
body.viewer-mode .player-rank-medal {
    font-size: 19px;
}

body.viewer-mode .player-rank-medal {
    font-size: 22px;
}

body.viewer-mode .dota-stats-panel {
    width: 100%;
    gap: 8px;
    padding: 9px;
    border-radius: 10px;
}

body.viewer-mode .dota-stat-item {
    min-height: 58px;
    gap: 6px;
    padding: 8px 7px;
}

body.viewer-mode .dota-stat-label {
    font-size: 16px;
    padding: 4px 7px;
}

body.viewer-mode .dota-stat-value {
    font-size: 26px;
}

body.viewer-mode .avatar {
    width: 64px;
    height: 64px;
    top: 3px;
    left: 3px;
}

body.viewer-mode .roll-badge {
    top: 38px;
    left: 68px;
    padding: 3px 10px;
    font-size: 24px;
    border-radius: 18px;
    border-width: 2px;
}

body.viewer-mode .audioIcon {
    width: 64px;
    height: 64px;
    top: 5px;
    right: 5px;
}

body.viewer-mode .audioCount {
    font-size: 31px;
}

body.viewer-mode .ready-badge {
    font-size: 15px;
    padding: 5px 9px;
}

body.board-mode .bottom-area {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    margin-top: 0;
    padding: 7px;
    overflow: hidden;
}

body.board-mode .quick-actions-container {
    flex: 0 0 auto;
    gap: 12px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(7, 13, 13, 0.86);
    border: 1px solid rgba(118, 238, 225, 0.22);
    box-shadow: inset 0 0 18px rgba(118, 238, 225, 0.04);
    backdrop-filter: blur(6px);
}

body.board-mode .quick-actions-container .quick-action-button {
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 0;
    animation: none;
    background: linear-gradient(135deg, #246fe5 0%, #6a3ee8 100%);
    box-shadow:
        0 5px 16px rgba(56, 113, 255, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

body.board-mode .quick-actions-container .quick-action-button:hover {
    transform: translateY(-2px);
    letter-spacing: 0;
    box-shadow:
        0 8px 22px rgba(56, 113, 255, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

body.board-mode .quick-actions-container #bookmarkPageBtn {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    box-shadow:
        0 5px 16px rgba(245, 158, 11, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

body.board-mode .quick-actions-container #bookmarkPageBtn:hover {
    box-shadow:
        0 8px 22px rgba(239, 68, 68, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

body.board-mode .background-text {
    right: 12px;
    bottom: 8px;
    color: rgba(166, 255, 238, 0.16);
    font-size: 18px;
    text-shadow: none;
}

body.board-mode .player {
    border-color: rgba(20, 153, 145, 0.95);
    background: linear-gradient(180deg, #c0fbff 0%, #92d6d1 100%);
    color: #073d36;
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

body.board-mode .player-nickname,
body.board-mode .compact-nickname {
    color: #063b34;
}

body.board-mode .total-score {
    background: rgba(3, 20, 19, 0.84);
    color: #ecfff8;
    border: 1px solid rgba(131, 255, 209, 0.34);
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.34),
        inset 0 0 18px rgba(35, 255, 183, 0.05);
}

body.board-mode .textBy {
    position: fixed;
    left: auto;
    right: 14px;
    top: 8px;
    width: auto;
    transform: none;
    color: rgba(235, 255, 247, 0.9);
    font-size: 13px;
    line-height: 1.35;
    text-align: right;
    text-shadow: 0 0 7px rgba(0, 0, 0, 0.95);
    z-index: 40;
    padding: 4px 8px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.54);
    border: 1px solid rgba(116, 255, 222, 0.14);
    pointer-events: none;
}

body.board-mode .pick-order {
    top: 1.5%;
    color: #f1fff9;
    font-size: 24px;
    line-height: 1.2;
    height: auto;
    padding: 4px 10px;
    text-shadow: 0 0 8px rgba(72, 255, 192, 0.75);
}

/* 保存配置文件按钮 */
.pubg-DSJ {
    width: 150px;
    height: 50px;
    background-color: #f44336;
    text-align: center;
    line-height: 0px;
    /* 垂直居中，行高与按钮高度相同 */
    /* 红色 */
    color: rgb(94, 19, 207);

    border: none;
    /* 去除默认边框 */

    position: absolute;
    left: 10px;
    top: 10px;
    box-shadow: 0 0 15px #ff5252, 0 0 25px #ff0000;
    /* 双层红色光晕增强立体感 */
    transition: box-shadow 0.3s ease;
    /* 添加过渡动画 */
}

.pubg-DSJ:hover {
    box-shadow: 0 0 20px #ff5252, 0 0 30px #ff0000;
    /* 悬停时扩大光晕范围 */
}


#historyDataBtn {
    border: none;
    border-radius: 2px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 100px;
    border: 1px dashed red;
    text-align: left;

    position: absolute;
    right: 10px;
    bottom: 500px;

    background: linear-gradient(0deg, #006370 0%, #01ae27 140%);
    color: #fff;
    text-shadow: 0 0 6px #000;
    /* 绿色 */
    color: rgb(255 255 255);
}

#historyDataBtn:hover {
    background-color: #ffcdd2;
}

#imageContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* 半透明黑色背景 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* 设置较高的 z-index 确保在最前面 */
}

#displayedImage {
    max-width: 90%;
    /* 图片最大宽度 */
    max-height: 90%;
    /* 图片最大高度 */
}

.background-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 玩家羁绊队友特效 */
.animatingBT {
    animation: pulse 1.5s infinite;
    /* 将速度稍微放慢，更加优雅 */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.90);
        box-shadow: 0 0 5px rgba(255, 223, 0, 0.6),
            0 0 10px rgba(255, 223, 0, 0.4);
        /* 增加阴影的层次感 */
        border: 2px solid rgba(255, 223, 0, 0.7);
    }

    25% {
        transform: scale(0.95) rotate(2deg);
        /* 添加轻微旋转 */
        box-shadow: 0 0 10px rgba(255, 223, 0, 0.8),
            0 0 15px rgba(255, 223, 0, 0.5);
        /* 增加更加明显的阴影 */
    }

    50% {
        transform: scale(1) rotate(-2deg);
        /* 反方向旋转，形成波动效果 */
        box-shadow: 0 0 15px rgba(255, 223, 0, 1),
            0 0 20px rgba(255, 223, 0, 0.7);
        /* 更亮的阴影 */
    }

    75% {
        transform: scale(0.95) rotate(2deg);
        /* 重复旋转效果 */
        box-shadow: 0 0 10px rgba(255, 223, 0, 0.8),
            0 0 15px rgba(255, 223, 0, 0.5);
    }
}



/* 定义淡入和放大的动画 */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        /* 初始透明度为0 */
        transform: scale(0.5);
        /* 初始缩放为0.5 */
    }

    50% {
        opacity: 1;
        /* 中间时透明度为1 */
        transform: scale(1.1);
        /* 中间放大到1.1 */
    }

    100% {
        opacity: 1;
        /* 最终透明度为1 */
        transform: scale(1);
        /* 最终恢复原始大小 */
    }
}

/* 应用动画到总分显示元素 */
.total-score {
    position: absolute;
    /* 确保在顶部区域的相对位置 */
    margin-left: auto;
    margin-right: auto;

    /* 距离右侧的距离 */
    bottom: 0px;
    /* 距离底部的距离 */
    background: linear-gradient(90deg, #006370 0%, #02841f 140%);
    /* 背景颜色：深蓝色 */
    color: #f2dada;
    /* 字体颜色：白色 */
    padding: 5px 10px;
    text-shadow: 0 0 6px #000000;
    /* 内边距，增加一些空间 */
    border-radius: 8px;
    /* 边角圆形，更加圆润 */
    font-family: 'Roboto', sans-serif;
    /* 设置字体 */
    font-size: 10px;
    /* 字体大小 */
    z-index: 10;
    /* 确保总分显示在其他内容之上 */
    animation: fadeInScale 0.5s ease-out;
    /* 应用动画 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* 添加阴影效果 */
}

body.board-mode .total-score {
    left: 6px;
    right: 6px;
    bottom: 6px;
    display: grid;
    gap: 6px;
    width: auto;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.12;
    text-shadow: none;
    animation: fadeInScale 0.22s ease-out;
}

body.board-mode .team-summary-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
}

body.board-mode .team-summary-item {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 5px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.board-mode .team-summary-label {
    color: rgba(216, 255, 246, 0.72);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

body.board-mode .team-summary-value {
    color: #fff04a;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

body.board-mode .team-summary-cup {
    margin-left: 2px;
    font-size: 17px;
}

body.board-mode .team-summary-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

body.board-mode .team-summary-room {
    flex: 0 0 auto;
    color: #ffe94a;
    font-size: 19px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.board-mode .team-summary-battle {
    display: inline-flex;
    gap: 6px;
    min-width: 0;
    color: rgba(227, 255, 247, 0.72);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.board-mode .team-roll,
body.board-mode .team-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

body.board-mode .team-roll b,
body.board-mode .team-group b {
    color: #fff04a;
    font-size: 15px;
}

/* 应用动画到总分显示元素 */
.desc {
    width: 15%;
    /* 设置 desc 元素占据 25% 的宽度 */
    padding: 10px;
    /* 添加内边距 */
    /* background: linear-gradient(90deg, #006370 0%, #02841f 140%); */

    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    /* 添加阴影效果 */
    overflow: auto;
    /* 如果内容超出，可滚动 */
    margin-left: auto;
    /* 推送到右边 */
    border-radius: 8px;
    color: #fff200;
    /* 设置文本颜色为白色（或其他颜色） */
    white-space: pre-line;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
}




/* 应用动画到总分显示元素 */
.amTitle {
    position: absolute;
    /* 确保在顶部区域的相对位置 */
    right: 10px;
    /* 距离右侧的距离 */
    bottom: 45px;
    /* 距离底部的距离 */
    border-radius: 8px;
    /* 边角圆形，更加圆润 */
    animation: pulse 1.5s infinite;
}

button {
    border: none;
    border-radius: 5px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
}



/* 添加玩家按钮 */
#createPlayerButton {
    background-color: #84b228;
    /* 绿色 */
    color: rgb(0, 0, 0);
}

#createPlayerButton:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* 保存马匹库按钮 */
#saveButton {
    background-color: #4CAF50;
    /* 绿色 */
    color: white;
}

#saveButton:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* 读取马匹库按钮 */
#loadButton {
    background-color: #2196F3;
    /* 蓝色 */
    color: white;
}

#loadButton:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

/* 写入配置文件按钮 */
#loadJsonButton {
    background-color: #FF9800;
    /* 橙色 */
    color: white;
}

#loadJsonButton:hover {
    background-color: #F57C00;
    transform: translateY(-2px);
}

/* 保存配置文件按钮 */
#saveJsonButton {
    background-color: #f44336;
    /* 红色 */
    color: white;
}

#saveJsonButton:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* 保存配置文件按钮 */
#showHide {
    background-color: #822ec3;
    /* 红色 */
    color: white;
}


.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(880px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    /* 初始隐藏 */
    padding: 14px 16px;
    z-index: 1000;
}

.popup h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: 6px;
    text-transform: none;
    text-align: center;
    --c: #7cb342;
    text-shadow: 0 0 8px var(--c),
        0 0 18px var(--c),
        0 0 34px var(--c);
}

.popup-fields {
    display: grid;
    gap: 8px;
}

.popup-field-section {
    display: grid;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #d9e2e7;
    border-radius: 6px;
    background: #f7fafb;
}

.popup-field-section h3 {
    margin: 0;
    color: #00695c;
    font-size: 13px;
    line-height: 1.2;
}

.popup-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 6px 10px;
}

.popup-field {
    display: grid;
    gap: 3px;
    color: #263238;
    font-size: 12px;
    line-height: 1.2;
}

.popup input {
    margin: 0;
    width: 100%;
    height: 30px;
    padding: 4px 7px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 12px;
}

.sensitive-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: stretch;
    width: 100%;
}

.popup .sensitive-input-wrap input {
    border-right: 0;
    border-radius: 4px 0 0 4px;
}

.popup .sensitive-toggle {
    display: grid;
    place-items: center;
    width: 32px;
    height: 30px;
    min-width: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #b8c5cc;
    border-radius: 0 4px 4px 0;
    background: #eef5f7;
    color: #24514b;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.popup .sensitive-toggle:hover,
.popup .sensitive-toggle:focus-visible {
    background: #dceff0;
    color: #004d40;
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.popup button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    background-color: #45a049;
}

#cancelEditBtn {
    background-color: #607d8b;
}

#deletePlayerBtn {
    margin-right: auto;
    background-color: #c62828;
}

#deletePlayerBtn:hover {
    background-color: #b71c1c;
}

@media (max-width: 640px) {
    .popup-field-grid {
        grid-template-columns: 1fr;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* 初始隐藏 */
    z-index: 999;
}


.quick-actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quick-actions-container {
        gap: 15px;
        padding: 15px;
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .quick-actions-container {
        gap: 10px;
        padding: 10px;
        margin: 20px 0;
        flex-direction: column;
    }
}

