/* 무료 운세 페이지(/magazine/unse/*) — magazine.css 토큰 위에 얹는다 */
.u-home { font-size: 13px; color: var(--muted); }
.u-wrap { max-width: 760px; padding-top: 8px; padding-bottom: 40px; }

.u-menu { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.u-menu::-webkit-scrollbar { display: none; }
.u-menu > div { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.u-menu small { color: var(--dim); font-size: 11px; margin-right: 2px; white-space: nowrap; }
.u-menu a { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--chip); border: 1px solid var(--line); color: #cfcfd8; white-space: nowrap; }
.u-menu a[aria-current] { background: var(--burgundy); border-color: var(--burgundy-hi); color: #fff; }

.u-head { padding: 28px 0 18px; }
.u-kicker { color: var(--gold); font-size: 12px; letter-spacing: .08em; margin-bottom: 8px; }
.u-head h1 { font-size: 30px; line-height: 1.3; margin-bottom: 10px; }
.u-head p { color: var(--muted); font-size: 15px; line-height: 1.7; word-break: keep-all; }

.u-form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.u-person { border: 0; display: grid; gap: 10px; min-width: 0; }
.u-person legend { font-size: 13px; color: var(--sand); margin-bottom: 8px; }
.u-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.u-seg button { padding: 12px; border-radius: 12px; background: var(--chip); border: 1px solid var(--line); font-size: 15px; transition: background .15s, transform .12s; }
.u-seg button.on { background: var(--burgundy); border-color: var(--pink); color: #fff; }
.u-seg button:active { transform: scale(.97); }
.u-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr 1fr; gap: 8px; }
.u-form select { width: 100%; min-width: 0; padding: 12px 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 15px; appearance: none; -webkit-appearance: none; text-align: center; }
.u-go { padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, var(--burgundy-hi), #5b1d6e); color: #fff; transition: transform .12s, filter .2s; }
.u-go:hover { filter: brightness(1.1); }
.u-go:active { transform: scale(.98); }
.u-err { color: var(--pink); font-size: 14px; }
.u-note { color: var(--dim); font-size: 12px; line-height: 1.6; text-align: center; }

.u-result { display: grid; gap: 14px; margin-top: 26px; scroll-margin-top: 80px; animation: u-in .4s ease-out both; }
@keyframes u-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .u-result { animation: none; } }
.u-block { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.u-block h2 { font-size: 22px; line-height: 1.4; word-break: keep-all; }
.u-block h3 { font-size: 18px; margin-bottom: 10px; color: var(--sand); }
.u-block p { line-height: 1.85; font-size: 15.5px; color: #dedee6; word-break: keep-all; }
.u-block p + p { margin-top: 8px; }
.u-sub { color: var(--muted) !important; font-size: 13px !important; margin: 6px 0 14px; }
.u-score { font-family: var(--serif); font-size: 34px !important; color: var(--gold) !important; line-height: 1.2 !important; margin-bottom: 6px; }
.u-score small { font-size: 14px; color: var(--muted); margin-left: 6px; font-family: var(--sans); }

.u-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.u-pillar { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; display: grid; justify-items: center; gap: 2px; }
.u-pillar.dim { opacity: .45; }
.u-pillar small { font-size: 11px; color: var(--dim); }
.u-pillar b { font-family: var(--serif); font-size: 28px; line-height: 1.25; font-weight: 700; }
.u-ss { font-size: 11px; color: var(--muted); min-height: 14px; }
.wx-木 { color: #6fd08c; } .wx-火 { color: #ff7a7a; } .wx-土 { color: #e8c170; } .wx-金 { color: #e6e6ee; } .wx-水 { color: #7aa7ff; }
.bg-木 { background: #6fd08c; } .bg-火 { background: #ff7a7a; } .bg-土 { background: #e8c170; } .bg-金 { background: #cfcfd8; } .bg-水 { background: #7aa7ff; }
.u-wx { list-style: none; display: grid; gap: 6px; }
.u-wx li { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.u-wx .dot { font-weight: 700; }
.u-wx i { height: 8px; border-radius: 99px; min-width: 2px; }
.u-wx em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.u-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.u-chips div { background: var(--bg-2); border-radius: 12px; padding: 12px; }
.u-chips dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.u-chips dd { font-size: 15px; font-weight: 600; word-break: keep-all; }

.u-balls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ball { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #111; font-variant-numeric: tabular-nums; }
.ball.b1 { background: #fbc400; } .ball.b2 { background: #69c8f2; } .ball.b3 { background: #ff7272; } .ball.b4 { background: #aaa; } .ball.b5 { background: #b0d840; }

.u-bars { list-style: none; display: grid; gap: 10px; }
.u-bars li { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; }
.u-bars li > span { color: var(--sand); white-space: nowrap; }
.u-bars i { height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.u-bars b { display: block; height: 100%; border-radius: 99px; background: var(--purple); }
.u-bars b.hi { background: var(--gold); } .u-bars b.lo { background: #5a5a68; }
.u-bars em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.u-bars li p { grid-column: 1 / -1; font-size: 13.5px !important; color: var(--muted) !important; line-height: 1.6 !important; margin: -4px 0 0 !important; }

.u-days { list-style: none; display: grid; gap: 2px; max-height: 520px; overflow-y: auto; }
.u-days li { display: grid; grid-template-columns: 62px 30px 1fr; gap: 4px 8px; align-items: baseline; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.u-days .d { font-size: 13px; color: var(--sand); }
.u-days .s { font-weight: 700; font-variant-numeric: tabular-nums; }
.u-days li.hi .s { color: var(--gold); } .u-days li.lo .s { color: #7b7b88; }
.u-days .t { font-size: 11px; color: var(--pink); justify-self: end; }
.u-days li p { grid-column: 1 / -1; font-size: 13.5px !important; line-height: 1.6 !important; color: #c9c9d4 !important; margin: 0 !important; }

.u-gauges { display: grid; gap: 10px; }
.u-gauge { background: var(--bg-2); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.u-gauge strong { font-family: var(--serif); font-size: 26px; color: var(--pink); }
.u-gauge small { font-size: 14px; color: var(--sand); }
.u-gauge p { grid-column: 1 / -1; font-size: 14.5px !important; }

.u-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(131, 24, 67, .55), rgba(91, 29, 110, .55)); border: 1px solid rgba(244, 114, 182, .35); transition: transform .15s, border-color .2s; }
.u-cta:hover { border-color: var(--pink); }
.u-cta:active { transform: scale(.99); }
.u-cta span { display: grid; gap: 4px; font-weight: 700; font-size: 16px; word-break: keep-all; }
.u-cta small { font-weight: 400; font-size: 12px; color: #f5c6dc; }
.u-cta b { font-size: 20px; }
.u-cta.big { margin-top: 14px; padding: 20px; }
.u-more { border-color: rgba(245, 185, 66, .3); }

@media (min-width: 768px) {
  .u-head h1 { font-size: 38px; }
  .u-chips { grid-template-columns: repeat(4, 1fr); }
  .u-gauges { grid-template-columns: 1fr 1fr; }
  .u-days { max-height: 640px; }
}

/* 검색·AI 검색용 안내문(정적 HTML) */
.u-guide { padding-top: 24px; padding-bottom: 96px; color: #cfcfd8; }
.u-guide h2 { font-size: 22px; margin-bottom: 12px; }
.u-guide h3 { font-size: 16px; color: var(--sand); margin: 22px 0 8px; }
.u-guide p { line-height: 1.85; font-size: 15px; word-break: keep-all; }
.u-guide p + p { margin-top: 8px; }
.u-answer { background: var(--panel); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 14px 16px; }
.u-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.u-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.u-faq summary::-webkit-details-marker { display: none; }
.u-faq summary::after { content: '+'; float: right; color: var(--muted); }
.u-faq details[open] summary::after { content: '−'; }
.u-faq details p { margin-top: 8px; color: var(--muted); }
.u-others { display: flex; flex-wrap: wrap; gap: 8px; }
.u-others h3 { width: 100%; }
.u-others a { padding: 7px 12px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); font-size: 13px; }
.u-updated { margin-top: 24px; font-size: 12px !important; color: var(--dim); }

/* 오늘/내일 탭 · 총운 키워드 · 띠 친구 */
.u-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--chip); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.u-tabs button { padding: 11px 0; border-radius: 11px; font-size: 15px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.u-tabs button[aria-selected="true"] { background: var(--burgundy); color: #fff; }
.u-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.u-kw { font-size: 30px !important; line-height: 1.25 !important; color: var(--text) !important; letter-spacing: -.01em; margin-bottom: 4px; }
.u-block.has-ddi { position: relative; }
.u-ddi { position: absolute; top: 12px; right: 14px; line-height: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
#u-result { scroll-margin-top: 92px; }

/* 결과 머리(원국을 아래로 내린 페이지) */
.u-reshead { padding: 2px 4px 0; }
.u-reshead h2 { font-size: 21px; line-height: 1.45; word-break: keep-all; }
.u-reshead .u-sub { margin: 4px 0 0; }
.u-why { margin-top: 14px; color: var(--muted) !important; font-size: 13.5px !important; }
.u-celebs { grid-template-columns: 1fr 1fr; }
.u-celebs select:only-child { grid-column: 1 / -1; }

/* 도구 안내문: 이어보기·글·본 서비스 안내 */
.u-pair ul,.u-read ul{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px}.u-pair li,.u-read li{line-height:1.6}.u-pair a,.u-read a{font-weight:600}
.u-cta{margin:22px 0;padding:18px 20px;border-radius:14px;background:#faf3f6;border:1px solid #f0cfdb}.u-cta p{margin:0 0 12px}.u-cta-btn{display:inline-block;padding:10px 18px;border-radius:10px;background:#f0508a;color:#fff;font-weight:700;text-decoration:none}
