/* =====================================================================
   INVENTORY & ITEMS
   ===================================================================== */
.sq-inventory-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 100px;
  box-sizing: border-box;
}

.sq-inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border1);
  margin-bottom: 16px;
}

.sq-inventory-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sq-inventory-sort-select {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
  background: var(--bg3);
  border-color: var(--border2);
}

.sq-inventory-admin-btn {
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: var(--gold);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s var(--silk);
}

.sq-inventory-admin-btn:hover {
  background: rgba(234, 179, 8, 0.28);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.35);
}

.sq-inventory-admin-btn svg,
.sq-inventory-admin-btn .lucide {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.sq-inventory-title-group h2 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  margin: 0 0 4px;
}

.sq-inventory-title-group p {
  font-size: 0.8rem;
  color: var(--text3);
  margin: 0;
}

.sq-inventory-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text2);
}

.sq-inventory-empty .sq-empty-icon {
  font-size: 2.8rem;
  color: var(--text3);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.sq-inventory-empty h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 6px;
}

.sq-inventory-empty p {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 18px;
}

.sq-inventory-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.sq-inventory-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sq-inventory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.35);
}

.sq-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sq-item-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fde047;
  flex-shrink: 0;
}

.sq-item-title-wrap {
  flex: 1;
  min-width: 0;
}

.sq-item-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.sq-item-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sq-item-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.45;
  margin: 0 0 16px;
  flex: 1;
}

.sq-item-actions {
  display: flex;
  gap: 8px;
}

.sq-item-targets-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sq-targets-box {
  background: rgba(10, 15, 26, 0.6);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.sq-targets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-target-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  gap: 8px;
}

.sq-target-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
}

.sq-poi-item-playground {
  border-left: 3px solid var(--green);
}

.sq-poi-item-playground.has-cooldown {
  border-left-color: #F5B041;
}

.sq-poi-item-playground .sq-poi-item-icon {
  color: var(--green);
}

.sq-poi-item-transit-stop {
  border-left: 3px solid #818cf8;
}

.sq-poi-item-transit-stop.has-cooldown {
  border-left-color: #F5B041;
}

.sq-poi-item-transit-stop .sq-poi-item-icon {
  color: #818cf8;
}

.sq-poi-item-supermarket {
  border-left: 3px solid #38bdf8;
}

.sq-poi-item-supermarket.has-cooldown {
  border-left-color: #f59e0b;
}

.sq-poi-item-supermarket .sq-poi-item-icon {
  color: #38bdf8;
}

/* Supermarket Shop Modal & Item Grid (Responsive Widescreen Layout) */
.sq-shop-modal {
  max-width: 820px !important;
  width: 95vw !important;
  padding: 14px 16px !important;
  background: radial-gradient(circle at top right, rgba(var(--accent-deep-rgb), 0.35) 0%, rgba(var(--bg-panel-rgb), 0.98) 75%) !important;
  border: 1px solid rgba(var(--accent-vivid-rgb), 0.3) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(var(--accent-vivid-rgb), 0.15) !important;
}

.sq-supermarket-modal {
  max-width: 860px !important;
}

.sq-gas-station-modal {
  max-width: 1040px !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.sq-gas-station-modal #gas-shop-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  overflow-y: auto !important;
  max-height: 65vh !important;
  padding-right: 4px;
}

.sq-shop-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 8px 0 !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sq-shop-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sq-shop-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sq-shop-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.sq-poi-header {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 0 10px 0 !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sq-poi-header > .sq-poi-header-left {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sq-poi-header-desc {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}

.sq-poi-header-desc svg,
.sq-poi-header-desc .lucide {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.85;
}

.sq-poi-header-center {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  min-width: 0;
}

.sq-poi-center-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-vivid);
  white-space: nowrap;
}

.sq-poi-center-info svg,
.sq-poi-center-info .lucide {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sq-poi-header > .sq-poi-header-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sq-poi-header-balances {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sq-poi-balance-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.sq-poi-balance-item svg,
.sq-poi-balance-item .lucide {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sq-poi-balance-cp {
  color: #fde047;
}

.sq-poi-balance-kp {
  color: #38bdf8;
}

.sq-shop-timer-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(var(--accent-deep-rgb), 0.12);
  border: 1px solid rgba(var(--accent-vivid-rgb), 0.25);
  border-radius: 8px;
  margin-bottom: 10px;
}

.sq-shop-cycle-badge {
  font-size: 0.7rem;
  background: rgba(var(--accent-vivid-rgb), 0.15);
  border: 1px solid rgba(var(--accent-vivid-rgb), 0.3);
  color: var(--sky2);
  padding: 2px 6px;
  border-radius: 4px;
}

.sq-shop-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: none !important;
  overflow: visible !important;
  padding: 4px 2px 0 2px;
}

@media (max-width: 480px) {
  .sq-shop-items-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.sq-shop-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(var(--bg-rgb), 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
  min-height: 96px;
}

.sq-shop-card:hover {
  transform: translateY(-1.5px);
  border-color: rgba(var(--accent-vivid-rgb), 0.45);
}

.sq-shop-card.sold-out {
  opacity: 0.55;
  filter: grayscale(0.4);
  border-color: rgba(239, 68, 68, 0.25) !important;
  box-shadow: none !important;
}

/* Rarity containers for supermarket shop cards */
.sq-shop-card.sq-item-rarity-gewoehnlich {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.12) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(148, 163, 184, 0.1);
}

.sq-shop-card.sq-item-rarity-selten {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(56, 189, 248, 0.15);
}

.sq-shop-card.sq-item-rarity-episch {
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.16) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 16px rgba(192, 132, 252, 0.2);
}

.sq-shop-card.sq-item-rarity-legendaer {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.18) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 18px rgba(251, 191, 36, 0.22);
}

.sq-shop-card.sq-item-rarity-einzigartig {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.2) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 22px rgba(244, 63, 94, 0.25);
}

.sq-shop-card.sq-item-rarity-gewoehnlich:hover:not(.sold-out) {
  border-color: rgba(148, 163, 184, 0.65);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(148, 163, 184, 0.22);
}

.sq-shop-card.sq-item-rarity-selten:hover:not(.sold-out) {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 22px rgba(56, 189, 248, 0.3);
}

.sq-shop-card.sq-item-rarity-episch:hover:not(.sold-out) {
  border-color: rgba(192, 132, 252, 0.8);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 24px rgba(192, 132, 252, 0.35);
}

