@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');

/* Avatar Edit Modal Custom Styles */
#avatarEditModal .modal-content.pixel-card {
  background-color: #0d1117;
  border: 1.6px solid #00ffcc; /* 2px -> 1.6px */
  border-radius: 9.6px;        /* 12px -> 9.6px */
  box-shadow: 0 0 12px #00ffcc;/* 15px -> 12px */
  font-family: 'Press Start 2P', monospace;
  color: #00ffcc;
}

/* Modal Header */
#avatarEditModal .modal-header {
  border-bottom: 1.2px solid #00ffcc;  /* 1.5px -> 1.2px */
  padding: 0.8rem 1.2rem;              /* 1rem 1.5rem -> 0.8rem 1.2rem */
}

#avatarEditModal .modal-title {
  font-weight: bold;
  font-size: 0.96rem;                  /* 1.2rem -> 0.96rem */
  color: #00ffcc;
}

/* Modal Footer */
#avatarEditModal .modal-footer {
  border-top: 1.2px solid #00ffcc;     /* 1.5px -> 1.2px */
  padding: 0.8rem 1.2rem;              /* 1rem 1.5rem -> 0.8rem 1.2rem */
}

/* Form Labels */
#avatarEditModal label.form-label {
  font-weight: bold;
  color: #00ffcc;
  font-size: 0.8rem;                   /* 1rem -> 0.8rem */
  margin-top: 0.8rem;                  /* 1rem -> 0.8rem */
  display: block;
  text-shadow: 0 0 4.8px #00ffcc;      /* 6px -> 4.8px */
}

/* Select2 Single Select Container */
.select2-container--default .select2-selection--single {
  background-color: #0d1117 !important;
  border: 1.2px solid #00ffcc !important;  /* 1.5px -> 1.2px */
  border-radius: 6.4px !important;         /* 8px -> 6.4px */
  height: 30px !important;                 /* 38px -> 30px */
  padding: 4.8px 8px !important;           /* 6px 10px -> 4.8px 8px */
  color: #00ffcc !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.72rem !important;           /* 0.9rem -> 0.72rem */
  box-shadow: none !important;
  text-shadow: 0 0 4px #00ffcc;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeLegibility !important;
}

/* Placeholder Text */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #007f7f !important;
}

/* Dropdown Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #00ffcc transparent transparent transparent !important;
}

/* Dropdown Menu */
.select2-dropdown {
  background-color: #0d1117 !important;
  border: 1.2px solid #00ffcc !important;    /* 1.5px -> 1.2px */
  border-radius: 6.4px !important;           /* 8px -> 6.4px */
  box-shadow: 0 0 9.6px #00ffcc !important;  /* 12px -> 9.6px */
  color: #00ffcc !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.68rem !important;             /* 0.85rem -> 0.68rem */
  max-height: 160px !important;              /* 200px -> 160px */
  overflow-y: auto !important;
}

/* Dropdown Options */
.select2-results__option {
  padding: 6.4px 12px !important;            /* 8px 15px -> 6.4px 12px */
  color: #00ffcc !important;
  cursor: pointer;
  text-shadow: none !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeLegibility !important;
}

/* Highlighted Option */
.select2-results__option--highlighted[aria-selected] {
  background-color: #00ffcc !important;
  color: #000 !important;
  text-shadow: none !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeLegibility !important;
}

/* Disabled Options */
.select2-results__option[aria-disabled=true] {
  color: #555 !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  text-shadow: none !important;
}

/* Adjust z-index so dropdown stays above modal backdrop */
.select2-container {
  z-index: 1051 !important; /* Bootstrap modal backdrop is 1050 */
}

/* Scrollbar styling for dropdown */
.select2-dropdown::-webkit-scrollbar {
  width: 4.8px;                                  /* 6px -> 4.8px */
}
.select2-dropdown::-webkit-scrollbar-thumb {
  background-color: #00ffcc;
  border-radius: 2.4px;                           /* 3px -> 2.4px */
}
.select2-dropdown::-webkit-scrollbar-track {
  background-color: #0d1117;
}

