
.hsk-game {
    --hsk-purple: #4A3B63;
    --hsk-lilac: #8C73D6;
    --hsk-paper: #FAF9F7;
    --hsk-ink: #23262B;
    --hsk-muted: #77717F;
    max-width: 760px;
    margin: 32px auto;
    overflow: hidden;
    border: 1px solid #E5E0EA;
    border-radius: 24px;
    background: var(--hsk-paper);
    color: var(--hsk-ink);
    font-family: "DM Sans", sans-serif;
    box-shadow: 0 14px 45px rgba(45, 33, 63, .09);
}

.hsk-game *,
.hsk-game *::before,
.hsk-game *::after {
    box-sizing: border-box;
}

.hsk-game button {
    font: inherit;
    cursor: pointer;
}

.hsk-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 26px 20px;
}

.hsk-eyebrow,
.hsk-vocabulary-title {
    margin: 0 0 8px;
    color: var(--hsk-lilac);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hsk-game-header h2 {
    margin: 0;
    color: var(--hsk-purple);
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.2;
}

.hsk-subtitle {
    margin: 5px 0 0;
    color: var(--hsk-muted);
    font-size: 13px;
}

.hsk-progress {
    flex-shrink: 0;
    padding: 10px 13px;
    border: 1px solid #E5DEEF;
    border-radius: 12px;
    background: #F2EEF8;
    text-align: center;
}

.hsk-progress span,
.hsk-progress strong {
    display: block;
}

.hsk-progress span {
    margin-bottom: 4px;
    color: var(--hsk-muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.hsk-progress strong {
    color: var(--hsk-purple);
    font-size: 13px;
}

.hsk-scene-art {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: linear-gradient(180deg, #E9E2F5 0%, #F7E8D9 100%);
}

.hsk-sun {
    position: absolute;
    top: 27px;
    right: 12%;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #F8D9A7;
}

.hsk-station {
    position: absolute;
    right: 8%;
    bottom: 39px;
    left: 8%;
    height: 130px;
}

.hsk-station-roof {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    background: var(--hsk-purple);
    clip-path: polygon(5% 100%, 14% 0, 86% 0, 95% 100%);
}

.hsk-station-sign {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 50%;
    padding: 5px 18px;
    transform: translateX(-50%);
    background: #F5E9CE;
    color: var(--hsk-purple);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 5px;
}

.hsk-station-body {
    position: absolute;
    top: 44px;
    right: 8%;
    bottom: 0;
    left: 8%;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 12px 18px 0;
    background: #D5C7E6;
}

.hsk-station-body span {
    width: 17%;
    border: 4px solid #B1A0C9;
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
    background: #F7F0E8;
}

.hsk-platform {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 42px;
    background: #D6C9B8;
    border-top: 5px solid #B4A28E;
}

.hsk-traveler {
    position: absolute;
    z-index: 3;
    bottom: 23px;
    left: 20%;
    width: 62px;
    height: 125px;
}

.hsk-head {
    position: absolute;
    top: 0;
    left: 18px;
    width: 30px;
    height: 34px;
    border-radius: 48% 48% 45% 45%;
    background: #DCA77F;
    border-top: 9px solid #29242F;
}

.hsk-body {
    position: absolute;
    top: 33px;
    left: 10px;
    width: 46px;
    height: 52px;
    border-radius: 12px 12px 5px 5px;
    background: var(--hsk-lilac);
}

.hsk-bag {
    position: absolute;
    top: 47px;
    left: -2px;
    width: 21px;
    height: 30px;
    border: 3px solid var(--hsk-purple);
    border-radius: 5px;
    background: #F2D4A5;
}

.hsk-leg {
    position: absolute;
    top: 80px;
    width: 13px;
    height: 34px;
    border-radius: 4px;
    background: #34303A;
}

.hsk-leg-left {
    left: 15px;
    transform: rotate(5deg);
}

.hsk-leg-right {
    left: 36px;
    transform: rotate(-5deg);
}

.hsk-story {
    padding: 22px 26px 26px;
}

.hsk-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #EEE8F6;
    color: var(--hsk-purple);
    font-size: 12px;
    font-weight: 700;
}

.hsk-story-text {
    margin: 18px 0;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.7;
}

.hsk-dialog {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border: 1px solid #E9E3EF;
    border-radius: 15px;
    background: #FFF;
}

.hsk-dialog-avatar {
    display: grid;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--hsk-purple);
    color: #FFF;
    font-size: 20px;
}

.hsk-dialog-label {
    margin: 0 0 6px;
    color: var(--hsk-muted);
    font-size: 11px;
}

.hsk-chinese-line {
    margin: 0;
    color: var(--hsk-purple);
    font-size: 19px;
    font-weight: 750;
}

.hsk-turkish-line {
    margin: 5px 0 0;
    color: var(--hsk-muted);
    font-size: 13px;
}

.hsk-question {
    margin: 24px 0 14px;
}

.hsk-question-label {
    margin: 0 0 7px;
    color: var(--hsk-lilac);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.hsk-question h3 {
    margin: 0;
    color: var(--hsk-ink);
    font-size: 21px;
    line-height: 1.5;
}

.hsk-question > p:last-child {
    margin: 4px 0 0;
    color: var(--hsk-muted);
    font-size: 13px;
}

.hsk-choices {
    display: grid;
    gap: 10px;
}

.hsk-choice {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #E5DFEA;
    border-radius: 14px;
    background: #FFF;
    color: var(--hsk-ink);
    text-align: left;
    transition: border-color .15s ease, background .15s ease;
}

.hsk-choice:hover {
    border-color: var(--hsk-lilac);
    background: #F7F3FC;
}

.hsk-choice:focus-visible,
.hsk-text-button:focus-visible,
.hsk-primary-button:focus-visible {
    outline: 3px solid #B6A3EF;
    outline-offset: 3px;
}

.hsk-choice-letter {
    display: grid;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #F0EBF7;
    color: var(--hsk-purple);
    font-size: 13px;
    font-weight: 800;
}

.hsk-choice strong,
.hsk-choice small {
    display: block;
}

.hsk-choice strong {
    font-size: 16px;
}

.hsk-choice small {
    margin-top: 4px;
    color: var(--hsk-muted);
    font-size: 12px;
}

.hsk-choice.is-correct {
    border-color: #4D9272;
    background: #EDF7F0;
}

.hsk-choice.is-wrong {
    border-color: #C57A7A;
    background: #FFF1F0;
}

.hsk-choice:disabled {
    cursor: default;
    opacity: .85;
}

.hsk-feedback {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #F0EBF7;
    color: var(--hsk-purple);
    font-size: 14px;
    line-height: 1.6;
}

.hsk-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
}

.hsk-text-button {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--hsk-purple);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hsk-hint {
    margin-top: 12px;
    padding: 14px;
    border-left: 3px solid var(--hsk-lilac);
    border-radius: 0 10px 10px 0;
    background: #F0EBF7;
    font-size: 13px;
    line-height: 1.7;
}

.hsk-hint p {
    margin: 4px 0 0;
}

.hsk-vocabulary {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #E7E1EB;
}

.hsk-word-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.hsk-word-list span {
    padding: 11px;
    border-radius: 11px;
    background: #F0EBF7;
}

.hsk-word-list strong,
.hsk-word-list small {
    display: block;
}

.hsk-word-list strong {
    color: var(--hsk-purple);
    font-size: 15px;
}

.hsk-word-list small {
    margin-top: 4px;
    color: var(--hsk-muted);
    font-size: 11px;
}

.hsk-ending {
    padding: 32px 26px;
    text-align: center;
}

.hsk-ending-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    background: #EEE8F6;
    color: var(--hsk-purple);
    font-size: 28px;
}

.hsk-ending h3 {
    margin: 8px 0;
    color: var(--hsk-purple);
    font-size: 30px;
}

.hsk-ending > p:not(.hsk-eyebrow) {
    color: var(--hsk-muted);
    line-height: 1.7;
}

.hsk-ending-detail {
    margin: 18px 0;
}

.hsk-primary-button {
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--hsk-purple);
    color: #FFF;
    font-weight: 700;
}

.hsk-primary-button:hover {
    background: #362A4B;
}

.hsk-game [hidden] {
    display: none !important;
}

@media (max-width: 520px) {
    .hsk-game {
        margin: 16px auto;
        border-radius: 17px;
    }

    .hsk-game-header {
        padding: 20px 17px 16px;
    }

    .hsk-progress {
        padding: 8px;
    }

    .hsk-scene-art {
        height: 205px;
    }

    .hsk-story {
        padding: 19px 17px 22px;
    }

    .hsk-question h3 {
        font-size: 19px;
    }

    .hsk-choice {
        padding: 12px 10px;
    }

    .hsk-choice strong {
        font-size: 14px;
    }
}