.not-found {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.back-link {
    margin-left: auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 14px;
}
.back-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.habitat {
    flex: 1;
    padding-block: 52px 70px;
    text-align: center;
}
.habitat .eyebrow {
    font-family: Consolas, monospace;
    color: var(--muted);
}
.error-code {
    position: relative;
    width: fit-content;
    margin: 10px auto 22px;
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(130px, 20vw, 260px);
    line-height: 1;
    letter-spacing: -.06em;
    color: var(--ink);
}
.address-label {
    position: absolute;
    right: -44px;
    bottom: 6px;
    padding: 12px 18px;
    font: 700 14px "Yu Gothic", Meiryo, sans-serif;
    letter-spacing: 0;
    background: var(--yellow);
    border: 1px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-7deg);
    white-space: nowrap;
}
.habitat h1 {
    font-size: clamp(27px, 3.4vw, 42px);
    line-height: 1.55;
    letter-spacing: -.04em;
    margin: 0 0 18px;
}
.error-description {
    font-size: 16px;
    color: var(--muted);
    line-height: 2;
    margin: 0 0 28px;
}
.habitat .join-button {
    margin-inline: auto;
    text-align: left;
}
.habitat-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 22px;
}
.resident-note {
    font-size: 14px;
    margin-block: 20px;
}
.resident-note span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 7px;
}
.resident-note p {
    margin: 5px 0;
}
#habitat-message {
    font-size: 12px;
    color: var(--muted);
    min-height: 2em;
    max-width: 440px;
}
.not-found .slime-speech {
    width: max-content;
    max-width: min(220px, calc(100vw - 32px));
    white-space: normal;
    line-height: 1.7;
    padding: 9px 12px;
    text-align: center;
    box-shadow: 2px 3px 0 #19273820;
}
.not-found .owner-slime.speaking .slime-speech {
    opacity: 1;
}
.not-found .owner-slime.speaking {
    z-index: 2;
}
.not-found .owner-slime.crafting .slime-speech {
    background: var(--yellow);
    color: var(--ink);
    border: 1px solid var(--ink);
}
.not-found .owner-slime.speech-below .slime-speech {
    bottom: auto;
    top: calc(100% + 7px);
}
.creation-badge {
    display: grid;
    place-items: center;
    height: 34px;
    border: 1.5px solid var(--ink);
    border-radius: 9px;
    box-shadow: 2px 3px 0 #19273825;
    font: 700 13px Consolas, monospace;
    color: var(--ink);
    background: #e5dcf2;
}
.creation-bot .creation-badge {
    background: #dce8fc;
    border-radius: 3px;
}
.creation-grass .creation-badge {
    background: #e7f3d9;
    border-color: #52723d;
    color: #2d5023;
    border-radius: 15px 15px 7px 7px;
    font-family: "Yu Gothic", Meiryo, sans-serif;
    font-size: 14px;
    white-space: nowrap;
}
@media (max-width: 700px) {
    .not-found .header {
        min-height: 96px;
    }
    .back-link {
        font-size: 12px;
    }
    .habitat {
        padding-block: 40px 50px;
    }
    .address-label {
        right: -18px;
        bottom: -4px;
        font-size: 12px;
        padding: 9px 12px;
    }
    .error-code {
        margin-block: 26px 34px;
    }
    .error-description {
        font-size: 14px;
    }
    .not-found footer {
        gap: 0;
        padding-block: 18px;
    }
}
