/* Quizzalo CSS Module: 04_profile_store_coach.css - Student Profile Dashboard, Wallet Tokens, Revision Notebook, Duels, Certificates, Store & Modern Hotseat */

/* ============================================================= */
/* STUDENT PROFILE & ASPIRANT DASHBOARD RESPONSIVE STYLES */
/* ============================================================= */

.profile-header-section {
  margin-bottom: 1.75rem;
}

.profile-header-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  line-height: 1.25;
}

.profile-header-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* =============================================================
   NATURAL & COMPACT ASPIRANT WALLET STRIP (THEME-AWARE & SLEEK)
   ============================================================= */
.aspirant-wallet-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.65rem;
  width: 100%;
  box-sizing: border-box;
}

.wallet-token-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-token-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.wallet-token-card.token-card-energy {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05) 0%, var(--bg-card) 100%);
  border-color: rgba(2, 132, 199, 0.32);
}

.wallet-token-card.token-card-coins {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.06) 0%, var(--bg-card) 100%);
  border-color: rgba(202, 138, 4, 0.32);
}

.wallet-token-card.token-card-orders {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, var(--bg-card) 100%);
  border-color: rgba(99, 102, 241, 0.32);
}

.wallet-token-badge.badge-orders {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.wallet-token-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.wallet-token-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wallet-token-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.token-card-energy .wallet-token-title {
  color: #0369a1;
}

.token-card-coins .wallet-token-title {
  color: #92400e;
}

body.hotseat-mode .token-card-energy .wallet-token-title,
[data-theme="dark"] .token-card-energy .wallet-token-title {
  color: #38bdf8;
}

body.hotseat-mode .token-card-coins .wallet-token-title,
[data-theme="dark"] .token-card-coins .wallet-token-title {
  color: #fde047;
}

.wallet-token-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.14rem 0.55rem;
  border-radius: 9999px;
  line-height: 1.2;
}

.badge-energy {
  background: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #0284c7;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.1);
}

.badge-coins {
  background: #fef3c7;
  color: #92400e !important;
  border: 1.5px solid #d97706;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1);
}

body.hotseat-mode .badge-energy,
[data-theme="dark"] .badge-energy {
  background: rgba(2, 132, 199, 0.25);
  color: #7dd3fc;
  border-color: #0284c7;
}

body.hotseat-mode .badge-coins,
[data-theme="dark"] .badge-coins {
  background: rgba(202, 138, 4, 0.25);
  color: #fef08a !important;
  border-color: #ca8a04;
}

.wallet-token-metric-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.wallet-token-value {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
  font-feature-settings: 'tnum';
}

.val-energy {
  color: #0284c7;
}

.val-coins {
  color: #ca8a04;
}

.wallet-token-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.wallet-token-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-wallet-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-wallet-energy {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-wallet-energy:hover {
  background: #0369a1;
  border-color: #0369a1;
  transform: translateY(-1px);
}

.btn-wallet-coins {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
  color: #0f172a !important;
  border-color: #ca8a04;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.25);
}

.btn-wallet-coins:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Hotseat Dark Mode Adaptations */
body.hotseat-mode .wallet-token-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

body.hotseat-mode .val-coins {
  color: #fde047;
}

body.hotseat-mode .val-energy {
  color: #38bdf8;
}

body.hotseat-mode .token-card-energy .wallet-token-title {
  color: #38bdf8;
}

body.hotseat-mode .token-card-coins .wallet-token-title {
  color: #facc15;
}

body.hotseat-mode .badge-energy {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

body.hotseat-mode .badge-coins {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.35);
}

/* Backwards-compatibility fallback */
.dual-token-dashboard-card {
  display: contents;
}

/* Profile Summary Grid: 2 Columns on Desktop, 1 Column Stack on Mobile */
.profile-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.profile-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-sizing: border-box;
  width: 100%;
}

/* Stats Overview 6-Pack Grid (Balanced 3x2 Desktop, 2x3 Tablet/Mobile) */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  align-content: start;
  box-sizing: border-box;
}

.profile-stats-grid .calc-metric-box {
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 98px;
}

.profile-stats-grid .calc-metric-box div:last-child {
  font-size: 1.25rem !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Badges Grid */
.profile-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

/* Revision Notebook / Galti Sudhaar Box */
.revision-notebook-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

.revision-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.revision-filter-tabs-wrapper {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Responsive Table Wrapper */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
}

.table-responsive-wrapper table {
  width: 100%;
  margin: 0;
  min-width: 500px;
}

/* Universal Wallet Transaction Ledger Table */
.wallet-tx-table {
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: collapse;
}

.wallet-tx-table th,
.wallet-tx-table td {
  padding: 0.85rem 1rem;
}

.tx-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.45px !important;
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1.5px solid #d97706 !important;
  padding: 0.22rem 0.6rem !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.12) !important;
  line-height: 1.2 !important;
}

body.hotseat-mode .tx-badge,
[data-theme="dark"] .tx-badge {
  background: rgba(202, 138, 4, 0.25) !important;
  color: #fef08a !important;
  border-color: #ca8a04 !important;
}

/* ==========================================================================
   Mobile Zero-Horizontal-Scroll Card Transformation for Coin Wallet Transactions
   Eliminates all horizontal scrolling on viewports <= 768px.
   Converts 4-column ledger into clean, high-density, touch-friendly transaction cards.
   ========================================================================== */
@media (max-width: 768px) {
  #profile-wallet-transactions-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .table-responsive-wrapper.wallet-tx-wrapper,
  #profile-wallet-transactions-section .table-responsive-wrapper {
    overflow-x: visible !important;
    overflow-y: visible !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .table-responsive-wrapper table,
  .wallet-tx-table,
  #profile-wallet-transactions-section table,
  #profile-wallet-transactions-section .leaderboard-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  #profile-wallet-transactions-section thead,
  .wallet-tx-table thead {
    display: none !important;
  }

  #profile-wallet-transactions-section tbody,
  .wallet-tx-table tbody,
  #profile-tx-tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #profile-tx-tbody tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 0.35rem 0.5rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  }

  #profile-tx-tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--border-color) !important;
  }

  #profile-tx-tbody tr td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* Coins Amount: Right-Aligned in Card Header */
  #profile-tx-tbody tr td.tx-amount-cell,
  #profile-tx-tbody tr td:nth-child(1) {
    order: 2 !important;
    margin-left: auto !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    text-align: right !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  /* Activity Badge: Left-Aligned in Card Header */
  #profile-tx-tbody tr td.tx-badge-cell,
  #profile-tx-tbody tr td:nth-child(2) {
    order: 1 !important;
    margin-right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .tx-badge {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.55rem !important;
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1.5px solid #d97706 !important;
  }

  body.hotseat-mode .tx-badge,
  [data-theme="dark"] .tx-badge {
    background: rgba(202, 138, 4, 0.25) !important;
    color: #fef08a !important;
    border-color: #ca8a04 !important;
  }

  /* Description: Full-Width Middle Body */
  #profile-tx-tbody tr td.tx-desc-cell,
  #profile-tx-tbody tr td:nth-child(3) {
    order: 3 !important;
    width: 100% !important;
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    color: var(--text-main) !important;
    font-weight: 500 !important;
    margin-top: 0.25rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Date: Full-Width Small Muted Bottom Row */
  #profile-tx-tbody tr td.tx-date-cell,
  #profile-tx-tbody tr td:nth-child(4) {
    order: 4 !important;
    width: 100% !important;
    font-size: 0.74rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }

  /* Empty State Cell */
  #profile-tx-tbody tr td[colspan] {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 1.75rem 1rem !important;
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
  }
}

