.chat-tarot-scene{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;padding:60px 40px 35px;border:0;background:transparent;color:var(--cream);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}.chat-tarot-scene::backdrop{background:rgba(7,12,22,.85);backdrop-filter:blur(5px)}.scene-close{position:fixed;right:max(22px,env(safe-area-inset-right));top:max(20px,env(safe-area-inset-top));z-index:10;border:1px solid #dfc5e324;background:#17131fcc;width:44px;height:44px;border-radius:50%}.chat-tarot-stage{width:min(100%,1160px);margin:0 auto}.chat-tarot-scene .full-card:disabled{opacity:1;cursor:default}.chat-tarot-scene .scene-deck{max-height:650px;transition:max-height .65s,opacity .5s,margin .65s,padding .65s}.chat-tarot-scene .scene-deck.retiring{max-height:0;opacity:0;overflow:hidden;pointer-events:none;margin-top:0;padding-top:0;border:0}.scene-footer{text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px;padding:15px 0 max(15px,env(safe-area-inset-bottom))}.scene-footer>p{font-size:12px;color:var(--muted);line-height:1.8}.scene-loading{display:flex;gap:12px;align-items:center;justify-content:center;min-height:260px;color:var(--muted);font-size:13px}.scene-error{color:#e8b8b9;font-size:12px;line-height:1.8;text-align:center;margin:20px auto;max-width:500px}.scene-error button{margin:10px auto;display:block}@media(max-width:760px){.chat-tarot-scene{padding:48px 20px 24px}.scene-close{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:44px;height:44px}.chat-tarot-scene .scene-deck{margin-top:20px}.chat-tarot-scene .scene-deck.retiring{margin-top:0}}@media(prefers-reduced-motion:reduce){.chat-tarot-scene .scene-deck{transition:none}}.chat-tarot-scene :focus-visible{outline:2px solid #d8bc85;outline-offset:4px}.chat-tarot-scene .reading-context,.scene-error{overflow-wrap:anywhere}.chat-tarot-scene{--scene-card-width:clamp(100px,16dvh,146px);--scene-five-card-width:clamp(54px,7dvh,84px);padding-top:max(56px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}.chat-tarot-scene .draw-room>.reading-context{margin-bottom:8px;line-height:1.7}.chat-tarot-scene .draw-room>.center-intro{margin-top:4px;margin-bottom:12px}.chat-tarot-scene .center-intro h2{font-size:clamp(20px,2.2vw,25px);line-height:1.5}.chat-tarot-scene .center-intro p{margin-top:4px}.chat-tarot-scene .draw-room>.spread{margin-top:12px;margin-bottom:16px}.chat-tarot-scene .spread[data-card-count="3"] .spread-slot{width:auto}.chat-tarot-scene .tarot-stage .spread[data-card-count="3"] .empty-card,.chat-tarot-scene .tarot-stage .spread[data-card-count="3"] .full-card{width:min(100%,var(--scene-card-width));height:auto;aspect-ratio:165/262}.chat-tarot-scene .spread[data-card-count="3"] .position-label{min-height:38px;margin-bottom:8px;gap:4px;font-size:16px}.chat-tarot-scene .spread[data-card-count="3"] .card-name{margin-top:8px;font-size:16px}.chat-tarot-scene .spread[data-card-count="5"]{--spread-card-width:var(--scene-five-card-width);row-gap:6px}.chat-tarot-scene .spread[data-card-count="5"] .position-label{min-height:30px;margin-bottom:4px;font-size:12px;line-height:1.4}.chat-tarot-scene .spread[data-card-count="5"] .empty-card{gap:4px;padding:3px}.chat-tarot-scene .spread[data-card-count="5"] .empty-card small{font-size:9px;line-height:1.3;overflow-wrap:anywhere}.chat-tarot-scene .spread[data-card-count="5"] .empty-card svg{width:16px;height:16px}.chat-tarot-scene .spread[data-card-count="5"] .card-name{margin-top:5px;font-size:13px;overflow-wrap:anywhere}.chat-tarot-scene .spread-path-label{padding-top:4px;margin-bottom:0}.chat-tarot-scene[data-revealed=true]{--scene-five-card-width:clamp(64px,10dvh,96px)}.chat-tarot-scene .scene-deck{margin-top:16px;padding-top:6px}.chat-tarot-scene .deck-toolbar{gap:8px}.chat-tarot-scene .deck-toolbar>span{min-width:0;overflow-wrap:anywhere}.chat-tarot-scene .deck-toolbar>button{min-height:44px;flex-shrink:0}.chat-tarot-scene .fan-topline{padding-top:4px}.chat-tarot-scene .fan-choose,.chat-tarot-scene .scene-error button{min-height:44px}.chat-tarot-scene .scene-footer{gap:10px;padding-top:10px}.chat-tarot-scene .scene-footer>.button{max-width:100%;white-space:normal}.chat-tarot-scene .tarot-table-orb-hit{left:40%;top:53%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}@media(max-width:1000px){.chat-tarot-scene .chat-tarot-stage>.tarot-table-witch{width:min(100%,clamp(170px,23dvh,280px));margin:0 auto 6px}.chat-tarot-scene[data-card-count="5"] .chat-tarot-stage>.tarot-table-witch{width:min(100%,clamp(140px,18dvh,220px))}.chat-tarot-scene .tarot-table-witch .witch-whisper{margin-top:2px;line-height:1.5}.chat-tarot-scene .tarot-table-witch .witch-whisper p{margin-top:3px;line-height:1.5}}@media(max-width:760px){.chat-tarot-scene{--scene-card-width:clamp(76px,12dvh,112px);--scene-five-card-width:clamp(48px,7dvh,68px);padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.chat-tarot-scene[data-revealed=true]{--scene-five-card-width:clamp(48px,6.6dvh,66px)}.chat-tarot-scene .chat-tarot-stage>.tarot-table-witch{width:min(100%,clamp(140px,20dvh,210px))}.chat-tarot-scene[data-card-count="5"] .chat-tarot-stage>.tarot-table-witch{width:min(100%,clamp(120px,16dvh,170px))}.chat-tarot-scene .draw-room>.reading-context{font-size:12px}.chat-tarot-scene .draw-room>.spread{margin-top:10px;margin-bottom:12px}.chat-tarot-scene .spread[data-card-count="3"] .position-label{font-size:14px;line-height:1.5}.chat-tarot-scene .spread[data-card-count="3"] .position-label small{font-size:10px}.chat-tarot-scene .spread[data-card-count="5"]{column-gap:8px;row-gap:4px}.chat-tarot-scene .spread[data-card-count="5"] .position-label{min-height:24px;font-size:11px;gap:3px}.chat-tarot-scene .spread[data-card-count="5"] .position-label>span{white-space:nowrap}.chat-tarot-scene .spread[data-card-count="5"] .card-name{font-size:12px}.chat-tarot-scene .tarot-table-witch .witch-whisper p{font-size:11px}.chat-tarot-scene .spread[data-spread=two-paths]{column-gap:16px}.chat-tarot-scene .fan-topline{gap:8px;font-size:13px;letter-spacing:0;flex-wrap:wrap}.chat-tarot-scene .fan-topline small{font-size:10px}.chat-tarot-scene .scene-deck{margin-top:12px;padding-top:4px}.chat-tarot-scene .scene-deck.retiring{margin-top:0;padding-top:0}}.witch-dialog:has(.chat-tarot-invitation){max-width:580px;max-height:calc(100dvh - 40px);overscroll-behavior:contain;scroll-padding-block:24px 90px}.chat-tarot-invitation .witch-field{margin-bottom:20px}.chat-tarot-invitation input,.chat-tarot-invitation textarea{font-size:16px}.chat-spread-picker{min-width:0;margin:0 0 20px;padding:0;border:0}.chat-spread-picker legend{padding:0;margin-bottom:10px;color:#c4b5cf;font-size:12px}.chat-spread-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.chat-spread-option{position:relative;display:flex;flex-direction:column;gap:7px;margin:0;min-width:0;padding:13px 14px;border:1px solid #ffffff1a;border-radius:12px;background:#191522;cursor:pointer;transition:border-color .15s,background-color .15s}.chat-spread-option input{position:absolute;inset:0;opacity:0;cursor:inherit;margin:0;width:100%;height:100%}.chat-spread-option:has(input:checked){border-color:#d8bc8580;background:#d8bc8510}.chat-spread-option:has(input:focus-visible){outline:2px solid #d8bc85;outline-offset:3px}.chat-spread-picker:disabled .chat-spread-option{cursor:default;opacity:.6}.chat-spread-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.chat-spread-heading strong{color:#eee5f3;font:400 16px/1.5 Georgia,Songti SC,serif}.chat-spread-heading small{flex-shrink:0;color:#b6a4c1;font-size:11px}.chat-spread-option:has(input:checked) .chat-spread-heading small,.chat-spread-option:has(input:checked) .chat-spread-heading strong{color:#e0c898}.chat-spread-description{color:#b6a7c2;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.chat-spread-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chat-spread-paths .witch-field{min-width:0}.chat-tarot-invitation-footer{position:sticky;bottom:-28px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -4px -4px;padding:14px 4px 4px;background:#211c2c;box-shadow:0 -8px 12px #211c2c}.chat-tarot-invitation-footer>span{color:#b6a7c2;font-size:12px;line-height:1.6;min-width:0}.chat-tarot-invitation-footer .witch-button{min-height:44px;flex-shrink:0}@media(hover:hover){.chat-spread-picker:not(:disabled) .chat-spread-option:hover{border-color:#d8bc8566;background:#d8bc850b}}@media(max-width:760px){.witch-dialog:has(.chat-tarot-invitation){max-height:calc(100dvh - 24px);padding:20px}.chat-spread-option{padding:11px 10px}.chat-spread-heading{gap:5px;flex-wrap:wrap}.chat-spread-heading strong{font-size:15px}.chat-spread-paths{grid-template-columns:1fr;gap:0}.chat-tarot-invitation-footer{bottom:-20px;padding-bottom:max(4px,env(safe-area-inset-bottom))}}@media(max-width:359px){.chat-spread-options{grid-template-columns:1fr}.chat-spread-heading{flex-wrap:nowrap}.chat-spread-option{gap:3px}.chat-tarot-invitation-footer>span{max-width:115px}}@media(prefers-reduced-motion:reduce){.chat-spread-option{transition:none}}.witch-dialog:has(.chat-tarot-invitation) header .witch-icon{width:44px;height:44px;flex-shrink:0}