/* 남사친: "Mono + Pink". 완전한 검정 바탕, 흰 버튼, 분홍은 그의 연락 신호에만. 글꼴: Satoshi(영어) + 프리텐다드(한글). */
:root {
  --bg: #000000;
  --surface: #111113;
  --raised: #1C1C1E;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .2);
  --text: #F5F5F5;
  --text2: #A1A1AA;
  --text3: #8E8E93;
  --accent: #F5F5F5;
  --on-accent: #111111;
  --pink: #FF4D8D;
  --blue: #A1A1AA;
}
.ns {
  width: 390px; height: 844px; box-sizing: border-box; position: relative; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: Satoshi, Pretendard, system-ui, sans-serif; font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.ns * { box-sizing: border-box; }
.ns h1, .ns h2, .ns h3, .ns p { margin: 0; }
.ns ul { margin: 0; padding: 0; list-style: none; }
.ns a { color: inherit; text-decoration: none; }
.ns img { display: block; }
/* 이름과 제목: 한글은 프리텐다드 굵게, 영어는 Satoshi 굵게. 기울임은 쓰지 않는다. */
.ko-serif { font-family: Pretendard, system-ui, sans-serif; font-weight: 700 !important; letter-spacing: -.02em !important; }
.en-serif { font-family: Satoshi, Pretendard, system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; font-style: normal !important; }
.ns [style*="italic"] { font-style: normal !important; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text3); font-weight: 600; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 24px;
  border-radius: 999px; border: 0; background: var(--pink); color: var(--on-accent);
  font: 700 16px/1 Satoshi, Pretendard, system-ui, sans-serif; cursor: pointer;
}
/* 사장님 결정 2026-11-12: 꼭 눌러야 하는 버튼(다음 단계, 가입, 결제, 공유, 대화 시작, 보내기)은 분홍. 보조 버튼은 테두리만. */
.ns a.btn { color: var(--on-accent); }
.btn.ghost, .ns a.btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--text); }
.ai {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border: 1px solid var(--line2); border-radius: 5px;
  font: 600 10px/1 Satoshi, Pretendard, system-ui, sans-serif; letter-spacing: .08em; color: var(--text2); vertical-align: middle;
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.av { object-fit: cover; border-radius: 36%; background: var(--raised); flex: none; }
.mono {
  display: flex; align-items: center; justify-content: center; border-radius: 36%; flex: none;
  background: var(--raised); border: 1px solid var(--line2); color: var(--text); font-family: Pretendard, system-ui, sans-serif;
}
.top { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; z-index: 3; }
.iconbtn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: transparent; border: 0; color: var(--text); border-radius: 50%; cursor: pointer; padding: 0;
}
.dots { display: flex; gap: 6px; }
.dots i { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--line2); }
.dots i.on { background: var(--accent); }
.lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.inp {
  display: block; width: 100%; height: 56px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0;
  color: var(--text); font: 500 28px/1 Satoshi, Pretendard, system-ui, sans-serif; letter-spacing: -.02em; outline: none;
}
.inp::placeholder { color: var(--text3); }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line2); background: transparent; color: var(--text2); font: 500 14px/1 Satoshi, Pretendard, system-ui, sans-serif; cursor: pointer;
}
.chip.on { border-color: var(--accent); color: var(--accent); }
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 84px; padding: 6px 28px 22px; display: flex; z-index: 4;
  background: #000000; border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--text3); }
