
.cch-typing-page {
    max-width: 1120px;
    margin: 0 auto 44px;
    padding: 22px;
    color: #183046;
    font-family: inherit;
}

.cch-typing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7d6 0%, #e7fbff 54%, #f2edff 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 18px 45px rgba(38, 58, 92, 0.14);
}

.cch-typing-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: #0f766e;
    font-weight: 800;
    font-size: 14px;
}

.cch-typing-hero h1 {
    margin: 12px 0 8px;
    color: #12324a;
    font-size: 34px;
    line-height: 1.15;
}

.cch-typing-hero p {
    margin: 0;
    max-width: 620px;
    color: #34546b;
    font-size: 17px;
}

.cch-typing-scoreboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(84px, 1fr));
    gap: 10px;
}

.cch-typing-scoreboard div {
    min-width: 84px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(18, 50, 74, 0.08);
}

.cch-typing-scoreboard span {
    display: block;
    color: #5a7183;
    font-size: 13px;
    font-weight: 700;
}

.cch-typing-scoreboard strong {
    display: block;
    color: #f97316;
    font-size: 25px;
    line-height: 1.2;
}


.cch-typing-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.cch-typing-guide-card {
    padding: 16px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d9edf0;
    box-shadow: 0 10px 28px rgba(38, 58, 92, 0.08);
}

.cch-typing-guide-card strong {
    display: block;
    margin-bottom: 6px;
    color: #0f766e;
    font-size: 16px;
}

.cch-typing-guide-card p {
    margin: 0;
    color: #34546b;
    font-size: 15px;
    line-height: 1.55;
}


.cch-typing-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cch-typing-sections button {
    min-height: 44px;
    border: 1px solid #bfe5e8;
    border-radius: 8px;
    padding: 0 18px;
    background: #ffffff;
    color: #34546b;
    font-weight: 900;
    cursor: pointer;
}

.cch-typing-sections button.is-active {
    border-color: #14b8a6;
    background: #0f766e;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.cch-typing-section-note,
.cch-typing-soon {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f7fbff;
    border: 1px solid #d9edf0;
}

.cch-typing-section-note strong,
.cch-typing-soon strong {
    display: block;
    color: #12324a;
    font-size: 17px;
}

.cch-typing-section-note span,
.cch-typing-soon span {
    display: block;
    margin-top: 4px;
    color: #34546b;
    font-size: 15px;
    line-height: 1.5;
}

.cch-typing-soon {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f7fbff 0%, #fff7d6 100%);
}

.cch-typing-soon[hidden],
.cch-typing-workspace[hidden] {
    display: none !important;
}


.cch-typing-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cch-typing-levels button {
    min-height: 38px;
    border: 1px solid #d9edf0;
    border-radius: 8px;
    padding: 0 13px;
    background: #ffffff;
    color: #34546b;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.cch-typing-levels button.is-active {
    border-color: #f97316;
    background: #fff7ed;
    color: #9a3412;
}

.cch-typing-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cch-typing-progress span,
.cch-typing-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 4px 11px;
    background: #eef8ff;
    color: #24536c;
    font-size: 13px;
    font-weight: 850;
}

.cch-typing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    margin-top: 10px;
}

.cch-typing-badges span {
    background: #fff7d6;
    color: #92400e;
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.25);
}

.cch-typing-telex {
    margin: -4px 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f0fdfa;
    border: 1px solid #bfe5e8;
    color: #34546b;
    font-size: 15px;
    line-height: 1.45;
}

.cch-typing-telex strong {
    color: #0f766e;
}

.cch-typing-telex em {
    padding: 0 6px;
    color: #f97316;
    font-style: normal;
    font-weight: 900;
}

.cch-typing-telex[hidden] {
    display: none !important;
}

.cch-typing-finger-hint {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d9edf0;
    color: #12324a;
    font-size: 14px;
    font-weight: 850;
    text-align: center;
}

.cch-typing-hand-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 2px;
}

.cch-typing-hand-legend span {
    min-height: 26px;
    border-radius: 999px;
    padding: 3px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
}

.cch-typing-hand-legend .is-left { background: #2563eb; }
.cch-typing-hand-legend .is-right { background: #db2777; }
.cch-typing-hand-legend .is-thumb { background: #f97316; }

.cch-typing-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    margin-top: 18px;
}

.cch-typing-card,
.cch-typing-keyboard {
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d9edf0;
    box-shadow: 0 12px 32px rgba(38, 58, 92, 0.1);
}

.cch-typing-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.cch-typing-complete {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    transform: translateY(-12px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    padding: 9px 13px;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cch-typing-card.is-complete .cch-typing-complete {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cch-typing-burst {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.cch-typing-burst span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 15px;
    border-radius: 3px;
    background: var(--burst-color, #f97316);
    transform: translate(-50%, -50%) rotate(var(--burst-rotate, 0deg));
    animation: cchTypingBurst 820ms ease-out forwards;
    animation-delay: var(--burst-delay, 0ms);
}

@keyframes cchTypingBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6) rotate(var(--burst-rotate, 0deg));
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--burst-x, 0px)), calc(-50% + var(--burst-y, -90px))) scale(1.05) rotate(calc(var(--burst-rotate, 0deg) + 190deg));
    }
}

