/* ============================================================
   DRAMICBOX — GAME & ENTERTAINMENT CENTER STYLES
   ============================================================ */

.gc-modal-container {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(5, 5, 12, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.gc-modal-card {
  background: linear-gradient(145deg, rgba(20, 18, 35, 0.96), rgba(10, 9, 20, 0.98));
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(124, 58, 237, 0.15);
  border-radius: 28px; width: 95%; max-width: 860px; height: 85vh; max-height: 720px;
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.96) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gc-modal-container.active {
  opacity: 1;
}

.gc-modal-container.active .gc-modal-card {
  transform: scale(1) translateY(0);
}

/* Nav Tabs */
.gc-tab-bar {
  display: flex; gap: 8px; padding: 12px 24px;
  background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.gc-tab-btn {
  flex: 1; min-width: 120px; padding: 10px 14px; border-radius: 14px; border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03); color: #94a3b8; font-weight: 700; font-size: 0.83rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap;
}

.gc-tab-btn:hover {
  background: rgba(139, 92, 246, 0.12); color: #c4b5fd;
}

.gc-tab-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(219, 39, 119, 0.25));
  border-color: rgba(167, 139, 250, 0.4); color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

/* Content Area */
.gc-content-body {
  padding: 24px 30px; overflow-y: auto; flex: 1;
}

/* Actor Cards Grid */
.actor-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px;
}

.actor-card-item {
  background: linear-gradient(145deg, rgba(28, 25, 55, 0.8), rgba(15, 14, 28, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.25); border-radius: 20px; padding: 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.actor-card-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(124, 58, 237, 0.25);
}

.actor-card-avatar {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 3px solid #7c3aed; box-shadow: 0 0 16px rgba(124, 58, 237, 0.4); margin-bottom: 12px;
}

.rarity-badge-ssr {
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  font-size: 0.65rem; font-weight: 900; padding: 3px 8px; border-radius: 99px;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px;
}

.rarity-badge-sr {
  background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff;
  font-size: 0.65rem; font-weight: 900; padding: 3px 8px; border-radius: 99px;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px;
}

/* Loot Chest Card */
.chest-card {
  background: linear-gradient(145deg, rgba(30, 27, 60, 0.7), rgba(15, 14, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 20px;
  text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: space-between;
}

.chest-card:hover {
  border-color: rgba(139, 92, 246, 0.4); transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Pass Quest Item */
.quest-item {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px; padding: 14px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin-bottom: 10px; transition: background 0.2s ease;
}

.quest-item:hover {
  background: rgba(139, 92, 246, 0.06); border-color: rgba(139, 92, 246, 0.2);
}

/* ═══════════════ CHEST OPENING 3D ANIMATION ═══════════════ */
.chest-open-animation-overlay {
    position: fixed; inset: 0; z-index: 100020;
    background: rgba(5, 5, 12, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: chestFadeIn 0.3s ease;
}

@keyframes chestFadeIn { from { opacity: 0; } to { opacity: 1; } }

.chest-open-animation-overlay .animation-container {
    text-align: center; max-width: 500px; width: 100%;
    background: rgba(15, 15, 25, 0.85); border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 32px; padding: 40px 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 60px rgba(139, 92, 246, 0.2);
}

.chest-box-shaker { position: relative; width: 130px; height: 130px; margin: 0 auto 20px; }
.chest-large-icon { font-size: 5rem; color: #fbbf24; text-shadow: 0 0 30px rgba(251, 191, 36, 0.6); }

.animate-shake {
    animation: chestShake 0.6s infinite ease-in-out;
}

@keyframes chestShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.1); }
    75% { transform: rotate(8deg) scale(1.1); }
}

.animate-burst {
    animation: chestBurst 0.6s ease forwards;
}

@keyframes chestBurst {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.reward-pill {
    padding: 10px 20px; border-radius: 20px; font-weight: 900; font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.reward-pill.xp-pill { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: white; }
.reward-pill.coin-pill { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }

