/* Composición de la referencia aprobada. Sólo Renovado de PC; sin reglas de juego. */
@media(min-width:900px){
 .visual-v2{--ref-wood:url('../assets/visual-v2/skin/wood-frame-concept.png?v=5');--ref-paper:url('../assets/visual-v2/skin/parchment-frame-concept.png?v=5');--ref-green:url('../assets/visual-v2/skin/green-frame.png?v=4');--ref-center-x:50vw;--ref-safe-width:calc(100vw - 340px)}
 .visual-v2 .ov>.card{border:12px solid #8f562d;border-image:var(--ref-paper) 32 fill / 12px / 0 stretch;border-radius:0;background:#fff0cf;padding:18px;color:#44301b;box-shadow:0 8px 18px #17220e88;font-size:15px}
 .visual-v2 .ov>.card>h3{border:8px solid #a46a34;border-image:var(--ref-wood) 32 fill / 8px / 0 stretch;border-radius:0;background:#59351f;color:#fff0cd;font:700 25px/1.15 Georgia,serif;text-align:center;padding:10px 40px 10px 20px;margin:-14px -14px 18px;text-shadow:1px 2px #29170d}
 .visual-v2 .card button:not(.ghost):not(.red):not(.gold):not(.shoptab):not(.ref-step):not(:disabled){border-image:var(--ref-wood) 32 fill / 5px / 0 stretch;background:#613b20;color:#fff1d4}
 .visual-v2 .card button.green:not(:disabled),.visual-v2 #tuto button{border:5px solid #3f6125;border-image:var(--ref-green) 32 fill / 5px / 0 stretch;background:#3f6125;color:#fff5da;text-shadow:0 1px #273d18;border-radius:0;box-shadow:0 2px #263519}
 .visual-v2 #compras-accesos{box-sizing:border-box;left:16px;width:clamp(190px,15.2vw,252px);padding:9px;border:12px solid #9a6231;border-image:var(--ref-paper) 32 fill / 12px / 0 stretch;background:#f7e6c5;border-radius:0;box-shadow:0 6px 12px #17230d88;overflow:visible}
 .visual-v2 #compras-accesos:not(.compras-combate){top:clamp(145px,18.7vh,182px)!important}
 .visual-v2 #compras-accesos>.tienda-abrir:first-child{position:relative;z-index:2;min-height:43px;margin:-17px -15px 0;width:calc(100% + 30px);border:7px solid #9c632f;border-image:var(--ref-wood) 32 fill / 7px / 0 stretch;background:#744425;border-radius:0;font:700 24px/1 Georgia,serif;font-size:24px!important;letter-spacing:.02em;color:#fff0ca;text-shadow:1px 2px #352111;padding:7px 2px!important}
 .visual-v2 #compras-accesos>.tienda-abrir:first-child::before,.visual-v2 #compras-accesos>.tienda-abrir:first-child::after{content:'';position:absolute;top:50%;width:24px;height:18px;transform:translateY(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cg fill='%23d6ab56' stroke='%2385592b' stroke-width='1'%3E%3Cpath d='M5 17Q0 5 8 5Q16 7 12 17Q17 8 23 13Q25 21 15 20Q24 17 28 22L8 21Z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
 .visual-v2 #compras-accesos>.tienda-abrir:first-child::before{left:4px}.visual-v2 #compras-accesos>.tienda-abrir:first-child::after{right:4px;transform:translateY(-50%) scaleX(-1)}
 .visual-v2 #compras-accesos::before{content:'';position:absolute;top:37px;left:-9px;right:-9px;height:48px;background:url('../assets/visual-v2/skin/awning.png?v=4') center/100% 100% no-repeat;pointer-events:none;z-index:1}
 .visual-v2 .compras-iconos{gap:7px;margin-top:41px}
 .visual-v2 .compras-iconos button{min-height:103px;padding:5px!important;border:5px solid #9c6634!important;border-image:var(--ref-wood) 32 fill / 5px / 0 stretch!important;border-radius:3px!important;background:#714324!important;box-shadow:0 2px #392315!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
 .visual-v2 .compras-iconos img{width:64px;height:64px;filter:drop-shadow(0 2px #2c1b13)}
 .visual-v2 .compras-iconos span{font-size:17px;font-weight:800;line-height:1.2;color:#fff2d7;text-shadow:0 2px #332213}
 .visual-v2 .compras-iconos button.tienda-vip-activo{border-image:var(--ref-green) 32 fill / 8px / 0 stretch!important;background:#355329!important}
 .visual-v2 #compras-accesos #misiones-acceso{margin:17px -15px -81px!important;min-height:56px;width:calc(100% + 30px);border:9px solid #9c632f;border-image:var(--ref-wood) 32 fill / 9px / 0 stretch;background:#5b351e;box-shadow:0 5px #26331c88;border-radius:0;color:#fff0cd;font-size:20px!important;font-weight:800;text-transform:none;padding:6px!important}
 .visual-v2 #misiones-acceso img{width:34px;height:34px}
 .visual-v2 #tuto{box-sizing:border-box;top:106px;left:var(--ref-center-x);transform:translateX(-50%);width:max-content;max-width:min(900px,var(--ref-safe-width));min-height:66px;padding:6px 9px;border:10px solid #a46b35;border-image:var(--ref-paper) 32 fill / 10px / 0 stretch;background:#fff0d2;border-radius:0;gap:9px;box-shadow:0 4px #27391866;font-size:18px;color:#44301b;text-shadow:none;align-items:center;justify-content:center}
 .visual-v2 #tuto>.k{display:none}
 .visual-v2 #tuto #tuto-txt{font-size:19px;line-height:1.15;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:#45301b!important}
 .visual-v2 #tuto #tuto-n{font-size:15px;white-space:nowrap}
 .visual-v2 #tuto #tuto-ir{font-size:18px;font-weight:800;min-height:38px;padding:5px 15px;flex-shrink:0}
 .visual-v2 #tuto #tuto-ir::after{content:none}
 .visual-v2 #tuto .reference-objective-icon{width:48px;height:45px;object-fit:contain;image-rendering:pixelated;flex:0 0 auto}
 .visual-v2 #hotwrap{left:var(--ref-center-x);bottom:16px;max-width:var(--ref-safe-width)}
 .visual-v2 #hotbar{box-sizing:border-box;max-width:var(--ref-safe-width);border:11px solid #9d6531;border-image:var(--ref-wood) 32 fill / 11px / 0 stretch;border-radius:0;background:#59341e;padding:5px;gap:6px;box-shadow:0 5px #27331b77;overflow-x:auto;scrollbar-width:thin}
 .visual-v2 .hcell{box-sizing:border-box;width:clamp(43px,4.3vw,72px);height:clamp(49px,4.7vw,76px);border:3px double #d0a16c;border-radius:4px;background:#3d2517;box-shadow:inset 1px 2px #28170f;padding:5px}
 .visual-v2 .hcell .ric{width:90%;height:90%;object-fit:contain;image-rendering:pixelated}
 .visual-v2 .hcell.sel{outline:2px solid #f5d377;outline-offset:1px}
 .visual-v2 .logpanel{border:9px solid #9b6533;border-image:var(--ref-wood) 32 fill / 9px / 0 stretch;border-radius:0;background:#56351f;box-shadow:0 4px #27331b77;max-width:290px;padding:3px}
 .visual-v2 .logpanel .tabs button{font-size:15px}
 .visual-v2 #gmenu .gmitems{border:10px solid #9f6c38;border-image:var(--ref-paper) 32 fill / 10px / 0 stretch;border-radius:0;background:#fff0cf;box-shadow:0 6px 14px #17220d80}
 .visual-v2 #gmenu .gmi{font-size:15px;min-height:42px}
}
@media(min-width:900px) and (max-height:740px){
 .visual-v2 #compras-accesos{width:clamp(174px,15vw,210px);padding:6px;border-width:10px}
 .visual-v2 #compras-accesos:not(.compras-combate){top:130px!important}
 .visual-v2 #compras-accesos>.tienda-abrir:first-child{font-size:20px!important;min-height:38px;margin:-14px -12px 0;width:calc(100% + 24px);padding:4px!important}
 .visual-v2 #compras-accesos::before{top:29px;height:33px}
 .visual-v2 .compras-iconos{margin-top:30px;gap:5px}.visual-v2 .compras-iconos button{min-height:76px;border-width:6px!important}.visual-v2 .compras-iconos img{width:42px;height:42px}.visual-v2 .compras-iconos span{font-size:14px}
 .visual-v2 #compras-accesos #misiones-acceso{margin:13px -12px -64px!important;width:calc(100% + 24px);min-height:45px;font-size:17px!important}.visual-v2 #misiones-acceso img{width:27px;height:27px}
 .visual-v2 #tuto{top:99px;min-height:44px;padding:1px 5px;gap:5px;max-width:min(740px,var(--ref-safe-width));border-width:6px}.visual-v2 #tuto #tuto-txt{font-size:16px}.visual-v2 #tuto #tuto-ir{font-size:15px;padding:4px 9px;min-height:28px}.visual-v2 #tuto .reference-objective-icon{width:30px;height:28px}
 .visual-v2 #hotwrap{bottom:9px}.visual-v2 #hotbar{border-width:9px;padding:3px;gap:4px}.visual-v2 .hcell{width:clamp(40px,4vw,57px);height:53px}
}
@media(min-width:900px) and (max-width:1100px){
 .visual-v2 #tuto #tuto-txt{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.1;font-size:14px}
}
/* Zona Negra deja el catálogo detrás de su botón existente, sin tapar el combate. */
@media(min-width:900px){
 .visual-v2 #compras-accesos.compras-combate{display:grid;grid-template-columns:86px minmax(0,1fr);gap:6px;width:210px;padding:0;border:0;border-image:none;border-radius:0;background:none;box-shadow:none}
 .visual-v2 #compras-accesos.compras-combate .compras-iconos{display:none}
 .visual-v2 #compras-accesos.compras-combate::before,.visual-v2 #compras-accesos.compras-combate>.tienda-abrir:first-child::before,.visual-v2 #compras-accesos.compras-combate>.tienda-abrir:first-child::after{display:none}
 .visual-v2 #compras-accesos.compras-combate>.tienda-abrir:first-child,.visual-v2 #compras-accesos.compras-combate #misiones-acceso{display:flex;align-items:center;justify-content:center;gap:5px;position:relative;min-width:0;width:100%;min-height:36px;margin:0!important;padding:4px 6px!important;border:4px solid #9c632f;border-image:var(--ref-wood) 32 fill / 4px / 0 stretch;border-radius:3px;background:#613b20;box-shadow:0 2px #26331c77;font:700 13px/1.1 "Segoe UI",system-ui,sans-serif;font-size:13px!important;letter-spacing:0;text-transform:none;text-shadow:0 1px #2d1c11;color:#fff0cd}
 .visual-v2 #compras-accesos.compras-combate #misiones-acceso img{width:19px;height:19px}
 .visual-v2 #editbar.premium-placement.show{width:max-content;max-width:calc(100vw - 32px);align-items:center;gap:8px;padding:4px 8px;border:2px solid #ac8754;border-radius:5px;background:#f5e6c6;box-shadow:0 3px 8px #241a1455}
 .visual-v2 #editbar.premium-placement>*:not(#edit-cancelar){display:none!important}
 .visual-v2 #editbar.premium-placement::before{content:'Elige una celda libre';color:#573d23;font:700 13px/1.25 "Segoe UI",system-ui,sans-serif;text-shadow:none}
 .visual-v2 #editbar.premium-placement #edit-cancelar{display:inline-flex!important;align-items:center;justify-content:center;min-height:30px;margin:0;padding:3px 8px;border:2px solid #9a583c;border-image:none;border-radius:4px;background:#955037;color:#fff3d9;text-shadow:none;box-shadow:none;font-size:13px;line-height:1.2}
}
