/* 무료 콘텐츠 허브: 랜딩(/report/)과 같은 색·글꼴을 쓰되, 읽는 화면은 가독성을 우선한다.
   랜딩 = 영화적 몰입 · 타로 = 신비한 인터랙션 · 일주 각성 = 무협 연출 · MY 운명 = 읽기 쉬운 현대적 UI */
:root{
  --bg: #080A11; --bg-2: #0E111B; --panel: #131827; --panel-2: #181e31; --line: rgba(205, 178, 122, .2); --line-2: rgba(236, 231, 219, .1);
  --ink: #EFEAE0; --ink-2: #BDB8AC; --ink-3: #8A8678; --gold: #CDB27A; --gold-d: #8E7849; --gold-l: #EBD9AA; --jade: #7FB5A5; --red: #D8826F; --violet: #8f86d6;
  --f-serif: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --f-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --top: 52px;
}
#hub *{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; }
body.hubpage{ margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; min-height: 100svh; overflow-x: hidden; }
#hub h1, #hub h2, #hub h3, #hub h4, #hub p, #hub ul, #hub ol, #hub figure{ margin: 0; padding: 0; }
#hub h1, #hub h2, #hub h3{ font-family: var(--f-serif); font-weight: 600; line-height: 1.45; text-wrap: balance; }
#hub button{ font: inherit; color: inherit; }
#hub :focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }
#hub .glow{ position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 40% at 50% 0%, rgba(205, 178, 122, .13), transparent 70%), radial-gradient(50% 35% at 100% 100%, rgba(92, 82, 156, .14), transparent 70%); }

