* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-family: "Microsoft Yahei", sans-serif;
    background: linear-gradient(135deg, #f0f7ff 0%, #d9e8ff 100%);
    user-select: none;
}

.game-container {
    width: 100%;
    /*height: 100%;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*padding: 10px;*/
}

.game-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    width: 100%;
}

.info-box {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
    font-size: 15px;
    color: #333;
}

.turntable-wrapper {
    position: relative;
    width: 70vmin;
    max-width: 70vh;
    height: 70vmin;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outer-turntable {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border: 12px solid #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.6);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inner-turntable {
    position: absolute;
    width: 68%;
    height: 68%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 8px solid #64b5f6;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.6);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.turntable-center {
    position: absolute;
    width: 32%;
    height: 32%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 4px solid #2e7d32;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 5px;
}

.center-pinyin {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.center-word {
    font-size: 28px;
    margin-top: 5px;
    color: #2e7d32;
    font-weight: bold;
}

.char-match {
    color: #006600 !important;
    font-weight: bold;
    text-decoration: underline;
}

.char-unmatch {
    color: #cc0000 !important;
}

.pinyin-item {
    position: absolute;
    left: 50%;
    transform-origin: center bottom;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.outer-item {
    top: 12px;
    width: 50px;
    height: 50%;
    margin-left: -25px;
    font-size: 28px;
    color: #8b4513;
    padding-top: 10px;
}

.inner-item {
    top: 8px;
    width: 42px;
    height: 50%;
    margin-left: -21px;
    font-size: 18px;
    color: #003366;
    padding-top: 8px;
}

.pinyin-item.active {
    transform: scale(1.4);
    color: #ffffff !important;
    background: #000000;
    text-shadow: 0 0 8px #fff;
    border-radius: 6px;
    padding: 2px 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
.pinyin-item.pass {
    color: green !important;
}

.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 460px;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.modal-title {
    font-size: 27px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.stats-item {
    font-size: 17px;
    margin: 8px 0;
    color: #444;
}

.stats-value {
    font-weight: bold;
    color: #2c5aa0;
}

.modal-btns {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .game-title {
        font-size: 24px;
    }

    .center-pinyin {
        font-size: 24px;
    }

    .center-word {
        font-size: 15px;
    }

    .outer-item {
        font-size: 26px;
        width: 42px;
        margin-left: -21px;
    }

    .inner-item {
        font-size: 15px;
        width: 36px;
        margin-left: -18px;
    }
}

@media (max-width: 480px) {
    .outer-item {
        font-size: 15px;
    }

    .inner-item {
        font-size: 13px;
    }

    .center-pinyin {
        font-size: 22px;
    }
}