.sq-shop-card.sq-item-rarity-legendaer:hover:not(.sold-out) {
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 28px rgba(251, 191, 36, 0.4);
}

.sq-shop-card.sq-item-rarity-einzigartig:hover:not(.sold-out) {
  border-color: rgba(244, 63, 94, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 32px rgba(244, 63, 94, 0.45);
}

.sq-shop-card-icon.sq-item-rarity-gewoehnlich {
  background: radial-gradient(circle, rgba(148, 163, 184, 0.22) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #cbd5e1;
}

.sq-shop-card-icon.sq-item-rarity-selten {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.sq-shop-card-icon.sq-item-rarity-episch {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(192, 132, 252, 0.55);
  color: #c084fc;
}

.sq-shop-card-icon.sq-item-rarity-legendaer {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fbbf24;
}

.sq-shop-card-icon.sq-item-rarity-einzigartig {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(244, 63, 94, 0.65);
  color: #f43f5e;
}

.sq-shop-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding-right: 74px;
}

/* Shop Container Inventory Badge (Top-Right, similar to Inventory) */
.sq-shop-inv-badge {
  position: absolute;
  top: -7px;
  right: 6px;
  background: rgba(var(--bg-panel-rgb), 0.94);
  border: 1.5px solid var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 2.5px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 6px rgba(251, 191, 36, 0.3);
  z-index: 5;
  pointer-events: none;
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.sq-shop-inv-badge.is-zero {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--text-soft);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.sq-shop-inv-badge .sq-shop-inv-num {
  color: var(--gold);
  font-weight: 800;
}

.sq-shop-inv-badge.is-zero .sq-shop-inv-num {
  color: var(--text2);
}

.sq-shop-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.sq-shop-card-info {
  flex: 1;
  min-width: 0;
}

.sq-shop-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-shop-card-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.sq-shop-owned-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sq-shop-stock-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
}

.sq-shop-stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.sq-shop-stock-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.sq-shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sq-shop-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  color: #fde047;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
}

.sq-shop-card-desc {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin: 5px 0 6px 0;
  line-height: 1.35;
}

/* Fragment Crafting & Artifact Styles */
.sq-fragment-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.sq-frag-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.sq-frag-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-vivid) 0%, #facc15 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.sq-frag-count {
  font-size: 0.72rem;
  color: var(--text2);
  font-weight: 500;
}

/* Item Containers Theming by Rarity (Inventory Cards, Loot Boxes & Modals) */
.sq-loot-item-box {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

/* Top Accent Line for Colored Containers */
.sq-inventory-card::before,
.sq-loot-item-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}

.sq-item-rarity-gewoehnlich::before {
  background: linear-gradient(90deg, #64748b, #94a3b8, #cbd5e1);
}

.sq-item-rarity-selten::before {
  background: linear-gradient(90deg, #0284c7, #38bdf8, #7dd3fc);
}

.sq-item-rarity-episch::before {
  background: linear-gradient(90deg, #7e22ce, #c084fc, #e9d5ff);
}

.sq-item-rarity-legendaer::before {
  background: linear-gradient(90deg, #d97706, #fbbf24, #fef08a);
}

.sq-item-rarity-einzigartig::before {
  background: linear-gradient(90deg, #be123c, #f43f5e, #fda4af);
}

/* Container Backgrounds, Borders & Ambient Rarity Glows */
.sq-inventory-card.sq-item-rarity-gewoehnlich,
.sq-loot-item-box.sq-item-rarity-gewoehnlich {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.12) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(148, 163, 184, 0.12);
}

.sq-inventory-card.sq-item-rarity-selten,
.sq-loot-item-box.sq-item-rarity-selten {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.2);
}

.sq-inventory-card.sq-item-rarity-episch,
.sq-loot-item-box.sq-item-rarity-episch {
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.16) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 22px rgba(192, 132, 252, 0.25);
}

.sq-inventory-card.sq-item-rarity-legendaer,
.sq-loot-item-box.sq-item-rarity-legendaer {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.18) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 26px rgba(251, 191, 36, 0.28);
}

.sq-inventory-card.sq-item-rarity-einzigartig,
.sq-loot-item-box.sq-item-rarity-einzigartig {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.2) 0%, rgba(15, 23, 42, 0.9) 65%);
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(244, 63, 94, 0.32);
}

/* Hover effects for Inventory Cards */
.sq-inventory-card.sq-item-rarity-gewoehnlich:hover {
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 22px rgba(148, 163, 184, 0.22);
}

.sq-inventory-card.sq-item-rarity-selten:hover {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 26px rgba(56, 189, 248, 0.3);
}

