/* ===== FUTURISTIC MIDNIGHT THEME : PALE ORANGE + GREEN ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 30%, #0b1a1f, #0a1215, #050a0c);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 183, 77, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 199, 132, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ===== DECORATIVE ORBS ===== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}
.orb-orange {
    width: 500px;
    height: 500px;
    background: #ffb74d;
    top: -150px;
    right: -100px;
    animation: pulse 12s infinite alternate;
}
.orb-green {
    width: 400px;
    height: 400px;
    background: #81c784;
    bottom: -120px;
    left: -120px;
    animation: pulse 14s infinite alternate-reverse;
}
@keyframes pulse {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.3); }
}

/* ===== GAME SHELL ===== */
.game-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    background: rgba(10, 20, 22, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 183, 77, 0.25);
    border-radius: 3rem 1.5rem 3rem 1.5rem;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(129, 199, 132, 0.1) inset, 0 0 40px rgba(255, 183, 77, 0.1);
    padding: 2rem 2rem 2.5rem;
    transition: all 0.2s;
}

.site-name {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    background: linear-gradient(135deg, #ffb74d 0%, #a5d6a7 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 183, 77, 0.3);
    margin-bottom: 1.8rem;
    line-height: 1.2;
    position: relative;
    filter: drop-shadow(0 4px 6px #00000050);
}
.site-name::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffb74d, #81c784, transparent);
    margin: 0.6rem auto 0;
    border-radius: 100%;
    opacity: 0.8;
}

/* ===== TABS ===== */
.minigame-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2.2rem;
}
.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 183, 77, 0.3);
    color: #b0bec5;
    padding: 0.7rem 1.6rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tab-btn:hover {
    border-color: #ffb74d;
    color: #ffcc80;
    background: rgba(255, 183, 77, 0.1);
    transform: translateY(-2px);
}
.tab-btn.active {
    background: linear-gradient(145deg, #ffb74d20, #81c78420);
    border-color: #ffb74d;
    color: #ffe0b2;
    box-shadow: 0 0 20px #ffb74d40, 0 0 0 1px #81c78480 inset;
}

/* ===== GAME AREA ===== */
.game-area {
    background: rgba(5, 12, 14, 0.6);
    border-radius: 2rem;
    padding: 2rem 1.8rem;
    border: 1px solid #2e4a3a;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 0 0 1px #ffb74d20 inset;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

/* ===== QUESTION BOX ===== */
.question-box {
    text-align: center;
    margin-bottom: 2rem;
}
.prompt-label {
    color: #a5d6a7;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
}
.prompt-main {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffcc80;
    word-break: break-word;
    line-height: 1.4;
    text-shadow: 0 0 25px rgba(255, 183, 77, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.prompt-sub {
    font-size: 1rem;
    color: #9e9e9e;
    margin-top: 0.6rem;
    font-style: italic;
    line-height: 1.6;
}
.prompt-sub .pinyin-line {
    font-style: normal;
    font-size: 0.85rem;
    color: #80cbc4;
    letter-spacing: 0.3px;
}

/* ===== AUDIO SPEAKER BUTTON ===== */
.speak-btn {
    background: rgba(255, 183, 77, 0.15);
    border: 1.5px solid rgba(255, 183, 77, 0.5);
    color: #ffcc80;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 183, 77, 0.2);
}
.speak-btn:hover {
    background: rgba(255, 183, 77, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 183, 77, 0.5);
}
.speak-btn:active {
    transform: scale(0.95);
}
.speak-btn.speaking {
    animation: speakerPulse 0.8s infinite alternate;
}
@keyframes speakerPulse {
    0% { box-shadow: 0 0 15px rgba(255, 183, 77, 0.4); }
    100% { box-shadow: 0 0 30px rgba(255, 183, 77, 0.9); }
}

/* ===== OPTIONS GRID ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.opt-btn {
    background: #0f1c1e;
    border: 1.5px solid #2f4a3f;
    color: #c8e6c9;
    padding: 1rem 1rem;
    border-radius: 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
    box-shadow: 0 6px 0 #050a0c;
    letter-spacing: 0.3px;
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.opt-btn:hover {
    background: #1a2e2a;
    border-color: #81c784;
    color: #fff3e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #050a0c;
}
.opt-btn.correct {
    background: #1e4a2e;
    border-color: #a5d6a7;
    color: #e8f5e9;
    box-shadow: 0 0 20px #81c78480, 0 6px 0 #0a1f12;
}
.opt-btn.wrong {
    background: #4a1e1e;
    border-color: #ff8a65;
    color: #ffccbc;
    box-shadow: 0 0 20px #ff8a6580, 0 6px 0 #1f0a0a;
}
.opt-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: translateY(0);
    box-shadow: 0 4px 0 #050a0c;
}

.opt-label {
    background: rgba(255, 183, 77, 0.2);
    border: 1px solid rgba(255, 183, 77, 0.4);
    color: #ffcc80;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.opt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.opt-chinese {
    font-weight: 600;
    color: #c8e6c9;
}
.opt-pinyin {
    font-size: 0.8rem;
    color: #90a4ae;
    font-style: italic;
    letter-spacing: 0.2px;
}

/* Small speaker button inside option */
.opt-speak {
    background: rgba(255, 183, 77, 0.2);
    border: 1px solid rgba(255, 183, 77, 0.4);
    color: #ffcc80;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}
.opt-speak:hover {
    background: rgba(255, 183, 77, 0.4);
    transform: scale(1.15);
}

/* ===== FEEDBACK ===== */
.feedback-area {
    text-align: center;
    min-height: 3rem;
    margin: 0.8rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #a5d6a7;
    letter-spacing: 0.5px;
}

/* ===== EXPLANATION BOX ===== */
.explanation-box {
    background: rgba(255, 183, 77, 0.08);
    border: 1px solid rgba(255, 183, 77, 0.3);
    border-radius: 1.2rem;
    padding: 1rem 1.4rem;
    margin: 0.6rem 0 0.8rem;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d7ccc8;
    display: none;
}
.explanation-box.show {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.explanation-title {
    color: #ffcc80;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.explanation-chinese {
    color: #a5d6a7;
    font-weight: 600;
    font-size: 1.05rem;
}
.explanation-pinyin {
    color: #90a4ae;
    font-weight: 400;
    font-size: 0.85rem;
}
.explanation-burmese {
    color: #bcaaa4;
    font-size: 0.95rem;
    margin-top: 0.35rem;
    line-height: 1.7;
}
.explanation-why {
    color: #ffab91;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(255, 183, 77, 0.2);
}

/* ===== NEXT BUTTON ===== */
.next-btn {
    background: linear-gradient(145deg, #ffb74d, #ffa726);
    border: none;
    color: #0a1215;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.2s;
    align-self: center;
    box-shadow: 0 8px 0 #7f5a1f, 0 0 30px #ffb74d50;
    letter-spacing: 1px;
    margin-top: 0.8rem;
}
.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 #7f5a1f, 0 0 40px #ffb74d80;
    background: linear-gradient(145deg, #ffc163, #ffb74d);
}
.next-btn:active {
    transform: translateY(3px);
    box-shadow: 0 4px 0 #7f5a1f, 0 0 30px #ffb74d50;
}
.next-btn:disabled {
    opacity: 0.5;
    transform: translateY(0);
    box-shadow: 0 6px 0 #7f5a1f;
    cursor: not-allowed;
}

/* ===== SCORE BADGE ===== */
.score-badge {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #b0bec5;
    background: #0a1215aa;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    border: 1px solid #2e4a3a;
    backdrop-filter: blur(4px);
}
.score-badge span {
    color: #ffcc80;
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 6px;
}

/* ===== PROGRESS DOTS ===== */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2e4a3a;
    transition: 0.2s;
}
.dot.active {
    background: #ffb74d;
    box-shadow: 0 0 15px #ffb74d;
}
.dot.correct-dot {
    background: #81c784;
}
.dot.wrong-dot {
    background: #ff8a65;
}

/* ===== GAME COMPLETE SCREEN ===== */
.game-complete {
    text-align: center;
    padding: 2rem 1rem;
}
.game-complete-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.game-complete-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffcc80;
    margin-bottom: 0.8rem;
}
.game-complete-message {
    color: #a5d6a7;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.restart-btn {
    font-size: 1.3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .site-name { font-size: 2rem; }
    .game-shell { padding: 1.5rem 1rem; border-radius: 2rem; }
    .prompt-main { font-size: 1.4rem; }
    .opt-btn { font-size: 0.95rem; padding: 0.9rem 0.7rem; }
    .tab-btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
    .score-badge { gap: 1rem; font-size: 0.9rem; flex-wrap: wrap; }
    .speak-btn { width: 36px; height: 36px; font-size: 1rem; }
    .opt-label { width: 28px; height: 28px; font-size: 0.8rem; }
    .explanation-box { font-size: 0.85rem; padding: 0.8rem 1rem; }
}