@media (max-width: 640px) {
  .profile-tx-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .profile-tx-header-bar h3 {
    font-size: 1.15rem !important;
  }
  #tx-pagination-bar {
    width: 100% !important;
  }
}

/* Mobile & Tablet Optimizations */
@media (max-width: 900px) {
  .profile-summary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .profile-header-title {
    font-size: 1.45rem;
  }

  .profile-header-desc {
    font-size: 0.85rem;
  }

  .aspirant-wallet-bar {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .wallet-token-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0.85rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .wallet-token-content {
    width: 100% !important;
    min-width: 0 !important;
  }

  .wallet-token-hint {
    white-space: normal !important;
    word-break: break-word !important;
  }

  .btn-wallet-action {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .wallet-token-value {
    font-size: 1.4rem;
  }

  .profile-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .profile-card-box {
    padding: 1.15rem;
    border-radius: 14px;
  }

  .profile-credentials-avatar {
    width: 3.25rem !important;
    height: 3.25rem !important;
    font-size: 1.6rem !important;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem;
  }

  .profile-stats-grid .calc-metric-box {
    padding: 0.75rem 0.65rem !important;
  }

  .profile-stats-grid .calc-metric-box div:first-child {
    font-size: 0.68rem !important;
  }

  .profile-stats-grid .calc-metric-box div:last-child {
    font-size: 1.15rem !important;
    margin-top: 0.2rem !important;
  }

  .profile-badges-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .profile-badges-grid .reward-card {
    padding: 0.85rem !important;
  }

  .profile-badges-grid .reward-card div:first-child {
    font-size: 1.85rem !important;
  }

  .revision-notebook-box {
    padding: 1.1rem;
    border-radius: 14px;
    margin-bottom: 1.75rem;
  }

  .revision-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .revision-filter-tabs-wrapper {
    width: 100%;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 0.4rem !important;
    padding-bottom: 0.35rem;
  }

  .revision-filter-tabs-wrapper .btn {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.65rem !important;
    white-space: nowrap;
    flex: 1 1 auto;
    justify-content: center;
  }

  .revision-options-grid {
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
  }
}

@media (max-width: 420px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }

  .profile-badges-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ========================================================
   HIGH-VISIBILITY HOVER PROTECTION FOR BUTTONS IN DARK CONTAINERS
   Fixes white-on-white button hover issue in KBC cards & Dark Modals
   ======================================================== */
.kbc-trophy-card .btn-secondary,
.btn-dark-card,
.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.kbc-trophy-card .btn-secondary:hover,
.btn-dark-card:hover,
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1.5px);
}

.kbc-trophy-card .btn-secondary:active,
.btn-dark-card:active,
.btn-outline-light:active {
  background-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(0);
}

/* Hero Section Secondary Buttons: Crisp Dark Text on Light Card */
.hero-section .btn-secondary {
  background-color: var(--bg-card) !important;
  border: 1.5px solid var(--border-color) !important;
  color: var(--text-main) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-section .btn-secondary:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(201, 24, 43, 0.15) !important;
}

/* Article Reward Card & High-Contrast Claim Buttons */
.article-reward-card {
  background: var(--bg-card);
  border: 2px solid #ca8a04;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(202, 138, 4, 0.12);
  margin-top: 2.25rem;
  transition: all 0.3s ease;
}

.article-claim-btn {
  font-size: 1.05rem;
  padding: 0.8rem 2.25rem;
  border-radius: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

.article-claim-btn.claimed {
  background-color: #ecfdf5 !important;
  border: 1.5px solid #10b981 !important;
  color: #047857 !important;
  cursor: default !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.article-claim-btn.locked {
  background-color: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
  cursor: not-allowed !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  opacity: 0.95 !important;
}

.article-claim-btn.unlocked {
  background-color: #c9182b !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(201, 24, 43, 0.45) !important;
  animation: pulse-red-btn 2s infinite;
}

@keyframes pulse-red-btn {
  0% { transform: scale(1); box-shadow: 0 4px 14px rgba(201, 24, 43, 0.35); }
  50% { transform: scale(1.025); box-shadow: 0 8px 24px rgba(201, 24, 43, 0.55); }
  100% { transform: scale(1); box-shadow: 0 4px 14px rgba(201, 24, 43, 0.35); }
}

/* Universal High-Contrast Buttons for Specific Dark Modal Dialogs */
#duel-arena-modal .btn-secondary,
#daily-sprint-modal .btn-secondary,
#insufficient-coins-modal .btn-secondary,
#shipping-address-modal .btn-secondary,
#digital-confirm-modal .btn-secondary,
#redemption-success-modal .btn-secondary,
#my-orders-modal .btn-secondary,
#study-handbook-modal .btn-secondary,
#language-selector-modal .btn-secondary,
#audience-poll-modal .btn-secondary,
#ask-expert-modal .btn-secondary,
#rewarded-ad-modal .btn-secondary,
#notification-preferences-modal .btn-secondary,
#certificate-viewer-modal .btn-secondary,
body.hotseat-mode .modal-content .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

#duel-arena-modal .btn-secondary:hover,
#daily-sprint-modal .btn-secondary:hover,
#insufficient-coins-modal .btn-secondary:hover,
#shipping-address-modal .btn-secondary:hover,
#digital-confirm-modal .btn-secondary:hover,
#redemption-success-modal .btn-secondary:hover,
#my-orders-modal .btn-secondary:hover,
#study-handbook-modal .btn-secondary:hover,
#language-selector-modal .btn-secondary:hover,
#audience-poll-modal .btn-secondary:hover,
#ask-expert-modal .btn-secondary:hover,
#rewarded-ad-modal .btn-secondary:hover,
#notification-preferences-modal .btn-secondary:hover,
#certificate-viewer-modal .btn-secondary:hover,
body.hotseat-mode .modal-content .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: #facc15 !important;
  color: #fef08a !important;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.4) !important;
  transform: translateY(-1px);
}

/* High-Contrast Visible Action Buttons for Quiz Result Modal */
#quiz-result-modal .btn-secondary {
  background-color: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

#quiz-result-modal .btn-secondary:hover {
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-1px) !important;
}

