/* 계정 전달 페이지 — 디스코드 로고(검정 픽셀 글자)에 맞춘 Cloud Dancer 단일 라이트 테마 */
:root {
  color-scheme: light;
  --bg: #F0EEE9;          /* Cloud Dancer */
  --card: #FAF9F6;
  --field: #F4F2EE;
  --ink: #111111;
  --ink-2: #3A3833;
  --muted: #6E6A62;
  --line: #DEDAD2;
  --line-2: #CFCAC0;
  --ok: #1E7A46;   --ok-bg: #E2F0E6;
  --warn: #7A5200; --warn-bg: #F6EBD2; --warn-line: #E6D1A1;
  --err: #B42318;  --err-bg: #FBE6E2; --err-line: #F0C4BC;
  --radius: 20px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; word-break: keep-all; }   /* 한글이 낱말 중간에서 줄바꿈되지 않게 */
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.page {
  width: 100%; max-width: 430px; margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(48px, env(safe-area-inset-bottom));
}
.page.wide { max-width: 1040px; }

/* 공통 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.note { font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.note.err { border-color: var(--err-line); background: var(--err-bg); color: var(--err); }
.note.strong { font-weight: 700; padding: 10px 14px; }
.note b { font-weight: 700; }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.fine b { color: var(--ink); }
.hint { font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; }
.hint b { color: var(--ink); }

.btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; border-radius: 14px; border: 1px solid transparent; }
.btn.primary { background: var(--ink); color: var(--bg); font-weight: 700; }
.btn.primary:hover { background: #2A2926; }
.btn.primary:disabled { background: #D9D5CD; color: #8E8A82; cursor: default; }
.btn.small { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn.mini { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--field); border-color: var(--line-2); color: var(--ink-2); flex: none; }
.btn.mini:hover { background: #EAE7E0; }
.btn.mini.done { color: var(--ok); border-color: #B8D9C4; background: var(--ok-bg); }
.btn.ghost { height: 52px; background: var(--card); border-color: var(--line-2); color: var(--ink); font-size: 16px; font-weight: 700; }
.btn.ghost:hover { background: #F4F2EE; }

/* 화면 1 */
.brand { display: flex; align-items: flex-end; gap: 8px; padding: 28px 4px 16px; }
.logo { height: 30px; width: auto; image-rendering: pixelated; }
.store { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; line-height: 1; padding-bottom: 1px; }
.pw-card { padding: 24px 20px; gap: 18px; }
.pw-head { display: flex; flex-direction: column; gap: 8px; }
.pw-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.chip { align-self: flex-start; background: #E7E4DD; color: var(--ink-2); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; }
.guide { font-size: 15px; color: var(--ink-2); }
.pw-form { display: flex; flex-direction: column; gap: 10px; }
.pw-form input {
  width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--field);
  color: var(--ink); font: 500 17px var(--mono); letter-spacing: 0.06em; padding: 0 16px; outline: none;
}
.pw-form input::placeholder { font-family: var(--font); letter-spacing: 0; color: #9C978D; }
.pw-form input:focus { border-color: var(--ink); background: #fff; }
.pw-form input:disabled { opacity: 0.6; }
.pw-form .btn { height: 54px; font-size: 17px; }
.spin { width: 16px; height: 16px; border: 2.5px solid rgba(240, 238, 233, 0.35); border-top-color: var(--bg); border-radius: 50%; animation: spin 0.7s linear infinite; }
.help { font-size: 14px; color: var(--muted); line-height: 1.5; }
.help a { font-weight: 600; white-space: nowrap; }

/* 화면 2 — 휴대폰은 한 줄(계정 정보가 캐릭터 바로 아래), 넓으면 두 칸 */
.acct { display: flex; flex-direction: column; gap: 14px; }
.col { display: contents; }
.hero { order: 1; } .account { order: 2; } .check { order: 3; } .summary { order: 4; } .scam { order: 5; } .actions { order: 6; }

.hero {
  position: relative; height: 210px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 70%, #E2DED5 0%, #EAE7E0 45%, #F3F1EC 100%);   /* 가운데를 어둡게 — 흰 후드티가 묻히지 않게 */
  border: 1px solid var(--line);
}
.hero-logo { position: absolute; left: 16px; top: 16px; height: 20px; width: auto; image-rendering: pixelated; }
.badge { position: absolute; right: 14px; top: 12px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
#char { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: calc(100% - 34px); display: block; pointer-events: none; }
.hero.no3d #char { display: none; }
.char-flat { display: none; position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: calc(100% - 34px); }
.hero.no3d .char-flat { display: block; animation: rise 0.9s 0.25s cubic-bezier(0.2, 1.3, 0.4, 1) both; }   /* 3D 처럼 창틀 아래에서 한 번 올라온다 */
@keyframes rise { from { transform: translateY(40%); } }
.char-flat .hood { fill: var(--hood, #F7F5F0); } .char-flat .ink { fill: var(--ink-c, #151515); }
.char-flat .skin { fill: var(--skin, #F3E3D3); } .char-flat .eye { fill: #2A2A30; }
/* 창틀 — 캐릭터가 이 아래에서 얼굴을 내민다 */
.sill { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; margin: 0; display: flex; align-items: center; justify-content: center;
  background: #E3DED4; border-top: 1px solid var(--line-2); box-shadow: 0 -6px 12px -8px rgba(17, 17, 17, 0.25);
  font-size: 12px; color: var(--muted); }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fields { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.field { background: var(--field); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.field .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field .line { display: flex; align-items: center; gap: 8px; }
.field .value { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; word-break: break-all; user-select: text; -webkit-user-select: text; }
.field .value.secret { font-family: var(--mono); letter-spacing: 0.03em; }
.field .btn.mini { height: 34px; }
.memo { font-size: 13px; line-height: 1.55; color: var(--ink-2); background: #EAE7E0; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.memo b { color: var(--muted); font-weight: 600; }

.rows { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.rows dt { color: var(--muted); flex: none; }
.rows dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; }
.order-no { display: flex; align-items: center; gap: 8px; }
.order-no .mono { font-size: 13px; word-break: break-all; user-select: text; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.steps li { counter-increment: s; }
.step { position: relative; display: flex; gap: 12px; cursor: pointer; }
.step .box { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.step .box::before { content: counter(s); }
.step input:checked ~ .box { background: var(--ok); }
.step input:checked ~ .box::before { content: '✓'; }
.step input:checked ~ .tx { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.step input:focus-visible ~ .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.steps a { font-weight: 600; }
.count { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--field); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.count.all { color: var(--ok); background: var(--ok-bg); border-color: #B8D9C4; }
.note.ok { border-color: #B8D9C4; background: var(--ok-bg); color: var(--ok); }
.check .fine { border-top: 1px solid var(--line); padding-top: 14px; }

.scam { background: var(--err-bg); border: 1px solid var(--err-line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.scam h2 { font-size: 15px; font-weight: 700; color: var(--err); }
.scam p { font-size: 14px; line-height: 1.6; color: #7A1F16; }

.actions { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 900px) {
  .acct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .col { display: flex; flex-direction: column; gap: 14px; }
  .col.left { position: sticky; top: 20px; }
  .hero { height: 380px; }
  .hero-logo { height: 24px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, .hero.no3d .char-flat { animation: none; } }