/* Button Save Styling */
#avatarEditModal .btn-success {
  background-color: #00ffcc;
  border-color: #00ffcc;
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-weight: bold;
  font-size: 0.88rem;                             /* 1.1rem -> 0.88rem */
  box-shadow: 0 0 8px #00ffcc;                    /* 10px -> 8px */
  transition: background-color 0.3s ease;
}

#avatarEditModal .btn-success:hover,
#avatarEditModal .btn-success:focus {
  background-color: #00b399;
  border-color: #00b399;
  color: #fff;
  box-shadow: 0 0 12px #00b399;                   /* 15px -> 12px */
}

/* Remove default focus outline on button but keep accessibility */
#avatarEditModal .btn-success:focus {
  outline: 2px solid #00ffcc;
  outline-offset: 2px;
}

/* Modal Close Button */
#avatarEditModal .btn-close {
  filter: invert(75%) sepia(100%) saturate(500%) hue-rotate(120deg) brightness(130%);
}

/* Scrollbar for modal body if overflow */
#avatarEditModal .modal-body {
  max-height: 320px;                              /* 400px -> 320px */
  overflow-y: auto;
}

/* Adjust modal dialog width for extra large */
.modal-xl {
  max-width: 560px;                                /* 700px -> 560px */
}

/* -----------------------------------------
   SHARPER TEXT FIX for Avatar Dropdown Lists
   ----------------------------------------- */

.select2-results__option { /* (values already reduced above) */ }
.select2-results__option--highlighted[aria-selected] { /* (values already reduced above) */ }
.select2-container--default .select2-selection--single { /* (values already reduced above) */ }

/* Avatar/Power-Up Cards — Default Theme */
.theme-card {
  background: #1b1b1b;
  border: 2.4px solid #00ff99;                     /* 3px -> 2.4px */
  border-radius: 11.2px;                           /* 14px -> 11.2px */
  padding: 1.2rem;                                 /* 1.5rem -> 1.2rem */
  color: #eaffea;
  box-shadow: 0 0 16px rgba(0, 255, 153, 0.3);     /* 20px -> 16px */
  font-family: 'Press Start 2P', monospace;
  font-size: 0.68rem;                              /* 0.85rem -> 0.68rem */
  text-align: center;
}

/* Title heading inside default card */
.theme-card h4,
.theme-card h5 {
  font-size: 0.88rem;                              /* 1.1rem -> 0.88rem */
  color: #00ff99;
  margin-bottom: 0.8rem;                          /* 1rem -> 0.8rem */
}

/* Badge-style labels (Buff Type / Effect etc.) */
.theme-card .perk-badge {
  display: inline-block;
  padding: 0.28rem 0.6rem;                        /* 0.35rem 0.75rem */
  font-size: 0.56rem;                             /* 0.7rem -> 0.56rem */
  font-weight: bold;
  border-radius: 6.4px;                           /* 8px -> 6.4px */
  margin: 0 0.2rem 0.4rem;
  color: #000;
}

.theme-card .perk-badge.buff { background-color: #00ffee; }
.theme-card .perk-badge.effect { background-color: #ffaa00; }

/* Force mobile to NOT use sticky or fixed positioning */
@media (max-width: 768px) {
  #themeUnlocks,
  .dropdown-mobile-fix,
  #themeUnlocks .dropdown,
  #themeUnlocks .btn,
  #avatarSelector,
  #avatarSelector .dropdown,
  #avatarSelector .btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

#themeUnlocks {
  position: relative;
  top: 8rem;                                      /* 10rem -> 8rem */
  z-index: 1050;
  font-family: 'Press Start 2P', monospace;
}

#avatarSelector {
  position: relative;
  z-index: 1051;
  font-family: 'Press Start 2P', monospace;
}

.quiz-card {
  width: 100% !important;
  margin: 1.2rem auto !important;                 /* 1.5rem -> 1.2rem */
  padding: 1.2rem !important;                     /* 1.5rem -> 1.2rem */
  border-radius: 0.8rem !important;               /* 1rem -> 0.8rem */
  text-align: center !important;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2) !important;
  font-size: 0.96rem !important;                  /* 1.2rem -> 0.96rem */
}

