#loststroke {
    display: inline-block;
    width: 100%;
}

#loststroke .output_block_p {
    min-height: 520px;
    position: relative;
}

#loststroke #result_block {
    margin-bottom: 25px;
    position: relative;
}

#loststroke #result_preview {
    align-items: center;
    background: #f7f7f7;
    display: flex;
    height: 520px;
    justify-content: center;
    min-height: 520px;
    overflow: hidden;
}

#loststroke #result_preview img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#loststroke .list_sett li {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

#loststroke .list_sett li.loststroke_input {
    display: block;
    padding: 0;
}

#loststroke .loststroke_input textarea {
    display: block;
    margin: 0;
}

#loststroke .loststroke_input_hint {
    color: #777;
    font-size: 12px;
    line-height: 16px;
    padding: 6px 5px 0;
}

#loststroke .loststroke_input_footer {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    min-height: 24px;
    padding: 7px 5px 0;
}

#loststroke .loststroke_input_footer .top_count_words {
    color: #777;
    font-size: 12px;
    margin-left: auto;
}

#loststroke .loststroke_input_footer .chinesetools_error {
    display: block;
    padding: 0 8px 0 0;
}

#loststroke .list_sett li .setting_checkbox {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#loststroke .list_sett li .setting_checkbox .checker {
    float: none;
    margin: 0;
    top: 0;
}

#loststroke .list_sett li .setting_checkbox input {
    float: none;
    margin: 0;
}

#loststroke .card-body .value_sett .ss-main,
#loststroke .card-body .value_sett select {
    width: 100%;
}

#loststroke .list_sett li.style_picker {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
}

#loststroke .style_picker .grid-picker__item svg line {
    fill: none;
}

#loststroke .loststroke_controls .btnBlock > a,
#loststroke .loststroke_controls .btnBlock > .btn_no_pro {
    width: 49%;
}

#loststroke .loststroke_controls .btn_no_pro .btn {
    width: 100%;
}

#loststroke #ChineseToolsPlay_error {
    display: block;
    padding-top: 8px;
}

#onlinegame_loststroke,
#onlinegame_res {
    align-items: center;
    background: #f7f7f7;
    background-image: url("/modules/chinesekids/views/img/chinesetools/loststroke/og.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    padding: 25px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#onlinegame_loststroke .loststroke_game_title {
    color: var(--hd-primary, #2e4a43);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    text-align: center;
}

#onlinegame_loststroke .loststroke_word {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 302px;
    width: 100%;
}

#onlinegame_loststroke .loststroke_character {
    flex: 1 1 0;
    max-width: 302px;
    min-width: 0;
}

#onlinegame_loststroke .loststroke_pinyin {
    color: #e74c3c;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    min-height: 32px;
    text-align: center;
}

#onlinegame_loststroke .loststroke_pinyin_hidden {
    display: none;
}

#onlinegame_loststroke .loststroke_progress {
    color: var(--hd-primary, #2e4a43);
    font-size: 15px;
    font-weight: 700;
}

#onlinegame_loststroke .loststroke_writer_container {
    background: #fff;
    border: 1px solid var(--hd-border, #d7ddda);
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(34, 42, 45, 0.12);
    max-width: 302px;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

#onlinegame_loststroke .loststroke_character_active .loststroke_writer_container {
    border-color: var(--hd-primary, #2e4a43);
    box-shadow: 0 2px 7px rgba(46, 74, 67, 0.42);
}

#onlinegame_loststroke .loststroke_mzg_grid {
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

#onlinegame_loststroke .loststroke_mzg_grid line {
    stroke: #e9e9e9;
    stroke-dasharray: 5 5;
    stroke-opacity: 1;
    stroke-width: 0.5;
}

#onlinegame_loststroke .loststroke_writer {
    height: 300px;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    width: 300px;
    z-index: 2;
}

#onlinegame_loststroke .loststroke_writer svg {
    display: block;
    transition: opacity 0.15s ease;
}

#onlinegame_loststroke .loststroke_game_status {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    max-width: 300px;
    min-height: 24px;
    width: 100%;
}

#onlinegame_loststroke .loststroke_errors {
    color: #333;
    font-size: 15px;
}

#onlinegame_loststroke #loststroke_feedback {
    color: #2f7b39;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
    text-align: center;
    max-width: 302px;
    width: 100%;
}

#onlinegame_loststroke[data-word-size="2"] .loststroke_word,
#onlinegame_loststroke[data-word-size="2"] .loststroke_game_status,
#onlinegame_loststroke[data-word-size="2"] #loststroke_feedback {
    max-width: 616px;
}

#onlinegame_loststroke[data-word-size="3"] .loststroke_word,
#onlinegame_loststroke[data-word-size="3"] .loststroke_game_status,
#onlinegame_loststroke[data-word-size="3"] #loststroke_feedback {
    max-width: 930px;
}

#onlinegame_loststroke #loststroke_feedback.loststroke_feedback_error {
    color: var(--hd-error, #b73535);
}

.chinesetools-title h1 {
    text-shadow: 0px 5px 11px rgba(46, 74, 67, 0.42);
}

#onlinegame_loststroke .loststroke_game_actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#onlinegame_loststroke .game_setting,
#onlinegame_res .game_setting {
    color: var(--hd-primary, #2e4a43);
    display: none;
    font-size: 13px;
}

#onlinegame_res h1 {
    color: var(--hd-primary, #2e4a43);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

#onlinegame_res .loststroke_result_summary {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(46, 74, 67, 0.2);
    border-radius: 4px;
    margin-bottom: 20px;
    max-width: 620px;
    padding: 12px 20px;
    text-align: center;
    width: 100%;
}

#onlinegame_res .loststroke_result_label {
    color: #555;
    font-size: 13px;
    margin-bottom: 4px;
}

#onlinegame_res .loststroke_result_characters {
    color: var(--hd-primary, #2e4a43);
    font-size: 30px;
    letter-spacing: 4px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#onlinegame_res .loststroke_result_errors {
    color: #333;
    font-size: 16px;
    margin-top: 7px;
}

#onlinegame_res .chinesetools-screen_buttons {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 769px) {
    #loststroke .output_block_p {
        min-height: auto;
        padding: 0;
    }

    #loststroke #result_preview {
        height: 300px;
        min-height: 300px;
    }

    #onlinegame_loststroke,
    #onlinegame_res {
        min-height: 430px;
        padding: 20px 10px;
    }

    #onlinegame_loststroke .loststroke_word {
        gap: 4px;
    }

    #onlinegame_loststroke .loststroke_pinyin {
        font-size: 16px;
        line-height: 26px;
        min-height: 26px;
    }

    #onlinegame_loststroke .game_setting,
    #onlinegame_res .game_setting {
        display: inline-block;
    }
}
