/* =========================================================================
   /app PWA 셸 스타일 — 화이트 + 샴페인 골드 (홈페이지와 같은 톤)
   · 정식 오픈 잠금 · 로딩 · 오류 안내만 담당합니다. 앱 화면은 Expo 번들(#root)이 그립니다.
   ========================================================================= */
:root {
  --gold-50: #fdf6e4;
  --gold-500: #c89a33;
  --gold-700: #9a7420;
  --gold-900: #6f5316;
  --ink: #22262e;
  --ink-2: #3b4453;
  --muted: #77808f;
  --line: #e7e3d8;
  --line-gold: #e2c987;
}

* { box-sizing: border-box; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

#shell-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-top, 0px));
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 253, 246, .9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}
body.is-ready #shell-top { display: none; }
.sh-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.sh-logo { width: 30px; height: 30px; display: inline-flex; }
.sh-logo svg { width: 30px; height: 30px; }
.sh-name { display: flex; flex-direction: column; line-height: 1.1; }
.sh-name b { font-size: 14px; font-weight: 900; letter-spacing: -.03em; }
.sh-name i { font-size: 8.6px; font-style: normal; font-weight: 800; letter-spacing: .16em; color: var(--gold-900); }
.sh-home {
  font-size: 11.6px; font-weight: 800; color: var(--gold-900); text-decoration: none;
  border: 1px solid var(--line-gold); border-radius: 999px; padding: 6px 12px; background: #fff;
}

#boot {
  position: fixed; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
  background:
    radial-gradient(120% 80% at 50% 0%, #fffdf6 0%, #faf8f5 46%, #f4efe3 100%);
  overflow-y: auto;
}
#boot[hidden] { display: none; }

.boot-card {
  width: min(440px, 100%); text-align: center;
  border: 1px solid var(--line-gold); border-radius: 22px; padding: 26px 22px 22px;
  background: #fff; box-shadow: 0 26px 60px -34px rgba(70, 50, 10, .38);
}
.boot-kicker {
  display: block; margin: 10px 0 6px;
  font-size: 10px; font-weight: 900; letter-spacing: .26em; color: var(--gold-900);
}
.boot-card h1 { margin: 0 0 8px; font-size: 20px; font-weight: 900; letter-spacing: -.035em; color: var(--ink); }
.boot-card p { margin: 0; font-size: 12.8px; line-height: 1.7; color: var(--ink-2); }

.boot-spin {
  display: inline-block; width: 34px; height: 34px; border-radius: 999px;
  border: 2px solid #f0e6cc; border-top-color: var(--gold-500);
  animation: sh-spin .9s linear infinite;
}
@keyframes sh-spin { to { transform: rotate(360deg); } }
#boot[data-state="locked"] .boot-spin,
#boot[data-state="member"] .boot-spin,
#boot[data-state="error"] .boot-spin { display: none; }
#boot[data-state="locked"] .boot-card::before,
#boot[data-state="member"] .boot-card::before,
#boot[data-state="error"] .boot-card::before {
  content: ""; display: block; width: 52px; height: 52px; margin: 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89A33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3'/%3E%3Crect x='4' y='10' width='16' height='11' rx='2.4'/%3E%3C/svg%3E") center / 52px no-repeat;
}
#boot[data-state="error"] .boot-card::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89A33' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v6M12 16.6h.01'/%3E%3C/svg%3E");
}
/* 회원 게이트(2026-12-01) — 사람 아이콘 */
#boot[data-state="member"] .boot-card::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C89A33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.4' r='3.6'/%3E%3Cpath d='M5.2 19.6c.9-3.6 3.5-5.4 6.8-5.4s5.9 1.8 6.8 5.4'/%3E%3C/svg%3E");
}

.boot-actions { display: grid; gap: 8px; margin: 18px 0 0; }
.boot-actions a, .boot-actions button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; border-radius: 12px; font-size: 13px; font-weight: 850;
  text-decoration: none; cursor: pointer; font-family: inherit;
  border: 1px solid var(--line-gold); color: var(--gold-900); background: #fff;
}
.boot-actions .is-primary {
  border: 0; color: #fff; background: linear-gradient(180deg, #e0b757, #b8862b);
  box-shadow: 0 10px 22px -14px rgba(160, 110, 20, .8);
}
.boot-hint { margin: 14px 0 0; font-size: 11.4px; line-height: 1.6; color: var(--muted); }
.boot-foot { margin: 12px 0 0; font-size: 10.6px; color: var(--muted); }