#hub .top{ position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--top); display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; padding: 0 8px; background: linear-gradient(180deg, rgba(8, 10, 17, .96), rgba(8, 10, 17, .86)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#hub .top .brand{ text-align: center; font-family: var(--f-serif); letter-spacing: .16em; color: var(--ink-2); text-decoration: none; font-size: .86rem; }
#hub .tb{ background: none; border: 0; color: var(--ink-3); font-size: .78rem; text-decoration: none; min-height: 44px; min-width: 44px; display: grid; place-items: center; cursor: pointer; }
#hub .tb:first-child{ font-size: 1.7rem; justify-self: start; }
#hub .tb.tr{ justify-self: end; }
#hub .tb:hover{ color: var(--gold); }
#hub #screen{ position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: calc(var(--top) + 10px) 20px 56px; min-height: 100svh; outline: 0; }
#hub #screen.fx{ animation: sc .45s ease both; }
@keyframes sc{ from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#hub .kick{ font-family: var(--f-serif); color: var(--gold); letter-spacing: .3em; font-size: .72rem; margin-bottom: 14px; }
.top .brand{ display: inline-flex; align-items: center; gap: 9px; } .top .brand-mark{ display: block; height: 30px; width: auto; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
#hub .h1{ font-size: clamp(1.6rem, 6.4vw, 2.1rem); margin-bottom: 10px; }
#hub .h2{ font-size: clamp(1.3rem, 5.2vw, 1.6rem); }
#hub .sub{ color: var(--ink-2); font-size: 1rem; }
#hub .note{ color: var(--ink-3); font-size: .8rem; }
#hub .msg{ min-height: 1.4em; font-size: .9rem; text-align: center; }
#hub .msg.err{ color: var(--red); }
#hub em{ font-style: normal; color: var(--gold-l); }

/* 버튼: 한 손 터치(최소 높이 52px) */
#hub .btn{ display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--gold); background: linear-gradient(180deg, #D9C28E, #B39A63); color: #17120A; font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: filter .2s, transform .1s; }
#hub .btn:hover{ filter: brightness(1.07); } #hub .btn:active{ transform: scale(.985); }
#hub .btn.ghost{ background: transparent; color: var(--gold-l); border-color: rgba(205, 178, 122, .45); font-weight: 500; }
#hub .btn.sm{ min-height: 46px; font-size: .95rem; }
#hub .btn:disabled{ opacity: .5; cursor: default; }
#hub .stack{ display: grid; gap: 10px; }
#hub .linkbtn{ background: none; border: 0; color: var(--ink-3); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; cursor: pointer; font-size: .9rem; }

/* ───── 허브 홈 ───── */
#hub .hero{ padding: 26px 0 20px; text-align: center; }
#hub .hero .h1{ margin-top: 4px; }
#hub .todaybar{ margin: 6px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(205, 178, 122, .08), rgba(205, 178, 122, .02)); display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
#hub .todaybar b{ font-family: var(--f-serif); color: var(--gold-l); font-size: 1.5rem; min-width: 2ch; text-align: center; }
#hub .todaybar span{ display: block; font-size: .78rem; color: var(--ink-3); }
#hub .todaybar p{ font-size: .93rem; color: var(--ink); line-height: 1.5; }
#hub .cards{ display: grid; gap: 12px; }
#hub .cc{ position: relative; display: grid; gap: 6px; padding: 18px 18px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); text-align: left; text-decoration: none; color: inherit; cursor: pointer; overflow: hidden; transition: border-color .25s, transform .1s; }
#hub .cc:hover{ border-color: rgba(205, 178, 122, .5); } #hub .cc:active{ transform: scale(.99); }
#hub .cc small{ color: var(--gold); letter-spacing: .22em; font-size: .68rem; font-family: var(--f-serif); }
#hub .cc h3{ font-size: 1.2rem; } #hub .cc p{ color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
#hub .cc .go{ margin-top: 6px; color: var(--gold-l); font-weight: 500; font-size: .95rem; }
#hub .cc.main{ padding: 22px 20px 20px; background: radial-gradient(90% 80% at 85% 0%, rgba(143, 134, 214, .22), transparent 65%), linear-gradient(180deg, #181c33, #11152a); border-color: rgba(205, 178, 122, .4); box-shadow: 0 10px 40px -18px rgba(143, 134, 214, .5); }
#hub .cc.main h3{ font-size: 1.4rem; }
#hub .chips{ display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
#hub .chips i{ font-style: normal; font-size: .78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
#hub .cc .glyph{ position: absolute; right: 14px; top: 8px; font-family: var(--f-serif); font-size: 2.6rem; color: rgba(205, 178, 122, .13); pointer-events: none; }
#hub .more{ margin-top: 22px; border-top: 1px solid var(--line-2); padding-top: 4px; }
#hub .more summary{ min-height: 48px; display: flex; align-items: center; cursor: pointer; color: var(--ink-2); font-size: .95rem; list-style: none; }
#hub .more summary::-webkit-details-marker{ display: none; }
#hub .more summary::after{ content: '＋'; margin-left: auto; color: var(--gold); }
#hub .more[open] summary::after{ content: '－'; }
#hub .more a{ display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-2); font-size: .95rem; }
#hub .more a small{ color: var(--ink-3); }

/* ───── 타로 ───── */
#hub .tmodes{ display: grid; gap: 10px; margin-top: 18px; }
#hub .tm{ display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 12px; min-height: 68px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; text-align: left; }
#hub .tm:hover{ border-color: rgba(205, 178, 122, .5); }
#hub .tm .ic{ width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(205, 178, 122, .1); color: var(--gold); font-family: var(--f-serif); font-size: 1.15rem; }
#hub .tm b{ display: block; font-weight: 500; font-size: 1.05rem; } #hub .tm small{ color: var(--ink-3); font-size: .8rem; }
#hub .tm .ar{ color: var(--gold); }
#hub .tstage{ display: grid; gap: 18px; justify-items: center; text-align: center; padding-top: 14px; }
#hub .ask{ font-family: var(--f-serif); font-size: clamp(1.25rem, 5vw, 1.55rem); line-height: 1.6; }
#hub .pulse{ width: 92px; height: 92px; border-radius: 50%; margin: 6px auto; background: radial-gradient(closest-side, rgba(235, 217, 170, .5), rgba(205, 178, 122, .1) 60%, transparent); animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse{ 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
#hub .fan{ display: flex; gap: 12px; width: calc(100% + 40px); margin: 6px -20px 0; padding: 14px 20px 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#hub .fan::-webkit-scrollbar{ display: none; }
#hub .fan .tc{ flex: 0 0 auto; scroll-snap-align: center; }
#hub .fan.few{ justify-content: center; }
#hub .tc{ position: relative; width: min(30vw, 118px); aspect-ratio: 5 / 8.4; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; transition: transform .35s, opacity .35s, filter .35s; animation: deal .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 90ms); perspective: 800px; }
@keyframes deal{ from { opacity: 0; transform: translateY(26px) rotate(-3deg); } to { opacity: 1; transform: none; } }
#hub .tc:hover:not(:disabled){ transform: translateY(-6px); }
#hub .tc.dim{ opacity: .25; filter: grayscale(.6); transform: scale(.94); }
#hub .tc.pick{ transform: translateY(-14px) scale(1.06); z-index: 2; }
#hub .tc:disabled{ cursor: default; }
#hub .face, #hub .back{ position: absolute; inset: 0; border-radius: 10px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
#hub .back{ border: 1px solid rgba(205, 178, 122, .55); background:
  radial-gradient(circle at 50% 50%, rgba(235, 217, 170, .22) 0 9%, transparent 10%),
  repeating-linear-gradient(45deg, rgba(205, 178, 122, .13) 0 2px, transparent 2px 10px),
  repeating-linear-gradient(-45deg, rgba(205, 178, 122, .13) 0 2px, transparent 2px 10px),
  linear-gradient(160deg, #1b2040, #0c0f20); box-shadow: inset 0 0 0 5px #0c0f20, inset 0 0 0 6px rgba(205, 178, 122, .35), 0 8px 24px -10px #000; }
#hub .back::after{ content: '運'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-serif); color: var(--gold); font-size: 1.9rem; opacity: .85; }
#hub .face{ transform: rotateY(180deg); }
#hub .flip .back{ transform: rotateY(180deg); } #hub .flip .face{ transform: rotateY(0); }
/* 카드 앞면: 이미지가 없거나 못 불러오면 자리표시가 그대로 보인다(깨진 이미지 아이콘 없음) */
#hub .tf{ position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 10px; text-align: center; border-radius: 10px; border: 1px solid rgba(205, 178, 122, .6); background: radial-gradient(80% 60% at 50% 25%, rgba(143, 134, 214, .28), transparent 70%), linear-gradient(180deg, #1a1f3a, #0c0f20); }
#hub .tf .no{ font-family: var(--f-serif); color: var(--gold); font-size: 1.5rem; letter-spacing: .08em; }
#hub .tf .nm{ font-family: var(--f-serif); color: var(--ink); font-size: .95rem; line-height: 1.3; }
#hub .tf .en{ color: var(--ink-3); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
#hub .tf .su{ color: var(--gold-d); font-size: .62rem; }
#hub .tc .tcimg{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; opacity: 0; transition: opacity .4s; }
#hub .tcimg.on{ opacity: 1; }
#hub .rev .tf, #hub .rev .tcimg{ transform: rotate(180deg); }
/* 공통 프레임: 그림(.fa)을 창 위치에 깔고 프레임(.ffr)을 덮는다. 역방향은 그림 창(.fa)만 돌린다 */
#hub .fx{ position: absolute; inset: 0; border-radius: 10px; overflow: hidden; }
#hub .fx .tf{ border: 0; }
#hub .fx .fa{ position: absolute; overflow: hidden; background: #0c0f20; }
#hub .fx .ffr{ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* 이름 띠: 프레임 아래쪽 한지색 띠 위에 얹는 글씨라 먹색 + 밝은 테두리로 대비를 준다(2026-11-16: 연금색 글씨가 한지 바탕에 묻혔다) */
#hub .face .fx{ container-type: inline-size; } /* #screen 도 .fx 클래스를 잠깐 받으니 카드 앞면 안에서만 */
#hub .fx .fnm{ position: absolute; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 0 5%; font-family: var(--f-serif); color: #2a1a08; font-weight: 700; font-size: .8rem; font-size: clamp(.72rem, 7cqw, 1.05rem); line-height: 1.2; letter-spacing: .06em; text-shadow: 0 0 2px rgba(255, 246, 225, .95), 0 0 6px rgba(255, 240, 205, .75); word-break: keep-all; }
/* 역방향: 그림 창(.fa)만 뒤집는다. 프레임과 이름 띠는 바로 선 채로 둬서 이름이 읽힌다 */
#hub .rev .fx .fa{ transform: rotate(180deg); }
#hub .rev .fx .tf, #hub .rev .fx .tcimg{ transform: none; }
#hub .result-card{ width: min(56vw, 210px); margin: 4px auto 6px; }
#hub .result-card .tc{ width: 100%; animation: none; cursor: default; }
#hub .result-card .tc:hover{ transform: none; }
#hub .rcap{ text-align: center; }
#hub .rcap .en{ font-family: var(--f-serif); letter-spacing: .24em; color: var(--gold); font-size: .95rem; }
#hub .rcap .ko{ font-size: .95rem; color: var(--ink-2); margin-top: 2px; }
#hub .rhead{ font-family: var(--f-serif); font-size: clamp(1.2rem, 4.8vw, 1.45rem); text-align: center; line-height: 1.6; margin: 18px 0 8px; }
#hub .verdict{ text-align: center; font-family: var(--f-serif); font-size: 2.4rem; letter-spacing: .1em; margin: 14px 0 0; color: var(--gold-l); }
#hub .verdict.NO{ color: var(--red); } #hub .verdict.MAYBE{ color: var(--violet); }
#hub .vlabel{ text-align: center; color: var(--ink-2); font-size: .95rem; }
#hub .rsec{ padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); margin-top: 10px; }
#hub .rsec h4{ font-size: .74rem; letter-spacing: .2em; color: var(--gold); font-weight: 500; margin-bottom: 4px; font-family: var(--f-sans); }
#hub .rsec p{ font-size: 1rem; line-height: 1.75; color: var(--ink); }
#hub .rsec.one{ text-align: center; border-color: rgba(205, 178, 122, .4); background: linear-gradient(180deg, rgba(205, 178, 122, .1), rgba(205, 178, 122, .02)); }
#hub .rsec.one p{ font-family: var(--f-serif); font-size: 1.1rem; color: var(--gold-l); }
#hub .rv{ opacity: 0; transform: translateY(10px); animation: rv .7s ease forwards; animation-delay: var(--d, 0s); }
@keyframes rv{ to { opacity: 1; transform: none; } }
#hub .bridge{ margin-top: 30px; padding: 24px 18px 20px; text-align: center; border-radius: 18px; border: 1px solid rgba(205, 178, 122, .4); background: radial-gradient(100% 90% at 50% 0%, rgba(205, 178, 122, .16), transparent 70%), var(--panel); }
#hub .bridge .q{ font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.8; margin-bottom: 8px; }
#hub .bridge .sub{ margin-bottom: 18px; font-size: .92rem; }
#hub .dis{ margin-top: 18px; text-align: center; color: var(--ink-3); font-size: .78rem; }

/* ───── 입력 ───── */
#hub .form{ display: grid; gap: 16px; margin-top: 22px; }
#hub .f{ display: grid; gap: 8px; }
#hub .f > span{ font-size: .8rem; letter-spacing: .08em; color: var(--ink-3); }
#hub .f input[type=text], #hub .f input[type=time], #hub .f select{ font: inherit; font-size: 1rem; width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(14, 17, 27, .9); color: var(--ink); color-scheme: dark; }
#hub .f input:focus, #hub .f select:focus{ border-color: var(--gold); outline: none; }
#hub .f.row3{ grid-template-columns: 1.3fr 1fr 1fr; } #hub .f.row3 > span{ grid-column: 1 / -1; }
#hub .f.seg{ grid-template-columns: auto 1fr 1fr; align-items: center; } #hub .f.seg > span{ padding-right: 6px; }
#hub .f.seg label, #hub .chk{ display: flex; position: relative; cursor: pointer; }
#hub .f.seg input{ position: absolute; opacity: 0; }
#hub .f.seg i{ flex: 1; text-align: center; padding: 13px 8px; border: 1px solid var(--line); border-radius: 12px; font-style: normal; color: var(--ink-2); min-height: 52px; display: grid; place-items: center; }
#hub .f.seg input:checked + i{ border-color: var(--gold); background: rgba(205, 178, 122, .13); color: var(--gold-l); }
#hub .f.seg input:focus-visible + i{ outline: 2px solid var(--gold); }
#hub .f.seg .leap{ grid-column: 2 / -1; }
#hub .inl{ display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } #hub .inl input[type=time]{ flex: 1 1 140px; min-width: 0; }
#hub .chk{ gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-2); min-height: 48px; } #hub .chk input{ width: 20px; height: 20px; accent-color: var(--gold); }

/* ───── 일주 각성 ───── */
#awk{ position: fixed; inset: 0; z-index: 60; background: #04050a; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
#awk .vid{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
#awk .vid.on{ opacity: .55; }
#awk .shade{ position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 50%, rgba(4, 5, 10, .25), rgba(4, 5, 10, .85)); }
#awk .stage{ position: relative; z-index: 2; padding: 0 28px; text-align: center; max-width: 520px; width: 100%; }
#awk .a1{ font-family: var(--f-serif); font-size: clamp(1.1rem, 4.6vw, 1.35rem); color: var(--ink-2); letter-spacing: .06em; line-height: 1.9; }
#awk .big{ font-family: var(--f-serif); font-size: clamp(3.6rem, 22vw, 6rem); color: var(--gold-l); letter-spacing: .08em; text-shadow: 0 0 40px rgba(205, 178, 122, .5); line-height: 1.2; margin: 6px 0; }
#awk .rd{ margin: -2px 0 8px; font-family: var(--f-serif); font-size: 1.05rem; letter-spacing: .3em; color: var(--ink-2); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
#awk .nm{ font-family: var(--f-serif); font-size: clamp(1.8rem, 8vw, 2.6rem); }
#awk .film{ font-family: var(--f-serif); font-size: clamp(1.15rem, 4.8vw, 1.5rem); line-height: 1.8; color: var(--ink); margin: 6px 0; }
#awk .ttl{ color: var(--gold); letter-spacing: .12em; margin-top: 10px; font-size: .95rem; }
#awk .trait{ color: var(--ink-2); font-size: .95rem; line-height: 1.8; margin-top: 12px; }
/* 영상이 늦게 오면 장면을 멈추고 기다린다(hub-saju.js play) */
#awk .aw-load[hidden]{ display: none; }
#awk .aw-load{ position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 90vw; display: grid; justify-items: center; gap: 14px; color: rgba(251, 246, 234, .78); font-size: .88rem; letter-spacing: .04em; animation: awLoadIn .6s ease .4s both; }
#awk .aw-load p{ margin: 0; }
#awk .aw-spin{ width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(251, 246, 234, .18); border-top-color: rgba(232, 199, 128, .9); animation: awSpin 1s linear infinite; }
@keyframes awSpin{ to{ transform: rotate(360deg); } }
@keyframes awLoadIn{ from{ opacity: 0; } to{ opacity: 1; } }
@media (prefers-reduced-motion: reduce){ #awk .aw-spin{ animation-duration: 3s; } }
#awk.aw-wait .tap{ visibility: hidden; }
#awk .skip{ position: absolute; z-index: 3; top: max(14px, env(safe-area-inset-top)); right: 14px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .3); color: #fff; cursor: pointer; font-size: .85rem; }
#awk .tap{ position: absolute; z-index: 3; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom)); text-align: center; color: var(--ink-3); font-size: .78rem; letter-spacing: .2em; }
#hub .aw-in{ animation: awin 1s ease both; } @keyframes awin{ from { opacity: 0; transform: scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ───── MY 운명 ───── */
#hub .myhead{ padding: 22px 0 6px; text-align: center; }
#hub .myhead .who{ font-family: var(--f-serif); font-size: clamp(1.4rem, 5.6vw, 1.8rem); }
#hub .myhead .ilju{ margin-top: 10px; display: inline-flex; align-items: baseline; gap: 10px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; }
#hub .myhead .ilju b{ font-family: var(--f-serif); font-size: 1.5rem; color: var(--gold-l); letter-spacing: .08em; }
#hub .myhead .ilju span{ color: var(--ink-2); font-size: .9rem; }
#hub .todaycard{ display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; margin: 18px 0 8px; padding: 18px; border-radius: 18px; border: 1px solid rgba(205, 178, 122, .4); background: radial-gradient(90% 90% at 0% 0%, rgba(205, 178, 122, .16), transparent 65%), var(--panel); text-decoration: none; color: inherit; }
#hub .ring{ --p: 50; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(236, 231, 219, .1) 0); position: relative; }
#hub .ring::before{ content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); }
#hub .ring b{ position: relative; font-family: var(--f-serif); font-size: 1.7rem; color: var(--gold-l); }
#hub .todaycard .lb{ font-size: .72rem; letter-spacing: .2em; color: var(--gold); }
#hub .todaycard h3{ font-size: 1.05rem; margin: 2px 0 4px; } #hub .todaycard p{ color: var(--ink-2); font-size: .92rem; line-height: 1.6; }
#hub .grp{ margin-top: 24px; }
#hub .grp > h2{ font-size: .8rem; letter-spacing: .24em; color: var(--gold); font-family: var(--f-sans); font-weight: 500; margin-bottom: 10px; }
#hub .tiles{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#hub .tile{ display: grid; gap: 4px; align-content: start; min-height: 92px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); text-align: left; cursor: pointer; text-decoration: none; color: inherit; }
#hub .tile:hover{ border-color: rgba(205, 178, 122, .5); }
#hub .tile b{ font-weight: 500; font-size: 1rem; } #hub .tile small{ color: var(--ink-3); font-size: .8rem; line-height: 1.45; }
#hub .tile.wide{ grid-column: 1 / -1; }
#hub .tile .hj{ font-family: var(--f-serif); color: var(--gold); font-size: .9rem; }
#hub .tiles .me-body{ grid-column: 1 / -1; margin-top: 0; }
#hub .me-body{ margin-top: 10px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); }
#hub .eb{ display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: .9rem; } #hub .eb > span{ flex: 0 0 1.8em; } #hub .eb-t{ flex: 1; height: 10px; border-radius: 6px; background: rgba(236, 231, 219, .1); overflow: hidden; } #hub .eb-t i{ display: block; height: 100%; border-radius: 6px; } #hub .eb b{ flex: 0 0 3em; text-align: right; font-weight: 500; }
#hub .sw{ display: grid; gap: 8px; margin-top: 12px; } #hub .sw div{ padding: 10px 12px; border-radius: 10px; background: rgba(236, 231, 219, .05); font-size: .93rem; line-height: 1.6; } #hub .sw small{ display: block; color: var(--gold); font-size: .7rem; letter-spacing: .16em; }

/* ───── 오늘의 운세 ───── */
#hub .tscore{ display: grid; justify-items: center; gap: 6px; padding: 14px 0 6px; text-align: center; }
#hub .tscore .ring{ width: 124px; height: 124px; } #hub .tscore .ring b{ font-size: 2.3rem; }
#hub .tflow{ font-family: var(--f-serif); font-size: 1.2rem; color: var(--gold-l); margin-top: 6px; }
#hub .dgrid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
#hub .dc{ padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); }
#hub .dc.hl{ border-color: rgba(205, 178, 122, .6); }
#hub .dc small{ color: var(--ink-3); font-size: .74rem; letter-spacing: .12em; }
#hub .dc b{ display: block; font-family: var(--f-serif); font-size: 1.25rem; margin: 2px 0; } #hub .dc .bar{ height: 6px; border-radius: 3px; background: rgba(236, 231, 219, .1); overflow: hidden; margin-top: 6px; } #hub .dc .bar i{ display: block; height: 100%; background: var(--gold); border-radius: 3px; }
#hub .dc span{ display: block; color: var(--ink-2); font-size: .82rem; margin-top: 4px; }
#hub .actbox{ margin-top: 16px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(205, 178, 122, .35); }
#hub .actbox h3{ font-size: 1rem; margin-bottom: 8px; } #hub .actbox p{ color: var(--ink-2); font-size: .95rem; line-height: 1.7; } #hub .actbox p + p{ margin-top: 8px; }
#hub .next2{ display: grid; gap: 10px; margin-top: 22px; }
#hub .pend{ padding: 40px 0; text-align: center; color: var(--ink-3); }

#hub .toast{ position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; padding: 12px 20px; border-radius: 999px; background: rgba(20, 24, 40, .96); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; max-width: 90vw; }

#hub .deck{ display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 24px; }
#hub .deck .tc.mini{ width: 100%; border-radius: 6px; }
#hub .deck .tc.mini .back{ border-radius: 6px; }
#hub .deck .tc.mini:hover:not(:disabled){ transform: translateY(-3px); }
#hub .deck .tc.mini.pick{ transform: scale(1.12); }
@media (min-width: 760px){ #hub .deck{ grid-template-columns: repeat(9, 1fr); } }
@media (min-width: 760px){ #hub #screen{ max-width: 620px; padding-top: calc(var(--top) + 24px); } #hub .tc{ width: 118px; } #hub .fan{ justify-content: center; } }
@media (prefers-reduced-motion: reduce){
  #hub *, #hub *::before, #hub *::after{ animation: none !important; transition: none !important; }
  #hub .rv{ opacity: 1 !important; transform: none !important; } #hub .pulse{ opacity: 1; }
  html{ scroll-behavior: auto; }
}

/* 스크롤하면 자연스럽게 나타나는 효과 */
#hub .rvl{ opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
#hub .rvl.in{ opacity: 1; transform: none; }
#hub .cards > .rvl:nth-child(2){ transition-delay: .06s; } #hub .cards > .rvl:nth-child(3){ transition-delay: .12s; } #hub .cards > .rvl:nth-child(4){ transition-delay: .18s; }
@media (prefers-reduced-motion: reduce){ #hub .rvl{ opacity: 1; transform: none; } }
/* 랜딩에 끼워 넣은 경우: 위쪽 고정 막대·배경 빛은 랜딩 것을 쓴다 */
#hub[data-embed] .top, #hub[data-embed] .glow{ display: none; }
#hub[data-embed]{ position: relative; z-index: 1; background: linear-gradient(180deg, transparent, var(--bg) 14vh); }
#hub[data-embed] #screen{ padding-top: 8vh; min-height: 100svh; }

/* 홈화면으로 가기 */
#hub .homebar{ display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 0 -4px; padding: 0 4px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
#hub .homebar:hover{ color: var(--gold-l); }
#hub .homebtn{ margin-top: 22px; }

/* ── 무료 콘텐츠 깊이 개편: 오늘의 운세 상세 · 타로 미니 리딩 (기존 토큰 그대로) ── */
#hub .todaybar .why{ display: block; font-style: normal; font-size: .78rem; color: var(--gold); margin-top: 3px; }
#hub .dhead{ margin-top: 10px; font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.55; color: var(--gold-l); }
#hub a.dc{ display: block; text-decoration: none; color: inherit; }
#hub .dsec{ margin-top: 22px; } #hub .dsec h3{ font-size: 1.05rem; margin-bottom: 8px; } #hub .dsec p{ color: var(--ink-2); font-size: .96rem; line-height: 1.75; } #hub .dsec p + p{ margin-top: 8px; }
#hub .dsec .dsub{ font-size: .82rem; color: var(--ink-3); margin: -2px 0 10px; }
#hub details.dd{ margin-top: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
#hub details.dd > summary{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
#hub details.dd > summary::-webkit-details-marker{ display: none; }
#hub details.dd > summary small{ display: block; color: var(--ink-3); font-size: .7rem; letter-spacing: .14em; }
#hub details.dd > summary b{ font-family: var(--f-serif); font-size: 1.05rem; font-weight: 600; }
#hub details.dd > summary em{ display: block; font-style: normal; color: var(--ink-2); font-size: .84rem; line-height: 1.5; margin-top: 3px; }
#hub details.dd .chev{ flex: none; width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s; }
#hub details.dd[open] .chev{ transform: rotate(-135deg); }
#hub .ddb{ padding: 0 16px 16px; } #hub .ddb p{ font-size: .95rem; line-height: 1.75; color: var(--ink); margin-top: 8px; }
#hub .ddb h5, #hub .actcard h5{ font-size: .72rem; letter-spacing: .16em; color: var(--gold); font-weight: 500; margin: 14px 0 6px; }
#hub .gc{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (max-width: 380px){ #hub .gc{ grid-template-columns: 1fr; } }
#hub ul.dl{ list-style: none; padding: 0; margin: 0; } #hub ul.dl li{ position: relative; padding-left: 14px; font-size: .9rem; line-height: 1.6; color: var(--ink-2); margin-top: 4px; }
#hub ul.dl li::before{ content: ''; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
#hub .gc .c li::before{ background: var(--red); }
#hub .chips.ex i{ color: var(--gold-l); }
#hub .actcard{ margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(205, 178, 122, .35); } #hub .actcard h3{ font-size: 1.05rem; }
#hub .chips.tg i{ color: var(--gold-l); border-color: rgba(205, 178, 122, .45); } #hub .chips.tg.avoid i{ color: var(--ink-2); border-color: var(--line); }
#hub .actcard .one{ margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); text-align: center; } #hub .actcard .one small{ color: var(--ink-3); font-size: .72rem; letter-spacing: .14em; } #hub .actcard .one p{ font-family: var(--f-serif); color: var(--gold-l); font-size: 1.05rem; line-height: 1.7; margin-top: 4px; }
#hub .ev{ margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(236, 231, 219, .04); } #hub .ev h5{ margin: 0 0 2px; } #hub .ev p{ margin: 0; font-size: .9rem; color: var(--ink-2); }
#hub details.pro{ margin-top: 12px; } #hub details.pro > summary{ cursor: pointer; font-size: .84rem; color: var(--gold); padding: 6px 0; } #hub details.pro ul.dl li{ font-size: .82rem; color: var(--ink-3); }
#hub .nextc{ margin-top: 24px; padding: 20px 16px; border-radius: 16px; text-align: center; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(205, 178, 122, .08), rgba(205, 178, 122, .02)); display: grid; gap: 10px; justify-items: center; } #hub .nextc .q{ font-family: var(--f-serif); font-size: 1.1rem; line-height: 1.6; }
#hub .rsum{ text-align: center; color: var(--ink-2); font-size: .95rem; line-height: 1.7; margin: 8px 6px 0; }
#hub .rsec p + p{ margin-top: 8px; } #hub .rsec.good{ border-color: rgba(98, 194, 174, .35); } #hub .rsec.warn{ border-color: rgba(255, 138, 120, .3); }
/* 카드 그림으로 읽기: 장면·상징·방향 → 질문 주제로 잇는 마지막 문장을 강조 */
#hub .rsec.art{ border-color: rgba(205, 178, 122, .35); } #hub .rsec.art .tbr{ color: var(--gold-l); border-left: 2px solid rgba(205, 178, 122, .55); padding-left: 10px; }
#hub .others{ margin-top: 22px; text-align: center; } #hub .others .chips{ justify-content: center; margin-top: 8px; }
#hub .chipbtn{ font: inherit; font-size: .84rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; } #hub .chipbtn:hover{ border-color: var(--gold); }

/* ───────── 금색 카드 · 일주 각성(영상 전체 노출, 테두리 글씨) ───────── */
#hub .cc{ border: 1px solid rgba(217, 194, 142, .55); background: linear-gradient(180deg, rgba(217, 194, 142, .10), rgba(179, 154, 99, .04) 60%), var(--panel); box-shadow: inset 0 1px 0 rgba(255, 236, 190, .18), 0 6px 22px -14px rgba(217, 194, 142, .45); }
#hub .cc:hover{ border-color: #D9C28E; box-shadow: inset 0 1px 0 rgba(255, 236, 190, .28), 0 8px 28px -12px rgba(217, 194, 142, .6); }
#hub .cc.main{ border-color: #D9C28E; background: radial-gradient(90% 80% at 85% 0%, rgba(217, 194, 142, .22), transparent 65%), linear-gradient(180deg, #1d1a17, #14120f); box-shadow: inset 0 1px 0 rgba(255, 236, 190, .3), 0 10px 40px -18px rgba(217, 194, 142, .55); }
#hub .cc h3{ color: #F1E2B8; }
#hub .cc .go{ display: inline-flex; align-items: center; justify-self: start; min-height: 36px; padding: 0 16px; border-radius: 999px; background: linear-gradient(180deg, #D9C28E, #B39A63); color: #17120A; font-weight: 700; }
#hub .chips i{ border-color: rgba(217, 194, 142, .5); color: #E6D3A2; }
#hub .more{ border-top-color: rgba(217, 194, 142, .35); }
#hub .more summary{ color: #E6D3A2; } #hub .more summary::after{ color: #D9C28E; }
#hub .more a{ border-top-color: rgba(217, 194, 142, .22); }

#awk .vid{ object-fit: contain; }
#awk .vid.on{ opacity: 1; }
/* 각성 자막: 검은 외곽선 대신 화면 아래 어둠 그라데이션 + 부드러운 그림자. 한글은 Pretendard(산세리프), 큰 한자만 명조로 남긴다. */
#awk{ --aw-sans: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, sans-serif; }
#awk .shade{ display: block; z-index: 1; background: linear-gradient(180deg, rgba(4, 5, 10, 0) 45%, rgba(4, 5, 10, .55) 68%, rgba(4, 5, 10, .9) 100%); pointer-events: none; }
#awk .stage{ position: absolute; left: 50%; bottom: max(70px, calc(env(safe-area-inset-bottom) + 54px)); transform: translateX(-50%); width: min(90%, 600px); max-width: none; padding: 0; background: none; }
#awk .stage :is(.a1, .nm, .film, .ttl, .trait, .rd){ font-family: var(--aw-sans); color: #FBF6EA; -webkit-text-stroke: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 2px 18px rgba(0, 0, 0, .55); word-break: keep-all; text-wrap: balance; }
#awk .stage .a1{ font-size: clamp(1rem, 4.2vw, 1.25rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.6; color: rgba(251, 246, 234, .82); }
#awk .stage .big{ -webkit-text-stroke: 0; color: #F3E3B5; font-weight: 600; font-size: clamp(3rem, 16vw, 5rem); letter-spacing: .04em; margin: 4px 0 2px; text-shadow: 0 2px 6px rgba(0, 0, 0, .6), 0 0 36px rgba(217, 194, 142, .45); }
#awk .stage .rd{ font-size: .82rem; font-weight: 600; letter-spacing: .32em; color: #D9C28E; margin: 0 0 14px; }
#awk .stage .nm{ font-weight: 700; letter-spacing: -.02em; }
#awk .stage .film{ font-size: clamp(1.2rem, 4.9vw, 1.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.5; margin: 0 0 10px; }
#awk .stage .ttl{ display: inline-block; margin: 6px 0 0; padding: 5px 14px; border-radius: 999px; background: rgba(217, 194, 142, .16); border: 1px solid rgba(217, 194, 142, .45); color: #EBD7A4; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#awk .stage .trait{ font-size: clamp(.92rem, 3.7vw, 1.02rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.65; color: rgba(251, 246, 234, .86); margin-top: 12px; }
#awk .skip{ font-family: var(--aw-sans); font-weight: 500; color: #FBF6EA; border-color: rgba(255, 255, 255, .28); background: rgba(10, 10, 14, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#awk .tap{ font-family: var(--aw-sans); font-weight: 600; color: rgba(251, 246, 234, .55); -webkit-text-stroke: 0; text-shadow: none; animation: awTap 2.4s ease-in-out infinite; }
@keyframes awTap{ 50%{ opacity: .35; } }
@media (prefers-reduced-motion: reduce){ #awk .tap{ animation: none; } }
/* Fortune dashboard: quiet surfaces, vivid data and clear interaction states. */
.fortune-panel {
  --opportunity: #73d8ae;
  --expansion: #78cddb;
  --harvest: #b09aef;
  --accumulation: #8da8f3;
  margin: 24px 0; padding: 28px 24px;
  border: 1px solid #ffffff12; border-radius: 24px;
  background: radial-gradient(ellipse at top right,#29324355,transparent 65%),#11151f;
  box-shadow: 0 18px 55px #00000025;
  font-family: system-ui,-apple-system,'Segoe UI',sans-serif;
  color: #e9edf5;
}
.fortune-panel .h1 { font-family: inherit; font-size: 27px; font-weight: 750; letter-spacing: -.8px; color: #f3f1e9; line-height: 1.4; }
.fortune-panel .kick { color: #c6b383; font-size: 10px; letter-spacing: 2.4px; }
.fortune-panel .sub,.fortune-panel .dsub { color: #a6afc0; line-height: 1.75; }
.fortune-panel .sub { font-size: 14px; }
.fortune-panel .dsub { font-size: 12px; }
.fortune-panel h2,.tscore h2 { font-size: 19px; font-weight: 650; letter-spacing: -.5px; }
.mc-nav { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0; }
.mc-nav button,.fc-controls button { border:1px solid #ffffff15;background:#ffffff07;color:#e4d3a5;border-radius:12px;padding:9px 14px;cursor:pointer;min-height:40px; }
.mc-chart { display:flex;gap:9px;height:225px;overflow-x:auto;overflow-y:hidden;padding:22px 0 46px;align-items:stretch;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#ffffff08 calc(25% - 1px),#ffffff08 25%);background-clip:content-box;scrollbar-width:thin;scrollbar-color:#434957 transparent; }
#hub .fortune-panel .mc-bar { position:relative;flex:1;min-width:34px;background:transparent;border:0;border-bottom:1px solid #ffffff20;color:#c4ccdc;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:0;cursor:pointer; }
#hub .fortune-panel .mc-bar i { width:76%;max-width:34px;min-height:2px;border-radius:8px 8px 3px 3px;flex-shrink:0;background:linear-gradient(to top,color-mix(in srgb,var(--flow) 40%,#152131),var(--flow));opacity:.85; }
#hub .fortune-panel .mc-bar b { font-size:11px;font-weight:600;margin-bottom:6px;font-variant-numeric:tabular-nums; }
#hub .fortune-panel .mc-bar span,#hub .fortune-panel .mc-bar small { position:absolute;top:calc(100% + 8px);font-size:11px;white-space:nowrap; }
#hub .fortune-panel .mc-bar small { top:calc(100% + 24px);font-size:9px;color:#7f899e; }
#hub .fortune-panel .mc-bar.active i { outline:2px solid #e5cea0;outline-offset:4px;opacity:1;box-shadow:0 0 22px #e5cea01a; }
/* 2026-11-20 월운 막대 = 신호 등급 3단계 색, 십신은 막대 위 글자(.mc-tg) */ .mg-good { --flow:#5FDC8F; }.mg-ok { --flow:#B3BDCF; }.mg-care { --flow:#FF8A4C; } #hub .fortune-panel .mc-bar em.mc-tg { font-style:normal;font-size:10px;font-weight:700;color:var(--flow);margin-bottom:2px;white-space:nowrap; }
.flow-tg-bg { --flow:#78cddb; }.flow-tg-ss { --flow:#73d8ae; }.flow-tg-jc { --flow:#e7c46a; }.flow-tg-gw { --flow:#8da8f3; }.flow-tg-is { --flow:#b09aef; }
.flow-opportunity { --flow:#73d8ae; }.flow-expansion { --flow:#78cddb; }.flow-harvest { --flow:#b09aef; }.flow-accumulation { --flow:#8da8f3; }
/* 2026-11-25 월운 막대 오행 색 */ #hub .fortune-panel .mc-bar .mc-elh{ font-style:normal;font-weight:900;font-size:10px; } #hub .fortune-panel .mc-bar.care::after{ content:'';position:absolute;bottom:-4px;left:22%;right:22%;height:3px;border-radius:2px;background:#FF8A4C; } .mc-legend i.mc-care-k{ background:#FF8A4C;border-radius:2px;height:3px;width:12px; }
/* 2026-11-25 일진 칸 오행 색: 조심이어도 배경은 오행, 조심은 주황 밑줄·글자 */ #hub .fortune-panel .mc-day.elm.caution,#hub .fortune-panel .mc-day.elm.caution.selected{ border:1px solid color-mix(in srgb,var(--flow) 15%,transparent);border-bottom:3px solid #FF8A4C;background:linear-gradient(155deg,color-mix(in srgb,var(--flow) 15%,#121723),color-mix(in srgb,var(--flow) 6%,#0d1119));color:inherit; } #hub .fortune-panel .mc-day.elm.caution b,#hub .fortune-panel .mc-day.elm.caution small,#hub .fortune-panel .mc-day.elm.caution .mc-metric strong{ color:inherit; } #hub .fortune-panel .mc-day.elm.caution .mc-metric strong{ color:var(--flow); } #hub .fortune-panel .mc-day.elm.caution.selected{ border:1px solid #e2c991; } #hub .mc-day .mc-el{ font-style:normal;font-weight:900;font-size:10px;margin-left:3px;color:var(--flow); }
/* 2026-11-22 일진 조심 신호(캘린더 상단) */ .mc-care { margin:4px 0 14px;padding:12px 14px;border-radius:14px;background:#ff8a4c12;border:1px solid #ff8a4c40; } .mc-care-k { margin:0 0 8px;font-size:13px;font-weight:800;color:#ffb88f; } .mc-care ul { list-style:none;margin:0;padding:0;display:grid;gap:6px; } .mc-care li { display:flex;gap:8px;align-items:baseline;font-size:12.5px;line-height:1.5;color:#d6dce8; } .mc-care-c { flex:none;padding:1px 8px;border-radius:999px;background:#FF8A4C;color:#2b1205;font-size:11.5px;font-weight:800; } .mc-care-c.strong { box-shadow:0 0 0 2px #ff8a4c66; } .mc-care .dsub { margin:8px 0 0;font-size:11px;line-height:1.5; }
.mc-legend { display:flex;gap:16px;flex-wrap:wrap;font-size:11px;margin:16px 0;color:#b7c1d2; }
.mc-legend i { display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--flow); }
.fc-controls { display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:20px 0;padding:14px;background:#ffffff04;border:1px solid #ffffff08;border-radius:16px; }
.fc-controls label { font-size:10px;color:#99a4b8;display:flex;flex-direction:column;gap:7px; }
.fc-controls select { max-width:100%;background:#1c2230;border:1px solid #ffffff15;color:#e6ebf4;padding:10px;border-radius:10px;font-size:13px;min-height:40px; }
.mc-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px; }
.mc-week { text-align:center;font-size:11px;padding:8px;color:#8590a7; }
.mc-week:first-child { color:#d79791; }.mc-week:nth-child(7) { color:#8fa9de; }
#hub .fortune-panel .mc-day { position:relative;min-height:114px;border:1px solid color-mix(in srgb,var(--flow) 15%,transparent);background:linear-gradient(155deg,color-mix(in srgb,var(--flow) 15%,#121723),color-mix(in srgb,var(--flow) 6%,#121723));color:#e9edf5;border-radius:13px;padding:8px 3px;display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;min-width:0; }
#hub .fortune-panel .mc-day b { align-self:flex-start;margin-left:5px;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums; }
#hub .fortune-panel .mc-day small { font-size:11px;color:#a8b2c6; }
#hub .fortune-panel .mc-day .mc-metric { display:flex;flex-direction:column;gap:2px;align-items:center; }
#hub .fortune-panel .mc-day .mc-metric strong { font-size:19px;font-weight:650;line-height:1.15;color:var(--flow);font-variant-numeric:tabular-nums;letter-spacing:-.6px; }
#hub .fortune-panel .mc-day .mc-metric span { font-size:9px;color:#9faac1; }
#hub .fortune-panel .mc-day em { font-size:9px;white-space:nowrap;font-style:normal;color:#a5afc2;padding:2px 5px;border-radius:5px; }
#hub .fortune-panel .mc-day.favorable em { color:#9be6bf;background:#73d8ae16; }#hub .fortune-panel .mc-day.caution em { color:#efb29e;background:#efb29e16; }
#hub .fortune-panel .mc-day.favorable { border-bottom:2px solid #73d8ae; }#hub .fortune-panel .mc-day.caution { border-bottom:2px solid #df9b86; }
#hub .fortune-panel .mc-day.selected { border:1px solid #e2c991;outline:2px solid #e2c99135;outline-offset:2px;background:linear-gradient(145deg,#ddc89818,#19202f); }
#hub .fortune-panel .mc-day.is-today:after { content:'';position:absolute;top:10px;right:6px;background:#e5cea0;width:5px;height:5px;border-radius:50%; }
.mc-son { position:absolute;right:3px;top:29px;background:#cdb17a20;color:#e8cf99;border:1px solid #cdb17a55;border-radius:5px;width:15px;height:15px;line-height:13px;text-align:center;font-size:9px;font-style:normal;font-weight:600; }
.mc-key { display:inline-block;border-radius:5px;padding:1px 5px;font-size:10px;background:#73d8ae16;color:#9be6bf; }.mc-key.caution { background:#efb29e16;color:#efb29e; }.mc-key.son { background:#cdb17a20;color:#e8cf99; }
.mc-lists { display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0; }
.mc-shortlist { border-radius:18px;padding:16px;border:1px solid #73d8ae22;background:linear-gradient(135deg,#73d8ae0a,transparent); }
.mc-shortlist.caution { background:linear-gradient(135deg,#efb29e0a,transparent);border-color:#efb29e22; }
.mc-shortlist h3 { margin:0 0 6px;font-size:16px;color:#a0e8c2;letter-spacing:-.4px; }.mc-shortlist.caution h3 { color:#eeb7a4; }
#hub .fortune-panel .mc-pick { display:flex;flex-direction:column;gap:7px;text-align:left;width:100%;background:#ffffff04;border:1px solid #ffffff0b;color:#dce4f0;border-radius:12px;padding:12px;margin:10px 0;cursor:pointer; }
#hub .fortune-panel .mc-pick b { font-size:13px;font-weight:650; }#hub .fortune-panel .mc-pick span,#hub .fortune-panel .mc-pick small { font-size:11px;line-height:1.7;color:#a3afc2; }
.mc-empty { font-size:12px;color:#a3afc2;line-height:1.7; }
.mc-month-note { padding:16px 20px;border-left:2px solid #baa576;border-radius:0 12px 12px 0;background:#171c28;font-size:13px;line-height:1.8;color:#c6cedd; }
#hub .fortune-panel .mc-day:focus-visible,#hub .fortune-panel .mc-bar:focus-visible,#hub .fortune-panel .mc-pick:focus-visible,.fc-controls select:focus-visible,.mc-nav button:focus-visible { outline:2px solid #f0dba8;outline-offset:3px; }
@media(hover:hover) { #hub .fortune-panel .mc-day:hover { border-color:var(--flow);transform:translateY(-2px); }#hub .fortune-panel .mc-pick:hover,.mc-nav button:hover { background:#ffffff0a;border-color:#ffffff30; }#hub .fortune-panel .mc-bar:hover i { opacity:1; } }
@media(prefers-reduced-motion:no-preference) { #hub .fortune-panel .mc-day,#hub .fortune-panel .mc-pick,#hub .fortune-panel .mc-bar i { transition:background .18s,border-color .18s,transform .18s,opacity .18s; } }
@media(max-width:480px) {
  .fortune-panel { padding:22px 12px;border-radius:20px; }.fortune-panel .h1 { font-size:23px; }
  .mc-nav { gap:8px;margin:18px 0; }.mc-nav h2 { font-size:17px; }.mc-nav button { padding:8px 12px; }
  .mc-chart { gap:7px;height:205px; }.fc-controls { padding:10px;gap:8px; }.fc-controls select { font-size:16px; }
  .mc-grid { gap:4px; }#hub .fortune-panel .mc-day { min-height:110px;border-radius:10px;padding:7px 2px; }#hub .fortune-panel .mc-day b { font-size:12px;margin-left:3px; }#hub .fortune-panel .mc-day small { font-size:10px;padding-right:7px; }#hub .fortune-panel .mc-day .mc-metric strong { font-size:17px; }#hub .fortune-panel .mc-day em { padding:2px 3px;font-size:9px; }
  .mc-son { right:1px;top:27px;width:13px;height:13px;line-height:11px;font-size:8px; }
  .mc-lists { grid-template-columns:1fr;gap:12px; }.mc-shortlist { padding:15px; }
}

/* 일주 각성: 영상이 없을 때 보이는 대체 이미지와 안내(인터랙티브 스토리의 portal 에셋) */
#awk .fb{ position: absolute; inset: 0; background: #04050a center / cover no-repeat; opacity: .55; }
#awk .fbn{ position: absolute; z-index: 3; left: 0; right: 0; top: max(64px, calc(env(safe-area-inset-top) + 56px)); text-align: center; font-size: .74rem; color: var(--ink-3); letter-spacing: .08em; margin: 0; padding: 0 20px; }

/* Defense and caution remain visible even when selected or marked as today. */
.fortune-panel .flow-defense{--flow:#f08080}
#hub .fortune-panel .mc-day.caution,#hub .fortune-panel .mc-day.caution.selected{--flow:#FF8A4C;border:1px solid #e0763f;background:linear-gradient(145deg,#4f2a1a,#2a1a17);color:#ffe8db}
#hub .fortune-panel .mc-day.caution b,#hub .fortune-panel .mc-day.caution small,#hub .fortune-panel .mc-day.caution .mc-metric strong,#hub .fortune-panel .mc-day.caution em{color:#ffb88f}
#hub .fortune-panel .mc-day.caution em,.mc-key.caution{background:#ff8a4c22;color:#ffb88f}
#hub .fortune-panel .mc-day.caution.selected{outline:2px solid #e2c991;outline-offset:2px}
.fc-controls{position:static;inset:auto;min-width:0}
.fc-controls label{min-width:0;flex:1 1 130px}
.fc-controls select{width:100%;min-width:0}
.fc-method{margin-top:14px;color:#a6afc0;font-size:12px;line-height:1.8}
.fc-method summary{cursor:pointer;color:#e4d3a5}

/* 타로 카드 배열 선택(원 카드 / 과거·현재·미래 / 상황·장애물·조언·결과) */
#hub .tsp{ margin: 6px 0 14px; }
#hub .tsp .chipbtn{ min-height: 40px; } #hub .tsp .chipbtn small{ color: var(--ink-3); font-size: .74rem; }
#hub .tsp .chipbtn[aria-pressed="true"]{ border-color: var(--gold); background: rgba(205, 178, 122, .14); color: var(--gold-l); }
#hub .tsp .note{ margin-top: 6px; font-size: .84rem; color: var(--ink-3); line-height: 1.6; }
#hub .tc.mini.pick{ outline: 2px solid var(--gold); }
#hub .sprow{ display: flex; justify-content: center; gap: 10px; margin: 8px 0 14px; flex-wrap: wrap; }
#hub .sprow .spc{ margin: 0; width: calc((100% - 30px) / 4); max-width: 150px; min-width: 84px; text-align: center; }
#hub .sprow .spc .tc{ width: 100%; }
#hub .sprow figcaption{ margin-top: 6px; font-size: .78rem; color: var(--ink-2); line-height: 1.4; }
#hub .sprow figcaption b{ display: block; color: var(--gold); font-weight: 500; letter-spacing: .08em; }
#hub .rsec .note{ font-size: .8rem; color: var(--ink-3); margin-bottom: 4px; }
#hub .rsec .dl{ margin: 4px 0 0 18px; padding: 0; } #hub .rsec .dl li{ line-height: 1.7; margin-bottom: 4px; }

#hub .tdet{ margin-top: 8px; }
#hub .tdet > summary{ cursor: pointer; font-weight: 700; padding: 8px 0; opacity: .85; }
#hub .tdet p{ margin: 8px 0; }