body.hotseat-mode #quiz-result-modal .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

body.hotseat-mode #quiz-result-modal .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: #ca8a04 !important;
  color: #fef08a !important;
}

#quiz-result-modal .modal-content {
  overflow: hidden !important;
  max-height: 94vh !important;
}

/* ======================================================== */
/* 1v1 FRIEND DUEL ARENA & DAILY SPRINT: STABLE MODAL & SPRINT STYLES */
/* ======================================================== */
#duel-arena-modal .modal-content,
#daily-sprint-modal .modal-content {
  max-height: 94vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
  box-sizing: border-box !important;
  padding: 1.25rem 1.45rem !important;
  width: 95% !important;
  max-width: 620px !important;
}

@media (max-width: 600px) {
  #duel-arena-modal .modal-content,
  #daily-sprint-modal .modal-content {
    padding: 1rem 0.95rem !important;
    width: 96% !important;
    max-height: 96vh !important;
  }
}

/* Category Grid in Duel Arena: Uniform 50-50 Columns */
#duel-arena-modal .duel-cat-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  margin-bottom: 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 580px) {
  #duel-arena-modal .duel-cat-grid {
    grid-template-columns: 1fr !important;
  }
}

#duel-arena-modal .duel-cat-btn,
.duel-cat-btn {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 2px solid rgba(255, 255, 255, 0.18) !important;
  color: #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 0.7rem 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
  text-align: left !important;
  user-select: none !important;
  min-height: 52px !important;
}

#duel-arena-modal .duel-cat-btn:hover,
.duel-cat-btn:hover {
  background: rgba(202, 138, 4, 0.2) !important;
  border-color: #ca8a04 !important;
  color: #fef08a !important;
  transform: none !important;
}

#duel-arena-modal .duel-cat-btn.active,
.duel-cat-btn.active {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.35) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 2px solid #ca8a04 !important;
  color: #fef08a !important;
  box-shadow: 0 0 16px rgba(202, 138, 4, 0.45) !important;
  font-weight: 800 !important;
  transform: none !important;
}

.duel-cat-btn-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.duel-cat-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.duel-cat-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.duel-cat-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duel-cat-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#duel-arena-modal .duel-cat-btn.active .duel-cat-sub {
  color: #fde047;
  opacity: 0.9;
}

.duel-cat-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  transition: all 0.2s ease;
  margin-left: 0.4rem;
  flex-shrink: 0;
}

#duel-arena-modal .duel-cat-btn.active .duel-cat-check,
.duel-cat-btn.active .duel-cat-check {
  background: #ca8a04 !important;
  color: #0f172a !important;
  box-shadow: 0 0 8px rgba(254, 240, 138, 0.8) !important;
}

/* Past Duels Link */
.duel-view-history-link {
  background: transparent !important;
  border: none !important;
  color: #38bdf8 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  padding: 0.2rem 0.4rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  transition: color 0.2s !important;
}

.duel-view-history-link:hover {
  color: #7dd3fc !important;
}

/* 1v1 Battle Choice Buttons - 100% FIXED WIDTH, NEVER FLUCTUATES */
#duel-arena-modal .duel-choice-btn,
.duel-choice-btn {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 2px solid rgba(255, 255, 255, 0.22) !important;
  color: #f8fafc !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.96rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  cursor: pointer !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: 52px !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
  transform: none !important;
  opacity: 1 !important;
  margin: 0 !important;
}

#duel-arena-modal .duel-choice-btn:hover:not(:disabled),
.duel-choice-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: none !important;
}

#duel-arena-modal .duel-choice-btn.selected,
#duel-arena-modal .duel-choice-btn:disabled.selected,
.duel-choice-btn.selected,
.duel-choice-btn:disabled.selected {
  background: linear-gradient(135deg, #ca8a04 0%, #facc15 100%) !important;
  border: 2px solid #fef08a !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.6) !important;
  opacity: 1 !important;
  transform: none !important;
}

.duel-opt-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ca8a04 !important;
  font-weight: 900 !important;
  font-size: 0.88rem !important;
  flex-shrink: 0 !important;
}

#duel-arena-modal .duel-choice-btn.selected .duel-opt-badge,
.duel-choice-btn.selected .duel-opt-badge {
  background: #0f172a !important;
  color: #fef08a !important;
}

.duel-opt-text {
  flex: 1 !important;
  min-width: 0 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* Daily Sprint Options Grid - Guaranteed Identical Widths & Zero Jump */
.sprint-options-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  margin-bottom: 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 580px) {
  .sprint-options-grid {
    grid-template-columns: 1fr !important;
  }
}

.sprint-choice-btn {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 2px solid rgba(255, 255, 255, 0.22) !important;
  color: #f8fafc !important;
  border-radius: 12px !important;
  padding: 0.75rem 0.95rem !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  cursor: pointer !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: 52px !important;
  transition: background 0.18s ease, border-color 0.18s ease !important;
  transform: none !important;
  margin: 0 !important;
}

.sprint-choice-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: none !important;
}

.sprint-opt-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ca8a04 !important;
  font-weight: 900 !important;
  font-size: 0.82rem !important;
  flex-shrink: 0 !important;
}

.sprint-opt-text {
  flex: 1 !important;
  min-width: 0 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
  text-align: left !important;
}


/* ======================================================== */
/* AWARDS, HONORS & VERIFIED CERTIFICATES GALLERY STYLING   */
/* ======================================================== */
.merit-recognition-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fef3c7;
  color: #92400e !important;
  border: 1.5px solid #d97706;
  padding: 0.28rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15);
}

body.hotseat-mode .merit-recognition-pill,
[data-theme="dark"] .merit-recognition-pill {
  background: rgba(202, 138, 4, 0.25);
  color: #fef08a !important;
  border-color: #ca8a04;
}

/* Universal High-Visibility Profile Merit Badges & Pills (Image 2 Design Standard) */
.profile-certs-count-pill {
  background: #d1fae5 !important;
  border: 1.5px solid #059669 !important;
  color: #065f46 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 0.32rem 0.85rem !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.1) !important;
}

body.hotseat-mode .profile-certs-count-pill,
[data-theme="dark"] .profile-certs-count-pill {
  background: rgba(5, 150, 105, 0.25) !important;
  color: #6ee7b7 !important;
  border-color: #059669 !important;
}

.article-reward-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #92400e !important;
  background: #fef3c7 !important;
  border: 1.5px solid #d97706 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1) !important;
}

