:root {
  --bg: #FFF5F7;
  --bg2: #FFEAF0;
  --card: #FFFFFF;
  --ink: #4A3742;
  --ink-soft: #8C7682;
  --rose: #F2668B;
  --rose-deep: #E04B74;
  --pink: #FFD3DF;
  --peach: #FFE3D3;
  --lav: #ECE3FF;
  --lav-deep: #9C82E0;
  --gold: #FFC86B;
  --line: #F6D9E2;
  --shadow: 0 8px 24px rgba(242, 102, 139, .14);
  --radius: 22px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* hidden 속성은 .btn 등의 display 지정보다 항상 우선한다 */
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg2);
  color: var(--ink);
  font-family: "Gowun Dodum", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, b.title, .logo, .btn, .card b { font-family: "Jua", "Gowun Dodum", sans-serif; font-weight: 400; }

.app {
  max-width: 480px; min-height: 100vh; margin: 0 auto;
  background: linear-gradient(180deg, #FFF0F4 0%, var(--bg) 30%, #FFF9F5 100%);
  position: relative; overflow-x: hidden;
}
.screen { display: none; padding-bottom: 40px; animation: fade .35s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.pad { padding: 0 16px; }
.center { text-align: center; padding-top: 48px; }
.muted { color: var(--ink-soft); }
.small { font-size: 12px; }

/* ── 상단바 ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(255, 245, 247, .88); backdrop-filter: blur(10px);
}
.logo { display: flex; align-items: center; gap: 6px; font-size: 22px; color: var(--rose); }
.logo svg { width: 34px; height: 34px; }
.back { font-size: 30px; line-height: 1; width: 36px; color: var(--rose); }
.chip {
  font-size: 13px; padding: 6px 12px; border-radius: 99px;
  background: #fff; color: var(--rose-deep); box-shadow: 0 2px 8px rgba(242,102,139,.15);
}

/* ── 히어로 ── */
.hero {
  position: relative; margin: 4px 16px 28px; padding: 28px 20px 24px;
  border-radius: 30px; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 20% 10%, #FFE0EA 0, transparent 50%),
              radial-gradient(circle at 90% 80%, #EDE2FF 0, transparent 55%), #fff;
  box-shadow: var(--shadow);
}
.hero-eyebrow { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 99px; background: var(--pink); color: var(--rose-deep); font-size: 13px; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.35; }
.hero h1 em { font-style: normal; color: var(--rose); background: linear-gradient(transparent 62%, #FFE08A 62%); }
.hero-sub { margin: 10px 0 0; color: var(--ink-soft); }
.hero-char { width: 150px; height: 150px; margin: 10px auto 6px; display: block; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.safe { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }

.petals i {
  position: absolute; top: -20px; width: 12px; height: 12px; border-radius: 12px 0;
  background: #FFB3C6; opacity: .7; animation: fall 9s linear infinite;
}
.petals i:nth-child(1) { left: 8%; animation-delay: 0s; }
.petals i:nth-child(2) { left: 28%; animation-delay: 2.5s; transform: scale(.7); }
.petals i:nth-child(3) { left: 52%; animation-delay: 5s; }
.petals i:nth-child(4) { left: 70%; animation-delay: 1.2s; transform: scale(.8); }
.petals i:nth-child(5) { left: 88%; animation-delay: 3.8s; }
.petals i:nth-child(6) { left: 40%; animation-delay: 7s; transform: scale(.6); }
@keyframes fall { to { top: 105%; transform: translateX(40px) rotate(360deg); } }

/* ── 버튼 ── */
.btn { display: block; width: 100%; padding: 14px; border-radius: 18px; font-size: 17px; transition: transform .12s; }
.btn:active { transform: scale(.97); }
.btn.big { padding: 17px; font-size: 19px; margin-top: 8px; }
.btn.primary { color: #fff; background: linear-gradient(135deg, #FF8FAB, var(--rose-deep)); box-shadow: 0 8px 20px rgba(224, 75, 116, .35); }
.btn.primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn.ghost { color: var(--ink-soft); }
.btn.pay { margin-top: 10px; font-size: 16px; }
.btn.toss { background: #3182F6; color: #fff; }
.btn.kakao { background: #FEE500; color: #191919; }

/* ── 상품 카드 ── */
.sec-title { margin: 28px 16px 12px; font-size: 21px; }
.rating { font-size: 15px; color: var(--gold); margin-left: 4px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.card {
  position: relative; text-align: left; padding: 16px 14px 14px;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px; transition: transform .15s;
}
.card:active { transform: scale(.96); }
.card.pink { background: linear-gradient(160deg, #FFE4EC, #fff 70%); }
.card.lav { background: linear-gradient(160deg, var(--lav), #fff 70%); }
.card.peach { background: linear-gradient(160deg, var(--peach), #fff 70%); }
.card .emoji { font-size: 32px; }
.card b { font-size: 17px; }
.card small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
.card .price { margin-top: 8px; align-self: flex-start; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--rose); color: #fff; font-family: "Jua"; }
.card .price.free { background: var(--lav-deep); }
.card .price.soon { background: #D9CCD3; }
.card .tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-family: "Jua"; color: var(--rose-deep); background: #FFF0B8; padding: 1px 8px; border-radius: 99px; }

/* ── 후기 / FAQ ── */
.reviews { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; scroll-snap-type: x mandatory; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 78%; scroll-snap-align: start; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.review p { margin: 0 0 8px; }
.review span { font-size: 12px; color: var(--ink-soft); }
.faq { padding: 0 16px; }
.faq details { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 8px; box-shadow: 0 2px 10px rgba(242,102,139,.08); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::before { content: "Q. "; color: var(--rose); font-family: "Jua"; }
.faq p { margin: 8px 0 0; color: var(--ink-soft); }
.footer { text-align: center; padding: 32px 16px 8px; font-size: 13px; }
.footer p { margin: 2px 0; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer .biz { font-size: 11.5px; line-height: 1.6; margin: 8px 0 !important; }

/* 약관 · 개인정보처리방침 */
.doc main { padding-bottom: 40px; font-size: 14.5px; line-height: 1.75; }
.doc h2 { font-size: 17px; margin: 24px 0 6px; color: var(--rose-deep); }
.doc ol, .doc ul { padding-left: 20px; margin: 4px 0; }
.doc li { margin: 3px 0; }
.doc a.back { text-decoration: none; }
.doc-highlight { background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); }
.doc-highlight p { margin: 4px 0; }
.doc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13px; }
.doc-table th { background: var(--bg2); font-weight: 400; font-family: "Jua"; padding: 8px; text-align: left; }
.doc-table td { padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }

/* 서비스 약속 (후기 자리) */
.promises { padding: 0 16px; display: grid; gap: 10px; }
.promise { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.promise > span { font-size: 26px; line-height: 1.2; }
.promise b { font-family: "Jua"; font-weight: 400; font-size: 16px; }
.promise p { margin: 2px 0 0; color: var(--ink-soft); font-size: 13.5px; }

/* 결제창 청약철회 안내 */
.refund-notice { text-align: left; background: var(--bg); border-radius: 14px; padding: 10px 12px; margin: 6px 0 4px; font-size: 12.5px; color: var(--ink-soft); }
.refund-notice p { margin: 0 0 8px; line-height: 1.55; }
.refund-notice b { color: var(--ink); font-weight: 700; }
.refund-notice label { display: flex; gap: 6px; align-items: flex-start; color: var(--ink); }
.refund-notice input { accent-color: var(--rose); margin-top: 2px; }
.refund-notice a { color: var(--rose-deep); }
.btn.pay:disabled { opacity: .4; cursor: not-allowed; }

/* ── 업로드 ── */
.guide { text-align: center; font-size: 17px; margin: 8px 0 16px; }
.slots { display: flex; gap: 12px; justify-content: center; }
.slot { flex: 1; max-width: 220px; }
.slot label.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 3/4; border-radius: 24px; border: 2.5px dashed #F5B5C7; background: #fff;
  cursor: pointer; overflow: hidden; position: relative; color: var(--ink-soft); font-size: 14px;
}
.slot label.drop .plus { font-size: 40px; color: var(--rose); line-height: 1; }
.slot label.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot input[type=file] { display: none; }
.slot input.name {
  width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; font: inherit; text-align: center; color: var(--ink);
}
.slot input.name:focus { outline: none; border-color: var(--rose); }
.tips { list-style: none; padding: 14px 16px; margin: 18px 0; background: var(--lav); border-radius: 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.agree input { accent-color: var(--rose); margin-top: 3px; }

/* ── 분석 중 ── */
.scan { position: relative; width: 230px; aspect-ratio: 3/4; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.scan img, .scan canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanline { position: absolute; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, rgba(255, 143, 171, .55), transparent); animation: scan 1.8s ease-in-out infinite alternate; }
@keyframes scan { from { top: -60px; } to { top: 100%; } }
.mini-char { width: 70px; height: 70px; display: block; margin: 18px auto 4px; }
.bounce { animation: float 1.4s ease-in-out infinite; }
.scan-msg { font-size: 16px; min-height: 26px; }
.progress { height: 10px; border-radius: 10px; background: #fff; margin: 12px 32px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.06); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFB3C6, var(--rose)); border-radius: 10px; transition: width .4s; }

/* ── 결과 ── */
.res-hero { text-align: center; background: #fff; border-radius: 28px; padding: 24px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.res-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 110px; background: var(--animal, var(--pink)); opacity: .35; }
.res-photo { position: relative; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--shadow); }
.res-animal { position: relative; font-size: 15px; color: var(--ink-soft); margin: 10px 0 0; }
.res-animal b { display: block; font-family: "Jua"; font-size: 30px; color: var(--ink); }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; }
.keywords span { font-size: 13px; padding: 4px 12px; border-radius: 99px; background: var(--bg2); color: var(--rose-deep); }
.res-desc { margin: 0; text-align: left; }
.badges { position: relative; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.badges span { font-size: 13px; padding: 5px 12px; border-radius: 99px; background: linear-gradient(135deg, #FFF0B8, #FFE0EA); }
.badges b { font-family: "Jua"; font-weight: 400; color: var(--rose-deep); }
.top-chip { font-family: "Gowun Dodum"; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #FFF0B8; color: var(--rose-deep); }
.top-note { margin: -6px 0 6px 104px !important; font-size: 11.5px; color: var(--ink-soft); }

.box { background: #fff; border-radius: var(--radius); padding: 18px; margin-top: 14px; box-shadow: var(--shadow); }
.box h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.box p { margin: 0; }

.bars .row { display: grid; grid-template-columns: 96px 1fr 38px; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.bars .track { height: 12px; border-radius: 12px; background: var(--bg2); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 12px; background: linear-gradient(90deg, #FFC2D1, var(--rose)); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bars .fill.lav { background: linear-gradient(90deg, #D9CBFF, var(--lav-deep)); }
.bars .num { text-align: right; font-family: "Jua"; color: var(--rose-deep); }

.ratio { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ratio span { font-size: 12.5px; background: var(--lav); border-radius: 99px; padding: 3px 10px; }

.dohwa { display: flex; align-items: center; gap: 14px; }
.dohwa .ring { flex: 0 0 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--rose) calc(var(--v) * 1%), var(--bg2) 0); }
.dohwa .ring b { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: "Jua"; font-size: 22px; color: var(--rose-deep); }

/* 오행 · 십이궁 · 측정 지도 */
.oh-glyph { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-family: serif; font-weight: 700; font-size: 22px; vertical-align: -6px; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.oh-glyph.sm { width: 26px; height: 26px; font-size: 14px; vertical-align: middle; }
.oh-glyph.xs { width: 20px; height: 20px; font-size: 11px; vertical-align: -4px; }
.oh-glyph.lg { width: 58px; height: 58px; font-size: 32px; }
.oh-sub { position: relative; margin: 2px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.basis { position: relative; margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-size: 12px; color: var(--ink-soft); text-align: left; line-height: 1.55; }
.oh-bars { margin-top: 6px; }
.oh-row { display: grid; grid-template-columns: 28px 22px 1fr 40px; align-items: center; gap: 8px; margin: 9px 0; font-size: 14px; }
.oh-row .track { height: 12px; border-radius: 12px; background: var(--bg2); overflow: hidden; }
.oh-row .fill { height: 100%; width: 0; border-radius: 12px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.oh-row .num { text-align: right; font-family: "Jua"; }
.oh-row.main .oh-name { font-family: "Jua"; }
.oh-pair { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 12px; }
.oh-rel { font-family: "Jua"; color: var(--rose-deep); font-size: 15px; }
.palace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.pal { border-radius: 14px; padding: 10px 6px; text-align: center; background: var(--bg); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.pal-hanja { font-family: serif; font-size: 17px; color: var(--ink); }
.pal-name { font-family: "Jua"; font-size: 14px; }
.pal small { font-size: 11px; color: var(--ink-soft); line-height: 1.3; min-height: 2.6em; }
.pal em { font-style: normal; font-size: 12px; font-family: "Jua"; margin-top: 3px; }
.pal.dg { background: linear-gradient(160deg, #FFE3EA, #FFF6F8); border-color: #FFB3C6; }
.pal.dg em { color: var(--rose-deep); }
.pal.g { background: linear-gradient(160deg, #F1EBFF, #FBF9FF); border-color: #D9CBFF; }
.pal.g em { color: var(--lav-deep); }
.pal.p em { color: var(--ink-soft); }
.face-map { width: 100%; height: auto; display: block; border-radius: 18px; margin: 6px 0 8px; }

.check-list { list-style: none; padding: 0; margin: 8px 0 6px; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 9px 12px; border-radius: 14px; margin-bottom: 6px; background: var(--bg); align-items: center; }
.check-list li.great { background: linear-gradient(135deg, #FFF3C9, #FFE7EE); }
.check-list li.ok { background: #F4FBF6; }
.ck-status { grid-row: span 2; font-family: "Jua"; font-size: 12.5px; white-space: nowrap; }
.check-list li.great .ck-status { color: #C2860A; }
.check-list li.ok .ck-status { color: #2E8B57; }
.check-list li.unique .ck-status { color: var(--lav-deep); }
.ck-name { font-family: "Jua"; font-size: 14.5px; }
.ck-measure { font-size: 12.5px; color: var(--ink-soft); }
.hl { color: var(--rose-deep); }

.card.wide { grid-column: span 2; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.sw { text-align: center; font-size: 12px; }
.sw i { display: block; width: 100%; max-width: 60px; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 -4px 8px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.08); margin-bottom: 5px; }
.sw b { display: block; font-family: "Jua"; font-weight: 400; font-size: 13px; }
.sw span { color: var(--ink-soft); font-size: 11.5px; }

.share-card-btn { margin-top: 16px; }
.share-sheet { max-height: 100vh; overflow-y: auto; }
#sharePreview { display: block; width: 54%; max-width: 260px; margin: 10px auto 12px; border-radius: 16px; box-shadow: var(--shadow); }
#sharePhotoWrap { justify-content: center; }

/* 리포트 챕터 */
.chapter { scroll-margin-top: 64px; }
.chapter .ch-no { margin: 0 0 2px !important; font-family: "Jua"; font-size: 12px; letter-spacing: .08em; color: var(--lav-deep); }
.chapter .lead { margin-bottom: 4px; }
.blk { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.blk b { display: block; font-family: "Jua"; font-weight: 400; font-size: 15.5px; color: var(--rose-deep); margin-bottom: 2px; }
.meter { background: var(--bg); border-radius: 16px; padding: 12px 14px; margin: 4px 0 12px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.meter-head b { font-family: "Jua"; font-weight: 400; }
.meter-head span { color: var(--rose-deep); font-size: 12.5px; }
.meter-track { position: relative; height: 8px; margin: 10px 4px 4px; border-radius: 8px; background: linear-gradient(90deg, #D9CBFF, #FFE0EA 50%, #FF9BB5); }
.meter-track i { position: absolute; top: 50%; width: 18px; height: 18px; margin-left: -9px; transform: translateY(-50%); border-radius: 50%; background: #fff; border: 4px solid var(--rose); box-shadow: 0 2px 6px rgba(224,75,116,.3); }
.meter-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-soft); }
.age-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.age-table th { font-weight: 400; font-family: "Jua"; color: var(--rose-deep); background: var(--bg2); padding: 7px 4px; }
.age-table th:first-child { border-radius: 10px 0 0 10px; }
.age-table th:last-child { border-radius: 0 10px 10px 0; }
.age-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.age-table td:nth-child(3) { color: var(--gold); letter-spacing: -1px; white-space: nowrap; }
.age-table td:last-child { text-align: left; font-size: 12.5px; }
.chapter.letter { background: linear-gradient(160deg, #FFF0F4, #F4EEFF); }
.chapter.letter .lead { font-size: 15.5px; line-height: 1.8; }
.toc ol { list-style: none; counter-reset: ch; padding: 0; margin: 10px 0 0; }
.toc li { counter-increment: ch; display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.toc li span::before { content: counter(ch, decimal-leading-zero) "  "; font-family: "Jua"; color: var(--lav-deep); }
.toc li a { color: var(--rose-deep); font-size: 13px; text-decoration: none; }
.toc li:last-child { border-bottom: 0; }

.locked { position: relative; }
.locked .blur { filter: blur(6px); user-select: none; pointer-events: none; }
.unlock-cta {
  position: sticky; bottom: 16px; z-index: 5; margin-top: -40px;
  background: linear-gradient(180deg, rgba(255,245,247,0), var(--bg) 40%); padding: 50px 0 0; text-align: center;
}
.unlock-cta p { margin: 0 0 6px; font-size: 14px; }
.unlock-cta p b { color: var(--rose-deep); }

/* 궁합 */
.pair { display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.pair figure { margin: 0; text-align: center; }
.pair img, .pair .pair-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
.photo-glyph { display: grid; place-items: center; margin: 0 auto; color: #fff; font-family: serif; font-weight: 700; font-size: 48px; }
.pair .photo-glyph { font-size: 40px; }

/* 상단 버튼 · 로그인 · 마이페이지 */
.top-actions { display: flex; gap: 6px; }
.btn.social { margin-top: 10px; font-size: 16px; }
.btn.social.kakao { background: #FEE500; color: #191919; }
.btn.social.google { background: #fff; color: #333; border: 1.5px solid #ddd; }
.sheet .small a { color: var(--ink-soft); }
.box.me { display: flex; align-items: center; gap: 12px; }
.box.me .mini-char { margin: 0; width: 56px; height: 56px; flex: 0 0 56px; }
.box.me b { font-family: "Jua"; font-weight: 400; font-size: 18px; }
.box.me p { margin: 0; }
.link-btn { display: block; margin: 18px auto 0; font-size: 12.5px; color: var(--ink-soft); text-decoration: underline; }
.btn.danger { background: #E5484D; color: #fff; margin-top: 4px; }
.btn.danger:disabled { opacity: .4; cursor: not-allowed; }
.withdraw-list { text-align: left; margin: 12px 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.withdraw-list b { color: var(--ink); }
.order-list { list-style: none; padding: 0; margin: 8px 0 0; }
.order-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px dashed var(--line); text-align: left; }
.order-list li:last-child button { border-bottom: 0; }
.o-icon { font-size: 26px; }
.o-text { flex: 1; display: flex; flex-direction: column; }
.o-text b { font-family: "Jua"; font-weight: 400; font-size: 15px; }
.o-text small { color: var(--ink-soft); font-size: 12px; }
.o-go { color: var(--rose-deep); font-size: 13px; }
.pair figcaption { font-size: 13px; margin-top: 4px; }
.heart { font-size: 40px; animation: beat 1.1s ease-in-out infinite; }
@keyframes beat { 30% { transform: scale(1.2); } 60% { transform: scale(1); } }
.big-score { font-family: "Jua"; font-size: 56px; color: var(--rose); line-height: 1.1; margin: 10px 0 0; }
.big-score small { font-size: 22px; }
.match-title { font-family: "Jua"; font-size: 20px; margin: 4px 0 8px; }
.list { margin: 0; padding-left: 0; list-style: none; }
.list li { position: relative; padding-left: 22px; margin: 6px 0; }
.list li::before { content: "💗"; position: absolute; left: 0; font-size: 13px; top: 2px; }
.list.care li::before { content: "🌿"; }

/* 오늘의 운세 */
.daily-card { text-align: center; background: linear-gradient(160deg, #FFE3EC, #F1E8FF); border-radius: 28px; padding: 26px 18px; box-shadow: var(--shadow); }
.daily-card .msg { font-family: "Jua"; font-size: 21px; line-height: 1.45; margin: 10px 0 16px; }
.lucky { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lucky div { background: rgba(255,255,255,.8); border-radius: 16px; padding: 10px; font-size: 13px; }
.lucky b { display: block; font-family: "Jua"; font-size: 16px; color: var(--rose-deep); }

.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions .btn { font-size: 15px; padding: 13px; }
.btn.soft { background: #fff; color: var(--rose-deep); box-shadow: var(--shadow); }
.notice { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 18px; }

/* ── 모달 / 토스트 ── */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(74, 55, 66, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 28px 28px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; animation: up .3s ease; }
@keyframes up { from { transform: translateY(100%); } }
.sheet h3 { margin: 0; font-size: 22px; }
.sheet .muted { margin: 4px 0 0; font-size: 14px; }
.pay-price { margin: 14px 0 4px; font-size: 15px; }
.pay-price s { color: var(--ink-soft); }
.pay-price b { font-family: "Jua"; font-size: 32px; color: var(--rose); margin-left: 6px; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; transition: .3s; pointer-events: none; z-index: 60; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 481px) {
  .app { box-shadow: 0 0 40px rgba(242, 102, 139, .12); }
}
