/* BOKKi 위성페이지 공통 스타일 (모바일 웹 기준, /shared/ui.css) */
:root {
  color-scheme: light;
  --bg: #FBF6EE; --card: #FFFFFF; --ink: #1F2A27; --muted: #66736E; --line: #ECE4D8;
  --primary: #2F6F5E; --primary-ink: #FFFFFF; --soft: #E8F1ED;
  --accent: #EE9F52; --accent-ink: #B8641C; --accent-soft: #FDF0E2;
  --rest: #EAE3D8;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #131816; --card: #1B2220; --ink: #E8EEEB; --muted: #9DA9A4; --line: #2A3330;
    --primary: #6BBBA3; --primary-ink: #0E1412; --soft: #1F302A;
    --accent: #EE9F52; --accent-ink: #F3B77A; --accent-soft: #36281A;
    --rest: #28302D;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--primary); }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 480px; margin: 0 auto; padding-inline: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.top a.more { font-size: 14px; color: var(--muted); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink);
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.big { width: 100%; min-height: 56px; font-size: 18px; }
.btn.ghost { background: transparent; }
.btn.kakao { background: #FEE500; border-color: #FEE500; color: #191600; }
.btn:focus-visible, .chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.25; letter-spacing: -0.03em; }
.eyebrow { margin: 0 0 6px; color: var(--primary); font-weight: 700; font-size: 14px; }
.lead { margin: 0 0 20px; color: var(--muted); }
.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 15px; }
.privacy { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px; margin: 0 0 14px; }
.card h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.02em; }
.kicker { margin: 0; color: var(--muted); font-weight: 600; }
.big { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.big strong { font-size: 60px; line-height: 1.1; color: var(--primary); }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.highlight { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

.field { margin: 0 0 22px; }
.label { display: block; font-weight: 700; margin: 0 0 8px; }
.hint { margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.stack { flex-direction: column; }
.chip { position: relative; flex: 1 1 auto; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chip span {
  display: block; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--card); cursor: pointer; text-align: center;
}
.chips.stack .chip span { text-align: left; }
.chip input:checked + span { border-color: var(--primary); background: var(--soft); color: var(--primary); font-weight: 700; }
.num { display: flex; align-items: center; gap: 8px; }
.num input, select {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--card); font-size: 20px; font-weight: 700;
}
.num input:focus, select:focus { outline: none; border-color: var(--primary); }
.num .unit { color: var(--muted); white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-row select, .time-row select { font-size: 17px; padding: 0 10px; }
.error { min-height: 1.6em; margin: 4px 0; color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.share-buttons .wide { grid-column: 1 / -1; }
.share-preview { display: flex; justify-content: center; margin: 0 0 12px; }
.share-preview img { width: 62%; max-width: 240px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 6px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--primary); }
.small-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.disclaimer { font-size: 13px; color: var(--muted); padding: 14px; border-radius: 14px; border: 1px dashed var(--line); margin: 0 0 14px; }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 6px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-weight: 600; }
.row em { font-style: normal; color: var(--muted); white-space: nowrap; }
.bar { display: flex; height: 20px; border-radius: 10px; overflow: hidden; background: var(--rest); }
.bar span { display: block; height: 100%; }
.loading { text-align: center; padding: 40px 0; color: var(--muted); font-weight: 600; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid var(--rest); border-top-color: var(--primary); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.ad-slot { display: flex; justify-content: center; margin: 8px 0 16px; }
footer { text-align: center; font-size: 13px; color: var(--muted); padding-block: 12px 36px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.sheet-body { background: var(--card); border-radius: 18px; padding: 16px; max-width: 360px; width: 100%; text-align: center; }
.sheet-body img { width: 100%; border-radius: 10px; }
.sheet-body p { margin: 0 0 10px; font-weight: 700; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.more-links a { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; }
