:root {
 --bg-image: url("./assets/tarot/fate-vintage-oracle/draw-scene-hands.png");
 --bg-mobile-image: url("./assets/tarot/fate-vintage-oracle/draw-scene-hands-mobile.webp");
 --bg-position: center;
 --bg-mobile-position: center center;
 --text: #fff8ea;
 --soft: rgba(255, 248, 234, .78);
 --muted: rgba(255, 248, 234, .58);
 --line: rgba(255, 255, 255, .14);
 --line-strong: rgba(255, 231, 179, .32);
 --glass: rgba(14, 11, 14, .22);
 --glass-strong: rgba(14, 11, 14, .34);
 --surface: rgba(255, 255, 255, .055);
 --surface-strong: rgba(255, 255, 255, .092);
 --accent: #d7b46c;
 --accent-2: #fff0bf;
 --accent-deep: #3b2f20;
 --ink: #20160d;
 --motif-opacity: .18;
 --shadow: 0 28px 90px rgba(0, 0, 0, .38);
 color-scheme: dark;
 font-family: Pretendard, "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


body[data-service="tarot"] {
 --bg-image: url("./assets/tarot/fate-vintage-oracle/draw-scene-hands.png");
 --bg-mobile-image: url("./assets/tarot/fate-vintage-oracle/draw-scene-hands-mobile.webp");
 --bg-position: center center;
 --bg-mobile-position: center center;
 --accent: #d4ad63;
 --accent-2: #ffe8af;
 --accent-deep: #153d34;
 --motif-opacity: .2;
}





* {
 box-sizing: border-box;
}

html {
 min-width: 320px;
 height: 100%;
 overflow: hidden;
 overscroll-behavior: none;
 background: #080609;
}

body {
 width: 100%;
 max-width: 100%;
 min-width: 320px;
 height: 100dvh;
 margin: 0;
 overflow: hidden;
 overscroll-behavior: none;
 display: flex;
 flex-direction: column;
 color: var(--text);
 font-family: Pretendard, "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
 background: #080609;
 text-rendering: geometricPrecision;
}

body::after {
 content: "";
 position: fixed;
 inset: 0;
 z-index: 1;
 pointer-events: none;
 overflow: hidden;
 contain: paint;
 opacity: .07;
 background-image: radial-gradient(circle, rgba(255, 255, 255, .62) .55px, transparent 1px);
 background-size: 106px 106px;
}

button,
a {
 font: inherit;
 -webkit-tap-highlight-color: transparent;
}

body,
body * {
 -webkit-user-drag: none;
 user-select: none;
 -webkit-user-select: none;
 -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable="true"] {
 user-select: text;
 -webkit-user-select: text;
}

img,
svg,
canvas {
 -webkit-user-drag: none;
 user-drag: none;
}

button {
 cursor: pointer;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
 outline: none;
}

button:focus-visible,
a:focus-visible {
 outline: 2px solid rgba(255, 238, 195, .92);
 outline-offset: 3px;
}

.scene-bg {
 position: fixed;
 inset: 0;
 pointer-events: none;
}

/* 로딩 영상. scene-bg(0) 위, app-shell(2) 아래에 깔려 로더·%·카드가 전부 앞에 온다.
   body::after 의 필름 그레인(z-index 1)도 같은 층이지만 나중에 그려져 영상 위에 얹힌다. */
.loading-video {
 position: fixed;
 inset: 0;
 z-index: 1;
 width: 100%;
 height: 100%;
 object-fit: cover;
 pointer-events: none;
 opacity: 0;
 transition: opacity var(--loading-video-fade, 700ms) ease;
}

.loading-video.is-visible {
 opacity: 1;
}

/* 로딩 대사. 영상(1)·그레인(1) 위, 카드 비행층(10000) 아래. 중앙 로더·%와는 자리가 갈린다. */
.loading-line {
 position: fixed;
 left: var(--intro-inset, 20px);
 right: var(--intro-inset, 20px);
 bottom: calc(env(safe-area-inset-bottom, 0px) + 15vh);
 z-index: 8;
 margin: 0;
 color: rgba(255, 246, 224, .96);
 font-size: clamp(18px, 5vw, 24px);
 font-weight: 700;
 line-height: 1.7;
 letter-spacing: -.01em;
 text-align: center;
 word-break: keep-all;
 text-wrap: balance;
 white-space: pre-wrap;
 paint-order: stroke fill;
 -webkit-text-stroke: 2.2px rgba(8, 5, 2, .8);
 text-shadow: 0 1px 10px rgba(8, 5, 2, .7);
 pointer-events: none;
}

/* 인트로. topbar(20)보다 위, 가로 잠금(999)보다 아래 — 눕힌 채로 열어도 돌려 달라는
   안내가 인트로를 덮는다. */
.intro-scene {
 position: fixed;
 inset: 0;
 z-index: 900;
 display: grid;
 opacity: 1;
 transition: opacity 520ms ease;
}

.intro-scene.is-fading {
 opacity: 0;
 pointer-events: none;
}

/* 인물이 이미지 한가운데 있어서 높이만 화면에 맞추고 좌우는 잘라 낸다.
   아래쪽을 어둡게 깔아 대사가 읽히게 한다 — 대사 상자를 그리는 대신 이미지를 재운다. */
.intro-backdrop {
 position: absolute;
 inset: 0;
 background-image: linear-gradient(180deg, rgba(8, 6, 10, .34) 0 26%, transparent 46% 54%, rgba(8, 6, 10, .58) 72%, rgba(8, 6, 10, .84)), url("./assets/intro/reader.webp");
 background-size: cover, auto 100%;
 background-position: center, center;
 background-repeat: no-repeat, no-repeat;
}

.intro-dialogue {
 position: absolute;
 left: var(--intro-inset, 20px);
 right: var(--intro-inset, 20px);
 bottom: var(--intro-inset, 20px);
 height: 25vh;
 display: flex;
 align-items: flex-start;
 overflow: hidden;
}

/* 배경이 밝은 곳에서도 읽히도록 글자에 어두운 외곽선을 두른다. 흐린 그림자로는
   가는 획을 못 살린다 — 이 파일의 다른 밝은 배경 위 글자와 같은 처리다. */
.intro-text {
 margin: 0;
 width: 100%;
 color: rgba(255, 246, 224, .96);
 font-size: clamp(20px, 5.9vw, 28px);
 font-weight: 700;
 line-height: 1.7;
 letter-spacing: -.01em;
 text-align: center;
 /* 문장(\n) 안에서 자연 줄바꿈될 때: 단어 중간에서 끊지 않고, 접힌 줄들의 길이를 고르게. */
 word-break: keep-all;
 text-wrap: balance;
 white-space: pre-wrap;
 paint-order: stroke fill;
 -webkit-text-stroke: 2.4px rgba(8, 5, 2, .8);
 text-shadow: 0 1px 10px rgba(8, 5, 2, .7);
}

/* 커서는 타이핑 중에만. 다 친 뒤에도 깜빡이면 아직 치는 중으로 보인다. */
.intro-text.is-typing::after {
 content: "";
 display: inline-block;
 width: .55em;
 height: 1.05em;
 margin-left: .12em;
 vertical-align: -.16em;
 background: rgba(255, 232, 178, .8);
 animation: introCaret 1s steps(1, end) infinite;
}

@keyframes introCaret {
 0%, 49% { opacity: 1; }
 50%, 100% { opacity: 0; }
}

/* 앱으로 들어가는 버튼. 대사가 다 흐른 뒤에만 뜬다.
   배경·굵기·테두리는 gold-button이 준다 — 여기는 화면 정중앙 배치와 크기만. */
.intro-start {
 position: absolute;
 left: 50%;
 top: 50%;
 translate: -50% -50%;
 padding: 14px 46px;
 font-size: clamp(18px, 5vw, 24px);
 cursor: pointer;
}

/* 본 적 있는 기기의 출구. 대사가 흐르는 동안에도 바로 나갈 수 있다. */
.intro-skip {
 position: absolute;
 bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
 right: 16px;
 padding: 8px 12px;
 border: 0;
 background: none;
 color: rgba(255, 242, 204, .72);
 font-size: 13px;
 font-weight: 700;
 letter-spacing: .04em;
 paint-order: stroke fill;
 -webkit-text-stroke: 2px rgba(8, 5, 2, .7);
 cursor: pointer;
}

/* 가로 잠금. 이 앱은 모바일 세로 전용이라 눕히면 세로 공간이 사라져 무대가 무너진다.
   홈 화면에 설치한 경우는 manifest 의 orientation 이 막지만, 브라우저 탭에는 그게 안 먹고
   iOS 사파리에는 screen.orientation.lock() 자체가 없다. 그래서 화면을 덮어 돌려 달라고 말한다.
   앱을 display:none 으로 감추지는 않는다 — 감춘 상태에서 덱 카메라가 크기를 재면 0이 나와
   세로로 돌아왔을 때 배치가 어긋난다. 덮기만 하면 조작도 같이 막힌다.
   데스크톱은 늘 가로이므로 손가락 입력(pointer:coarse)과 낮은 높이로 걸러 폰만 잡는다. */
.orientation-gate {
 display: none;
}

@media (orientation: landscape) and (max-height: 560px) and (pointer: coarse) {
 .orientation-gate {
 position: fixed;
 inset: 0;
 z-index: 999;
 display: grid;
 place-content: center;
 padding: 24px;
 text-align: center;
 background: #090807;
 }

 .orientation-gate p {
 margin: 0;
 color: rgba(255, 242, 204, .86);
 font-size: clamp(17px, 4.6vh, 22px);
 font-weight: 700;
 letter-spacing: .02em;
 }
}

.scene-bg {
 z-index: 0;
 background-image: var(--bg-image);
 background-position: var(--bg-position);
 background-size: cover;
 overflow: hidden;
 contain: paint;
 filter: saturate(1.08) contrast(1.05) brightness(1.08);
 transition: background-image .22s ease, filter .22s ease;
}

@media (min-width: 0px) {
 .scene-bg {
 background-image: var(--bg-mobile-image);
 background-position: var(--bg-mobile-position);
 }}

.scene-bg::after {
 content: "";
 position: absolute;
 inset: 0;
 opacity: var(--motif-opacity);
}

body[data-service="tarot"] .scene-bg::after {
 background:
 radial-gradient(circle at 50% 50%, transparent 0 9%, rgba(255, 222, 150, .76) 9.4% 9.8%, transparent 10.2%),
 radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(255, 222, 150, .62) 22.4% 22.8%, transparent 23.2%),
 linear-gradient(90deg, transparent 49.88%, rgba(255, 222, 150, .5) 50%, transparent 50.12%),
 linear-gradient(0deg, transparent 49.88%, rgba(255, 222, 150, .5) 50%, transparent 50.12%);
}

.app-shell {
 position: relative;
 z-index: 2;
 width: min(1500px, calc(100% - 32px));
 flex: 1;
 min-height: 0;
 overflow: hidden;
 display: grid;
 grid-template-rows: auto 1fr;
 gap: 16px;
 margin-inline: auto;
 padding: 18px 0 22px;
}

.topbar {
 position: sticky;
 top: 0;
 z-index: 20;
 min-height: 40px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 padding-block: 4px;
}

/* Soft top scrim so the pinned title + action cluster stay readable over scrolling content. */
.topbar::before {
 content: "";
 position: absolute;
 left: -24px;
 right: -24px;
 top: -16px;
 bottom: -12px;
 background: linear-gradient(180deg, rgba(8, 6, 10, .72), rgba(8, 6, 10, .3) 58%, transparent);
 pointer-events: none;
 z-index: -1;
}

.topbar-actions { flex-wrap: nowrap; }

.brand {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 color: var(--text);
 font-size: 1.06rem;
 font-weight: 950;
 text-decoration: none;
}

.brand-mark {
 width: 38px;
 height: 38px;
 flex: 0 0 38px;
 border: 0;
 border-radius: 0;
 background: url("./assets/brand/oracluna-mark.png") center / contain no-repeat;
 filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .34));
}

.topbar-actions {
 display: inline-flex;
 align-items: center;
 justify-content: flex-end;
 gap: 10px;
 flex-wrap: wrap;
}

.topbar-link {
 position: relative;
 min-height: 40px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 padding: 0 14px;
 border: 1px solid rgba(255, 231, 179, .2);
 border-radius: 8px;
 background: rgba(255, 255, 255, .048);
 color: var(--accent-2);
 font-size: .82rem;
 font-weight: 900;
 text-decoration: none;
}

button.topbar-link {
 cursor: pointer;
}

.topbar-link:hover {
 border-color: color-mix(in srgb, var(--accent) 60%, white 40%);
 background: rgba(255, 255, 255, .078);
}

/* Top-right back button (replaces the in-header 카테고리 link). */
.top-back-button {
 min-height: 44px;
 width: 44px;
 display: inline-grid;
 place-items: center;
 padding: 0;
 border: 1px solid rgba(255, 231, 179, .22);
 border-radius: 10px;
 background: rgba(255, 255, 255, .048);
 color: var(--accent-2);
 cursor: pointer;
 transition: border-color .16s ease, background .16s ease;
}

.top-back-button:hover,
.top-back-button:focus-visible {
 border-color: color-mix(in srgb, var(--accent) 60%, white 40%);
 background: transparent;
 outline: none;
}

.top-back-button[hidden] { display: none; }
.top-back-button .ui-icon { width: 20px; height: 20px; }

.topbar-link.has-new-saved {
 border-color: rgba(255, 231, 174, .38);
 color: var(--accent-2);
 box-shadow: inset 0 0 0 1px rgba(255, 231, 174, .05), 0 0 20px rgba(255, 222, 149, .08);
}

.topbar-link.has-new-saved::after {
 content: "";
 position: absolute;
 inset: -5px;
 border: 1px solid rgba(255, 231, 174, .28);
 border-radius: inherit;
 opacity: 0;
 pointer-events: none;
 animation: savedSealPulse 1.05s ease both;
}

.audio-toggle {
 min-width: 76px;
 white-space: nowrap;
}

.audio-toggle.is-audio-on {
 border-color: rgba(255, 231, 174, .34);
 color: var(--accent-2);
 background: rgba(255, 231, 174, .09);
 box-shadow: inset 0 0 0 1px rgba(255, 231, 174, .06), 0 0 18px rgba(255, 222, 149, .08);
}

.topbar-status {
 min-height: 40px;
 display: inline-flex;
 align-items: center;
 gap: 10px;
 padding: 0 2px;
 color: var(--soft);
 font-size: .82rem;
 font-weight: 850;
}

.topbar-status span {
 color: var(--accent-2);
}

.topbar-status strong {
 color: var(--muted);
}

.glass-panel {
 position: relative;
 min-width: 0;
 border-radius: 8px;
}

.glass-panel::before {
 content: none;
}
.studio,
.result-panel {
 min-height: calc(100vh - 112px);
 padding: 18px;
}

h1,
h2,
h3,
p {
 margin: 0;
 letter-spacing: 0;
}

h1 {
 margin-top: 8px;
 font-size: 1.42rem;
 line-height: 1.25;
 font-weight: 950;
 word-break: keep-all;
}

h2 {
 font-size: 2.25rem;
 line-height: 1.08;
 font-weight: 950;
 word-break: keep-all;
}

h3 {
 font-size: 1.06rem;
 line-height: 1.35;
 font-weight: 950;
 word-break: keep-all;
}

.eyebrow {
 color: var(--accent);
 font-size: .74rem;
 font-weight: 950;
}
.service-button.is-active {
 border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
 background: color-mix(in srgb, var(--accent-deep) 52%, rgba(255, 255, 255, .12) 48%);
}

body[data-service="tarot"] .topbar-link {
 border-color: rgba(255, 231, 174, .13);
 background: rgba(7, 6, 8, .22);
 color: rgba(255, 248, 234, .74);
}

body[data-service="tarot"] .topbar-link:hover,
body[data-service="tarot"] .topbar-link.has-new-saved {
 border-color: rgba(255, 231, 174, .24);
 background: rgba(255, 231, 174, .055);
 color: rgba(255, 248, 234, .9);
}
body[data-service="tarot"] .result-panel {
 color: rgba(255, 248, 234, .78);
}
body[data-service="tarot"] .service-button.is-active {
 border-color: rgba(255, 231, 174, .24);
 background: rgba(255, 231, 174, .07);
}

body[data-service="tarot"] .result-head .eyebrow {
 color: rgba(255, 231, 174, .72);
}

body[data-service="tarot"] .result-head h2 {
 color: rgba(255, 248, 234, .9);
}

body[data-service="tarot"] .result-head h3,
body[data-service="tarot"] .reading-copy h3 {
 color: rgba(255, 231, 174, .78);
}

@media (min-width: 99999px) {

 body[data-service="tarot"] .result-panel {
 padding-inline: 14px 18px;
 gap: 12px;
 }

 body[data-service="tarot"] .result-head h2 {
 font-size: 1.34rem;
 }

 body[data-service="tarot"] .reading-copy p {
 color: rgba(255, 248, 234, .7);
 }

 body[data-service="tarot"] .system-status {
 gap: 5px;
 padding-top: 8px;
 opacity: .72;
 }

 body[data-service="tarot"] .status-line strong {
 color: var(--muted);
 font-size: .7rem;
 }

 body[data-service="tarot"] .status-line button {
 min-height: 24px;
 padding-inline: 7px;
 font-size: .62rem;
 }

 body[data-service="tarot"] .status-chips {
 gap: 4px;
 max-height: 22px;
 overflow: hidden;
 }

 body[data-service="tarot"] .status-chip {
 min-height: 19px;
 padding-inline: 6px;
 font-size: .58rem;
 }

 body[data-service="tarot"] .system-status p {
 display: -webkit-box;
 overflow: hidden;
 font-size: .64rem;
 line-height: 1.25;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 1;
 }}

.studio {
 display: grid;
 grid-template-rows: auto auto minmax(0, 1fr);
 gap: 14px;
}

.topic-row{
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}

body[data-service="tarot"] .topic-row {
 display: none;
}

.topic-button,
.ghost-button,
.gold-button {
 min-height: 42px;
 border: 1px solid rgba(255, 255, 255, .12);
 border-radius: 8px;
 color: var(--text);
 background: rgba(255, 255, 255, .05);
 font-weight: 900;
}

.topic-button{
 padding: 0 14px;
}

.topic-button.is-active,
.mode-button.is-active,
.chip-button.is-active {
 border-color: color-mix(in srgb, var(--accent) 70%, white 30%);
 background: color-mix(in srgb, var(--accent-deep) 56%, rgba(255, 255, 255, .13) 44%);
 color: var(--accent-2);
}

.service-stage {
 min-height: 0;
 display: grid;
}

.tool-layout {
 min-height: 0;
 display: grid;
 grid-template-rows: auto minmax(0, 1fr) auto;
 gap: 14px;
}

.stage-split {
 min-height: 430px;
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
 align-items: start;
 gap: 14px;
}

body[data-service="tarot"] .stage-split {
 grid-template-columns: minmax(0, 1fr);
}

.visual-canvas{
 border-radius: 8px;
}

.visual-canvas {
 position: relative;
 align-self: start;
 min-height: 430px;
 overflow: hidden;
}

.pool-card.is-active {
 border-color: color-mix(in srgb, var(--accent) 66%, white 34%);
 background: color-mix(in srgb, var(--accent-deep) 48%, rgba(255, 255, 255, .13) 52%);
}

.room-station.is-active{
 border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
 background:
 radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent) 62%, transparent), transparent 25%),
 color-mix(in srgb, var(--accent-deep) 44%, rgba(255, 255, 255, .1) 56%);
}

.tarot-canvas {
 isolation: isolate;
 display: grid;
 align-content: start;
 justify-items: stretch;
 gap: 10px;
 padding: 20px 18px 18px;
 background: transparent;
}

.tarot-canvas.is-revealing-card::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 50%;
 z-index: 1;
 width: min(760px, 96%);
 height: min(520px, 76%);
 border-radius: 50%;
 background:
 radial-gradient(ellipse at 50% 50%, rgba(255, 238, 190, .34), rgba(255, 238, 190, .08) 38%, transparent 68%),
 conic-gradient(from -28deg, transparent 0 12%, rgba(255, 232, 178, .38) 15%, transparent 20% 42%, rgba(255, 232, 178, .26) 45%, transparent 50% 74%, rgba(255, 232, 178, .32) 77%, transparent 82% 100%);
 opacity: 0;
 filter: blur(.2px);
 pointer-events: none;
 transform: translate(-50%, -50%) scale(.62) rotate(-20deg);
 animation: tarotRevealSweep 1.08s cubic-bezier(.16, .78, .18, 1) both;
}

.tarot-ritual,
.tarot-cut,
.tarot-deck-surface {
 position: relative;
 z-index: 3;
}

.tarot-ritual {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto;
 gap: 10px;
 align-items: center;
}

.tarot-question {
 min-width: 0;
 display: grid;
 grid-template-columns: auto minmax(0, 1fr);
 gap: 4px 8px;
 align-items: center;
}

.tarot-question span,
.tarot-step-copy strong {
 color: var(--accent-2);
 font-size: .74rem;
 font-weight: 950;
}

.tarot-question input {
 width: 100%;
 min-height: 38px;
 padding: 0 12px;
 border: 1px solid rgba(255, 231, 174, .14);
 border-radius: 8px;
 background: rgba(5, 4, 7, .26);
 color: var(--text);
 font: inherit;
 font-weight: 850;
}

.tarot-question input:focus {
 outline: 2px solid color-mix(in srgb, var(--accent) 48%, transparent);
 outline-offset: 2px;
}

.tarot-question small,
.tarot-step-copy span {
 color: var(--muted);
 font-size: .68rem;
 font-weight: 850;
 line-height: 1.35;
}

.tarot-question small {
 grid-column: 2;
}
.tarot-deck-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 justify-content: flex-end;
}
.tarot-deck-actions .ghost-button,
.tarot-deck-actions .gold-button {
 min-height: 36px;
}
.tarot-deck-actions .ghost-button {
 background: rgba(255, 255, 255, .035);
 color: var(--soft);
}

.tarot-ritual.is-compact {
 gap: 8px;
}

.tarot-shuffle-bridge {
 position: relative;
 min-height: clamp(560px, 72vh, 760px);
 display: grid;
 align-content: center;
 justify-items: center;
 gap: 10px;
 isolation: isolate;
}

.tarot-shuffle-bridge::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 44%;
 z-index: -1;
 width: min(520px, 94%);
 height: 128px;
 border-radius: 50%;
 background:
 radial-gradient(ellipse at center, rgba(255, 226, 158, .19), rgba(255, 226, 158, .045) 46%, transparent 74%),
 linear-gradient(90deg, transparent 0 24%, rgba(255, 231, 174, .13) 44%, transparent 68% 100%);
 opacity: .72;
 filter: blur(.45px);
 transform: translate(-50%, -50%);
 pointer-events: none;
}

.tarot-shuffle-bridge .tarot-step-copy {
 justify-items: center;
 text-align: center;
}

.tarot-shuffle-deck {
 position: relative;
 width: min(960px, 96vw);
 height: clamp(520px, 66vh, 720px);
 perspective: 900px;
 transform: translateZ(0);
}

.tarot-shuffle-shadow {
 position: absolute;
 left: 50%;
 top: 68%;
 width: min(420px, 78%);
 height: 48px;
 border-radius: 50%;
 background: radial-gradient(ellipse at center, rgba(0, 0, 0, .42), rgba(0, 0, 0, .18) 48%, transparent 76%);
 opacity: .5;
 transform: translate(-50%, -50%) scale(.82);
 filter: blur(5px);
 animation: tarotShuffleShadow var(--tarot-shuffle-duration, 3120ms) cubic-bezier(.2, .72, .16, 1) both;
}

.tarot-shuffle-card {
 --shuffle-start-x: -118px;
 --shuffle-start-y: 0px;
 --shuffle-start-r: -16deg;
 --shuffle-riffle-x: 22px;
 --shuffle-riffle-y: -28px;
 --shuffle-riffle-r: -8deg;
 --shuffle-bridge-x: 0px;
 --shuffle-bridge-y: -42px;
 --shuffle-bridge-r: 0deg;
 --shuffle-lift-y: -18px;
 --shuffle-counter-r: 0deg;
 --shuffle-settle-x: 0px;
 --shuffle-settle-y: 6px;
 --shuffle-settle-r: 0deg;
 --shuffle-overshoot-x: 0px;
 --shuffle-overshoot-y: -4px;
 --shuffle-overshoot-r: 0deg;
 --shuffle-end-x: 0px;
 --shuffle-end-y: 0px;
 --shuffle-end-r: 0deg;
 --shuffle-delay: 0ms;
 --shuffle-z: 1;
 --shuffle-origin-x: 50%;
 position: absolute;
 left: 50%;
 top: 50%;
 z-index: var(--shuffle-z);
 width: clamp(272px, 35vw, 376px);
 aspect-ratio: 2 / 3;
 border: 1px solid rgba(255, 231, 174, .38);
 border-radius: 8px;
 background: url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
 box-shadow: 0 20px 30px rgba(0, 0, 0, .3), 0 0 18px rgba(255, 226, 156, .07);
 opacity: .94;
 backface-visibility: hidden;
 animation: tarotShuffleWeave var(--tarot-shuffle-duration, 3120ms) cubic-bezier(.2, .72, .16, 1) both;
 animation-delay: var(--shuffle-delay);
 transform-origin: var(--shuffle-origin-x) 108%;
 will-change: transform, filter, opacity;
}

.tarot-shuffle-card::after {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: inherit;
 background:
 linear-gradient(112deg, transparent 0 34%, rgba(255, 246, 213, .18) 42%, transparent 52% 100%),
 linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 46%, rgba(0, 0, 0, .14));
 opacity: .48;
 pointer-events: none;
}

.tarot-cut {
 display: grid;
 gap: 10px;
}

.tarot-cut-recombine {
 min-height: clamp(520px, 66vh, 720px);
 display: grid;
 align-content: center;
 justify-items: center;
 gap: 8px;
}

.tarot-cut-recombine .tarot-step-copy {
 justify-items: center;
 text-align: center;
}

.tarot-recombine-stage {
 position: relative;
 width: min(960px, 96vw);
 height: clamp(500px, 62vh, 680px);
}

.tarot-recombine-pile {
 --recombine-from-x: 0px;
 --recombine-from-y: 0px;
 --recombine-from-r: 0deg;
 --recombine-mid-x: 0px;
 --recombine-mid-r: 0deg;
 --recombine-end-x: 0px;
 --recombine-end-r: 0deg;
 position: absolute;
 left: 50%;
 top: 50%;
 width: clamp(232px, 30vw, 296px);
 aspect-ratio: 2 / 3;
 transform-origin: 50% 118%;
 /* 길이와 간격은 app.js의 TAROT_RECOMBINE_* 가 인라인 변수로 내려준다. 폴백은 그 값과
    같게 유지할 것 — 여기만 고치면 JS 타이머가 어긋나 마지막 더미가 잘린다. */
 animation: tarotCutRecombine var(--recombine-duration, 760ms) cubic-bezier(.18, .82, .2, 1) both;
 animation-delay: calc(var(--recombine-i, 0) * var(--recombine-stagger, 90ms));
}

.tarot-recombine-pile::after {
 content: var(--pile-number);
 position: absolute;
 right: -7px;
 top: -7px;
 z-index: 4;
 width: 24px;
 height: 24px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 231, 174, .38);
 border-radius: 999px;
 background: rgba(7, 6, 8, .76);
 color: var(--accent-2);
 font-size: .7rem;
 font-weight: 950;
}

.tarot-recombine-pile span {
 position: absolute;
 inset: 0;
 border: 1px solid rgba(255, 231, 174, .34);
 border-radius: 7px;
 background: url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
 box-shadow: 0 18px 26px rgba(0, 0, 0, .28);
}

.tarot-recombine-pile span:nth-child(1) {
 transform: rotate(-7deg) translate(-8px, 5px);
 opacity: .62;
}

.tarot-recombine-pile span:nth-child(2) {
 transform: rotate(5deg) translate(7px, 3px);
 opacity: .76;
}

.tarot-recombine-pile span:nth-child(3) {
 transform: rotate(0deg);
}

.tarot-recombine-pile:nth-child(1) {
 --recombine-from-x: -94px;
 --recombine-from-y: 10px;
 --recombine-from-r: -12deg;
 --recombine-mid-x: -22px;
 --recombine-mid-r: -4deg;
 --recombine-end-x: -3px;
 --recombine-end-r: -1deg;
 z-index: 3;
}

.tarot-recombine-pile:nth-child(2) {
 --recombine-from-x: 92px;
 --recombine-from-y: -4px;
 --recombine-from-r: 10deg;
 --recombine-mid-x: 22px;
 --recombine-mid-r: 4deg;
 --recombine-end-x: 0px;
 --recombine-end-r: 0deg;
 z-index: 2;
}

.tarot-recombine-pile:nth-child(3) {
 --recombine-from-x: 0px;
 --recombine-from-y: 26px;
 --recombine-from-r: 2deg;
 --recombine-mid-x: 0px;
 --recombine-mid-r: 1deg;
 --recombine-end-x: 3px;
 --recombine-end-r: 1deg;
 z-index: 1;
}

.tarot-step-copy {
 display: grid;
 gap: 3px;
}

.tarot-cut-piles {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 24px;
}

.tarot-cut-pile {
 position: relative;
 min-height: clamp(360px, 48vh, 460px);
 display: grid;
 place-items: center;
 align-content: center;
 gap: 6px;
 padding: 10px;
 border: 0;
 border-radius: 0;
 background: transparent;
 color: var(--text);
 transform-origin: 50% 100%;
 isolation: isolate;
 transition: filter .18s ease, transform .18s ease;
}

.tarot-cut-pile::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 48%;
 z-index: -1;
 width: min(330px, 28vw);
 height: min(270px, 22vw);
 border-radius: 50%;
 background: radial-gradient(ellipse at center, rgba(255, 226, 158, .16), rgba(255, 226, 158, 0) 72%);
 opacity: .72;
 transform: translate(-50%, -50%) scale(.92);
 transition: opacity .18s ease, transform .18s ease;
 pointer-events: none;
}

.tarot-canvas.tarot-stage-cut .tarot-cut-pile {
 animation: tarotCutPileIn .54s cubic-bezier(.18, .84, .24, 1.06) both;
 animation-delay: calc(var(--pile-i, 0) * 95ms);
}

.tarot-cut-pile:hover {
 filter: brightness(1.1) saturate(1.04);
 transform: translateY(-7px);
}

.tarot-cut-pile:hover::before,
.tarot-cut-pile:focus-visible::before {
 opacity: 1;
 transform: translate(-50%, -50%) scale(1.16);
}

.tarot-cut-pile:focus-visible {
 outline: 2px solid color-mix(in srgb, var(--accent) 64%, white 36%);
 outline-offset: 4px;
}

.cut-stack {
 position: relative;
 width: clamp(220px, 26vw, 272px);
 aspect-ratio: 2 / 3;
}

.cut-stack span {
 position: absolute;
 inset: 0;
 border: 1px solid rgba(255, 231, 174, .34);
 border-radius: 6px;
 background: url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
 box-shadow: 0 14px 22px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.tarot-cut-pile strong {
 min-width: 24px;
 min-height: 24px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 231, 174, .32);
 border-radius: 999px;
 background: rgba(7, 6, 8, .72);
 color: var(--accent-2);
 font-size: .7rem;
 font-weight: 950;
}

