.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition:
    background var(--transition-mid),
    border-color var(--transition-mid),
    color var(--transition-mid),
    transform var(--transition-fast),
    box-shadow var(--transition-mid);
}

.btn-base:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  transform: translateY(-1px);
}

.btn-base:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--purple-dark);
  color: #fff;
  border-color: transparent;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--muted);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #e8a020 100%);
  color: #1a0e00;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  color: #1a0e00;
  border-color: transparent;
}

.btn-back,
.btn-nav,
.btn-save-profile,
.btn-google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-family: system-ui, Arial, sans-serif;
  transition: all var(--transition-mid);
}

.btn-back,
.btn-nav {
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
}

.btn-back:hover,
.btn-nav:hover {
  color: var(--text);
  border-color: var(--purple);
}

.btn-save-profile {
  padding: 0.72rem 0.95rem;
  border: none;
  background: var(--purple);
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
}

.btn-save-profile:hover {
  background: var(--purple-dark);
}

.btn-google-login {
  padding: 0.9rem 2rem;
  margin-top: 0.5rem;
  background: var(--purple);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 20px rgba(124, 92, 191, 0.4);
  min-width: 220px;
}

.btn-google-login:hover {
  background: var(--purple-dark);
}

.filter-btn {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: system-ui, Arial, sans-serif;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}

.filter-btn.active {
  background: rgba(124, 92, 191, 0.18);
  border-color: var(--purple);
  color: var(--purple-light);
}

.input-base,
.profile-input {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.78rem;
  outline: none;
  transition: border-color var(--transition-mid), box-shadow var(--transition-mid);
}

.input-base::placeholder,
.profile-input::placeholder {
  color: var(--muted);
}

.input-base:focus,
.profile-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.12);
}

.avatar-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--purple);
  background: linear-gradient(135deg, var(--surface2), #2d1760);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-light);
}

.avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-email {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.profile-badge,
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.4rem;
  padding: 2px 10px;
  background: rgba(124, 92, 191, 0.12);
  border: 1px solid rgba(124, 92, 191, 0.25);
  border-radius: 20px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--purple-light);
}

.rank-wrap,
.stat-card,
.daily-pack-section,
.qr-section,
.info-panel,
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.rank-wrap,
.daily-pack-section,
.qr-section,
.info-panel,
.dashboard-card {
  padding: 1.1rem 1.15rem;
}

.stat-card {
  padding: 1rem;
  text-align: center;
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.rank-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.rank-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.rank-sub {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.18rem;
}

.rank-level {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 700;
}

.xp-bar {
  width: 100%;
  height: 10px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}

.xp-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.daily-pack-section,
.qr-section {
  position: relative;
  overflow: hidden;
}

.daily-pack-section::before,
.qr-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.04) 0%,
    rgba(124, 92, 191, 0.04) 100%
  );
}

.daily-pack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.daily-pack-title {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.daily-pack-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.daily-pack-composition {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.comp-pill {
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(124, 92, 191, 0.12);
  border: 1px solid var(--border);
  color: var(--muted);
}

.comp-pill.gold {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

.comp-pill.silver {
  background: rgba(176, 184, 200, 0.12);
  border-color: rgba(176, 184, 200, 0.3);
  color: #b0b8c8;
}

.comp-pill.rare {
  background: rgba(168, 130, 240, 0.12);
  border-color: rgba(168, 130, 240, 0.3);
  color: var(--purple-light);
}

.btn-daily-pack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: system-ui, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-daily-pack.available {
  background: linear-gradient(135deg, var(--gold) 0%, #e8a020 100%);
  color: #1a0e00;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-daily-pack.waiting,
.btn-daily-pack.loading {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  position: relative;
  z-index: 1;
}

.countdown-label {
  font-size: 0.68rem;
  color: var(--muted);
}

.countdown-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.card-item {
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  background: var(--surface2);
  min-height: 170px;
  overflow: hidden;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.card-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.qty-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  font-size: 0.6rem;
  color: #fff;
  padding: 1px 5px;
  z-index: 20;
}

.card-type-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3px 4px;
  font-size: 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 20;
}

.deck-row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  transition: all var(--transition-mid);
}

.deck-row-link:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
}

.deck-row-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.deck-row-date {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.empty-state p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.empty-state a {
  color: var(--purple-light);
  text-decoration: none;
  margin-top: 0.75rem;
  display: inline-block;
}

#loading,
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1rem;
}

.loader {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(124, 92, 191, 0.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#loading p,
.loading-state p {
  font-size: 0.85rem;
  color: var(--muted);
}

#not-logged,
.logged-out-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1rem;
  text-align: center;
}

#not-logged h2,
.logged-out-state h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

#not-logged p,
.logged-out-state p {
  color: var(--muted);
  font-size: 0.9rem;
}

#card-modal,
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  flex-direction: column;
}

#card-modal.open,
.modal-overlay.open {
  display: flex;
}

.modal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(336px, 85vw);
  animation: modalIn 0.25s ease;
}

.modal-card-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  aspect-ratio: 5 / 7;
  background: var(--surface2);
}

.modal-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.modal-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.modal-meta {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 14, 26, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
}

.modal-nav-prev {
  left: 1rem;
}

.modal-nav-next {
  right: 1rem;
}

.modal-counter {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 100%;
}

.action-card-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.action-card-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
}

.action-card-footer {
  margin-top: auto;
}

