:root {
    --background: #050505;
    --surface: #0d0d0d;
    --surface-hover: #151515;
    --text: #f5f5f5;
    --text-muted: #888;
    --text-subtle: #555;
    --border: #252525;
    --accent: #dc2626;
    --accent-hover: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgb(220 38 38 / 12%), transparent 32%),
        var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

main {
    width: min(90%, 760px);
    text-align: center;
}

.brand {
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

h1 span {
    color: var(--accent);
}

.subtitle {
    max-width: 540px;
    margin: 28px auto 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.action {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.action:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.primary {
    border-color: var(--accent);
    background: var(--accent);
}

.primary:hover {
    background: var(--accent-hover);
}

.status {
    margin-top: 24px;
    color: var(--text-subtle);
    font-size: 0.75rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 10px rgb(220 38 38 / 65%);
}

.status-dot.offline {
    background: var(--text-subtle);
    box-shadow: none;
}

@media (max-width: 520px) {
    h1 {
        font-size: 3.4rem;
    }

    .actions {
        flex-direction: column;
    }

    .action {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action {
        transition: none;
    }
}

/* 아이콘 크기 및 정렬 수정 */
.btn-icon {
    width: 0.95em;   /* 1.25em에서 0.95em으로 크기를 대폭 축소 (글자 크기와 유사하게) */
    height: 0.95em;
    flex-shrink: 0; 
}

/* (선택 사항) 아이콘과 글자 간격이 너무 넓다면 gap도 조금 줄여주세요 */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;       /* 8px에서 6px로 축소 */
    text-decoration: none;
    vertical-align: middle;
}
