/* 字体使用系统默认，简洁快速 */

body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(180deg, #2C5F7C 0%, #4A90A4 50%, #6BB5CA 100%);
    overflow: hidden;
}

#mainContainer {
    transform-origin:0% 0%;
    position:absolute;
    width:100vw;
    height:100vh;
    top:0;
    left:0;
}

#score {
    position:absolute;
    top:20px;
    left:0;
    width:100%;
    text-align:center;
    font-size:60px;
    font-weight:900;
    color:#fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
    transition: transform 0.1s ease;
}

#score.bump {
    transform: scale(1.2);
}

#showPoint {
    position:absolute;
    top:0;
    left:0;
    background:transparent;
    margin:0;
}

#showPoint .u {
    position:absolute;
    display:inline-block;
    top:50%;
    left:70%;
    font-size:30px;
    font-family:'Orbitron', sans-serif;
    opacity:0;
    transition:top 0.1s linear,left 0.1s linear;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

#animCanvas {
    position:absolute;
    top:0;
    left:0;
    z-index:100;
}

#arrs {
    font-size:30px;
    text-align:left;
    position:absolute;
    margin:0;
    top:0;
    padding-left:10px;
    color: #ffd700;
}

#startMenu {
    position:absolute;
    top:0;
    left:0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 52, 96, 0.95) 100%);
    z-index:1000;
    width:100%;
    height:100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#startMenu h1 {
    font-size:50px;
    font-weight:900;
    color: #fff;
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 4px 4px 0 #1a1a2e;
    margin-bottom: 30px;
    letter-spacing: 4px;
}

#startMenu button {
    font-size:22px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background:none;
    border:none;
    color: #ffd700;
    padding:15px 40px 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

#startMenu button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

#startMenu button:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px #ffd700;
}

#startMenu button:hover::before {
    left: 100%;
}

#startMenu h2 {
    font-size:25px;
    color: #aaa;
    margin-top: 20px;
}

#startMenu h2 span {
    display: block;
    font-size: 36px;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

#timerDiv {
   height:10px;
   padding:0px;
   border:2px solid #ffd700;
   width:50%;
   position:absolute;
   bottom:20px;
   left:25%;
   border-radius:20px;
   box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.timer {
   height:10px;
   width:100%;
   background: linear-gradient(90deg, #00ff88, #ffd700);
   animation: countTime 4.5s linear 1;
   animation-delay:0.5s;
   border-radius:18px;
}

@keyframes countTime {
   0% {
       width: 100%;
       background: linear-gradient(90deg, #00ff88, #00ff88);
   }
   50% {
       background: linear-gradient(90deg, #ffd700, #ffd700);
   }
   100% {
       width: 0%;
       background: linear-gradient(90deg, #ff6b6b, #ff4444);
   }
}

/* 得分动画 */
.score-popup {
    position: absolute;
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    pointer-events: none;
    animation: scoreFloat 0.8s ease-out forwards;
    z-index: 200;
}

@keyframes scoreFloat {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-40px); }
}