.tarot-cut-pile small {
 color: var(--muted);
 font-size: .64rem;
 font-weight: 900;
}

.cut-stack span:nth-child(1) { transform: rotate(-8deg) translate(-8px, 5px); opacity: .62; }
.cut-stack span:nth-child(2) { transform: rotate(5deg) translate(7px, 3px); opacity: .76; }
.cut-stack span:nth-child(3) { transform: rotate(0deg); }

.tarot-canvas.tarot-stage-cut .cut-stack span:nth-child(1) {
 animation: tarotCutCardFanLeft .7s ease both;
 animation-delay: calc(var(--pile-i, 0) * 95ms + 120ms);
}

.tarot-canvas.tarot-stage-cut .cut-stack span:nth-child(2) {
 animation: tarotCutCardFanRight .72s ease both;
 animation-delay: calc(var(--pile-i, 0) * 95ms + 140ms);
}

.tarot-table-state {
 display: none;
}

.tarot-table-state span {
 color: var(--muted);
 font-size: .66rem;
 font-weight: 900;
}

.tarot-table-state strong {
 color: var(--accent-2);
 font-size: .78rem;
 font-weight: 950;
}

.tarot-progress {
 position: relative;
 z-index: 4;
 display: grid;
 grid-template-columns: repeat(6, minmax(0, 1fr));
 align-items: start;
 gap: 5px;
 padding: 0 4px 2px;
}

.tarot-progress::before,
.tarot-progress::after {
 content: "";
 position: absolute;
 left: 8px;
 right: 8px;
 top: 10px;
 height: 1px;
 border-radius: 999px;
 pointer-events: none;
}

.tarot-progress::before {
 background: rgba(255, 231, 174, .12);
}

.tarot-progress::after {
 right: auto;
 width: calc(var(--ritual-progress, 0%) * .98);
 background: linear-gradient(90deg, rgba(255, 231, 174, .18), rgba(255, 231, 174, .86));
 box-shadow: 0 0 18px rgba(255, 222, 149, .12);
 transition: width .42s cubic-bezier(.18, .8, .22, 1);
}

.tarot-progress-step {
 position: relative;
 z-index: 1;
 min-width: 0;
 display: grid;
 justify-items: center;
 gap: 4px;
 color: var(--muted);
}

.tarot-progress-step i {
 width: 20px;
 aspect-ratio: 1;
 display: block;
 border: 1px solid rgba(255, 231, 174, .2);
 border-radius: 999px;
 background: rgba(7, 6, 8, .72);
 box-shadow: inset 0 0 0 4px rgba(255, 231, 174, .025);
}

.tarot-progress-step b {
 max-width: 100%;
 overflow: hidden;
 font-size: .58rem;
 font-weight: 950;
 line-height: 1.1;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.tarot-progress-step.is-complete {
 color: rgba(255, 231, 174, .76);
}

.tarot-progress-step.is-complete i {
 border-color: rgba(255, 231, 174, .48);
 background:
 radial-gradient(circle, rgba(255, 231, 174, .88), rgba(255, 231, 174, .36) 38%, transparent 42%),
 rgba(7, 6, 8, .76);
 box-shadow: 0 0 18px rgba(255, 222, 149, .12);
}

.tarot-progress-step.is-active {
 color: var(--accent-2);
}

.tarot-progress-step.is-active i {
 border-color: rgba(255, 231, 174, .72);
 background:
 radial-gradient(circle, rgba(255, 246, 213, .96), rgba(255, 231, 174, .46) 42%, transparent 46%),
 rgba(7, 6, 8, .78);
 box-shadow: 0 0 22px rgba(255, 222, 149, .2);
 animation: tarotProgressPulse 1.45s ease-in-out infinite;
}

.tarot-canvas::after {
 content: "";
 position: absolute;
 inset: 0;
 z-index: 0;
 pointer-events: none;
 background:
 linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .13) 42%, rgba(0, 0, 0, .3));
}

.tarot-canvas.is-drawing .card-spread {
 z-index: 4;
}

.tarot-canvas.is-drawing .tarot-offer:not(:disabled):hover {
 opacity: .28;
 transform: translateX(-50%) translateY(-32px) scale(.64);
}

.card-spread {
 position: relative;
 z-index: 2;
 isolation: isolate;
 justify-self: center;
 width: min(680px, 100%);
 min-height: 560px;
 display: grid;
 grid-template-columns: repeat(7, minmax(64px, 1fr));
 grid-template-rows: repeat(3, 178px);
 gap: 10px;
 align-items: center;
}

.tarot-canvas.tarot-stage-ready .card-spread::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 48%;
 z-index: -1;
 width: min(640px, 94%);
 height: min(340px, 72%);
 border-radius: 50%;
 background:
 radial-gradient(ellipse at center, rgba(255, 229, 157, .22), rgba(255, 229, 157, .06) 42%, rgba(255, 229, 157, 0) 70%),
 conic-gradient(from 0deg, transparent 0 14%, rgba(255, 232, 178, .22) 16%, transparent 18% 48%, rgba(255, 232, 178, .18) 50%, transparent 53% 100%);
 opacity: 0;
 transform: translate(-50%, -50%) scale(.72) rotate(-8deg);
 filter: blur(.2px);
 pointer-events: none;
 animation: tarotTableAwake .96s cubic-bezier(.16, .78, .18, 1) both;
}

.tarot-canvas.is-receiving-card:not(.tarot-stage-ready) .card-spread::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 48%;
 z-index: -1;
 width: min(580px, 92%);
 height: min(300px, 68%);
 border-radius: 50%;
 background:
 radial-gradient(ellipse at center, rgba(255, 227, 151, .24), rgba(255, 227, 151, .07) 42%, rgba(255, 227, 151, 0) 72%);
 opacity: 0;
 transform: translate(-50%, -50%) scale(.64);
 pointer-events: none;
 animation: tarotTableReceivePulse .72s cubic-bezier(.16, .86, .2, 1) both;
}

.tarot-slot {
 --card-final-rotate: 0deg;
 --deal-x: 0px;
 --deal-y: 108px;
 --deal-r: 0deg;
 appearance: none;
 position: relative;
 isolation: isolate;
 min-height: 168px;
 display: grid;
 grid-template-rows: minmax(0, 1fr) auto;
 justify-items: center;
 gap: 3px;
 padding: 0;
 border: 0;
 border-radius: 0;
 background: transparent;
 color: var(--soft);
 perspective: 900px;
 text-align: center;
 transition: opacity .65s ease;
}

.tarot-slot:disabled {
 cursor: default;
 opacity: 1;
}

.tarot-slot.is-filled {
 color: var(--text);
}

.tarot-slot.is-facedown {
 color: var(--soft);
}

.tarot-slot:not(.is-filled) {
 min-height: 88px;
 grid-template-rows: auto;
 align-content: center;
 color: color-mix(in srgb, var(--soft) 70%, transparent);
}

.tarot-slot.is-fresh-deal::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 50%;
 z-index: -1;
 width: min(168px, 88%);
 aspect-ratio: 1.25 / 1;
 border-radius: 50%;
 background:
 radial-gradient(ellipse at center, rgba(255, 228, 157, .32), rgba(255, 228, 157, .09) 42%, rgba(255, 228, 157, 0) 72%);
 opacity: 0;
 transform: translate(-50%, -50%) scale(.52);
 animation: tarotDealLanding .7s cubic-bezier(.16, .86, .2, 1) both;
 animation-delay: calc(var(--slot-i, 0) * 42ms + 70ms);
 pointer-events: none;
}

.tarot-slot.is-fresh-reveal::after {
 display: none;
}

.tarot-card-image {
 position: relative;
 overflow: hidden;
 width: min(94px, 100%);
 aspect-ratio: 2 / 3;
 border: 1px solid color-mix(in srgb, var(--accent) 48%, white 30%);
 border-radius: 7px;
 background-color: rgba(0, 0, 0, .22);
 background-position: center;
 background-size: cover;
 box-shadow: 0 12px 28px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255, 255, 255, .07);
 transform: rotate(var(--card-final-rotate));
 transform-origin: center;
 transform-style: preserve-3d;
 backface-visibility: hidden;
 will-change: transform, opacity, filter;
}

.tarot-card-image::before {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: inherit;
 background:
 radial-gradient(circle at 50% 18%, rgba(255, 238, 190, .28), rgba(255, 238, 190, 0) 42%),
 linear-gradient(145deg, rgba(255, 255, 255, .16), transparent 34% 68%, rgba(0, 0, 0, .1));
 opacity: 0;
 pointer-events: none;
 transition: opacity .2s ease;
}

.tarot-card-image::after {
 content: "";
 position: absolute;
 inset: -14% -52%;
 background: linear-gradient(104deg, transparent 34%, rgba(255, 244, 204, .72) 49%, transparent 64%);
 opacity: 0;
 pointer-events: none;
 transform: translateX(-72%) rotate(8deg);
}

.tarot-slot:not(.is-filled) .tarot-card-image {
 display: none;
}

.tarot-slot:not(.is-filled) .tarot-slot-caption strong,
.tarot-slot:not(.is-filled) .tarot-slot-caption small {
 display: none;
}

.tarot-slot.is-filled .tarot-card-image {
 width: min(132px, 100%);
 border-color: color-mix(in srgb, var(--accent) 62%, white 38%);
 box-shadow: 0 14px 30px rgba(0, 0, 0, .36);
}

.tarot-slot.is-filled.is-facedown:not(:disabled) {
 cursor: pointer;
}

.tarot-slot.is-filled.is-facedown:not(:disabled) .tarot-card-image {
 transition: transform .2s ease, filter .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tarot-slot.is-filled.is-facedown:not(:disabled) .tarot-card-image::before {
 opacity: .26;
 animation: tarotRevealCue 2.4s ease-in-out infinite;
 animation-delay: calc(var(--slot-i, 0) * 130ms);
}

.tarot-slot.is-filled.is-facedown:not(:disabled):hover .tarot-card-image,
.tarot-slot.is-filled.is-facedown:not(:disabled):focus-visible .tarot-card-image {
 border-color: color-mix(in srgb, var(--accent) 74%, white 26%);
 box-shadow: 0 20px 34px rgba(0, 0, 0, .38), 0 0 24px rgba(255, 219, 143, .13);
 filter: brightness(1.08) saturate(1.04);
 transform: translateY(-6px) rotate(var(--card-final-rotate)) scale(1.025);
}

.tarot-slot.is-filled.is-facedown:not(:disabled):hover .tarot-card-image::before,
.tarot-slot.is-filled.is-facedown:not(:disabled):focus-visible .tarot-card-image::before {
 opacity: .92;
 animation: none;
}

.tarot-slot.is-filled.is-facedown:not(:disabled):active .tarot-card-image {
 transform: translateY(-10px) rotate(var(--card-final-rotate)) scale(1.04);
}

.tarot-slot.is-filled.is-facedown:not(:disabled):hover .tarot-slot-caption small,
.tarot-slot.is-filled.is-facedown:not(:disabled):focus-visible .tarot-slot-caption small {
 color: var(--accent-2);
}

.tarot-slot.is-fresh-deal.is-facedown .tarot-card-image {
 animation: tarotCardDeal .68s cubic-bezier(.16, .86, .2, 1.08) both;
 animation-delay: calc(var(--slot-i, 0) * 42ms);
}

.tarot-slot.is-fresh-deal.is-facedown .tarot-card-image::after {
 animation: tarotDealGlimmer .58s ease both;
 animation-delay: calc(var(--slot-i, 0) * 42ms + 80ms);
}

.tarot-slot.is-revealed .tarot-card-image {
 filter: saturate(1.06) brightness(1.04);
}

.tarot-slot.is-fresh-reveal .tarot-card-image {
 animation: tarotCardReveal 3.35s cubic-bezier(.2, .68, .12, 1) both;
 animation-delay: calc(var(--slot-i, 0) * 80ms);
 box-shadow: 0 22px 42px rgba(0, 0, 0, .42), 0 0 38px rgba(255, 226, 156, .24);
}

.tarot-slot.is-reversed.is-fresh-reveal .tarot-card-image {
 animation-name: tarotCardRevealReversed;
}

.tarot-slot.is-fresh-reveal .tarot-card-image::after {
 animation: none;
}

.tarot-slot.is-fresh-reveal .tarot-card-image::before {
 opacity: 1;
 z-index: 2;
 background:
 linear-gradient(145deg, rgba(255, 255, 255, .16), transparent 34% 68%, rgba(0, 0, 0, .16)),
 url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
 animation: tarotRevealBackCover 3.35s cubic-bezier(.2, .68, .12, 1) both;
 animation-delay: calc(var(--slot-i, 0) * 80ms);
}

.tarot-slot.is-filled.is-fresh-reveal .tarot-slot-caption {
 animation: tarotCaptionReveal 2.38s cubic-bezier(.16, .82, .18, 1) both;
 animation-delay: calc(var(--slot-i, 0) * 80ms + 650ms);
}

.tarot-canvas.is-reading-open .tarot-slot.is-revealed .tarot-card-image {
 box-shadow: 0 18px 36px rgba(0, 0, 0, .4), 0 0 24px rgba(255, 222, 149, .1);
}

.tarot-canvas.is-reading-open .tarot-slot.is-revealed .tarot-slot-caption strong {
 text-shadow: 0 0 16px rgba(255, 231, 174, .16);
}

.service-stage.is-tarot-flight-landing .tarot-slot {
 opacity: 0;
 pointer-events: none;
}

.service-stage.is-tarot-flight-landing .tarot-slot,
.service-stage.is-tarot-flight-landing .tarot-slot::before,
.service-stage.is-tarot-flight-landing .tarot-slot::after,
.service-stage.is-tarot-flight-landing .tarot-card-image,
.service-stage.is-tarot-flight-landing .tarot-card-image::before,
.service-stage.is-tarot-flight-landing .tarot-card-image::after,
.service-stage.is-tarot-flight-landing .tarot-slot-caption {
 animation: none !important;
 transition: none !important;
}

.tarot-slot.is-filled .tarot-slot-caption {
 animation: tarotCaptionSettle .42s ease both;
 animation-delay: calc(var(--slot-i, 0) * 36ms + 80ms);
}

.tarot-slot-caption {
 width: min(132px, 100%);
 min-width: 0;
 max-width: 100%;
 display: grid;
 gap: 1px;
 justify-items: center;
 padding: 0;
 border: 0;
 border-radius: 0;
 background: transparent;
}

.tarot-deck-surface {
 display: grid;
 gap: 10px;
}

.tarot-deck-surface.is-compact {
 grid-template-columns: minmax(0, 1fr) auto;
 align-items: end;
 gap: 8px 12px;
 padding-top: 2px;
 border-top: 1px solid rgba(255, 231, 174, .12);
}

.tarot-deck-surface .tarot-step-copy {
 grid-template-columns: minmax(0, 1fr) auto;
 align-items: end;
}

.tarot-deck-surface.is-compact .tarot-step-copy {
 grid-template-columns: 1fr;
}

.tarot-deck-surface.is-compact .tarot-deck-actions {
 align-self: center;
}

.tarot-deck-surface.is-compact .tarot-deck-actions button:disabled {
 display: none;
}

.tarot-picked-strip {
 grid-column: 1 / -1;
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 8px;
 min-height: 48px;
}

.tarot-picked-strip > span {
 color: var(--muted);
 font-size: .68rem;
 font-weight: 950;
}

.tarot-picked-token {
 position: relative;
 width: 30px;
 height: 45px;
 display: block;
 transform: rotate(var(--picked-r, 0deg)) translateY(-1px);
 transform-origin: 50% 88%;
 filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .26));
 animation: tarotPickedTokenIn .42s cubic-bezier(.18, .84, .24, 1.08) both;
}

.tarot-picked-token span {
 position: absolute;
 inset: 0;
 border: 1px solid rgba(255, 231, 174, .3);
 border-radius: 5px;
 background: url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.tarot-picked-token b {
 position: absolute;
 right: -5px;
 bottom: -5px;
 min-width: 20px;
 min-height: 20px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 231, 174, .4);
 border-radius: 999px;
 background: rgba(7, 6, 8, .82);
 color: var(--accent-2);
 font-size: .58rem;
 font-weight: 950;
 line-height: 1;
}

.tarot-arc-shell {
 position: relative;
 min-height: clamp(380px, 52vh, 520px);
 overflow: hidden;
 isolation: isolate;
 cursor: grab;
 touch-action: none;
 user-select: none;
}

.tarot-arc-shell::before {
 content: "";
 position: absolute;
 left: 50%;
 top: -54px;
 z-index: 0;
 width: min(760px, 126%);
 height: 156px;
 border: 1px solid rgba(255, 231, 174, .13);
 border-bottom-color: rgba(255, 231, 174, .28);
 border-radius: 0 0 50% 50%;
 opacity: .62;
 pointer-events: none;
 transform: translateX(-50%);
 filter: drop-shadow(0 10px 18px rgba(255, 205, 111, .08));
}

.tarot-arc-shell::after {
 content: "";
 position: absolute;
 left: 50%;
 top: 24px;
 z-index: 0;
 width: min(360px, 76%);
 height: 28px;
 border-radius: 999px;
 background: radial-gradient(ellipse at center, rgba(255, 224, 154, .22), rgba(255, 224, 154, 0) 68%);
 opacity: .8;
 pointer-events: none;
 transform: translateX(-50%);
}

.tarot-arc-shell.is-grabbing {
 cursor: grabbing;
}

.tarot-arc-shell.is-grabbing .tarot-back-card {
 transition-duration: .04s;
}

.tarot-arc-shell.is-snapping .tarot-back-card {
 transition-timing-function: cubic-bezier(.16, .82, .22, 1);
 transition-duration: .52s;
}

.tarot-arc-shell.is-snapping .tarot-arc-stage::after {
 width: 96px;
 opacity: 1;
 box-shadow: 0 0 24px rgba(255, 214, 133, .46);
}

.tarot-arc-shell.has-picked .tarot-back-card:not(.is-picked):not(.is-centered) .tarot-back-face {
 filter: brightness(.88) saturate(.94);
}

.tarot-arc-stage {
 position: absolute;
 inset: 0;
 z-index: 2;
 pointer-events: none;
}

.tarot-arc-stage::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 16px;
 z-index: 0;
 width: min(300px, 74%);
 height: 150px;
 border-radius: 0 0 50% 50%;
 background:
 radial-gradient(ellipse at 50% 0%, rgba(255, 229, 159, .28), rgba(255, 229, 159, 0) 58%),
 linear-gradient(90deg, transparent 0 46%, rgba(255, 231, 174, .2) 50%, transparent 54% 100%);
 opacity: .72;
 pointer-events: none;
 transform: translateX(-50%);
}

.tarot-arc-stage::after {
 content: "";
 position: absolute;
 left: 50%;
 top: 34px;
 z-index: 0;
 width: 74px;
 height: 2px;
 border-radius: 999px;
 background: linear-gradient(90deg, transparent, rgba(255, 231, 174, .8), transparent);
 box-shadow: 0 0 18px rgba(255, 214, 133, .34);
 opacity: .82;
 pointer-events: none;
 transform: translateX(-50%);
}

.tarot-back-card {
 position: absolute;
 left: var(--arc-x, 50%);
 top: var(--arc-y, 50%);
 z-index: var(--arc-z, 1);
 width: clamp(132px, 13vw, 184px);
 aspect-ratio: 2 / 3;
 display: grid;
 place-items: center;
 padding: 0;
 border: 1px solid rgba(255, 231, 174, .12);
 border-radius: 7px;
 background: transparent;
 cursor: pointer;
 opacity: var(--arc-opacity, 0);
 pointer-events: auto;
 transform: translate(-50%, -50%) rotate(var(--arc-angle, 0deg)) scale(var(--arc-scale, 1));
 transform-origin: 50% -28%;
 box-shadow: 0 18px 26px rgba(0, 0, 0, calc(.1 + var(--arc-focus, 0) * .18));
 transition: transform .18s ease, border-color .18s ease, filter .18s ease, opacity .18s ease, box-shadow .18s ease;
 will-change: transform;
}

.tarot-back-card::before {
 content: "";
 position: absolute;
 inset: -6px;
 border: 1px solid rgba(255, 231, 174, .3);
 border-radius: 12px;
 opacity: calc(var(--arc-focus, 0) * .72);
 pointer-events: none;
 transform: scale(1.02);
}

.tarot-canvas.tarot-stage-draw.is-waiting .tarot-back-card {
 animation: none;
}

.tarot-back-card:not(:disabled):hover {
 border-color: color-mix(in srgb, var(--accent) 62%, white 38%);
 box-shadow: 0 24px 34px rgba(0, 0, 0, .34), 0 0 28px rgba(255, 214, 133, .14);
 filter: brightness(1.1) saturate(1.04);
 transform: translate(-50%, calc(-50% - var(--arc-hover-lift, 18px))) rotate(var(--arc-angle, 0deg)) scale(var(--arc-scale, 1));
 z-index: 1120;
}

.tarot-back-card:not(:disabled):active {
 transform: translate(-50%, calc(-50% - var(--arc-active-lift, 28px))) rotate(var(--arc-angle, 0deg)) scale(var(--arc-scale, 1));
}

.tarot-back-card:focus-visible {
 outline: 2px solid color-mix(in srgb, var(--accent) 70%, white 30%);
 outline-offset: 4px;
}

.tarot-back-card:disabled:not(.is-picked) {
 opacity: .38;
 cursor: default;
}

/* 선택 표시는 윤곽·광 없이 '튀어나옴' 하나다 — 휠 노드의 --wheel-pick이 담당한다. */
.tarot-back-face {
 position: absolute;
 inset: 3px;
 border-radius: 5px;
 background: url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
 transition: filter .18s ease, transform .18s ease;
}

.tarot-back-card.is-centered:not(.is-picked) .tarot-back-face {
 filter: brightness(1.06) saturate(1.04);
 transform: scale(1.018);
 animation: tarotCenterCardBreathe 1.7s ease-in-out infinite;
}

.tarot-back-card strong {
 position: relative;
 z-index: 1;
 min-width: 24px;
 min-height: 24px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 231, 174, .34);
 border-radius: 999px;
 background: rgba(7, 6, 8, .76);
 color: var(--accent-2);
 font-size: .72rem;
 font-weight: 950;
}

@keyframes tarotArcBloom {
 0% {
 opacity: 0;
 transform: translate(-50%, 20px) rotate(calc(var(--arc-angle, 0deg) - 8deg)) scale(.72);
 filter: blur(2px) brightness(.8);
 }
 64% {
 opacity: var(--arc-opacity, 1);
 transform: translate(-50%, calc(-50% - 6px)) rotate(var(--arc-angle, 0deg)) scale(var(--arc-bloom-scale, 1.025));
 filter: blur(0) brightness(1.08);
 }
 100% {
 opacity: var(--arc-opacity, 1);
 transform: translate(-50%, -50%) rotate(var(--arc-angle, 0deg)) scale(var(--arc-scale, 1));
 filter: blur(0) brightness(1);
 }
}

@keyframes tarotShuffleWeave {
 0% {
 opacity: 0;
 transform:
 translate(-50%, -50%)
 translate(var(--shuffle-start-x), var(--shuffle-start-y))
 rotate(var(--shuffle-start-r))
 rotateX(0deg)
 scale(.94);
 filter: blur(1.4px) brightness(.84);
 }
 12% {
 opacity: .96;
 transform:
 translate(-50%, -50%)
 translate(var(--shuffle-start-x), var(--shuffle-start-y))
 rotate(var(--shuffle-start-r))
 rotateX(0deg)
 scale(1);
 filter: blur(0) brightness(1.02);
 }
 35% {
 opacity: 1;
 transform:
 translate(-50%, -50%)
 translate(var(--shuffle-riffle-x), var(--shuffle-riffle-y))
 rotate(var(--shuffle-riffle-r))
 rotateX(5deg)
 scale(1.018);
 filter: blur(0) brightness(1.07);
 }
 56% {
 opacity: 1;
 transform:
 translate(-50%, -50%)
 translate(var(--shuffle-bridge-x), var(--shuffle-bridge-y))
 rotate(var(--shuffle-bridge-r))
 rotateX(14deg)
 scale(1.028);
 filter: blur(0) brightness(1.11);
 }
 72% {
 opacity: .98;
 transform:
 translate(-50%, -50%)
 translate(var(--shuffle-end-x), var(--shuffle-lift-y))
 rotate(var(--shuffle-counter-r))
 rotateX(-5deg)
 scale(1.018);
 filter: blur(0) brightness(1.06);
 }
 86% {
 opacity: .98;
 transform:
 translate(-50%, -50%)
 translate(var(--shuffle-settle-x), var(--shuffle-settle-y))
 rotate(var(--shuffle-settle-r))
 rotateX(0deg)
 scale(.992);
 filter: blur(0) brightness(.99);
 }
 94% {
 opacity: .99;
 transform:
 translate(-50%, -50%)
 translate(var(--shuffle-overshoot-x), var(--shuffle-overshoot-y))
 rotate(var(--shuffle-overshoot-r))
 rotateX(0deg)
 scale(1.008);
 filter: blur(0) brightness(1.035);
 }
 100% {
 opacity: .96;
 transform:
 translate(-50%, -50%)
 translate(var(--shuffle-end-x), var(--shuffle-end-y))
 rotate(var(--shuffle-end-r))
 rotateX(0deg)
 scale(1);
 filter: blur(0) brightness(1);
 }
}

@keyframes tarotShuffleShadow {
 0% {
 opacity: .16;
 transform: translate(-50%, -50%) scale(.62);
 }
 35% {
 opacity: .36;
 transform: translate(-50%, -50%) scale(1.02);
 }
 56% {
 opacity: .52;
 transform: translate(-50%, -50%) scale(.9);
 }
 82% {
 opacity: .42;
 transform: translate(-50%, -50%) scale(.76);
 }
 100% {
 opacity: .5;
 transform: translate(-50%, -50%) scale(.78);
 }
}

@keyframes tarotCutPileIn {
 0% {
 opacity: 0;
 transform: translateY(18px) rotate(-2deg) scale(.92);
 filter: blur(2px) brightness(.84);
 }
 70% {
 opacity: 1;
 transform: translateY(-5px) rotate(1deg) scale(1.025);
 filter: blur(0) brightness(1.08);
 }
 100% {
 opacity: 1;
 transform: translateY(0) rotate(0deg) scale(1);
 filter: blur(0) brightness(1);
 }
}

@keyframes tarotCutCardFanLeft {
 0% {
 transform: rotate(0deg) translate(0, 0);
 }
 100% {
 transform: rotate(-8deg) translate(-8px, 5px);
 }
}

@keyframes tarotCutCardFanRight {
 0% {
 transform: rotate(0deg) translate(0, 0);
 }
 100% {
 transform: rotate(5deg) translate(7px, 3px);
 }
}

@keyframes tarotCutRecombine {
 0% {
 opacity: 0;
 transform:
 translate(-50%, -50%)
 translate(var(--recombine-from-x, 0), var(--recombine-from-y, 0))
 rotate(var(--recombine-from-r, 0deg))
 scale(.92);
 filter: blur(2px) brightness(.82);
 }
 50% {
 opacity: 1;
 transform:
 translate(-50%, -50%)
 translate(var(--recombine-mid-x), -14px)
 rotate(var(--recombine-mid-r))
 scale(1.04);
 filter: blur(0) brightness(1.12);
 }
 100% {
 opacity: 1;
 transform:
 translate(-50%, -50%)
 translate(var(--recombine-end-x), 0)
 rotate(var(--recombine-end-r))
 scale(1);
 filter: blur(0) brightness(1);
 }
}

@keyframes tarotCardDeal {
 0% {
 opacity: 0;
 transform:
 translate3d(var(--deal-x, 0px), var(--deal-y, 108px), 0)
 rotate(calc(var(--card-final-rotate) + var(--deal-r, 0deg)))
 scale(.58);
 filter: blur(3px) brightness(.72) saturate(.86);
 box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
 }
 44% {
 opacity: 1;
 transform:
 translate3d(0, -14px, 0)
 rotate(var(--card-final-rotate))
 scale(1.075);
 filter: blur(0) brightness(1.16) saturate(1.08);
 box-shadow: 0 24px 38px rgba(0, 0, 0, .42), 0 0 26px rgba(255, 218, 139, .18);
 }
 72% {
 transform:
 translate3d(0, 5px, 0)
 rotate(var(--card-final-rotate))
 scale(.985);
 filter: blur(0) brightness(1.02) saturate(1);
 }
 100% {
 opacity: 1;
 transform:
 translate3d(0, 0, 0)
 rotate(var(--card-final-rotate))
 scale(1);
 filter: blur(0) brightness(1);
 }
}

@keyframes tarotDealFlight {
 0% {
 opacity: 0;
 transform:
 translate3d(0, 0, 0)
 rotate(var(--flight-start-r, -8deg))
 scale(.94);
 filter: blur(1.8px) brightness(.86) saturate(.9);
 }
 10% {
 opacity: 1;
 }
 48% {
 opacity: 1;
 transform:
 translate3d(var(--flight-mid-x, 0px), var(--flight-mid-y, -54px), 0)
 rotate(var(--flight-mid-r, 4deg))
 scale(1.12);
 filter: blur(0) brightness(1.2) saturate(1.08);
 }
 78% {
 opacity: .98;
 transform:
 translate3d(var(--flight-x, 0px), calc(var(--flight-y, 0px) - 7px), 0)
 rotate(var(--flight-end-r, 0deg))
 scale(var(--flight-pop-scale, 1.04));
 filter: blur(0) brightness(1.08) saturate(1.04);
 }
 100% {
 opacity: 0;
 transform:
 translate3d(var(--flight-x, 0px), var(--flight-y, 0px), 0)
 rotate(var(--flight-end-r, 0deg))
 scale(var(--flight-end-scale, 1));
 filter: blur(.8px) brightness(1.04) saturate(1);
 }
}

@keyframes tarotDealFlightAura {
 0% {
 opacity: 0;
 transform: scale(.68);
 }
 46% {
 opacity: .86;
 transform: scale(1.14);
 }
 100% {
 opacity: 0;
 transform: scale(1.42);
 }
}

@keyframes tarotDealFlightSheen {
 0% {
 opacity: 0;
 transform: translateX(-72%) rotate(8deg);
 }
 45% {
 opacity: .78;
 }
 100% {
 opacity: 0;
 transform: translateX(72%) rotate(8deg);
 }
}

@keyframes tarotDealLanding {
 0% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(.52);
 filter: blur(3px);
 }
 36% {
 opacity: .9;
 transform: translate(-50%, -50%) scale(1.08);
 filter: blur(0);
 }
 100% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(1.34);
 filter: blur(2px);
 }
}

@keyframes tarotTableReceivePulse {
 0% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(.64);
 filter: blur(8px);
 }
 38% {
 opacity: .86;
 transform: translate(-50%, -50%) scale(1.03);
 filter: blur(1px);
 }
 100% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(1.28);
 filter: blur(6px);
 }
}

@keyframes tarotDealGlimmer {
 0% {
 opacity: 0;
 transform: translateX(-78%) rotate(8deg);
 }
 42% {
 opacity: .8;
 }
 100% {
 opacity: 0;
 transform: translateX(76%) rotate(8deg);
 }
}

