.modal:has(.cinematic-rip){background:#070709;max-width:780px;width:100%;border-color:#242129;padding:36px 24px}.cinematic-rip{text-align:center}.cinematic-rip h2{font-size:23px;margin-bottom:10px}.cinematic-rip>.eyebrow{color:#d6b5fb}.cinematic-rip .reveal-focus{perspective:1000px;height:min(49dvh,410px);min-height:260px;position:relative;touch-action:pan-y;display:flex;justify-content:center;align-items:center}.cinematic-rip .reveal-focus>img{max-height:100%;width:auto;object-fit:contain;filter:drop-shadow(0 0 20px #a978dd25)}.cinematic-rip .reveal-focus-info{min-height:56px;padding:12px 0}.cinematic-rip .reveal-focus-info strong{display:block;font-size:17px}.cinematic-rip .reveal-focus-info small{display:block;color:#aaa0b9;font-size:11px;margin-top:5px}.cinematic-rip .reveal-actions{justify-content:center;flex-wrap:wrap}.cinematic-rip .button{background:linear-gradient(100deg,#8a46e8,#b850ec);color:white;border-radius:10px}.cinematic-rip .button.secondary{background:#242029;border:1px solid #4c3f60}.cinematic-rip .button.ghost{background:#141216;border:1px solid #34303b}.rip-wrapper{display:block;position:relative;width:235px;height:100%;max-height:380px;background:transparent;touch-action:pan-y}.rip-wrapper span:not(.tear-guide){position:absolute;inset:0;display:block}.rip-wrapper img{width:100%;height:100%;object-fit:fill}.wrapper-top{clip-path:polygon(0 0,100% 0,100% 16%,90% 15%,80% 17%,70% 15%,60% 17%,50% 15%,40% 17%,30% 15%,20% 17%,10% 15%,0 17%);z-index:2}.wrapper-body{clip-path:polygon(0 17%,10% 15%,20% 17%,30% 15%,40% 17%,50% 15%,60% 17%,70% 15%,80% 17%,90% 15%,100% 16%,100% 100%,0 100%)}.tear-guide{position:absolute;top:15%;left:0;right:0;font-size:10px;letter-spacing:.13em;background:#160d26aa;color:white;padding:8px;z-index:3;border-top:1px dashed #dec3ff}.tearing .wrapper-top{animation:wrapper-tear .65s ease-in forwards}.tearing .wrapper-body{animation:wrapper-drop .65s ease-in forwards}.tearing .tear-guide{opacity:0}.reveal-enter{animation:card-turn .45s cubic-bezier(.2,.7,.3,1)}.cinematic-back{height:95%;aspect-ratio:5/7;max-width:260px;border:7px solid #a37cdd;border-radius:15px;background:radial-gradient(circle,#8054be,#271443 65%);display:flex;align-items:center;justify-content:center;flex-direction:column;color:#eadcfb;box-shadow:0 0 35px #9f61d730}.cinematic-back small{font-size:11px;letter-spacing:.22em}.final-stage .cinematic-back{box-shadow:0 0 45px #b463e549}.rip-result-summary{padding:25px 0;border-bottom:1px solid #29232f}.rip-result-summary .button{margin:5px}.rip-again{max-width:470px;margin:30px auto;padding:24px;text-align:left;background:linear-gradient(130deg,#21192c,#121014);border:1px solid #4b365c;border-radius:15px}.rip-again h3{font-size:25px;margin-bottom:15px}.rip-reload-bundles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.rip-reload-bundles button{background:#09080c;border:1px solid #493254;border-radius:10px;padding:14px 7px;color:white}.rip-reload-bundles button:hover{border-color:#c19bee}.rip-reload-bundles strong,.rip-reload-bundles span,.rip-reload-bundles small{display:block}.rip-reload-bundles strong{font-size:15px;color:#d7baff}.rip-reload-bundles span{font-size:12px;margin:8px 0}.rip-reload-bundles small{font-size:9px;color:#aaa0b7}.rip-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px;margin:25px 0}.rip-results-grid article{min-width:0}.rip-results-grid img{width:100%;max-height:300px;object-fit:contain;margin-bottom:12px}.rip-results-grid h3{font-size:15px}.rip-results-grid .button{font-size:11px;padding:8px;min-height:42px;margin:3px}.cinematic-rip .reveal-thumbs{margin:12px auto;max-width:100%}.cinematic-rip .reveal-thumbs button{flex:none}.cinematic-rip .reveal-thumbs .active{border-color:#d3a0fc}.cinematic-rip .tiny{color:#a69caf}
@keyframes wrapper-tear{to{transform:translate(60px,-90px) rotate(24deg);opacity:0}}@keyframes wrapper-drop{to{transform:translateY(50px);opacity:0}}@keyframes card-turn{from{opacity:.3;transform:rotateY(-75deg) translateX(22px)}to{opacity:1;transform:none}}
@media(max-width:600px){.modal:has(.cinematic-rip){padding:46px 16px 28px;max-height:calc(var(--visible-bottom,100dvh) - 12px);border-radius:14px}.cinematic-rip .reveal-focus{height:43dvh;min-height:240px}.rip-wrapper{width:210px}.cinematic-rip h2{font-size:20px}.rip-again{padding:18px}.rip-results-grid img{max-height:230px}.rip-reload-bundles strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.tearing .wrapper-top,.tearing .wrapper-body,.reveal-enter{animation:none}}
.reveal-card-presentation{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;height:100%;width:100%;--reveal-halo:#b3c4da}
.reveal-card-presentation[data-celebration=gold]{--reveal-halo:#efc477}.reveal-card-presentation[data-celebration=violet]{--reveal-halo:#bf9af0}.reveal-card-presentation[data-celebration=blue]{--reveal-halo:#93bded}
.reveal-card-presentation:before{content:"";position:absolute;inset:3% 10%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,color-mix(in srgb,var(--reveal-halo) 20%,transparent),transparent 65%);animation:reveal-halo-in .65s ease-out both}
.cinematic-rip .reveal-card-presentation img{position:relative;display:block;max-height:100%;max-width:100%;height:100%;width:auto;object-fit:contain;filter:drop-shadow(0 12px 20px #0009)}
@keyframes reveal-halo-in{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}
@media(max-width:600px){.cinematic-rip .reveal-focus{height:clamp(220px,42dvh,360px);min-height:220px}.cinematic-rip .reveal-card-presentation img{height:100%;max-height:100%;width:auto}.modal:has(.cinematic-rip){padding-bottom:max(24px,env(safe-area-inset-bottom))}.cinematic-rip .reveal-actions .button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.reveal-card-presentation:before{animation:none}}

/* Final card and results are distinct, deliberate steps. */
.rip-final-actions{width:min(100%,340px);margin:12px auto 0}.rip-stage-heading h2,.reveal-focus-info strong{overflow-wrap:anywhere}.rip-results-grid h3{line-height:1.3;min-height:2.6em;max-height:2.6em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.rip-card-decisions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}.rip-card-decisions .button{min-width:0;margin:0;overflow-wrap:anywhere}.rip-card-decisions .tiny{overflow-wrap:anywhere}.rip-results-grid article{display:flex;flex-direction:column;gap:8px}.rip-results-grid .rip-card-decisions{margin-top:auto;gap:6px}.rip-final-actions .button{min-height:44px}.rip-stage-meta .button:disabled{opacity:.45}
