/* _content/Hw.Skriv.App/Pages/Home.razor.rz.scp.css */
.home-shell[b-yhb5dhuwcl] {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: #323437;
}

.typing-panel[b-yhb5dhuwcl] {
    position: relative;
    width: min(100%, 58rem);
    min-height: 20rem;
    padding: 2.5rem;
    border: 1px solid #3f4245;
    border-radius: 8px;
    background: #2c2e31;
    color: #d1d0c5;
    cursor: text;
    outline: none;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    transition: border-color 160ms ease, opacity 160ms ease;
}

.typing-panel.focused[b-yhb5dhuwcl] {
    border-color: rgba(226, 183, 20, 0.62);
}

.typing-panel.blurred .typing-target[b-yhb5dhuwcl] {
    opacity: 0.55;
}

.typing-panel.complete[b-yhb5dhuwcl] {
    border-color: rgba(97, 175, 129, 0.75);
}

.typing-stats[b-yhb5dhuwcl] {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    color: #8a8c90;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.typing-stats strong[b-yhb5dhuwcl] {
    color: #e2b714;
    font-size: 1rem;
    font-weight: 700;
}

.typing-target[b-yhb5dhuwcl] {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.28em 0.16em;
    min-height: 7.6em;
    color: #646669;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 2.35rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    transition: opacity 160ms ease;
}

.prompt-word[b-yhb5dhuwcl] {
    display: inline-flex;
    align-items: baseline;
}

.prompt-char[b-yhb5dhuwcl] {
    position: relative;
    display: inline-block;
    min-width: 0.62em;
    color: #646669;
    white-space: pre;
}

.prompt-char.space[b-yhb5dhuwcl] {
    min-width: 0.42em;
}

.prompt-char.correct[b-yhb5dhuwcl] {
    color: #d1d0c5;
}

.prompt-char.incorrect[b-yhb5dhuwcl] {
    color: #ca4754;
}

.prompt-char.space.incorrect[b-yhb5dhuwcl]::after {
    position: absolute;
    right: 0.1em;
    bottom: 0.12em;
    left: 0.1em;
    height: 0.12em;
    border-radius: 999px;
    background: #ca4754;
    content: "";
}

.typing-caret[b-yhb5dhuwcl] {
    position: absolute;
    top: 0.08em;
    left: -0.07em;
    z-index: 2;
    width: 0.08em;
    height: 1.1em;
    border-radius: 999px;
    background: #e2b714;
    animation: caret-blink-b-yhb5dhuwcl 1s steps(2, start) infinite;
}

.end-caret-anchor[b-yhb5dhuwcl] {
    position: relative;
    display: inline-block;
    width: 0.62em;
    height: 1em;
}

.end-caret-anchor .typing-caret[b-yhb5dhuwcl] {
    left: 0;
}

.typing-input[b-yhb5dhuwcl] {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    resize: none;
    opacity: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    outline: none;
}

@media (max-width: 640px) {
    .typing-panel[b-yhb5dhuwcl] {
        min-height: 17rem;
        padding: 1.5rem;
    }

    .typing-stats[b-yhb5dhuwcl] {
        justify-content: flex-start;
        margin-bottom: 1.25rem;
    }

    .typing-target[b-yhb5dhuwcl] {
        min-height: 9.2em;
        font-size: 1.55rem;
    }
}

@keyframes caret-blink-b-yhb5dhuwcl {
    50% {
        opacity: 0;
    }
}