@keyframes tarotCardReveal {
 0% {
 opacity: 1;
 transform: rotateY(0deg) rotate(var(--card-final-rotate)) scale(1);
 filter: brightness(.92) saturate(.94);
 }
 42% {
 opacity: 1;
 transform: rotateY(-82deg) rotate(var(--card-final-rotate)) scale(.99);
 filter: brightness(.82) saturate(.9);
 }
 50% {
 opacity: 1;
 transform: rotateY(-90deg) rotate(var(--card-final-rotate)) scale(.985);
 filter: brightness(.78) saturate(.88);
 }
 64% {
 opacity: 1;
 transform: rotateY(-58deg) rotate(var(--card-final-rotate)) scale(.99);
 filter: brightness(1) saturate(1.02);
 }
 84% {
 transform: rotateY(-14deg) rotate(var(--card-final-rotate)) scale(1.004);
 filter: brightness(1.05) saturate(1.05);
 }
 100% {
 opacity: 1;
 transform: rotateY(0deg) rotate(var(--card-final-rotate)) scale(1);
 filter: brightness(1.04) saturate(1.06);
 }
}

@keyframes tarotCardRevealReversed {
 0% {
 opacity: 1;
 transform: rotateY(0deg) rotate(0deg) scale(1);
 filter: brightness(.92) saturate(.94);
 }
 42% {
 opacity: 1;
 transform: rotateY(-82deg) rotate(0deg) scale(.99);
 filter: brightness(.82) saturate(.9);
 }
 50% {
 opacity: 1;
 transform: rotateY(-90deg) rotate(0deg) scale(.985);
 filter: brightness(.78) saturate(.88);
 }
 64% {
 opacity: 1;
 transform: rotateY(-58deg) rotate(70deg) scale(.99);
 filter: brightness(1) saturate(1.02);
 }
 84% {
 transform: rotateY(-14deg) rotate(156deg) scale(1.004);
 filter: brightness(1.05) saturate(1.05);
 }
 100% {
 opacity: 1;
 transform: rotateY(0deg) rotate(180deg) scale(1);
 filter: brightness(1.04) saturate(1.06);
 }
}

@keyframes tarotRevealBackCover {
 0% {
 opacity: 1;
 filter: brightness(1.02) saturate(.98);
 }
 48% {
 opacity: 1;
 filter: brightness(.96) saturate(.96);
 }
 52% {
 opacity: 0;
 filter: brightness(1) saturate(1);
 }
 100% {
 opacity: 0;
 filter: brightness(1) saturate(1);
 }
}

@keyframes tarotCardGlimmer {
 0% {
 opacity: 0;
 transform: translateX(-72%) rotate(8deg);
 }
 34% {
 opacity: .72;
 }
 100% {
 opacity: 0;
 transform: translateX(72%) rotate(8deg);
 }
}

@keyframes tarotRevealBloom {
 0% {
 opacity: 0;
 transform: scale(.96);
 }
 36% {
 opacity: .88;
 transform: scale(1.02);
 }
 100% {
 opacity: 0;
 transform: scale(1.08);
 }
}

@keyframes tarotRevealSweep {
 0% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(.62) rotate(-20deg);
 filter: blur(7px);
 }
 34% {
 opacity: .92;
 transform: translate(-50%, -50%) scale(1.02) rotate(8deg);
 filter: blur(.2px);
 }
 68% {
 opacity: .62;
 transform: translate(-50%, -50%) scale(1.14) rotate(20deg);
 }
 100% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(1.34) rotate(32deg);
 filter: blur(6px);
 }
}

@keyframes tarotCaptionReveal {
 0% {
 opacity: 0;
 transform: translateY(10px) scale(.94);
 filter: blur(3px);
 }
 54% {
 opacity: 1;
 transform: translateY(-2px) scale(1.035);
 filter: blur(0);
 }
 100% {
 opacity: 1;
 transform: translateY(0) scale(1);
 filter: blur(0);
 }
}

@keyframes tarotRevealAura {
 0% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(.6) rotate(-18deg);
 filter: blur(5px);
 }
 34% {
 opacity: .85;
 transform: translate(-50%, -50%) scale(1.02) rotate(0deg);
 filter: blur(0);
 }
 100% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(1.35) rotate(16deg);
 filter: blur(6px);
 }
}

@keyframes tarotTableAwake {
 0% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(.72) rotate(-8deg);
 filter: blur(10px);
 }
 28% {
 opacity: .88;
 transform: translate(-50%, -50%) scale(1.04) rotate(0deg);
 filter: blur(1px);
 }
 100% {
 opacity: 0;
 transform: translate(-50%, -50%) scale(1.26) rotate(10deg);
 filter: blur(10px);
 }
}

@keyframes tarotProgressPulse {
 0%,
 100% {
 filter: brightness(1);
 transform: scale(1);
 }
 50% {
 filter: brightness(1.2);
 transform: scale(1.12);
 }
}

@keyframes tarotConstellationAwake {
 0% {
 opacity: 0;
 transform: scale(.9) rotate(-4deg);
 filter: blur(6px);
 }
 42% {
 opacity: .86;
 transform: scale(1.035) rotate(1deg);
 filter: blur(.3px);
 }
 100% {
 opacity: .72;
 transform: scale(1) rotate(0deg);
 filter: blur(.2px);
 }
}

@keyframes tarotRevealCue {
 0%,
 100% {
 opacity: .18;
 }
 50% {
 opacity: .42;
 }
}

@keyframes tarotCaptionSettle {
 0% {
 opacity: 0;
 transform: translateY(6px);
 }
 100% {
 opacity: 1;
 transform: translateY(0);
 }
}

@keyframes tarotPickedTokenIn {
 0% {
 opacity: 0;
 transform: rotate(var(--picked-r, 0deg)) translateY(9px) scale(.82);
 }
 62% {
 opacity: 1;
 transform: rotate(var(--picked-r, 0deg)) translateY(-4px) scale(1.06);
 }
 100% {
 opacity: 1;
 transform: rotate(var(--picked-r, 0deg)) translateY(-1px) scale(1);
 }
}

@keyframes readingOrbitTurn {
 to {
 transform: rotate(360deg);
 }
}

@keyframes readingAuraIn {
 0% {
 opacity: 0;
 transform: scaleX(.68);
 }
 100% {
 opacity: 1;
 transform: scaleX(1);
 }
}

@keyframes readingResultSweep {
 0% {
 opacity: 0;
 transform: translateX(-42%) skewX(-8deg);
 filter: blur(5px);
 }
 32% {
 opacity: .88;
 filter: blur(.3px);
 }
 100% {
 opacity: 0;
 transform: translateX(42%) skewX(-8deg);
 filter: blur(5px);
 }
}

@keyframes readingResultAura {
 0% {
 opacity: 0;
 transform: translateX(-50%) scale(.74);
 filter: blur(10px);
 }
 42% {
 opacity: .92;
 transform: translateX(-50%) scale(1.06);
 filter: blur(2px);
 }
 100% {
 opacity: 0;
 transform: translateX(-50%) scale(1.28);
 filter: blur(12px);
 }
}

@keyframes readingFinalIn {
 0% {
 opacity: 0;
 transform: translateY(14px);
 filter: blur(3px) brightness(.82);
 }
 100% {
 opacity: 1;
 transform: translateY(0);
 filter: blur(0) brightness(1);
 }
}

@keyframes readingTextRise {
 0% {
 opacity: 0;
 transform: translateY(8px);
 }
 100% {
 opacity: 1;
 transform: translateY(0);
 }
}

@keyframes readingTokenIn {
 0% {
 opacity: 0;
 transform: translateY(10px) scale(.94);
 }
 100% {
 opacity: 1;
 transform: translateY(0) scale(1);
 }
}

@keyframes readingCardThumbSheen {
 0% {
 opacity: .18;
 transform: translateX(-18%);
 filter: brightness(.9);
 }
 36% {
 opacity: .92;
 filter: brightness(1.28);
 }
 100% {
 opacity: .72;
 transform: translateX(0);
 filter: brightness(1);
 }
}

@keyframes readingCardResultIn {
 0% {
 opacity: 0;
 transform: translateY(14px) scale(.92);
 filter: blur(3px) brightness(.78);
 }
 58% {
 opacity: 1;
 transform: translateY(-3px) scale(1.035);
 filter: blur(0) brightness(1.12);
 }
 100% {
 opacity: 1;
 transform: translateY(0) scale(1);
 filter: blur(0) brightness(1);
 }
}

@keyframes readingRitualPulse {
 0%,
 100% {
 opacity: .76;
 transform: scale(.88);
 }
 50% {
 opacity: 1;
 transform: scale(1.08);
 }
}

@keyframes readingRitualGate {
 0%,
 100% {
 opacity: .44;
 transform: scale(.88) rotate(-8deg);
 filter: blur(.4px);
 }
 50% {
 opacity: .9;
 transform: scale(1.04) rotate(8deg);
 filter: blur(0);
 }
}

@keyframes readingRitualCardDraw {
 0%,
 100% {
 transform:
 rotate(var(--ritual-angle, 0deg))
 translateY(-82px)
 rotate(var(--ritual-counter-angle, 0deg))
 translate(-50%, -50%)
 scale(.98);
 filter: brightness(.96) saturate(1);
 }
 50% {
 transform:
 rotate(var(--ritual-angle, 0deg))
 translateY(-68px)
 rotate(var(--ritual-counter-angle, 0deg))
 translate(-50%, -50%)
 scale(1.06);
 filter: brightness(1.2) saturate(1.08);
 }
}

@keyframes readingRitualCardOrbitUpright {
 0% {
 transform:
 rotate(var(--ritual-angle, 0deg))
 translateY(-82px)
 rotate(var(--ritual-counter-angle, 0deg))
 translate(-50%, -50%);
 filter: brightness(.98) saturate(1);
 }
 50% {
 transform:
 rotate(calc(var(--ritual-angle, 0deg) + 180deg))
 translateY(-82px)
 rotate(calc(var(--ritual-counter-angle, 0deg) - 180deg))
 translate(-50%, -50%);
 filter: brightness(1.1) saturate(1.04);
 }
 100% {
 transform:
 rotate(calc(var(--ritual-angle, 0deg) + 360deg))
 translateY(-82px)
 rotate(calc(var(--ritual-counter-angle, 0deg) - 360deg))
 translate(-50%, -50%);
 filter: brightness(.98) saturate(1);
 }
}

@keyframes readingRitualCardSheen {
 0%,
 28% {
 opacity: 0;
 transform: translateX(-72%) rotate(8deg);
 }
 48% {
 opacity: .78;
 }
 70%,
 100% {
 opacity: 0;
 transform: translateX(72%) rotate(8deg);
 }
}

@keyframes readingRitualCoreRing {
 0%,
 100% {
 transform: scale(.82) rotate(-10deg);
 opacity: .28;
 }
 50% {
 transform: scale(1.12) rotate(10deg);
 opacity: .84;
 }
}

@keyframes readingRitualStep {
 0%,
 100% {
 color: var(--muted);
 }
 50% {
 color: var(--accent-2);
 }
}

@keyframes saveButtonPulse {
 0%,
 100% {
 filter: brightness(1);
 }
 50% {
 filter: brightness(1.12);
 }
}

@keyframes savedSealPulse {
 0% {
 opacity: 0;
 transform: scale(.94);
 }
 32% {
 opacity: .88;
 transform: scale(1.05);
 }
 100% {
 opacity: 0;
 transform: scale(1.16);
 }
}

@keyframes savedItemArchiveGlow {
 0% {
 opacity: 0;
 transform: translateX(-10px);
 filter: blur(5px);
 }
 38% {
 opacity: 1;
 transform: translateX(0);
 filter: blur(.3px);
 }
 100% {
 opacity: .36;
 transform: translateX(0);
 filter: blur(0);
 }
}

@keyframes savedMiniCardFresh {
 0% {
 opacity: 0;
 transform: translateY(12px) rotate(calc(var(--saved-r, 0deg) - 5deg)) scale(.82);
 filter: blur(2px) brightness(.8);
 }
 58% {
 opacity: 1;
 transform: translateY(-6px) rotate(var(--saved-r, 0deg)) scale(1.08);
 filter: blur(0) brightness(1.18);
 }
 100% {
 opacity: 1;
 transform: translateY(calc((var(--saved-i, 0) % 2) * -3px)) rotate(var(--saved-r, 0deg)) scale(1);
 filter: blur(0) brightness(1);
 }
}

@keyframes savedSealSettle {
 0% {
 opacity: 0;
 transform: translateY(6px) scale(.96);
 }
 100% {
 opacity: 1;
 transform: translateY(0) scale(1);
 }
}

@keyframes tarotDrawGatePulse {
 0%,
 100% {
 opacity: .56;
 transform: scaleX(.94);
 }
 50% {
 opacity: 1;
 transform: scaleX(1.05);
 }
}

@keyframes tarotDrawGateNeedle {
 0%,
 100% {
 opacity: .58;
 transform: translateX(-50%) translateY(0) rotate(45deg);
 }
 50% {
 opacity: 1;
 transform: translateX(-50%) translateY(-5px) rotate(45deg);
 }
}

@media (prefers-reduced-motion: reduce) {
 .tarot-shuffle-card,
 .tarot-recombine-pile,
 .tarot-back-card.is-centered:not(.is-picked)::after,
 .tarot-back-card.is-centered:not(.is-picked) .tarot-back-face,
 .tarot-canvas.tarot-stage-draw.is-waiting .tarot-back-card,
 .tarot-back-card.is-picked,
 .tarot-back-card.is-picked .tarot-back-face,
 .tarot-canvas.is-revealing-card::before,
 .tarot-progress-step.is-active i,
 .tarot-canvas.tarot-stage-cut .tarot-cut-pile,
 .tarot-canvas.tarot-stage-cut .cut-stack span,
 .tarot-canvas.tarot-stage-ready .card-spread::before,
 .tarot-canvas.is-receiving-card:not(.tarot-stage-ready) .card-spread::before,
 .tarot-canvas.is-reading-open .card-spread.is-spread-7::after,
 .tarot-slot.is-revealed .tarot-card-image::after,
 .tarot-slot.is-filled.is-facedown:not(:disabled) .tarot-card-image::before,
 .tarot-slot.is-fresh-deal::before,
 .tarot-slot.is-fresh-deal.is-facedown .tarot-card-image::after,
 .tarot-slot.is-fresh-reveal::after,
 .tarot-slot.is-fresh-reveal .tarot-card-image::before,
 .tarot-slot.is-filled.is-fresh-reveal .tarot-slot-caption,
 .tarot-slot.is-fresh-deal.is-facedown .tarot-card-image,
 .tarot-slot.is-revealed .tarot-card-image,
 .tarot-slot.is-filled .tarot-slot-caption,
 .tarot-picked-token,
 .reading-ritual,
 .reading-final,
 body[data-service="tarot"] .reading-copy.is-new-reading::after,
 body[data-service="tarot"] .reading-copy.is-new-reading .reading-final::before,
 .reading-final h3,
 .reading-final .reading-meta,
 .reading-final .reading-paragraphs p,
 .reading-card-token,
 body[data-service="tarot"] .reading-copy.is-new-reading .reading-card-thumb::before,
 body[data-service="tarot"] .reading-card-token,
 #makeReadingButton.is-loading::after,
 #saveReadingButton.is-saved::after,
 .topbar-link.has-new-saved::after,
 .saved-item.is-fresh-saved::before,
 .saved-item.is-fresh-saved .saved-mini-card,
 .saved-mini-card,
 #saveReadingButton.is-saving {
 animation: none;
 }

 .tarot-back-card,
 .tarot-card-image,
 .tarot-cut-pile {
 transition-duration: .01ms;
 }}

.tarot-slot:nth-child(1) { grid-column: 4; grid-row: 2; }
.tarot-slot:nth-child(2) { grid-column: 3; grid-row: 1; transform: rotate(-6deg); }
.tarot-slot:nth-child(3) { grid-column: 5; grid-row: 1; transform: rotate(6deg); }
.tarot-slot:nth-child(4) { grid-column: 2; grid-row: 2; transform: rotate(-9deg); }
.tarot-slot:nth-child(5) { grid-column: 6; grid-row: 2; transform: rotate(9deg); }
.tarot-slot:nth-child(6) { grid-column: 3; grid-row: 3; transform: rotate(5deg); }
.tarot-slot:nth-child(7) { grid-column: 5; grid-row: 3; transform: rotate(-5deg); }

.tarot-slot:nth-child(1) { --deal-x: 0px; --deal-y: 126px; --deal-r: -2deg; }
.tarot-slot:nth-child(2) { --deal-x: 64px; --deal-y: 118px; --deal-r: -10deg; }
.tarot-slot:nth-child(3) { --deal-x: -64px; --deal-y: 118px; --deal-r: 10deg; }
.tarot-slot:nth-child(4) { --deal-x: 118px; --deal-y: 86px; --deal-r: -14deg; }
.tarot-slot:nth-child(5) { --deal-x: -118px; --deal-y: 86px; --deal-r: 14deg; }
.tarot-slot:nth-child(6) { --deal-x: 76px; --deal-y: 132px; --deal-r: 8deg; }
.tarot-slot:nth-child(7) { --deal-x: -76px; --deal-y: 132px; --deal-r: -8deg; }

.card-spread.is-spread-1 {
 width: min(340px, 100%);
 min-height: 390px;
 grid-template-columns: minmax(0, 1fr);
 grid-template-rows: 378px;
}

.card-spread.is-spread-3 {
 width: min(560px, 100%);
 min-height: 350px;
 grid-template-columns: repeat(3, minmax(142px, 1fr));
 grid-template-rows: 320px;
}

.card-spread.is-spread-7 {
 width: min(730px, 100%);
 min-height: 548px;
 grid-template-columns: repeat(7, minmax(0, 1fr));
 grid-template-rows: repeat(3, minmax(162px, auto));
 grid-auto-rows: 162px;
 gap: 18px 6px;
}

.card-spread.is-spread-7::after {
 content: "";
 position: absolute;
 inset: 7% 9% 8%;
 z-index: -1;
 background:
 linear-gradient(26deg, transparent 0 31%, rgba(255, 231, 174, .18) 32%, transparent 34% 100%),
 linear-gradient(154deg, transparent 0 31%, rgba(255, 231, 174, .16) 32%, transparent 34% 100%),
 linear-gradient(90deg, transparent 0 16%, rgba(255, 231, 174, .16) 17%, transparent 18% 82%, rgba(255, 231, 174, .14) 83%, transparent 84% 100%),
 radial-gradient(ellipse at 50% 50%, rgba(255, 224, 154, .2), rgba(255, 224, 154, .04) 44%, transparent 70%);
 border-radius: 50%;
 opacity: .72;
 filter: blur(.2px);
 pointer-events: none;
}

.tarot-canvas.is-reading-open .card-spread.is-spread-7::after {
 animation: tarotConstellationAwake 1.16s cubic-bezier(.16, .78, .18, 1) both;
}

.card-spread.is-spread-1 .tarot-slot.is-filled .tarot-card-image,
.card-spread.is-spread-1 .tarot-slot-caption {
 width: min(206px, 100%);
}

.card-spread.is-spread-1 .tarot-slot.is-filled .tarot-card-image {
 box-shadow: 0 24px 42px rgba(0, 0, 0, .42), 0 0 34px rgba(255, 219, 143, .12);
}

.card-spread.is-spread-1 .tarot-slot.is-revealed .tarot-card-image {
 filter: saturate(1.08) brightness(1.06);
}

.card-spread.is-spread-3 .tarot-slot.is-filled .tarot-card-image,
.card-spread.is-spread-3 .tarot-slot-caption {
 width: min(146px, 100%);
}

.card-spread.is-spread-7 .tarot-slot.is-filled .tarot-card-image,
.card-spread.is-spread-7 .tarot-slot-caption {
 width: min(98px, 100%);
}

.card-spread.is-spread-1 .tarot-slot,
.card-spread.is-spread-3 .tarot-slot,
.card-spread.is-spread-7 .tarot-slot {
 grid-column: auto;
 grid-row: auto;
}

.card-spread.is-spread-3 .tarot-slot:nth-child(1) { transform: rotate(-4deg) translateY(12px); }
.card-spread.is-spread-3 .tarot-slot:nth-child(2) { transform: translateY(-10px); }
.card-spread.is-spread-3 .tarot-slot:nth-child(3) { transform: rotate(4deg) translateY(12px); }

.card-spread.is-spread-7 .tarot-slot:nth-child(1),
.card-spread.is-spread-7 .tarot-slot:nth-child(5) { transform: none; }
.card-spread.is-spread-7 .tarot-slot:nth-child(3),
.card-spread.is-spread-7 .tarot-slot:nth-child(7) { transform: none; }

.card-spread.is-spread-7 .tarot-slot:nth-child(1) {
 grid-column: 4;
 grid-row: 2;
 transform: translateY(-6px);
}

.card-spread.is-spread-7 .tarot-slot:nth-child(2) {
 grid-column: 3;
 grid-row: 1;
 transform: rotate(-5deg) translateY(6px);
}

.card-spread.is-spread-7 .tarot-slot:nth-child(3) {
 grid-column: 5;
 grid-row: 1;
 transform: rotate(5deg) translateY(6px);
}

.card-spread.is-spread-7 .tarot-slot:nth-child(4) {
 grid-column: 2;
 grid-row: 2;
 transform: rotate(-7deg);
}

.card-spread.is-spread-7 .tarot-slot:nth-child(5) {
 grid-column: 6;
 grid-row: 2;
 transform: rotate(7deg);
}

.card-spread.is-spread-7 .tarot-slot:nth-child(6) {
 grid-column: 3;
 grid-row: 3;
 transform: rotate(4deg) translateY(-4px);
}

.card-spread.is-spread-7 .tarot-slot:nth-child(7) {
 grid-column: 5;
 grid-row: 3;
 transform: rotate(-4deg) translateY(-4px);
}

.tarot-canvas.is-drawing .card-spread.is-spread-7 {
 margin-top: 18px;
}

.tarot-canvas.tarot-stage-draw .card-spread {
 min-height: 210px;
 align-items: end;
}

.tarot-canvas.tarot-stage-draw .card-spread.is-spread-1 {
 min-height: 300px;
 grid-template-rows: 292px;
}

.tarot-canvas.tarot-stage-draw .card-spread.is-spread-3 {
 min-height: 215px;
 grid-template-rows: 200px;
}

.tarot-canvas.tarot-stage-draw .card-spread.is-spread-7 {
 min-height: 220px;
 grid-template-columns: repeat(4, minmax(72px, 1fr));
 grid-auto-rows: 104px;
 gap: 6px 8px;
 align-items: start;
}

.tarot-canvas.tarot-stage-draw .card-spread.is-spread-7 .tarot-slot {
 min-height: 92px;
}

.tarot-canvas.tarot-stage-draw .card-spread.is-spread-7 .tarot-slot:not(.is-filled) {
 min-height: 36px;
 align-content: center;
}

.tarot-canvas.tarot-stage-draw .card-spread.is-spread-7 .tarot-slot.is-filled .tarot-card-image,
.tarot-canvas.tarot-stage-draw .card-spread.is-spread-7 .tarot-slot-caption {
 width: min(72px, 100%);
}

.tarot-canvas.tarot-stage-draw .tarot-deck-surface {
 margin-top: -8px;
}

.tarot-slot span{
 color: var(--accent);
 font-size: .74rem;
 font-weight: 950;
}

.tarot-slot span {
 max-width: 100%;
 overflow: hidden;
 color: var(--accent-2);
 font-size: .58rem;
 line-height: 1.12;
 text-overflow: ellipsis;
 text-shadow: 0 1px 5px rgba(0, 0, 0, .7);
 white-space: nowrap;
}

.tarot-slot strong{
 font-size: .94rem;
 line-height: 1.25;
 word-break: keep-all;
}

.tarot-slot strong {
 width: 100%;
 max-width: 100%;
 display: -webkit-box;
 overflow: hidden;
 color: var(--text);
 font-size: .82rem;
 line-height: 1.12;
 overflow-wrap: anywhere;
 text-shadow: 0 1px 7px rgba(0, 0, 0, .78);
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 2;
}

.tarot-slot small{
 color: var(--muted);
 font-size: .7rem;
 font-weight: 800;
 line-height: 1.35;
}

.tarot-slot small {
 width: 100%;
 max-width: 100%;
 display: -webkit-box;
 overflow: hidden;
 overflow-wrap: anywhere;
 font-size: .56rem;
 line-height: 1.18;
 text-shadow: 0 1px 6px rgba(0, 0, 0, .74);
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 2;
}

.tarot-orientation-label,
.tarot-english-label {
 display: inline;
}

.tarot-english-label::before {
 content: " · ";
}

.card-spread.is-spread-7 .tarot-slot strong {
 -webkit-line-clamp: 1;
}

.card-spread.is-spread-7 .tarot-english-label {
 display: none;
}

.card-spread.is-spread-7 .tarot-english-label::before {
 content: "";
}

@keyframes sajuWheelBreathe {
 0%, 100% { filter: brightness(.94); }
 50% { filter: brightness(1.08); }
}

@keyframes sajuMarkPulse {
 0%, 100% { opacity: .5; transform: scale(.96); }
 50% { opacity: .95; transform: scale(1.05); }
}

.option-card.is-active{
 border-color: color-mix(in srgb, var(--accent) 68%, white 32%);
 background:
 linear-gradient(160deg, color-mix(in srgb, var(--accent-deep) 56%, rgba(255, 255, 255, .12) 44%), rgba(255, 255, 255, .04)),
 rgba(0, 0, 0, .12);
}

.zone-button.is-active{
 border-color: color-mix(in srgb, var(--accent) 70%, white 30%);
 background: color-mix(in srgb, var(--accent-deep) 58%, rgba(255, 255, 255, .12) 42%);
}

.astro-map.is-empty:not(.is-ready) .astro-device-layer.is-plate,
.astro-map.is-empty:not(.is-ready) .astro-device-layer.is-orbit,
.astro-map.is-empty:not(.is-ready) .astro-device-layer.is-zodiac {
 opacity: .26;
 filter: blur(.5px) brightness(.78) saturate(.76);
}

@keyframes astroDeviceTurn {
 to { transform: rotate(360deg); }
}

@keyframes astroDeviceTurnReverse {
 to { transform: rotate(-360deg); }
}

@keyframes astroDevicePulse {
 0%, 100% { opacity: .18; transform: scale(.98); }
 50% { opacity: .44; transform: scale(1.02); }
}

@keyframes astroFocusPulse {
 0%, 100% { opacity: .34; transform: scale(.94); }
 50% { opacity: .82; transform: scale(1.06); }
}

.astro-choice.is-active{
 border-color: color-mix(in srgb, var(--accent) 68%, white 32%);
 background: color-mix(in srgb, var(--accent-deep) 58%, rgba(255, 255, 255, .13) 42%);
}

.result-panel {
 display: grid;
 grid-template-rows: auto minmax(120px, 1fr) minmax(0, 168px) auto auto;
 gap: 14px;
 height: 100%;
 overflow: hidden;
}

.result-panel.is-loading-result {
 grid-template-rows: minmax(0, 1fr);
}

.result-panel.is-loading-result .result-head,
.result-panel.is-loading-result .evidence-stack,
.result-panel.is-loading-result .system-status,
.result-panel.is-loading-result .result-actions {
 display: none;
}

.result-panel.is-symbol-result .result-head {
 display: none;
}

.result-head h2 {
 margin-top: 7px;
 font-size: 1.34rem;
}

.reading-copy {
 position: relative;
 isolation: isolate;
 overflow: hidden;
 padding: 2px 4px 2px 0;
 display: flex;
 flex-direction: column;
 min-height: 0;
}

