body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* touch-action: none; */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

#root {
  margin: 0;
  padding: 0;
}

canvas, .ui-screen-content {
  background: #0e0e0e !important;
}

.ui-screen-content {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  color: #ffffff;
}

.ui-screen-content-box {
  text-align: center;
  margin-top: -30px;
}

.ui-title {
  font-size: 55px;
  font-weight: bold;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.ui-desc {
  font-size: 28px;
  font-weight: bold;
  opacity: .8;
}

.ui-sm {
  font-size: 18px;
  font-weight: bold;
  opacity: .6;
}

.ui-title span {
  font-size: 14px;
  background: #561dff;
  color: #0e0e0e;
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: bold;

}

.ui-title span b {
  color: #ffffff9f;
}

.fps {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-weight: bold;
  font-size: 14px;
  opacity: .5;
}

* {
  touch-action: none;
}

.ui-loader {
  display: flex;
  justify-content: center;
  margin-top: -20px;
  margin-bottom: 10px;
}

/* From Uiverse.io by elijahgummer */ 
.loader {
  width: 50px;
  height: calc(50px * 0.866);
  background: rgb(38, 187, 255);
  -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
          clip-path: polygon(50% 0, 100% 100%, 0 100%);
  --c: at 50% 66%, #000 60deg, #0000 0;
  -webkit-mask:
    conic-gradient(from 30deg var(--c)) right,
    conic-gradient(from 150deg var(--c)) bottom,
    conic-gradient(from -90deg var(--c)) left,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  -webkit-mask-repeat: no-repeat;
  animation: appear 1.5s infinite;
}
@keyframes appear {
  0% {
    -webkit-mask-size:
      0 0,
      0 0,
      0 0,
      auto;
  }
  13.33% {
    -webkit-mask-size:
      100% 100%,
      0 0,
      0 0,
      auto;
  }
  26.67% {
    -webkit-mask-size:
      100% 100%,
      100% 100%,
      0 0,
      auto;
  }
  40%,
  60% {
    -webkit-mask-size:
      100% 100%,
      100% 100%,
      100% 100%,
      auto;
  }
  73.33% {
    -webkit-mask-size:
      0 0,
      100% 100%,
      100% 100%,
      auto;
  }
  86.67% {
    -webkit-mask-size:
      0 0,
      0 0,
      100% 100%,
      auto;
  }
  100% {
    -webkit-mask-size:
      0 0,
      0 0,
      0 0,
      auto;
  }
}



.settings-gui-content-item-value .MuiCheckbox-root {
  color: rgb(38, 187, 255) !important;
  
}

.settings-gui-content-item-value .MuiCheckbox-root svg {
  width: 0.9em !important;
  height: 0.9em !important;
  fill: rgb(38, 187, 255) !important;
}

.settings-gui-content-item-value .MuiCheckbox-root {
  padding: 0 !important;
  border: 0 !important;
}

.settings-gui-content-item-value .MuiSlider-thumb {
  background-color: rgb(255, 255, 255) !important;
  width: 13px !important;
  height: 13px !important;
}

.settings-gui-content-item-value .MuiSlider-rail {
  background-color: rgb(87, 87, 87) !important;
}

.settings-gui-content-item-value .MuiSlider-track {
  background-color: rgb(38, 187, 255) !important;
  border-color: rgb(38, 187, 255) !important;
}









.gui {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
}

.gui::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
}

.gui-bottom {
    width: calc(100%);
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom));
}

.camera-button {
    border: 1px solid oklch(1 0 0 / 10%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 130px;
    height: 38px;
    background-color: #2b282873;
    border-radius: 30px;
    padding: 0 10px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffffd3;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
}

.camera-button:hover {
    border-color: transparent !important;
    background-color: rgb(38, 187, 255);
    color: #000000;
    font-weight: bold;

    transform: translateY(-10%) scale(1.02);
}

.camera-button:hover .icon{
    color: #000000;
}

.camera-button .value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 5px;
}

.camera-button .icon {
    font-size: 20px;
    color: #ffffffd3;
    transition: transform 0.3s ease;
}

.camera-button .icon.open {
    transform: rotate(180deg);
}

.camera-button .hero {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    overflow: hidden;
    margin-right: 4px;
}