.sq-inventory-card.sq-item-rarity-episch:hover {
  border-color: rgba(192, 132, 252, 0.75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 30px rgba(192, 132, 252, 0.35);
}

.sq-inventory-card.sq-item-rarity-legendaer:hover {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 34px rgba(251, 191, 36, 0.4);
}

.sq-inventory-card.sq-item-rarity-einzigartig:hover {
  border-color: rgba(244, 63, 94, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 38px rgba(244, 63, 94, 0.45);
}

/* Item Icon Wraps */
.sq-item-rarity-gewoehnlich .sq-item-icon-wrap {
  border-color: rgba(148, 163, 184, 0.45);
  color: #cbd5e1;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.sq-item-rarity-selten .sq-item-icon-wrap {
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.sq-item-rarity-episch .sq-item-icon-wrap {
  border-color: rgba(192, 132, 252, 0.55);
  color: #c084fc;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.sq-item-rarity-legendaer .sq-item-icon-wrap {
  border-color: rgba(251, 191, 36, 0.6);
  color: #fbbf24;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.sq-item-rarity-einzigartig .sq-item-icon-wrap {
  border-color: rgba(244, 63, 94, 0.65);
  color: #f43f5e;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28) 0%, rgba(15, 23, 42, 0.8) 100%);
}

/* Fragment Progress Bar Fills Matching Rarity */
.sq-item-rarity-selten .sq-frag-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.sq-item-rarity-episch .sq-frag-fill {
  background: linear-gradient(90deg, #7e22ce, #c084fc);
}

.sq-item-rarity-legendaer .sq-frag-fill {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.sq-item-rarity-einzigartig .sq-frag-fill {
  background: linear-gradient(90deg, #be123c, #f43f5e);
}

.sq-item-rarity-gewoehnlich .sq-frag-fill {
  background: linear-gradient(90deg, #475569, #94a3b8);
}

/* Playground Loot Modal & Card Upgrade Modal */
.sq-loot-modal {
  max-width: 620px !important;
  width: 95vw !important;
  animation: sqModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-upgrade-modal {
  animation: sqModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sqModalPop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.sq-loot-cp-burst {
  position: relative;
  overflow: hidden;
}

.sq-loot-cp-burst::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: sqSpinPulse 6s linear infinite;
}

@keyframes sqSpinPulse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   CREATURE HUNTING, LICENSES & SEGMENTED TABS
   ========================================================================== */
.sq-seg-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--bg-panel-rgb), 0.85);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
}

.sq-seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text2);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--silk);
  white-space: nowrap;
}

.sq-seg-tab svg,
.sq-seg-tab .lucide {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.sq-seg-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.sq-seg-tab.active {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.45);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.sq-badge-license-office {
  background: rgba(253, 224, 71, 0.18);
  border: 1px solid rgba(253, 224, 71, 0.5);
  color: #fde047;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sq-badge-school {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-badge-schools {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.sq-badge-bank {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-badge-banks {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.sq-badge-altar {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.55);
  color: #d8b4fe;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-badge-altars {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #c084fc;
}

/* School & Education Ranks Modal */
.sq-school-modal {
  max-width: 1040px !important;
  width: 95vw !important;
}

/* Bank & Exchange Modal */
.sq-bank-modal {
  max-width: 760px !important;
  width: 95vw !important;
}

.sq-school-ranks-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
}

.sq-school-ranks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.sq-school-ranks-table th {
  background: rgba(var(--bg-panel-rgb), 0.85);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.sq-school-mobile-card {
  display: none !important;
}

.sq-school-desktop-col {
  display: table-cell;
}

.sq-school-ranks-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.sq-school-ranks-table tr:last-child td {
  border-bottom: none;
}

.sq-school-ranks-table tr.rank-learned {
  opacity: 0.75;
  background: rgba(34, 197, 94, 0.03);
}

.sq-school-ranks-table tr.rank-current {
  background: rgba(56, 189, 248, 0.12);
  outline: 1px solid rgba(56, 189, 248, 0.4);
}

.sq-school-ranks-table tr.rank-next {
  background: rgba(250, 204, 21, 0.08);
  box-shadow: inset 3px 0 0 #facc15;
}

.sq-school-ranks-table tr.rank-locked {
  opacity: 0.45;
}

.sq-rank-lvl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.76rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
}

.sq-school-ranks-table tr.rank-current .sq-rank-lvl-badge {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.sq-school-ranks-table tr.rank-next .sq-rank-lvl-badge {
  background: #ca8a04;
  border-color: #facc15;
  color: #ffffff;
}

.sq-rank-cost-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #facc15;
}

.sq-rank-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.sq-rank-status-tag.tag-learned {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.sq-rank-status-tag.tag-current {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.sq-rank-status-tag.tag-locked {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.sq-badge-gas-station {
  background: rgba(251, 113, 133, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.5);
  color: #fda4af;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#view-licenses .sq-leaderboard-table-wrap {
  overflow-x: hidden;
}

.sq-licenses-table {
  width: 100%;
  table-layout: fixed;
}

.sq-licenses-table th,
.sq-licenses-table td {
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  padding: 10px 10px;
}

.sq-lic-mobile-card {
  display: none !important;
}

.sq-lic-desktop-col {
  display: table-cell;
}

.sq-licenses-table th:nth-child(1),
.sq-licenses-table td.sq-lic-dt-name {
  width: 32%;
}

.sq-licenses-table th:nth-child(2),
.sq-licenses-table td.sq-lic-dt-type {
  width: 16%;
}

.sq-licenses-table th:nth-child(3),
.sq-licenses-table td.sq-lic-dt-item {
  width: 20%;
}

.sq-licenses-table th:nth-child(4),
.sq-licenses-table td.sq-lic-dt-fee {
  width: 11%;
}

.sq-licenses-table th:nth-child(5),
.sq-licenses-table td.sq-lic-dt-status {
  width: 21%;
  text-align: right;
}

.sq-lic-dt-status .sq-license-toggle-btn,
.sq-lic-dt-status .sq-license-not-acquired {
  max-width: 100%;
  white-space: normal;
  justify-content: center;
}

@media (max-width: 768px) {

  .sq-licenses-table,
  .sq-licenses-table tbody,
  .sq-licenses-table tr {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sq-licenses-table thead {
    display: none !important;
  }

  .sq-lic-desktop-col {
    display: none !important;
  }

  .sq-licenses-table td.sq-lic-mobile-card {
    display: block !important;
    width: 100% !important;
    padding: 10px 8px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .sq-lic-mob-line-1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .sq-lic-mob-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .sq-lic-mob-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .sq-lic-mob-title-wrap {
    display: flex;
    align-items: center;
    gap: 4px 6px;
    min-width: 0;
    flex-wrap: wrap;
  }

  .sq-lic-mob-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.86rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .sq-lic-mob-badge {
    font-size: 0.68rem;
    white-space: normal;
  }

  .sq-lic-mob-status {
    flex-shrink: 0;
    max-width: 45%;
  }

  .sq-lic-mob-status .sq-license-toggle-btn,
  .sq-lic-mob-status .sq-license-not-acquired {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .sq-lic-mob-line-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.76rem;
    width: 100%;
  }

  .sq-lic-mob-rank {
    min-width: 0;
    flex: 1 1 auto;
  }

  .sq-lic-rank-badge {
    white-space: normal;
    word-break: break-word;
    font-size: 0.68rem;
  }

  .sq-lic-mob-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 6px;
    color: #94a3b8;
    font-size: 0.74rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .sq-lic-mob-item {
    color: #fde047;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
  }

  .sq-lic-mob-sep {
    color: #475569;
  }

  .sq-lic-mob-cp {
    color: var(--sky2);
    font-family: var(--font-mono);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .sq-lic-mob-name {
    font-size: 0.80rem;
  }

  .sq-lic-mob-badge {
    font-size: 0.64rem;
  }

  .sq-lic-rank-badge {
    font-size: 0.62rem;
  }

  .sq-lic-mob-meta {
    font-size: 0.70rem;
    gap: 4px;
  }

  .sq-license-toggle-btn {
    padding: 3px 7px;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   LIZENZAMT SHOP MODAL (EXPANDED CONTAINER & CLEAN TABLE)
   ========================================================================== */
.sq-license-office-modal {
  max-width: 1060px !important;
  width: 95vw !important;
  max-height: 88vh !important;
  height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 16px 20px 20px !important;
  background: radial-gradient(circle at top right, rgba(var(--accent-deep-rgb), 0.35) 0%, rgba(var(--bg-panel-rgb), 0.98) 75%) !important;
  border: 1px solid rgba(var(--accent-vivid-rgb), 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(var(--accent-vivid-rgb), 0.2) !important;
  border-radius: 16px !important;
}

.sq-license-office-table-wrap {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(var(--bg-panel-rgb), 0.65);
}

.sq-license-office-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.sq-license-office-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg3);
  z-index: 5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 10px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.sq-license-office-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.sq-license-office-table tbody tr:hover {
  background: rgba(var(--accent-vivid-rgb), 0.05);
}

.sq-license-office-table td {
  padding: 10px 10px;
  vertical-align: middle;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sq-lo-th-lic,
.sq-lo-col-name {
  width: 34%;
}

.sq-lo-th-creature,
.sq-lo-col-type {
  width: 14%;
}

.sq-lo-th-item,
.sq-lo-col-item {
  width: 20%;
}

.sq-lo-th-price,
.sq-lo-col-fee {
  width: 11%;
}

.sq-lo-th-action,
.sq-lo-col-action {
  width: 21%;
  text-align: right;
}

.sq-lo-col-action .sq-btn,
.sq-lo-col-action .sq-shop-stock-badge {
  max-width: 100%;
  white-space: normal !important;
  text-align: center;
  justify-content: center;
}

.sq-license-office-table thead th.sq-lo-th-action {
  text-align: right;
}

.sq-lo-mobile-card {
  display: none !important;
}

.sq-lo-desktop-col {
  display: table-cell;
}

@media (max-width: 768px) {
  .sq-license-office-modal {
    width: 96vw !important;
    max-height: 92vh !important;
    height: 90vh !important;
    padding: 12px 10px 14px !important;
  }

  .sq-license-office-table,
  .sq-license-office-table tbody,
  .sq-license-office-table tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .sq-license-office-table thead {
    display: none !important;
  }

  .sq-lo-desktop-col {
    display: none !important;
  }

  .sq-license-office-table td.sq-lo-mobile-card {
    display: block !important;
    width: 100% !important;
    padding: 10px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
  }

  .sq-lo-mob-row-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .sq-lo-mob-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .sq-lo-mob-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
  }

  .sq-lo-mob-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
  }

  .sq-lo-mob-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.84rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .sq-lo-mob-badge {
    font-size: 0.66rem;
    padding: 1px 5px;
    white-space: nowrap;
  }

  .sq-lo-mob-price {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    color: #fde047;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sq-lo-mob-row-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .sq-lo-mob-submeta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
    min-width: 0;
    flex: 1;
  }

  .sq-lo-mob-item {
    color: #fde047;
    font-weight: 600;
    white-space: normal;
  }

  .sq-lo-mob-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.32;
    margin: 4px 0 5px 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .sq-lo-mob-action {
    flex-shrink: 0;
  }

  /* ==========================================================================
     SCHOOL MODAL & RANKS TABLE (SMARTPHONE RESPONSIVE)
     ========================================================================== */
  .sq-school-modal {
    width: 96vw !important;
    max-height: 92vh !important;
    height: 90vh !important;
    padding: 12px 10px 14px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sq-school-ranks-wrap {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin-top: 6px !important;
    -webkit-overflow-scrolling: touch;
  }

  .sq-school-ranks-table,
  .sq-school-ranks-table tbody,
  .sq-school-ranks-table tr {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sq-school-ranks-table thead {
    display: none !important;
  }

  .sq-school-desktop-col {
    display: none !important;
  }

  .sq-school-ranks-table td.sq-school-mobile-card {
    display: block !important;
    width: 100% !important;
    padding: 10px 10px !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow: hidden;
  }

  .sq-school-mob-row-1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .sq-school-mob-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .sq-school-mob-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px 6px;
    min-width: 0;
    flex-wrap: wrap;
  }

  .sq-school-mob-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.86rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .sq-school-mob-title {
    font-size: 0.72rem;
    color: #38bdf8;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .sq-school-mob-cost {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: #fde047;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sq-school-mob-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.32;
    margin: 4px 0 5px 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .sq-school-mob-row-2 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 4px;
    padding-top: 5px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .sq-school-mob-unlocks {
    min-width: 0;
    flex: 1 1 160px;
  }

  .sq-school-mob-unlock-pill {
    font-size: 0.68rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
    max-width: 100%;
  }

  .sq-school-mob-unlock-pill svg {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .sq-school-mob-action {
    flex-shrink: 0;
    margin-left: auto;
  }

  /* ==========================================================================
     SHOPS, GAS STATIONS & MODALS (SMARTPHONE RESPONSIVE)
     ========================================================================== */
  .sq-shop-modal,
  .sq-supermarket-modal,
  .sq-gas-station-modal {
    width: 96vw !important;
    max-height: 92vh !important;
    height: 90vh !important;
    padding: 12px 10px 14px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sq-shop-modal .sq-shop-items-grid,
  .sq-supermarket-modal .sq-shop-items-grid,
  .sq-gas-station-modal #gas-shop-items-grid {
    grid-template-columns: 1fr !important;
    flex: 1 1 auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    gap: 8px !important;
    padding-right: 4px !important;
    -webkit-overflow-scrolling: touch;
  }

  .sq-shop-card {
    padding: 8px 10px !important;
    min-height: auto !important;
  }

  .sq-shop-card-desc {
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
    margin: 3px 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sq-shop-timer-banner {
    padding: 6px 10px !important;
    margin-bottom: 6px !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .sq-shop-timer-banner>div {
    align-items: flex-start !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .sq-shop-timer-banner svg {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
  }

  .sq-shop-timer-banner span:not(.sq-badge) {
    font-size: 0.74rem !important;
    line-height: 1.32 !important;
    display: inline !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
  }

  .sq-shop-modal-header {
    padding-bottom: 4px !important;
    margin-bottom: 6px !important;
  }

  .sq-shop-title {
    font-size: 1rem !important;
  }

  .sq-shop-badges-row {
    gap: 5px !important;
    flex-wrap: wrap !important;
  }

  .sq-shop-badges-row .sq-badge {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }

  .sq-poi-header {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }

  .sq-poi-header > .sq-poi-header-left {
    grid-column: 1;
    grid-row: 1;
  }

  .sq-poi-header > .sq-poi-header-right {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .sq-poi-header-balances {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .sq-poi-balance-item {
    font-size: 0.82rem;
  }

  .sq-poi-header-center {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    padding-top: 2px;
  }

  .sq-poi-center-info {
    font-size: 0.8rem;
  }
}

.sq-license-row {
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.sq-license-row.is-locked {
  opacity: 0.45;
  filter: grayscale(0.88);
}

.sq-license-row.is-locked:hover {
  opacity: 0.72;
}

.sq-license-row.is-deactivated {
  opacity: 0.68;
}

.sq-license-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
  user-select: none;
}

.sq-license-toggle-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.sq-license-toggle-btn.is-active {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.sq-license-toggle-btn.is-active:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.sq-license-toggle-btn.is-inactive {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

.sq-license-toggle-btn.is-inactive:hover {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.55);
  color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}

.sq-license-toggle-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.sq-license-toggle-btn.is-active .sq-license-toggle-indicator {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.sq-license-toggle-btn.is-inactive .sq-license-toggle-indicator {
  background: #94a3b8;
}

.sq-license-date {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 500;
}

.sq-license-not-acquired {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  cursor: default;
}

/* =====================================================================
   INVENTORY TILES & EXPANDABLE DRAWER (Build 209)
   ===================================================================== */
.sq-seg-tabs.sq-inv-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  flex-shrink: 1 !important;
}

.sq-seg-tabs.sq-inv-tabs .sq-seg-tab {
  flex: 0 1 auto;
  background: rgba(var(--bg-panel-rgb), 0.85);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.sq-seg-tabs.sq-inv-tabs .sq-seg-tab:hover {
  background: rgba(var(--bg-elevated-rgb), 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.sq-seg-tabs.sq-inv-tabs .sq-seg-tab.active {
  background: rgba(var(--accent-vivid-rgb), 0.18);
  border-color: var(--sky);
  color: #fff;
  box-shadow: 0 0 12px rgba(var(--accent-vivid-rgb), 0.3);
}

.sq-seg-tabs.sq-inv-tabs .sq-seg-tab svg {
  width: 14px;
  height: 14px;
}

/* Subgroups within Fragment Category */
.sq-inv-subgroups-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sq-inv-subgroup {
  background: rgba(var(--bg-rgb), 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
}

.sq-inv-subgroup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.sq-inv-subgroup-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sq-inv-subgroup-title h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
  letter-spacing: -0.2px;
}

.sq-inv-subgroup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent-vivid) !important;
  box-shadow: 0 0 8px rgba(var(--accent-vivid-rgb), 0.8) !important;
  flex-shrink: 0;
}

.sq-inv-subgroup-count {
  font-size: 0.74rem;
  color: var(--text3);
  font-weight: 600;
}

/* Loot & Shop Item Images */
.sq-loot-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.sq-shop-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.sq-inv-category-section {
  width: 100%;
  box-sizing: border-box;
  grid-column: 1 / -1;
  background: rgba(var(--bg-panel-rgb), 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.sq-inv-category-section[data-cat-id="bait"] {
  width: 100%;
  grid-column: 1 / -1;
}

.sq-inv-category-section[data-cat-id="bait"] .sq-inventory-tiles-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 14px;
}

.sq-inv-category-section:last-child {
  margin-bottom: 0;
}

.sq-inv-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sq-inv-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-inv-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.sq-inv-section-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.sq-inv-section-count {
  font-size: 0.75rem;
  font-weight: 600;
}

.sq-inventory-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 14px;
  align-items: start;
}

.sq-inv-tile-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sq-inv-tile {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(var(--bg-elevated-rgb), 0.7) 0%, rgba(var(--bg-panel-rgb), 0.95) 100%);
  border: 2.5px solid rgba(var(--text-muted-rgb), 0.4);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: visible;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sq-inv-tile:hover {
  transform: translateY(-2px) scale(1.05);
  z-index: 3;
}

.sq-inv-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sq-inv-tile.is-active {
  transform: translateY(-2px) scale(1.06);
  z-index: 4;
}

.sq-inv-tile.is-active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: currentColor transparent transparent transparent;
  z-index: 6;
}

.sq-inv-tile-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.sq-inv-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sq-inv-tile:hover .sq-inv-tile-img {
  transform: scale(1.06);
}

/* Quantity Badge (Top-Right) */
.sq-inv-qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(var(--bg-panel-rgb), 0.94);
  border: 1.5px solid var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 6px rgba(251, 191, 36, 0.3);
  z-index: 5;
  pointer-events: none;
  letter-spacing: -0.2px;
}

/* Rarity Borders & Ambient Glows for Tiles */
.sq-inv-tile.sq-item-rarity-gewoehnlich {
  border-color: #94a3b8;
  color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 10px rgba(148, 163, 184, 0.2);
}

.sq-inv-tile.sq-item-rarity-gewoehnlich:hover,
.sq-inv-tile.sq-item-rarity-gewoehnlich.is-active {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(148, 163, 184, 0.4);
}

.sq-inv-tile.sq-item-rarity-selten {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.25);
}

.sq-inv-tile.sq-item-rarity-selten:hover,
.sq-inv-tile.sq-item-rarity-selten.is-active {
  border-color: #7dd3fc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.5);
}

.sq-inv-tile.sq-item-rarity-episch {
  border-color: #c084fc;
  color: #c084fc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 14px rgba(192, 132, 252, 0.3);
}

.sq-inv-tile.sq-item-rarity-episch:hover,
.sq-inv-tile.sq-item-rarity-episch.is-active {
  border-color: #e9d5ff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 22px rgba(192, 132, 252, 0.55);
}

.sq-inv-tile.sq-item-rarity-legendaer {
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 16px rgba(251, 191, 36, 0.35);
}

.sq-inv-tile.sq-item-rarity-legendaer:hover,
.sq-inv-tile.sq-item-rarity-legendaer.is-active {
  border-color: #fde68a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 24px rgba(251, 191, 36, 0.6);
}

.sq-inv-tile.sq-item-rarity-einzigartig {
  border-color: #f43f5e;
  color: #f43f5e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 18px rgba(244, 63, 94, 0.4);
}

.sq-inv-tile.sq-item-rarity-einzigartig:hover,
.sq-inv-tile.sq-item-rarity-einzigartig.is-active {
  border-color: #fda4af;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 28px rgba(244, 63, 94, 0.65);
}

/* =====================================================================
   EXPANDED DRAWER PANEL
   ===================================================================== */
.sq-inv-drawer {
  grid-column: 1 / -1;
  width: 100%;
  margin: 6px 0 12px;
  background: linear-gradient(145deg, rgba(24, 32, 47, 0.95) 0%, rgba(13, 18, 30, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  animation: sqDrawerSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sqDrawerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sq-inv-drawer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sq-inv-drawer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  z-index: 10;
}

.sq-inv-drawer-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fff;
}

.sq-inv-drawer-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 44px;
  position: relative;
}

.sq-inv-drawer-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color, rgba(255, 255, 255, 0.15));
  background: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sq-inv-drawer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-inv-drawer-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sq-inv-drawer-name {
  font-size: 1.04rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.28;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 100%;
}

.sq-inv-drawer-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sq-inv-drawer-desc {
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.sq-inv-drawer.sq-item-rarity-selten .sq-inv-drawer-desc {
  border-left-color: #38bdf8;
}

.sq-inv-drawer.sq-item-rarity-episch .sq-inv-drawer-desc {
  border-left-color: #c084fc;
}

.sq-inv-drawer.sq-item-rarity-legendaer .sq-inv-drawer-desc {
  border-left-color: #fbbf24;
}

.sq-inv-drawer.sq-item-rarity-einzigartig .sq-inv-drawer-desc {
  border-left-color: #f43f5e;
}

/* =====================================================================
   MUSIKBOXEN: INVENTORY TILES, PLAYER DRAWER, MINI-PLAYER & REVEAL MODAL
   ===================================================================== */
.sq-musicbox-collection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.14) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(244, 63, 94, 0.38);
  margin-bottom: 12px;
}

.sq-musicbox-collection-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 180px;
}

.sq-musicbox-collection-meta strong {
  font-size: 0.9rem;
  color: #fff;
}

.sq-musicbox-progress-track {
  width: 100%;
  max-width: 300px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sq-musicbox-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f43f5e, #fb7185);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.75);
  transition: width 0.3s ease;
}

.sq-musicbox-album-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sq-musicbox-album-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sq-musicbox-album-title-group h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.sq-musicbox-album-artist {
  font-size: 0.78rem;
  color: var(--text3);
}

.sq-musicbox-tile-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 84px;
}

.sq-inv-tile.sq-musicbox-tile {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  border: 2.5px solid #f43f5e;
  color: #f43f5e;
  background: #1a0810;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 14px rgba(244, 63, 94, 0.45);
}

.sq-inv-tile.sq-musicbox-tile:hover,
.sq-inv-tile.sq-musicbox-tile.is-active {
  border-color: #fda4af;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 24px rgba(244, 63, 94, 0.75);
}

.sq-inv-tile.sq-musicbox-tile.is-playing {
  border-color: #fb7185;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.4), 0 0 22px rgba(244, 63, 94, 0.85);
}

.sq-musicbox-tile-play-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid #f43f5e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.sq-musicbox-tile-play-badge svg {
  width: 11px;
  height: 11px;
  stroke: #fda4af;
}

.sq-musicbox-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.sq-musicbox-eq span {
  width: 2.5px;
  background: #fb7185;
  border-radius: 2px;
  animation: sqMusicEq 0.75s ease-in-out infinite alternate;
}

.sq-musicbox-eq span:nth-child(1) {
  height: 5px;
  animation-delay: 0s;
}

.sq-musicbox-eq span:nth-child(2) {
  height: 11px;
  animation-delay: 0.2s;
}

.sq-musicbox-eq span:nth-child(3) {
  height: 7px;
  animation-delay: 0.4s;
}

@keyframes sqMusicEq {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}

.sq-musicbox-tile-label {
  width: 100%;
  font-size: 0.7rem;
  line-height: 1.22;
  color: var(--text2);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.sq-musicbox-tile-slot.is-playing .sq-musicbox-tile-label {
  color: #fda4af;
  font-weight: 700;
}

/* Music Box Inline Player Drawer */
.sq-musicbox-drawer {
  border-color: rgba(244, 63, 94, 0.55) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(244, 63, 94, 0.18) !important;
}

.sq-musicbox-drawer-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 2.5px solid #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.55);
  overflow: hidden;
  flex-shrink: 0;
  background: #1a0810;
}

.sq-musicbox-player-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 12px;
  padding: 12px;
}

.sq-musicbox-transport-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sq-musicbox-seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-musicbox-seek-slider {
  flex: 1;
  accent-color: #f43f5e;
  cursor: pointer;
  height: 6px;
}

.sq-musicbox-time-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  color: var(--text2);
  min-width: 78px;
  text-align: right;
}

.sq-musicbox-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sq-musicbox-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sq-musicbox-toggle-row:hover {
  border-color: rgba(244, 63, 94, 0.4);
}

.sq-musicbox-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sq-musicbox-toggle-left svg {
  width: 15px;
  height: 15px;
  stroke: #fb7185;
  flex-shrink: 0;
}

.sq-musicbox-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f43f5e;
  cursor: pointer;
  flex-shrink: 0;
}

.sq-musicbox-mode-hint {
  font-size: 0.75rem;
  color: #fda4af;
  margin: 0;
  padding: 2px 4px 0;
}

/* Persistent Mini-Player Bar (above bottom nav) */
.sq-music-mini-player {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 72px;
  width: min(560px, calc(100vw - 20px));
  z-index: 1200;
  background: rgba(15, 20, 34, 0.96);
  border: 1.5px solid rgba(244, 63, 94, 0.65);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 18px rgba(244, 63, 94, 0.28);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sq-mini-music-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.sq-mini-music-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #fb7185);
  transition: width 0.2s linear;
}

.sq-mini-music-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
}

.sq-mini-music-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.sq-mini-music-cover-frame {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 2px solid #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.55);
  overflow: hidden;
  flex-shrink: 0;
  background: #1a0810;
}

.sq-mini-music-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-mini-music-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sq-mini-music-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-mini-music-artist {
  font-size: 0.7rem;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-mini-music-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sq-mini-music-time {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: var(--text3);
  margin-right: 2px;
}

.sq-mini-music-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.sq-mini-music-btn.sq-mini-music-play {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border-color: #fda4af;
}

.sq-mini-music-btn:hover {
  filter: brightness(1.12);
}

.sq-mini-music-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

/* Music Box Collection Reveal Modal */
.sq-musicbox-reveal-modal {
  max-width: 390px !important;
  width: 92vw !important;
  text-align: center;
  border: 1.5px solid rgba(244, 63, 94, 0.65) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 28px rgba(244, 63, 94, 0.32) !important;
}

.sq-musicbox-reveal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 10px;
}

.sq-musicbox-reveal-cover-frame {
  width: 156px;
  height: 156px;
  border-radius: 18px;
  border: 3.5px solid #f43f5e;
  box-shadow: 0 0 26px rgba(244, 63, 94, 0.8), 0 10px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  background: #1a0810;
  margin: 6px 0 4px;
}

.sq-musicbox-reveal-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-musicbox-reveal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.sq-musicbox-reveal-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text2);
}

.sq-musicbox-reveal-progress {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.38);
  padding: 4px 12px;
  border-radius: 999px;
}

.sq-musicbox-reveal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .sq-music-mini-player {
    bottom: 64px;
    width: calc(100vw - 14px);
  }

  .sq-mini-music-time {
    display: none;
  }
}

.sq-inv-item-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text3);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.sq-inv-item-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--sky);
}

