/* Valute (lingotti, diamanti, cristalli) */
.cico { height: 1.25em; width: auto; max-width: 1.5em; object-fit: contain; vertical-align: -.25em; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); }
.chip.curgrp { gap: 16px; padding: 3px 14px 3px 8px; font-size: clamp(14px, 2.4vh, 20px); }
.curgrp span { display: flex; align-items: center; gap: 5px; }
.curgrp .cico { height: clamp(22px, 3.6vh, 30px); max-width: 34px; }
.btn .cico { height: 1.1em; margin: 0 2px; }
@media (max-width: 900px) { .topbar { gap: 8px; } .chip.curgrp { gap: 10px; padding: 2px 10px 2px 6px; } }

/* costo in lingotti sotto POTENZIA */
.upcost { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; font-family: var(--font); font-size: 18px; color: #ffd36b; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.upcost .cico { height: 24px; } .upcost.no { color: #ff6a5a; }

/* home: bottone Lucky Souls nella barra in alto */
.sqbtn.lucky { position: relative; }
.sqbtn.lucky .lsi { height: clamp(28px, 4.6vh, 40px); width: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); animation: lsbob 2.4s ease-in-out infinite; }
@keyframes lsbob { 50% { transform: translateY(-2px) scale(1.07); } }
.sqbtn.lucky .cnt { position: absolute; top: -9px; right: -9px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--red, #e23b3b); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font); font-size: 14px; color: #fff; }

/* shop: sezione Lucky Souls */
.azb.lucky { background: linear-gradient(#3d2a63, #150d28); }
.azb.lucky .azb-info h3 { color: #ffd36b; }
.azb.lucky .azb-info p { color: #efe3ff; }
.lk-stars { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px 10px; }
.lk-stars .lsi { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); animation: lsbob 2.4s ease-in-out infinite; }
.lk-stars .lsi:nth-child(2n) { animation-delay: -.8s; } .lk-stars .lsi:nth-child(3n) { animation-delay: -1.6s; }

/* modal inventario */
#modal.lucky .modal-box { max-width: 640px; }
.lk-inv { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0 14px; min-height: 40px; }
.lk-item { position: relative; display: grid; justify-items: center; gap: 2px; width: 118px; padding: 10px 6px 8px; border-radius: 12px; border: 3px solid var(--rc); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 35%, #120c06), #120c06 78%); color: #fff; cursor: pointer; font-family: var(--font); }
.lk-item .lsi { width: 78px; height: 78px; object-fit: contain; animation: lsbob 2.4s ease-in-out infinite; }
.lk-item .lk-n { position: absolute; top: 4px; right: 6px; font-size: 22px; font-weight: 400; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.lk-item small { font-size: 12px; color: var(--rc); }
.lk-item:active { transform: translateY(2px); }

/* scena di apertura */
.lk { position: fixed; inset: 0; z-index: 80; overflow: hidden; background: #0b0710; user-select: none; -webkit-user-select: none; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: lkin .3s ease-out; }
@keyframes lkin { from { opacity: 0; } }
.lk-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 46%, rgba(var(--rgb), .55) 0%, rgba(var(--rgb), .2) 38%, #0b0710 78%); transition: background .5s; }
.lk-name { position: absolute; top: 5vh; left: 0; right: 0; z-index: 3; text-align: center; font-family: var(--font); font-size: 6.4vh; letter-spacing: 3px; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 0 0 28px currentColor; pointer-events: none; }
.lk-stage { position: relative; z-index: 2; width: min(52vh, 74vw); aspect-ratio: 1; margin-top: -3vh; cursor: pointer; display: grid; place-items: center; }
.lk-aura { position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; opacity: .35; background: radial-gradient(circle, rgba(var(--ac, var(--rgb)), .9) 0%, rgba(var(--ac, var(--rgb)), .3) 45%, transparent 70%); animation: lkaura 2.2s ease-in-out infinite; }
@keyframes lkaura { 50% { transform: scale(1.1); opacity: .55; } }
.lk-aura.on { animation: lkabs .65s ease-in forwards; }
@keyframes lkabs { 0% { transform: scale(.7); opacity: .2; } 100% { transform: scale(1.35); opacity: 1; } }
.lk-img { position: relative; z-index: 1; width: calc(100% * var(--ss, 1)); height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(var(--rgb), .8)); animation: lkfloat 2.6s ease-in-out infinite; }
@keyframes lkfloat { 50% { transform: translateY(-1.6vh) rotate(1.5deg); } }
.lk-img.hit { animation: lkhit .65s ease-in forwards; }
@keyframes lkhit { 0% { transform: scale(1); } 25% { transform: scale(.88); } 100% { transform: scale(1.12); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(var(--ac, var(--rgb)), 1)) brightness(1.5); } }
.lk-img.new { animation: lknew 1s cubic-bezier(.2, 1.4, .4, 1) both, lkfloat 2.6s ease-in-out 1s infinite; }
@keyframes lknew { 0% { transform: scale(.15) rotate(-40deg); filter: brightness(4); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); filter: brightness(1.6); opacity: 1; } 100% { transform: none; filter: none; opacity: 1; } }
.lk-stage.nope .lk-img { animation: lknope .45s linear both; }
@keyframes lknope { 0% { transform: scale(1.12); } 20% { transform: translateX(-2.4vh) scale(1.06); } 40% { transform: translateX(2.4vh) scale(1.02); } 60% { transform: translateX(-1.4vh); } 80% { transform: translateX(1vh); } 100% { transform: none; } }
.lk-pips { position: absolute; z-index: 3; bottom: 15vh; left: 0; right: 0; display: flex; gap: 2.4vh; justify-content: center; pointer-events: none; }
.lk-pips i { width: 3.2vh; height: 3.2vh; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255, 255, 255, .25); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.lk-pips i.ko { background: #ff3b3b; box-shadow: 0 0 14px #ff3b3b, inset 0 2px 4px rgba(255, 255, 255, .4); }
.lk-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.lk-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; }
.lk-hint { position: absolute; z-index: 4; bottom: 6vh; left: 0; right: 0; text-align: center; font-family: var(--font); font-size: 3.6vh; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; animation: pkpulse 1.2s ease-in-out infinite; pointer-events: none; }
.lk-skip { position: absolute; z-index: 7; top: 2vh; right: 2vw; }

/* icone nelle tappe della Trophy Road */
.rt-r { position: relative; }
.rt-r .cico, .rt-r .lsi { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 74%; max-height: 74%; object-fit: contain; vertical-align: 0; }
.rt-r .lsi { max-width: 86%; max-height: 86%; }

/* barre in alto delle schermate: con tre valute lo spazio e' poco */
@media (max-width: 1100px) {
  .sub-top { gap: 8px; }
  .sub-top .chip.curgrp { gap: 9px; padding: 2px 9px 2px 5px; font-size: 14px; }
  .sub-top .curgrp .cico { height: 20px; }
  .sub-top h2 small { display: none; }
  .sub-top .filters { flex-wrap: nowrap; gap: 5px; min-width: 0; }
  .sub-top .filters button { padding: 3px 9px 4px; font-size: 13px; }
}