body.hotseat-mode .article-reward-pill,
[data-theme="dark"] .article-reward-pill {
  background: rgba(202, 138, 4, 0.25) !important;
  color: #fef08a !important;
  border-color: #ca8a04 !important;
}

.coming-soon-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: #fef3c7 !important;
  border: 1.5px solid #d97706 !important;
  padding: 0.22rem 0.65rem !important;
  border-radius: 20px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  color: #92400e !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1) !important;
}

body.hotseat-mode .coming-soon-pill,
[data-theme="dark"] .coming-soon-pill {
  background: rgba(202, 138, 4, 0.25) !important;
  color: #fef08a !important;
  border-color: #ca8a04 !important;
}

/* Category Filter Tabs */
.cert-filter-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cert-filter-btn:hover {
  background: rgba(202, 138, 4, 0.15);
  border-color: #ca8a04;
  color: var(--text-main);
}

.cert-filter-btn.active {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #0f172a !important;
  border-color: #ca8a04;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.35);
}

/* ==========================================================================
   Universal Responsive Section Pagination Component
   Used for: My Awards & Honors, Coin Wallet Transactions
   ========================================================================== */
.section-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.section-pagination-bar .pagination-info {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.section-pagination-bar .pagination-info strong {
  color: var(--text-main);
  font-weight: 800;
}

.section-pagination-bar .pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.page-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-height: 32px;
  line-height: 1;
}

.page-nav-btn:hover:not(:disabled) {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
  transform: translateY(-1px);
}

body.hotseat-mode .page-nav-btn:hover:not(:disabled),
[data-theme="dark"] .page-nav-btn:hover:not(:disabled) {
  background: rgba(202, 138, 4, 0.25);
  border-color: #ca8a04;
  color: #fef08a;
}

.page-nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--border-color);
  background: transparent;
}

.page-arrow {
  font-size: 0.72rem;
  display: inline-block;
  transition: transform 0.15s ease;
}

.page-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #92400e !important;
  background: #fef3c7 !important;
  border: 1.5px solid #d97706 !important;
  padding: 0.32rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
  min-width: 5.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.12);
}

body.hotseat-mode .page-indicator,
[data-theme="dark"] .page-indicator {
  background: rgba(202, 138, 4, 0.25) !important;
  color: #fef08a !important;
  border-color: #ca8a04 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .section-pagination-bar {
    padding: 0.4rem 0.6rem;
    gap: 0.45rem;
  }
  .section-pagination-bar .pagination-info {
    font-size: 0.75rem;
  }
  .page-nav-btn {
    font-size: 0.74rem;
    padding: 0.3rem 0.55rem;
    min-height: 30px;
  }
  .page-indicator {
    font-size: 0.74rem;
    padding: 0.28rem 0.45rem;
    min-width: 4.8rem;
  }
}

/* Compact, Sleek Certificates Grid */
.profile-certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .profile-certificates-grid {
    grid-template-columns: 1fr;
  }
}