/* Smartphone / Mobile Adjustments */
@media (max-width: 600px) {
  .sq-inventory-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sq-inventory-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .sq-seg-tabs.sq-inv-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .sq-seg-tabs.sq-inv-tabs .sq-seg-tab {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 80px;
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.74rem;
    box-sizing: border-box;
  }

  .sq-inventory-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    gap: 10px;
  }

  .sq-inv-tile {
    width: 66px;
    height: 66px;
    border-radius: 12px;
  }

  .sq-inv-tile-img-wrap {
    border-radius: 9px;
  }

  .sq-inv-qty-badge {
    top: -5px;
    right: -5px;
    font-size: 0.68rem;
    padding: 2px 5px;
  }

  .sq-inv-drawer {
    padding: 12px;
  }

  .sq-inv-drawer-thumb {
    width: 54px;
    height: 54px;
  }

  .sq-inv-drawer-name {
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .sq-seg-tabs.sq-inv-tabs .sq-seg-tab {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}

/* ==========================================================================
   ALTAR MODAL (KREATUREN-OPFERUNG & PERMANENTER KP-BONUS)
   ========================================================================== */
.sq-altar-modal {
  max-width: 760px !important;
  width: 95vw !important;
  max-height: 92vh !important;
  max-height: 92dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: radial-gradient(circle at top center, rgba(126, 34, 206, 0.28) 0%, rgba(var(--bg-panel-rgb), 0.98) 65%) !important;
  border: 1px solid rgba(192, 132, 252, 0.45) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 32px rgba(168, 85, 247, 0.22) !important;
}

.sq-altar-banner {
  background: rgba(168, 85, 247, 0.12) !important;
  border-color: rgba(192, 132, 252, 0.4) !important;
  margin-bottom: 10px;
}

.sq-altar-ritual-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(192, 132, 252, 0.22);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.sq-altar-central-wrap,
.sq-altar-sacrifices-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sq-altar-slot-caption {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  text-align: center;
}

.sq-altar-sacrifice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.sq-altar-slot {
  appearance: none;
  background: rgba(30, 41, 59, 0.72);
  border: 1.5px dashed rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  padding: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  position: relative;
}

.sq-altar-slot-central {
  width: 100%;
  max-width: 310px;
  min-height: 78px;
}

.sq-altar-slot-sacrifice {
  width: 100%;
  min-height: 74px;
}

.sq-altar-slot.is-active-slot {
  border-color: rgba(192, 132, 252, 0.75);
  background: rgba(126, 34, 206, 0.16);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

.sq-altar-slot.is-filled {
  border-style: solid;
  border-color: rgba(250, 204, 21, 0.65);
  background: rgba(30, 41, 59, 0.95);
}

.sq-altar-slot:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sq-altar-slot:not(:disabled):hover {
  border-color: #c084fc;
  transform: translateY(-1px);
}

.sq-altar-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  min-height: 56px;
}

.sq-altar-slot-icon {
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sq-altar-slot-empty.is-locked .sq-altar-slot-icon {
  color: #64748b;
}

.sq-altar-slot-placeholder-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}

.sq-altar-slot-placeholder-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

.sq-altar-slot-filled {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
}

.sq-altar-slot-thumb-wrap {
  position: relative;
  width: 46px;
  height: 60px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: #0f172a;
}

.sq-altar-slot-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-altar-slot-kp-pill {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.88);
  color: #fde047;
  border-radius: 4px;
  padding: 1px 2px;
}