.ns a.tab { color: var(--text3); }
.ns a.tab[aria-current="page"] { color: var(--text); }
.row { display: flex; align-items: center; gap: 14px; padding: 0 20px; min-height: 64px; }
.him { word-break: keep-all; max-width: 262px; padding: 10px 14px; border-radius: 6px 20px 20px 20px; background: var(--raised); font-size: 16px; line-height: 1.5; color: var(--text); }
.me { max-width: 262px; padding: 10px 14px; border-radius: 20px 6px 20px 20px; background: var(--accent); color: var(--on-accent); font-size: 15px; line-height: 1.45; }
.time { font-size: 11px; color: var(--text3); flex: none; padding-bottom: 2px; }
.en { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line2); font-size: 14px; line-height: 1.4; color: var(--blue); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line2); border-radius: 28px 28px 0 0; padding: 12px 24px 28px; }
.scrim { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .7); }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line2); margin: 0 auto 20px; }
.hair { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------------ real pages (the design canvas used a fixed 390x844 box) */
@font-face{font-family:'Pretendard';src:url(/static/fonts/Pretendard-Variable.woff2) format('woff2');font-weight:45 920;font-display:swap}
@font-face{font-family:'Satoshi';src:url(/static/fonts/satoshi-400.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Satoshi';src:url(/static/fonts/satoshi-500.woff2) format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Satoshi';src:url(/static/fonts/satoshi-700.woff2) format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Satoshi';src:url(/static/fonts/satoshi-900.woff2) format('woff2');font-weight:900;font-display:swap}
html, body { margin: 0; background: #000; color: #F5F5F5; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
button, input, textarea { font-family: inherit; }
.ns { width: 100%; max-width: 430px; height: auto; min-height: 100dvh; margin: 0 auto; overflow: visible;
      display: flex; flex-direction: column; }
.ns.fixed { height: 100dvh; min-height: 0; overflow: hidden; }
.page { flex: 1; display: flex; flex-direction: column; padding: 104px 24px 0; }
.foot { margin-top: auto; padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
/* Bars that stay at the bottom of the phone while the page scrolls under them. */
.dock { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 6; }
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; box-sizing: border-box;
          height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 28px calc(6px + env(safe-area-inset-bottom)); }
.withtabs { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.sheet { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; box-sizing: border-box;
         max-height: 92dvh; overflow-y: auto; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.scrim { position: fixed; }
.toplay { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; box-sizing: border-box; }
[hidden] { display: none !important; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.err { color: #FF8A8A; font-size: 13px; min-height: 18px; }
a.rowlink { display: block; color: inherit; }
.inp:focus { border-bottom-color: #F5F5F5; }
.him, .me { word-break: keep-all; overflow-wrap: anywhere; }
.w { cursor: pointer; border-radius: 4px; }
.w.on { background: #F5F5F5; color: #111; padding: 0 3px; margin: 0 -3px; }
.typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #8E8E93; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes drop { from { transform: translate(-50%, -140%); } to { transform: translate(-50%, 0); } }
.alert { animation: drop .5s cubic-bezier(.2,.8,.2,1) both; }
.prose { padding: 88px 24px 48px; font-size: 15px; line-height: 1.6; color: #D4D4D8; }
.prose h1 { font: 700 32px/1.1 Satoshi, Pretendard, system-ui, sans-serif; color: #F5F5F5; margin: 0 0 8px; }
.prose h2 { font: 700 18px/1.3 Satoshi, Pretendard, system-ui, sans-serif; color: #F5F5F5; margin: 28px 0 8px; }
.prose p, .prose li { margin: 0 0 10px; } .prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: #F5F5F5; text-decoration: underline; }
/* Name pronunciation button (04): spins while his voice is being made, glows while it plays. */
.hear { position: relative; transition: background .2s; }
.hear svg { transition: opacity .15s; }
.hear.loading svg { opacity: 0; }
.hear.loading::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 2px solid rgba(255,77,141,.25); border-top-color: #FF4D8D; animation: spin .8s linear infinite; }
.hear.playing { background: rgba(255,77,141,.18); }
@keyframes spin { to { transform: rotate(360deg); } }
/* Save a whole bubble of his (shown once the bubble is opened to English). */
.ssave { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; min-height: 30px; padding: 0 10px; border-radius: 999px;
         border: 1px solid rgba(255,255,255,.22); background: transparent; color: #D4D4D8; font: 600 12px Satoshi, Pretendard, system-ui, sans-serif; cursor: pointer; }
.ssave[disabled] { color: #FF4D8D; border-color: rgba(255,77,141,.45); cursor: default; }
/* Words in an opened bubble can be tapped for their meaning: a faint dotted underline says so. */
.him .w { text-decoration: underline dotted rgba(255,255,255,.45); text-decoration-thickness: 1.5px; text-underline-offset: 5px; cursor: pointer; }
.him .w.on { text-decoration: none; }
/* On/off switch (More → Notifications). The state lives on the button's aria-checked. */
.switch { flex: none; position: relative; width: 50px; height: 30px; border-radius: 999px; background: #3A3A3C; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #F5F5F5; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s; }
[aria-checked="true"] > .switch { background: #FF4D8D; }
[aria-checked="true"] > .switch span { transform: translateX(20px); }
/* Fated places list (06): the one shown in the big card is marked. */
.placepick[aria-pressed="true"] .ko-serif { color: #FF4D8D; }
.placepick[aria-pressed="true"] img { outline: 2px solid #FF4D8D; outline-offset: 2px; }
/* Two-way tabs (My words: Words / Sentences). */
.segs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #1C1C1E; }
.segs button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: #A1A1AA; font: 600 15px Satoshi, Pretendard, system-ui, sans-serif; cursor: pointer; }
.segs button[aria-selected="true"] { background: #F5F5F5; color: #111111; }
.segs .n { margin-left: 4px; font-weight: 500; opacity: .6; }
/* Plans sheet (2026-11-14): monthly first; .welcome on #paywall shows the 24-hour offer */
.plan { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 11px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #F5F5F5; font: inherit; text-align: left; cursor: pointer; }
.plan .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); flex: none; box-sizing: border-box; }
.plan[aria-checked=true] { border: 2px solid #FF4D8D; padding: 10px 15px; background: rgba(255,77,141,.08); }
.plan[aria-checked=true] .dot { border: 7px solid #FF4D8D; background: #111111; }
.pmid { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pname { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.psub { font-size: 12.5px; line-height: 1.35; color: #A1A1AA; }
.pprice { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pprice b { font-size: 26px; line-height: 1; }
.pprice s { font-size: 13px; color: #8E8E93; }
.pprice small { font-size: 11px; color: #A1A1AA; margin-top: 2px; }
.ptag { font: 700 10.5px/1 Satoshi, system-ui, sans-serif; letter-spacing: .04em; border-radius: 7px; padding: 4px 6px; white-space: nowrap; }
.ptag.pink { background: #FF4D8D; color: #111111; }
.ptag.line { border: 1px solid #FF4D8D; color: #FF4D8D; }
.ptag.gray { background: #2C2C2E; color: #F5F5F5; }
#paywall:not(.welcome) .w-only, #paywall.welcome .r-only { display: none !important; }
/* Black Friday (2026-11-23 to 11-30) */
.bflbl { display: inline-block; font: 700 10.5px/1 Satoshi, system-ui, sans-serif; letter-spacing: .12em; color: #111111; background: #111111; color: #FF4D8D; border-radius: 6px; padding: 4px 5px; margin-right: 4px; vertical-align: 1px; }
.salebar { display: flex; align-items: center; gap: 10px; background: #000000; border: 1.5px solid #FF4D8D; border-radius: 16px; padding: 10px 12px; color: #F5F5F5; }
.salebar .bflbl { background: #FF4D8D; color: #000000; margin: 0; }
.salebar .t { flex: 1; font-weight: 700; font-size: 14px; line-height: 1.3; }
.salebar .c { font: 700 14px/1 Satoshi, system-ui, sans-serif; font-variant-numeric: tabular-nums; background: #FF4D8D; color: #111111; border-radius: 8px; padding: 6px 7px; white-space: nowrap; }
/* Celebrity section (2026-11-14): #1 match card, rows with birthdays and a photo search link */
.celebhero { position: relative; display: flex; flex-direction: column; gap: 2px; border-radius: 24px; padding: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,77,141,.45) 0%, rgba(255,77,141,0) 55%), linear-gradient(160deg, #1d3a5c 0%, #0b1622 70%); }
.celebhero .emoji { position: absolute; right: 8px; top: 4px; font-size: 76px; line-height: 1; opacity: .95; }
.celebhero .rank { align-self: flex-start; font: 700 11px/1 Satoshi, system-ui, sans-serif; letter-spacing: .12em; background: #FF4D8D; color: #111111; border-radius: 6px; padding: 5px 7px; }
.celebhero h3 { margin: 12px 0 0; font-size: 40px; line-height: 1.1; }
.celebhero .cen { font-size: 16px; color: #E5E5E5; }
.celebhero .hchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.celebhero .hchip { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 5px 10px; background: rgba(255,255,255,.12); white-space: nowrap; }
.celebhero .hchip.pink { background: rgba(255,77,141,.18); color: #FF8DB5; }
.celebhero .why { margin-top: 12px; font-size: 14px; line-height: 1.45; color: #D1D1D6; }
.celebhero .photos { margin-top: 10px; align-self: flex-start; font-size: 14px; font-weight: 700; color: #F5F5F5; min-height: 32px; display: flex; align-items: center; }
.celebrow { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.celebrow + .celebrow { border-top: 1px solid rgba(255,255,255,.08); }
.celebrow .num { width: 24px; flex: none; text-align: center; font: 700 15px Satoshi, system-ui, sans-serif; color: #8E8E93; }
.celebrow .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: inherit; }
.celebrow .nm { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.celebrow .sub { font-size: 12.5px; color: #8E8E93; }
.celebrow .fit { flex: none; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 8px; }
.celebrow .fit.best { background: #FF4D8D; color: #111111; }
.celebrow .fit.good { border: 1px solid rgba(255,77,141,.6); color: #FF8DB5; }
.celebtabs { display: flex; gap: 8px; overflow-x: auto; }
.celebtabs button { flex: none; font: 700 13px Satoshi, system-ui, sans-serif; white-space: nowrap; border: 0; border-radius: 999px; padding: 8px 12px; background: #1C1C1E; color: #A1A1AA; cursor: pointer; }
.celebtabs button[aria-pressed=true] { background: #F5F5F5; color: #111111; }