.cert-card-box {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(202, 138, 4, 0.45);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.cert-card-box:hover {
  transform: translateY(-3px);
  border-color: #ca8a04;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(202, 138, 4, 0.25) !important;
}

.cert-card-box.locked {
  background: var(--bg-card);
  border: 1.5px dashed var(--border-color);
  opacity: 0.78;
}

.cert-card-actions button {
  transition: all 0.2s ease;
}

.cert-card-actions button:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* Certificate Viewer Modal Styling */
.cert-modal-content {
  animation: certModalZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes certModalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* High-Contrast Action Buttons in Modal */
.cert-btn-download {
  background: linear-gradient(135deg, #facc15, #ca8a04) !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.45) !important;
}

.cert-btn-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cert-btn-share {
  background: #25d366 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important;
}

.cert-btn-share:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cert-btn-print {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1.5px solid #3b82f6 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

.cert-btn-print:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
}

.cert-btn-close {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  font-weight: 800 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cert-btn-close:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.65) !important;
  color: #fca5a5 !important;
  transform: translateY(-1px);
}

.cert-btn-close:active {
  transform: scale(0.95) !important;
}

/* ========================================================
   QUIZZALO COMPREHENSIVE REWARDS & STUDENT GIFTING ECOSYSTEM
   ======================================================== */
.store-hero-banner {
  background: linear-gradient(135deg, #090d16 0%, #17153b 50%, #0f172a 100%);
  border: 2px solid #ca8a04;
  border-radius: 18px;
  padding: 1.85rem 2.25rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  color: #ffffff;
  overflow: hidden;
}

.store-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #fde047 0%, #ca8a04 100%);
  color: #090d16;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 0.28rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.35);
}

.store-hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  margin: 0.45rem 0 0.45rem 0;
  color: #facc15;
  letter-spacing: -0.5px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.store-hero-desc {
  color: #e2e8f0;
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.store-wallet-actions-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.store-wallet-pill {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #ca8a04;
  border-radius: 9999px;
  padding: 0.55rem 1.35rem;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fde047;
  box-shadow: 0 4px 16px rgba(202, 138, 4, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.store-banner-btn-orders {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.52rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.store-banner-btn-orders:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.store-banner-btn-earn {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
  color: #0f172a !important;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.52rem 1.15rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.35);
}

.store-banner-btn-earn:hover {
  filter: brightness(1.1);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(202, 138, 4, 0.45);
}

@media (max-width: 768px) {
  .store-hero-banner {
    padding: 1.25rem 1rem !important;
  }
  .store-hero-title {
    font-size: 1.45rem !important;
  }
  .store-wallet-actions-box {
    width: 100% !important;
    align-items: stretch !important;
    margin-top: 0.75rem !important;
    flex-direction: column !important;
  }
  .store-wallet-actions-box > div {
    width: 100% !important;
  }
  .store-wallet-pill {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .store-banner-btn-orders,
  .store-banner-btn-earn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    font-size: 0.76rem !important;
    padding: 0.55rem 0.4rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

.store-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0.5rem 0.85rem 0.5rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.store-filter-bar::-webkit-scrollbar {
  display: none;
}

.store-filter-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 2px solid var(--border-color);
  padding: 0.52rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700 !important;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-sizing: border-box;
  flex-shrink: 0;
  transform: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-filter-btn:hover {
  border-color: #ca8a04;
  color: #b45309;
  background: rgba(202, 138, 4, 0.08);
  transform: none !important;
}

.store-filter-btn.active {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%) !important;
  color: #0f172a !important;
  border-color: #eab308 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.28) !important;
  transform: none !important;
}

.store-filter-btn:active {
  transform: none !important;
}

.store-card-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 0.9rem 0.95rem;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.store-card-box * {
  box-sizing: border-box;
}

.store-card-box:hover {
  transform: translateY(-3px);
  border-color: #ca8a04;
  box-shadow: 0 12px 28px rgba(202, 138, 4, 0.18);
}

.store-card-box h3 {
  color: #0f172a !important;
}

body.hotseat-mode .store-card-box,
[data-theme="dark"] .store-card-box {
  background: #0f172a;
  border-color: #1e293b;
}

body.hotseat-mode .store-card-box h3,
[data-theme="dark"] .store-card-box h3 {
  color: #f8fafc !important;
}

.store-card-box.locked-coins {
  opacity: 0.96;
}

.store-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.25px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.2;
}

.badge-courier {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-download {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-voucher {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-celeb {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

body.hotseat-mode .badge-courier {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}

body.hotseat-mode .badge-download {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.35);
}

body.hotseat-mode .badge-voucher {
  background: rgba(147, 51, 234, 0.15);
  color: #c084fc;
  border-color: rgba(147, 51, 234, 0.35);
}

body.hotseat-mode .badge-celeb {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.35);
}

.btn-outline-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #d97706;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1);
}

body.hotseat-mode .btn-outline-gold,
[data-theme="dark"] .btn-outline-gold {
  background: rgba(202, 138, 4, 0.22);
  color: #fef08a;
  border-color: #ca8a04;
}

.btn-outline-gold:hover {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
  color: #0f172a !important;
  border-color: #ca8a04;
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25);
  transform: translateY(-1px);
}

.insufficient-progress-container {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(202, 138, 4, 0.25);
  margin: 0.85rem 0 0.35rem 0;
}

.insufficient-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ca8a04 0%, #facc15 100%);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.store-disclaimer-box {
  background: #0f172a;
  border: 1.5px solid #ca8a04;
  border-radius: 14px;
  padding: 1.35rem 1.65rem;
  text-align: left;
  margin-top: 2.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.store-disclaimer-text {
  font-size: 0.82rem;
  color: #cbd5e1 !important;
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}

.store-disclaimer-strong {
  color: #fef08a !important;
  font-weight: 800;
  background: rgba(202, 138, 4, 0.22);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

/* Sleek Modern Modal Single Scrollbar */
#my-orders-list-container::-webkit-scrollbar,
#handbook-modal-body::-webkit-scrollbar {
  width: 6px;
}
#my-orders-list-container::-webkit-scrollbar-track,
#handbook-modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}
#my-orders-list-container::-webkit-scrollbar-thumb,
#handbook-modal-body::-webkit-scrollbar-thumb {
  background: rgba(202, 138, 4, 0.6);
  border-radius: 4px;
}
#my-orders-list-container::-webkit-scrollbar-thumb:hover,
#handbook-modal-body::-webkit-scrollbar-thumb:hover {
  background: #facc15;
}


/* ========================================================
   GOOGLE ONE TAP & MOBILE/EMAIL AUTO-FETCH OTP STYLING
   ======================================================== */

/* Google One Tap Floating Card (Desktop & Mobile) */
.google-one-tap-card {
  position: fixed;
  top: 185px;
  right: 24px;
  width: 375px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  color: #1f2937;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  z-index: 99999;
  padding: 1.25rem 1.4rem;
  box-sizing: border-box;
  animation: slideInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .google-one-tap-card {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.25rem 1.2rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

.google-one-tap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.google-one-tap-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}

.google-one-tap-close {
  background: transparent;
  border: 1px solid transparent;
  font-size: 1.05rem;
  color: #6b7280;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.google-one-tap-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #dc2626;
  transform: scale(1.06);
}

.google-one-tap-close:active {
  transform: scale(0.92);
  background: rgba(239, 68, 68, 0.18);
}

.google-one-tap-close:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.google-one-tap-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-one-tap-account:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.google-one-tap-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.google-one-tap-info {
  flex: 1;
  min-width: 0;
}

.google-one-tap-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-one-tap-email {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-google-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #1a73e8;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-google-primary:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

.google-one-tap-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #64748b;
}

.google-one-tap-switch {
  color: #1a73e8;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.google-one-tap-switch:hover {
  text-decoration: underline;
}

/* Auth Mode Toggle (OTP vs Password) */
.auth-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  gap: 0.25rem;
}

.dark-mode .auth-mode-toggle {
  background: rgba(255, 255, 255, 0.08);
}

.auth-mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 0.5rem;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-mode-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-weight: 800;
}

.dark-mode .auth-mode-btn.active {
  background: #1e293b;
  color: #fef08a;
}

/* 6-Box OTP Input Grid */
.otp-boxes-wrapper {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.25rem 0 0.85rem;
}

.otp-digit-box {
  width: 48px;
  height: 56px;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@media (max-width: 420px) {
  .otp-digit-box {
    width: 42px;
    height: 50px;
    font-size: 1.4rem;
    gap: 0.35rem;
  }
}

.otp-digit-box:focus {
  border-color: #dc2626;
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
  transform: translateY(-2px);
}

.otp-digit-box.filled {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.05);
}

/* Auto-Fetch Detection Banner & Pulsing Indicator */
.otp-detected-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.16));
  border: 1.5px dashed #16a34a;
  border-radius: 12px;
  margin: 1rem 0;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: pulseGlow 2s infinite;
}

.otp-detected-banner:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.25));
  transform: scale(1.01);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.otp-pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 8px #16a34a;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.otp-detected-info {
  flex: 1;
  text-align: left;
}

.otp-detected-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #15803d;
}

.dark-mode .otp-detected-title {
  color: #86efac;
}

.otp-detected-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.otp-autofill-badge {
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}


/* Centered Store Gift Hero Images */
.store-gift-img-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-gift-img-box:hover {
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25) !important;
}

body.hotseat-mode .store-gift-img-box {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(202, 138, 4, 0.12) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.28) !important;
}

/* ========================================================
   HOTSEAT 3-2-1 DRAMATIC PRE-GAME COUNTDOWN OVERLAY
   ======================================================== */
.hotseat-countdown-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(30, 27, 75, 0.97) 0%, rgba(10, 15, 30, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 1;
  transition: opacity 0.35s ease-out;
}

.hotseat-countdown-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.countdown-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  padding: 2rem;
  box-sizing: border-box;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(202, 138, 4, 0.18);
  border: 1.5px solid #eab308;
  color: #fef08a;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.3);
}

.countdown-cat {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.countdown-display-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.countdown-circle-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(234, 179, 8, 0.4);
  box-shadow: 0 0 45px rgba(202, 138, 4, 0.4), inset 0 0 35px rgba(202, 138, 4, 0.25);
  animation: countdownPulseGlow 1.5s infinite alternate ease-in-out;
}

@keyframes countdownPulseGlow {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 70px rgba(234, 179, 8, 0.7), inset 0 0 45px rgba(234, 179, 8, 0.45); }
}