.sq-altar-mini-upgraded {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.58rem;
  font-weight: 800;
  background: rgba(126, 34, 206, 0.92);
  color: #f3e8ff;
  border-radius: 4px;
  padding: 1px 3px;
}

.sq-altar-slot-meta {
  flex: 1;
  min-width: 0;
}

.sq-altar-slot-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-altar-slot-sub {
  font-size: 0.68rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-altar-slot-serial {
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.sq-altar-slot-remove {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 5px;
  padding: 1px 5px;
}

.sq-altar-connector {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sq-altar-connector-line {
  width: 2px;
  height: 10px;
  background: linear-gradient(to bottom, rgba(192, 132, 252, 0.8), rgba(250, 204, 21, 0.8));
}

.sq-altar-connector-branches {
  width: 68%;
  display: flex;
  justify-content: space-between;
  border-top: 2px solid rgba(192, 132, 252, 0.35);
  padding-top: 0;
}

.sq-altar-connector-branches span {
  width: 2px;
  height: 8px;
  background: rgba(192, 132, 252, 0.45);
}

.sq-altar-bonus-preview {
  width: 100%;
  text-align: center;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.65);
  border: 1px dashed rgba(148, 163, 184, 0.3);
}

.sq-altar-bonus-preview.is-ready {
  background: rgba(126, 34, 206, 0.25);
  border: 1px solid rgba(192, 132, 252, 0.65);
  color: #f3e8ff;
}

.sq-altar-kp-change {
  color: #fde047;
  margin-left: 4px;
}

.sq-altar-preview-combat {
  font-size: 0.74rem;
  color: #e2e8f0;
  margin-top: 3px;
}

/* Altar Card Picker Overlay Modal */
#altar-picker-modal {
  z-index: 2150 !important;
}

.sq-altar-picker-modal {
  max-width: 980px !important;
  width: 95vw !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 18px !important;
  background: radial-gradient(circle at top center, rgba(126, 34, 206, 0.26) 0%, rgba(var(--bg-panel-rgb), 0.98) 65%) !important;
  border: 1px solid rgba(192, 132, 252, 0.5) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 36px rgba(168, 85, 247, 0.28) !important;
}

.sq-altar-picker-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px !important;
  flex-shrink: 0;
}

