.skull-draw{position:fixed;z-index:8;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));display:inline-flex;align-items:center;gap:7px;min-height:50px;padding:5px 15px 5px 8px;border:3px double #c9a24a;border-radius:32px;background:#243f3b url('/herbarium/teal-grain.webp') center/220px;color:#fff1d3;box-shadow:0 3px 13px #10242166;font:600 17px "EB Garamond",serif;cursor:pointer}.skull-draw img{width:42px;height:42px;object-fit:contain}.skull-draw:focus-visible,#single-card button:focus-visible{outline:3px solid #dba652;outline-offset:3px}footer{padding-bottom:calc(80px + env(safe-area-inset-bottom))!important}
#single-card{box-sizing:border-box;width:min(45rem,94vw);max-height:90dvh;padding:clamp(18px,4vw,34px);margin:auto;background:linear-gradient(105deg,#efe1c2f5,#e3cc98f7),url('/herbarium/parchment-script-grain.webp') center/72px;color:#33261a;border:4px double #a48239}
#single-card::backdrop{background:#102622d9}#single-card h2{font:normal clamp(28px,4vw,44px)/1.1 "Cormorant Garamond",serif;color:#33261a;margin:0 0 20px;padding-right:70px}.close-pull{position:absolute;top:16px;right:15px}.pull-result{display:grid;grid-template-columns:minmax(0,45%) 1fr;gap:24px;align-items:center}.pull-result img{display:block;width:auto;height:auto;max-width:100%;max-height:52dvh;justify-self:center;filter:drop-shadow(0 4px 7px #33261a55)}.pull-reversed{transform:rotate(180deg)}.pull-direction{color:#633b72;letter-spacing:.08em}.pull-result p{font:19px/1.55 "EB Garamond",serif;color:#33261a}.another-pull,.close-pull{cursor:pointer;padding:8px 14px;min-height:44px;color:#fff3d6;background:#24423f;border:1px solid #b39248;border-radius:3px;font:16px "EB Garamond",serif}.another-pull{margin-top:18px}.deck-shuffle{animation:shuffle-once .4s ease-in-out}@keyframes shuffle-once{50%{transform:translateX(8px) rotate(3deg)}}@media(prefers-reduced-motion:reduce){.deck-shuffle{animation:none}}@media(max-width:580px){.pull-result{grid-template-columns:1fr;gap:15px}.pull-result img{max-height:36dvh}.pull-result p{margin:6px 0}.skull-draw{font-size:16px}}
video.portrait-film{aspect-ratio:9/16;object-fit:contain;height:auto}.reverse-film video{width:min(100%,20rem);display:block;margin:1rem auto}.reverse-film{text-align:center}

#single-card{height:min(38rem,90dvh);font-family:'EB Garamond',serif}
#single-card h2{height:2.2em;margin-bottom:0}
.pull-result{align-items:start}
.pull-stage{position:relative;justify-self:center;width:min(100%,29dvh,15rem);aspect-ratio:5/7;perspective:900px}
.cut-layer,.pull-flipper,.pull-front{position:absolute;inset:0;background:transparent}
.pull-stage img{display:block;width:100%;height:100%;max-height:none;max-width:none;object-fit:contain}
.cut-layer{transform:translate(var(--offset),var(--offset))}
.cutting .cut-layer{animation:deck-cut 233ms ease-in-out 3}
.cutting .pull-flipper{animation:top-cut 233ms ease-in-out 3}
@keyframes deck-cut{50%{transform:translate(calc(-1 * var(--offset)),var(--offset))}}
@keyframes top-cut{50%{transform:translate(4px,-2px)}}
.pull-flipper{transform-style:preserve-3d;transition:transform 450ms ease-in-out}
.pull-flipper>img,.pull-front{backface-visibility:hidden}
.pull-front{transform:rotateY(180deg)}
.revealed .pull-flipper{transform:rotateY(180deg)}
.revealed .cut-layer{visibility:hidden}
@media(prefers-reduced-motion:reduce){.cutting .cut-layer,.cutting .pull-flipper{animation:none}.pull-flipper{transition:none}}
#single-card h2{height:auto;min-height:2.2em;overflow-wrap:anywhere}
#single-card .another-pull,#single-card .close-pull{font-size:1.1rem}
