body {
    margin: 0;
    padding: 0;
    background: #000022;
    font-family: '微软雅黑', Arial, sans-serif;
    overflow: hidden;
}
#energy-bar {
    position: absolute;
    top: 10px;
    left: 20px;
    color: #fff;
    font-size: 22px;
    z-index: 2;
}
#universe {
    display: block;
    margin: 0 auto;
    background: radial-gradient(ellipse at center, #222244 0%, #000022 100%);
    box-shadow: 0 0 30px #222288;
    border-radius: 10px;
}
#question-modal {
    position: absolute;
    top: 50px;
    right: 30px;
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 20;
    pointer-events: none;
}
#question-modal .modal-content, #question-bar {
    pointer-events: auto;
}
@media (max-width: 700px) {
    #question-modal {
        top: unset;
        bottom: 10px;
        right: 50%;
        left: 50%;
        transform: translateX(50%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }
}

#question-flex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}
@media (max-width: 700px) {
    #question-flex {
        flex-direction: column;
        align-items: center;
    }
    #question-bar, .modal-content {
        min-width: 180px;
        max-width: 98vw;
    }
}
.hidden {
    display: none !important;
}
#question-bar {
    background: #3388ff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px 0 0 12px;
    padding: 18px 12px;
    margin: 0;
    text-align: center;
    min-width: 80px;
    max-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 10px #3388ff44;
    letter-spacing: 1px;
    word-break: break-all;
}
@media (max-width: 700px) {
    #question-bar {
        border-radius: 16px 16px 0 0;
        min-width: 180px;
        max-width: 98vw;
        padding: 18px 12px;
        font-size: 18px;
    }
}

.modal-content {
    background: #fff;
    padding: 16px 18px 16px 18px;
    border-radius: 0 12px 12px 0;
    text-align: center;
    min-width: 160px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 700px) {
    .modal-content {
        border-radius: 0 0 12px 12px;
        min-width: 180px;
        padding: 18px 12px 24px 12px;
    }
}
#options button {
    margin: 6px 0;
    padding: 6px 14px;
    font-size: 15px;
    border-radius: 5px;
    border: none;
    background: #3377ff;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
#options button:hover {
    background: #2255aa;
}
#close-btn, #restart-btn {
    margin-top: 12px;
    padding: 6px 14px;
    font-size: 15px;
    border-radius: 5px;
    border: none;
    background: #888;
    color: #fff;
    cursor: pointer;
}
#game-over {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: #fff;
}
#game-over h2 {
    font-size: 38px;
    margin-bottom: 18px;
}
#game-over p {
    font-size: 24px;
    margin-bottom: 20px;
}