.countdown-number {
  font-size: 7.5rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 40%, #ca8a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(234, 179, 8, 0.8));
  user-select: none;
  transform: scale(1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.countdown-number.pop {
  animation: countdownNumberPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countdownNumberPop {
  0% { transform: scale(0.35); opacity: 0; filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.3)); }
  70% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 25px rgba(234, 179, 8, 0.8)); }
}

.countdown-number.boom {
  animation: countdownNumberBoom 0.65s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes countdownNumberBoom {
  0% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 25px rgba(234, 179, 8, 0.8)); }
  35% { transform: scale(1.85); opacity: 1; filter: drop-shadow(0 0 55px rgba(234, 179, 8, 1)) brightness(1.6); }
  100% { transform: scale(3.2); opacity: 0; filter: blur(14px) drop-shadow(0 0 90px rgba(234, 179, 8, 0)); }
}

.countdown-subtext {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  min-height: 2.2rem;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* ========================================================
   HOTSEAT IMMERSIVE GAMEPLAY MODE (NO TOP/BOTTOM CUT-OFF)
   Hides navbar, banners, footers and fits 100% in viewport
   ======================================================== */
body.hotseat-gameplay-active {
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  background-color: #030712 !important;
}

body.hotseat-gameplay-active #top-academic-banner-container,
body.hotseat-gameplay-active #top-academic-banner,
body.hotseat-gameplay-active .adsense-slot,
body.hotseat-gameplay-active #hotseat-points-clarity-banner,
body.hotseat-gameplay-active #top-multilang-bar,
body.hotseat-gameplay-active .navbar,
body.hotseat-gameplay-active #mobile-bottom-nav,
body.hotseat-gameplay-active footer.footer,
body.hotseat-gameplay-active .qc-floating-pill,
body.hotseat-gameplay-active #pwa-install-app-banner,
body.hotseat-gameplay-active #sim-push-banner,
body.hotseat-gameplay-active #dpdp-consent-banner,
body.hotseat-gameplay-active #quizzalo-cookie-banner {
  display: none !important;
}

body.hotseat-gameplay-active main.container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.hotseat-gameplay-active #view-quiz-arena {
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hotseat-gameplay-active #quiz-arena-gameplay-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 9999 !important;
  background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 70%, #030712 100%) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 1.15rem 1rem !important;
  box-sizing: border-box !important;
}

body.hotseat-gameplay-active .kbc-arena {
  margin: auto auto !important;
  flex-shrink: 0 !important;
  padding: 1.2rem 1.5rem !important;
  border-radius: 18px !important;
  max-width: 1120px !important;
  width: 96% !important;
  box-sizing: border-box !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 45px rgba(234, 179, 8, 0.3) !important;
  border: 2px solid #ca8a04 !important;
}

body.hotseat-gameplay-active .arena-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 1.25rem !important;
  align-items: start !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.hotseat-gameplay-active .lifelines-bar {
  margin-bottom: 0.75rem !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 12px !important;
  gap: 0.55rem !important;
  flex-wrap: wrap !important;
}

body.hotseat-gameplay-active .hotseat-lifelines-label {
  white-space: nowrap !important;
  font-size: 0.82rem !important;
}

body.hotseat-gameplay-active .hotseat-arena-actions {
  margin-left: auto !important;
  flex-wrap: nowrap !important;
}

body.hotseat-gameplay-active .lifeline-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  flex-wrap: nowrap !important;
}

body.hotseat-gameplay-active .lifeline-btn {
  width: auto !important;
  height: auto !important;
  padding: 0.36rem 0.65rem !important;
  font-size: 0.78rem !important;
  border-radius: 8px !important;
}

body.hotseat-gameplay-active .kbc-timer-box {
  margin-bottom: 0.65rem !important;
}

body.hotseat-gameplay-active .timer-circle {
  width: 3.5rem !important;
  height: 3.5rem !important;
  font-size: 1.35rem !important;
  border-width: 3px !important;
}

body.hotseat-gameplay-active .question-banner {
  padding: 0.95rem 1.35rem !important;
  margin-bottom: 0.75rem !important;
  border-radius: 12px !important;
}

body.hotseat-gameplay-active .question-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  width: 100% !important;
  margin-bottom: 0.35rem !important;
  font-size: 0.84rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

body.hotseat-gameplay-active .question-meta-left,
body.hotseat-gameplay-active .question-meta-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
}

body.hotseat-gameplay-active .question-meta-left {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.hotseat-gameplay-active .question-meta-right {
  flex-shrink: 0 !important;
}

body.hotseat-gameplay-active #arena-study-hub-pill {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #fde047;
  opacity: 0.92;
}

body.hotseat-gameplay-active .question-text {
  font-size: 1.2rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

body.hotseat-gameplay-active #question-readout-card {
  padding: 0.95rem 1.35rem !important;
  margin-bottom: 0.75rem !important;
  border-radius: 12px !important;
}

body.hotseat-gameplay-active #question-readout-card h3 {
  font-size: 1.1rem !important;
  margin-bottom: 0.35rem !important;
}

body.hotseat-gameplay-active #question-readout-card p {
  font-size: 0.84rem !important;
  margin: 0 auto 0.5rem !important;
  line-height: 1.35 !important;
}

body.hotseat-gameplay-active .options-grid {
  gap: 0.65rem !important;
  margin-bottom: 0.75rem !important;
}

body.hotseat-gameplay-active .option-btn {
  padding: 0.75rem 1.15rem !important;
  font-size: 0.96rem !important;
  border-radius: 10px !important;
  min-height: 52px !important;
}

body.hotseat-gameplay-active .option-badge {
  width: 1.85rem !important;
  height: 1.85rem !important;
  font-size: 0.85rem !important;
}

body.hotseat-gameplay-active .action-controls .btn-lock {
  padding: 0.75rem 1.85rem !important;
  font-size: 1.05rem !important;
  border-radius: 10px !important;
}