.sq-altar-picker-title-wrap {
  min-width: 0;
  flex: 1;
}

.sq-altar-picker-title-wrap h3 {
  margin: 0 !important;
  font-size: 1.12rem;
  color: #f3e8ff;
}

.sq-altar-picker-subtitle {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.sq-altar-picker-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sq-altar-picker-count {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.sq-altar-picker-modal-body {
  flex: 1 1 auto;
  min-height: 160px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  padding: 10px;
}

.sq-altar-picker-progress {
  position: sticky;
  top: 0;
  z-index: 4;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.sq-altar-picker-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e9d5ff;
  margin-bottom: 6px;
}

.sq-altar-picker-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.sq-altar-picker-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a855f7, #f59e0b);
  transition: width 0.08s linear;
}

.sq-altar-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
}

.sq-altar-album-card {
  gap: 7px;
  padding: 7px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.72);
}

.sq-altar-album-card-frame {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.sq-altar-album-card-frame .sq-tcg-card {
  width: 100%;
  height: 100%;
  pointer-events: none;
  --card-scale: 0.68;
}

.sq-altar-picker-status-bar {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sq-altar-album-card .sq-altar-picker-tag {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 7px;
}

.sq-altar-picker-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.88);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: 9px;
  padding: 6px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  content-visibility: auto;
  contain-intrinsic-size: 195px 330px;
  contain: layout style;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sq-altar-picker-card:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: #c084fc;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.sq-altar-picker-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sq-altar-picker-card.is-selected-sacrifice {
  border-color: #f43f5e;
  background: rgba(159, 18, 57, 0.3);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

.sq-altar-picker-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 5px;
  background: #0f172a;
}