/* 세로 스크롤 대신 카드형 페이지네이션 — 리딩 본문을 영역 높이에 맞춰 페이지로 나눈다. */
.reading-copy .card-pager {
 display: flex;
 flex-direction: column;
 flex: 1;
 min-height: 0;
}
.card-pager-viewport {
 flex: 1;
 min-height: 0;
 overflow: hidden;
}
.card-pager-viewport > .reading-final {
 display: flex;
 flex-direction: column;
 gap: 12px;
 height: 100%;
}
.card-pager-viewport > .reading-final > p {
 margin: 0; /* 페이지 간격은 gap이 담당 */
}
.rc-hidden {
 display: none !important;
}
.rc-fit-shrink {
 font-size: .86em;
 line-height: 1.5;
}
.card-pager-nav {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 14px;
 padding-top: 10px;
 flex: none;
}
.card-pager[data-pages="1"] .card-pager-nav {
 display: none;
}
.card-pager-arrow {
 width: 34px;
 height: 34px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 231, 174, .28);
 border-radius: 999px;
 background: transparent;
 color: var(--accent, #d7b46c);
 font-size: 1rem;
 cursor: pointer;
 transition: border-color .15s ease, color .15s ease;
}
.card-pager-arrow:hover:not(:disabled) {
 border-color: var(--accent, #d7b46c);
 color: var(--accent-2, #fff0bf);
}
.card-pager-arrow:disabled {
 opacity: .32;
 cursor: default;
}
.card-pager-dots {
 display: flex;
 align-items: center;
 gap: 7px;
}
.card-pager-dot {
 width: 7px;
 height: 7px;
 padding: 0;
 border: 0;
 border-radius: 50%;
 background: rgba(255, 231, 174, .26);
 cursor: pointer;
 transition: background .15s ease, transform .15s ease;
}
.card-pager-dot.is-active {
 background: var(--accent, #d7b46c);
 transform: scale(1.25);
}

body[data-service="tarot"] .reading-copy.is-loading-reading,
body[data-service="tarot"] .reading-copy.is-committed-reading,
body[data-service="tarot"] .reading-copy.is-restored-reading {
 overflow-x: hidden;
}

body[data-service="tarot"] .reading-copy.is-new-reading::after {
 content: "";
 position: absolute;
 inset: 0 -8px;
 z-index: 2;
 border-radius: 0;
 background:
 linear-gradient(104deg, transparent 0 28%, rgba(255, 244, 204, .2) 42%, rgba(255, 231, 174, .36) 50%, rgba(255, 244, 204, .16) 58%, transparent 72% 100%),
 radial-gradient(ellipse at 50% 18%, rgba(255, 227, 164, .2), rgba(255, 227, 164, 0) 62%);
 opacity: 0;
 pointer-events: none;
 transform: translateX(-36%) skewX(-8deg);
 animation: readingResultSweep 1.2s cubic-bezier(.16, .82, .18, 1) both;
}

body[data-service="tarot"] .reading-copy.is-committed-reading::before,
body[data-service="tarot"] .reading-copy.is-restored-reading::before {
 content: "";
 position: sticky;
 top: 0;
 z-index: -1;
 display: block;
 height: 1px;
 margin-bottom: -1px;
 background: radial-gradient(circle at 50% 0, rgba(255, 227, 164, .28), rgba(255, 227, 164, 0) 66%);
 filter: blur(14px);
 animation: readingAuraIn .9s ease both;
}

.reading-copy h3 {
 margin-bottom: 12px;
 color: var(--accent-2);
 font-size: 1.06rem;
}

.reading-copy p {
 color: var(--soft);
 font-size: .94rem;
 line-height: 1.64;
 word-break: keep-all;
}

.reading-copy .reading-meta {
 margin: -4px 0 12px;
 color: var(--muted);
 font-size: .72rem;
 font-weight: 850;
}

.reading-copy p + p {
 margin-top: 12px;
}

.reading-draft-state {
 display: grid;
 gap: 9px;
 align-content: start;
}

.reading-draft-kicker {
 width: fit-content;
 color: var(--muted);
 font-size: .68rem;
 font-weight: 950;
}

body[data-service="tarot"] .reading-draft-state h3 {
 margin-bottom: 0;
}

body[data-service="tarot"] .reading-draft-state p {
 color: color-mix(in srgb, var(--soft) 86%, transparent);
}

.reading-ritual {
 display: grid;
 align-content: center;
 gap: 12px;
 min-height: 188px;
 animation: readingFinalIn .56s ease both;
}

.oracluna-loading-state {
 min-height: 220px;
 justify-items: center;
 align-content: center;
 gap: 10px;
 text-align: center;
}

.oracluna-loading-gif {
 position: relative;
 display: block;
 width: clamp(86px, 14vw, 118px);
 aspect-ratio: 1;
 border-radius: 999px;
 background:
 radial-gradient(circle at 50% 50%, rgba(255, 233, 184, .95) 0 10%, rgba(255, 223, 156, .18) 12%, transparent 26%),
 radial-gradient(circle at 44% 38%, rgba(255, 251, 226, .8) 0 4%, transparent 5%),
 conic-gradient(from 24deg, transparent 0 22%, rgba(255, 224, 156, .62) 26%, transparent 32% 60%, rgba(255, 238, 194, .42) 65%, transparent 72% 100%);
 box-shadow:
  0 0 34px rgba(255, 219, 146, .18),
  inset 0 0 22px rgba(255, 238, 189, .08);
 animation: oraclunaLoaderDrift 4.8s cubic-bezier(.45, 0, .25, 1) infinite;
 overflow: hidden;
}

.oracluna-loading-gif::before,
.oracluna-loading-gif::after {
 content: "";
 position: absolute;
 inset: 13%;
 border-radius: inherit;
 pointer-events: none;
}

.oracluna-loading-gif::before {
 --loader-tilt: -18deg;
 --loader-stretch: 1.12;
 border: 1px solid rgba(255, 231, 176, .34);
 border-top-color: rgba(255, 246, 212, .82);
 border-right-color: rgba(255, 220, 148, .16);
 transform: rotate(var(--loader-tilt)) scaleX(var(--loader-stretch));
 animation: oraclunaLoaderOrbit 7.5s linear infinite;
}

.oracluna-loading-gif::after {
 --loader-tilt: 22deg;
 --loader-stretch: .92;
 inset: 7%;
 background:
  radial-gradient(circle at 50% 4%, rgba(255, 247, 211, .98) 0 3px, transparent 4px),
 radial-gradient(circle at 84% 66%, rgba(255, 227, 157, .7) 0 2px, transparent 3px);
 border: 1px solid rgba(255, 232, 178, .14);
 transform: rotate(var(--loader-tilt)) scaleX(var(--loader-stretch));
 animation: oraclunaLoaderOrbit 5.9s linear infinite reverse;
}

.reading-progress-percent {
 margin: 0;
 color: rgba(255, 242, 204, .86);
 font-weight: 920;
 line-height: 1;
 letter-spacing: 0;
 font-variant-numeric: tabular-nums;
}

.reading-progress-percent {
 font-size: clamp(1.36rem, 4.2vw, 2.05rem);
}

@keyframes oraclunaLoaderDrift {
 0%, 100% { transform: scale(1); filter: brightness(.96); }
 45% { transform: scale(1.035); filter: brightness(1.08); }
}

@keyframes oraclunaLoaderOrbit {
 to { transform: rotate(calc(var(--loader-tilt) + 360deg)) scaleX(var(--loader-stretch)); }
}

body[data-service="tarot"] .reading-final {
 position: relative;
 isolation: isolate;
 animation: readingFinalIn .7s cubic-bezier(.18, .8, .22, 1) both;
}

body[data-service="tarot"] .reading-copy.is-new-reading .reading-final::before {
 content: "";
 position: absolute;
 left: 50%;
 top: 12px;
 z-index: -1;
 width: min(330px, 96%);
 height: 120px;
 border-radius: 50%;
 background: radial-gradient(ellipse at center, rgba(255, 227, 164, .28), rgba(255, 227, 164, .06) 42%, transparent 70%);
 opacity: 0;
 pointer-events: none;
 transform: translateX(-50%) scale(.74);
 animation: readingResultAura .92s ease both;
}

body[data-service="tarot"] .reading-final h3,
body[data-service="tarot"] .reading-final .reading-meta,
body[data-service="tarot"] .reading-final .reading-paragraphs p {
 animation: readingTextRise .55s ease both;
}

body[data-service="tarot"] .reading-final .reading-meta { animation-delay: 70ms; }
body[data-service="tarot"] .reading-final .reading-paragraphs p:nth-child(1) { animation-delay: 140ms; }
body[data-service="tarot"] .reading-final .reading-paragraphs p:nth-child(2) { animation-delay: 210ms; }
body[data-service="tarot"] .reading-final .reading-paragraphs p:nth-child(3) { animation-delay: 280ms; }
body[data-service="tarot"] .reading-final .reading-paragraphs p:nth-child(4) { animation-delay: 350ms; }

.reading-quote {
 margin: 14px 0;
 padding: 8px 0 8px 14px;
 border-left: 3px solid var(--accent);
 color: var(--text);
 font-weight: 850;
 line-height: 1.62;
 word-break: keep-all;
}

.reading-card-strip {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
 gap: 8px;
 margin: 12px 0 14px;
}

.reading-card-token {
 min-width: 0;
 display: grid;
 grid-template-columns: 34px minmax(0, 1fr);
 gap: 8px;
 align-items: center;
 padding: 8px 0;
 border-bottom: 1px solid rgba(255, 231, 174, .12);
}

.reading-card-thumb {
 width: 34px;
 aspect-ratio: 2 / 3;
 border: 1px solid rgba(255, 231, 174, .32);
 border-radius: 5px;
 background-color: rgba(0, 0, 0, .22);
 background-position: center;
 background-size: cover;
}

.reading-card-token small,
.reading-card-token em {
 display: block;
 overflow: hidden;
 color: var(--muted);
 font-size: .64rem;
 font-style: normal;
 font-weight: 850;
 line-height: 1.25;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.reading-card-token strong {
 display: block;
 overflow: hidden;
 margin: 1px 0;
 color: var(--text);
 font-size: .82rem;
 line-height: 1.24;
 text-overflow: ellipsis;
 white-space: nowrap;
}

body[data-service="tarot"] .reading-card-strip {
 display: grid;
 grid-template-columns: 1fr;
 gap: 12px;
 overflow: visible;
 margin: 12px 0 18px;
 padding: 2px 0 8px;
}

body[data-service="tarot"] .reading-card-token {
 --result-tilt: 0deg;
 position: relative;
 min-height: 124px;
 grid-template-columns: 74px minmax(0, 1fr);
 gap: 14px;
 align-items: start;
 padding: 4px 0 12px;
 border-bottom-color: rgba(255, 231, 174, .14);
 animation: readingCardResultIn .62s cubic-bezier(.18, .8, .22, 1) both;
 animation-delay: calc(var(--result-i, 0) * 58ms + 70ms);
}

body[data-service="tarot"] .reading-card-token:nth-child(3n + 1),
body[data-service="tarot"] .reading-card-token:nth-child(3n + 2),
body[data-service="tarot"] .reading-card-token:nth-child(3n) {
 --result-tilt: 0deg;
}

body[data-service="tarot"] .reading-card-token::before {
 content: "";
 position: absolute;
 left: 37px;
 top: 54px;
 z-index: -1;
 width: 86px;
 aspect-ratio: 1 / 1;
 border-radius: 50%;
 background: radial-gradient(circle, rgba(255, 227, 164, .18), rgba(255, 227, 164, 0) 68%);
 opacity: .42;
 transform: translate(-50%, -50%);
 pointer-events: none;
}

body[data-service="tarot"] .reading-card-strip.is-count-7 {
 gap: 8px;
}

body[data-service="tarot"] .reading-card-strip.is-count-7 .reading-card-token {
 min-height: 102px;
 grid-template-columns: 58px minmax(0, 1fr);
}

body[data-service="tarot"] .reading-card-strip.is-count-7 .reading-card-thumb {
 width: 58px;
}

body[data-service="tarot"] .reading-card-thumb {
 position: relative;
 overflow: hidden;
 width: 74px;
 border-radius: 5px;
 transform: rotate(var(--result-tilt));
 transform-origin: center;
 box-shadow: 0 12px 24px rgba(0, 0, 0, .34), 0 0 20px rgba(255, 226, 156, .09);
}

body[data-service="tarot"] .reading-card-token.is-reversed .reading-card-thumb {
 transform: rotate(calc(var(--result-tilt) + 180deg));
}

body[data-service="tarot"] .reading-card-thumb::before {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: inherit;
 background:
 radial-gradient(circle at 50% 16%, rgba(255, 244, 204, .34), rgba(255, 244, 204, 0) 42%),
 linear-gradient(145deg, rgba(255, 255, 255, .16), transparent 40% 70%, rgba(0, 0, 0, .16));
 opacity: .72;
 pointer-events: none;
}

body[data-service="tarot"] .reading-copy.is-new-reading .reading-card-thumb::before {
 animation: readingCardThumbSheen .86s ease both;
 animation-delay: calc(var(--result-i, 0) * 66ms + 160ms);
}

body[data-service="tarot"] .reading-card-thumb::after {
 content: attr(data-card-index);
 position: absolute;
 right: -5px;
 bottom: -5px;
 min-width: 18px;
 height: 18px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 231, 174, .28);
 border-radius: 999px;
 background: rgba(7, 6, 8, .82);
 color: var(--accent-2);
 font-size: .54rem;
 font-weight: 950;
}

body[data-service="tarot"] .reading-card-body {
 min-width: 0;
 align-self: start;
 display: grid;
 gap: 3px;
 padding-top: 1px;
}

body[data-service="tarot"] .reading-card-body::before {
 display: none;
}

body[data-service="tarot"] .reading-card-token small,
body[data-service="tarot"] .reading-card-token em {
 font-size: .6rem;
 white-space: normal;
 overflow-wrap: anywhere;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
}

body[data-service="tarot"] .reading-card-token strong {
 font-size: .78rem;
 line-height: 1.18;
 white-space: normal;
 overflow-wrap: anywhere;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
}

body[data-service="tarot"] .reading-card-meaning {
 display: -webkit-box;
 margin-top: 6px;
 overflow: hidden;
 color: rgba(248, 238, 210, .76);
 font-size: .68rem;
 font-weight: 760;
 line-height: 1.42;
 overflow-wrap: anywhere;
 -webkit-line-clamp: 3;
 -webkit-box-orient: vertical;
}

body[data-service="tarot"] .reading-card-strip.is-count-7 .reading-card-meaning {
 margin-top: 3px;
 font-size: .62rem;
 line-height: 1.34;
 -webkit-line-clamp: 2;
}

.evidence-stack {
 min-height: 0;
 max-height: 168px;
 display: grid;
 gap: 8px;
 overflow: visible;
 padding: 0 2px 2px;
}

.evidence-stack:empty {
 display: none;
}

.visual-evidence-board {
 position: relative;
 min-height: 118px;
 display: grid;
 align-items: center;
 overflow: visible;
}

.visual-evidence-map {
 position: relative;
 min-height: 112px;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: clamp(6px, 1.1vw, 12px);
 padding: 12px 4px 22px;
 overflow: visible;
}

.visual-evidence-map::before {
 content: "";
 position: absolute;
 inset: 18px 6px 20px;
 border-top: 1px solid rgba(255, 231, 174, .12);
 border-bottom: 1px solid rgba(255, 231, 174, .06);
 opacity: .82;
 pointer-events: none;
}

.visual-evidence-node {
 position: relative;
 z-index: calc(12 + var(--evidence-i, 0));
 display: grid;
 place-items: center;
}

.visual-evidence-node summary {
 width: 48px;
 height: 64px;
 display: grid;
 place-items: center;
 padding: 0;
 border: 0;
 background: transparent;
 cursor: pointer;
 list-style: none;
 outline: 0;
}

.visual-evidence-node summary::-webkit-details-marker {
 display: none;
}

.visual-evidence-node summary:focus-visible .visual-evidence-symbol {
 outline: 1px solid rgba(255, 231, 174, .72);
 outline-offset: 5px;
}

.visual-evidence-symbol {
 position: relative;
 width: 44px;
 height: 44px;
 display: grid;
 place-items: center;
 color: var(--accent-2);
 filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .38));
 transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.visual-evidence-node:hover .visual-evidence-symbol,
.visual-evidence-node:focus-within .visual-evidence-symbol,
.visual-evidence-node[open] .visual-evidence-symbol {
 filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .46)) brightness(1.1);
 transform: translateY(-3px) scale(1.04);
}

.visual-evidence-popover {
 position: absolute;
 left: 50%;
 bottom: calc(100% + 8px);
 z-index: 40;
 width: min(230px, 74vw);
 padding: 10px 11px;
 border: 1px solid rgba(255, 231, 174, .2);
 border-radius: 8px;
 background: rgba(8, 7, 8, .94);
 box-shadow: 0 18px 34px rgba(0, 0, 0, .42);
 color: var(--text);
 opacity: 0;
 pointer-events: none;
 transform: translate(-50%, 6px);
 transition: opacity .16s ease, transform .16s ease;
}

.visual-evidence-node:hover .visual-evidence-popover,
.visual-evidence-node:focus-within .visual-evidence-popover,
.visual-evidence-node[open] .visual-evidence-popover {
 opacity: 1;
 transform: translate(-50%, 0);
}

.visual-evidence-popover strong,
.visual-evidence-popover span,
.visual-evidence-popover p {
 display: block;
}

.visual-evidence-popover strong {
 font-size: .82rem;
 line-height: 1.28;
}

.visual-evidence-popover span {
 margin-top: 4px;
 color: var(--accent);
 font-size: .66rem;
 font-weight: 900;
}

.visual-evidence-popover p {
 margin-top: 6px;
 color: var(--soft);
 font-size: .7rem;
 line-height: 1.38;
}

.reading-final.is-symbol-reading {
 height: 100%;
 min-height: 0;
 display: grid;
 align-content: start;
 gap: clamp(14px, 2.4vh, 24px);
 overflow: hidden;
 padding: 2px 2px 18px;
}
.reading-trait-row {
 border: 0;
 background: transparent;
 color: inherit;
 cursor: pointer;
}

.reading-main-symbol.is-static,
.reading-trait-row.is-static {
 cursor: default;
}

.result-symbol-art {
 background-image: var(--symbol-image);
 background-repeat: no-repeat;
 background-position: center;
 background-size: contain;
}

.result-symbol-art.is-main {
 width: 100%;
 height: 100%;
 filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .42)) drop-shadow(0 0 20px rgba(216, 174, 92, .16));
}

.reading-main-symbol:not(.is-static):hover .result-symbol-art.is-main{
 transform: translateY(-2px) scale(1.025);
 filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .46)) drop-shadow(0 0 28px rgba(255, 225, 156, .22));
}
.reading-trait-row:focus-visible,
.reading-detail-close:focus-visible {
 outline: 1px solid rgba(255, 231, 174, .72);
 outline-offset: 5px;
}

.reading-final.is-symbol-reading .visual-evidence-board {
 min-height: clamp(126px, 18vh, 178px);
}

.reading-final.is-symbol-reading .visual-evidence-map {
 min-height: clamp(118px, 17vh, 170px);
 padding-block: 8px 14px;
}

.visual-result-symbol {
 width: clamp(46px, 7.4vh, 66px);
 height: clamp(46px, 7.4vh, 66px);
 opacity: .9;
 filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .44));
}

.visual-evidence-node.is-harmony .visual-result-symbol {
 opacity: 1;
 transform: scale(1.08);
 filter: drop-shadow(0 15px 24px rgba(0, 0, 0, .46)) drop-shadow(0 0 16px rgba(255, 225, 156, .18));
}

.visual-evidence-node.is-tension .visual-result-symbol {
 opacity: .62;
 filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .42)) saturate(.78);
}

.reading-trait-list {
 display: grid;
 gap: 8px;
 width: min(100%, 620px);
 margin-inline: auto;
}

.reading-trait-row {
 min-height: 48px;
 display: grid;
 grid-template-columns: 42px minmax(0, 1fr) 28px;
 align-items: center;
 gap: 10px;
 padding: 6px 0;
 border-top: 1px solid rgba(255, 231, 174, .12);
 text-align: left;
}

.reading-trait-row.is-static {
 grid-template-columns: 42px minmax(0, 1fr);
}

.reading-trait-row:first-child {
 border-top-color: rgba(255, 231, 174, .18);
}

.reading-trait-row .result-symbol-art {
 width: 38px;
 height: 38px;
}

.reading-trait-row span {
 min-width: 0;
 color: rgba(255, 244, 215, .86);
 font-size: clamp(.86rem, 1.45vw, .98rem);
 font-weight: 760;
 line-height: 1.36;
 word-break: keep-all;
}

.reading-trait-row .ui-icon {
 width: 18px;
 height: 18px;
 color: rgba(255, 231, 174, .62);
}

.reading-trait-row.is-tension span,
.reading-trait-row.is-tension .result-symbol-art {
 opacity: .72;
}

.reading-final.is-palm-reading {
 align-content: stretch;
 gap: 0;
 padding-bottom: 0;
}

@keyframes palmSummaryAuraScale {
0%, 100% {
 opacity: .62;
 transform: scale(.98);
 }
 52% {
 opacity: .92;
 transform: scale(1.08);
 }
}

.reading-detail-body > .result-symbol-art.is-main {
 width: min(180px, 42vw);
 height: min(180px, 42vw);
 display: block;
 margin: 0 auto 18px;
}

.reading-detail-dialog {
 z-index: 80;
}

.reading-detail-panel {
 width: min(680px, calc(100vw - 34px));
 max-height: min(82dvh, 720px);
 min-height: 0;
 display: grid;
 grid-template-rows: auto minmax(0, 1fr);
 gap: 14px;
 overflow: hidden;
 border: 1px solid rgba(255, 231, 174, .18);
 border-radius: 14px;
 background: rgba(8, 7, 8, .9);
 box-shadow: 0 24px 60px rgba(0, 0, 0, .52);
}

.reading-detail-close {
 position: absolute;
 right: 14px;
 top: 14px;
 width: 34px;
 height: 34px;
 display: grid;
 place-items: center;
 border: 0;
 background: transparent;
 color: rgba(255, 240, 198, .78);
 cursor: pointer;
}

.reading-detail-close .ui-icon {
 width: 20px;
 height: 20px;
}

.reading-detail-title {
 margin: 4px 42px 2px 0;
 color: rgba(255, 244, 215, .96);
 font-size: clamp(1.18rem, 2.4vw, 1.7rem);
}

.reading-detail-body {
 min-height: 0;
 max-height: calc(82dvh - 110px);
 overflow-y: auto;
 overscroll-behavior: contain;
 -webkit-overflow-scrolling: touch;
 touch-action: pan-y;
 padding-right: 4px;
}

.reading-detail-body p {
 margin: 0 0 1em;
 color: rgba(255, 244, 215, .84);
 font-size: clamp(1rem, 2.2vw, 1.16rem);
 line-height: 1.8;
 word-break: keep-all;
}

.visual-card-symbol {
 width: 38px;
 height: 58px;
 border: 1px solid rgba(255, 231, 174, .36);
 border-radius: 5px;
 background-position: center;
 background-size: cover;
 box-shadow: 0 13px 22px rgba(0, 0, 0, .36);
}

.visual-card-symbol.is-reversed {
 transform: rotate(180deg);
}
.visual-source-symbol {
 width: 42px;
 height: 42px;
 border: 1px solid rgba(255, 231, 174, .26);
 border-radius: 50%;
 background:
 radial-gradient(circle at 50% 50%, rgba(255, 231, 174, .18), rgba(255, 231, 174, .02) 68%),
 rgba(255, 255, 255, .018);
}
.visual-source-symbol::after {
 content: "";
 position: absolute;
 inset: -7px;
 border: 1px solid rgba(255, 231, 174, .1);
 border-radius: inherit;
}
.visual-source-symbol b {
 font-size: .94rem;
 line-height: 1;
}

body[data-service="tarot"] .visual-evidence-map {
 align-items: flex-end;
}

body[data-service="tarot"] .visual-evidence-node {
 transform: rotate(calc(var(--evidence-angle, 0deg) * .08)) translateY(calc((var(--evidence-i, 0) % 2) * -5px));
}

body[data-service="tarot"] .visual-evidence-popover {
 transform: translate(-50%, 6px) rotate(calc(var(--evidence-angle, 0deg) * -.08));
}

body[data-service="tarot"] .visual-evidence-node:hover .visual-evidence-popover,
body[data-service="tarot"] .visual-evidence-node:focus-within .visual-evidence-popover,
body[data-service="tarot"] .visual-evidence-node[open] .visual-evidence-popover {
 transform: translate(-50%, 0) rotate(calc(var(--evidence-angle, 0deg) * -.08));
}

.visual-evidence-board.is-saju .visual-evidence-map,
.visual-evidence-board.is-astrology .visual-evidence-map,
.visual-evidence-board.is-palm .visual-evidence-map,
.visual-evidence-board.is-face .visual-evidence-map {
 isolation: isolate;
}

.visual-evidence-board.is-saju .visual-evidence-map {
 min-height: 146px;
 align-items: center;
 flex-wrap: wrap;
 gap: 4px clamp(8px, 1.8vw, 18px);
 padding-block: 14px 18px;
}

.visual-evidence-board.is-saju .visual-evidence-map::before {
 inset: 38px 18%;
 border: 1px solid rgba(255, 231, 174, .13);
 border-radius: 50%;
 box-shadow:
 inset 0 0 0 18px rgba(255, 231, 174, .018),
 inset 0 0 0 36px rgba(255, 231, 174, .01);
}

.visual-evidence-board.is-saju .visual-evidence-map::after {
 content: "";
 position: absolute;
 left: 50%;
 top: 54%;
 z-index: -1;
 width: 44px;
 height: 44px;
 border: 1px solid rgba(255, 231, 174, .12);
 border-radius: 50%;
 background:
 radial-gradient(circle at 50% 28%, rgba(255, 231, 174, .16) 0 5px, transparent 6px),
 linear-gradient(90deg, rgba(255, 231, 174, .08), transparent 52%);
 transform: translate(-50%, -50%);
 pointer-events: none;
}

.visual-evidence-board.is-saju .visual-evidence-node.is-pillar {
 flex: 0 0 38px;
 align-self: flex-start;
}

.visual-evidence-board.is-saju .visual-evidence-node.is-element {
 flex: 0 0 44px;
 align-self: flex-end;
 transform: translateY(4px);
}

.visual-evidence-board.is-saju .visual-evidence-node.is-element:nth-child(even) {
 transform: translateY(-2px);
}

.visual-evidence-board.is-astrology .visual-evidence-map {
 min-height: 156px;
 padding: 0;
}

.visual-evidence-board.is-astrology .visual-evidence-map::before {
 inset: 14px 17%;
 border: 1px solid rgba(202, 224, 255, .18);
 border-radius: 50%;
 box-shadow:
 inset 0 0 0 16px rgba(202, 224, 255, .024),
 inset 0 0 0 34px rgba(202, 224, 255, .014);
}

.visual-evidence-board.is-astrology .visual-evidence-map::after {
 content: "";
 position: absolute;
 left: 50%;
 top: 50%;
 z-index: -1;
 width: 42px;
 height: 42px;
 border-radius: 50%;
 background:
 radial-gradient(circle, rgba(255, 231, 174, .24) 0 5px, transparent 6px),
 radial-gradient(circle, rgba(202, 224, 255, .08), transparent 64%);
 transform: translate(-50%, -50%);
 pointer-events: none;
}

.visual-evidence-board.is-astrology .visual-evidence-node {
 position: absolute;
 left: 50%;
 top: 50%;
 transform: rotate(var(--evidence-angle, 0deg)) translateY(-58px) rotate(var(--evidence-counter-angle, 0deg));
}

.visual-evidence-board.is-astrology .visual-evidence-node.is-aspect {
 transform: rotate(var(--evidence-angle, 0deg)) translateY(-30px) rotate(var(--evidence-counter-angle, 0deg));
}

.visual-evidence-board.is-palm .visual-evidence-map {
 min-height: 136px;
 gap: 0;
 padding-block: 18px;
}

.visual-evidence-board.is-palm .visual-evidence-map::before {
 left: 50%;
 top: 50%;
 right: auto;
 bottom: auto;
 width: 118px;
 height: 132px;
 border: 1px solid rgba(255, 231, 174, .12);
 border-radius: 48% 48% 40% 42%;
 background:
 radial-gradient(ellipse at 50% 88%, rgba(255, 231, 174, .04), transparent 64%),
 linear-gradient(180deg, rgba(255, 231, 174, .025), transparent);
 transform: translate(-50%, -50%);
}

.visual-evidence-board.is-palm .visual-evidence-node {
 margin-inline: -8px;
 transform: translateY(0);
}

.visual-evidence-board.is-palm .visual-evidence-node:nth-child(2) {
 transform: translateY(-8px);
}

.visual-evidence-board.is-palm .visual-evidence-node:nth-child(3) {
 transform: translateY(8px);
}

.visual-evidence-board.is-palm .visual-evidence-node:nth-child(4) {
 transform: translateY(-3px);
}

.visual-evidence-board.is-face .visual-evidence-map {
 min-height: 142px;
 gap: 0;
 padding-block: 10px 18px;
}

.visual-evidence-board.is-face .visual-evidence-map::before {
 left: 50%;
 top: 50%;
 right: auto;
 bottom: auto;
 width: 96px;
 height: 122px;
 border: 1px solid rgba(255, 231, 174, .14);
 border-radius: 48% 48% 43% 43%;
 background:
 linear-gradient(180deg, transparent 0 34%, rgba(255, 231, 174, .1) 34% calc(34% + 1px), transparent calc(34% + 1px) 60%, rgba(255, 231, 174, .08) 60% calc(60% + 1px), transparent calc(60% + 1px)),
 radial-gradient(ellipse at 50% 72%, rgba(255, 231, 174, .04), transparent 58%);
 transform: translate(-50%, -50%);
}

.visual-evidence-board.is-face .visual-evidence-node {
 margin-inline: -4px;
 transform: translateY(-7px);
}

.visual-evidence-board.is-face .visual-evidence-node:nth-child(3n+2) {
 transform: translateY(0);
}

.visual-evidence-board.is-face .visual-evidence-node:nth-child(3n) {
 transform: translateY(7px);
}

.visual-evidence-board.is-saju .visual-evidence-map {
 min-height: 158px;
 display: grid;
 grid-template-columns: repeat(5, minmax(34px, 48px));
 grid-auto-rows: minmax(58px, auto);
 align-content: center;
 justify-content: center;
 gap: 2px clamp(6px, 1.2vw, 14px);
}

.visual-evidence-board.is-saju .visual-evidence-map::before {
 inset: auto;
 left: 50%;
 top: 62%;
 width: 154px;
 height: 72px;
 border: 1px solid rgba(255, 231, 174, .12);
 border-radius: 50%;
 box-shadow:
 inset 0 0 0 18px rgba(255, 231, 174, .018),
 inset 0 0 0 34px rgba(255, 231, 174, .01);
 transform: translate(-50%, -50%);
}

.visual-evidence-board.is-saju .visual-evidence-map::after {
 top: 62%;
}

.visual-evidence-board.is-saju .visual-evidence-node {
 transform: none !important;
}

.visual-evidence-board.is-saju .visual-evidence-node.is-pillar {
 grid-row: 1;
 align-self: end;
}

.visual-evidence-board.is-saju .visual-evidence-node.is-element {
 grid-row: 2;
 align-self: start;
}

.visual-evidence-board.is-astrology .visual-evidence-map {
 min-height: 166px;
}

.visual-evidence-board.is-astrology .visual-evidence-node {
 transform: rotate(var(--evidence-angle, 0deg)) translateY(-64px) rotate(var(--evidence-counter-angle, 0deg));
}

.visual-evidence-board.is-astrology .visual-evidence-node.is-aspect {
 z-index: 9;
 transform: rotate(calc(var(--evidence-angle, 0deg) * .72)) translateY(-7px) rotate(calc(var(--evidence-counter-angle, 0deg) * .72));
}

.visual-evidence-board.is-astrology .visual-evidence-node.is-aspect summary {
 width: 68px;
 height: 32px;
}

.visual-evidence-board.is-palm .visual-evidence-map {
 min-height: 152px;
 display: block;
}

.visual-evidence-board.is-palm .visual-evidence-map::before {
 width: 118px;
 height: 138px;
}

.visual-evidence-board.is-palm .visual-evidence-map::after {
 content: "";
 position: absolute;
 left: 50%;
 top: 28px;
 z-index: -1;
 width: 84px;
 height: 52px;
 border-radius: 46px 46px 20px 20px;
 background:
 linear-gradient(90deg, rgba(255, 231, 174, .12) 0 1px, transparent 1px 18px, rgba(255, 231, 174, .12) 18px 19px, transparent 19px 36px, rgba(255, 231, 174, .12) 36px 37px, transparent 37px 54px, rgba(255, 231, 174, .12) 54px 55px, transparent 55px),
 radial-gradient(ellipse at 50% 100%, rgba(255, 231, 174, .04), transparent 70%);
 transform: translateX(-50%);
 pointer-events: none;
}

.visual-evidence-board.is-palm .visual-evidence-node {
 position: absolute;
 left: 50%;
 top: 50%;
 margin: 0;
 transform: translate(-52%, -52%) rotate(-26deg) !important;
}

.visual-evidence-board.is-palm .visual-evidence-node:nth-child(2) {
 transform: translate(-36%, -78%) rotate(-8deg) !important;
}

.visual-evidence-board.is-palm .visual-evidence-node:nth-child(3) {
 transform: translate(-70%, -18%) rotate(12deg) !important;
}

.visual-evidence-board.is-palm .visual-evidence-node:nth-child(4) {
 transform: translate(-12%, -18%) rotate(26deg) !important;
}

.visual-evidence-board.is-face .visual-evidence-map {
 min-height: 152px;
 display: block;
}

.visual-evidence-board.is-face .visual-evidence-map::before {
 width: 104px;
 height: 130px;
}

.visual-evidence-board.is-face .visual-evidence-map::after {
 content: "";
 position: absolute;
 left: 50%;
 top: 50%;
 z-index: -1;
 width: 76px;
 height: 1px;
 background: rgba(255, 231, 174, .12);
 box-shadow: 0 -30px 0 rgba(255, 231, 174, .09), 0 30px 0 rgba(255, 231, 174, .08);
 transform: translate(-50%, -50%);
 pointer-events: none;
}

.visual-evidence-board.is-face .visual-evidence-node {
 position: absolute;
 left: 50%;
 top: 50%;
 margin: 0;
 transform: translate(-50%, -105%) !important;
}