body.hotseat-gameplay-active .ladder-box {
  padding: 0.5rem 0.65rem !important;
  gap: 0.16rem !important;
  border-radius: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.hotseat-gameplay-active .ladder-step {
  padding: 0.32rem 0.55rem !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

body.hotseat-gameplay-active .ladder-step.grand-winner-step {
  padding: 0.4rem 0.65rem !important;
  margin-bottom: 0.2rem !important;
}

body.hotseat-gameplay-active #quiz-sidebar-sponsor {
  display: none !important;
}

.btn-secondary.arena-util-btn {
  background-color: rgba(15, 23, 42, 0.88) !important;
  border-width: 1px !important;
  padding: 0.36rem 0.65rem !important;
  font-size: 0.76rem !important;
  border-radius: 8px !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-secondary.arena-util-btn.arena-util-fs {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
}

.btn-secondary.arena-util-btn.arena-util-back {
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
}

.btn-secondary.arena-util-btn.arena-util-quit {
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.65) !important;
}

.btn-secondary.arena-util-btn:hover {
  background-color: rgba(30, 41, 59, 0.98) !important;
  color: #ffffff !important;
}

/* Desktop & Base Top App Navigation Bar inside Hotseat Arena */
body.hotseat-gameplay-active .arena-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.48rem 0.75rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(202, 138, 4, 0.28);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

body.hotseat-gameplay-active .arena-top-nav-center {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hotseat-gameplay-active .arena-nav-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.hotseat-gameplay-active .arena-top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

body.hotseat-gameplay-active .btn-arena-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

body.hotseat-gameplay-active .btn-arena-nav.btn-arena-back:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: #cbd5e1;
  color: #ffffff;
}

body.hotseat-gameplay-active .btn-arena-nav.btn-arena-fs {
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  padding: 0.4rem 0.65rem;
  font-size: 0.92rem;
  line-height: 1;
}

body.hotseat-gameplay-active .btn-arena-nav.btn-arena-quit {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

body.hotseat-gameplay-active .btn-arena-nav.btn-arena-quit:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #ffffff;
}

@media (min-width: 901px) {
  body.hotseat-gameplay-active .hotseat-ladder-stepper-wrap {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body.hotseat-gameplay-active #quiz-arena-gameplay-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.45rem 0.45rem 0.85rem !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box !important;
  }

  body.hotseat-gameplay-active .kbc-arena {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 520px !important;
    padding: 0.55rem 0.5rem !important;
    border-radius: 14px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  body.hotseat-gameplay-active .arena-layout {
    display: block !important;
    width: 100% !important;
  }

  body.hotseat-gameplay-active .hotseat-main {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.hotseat-gameplay-active .arena-top-nav-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.32rem 0.45rem !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(202, 138, 4, 0.25) !important;
    border-radius: 12px !important;
    margin-bottom: 0.38rem !important;
    box-sizing: border-box !important;
  }

  body.hotseat-gameplay-active .arena-top-nav-center {
    flex: 1 !important;
    text-align: center !important;
    padding: 0 0.4rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.hotseat-gameplay-active .arena-nav-title {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    color: #fef08a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }

  body.hotseat-gameplay-active .btn-arena-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    padding: 0.3rem 0.55rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
  }

  body.hotseat-gameplay-active .btn-arena-nav.btn-arena-back {
    border-color: rgba(148, 163, 184, 0.45) !important;
    color: #e2e8f0 !important;
  }

  body.hotseat-gameplay-active .btn-arena-nav.btn-arena-quit {
    border-color: rgba(239, 68, 68, 0.55) !important;
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.12) !important;
  }

  #hotseat-fs-toggle-btn,
  .btn-arena-fs {
    display: none !important;
  }

  body.hotseat-gameplay-active .btn-arena-nav.btn-arena-fs {
    display: none !important;
  }

  body.hotseat-gameplay-active .arena-top-nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
  }

  /* Horizontal Coins Ladder Stepper (ALWAYS VISIBLE ON MOBILE) */
  body.hotseat-gameplay-active .hotseat-ladder-stepper-wrap {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(202, 138, 4, 0.3) !important;
    border-radius: 12px !important;
    padding: 0.35rem 0.45rem !important;
    margin-bottom: 0.38rem !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease !important;
  }

  body.hotseat-gameplay-active .stepper-sub-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.2rem !important;
    flex-wrap: nowrap !important;
    padding: 0 0.15rem 0.2rem !important;
    font-size: 0.62rem !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 0.25rem !important;
  }

  body.hotseat-gameplay-active .stepper-title {
    color: #fef08a !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    font-size: 0.62rem !important;
    white-space: nowrap !important;
  }

  body.hotseat-gameplay-active .stepper-safe-tag {
    color: #86efac !important;
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  body.hotseat-gameplay-active .hotseat-horizontal-ladder {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2.5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0.1rem 0 !important;
  }

  body.hotseat-gameplay-active .hotseat-horizontal-ladder::-webkit-scrollbar {
    display: none !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 10% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.22rem 0.04rem !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    font-size: 0.6rem !important;
    line-height: 1.15 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung .rung-level {
    font-size: 0.50rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    line-height: 1.1 !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung .rung-prize {
    font-size: 0.56rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung.active {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.45) 0%, rgba(202, 138, 4, 0.75) 100%) !important;
    border: 1.5px solid #facc15 !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.45), inset 0 0 4px rgba(254, 240, 138, 0.25) !important;
    transform: none !important;
    position: relative !important;
    z-index: 1 !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung.active .rung-level {
    color: #fef08a !important;
    font-weight: 900 !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung.completed {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #86efac !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung.completed .rung-check {
    color: #22c55e !important;
    font-weight: 900 !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung.safe-zone {
    border-color: rgba(34, 197, 94, 0.6) !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung.safe-zone .rung-prize {
    color: #86efac !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung.grand-winner {
    border-color: rgba(250, 204, 21, 0.7) !important;
  }

  body.hotseat-gameplay-active .horiz-ladder-rung.grand-winner .rung-prize {
    color: #fde047 !important;
  }

  /* Lifelines Bar */
  body.hotseat-gameplay-active .lifelines-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.2rem 0.2rem !important;
    margin-bottom: 0.35rem !important;
    background: transparent !important;
    border: none !important;
  }

  body.hotseat-gameplay-active .hotseat-lifelines-label {
    display: none !important;
  }

  body.hotseat-gameplay-active .lifeline-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.3rem !important;
    width: 100% !important;
  }

  body.hotseat-gameplay-active .lifeline-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.32rem 0.15rem !important;
    font-size: 0.66rem !important;
    gap: 0.2rem !important;
    min-height: 30px !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(202, 138, 4, 0.35) !important;
    color: #fef08a !important;
  }

  body.hotseat-gameplay-active .lifeline-btn span:first-child {
    font-size: 0.8rem !important;
  }

  body.hotseat-gameplay-active .kbc-timer-box {
    margin-bottom: 0.35rem !important;
  }

  body.hotseat-gameplay-active .timer-circle {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1.05rem !important;
    border-width: 2.5px !important;
  }

  body.hotseat-gameplay-active .question-banner {
    padding: 0.65rem 0.75rem !important;
    margin-bottom: 0.45rem !important;
    border-radius: 12px !important;
  }

  body.hotseat-gameplay-active .question-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
    width: 100% !important;
    font-size: 0.72rem !important;
    margin-bottom: 0.3rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
  }

  body.hotseat-gameplay-active .question-meta-left,
  body.hotseat-gameplay-active .question-meta-right {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  body.hotseat-gameplay-active #arena-exam-badge,
  #arena-exam-badge {
    display: none !important;
  }

  body.hotseat-gameplay-active #arena-study-hub-pill {
    display: none !important;
  }

  body.hotseat-gameplay-active .question-text {
    font-size: 0.96rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
  }

  .mobile-only-ladder-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 0.2rem;
    background: rgba(202, 138, 4, 0.25);
    border: 1px solid #ca8a04;
    color: #fef08a;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    cursor: pointer;
  }

  body.hotseat-gameplay-active #question-readout-card {
    padding: 0.7rem 0.7rem !important;
    margin-bottom: 0.45rem !important;
    border-radius: 12px !important;
  }

  body.hotseat-gameplay-active #question-readout-card p {
    display: none !important;
  }

  body.hotseat-gameplay-active #question-readout-card h3 {
    font-size: 0.92rem !important;
    margin-bottom: 0.35rem !important;
  }

  body.hotseat-gameplay-active #skip-reading-btn {
    width: 100% !important;
    padding: 0.45rem 0.7rem !important;
    font-size: 0.8rem !important;
  }

  body.hotseat-gameplay-active .options-grid {
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
    margin-bottom: 0.45rem !important;
  }

  body.hotseat-gameplay-active .option-btn {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.86rem !important;
    min-height: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 9px !important;
  }

  body.hotseat-gameplay-active .option-badge {
    width: 1.55rem !important;
    height: 1.55rem !important;
    font-size: 0.78rem !important;
    margin-right: 0.5rem !important;
  }

  body.hotseat-gameplay-active .action-controls {
    gap: 0.45rem !important;
  }

  body.hotseat-gameplay-active .action-controls .btn-lock,
  body.hotseat-gameplay-active #next-question-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.68rem 1rem !important;
    font-size: 0.92rem !important;
    min-height: 42px !important;
    justify-content: center !important;
    border-radius: 10px !important;
  }

  body.hotseat-gameplay-active #wrong-answer-action-bar {
    gap: 0.45rem !important;
    width: 100% !important;
  }

  body.hotseat-gameplay-active #view-result-now-btn {
    padding: 0.72rem 1rem !important;
    font-size: 0.88rem !important;
    min-height: 42px !important;
    width: 100% !important;
  }

  body.hotseat-gameplay-active #wrong-countdown-container {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.76rem !important;
  }

  body.hotseat-gameplay-active #explanation-study-hub-card {
    display: none !important;
  }

  body.hotseat-gameplay-active #question-explanation-box.mobile-expl-hidden-correct {
    display: none !important;
  }

  body.hotseat-gameplay-active #question-explanation-box {
    padding: 0.6rem 0.7rem !important;
    margin-bottom: 0.45rem !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
  }

  body.hotseat-gameplay-active #explanation-header {
    margin-bottom: 0.2rem !important;
  }

  body.hotseat-gameplay-active #explanation-status-badge {
    font-size: 0.8rem !important;
  }

  body.hotseat-gameplay-active #explanation-reason-title {
    font-size: 0.76rem !important;
    margin-bottom: 0.15rem !important;
  }

  body.hotseat-gameplay-active #explanation-text {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    max-height: 65px !important;
    overflow-y: auto !important;
  }


  /* Mobile Backdrop for Prize Tree Drawer */
  .mobile-ladder-backdrop {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 10005 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease !important;
  }

  .mobile-ladder-backdrop.open {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Hotseat Ladder Panel as slide-up drawer on mobile */
  body.hotseat-gameplay-active .hotseat-ladder-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%) !important;
    border: 2px solid #ca8a04 !important;
    border-bottom: none !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 1rem 1rem 1.5rem !important;
    box-sizing: border-box !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9), 0 0 35px rgba(234, 179, 8, 0.3) !important;
    z-index: 10006 !important;
    transform: translateY(110%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.hotseat-gameplay-active .hotseat-ladder-panel.open {
    transform: translateY(0) !important;
  }

  #close-mobile-ladder-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
  }

  #close-mobile-ladder-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    color: #fca5a5;
    transform: scale(1.08);
  }

  #close-mobile-ladder-btn:active {
    transform: scale(0.92);
    background: rgba(239, 68, 68, 0.48);
  }

  /* Inside the mobile drawer, the ladder is a single organized vertical column! */
  body.hotseat-gameplay-active .ladder-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.32rem !important;
    padding: 0.5rem !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(202, 138, 4, 0.3) !important;
    border-radius: 12px !important;
  }

  body.hotseat-gameplay-active .ladder-step {
    padding: 0.42rem 0.75rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 34px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
  }

  body.hotseat-gameplay-active .ladder-step.active {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.4) 0%, rgba(202, 138, 4, 0.55) 100%) !important;
    border: 1.5px solid #facc15 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.5) !important;
    transform: scale(1.02);
  }

  body.hotseat-gameplay-active .ladder-step.completed {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #86efac !important;
  }

  body.hotseat-gameplay-active .ladder-step.safe-haven {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.16) !important;
  }

  body.hotseat-gameplay-active .ladder-step.grand-winner-step {
    border-color: #facc15 !important;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.28) 0%, rgba(202, 138, 4, 0.4) 100%) !important;
    font-size: 0.86rem !important;
    margin-bottom: 0.15rem !important;
  }

  body.hotseat-gameplay-active .ladder-step .safe-tag {
    font-size: 0.62rem !important;
    padding: 0.12rem 0.42rem !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
  }
}