.camera-button .hero img {
    width: 20px;
    height: 20px;
    border-radius: 100%;
}

.settings-button {
    border: 1px solid oklch(1 0 0 / 10%);

    width: 38px;
    height: 38px;
    background-color: #2b282873;
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-button:hover {
    border-color: transparent !important;
    background-color: rgb(38, 187, 255);

    transform: translateY(-10%) scale(1.02);
}

.settings-button .icon {
    font-size: 20px;
    color: #ffffffd3;
}

.settings-button:hover .icon {
    color: #000000;
}

.lists {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    color: #ffffffd3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #2b2828d0;
    border-radius: 10px;
    padding: 10px 10px;
    font-size: 14px;
    -webkit-backdrop-filter: blur(5px);	
    backdrop-filter: blur(5px);	
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
    pointer-events: none;
    min-width: 180px;

    border: 1px solid oklch(1 0 0 / 10%);
}

.lists.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.list {
    display: flex;
    align-items: center;
    height: 38px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 2px;
    background-color: rgb(0 0 0 / 17%);
    margin-bottom: 5px;
}

.list:last-child {
    margin-bottom: 0;
}

.list:hover {
    background-color: rgb(0 0 0 / 50%);
}

.list.active {
    background-color: rgb(0 0 0 / 50%);
    border-bottom: 2px solid rgb(38, 187, 255);
}

.list .name {
    margin-left: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.camera-button.isOpen {
    background-color: rgb(38, 187, 255);
    color: #000000;
    font-weight: bold;
}

.camera-button.isOpen {
    border-color: transparent !important;
}

.camera-button.isOpen .icon {
    color: #000000;
}

.settings-gui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.637);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.settings-gui-content {
    width: 350px;
    max-width: 90%;
    background-color: #1616166c;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    border: 1px solid oklch(1 0 0 / 10%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* 添加内容容器样式 */
.settings-gui-content-body {
    flex: 1 1;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.settings-gui-content-container::-webkit-scrollbar {
    width: 4px;  /* 更细的滚动条 */
}

.settings-gui-content-container::-webkit-scrollbar-track {
    background: transparent;  /* 透明轨道 */
}

.settings-gui-content-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);  /* 更淡的滚动条 */
    border-radius: 2px;  /* 圆角 */
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;  /* 平滑过渡 */
}

.settings-gui-content-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);  /* 悬停时稍微亮一点 */
}

/* 移除之前的滚动条样式 */
.settings-gui-content-body::-webkit-scrollbar,
.settings-gui-content-body::-webkit-scrollbar-track,
.settings-gui-content-body::-webkit-scrollbar-thumb,
.settings-gui-content-body::-webkit-scrollbar-thumb:hover {
    display: none;
}

.settings-gui-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid oklch(1 0 0 / 10%);
}

/* tab和button的容器 */
.settings-gui-tab-button-group {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-gui-tab-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-gui-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #282828;
    border-radius: 30px;
    width: 130px;
    padding: 0 10px;
    font-size: 12px;
    color: #ffffff9d;
    font-weight: bold;
    cursor: pointer;
}

.settings-gui-tab-item {
    flex: 1 1;
    text-align: center;
    padding: 6px 0;
}

.settings-gui-tab-item.active {
    color: #fff;
    position: relative;
}

.settings-gui-tab-item:hover {
    color: #fff;
}

.settings-gui-tab-item.active::after {
    content: "";
    display: block;
    width: 15px;
    height: 2px;
    background-color: rgb(38, 187, 255);
    position: absolute;
    left: 15px;
    bottom: 0;
}

.settings-gui-logo {
    grid-column: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ffffffd3;
    font-weight: bold;
    box-sizing: border-box;
}

.settings-gui-logo-version {
    font-size: 10px;
    background-color: #282828;
    border-radius: 30px;
    padding: 0 5px;
    margin-left: 5px;
    margin-top: 2px;
}