/* Theme Dropdown Button */
#themeUnlocks .dropdown-toggle {
  background: #FFD700;
  color: #111;
  font-weight: bold;
  border-radius: 8px;                              /* 10px -> 8px */
  box-shadow: 0 0 9.6px #FFD700;                   /* 12px -> 9.6px */
  padding: 0.48rem 0.96rem;                        /* 0.6rem 1.2rem */
  border: none;
  transition: background 0.3s ease;
}

#themeUnlocks .dropdown-toggle:hover { background: #ffcc00; }

/* Theme Dropdown Menu */
#themeUnlocks .dropdown-menu {
  background-color: #1a1a1a;
  border: 1.6px solid #FFD700;                     /* 2px -> 1.6px */
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
  border-radius: 9.6px;                            /* 12px -> 9.6px */
  font-size: 0.6rem;                               /* 0.75rem -> 0.6rem */
  z-index: 1055 !important;
  position: absolute !important;
}

/* Theme Dropdown Items */
#themeUnlocks .dropdown-item {
  color: #f0f0f0;
  padding: 0.4rem 0.8rem;                          /* 0.5rem 1rem */
  border-radius: 4.8px;                            /* 6px -> 4.8px */
}

#themeUnlocks .dropdown-item:hover {
  background-color: #333;
  color: #FFD700;
}
#themeUnlocks .dropdown-item.active { background-color: #00c853; color: #000; font-weight: bold; }
#themeUnlocks .dropdown-item[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Avatar Dropdown Menu */
#avatarSelector .dropdown-menu {
  background-color: #1c1c1c;
  border: 1.6px solid #444;                        /* 2px -> 1.6px */
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  border-radius: 9.6px;                            /* 12px -> 9.6px */
  font-size: 0.6rem;                               /* 0.75rem -> 0.6rem */
  z-index: 1056 !important;
  position: absolute !important;
}

/* Avatar Dropdown Button */
#avatarSelector .dropdown-toggle {
  background: #ffa500;
  color: #000;
  font-weight: bold;
  border-radius: 8px;                               /* 10px -> 8px */
  box-shadow: 0 0 9.6px #ffa500;                    /* 12px -> 9.6px */
  padding: 0.48rem 0.96rem;                         /* 0.6rem 1.2rem */
  border: none;
}
#avatarSelector .dropdown-toggle:hover { background: #ff9400; }

/* Avatar Items */
#avatarSelector .dropdown-item {
  color: #fff7cc;
  padding: 0.4rem 0.8rem;                           /* 0.5rem 1rem */
  border-radius: 4.8px;                             /* 6px -> 4.8px */
}
#avatarSelector .dropdown-item:hover { background-color: #2a2a2a; color: #ffa500; }
#avatarSelector .dropdown-item.active { background-color: #00e676; color: #000; font-weight: bold; }
#avatarSelector .dropdown-item[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Make the top badge image bigger */
.badge-showcase-featured-img {
  max-height: 160px;                                /* 200px -> 160px */
  margin-bottom: 0.6rem;                            /* 0.75rem -> 0.6rem */
}

