/* ===== GAMIFICATION CSS für werken.fun ===== */

/* === Toast Container === */
.gam-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}

/* === XP Toast === */
.gam-xp-toast {
  background: #1e293b;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 8px 16px;
  color: #f59e0b;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
  pointer-events: auto;
  white-space: nowrap;
}

.gam-xp-toast .gam-xp-icon {
  margin-right: 4px;
}

/* === Toast Animations === */
.gam-toast-enter {
  opacity: 0;
  transform: translateX(120%);
}

.gam-toast-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.gam-toast-exit {
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 400ms ease-in, transform 400ms ease-in;
}

/* === Badge Overlay === */
.gam-badge-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Badge Card === */
.gam-badge-card {
  background: #0f172a;
  border-radius: 20px;
  padding: 32px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  animation: gamBadgeBounce 0.6s ease-out;
  font-family: 'Inter', sans-serif;
}

.gam-badge-card .gam-badge-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.gam-badge-card .gam-badge-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.gam-badge-card .gam-badge-name {
  color: #f1f5f9;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gam-badge-card .gam-badge-desc {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 20px;
}

.gam-badge-card .gam-badge-close {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.gam-badge-card .gam-badge-close:hover {
  background: #334155;
  color: #f1f5f9;
}

/* Badge Tiers */
.gam-badge-bronze { border: 2px solid #cd7f32; }
.gam-badge-bronze .gam-badge-icon { background: rgba(205, 127, 50, 0.15); }
.gam-badge-bronze .gam-badge-label { color: #cd7f32; }

.gam-badge-silver { border: 2px solid #c0c0c0; }
.gam-badge-silver .gam-badge-icon { background: rgba(192, 192, 192, 0.15); }
.gam-badge-silver .gam-badge-label { color: #c0c0c0; }

.gam-badge-gold { border: 2px solid #ffd700; }
.gam-badge-gold .gam-badge-icon { background: rgba(255, 215, 0, 0.15); }
.gam-badge-gold .gam-badge-label { color: #ffd700; }

.gam-badge-common { border: 2px solid #94a3b8; }
.gam-badge-common .gam-badge-icon { background: rgba(148, 163, 184, 0.15); }
.gam-badge-common .gam-badge-label { color: #94a3b8; }

.gam-badge-diamond { border: 2px solid #a78bfa; box-shadow: 0 0 20px rgba(167,139,250,0.3); }
.gam-badge-diamond .gam-badge-icon { background: rgba(167, 139, 250, 0.15); }
.gam-badge-diamond .gam-badge-label { color: #a78bfa; }

/* === Level Badge (Navbar) === */
.gam-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1.5px solid #64748b;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  color: #64748b;
  white-space: nowrap;
}

/* === XP Bar === */
.gam-xp-bar-container {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
}

.gam-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 9999px;
  transition: width 0.5s ease-out;
  min-width: 0;
}

/* === Gamification HUD Section === */
.gam-hud-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px 20px;
}

/* === Badge Mini (Showcase) === */
.gam-badge-mini {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid #334155;
  transition: transform 0.2s;
}

.gam-badge-mini.earned {
  opacity: 1;
}

.gam-badge-mini.earned:hover {
  transform: scale(1.15);
}

.gam-badge-mini.locked {
  opacity: 0.25;
  filter: grayscale(1);
}

/* === Level Up Celebration === */
.gam-levelup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gam-levelup-card {
  background: #0f172a;
  border: 2px solid #f59e0b;
  border-radius: 20px;
  padding: 32px 40px;
  text-align: center;
  animation: gamBadgeBounce 0.6s ease-out;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.2);
}

.gam-levelup-card .gam-levelup-title {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.gam-levelup-card .gam-levelup-name {
  color: #f1f5f9;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gam-levelup-card .gam-levelup-level {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 20px;
}

/* === Confetti === */
.gam-confetti-container {
  position: fixed;
  inset: 0;
  z-index: 10002;
  pointer-events: none;
  overflow: hidden;
}

.gam-confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: gamConfettiPop 1.2s ease-out forwards;
}

/* === Keyframes === */
@keyframes gamBadgeBounce {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); }
  80% { transform: scale(0.97); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes gamConfettiPop {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--gam-dx), var(--gam-dy)) scale(0);
    opacity: 0;
  }
}

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

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

/* === Badge Overview Modal === */
.gam-badge-overview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gamFadeIn 0.25s ease-out;
}

.gam-badge-overview-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 28px;
  max-width: 520px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.gam-badge-overview-panel::-webkit-scrollbar { width: 6px; }
.gam-badge-overview-panel::-webkit-scrollbar-track { background: #1e293b; border-radius: 3px; }
.gam-badge-overview-panel::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

.gam-badge-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gam-badge-overview-header h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
}

.gam-badge-overview-header .gam-badge-overview-count {
  color: #64748b;
  font-size: 13px;
}

.gam-badge-overview-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.gam-badge-overview-close:hover {
  background: #1e293b;
  color: #f1f5f9;
}

/* === Overview Tabs (Badges/Missionen/Rangliste/Challenges) === */
.gam-overview-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gam-overview-tab {
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.gam-overview-tab:hover {
  color: #94a3b8;
  background: #1e293b40;
}
.gam-overview-tab.active {
  color: #fbbf24;
  border-bottom-color: #fbbf24;
  background: #1e293b;
}
.gam-overview-panel {
  display: none;
}
.gam-overview-panel.active {
  display: block;
}

/* Leaderboard: eigener Rang */
.gam-leaderboard-row.gam-leaderboard-me {
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
}
.gam-leaderboard-me .gam-leaderboard-name {
  color: #93c5fd;
  font-weight: 700;
}

/* Challenges: Fortschrittsbalken */
.gam-challenge-progress-fill {
  transition: width 0.5s ease-out;
}

.gam-badge-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gam-badge-overview-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}

.gam-badge-overview-card.earned {
  border: 1px solid #334155;
}

.gam-badge-overview-card.earned:hover {
  transform: translateY(-2px);
}

.gam-badge-overview-card.earned.tier-common { border-color: #94a3b8; }
.gam-badge-overview-card.earned.tier-bronze { border-color: #cd7f32; }
.gam-badge-overview-card.earned.tier-silver { border-color: #c0c0c0; }
.gam-badge-overview-card.earned.tier-gold { border-color: #ffd700; }
.gam-badge-overview-card.earned.tier-diamond { border-color: #a78bfa; box-shadow: 0 0 12px rgba(167,139,250,0.2); }
.gam-badge-overview-card.locked.secret { opacity: 0.3; border-style: dashed; }

.gam-badge-overview-card.locked {
  border: 1px solid #1e293b;
  opacity: 0.5;
}

.gam-badge-overview-card .gam-bo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.gam-badge-overview-card.earned .gam-bo-icon {
  background: rgba(245, 158, 11, 0.1);
}

.gam-badge-overview-card.locked .gam-bo-icon {
  background: #0f172a;
  font-size: 18px;
  color: #475569;
}

.gam-badge-overview-card .gam-bo-info {
  flex: 1;
  min-width: 0;
}

.gam-badge-overview-card .gam-bo-name {
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.gam-badge-overview-card.locked .gam-bo-name {
  color: #64748b;
}

.gam-badge-overview-card .gam-bo-desc {
  color: #94a3b8;
  font-size: 12px;
}

.gam-badge-overview-card.locked .gam-bo-desc {
  color: #475569;
  font-style: italic;
}

.gam-badge-overview-card .gam-bo-tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.gam-bo-tier.tier-common { color: #94a3b8; background: rgba(148, 163, 184, 0.1); }
.gam-bo-tier.tier-bronze { color: #cd7f32; background: rgba(205, 127, 50, 0.1); }
.gam-bo-tier.tier-silver { color: #c0c0c0; background: rgba(192, 192, 192, 0.1); }
.gam-bo-tier.tier-gold { color: #ffd700; background: rgba(255, 215, 0, 0.1); }
.gam-bo-tier.tier-diamond { color: #a78bfa; background: rgba(167, 139, 250, 0.15); }
.gam-bo-tier.tier-secret { color: #475569; background: rgba(71, 85, 105, 0.1); }

/* === Badge Showcase Click Hint === */
.gam-badge-showcase-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.gam-badge-showcase-wrap:hover {
  background: rgba(30, 41, 59, 0.5);
}

.gam-badge-showcase-link {
  color: #475569;
  font-size: 10px;
  white-space: nowrap;
  transition: color 0.2s;
}

.gam-badge-showcase-wrap:hover .gam-badge-showcase-link {
  color: #94a3b8;
}

/* ===== PHASE 3: GALLERY, LEADERBOARD, FEEDBACK, SHARE ===== */

/* === Gallery Section === */
.gam-gallery-section {
  margin-bottom: 24px;
}

.gam-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.gam-gallery-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gam-gallery-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.gam-gallery-title h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
}

.gam-gallery-title p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

/* Gallery Filter */
.gam-gallery-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gam-gallery-filter-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #1e293b;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.gam-gallery-filter-btn:hover {
  border-color: #334155;
  color: #94a3b8;
}

.gam-gallery-filter-btn.active {
  background: #1e293b;
  border-color: #f59e0b;
  color: #f59e0b;
}

/* Gallery Grid */
.gam-gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .gam-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gam-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Gallery Card */
.gam-gallery-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.gam-gallery-card:hover {
  transform: translateY(-3px);
  border-color: #334155;
}

.gam-gallery-card-thumb {
  aspect-ratio: 4 / 3;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gam-gallery-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gam-gallery-card-thumb .gam-thumb-placeholder {
  font-size: 40px;
  opacity: 0.4;
}

.gam-gallery-card-body {
  padding: 12px;
}

.gam-gallery-card-title {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gam-gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gam-gallery-card-author {
  color: #64748b;
  font-size: 12px;
}

.gam-gallery-tool-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.gam-gallery-tool-badge.tool-laser { background: rgba(59,130,246,0.15); color: #60a5fa; }
.gam-gallery-tool-badge.tool-lampen { background: rgba(249,115,22,0.15); color: #fb923c; }
.gam-gallery-tool-badge.tool-laserLampen { background: rgba(139,92,246,0.15); color: #a78bfa; }
.gam-gallery-tool-badge.tool-material { background: rgba(16,185,129,0.15); color: #34d399; }

/* Reactions Row */
.gam-reactions-row {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #1e293b;
}

.gam-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  min-width: 32px;
  min-height: 32px;
}

.gam-reaction-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.gam-reaction-btn.reacted {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

.gam-reaction-count {
  font-size: 12px;
  font-weight: 600;
}

/* Gallery Empty State */
.gam-gallery-empty {
  padding: 40px 20px;
  text-align: center;
  color: #475569;
  background: #0f172a;
  border: 1px dashed #1e293b;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.gam-gallery-empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* === Feedback / Detail Modal === */
.gam-feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: gamFadeIn 0.25s ease-out;
}

.gam-feedback-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
}

.gam-feedback-panel::-webkit-scrollbar { width: 6px; }
.gam-feedback-panel::-webkit-scrollbar-track { background: #1e293b; border-radius: 3px; }
.gam-feedback-panel::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

.gam-feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #1e293b;
}

.gam-feedback-header h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 700;
}

.gam-feedback-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.gam-feedback-close:hover {
  background: #1e293b;
  color: #f1f5f9;
}

.gam-feedback-body {
  padding: 24px;
}

.gam-feedback-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gam-feedback-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gam-feedback-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Feedback Entries */
.gam-feedback-list {
  margin-bottom: 20px;
}

.gam-feedback-list-title {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.gam-feedback-entry {
  background: #1e293b;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.gam-feedback-entry-author {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gam-feedback-entry-positive {
  color: #e2e8f0;
  font-size: 13px;
  margin-bottom: 4px;
}

.gam-feedback-entry-suggestion {
  color: #64748b;
  font-size: 12px;
  font-style: italic;
}

.gam-feedback-entry-stars {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.gam-feedback-entry-stars span {
  color: #64748b;
  font-size: 11px;
}

.gam-feedback-entry-stars .star-filled {
  color: #f59e0b;
}

/* Feedback Form */
.gam-feedback-form {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}

.gam-feedback-form-title {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.gam-feedback-form label {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gam-feedback-form textarea {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.gam-feedback-form textarea:focus {
  outline: none;
  border-color: #f59e0b;
}

.gam-feedback-form textarea::placeholder {
  color: #475569;
}

/* Star Rating */
.gam-star-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.gam-star-rating-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gam-star-rating-group label {
  margin: 0;
  white-space: nowrap;
}

.gam-star-rating-group .stars {
  display: flex;
  gap: 2px;
}

.gam-star-rating-group .star {
  cursor: pointer;
  font-size: 18px;
  color: #334155;
  transition: color 0.15s;
  user-select: none;
}

.gam-star-rating-group .star.active {
  color: #f59e0b;
}

.gam-star-rating-group .star:hover {
  color: #fbbf24;
}

.gam-feedback-submit {
  width: 100%;
  padding: 10px;
  background: #f59e0b;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.gam-feedback-submit:hover {
  background: #d97706;
}

.gam-feedback-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gam-feedback-already {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 16px;
  background: #1e293b;
  border-radius: 8px;
}

/* === Leaderboard === */
.gam-leaderboard-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'Inter', sans-serif;
}

.gam-leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.gam-leaderboard-header h4 {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.gam-leaderboard-tabs {
  display: flex;
  gap: 4px;
}

.gam-leaderboard-tab {
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.gam-leaderboard-tab:hover {
  color: #94a3b8;
  background: #1e293b;
}

.gam-leaderboard-tab.active {
  background: #1e293b;
  color: #f59e0b;
}

.gam-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gam-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.gam-leaderboard-row:nth-child(odd) {
  background: rgba(30, 41, 59, 0.3);
}

.gam-leaderboard-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: #1e293b;
  color: #64748b;
}

.gam-leaderboard-row:nth-child(1) .gam-leaderboard-rank {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}

.gam-leaderboard-row:nth-child(2) .gam-leaderboard-rank {
  background: rgba(192, 192, 192, 0.15);
  color: #c0c0c0;
}

.gam-leaderboard-row:nth-child(3) .gam-leaderboard-rank {
  background: rgba(205, 127, 50, 0.15);
  color: #cd7f32;
}

.gam-leaderboard-name {
  flex: 1;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
}

.gam-leaderboard-value {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.gam-leaderboard-empty {
  color: #475569;
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* === Share Dialog === */
.gam-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: gamFadeIn 0.25s ease-out;
}

.gam-share-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.gam-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gam-share-header h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 700;
}

.gam-share-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.gam-share-close:hover {
  background: #1e293b;
  color: #f1f5f9;
}

.gam-share-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.gam-share-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.gam-share-tool-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.gam-share-label {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gam-share-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.gam-share-input:focus {
  outline: none;
  border-color: #f59e0b;
}

.gam-share-actions {
  display: flex;
  gap: 8px;
}

.gam-share-btn-cancel {
  flex: 1;
  padding: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.gam-share-btn-cancel:hover {
  background: #334155;
  color: #f1f5f9;
}

.gam-share-btn-submit {
  flex: 1;
  padding: 10px;
  background: #f59e0b;
  border: none;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.gam-share-btn-submit:hover {
  background: #d97706;
}

.gam-share-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Admin Tabs === */
.gam-admin-tabs {
  display: flex;
  gap: 4px;
}

.gam-admin-tab {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.gam-admin-tab:hover {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.5);
}

.gam-admin-tab.active {
  background: #1e293b;
  color: #f59e0b;
  border-color: #334155;
}

.gam-admin-tab-panel {
  display: none;
}

.gam-admin-tab-panel.active {
  display: block;
}

/* Admin Pending Cards */
.gam-admin-pending-card {
  background: #1e293b;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.gam-admin-pending-thumb {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  background: #0f172a;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gam-admin-pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gam-admin-pending-info {
  flex: 1;
  min-width: 0;
}

.gam-admin-pending-title {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gam-admin-pending-meta {
  color: #64748b;
  font-size: 11px;
}

.gam-admin-pending-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.gam-admin-btn-approve {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.gam-admin-btn-approve:hover {
  background: rgba(16, 185, 129, 0.3);
}

.gam-admin-btn-reject {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.gam-admin-btn-reject:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Admin Settings */
.gam-admin-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: #1e293b;
  border-radius: 10px;
  margin-bottom: 8px;
}

.gam-admin-setting-label {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
}

.gam-admin-setting-desc {
  color: #64748b;
  font-size: 12px;
}

/* Toggle Switch */
.gam-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.gam-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gam-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #334155;
  border-radius: 12px;
  transition: background 0.2s;
}

.gam-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #94a3b8;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.gam-toggle input:checked + .gam-toggle-slider {
  background: #f59e0b;
}

.gam-toggle input:checked + .gam-toggle-slider::before {
  transform: translateX(20px);
  background: #0f172a;
}

/* Admin Sync Button */
.gam-admin-sync-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
}

.gam-admin-sync-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

/* ===== PHASE 4: TAGES-MISSIONEN ===== */

.gam-missions-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.gam-missions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gam-missions-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.gam-missions-header .gam-missions-date {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.gam-missions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gam-mission-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  transition: all 0.2s;
}

.gam-mission-card:hover {
  border-color: #475569;
}

.gam-mission-card.completed {
  opacity: 0.6;
  border-color: #22c55e33;
  background: #0f172a;
}

.gam-mission-card .mission-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.gam-mission-card .mission-info {
  flex: 1;
  min-width: 0;
}

.gam-mission-card .mission-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.gam-mission-card.completed .mission-title {
  text-decoration: line-through;
  color: #64748b;
}

.gam-mission-card .mission-tool {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.gam-mission-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.gam-mission-card.completed .gam-mission-badge {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}

.gam-mission-check {
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== PHASE 4: CHALLENGES ===== */

.gam-challenge-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.gam-challenge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gam-challenge-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.gam-challenge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gam-challenge-card {
  padding: 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  transition: all 0.2s;
}

.gam-challenge-card.completed {
  border-color: #f59e0b44;
  background: linear-gradient(135deg, #1e293b, rgba(245, 158, 11, 0.05));
}

.gam-challenge-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.gam-challenge-card-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.gam-challenge-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gam-challenge-progress-bar {
  flex: 1;
  height: 8px;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
}

.gam-challenge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.gam-challenge-progress-text {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.gam-challenge-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 8px;
}

.gam-challenge-empty {
  text-align: center;
  padding: 16px;
  color: #475569;
  font-size: 13px;
}

/* ===== PHASE 4: DESIGN-JOURNAL ===== */

.gam-journal-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.gam-journal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gam-journal-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.gam-journal-new-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #f59e0b44;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.gam-journal-new-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
}

.gam-journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.gam-journal-card {
  padding: 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.gam-journal-card:hover {
  border-color: #475569;
  transform: translateY(-1px);
}

.gam-journal-card-emoji {
  font-size: 24px;
  margin-bottom: 8px;
}

.gam-journal-card-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.gam-journal-card-date {
  font-size: 10px;
  color: #64748b;
  margin-top: 8px;
}

.gam-journal-empty {
  text-align: center;
  padding: 24px;
  color: #475569;
  font-size: 13px;
}

.gam-journal-locked {
  text-align: center;
  padding: 24px;
  color: #475569;
  font-size: 13px;
}

/* Journal Write Modal */
.gam-journal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: gamFadeIn 0.2s ease-out;
}

.gam-journal-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.gam-journal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
}

.gam-journal-panel-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.gam-journal-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.gam-journal-close:hover {
  color: #f1f5f9;
}

.gam-journal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin: 16px 20px 8px;
  text-transform: uppercase;
}

.gam-journal-emoji-picker {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.gam-journal-emoji-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid #334155;
  background: #1e293b;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gam-journal-emoji-btn:hover {
  border-color: #475569;
}

.gam-journal-emoji-btn.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.gam-journal-textarea {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px;
  min-height: 120px;
  padding: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.gam-journal-textarea:focus {
  border-color: #f59e0b;
}

.gam-journal-char-count {
  text-align: right;
  padding: 4px 20px 0;
  font-size: 10px;
  color: #64748b;
}

.gam-journal-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  justify-content: flex-end;
}

/* Journal Detail Modal */
.gam-journal-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: gamFadeIn 0.2s ease-out;
}

.gam-journal-detail-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

.gam-journal-detail-emoji {
  font-size: 40px;
  margin-bottom: 12px;
}

.gam-journal-detail-text {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 12px;
}

.gam-journal-detail-meta {
  font-size: 11px;
  color: #64748b;
}

.gam-journal-detail-close {
  margin-top: 16px;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.gam-journal-detail-close:hover {
  background: #334155;
  color: #f1f5f9;
}

/* ===== PHASE 4: VERGLEICHS-ANSICHT ===== */

.gam-compare-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.gam-compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gam-compare-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.gam-compare-locked {
  text-align: center;
  padding: 24px;
  color: #475569;
  font-size: 13px;
}

.gam-compare-locked .lock-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.gam-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .gam-compare-grid {
    grid-template-columns: 1fr;
  }
}

.gam-compare-slot {
  background: #1e293b;
  border: 2px dashed #334155;
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.gam-compare-slot.filled {
  border-style: solid;
  border-color: #475569;
}

.gam-compare-select-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #334155;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.gam-compare-select-btn:hover {
  background: #475569;
  color: #f1f5f9;
}

.gam-compare-slot-placeholder {
  font-size: 32px;
  color: #334155;
  margin-bottom: 8px;
}

.gam-compare-slot-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.gam-compare-slot-title {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  padding: 8px 12px;
  text-align: center;
}

.gam-compare-slot-change {
  font-size: 11px;
  color: #f59e0b;
  cursor: pointer;
  padding: 4px 12px 12px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
}

.gam-compare-slot-change:hover {
  text-decoration: underline;
}

.gam-compare-note-area {
  margin-top: 12px;
}

.gam-compare-note-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.gam-compare-textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.gam-compare-textarea:focus {
  border-color: #f59e0b;
}

.gam-compare-save-btn {
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.gam-compare-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.gam-compare-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Design Picker Overlay */
.gam-design-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: gamFadeIn 0.2s ease-out;
}

.gam-design-picker-panel {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gam-design-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
}

.gam-design-picker-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.gam-design-picker-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.gam-design-picker-close:hover {
  color: #f1f5f9;
}

.gam-design-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.gam-design-picker-item {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}

.gam-design-picker-item:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
}

.gam-design-picker-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #475569;
}

.gam-design-picker-name {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gam-design-picker-empty {
  text-align: center;
  padding: 32px;
  color: #475569;
  font-size: 13px;
  grid-column: 1 / -1;
}

/* ===== PHASE 4: ADMIN CHALLENGES ===== */

.gam-admin-challenge-form {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.gam-admin-challenge-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
  margin-top: 10px;
}

.gam-admin-challenge-form label:first-child {
  margin-top: 0;
}

.gam-admin-challenge-form input,
.gam-admin-challenge-form select,
.gam-admin-challenge-form textarea {
  width: 100%;
  padding: 8px 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.gam-admin-challenge-form input:focus,
.gam-admin-challenge-form select:focus,
.gam-admin-challenge-form textarea:focus {
  border-color: #f59e0b;
}

.gam-admin-challenge-form .gam-admin-challenge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gam-admin-challenge-create-btn {
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #f59e0b;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.gam-admin-challenge-create-btn:hover {
  background: #fbbf24;
}

.gam-admin-challenge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.gam-admin-challenge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
}

.gam-admin-challenge-card-info {
  flex: 1;
  min-width: 0;
}

.gam-admin-challenge-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.gam-admin-challenge-card-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.gam-admin-challenge-delete-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ef4444;
  background: transparent;
  color: #ef4444;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.gam-admin-challenge-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}
