/* app/assets/stylesheets/store.css */

.store-container {
  max-width: 1050px;
  margin: 2.5rem auto 5rem auto;
  padding: 0 1.25rem;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Header Banner Card */
.store-header-card {
  background: linear-gradient(135deg, #07379d 0%, #1e1b4b 60%, #451a03 100%);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(7, 55, 157, 0.25);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 2rem;
}

.store-header-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.store-header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.store-icon-large {
  position: relative;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.2) 0%, rgba(251, 191, 36, 0.05) 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
  flex-shrink: 0;
}

.store-honey-pot {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  animation: honeyWiggle 3.5s ease-in-out infinite;
}

.store-sparkle-1 {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 1.25rem;
  animation: sparklePulse 2s ease-in-out infinite;
}

.store-sparkle-2 {
  position: absolute;
  bottom: 0px;
  left: -8px;
  font-size: 1.1rem;
  animation: sparklePulse 2.5s ease-in-out 0.5s infinite;
}

@keyframes sparklePulse {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

.store-title-group {
  flex: 1;
  min-width: 260px;
}

.store-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.store-main-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.store-subtitle {
  font-size: 0.95rem;
  color: #f8fafc !important;
  margin: 0;
  line-height: 1.55;
  max-width: 500px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Balance Widget */
.store-balance-widget {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 1.25rem;
  padding: 1.25rem 1.75rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  margin-left: auto;
  min-width: 190px;
}

.balance-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  font-weight: 700;
}

.balance-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.25rem 0;
}

.balance-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.balance-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.balance-unit {
  font-size: 1rem;
  font-weight: 800;
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-tip {
  font-size: 0.75rem;
  color: #fef08a;
  margin-top: 0.35rem;
}

/* Info Alert */
.store-info-alert {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #92400e;
  font-size: 0.92rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

/* Categories Grid */
.store-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.store-category-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.category-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.category-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.15rem 0 0 0;
}

.store-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.store-item-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.item-visual {
  width: 56px;
  height: 56px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-details {
  flex: 1;
  min-width: 0;
}

.item-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-tag-soon {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.item-tag-available {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.item-tag-owned {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.item-tag-equipped {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 1px solid #fde047;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.golden-frame-card {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
}

.golden-frame-card.item-owned {
  border-color: #f59e0b;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.golden-frame-preview-box {
  background: radial-gradient(circle, rgba(254, 243, 199, 0.8) 0%, rgba(251, 191, 36, 0.2) 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.cosmic-frame-card {
  border-color: rgba(147, 51, 234, 0.4);
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.25) 0%, rgba(255, 255, 255, 1) 100%);
}

.cosmic-frame-card.item-owned {
  border-color: #9333ea;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.cosmic-frame-preview-box {
  background: radial-gradient(circle, rgba(243, 232, 255, 0.9) 0%, rgba(147, 51, 234, 0.25) 100%);
  border: 2px solid #a855f7;
  box-shadow: 0 0 14px rgba(147, 51, 234, 0.4);
}

.frost-theme-card {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
}

.frost-theme-card.item-owned {
  border-color: #0284c7;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.frost-theme-preview-box {
  background: radial-gradient(circle, rgba(224, 242, 254, 0.9) 0%, rgba(56, 189, 248, 0.3) 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.item-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.25rem 0 0.6rem 0;
  line-height: 1.35;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-honey {
  font-size: 0.85rem;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.price-honey.price-owned {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.btn-store-buy {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: #07379d;
  color: #ffffff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-store-buy.active-buy {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 1px solid #fde047;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.btn-store-buy.active-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-store-buy.disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-store-toggle {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-store-toggle.btn-equip {
  background: linear-gradient(135deg, #07379d 0%, #1e40af 100%);
  color: #ffffff;
}

.btn-store-toggle.btn-equip:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 55, 157, 0.3);
}

.btn-store-toggle.btn-unequip {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.btn-store-toggle.btn-unequip:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* ==========================================================================
   Chests Section (Cofres de Miel)
   ========================================================================== */

.store-chests-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #172554 45%, #2e1065 100%);
  border-radius: 1.5rem;
  padding: 2.25rem 2.75rem 2.25rem 2rem;
  margin-bottom: 2.5rem;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: visible;
}

.store-chests-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.18) 0%, rgba(147, 51, 234, 0.08) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.store-chests-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.chests-header {
  text-align: center;
  margin-bottom: 2.25rem;
  position: relative;
  z-index: 2;
}

.chests-header h2,
.chests-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.85rem !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin: 0 0 0.5rem 0;
}

.chests-header p,
.chests-desc {
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  max-width: 580px;
  margin: 0.5rem auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

.chests-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.25) !important;
  border: 1.5px solid rgba(253, 224, 71, 0.6) !important;
  color: #fde047 !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  padding: 0.35rem 0.9rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-top: 0.6rem;
}

.chests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.chest-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 2rem 1.25rem 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chest-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* Card Rarity Variants */
.chest-card.common {
  border-color: rgba(217, 119, 6, 0.5);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
}
.chest-card.common:hover {
  border-color: #f59e0b;
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.3);
}

.chest-card.rare {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
}
.chest-card.rare:hover {
  border-color: #38bdf8;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.35);
}

.chest-card.legendary {
  border-color: #eab308;
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.18) 0%, rgba(147, 51, 234, 0.14) 100%);
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.25);
  overflow: visible;
}
.chest-card.legendary:hover {
  border-color: #fde047;
  box-shadow: 0 20px 45px rgba(234, 179, 8, 0.45);
}

/* 16-Frame 8-FPS Sharp Asymmetrical Flame on Top Edge (Solo visible arriba de la insignia) */
.legendary-flame-top-emitter {
  position: absolute;
  top: -62px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 95px;
  pointer-events: none;
  z-index: 1;
  clip-path: polygon(-30% -50%, 130% -50%, 130% 62%, -30% 62%); /* Oculta cualquier parte por debajo de la insignia */
  animation: legendaryFlameTop16 2.0s steps(16) infinite;
  transform-origin: center bottom;
}

.legendary-flame-top-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flame-layer-outer {
  animation: legendaryFlameOuterTop16 2.0s steps(16) infinite;
  transform-origin: center bottom;
}

.flame-layer-mid {
  animation: legendaryFlameMidTop16 2.0s steps(16) infinite;
  transform-origin: center bottom;
}

.flame-layer-inner {
  animation: legendaryFlameInnerTop16 2.0s steps(16) infinite;
  transform-origin: center bottom;
}

.flame-layer-sparks {
  animation: legendarySparksTop16 2.0s steps(16) infinite;
}

/* 16 Frames for Global Flame Shiver & Glow on Top Edge (2.0s at 8 FPS) */
@keyframes legendaryFlameTop16 {
  0%     { transform: translateX(-50%) scale(1.0, 1.0) rotate(0deg); filter: drop-shadow(0 -2px 10px rgba(168, 85, 247, 0.75)) drop-shadow(0 -4px 18px rgba(245, 158, 11, 0.55)); }
  6.25%  { transform: translateX(-50%) scale(0.98, 1.05) rotate(-1deg); }
  12.5%  { transform: translateX(-50%) scale(1.03, 0.97) rotate(1.5deg); }
  18.75% { transform: translateX(-50%) scale(0.96, 1.07) rotate(-2deg); filter: drop-shadow(0 -3px 14px rgba(168, 85, 247, 0.9)) drop-shadow(0 -5px 24px rgba(245, 158, 11, 0.7)); }
  25%    { transform: translateX(-50%) scale(1.04, 0.96) rotate(1deg); }
  31.25% { transform: translateX(-50%) scale(0.97, 1.06) rotate(-1.5deg); }
  37.5%  { transform: translateX(-50%) scale(1.05, 0.95) rotate(2deg); }
  43.75% { transform: translateX(-50%) scale(0.98, 1.04) rotate(-1deg); }
  50%    { transform: translateX(-50%) scale(1.02, 1.0) rotate(0deg); filter: drop-shadow(0 -2px 12px rgba(168, 85, 247, 0.8)) drop-shadow(0 -4px 20px rgba(245, 158, 11, 0.6)); }
  56.25% { transform: translateX(-50%) scale(0.96, 1.06) rotate(1.5deg); }
  62.5%  { transform: translateX(-50%) scale(1.04, 0.97) rotate(-1.8deg); }
  68.75% { transform: translateX(-50%) scale(0.97, 1.05) rotate(1deg); filter: drop-shadow(0 -3px 16px rgba(168, 85, 247, 0.95)) drop-shadow(0 -5px 26px rgba(245, 158, 11, 0.75)); }
  75%    { transform: translateX(-50%) scale(1.05, 0.96) rotate(-2deg); }
  81.25% { transform: translateX(-50%) scale(0.96, 1.07) rotate(1.5deg); }
  87.5%  { transform: translateX(-50%) scale(1.03, 0.97) rotate(-1deg); }
  93.75% { transform: translateX(-50%) scale(0.99, 1.03) rotate(0.5deg); }
  100%   { transform: translateX(-50%) scale(1.0, 1.0) rotate(0deg); filter: drop-shadow(0 -2px 10px rgba(168, 85, 247, 0.75)) drop-shadow(0 -4px 18px rgba(245, 158, 11, 0.55)); }
}

/* 16 Frames for Outer Purple Flame Morph & Sway */
@keyframes legendaryFlameOuterTop16 {
  0%     { transform: scale(1.0) skewX(0deg); opacity: 0.95; }
  6.25%  { transform: scale(1.03, 0.97) skewX(2deg); opacity: 0.98; }
  12.5%  { transform: scale(0.97, 1.04) skewX(-1.5deg); opacity: 0.92; }
  18.75% { transform: scale(1.05, 0.96) skewX(2.5deg); opacity: 1.0; }
  25%    { transform: scale(0.98, 1.03) skewX(-2deg); opacity: 0.94; }
  31.25% { transform: scale(1.04, 0.97) skewX(1.5deg); opacity: 0.97; }
  37.5%  { transform: scale(0.96, 1.05) skewX(-2.5deg); opacity: 0.91; }
  43.75% { transform: scale(1.03, 0.98) skewX(1deg); opacity: 0.99; }
  50%    { transform: scale(1.01, 1.01) skewX(0deg); opacity: 0.95; }
  56.25% { transform: scale(1.05, 0.96) skewX(-1.8deg); opacity: 0.98; }
  62.5%  { transform: scale(0.97, 1.04) skewX(2.2deg); opacity: 0.93; }
  68.75% { transform: scale(1.04, 0.97) skewX(-1.2deg); opacity: 1.0; }
  75%    { transform: scale(0.98, 1.05) skewX(2.5deg); opacity: 0.95; }
  81.25% { transform: scale(1.06, 0.96) skewX(-2deg); opacity: 0.98; }
  87.5%  { transform: scale(0.96, 1.03) skewX(1deg); opacity: 0.92; }
  93.75% { transform: scale(1.02, 0.99) skewX(-0.5deg); opacity: 0.97; }
  100%   { transform: scale(1.0) skewX(0deg); opacity: 0.95; }
}

/* 16 Frames for Mid Golden Flame Morph & Flickering */
@keyframes legendaryFlameMidTop16 {
  0%     { transform: scale(1.0) skewX(0deg); opacity: 0.95; }
  6.25%  { transform: scale(0.97, 1.03) skewX(-1.5deg); opacity: 1.0; }
  12.5%  { transform: scale(1.05, 0.96) skewX(2deg); opacity: 0.92; }
  18.75% { transform: scale(0.96, 1.05) skewX(-2.5deg); opacity: 0.98; }
  25%    { transform: scale(1.06, 0.95) skewX(1.8deg); opacity: 0.93; }
  31.25% { transform: scale(0.98, 1.04) skewX(-1deg); opacity: 1.0; }
  37.5%  { transform: scale(1.04, 0.97) skewX(2deg); opacity: 0.94; }
  43.75% { transform: scale(0.96, 1.04) skewX(-1.5deg); opacity: 0.97; }
  50%    { transform: scale(1.0, 1.0) skewX(0deg); opacity: 0.95; }
  56.25% { transform: scale(0.97, 1.04) skewX(1.8deg); opacity: 0.99; }
  62.5%  { transform: scale(1.05, 0.96) skewX(-2deg); opacity: 0.92; }
  68.75% { transform: scale(0.96, 1.05) skewX(2.2deg); opacity: 1.0; }
  75%    { transform: scale(1.04, 0.97) skewX(-1.5deg); opacity: 0.94; }
  81.25% { transform: scale(0.97, 1.04) skewX(2deg); opacity: 0.98; }
  87.5%  { transform: scale(1.04, 0.97) skewX(-1deg); opacity: 0.93; }
  93.75% { transform: scale(0.98, 1.02) skewX(0.8deg); opacity: 0.97; }
  100%   { transform: scale(1.0) skewX(0deg); opacity: 0.95; }
}

/* 16 Frames for Core White-Hot Flame Pulse */
@keyframes legendaryFlameInnerTop16 {
  0%     { transform: scale(1.0); opacity: 0.9; }
  6.25%  { transform: scale(1.08, 0.94); opacity: 1.0; }
  12.5%  { transform: scale(0.94, 1.06); opacity: 0.85; }
  18.75% { transform: scale(1.1, 0.92); opacity: 1.0; }
  25%    { transform: scale(0.96, 1.05); opacity: 0.9; }
  31.25% { transform: scale(1.07, 0.95); opacity: 1.0; }
  37.5%  { transform: scale(0.93, 1.07); opacity: 0.86; }
  43.75% { transform: scale(1.05, 0.96); opacity: 0.98; }
  50%    { transform: scale(1.0, 1.0); opacity: 0.92; }
  56.25% { transform: scale(1.09, 0.93); opacity: 1.0; }
  62.5%  { transform: scale(0.95, 1.06); opacity: 0.88; }
  68.75% { transform: scale(1.08, 0.94); opacity: 1.0; }
  75%    { transform: scale(0.96, 1.05); opacity: 0.91; }
  81.25% { transform: scale(1.1, 0.92); opacity: 1.0; }
  87.5%  { transform: scale(0.94, 1.06); opacity: 0.87; }
  93.75% { transform: scale(1.03, 0.98); opacity: 0.96; }
  100%   { transform: scale(1.0); opacity: 0.9; }
}

/* 16 Frames for Sparkles & Rising Embers */
@keyframes legendarySparksTop16 {
  0%     { transform: translateY(0px) scale(1.0); opacity: 0.8; }
  12.5%  { transform: translateY(-4px) scale(1.15); opacity: 1.0; }
  25%    { transform: translateY(-8px) scale(0.95); opacity: 0.7; }
  37.5%  { transform: translateY(-13px) scale(1.2); opacity: 1.0; }
  50%    { transform: translateY(-18px) scale(0.9); opacity: 0.6; }
  62.5%  { transform: translateY(-22px) scale(1.1); opacity: 0.95; }
  75%    { transform: translateY(-27px) scale(0.85); opacity: 0.5; }
  87.5%  { transform: translateY(-31px) scale(1.05); opacity: 0.9; }
  100%   { transform: translateY(-36px) scale(0.7); opacity: 0; }
}

/* Badges */
.chest-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 25; /* Capa frontal: siempre por delante del fuego */
}

.chest-badge.common {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  border: 1px solid #fcd34d;
  color: #fef3c7;
}

.chest-badge.rare {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #7dd3fc;
  color: #f0f9ff;
}

.chest-badge.legendary {
  background: linear-gradient(135deg, #f59e0b 0%, #a855f7 100%);
  border: 1.5px solid #fde047;
  color: #ffffff;
  z-index: 25; /* Capa frontal: siempre por delante del fuego */
  animation: legendaryPulse 2.5s ease-in-out infinite;
}

@keyframes legendaryPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.4), 0 0 20px rgba(168, 85, 247, 0.3); }
  50% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.8), 0 0 30px rgba(168, 85, 247, 0.6); }
}

