/* 오늘의 운세 — 밝은 글래스모피즘 (2026-11-14, 사용자 요청: 다크 모드 대신, 글자가 잘 보이게).
   Frosted white panels on a pastel ground; all text is dark ink on light glass (4.5:1 or more).
   The fortune card that becomes the saved image keeps its own colors. Also used by 운세 더보기(extras.html). */
:root{--fx-ink:#1f1a3a;--fx-sub:#463f63;--fx-accent:#3a2a6b;--fx-gold:#8a5a00;--fx-glass:rgba(255,255,255,.66);--fx-glass-strong:rgba(255,255,255,.86);--fx-line:rgba(255,255,255,.85);--fx-shadow:0 10px 34px rgba(58,42,107,.16)}
html body.rovi-service{color:var(--fx-ink);color-scheme:light;background:radial-gradient(340px 340px at 90% 12%,rgba(255,170,205,.75) 0%,rgba(255,170,205,0) 70%),radial-gradient(320px 320px at 6% 46%,rgba(150,185,255,.7) 0%,rgba(150,185,255,0) 70%),radial-gradient(300px 300px at 78% 88%,rgba(170,235,215,.75) 0%,rgba(170,235,215,0) 70%),linear-gradient(140deg,#fbe7f1 0%,#e9e6ff 48%,#e2f6ef 100%);background-attachment:fixed}
html.fx-lock,html.fx-lock body{overflow:hidden}
html body.rovi-service .topbar{background:rgba(255,255,255,.55);backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);border-bottom:1px solid var(--fx-line);box-shadow:0 6px 24px rgba(58,42,107,.08)}
html body.rovi-service .topbar>.brand,html body.rovi-service .topbar>.brand *{color:var(--fx-ink)}
html body.rovi-service .topbar>.brand small{color:var(--fx-accent)}
html body.rovi-service :is(.home-link,.rv-home){display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border-radius:14px;background:var(--fx-glass-strong);border:1px solid var(--fx-line);color:var(--fx-ink);font-weight:700;text-decoration:none;box-shadow:0 4px 14px rgba(58,42,107,.12)}
html body.rovi-service .intro :is(h1,p){color:var(--fx-ink)}
html body.rovi-service .intro .eyebrow{color:var(--fx-accent)}
html body.rovi-service .today{color:var(--fx-sub)}
/* Glass panels */
html body.rovi-service :is(.panel,main.page>header,.privacy-note,.result:not(.fx-off)){background:var(--fx-glass);backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);border:1px solid var(--fx-line);box-shadow:var(--fx-shadow);color:var(--fx-ink)}
html body.rovi-service :is(.panel,main.page>header,.privacy-note) :is(h1,h2,h3,legend,label,strong){color:var(--fx-ink)}
html body.rovi-service :is(.panel,main.page>header,.privacy-note) :is(p,li,small,dt,dd){color:inherit}
html body.rovi-service :is(.hint,.saju-intro,.saju-range-note,.saju-hint,.picker-status,.saju-status,.method-note,.source-note,.share-note,.page-foot,.status){color:var(--fx-sub)}
/* 띠·별자리·사주·타로 고르기 */
.fx-nav{margin:6px 0 18px}
.fx-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;border-radius:22px;background:var(--fx-glass);backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);border:1px solid var(--fx-line);box-shadow:var(--fx-shadow)}
.fx-seg button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:8px 4px;border:0;border-radius:16px;background:transparent;color:var(--fx-ink);font-family:inherit;font-size:15px;font-weight:700;line-height:1.25;cursor:pointer;transition:background-color .2s,transform .12s}
.fx-seg button span{font-size:22px;line-height:1}
.fx-seg button:hover{background:rgba(255,255,255,.6)}
.fx-seg button[aria-pressed=true]{background:var(--fx-accent);color:#fff;box-shadow:0 8px 20px rgba(58,42,107,.3)}
.fx-seg button:active{transform:scale(.97)}
.fx-nav-note{margin:8px 4px 0;font-size:13px;color:var(--fx-sub);text-align:center}
html body.rovi-service .picker .tabs{display:none}
/* 띠·별자리 buttons */
html body.rovi-service .choice{background:rgba(255,255,255,.72);border:1px solid var(--fx-line);color:var(--fx-ink);box-shadow:0 4px 14px rgba(58,42,107,.08);transition:transform .15s,box-shadow .15s}
html body.rovi-service .choice *{color:inherit}
html body.rovi-service .choice:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(58,42,107,.16)}
html body.rovi-service .choice[aria-pressed=true]{background:var(--fx-accent);border-color:var(--fx-accent);color:#fff}
/* Fields and buttons */
html body.rovi-service :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:rgba(255,255,255,.88);color:var(--fx-ink);border:1px solid rgba(58,42,107,.22);border-radius:12px}
html body.rovi-service :is(.primary,#tarot-draw,#extra-run){background:var(--fx-accent);border-color:var(--fx-accent);color:#fff;border-radius:14px;box-shadow:0 8px 20px rgba(58,42,107,.28)}
html body.rovi-service .secondary,html body.rovi-service #tarot-redraw,html body.rovi-service #tarot-cancel{background:var(--fx-glass-strong);border:1px solid rgba(58,42,107,.22);color:var(--fx-ink);border-radius:14px}
html body.rovi-service fieldset{border-color:rgba(58,42,107,.18)}
html body.rovi-service a:not(.home-link):not(.rv-home):not(.brand):not(.rovi-wordmark){color:var(--fx-accent)}
html body.rovi-service .extras-link{border-color:var(--fx-accent);background:var(--fx-glass-strong);color:var(--fx-accent)}
html body.rovi-service .rovi-wordmark{color:var(--fx-ink)!important}
html body.rovi-service main.page>header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
html body.rovi-service main.page>header>:not(.rovi-wordmark):not(.rv-home){flex-basis:100%}
html body.rovi-service main.page>header .rv-home{margin-left:auto}
/* 사주 result inside the sheet */
html body.rovi-service .saju-result{background:rgba(255,255,255,.75);border:1px solid rgba(58,42,107,.14);border-radius:18px;color:var(--fx-ink)}
html body.rovi-service .saju-result :is(dt,dd,h3,h4,p){color:var(--fx-ink)}
html body.rovi-service .saju-reading-card{background:#fff;border:1px solid rgba(58,42,107,.12);border-radius:14px}
/* 타로 on the first page */
.fx-tarot-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:12px 0}
.fx-tarot-tools select{min-height:44px;padding:0 12px}
.fx-tarot-tools .primary{min-height:44px;padding:0 18px;font-weight:800}
.fx-tarot-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
.fx-tarot-card{aspect-ratio:.72;min-height:56px;padding:4px;border:1px solid rgba(58,42,107,.35);border-radius:10px;background:repeating-linear-gradient(135deg,#5b4a9a 0 6px,#6c5bb0 6px 12px);color:#fff;font:700 12px/1 inherit;cursor:pointer;box-shadow:0 4px 10px rgba(58,42,107,.18);transition:transform .15s}
.fx-tarot-card:hover{transform:translateY(-3px)}
.fx-tarot-card[aria-pressed=true]{background:#fff;color:var(--fx-ink);border:2px solid var(--fx-accent)}
@media(max-width:700px){.fx-tarot-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:420px){.fx-tarot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.fx-seg button{font-size:14px;min-height:60px}}
/* 결과 바텀시트 */
.fx-off{display:none!important}
.fx-sheet{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center}
.fx-sheet[hidden]{display:none}
.fx-backdrop{position:absolute;inset:0;background:rgba(31,26,58,.38);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;transition:opacity .25s ease}
.fx-panel{position:relative;width:min(100%,760px);max-height:90vh;display:flex;flex-direction:column;border-radius:28px 28px 0 0;background:rgba(255,255,255,.9);backdrop-filter:blur(24px) saturate(170%);-webkit-backdrop-filter:blur(24px) saturate(170%);border:1px solid #fff;border-bottom:0;box-shadow:0 -16px 50px rgba(31,26,58,.28);transform:translateY(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.fx-sheet.is-open .fx-backdrop{opacity:1}
.fx-sheet.is-open .fx-panel{transform:none}
.fx-grip{width:44px;height:5px;margin:10px auto 0;border-radius:3px;background:rgba(58,42,107,.25)}
.fx-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px 12px;border-bottom:1px solid rgba(58,42,107,.12)}
.fx-head h2{margin:0;font-size:18px;line-height:1.35;color:var(--fx-ink);outline:none}
.fx-head-actions{display:flex;gap:8px;flex:none}
.fx-head-actions button{min-height:44px;padding:0 16px;border-radius:14px;font:700 14px/1 inherit;cursor:pointer}
.fx-reset{border:1px solid rgba(58,42,107,.25);background:#fff;color:var(--fx-ink)}
.fx-close{border:0;background:var(--fx-accent);color:#fff}
.fx-body{overflow-y:auto;overscroll-behavior:contain;padding:16px 18px calc(22px + env(safe-area-inset-bottom))}
.fx-body .result{margin:0;padding:0;background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
.fx-body .fortune-card{margin:0 auto}
.fx-tarot-result{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:18px;align-items:start;color:var(--fx-ink)}
.fx-tarot-figure{margin:0}
.fx-tarot-frame{display:grid;place-items:center;aspect-ratio:3/5;padding:6px;border-radius:14px;background:#f3eefc;border:1px solid rgba(58,42,107,.14)}
.fx-tarot-frame img{width:100%;height:100%;object-fit:contain;border-radius:6px}
.fx-tarot-frame img.is-reversed{transform:rotate(180deg)}
.fx-tarot-figure figcaption{margin-top:8px;text-align:center;font-weight:700}
.fx-tarot-text h3{margin:16px 0 4px;font-size:16px}
.fx-tarot-text p{margin:0 0 8px;line-height:1.7;color:var(--fx-ink)}
.fx-tarot-lead{font-size:17px;font-weight:700}
.fx-tarot-text .secondary{min-height:44px;margin:10px 0;padding:0 16px;font-weight:700}
.fx-tarot-credit,.fx-tarot-text .disclaimer{font-size:13px;color:var(--fx-sub)!important}
@media(max-width:560px){.fx-tarot-result{grid-template-columns:1fr}.fx-tarot-figure{max-width:220px;margin:0 auto}.fx-head{padding:8px 14px 10px}.fx-head h2{font-size:16px}.fx-head-actions button{padding:0 12px}}
@media(prefers-reduced-motion:reduce){.fx-panel,.fx-backdrop,.fx-seg button,.choice,.fx-tarot-card{transition:none}}
/* 사용설명서 */
html body.rovi-service .rv-guide{--rv-bg:rgba(255,255,255,.62);--rv-ink:#1f1a3a;--rv-sub:#463f63;--rv-accent:#3a2a6b;--rv-hi:rgba(255,255,255,.75);--rv-lo:rgba(58,42,107,.14);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--fx-line)}
html body.rovi-service :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--fx-accent);outline-offset:3px}
/* 사주 생년월일 휠피커 (fx-wheel.js) */
.fx-wheel-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;border:0!important}
.fx-wheel{display:grid;gap:6px}
.fx-wheel-readout{margin:0;text-align:center;font-size:17px;font-weight:800;color:var(--fx-ink)}
.fx-wheel-box{position:relative;display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:6px;height:220px;padding:0 8px;border-radius:20px;background:rgba(255,255,255,.78);border:1px solid var(--fx-line);box-shadow:inset 0 2px 10px rgba(58,42,107,.08);overflow:hidden}
.fx-wheel-band{position:absolute;left:8px;right:8px;top:88px;height:44px;border-radius:12px;background:rgba(58,42,107,.09);border:1px solid rgba(58,42,107,.22);pointer-events:none}
.fx-wheel-col{position:relative;min-width:0}
.fx-wheel-list{height:220px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 30%,#000 70%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 30%,#000 70%,transparent 100%);outline:none;border-radius:12px;touch-action:pan-y}
.fx-wheel-list::-webkit-scrollbar{display:none}
.fx-wheel-list:focus-visible{box-shadow:inset 0 0 0 3px var(--fx-accent)}
.fx-wheel-pad{height:88px}
.fx-wheel-item{height:44px;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;font-size:18px;font-weight:600;color:#6b6585;cursor:pointer;user-select:none;font-variant-numeric:tabular-nums}
.fx-wheel-item[aria-selected=true]{color:var(--fx-ink);font-size:21px;font-weight:800}
.fx-wheel-unit{position:absolute;right:6px;top:100px;font-size:13px;font-weight:700;color:var(--fx-sub);pointer-events:none}
.fx-wheel-hint{margin:0;font-size:12px;color:var(--fx-sub);text-align:center}
@media(max-width:360px){.fx-wheel-item{font-size:16px}.fx-wheel-item[aria-selected=true]{font-size:19px}.fx-wheel-unit{right:2px}}
/* 태어난 시간 휠: 시·분 두 칸 */
.fx-wheel-box.fx-date-box{grid-template-columns:1.3fr 1fr 1fr}
.fx-wheel-box.fx-time-box{grid-template-columns:1fr 1fr;max-width:300px;margin:0 auto;width:100%}
.fx-time-wheel{margin-top:6px}
.fx-time-wheel .fx-wheel-readout{font-size:16px}
/* ==== 타로 다섯 장: 덱 → 섞기 → 부채꼴 → 다섯 자리 → 한 장씩 뒤집기 (fx-tarot.mjs) ==== */
.fx-stage{position:relative;height:var(--stage-h,260px);margin:8px 0 4px;border-radius:22px;background:radial-gradient(120% 90% at 50% 100%,rgba(58,42,107,.16),rgba(255,255,255,0) 70%);overflow:hidden;touch-action:pan-y}
.fx-deck,.fx-card{position:absolute;left:50%;bottom:var(--base,40px);width:var(--cw,56px);height:var(--ch,90px);margin-left:calc(var(--cw,56px) / -2)}
.fx-deck[hidden],.fx-fan[hidden]{display:none}
.fx-deck i,.fx-card,.fx-slot.is-filled .fx-slot-card,.fx-spread-back{background:radial-gradient(circle at 50% 50%,rgba(255,215,130,.95) 0 9%,transparent 10%),repeating-linear-gradient(45deg,rgba(255,255,255,.14) 0 3px,transparent 3px 9px),linear-gradient(160deg,#4b3a8f,#2c2160);border:2px solid #e9cf8a;border-radius:9px;box-shadow:0 4px 10px rgba(31,26,58,.28)}
.fx-deck i{position:absolute;inset:0;display:block;transform:translate(calc(var(--k) * -.6px),calc(var(--k) * -.6px))}
.fx-stage[data-state=shuffling] .fx-deck i:nth-child(odd){animation:fx-riffle-l .5s ease-in-out calc(var(--k) * 18ms) 3 alternate}
.fx-stage[data-state=shuffling] .fx-deck i:nth-child(even){animation:fx-riffle-r .5s ease-in-out calc(var(--k) * 18ms) 3 alternate}
@keyframes fx-riffle-l{0%{transform:translate(0,0) rotate(0)}100%{transform:translate(-115%,-12px) rotate(-14deg)}}
@keyframes fx-riffle-r{0%{transform:translate(0,0) rotate(0)}100%{transform:translate(115%,-12px) rotate(14deg)}}
.fx-card{padding:0;cursor:pointer;transform-origin:50% calc(100% + var(--R,200px));transform:rotate(0deg);transition:transform .7s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 7ms),opacity .3s ease}
.fx-fan.is-spread .fx-card{transform:rotate(var(--a))}
.fx-stage[data-state=spread] .fx-card{transition:transform .18s ease,opacity .3s ease}
.fx-stage[data-state=spread] .fx-card:hover,.fx-stage[data-state=spread] .fx-card:focus-visible{transform:rotate(var(--a)) translateY(-16px);z-index:2}
.fx-card:focus-visible{outline:3px solid #fff;outline-offset:1px;box-shadow:0 0 0 6px var(--fx-accent)}
.fx-card.is-picked{transform:rotate(var(--a)) translateY(-70px)!important;opacity:0;pointer-events:none}
.fx-stage-msg{min-height:1.5em;margin:4px 0 10px;text-align:center;font-weight:700;color:var(--fx-ink)}
.fx-slots{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:0}
.fx-slot{display:grid;justify-items:center;gap:4px}
.fx-slot-card{display:grid;place-items:center;width:100%;max-width:64px;aspect-ratio:.62;border:2px dashed rgba(58,42,107,.28);border-radius:9px;color:#fff;font-weight:800;font-size:15px}
.fx-slot.is-filled .fx-slot-card{animation:fx-drop .35s ease both}
.fx-slot-label{font-size:13px;font-weight:700;color:var(--fx-sub)}
.fx-slot.is-filled .fx-slot-label{color:var(--fx-accent)}
@keyframes fx-drop{from{transform:translateY(-18px);opacity:0}to{transform:none;opacity:1}}
/* 결과: 다섯 장을 한 줄에, 한 장씩 뒤집기 */
.fx-tarot-result{display:block!important;color:var(--fx-ink)}
.fx-tarot-result[hidden]{display:none!important}
.fx-spread-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 14px}
.fx-spread-card{display:grid;justify-items:center;gap:4px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.fx-spread-card.is-open{cursor:default}
.fx-spread-pos{font-size:12px;font-weight:800;color:var(--fx-accent)}
.fx-spread-inner{position:relative;display:block;width:100%;max-width:120px;aspect-ratio:480/805;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.3,.7,.2,1)}
.fx-spread-card.is-open .fx-spread-inner{transform:rotateY(180deg)}
.fx-spread-back,.fx-spread-front{position:absolute;inset:0;display:block;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.fx-spread-front{transform:rotateY(180deg);border-radius:9px;overflow:hidden;background:#f3eefc;border:1px solid rgba(58,42,107,.18);box-shadow:0 6px 14px rgba(31,26,58,.2)}
.fx-spread-front img{width:100%;height:100%;object-fit:cover;display:block}
.fx-spread-front img.is-reversed{transform:rotate(180deg)}
.fx-spread-card.is-next .fx-spread-back{box-shadow:0 0 0 3px var(--fx-accent),0 8px 18px rgba(58,42,107,.35);animation:fx-nudge 1.4s ease-in-out infinite}
@keyframes fx-nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.fx-spread-name{min-height:2.6em;font-size:12px;font-weight:700;line-height:1.3;text-align:center;word-break:keep-all}
.fx-flip-next{display:block;width:100%;min-height:48px;margin:0 0 14px;font-weight:800;font-size:16px}
.fx-flip-next[hidden]{display:none}
.fx-spread-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.fx-reading{padding:14px 16px;border-radius:16px;background:#fff;border:1px solid rgba(58,42,107,.12);box-shadow:0 4px 12px rgba(58,42,107,.08);animation:fx-rise .4s ease both}
.fx-reading[hidden]{display:none}
@keyframes fx-rise{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
.fx-reading-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin-bottom:6px}
.fx-reading-pos{padding:2px 10px;border-radius:999px;background:var(--fx-accent);color:#fff;font-size:13px;font-weight:800}
.fx-reading-head strong{font-size:16px}
.fx-reading-meaning{margin:0 0 6px;font-weight:700;color:var(--fx-accent)}
.fx-reading p{margin:0 0 6px;line-height:1.7;color:var(--fx-ink)}
.fx-tarot-done{margin:14px 0 6px}
.fx-tarot-done .secondary{width:100%;min-height:48px;font-weight:800}
@media(max-width:420px){.fx-spread-row,.fx-slots{gap:5px}.fx-spread-pos,.fx-slot-label{font-size:11px}.fx-spread-name{font-size:11px}}
@media(prefers-reduced-motion:reduce){.fx-stage[data-state=shuffling] .fx-deck i{animation:none!important}.fx-card,.fx-spread-inner,.fx-slot.is-filled .fx-slot-card,.fx-reading{transition:none!important;animation:none!important}.fx-spread-card.is-next .fx-spread-back{animation:none}}
/* 부채꼴 2~3줄: each card moves to its row (--ry) and then turns (--a). */
.fx-fan.is-spread .fx-card{transform:translateY(var(--ry,0px)) rotate(var(--a))}
.fx-stage[data-state=spread] .fx-card:hover,.fx-stage[data-state=spread] .fx-card:focus-visible{transform:translateY(var(--ry,0px)) rotate(var(--a)) translateY(-14px)}
.fx-card.is-picked{transform:translateY(var(--ry,0px)) rotate(var(--a)) translateY(-60px)!important}
/* 2026-11-14 명리 풀이: 명식표, 더 정확하게(출생지·자시), 풀이 카드 */
html body.rovi-service .saju-row small,html body.rovi-service .saju-precise small{font-weight:500;color:var(--fx-sub)}
html body.rovi-service .saju-precise{margin:4px 0 6px;border:1px solid rgba(58,42,107,.14);border-radius:16px;background:rgba(255,255,255,.55);padding:0 14px}
html body.rovi-service .saju-precise summary{cursor:pointer;min-height:46px;display:flex;align-items:center;font-weight:700;color:var(--fx-ink)}
html body.rovi-service .saju-precise[open]{padding-bottom:14px}
html body.rovi-service .saju-precise label{display:block;margin:10px 0 4px}
html body.rovi-service .saju-precise select{width:100%}
html body.rovi-service .saju-precise-note{margin:10px 0 0;font-size:13px;line-height:1.6;color:var(--fx-sub)}
html body.rovi-service .saju-chart{margin:14px 0 6px;overflow-x:auto}
html body.rovi-service .saju-chart table{width:100%;border-collapse:separate;border-spacing:4px;table-layout:fixed;font-size:14px}
html body.rovi-service .saju-chart th{font-weight:600;color:var(--fx-sub);font-size:12px;padding:2px}
html body.rovi-service .saju-chart th[scope=row]{width:56px;text-align:left}
html body.rovi-service .saju-chart td{text-align:center;padding:6px 2px;border-radius:10px;background:rgba(255,255,255,.7);color:var(--fx-ink)}
html body.rovi-service .saju-chart tr.god td{font-size:12px;color:#5b4a8a;background:transparent}
html body.rovi-service .saju-chart tr.char td{font-size:20px;font-weight:800;padding:10px 2px;border:1px solid rgba(58,42,107,.12)}
html body.rovi-service .saju-chart td[data-element="목"]{background:#e6f5e9;color:#1f5e33}
html body.rovi-service .saju-chart td[data-element="화"]{background:#fde8e6;color:#8f2a22}
html body.rovi-service .saju-chart td[data-element="토"]{background:#fbf1d9;color:#7a5a12}
html body.rovi-service .saju-chart td[data-element="금"]{background:#f1f2f5;color:#3d4250}
html body.rovi-service .saju-chart td[data-element="수"]{background:#e3ecfb;color:#1f3f7a}
html body.rovi-service .saju-reading-card{padding:16px 18px;margin:12px 0}
html body.rovi-service .saju-reading-card h4{margin:0 0 10px;font-size:17px;line-height:1.45;color:#3a2a6b}
html body.rovi-service .saju-reading-card p{margin:0 0 10px;line-height:1.85;font-size:15px;word-break:keep-all;overflow-wrap:anywhere}
html body.rovi-service .saju-reading-card p:last-child{margin-bottom:0}
html body.rovi-service .saju-reading-card strong{color:#3a2a6b}
@media (max-width:420px){html body.rovi-service .saju-chart table{font-size:13px;border-spacing:3px}html body.rovi-service .saju-chart th[scope=row]{width:44px}html body.rovi-service .saju-chart tr.char td{font-size:18px}}
/* 2026-11-14 풀이 책: 한 장씩, 오른쪽에서 왼쪽으로 넘김 */
html body.rovi-service .saju-book{margin:14px 0 4px}
html body.rovi-service .saju-book-stage{display:grid;perspective:1800px;touch-action:pan-y;outline:none;user-select:none;-webkit-user-select:none}
html body.rovi-service .saju-book-stage:focus-visible{outline:3px solid var(--fx-accent);outline-offset:4px;border-radius:18px}
html body.rovi-service .saju-page{grid-area:1/1;visibility:hidden;margin:0;position:relative;min-height:300px;padding:22px 20px 40px 26px;border-radius:6px 16px 16px 6px;border:1px solid #e6dcc7;background:linear-gradient(90deg,#efe5d0 0,#fbf7ee 14px,#fffdf8 60%,#fbf6ea 100%);box-shadow:0 1px 0 #fff inset,0 10px 26px rgba(58,42,107,.14),3px 3px 0 #f1e9d8,6px 6px 0 #ebe2cf;transform-origin:left center;backface-visibility:hidden;will-change:transform}
html body.rovi-service .saju-page.is-current{visibility:visible;z-index:2}
html body.rovi-service .saju-page.is-under{visibility:visible;z-index:1}
html body.rovi-service .saju-page h4{font-family:"Noto Serif KR","Batang",serif;font-size:18px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid #e6dcc7;color:#3a2a6b}
html body.rovi-service .saju-page p{font-family:"Noto Serif KR","Batang",serif;font-size:15.5px;line-height:1.9;margin:0 0 12px;color:#2b2540}
html body.rovi-service .saju-page-no{position:absolute;right:18px;bottom:12px;font-size:12px;color:#9a8d79;font-family:Georgia,serif}
html body.rovi-service .saju-book-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
html body.rovi-service .saju-book-nav button{min-height:44px;min-width:104px;padding:0 16px;border-radius:999px;border:1px solid rgba(58,42,107,.2);background:var(--fx-glass-strong);color:var(--fx-ink);font:inherit;font-weight:700;cursor:pointer}
html body.rovi-service .saju-book-nav .saju-book-next{background:var(--fx-accent);border-color:var(--fx-accent);color:#fff}
html body.rovi-service .saju-book-nav button:disabled{opacity:.38;cursor:default}
html body.rovi-service .saju-book-count{font-family:Georgia,serif;font-size:14px;color:var(--fx-sub)}
html body.rovi-service .saju-book-hint{margin:8px 0 0;text-align:center;font-size:12px;color:var(--fx-sub)}
@media (max-width:420px){html body.rovi-service .saju-page{padding:18px 16px 38px 20px;min-height:280px}html body.rovi-service .saju-page p{font-size:15px}}
/* 2026-11-14 책 넘김 대신 가로 스크롤: 장을 옆으로 나란히, 오른쪽에서 왼쪽으로 밀어 넘김 */
html body.rovi-service .saju-book-stage{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;touch-action:auto;cursor:auto;perspective:none;scrollbar-width:none;padding:4px 0 10px}
html body.rovi-service .saju-book-stage::-webkit-scrollbar{display:none}
html body.rovi-service .saju-book-stage .saju-page{flex:0 0 100%;grid-area:auto;visibility:visible;scroll-snap-align:start;scroll-snap-stop:always;transform:none;clip-path:none;animation:none}
@media (prefers-reduced-motion:reduce){html body.rovi-service .saju-book-stage{scroll-behavior:auto}}
/* 가로 스크롤 상자가 내용 폭만큼 넓어지지 않게 (휴대폰에서 1000px 넘게 늘어나던 문제) */
html body.rovi-service :is(.saju-result,#saju-reading,.saju-book,.saju-book-stage){min-width:0;max-width:100%}
html body.rovi-service :is(.saju-book,.saju-book-stage){width:100%}
/* 장마다 자기 길이만큼, 말하듯 읽히게 본문은 고딕체 */
html body.rovi-service .saju-book-stage{align-items:flex-start}
html body.rovi-service .saju-book-stage .saju-page{min-height:0}
html body.rovi-service .saju-page p{font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-size:15.5px;line-height:1.85}