.settings-gui-button {
    background-color: rgb(38, 187, 255);
    border-radius: 30px;
    padding: 5px 10px;
    font-size: 12px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-gui-button:hover {
    opacity: 0.8;
    transform: translateY(-10%) scale(1.02);
}

.settings-gui-logo-icon {
    color: rgb(38, 187, 255);
    margin-right: 5px;
    font-size: 14px;
    margin-top: 3px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .settings-gui {
        padding: 16px;
        box-sizing: border-box;
    }

    .settings-gui-content {
        max-width: calc(100% - 32px);
        padding: 12px;
    }

    .settings-gui-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .settings-gui-logo {
        justify-content: center;
    }

    .settings-gui-tab-button-group {
        grid-column: 1;
        justify-content: center;
    }
}

/* 超小屏幕适配 */
@media screen and (max-width: 320px) {
    .settings-gui {
        padding: 12px;
    }

    .settings-gui-content {
        max-width: calc(100% - 24px);
        padding: 8px;
        max-height: calc(100vh - 24px);
    }

    .settings-gui-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    .settings-gui-tab {
        padding: 0 8px;
    }

    .settings-gui-logo {
        font-size: 12px;
    }

    .settings-gui-logo-version {
        font-size: 9px;
    }
}

.settings-gui-content-container {
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #1b1b1ba9;
    border-radius: 10px;
    padding: 16px;

}

.settings-gui-content-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.settings-gui-content-item:last-child {
    margin-bottom: 0;
}

.settings-gui-content-item-title {
    font-size: 14px;
    font-weight: bold;
    opacity: .8;
    margin-bottom: 2px;
    margin-right: 10px;
    flex: 1 1;
}

.settings-gui-content-item-value {
    margin-right: -1px;
    min-width: 50%;
    text-align: right;
}

.setting-divider {
    width: 100%;
    height: 1px;
    background-color: oklch(1 0 0 / 10%);
    margin: 10px 0;
}

.settings-gui-content-item-slider {
    flex-direction: column;
    align-items: flex-start;
}

.settings-gui-content-item-slider .settings-gui-content-item-title {

}

.settings-gui-content-item-slider .settings-gui-content-item-value {
    margin-right: 0;
    min-width: 100%;
    /* margin-bottom: -15px;
    margin-top: -10px; */
    margin-bottom: -10px;
}

.floor-selector-vertical {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.floor-selector-vertical:hover {
    opacity: 1;
}

.floor-button {
    width: 40px;
    height: 40px;
    background-color: #2b282873;
    border: 1px solid oklch(1 0 0 / 10%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffffd3;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floor-button:hover {
    border-color: transparent !important;
    background-color: rgb(38, 187, 255);
    color: #000000;
    transform: scale(1.05);
}

.floor-button.active {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000000;
    border-color: transparent;
    font-weight: bold;
}

.floor-button svg {
    width: 20px;
    height: 20px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .floor-selector-vertical {
        right: 12px;
        gap: 6px;
    }
    
    .floor-button {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
    
    .floor-button svg {
        width: 18px;
        height: 18px;
    }
}

/* 超小屏幕适配 */
@media screen and (max-width: 480px) {
    .floor-selector-vertical {
        right: 8px;
        gap: 4px;
    }
    
    .floor-button {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
    
    .floor-button svg {
        width: 16px;
        height: 16px;
    }
}
.player-lists {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    width: 300px;
    background-color: #1616166c;
    border-radius: 8px;
    padding: 16px;
    color: #ffffffd3;
    font-family: Arial, sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid oklch(1 0 0 / 10%);
    max-height: calc(100vh - 170px);
    display: flex;
    flex-direction: column;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: auto; /* 重置触摸行为 */
}

.player-lists.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px);
    pointer-events: none;
}

.player-lists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid oklch(1 0 0 / 10%);
    margin-bottom: 10px;
}

.player-lists-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #ffffffd3;
}

.player-count {
    font-size: 10px;
    background-color: #63626294;
    border-radius: 30px;
    padding: 4px 10px;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    font-weight: bold;
    opacity: .7;
}

.player-lists-content {
    position: relative;
    overflow: hidden !important; /* 完全隐藏系统滚动 */
    flex-grow: 1;
    margin-right: -4px;
    padding-right: 4px;
    touch-action: none !important; /* 禁用系统触摸，使用自定义滚动 */
}

.player-lists-content::-webkit-scrollbar {
    width: 4px;
}

.player-lists-content::-webkit-scrollbar-track {
    background: transparent;
}

.player-lists-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.player-lists-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Firefox 滚动条样式 */
.player-lists-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.player-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 0;
    background-color: rgb(0 0 0 / 17%);
    transition: all 0.2s ease;
    cursor: pointer;
}

.player-item:hover {
    background-color: rgb(0 0 0 / 50%);
}

.player-item.current-camera {
    background-color: rgba(38, 187, 255, 0.1);
    position: relative;
}

.player-item.current-camera::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 4px;
    border: 1px solid rgba(38, 187, 255, 0.2);
    border-bottom: none;
    pointer-events: none;
}