.pack-rates-box{
  margin-top: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.pack-rates-title{
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pack-rates-list{
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rate-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .modal-nav {
    width: 40px;
    height: 40px;
  }

  .modal-nav-prev {
    left: 0.4rem;
  }

  .modal-nav-next {
    right: 0.4rem;
  }
}

@media (max-width: 500px) {
  .stat-num {
    font-size: 1.3rem;
  }

  .btn-google-login {
    min-width: 100%;
  }
}
.game-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 1.5rem;
}

.hub-card {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(124,92,191,0.22);
  background-color: #151122;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,130,240,0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.hub-card:active {
  transform: scale(0.985);
}

.hub-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7,6,13,0.92) 0%, rgba(7,6,13,0.45) 55%, rgba(7,6,13,0.18) 100%);
}

.hub-content {
  position: relative;
  z-index: 2;
}

.hub-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.hub-sub {
  font-size: 0.78rem;
  color: rgba(232,224,240,0.82);
  line-height: 1.4;
}

.hub-pack {
  background-image: url('/account/assets/hub/pack-bg.webp');
}

.hub-qr {
  background-image: url('/account/assets/hub/qr-bg.webp');
}

.hub-deck {
  background-image: url('/account/assets/hub/deck-bg.webp');
}

.hub-objectives {
  background-image: url('/account/assets/hub/objectives-bg.webp');
}

.hub-pack.is-claimed .hub-sub {
  color: #bca7ff;
}

.deck-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deck-preview-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(24,21,42,0.9);
  border: 1px solid rgba(124,92,191,0.18);
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.deck-preview-list a:hover {
  border-color: rgba(168,130,240,0.5);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .game-hub-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hub-card {
    min-height: 170px;
    border-radius: 18px;
    padding: 14px;
  }

  .hub-title {
    font-size: 0.92rem;
  }

  .hub-sub {
    font-size: 0.7rem;
  }
}
.collection-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 14px;
  gap: 12px;
}

.collection-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-sort label {
  font-size: 0.78rem;
  color: var(--muted);
}

.sort-select {
  min-width: 180px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(138, 92, 246, 0.22);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 0 12px;
  font-size: 0.85rem;
  outline: none;
}

.sort-select:focus {
  border-color: rgba(167, 126, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(138,92,246,0.12);
}

@media (max-width: 700px) {
  .collection-toolbar {
    justify-content: stretch;
  }

  .collection-sort {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select {
    width: 100%;
  }
}
/* ==== PROFILE HUB 2x2 ==== */

.game-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}

.hub-card {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  isolation: isolate;
  border: 1px solid rgba(138, 92, 246, 0.18);
  background-color: rgba(14, 11, 28, 0.95);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 92, 246, 0.42);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.hub-card:active {
  transform: translateY(-1px) scale(0.995);
}

.hub-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(7, 6, 16, 0.94) 0%, rgba(7, 6, 16, 0.56) 42%, rgba(7, 6, 16, 0.18) 100%),
    linear-gradient(135deg, rgba(124, 92, 191, 0.16), rgba(0, 0, 0, 0));
}

.hub-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 22px 20px 20px;
}

.hub-title {
  font-size: 1.2rem;
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hub-sub {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hub-card.is-claimed .hub-sub {
  color: #c9b7ff;
}

/* immagini sfondo */
.hub-pack {
  background-image: url('/account/assets/hub-pack.webp');
}

.hub-qr {
  background-image: url('/account/assets/hub-qr.webp');
}

.hub-deck {
  background-image: url('/account/assets/hub-deck.webp');
}

.hub-objectives {
  background-image: url('/account/assets/hub-objectives.webp');
}

/* fallback se immagine manca */
.hub-pack,
.hub-qr,
.hub-deck,
.hub-objectives {
  background-color: #120f22;
}

/* mobile */
@media (max-width: 760px) {
  .game-hub-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0 24px;
  }

  .hub-card {
    min-height: 170px;
    border-radius: 18px;
  }

  .hub-content {
    padding: 18px 16px 16px;
  }

  .hub-title {
    font-size: 1.02rem;
  }

  .hub-sub {
    font-size: 0.82rem;
  }
}
/* ==== PROFILE HUB 2x2 ==== */

.game-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}

.hub-card {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  isolation: isolate;
  border: 1px solid rgba(138, 92, 246, 0.18);
  background-color: rgba(14, 11, 28, 0.95);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 92, 246, 0.42);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.hub-card:active {
  transform: translateY(-1px) scale(0.995);
}

.hub-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(7, 6, 16, 0.94) 0%, rgba(7, 6, 16, 0.56) 42%, rgba(7, 6, 16, 0.18) 100%),
    linear-gradient(135deg, rgba(124, 92, 191, 0.16), rgba(0, 0, 0, 0));
}

.hub-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 22px 20px 20px;
}

.hub-title {
  font-size: 1.2rem;
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hub-sub {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hub-card.is-claimed .hub-sub {
  color: #c9b7ff;
}

/* immagini sfondo */
.hub-pack {
  background-image: url('/account/assets/hub-pack.webp');
}

.hub-qr {
  background-image: url('/account/assets/hub-qr.webp');
}

.hub-deck {
  background-image: url('/account/assets/hub-deck.webp');
}

.hub-objectives {
  background-image: url('/account/assets/hub-objectives.webp');
}

/* fallback se immagine manca */
.hub-pack,
.hub-qr,
.hub-deck,
.hub-objectives {
  background-color: #120f22;
}

/* mobile */
@media (max-width: 760px) {
  .game-hub-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0 24px;
  }

  .hub-card {
    min-height: 170px;
    border-radius: 18px;
  }

  .hub-content {
    padding: 18px 16px 16px;
  }

  .hub-title {
    font-size: 1.02rem;
  }

  .hub-sub {
    font-size: 0.82rem;
  }
}
