/* ---------- tienda y herrería (módulo TIENDA) ---------- */
#shop .shopCard { max-width: 620px; gap: 14px; max-height: calc(100% - 32px); overflow-y: auto; }
#shop .shopCard.duo { max-width: 1120px; }
.shopHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shopCoins { color: #FFD98A; font-weight: 800; font-size: 20px; }
.shopCols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.duo .shopCols { grid-template-columns: 1fr 1fr; }
.shopP { display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: opacity .15s; }
.shopP.ready { opacity: .55; }
.shopP h2 { margin: 6px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #E0B2B2; }
.shopP h2.shopWho { font-size: 18px; letter-spacing: 0; text-transform: none; color: #FFD98A; margin: 0; }
/* en línea: cada columna es de un vikingo (rojo o blanco), las monedas siguen siendo de los dos */
#shop .shopCard.marcas .shopP { padding: 14px 16px 16px; border-radius: 12px; border: 2px solid #3A3030; background: #1A1212; }
#shop .shopCard.marcas .shopP.colorR { border-color: #9C2315; background: rgba(156, 35, 21, .18); box-shadow: inset 0 0 0 1px rgba(200, 64, 45, .45); }
#shop .shopCard.marcas .shopP.colorW { border-color: #E0B2B2; background: rgba(242, 236, 236, .07); box-shadow: inset 0 0 0 1px rgba(242, 236, 236, .28); }
#shop .shopCard.marcas .shopP.colorR > h2.shopWho { color: #FF8D71; }
#shop .shopCard.marcas .shopP.colorW > h2.shopWho { color: #F2ECEC; }
.shopList { display: grid; gap: 8px; }
.shopItem { display: flex; align-items: center; gap: 12px; text-align: left; background: #211919; border: 2px solid #2E2525; padding: 6px 12px; min-height: 64px; }
.shopItem:hover { background: #2A2020; border-color: #3A3030; }
.shopItem svg { width: 48px; height: 48px; flex: none; }
.shopTxt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.shopTxt small { font-size: 13px; font-weight: 500; color: #E0B2B2; }
.shopPrice { font-weight: 800; color: #FFD98A; white-space: nowrap; }
.shopPrice::after { content: ' ◆'; font-size: 12px; }
.shopPrice.poor { color: #FF8D71; }
.forgeBtn .forjaPrice { font-weight: 800; }
.forgeBtn .forjaPrice::after { content: ' ◆'; font-size: 12px; }
.forgeBtn .forjaPrice.poor { color: #FF8D71; }
.shopItem[aria-disabled="true"] { opacity: .5; }
.shopItem[aria-disabled="true"] .shopPrice::after { content: ''; }
.forgeRow { display: flex; gap: 14px; align-items: stretch; }
.forgeGrid { display: flex; gap: 12px; flex: none; }
.forgeSide { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.forgeResult { margin: 0; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 10px; border: 2px solid #3A3030; background: #1A1212; font-weight: 800; font-size: 15px; text-align: center; color: #6E5A5A; }
.forgeResult.mejor { color: #7BC86C; border-color: #3E6B34; background: #142014; }
.forgeResult.peor { color: #FF8D71; border-color: #5E130D; background: #241414; }
.forgeResult.igual { color: #F2ECEC; border-color: #6E5A5A; }
.forgeSide .forgeOut { flex: 1; }
.forgeGear { display: grid; grid-template-columns: 52px; gap: 6px; }
.forgeBag { display: grid; grid-template-columns: repeat(4, 52px); gap: 6px; align-content: start; }
.shopP .invCell { width: 52px; height: 52px; }
.shopP .invCell svg { width: 32px; height: 32px; }
.shopP .invCell.pick { border-color: #FF8D71; background: #3A2020; }
.shopP .invCell.pick::after { content: '✓'; position: absolute; top: 1px; right: 4px; font-size: 12px; color: #FF8D71; }
.forgeOut { min-height: 104px; padding: 12px 14px; }
.forgeOut h3 { font-size: 17px; }
.forgeOut .meta.up { color: #7BC86C; font-weight: 800; }
.forgeOut .meta.down { color: #FF8D71; font-weight: 800; }
.shopMsg { min-height: 20px; margin: 0; font-size: 14px; color: #FF8D71; }
/* cursor de cada jugador (teclado o mando): J1 dorado, J2 salmón */
.shopP .cur0, .shopP .cur0:hover { border-color: #FFD98A; box-shadow: 0 0 0 2px #FFD98A; }
.shopP .cur1, .shopP .cur1:hover { border-color: #FF8D71; box-shadow: 0 0 0 2px #FF8D71; }
.shopP .invCell.cur[data-r] { box-shadow: 0 0 0 2px currentColor; }
.shopP .invCell.cur0 { color: #FFD98A; } .shopP .invCell.cur1 { color: #FF8D71; }
@media (max-width: 860px) { .duo .shopCols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .forgeRow { flex-direction: column; } }
#shop .secondary { background: transparent; border-color: #3A3030; color: #E0B2B2; }
#shop .secondary:hover { background: #2A2020; color: #F2ECEC; }
.forgeOut .meta.where { margin: 10px 0 0; color: #FFD98A; }
/* herrería: arrastrar y animación de fusión */
.shopP .invCell.dragging { opacity: .4; }
.shopP .invCell.over { border-color: #F5A524; background: #3A2A1A; }
.shopP .invCell.forging > * { visibility: hidden; }
.forgeFx { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.forgePiece { position: fixed; display: flex; align-items: center; justify-content: center; }
.forgePiece svg { width: 32px; height: 32px; filter: drop-shadow(0 0 6px rgba(242,236,236,.6)); }
.forgeFlash { position: fixed; width: 220px; height: 220px; border-radius: 50%; transform: translate(-50%,-50%) scale(0); opacity: 0; }
/* zona de compra: título arriba y carteles con el mismo estilo low poly del HUD (caras planas, esquinas cortadas) */
#hubUi { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: flex; flex-direction: column; align-items: center; padding: 150px 16px 36px; }
#hubUi[hidden] { display: none; }
#hubUi .hubTitle { position: relative; isolation: isolate; text-align: center; padding: 10px 26px 12px; background: #3A2E2C; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px); }
#hubUi .hubTitle::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: #171313; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
#hubUi .hubTitle b { display: block; font: 900 13px "DM Sans", system-ui, sans-serif; color: #FFD98A; letter-spacing: .16em; text-transform: uppercase; }
#hubUi .hubTitle span { display: block; margin-top: 2px; font: 800 20px "DM Sans", system-ui, sans-serif; color: #F2ECEC; }
#hubGo { display: none; }
/* a los pocos segundos el cartel queda chico en la esquina, junto al cuadro de vida (si no hay HUD, arriba a la izquierda) */
#hubUi .hubTitle { transform-origin: 50% 50%; }
#hubUi .hubTitle.chico { position: fixed; left: 16px; top: 104px; text-align: left; padding: 6px 14px 7px; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
#hubUi .hubTitle.chico::before { inset: 2px; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
#hubUi .hubTitle.chico b { font-size: 9px; letter-spacing: .14em; }
#hubUi .hubTitle.chico span { margin-top: 0; font-size: 13px; }
#hubAsk { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(17,17,17,.6); }
#hubAsk[hidden] { display: none; }
#hubAsk .hubAskCard { position: relative; isolation: isolate; width: min(460px, calc(100% - 32px)); padding: 24px 24px 20px; text-align: center; background: #FFD98A; clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); }
#hubAsk .hubAskCard::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: #171313; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
#hubAsk p { margin: 0 0 18px; font: 700 19px/1.4 "DM Sans", system-ui, sans-serif; color: #F2ECEC; }
#hubAsk .hubAskBtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#hubAsk button { font: 800 15px "DM Sans", system-ui, sans-serif; color: #F2ECEC; background: #3A2E2C; border: 0; border-radius: 0; padding: 11px 22px; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
#hubAsk button:hover, #hubAsk button:focus-visible { background: #5E130D; outline: none; }
#hubYes { background: #C8402D !important; }
#hubYes:hover, #hubYes:focus-visible { background: #9C2315 !important; }
#hubYes:disabled { background: #3A2E2C !important; color: #7A6666; cursor: not-allowed; }
#hubRenacer { color: #FFD98A !important; }
/* en el celular el cartel es más chico de entrada y en la esquina */
body.tactil #hubUi { padding-top: 84px; }
body.tactil #hubUi .hubTitle:not(.chico) { padding: 7px 18px 8px; }
body.tactil #hubUi .hubTitle:not(.chico) b { font-size: 10px; }
body.tactil #hubUi .hubTitle:not(.chico) span { font-size: 15px; }
body.tactil #hubUi .hubTitle.chico { padding: 4px 10px 5px; }
body.tactil #hubUi .hubTitle.chico b { font-size: 7px; }
body.tactil #hubUi .hubTitle.chico span { font-size: 10px; }