.sq-altar-picker-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sq-altar-picker-kp {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.9);
  color: #fde047;
  padding: 1px 5px;
  border-radius: 5px;
}

.sq-altar-picker-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
}

.sq-altar-picker-tag.tag-dups {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.sq-altar-picker-tag.tag-nodups {
  background: rgba(71, 85, 105, 0.9);
  color: #cbd5e1;
}

.sq-altar-picker-tag.tag-upgraded {
  background: rgba(126, 34, 206, 0.92);
  color: #f3e8ff;
}

.sq-altar-picker-tag.tag-selected {
  background: rgba(244, 63, 94, 0.95);
  color: #ffffff;
}

.sq-altar-picker-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-altar-picker-meta {
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sq-altar-picker-empty {
  text-align: center;
  padding: 20px 10px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.sq-altar-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-shrink: 0;
}

.sq-altar-footer-actions .sq-btn {
  flex: 1;
  justify-content: center;
}

.sq-btn-altar-sacrifice {
  background: linear-gradient(135deg, #9333ea, #be123c) !important;
  border-color: rgba(244, 63, 94, 0.6) !important;
  color: #ffffff !important;
  font-weight: 700;
}

@media (max-width: 640px) {
  .sq-altar-modal {
    width: 96vw !important;
    max-width: 96vw !important;
    padding: 12px 10px !important;
    border-radius: 14px !important;
  }
  .sq-altar-banner {
    padding: 7px 9px !important;
    margin-bottom: 8px;
  }
  .sq-altar-ritual-stage {
    padding: 9px 8px;
    gap: 6px;
    margin-bottom: 8px;
  }
  .sq-altar-slot-caption {
    font-size: 0.66rem;
  }
  .sq-altar-sacrifice-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .sq-altar-slot-central {
    max-width: none;
    min-height: 60px;
    padding: 7px;
  }
  .sq-altar-slot-sacrifice {
    max-width: none;
    min-height: 88px;
    padding: 6px 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-empty {
    min-height: 70px;
    gap: 2px;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-placeholder-title {
    font-size: 0.68rem;
    line-height: 1.15;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-placeholder-sub {
    font-size: 0.6rem;
    line-height: 1.15;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-filled {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-thumb-wrap {
    width: 42px;
    height: 54px;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-meta {
    width: 100%;
    text-align: center;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-name {
    font-size: 0.66rem;
    line-height: 1.15;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-sub,
  .sq-altar-slot-sacrifice .sq-altar-slot-serial {
    display: none;
  }
  .sq-altar-slot-sacrifice .sq-altar-slot-remove {
    top: 2px;
    right: 2px;
    font-size: 0.56rem;
    padding: 1px 4px;
  }
  .sq-altar-connector-branches {
    display: flex;
    width: 72%;
  }
  .sq-altar-bonus-preview {
    padding: 6px 8px;
    font-size: 0.72rem;
  }
  .sq-altar-footer-actions {
    margin-top: 6px;
    gap: 8px;
  }
  .sq-altar-picker-modal {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }
  .sq-altar-picker-modal-header {
    gap: 8px;
    margin-bottom: 10px !important;
  }
  .sq-altar-picker-title-wrap h3 {
    font-size: 1rem;
  }
  .sq-altar-picker-subtitle {
    font-size: 0.72rem;
  }
  .sq-altar-picker-modal-body {
    padding: 8px;
  }
  .sq-altar-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sq-altar-picker-card {
    padding: 5px;
    min-width: 0;
  }
  .sq-altar-album-card {
    gap: 5px;
    padding: 5px;
    border-radius: 11px;
  }
  .sq-altar-album-card-frame .sq-tcg-card {
    --card-scale: 0.50;
  }
  .sq-altar-album-card .sq-altar-picker-tag {
    font-size: 0.66rem;
    padding: 3px 6px;
  }
  .sq-altar-picker-name {
    font-size: 0.72rem;
  }
  .sq-altar-picker-meta {
    font-size: 0.62rem;
  }
}