/* Featured badge card container */
.badge-showcase-featured {
  background: linear-gradient(135deg, #2a2a2d, #1f1f21);
  border: 1.6px solid #FFD700;                      /* 2px -> 1.6px */
  box-shadow: 0 0 24px #FFD700CC;                   /* 30px -> 24px */
  padding: 2rem;                                    /* 2.5rem -> 2rem */
  max-width: 288px;                                 /* 360px -> 288px */
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.badge-showcase-featured:hover {
  transform: scale(1.064);
  box-shadow: 0 0 32px #FFD700EE;                   /* 40px -> 32px */
}

.todaysBonusBox {
  top: 0.8rem;                                      /* 1rem -> 0.8rem */
  background: #222;
  border: 1.6px solid #00ffcc;                      /* 2px -> 1.6px */
  padding: 0.8rem 1.2rem;                           /* 1rem 1.5rem */
  border-radius: 9.6px;                             /* 12px -> 9.6px */
  color: #00ffcc;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  max-width: 240px;                                 /* 300px -> 240px */
  z-index: 10000;
  box-shadow: 0 0 12px #00ffcc;                     /* 15px -> 12px */
  margin-bottom: 0.8rem;                            /* 1rem -> 0.8rem */
  margin-top: 0.8rem;                               /* 1rem -> 0.8rem */
}
.todaysBonusBox > div:first-child {
  font-size: 0.96rem;                               /* 1.2rem -> 0.96rem */
  margin-bottom: 0.4rem;                            /* 0.5rem -> 0.4rem */
}
.todaysBonusBox > div:last-child {
  font-size: 0.76rem;                               /* 0.95rem -> 0.76rem */
  line-height: 1.3;
}

.gauntlet-card {
  background: url('/Themes/assets/gauntlet/Gauntlet_card.png') center center no-repeat;
  background-size: 100% 100%;
  width: 90vw;
  max-width: 480px;                                  /* 600px -> 480px */
  height: 480px;                                     /* 600px -> 480px */
  margin: 2.4rem auto;                               /* 3rem -> 2.4rem */
  padding: 2.4rem 1.6rem;                            /* 3rem 2rem -> 2.4rem 1.6rem */
  border: 3.2px solid #ffcc00;                       /* 4px -> 3.2px */
  border-radius: 12.8px;                             /* 16px -> 12.8px */
  color: #fff;
  font-family: 'Cinzel', serif;
  overflow: hidden;
  box-shadow: 0 0 20px #ffcc00;                      /* 25px -> 20px */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.gauntlet-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.gauntlet-card-title,
.gauntlet-card-desc,
.gauntlet-card-button {
  position: relative;
  z-index: 1;
}
.gauntlet-card-title {
  font-size: 2.4rem;                                 /* 3rem -> 2.4rem */
  color: #ffee70;
  margin-bottom: 0.8rem;                             /* 1rem -> 0.8rem */
  text-shadow: 0 0 8px #000;
}
.gauntlet-card-desc {
  font-size: 1.2rem;                                 /* 1.5rem -> 1.2rem */
  color: #d0ffd0;
  padding: 0.8rem 0;                                 /* 1rem -> 0.8rem */
  line-height: 1.92rem;                              /* 2.4rem -> 1.92rem */
  text-shadow: 0 0 5px #000;
}
.gauntlet-card-button a {
  display: inline-block;
  font-size: 1.6rem;                                 /* 2rem -> 1.6rem */
  padding: 0.8rem 1.6rem;                            /* 1rem 2rem -> 0.8rem 1.6rem */
  border: 2.4px solid #00ffff;                       /* 3px -> 2.4px */
  border-radius: 8px;                                 /* 10px -> 8px */
  text-decoration: none;
  color: #00ffff;
  background: rgba(0, 0, 0, 0.6);
  font-weight: bold;
  font-family: 'Cinzel', serif;
  text-shadow: 0 0 4px #000;
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}
.gauntlet-card-button a::before {
  content: "️⚔️ ";
  font-size: 1.6rem;                                  /* 2rem -> 1.6rem */
  margin-right: 0.4rem;                               /* 0.5rem -> 0.4rem */
}
.gauntlet-card-button a:hover {
  background: #00ffff;
  color: #000;
  transform: scale(1.05);
  text-shadow: none;
}

body {
  background: #0e0e0e;
  font-family: 'Press Start 2P', cursive;
  color: #00ffcc;
}

/* Typography */
.section-title {
  font-size: 0.96rem;                                 /* 1.2rem -> 0.96rem */
  color: #ffaa00;
  margin-top: 2.4rem;                                 /* 3rem -> 2.4rem */
  margin-bottom: 1.2rem;                              /* 1.5rem -> 1.2rem */
  text-align: center;
}
.alert { font-size: 0.6rem; }                         /* 0.75rem -> 0.6rem */

/* Cards & Layout */
.pixel-card {
  background: #2a2a2d;
  border: 2.4px solid #FFD700;                        /* 3px -> 2.4px */
  border-radius: 9.6px;                               /* 12px -> 9.6px */
  padding: 0.8rem;                                    /* 1rem -> 0.8rem */
  text-align: center;
  margin-bottom: 1.2rem;                              /* 1.5rem -> 1.2rem */
  transition: transform 0.3s ease;
  font-size: 0.6rem;                                  /* 0.75rem -> 0.6rem */
  height: 100%;
}
.pixel-card:hover { transform: scale(1.04); }

/* Main Profile Card */
.profile-card {
  background: #484848;
  border-radius: 9.6px;                                /* 12px -> 9.6px */
  padding: 1.6rem;                                     /* 2rem -> 1.6rem */
  box-shadow: 0 0 10px #00ffcc55;
  color: white;
  text-align: center;
  border-left: 4.8px solid #00ccff;                    /* 6px -> 4.8px */
}

/* Username */
.profile-card .username-highlight {
  color: #b266ff !important;
  font-size: 0.8rem;                                   /* 1rem -> 0.8rem */
  text-shadow: 0 0 4px #b266ff;
}

/* Role Label */
.profile-card .label-role {
  color: #dddddd;
  font-size: 0.6rem;                                   /* 0.75rem -> 0.6rem */
  margin-top: 0.32rem;                                 /* 0.4rem -> 0.32rem */
}

/* Program */
.profile-card .label-program {
  color: #00ff99 !important;
  font-size: 0.6rem;                                   /* 0.75rem -> 0.6rem */
}
.profile-card .program-value {
  color: #00ffaa !important;
  font-size: 0.6rem;                                   /* 0.75rem -> 0.6rem */
}

/* Achievement Block Styling */
.profile-card .achievement-block,
.profile-card .achievement-box {
  background: #3c3c3c;
  border-radius: 8px;                                   /* 10px -> 8px */
  margin: 0.8rem auto;                                  /* 1rem -> 0.8rem */
  padding: 0.8rem;                                      /* 1rem -> 0.8rem */
  box-shadow: inset 0 0 6.4px #000;                     /* 8px -> 6.4px */
  color: white;
}

/* Trophy Icon */
.profile-card .achievement-icon {
  font-size: 1.12rem;                                   /* 1.4rem -> 1.12rem */
  color: #FFD700;
  margin-bottom: 0.4rem;                                /* 0.5rem -> 0.4rem */
  display: inline-block;
}

/* Achievement Text */
.profile-card .achievement-label {
  color: #cccccc !important;
  font-size: 0.72rem;                                   /* 0.9rem -> 0.72rem */
  display: inline-block;
}
.profile-card .achievement-value {
  color: #00ff00 !important;
  font-size: 0.8rem;                                    /* 1rem -> 0.8rem */
  margin-left: 0.4rem;                                  /* 0.5rem -> 0.4rem */
}

/* Current Level Text */
.profile-card .level-label {
  font-size: 0.6rem;                                    /* 0.75rem -> 0.6rem */
  color: #99ccff;
  margin-top: 0.24rem;                                  /* 0.3rem -> 0.24rem */
}

/* XP Bar */
.xp-bar {
  background: #1e1e1e;
  border: 1.6px solid #FFD700;                          /* 2px -> 1.6px */
  margin: 1.2rem auto 0.4rem auto;                      /* 1.5rem auto 0.5rem -> 1.2rem auto 0.4rem */
  padding: 0.24rem;                                     /* 0.3rem -> 0.24rem */
  border-radius: 8px;                                   /* 10px -> 8px */
  width: 90%;
}
.xp-fill {
  height: 16px;                                         /* 20px -> 16px */
  background: linear-gradient(90deg, #00ffcc, #00ff88);
  border-radius: 8px;
  transition: width 1s ease-in-out;
}

/* XP Label Text */
.xp-bar-label,
.xp-bar p {
  font-size: 0.64rem;                                   /* 0.8rem -> 0.64rem */
  font-weight: bold;
  margin-top: 8px;                                      /* 10px -> 8px */
  color: white;
  text-shadow: 0 0 2px #000;
}

/* Buttons */
.btn-pixel {
  background-color: #FFD700;
  color: #1e1e1e;
  font-weight: bold;
  border: none;
  padding: 4px 9.6px;                                   /* 5px 12px -> 4px 9.6px */
  margin-top: 6.4px;                                    /* 8px -> 6.4px */
  border-radius: 4.8px;                                 /* 6px -> 4.8px */
  font-size: 0.56rem;                                   /* 0.7rem -> 0.56rem */
}

/* Icons */
.icon {
  font-size: 1.6rem;                                    /* 2rem -> 1.6rem */
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4rem;                                 /* 0.5rem -> 0.4rem */
}

/* Make just the icons inside headings bigger */
.profile-card h2 .icon,
.section-title .icon,
.pixel-card h5 .icon,
.pixel-card h4 .icon {
  font-size: 1.28rem;                                   /* 1.6rem -> 1.28rem */
  vertical-align: middle;
  margin-right: 0.32rem;                                /* 0.4rem -> 0.32rem */
}

/* Quiz Cards */
.quiz-card {
  background-color: #28a745;
  color: white;
  padding: 0.8rem;                                      /* 1rem -> 0.8rem */
  border-radius: 6.4px;                                 /* 8px -> 6.4px */
  font-size: 0.68rem;                                   /* 0.85rem -> 0.68rem */
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  width: 100%;
  white-space: normal;
  min-height: 112px;                                    /* 140px -> 112px */
  margin-bottom: 1.2rem;                                /* 1.5rem -> 1.2rem */
}
.quiz-card h4.quiz-title {
  font-size: 0.8rem;                                    /* 1rem -> 0.8rem */
  color: #00ffff;
  word-break: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em;
  margin-bottom: 0.6rem;                                /* 0.75rem -> 0.6rem */
}
.quiz-card:hover {
  box-shadow: 0 0 10px #00ffcc55;
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
}

/* Quiz Status Labels */
.green,
.amber,
.red,
.not-attempted {
  padding: 0.56rem;                                     /* 0.7rem -> 0.56rem */
  border-radius: 6.4px;                                 /* 8px -> 6.4px */
  font-size: 0.56rem;                                   /* 0.7rem -> 0.56rem */
  color: #fff;
}
.green { background: #28a745; }
.amber { background: #ffc107; color: #000; }
.red { background: #dc3545; }
.not-attempted { background: #6c757d; }

/* Form select */
.form-select {
  background-color: #fff;
  color: #222;
  border: 1.6px solid #555;                              /* 2px -> 1.6px */
  font-family: 'Press Start 2P', monospace;
  font-size: 0.36rem;                                    /* 0.45rem -> 0.36rem */
  padding: 0.48rem 0.8rem;                               /* 0.6rem 1rem -> 0.48rem 0.8rem */
  border-radius: 4.8px;                                  /* 6px -> 4.8px */
  text-align: center;
  box-shadow: 1.6px 1.6px 0 #ccc;                        /* 2px -> 1.6px */
  transition: all 0.2s ease;
}
.form-select:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 4px #FFD700;                           /* 5px -> 4px */
}

/* 🎮 Default Theme — Achievements Section */
.achievement-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.28rem;                                          /* 1.6rem -> 1.28rem */
  margin-top: 1.6rem;                                    /* 2rem -> 1.6rem */
  padding: 1.6rem;                                       /* 2rem -> 1.6rem */
  background: #1c1c1c;
  border: 2.4px solid #FFD700;                           /* 3px -> 2.4px */
  border-radius: 12.8px;                                 /* 16px -> 12.8px */
  box-shadow: 0 0 11.2px #FFD70088;                      /* 14px -> 11.2px */
}
.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #2a2a2d;
  border: 1.6px dashed #00ffcc;                          /* 2px -> 1.6px */
  border-radius: 8px;                                    /* 10px -> 8px */
  padding: 0.96rem;                                      /* 1.2rem -> 0.96rem */
  width: 112px;                                          /* 140px -> 112px */
  text-align: center;
  box-shadow: inset 0 0 6.4px #00ffcc88;                 /* 8px -> 6.4px */
  transition: transform 0.2s ease-in-out;
}
.achievement-item:hover { transform: scale(1.07); box-shadow: 0 0 12.8px #00ffccaa; }
.achievement-item img.achievement-icon {
  width: 57.6px;                                          /* 72px -> 57.6px */
  height: 57.6px;
  margin-bottom: 0.64rem;                                 /* 0.8rem -> 0.64rem */
  image-rendering: pixelated;
}
.achievement-item p {
  font-size: 0.52rem;                                     /* 0.65rem -> 0.52rem */
  color: #00ffcc;
  text-shadow: 0 0 3px #00ffcc;
  line-height: 1.3;
  word-break: break-word;
  max-width: 96px;                                        /* 120px -> 96px */
}

/* Badge popup */
.badge-popup-wrapper {
  position: fixed;
  bottom: 1.6rem;                                        /* 2rem -> 1.6rem */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.96rem;                                          /* 1.2rem -> 0.96rem */
  pointer-events: none;
}
.badge-popup {
  opacity: 0;
  transform: translateY(40px) scale(0.95);               /* 50px -> 40px */
  transition: all 0.6s ease;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border: 1.6px solid #ffaa00;                           /* 2px -> 1.6px */
  border-radius: 9.6px;                                  /* 12px -> 9.6px */
  padding: 0.8rem 1.2rem;                                /* 1rem 1.5rem */
  display: flex;
  align-items: center;
  box-shadow: 0 0 14.4px #ffaa00aa;                      /* 18px -> 14.4px */
  color: #fff;
  min-width: 256px;                                      /* 320px -> 256px */
  max-width: 90vw;
}
.badge-popup.show { opacity: 1; transform: translateY(0) scale(1); }
.badge-popup img {
  width: 51.2px;                                         /* 64px -> 51.2px */
  height: 51.2px;
  margin-right: 0.8rem;                                  /* 1rem -> 0.8rem */
  border-radius: 6.4px;                                  /* 8px -> 6.4px */
  border: 1.6px solid #ffaa00;                           /* 2px -> 1.6px */
  box-shadow: 0 0 8px #ffaa00;                           /* 10px -> 8px */
}
.badge-info h4 {
  font-size: 0.88rem;                                    /* 1.1rem -> 0.88rem */
  margin: 0 0 0.24rem;
  color: #ffaa00;
  text-shadow: 0 0 4px #ffaa00aa;                        /* 5px -> 4px */
}
.badge-info p {
  font-size: 0.6rem;                                     /* 0.75rem -> 0.6rem */
  margin: 0;
  color: #ccc;
}

/* Starting Point Assessment Styles */
.quiz-card .starting-point-badge {
  position: absolute;
  top: 8px;                                              /* 10px -> 8px */
  right: 8px;                                            /* 10px -> 8px */
  font-size: 0.96rem;                                    /* 1.2rem -> 0.96rem */
  background: #FFD700;
  color: #000;
  padding: 3.2px 6.4px;                                  /* 4px 8px -> 3.2px 6.4px */
  border-radius: 6.4px;                                  /* 8px -> 6.4px */
  font-weight: bold;
  z-index: 2;
}
.quiz-card .starting-point-label {
  background: #00ffcc;
  color: #000;
  font-weight: bold;
  padding: 2.4px 6.4px;                                  /* 3px 8px -> 2.4px 6.4px */
  border-radius: 4.8px;                                  /* 6px -> 4.8px */
  font-size: 0.68rem;                                    /* 0.85rem -> 0.68rem */
  display: inline-block;
  margin-top: 4px;                                       /* 5px -> 4px */
}
/* =========================
   ACHIEVEMENTS — BIG/CRISP
   ========================= */

/* Panel: bigger, clearer, grid layout */
.achievement-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem !important;
  padding: 2.25rem 2rem !important;
  background: radial-gradient(1200px 400px at 50% 0%, #2a2a2d 0%, #1a1a1d 55%, #141416 100%);
  border: 4px solid #FFD700 !important;
  border-radius: 18px !important;
  box-shadow: 0 0 36px #ffd700aa, inset 0 0 18px #000;
}

/* Card: larger by default + crisp neon */
.achievement-item {
  width: 180px !important;
  padding: 1.25rem 1rem !important;
  border: 2.5px dashed #00ffcc !important;
  border-radius: 12px !important;
  background: linear-gradient(160deg, #232326, #2b2b2f) !important;
  box-shadow: inset 0 0 12px #00ffcc55, 0 0 10px #000 !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
  position: relative;
}

/* Icon/text bigger by default */
.achievement-item img.achievement-icon {
  width: 96px !important;
  height: 96px !important;
  margin-bottom: 0.75rem !important;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px #00ffcc88);
}

.achievement-item p {
  max-width: 160px !important;
  font-size: 0.8rem !important;       /* was 0.52rem */
  line-height: 1.35 !important;
  color: #d2fff4 !important;
  text-shadow: 0 0 6px #00ffccaa;
}

/* Hover/focus: BIG highlight */
.achievement-item:hover,
.achievement-item:focus-within {
  transform: scale(1.18);
  z-index: 3;
  border-color: #00ffee !important;
  box-shadow: 0 0 28px #00ffeeaa, inset 0 0 14px #00ffee55;
}

.achievement-item:hover img.achievement-icon,
.achievement-item:focus-within img.achievement-icon {
  width: 124px !important;
  height: 124px !important;
  filter: drop-shadow(0 0 10px #00ffeecc);
}

.achievement-item:hover p,
.achievement-item:focus-within p {
  font-size: 0.9rem !important;
}

/* Click-to-lock enlargement (persistent highlight) */
.achievement-item.is-active {
  transform: scale(1.32);
  z-index: 4;
  border-color: #FFD700 !important;
  box-shadow: 0 0 36px #ffd700cc, inset 0 0 18px #ffd70055;
}
.achievement-item.is-active img.achievement-icon {
  width: 140px !important;
  height: 140px !important;
}
.achievement-item.is-active p {
  font-size: 1rem !important;
}

/* Mobile: keep them large but avoid overflow */
@media (max-width: 768px) {
  .achievement-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem !important; }
  .achievement-item { width: 150px !important; }
  .achievement-item img.achievement-icon { width: 88px !important; height: 88px !important; }
  .achievement-item:hover,
  .achievement-item:focus-within { transform: scale(1.08); }
  .achievement-item.is-active { transform: scale(1.18); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .achievement-item { transition: none; }
}
/* -- Crisp text in the avatar modal -- */
#avatarEditModal,
#avatarEditModal * {
  -webkit-font-smoothing: none !important;   /* chunky + crisp for pixel fonts */
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeSpeed !important;
}

/* kill glow on labels + selected value */
#avatarEditModal label.form-label,
#avatarEditModal .modal-title,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__rendered {
  text-shadow: none !important;
}

/* make Select2 sit on whole pixels and align text vertically */
.select2-container--default .select2-selection--single {
  height: 40px !important;               /* integer */
  padding: 0 12px !important;            /* integer */
  border-radius: 8px !important;         /* integer */
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;          /* = height */
  font-size: 14px !important;            /* integer px helps this font */
}

/* dropdown options already had shadow removed; ensure selected item too */
.select2-results__option,
.select2-results__option--highlighted[aria-selected] {
  text-shadow: none !important;
}

/* optional: if the neon border causes GPU compositing blur, keep it but crisp text */
#avatarEditModal .modal-content.pixel-card {
  will-change: auto;
  filter: none !important;
}
