/* TOWERS tab: equipped tower slots, the Collect button and cube totals. */
.view-towers { max-width: 980px; margin: 0 auto; }
.tw-panel { padding: 1.2rem 1.3rem 1.5rem; border-radius: 18px; }
.tw-h { margin: 1.6rem 0 0.7rem; font: 400 1.4rem var(--font-display); text-align: center; }

.cube-img { width: 40px; height: 40px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3)); }
.cube-img.sm { width: 26px; height: 26px; }
.cube-img.xs { width: 18px; height: 18px; }

/* the 3 slots */
.tw-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; justify-items: center; }
.tw-slot {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; max-width: 250px;
  padding: 0.7rem 0.6rem 0.8rem; border-radius: 16px; border: 1px dashed var(--line); background: rgba(0, 0, 0, 0.18);
}
.tw-slot.filled { border-style: solid; }
.tw-slot-num { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tw-slot .card { width: 100%; max-width: 200px; }
.tw-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; min-height: 200px;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 800 0.95rem var(--font-body); cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tw-empty:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.tw-plus { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 2px dashed currentColor; font: 400 2rem var(--font-display); }
.tw-drops { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; justify-content: center; font-size: 0.8rem; font-weight: 800; color: var(--muted); }
.tw-slot-actions { display: flex; gap: 0.4rem; }
.tw-small { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

/* collect button + what you just got */
.tw-collect-row { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-top: 1.3rem; }
.tw-collect { position: relative; overflow: hidden; min-width: 230px; padding: 0.9rem 2rem; font-size: 1.25rem; font-family: var(--font-display); font-weight: 400; }
.tw-collect .tw-btn-text { position: relative; z-index: 1; }
.tw-cool { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(0, 0, 0, 0.28); }
.tw-collect:disabled { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); filter: saturate(0.6) brightness(0.85); box-shadow: 0 4px 0 #b9770a; }
.tw-gain { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; min-height: 2rem; }
.tw-gain.pop { animation: tw-pop 0.35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tw-pop { from { transform: translateY(10px) scale(0.9); opacity: 0; } }
.tw-gain-chip { display: flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.7rem 0.15rem 0.6rem; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); font: 400 1.1rem var(--font-display); }

/* cube totals */
.tw-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.8rem; }
.tw-total {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.8rem 0.5rem; border-radius: 14px;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line);
}
.tw-total .cube-img { width: 52px; height: 52px; }
.tw-total b { font: 400 1.6rem var(--font-display); font-variant-numeric: tabular-nums; }
.tw-total span { font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.tw-total.bump { animation: coin-bump 0.45s; }

/* picker */
.tw-dialog { max-width: min(960px, 96vw); width: 100%; }
.tw-picker .admin-search { width: 100%; max-width: 420px; margin: 0.4rem auto 1rem; display: block; }
.tw-pick-grid { max-height: 60vh; overflow-y: auto; padding: 0.4rem; }
.tw-pick-grid .card { cursor: pointer; }
.tw-pick-grid .card.fx-off .card-tilt { display: none; }

@media (max-width: 720px) {
  .tw-slots { grid-template-columns: 1fr; }
  .tw-slot { max-width: 260px; }
}
