/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.v3d-container {
    background: radial-gradient(circle at 50% 40%, #222 0%, #111 60%, #222 100%);
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* 游戏UI样式 */
.game-ui {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.game-ui h3 {
    margin: 0 0 10px 0;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.game-ui .score-item {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-ui .score-value {
    font-weight: bold;
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.game-ui .controls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.game-ui .control-item {
    margin: 3px 0;
    font-size: 14px;
    color: #cccccc;
}

.restart-button {
    align-self: center;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
    transition: all 0.3s ease;
    z-index: 1001;
    margin: 20px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 120px;
    min-height: 48px;
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.restart-button:active {
    transform: translateY(0);
}

/* 游戏结束弹窗样式 */
.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.game-over-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid #3498db;
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #e74c3c;
}

.game-over-content .final-score {
    font-size: 24px;
    color: #f1c40f;
    margin: 15px 0;
    text-shadow: 0 0 10px #f1c40f;
}

.game-over-content button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
}

.game-over-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,152,219,0.4);
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }

.restart-bottom {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
    transition: all 0.3s ease;
    z-index: 1001;
    margin: 0 auto;
}
.restart-bottom:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}
.restart-bottom:active {
    transform: translateX(-50%) scale(0.98);
}

.game-btn {
    align-self: center;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255,107,107,0.2);
    transition: all 0.2s ease;
    z-index: 1001;
    margin: 18px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 32px;
}
.game-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    transform: scale(1.06);
}
.game-btn:active {
    transform: scale(0.98);
}
