/* V182 — Tamaño estable para cada fase, poder y visualización de carta. */
#v176CaosCurtain .v176-result-modal{
 height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;
 width:min(1320px,100%)!important;min-width:0!important;box-sizing:border-box!important;
 overflow:hidden!important
}
#v176CaosCurtain .v176-result-modal-top{
 height:100px!important;min-height:100px!important;flex:0 0 100px!important;
 box-sizing:border-box!important;overflow-y:auto
}
#v176CaosCurtain .v178-director{
 height:140px!important;min-height:140px!important;max-height:140px!important;
 flex:0 0 140px!important;box-sizing:border-box!important;overflow-y:auto!important
}
#v176CaosCurtain #v177ResultMount{
 flex:1 1 auto!important;min-height:0!important;max-height:none!important;
 overflow-y:auto!important;overflow-anchor:none;scrollbar-gutter:stable
}
#v176CaosCurtain .v176-card-focus{box-sizing:border-box!important;height:100%!important;max-height:100%!important}
#v176CaosCurtain #v176StageMount,#v176CaosCurtain #v174GameStage,
#v176CaosCurtain #v174Teams,#v176CaosCurtain #v174Action{min-width:0}
#v176CaosCurtain #v174Action button{max-width:100%;white-space:normal}
#v176CaosCurtain .v176-card-banner{min-height:95px;box-sizing:border-box}
#v176CaosCurtain .v178-versus{min-height:100px;box-sizing:border-box}
/* CSS en última posición: un gesto por tipo de carta global e individual. */
#v176CaosCurtain .v177-applying #v174Teams .v174-slot.is-changed:not(.v177-change-shown){
 opacity:0!important;visibility:hidden!important
}
#v176CaosCurtain .v177-applying[data-v182-motion="cross"] .v174-slot.v177-change-shown{animation:v182Cross 1s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="portal"] .v174-slot.v177-change-shown{animation:v182Portal 1.1s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="rotate"] .v174-slot.v177-change-shown{animation:v182Rotate 1s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="reroll"] .v174-slot.v177-change-shown{animation:v182Reroll 1s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="flip"] .v174-slot.v177-change-shown{animation:v182Flip 1s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="swap"] .v174-slot.v177-change-shown{animation:v182Swap .95s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="shuffle"] .v174-slot.v177-change-shown{animation:v182Shuffle 1.2s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="shield"] .v174-slot.v177-change-shown{animation:v182Shield 1s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="dual"] .v174-slot.v177-change-shown{animation:v182Dual 1.1s ease-out both!important}
#v176CaosCurtain .v177-applying[data-v182-motion="bottom"] .v174-slot.v177-change-shown{animation:v182Bottom 1.1s ease-out both!important}
@keyframes v182Cross{0%{opacity:0;transform:translateX(-42px);filter:blur(7px)}65%{opacity:1;transform:translateX(7px);filter:none}100%{opacity:1;transform:none}}
@keyframes v182Portal{0%{opacity:0;transform:scale(.4);filter:blur(12px)}65%{opacity:1;transform:scale(1.08);filter:none}100%{opacity:1;transform:none}}
@keyframes v182Rotate{0%{opacity:0;transform:translateY(36px) rotate(-4deg)}65%{opacity:1;transform:translateY(-4px) rotate(1deg)}100%{opacity:1;transform:none}}
@keyframes v182Reroll{0%{opacity:0;filter:brightness(4) blur(9px)}60%{opacity:1;filter:brightness(1.8)}100%{opacity:1;filter:none}}
@keyframes v182Flip{0%{opacity:0;transform:rotateY(90deg)}65%{opacity:1;transform:rotateY(-12deg)}100%{opacity:1;transform:none}}
@keyframes v182Swap{0%{opacity:0;transform:translateY(-28px)}65%{opacity:1;transform:translateY(5px)}100%{opacity:1;transform:none}}
@keyframes v182Shuffle{0%{opacity:0;transform:translate(16px,-24px) rotate(4deg);filter:blur(7px)}65%{opacity:1;transform:translate(-5px,4px) rotate(-2deg);filter:none}100%{opacity:1;transform:none}}
@keyframes v182Shield{0%{opacity:0;transform:scale(.85);box-shadow:inset 0 0 0 5px #8ee6d7}70%{opacity:1;transform:scale(1.03)}100%{opacity:1;transform:none;box-shadow:none}}
@keyframes v182Dual{0%{opacity:0;transform:translateX(32px) scale(.8);filter:hue-rotate(110deg)}70%{opacity:1;transform:translateX(-5px) scale(1.04);filter:none}100%{opacity:1;transform:none}}
@keyframes v182Bottom{0%{opacity:0;transform:translateY(44px) scale(.91)}70%{opacity:1;transform:translateY(-7px) scale(1.04)}100%{opacity:1;transform:none}
/* Catálogo de las 10 cartas existentes: imágenes reales o símbolos genéricos. */
#v182GlobalCatalog{margin:16px 0 20px;border:1px solid #527382;background:#112c39;color:#e9f7f8;min-width:0}
#v182GlobalCatalog>summary{display:flex;gap:12px;align-items:center;justify-content:space-between;cursor:pointer;padding:15px 18px;font:800 13px Inter,system-ui,sans-serif}
#v182GlobalCatalog>summary span{font-size:11px;color:#aee7d8}
#v182GlobalCatalog>p{padding:0 18px;color:#bbd1d9;font:12px/1.6 Inter,system-ui,sans-serif}
#v182GlobalCatalog .v182-global-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:3px 18px 18px}
#v182GlobalCatalog .v182-global-card{min-width:0;overflow:hidden;border:1px solid #3e6779;background:#0c2534}
#v182GlobalCatalog .v182-global-art{height:145px;display:grid;place-items:center;background:radial-gradient(circle,#444c77,#172b3c 75%)}
#v182GlobalCatalog .v182-global-art img{width:100%;height:100%;object-fit:cover;object-position:50% 28%}
#v182GlobalCatalog .v182-global-art span{font-size:70px;color:#a8e6e3}
#v182GlobalCatalog .v182-global-card[data-rarity="LEGENDARIA"] .v182-global-art{background:radial-gradient(circle,#6f5539,#182d3b 75%)}
#v182GlobalCatalog .v182-global-card[data-rarity="ÉPICA"] .v182-global-art{background:radial-gradient(circle,#62466a,#182d3b 75%)}
#v182GlobalCatalog .v182-global-info{padding:13px 14px 16px}
#v182GlobalCatalog .v182-global-info small{display:block;color:#9ee4d6;font:800 10px Inter,system-ui,sans-serif;letter-spacing:.1em}
#v182GlobalCatalog .v182-global-info h3{color:#fff;margin:9px 0;font:900 17px/1.16 Inter,system-ui,sans-serif}
#v182GlobalCatalog .v182-global-info p{color:#bcd5db;margin:0;font:12px/1.5 Inter,system-ui,sans-serif}
@media(max-width:650px){
 #v176CaosCurtain .v176-result-modal-top{height:108px!important;min-height:108px!important;flex-basis:108px!important}
 #v176CaosCurtain .v178-director{height:158px!important;min-height:158px!important;max-height:158px!important;flex-basis:158px!important}
 #v176CaosCurtain #v177ResultMount{scrollbar-gutter:auto}
 #v182GlobalCatalog .v182-global-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:5px 9px 12px}
 #v182GlobalCatalog .v182-global-art{height:126px}
 #v182GlobalCatalog .v182-global-info{padding:10px}
 #v182GlobalCatalog .v182-global-info h3{font-size:13px}
 #v182GlobalCatalog .v182-global-info p{font-size:11px}
 #v182GlobalCatalog>summary{padding:12px;font-size:12px}
}
@media(max-width:390px){#v182GlobalCatalog .v182-global-grid{grid-template-columns:1fr}}
@media(max-height:550px){
 #v176CaosCurtain .v176-result-modal-top{height:78px!important;min-height:78px!important;flex-basis:78px!important}
 #v176CaosCurtain .v178-director{height:106px!important;min-height:106px!important;max-height:106px!important;flex-basis:106px!important}
}
@media(prefers-reduced-motion:reduce){#v176CaosCurtain .v177-applying .v174-slot.v177-change-shown{animation:none!important}}