/* Illustration Box & SVG */
.chest-illustration-box {
  width: 140px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 0.75rem auto;
  position: relative;
  z-index: 10; /* La ilustración del cofre queda POR DELANTE del fuego */
}

.chest-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 10;
}

.chest-card:hover .chest-svg {
  transform: scale(1.08) translateY(-4px);
}

.chest-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.25rem 0 0.4rem 0;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 10;
}

.chest-card.common .chest-name { color: #fde68a; }
.chest-card.rare .chest-name { color: #7dd3fc; }
.chest-card.legendary .chest-name {
  background: linear-gradient(135deg, #ffffff 0%, #fde047 60%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chest-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0 0 1.25rem 0;
  min-height: 2.9rem;
  position: relative;
  z-index: 10;
}

.chest-price-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.4rem 1.25rem;
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.chest-price-honey {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.02em;
}

.btn-buy-chest {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
}

.btn-buy-chest.disabled {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  cursor: not-allowed;
}

/* Real Money Section */
.store-real-money-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-radius: 1.5rem;
  padding: 3.25rem 2rem 2.25rem 2rem;
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(245, 158, 11, 0.12);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Honey Drip Top Border */
.honey-drip-top-emitter {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 145px;
  pointer-events: none;
  z-index: 1;
  border-top-left-radius: 1.45rem;
  border-top-right-radius: 1.45rem;
  overflow: hidden;
}

.honey-drip-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(217, 119, 6, 0.55));
}

.real-money-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 3;
}