.cch-typing-label {
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.cch-typing-sentence {
    min-height: 94px;
    margin: 12px 0 16px;
    padding: 18px;
    border-radius: 8px;
    background: #f7fbff;
    border: 1px dashed #9bd6df;
    font-size: 30px;
    line-height: 1.55;
    font-weight: 800;
    word-break: break-word;
}

.cch-typing-char {
    display: inline-block;
    min-width: 0.34em;
    color: #a8b6c2;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.cch-typing-char.is-done {
    color: #ffffff;
    background: #22c55e;
    border-radius: 5px;
    padding: 0 2px;
    transform: translateY(-1px);
}

.cch-typing-char.is-current {
    color: #12324a;
    background: #fde68a;
    border-radius: 5px;
    padding: 0 2px;
}

.cch-typing-char.is-wrong {
    color: #ffffff;
    background: #ef4444;
    border-radius: 5px;
    padding: 0 2px;
}

.cch-typing-input {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    border: 2px solid #9bd6df;
    padding: 0 16px;
    color: #12324a;
    font-size: 22px;
    font-weight: 700;
    box-shadow: none;
}

.cch-typing-input:focus {
    border-color: #14b8a6;
    outline: 3px solid rgba(20, 184, 166, 0.16);
}

.cch-typing-feedback {
    min-height: 30px;
    margin-top: 12px;
    color: #34546b;
    font-weight: 800;
}

.cch-typing-feedback.is-good {
    color: #15803d;
}

.cch-typing-feedback.is-wrong {
    color: #dc2626;
}

.cch-typing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cch-typing-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.cch-typing-actions button:first-child {
    background: #0f766e;
}

.cch-typing-actions button:last-child {
    background: #f97316;
}

.cch-typing-actions .cch-typing-sound-toggle {
    background: #7c3aed;
}

.cch-typing-actions .cch-typing-sound-toggle:not(.is-on) {
    background: #64748b;
}

.cch-typing-keyboard {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: #f9fafb;
}

.cch-typing-key-row {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.cch-typing-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid #d7e3ea;
    color: #34546b;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 3px 0 #d7e3ea;
    transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}


.cch-typing-key.cch-finger-left-pinky,
.cch-typing-key.cch-finger-left-ring,
.cch-typing-key.cch-finger-left-middle,
.cch-typing-key.cch-finger-left-index {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 3px 0 #bfdbfe;
}

.cch-typing-key.cch-finger-right-index,
.cch-typing-key.cch-finger-right-middle,
.cch-typing-key.cch-finger-right-ring,
.cch-typing-key.cch-finger-right-pinky {
    border-color: #fbcfe8;
    background: #fdf2f8;
    color: #be185d;
    box-shadow: 0 3px 0 #fbcfe8;
}

.cch-typing-key.cch-finger-thumbs {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
    box-shadow: 0 3px 0 #fed7aa;
}

.cch-typing-key.is-next {
    outline: 3px solid rgba(249, 115, 22, 0.35);
    transform: translateY(-2px);
}

.cch-typing-key.is-space {
    width: 180px;
}

.cch-typing-key.is-active {
    transform: translateY(3px);
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 #22c55e !important;
}

@media (max-width: 900px) {
    .cch-typing-page {
        padding: 14px;
    }

    .cch-typing-hero,
    .cch-typing-guide,
    .cch-typing-workspace,
    .cch-typing-seo-copy {
        grid-template-columns: 1fr;
    }

    .cch-typing-scoreboard {
        grid-template-columns: repeat(3, 1fr);
    }

    .cch-typing-sections button,
    .cch-typing-levels button {
        flex: 1 1 120px;
    }
}

@media (max-width: 560px) {
    .cch-typing-hero {
        padding: 20px;
    }

    .cch-typing-hero h1 {
        font-size: 27px;
    }

    .cch-typing-scoreboard {
        grid-template-columns: 1fr;
    }

    .cch-typing-sentence {
        font-size: 24px;
    }

    .cch-typing-keyboard {
        padding: 12px 8px;
    }

    .cch-typing-key-row {
        gap: 4px;
    }

    .cch-typing-key {
        width: 28px;
        height: 32px;
        font-size: 12px;
    }

    .cch-typing-key.is-space {
        width: 150px;
    }

    .cch-typing-seo-copy {
        padding: 16px;
    }

    .cch-typing-seo-grid {
        grid-template-columns: 1fr;
    }
}


.cch-typing-seo-copy {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    margin-top: 22px;
    padding: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 54%, #fff7ed 100%);
    border: 1px solid #d9edf0;
    box-shadow: 0 12px 32px rgba(38, 58, 92, 0.08);
}

.cch-typing-seo-head span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
}

.cch-typing-seo-head h2 {
    margin: 10px 0 8px;
    color: #12324a;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.cch-typing-seo-head p {
    margin: 0;
    color: #34546b;
    font-size: 15px;
    line-height: 1.65;
}

.cch-typing-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cch-typing-seo-grid div {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #d9edf0;
}

.cch-typing-seo-grid strong {
    display: block;
    margin-bottom: 5px;
    color: #0f766e;
    font-size: 15px;
    font-weight: 900;
}

.cch-typing-seo-grid p {
    margin: 0;
    color: #34546b;
    font-size: 14px;
    line-height: 1.5;
}
