@charset "UTF-8";
/* 운세·타로 허브. 토큰/공통 컴포넌트는 theme/palja/css/tokens.css, layout.css, me.css 사용 */
.hub { --hub-bg-wood: var(--pm-wood); --hub-bg-fire: var(--pm-fire); --hub-bg-earth: var(--pm-earth); --hub-bg-metal: var(--pm-metal); --hub-bg-water: var(--pm-water); --hub-bg-none: var(--pm-soft2); --hub-chip-top: 62px; }
.hub-head .pm-lead { margin-bottom: 14px; }
.hub [hidden] { display: none !important; }

/* ---------- 보는 사람 ---------- */
.hub-who { display: flex; align-items: center; gap: 12px; }
.hub-who-dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2.4px solid var(--pm-ink); color: var(--pm-ink); font-family: var(--pm-font-head); font-size: 22px; line-height: 1; }
.hub-el--wood { background: var(--hub-bg-wood); }
.hub-el--fire { background: var(--hub-bg-fire); }
.hub-el--earth { background: var(--hub-bg-earth); }
.hub-el--metal { background: var(--hub-bg-metal); }
.hub-el--water { background: var(--hub-bg-water); }
.hub-el--none { background: var(--hub-bg-none); }
.hub-who-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hub-who-k { font-size: 12.5px; color: var(--pm-sub-text); font-weight: 700; }
.hub-who-name { font-family: var(--pm-font-head); font-weight: 400; font-size: 20px; line-height: 1.3; max-width: 100%; overflow-wrap: anywhere; }
.hub-who-sub { font-size: 13px; color: var(--pm-sub-text); line-height: 1.4; }
.hub-el-badge { display: inline-block; padding: 1px 10px; border-radius: var(--pm-r-pill); color: var(--pm-ink); font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(67, 53, 45, .22); }
.hub-who-btn { flex: none; font-size: 15px; padding: 8px 16px; }

/* ---------- 사람 고르기 시트 ---------- */
.hub-sheet { display: none; position: fixed; inset: 0; z-index: 120; }
.hub-sheet:target, .hub-sheet.is-open { display: block; }
.hub-sheet-bg { position: absolute; inset: 0; background: rgba(67, 53, 45, .45); }
.hub-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--pm-cream); box-shadow: 0 -10px 40px rgba(120, 80, 40, .25); }
.hub-sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hub-sheet-bar h2 { margin: 0; font-family: var(--pm-font-head); font-weight: 400; font-size: 20px; }
.hub-sheet-x { display: inline-flex; align-items: center; justify-content: center; min-height: var(--pm-tap); min-width: var(--pm-tap); padding: 0 14px; border-radius: var(--pm-r-pill); background: var(--pm-soft); color: var(--pm-ink); font-size: 14px; text-decoration: none; }
.hub-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-person { box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 12px; border: 2px solid var(--pm-line); border-radius: var(--pm-r-card); background: #fff; color: var(--pm-ink); font: inherit; text-align: left; cursor: pointer; }
.hub-person.is-on { border-color: var(--pm-wood); background: #f1f9ec; }
.hub-person:hover { background: var(--pm-soft); }
.hub-person-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hub-person-txt strong { font-size: 16px; overflow-wrap: anywhere; }
.hub-person-txt span { font-size: 13px; color: var(--pm-sub-text); }
.hub-person-on { flex: none; padding: 2px 10px; border-radius: var(--pm-r-pill); background: var(--pm-wood); font-size: 12.5px; font-weight: 700; }
.hub-sheet-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hub-sheet-act .pm-btn { flex: 1 1 140px; font-size: 15px; }
@media (min-width: 641px) {
  .hub-sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; max-width: calc(100% - 32px); transform: translate(-50%, -50%); border-radius: 26px; }
}

/* ---------- 섹션 제목 ---------- */
.hub-sec { margin-top: 22px; }
.hub-h { margin: 0 0 12px; font-family: var(--pm-font-head); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--pm-ink); }