.visual-evidence-board.is-face .visual-evidence-node:nth-child(2) {
 transform: translate(-86%, -50%) !important;
}

.visual-evidence-board.is-face .visual-evidence-node:nth-child(3) {
 transform: translate(-14%, -48%) !important;
}

.visual-evidence-board.is-face .visual-evidence-node:nth-child(4) {
 transform: translate(-50%, 8%) !important;
}

.visual-evidence-board.is-face .visual-evidence-node:nth-child(5) {
 transform: translate(-50%, 52%) !important;
}

.result-actions {
 display: grid;
 grid-template-columns: .9fr .8fr 1.1fr;
 gap: 8px;
}

.ghost-button,
.gold-button {
 min-height: 46px;
 padding: 0 14px;
}

.ghost-button {
 background: rgba(255, 255, 255, .052);
}

.gold-button {
 border-color: rgba(255, 239, 198, .28);
 color: var(--ink);
 background: linear-gradient(180deg, var(--accent-2), var(--accent));
 box-shadow: 0 14px 34px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .44);
}

.ghost-button:hover,
.gold-button:hover {
 filter: brightness(1.04);
}

#makeReadingButton.is-loading {
 position: relative;
 padding-right: 38px;
}

#makeReadingButton.is-loading::after {
 content: "";
 position: absolute;
 right: 14px;
 top: 50%;
 width: 14px;
 aspect-ratio: 1;
 border: 2px solid rgba(12, 10, 10, .28);
 border-top-color: rgba(12, 10, 10, .84);
 border-radius: 999px;
 transform: translateY(-50%);
 animation: readingOrbitTurn .72s linear infinite;
}

#saveReadingButton.is-saving {
 color: var(--accent-2);
 border-color: rgba(255, 231, 174, .22);
 animation: saveButtonPulse 1s ease-in-out infinite;
}

#saveReadingButton.is-saved {
 position: relative;
 color: var(--accent-2);
 border-color: transparent;
 background: transparent !important;
 box-shadow: none !important;
}

#saveReadingButton.is-saved::after {
 content: "";
 position: absolute;
 inset: -5px;
 border: 1px solid rgba(255, 231, 174, .22);
 border-radius: inherit;
 opacity: 0;
 pointer-events: none;
 animation: savedSealPulse .9s ease both;
}

.ghost-button:disabled,
.gold-button:disabled,
.topic-button:disabled{
 cursor: not-allowed;
 opacity: .52;
}

.reading-error-state {
 display: grid;
 gap: 10px;
 animation: readingFinalIn .45s ease both;
}

.reading-error-mark {
 width: 40px;
 height: 40px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 195, 160, .34);
 border-radius: 999px;
 color: #ffe0d0;
 font-size: .7rem;
 font-weight: 950;
 letter-spacing: 0;
 background: rgba(72, 30, 22, .18);
 box-shadow: 0 0 24px rgba(255, 142, 97, .12);
}

.reading-error-state h3 {
 margin-bottom: 0;
}

.reading-error {
 padding: 0;
 border: 0;
 border-radius: 0;
 background: transparent;
 color: #ffe0d0;
 line-height: 1.58;
 word-break: keep-all;
}

.reading-error-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
}

.reading-error-actions span {
 min-height: 24px;
 display: inline-flex;
 align-items: center;
 padding: 0 8px;
 border: 1px solid rgba(255, 231, 174, .14);
 border-radius: 999px;
 color: var(--muted);
 font-size: .64rem;
 font-weight: 900;
}

.reading-error-refresh {
 justify-self: start;
 min-height: 32px;
 padding-inline: 10px;
}

.system-status {
 display: grid;
 gap: 9px;
 padding-top: 12px;
 border-top: 1px solid rgba(255, 255, 255, .1);
}

.status-line {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 10px;
}

.status-line strong {
 color: var(--soft);
 font-size: .82rem;
 font-weight: 950;
}

.status-line button {
 min-height: 30px;
 padding: 0 9px;
 border: 1px solid rgba(255, 255, 255, .12);
 border-radius: 7px;
 background: rgba(255, 255, 255, .05);
 color: var(--accent-2);
 font-size: .72rem;
 font-weight: 900;
}

.status-chips {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
}

.status-chip {
 min-height: 24px;
 display: inline-flex;
 align-items: center;
 padding: 0 8px;
 border: 1px solid rgba(255, 255, 255, .12);
 border-radius: 999px;
 font-size: .68rem;
 font-weight: 950;
}

.status-chip.is-ok {
 color: #e6ffd3;
 background: rgba(54, 91, 54, .28);
 border-color: rgba(204, 255, 190, .18);
}

.status-chip.is-warn {
 color: #ffe2bf;
 background: rgba(105, 67, 32, .28);
 border-color: rgba(255, 218, 171, .2);
}

.system-status p {
 margin: 0;
 color: var(--muted);
 font-size: .74rem;
 line-height: 1.45;
 word-break: keep-all;
}

.setup-details {
 display: grid;
 gap: 6px;
 padding-top: 6px;
 border-top: 1px solid rgba(255, 255, 255, .08);
}

.setup-details summary {
 cursor: pointer;
 color: rgba(255, 231, 174, .72);
 font-size: .7rem;
 font-weight: 950;
 list-style-position: inside;
}

.setup-details p {
 display: flex;
 flex-wrap: wrap;
 gap: 5px;
}

.setup-details code {
 padding: 2px 5px;
 border: 1px solid rgba(255, 231, 174, .13);
 border-radius: 5px;
 color: var(--accent-2);
 background: rgba(0, 0, 0, .18);
 font-size: .68rem;
}

body[data-service="tarot"] .system-status {
 gap: 5px;
 padding-top: 8px;
 opacity: .72;
}

body[data-service="tarot"] .status-line strong {
 color: var(--muted);
 font-size: .7rem;
}

body[data-service="tarot"] .status-line button {
 min-height: 24px;
 padding-inline: 7px;
 font-size: .62rem;
}

body[data-service="tarot"] .status-chips {
 gap: 4px;
 max-height: 22px;
 overflow: hidden;
}

body[data-service="tarot"] .status-chip {
 min-height: 19px;
 padding-inline: 6px;
 font-size: .58rem;
}

body[data-service="tarot"] .system-status p {
 display: -webkit-box;
 overflow: hidden;
 font-size: .64rem;
 line-height: 1.25;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 1;
}

.saved-drawer {
 position: fixed;
 inset: 0;
 z-index: 20;
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
}

.saved-drawer[hidden] {
 display: none;
}

.saved-backdrop {
 border: 0;
 background: rgba(0, 0, 0, .44);
 cursor: pointer;
}

.saved-panel {
 min-height: 100vh;
 display: grid;
 grid-template-rows: auto minmax(0, 1fr);
 gap: 16px;
 padding: 22px;
 border-radius: 0;
 border-left: 1px solid rgba(255, 231, 174, .09);
 border-right: 0;
 border-top: 0;
 border-bottom: 0;
 background: rgba(13, 10, 14, .84);
 overflow: hidden;
}

.saved-head {
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 gap: 14px;
}

.saved-head h2 {
 margin-top: 7px;
 font-size: 1.72rem;
}

.saved-close {
 min-height: 38px;
 padding: 0 12px;
 border: 1px solid rgba(255, 255, 255, .13);
 border-radius: 8px;
 background: rgba(255, 255, 255, .055);
 color: var(--accent-2);
 font-weight: 900;
}

.saved-list {
 min-height: 0;
 display: grid;
 align-content: start;
 gap: 10px;
 overflow: auto;
 padding-right: 2px;
}

.saved-filter-bar {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 0 0 8px;
 border-bottom: 1px solid rgba(255, 231, 174, .08);
}

.saved-filter-action {
 position: relative;
 width: 42px;
 height: 42px;
 display: grid;
 place-items: center;
 border: 0;
 border-radius: 999px;
 background: transparent;
 color: rgba(255, 248, 234, .58);
 opacity: .58;
 cursor: pointer;
 transition: opacity .18s ease, transform .18s ease, color .18s ease, filter .18s ease;
}

.saved-filter-action img {
 width: 32px;
 height: 32px;
 object-fit: contain;
 display: block;
 filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .36));
}

.saved-filter-action .ui-icon {
 width: 24px;
 height: 24px;
}

.saved-filter-action .icon-badge {
 right: -2px;
 top: -2px;
 min-width: 18px;
 height: 18px;
 font-size: .58rem;
}

.saved-filter-action:hover,
.saved-filter-action:focus-visible,
.saved-filter-action.is-active {
 color: var(--accent-2);
 opacity: 1;
 transform: translateY(-1px);
 filter: drop-shadow(0 0 10px rgba(255, 231, 174, .18));
}

.saved-item {
 position: relative;
 isolation: isolate;
 display: grid;
 gap: 8px;
 padding: 2px 0 16px;
 border-bottom: 1px solid rgba(255, 231, 174, .1);
 background: transparent;
 animation: readingTokenIn .42s ease both;
}

.saved-item.is-fresh-saved::before {
 content: "";
 position: absolute;
 inset: -4px -2px 0 -12px;
 z-index: -1;
 border-left: 2px solid rgba(255, 231, 174, .36);
 background:
 linear-gradient(90deg, rgba(255, 231, 174, .12), rgba(255, 231, 174, 0) 58%),
 radial-gradient(ellipse at 24% 18%, rgba(255, 231, 174, .18), rgba(255, 231, 174, 0) 62%);
 opacity: 0;
 pointer-events: none;
 animation: savedItemArchiveGlow 1.18s ease both;
}

.saved-item.is-fresh-saved .saved-mini-card {
 animation-name: savedMiniCardFresh;
 animation-duration: .72s;
 animation-timing-function: cubic-bezier(.18, .8, .22, 1);
 animation-fill-mode: both;
 animation-delay: calc(var(--saved-i, 0) * 55ms + 120ms);
}

.saved-item:nth-child(2) { animation-delay: 60ms; }
.saved-item:nth-child(3) { animation-delay: 120ms; }
.saved-item:nth-child(4) { animation-delay: 180ms; }
.saved-item:nth-child(5) { animation-delay: 240ms; }

.saved-item strong,
.saved-item small,
.saved-item p {
 display: block;
}

.saved-item strong {
 color: var(--text);
 font-size: .94rem;
 line-height: 1.38;
}

.saved-item small {
 color: var(--muted);
 font-size: .68rem;
 line-height: 1.34;
}

.saved-item p {
 color: rgba(255, 248, 234, .72);
 font-size: .76rem;
 line-height: 1.5;
 word-break: keep-all;
 display: -webkit-box;
 overflow: hidden;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 2;
}

.saved-summary {
 display: none !important;
}

.saved-item:hover .saved-summary,
.saved-item:focus-within .saved-summary {
 display: -webkit-box !important;
 opacity: .86;
}

.saved-question {
 margin: 0;
 padding: 0;
 border: 0;
 color: var(--text);
 font-size: .94rem;
 font-weight: 900;
 line-height: 1.38;
 word-break: keep-all;
}

.saved-item-meta {
 margin-top: -3px;
 color: rgba(255, 248, 234, .54);
 font-size: .68rem;
 font-weight: 850;
 line-height: 1.34;
 word-break: keep-all;
}

.saved-card-mini-strip {
 display: flex;
 align-items: flex-end;
 gap: 2px;
 min-height: 64px;
 overflow: visible;
 padding: 5px 0 2px;
}

.saved-mini-card {
 position: relative;
 width: 42px;
 aspect-ratio: 2 / 3;
 flex: 0 0 auto;
 display: block;
 transform: translateY(calc((var(--saved-i, 0) % 2) * -3px)) rotate(var(--saved-r, 0deg));
 transform-origin: 50% 92%;
 filter: drop-shadow(0 9px 12px rgba(0, 0, 0, .28));
 animation: readingCardResultIn .46s ease both;
 animation-delay: calc(var(--saved-i, 0) * 45ms);
}

