/* Tiragem de Artephyvs */
.artephyvs-panel{max-width:1060px;margin:28px auto;padding:22px;border:1px solid #65502d;border-radius:18px;background:#101016;color:#e9dfcc}
.artephyvs-panel h4{font-family:"Cormorant Garamond",serif;color:#e8c77d;font-size:30px;margin:0 0 8px}
.artephyvs-panel p{line-height:1.65}.artephyvs-panel textarea{display:block;width:100%;box-sizing:border-box;min-height:85px;margin:10px 0;padding:13px;border:1px solid #635335;border-radius:10px;background:#0a0a0d;color:#f4e8d3;font:inherit}
.artephyvs-panel button:not(.artephyvs-slot){padding:11px 17px;border:1px solid #ae874a;border-radius:9px;background:#332716;color:#f6e9ce;cursor:pointer}
.artephyvs-panel button:disabled{cursor:default;opacity:.72}
.artephyvs-gate{margin-top:14px;padding:16px;border:1px solid #58472b;border-radius:10px}
.artephyvs-gate a{color:#e3c47b}
.artephyvs-spread{position:relative;width:min(100%,840px);height:clamp(430px,82vw,800px);margin:24px auto;isolation:isolate}
.artephyvs-slot{position:absolute;width:17%;height:27%;background:transparent;border:0;padding:0;cursor:pointer;perspective:700px;color:#fff;transition:opacity .2s}
.artephyvs-slot.a-pos-1{left:41.5%;top:34%;z-index:2}
.artephyvs-slot.a-pos-2{left:39%;top:39%;width:22%;height:20%;transform:rotate(90deg);z-index:3}
.artephyvs-slot.a-pos-3{left:41.5%;top:0}
.artephyvs-slot.a-pos-4{left:21%;top:35%}
.artephyvs-slot.a-pos-5{left:1%;top:35%}
.artephyvs-slot.a-pos-6{left:41.5%;top:73%}
.artephyvs-slot.a-pos-7{left:82%;top:35%}
.artephyvs-flip{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .75s ease}
.artephyvs-slot.revealed .artephyvs-flip{transform:rotateY(180deg)}
.artephyvs-back,.artephyvs-front{position:absolute;inset:0;backface-visibility:hidden;border-radius:9px;overflow:hidden;border:2px solid #b29152;box-shadow:0 9px 20px #0009}
.artephyvs-back{background:radial-gradient(circle at center,#403159,#100c1c 70%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;letter-spacing:.12em;font-size:clamp(6px,1.2vw,12px);color:#e2c078;box-sizing:border-box}
.artephyvs-back:before{content:"";position:absolute;inset:7px;border:1px solid #ae884c;border-radius:5px;pointer-events:none}
.artephyvs-back-mark{font-size:clamp(23px,5vw,57px)}
.artephyvs-front{transform:rotateY(180deg);background:#1c1527}.artephyvs-front img{width:100%;height:100%;object-fit:cover}
.artephyvs-number{position:absolute;top:3px;left:5px;z-index:4;background:#111c;border-radius:50%;padding:2px 6px;font-size:11px;color:#fff}
.artephyvs-reading-item{padding:14px 0;border-top:1px solid #4c402c}.artephyvs-reading-item h5{color:#e8c77d;margin:0 0 7px;font-size:18px}.artephyvs-reading-item p{margin:0}
.artephyvs-synthesis{padding:18px;border:1px solid #9d7b40;border-radius:10px;margin-top:15px}
.artephyvs-history{margin-top:25px}.artephyvs-history details{border-top:1px solid #51452f;padding:12px 0}.artephyvs-history pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6}
@media(max-width:600px){.artephyvs-panel{padding:13px}.artephyvs-spread{height:clamp(360px,110vw,600px)}.artephyvs-slot{width:17%;height:26%}.artephyvs-back{letter-spacing:0}.artephyvs-back-mark{font-size:27px}}
@media(prefers-reduced-motion:reduce){.artephyvs-flip{transition:none}}

.artephyvs-login{display:grid;gap:8px;max-width:420px;margin:14px 0}.artephyvs-login input{min-width:0;padding:11px;border-radius:8px;border:1px solid #796039;color:#fff;background:#0a0a0d}
.artephyvs-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.artephyvs-spread.artephyvs-reveal-first .a-pos-2{opacity:0;pointer-events:none}
.artephyvs-spread:not(.artephyvs-reveal-first) .a-pos-1:hover,.artephyvs-spread:not(.artephyvs-reveal-first) .a-pos-1:focus-visible{z-index:7}
.artephyvs-spread:not(.artephyvs-reveal-first):has(.a-pos-1:hover) .a-pos-2,.artephyvs-spread:not(.artephyvs-reveal-first):has(.a-pos-1:focus-visible) .a-pos-2{opacity:0;pointer-events:none}
.artephyvs-slot.a-pos-2{transition:opacity .23s ease}
.artephyvs-history-row{border-top:1px solid #51452f;padding:12px 0;display:flex;align-items:flex-start;flex-wrap:wrap;gap:9px}.artephyvs-history-row details{flex:1 1 300px;border:0;padding:0}.artephyvs-history-row summary{cursor:pointer}.artephyvs-history-row pre{white-space:pre-wrap;overflow-wrap:anywhere}
#artephyvsLoginStatus,#artephyvsFormStatus,#artephyvsSaveStatus{color:#dfc287;min-height:1em}
.artephyvs-slot.a-pos-1{top:32%}
@media(max-width:600px){.artephyvs-actions button{flex:1 1 44%}.artephyvs-slot.a-pos-1{top:33%}}

/* Histórico unificado do Oráculo: conta Sanctum e tiragens locais */
#oracleHistoryEmpty[hidden],.oracle-history-group[hidden]{display:none!important}
.oracle-history-group{border-top:1px solid rgba(204,171,104,.28);padding-top:17px;margin-top:16px}
.oracle-history-group h5{font-size:20px;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;color:#e4c27c;margin:0 0 12px}
.oracle-history-group h5 small{display:inline-block;font-family:Inter,system-ui,sans-serif;font-size:11px;letter-spacing:.025em;color:#aa9b7c;font-weight:400;margin-left:8px}
#oracleHistory .artephyvs-history-row{align-items:start}
#oracleHistory .artephyvs-history-row summary{color:#eee3d1;line-height:1.55;overflow-wrap:anywhere}
#oracleHistory .artephyvs-history-row summary:hover{color:#e7ca8c}
#oracleHistory .artephyvs-history-row pre{font-size:13px;font-family:inherit;line-height:1.75;color:#c9c0b3;background:#0b0b10;border:1px solid #383128;border-radius:10px;padding:14px;margin-top:11px}
#oracleHistory .artephyvs-history-row button{background:transparent;border:1px solid #72534b;color:#deb5a7;border-radius:7px;padding:8px 11px;cursor:pointer;font-size:12px}
#oracleHistory .artephyvs-history-row button:hover{background:#281d1b}
#oracleHistory .artephyvs-history-row button:disabled{opacity:.6;cursor:wait}
@media(max-width:520px){.oracle-history-group h5 small{display:block;margin:4px 0 0}.artephyvs-history-row{display:block}.artephyvs-history-row button{margin-top:9px}}

/* Verso original do Tarot de Artephyvs, inserido como recurso local do site. */
.artephyvs-slot .artephyvs-back{background:#110d0b url("/asterium/verso-artephyvs.webp") center center / 100% 100% no-repeat;border-color:#55402c}
.artephyvs-slot .artephyvs-back:before,.artephyvs-slot .artephyvs-back-mark,.artephyvs-slot .artephyvs-back>span:not(.artephyvs-back-mark){display:none}
.artephyvs-slot.a-pos-2{left:41.5%;top:32%;width:17%;height:27%;transform:rotate(90deg)}
.artephyvs-synthesis #artephyvsSynthesisText{white-space:pre-line;line-height:1.8;color:#e5dac7}
@media(max-width:600px){.artephyvs-slot.a-pos-2{top:33%;width:17%;height:26%}}
