
    /* ===== Body & Container ===== */
    body {
      margin: 0;
      font-family: 'Nunito', sans-serif;
      background: linear-gradient(135deg, #ff416c, #ff4b2b);
      display: flex;
      justify-content: center;
      align-items: flex-start;
      min-height: 100vh;
      padding: 20px;
      color: #fff;
      overflow-x: hidden;
    }

    /* ===== Scale Everything by 90% ===== */
    .scaled-container {
      transform: scale(1.);       /* shrink 0% */
      transform-origin: top center;
    }

    .container {
      background: rgba(0,0,0,0.6);
      margin-top: 20px;
      padding: 25px;
      border-radius: 20px;
      box-shadow: 0 0 50px rgba(255,255,255,0.3);
      width: 100%;
      max-width: 1600px;
      position: relative;
      overflow: hidden;
    }
    .container::before {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: conic-gradient(from 0deg, #00f2ff, #ff00ff, #ffea00, #00f2ff);
      animation: rotate 15s linear infinite;
      z-index: 0;
      opacity: 0.1;
    }

    /* ===== Hero Header ===== */
    .hero-header {
      background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
      padding: 25px;
      border-radius: 15px;
      margin-bottom: 25px;
      text-align: left;
      color: #0ff;
      box-shadow: 0 0 25px rgba(0,255,255,0.5);
      position: relative;
      z-index: 1;
    }
    .hero-header h1 { margin: 0; font-size: 3.3rem; text-align: center; }
    .hero-header p { margin: 8px 0 0; font-size: 1.1rem; color: #ddd; }

    /* ===== Streak & Goals ===== */
    .streak {
      background: rgba(255,255,255,0.05);
      padding: 12px;
      border-radius: 10px;
      margin: 20px 0;
      font-weight: bold;
      color: #ffeaa7;
      font-size: 1.3rem;
      box-shadow: inset 0 0 12px #0ff;
      position: relative;
      z-index: 1;
      animation: float 3s ease-in-out infinite;
    }

    /* ===== Subjects Grid ===== */
    .subjects {
      margin-top: 20px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      position: relative;
      z-index: 1;
    }

    /* ===== Subject Cards ===== */
    .subject {
      background: rgba(155, 90, 90, 0.05);
      border-radius: 15px;
      padding: 20px;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 0 15px #00f2ff55;
      position: relative;
    }
    .subject:hover {
      transform: scale(1.05);
      box-shadow: 0 0 25px #00f2ff, 0 0 25px #ff00ff;
      animation: vibrate 0.1s;
      background-color: #ff4b2b;
      zoom: 125%;
    }
    .subject h3 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 800; }

    /* ===== Badge ===== */
    .badge {
      display: inline-block;
      background: linear-gradient(45deg, #00f2ff, #ff00ff);
      color: #fff;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 0.85rem;
      margin-bottom: 8px;
      animation: float 2s ease-in-out infinite;
    }

    /* ===== Progress Bar ===== */
    .progress-bar {
      background: #222;
      border-radius: 12px;
      overflow: hidden;
      height: 12px;
      margin: 8px 0 15px;
    }
    .progress {
      height: 100%;
      width: 0;
      transition: width 0.5s ease-in-out;
      box-shadow: 0 0 10px #00f2ff, 0 0 10px #ff00ff;
    }

    /* ===== Buttons ===== */
    button {
      background: linear-gradient(45deg, #ff00ff, #00f2ff);
      border: none;
      color: #fff;
      padding: 12px 25px;
      border-radius: 25px;
      cursor: pointer;
      font-weight: bold;
      font-size: 1rem;
      margin-top: 5px;
      transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 0 10px #740274, 0 0 10px #00f2ff;
    }
    button:hover {
      transform: scale(1.1);
      background: linear-gradient(45deg, #00f2ff, #ff00ff);
      box-shadow: 0 0 25px #00f2ff, 0 0 25px #ff00ff;
    }

    /* ===== Leaderboard ===== */
    .leaderboard {
      background: rgba(4, 157, 218, 0.4);
      margin-top: 25px;
      padding: 15px;
      border-radius: 15px;
      box-shadow: 0 0 25px #0ff;
    }
    .leaderboard h2 {
      margin-top: 0;
      color: #ffeb3b;
      font-size: 1.8rem;
      text-align: center;
    }
    .leaderboard ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .leaderboard li {
      padding: 8px 12px;
      margin: 5px 0;
      background: rgba(255,255,255,0.1);
      border-radius: 10px;
      font-weight: bold;
      font-size: 1.1rem;
      display: flex;
      justify-content: space-between;
    }

    /* ===== Popups & Confetti ===== */
    .popup {
      position: fixed;
      top: 10%;
      left: 50%;
      transform: translateX(-50%) translateY(-20px);
      background: linear-gradient(45deg,#ff00ff,#00f2ff);
      color: #fff;
      padding: 15px 25px;
      border-radius: 20px;
      font-weight: bold;
      font-size: 1.2rem;
      box-shadow: 0 0 25px #00f2ff,0 0 25px #ff00ff;
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s, transform 0.5s;
    }
    .popup.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ===== Animations ===== */
    @keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);} }
    @keyframes vibrate {
      0% { transform: translate(0); }
      20% { transform: translate(-2px,2px); }
      40% { transform: translate(2px,-2px); }
      60% { transform: translate(-1px,1px); }
      80% { transform: translate(1px,-1px); }
      100% { transform: translate(0); }
    }
    @keyframes float {
      0% { transform: translateY(0px); }
      50% { transform: translateY(-5px); }
      100% { transform: translateY(0px); }
    }
  