/* 가입 신청 4단계 화면 (2026-11-03, js/signup-wizard.js). signup.html 의 색 변수(--primary-color · --card-bg …)를 그대로 쓴다. */
.signup-wizard { margin-top: 8px; display: grid; gap: 18px; }
.signup-wizard[hidden] { display: none !important; }
.sw-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sw-mono { font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.01em; }

/* 단계 표시 */
.sw-progress { display: grid; gap: 8px; }
.sw-progress-top { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; color: var(--text-sub); }
.sw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sw-steps li { display: grid; gap: 6px; font-size: 0.8rem; color: var(--text-sub); }
.sw-bar { height: 5px; border-radius: 999px; background: var(--border-color); }
.sw-steps li.is-done .sw-bar, .sw-steps li.is-current .sw-bar { background: var(--primary-color); }
.sw-steps li.is-current { color: var(--text-main); font-weight: 800; }

/* 반려 안내 */
.sw-reject { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--warn-border); background: var(--warn-bg); }
.sw-reject strong { display: flex; align-items: center; gap: 8px; color: #b45309; }
.sw-reject p { margin: 6px 0 0; color: var(--text-main); line-height: 1.55; font-size: 0.92rem; }
.sw-reject .sw-reject-reason { color: var(--text-sub); font-size: 0.86rem; }
[data-theme="dark"] .sw-reject strong { color: #fdba74; }

.sw-step { display: grid; gap: 16px; }
.sw-title { margin: 0; font-size: 1.35rem; line-height: 1.35; letter-spacing: -0.02em; outline: none; }
.sw-desc { margin: -8px 0 0; color: var(--text-sub); line-height: 1.6; font-size: 0.95rem; }
.sw-label { font-size: 0.95rem; font-weight: 800; }
.sw-label-sm { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-sub); margin-bottom: 8px; }
.sw-hint { color: var(--text-sub); font-size: 0.82rem; line-height: 1.5; }
.sw-error { margin: 0; color: #be123c; font-size: 0.88rem; font-weight: 700; line-height: 1.5; }
[data-theme="dark"] .sw-error { color: #fda4af; }
.sw-good { color: #15803d; }
.sw-bad { color: #be123c; }
[data-theme="dark"] .sw-good { color: #86efac; }
[data-theme="dark"] .sw-bad { color: #fda4af; }
.sw-field { display: grid; gap: 8px; }
.sw-field.is-flag { padding: 12px; border-radius: 16px; border: 2px solid var(--warn-border); }
.sw-linkbtn { appearance: none; border: 0; background: none; padding: 6px 4px; min-height: 36px; color: var(--primary-color); font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.sw-link { color: var(--primary-color); font-weight: 700; font-size: 0.85rem; }
.sw-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 4px; }
.sw-actions .sw-next:only-child { grid-column: 1 / -1; }
.sw-actions .btn { min-height: 52px; }
.sw-actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* 1단계 */
.sw-platforms { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.sw-platform { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px; border: 1px solid var(--border-color); border-radius: 18px; cursor: pointer; background: var(--card-bg); }
.sw-platform input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary-color); flex: none; }
.sw-platform.is-selected { border: 2px solid var(--primary-color); padding: 13px 15px; background: rgba(37, 99, 235, 0.05); }
.sw-platform-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.sw-platform-text strong { font-size: 1.05rem; }
.sw-platform-text span { color: var(--text-sub); font-size: 0.88rem; }
.sw-platform-text em { font-style: normal; color: #b45309; font-size: 0.82rem; font-weight: 700; }
[data-theme="dark"] .sw-platform-text em { color: #fdba74; }
.sw-platform-icon { font-size: 1.5rem; color: var(--text-sub); flex: none; }
.sw-platform.is-selected .sw-platform-icon { color: var(--primary-color); }
.sw-note { margin: -4px 0 0; display: flex; gap: 6px; align-items: flex-start; color: var(--text-sub); font-size: 0.86rem; line-height: 1.5; }
.sw-note i { margin-top: 3px; }
.sw-policy { padding: 16px 18px; border-radius: 18px; border: 1px solid #fdba74; background: linear-gradient(135deg, rgba(251, 146, 60, 0.14), rgba(249, 115, 22, 0.08)); }
.sw-policy strong { display: flex; align-items: center; gap: 8px; color: #c2410c; margin-bottom: 6px; }
.sw-policy p { margin: 0; color: #9a3412; line-height: 1.6; font-size: 0.9rem; }
[data-theme="dark"] .sw-policy { border-color: rgba(251, 146, 60, 0.4); }
[data-theme="dark"] .sw-policy strong { color: #fdba74; }
[data-theme="dark"] .sw-policy p { color: #fed7aa; }

/* 2단계: 되는 화면 모음 */
.sw-ok { padding: 16px; border: 1px solid var(--border-color); border-radius: 18px; display: grid; gap: 12px; }
.sw-ok h4, .sw-bad-list h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.sw-ok ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; line-height: 1.55; font-size: 0.93rem; }
.sw-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
@media (min-width: 720px) { .sw-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw-tile { display: grid; gap: 6px; min-width: 0; }
.sw-tile-label { font-size: 0.8rem; font-weight: 700; }
.sw-mock { height: 78px; border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 0 10px; overflow: hidden; background: #2a2f3a; color: #fff; }
.sw-mock-ea { background: #232a5c; }
.sw-mock-dark { background: #2a2f3a; }
.sw-mock-fc { background: #132a2a; justify-content: flex-end; gap: 6px; }
.sw-mock-teal { background: #1e4d4a; flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
.sw-mock-light { background: #fff; color: #1b1f24; border: 1px solid #d3d7dc; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
.sw-mock-light.is-center { align-items: center; }
.sw-mock-ps { background: #2b3440; }
.sw-mock-xbox { background: #1f3b1f; }
.sw-mock-photo { background: #8c96a0; justify-content: center; }
.sw-mock-screen { width: 78%; height: 54px; border-radius: 4px; background: #2a2f3a; transform: rotate(-5deg); display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.sw-mock-avatar { width: 30px; height: 30px; border-radius: 50%; background: #6b747e; flex: none; }
.sw-mock-avatar.is-square { width: 26px; height: 26px; border-radius: 6px; }
.sw-mock-avatar.is-small { width: 20px; height: 20px; }
.sw-mock-light .sw-mock-avatar { background: #c9ced4; }
.sw-mock-col { display: grid; gap: 4px; min-width: 0; }
.sw-mock-big { font-size: 0.95rem; font-weight: 800; white-space: nowrap; }
.sw-mock-mid { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.sw-mock-name { font-size: 0.86rem; white-space: nowrap; }
.sw-mock-small { font-size: 0.66rem; color: #c9ced4; white-space: nowrap; }
.sw-mock-head { font-size: 0.78rem; font-weight: 800; }
.sw-mock-label { font-size: 0.66rem; color: #5f6873; }
.sw-mock-line { font-size: 0.7rem; font-weight: 700; line-height: 1.6; }
.sw-mock-pill { justify-self: start; font-size: 0.6rem; font-weight: 800; background: #d31145; border-radius: 999px; padding: 1px 6px; }
.sw-mock-chev { margin-left: auto; color: #aab2bb; font-size: 0.7rem; }
.sw-mock-badge { width: 16px; height: 16px; border-radius: 50%; background: #fff; color: #132a2a; font-size: 0.45rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sw-mock-dot { width: 7px; height: 7px; border-radius: 50%; background: #00a84d; flex: none; }
.sw-mock-sep { width: 1px; height: 14px; background: #59626c; flex: none; }
.sw-mock-box { width: 12px; height: 12px; border: 1px solid #aab2bb; border-radius: 2px; flex: none; }
.sw-mock-btn { width: 56px; height: 9px; border-radius: 3px; background: #d5dadf; }
.sw-mock-dots { display: flex; gap: 4px; }
.sw-mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d5dadf; }
.sw-hl { padding: 0 3px; border: 2px dashed #f2b000; border-radius: 4px; }
.sw-callout { padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); border: 1px solid var(--warn-border); display: grid; gap: 4px; }
.sw-callout strong { color: #b45309; font-size: 0.9rem; }
.sw-callout p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-main); }
[data-theme="dark"] .sw-callout strong { color: #fdba74; }
.sw-bad-list { display: grid; gap: 10px; }
.sw-bad-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sw-bad-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 14px; }
.sw-bad-list li.is-locked { border: 2px solid #e11d48; padding: 11px 13px; }
.sw-bad-list li > span:last-child { display: grid; gap: 2px; font-size: 0.86rem; color: var(--text-sub); line-height: 1.45; }
.sw-bad-list li strong { color: var(--text-main); font-size: 0.93rem; }
.sw-bad-list li em { font-style: normal; color: #be123c; font-weight: 800; display: flex; align-items: center; gap: 5px; }
[data-theme="dark"] .sw-bad-list li em { color: #fda4af; }
.sw-bad-icon { width: 44px; height: 40px; border-radius: 10px; background: rgba(148, 163, 184, 0.16); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-sub); flex: none; }
.sw-upload { min-height: 170px; border: 2px dashed var(--border-color); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; text-align: center; }
.sw-upload-icon { font-size: 1.6rem; color: var(--text-sub); }
.sw-upload-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sw-file-btn { position: relative; min-height: 46px; }
.sw-upload.is-done, .sw-upload.is-blocked { border-style: solid; flex-direction: row; flex-wrap: wrap; text-align: left; justify-content: flex-start; }
.sw-upload.is-blocked { border: 2px solid #e11d48; background: var(--danger-bg); }
.sw-upload-text { display: grid; gap: 4px; flex: 1 1 180px; min-width: 0; }
.sw-upload-text p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-main); }
.sw-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-color); background: #1f252b; flex: none; }
.sw-thumb.is-empty { display: inline-block; }
.sw-thumb.is-small { width: 84px; height: 56px; }

/* 3단계 */
.sw-id-layout { display: grid; gap: 18px; }
@media (min-width: 860px) { .sw-id-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .sw-photo { position: sticky; top: 90px; } }
.sw-id-main { display: grid; gap: 16px; min-width: 0; }
.sw-photo { border: 1px solid var(--border-color); border-radius: 18px; overflow: hidden; }
.sw-photo-img { background: #1f252b; min-height: 140px; display: flex; align-items: center; justify-content: center; }
.sw-photo-img img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.sw-photo-actions { display: flex; justify-content: flex-end; gap: 4px; padding: 4px 10px; }
.sw-chips { display: grid; gap: 8px; }
.sw-chip { appearance: none; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border: 1px solid var(--border-color); border-radius: 14px; background: transparent; color: var(--text-main); font: inherit; cursor: pointer; text-align: left; }
.sw-chip .sw-mono { font-size: 1.02rem; font-weight: 700; word-break: break-all; }
.sw-chip-tag { font-size: 0.78rem; color: var(--text-sub); flex: none; }
.sw-chip.is-primary { border: 2px solid var(--primary-color); background: rgba(37, 99, 235, 0.07); padding: 0 13px; }
.sw-chip.is-primary .sw-chip-tag { color: var(--primary-color); font-weight: 800; }
.sw-id-input { width: 100%; min-height: 56px; border: 2px solid var(--text-main); border-radius: 14px; background: transparent; color: var(--text-main); padding: 0 14px; font-size: 1.25rem; font-weight: 700; }
.sw-id-input:focus { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }
[data-theme="dark"] .sw-id-input { background: rgba(15, 23, 42, 0.55); border-color: #94a3b8; }
.sw-cells-box { padding: 14px; border: 1px solid var(--border-color); border-radius: 16px; }
.sw-cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 34px)); gap: 4px; }
.sw-cell { height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: "JetBrains Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: 1.05rem; border: 1px solid var(--border-color); box-sizing: border-box; }
.sw-cell.is-upper { background: var(--text-main); color: var(--card-bg); border-color: var(--text-main); }
.sw-cell.is-symbol, .sw-cell.is-space { background: rgba(148, 163, 184, 0.18); color: var(--text-sub); }
.sw-cell.is-look { border: 2px solid #c2410c; background: #fff7ed; color: #9a3412; }
[data-theme="dark"] .sw-cell.is-look { background: rgba(234, 88, 12, 0.18); color: #fdba74; border-color: #fb923c; }
.sw-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 0.8rem; color: var(--text-sub); }
.sw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw-swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border-color); display: inline-block; }
.sw-swatch.is-upper { background: var(--text-main); }
.sw-swatch.is-symbol { background: rgba(148, 163, 184, 0.3); }
.sw-swatch.is-look { border: 2px solid #c2410c; background: #fff7ed; }
.sw-look-hint { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); font-size: 0.84rem; line-height: 1.5; }
.sw-result { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border-color); display: grid; gap: 8px; }
.sw-result strong { display: flex; align-items: center; gap: 8px; font-size: 0.98rem; }
.sw-result p { margin: 0; line-height: 1.55; font-size: 0.9rem; }
.sw-result.is-ok { border-color: #86efac; background: rgba(34, 197, 94, 0.08); }
.sw-result.is-ok strong { color: #15803d; }
.sw-result.is-warn { border: 2px solid #ea580c; background: var(--warn-bg); padding: 13px 15px; }
.sw-result.is-warn strong { color: #c2410c; }
.sw-result.is-info { background: rgba(148, 163, 184, 0.08); }
[data-theme="dark"] .sw-result.is-ok strong { color: #86efac; }
[data-theme="dark"] .sw-result.is-warn strong { color: #fdba74; }
.sw-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-result-actions .btn { min-height: 46px; }
.sw-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sw-choice-pos { font-size: 0.84rem; font-weight: 700; min-width: 92px; }
.sw-char-opt { appearance: none; min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-main); font: inherit; font-size: 0.84rem; cursor: pointer; }
.sw-char-opt b { font-size: 1.2rem; }
.sw-char-opt.is-selected { border: 2px solid var(--primary-color); padding: 0 11px; background: rgba(37, 99, 235, 0.08); }
.sw-compare { margin: 0; display: grid; grid-template-columns: 48px 1fr; gap: 4px 10px; font-size: 0.88rem; }
.sw-compare dt { color: var(--text-sub); }
.sw-compare dd { margin: 0; font-weight: 700; font-size: 1.02rem; word-break: break-all; }
.sw-confirmed { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--text-sub); }

/* 4단계 */
.sw-summary { border: 1px solid var(--border-color); border-radius: 18px; }
.sw-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; }
.sw-row + .sw-row { border-top: 1px solid var(--border-color); }
.sw-row-key { width: 76px; flex: none; font-size: 0.85rem; color: var(--text-sub); }
.sw-row-val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sw-row-val.is-stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.sw-big-id { font-size: 1.25rem; word-break: break-all; }
.sw-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; }
.sw-badge.is-ok { background: rgba(34, 197, 94, 0.14); color: #15803d; }
.sw-badge.is-warn { background: var(--warn-bg); color: #c2410c; }
.sw-badge.is-info { background: rgba(148, 163, 184, 0.16); color: var(--text-sub); }
[data-theme="dark"] .sw-badge.is-ok { color: #86efac; }
[data-theme="dark"] .sw-badge.is-warn { color: #fdba74; }
.sw-before { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.sw-before legend { padding: 0 0 8px; }
.sw-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sw-seg label { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-color); border-radius: 14px; cursor: pointer; font-weight: 700; font-size: 0.92rem; text-align: center; padding: 0 8px; }
.sw-seg label.is-selected { border: 2px solid var(--primary-color); }
.sw-seg input { accent-color: var(--primary-color); }
.sw-before textarea { width: 100%; border: 1px solid var(--border-color); border-radius: 14px; background: transparent; color: var(--text-main); padding: 12px 14px; font: inherit; resize: vertical; }
.sw-warn-text { margin: 0; color: #b45309; font-size: 0.85rem; line-height: 1.55; }
[data-theme="dark"] .sw-warn-text { color: #fdba74; }
.sw-check { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border-color); background: rgba(148, 163, 184, 0.08); line-height: 1.55; font-size: 0.92rem; cursor: pointer; }
.sw-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary-color); flex: none; }
.sw-check .sw-mono { font-weight: 800; }
.sw-after { text-align: center; margin: 0; }

/* 크게 보기 */
.sw-zoom { position: fixed; inset: 0; z-index: 2000; background: rgba(2, 6, 23, 0.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sw-zoom-inner { display: grid; gap: 12px; justify-items: center; max-width: 100%; max-height: 100%; }
.sw-zoom img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 12px; background: #111; }

@media (max-width: 560px) {
    .sw-title { font-size: 1.2rem; }
    .sw-cells { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
    .sw-cell { height: 36px; font-size: 0.95rem; }
    .sw-choice-pos { min-width: 0; width: 100%; }
}