.saved-mini-card i {
 position: absolute;
 inset: 0;
 border: 1px solid rgba(255, 231, 174, .22);
 border-radius: 4px;
 background-color: rgba(0, 0, 0, .22);
 background-position: center;
 background-size: cover;
 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.saved-mini-card i::before {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: inherit;
 background:
 radial-gradient(circle at 50% 18%, rgba(255, 244, 204, .28), transparent 42%),
 linear-gradient(145deg, rgba(255, 255, 255, .14), transparent 40% 72%, rgba(0, 0, 0, .12));
 pointer-events: none;
}

.saved-mini-card.is-reversed i {
 transform: rotate(180deg);
}

.saved-mini-card b {
 position: absolute;
 right: -5px;
 bottom: -5px;
 min-width: 18px;
 height: 18px;
 display: grid;
 place-items: center;
 border: 1px solid rgba(255, 231, 174, .24);
 border-radius: 999px;
 background: rgba(7, 6, 8, .86);
 color: var(--accent-2);
 font-size: .52rem;
 font-weight: 950;
 line-height: 1;
}

.saved-item-actions {
 display: flex;
 align-items: center;
 justify-content: flex-start;
 flex-wrap: wrap;
 gap: 8px;
}

.saved-action {
 min-height: 34px;
 min-width: 34px;
 padding: 0;
 border: 0;
 border-radius: 999px;
 background: transparent;
 color: color-mix(in srgb, var(--soft) 76%, transparent);
 font-size: .72rem;
 font-weight: 900;
}

.saved-action.is-primary {
 color: rgba(255, 231, 174, .86);
 background: transparent;
}

.saved-action.is-primary:hover {
 color: var(--accent-2);
 background: transparent;
}

.saved-action.is-danger {
 color: var(--muted);
 border-color: transparent;
 background: transparent;
}

.saved-action.is-danger:hover {
 color: var(--text);
 border-color: transparent;
 background: transparent;
}

.saved-empty {
 min-height: 220px;
 display: grid;
 place-items: center;
 padding: 22px;
 color: var(--muted);
 font-weight: 900;
 text-align: center;
 line-height: 1.55;
 word-break: keep-all;
}

@media (min-width: 0px) {
 .studio,
 .result-panel {
 height: auto;
 min-height: auto;
 overflow: visible;
 }

 .result-panel {
 grid-template-columns: minmax(0, 1fr) 310px;
 grid-template-rows: auto minmax(0, 1fr) auto;
 }

 .result-head,
 .reading-copy {
 grid-column: 1;
 }

 .evidence-stack,
 .result-actions {
 grid-column: 2;
 }}

@media (min-width: 0px) {
 .app-shell {
 width: min(100% - 22px, 1500px);
 padding-top: 14px;
 }

 .topbar {
 align-items: center;
 }

 .topbar-actions {
 width: auto;
 justify-content: flex-end;
 gap: 8px;
 }

 .topbar-link,
 .topbar-status {
 flex: 0 0 auto;
 justify-content: center;
 }

 body[data-service="tarot"] .topbar {
 min-height: 0;
 gap: 8px;
 }

 body[data-service="tarot"] .topbar-actions {
 justify-content: flex-end;
 }

 body[data-service="tarot"] .topbar-link {
 flex: 0 0 auto;
 min-height: 34px;
 padding-inline: 10px;
 font-size: .76rem;
 }

 body[data-service="tarot"] .audio-toggle {
 min-width: 68px;
 padding-inline: 8px;
 }

 body[data-service="tarot"] .topbar-status {
 display: none;
 }

 body[data-service="tarot"] .tarot-progress {
 gap: 2px;
 padding-inline: 0;
 }

 body[data-service="tarot"] .tarot-progress::before,
 body[data-service="tarot"] .tarot-progress::after {
 left: 10px;
 right: 10px;
 }

 body[data-service="tarot"] .tarot-progress-step i {
 width: 16px;
 }

 body[data-service="tarot"] .tarot-progress-step b {
 font-size: .5rem;
 }

 h1 {
 font-size: 1.24rem;
 }

 h2 {
 font-size: 1.78rem;
 }
 .studio,
 .result-panel {
 padding: 14px;
 }
 .stage-split,
 .result-panel {
 grid-template-columns: 1fr;
 }

 body[data-service="tarot"] .studio {
 gap: 10px;
 }

 .visual-canvas{
 min-height: 360px;
 }

 .tarot-ritual,
 .tarot-deck-surface .tarot-step-copy {
 grid-template-columns: 1fr;
 }

 .tarot-question {
 grid-template-columns: 1fr;
 }

 .tarot-question small {
 grid-column: auto;
 }
 .tarot-deck-actions {
 justify-content: stretch;
 }
 .tarot-deck-actions > * {
 flex: 1 1 140px;
 }

 .tarot-arc-shell {
 min-height: 248px;
 }

 .tarot-back-card {
 width: 80px;
 }

 .tarot-deck-surface.is-compact {
 grid-template-columns: 1fr;
 }

 .card-spread,
 .card-spread.is-spread-1,
 .card-spread.is-spread-3,
 .card-spread.is-spread-7 {
 min-height: auto;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 grid-template-rows: auto;
 gap: 8px;
 }

 .tarot-slot,
 .tarot-slot:nth-child(1),
 .tarot-slot:nth-child(2),
 .tarot-slot:nth-child(3),
 .tarot-slot:nth-child(4),
 .tarot-slot:nth-child(5),
 .tarot-slot:nth-child(6),
 .tarot-slot:nth-child(7) {
 grid-column: auto;
 grid-row: auto;
 transform: none;
 }

 .card-spread.is-spread-3 .tarot-slot:nth-child(1),
 .card-spread.is-spread-3 .tarot-slot:nth-child(2),
 .card-spread.is-spread-3 .tarot-slot:nth-child(3),
 .card-spread.is-spread-7 .tarot-slot:nth-child(1),
 .card-spread.is-spread-7 .tarot-slot:nth-child(2),
 .card-spread.is-spread-7 .tarot-slot:nth-child(3),
 .card-spread.is-spread-7 .tarot-slot:nth-child(4),
 .card-spread.is-spread-7 .tarot-slot:nth-child(5),
 .card-spread.is-spread-7 .tarot-slot:nth-child(6),
 .card-spread.is-spread-7 .tarot-slot:nth-child(7) {
 grid-column: auto;
 grid-row: auto;
 transform: none;
 }

 .card-spread.is-spread-7::after {
 display: none;
 }

 .tarot-canvas.is-drawing .card-spread.is-spread-7 {
 margin-top: 0;
 }

 .card-spread.is-spread-1 {
 width: min(268px, 100%);
 grid-template-columns: minmax(0, 1fr);
 }

 .card-spread.is-spread-3 {
 width: min(358px, 100%);
 grid-template-columns: repeat(3, minmax(0, 1fr));
 }

 .card-spread.is-spread-7 {
 width: min(366px, 100%);
 grid-template-columns: repeat(6, minmax(0, 1fr));
 grid-auto-rows: 156px;
 gap: 8px 6px;
 }

 .card-spread.is-spread-7 .tarot-slot:nth-child(1) {
 grid-column: 2 / span 2;
 grid-row: 1;
 transform: rotate(-2deg) translateY(2px);
 }

 .card-spread.is-spread-7 .tarot-slot:nth-child(2) {
 grid-column: 4 / span 2;
 grid-row: 1;
 transform: rotate(2deg) translateY(2px);
 }

 .card-spread.is-spread-7 .tarot-slot:nth-child(3) {
 grid-column: 1 / span 2;
 grid-row: 2;
 transform: rotate(-3deg);
 }

 .card-spread.is-spread-7 .tarot-slot:nth-child(4) {
 grid-column: 3 / span 2;
 grid-row: 2;
 transform: translateY(-4px);
 }

 .card-spread.is-spread-7 .tarot-slot:nth-child(5) {
 grid-column: 5 / span 2;
 grid-row: 2;
 transform: rotate(3deg);
 }

 .card-spread.is-spread-7 .tarot-slot:nth-child(6) {
 grid-column: 2 / span 2;
 grid-row: 3;
 transform: rotate(2deg) translateY(-2px);
 }

 .card-spread.is-spread-7 .tarot-slot:nth-child(7) {
 grid-column: 4 / span 2;
 grid-row: 3;
 transform: rotate(-2deg) translateY(-2px);
 }

 .result-head,
 .reading-copy,
 .evidence-stack,
 .result-actions {
 grid-column: auto;
 }

 .result-actions {
 grid-template-columns: 1fr;
 }

 .saved-drawer {
 grid-template-columns: 1fr;
 }

 .saved-backdrop {
 display: none;
 }

 .saved-panel {
 min-height: 100vh;
 border-left: 0;
 }}

@media (min-width: 0px) {
 .topic-button{
 flex: 1 1 calc(50% - 8px);
 padding-inline: 8px;
 }
 .tarot-canvas{
 padding: 12px;
 }

 .tarot-cut-piles {
 gap: 8px;
 }

 .tarot-cut-pile {
 min-height: min(360px, 46vh);
 padding: 8px;
 }

 .cut-stack {
 width: min(30vw, 168px);
 }

 .tarot-arc-shell {
 min-height: 230px;
 }

 .tarot-back-card {
 width: 74px;
 }

 .tarot-table-state {
 left: 12px;
 top: 12px;
 padding: 7px 9px;
 }

 .tarot-slot {
 min-height: 170px;
 }

 .tarot-card-image,
 .tarot-slot.is-filled .tarot-card-image {
 width: min(92px, 100%);
 }

 .tarot-slot-caption {
 width: min(100px, 100%);
 }

 .card-spread.is-spread-1 .tarot-slot {
 min-height: 270px;
 }

.card-spread.is-spread-1 .tarot-slot.is-filled .tarot-card-image,
 .card-spread.is-spread-1 .tarot-slot-caption {
 width: min(172px, 100%);
 }

 .card-spread.is-spread-3 .tarot-slot {
 min-height: 190px;
 }

 .card-spread.is-spread-3 .tarot-slot.is-filled .tarot-card-image,
 .card-spread.is-spread-3 .tarot-slot-caption {
 width: min(106px, 100%);
 }

 .card-spread.is-spread-7 .tarot-slot {
 min-height: 152px;
 }

 .card-spread.is-spread-7 .tarot-slot.is-filled .tarot-card-image,
 .card-spread.is-spread-7 .tarot-slot-caption {
 width: min(84px, 100%);
 }

 .card-spread.is-spread-7 .tarot-slot small {
 display: none;
 }

 .tarot-slot-caption {
 gap: 0;
 }

 .tarot-slot span {
 font-size: .5rem;
 }

 .tarot-slot strong {
 font-size: .68rem;
 line-height: 1.08;
 -webkit-line-clamp: 1;
 }

 .tarot-slot small {
 margin-top: 1px;
 font-size: .5rem;
 line-height: 1.08;
 -webkit-line-clamp: 1;
 }

 .tarot-english-label {
 display: none;
 }

 .saved-panel {
 padding: 16px;
 }

 .saved-item-actions {
 grid-template-columns: 1fr;
 }}

@media (prefers-reduced-motion: reduce) {
 *,
 *::before,
 *::after {
 scroll-behavior: auto !important;
 transition-duration: .001ms !important;
 animation-duration: .001ms !important;
 animation-iteration-count: 1 !important;
 }}

[hidden] {
 display: none !important;
}

.category-home {
 min-height: 0;
 height: 100%;
 display: grid;
 align-content: center;
 gap: 28px;
 width: min(980px, 100%);
 margin-inline: auto;
 padding-block: clamp(32px, 8vh, 96px);
}

.category-home h1 {
 max-width: 10em;
 font-size: clamp(2.1rem, 5vw, 4.8rem);
 line-height: 1.02;
}

.category-grid {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 10px;
}

.category-card {
 min-height: 132px;
 display: grid;
 grid-template-columns: 48px minmax(0, 1fr);
 gap: 14px;
 align-items: end;
 padding: 16px;
 border: 1px solid rgba(255, 255, 255, .12);
 border-radius: 8px;
 background: rgba(255, 255, 255, .035);
 color: var(--text);
 text-align: left;
 transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.category-card:hover,
.category-card:focus-visible,
.category-card.is-active {
 border-color: color-mix(in srgb, var(--accent) 70%, white 30%);
 background: rgba(255, 231, 174, .07);
 transform: translateY(-1px);
}

.category-card strong,
.category-card small {
 display: block;
}

.category-card strong {
 font-size: 1.16rem;
}

.category-card small {
 margin-top: 7px;
 color: var(--muted);
 font-size: .82rem;
 line-height: 1.35;
}

.service-workspace {
 min-height: 0;
 height: 100%;
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 gap: 18px;
 align-content: start;
}

.service-workspace.is-minimal-workspace {
 grid-auto-rows: minmax(0, 1fr);
 align-content: stretch;
}

.service-workspace.has-result {
 grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
 align-items: start;
}

.service-workspace .studio,
.service-workspace .result-panel {
 min-height: 0;
 padding: 0;
}

.service-workspace .studio {
 display: grid;
 grid-template-rows: auto minmax(0, 1fr);
 gap: 14px;
}

.service-workspace.is-minimal-workspace .studio {
 grid-template-rows: minmax(0, 1fr);
 gap: 0;
}

.service-workspace.is-result-focus .studio,
.service-workspace.is-tarot-deck-theater .studio {
 grid-template-rows: minmax(0, 1fr);
 gap: 0;
}

.service-workspace.has-result.is-result-focus {
 grid-template-columns: minmax(320px, min(900px, 100%));
 justify-content: center;
}

.service-workspace.is-result-focus .studio {
 display: none;
}

.service-workspace.is-result-focus .result-panel {
 justify-self: center;
 width: min(900px, 100%);
}

body[data-tarot-view="deck-theater"] .app-shell {
 width: 100%;
}

body[data-tarot-view="deck-theater"] .scene-bg::after {
 opacity: 0;
}

/* 카드 선택 무대에서는 배경을 가라앉힌다 — 카드도 배경도 난색이라 그대로는 카드가 안 튄다.
   전환은 .scene-bg의 filter transition(.22s)이 그대로 받아 준다. 보면서 조절하는 값. */
body[data-tarot-view="deck-theater"] .scene-bg {
 filter: saturate(.68) brightness(.5) contrast(1.06);
}

body[data-tarot-view="deck-theater"] .topbar {
 width: min(1500px, calc(100% - 32px));
 margin-inline: auto;
}

.service-workspace.is-tarot-deck-theater {
 width: 100%;
 min-height: calc(100vh - 90px);
 margin-inline: 0;
}

.service-workspace.is-tarot-deck-theater .service-stage,
.service-workspace.is-tarot-deck-theater .tool-layout,
.service-workspace.is-tarot-deck-theater .stage-split {
 min-height: calc(100vh - 98px);
}

.service-workspace.is-tarot-deck-theater .tarot-canvas {
 min-height: calc(100vh - 98px);
 overflow: visible;
 padding-inline: 0;
}

.service-workspace.is-tarot-deck-theater .tarot-deck-surface {
 position: relative;
 display: block;
 min-height: calc(100vh - 98px);
 gap: 0;
}

/* 덱 극장에서도 선택 안내를 상단에 고정 노출한다(몷 보면 몇 장을 골라야 하는지 알 수 없음). */
.service-workspace.is-tarot-deck-theater .tarot-deck-surface .tarot-step-copy {
 position: sticky;
 top: 0;
 z-index: 20;
 padding: 10px 12px 12px;
 text-align: center;
 pointer-events: none;
 background: linear-gradient(180deg, rgba(9, 7, 12, .92) 0 62%, rgba(9, 7, 12, 0));
}

.service-workspace.is-tarot-deck-theater .tarot-deck-actions {
 position: absolute;
 left: 50%;
 bottom: clamp(14px, 3vh, 30px);
 z-index: 30;
 width: auto;
 max-width: calc(100vw - 32px);
 margin-inline: 0;
 justify-content: center;
 pointer-events: none;
 transform: translateX(-50%);
}

.service-workspace.is-tarot-deck-theater .tarot-deck-actions > button:not(:disabled) {
 pointer-events: auto;
}

body[data-tarot-view="deck-theater"] .tarot-deck-actions {
 pointer-events: none;
}

body[data-tarot-view="deck-theater"] .tarot-deck-actions > button:not(:disabled) {
 pointer-events: auto;
}

.service-workspace.is-tarot-deck-theater .tarot-arc-shell {
 width: 100%;
 min-height: calc(100vh - 98px);
 margin-inline: 0;
 overflow: hidden;
 clip-path: none;
}

.service-workspace.is-tarot-deck-theater .tarot-arc-shell::before {
 display: none;
}

.service-workspace.is-tarot-deck-theater .tarot-arc-shell::after {
 display: none;
}

.service-workspace.is-tarot-deck-theater .tarot-arc-stage::before {
 width: min(520px, 78vw);
}

.service-workspace .result-panel {
 height: auto;
 overflow: visible;
 grid-template-rows: auto auto auto auto;
 gap: 14px;
}

.result-panel.is-quiet-result .result-head {
 display: none;
}

.service-workspace .reading-copy {
 max-height: calc(100vh - 260px);
}

.service-workspace .result-actions {
 grid-template-columns: repeat(2, minmax(0, 1fr));
}

#makeReadingButton[hidden] {
 display: none !important;
}

.tarot-stage-actions {
 display: flex;
 justify-content: center;
 gap: 8px;
 flex-wrap: wrap;
 padding: 10px 0 2px;
}

.tarot-stage-actions .gold-button {
 min-width: min(260px, 100%);
}

.tarot-ready-actions {
 padding-top: 2px;
}

.tarot-ready-actions .gold-button,
.tarot-ready-actions .ghost-button {
 min-width: min(210px, 100%);
}

body[data-service="tarot"] .tarot-arc-shell {
 min-height: clamp(390px, 54vh, 540px);
}

body[data-service="tarot"] .tarot-back-card {
 width: clamp(132px, 13vw, 184px);
}

.astro-phase.is-active {
 border-bottom-color: rgba(255, 231, 174, .48);
 color: var(--accent-2);
 background: transparent;
}

.astro-phase.is-complete {
 color: color-mix(in srgb, var(--soft) 78%, transparent);
}

@keyframes palmSlotMaskFadeIn {
 from {
  opacity: 0;
  visibility: hidden;
 }

 1% {
  opacity: 0;
  visibility: visible;
 }

 to {
  opacity: 1;
  visibility: visible;
 }
}

@keyframes palmSlotOverlayFadeIn {
 from {
  opacity: 0;
  visibility: hidden;
 }

 1% {
  opacity: 0;
  visibility: visible;
 }

 to {
  opacity: .82;
  visibility: visible;
 }
}

@keyframes palmSlotLanding {
 0% {
 opacity: .98;
 transform: translateY(calc(var(--palm-upload-hit) * .42)) scale(.86);
 filter: blur(1.4px) brightness(.94);
 }
 48% {
 opacity: 1;
 filter: blur(.35px) brightness(1.03);
 }
 100% {
 opacity: 1;
 transform: translateY(0) scale(1);
 filter: none;
 }
}

@keyframes palmReadHalo {
0%, 100% {
  opacity: .58;
  transform: scale(.94);
 }

 50% {
  opacity: .96;
  transform: scale(1.08);
 }
}

.astro-point-row.is-active{
 color: var(--text);
 border-bottom-color: color-mix(in srgb, var(--accent) 62%, rgba(221, 241, 255, .2) 38%);
}

.astro-point-row.is-static {
 cursor: default;
}

@media (min-width: 0px) {
 .service-workspace.has-result{
 grid-template-columns: 1fr;
 }

 .service-workspace .reading-copy {
 max-height: none;
 }}

@media (min-width: 0px) {
 .category-home {
 min-height: calc(100vh - 126px);
 gap: 20px;
 padding-block: 24px;
 }

 .category-home h1 {
 max-width: 9em;
 font-size: 2.35rem;
 }

 .category-grid {
 grid-template-columns: 1fr;
 }

 .category-card {
 min-height: 94px;
 align-items: center;
 }

 body[data-service="tarot"] .tarot-arc-shell {
 min-height: 410px;
 }

 body[data-service="tarot"] .tarot-back-card {
 width: clamp(118px, 33vw, 136px);
 }}

@media (min-width: 0px) {
 .service-workspace.is-tarot-deck-theater {
 min-height: calc(100vh - 82px);
 }

 .service-workspace.is-tarot-deck-theater .service-stage,
 .service-workspace.is-tarot-deck-theater .tool-layout,
 .service-workspace.is-tarot-deck-theater .stage-split,
 .service-workspace.is-tarot-deck-theater .tarot-canvas {
 min-height: calc(100vh - 90px);
 }

 .service-workspace.is-tarot-deck-theater .tarot-arc-shell {
 min-height: calc(100vh - 90px);
 }}

.category-card.is-featured {
 min-height: 228px;
 grid-row: span 2;
 grid-template-columns: 1fr;
 align-content: end;
 gap: 18px;
 padding: clamp(20px, 3vw, 28px);
 border-color: rgba(255, 231, 174, .2);
 background:
 linear-gradient(180deg, rgba(255, 231, 174, .085), rgba(255, 255, 255, .025)),
 rgba(7, 6, 8, .12);
}

.category-card.is-featured strong {
 font-size: clamp(1.7rem, 2.8vw, 2.35rem);
 letter-spacing: 0;
}

.category-card.is-featured small {
 max-width: 19em;
 font-size: .94rem;
 line-height: 1.45;
}

.category-card.is-secondary {
 min-height: 108px;
 background: rgba(255, 255, 255, .028);
}

.category-card.is-secondary:not(:hover):not(:focus-visible):not(.is-active) {
 border-color: rgba(255, 255, 255, .09);
 color: color-mix(in srgb, var(--text) 88%, transparent);
}

.category-card.is-secondary:not(:hover):not(:focus-visible):not(.is-active) .category-icon,
.category-card.is-secondary:not(:hover):not(:focus-visible):not(.is-active) small {
 opacity: .76;
}

.category-card.is-archive {
 min-height: 76px;
 grid-column: 1 / -1;
 grid-template-columns: 42px minmax(0, 1fr);
 align-items: center;
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) {
 min-height: calc(100vh - 98px);
 gap: 8px;
}

body[data-service="tarot"]:not([data-tarot-view]) .app-shell {
 gap: 8px;
 padding-block: 14px 12px;
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .studio {
 gap: 8px;
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .studio-head {
 min-height: 42px;
 align-items: center;
 padding-bottom: 0;
 border-bottom: 0;
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .studio-title {
 display: flex;
 align-items: baseline;
 gap: 10px;
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .studio-title .eyebrow {
 font-size: .64rem;
 opacity: .78;
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .studio-title h2 {
 font-size: clamp(1.58rem, 3vw, 2.55rem);
 line-height: .96;
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .back-home {
 min-height: 32px;
 padding-inline: 11px;
 background: rgba(7, 6, 8, .16);
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .selection-count {
 min-width: auto;
 min-height: auto;
 display: flex;
 align-items: baseline;
 gap: 5px;
 padding: 0;
 border: 0;
 color: color-mix(in srgb, var(--soft) 72%, transparent);
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .selection-count strong {
 font-size: clamp(1.15rem, 2.7vw, 1.9rem);
 line-height: 1;
}

body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .selection-count span {
 font-size: .68rem;
}

body[data-service="tarot"] .tool-layout {
 gap: 8px;
}

body[data-service="tarot"] .stage-split,
body[data-service="tarot"] .visual-canvas {
 min-height: clamp(470px, calc(100vh - 192px), 720px);
}

body[data-service="tarot"] .tarot-canvas {
 align-content: center;
 padding: clamp(14px, 2.2vw, 28px);
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question {
 align-content: end;
 justify-items: center;
 padding-block: clamp(24px, 8vh, 76px) clamp(34px, 9vh, 88px);
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-ritual {
 width: min(720px, calc(100% - 32px));
 grid-template-columns: 1fr;
 align-items: center;
 justify-items: center;
 gap: 14px;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-question input {
 min-height: 52px;
 padding-inline: 0;
 border: 0;
 border-bottom: 1px solid rgba(255, 231, 174, .44);
 border-radius: 0;
 background: transparent;
 caret-color: var(--accent-2);
 font-size: clamp(1.02rem, 2vw, 1.36rem);
 text-align: center;
 transition: border-bottom-color .16s ease;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-question input:hover {
 border-bottom-color: rgba(255, 231, 174, .66);
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-question {
 width: 100%;
 grid-template-columns: 1fr;
 justify-items: center;
 gap: 8px;
 text-align: center;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-question small {
 grid-column: auto;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-shuffle .tarot-shuffle-bridge,
body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .tarot-cut,
body[data-service="tarot"] .tarot-canvas.tarot-stage-cutting .tarot-cut-recombine {
 min-height: clamp(560px, 72vh, 760px);
 align-content: center;
}

@media (min-width: 0px) {
 body[data-service="tarot"] .tarot-canvas.tarot-stage-shuffle .tarot-shuffle-bridge,
 body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .tarot-cut,
 body[data-service="tarot"] .tarot-canvas.tarot-stage-cutting .tarot-cut-recombine {
 min-height: min(560px, 68vh);
 }

 .tarot-shuffle-deck {
 width: 100%;
 height: min(520px, 62vh);
 }

 .tarot-shuffle-card {
 width: min(58vw, 232px);
 }

 .tarot-recombine-stage {
 width: 100%;
 height: min(500px, 60vh);
 }

 .tarot-recombine-pile {
 width: min(56vw, 232px);
 }}

body[data-service="tarot"] .service-workspace.is-result-focus .result-panel {
 width: min(780px, 100%);
}

body[data-service="tarot"] .service-workspace.is-final-result .system-status {
 display: none;
}

body[data-service="tarot"] .service-workspace.is-final-result .result-head {
 text-align: center;
}

body[data-service="tarot"] .service-workspace.is-final-result .reading-copy {
 max-height: calc(100vh - 222px);
 padding-right: 8px;
}

body[data-service="tarot"] .service-workspace.is-final-result .reading-card-token {
 min-height: 136px;
 grid-template-columns: 92px minmax(0, 1fr);
 gap: 16px;
 align-items: center;
}

body[data-service="tarot"] .service-workspace.is-final-result .reading-card-thumb {
 width: 88px;
 justify-self: center;
}

body[data-tarot-view="deck-theater"] .app-shell {
 width: 100%;
 padding-block: 0;
 gap: 0;
}

body[data-tarot-view="deck-theater"] {
 overflow-y: hidden;
}

body[data-tarot-view="deck-theater"] .topbar {
 display: none;
}

body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .service-stage,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tool-layout,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .stage-split,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-canvas {
 min-height: 100vh;
}

body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-canvas {
 height: 100vh;
 max-height: 100vh;
 overflow: hidden;
 padding-block: 0;
}

body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-deck-surface {
 min-height: 100vh;
 max-height: none;
}

body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-arc-shell {
 min-height: 100vh;
}

@media (min-width: 0px) {

 .category-card.is-featured {
 grid-column: 1 / -1;
 grid-row: auto;
 min-height: 190px;
 }}

@media (min-width: 0px) {

 .category-card.is-featured,
 .category-card.is-secondary,
 .category-card.is-archive {
 min-height: 96px;
 grid-column: auto;
 grid-template-columns: 50px minmax(0, 1fr);
 align-items: center;
 align-content: center;
 gap: 13px;
 padding: 14px;
 }

 .category-card.is-featured strong {
 font-size: 1.26rem;
 }

 .category-card.is-featured small {
 font-size: .82rem;
 }

 body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) {
 min-height: calc(100vh - 88px);
 }

 body[data-service="tarot"]:not([data-tarot-view]) .app-shell {
 padding-block: 6px 0;
 }

 body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .studio-head {
 min-height: 38px;
 gap: 9px;
 }

 body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .studio-title {
 display: grid;
 gap: 0;
 }

 body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .studio-title h2 {
 font-size: 1.36rem;
 }

 body[data-service="tarot"] .service-workspace:not(.is-result-focus):not(.is-tarot-deck-theater) .selection-count {
 display: none;
 }

 body[data-service="tarot"] .stage-split,
 body[data-service="tarot"] .visual-canvas {
 min-height: calc(100vh - 196px);
 }

 body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-ritual {
 grid-template-columns: 1fr;
 align-items: stretch;
 }

 body[data-service="tarot"] .service-workspace.is-result-focus .result-panel {
 width: 100%;
 }

 body[data-service="tarot"] .service-workspace.is-final-result .reading-copy {
 max-height: none;
 }

 body[data-service="tarot"] .service-workspace.is-final-result .reading-card-token {
 min-height: 116px;
 grid-template-columns: 76px minmax(0, 1fr);
 gap: 12px;
 }

 body[data-service="tarot"] .service-workspace.is-final-result .reading-card-thumb {
 width: 72px;
 }

 body[data-tarot-view="deck-theater"] .topbar {
 left: 10px;
 right: 10px;
 top: 10px;
 }

 body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-canvas {
 padding-block: 0;
 }}

/* Icon-first command controls. */
.visually-hidden {
 position: absolute !important;
 width: 1px !important;
 height: 1px !important;
 overflow: hidden !important;
 clip: rect(0 0 0 0) !important;
 white-space: nowrap !important;
 clip-path: inset(50%) !important;
}

.ui-icon {
 width: 1.08em;
 height: 1.08em;
 flex: 0 0 auto;
 fill: none;
 stroke: currentColor;
 stroke-width: 2;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.ui-icon.is-action-art {
 width: 1.62em;
 height: 1.62em;
 display: inline-block;
 background: var(--ui-icon-url) center / contain no-repeat;
 fill: initial;
 stroke: none;
 filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28));
}

.icon-button {
 position: relative;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
}

.icon-button.is-icon-only {
 width: 42px;
 min-width: 42px;
 padding-inline: 0;
}

.icon-button.is-icon-only .ui-icon {
 font-size: 1.04rem;
}

.icon-button.is-icon-only .ui-icon.is-action-art {
 width: 32px;
 height: 32px;
 font-size: inherit;
}

.primary-action .ui-icon.is-action-art {
 width: 30px;
 height: 30px;
 margin-left: -4px;
}

.icon-button .button-label {
 min-width: 0;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.icon-badge {
 position: absolute;
 right: -6px;
 top: -6px;
 min-width: 18px;
 height: 18px;
 display: grid;
 place-items: center;
 padding-inline: 5px;
 border: 1px solid rgba(255, 231, 174, .34);
 border-radius: 999px;
 background: rgba(7, 6, 8, .86);
 color: var(--accent-2);
 font-size: .58rem;
 font-weight: 950;
 line-height: 1;
}

.topbar-link.icon-button.is-icon-only,
.audio-toggle.icon-button.is-icon-only {
 flex: 0 0 40px;
 width: 40px;
 min-width: 40px;
 min-height: 40px;
 padding: 0;
}

.back-home.icon-button.is-icon-only,
.saved-close.icon-button.is-icon-only {
 width: 38px;
 min-width: 38px;
 min-height: 38px;
 padding: 0;
}

.ghost-button.icon-button.is-icon-only,
.gold-button.icon-button.is-icon-only {
 width: 46px;
 min-width: 46px;
 min-height: 46px;
 padding: 0;
}

.result-actions {
 grid-template-columns: repeat(3, minmax(46px, 54px));
 justify-content: center;
}
.tarot-deck-actions .icon-button.is-icon-only,
.tarot-stage-actions .icon-button.is-icon-only {
 flex: 0 0 46px;
}

.tarot-canvas-reset.icon-button.is-icon-only {
 width: 36px;
 min-width: 36px;
 min-height: 36px;
 padding: 0;
}

.status-icon-button {
 width: 30px;
 min-width: 30px;
 min-height: 28px;
 padding: 0;
}

.status-icon-button .ui-icon {
 font-size: .78rem;
}

.saved-item-actions {
 justify-content: flex-start;
}

.saved-action.icon-button.is-icon-only {
 width: 34px;
 min-width: 34px;
 min-height: 34px;
 padding: 0;
}

.saved-action.icon-button.is-icon-only .ui-icon {
 font-size: .82rem;
}

@media (min-width: 0px) {
 .topbar-actions {
 gap: 8px;
 }
 .tarot-deck-actions > .icon-button.is-icon-only {
 flex: 0 0 44px;
 }

 .result-actions {
 grid-template-columns: repeat(2, minmax(46px, 54px));
 }}

.category-symbol-card {
 --symbol-size: clamp(148px, 13.6vw, 198px);
 position: absolute;
 left: calc(var(--symbol-x) * 1%);
 top: calc(var(--symbol-y) * 1%);
 z-index: 2;
 width: var(--symbol-size);
 height: var(--symbol-size);
 min-height: 0;
 display: grid;
 grid-template-columns: 1fr;
 justify-items: center;
 align-content: center;
 gap: 7px;
 padding: 0;
 border: 0;
 border-radius: 0;
 background: transparent;
 box-shadow: none;
 color: color-mix(in srgb, var(--text) 88%, transparent);
 text-align: center;
 transform: translate(-50%, -50%);
 overflow: visible;
 transition: transform .18s ease, color .18s ease, filter .18s ease;
}

.category-card.category-symbol-card,
.category-card.category-symbol-card.is-featured,
.category-card.category-symbol-card.is-secondary {
 grid-template-columns: 1fr;
 align-items: center;
 align-content: center;
 min-height: 0;
 padding: 0;
 border: 0;
 background: transparent;
 box-shadow: none;
}

.category-symbol-card::before {
 display: none;
}

.category-symbol-card:hover,
.category-symbol-card:focus-visible,
.category-symbol-card.is-active {
 border: 0;
 background: transparent;
 box-shadow: none;
 color: var(--accent-2);
 filter: brightness(1.08);
 transform: translate(-50%, -50%) translateY(-3px);
}

.category-symbol-card.is-disabled,
.category-symbol-card.is-disabled:hover,
.category-symbol-card.is-disabled:focus-visible {
 color: color-mix(in srgb, var(--soft) 34%, transparent);
 cursor: default;
 filter: none;
 transform: translate(-50%, -50%);
}

.category-symbol-card.is-disabled .category-symbol-shell,
.category-symbol-card.is-disabled:hover .category-symbol-shell,
.category-symbol-card.is-disabled:focus-visible .category-symbol-shell {
 opacity: .34;
 transform: none;
 filter: blur(1.2px) saturate(.55) brightness(.68);
}

.category-symbol-card.is-disabled .category-symbol-art {
 filter: grayscale(.65) brightness(.62) blur(.8px) drop-shadow(0 8px 16px rgba(0, 0, 0, .18));
}

.category-symbol-card:hover::before,
.category-symbol-card:focus-visible::before,
.category-symbol-card.is-active::before {
 opacity: 1;
 transform: translate(-50%, -50%) scale(1);
}

.category-symbol-card:focus-visible {
 outline: 0;
}

.category-symbol-card:focus-visible .category-symbol-shell {
 outline: 1px solid rgba(255, 231, 174, .68);
 outline-offset: 7px;
}

.category-symbol-shell {
 width: var(--symbol-size);
 aspect-ratio: 1;
 display: grid;
 place-items: center;
 border: 0;
 border-radius: 0;
 background: transparent;
 box-shadow: none;
 overflow: visible;
 transition: transform .18s ease;
}

.category-symbol-card:hover .category-symbol-shell,
.category-symbol-card:focus-visible .category-symbol-shell,
.category-symbol-card.is-active .category-symbol-shell {
 transform: scale(1.045);
}

.category-symbol-card.is-symbol-example {
 --symbol-size: clamp(148px, 13.6vw, 198px);
 width: var(--symbol-size);
 height: var(--symbol-size);
 color: color-mix(in srgb, var(--text) 88%, transparent);
}

.category-symbol-card.is-symbol-example .category-symbol-shell {
 border: 0;
 background: transparent;
}

.category-symbol-art {
 width: 100%;
 height: 100%;
 display: block;
 object-fit: contain;
 overflow: visible;
 pointer-events: none;
 user-select: none;
 filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .3));
}

@media (min-width: 0px) {

 .category-card.category-symbol-card {
 --symbol-size: clamp(102px, 26vw, 132px);
 width: var(--symbol-size);
 height: var(--symbol-size);
 gap: 6px;
 grid-template-columns: 1fr;
 padding: 0;
 }

 .category-card.category-symbol-card.is-symbol-example {
 --symbol-size: clamp(102px, 26vw, 132px);
 width: var(--symbol-size);
 height: var(--symbol-size);
 }

 .category-symbol-card:hover::after,
 .category-symbol-card:focus-visible::after {
 font-size: .56rem;
 max-width: 8em;
 }}

.tarot-fate-button.icon-button.is-icon-only .ui-icon.is-action-art {
 width: 100%;
 height: 100%;
 filter: drop-shadow(0 7px 11px rgba(0, 0, 0, .48));
}

.tarot-canvas.tarot-stage-draw .tarot-arc-shell.has-picked .tarot-back-card:not(.is-picked):not(.is-centered) .tarot-back-face {
 filter: none;
}

.tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked {
 border-color: rgba(255, 231, 174, .34);
 box-shadow: 0 20px 28px rgba(0, 0, 0, .32);
 filter: none;
 transform: translate(-50%, calc(-50% - 44px)) rotate(var(--arc-angle, 0deg)) scale(var(--arc-scale, 1));
 animation: none;
}

.tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked:not(:disabled):hover {
 box-shadow: 0 22px 30px rgba(0, 0, 0, .34);
 filter: none;
 transform: translate(-50%, calc(-50% - 50px)) rotate(var(--arc-angle, 0deg)) scale(var(--arc-scale, 1));
}

.tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked::after,
.tarot-canvas.tarot-stage-draw .tarot-back-card.is-centered:not(.is-picked)::after {
 display: none;
}

.tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked .tarot-back-face {
 animation: none;
 filter: none;
 transform: none;
}

.tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked strong {
 box-shadow: none;
}

.tarot-canvas.tarot-stage-draw .tarot-back-card:disabled:not(.is-picked) {
 opacity: .5;
}

.tarot-slot.is-fresh-reveal .tarot-card-image {
 animation-duration: 3.35s;
 animation-timing-function: cubic-bezier(.2, .68, .12, 1);
}

.tarot-slot.is-fresh-reveal .tarot-card-image::before {
 animation-duration: 3.35s;
 animation-timing-function: cubic-bezier(.2, .68, .12, 1);
}

.tarot-slot.is-filled.is-fresh-reveal .tarot-slot-caption {
 animation-duration: 2.8s;
 animation-delay: calc(var(--slot-i, 0) * 80ms + 1050ms);
}

@media (min-width: 0px) {

 .tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked {
 transform: translate(-50%, calc(-50% - 34px)) rotate(var(--arc-angle, 0deg)) scale(var(--arc-scale, 1));
 }

 .tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked:not(:disabled):hover {
 transform: translate(-50%, calc(-50% - 38px)) rotate(var(--arc-angle, 0deg)) scale(var(--arc-scale, 1));
 }}

/* Tarot deck pivot hierarchy: the ring moves, individual cards keep their pose. */
.tarot-arc-shell {
 --deck-radius: 880px;
 --deck-center-y: -460px;
 --deck-rotation: 0deg;
 --deck-picked-offset: clamp(46px, 6vw, 78px);
}

.tarot-arc-shell.has-picked .tarot-back-card:not(.is-picked) .tarot-back-face,
.tarot-canvas.tarot-stage-draw .tarot-arc-shell.has-picked .tarot-back-card:not(.is-picked):not(.is-centered) .tarot-back-face {
 filter: none;
}

.tarot-arc-shell.is-grabbing .tarot-back-card,
.tarot-arc-shell.is-snapping .tarot-back-card {
 transition-duration: .16s;
}

.tarot-arc-stage {
 z-index: 2;
 overflow: visible;
}

.tarot-card-orbit.is-picked {
 z-index: 1200;
 transform: rotate(var(--card-angle)) translateY(calc(var(--deck-radius) + var(--deck-picked-offset)));
}

.tarot-card-orbit.is-flight-hidden {
 visibility: hidden;
}
.tarot-card-orbit .tarot-back-card.is-centered:not(.is-picked)::before,
.tarot-card-orbit .tarot-back-card.is-centered:not(.is-picked)::after{
 display: none;
}

.tarot-card-orbit .tarot-back-card:not(:disabled):hover,
.tarot-card-orbit .tarot-back-card:not(:disabled):active,
.tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked:not(:disabled):hover {
 transform: translate(-50%, -50%) scale(1.012);
 box-shadow: 0 23px 33px rgba(0, 0, 0, .38);
 filter: brightness(1.04);
}
.tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked {
 border-color: rgba(255, 231, 174, .42);
 box-shadow: 0 24px 34px rgba(0, 0, 0, .4);
 filter: none;
 transform: translate(-50%, -50%) scale(1.018);
 animation: none;
}

.tarot-card-orbit .tarot-back-card:disabled:not(.is-picked),
.tarot-canvas.tarot-stage-draw .tarot-back-card:disabled:not(.is-picked) {
 opacity: .5;
 cursor: default;
}
.tarot-card-orbit .tarot-back-card.is-centered:not(.is-picked) .tarot-back-face,
.tarot-canvas.tarot-stage-draw .tarot-back-card.is-picked .tarot-back-face {
 animation: none;
 filter: none;
 transform: none;
}

.tarot-flight-layer {
 position: fixed;
 inset: 0;
 z-index: 10000;
 pointer-events: none;
}

.tarot-flight-card {
 position: fixed;
 display: block;
 border: 1px solid rgba(255, 231, 174, .42);
 border-radius: 7px;
 background: url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
 box-shadow: 0 26px 42px rgba(0, 0, 0, .42), 0 0 30px rgba(255, 222, 149, .16);
 overflow: hidden;
 pointer-events: none;
 transform-origin: center;
 will-change: transform, opacity, filter;
}

.tarot-flight-card.is-result-flight {
 border: 0;
 background: transparent;
 box-shadow: 0 24px 36px rgba(0, 0, 0, .42);
}

.tarot-flight-card.is-result-flight .tarot-flight-face {
 background-position: center;
 background-size: cover;
}

.tarot-flight-card[hidden] {
 display: none;
}

.tarot-flight-face {
 position: absolute;
 inset: 0;
 border-radius: inherit;
 background: url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
}

body.is-tarot-result-flight-active [data-result-flight-target] {
 opacity: 0;
}

body.is-tarot-result-flight-active .reading-card-token {
 animation: none !important;
}

/* Tarot reveal flip: only this wrapper rotates on its own Y axis. */
.tarot-card-image,
.tarot-slot.is-filled .tarot-card-image,
.tarot-slot.is-revealed .tarot-card-image,
.tarot-slot.is-reversed .tarot-card-image,
.tarot-canvas.is-reading-open .tarot-slot.is-revealed .tarot-card-image {
 position: relative;
 overflow: visible;
 border: 0;
 background: transparent;
 box-shadow: none;
 transform: none;
 transform-style: preserve-3d;
 backface-visibility: visible;
 will-change: auto;
}

.tarot-card-image::before,
.tarot-card-image::after,
.tarot-slot.is-fresh-reveal .tarot-card-image::before,
.tarot-slot.is-fresh-reveal .tarot-card-image::after,
.tarot-slot.is-revealed .tarot-card-image::after,
.tarot-slot.is-filled.is-facedown:not(:disabled) .tarot-card-image::before {
 display: none !important;
 animation: none !important;
}

.tarot-flip-card {
 position: absolute;
 inset: 0;
 border-radius: 7px;
 transform: rotateY(0deg);
 transform-style: preserve-3d;
 transform-origin: 50% 50%;
 transition: transform 1.65s cubic-bezier(.2, .72, .12, 1);
 will-change: transform;
}

.tarot-slot.is-revealed .tarot-flip-card {
 transform: rotateY(180deg);
}

.tarot-slot.is-fresh-reveal .tarot-flip-card {
 animation: tarotSlotFlipOnce 1.65s cubic-bezier(.2, .72, .12, 1) both;
}

.tarot-card-face {
 position: absolute;
 inset: 0;
 overflow: hidden;
 border: 0;
 border-radius: 7px;
 background-color: transparent;
 background-clip: padding-box;
 clip-path: inset(0 round 7px);
 box-shadow: none;
 backface-visibility: hidden;
 -webkit-backface-visibility: hidden;
 transform-style: preserve-3d;
}

.tarot-card-back {
 background:
 linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 34% 68%, rgba(0, 0, 0, .16)),
 url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
}

.tarot-card-front {
 transform: rotateY(180deg);
}

.tarot-card-art {
 position: absolute;
 inset: 0;
 border-radius: inherit;
 background-position: center;
 background-size: cover;
 clip-path: inset(0 round 6px);
 transform: rotate(var(--card-art-rotate, 0deg));
 transform-origin: 50% 50%;
}

/* 역방향은 카드틀이 아니라 그림만 돈다. 카드 전체(.tarot-card-image)를 돌리던 옛 방식은
 아래쪽 transform:none 규칙에 이미 죽어 있어 지웠다. 회전은 여기 한 곳뿐이다. */
.tarot-slot.is-reversed {
 --card-art-rotate: 180deg;
}

.tarot-slot.is-filled.is-facedown:not(:disabled) .tarot-card-image {
 transition: filter .2s ease;
}

.tarot-slot.is-filled.is-facedown:not(:disabled):hover .tarot-card-image,
.tarot-slot.is-filled.is-facedown:not(:disabled):focus-visible .tarot-card-image,
.tarot-slot.is-filled.is-facedown:not(:disabled):active .tarot-card-image {
 filter: brightness(1.06) saturate(1.03);
 transform: none;
}

.tarot-slot.is-filled.is-facedown:not(:disabled):hover .tarot-card-face,
.tarot-slot.is-filled.is-facedown:not(:disabled):focus-visible .tarot-card-face {
 box-shadow: none;
}

.tarot-slot.is-fresh-deal.is-facedown .tarot-card-image,
.tarot-slot.is-fresh-reveal .tarot-card-image,
.tarot-slot.is-reversed.is-fresh-reveal .tarot-card-image {
 animation: none !important;
}

.service-stage.is-tarot-flight-landing .tarot-flip-card,
.service-stage.is-tarot-flight-landing .tarot-card-face,
.service-stage.is-tarot-flight-landing .tarot-card-art {
 animation: none !important;
 transition: none !important;
}

@keyframes tarotSlotFlipOnce {
 0% {
 transform: rotateY(0deg);
 }
 100% {
 transform: rotateY(180deg);
 }
}

@media (min-width: 0px) {
 .tarot-arc-shell {
 --deck-picked-offset: clamp(36px, 10vw, 58px);
 }}

/* 카드 휠: 화면 위쪽 바깥에 중심을 둔 가상의 원. table이 그 중심을 붙잡고 통째로 돌며
   (--wheel-turn), 카드는 rotate(각) translateY(반지름)로 호 위에 앉는다 — 각이 곧 기울기다.
   중심·반지름은 app.js의 layoutTarotWheel()이 무대 크기를 재서 내려준다. */
.tarot-arc-shell {
 min-height: clamp(430px, 62vh, 620px);
 overflow: hidden;
 cursor: grab;
 touch-action: none;
}

.tarot-arc-shell::before,
.tarot-arc-shell::after,
.tarot-arc-stage::before,
.tarot-arc-stage::after{
 display: none;
}

.tarot-arc-stage {
 position: absolute;
 inset: 0;
 z-index: 2;
 overflow: hidden;
 pointer-events: auto;
}

.tarot-deck-table {
 position: absolute;
 left: 50%;
 top: var(--wheel-center-y, -420px);
 width: 0;
 height: 0;
 pointer-events: none;
 transform: rotate(var(--wheel-turn, 0deg));
 transform-origin: 0 0;
 will-change: transform;
}

.tarot-card-node {
 --deck-card-width: clamp(88px, 23vw, 132px);
 position: absolute;
 left: 0;
 top: 0;
 z-index: var(--deck-z, 1);
 width: var(--deck-card-width);
 height: auto;
 pointer-events: none;
 transform:
 rotate(var(--wheel-angle, 0deg))
 translateY(calc(var(--wheel-radius, 420px) + var(--wheel-pick, 0px)))
 translate(-50%, -50%)
 scale(var(--wheel-scale, 1));
 transform-origin: 0 0;
 transition: transform .32s cubic-bezier(.18, .76, .18, 1), filter .18s ease;
}

.tarot-canvas.tarot-stage-draw.is-deck-entering .tarot-card-node:not(.is-picked) {
 /* 카드 하나의 등장은 펼침 길이의 1/4 — 폴백 숫자는 app.js 상수와 스모크가 대조한다. */
 animation: tarotWheelDeal calc(var(--deck-spread-duration, 3200ms) / 4) ease both;
 animation-delay: var(--deck-entry-delay, 0ms);
}

@keyframes tarotWheelDeal {
 from { opacity: 0; }
 to { opacity: 1; }
}

/* 선택 표시는 이것 하나 — 원 바깥쪽(화면 아래 호에서는 아래)으로 툭 튀어나온다.
   다시 누르면 제자리로 돌아간다(선택 취소). */
.tarot-card-node.is-picked {
 --wheel-pick: 26px;
 --wheel-scale: 1.03;
}

.tarot-card-node.is-flight-hidden {
 visibility: hidden;
}

.tarot-card-node .tarot-back-card,
.tarot-canvas.tarot-stage-draw .tarot-card-node .tarot-back-card {
 position: relative;
 left: auto;
 top: auto;
 z-index: auto;
 width: 100%;
 aspect-ratio: 2 / 3;
 opacity: 1;
 border: 0;
 background: transparent;
 overflow: hidden;
 transform: none;
 transform-origin: center;
 animation: none;
 pointer-events: auto;
 box-shadow: 0 22px 32px rgba(0, 0, 0, .36);
 transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}

.tarot-card-node .tarot-back-card::before,
.tarot-card-node .tarot-back-card::after,
.tarot-card-node .tarot-back-card.is-picked::after,
.tarot-card-node .tarot-back-card.is-centered:not(.is-picked)::before,
.tarot-card-node .tarot-back-card.is-centered:not(.is-picked)::after {
 display: none;
}

.tarot-card-node .tarot-back-card:not(:disabled):hover,
.tarot-card-node .tarot-back-card:not(:disabled):active,
.tarot-canvas.tarot-stage-draw .tarot-card-node .tarot-back-card.is-picked:not(:disabled):hover {
 transform: scale(1.012);
 box-shadow: 0 25px 36px rgba(0, 0, 0, .42);
 filter: brightness(1.035);
}

/* 선택해도 버튼 자체는 그대로다 — 윤곽·광·확대 없이, 노드의 튀어나옴만 남긴다. */
.tarot-card-node .tarot-back-card.is-picked,
.tarot-canvas.tarot-stage-draw .tarot-card-node .tarot-back-card.is-picked {
 border-color: transparent;
 box-shadow: 0 22px 32px rgba(0, 0, 0, .36);
 filter: none;
 transform: none;
 animation: none;
}

.tarot-card-node .tarot-back-card:disabled:not(.is-picked),
.tarot-canvas.tarot-stage-draw .tarot-card-node .tarot-back-card:disabled:not(.is-picked) {
 opacity: .52;
 cursor: default;
}

.tarot-card-node .tarot-back-face,
.tarot-card-node .tarot-back-card.is-picked .tarot-back-face,
.tarot-card-node .tarot-back-card.is-centered:not(.is-picked) .tarot-back-face,
.tarot-canvas.tarot-stage-draw .tarot-card-node .tarot-back-card.is-picked .tarot-back-face {
 inset: 0;
 border-radius: inherit;
 clip-path: inset(0 round 7px);
 animation: none;
 filter: none;
 transform: none;
}

/* 순번 배지도 접는다 — 선택 표시는 튀어나옴 하나면 충분하다. */
.tarot-card-node .tarot-back-card strong {
 display: none;
}

@media (min-width: 0px) {
 .tarot-arc-shell {
 min-height: min(560px, 66vh);
 }

 .tarot-card-node {
 --deck-card-width: clamp(96px, 26vw, 132px);
 width: var(--deck-card-width);
 }}

@media (prefers-reduced-motion: reduce) {
 .tarot-card-node,
 .tarot-card-node .tarot-back-card,
 .tarot-flip-card {
 animation: none !important;
 transition: none !important;
 }}

body[data-service="tarot"] .tarot-card-node .tarot-back-card,
body[data-service="tarot"] .tarot-canvas.tarot-stage-draw .tarot-card-node .tarot-back-card {
 border: 0 !important;
 outline: 0 !important;
 background: transparent !important;
 overflow: hidden !important;
 box-shadow: 0 22px 32px rgba(0, 0, 0, .36) !important;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-draw.is-deck-entering .tarot-card-node:not(.is-picked) .tarot-back-card {
 animation: none !important;
 box-shadow: 0 22px 32px rgba(0, 0, 0, .36) !important;
}

body[data-service="tarot"] .tarot-card-node .tarot-back-face,
body[data-service="tarot"] .tarot-card-node .tarot-back-card.is-picked .tarot-back-face,
body[data-service="tarot"] .tarot-card-node .tarot-back-card.is-centered:not(.is-picked) .tarot-back-face,
body[data-service="tarot"] .tarot-canvas.tarot-stage-draw .tarot-card-node .tarot-back-card.is-picked .tarot-back-face {
 inset: 0 !important;
 border: 0 !important;
 outline: 0 !important;
 box-shadow: none !important;
 border-radius: inherit !important;
 clip-path: inset(0 round 7px) !important;
}

body[data-service="tarot"] .tarot-shuffle-card,
body[data-service="tarot"] .tarot-recombine-pile span,
body[data-service="tarot"] .tarot-cut-pile,
body[data-service="tarot"] .tarot-cut-pile::before,
body[data-service="tarot"] .tarot-cut-pile strong,
body[data-service="tarot"] .cut-stack span,
body[data-service="tarot"] .tarot-deck-table::before,
body[data-service="tarot"] .tarot-flight-face,
body[data-service="tarot"] .tarot-card-back {
 border: 0 !important;
 outline: 0 !important;
 overflow: hidden !important;
}

body[data-service="tarot"] .tarot-shuffle-card,
body[data-service="tarot"] .tarot-recombine-pile span,
body[data-service="tarot"] .cut-stack span,
body[data-service="tarot"] .tarot-deck-table::before{
 box-shadow: 0 22px 32px rgba(0, 0, 0, .36) !important;
}

body[data-service="tarot"] .tarot-flight-face,
body[data-service="tarot"] .tarot-card-back {
 box-shadow: none !important;
}

body[data-service="tarot"] .tarot-shuffle-card::after,
body[data-service="tarot"] .tarot-recombine-pile::after,
body[data-service="tarot"] .tarot-recombine-pile span::after,
body[data-service="tarot"] .cut-stack span::after{
 border: 0 !important;
 display: none !important;
}

/* Global depth flattening: layout containers should not become extra panels. */
.glass-panel,
.studio,
.result-panel,
.service-stage,
.tool-layout,
.stage-split,
.visual-canvas,
.tarot-canvas,
.tarot-deck-surface,
.tarot-arc-shell,
.tarot-arc-stage{
 border: 0 !important;
 background: transparent !important;
 box-shadow: none !important;
 backdrop-filter: none !important;
 -webkit-backdrop-filter: none !important;
}

/* 평탄화 예외: 모달 패널은 뒤 콘텐츠 위에 뜨므로 배경 없이는 텍스트가 겹쳐 보인다. */
.saved-panel.glass-panel,
.app-dialog-panel.glass-panel {
 border: 1px solid rgba(255, 231, 174, .18) !important;
 background: rgba(8, 7, 8, .92) !important;
 box-shadow: 0 24px 60px rgba(0, 0, 0, .52) !important;
}

.glass-panel::before,
.glass-panel::after,
.visual-canvas::before,
.visual-canvas::after,
.tarot-canvas::before,
.tarot-canvas::after,
.tarot-deck-surface::before,
.tarot-deck-surface::after,
.tarot-arc-shell::before,
.tarot-arc-shell::after,
.tarot-arc-stage::before,
.tarot-arc-stage::after{
 border: 0 !important;
 background: transparent !important;
 box-shadow: none !important;
}

.system-status,
.setup-details{
 border-color: rgba(255, 255, 255, .08) !important;
}

.date-wheel-item.is-selected {
 color: var(--accent-2);
 font-weight: 950;
 transform: scale(1.05);
}

.date-wheel-field:not(.has-date) .date-wheel-item.is-selected {
 color: color-mix(in srgb, var(--accent-2) 58%, transparent);
}
.wm-star.is-active {
 background: var(--accent-2);
 box-shadow: 0 0 7px rgba(255, 231, 174, .7);
 transform: scale(1.25);
 outline: none;
}

.object-choice.is-active{
 color: var(--accent-2);
}

/* Action grammar: object first, icon tools second, one primary text action per step. */
.primary-action {
 min-height: 46px;
 padding-inline: 18px;
 border-radius: 999px;
 font-weight: 950;
 letter-spacing: 0;
}

.gold-button.primary-action {
 border-color: rgba(255, 239, 198, .32);
 color: var(--ink);
 background: linear-gradient(180deg, var(--accent-2), var(--accent));
 box-shadow: 0 10px 22px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .42);
}

.tool-action,
.ghost-button.tool-action,
.gold-button.tool-action,
label.tool-action {
 border-color: transparent !important;
 background: transparent !important;
 box-shadow: none !important;
 color: color-mix(in srgb, var(--soft) 78%, transparent);
}

.tool-action:hover,
.tool-action:focus-visible,
.ghost-button.tool-action:hover,
.ghost-button.tool-action:focus-visible,
label.tool-action:hover,
label.tool-action:focus-within {
 color: var(--accent-2);
 background: transparent !important;
 filter: brightness(1.12);
}

.tool-action:focus-visible,
label.tool-action:focus-within {
 outline: 1px solid rgba(255, 231, 174, .5);
 outline-offset: 3px;
}

.choice-control,
.topic-button.choice-control,
.mode-button.choice-control,
.chip-button.choice-control{
 min-height: 34px;
 min-width: 38px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 7px;
 padding-inline: 8px;
 border-color: rgba(255, 255, 255, .09);
 border-radius: 999px;
 background: transparent;
 box-shadow: none;
 color: color-mix(in srgb, var(--soft) 82%, transparent);
 font-weight: 850;
}

.choice-mark {
 min-width: 1.6em;
 min-height: 1.6em;
 display: inline-grid;
 place-items: center;
 color: color-mix(in srgb, var(--accent-2) 72%, transparent);
 font-size: .78rem;
 font-weight: 950;
 line-height: 1;
}

.choice-label {
 max-width: 0;
 overflow: hidden;
 opacity: 0;
 white-space: nowrap;
 transform: translateX(-3px);
 transition: max-width .18s ease, opacity .16s ease, transform .16s ease;
}

.choice-control:hover,
.choice-control:focus-visible {
 color: var(--accent-2);
 border-color: rgba(255, 231, 174, .28);
 background: transparent;
}

.choice-control:hover .choice-label,
.choice-control:focus-visible .choice-label,
.choice-control.is-active .choice-label {
 max-width: 9em;
 opacity: .88;
 transform: translateX(0);
}

@media (min-width: 0px) {
 .choice-control.is-active .choice-label {
 max-width: 0;
 opacity: 0;
 transform: translateX(-3px);
 }

 .choice-control:hover .choice-label,
 .choice-control:focus-visible .choice-label {
 max-width: 8em;
 opacity: .88;
 transform: translateX(0);
 }}

/* Touch has no hover and unreliable :focus-visible — keep the SELECTED chip's label
 visible so users can always read/recall what they chose. */
@media (hover: none) {
 .choice-control.is-active .choice-label{
 max-width: 9em;
 opacity: .9;
 transform: translateX(0);
 }}

.choice-control.is-active,
.topic-button.choice-control.is-active,
.mode-button.choice-control.is-active,
.chip-button.choice-control.is-active{
 color: var(--accent-2);
 border-color: rgba(255, 231, 174, .38);
 background: transparent;
 box-shadow: none;
}

.object-action,
.zone-button.object-action,
.astro-choice.object-action,
.astro-point-row.object-action,
.astro-aspect-link.object-action,
.tarot-cut-pile.object-action {
 background: transparent !important;
 box-shadow: none !important;
 backdrop-filter: none !important;
 -webkit-backdrop-filter: none !important;
}

.zone-button.object-action,
.astro-choice.object-action,
.astro-point-row.object-action,
.astro-aspect-link.object-action {
 border-color: rgba(255, 255, 255, .1);
}

.zone-button.object-action:hover,
.zone-button.object-action:focus-visible,
.zone-button.object-action.is-active,
.astro-choice.object-action:hover,
.astro-choice.object-action:focus-visible,
.astro-choice.object-action.is-active,
.astro-point-row.object-action:hover,
.astro-point-row.object-action:focus-visible,
.astro-point-row.object-action.is-active,
.astro-aspect-link.object-action:hover,
.astro-aspect-link.object-action:focus-visible {
 border-color: rgba(255, 231, 174, .38);
 color: var(--accent-2);
 background: rgba(255, 231, 174, .045) !important;
}

.tarot-cut-pile.object-action:hover,
.tarot-cut-pile.object-action:focus-visible {
 background: rgba(255, 231, 174, .045) !important;
}
.tarot-deck-actions,
.tarot-stage-actions {
 align-items: center;
 justify-content: center;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-question.is-object-question {
 width: min(680px, 100%);
 grid-template-columns: 54px minmax(0, 1fr);
 justify-items: stretch;
 align-items: center;
 text-align: left;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-question.is-object-question small {
 grid-column: 2;
}

@media (min-width: 0px) {
 body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-question.is-object-question {
 grid-template-columns: 1fr;
 justify-items: center;
 text-align: center;
 }

 body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-question.is-object-question small {
 grid-column: auto;
 }}


/* Mobile service screens: the page itself must not scroll. Each category owns a
 single stage inside the viewport; dense birth inputs compact on short screens. */
@media (min-width: 0px) {
 body:not([data-service="home"]) .app-shell {
 min-height: 0;
 grid-template-rows: auto minmax(0, 1fr);
 overflow: hidden;
 }

 body:not([data-service="home"]) .topbar::before {
 left: 0;
 right: 0;
 }

 body:not([data-service="home"]) .service-workspace {
 min-height: 0;
 height: 100%;
 overflow: hidden;
 align-content: stretch;
 }

 body:not([data-service="home"]) .service-workspace .studio,
 body:not([data-service="home"]) .service-workspace .result-panel,
 body:not([data-service="home"]) .service-stage{
 min-height: 0;
 height: 100%;
 overflow: hidden;
 }

 body:not([data-service="home"]) .service-workspace .result-panel {
 grid-template-rows: auto minmax(0, 1fr) auto auto;
 }

 body:not([data-service="home"]) .service-workspace .reading-copy {
 max-height: none;
 min-height: 0;
 overflow: hidden;
 }}

@media (min-width: 0px) and (max-height: 720px) {
 body:not([data-service="home"]) .app-shell {
 gap: 6px;
 padding-block: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-bottom));
 }

 body:not([data-service="home"]) .topbar {
 min-height: 46px;
 padding-block: 0;
 }

 body:not([data-service="home"]) .brand {
 gap: 8px;
 font-size: .95rem;
 }

 body:not([data-service="home"]) .brand-mark {
 width: 32px;
 height: 32px;
 flex-basis: 32px;
 }

 body:not([data-service="home"]) .topbar-link,
 body:not([data-service="home"]) .audio-toggle,
 body:not([data-service="home"]) .top-back-button {
 min-height: 34px;
 padding-inline: 8px;
 font-size: .72rem;
 }

 body:not([data-service="home"]) .service-workspace {
 gap: 0;
 }}

/* ── 안내 다이얼로그(출생 정보 필요 등) ───────────────────────── */
.app-dialog { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.app-dialog[hidden] { display: none; }
.app-dialog-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(6, 5, 12, .62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); cursor: pointer; }
.app-dialog-panel { position: relative; z-index: 1; width: min(420px, 100%); padding: 26px 24px 22px; border-radius: 18px; text-align: left; }
.app-dialog-panel h2 { margin: 6px 0 10px; }
.auth-dialog-panel { width: min(380px, 100%); padding: 22px; }
.auth-dialog-body { display: grid; gap: 12px; margin-top: 0; }
.auth-dialog-note { margin: 0; color: var(--soft); line-height: 1.6; font-size: .92rem; }
.auth-dialog-note.is-muted { color: var(--muted); font-size: .82rem; }
.auth-provider-list { display: grid; gap: 8px; }
.auth-provider-button {
 min-height: 46px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 10px;
 border: 1px solid rgba(255, 231, 179, .22);
 border-radius: 10px;
 background: rgba(255, 255, 255, .045);
 color: var(--text);
 font-weight: 900;
 cursor: pointer;
}
.auth-provider-button:hover,
.auth-provider-button:focus-visible {
 border-color: rgba(255, 231, 179, .42);
 background: rgba(255, 231, 179, .07);
 outline: none;
}
.auth-provider-button:disabled {
 cursor: not-allowed;
 opacity: .38;
}
.auth-user-line {
 display: grid;
 grid-template-columns: 42px minmax(0, 1fr);
 align-items: center;
 gap: 12px;
}
.auth-user-line img,
.auth-user-line > .ui-icon {
 width: 42px;
 height: 42px;
 border-radius: 999px;
}
.auth-user-line strong,
.auth-user-line span {
 display: block;
 min-width: 0;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}
.auth-user-line span { color: var(--muted); font-size: .82rem; }

/* ── 사이트 푸터(약관·정책 링크) ─────────────────────────────── */
.site-footer { position: relative; z-index: 2; flex: none; width: min(1500px, calc(100% - 32px)); margin: 0 auto; padding: 8px 0 10px; text-align: center; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.site-footer-links a { color: var(--muted); text-decoration: none; font-size: .8rem; letter-spacing: .02em; }
.site-footer-links a:hover { color: var(--accent); }
/* 약관·정책 푸터는 메인(홈) 화면에만 — 서비스 화면은 푸터 숨김(공간 확보 + 중복 제거). */
body:not([data-service="home"]) .site-footer { display: none; }
/* 타로 질문 단계는 예외: 법적 고지 링크가 앱 안에서 도달 가능해야 한다(심사 랜딩 화면 포함). */
body[data-service="tarot"]:has(.tarot-question) .site-footer { display: block; }

.category-lock {
 position: absolute;
 left: 50%;
 top: 50%;
 z-index: 4;
 width: clamp(34px, 4.4vw, 46px);
 height: clamp(34px, 4.4vw, 46px);
 display: grid;
 place-items: center;
 border-radius: 999px;
 color: color-mix(in srgb, var(--accent-2) 78%, transparent);
 background: rgba(8, 6, 8, .52);
 box-shadow: 0 10px 24px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 231, 174, .26);
 transform: translate(-50%, -50%);
 pointer-events: none;
}

.category-lock .ui-icon {
 width: 56%;
 height: 56%;
 stroke-width: 2.2;
}

.reading-result-actions {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 align-items: center;
 gap: 14px;
 margin-top: 14px;
}

.reading-result-actions .ghost-button {
 min-width: 0;
}

.reading-result-actions .icon-button {
 width: 42px;
 height: 42px;
 padding: 0;
 border-color: rgba(255, 231, 174, .14);
 border-radius: 999px;
 background: transparent;
 color: rgba(255, 238, 198, .74);
}

.reading-result-actions .icon-button:hover,
.reading-result-actions .icon-button:focus-visible {
 color: rgba(255, 248, 220, .98);
 border-color: transparent;
 background: transparent;
 filter: brightness(1.12);
}

.reading-result-actions .icon-button .ui-icon {
 width: 21px;
 height: 21px;
}

.reading-result-actions .icon-button .ui-icon.is-action-art {
 width: 34px;
 height: 34px;
}

/* 짧은 높이(가로 모드 등): 근거·헤더·네비를 줄여 리딩 카드에 공간을 준다(스크롤 대신).
 base .evidence-stack(위)보다 뒤에 와야 이긴다. */
@media (max-height: 600px) {
 .result-panel { gap: 8px; }
 .result-head h2 { margin-top: 2px; font-size: 1.02rem; }
 .result-head .eyebrow { font-size: .64rem; }
 .evidence-stack { display: none; }
 .card-pager-nav { padding-top: 6px; gap: 10px; }
 .card-pager-arrow { width: 28px; height: 28px; font-size: .9rem; }}

/* Top panel contract: the app header is a real, fixed-height layout row. */
:root {
 --oracluna-topbar-height: 58px;
 --oracluna-shell-gap: clamp(8px, 1.35vh, 14px);
}

.app-shell,
body:not([data-service="home"]) .app-shell,
body[data-tarot-view="deck-theater"] .app-shell {
 height: auto;
 min-height: 0;
 max-height: 100%;
 display: grid;
 grid-template-rows: var(--oracluna-topbar-height) minmax(0, 1fr);
 gap: var(--oracluna-shell-gap);
 overflow: hidden;
}

.app-shell {
 padding-block: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-bottom));
}

.topbar,
body:not([data-service="home"]) .topbar,
body[data-tarot-view="deck-theater"] .topbar {
 position: relative;
 top: auto;
 z-index: 20;
 display: flex;
 height: var(--oracluna-topbar-height);
 min-height: var(--oracluna-topbar-height);
 max-height: var(--oracluna-topbar-height);
 flex-direction: row;
 align-items: center;
 padding-block: 0;
 overflow: visible;
}

.topbar::before,
body[data-tarot-view="deck-theater"] .topbar::before {
 inset: 0;
 background: linear-gradient(180deg, rgba(8, 6, 10, .54), rgba(8, 6, 10, .18));
}

.category-home,
.service-workspace,
body:not([data-service="home"]) .service-workspace,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater {
 height: 100%;
 min-height: 0;
 max-height: 100%;
 overflow: hidden;
}

.service-workspace .studio,
.service-workspace .result-panel,
.service-stage,
.tool-layout,
.stage-split,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .service-stage,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tool-layout,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .stage-split,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-canvas,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-deck-surface,
body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-arc-shell {
 height: 100%;
 min-height: 0;
 max-height: 100%;
 overflow: hidden;
}

body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tool-layout {
 grid-template-rows: minmax(0, 1fr);
 gap: 0;
}

body[data-tarot-view="deck-theater"] .service-workspace.is-tarot-deck-theater .tarot-canvas {
 grid-template-rows: minmax(0, 1fr);
 align-content: stretch;
}

@media (min-width: 0px) {
 :root {
 --oracluna-topbar-height: 54px;
 --oracluna-shell-gap: 8px;
 }

 .app-shell,
 body:not([data-service="home"]) .app-shell,
 body[data-tarot-view="deck-theater"] .app-shell {
  grid-template-rows: var(--oracluna-topbar-height) minmax(0, 1fr);
 }

 .topbar,
 body:not([data-service="home"]) .topbar,
 body[data-tarot-view="deck-theater"] .topbar {
  height: var(--oracluna-topbar-height);
  min-height: var(--oracluna-topbar-height);
  max-height: var(--oracluna-topbar-height);
 }}

/* ponytail: user requested no visible focus chrome; interaction state must not create panels. */
button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
summary:focus,
summary:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible,
label.tool-action:focus-within {
 outline: none !important;
 box-shadow: none !important;
}

button:focus *,
button:focus-visible *,
a:focus *,
a:focus-visible *,
summary:focus *,
summary:focus-visible *,
[role="button"]:focus *,
[role="button"]:focus-visible * {
 outline: none !important;
 box-shadow: none !important;
}

button:focus-visible::before,
button:focus-visible::after,
a:focus-visible::before,
a:focus-visible::after,
summary:focus-visible::before,
summary:focus-visible::after,
[role="button"]:focus-visible::before,
[role="button"]:focus-visible::after {
 display: none !important;
}

button:focus *::before,
button:focus *::after,
button:focus-visible *::before,
button:focus-visible *::after,
a:focus *::before,
a:focus *::after,
a:focus-visible *::before,
a:focus-visible *::after,
summary:focus *::before,
summary:focus *::after,
summary:focus-visible *::before,
summary:focus-visible *::after,
[role="button"]:focus *::before,
[role="button"]:focus *::after,
[role="button"]:focus-visible *::before,
[role="button"]:focus-visible *::after {
 box-shadow: none !important;
}

button:focus,
button:focus-visible,
button:active,
a:focus,
a:focus-visible,
a:active,
summary:focus,
summary:focus-visible,
summary:active,
[role="button"]:focus,
[role="button"]:focus-visible,
[role="button"]:active {
 -webkit-tap-highlight-color: transparent;
}

/* ponytail: labels wrap hidden file inputs, so disabled inputs must disable the whole object. */
label:has(input:disabled),
.object-action.is-disabled {
 opacity: .42;
 pointer-events: none;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-question .tarot-shuffle-button .ui-icon{
 width: 27px;
 height: 27px;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .tarot-cut {
 width: 100%;
 height: 100%;
 min-height: 0;
 align-content: center;
 justify-items: center;
 gap: clamp(14px, 3vh, 28px);
 padding-inline: clamp(10px, 3vw, 28px);
 overflow: visible;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .tarot-cut-piles {
 width: min(100%, 860px);
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: clamp(8px, 2.5vw, 22px);
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .tarot-cut-pile {
 min-width: 0;
 min-height: 0;
 padding: 4px 0;
}

body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .cut-stack {
 width: min(24vw, 180px);
 max-width: 100%;
}

/* (옛 13×6 격자 덱과 카메라 오버라이드는 카드 휠로 대체되어 삭제됐다.) */

@media (min-width: 0px) {
 body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .tarot-cut {
  gap: 12px;
  padding-inline: 8px;
 }

 body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .tarot-cut-piles {
  gap: 7px;
 }

 body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .cut-stack {
  width: min(27vw, 104px);
 }

 body[data-service="tarot"] .tarot-canvas.tarot-stage-cut .tarot-cut-pile::before {
  width: 30vw;
  height: 24vw;
 }}

/* Tarot result: keep the single detail object and footer commands fully inside
   the mobile stage. Card summaries already carry the visible evidence. */
@media (min-width: 0px) {
 body[data-service="tarot"] .service-workspace.is-final-result .result-panel {
  grid-template-rows: minmax(0, 1fr) 0 0 46px;
  gap: 8px;
 }

 body[data-service="tarot"] .service-workspace.is-final-result .reading-final.is-tarot-reading {
  height: auto;
  gap: 10px;
  padding-bottom: 0;
 }
 body[data-service="tarot"] .reading-final.is-tarot-reading .visual-evidence-board,
 body[data-service="tarot"] .reading-final.is-tarot-reading .reading-trait-list {
  display: none;
 }

 body[data-service="tarot"] .service-workspace.is-final-result #resultPanel > .result-actions {
  width: 100%;
  height: 46px;
  min-height: 46px;
  grid-template-columns: repeat(2, 46px);
  justify-content: center;
  align-items: center;
  gap: 22px;
 }}

/* ── 질문 컴포저 위 상시 노출 리딩 설정(플랫 칩 — 패널 배경 없음) ─────── */
.tarot-setup {
 display: grid;
 gap: 8px;
 justify-items: center;
 margin-bottom: 18px;
}

.tarot-setup-row {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 align-items: baseline;
 gap: 2px 16px;
}

.tarot-setup-chip {
 appearance: none;
 background: none;
 border: 0;
 padding: 2px 2px 7px;
 cursor: pointer;
 font-family: inherit;
 font-size: .84rem;
 letter-spacing: .04em;
 color: var(--muted);
 position: relative;
 transition: color .16s ease;
}

.tarot-setup-chip:hover { color: var(--soft); }

.tarot-setup-chip::after {
 content: "";
 position: absolute;
 left: 50%;
 right: 50%;
 bottom: 2px;
 height: 1px;
 background: var(--accent);
 opacity: 0;
 transition: left .16s ease, right .16s ease, opacity .16s ease;
}

.tarot-setup-chip.is-selected { color: var(--accent-2); }

.tarot-setup-chip.is-selected::after {
 left: 8%;
 right: 8%;
 opacity: .85;
}

/* ── 모바일 전용 빌드 ──────────────────────────────────────────────
 데스크톱 분기는 무력화됨: 모바일 tier(max-width 460~1220px)는
 (min-width: 0px)으로 항상 적용, 데스크톱 tier는 (min-width: 99999px)로 차단.
 PC에서는 아래 클램프로 폰 폭 컬럼을 중앙에 띄운다(배경 아트는 풀블리드 유지). */
.app-shell,
.site-footer {
 max-width: 440px;
 margin-inline: auto;
}

/* ── 피드백 라운드 1 수정 ─────────────────────────────────────────── */

/* 화면을 넘는 단계(공개·정리, 결과)는 세로 스크롤 허용. 덱 극장은 드래그 조작과 충돌하므로 제외. */
.stage-split {
 overflow-y: auto;
 overflow-x: hidden;
}

body[data-tarot-view="deck-theater"] .stage-split {
 overflow: hidden;
}

.service-workspace.is-result-focus {
 overflow-y: auto;
 overflow-x: hidden;
}

/* 질문 아래 안내 문구가 너무 작다는 피드백 — 크기·명도 상향 */
.tarot-question small {
 font-size: .88rem;
 font-weight: 700;
 color: var(--soft);
}

/* 질문이 입력되면 셔플 버튼을 스케일 펄스로 강조 */
.tarot-shuffle-button.is-armed {
 animation: tarotShuffleArmed 1.5s ease-in-out infinite;
}

@keyframes tarotShuffleArmed {
 0%, 100% { transform: scale(1); }
 50% { transform: scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
 .tarot-shuffle-button.is-armed { animation: none; }}

/* 비활성 아이콘 버튼은 눌러도 반응이 없다는 혼동 방지 — 시각적으로 확실히 구분 */
.icon-button:disabled {
 opacity: .35;
 filter: saturate(.5);
 cursor: default;
}

/* 셔플 버튼을 질문 입력창 우측 인라인으로 */
.tarot-question-row {
 grid-column: 2;
 display: flex;
 align-items: center;
 gap: 10px;
 min-width: 0;
}

.tarot-question-row input {
 flex: 1;
 min-width: 0;
}

/* 결과 본문(카드 목록)이 화면을 넘으면 본문 영역이 스크롤 — 헤더·저장 버튼은 고정 유지.
   모바일 tier의 고특이도 hidden 규칙(body:not… .service-workspace .reading-copy)을 같은 특이도로 뒤에서 덮는다. */
body:not([data-service="home"]) .service-workspace .reading-copy {
 overflow-y: auto;
 overflow-x: hidden;
}

/* ── 피드백 라운드 2 ──────────────────────────────────────────────── */

/* 단계 안내 문구가 너무 작다는 피드백 — 제목·본문 상향 */
.tarot-step-copy strong {
 font-size: 1.02rem;
 letter-spacing: .01em;
}

.tarot-step-copy span {
 font-size: .84rem;
 font-weight: 700;
 color: var(--soft);
}

/* 카드 슬롯 캡션(위치·카드명·방향)도 상향 */
.tarot-slot-caption span {
 font-size: .78rem;
 color: var(--accent);
}

.tarot-slot-caption strong {
 font-size: 1rem;
 line-height: 1.25;
}

.tarot-slot-caption small,
.tarot-slot-caption .tarot-orientation-label,
.tarot-slot-caption .tarot-english-label {
 font-size: .76rem;
}

/* ── 결과 페이지: 카드 펼침 + 한 장씩 해설 → 종합 ─────────────────── */
.reading-page {
 display: grid;
 gap: 14px;
}

.reading-fan {
 display: flex;
 justify-content: center;
 align-items: flex-end;
 gap: clamp(6px, 1.8vw, 12px);
}

.reading-fan-card {
 padding: 0;
 border: 1px solid rgba(255, 231, 174, .18);
 border-radius: 8px;
 background: none;
 cursor: pointer;
 overflow: hidden;
 width: clamp(44px, 11vw, 76px);
 flex: 0 1 auto;
 transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.reading-fan-card img {
 display: block;
 width: 100%;
 height: auto;
}

.reading-fan-card.is-reversed img { rotate: 180deg; }

.reading-fan-card.is-current {
 transform: translateY(-6px) scale(1.08);
 border-color: rgba(255, 231, 174, .6);
 box-shadow: 0 10px 26px rgba(0, 0, 0, .4), 0 0 18px rgba(255, 219, 146, .22);
}

.reading-page-title {
 margin: 0;
 text-align: center;
 color: rgba(255, 231, 174, .85);
}

.reading-page-body {
 display: grid;
 gap: 10px;
}

.reading-page-body p {
 margin: 0;
 line-height: 1.75;
}

.reading-page-nav {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 10px;
}

.reading-page-nav .gold-button,
.reading-page-nav .ghost-button {
 min-width: 96px;
}

.reading-page-dots {
 display: inline-flex;
 gap: 6px;
}

.reading-page-dots i {
 width: 6px;
 height: 6px;
 border-radius: 999px;
 background: rgba(255, 242, 204, .25);
}

.reading-page-dots i.is-on {
 background: rgba(255, 231, 174, .9);
}

/* 종합 분석 본문 — 팝업 대신 결과 화면에 상시 표시. 가독성을 위한 배경 판. */
.reading-narrative {
 margin: 14px 0 4px;
 padding: 16px 16px 14px;
 border: 1px solid rgba(255, 231, 174, .16);
 border-radius: 12px;
 background: rgba(8, 7, 12, .74);
 display: grid;
 gap: 12px;
}

.reading-narrative p {
 margin: 0;
 color: var(--text);
 font-size: .95rem;
 line-height: 1.85;
 word-break: keep-all;
}

/* 카드별 의미는 종합 분석 아래 — 구분선으로 영역을 나눈다 */
body[data-service="tarot"] .reading-final .reading-card-strip {
 margin-top: 18px;
 padding-top: 14px;
 border-top: 1px solid rgba(255, 231, 174, .14);
}

/* ── 피드백 라운드 3: 컴포저 미니멀화 + 설정 확대 ─────────────────── */

/* 글리프·라벨·안내문 삭제 후 입력행이 전체 폭 사용 */
.tarot-question-row {
 grid-column: 1 / -1;
 width: 100%;
}

.tarot-question-row input {
 min-height: 52px;
 font-size: 1rem;
}

/* 셔플 버튼 2배 확대 */
.tarot-question-row .tarot-shuffle-button {
 width: 84px;
 height: 84px;
 min-width: 84px;
 flex: none;
}

.tarot-question-row .tarot-shuffle-button .ui-icon {
 width: 56px;
 height: 56px;
}

/* 설정 칩: 카테고리별 행 분리 + 텍스트 확대 */
.tarot-setup {
 gap: 12px;
}

.tarot-setup-chip {
 font-size: 1rem;
 letter-spacing: .03em;
 padding: 3px 3px 8px;
}

/* ── 피드백 라운드 4: 결과 화면 정리 ─────────────────────────────── */

/* 열쇠 히어로 제거 후 종합분석이 바로 시작 — 상단 갭 제거 */
.reading-narrative {
 margin-top: 0;
}

/* 내부 이중 스크롤 제거: 본문 제약을 풀고 결과 패널 전체가 워크스페이스에서 스크롤되게 한다 */
body:not([data-service="home"]) .service-workspace .reading-copy {
 overflow-y: visible;
}

body[data-service="tarot"] .service-workspace.is-final-result .reading-copy {
 max-height: none;
}

.service-workspace.is-result-focus .result-panel {
 min-height: 0;
}

/* 결과 화면 단일 스크롤: tier의 overflow hidden·행 제약을 특이도로 이겨 워크스페이스가 유일한 스크롤 컨테이너가 되게 한다 */
body:not([data-service="home"]) .service-workspace.is-result-focus {
 overflow-y: auto;
 overflow-x: hidden;
}

body:not([data-service="home"]) .service-workspace.is-result-focus .result-panel {
 grid-template-rows: auto auto auto auto;
}

body:not([data-service="home"]) .service-workspace.is-result-focus .result-panel,
body:not([data-service="home"]) .service-workspace.is-result-focus .reading-copy {
 min-height: 0;
 max-height: none;
 overflow: visible;
}

body:not([data-service="home"]) .service-workspace.is-result-focus .reading-final {
 flex: none;
 height: auto;
 max-height: none;
 overflow: visible;
}

/* ── 피드백 라운드 5: 결과 헤더 단순화 + 리셋 topbar 이동 + 저장 최하단 ── */

/* 결과 헤더는 질문만 크게 */
.reading-question-title {
 margin: 0 0 14px;
 font-size: 1.3rem;
 font-weight: 800;
 line-height: 1.45;
 color: var(--accent-2);
 letter-spacing: .01em;
 word-break: keep-all;
}

/* 패널의 초기화 버튼 제거(리셋은 topbar로 통합) — 저장 버튼만 남아 중앙 정렬 */
#resetButton {
 display: none !important;
}

body[data-service="tarot"] .service-workspace.is-final-result #resultPanel > .result-actions {
 grid-template-columns: minmax(46px, 54px);
 justify-content: center;
 margin-top: 10px;
 padding-bottom: 12px;
}

/* 패널 높이 순환(height:100% ↔ auto 행) 붕괴 차단 — 결과 패널은 콘텐츠 높이만큼 자란다 */
body:not([data-service="home"]) .service-workspace.is-result-focus .result-panel {
 height: auto;
}

/* 질문 타이틀이 .reading-final h3 규칙에 눌리지 않게 특이도 확보 */
.reading-final h3.reading-question-title {
 font-size: 1.3rem;
 font-weight: 800;
 line-height: 1.45;
 color: var(--accent-2);
}

/* ── 라운드 6: 도움말 팝업 · 카드 상세 팝업 · 컴포저 박스 ────────────── */

/* 설정 행 좌측 ? 버튼 (topbar 선화 아이콘과 같은 컨셉) */
.tarot-setup-help {
 appearance: none;
 background: none;
 border: 0;
 padding: 0 2px 0 0;
 margin-right: 4px;
 display: inline-flex;
 align-items: center;
 align-self: center;
 cursor: pointer;
 color: var(--accent);
 opacity: .7;
 transition: opacity .16s ease, color .16s ease;
}

.tarot-setup-help:hover,
.tarot-setup-help:focus-visible {
 opacity: 1;
 color: var(--accent-2);
}

.tarot-setup-help .ui-icon {
 width: 26px;
 height: 26px;
}

/* 공용 안내 팝업 — 배경을 덮어 뒤쪽 상호작용을 막고, 아무 곳이나 누르면 닫힘 */
.info-popup {
 position: fixed;
 inset: 0;
 z-index: 12000;
 display: grid;
 place-items: center;
 padding: 20px;
}

.info-popup .app-dialog-backdrop {
 position: fixed;
 inset: 0;
 border: 0;
 background: rgba(6, 5, 10, .72);
 cursor: pointer;
}

/* 카드 상세의 좌우 이동. 패널 밖 화면 가장자리에 떠서 스크롤과 무관하게 자리를 지킨다. */
.info-popup-nav {
 position: absolute;
 top: 50%;
 translate: 0 -50%;
 z-index: 2;
 width: 44px;
 height: 44px;
 border: 1px solid rgba(255, 231, 174, .28);
 border-radius: 999px;
 background: rgba(9, 7, 12, .82);
 color: rgba(255, 242, 204, .9);
 font-size: 26px;
 line-height: 1;
 cursor: pointer;
}

.info-popup-nav.is-prev { left: 10px; }
.info-popup-nav.is-next { right: 10px; }

.info-popup-panel {
 position: relative;
 z-index: 1;
 width: min(460px, 100%);
 max-height: min(76dvh, 640px);
 overflow-y: auto;
 /* 팝업을 끝까지 스크롤한 뒤 계속 밀어도 뒤쪽 종합 분석이 따라 움직이지 않게 한다. */
 overscroll-behavior: contain;
 padding: 22px 20px;
 border: 1px solid rgba(255, 231, 174, .2) !important;
 border-radius: 14px;
 background: rgba(9, 7, 12, .95) !important;
 box-shadow: 0 26px 60px rgba(0, 0, 0, .55) !important;
 text-align: left;
}

.info-popup-title {
 margin: 0 0 12px;
 font-size: 1.12rem;
 color: var(--accent-2);
 letter-spacing: .01em;
}

.info-popup-body {
 display: grid;
 gap: 12px;
}

.info-popup-body p {
 margin: 0;
 color: var(--soft);
 font-size: .94rem;
 font-weight: 700;
 line-height: 1.8;
 word-break: keep-all;
}

/* 카드 설명 행이 이제 버튼 — 버튼 기본 스타일을 지우고 누를 수 있음을 알린다 */
button.reading-card-token {
 appearance: none;
 border: 0;
 background: none;
 width: 100%;
 padding: 0;
 font: inherit;
 text-align: left;
 cursor: pointer;
 transition: opacity .16s ease;
}

button.reading-card-token:hover,
button.reading-card-token:focus-visible {
 opacity: .82;
}

/* 컴포저: 입력창과 셔플 버튼을 하나의 사각형이 감싸고 화면 중앙 정렬 */
.tarot-question-row {
 width: min(360px, 100%);
 margin-inline: auto;
 padding: 6px 6px 6px 14px;
 border: 1px solid rgba(255, 231, 174, .22);
 border-radius: 14px;
 background: rgba(8, 7, 12, .5);
 gap: 6px;
}

.tarot-question-row input {
 min-height: 44px;
 border: 0 !important;
 border-radius: 0 !important;
 background: transparent !important;
 padding: 0 !important;
 text-align: center;
 text-overflow: clip;
}

.tarot-question-row input:focus {
 outline: none !important;
}

.tarot-question-row .tarot-shuffle-button {
 width: 60px;
 height: 60px;
 min-width: 60px;
}

.tarot-question-row .tarot-shuffle-button .ui-icon {
 width: 42px;
 height: 42px;
}

/* 카드 상세 팝업: 최상단에 카드 그림(화면 폭 70%), 그 아래로 설명 */
.info-popup-card {
 display: block;
 width: 70vw;
 max-width: 320px;
 height: auto;
 /* 카드는 모두 2:3이다. 자리를 미리 잡아 두어야 그림이 늦게 떠도 팝업이 다시 가운데로 튀지 않는다. */
 aspect-ratio: 2 / 3;
 margin: 0 auto 4px;
 border-radius: 10px;
 box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}

.info-popup-card.is-reversed {
 transform: rotate(180deg);
}

/* ── 라운드 7: 확정 버튼 최하단 · 공전 로딩 · 카드 안내 문구 ────────── */

/* 확정 버튼은 카드를 가리지 않게 덱 아래 최하단으로 (그리드 order로 맨 끝 배치) */
.service-workspace.is-tarot-deck-theater .tarot-deck-actions {
 position: static;
 order: 99;
 transform: none;
 margin: 22px auto 18px;
 max-width: 100%;
}

/* 로딩 중 공전하는 카드 뒤로 배경이 비치게 — 레이어는 그대로 두고 카드만 이동 */
.tarot-flight-burst {
 position: fixed;
 z-index: 10001;
 width: 18px;
 height: 18px;
 margin: -9px 0 0 -9px;
 border-radius: 999px;
 pointer-events: none;
 background: radial-gradient(circle, rgba(255, 246, 214, .95) 0 22%, rgba(255, 226, 156, .55) 42%, rgba(255, 214, 130, 0) 72%);
 animation: tarotFlightBurst .9s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes tarotFlightBurst {
 0% { opacity: 0; transform: scale(.4); }
 45% { opacity: 1; transform: scale(14); }
 100% { opacity: 0; transform: scale(26); }
}

@media (prefers-reduced-motion: reduce) {
 .tarot-flight-burst { animation: none; opacity: 0; }}

/* 종합 분석 아래 카드 목록 안내 */
.reading-card-guide {
 margin: 16px 0 0;
 text-align: center;
 font-size: .95rem;
 font-weight: 700;
 letter-spacing: .01em;
 color: var(--accent);
}

/* 덱 극장에서 카드 격자는 화면을 채우되, 그 아래 확정 버튼까지 한 화면에 들어오게 한다.
   (기존 min-height가 격자를 화면 높이만큼 밀어 버튼이 화면 밖으로 나갔다.) */
.service-workspace.is-tarot-deck-theater .tarot-canvas,
.service-workspace.is-tarot-deck-theater .service-stage,
.service-workspace.is-tarot-deck-theater .tool-layout,
.service-workspace.is-tarot-deck-theater .stage-split {
 min-height: 0;
}

.service-workspace.is-tarot-deck-theater .tarot-deck-surface {
 min-height: calc(100dvh - 108px);
 display: flex;
 flex-direction: column;
}

.service-workspace.is-tarot-deck-theater .tarot-arc-shell {
 flex: 1;
 min-height: 0;
}

.service-workspace.is-tarot-deck-theater .tarot-deck-actions {
 margin: 14px auto max(14px, env(safe-area-inset-bottom));
}

/* ── 라운드 8: 덱 하단 바(안내/배치 공간 + 확정 버튼) ────────────────── */
.tarot-deck-bottom {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 width: 100%;
 padding: 10px 16px max(10px, env(safe-area-inset-bottom));
}

/* 안내 문구: 배경 패널 없이 좌측 하단 */
.tarot-deck-guide {
 display: grid;
 gap: 2px;
 min-width: 0;
 text-align: left;
}

.tarot-deck-guide strong {
 color: var(--accent-2);
 font-size: 1.02rem;
 font-weight: 950;
}

.tarot-deck-guide span {
 color: var(--soft);
 font-size: .84rem;
 font-weight: 700;
}

/* 카드 배치 공간: 좌측부터 좁은 갭으로 가로 정렬 */
.tarot-place-area {
 display: flex;
 align-items: center;
 gap: 6px;
 min-width: 0;
 flex: 1;
}

.tarot-place-slot {
 position: relative;
 flex: 0 0 auto;
 width: clamp(52px, 16.8vw, 80px);
 aspect-ratio: 2 / 3;
 padding: 0;
 border-radius: 7px;
 background: none;
 touch-action: none;
}

/* 카드가 많으면(7장) 크기를 줄이는 대신 서로 겹치게 둔다.
   간격(--place-gap)은 확정 버튼을 제외한 가용 폭에 맞춰 JS가 계산한다. */
.tarot-place-area {
 --place-gap: 6px;
 gap: 0;
}

.tarot-place-slot + .tarot-place-slot {
 margin-left: var(--place-gap);
}

.tarot-place-slot.is-filled {
 z-index: 1;
}

.tarot-place-slot.is-dragging {
 z-index: 5;
}

.tarot-place-slot.is-empty {
 border: 1px dashed rgba(255, 231, 174, .3);
}

.tarot-place-slot.is-filled {
 border: 1px solid rgba(255, 231, 174, .5);
 cursor: pointer;
 appearance: none;
}

.tarot-place-back {
 position: absolute;
 inset: 0;
 border-radius: inherit;
 background: url("./assets/tarot/fate-vintage-oracle/deck-back.webp") center / cover;
}

.tarot-place-slot b {
 position: absolute;
 inset: auto 0 2px 0;
 z-index: 1;
 color: var(--accent-2);
 font-size: .62rem;
 text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.tarot-place-slot.is-dragging {
 z-index: 5;
 opacity: .9;
 box-shadow: 0 10px 20px rgba(0, 0, 0, .45);
}

/* 확정 버튼은 하단 우측 */
.service-workspace.is-tarot-deck-theater .tarot-deck-actions {
 margin: 0;
 flex: 0 0 auto;
}

/* 로딩 표시(이미지 + %)를 화면 정중앙 = 카드 공전 궤도의 중심에 고정 */
/* 배경 테이블의 만다라 문양 위 = 카드 공전 중심. 좌표는 JS가 cover 배치를 역산해 넣는다. */
body[data-tarot-view="result-loading"] .oracluna-loading-state {
 position: fixed;
 left: var(--tarot-anchor-x, 50%);
 top: var(--tarot-anchor-y, 50%);
 z-index: 9;
 width: fit-content;
 height: fit-content;
 min-height: 0;
 margin: 0;
 /* 중앙 정렬은 독립 translate 속성으로, 등장 애니메이션의 transform은 상쇄한다. */
 translate: -50% -50%;
 transform: none !important;
 pointer-events: none;
}

/* 덱 격자가 topbar에 붙지 않도록 상단 여백 */
.service-workspace.is-tarot-deck-theater .tarot-deck-surface {
 padding-top: 14px;
}

/* topbar 배경 스크림 높이를 기존의 70%로 (버튼 터치 영역 40px는 유지) */
.topbar::before,
body[data-tarot-view="deck-theater"] .topbar::before {
 bottom: auto;
 height: 48px;
}

/* 가이드 문구 ↔ 카드 배치 공간이 바뀌어도 하단 바 높이가 그대로여서
   위쪽 카드 격자가 밀리지 않는다. */
.tarot-deck-bottom {
 min-height: calc(clamp(52px, 16.8vw, 80px) * 1.5 + 20px);
}

/* topbar 어두운 배경 패널 제거 — 배경 패널 대신 글자·아이콘 자체에 그림자로 가독성 확보 */
.topbar::before,
body[data-tarot-view="deck-theater"] .topbar::before {
 content: none;
}

.topbar .brand,
.topbar .topbar-actions {
 text-shadow: 0 1px 6px rgba(0, 0, 0, .85), 0 0 18px rgba(0, 0, 0, .5);
}

.topbar .topbar-link .ui-icon,
.topbar .brand-mark {
 filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .85)) drop-shadow(0 0 12px rgba(0, 0, 0, .45));
}

/* 분석 버튼이 나타날 때 카드가 위로 밀리지 않도록, 공개 단계부터 버튼 자리를 미리 비워 둔다. */
.tarot-ready-actions {
 min-height: 62px;
}

/* ── 결과 화면 하단 작업: "문구 + 아이콘" 한 줄씩 ─────────────────── */
.reading-result-actions {
 display: grid;
 gap: 10px;
 margin-top: 22px;
 padding-bottom: 8px;
}

.reading-action-row {
 display: flex;
 align-items: center;
 justify-content: flex-end;
 gap: 14px;
 width: 100%;
 padding: 6px 2px;
 appearance: none;
 border: 0;
 background: none;
 cursor: pointer;
 font: inherit;
 color: var(--accent-2);
 font-size: 1.05rem;
 font-weight: 800;
 letter-spacing: .01em;
}

.reading-action-row .ui-icon {
 width: 36px;
 height: 36px;
 flex: none;
}

.reading-action-row:disabled {
 opacity: .45;
 cursor: default;
}

/* 패널 하단의 옛 저장 버튼 줄은 숨긴다(이 목록이 대신한다). */
body[data-service="tarot"] .service-workspace.is-final-result #resultPanel > .result-actions {
 display: none;
}

/* ── 광고 자리 ─────────────────────────────────────────────────────────
   pub ID를 받기 전에는 배치만 확인한다(body[data-ads-mode="placeholder"]).
   실제 광고가 들어오면 점선 표시는 사라지고 광고가 그 자리를 채운다. */

.ad-slot,
.ad-anchor {
 display: grid;
 place-content: center;
 gap: 4px;
 text-align: center;
}

.ad-slot {
 margin: 20px 0 6px;
 min-height: 124px;
}

.ad-anchor {
 position: fixed;
 left: 50%;
 bottom: 0;
 z-index: 60;
 width: min(440px, 100%);
 min-height: 56px;
 transform: translateX(-50%);
 padding-bottom: env(safe-area-inset-bottom);
}

/* 앵커가 떠 있으면 그만큼 아래를 비워 마지막 줄이 가리지 않게 한다. */
body:has(#adSlotAnchor:not([hidden])) .service-workspace {
 padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

body[data-ads-mode="placeholder"] .ad-slot,
body[data-ads-mode="placeholder"] .ad-anchor,
body[data-ads-mode="placeholder"] .ad-vignette-body {
 border: 1px dashed rgba(255, 231, 174, .38);
 border-radius: 10px;
}

.ad-slot-name {
 color: rgba(255, 231, 174, .74);
 font-size: .92rem;
 letter-spacing: .04em;
}

.ad-slot-note {
 color: rgba(255, 244, 215, .5);
 font-size: .8rem;
}

.ad-vignette {
 position: fixed;
 inset: 0;
 z-index: 90;
 display: grid;
 place-items: center;
 gap: 18px;
 align-content: center;
 padding: 24px;
 background: rgba(4, 3, 6, .88);
}

.ad-vignette-body {
 display: grid;
 place-content: center;
 gap: 4px;
 width: min(360px, 100%);
 min-height: 480px;
 text-align: center;
}

/* ── 오프닝: 한 번에 뒤집고, 그 뒤에 타이틀 ──────────────────────────
   시간 값은 전부 JS의 TAROT_OPENING에서 커스텀 속성으로 내려온다.
   여기에 숫자를 따로 적으면 두 곳이 어긋나도 아무도 모른다. */

.service-stage.is-auto-revealing .tarot-slot.is-fresh-reveal .tarot-flip-card {
 animation-duration: var(--tarot-flip-ms);
 animation-delay: 0s;
}

/* 제자리 갱신이라 기본 트랜지션까지 같이 걸린다. 뒤집기는 키프레임 하나로만 돌린다. */
.service-stage.is-auto-revealing .tarot-slot .tarot-flip-card {
 transition: none;
}

/* 카드 이름은 다 뒤집힌 뒤에 함께 떠오른다. 슬롯별 지연을 주지 않아 장 수와 무관하다. */
.service-stage.is-auto-revealing .tarot-slot.is-filled.is-fresh-reveal .tarot-slot-caption {
 animation: tarotCaptionReveal var(--tarot-title-ms) cubic-bezier(.16, .82, .18, 1) var(--tarot-flip-ms) both;
}

/* 사용자가 직접 눌러 뒤집을 때의 속도도 같은 모델에서 받는다. */
.tarot-slot .tarot-flip-card {
 transition-duration: var(--tarot-manual-flip-ms, 1.65s);
}

/* ── 컴포저: 글자 버튼과 안내 문구 ─────────────────────────────────── */

/* 아이콘 대신 글자를 쓰는 버튼. 버튼이라는 걸 알아보게 배경을 하나 깐다. */
.tarot-text-button {
 flex: none;
 min-width: 82px;
 padding: 11px 20px;
 border: 1px solid rgba(255, 231, 174, .34);
 border-radius: 11px;
 background: rgba(255, 226, 156, .14);
 color: var(--gold-hi, #fff0bf);
 font-family: inherit;
 font-size: 1.02rem;
 font-weight: 600;
 letter-spacing: .02em;
 cursor: pointer;
 transition: background .18s ease, border-color .18s ease, transform .12s ease;
}

.tarot-text-button:not(:disabled):active {
 transform: translateY(1px);
 background: rgba(255, 226, 156, .22);
}

.tarot-text-button:disabled {
 opacity: .4;
 cursor: default;
}

/* 질문을 적어야 눌리는 버튼이라, 적고 나면 눈에 들어오게 한 단계 밝힌다. */
.tarot-text-button.is-armed {
 border-color: rgba(255, 231, 174, .6);
 background: rgba(255, 226, 156, .24);
}

/* 카드를 다 고르면 활성화되는 완료 버튼. 화면 아래라 조금 더 크게. */
.tarot-confirm-button {
 min-width: 116px;
 padding: 13px 26px;
 font-size: 1.06rem;
}

.tarot-question-lead {
 margin: 12px 2px 0;
 color: rgba(255, 244, 215, .68);
 font-size: 1.02rem;
 font-weight: 700;
 line-height: 1.5;
 letter-spacing: .01em;
 text-align: center;
}

/* 아이콘 버튼 시절의 정사각 크기 규칙이 남아 있어 글자 버튼을 60x60으로 눌러 버린다.
   글자 버튼은 글자 길이에 맞춰 크기가 잡혀야 한다. */
.tarot-question-row .tarot-text-button {
 width: auto;
 height: auto;
 min-width: 82px;
}

/* 로고가 버튼이 됐다. 생김새는 그대로 두고 눌리는 느낌만 준다. */
.brand {
 appearance: none;
 border: 0;
 background: none;
 padding: 0;
 font: inherit;
 color: inherit;
 text-align: left;
 cursor: pointer;
}

.brand:active {
 opacity: .72;
}

/* 단계 안내는 큰 문구 한 줄만 남았다. 부가 설명이 없어진 만큼 글자를 키운다. */
.tarot-step-copy strong {
 font-size: clamp(1.24rem, 5.2vw, 1.62rem);
 line-height: 1.35;
 letter-spacing: -.01em;
}

.tarot-step-copy span {
 display: none;
}

/* 컴포저 선택지: 글자가 작아 읽기 힘들다는 지적. 한 단계 키운다. */
.tarot-setup-chip {
 font-size: 1.12rem;
 padding: 4px 4px 9px;
}

/* 질문을 적지 않고 바로 시작하는 길. 안내 문구 바로 아래에 둔다. */
.tarot-preset-row {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 8px;
 margin-top: 12px;
}

.tarot-preset-button {
 padding: 9px 15px;
 border: 1px solid rgba(255, 231, 174, .26);
 border-radius: 999px;
 background: none;
 color: rgba(255, 244, 215, .82);
 font-family: inherit;
 font-size: .98rem;
 letter-spacing: .01em;
 cursor: pointer;
 transition: border-color .18s ease, color .18s ease;
}

.tarot-preset-button:active,
.tarot-preset-button.is-active {
 border-color: rgba(255, 231, 174, .5);
 color: var(--gold-hi, #fff0bf);
 background: rgba(255, 231, 174, .08);
}

/* ── 제목 서체: 영문 Alagard, 한글 Dalmoori(달무리) ──────────────────
   Alagard by Hewett Tsoi, Dalmoori(달무리) Apache 2.0. 둘 다 자체 호스팅한다.
   파일이 없으면 아래 폴백(기존 서체)으로 조용히 되돌아가므로 화면이 깨지지 않는다. */

:root {
 /* 고서 계열. 한글 고운바탕, 라틴 EB Garamond — 둘 다 OFL, 구글 폰트에서 받는다.
    픽셀 서체(alagard/dalmoori)는 안 쓰게 되어 파일째 지웠다 — 되살리려면 git 이력에서. */
 --oracluna-display: "EB Garamond", "Gowun Batang", "Pretendard Variable", Pretendard, serif;
}

/* 픽셀 폰트는 흐릿하게 보간되면 매력이 죽는다. 또렷하게 찍히도록 둔다. */
#brandLabel,
.tarot-step-copy strong,
#previewTitle,
.reading-question-title,
.info-popup-title,
.tarot-slot-caption strong,
.reading-card-token strong {
 font-family: var(--oracluna-display);
 letter-spacing: .02em;
}

/* 버튼과 안내 문구에도 제목 서체를 적용한다. 본문 리딩만 Pretendard로 남긴다. */
.tarot-text-button,
.tarot-preset-button,
.tarot-setup-chip,
.tarot-question-lead,
.reading-action-row span,
.tarot-slot-caption span,
.tarot-table-state span,
.tarot-table-state strong,
.reading-card-token span,
.saved-close,
.ghost-button,
.gold-button{
 font-family: var(--oracluna-display);
}

/* 픽셀 서체는 자간이 붙어 보인다. 버튼·칩은 살짝 벌린다. */
.tarot-text-button,
.tarot-preset-button,
.tarot-setup-chip {
 letter-spacing: .03em;
}

/* 오프닝 구간에서는 캡션 연출을 한 번만 재생한다.
   착지 클래스가 걷히는 순간 tarotCaptionSettle 이 모든 카드에 걸리고, 뒤집힐 때
   tarotCaptionReveal 이 또 걸려서 두 번 깜빡였다. 뒤집기 쪽만 남긴다
   (아래 규칙보다 is-fresh-reveal 규칙의 명시도가 높아 그쪽이 이긴다). */
.service-stage.is-auto-revealing .tarot-slot .tarot-slot-caption {
 animation: none;
}

/* 한 번 드러난 카드 이름은 다시 등장 연출을 하지 않는다.
   `.tarot-slot.is-filled .tarot-slot-caption` 의 tarotCaptionSettle 은 both 채움이라
   투명도 0에서 시작한다. 오프닝이 끝나 is-auto-revealing 이 걷히는 순간 이 규칙이
   다시 살아나며 애니메이션이 재시작돼, 이름이 사라졌다가 돌아왔다(녹화 5.03s -> 5.23s).
   뒤집는 중(is-fresh-reveal)에는 명시도가 더 높은 규칙이 이겨서 등장 연출은 그대로다. */
.tarot-slot.is-filled.is-revealed .tarot-slot-caption {
 animation: none;
}

/* 카드가 자리에 닿은 뒤에는 슬롯을 드러낸다. 착지 클래스가 걷힐 때까지 opacity:0 이면
   날던 카드가 사라지는 0.65초 동안 화면이 비어, 카드가 사라졌다 나타나는 것처럼 보인다. */
.service-stage.is-tarot-flight-landing.is-tarot-flight-settled .tarot-slot {
 opacity: 1;
}

/* 카드 이름이 들어오면서 높이가 늘어나 카드가 아래로 밀렸다. 자리를 미리 비워 둔다. */
.tarot-slot-caption {
 min-height: 3.4em;
}

/* 캡션은 회전 내내 그대로 보인다. 이름은 회전이 끝난 뒤 글자만 바뀌고, 그때 짧게 스며든다.
   예전에는 both 채움 + 620ms 지연이라 회전하는 동안 글자가 통째로 비었다. */
.service-stage.is-auto-revealing .tarot-slot.is-filled.is-fresh-reveal .tarot-slot-caption {
 animation: none;
}

.service-stage.is-auto-revealing .tarot-slot.is-named .tarot-slot-caption strong,
.service-stage.is-auto-revealing .tarot-slot.is-named .tarot-slot-caption small {
 animation: tarotCaptionSettle var(--tarot-title-ms) ease both;
}

/* 덱 화면 하단 가이드도 같은 제목 서체로. 이 문구만 .tarot-step-copy 밖이라 빠져 있었다. */
.tarot-deck-guide strong {
 font-family: var(--oracluna-display);
 font-size: clamp(1.24rem, 5.2vw, 1.62rem);
 line-height: 1.35;
 letter-spacing: .02em;
}

/* 질문 화면에서 푸터가 프리셋 버튼에 바짝 붙어 겹쳐 보였다. 위쪽을 띄운다. */
body[data-service="tarot"]:has(.tarot-question) .site-footer {
 margin-top: 22px;
 padding-top: 14px;
}

/* 사용자가 누르는 것은 전부 굵게. 아래는 실제로 계산된 굵기를 재서 400~600으로
   남아 있던 것들만 모았다(나머지 버튼은 이미 800~950). 700을 쓰는 건 본문 서체
   고운바탕이 400과 700 두 굵기만 싣기 때문이다 — 900을 적으면 가짜 굵게가 된다. */
.tarot-setup-chip,
.tarot-preset-button,
.tarot-text-button,
button.reading-card-token, /* button. 을 붙여야 위쪽 font:inherit 리셋을 이긴다 */
.saved-filter-action,
.visual-evidence-node summary,
.site-footer-links a,
.brand {
 font-weight: 700;
}

/* 고민 선택은 세 줄이다 — 오늘·이달 한 줄, 다른 고민 한 줄, 깊은 고민 한 줄.
   버튼 윤곽은 격자로 늘리지 않고 글자 길이만큼만 감싼다. */
.tarot-preset-row {
 display: grid;
 justify-items: center;
 gap: 10px;
 margin-top: 0;
}

.tarot-concern-line {
 display: flex;
 justify-content: center;
 gap: 10px;
}

.tarot-preset-button {
 padding: 10px 18px;
 text-align: center;
 white-space: nowrap;
}

/* 설정이 "몇 장" 하나만 남았다. 남은 자리를 질문 입력 쪽에 돌려준다. */
.tarot-setup {
 margin-bottom: 26px;
}

.tarot-question-lead {
 margin-top: 18px;
}

/* 카드 수 위에도 안내를 한 줄 둔다. 질문 쪽 안내와 같은 서체·색이라 클래스를 그대로
   쓰되, 여기서는 화면 맨 위라 위쪽 여백만 걷는다. */
.tarot-setup .tarot-question-lead {
 margin-top: 0;
 margin-bottom: 4px;
}

/* 엎어놓은 카드 캡션은 세 줄 다 비어 있다. 그냥 두면 격자가 다시 나뉘어 줄들이
   올라갔다가, 뒤집혀 글자가 들어오는 순간 도로 내려온다. 각자 한 줄 자리를 잡아 둔다. */
.tarot-slot-caption > span,
.tarot-slot-caption > strong,
.tarot-slot-caption > small {
 min-height: 1lh;
}

/* 분석 생략 토글은 개발자 키를 심은 기기에서만 나타난다. 켜져 있을 때만 눈에 띄게 해서,
   켜 놓은 걸 잊고 "리딩이 비어 나온다"고 착각하지 않도록 한다. */
.topbar-link.dry-run-toggle.is-dry-run-on {
 color: var(--accent-2);
}