* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

body {
    min-height: 100vh;
}

.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.25), transparent 35%),
        linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.card {
    width: 100%;
    max-width: 440px;
    padding: 28px 24px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.mode-badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.18);
}

.status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
}

.status-icon.loading {
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: #60a5fa;
    animation: spin 1s linear infinite;
}

.status-icon.success {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.status-icon.success::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 18px;
    width: 16px;
    height: 28px;
    border-right: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
    transform: rotate(45deg);
}

.status-icon.error {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.status-icon.error::before,
.status-icon.error::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 34px;
    width: 4px;
    height: 36px;
    background: #ffffff;
    border-radius: 9999px;
}

.status-icon.error::before {
    transform: rotate(45deg);
}

.status-icon.error::after {
    transform: rotate(-45deg);
}

.status-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: #ffffff;
}

.status-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #e5e7eb;
    white-space: normal;
}

.status-hint {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #93c5fd;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}