.real-money-header h2,
.real-money-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.85rem !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin: 0 0 0.5rem 0;
}

.real-money-header p,
.real-money-desc {
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  max-width: 580px;
  margin: 0.5rem auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

.real-money-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.25) !important;
  border: 1.5px solid rgba(253, 224, 71, 0.6) !important;
  color: #fde047 !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  padding: 0.35rem 0.9rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-top: 0.6rem;
}

.money-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pack-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.pack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.pack-card.featured {
  border-color: #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.pack-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #334155;
  border: 1px solid #64748b;
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.pack-badge.featured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #fde047;
}

.pack-icon {
  font-size: 3rem;
  margin: 0.5rem 0 0.25rem 0;
  line-height: 1;
}

.pack-amount {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.25rem 0;
}

.pack-bonus {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fde047;
  margin: 0 0 1rem 0;
}

.pack-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.btn-buy-pack {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
}

.btn-buy-pack.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: not-allowed;
}

/* Footer Link */
.store-footer-links {
  text-align: center;
}

.btn-store-back {
  display: inline-flex;
  align-items: center;
  color: #07379d;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.btn-store-back:hover {
  background: #e2e8f0;
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .store-container {
    padding: 0 0.85rem;
    margin: 1.5rem auto 3.5rem auto;
  }

  .store-header-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .store-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .store-title-group {
    min-width: unset;
    width: 100%;
  }

  .store-main-title {
    font-size: 1.75rem;
  }

  .store-balance-widget {
    margin: 0 auto;
    width: 100%;
    max-width: 260px;
    box-sizing: border-box;
    min-width: unset;
    padding: 1rem 1.25rem;
  }

  .store-subtitle {
    margin: 0 auto;
    font-size: 0.88rem;
  }

  .store-sections-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .store-category-card {
    padding: 1.25rem 1rem;
    border-radius: 1.15rem;
  }

  .category-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .store-container {
    padding: 0 0.65rem;
    margin: 1rem auto 3rem auto;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .store-header-card {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
  }

  .store-icon-large {
    width: 70px;
    height: 70px;
  }

  .store-honey-pot {
    font-size: 2.6rem;
  }

  .store-main-title {
    font-size: 1.5rem;
  }

  .store-info-alert {
    padding: 0.85rem 1rem;
    font-size: 0.84rem;
    border-radius: 0.85rem;
  }

  .store-sections-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.15rem;
    margin-bottom: 1.75rem;
    box-sizing: border-box;
  }

  .store-category-card {
    padding: 1rem 0.75rem;
    border-radius: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .category-header {
    gap: 0.65rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .category-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 0.6rem;
  }

  .category-icon-box i {
    font-size: 1.1rem;
  }

  .category-title {
    font-size: 1rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .category-desc {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .store-items-list {
    gap: 0.75rem;
  }

  /* Mobile Item Card Layout */
  .store-item-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .item-visual {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 0.65rem;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .item-visual span,
  .item-visual .text-3xl {
    font-size: 1.5rem !important;
    line-height: 1;
  }

  .item-details {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .item-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    width: 100%;
  }

  .item-name {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    flex: 1 1 auto;
    min-width: 110px;
  }

  .item-tag-soon,
  .item-tag-available,
  .item-tag-owned,
  .item-tag-equipped {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .item-desc {
    font-size: 0.75rem;
    line-height: 1.35;
    margin: 0.25rem 0 0.45rem 0;
    word-break: break-word;
  }

  .celestial-lightning-card .item-desc {
    color: #f1f5f9 !important;
  }

  .pollen-stock-badge {
    font-size: 0.7rem;
    padding: 0.12rem 0.4rem;
    margin-bottom: 0.35rem;
    display: inline-flex;
    width: fit-content;
  }

  .item-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(226, 232, 240, 0.9);
  }

  .celestial-lightning-card .item-footer {
    border-top: 1px dashed rgba(56, 189, 248, 0.25) !important;
  }

  .item-price {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .price-honey {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.18rem 0.48rem;
    border-radius: 9999px;
    white-space: nowrap;
  }

  .item-footer .flex.items-center,
  .item-footer > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .btn-store-buy,
  .btn-store-toggle,
  .btn-store-consume {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.32rem 0.65rem;
    border-radius: 9999px;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-store-consume {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
  }
}

@media (max-width: 420px) {
  .store-container {
    padding: 0 0.45rem;
  }

  .store-category-card {
    padding: 0.85rem 0.6rem;
  }

  .store-item-card {
    padding: 0.65rem 0.55rem;
    gap: 0.5rem;
  }

  .item-visual {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 0.55rem;
  }

  .item-visual span,
  .item-visual .text-3xl {
    font-size: 1.3rem !important;
  }

  .item-name {
    font-size: 0.84rem;
  }

  .item-desc {
    font-size: 0.72rem;
  }

  .btn-store-buy,
  .btn-store-toggle,
  .btn-store-consume {
    font-size: 0.7rem;
    padding: 0.28rem 0.55rem;
  }
}

/* ==========================================================================
   Practice Page Centered Store Button
   ========================================================================== */

.btn-honey-store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.65rem 1.6rem;
  border-radius: 9999px;
  border: 1.5px solid #fde047;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-honey-store-link:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55), inset 0 1px 3px rgba(255, 255, 255, 0.7);
  color: #ffffff !important;
}

.store-link-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fef08a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

.btn-honey-store-link:hover .store-link-icon-box {
  transform: scale(1.15) rotate(-5deg);
  color: #ffffff;
}

.store-link-text {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.store-link-honey-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #fef08a;
  font-weight: 800;
}

/* ==========================================================================
   Practice Page Centered Inventory Button
   ========================================================================== */

.btn-inventory-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.65rem 1.6rem;
  border-radius: 9999px;
  border: 1.5px solid #5eead4;
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-inventory-link:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.55), inset 0 1px 3px rgba(255, 255, 255, 0.7);
  color: #ffffff !important;
}

.inventory-link-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #99f6e4;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

.btn-inventory-link:hover .inventory-link-icon-box {
  transform: scale(1.15) rotate(5deg);
  color: #ffffff;
}

.inventory-link-text {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.inventory-link-booster-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #fde047;
  padding: 0.15rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.inventory-link-items-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #99f6e4;
  font-weight: 800;
}

/* Active Booster Banner */
.active-booster-banner {
  background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #92400e 100%);
  border: 1.5px solid #fde047;
  border-radius: 1.25rem;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #ffffff;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  animation: boosterGlow 2.5s ease-in-out infinite alternate;
}

@keyframes boosterGlow {
  0% { box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35); }
  100% { box-shadow: 0 8px 35px rgba(245, 158, 11, 0.65), 0 0 15px rgba(253, 224, 71, 0.5); }
}

.booster-icon-pulse {
  font-size: 2.2rem;
  animation: pulseIcon 1.5s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25) rotate(10deg); }
}

