@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background-color: #222; }
body {
    font-family: 'Rajdhani', sans-serif;
}
/* 页面容器基础样式 */
#app-wrapper {
    background-color: #121212;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow: hidden;
}

/* 输入框/下拉框统一透明去默认样式 */
.form-control-transparent {
    background: transparent !important;
    border: none !important;
    color: #ffd700 !important;
    text-align: center;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
.form-control-transparent:focus {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}
/* 隐藏原生数字箭头 */
.form-control-transparent::-webkit-outer-spin-button,
.form-control-transparent::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 顶部文本框 */
.top-section {
    flex-shrink: 0;
    text-align: center;
    padding-top: 4px;
    padding-bottom: 4px;
    z-index: 3;
}

#songName {
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #ECEDCB !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* ================= 自适应下拉菜单样式 ================= */
#diffContainer {
    width: 90px;
}
#diffContainer .form-select {
    text-align: center;
    text-align-last: center;
}
#diffType {
    width: 150px;
}

#diffLevel {
    width: 70px;
}

/* 隐藏原生箭头并自适应宽度 */
.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    outline: none;
    padding: 0;
    cursor: pointer;
    width: auto; /* 初始自适应 */
    min-width: 24px;
}

/* 自定义选项样式 */
.custom-select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px;
}

/* 动态变色类 (由JS控制) */
.container-easy { background-color: rgba(0, 191, 255, 0.15) !important; }
.container-hard { background-color: rgba(255, 51, 102, 0.15) !important; }
.container-chaos { background-color: rgba(189, 0, 255, 0.15) !important; }
.container-glitch { background-color: rgba(0, 255, 136, 0.15) !important; }
.container-dream { background-color: rgba(56, 55, 53, 1) !important; }
.container-drop { background-color: rgba(213, 209, 206, 1) !important; }
.container-clash { background-color: rgba(53, 37, 21, 1) !important; }

.diff-easy { border-color: #00bfff !important; color: #00bfff !important; }
.diff-hard { border-color: #ff3366 !important; color: #ff3366 !important; }
.diff-chaos { border-color: #bd00ff !important; color: #bd00ff !important; }
.diff-glitch { border-color: #00ff88 !important; color: #00ff88 !important; }
.diff-dream { border-color: #FFFFFF !important; color: #FFFFFF !important; }
.diff-drop { border-color: #383836 !important; color: #383836 !important; }
.diff-clash { border-color: #FFC100 !important; color: #FFC100 !important; }

/* 中间内容 */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}
/* 圆环进度条容器 */
.ring-container {
    position: relative;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #73EEAF;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.05);
}

/* 环形进度条背景 */
#progress-ring {
    position: absolute;
    width: 210px; height: 210px;
    border-radius: 50%;
    background: #73EEAF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.5s ease-out;
}
#progress-ring::after {
    content: '';
    width: 202px; height: 202px;
    background: #121212;
    border-radius: 50%;
}

/* 圆环内部内容 */
.ring-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tp-label {
    font-size: 1.6rem;
    color: #73EEAF;
    border-bottom: 1px solid #7A7A78;
    width: 150px;
}
#tp-input {
    width: 70px; 
    font-size: 1.6rem; 
    color: #73EEAF !important;  
    border-bottom: 1px solid #73EEAF !important; 
    border-radius: 0 !important;
    padding: 0;
}

/* 新增：圆环旁边的线条样式和额外小圆圈 */
.ring-line {
    position: absolute;
    top: 50%;
    width: 1000%;
    height: 2px;
    background-color: #E9EBD3;
    z-index: 0;
    transform: translateY(-50%);
}
.line-top {
    top: calc(50% - 80px);
}
.line-button {
    top: calc(50% + 80px);
}
.ring-line-light {
    position: absolute;
    top: 50%;
    width: 2000px;
    height: 1px;
    background-color: rgba(233, 235, 211, 0.6);
    z-index: 0;
    transform: translateY(-50%);
}
.line-top-light {
    top: calc(50% - 68px);
}
.line-button-light {
    top: calc(50% + 68px);
}
#extra-circle {
    position: absolute;
    width: 182px;
    height: 182px;
    border-radius: 50%;
    border: 2px solid #7A7A78; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; 
}

/* 左右数值大框 */
.score-box {
    text-align: center;
}
.score-label {
    font-size: 1.2rem;
    color: #979C74;
    letter-spacing: 1px;
}
.score-value {
    font-size: 2.7rem;
    font-weight: bold;
    color: #FAED7D !important;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
    display: inline-block;
    width: 140px;
    border-radius: 0 !important;
}

/* 底部判定统计 */
.bottom-section {
    flex-shrink: 0;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 3;
}
.stats-box {
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
}
.stats-value {
    font-size: 1.4rem;
    color: #ccc;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    text-align: center;
    width: 60px;
    padding: 0;
}
.stats-value:focus {
    outline: none;
    border-bottom-color: #fff;
    color: #fff;
}
.stats-value::-webkit-outer-spin-button,
.stats-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.stats-value-ro {
    font-size: 1.4rem;
    color: #ccc;
    background: transparent;
    border: none;
    text-align: center;
    width: 60px;
    padding: 0;
}
.stats-value-ro:focus {
    outline: none;
    border-bottom-color: #fff;
    color: #fff;
}
.stats-value-ro::-webkit-outer-spin-button,
.stats-value-ro::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 按钮去背景 */
.btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 50px;
    transition: all 0.3s;
    /* ↓↓↓ 新增以下三行解决对齐问题 ↓↓↓ */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;           /* 消除行高导致的额外垂直空间 */
    padding: 0;               /* 用固定宽高代替 padding，避免盒模型计算偏差 */
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}
.action-label {
font-size: 1.1rem;
color: #ccc;
line-height: 1;       /* 消除行高导致的视觉偏移 */
margin: 0;            /* 清除可能的默认外边距 */
}