.page-error {
    background: radial-gradient(circle at 50% 0%, rgba(255, 184, 77, 0.1) 0%, var(--bg-deep) 45%);
    min-height: 100vh;
}

.error-page {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    position: relative;
}

.page-error .lang-toolbar {
    padding-top: calc(var(--header-height) + 0.5rem);
}

.error-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0 4rem;
    max-width: 520px;
    margin: 0 auto;
}

.error-mascot {
    width: clamp(80px, 14vw, 96px);
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 10px 28px rgba(255, 184, 77, 0.22));
}

.error-code {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.error-panel h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.error-lead {
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.error-watermark {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    opacity: 0.06;
    pointer-events: none;
    color: var(--accent);
}

.error-watermark img {
    width: 120px;
    height: auto;
}

.invite-code-line {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin: -0.5rem 0 1.5rem;
    letter-spacing: 0.02em;
}

.invite-code-line strong {
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) {
    .error-watermark {
        display: none;
    }
}