.player-item.current-camera:hover {
    background-color: rgba(38, 187, 255, 0.2);
}

.player-avatar {
    position: relative;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.hero-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid oklch(1 0 0 / 10%);
    background-color: var(--team-color);
    padding: 1px;
}

.team-id {
    position: absolute;
    right: -2px;
    bottom: -2px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    min-width: 14px;
    height: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    white-space: nowrap;
}

.team-id.teammate-badge {
    background: rgb(38, 187, 255);
    color: #000;
    font-weight: bold;
}

.player-info {
    flex-grow: 1;
    min-width: 0;
}

.player-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.hero-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    font-weight: normal;
}



.player-name {
    font-size: 12px;
    color: #ffffffd3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

.player-equipment {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
}

.equipment-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
}

.equipment-icon-container {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 2px;
}

.equipment-icon-container img {
    width: 14px;
    height: 14px;
}

.equipment-item img {
    width: 14px;
    height: 14px;
    margin-right: 2px;
}

.equipment-item span {
    font-size: 10px;
    font-weight: bold;
}

.weapon-container {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.weapon {
    display: flex;
    align-items: center;
}

.weapon-icon {
    width: 32px;
    height: 12px;
    object-fit: contain;
    opacity: 0.8;
}

/* 血量条样式 */
.health-bar {
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgb(0 0 0 / 25%);
}

.health-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}



/* AI玩家样式 */
.player-item[data-type="2"] {
    opacity: 0.7;
}

/* BOSS玩家样式 */
.player-item[data-type="3"] {
    background-color: rgba(255, 0, 0, 0.1);
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: rgba(255, 255, 255, 0.3);
    background: rgb(0 0 0 / 17%);
    border-radius: 6px;
    -webkit-user-select: none;
            user-select: none;
}

.empty-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
}

/* 设置按钮样式 */
.player-list-settings-button {
    border: 1px solid oklch(1 0 0 / 10%);
    width: 38px;
    height: 38px;
    background-color: #2b282873;
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 20px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-list-settings-button:hover {
    border-color: transparent !important;
    background-color: rgb(38, 187, 255);
    transform: translateY(-10%) scale(1.02);
}

.player-list-settings-button .icon {
    font-size: 20px;
    color: #ffffffd3;
}

.player-list-settings-button:hover .icon {
    color: #000000;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .player-lists {
        width: calc(100% - 80px);
        left: 50%;
        transform: translateY(-50%) translateX(-50%);
        max-height: calc(100vh - 270px);
        touch-action: auto; /* 移动端重置触摸行为 */
    }
    
    .player-lists-content {
        overflow: hidden !important; /* 移动端也禁用系统滚动 */
        touch-action: none !important; /* 完全使用自定义滚动 */
        margin-right: 0; /* 移动端不需要边距调整 */
        padding-right: 0;
    }
    
    /* 移动端滚动条样式 */
    .player-lists-content::-webkit-scrollbar {
        width: 2px;
    }
    
    .player-lists-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
}
.pwd {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.445);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pwd-container {
    background: #1717176c;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    
    box-sizing: border-box;
    border: 1px solid oklch(1 0 0/10%);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-sizing: border-box;
}

.pwd-header {
    margin-bottom: 32px;
}

.pwd-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwd-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: -5px;
    text-align: center;
}

.pwd-h1 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pwd-icon {
    font-size: 50px !important;
}

.pwd-content {
    width: 100%;
}

.pwd-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.pwd-input-box {
    /* 电脑屏幕默认样式 */
    width: 3rem;
    height: 3rem;
    background: #2626267e;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 24px;
    color: #fff;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: bold;
}

