* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
}

/* HUD 样式 */
#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.hud-panel {
    position: absolute;
    color: #e0f8ff;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
}

.top-left {
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(0,20,40,0.7), rgba(0,10,30,0.5));
    border: 1px solid rgba(0,200,255,0.2);
    border-radius: 8px;
    padding: 12px 18px;
    min-width: 180px;
}

.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.top-right {
    top: 20px;
    right: 20px;
    text-align: right;
    background: linear-gradient(225deg, rgba(0,20,40,0.7), rgba(0,10,30,0.5));
    border: 1px solid rgba(0,200,255,0.2);
    border-radius: 8px;
    padding: 12px 18px;
    min-width: 160px;
}

.top-name {
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.plane-name {
    display: inline-block;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 0 4px #000;
    background: rgba(0, 20, 40, 0.55);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 20px;
    padding: 5px 20px;
}

.bottom-center {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hud-item {
    font-size: 14px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-item .label {
    opacity: 0.6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-item .value {
    font-size: 22px;
    font-weight: bold;
    min-width: 60px;
    font-variant-numeric: tabular-nums;
}

.throttle-bar, .fuel-bar {
    width: 80px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,200,255,0.3);
    display: inline-block;
    vertical-align: middle;
    margin: 0 6px;
    border-radius: 4px;
    overflow: hidden;
}

.throttle-fill, .fuel-fill {
    height: 100%;
    transition: width 0.15s ease-out;
    border-radius: 4px;
}

.throttle-fill {
    background: linear-gradient(90deg, #00ccff, #00ffcc);
}

.fuel-fill {
    background: linear-gradient(90deg, #ff8800, #ffcc00);
}

/* 任务信息 */
.mission-info {
    background: linear-gradient(135deg, rgba(0,20,40,0.8), rgba(0,10,30,0.6));
    border: 1px solid rgba(0,200,255,0.3);
    border-radius: 10px;
    padding: 18px 30px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.mission-title {
    font-size: 13px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.checkpoint-track {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 12px 0;
}

.checkpoint-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0,200,255,0.2);
    border: 2px solid rgba(0,200,255,0.4);
    transition: all 0.3s ease;
}

.checkpoint-dot.active {
    background: #00ccff;
    border-color: #00ffff;
    box-shadow: 0 0 12px #00ccff;
    animation: pulse-dot 1s infinite;
}

.checkpoint-dot.completed {
    background: #00ff88;
    border-color: #00ffaa;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.checkpoint-count {
    font-size: 16px;
    opacity: 0.7;
}

.checkpoint-count .value {
    color: #00ffcc;
    font-size: 20px;
}

/* 警告文字 */
.warning {
    font-size: 16px;
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
    animation: blink 0.8s infinite;
    background: rgba(40,0,0,0.6);
    padding: 8px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255,68,68,0.3);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 屏幕覆盖层 */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 8, 20, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 200;
    color: #fff;
}

.hidden {
    display: none !important;
}

.title {
    font-size: 52px;
    margin-bottom: 15px;
    color: #00ddff;
    text-shadow: 0 0 30px rgba(0,221,255,0.6), 0 0 60px rgba(0,221,255,0.3);
    letter-spacing: 4px;
}

.description {
    font-size: 16px;
    margin-bottom: 35px;
    opacity: 0.6;
    letter-spacing: 1px;
}

.controls-info {
    background: linear-gradient(135deg, rgba(0,20,40,0.7), rgba(0,10,30,0.5));
    border: 1px solid rgba(0,200,255,0.25);
    border-radius: 12px;
    padding: 25px 40px;
    margin-bottom: 40px;
    max-width: 420px;
}

.controls-info h3 {
    color: #00ddff;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.controls-info ul {
    list-style: none;
    font-size: 14px;
    line-height: 2.2;
}

.controls-info li {
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.controls-info strong {
    color: #ffcc00;
    min-width: 100px;
    text-align: right;
}

.btn-primary {
    padding: 16px 60px;
    font-size: 18px;
    background: transparent;
    border: 2px solid #00ddff;
    color: #00ddff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

.btn-primary:hover {
    background: rgba(0,221,255,0.15);
    box-shadow: 0 0 30px rgba(0,221,255,0.4);
    transform: scale(1.05);
}

/* 游戏结束 */
#game-over-screen .title {
    color: #00ff88;
    text-shadow: 0 0 30px rgba(0,255,136,0.6), 0 0 60px rgba(0,255,136,0.3);
}

#game-over-screen.fail .title {
    color: #ff4444;
    text-shadow: 0 0 30px rgba(255,68,68,0.6), 0 0 60px rgba(255,68,68,0.3);
}