.booster-text {
  flex: 1;
}

.booster-timer-badge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #fde047;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fde047;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Consume Buttons */
.btn-store-consume {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid #5eead4;
  cursor: pointer;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-store-consume:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.btn-store-consume.active-consume {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fde047;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-store-consume.active-consume:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}

.pollen-stock-badge {
  font-size: 0.75rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
  width: fit-content;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .active-booster-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Store Section Pagination Controls */
.store-pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.75rem auto 2.75rem auto;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(7, 55, 157, 0.06);
  max-width: fit-content;
  position: relative;
  z-index: 5;
}

.btn-store-nav {
  background: linear-gradient(135deg, #07379d 0%, #0369a1 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(7, 55, 157, 0.25);
  user-select: none;
  flex-shrink: 0;
}

.btn-store-nav:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 55, 157, 0.35);
  background: linear-gradient(135deg, #0f4bcc 0%, #0284c7 100%);
}

.btn-store-nav:active:not(:disabled) {
  transform: translateY(0);
}

.btn-store-nav:disabled,
.btn-store-nav.disabled {
  background: #f1f5f9;
  color: #94a3b8 !important;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.store-pagination-indicators {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-indicator-pill {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #64748b;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  user-select: none;
}

.page-indicator-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  transition: all 0.2s ease;
}

