/* BUT IT'S MATH — boutique en jeu (js/shop.js) + SIGMA dans un coin (js/mascot.js) */

/* ---------- SIGMA dans un coin (js/mascot.js) ---------- */
.sigcorner { position: absolute; left: 0; top: 0; width: 132px; height: 116px; z-index: 19; touch-action: none; cursor: grab; transition: transform .28s cubic-bezier(.2,1.3,.4,1); -webkit-tap-highlight-color: transparent; }
.sigcorner.hidden { display: none; }
.sigcorner.drag { transition: none; cursor: grabbing; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.sigcorner.passive { pointer-events: none; }
.sigcorner canvas { display: block; pointer-events: none; }
.sigcorner.sigblocked { opacity: 0; pointer-events: none; transition: opacity .15s; }
/* accueil : SIGMA, plus grand, dans le bandeau de la salle, a droite du titre ; zone de tap autour de lui seulement */
#stage .vhero .armasc { right: -6px; bottom: -2px; width: 340px; height: 176px; transform: none; justify-content: flex-start; }
.sighit { position: absolute; left: 0; bottom: 0; width: 110px; height: 150px; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
body.nomasc .armasc, body.nomasc .sigcorner { display: none !important; }

/* ---------- bouton 🛒 (js/shop.js) : casino = à côté du « ? » ; arcade = dans la barre du haut, à gauche du « ? » ---------- */
#bShop { position: absolute; z-index: 21; padding: 0; display: flex; align-items: center; justify-content: center; border-color: rgba(255,207,61,.45); }
#bShop .cart { font-size: 30px; line-height: 1; filter: drop-shadow(0 0 6px rgba(255,207,61,.45)); }
#bShop[data-fam="casino"] { right: 106px; top: 122px; }
#bShop[data-fam="arcade"] { right: 168px; top: 38px; width: 56px; height: 56px; }
#bShop[data-fam="arcade"] .cart { font-size: 26px; }
#stage.arcgame #stats { margin-right: 128px; }
#bShop.dim { opacity: .4; }
#bShop .shdot { display: none; position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: #ff3d5e; box-shadow: 0 0 10px rgba(255,61,94,.8); border: 2px solid #120a0c; }
#bShop.new .shdot { display: block; animation: shPing 1.6s ease-in-out infinite; }
@keyframes shPing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ---------- la feuille (fond léger : le jeu reste visible en haut pour l'aperçu en direct) ---------- */
.modal.shopsheet { background: linear-gradient(rgba(3,7,5,0) 0, rgba(3,7,5,.15) 380px, rgba(3,7,5,.8) 520px); align-items: flex-end; z-index: 62; }
.shopbox { width: 100%; max-width: 720px; height: 770px; padding: 22px 22px 0; border-radius: 26px 26px 0 0; gap: 10px; text-align: left; animation: shUp .28s cubic-bezier(.2,1.1,.4,1); }
@keyframes shUp { from { transform: translateY(70%); } to { transform: none; } }
.shhead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding-right: 70px; }
.shhead h5 { margin: 0; grid-column: 1 / 3; font: 800 18px/1 'Barlow Semi Condensed'; letter-spacing: 4px; color: #ffcf3d; }
.shhead h3 { margin: 0; font: 900 34px/1.05 Montserrat; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shbal { display: flex; gap: 14px; }
.shbal span { display: flex; align-items: center; gap: 6px; font-size: 24px; }
.shbal b { font: 900 28px Montserrat; color: #ffcf3d; font-variant-numeric: tabular-nums; }
.shbal .ico-chip { width: 28px; height: 28px; }
.shprog { grid-column: 1 / 3; position: relative; height: 30px; border-radius: 15px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,207,61,.3); overflow: hidden; margin-top: 6px; }
.shprog i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ffcf3d, #ff8a3d); transition: width .4s; }
.shprog span { position: relative; display: block; text-align: center; font: 800 17px/30px 'Barlow Semi Condensed'; letter-spacing: 1.5px; color: #fff; text-shadow: 0 1px 2px #000; }
.shscroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 2px 40px; }
.shscroll h4 { margin: 16px 0 8px; font: 800 17px/1.2 'Barlow Semi Condensed'; letter-spacing: 3px; color: #ffcf3d; }
.shscroll h4 small { display: block; font: 600 14px 'Barlow Semi Condensed'; letter-spacing: 1px; color: #6f8178; }
.shrow { display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 8px 12px; margin-bottom: 8px; border-radius: 14px; background: rgba(12,22,17,.9); border: 1px solid rgba(110,170,130,.28); }
.shrow.own { border-color: rgba(92,240,138,.4); }
.shrow.on { border-color: rgba(255,207,61,.75); box-shadow: 0 0 16px rgba(255,207,61,.14); }
.shrow.tried { border-color: #8ff6ff; box-shadow: 0 0 16px rgba(143,246,255,.2); }
.shcv { flex: none; width: 72px; height: 72px; border-radius: 12px; background: radial-gradient(circle at 50% 45%, #1a2a22, #07100c); border: 1px solid rgba(150,220,190,.22); }
.shtxt { flex: 1; min-width: 0; }
.shtxt b { display: flex; align-items: center; gap: 8px; font: 900 23px/1.1 Montserrat; color: #fff; }
.shtxt small { display: block; margin-top: 3px; font: 600 16px/1.2 'Barlow Semi Condensed'; color: #8fa59a; }
.shact { display: flex; gap: 8px; margin-top: 6px; }
.shact .opt { min-height: 50px; padding: 6px 14px; font-size: 16px; }
.shact .opt.on { background: #ffcf3d; color: #141414; border-color: #ffcf3d; }
.shact .shtry.on { background: #8ff6ff; border-color: #8ff6ff; }
.shnew { font: 900 13px/1 Montserrat; font-style: normal; padding: 4px 7px; border-radius: 6px; background: #ff3d5e; color: #fff; letter-spacing: 1px; animation: shPing 1.6s ease-in-out infinite; }
.shbuy { flex: none !important; width: 150px; height: 84px; font-size: 24px !important; padding: 0; }
.shbuy small { font-size: 13px !important; }
.shbuy .ico-chip { width: 22px; height: 22px; vertical-align: -3px; }
.shbuy.confirm { background: linear-gradient(#5cf08a, #2fbf62) !important; color: #06150b; }
.shrow .pzown { width: 150px; font-size: 20px; }
.shearn { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255,207,61,.4); background: rgba(255,207,61,.05); }
.shearn span { flex: 1; font: 600 17px/1.25 'Barlow Semi Condensed'; color: #c9d3cc; }
.shearn .ico-chip { width: 20px; height: 20px; vertical-align: -3px; }
.shearn .opt { flex: none; min-height: 60px; font-size: 16px; color: #ffcf3d; }
.shfoot { margin: 16px 0 0; text-align: center; font: 600 15px 'Barlow Semi Condensed'; color: #6f8178; letter-spacing: 1px; }
/* fête du 1er équipement */
.shconf { position: absolute; left: 50%; top: 62%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.shconf i { position: absolute; width: 14px; height: 8px; border-radius: 2px; animation: shConf 1.3s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes shConf { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 420px)) rotate(var(--r)); opacity: 0; } }
/* écran de fin de l'arcade : bouton SKINS */
.arshop { height: 72px !important; font-size: 22px !important; margin-top: -2px; }
.arshop small { font-size: 14px !important; }
/* UX3 : pendant une partie d'arcade, SIGMA (coin) se fait discret pour ne jamais masquer une menace */
.sigcorner.passive canvas { opacity: .62; transform: scale(.82); transform-origin: 50% 0; transition: opacity .3s, transform .3s; }