/* 手机屏幕样式 */
@media screen and (max-width: 768px) {
    .pwd-input-box {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 18px;
    }
}

/* 更小的屏幕样式 */
/* @media screen and (max-width: 375px) {
    .pwd-input-box {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 16px;
    }
} */


.pwd-input-box:focus {
    outline: none;
    border-color: rgb(38, 187, 255);
    background: #262626;
}

.pwd-input-box.invalid {
    border-color: #ff4d4d;
    animation: shake 0.3s;
}

.pwd-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pwd-confirm-btn {
    width: 100%;
    padding: 14px;
    background: #fafafa;
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    pointer-events: none;
}



.pwd-confirm-btn.active {
    opacity: 1;
    pointer-events: auto;
    background: rgb(38, 187, 255);
}

.pwd-confirm-btn.active:hover {
    background: rgb(58, 197, 255);

    transition: all 0.2s ease;
    transform: translateY(-5px) scale(1.02);
}

.pwd-confirm-btn.active:active {
    transform: scale(0.98);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.pwd {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pwd.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pwd-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffffa8;
    font-size: 14px;
    text-align: center;
}

.pwd-received-data {
    margin-top: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}
.ping-stats {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    /* gap: 12px; */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 12px;
    color: #fff;
    background: #2b282873;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    border: 1px solid oklch(1 0 0 / 10%);

    box-sizing: border-box;
}

.ping-stats:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateX(-50%) scale(1.02);
}

.ping-item {
    display: flex;
    align-items: center;
    /* gap: 6px; */
    position: relative;
    margin-right: 6px;
    
}

.ping-item:last-child {
    margin-right: 0;
    margin-left: 6px;
}

.ping-item:not(:last-child)::after {
    content: '';
    position: absolute;
    /* right: -6px; */
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
}

.ping-item .label {
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 2px;
    font-size: 10px;
    order: 2;
    box-sizing: border-box;
    white-space: nowrap;
}

.ping-item .value {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    font-weight: 600;
    order: 1;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.2px;
    margin-right: 6px;
    box-sizing: border-box;
}

/* 玩家数量样式 */
.players-count .value {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    display: flex;
    align-items: center;
}

.players-count .value::before {
    display: none;
}

/* PING显示样式 */
.ping-display .value::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    flex-shrink: 0;
    vertical-align: baseline;
    vertical-align: initial;
    transition: all 0.3s ease;
}

/* 延迟状态样式 */
.ping-item .value.ping-good {
    color: #0ff595;
    background: #0ff5951e;
}

.ping-item .value.ping-good::before {
    background: #0ff595;
    box-shadow: 0 0 12px #0ff5951e;
}

.ping-item .value.ping-warning {
    color: #ffb700;
    background: rgba(255, 183, 0, 0.15);
}

.ping-item .value.ping-warning::before {
    background: #ffb700;
    box-shadow: 0 0 12px rgba(255, 183, 0, 0.5);
}

.ping-item .value.ping-danger {
    color: #ff4545;
    background: rgba(255, 69, 69, 0.15);
}

.ping-item .ping-nolive {
    color: #ffffff;
    background: rgba(116, 116, 116, 0.15);
}

.ping-item .ping-nolive::before {
    background: #ffffff;
}


.ping-item .value.ping-danger::before {
    background: #ff4545;
    box-shadow: 0 0 12px rgba(255, 69, 69, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ping-item .value::before {
    animation: pulse 2s infinite;
}
/* 超时提醒独立样式 */
.timeout-warning-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    pointer-events: none;
}

.timeout-warning-content {
    background: rgba(255, 69, 69, 0.15);
    color: #ff4545;
    padding: 6px 10px;
    /* padding: 80px; */
    border-radius: 30px;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    white-space: nowrap;
    animation: warningFadeIn 0.3s ease-in-out;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    font-weight: bold;
    text-align: center;

    border: 1px solid oklch(1 0 0 / 10%);
}

.timeout-warning-content sm {
    font-size: 14px;
    opacity: 0.7;
    margin-left: 5px;
}

.timeout-warning-content .icon {
    font-size: 18px;
    margin-right: 5px;
}

@keyframes warningFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 