.pill-label-short {
  display: none;
}

.page-indicator-pill:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

.page-indicator-pill.active {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.page-indicator-pill.active .pill-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
  transform: scale(1.25);
}

.store-section-fade-in {
  animation: storeSectionFadeIn 0.3s ease-out forwards;
}

@keyframes storeSectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.store-item-placeholder {
  background: #fafafa !important;
  border: 1.5px dashed #cbd5e1 !important;
  opacity: 0.8;
}
.store-item-placeholder:hover {
  transform: none !important;
  border-color: #94a3b8 !important;
  box-shadow: none !important;
}

/* Mobile Responsiveness for Store Pagination */
@media (max-width: 640px) {
  .store-pagination-container {
    width: 100%;
    max-width: 400px;
    margin: 1.25rem auto 2rem auto;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .btn-store-nav {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    padding: 0;
  }

  .store-pagination-indicators {
    gap: 0.35rem;
  }

  .page-indicator-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }
}

@media (max-width: 420px) {
  .store-pagination-container {
    max-width: 325px;
    padding: 0.4rem 0.5rem;
    gap: 0.3rem;
  }

  .btn-store-nav {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
    padding: 0;
  }

  .pill-label-full {
    display: none;
  }

  .pill-label-short {
    display: inline;
    font-weight: 800;
  }

  .page-indicator-pill {
    padding: 0.38rem 0.6rem;
    font-size: 0.76rem;
  }
}

/* Igneous Trail & Prismatic Bubbles Cosmetics */
.igneous-trail-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.igneous-trail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.8) !important;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25) !important;
}

.prismatic-bubbles-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.prismatic-bubbles-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.8) !important;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25) !important;
}