/* ---------- 추천 8칸 ---------- */
.hub-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hub-tiles li { min-width: 0; display: flex; }
.hub-tile { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; width: 100%; min-height: 112px; padding: 10px 3px 8px; border-radius: 20px; border: 2px solid transparent; background: #fff0d9; color: var(--pm-ink); text-decoration: none; box-shadow: var(--pm-shadow-sm); transition: transform .15s; }
.hub-tiles li:nth-child(8n+2) .hub-tile { background: #ffe3e8; }
.hub-tiles li:nth-child(8n+3) .hub-tile { background: #e4f3dc; }
.hub-tiles li:nth-child(8n+4) .hub-tile { background: #e3edfa; }
.hub-tiles li:nth-child(8n+5) .hub-tile { background: #efe6fa; }
.hub-tiles li:nth-child(8n+6) .hub-tile { background: #fff5c9; }
.hub-tiles li:nth-child(8n+7) .hub-tile { background: #dff3ee; }
.hub-tiles li:nth-child(8n+8) .hub-tile { background: #fde6d4; }
a.hub-tile:hover { transform: translateY(-2px); border-color: var(--pm-ink); }
a.hub-tile:focus-visible, .hub-link:focus-visible, .hub-star:focus-visible, .hub-chip:focus-visible, .hub-person:focus-visible, .hub-sheet-x:focus-visible { outline: 3px solid var(--pm-focus); outline-offset: 2px; }
.hub-tile .hub-ico { width: 46px; height: 46px; }
.hub-tname { display: block; max-width: 100%; font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.hub-tstat { margin-top: auto; padding: 1px 7px; border-radius: var(--pm-r-pill); background: rgba(255, 255, 255, .75); color: var(--pm-sub-text); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.hub-tstat.is-soon { background: rgba(67, 53, 45, .09); color: var(--pm-ink); }
.hub-tile.is-soon { box-shadow: none; }
.hub-tile.is-soon .hub-ico { opacity: .6; filter: saturate(.75); }
@media (min-width: 641px) {
  .hub-tiles { gap: 14px; }
  .hub-tile { min-height: 156px; padding: 18px 8px 12px; gap: 8px; border-radius: 26px; }
  .hub-tile .hub-ico { width: 72px; height: 72px; }
  .hub-tname { font-size: 16px; }
  .hub-tstat { font-size: 12px; padding: 2px 10px; }
}

/* ---------- 카테고리 칩 ---------- */
.hub-chips { position: sticky; top: var(--hub-chip-top); z-index: 30; margin-top: 18px; padding: 6px 0; background: linear-gradient(var(--pm-soft) 70%, rgba(251, 239, 226, 0)); }
.hub-chips-in { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hub-chips-in::-webkit-scrollbar { display: none; }
.hub-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: var(--pm-tap); padding: 0 16px; border-radius: var(--pm-r-pill); background: var(--pm-cream); color: var(--pm-ink); font-size: 14.5px; font-weight: 700; text-decoration: none; box-shadow: var(--pm-shadow-sm); white-space: nowrap; }
.hub-chip small { padding: 0 6px; border-radius: var(--pm-r-pill); background: var(--pm-soft2); font-size: 11.5px; line-height: 18px; }
.hub-chip:hover { background: #fff; }
.hub-chip.is-active { background: var(--pm-fire); }
.hub-chip.is-active small { background: rgba(255, 255, 255, .6); }

/* ---------- 목록 ---------- */
.hub-cat { margin-top: 16px; scroll-margin-top: calc(var(--hub-chip-top) + 62px); }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-item { display: flex; align-items: stretch; gap: 4px; border-bottom: 1px dashed var(--pm-line); }
.hub-item:last-child { border-bottom: 0; }
.hub-link { box-sizing: border-box; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 4px; border-radius: 16px; color: var(--pm-ink); text-decoration: none; }
a.hub-link:hover { background: var(--pm-soft); }
.hub-ico { flex: none; display: block; width: 46px; height: 46px; }
.hub-ico svg { display: block; width: 100%; height: 100%; }
.hub-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hub-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.hub-desc { font-size: 13.5px; line-height: 1.5; color: var(--pm-sub-text); overflow-wrap: anywhere; }
.hub-place { font-size: 12px; color: var(--pm-sub-text); }
.hub-place::before { content: '마을 \00b7  '; opacity: .8; }
.hub-place:empty { display: none; }
.hub-badge { display: inline-block; padding: 1px 9px; border-radius: var(--pm-r-pill); font-size: 11.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.hub-badge--soon { background: var(--pm-soft2); color: var(--pm-ink); }
.hub-badge--rest { background: var(--pm-info-bg); color: var(--pm-info-ink); }
.hub-badge--need { background: #fff5c9; color: var(--pm-ink); }
.hub-item.is-soon .hub-ico { opacity: .55; filter: saturate(.7); }
.hub-item.is-soon .hub-link { cursor: default; }
.hub-fav { flex: none; display: flex; align-items: center; margin: 0; }
.hub-star { box-sizing: border-box; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #a8957f; font-size: 26px; line-height: 1; cursor: pointer; -webkit-appearance: none; appearance: none; transition: transform .15s, background .15s; }
.hub-star:hover { background: var(--pm-soft); }
.hub-star[aria-pressed="true"] { color: #e8a200; }
.hub-star.is-pop { transform: scale(1.25); }
.hub-foot { text-align: center; margin-top: 18px; }

@media (min-width: 641px) {
  .hub-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .hub-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .hub { --hub-chip-top: calc(56px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 480px) {
  .hub-who { gap: 10px; }
  .hub-who-btn { padding: 8px 12px; }
  .hub-who-dot { width: 44px; height: 44px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-tile, .hub-star { transition: none; }
  a.hub-tile:hover, .hub-star.is-pop { transform: none; }
}
.hub .pm-card { box-sizing: border-box; }

/* 출석 도장 한 줄(회원) */
.hub-attend { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 14px; padding: 6px 8px 6px 16px; border: 2px dashed var(--pm-line); border-radius: var(--pm-r-pill); background: var(--pm-cream); }
.hub-attend-t { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--pm-sub-text); }
.hub-attend-ok { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pm-wood); color: var(--pm-ink); font-size: 12px; font-weight: 700; }
.hub-attend-a, .hub-attend-b { display: inline-flex; align-items: center; justify-content: center; min-height: var(--pm-tap); padding: 0 16px; border: 2px solid var(--pm-ink); border-radius: var(--pm-r-pill); background: var(--pm-fire); color: var(--pm-ink); font: 700 13.5px/1 var(--pm-font-body); text-decoration: none; cursor: pointer; }
.hub-attend-a { background: var(--pm-cream); }
.hub-attend-a:focus-visible, .hub-attend-b:focus-visible { outline: 3px solid var(--pm-focus); outline-offset: 2px; }

/* ---------- 신년운세 배너 ---------- */
.hub-ny { display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0 0 14px; padding: 10px 14px; border-radius: 20px; border: 2px solid var(--pm-ink); background: linear-gradient(135deg, #ffe3e8, #fff0d9); color: var(--pm-ink); text-decoration: none; box-shadow: var(--pm-shadow-sm); }
.hub-ny:hover { transform: translateY(-1px); }
.hub-ny-ic { flex: none; font-size: 28px; line-height: 1; }
.hub-ny-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hub-ny-txt strong { font-family: var(--pm-font-head); font-weight: 400; font-size: 19px; line-height: 1.3; }
.hub-ny-txt span { font-size: 13.5px; color: var(--pm-sub-text); line-height: 1.4; }
.hub-ny-go { flex: none; font-size: 26px; }

/* ---------- 오늘 한눈에 ---------- */
.hub-today { margin-top: 18px; }
.hub-h small { margin-left: 6px; font-family: var(--pm-font-body, inherit); font-size: 13px; color: var(--pm-sub-text); }
.hub-today-cta-t { margin: 0 0 10px; line-height: 1.6; }
.hub-today-cta-a { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-today-cta-a .pm-btn { flex: 1 1 150px; }
.hub-tcards { list-style: none; margin: 0; padding: 2px 2px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.hub-tc { flex: 0 0 74%; max-width: 280px; scroll-snap-align: start; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: var(--pm-shadow-sm), inset 0 0 0 1.5px var(--pm-line); animation: hub-tc-in .5s ease both; }
.hub-tc:nth-child(2) { animation-delay: .06s; }
.hub-tc:nth-child(3) { animation-delay: .12s; }
.hub-tc:nth-child(4) { animation-delay: .18s; }
.hub-tc:nth-child(n+5) { animation-delay: .24s; }
@keyframes hub-tc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hub-tc { animation: none; } }
.hub-tc--luck { background: #fff6dc; }
.hub-tc--hour { background: #e8f4e2; }
.hub-tc--lucky { background: #fde8e2; }
.hub-tc--ddi { background: #e8effb; }
.hub-tc--tarot { background: #efe6fa; }
.hub-tc--stamp { background: #dff3ee; }
.hub-tc-k { font-size: 12.5px; font-weight: 700; color: var(--pm-sub-text); }
.hub-tc-big { font-family: var(--pm-font-head); font-weight: 400; font-size: 28px; line-height: 1.2; }
.hub-tc-line { margin: 0; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.hub-tc-lk { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.hub-tc-sw { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--pm-ink); }
.hub-tc-a { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; padding: 0 4px; color: var(--pm-ink); font-size: 14px; font-weight: 700; text-decoration: underline; }
.hub-tc-a--btn { padding: 0 16px; border: 0; border-radius: var(--pm-r-pill); background: #fff; box-shadow: inset 0 0 0 2px var(--pm-ink); text-decoration: none; font-family: inherit; cursor: pointer; }
button.hub-tc-a.hub-tc-a--btn, a.hub-tc-a.hub-tc-a--btn { color: var(--pm-ink); background: #fff; } /* 테마의 button 기본 글자색(옅은 베이지)이 덮어써 대비 1.16 이던 것 고정 */
@media (min-width: 900px) {
  .hub-tcards { flex-wrap: wrap; overflow: visible; }
  .hub-tc { flex: 1 1 calc(33.333% - 10px); max-width: none; }
}

/* 접근성: 물(파랑) 배지 글자 대비 */
.hub-el-badge.hub-el--water { color: #231a14; }
.hub-ask { margin-top: 14px; }