@media (min-width: 901px) {
  #hotseat-ladder-stepper-wrap,
  .hotseat-ladder-stepper-wrap,
  #hotseat-ladder-toggle-btn,
  .arena-util-ladder,
  .mobile-only-ladder-pill,
  .mobile-ladder-backdrop,
  #close-mobile-ladder-btn {
    display: none !important;
  }
}

/* Fullscreen Toggle Button */
#hotseat-fs-toggle-btn {
  transition: all 0.2s ease !important;
}

#hotseat-fs-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-1px);
}

/* === MOBILE: Store Filter Bar → 2-col Grid (3 clean rows, counts hidden) === */
@media (max-width: 768px) {
  .store-filter-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
    gap: 0.45rem !important;
    padding: 0.4rem 0 0.6rem 0 !important;
    margin-bottom: 1.2rem !important;
    scrollbar-width: none !important;
  }
  .store-filter-bar::-webkit-scrollbar {
    display: none !important;
  }
  .store-filter-btn {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    font-size: 0.78rem !important;
    padding: 0.5rem 0.55rem !important;
    min-height: 40px !important;
    height: 100% !important;
    flex-shrink: 1 !important;
    line-height: 1.25 !important;
  }
  .store-filter-btn:first-child {
    grid-column: 1 / -1 !important;
    font-size: 0.84rem !important;
  }
  .store-filter-btn .pill-count {
    display: none !important;
  }
}
