body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    margin: 0;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.main {
    max-width: 320px;
    width: 100%;
}

.image {
    background-position: center;
    background-size: cover;
}

h1 {
    width: 100%;
    font-size: 20px;
    text-align: center;
}

.header {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
}

.header h1 {
    width: -webkit-calc(100% - 120px);
    width: calc(100% - 120px);
}

.back-btn {
    width: 40px;
    height: 40px;
    margin: 10px;
    background-image: url(../../images/back.382b99b.webp);
    background-size: cover;
}

.ad-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    margin: 16px auto !important;
}

#ad-countdown {
    position: fixed;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    background: rgb(255, 255, 255);
    color: #000000;
    font-size: 14px;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    display: none;
    z-index: 9999;
}

@media screen and (orientation: portrait) {
    .main {
        max-width: 400px;
    }
}
.main {
    color: white;
    width: 90%;
    padding: 20px;
}

.progress-bubble {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    margin-bottom: 14px;
}

.question {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option {
    background: #112d26;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.02);
    text-align: center;
    color: #ffffff;
}

.option:hover {
    background: #333;
}

.option.correct {
    background: #0f0;
    color: #000;
    font-weight: bold;
}

.option.selected {
    background: #0ca97e;
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
}

.card {
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.02)), to(rgba(0, 0, 0, 0.12)));
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.next {
    margin-top: 18px;
    background: #0ca97e;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    color: #02221a;
    cursor: pointer;
}

.option.wrong {
    background: #f00;
    color: #fff;
    font-weight: bold;
}

.result {
    margin-top: 20px;
    font-size: 20px;
    color: #00ffcc;
}

/* 弹窗遮罩 */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #174135;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    font-family: sans-serif;
    max-width: 320px;
    width: 90%;
}

.modal-content .emoji {
    width: 25%;
    aspect-ratio: 1;
    background-image: url(../../images/celebration.c55aae1.webp);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 1rem;
}

.modal-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.modal-content p {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.okay-btn {
    background: #4ec096;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.okay-btn:hover {
    background: #3da882;
}
