    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: #000;
      overflow: hidden;
      font-family: 'Segoe UI', sans-serif;
      touch-action: none;
      user-select: none;
    }

    #gameCanvas {
      display: block;
      width: 100vw;
      height: 100vh;
    }

    #preloader {
      position: fixed;
      inset: 0;
      background: linear-gradient(160deg, #87CEEB 0%, #B0E0FF 50%, #E0F4FF 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      transition: opacity 0.8s ease;
    }

    .carrot-logo {
      width: 100px;
      height: 140px;
      position: relative;
      animation: bounceIn 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    }

    .carrot-body-logo {
      width: 100px;
      height: 120px;
      background: linear-gradient(180deg, #FF8C00, #FF5500);
      clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
      border-radius: 0 0 50% 50%;
      position: relative;
      box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.15);
    }

    .carrot-band-logo {
      position: absolute;
      top: 30px;
      left: 0;
      right: 0;
      height: 12px;
      background: #FFD580;
      opacity: 0.8;
    }

    .carrot-leaves-logo {
      position: absolute;
      top: -40px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 4px;
    }

    .leaf-logo {
      width: 20px;
      height: 50px;
      background: linear-gradient(180deg, #2D8A00, #4CAF50);
      border-radius: 50% 50% 50% 0;
      transform-origin: bottom center;
    }

    .leaf-logo:nth-child(1) {
      transform: rotate(-20deg);
    }

    .leaf-logo:nth-child(2) {
      transform: rotate(5deg) scaleY(1.2);
    }

    .leaf-logo:nth-child(3) {
      transform: rotate(25deg);
    }

    #preloader h1 {
      font-size: 2.8rem;
      font-weight: 900;
      color: #FF5500;
      text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
      margin-top: 20px;
      letter-spacing: 2px;
      animation: fadeUp 0.6s 0.3s both;
    }

    #preloader p {
      color: #555;
      font-size: 1rem;
      margin-top: 8px;
      animation: fadeUp 0.6s 0.5s both;
    }

    .progress-bar-wrap {
      width: 220px;
      height: 12px;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 6px;
      margin-top: 30px;
      overflow: hidden;
      animation: fadeUp 0.6s 0.6s both;
    }

    .progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #FF8C00, #FF5500);
      border-radius: 6px;
      width: 0%;
      transition: width 0.1s linear;
      box-shadow: 0 0 8px rgba(255, 85, 0, 0.5);
    }

    #loadPct {
      color: #FF5500;
      font-size: 0.9rem;
      margin-top: 6px;
      font-weight: 700;
      animation: fadeUp 0.6s 0.6s both;
    }

    #howToPlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(6px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 900;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
    }

    #howToPlay.visible {
      opacity: 1;
      pointer-events: all;
    }

    .modal-card {
      background: linear-gradient(145deg, #C8E8FF, #E8F6FF);
      border-radius: 24px;
      padding: 30px 26px;
      max-width: 400px;
      width: 95%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      text-align: center;
      animation: popIn 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
      border: 2px solid rgba(255, 255, 255, 0.6);
    }

    .modal-card h2 {
      font-size: 1.8rem;
      color: #FF5500;
      font-weight: 900;
      margin-bottom: 4px;
    }

    .modal-card .subtitle {
      color: #555;
      font-size: 0.85rem;
      margin-bottom: 20px;
    }

    .how-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      background: rgba(255, 255, 255, 0.55);
      border-radius: 14px;
      padding: 11px 14px;
      margin-bottom: 9px;
      text-align: left;
    }

    .how-icon {
      font-size: 1.8rem;
      flex-shrink: 0;
    }

    .how-text strong {
      display: block;
      color: #333;
      font-size: 0.9rem;
    }

    .how-text span {
      color: #666;
      font-size: 0.8rem;
    }

    .btn-play {
      margin-top: 18px;
      padding: 14px 40px;
      background: linear-gradient(135deg, #FF8C00, #FF5500);
      color: #fff;
      font-size: 1.1rem;
      font-weight: 800;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
      transition: transform 0.15s, box-shadow 0.15s;
      letter-spacing: 1px;

      /* 3D Border + Depth */
      box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        /* top highlight */
        inset 0 -3px 0 rgba(150, 40, 0, 0.45),
        /* bottom inner edge */
        0 0 0 2px rgba(255, 170, 90, 0.25),
        /* glowing outer border */
        0 8px 0 #c94700,
        /* solid 3D edge */
        0 12px 24px rgba(255, 85, 0, 0.45);
      /* soft shadow */

      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    #hud {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      padding: 16px 20px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      pointer-events: none;
      z-index: 100;
      opacity: 0;
      transition: opacity 0.4s;
    }

    #hud.visible {
      opacity: 1;
    }

    .hud-left {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .hud-score {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;

      padding: 10px 24px;
      border-radius: 999px;

      background: linear-gradient(180deg,
          rgba(255, 255, 255, 0.45) 0%,
          rgba(255, 255, 255, 0.22) 100%);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);

      color: #ff5a00;
      font-size: 1.2rem;
      font-weight: 900;
      letter-spacing: 0.8px;

      border: 1px solid rgba(255, 255, 255, 0.45);

      /* Premium 3D effect */
      box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.65),
        inset 0 -3px 0 rgba(255, 255, 255, 0.12),
        0 0 0 2px rgba(255, 140, 0, 0.18),
        0 10px 22px rgba(255, 85, 0, 0.28),
        0 4px 10px rgba(0, 0, 0, 0.15);

      text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.25);

      transition: transform .2s ease, box-shadow .2s ease;
      overflow: hidden;
    }

    /* Glossy top shine */
    .hud-score::before {
      content: "";
      position: absolute;
      top: 2px;
      left: 8%;
      width: 84%;
      height: 45%;
      border-radius: 999px;

      background: linear-gradient(to bottom,
          rgba(255, 255, 255, 0.65),
          rgba(255, 255, 255, 0));

      pointer-events: none;
    }

    /* Orange glow */
    .hud-score::after {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: inherit;
      background: radial-gradient(circle,
          rgba(255, 170, 0, 0.18),
          transparent 70%);
      z-index: -1;
    }

    .hud-score:hover {
      transform: translateY(-2px) scale(1.03);
      box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -3px 0 rgba(255, 255, 255, 0.15),
        0 0 0 2px rgba(255, 170, 0, 0.25),
        0 14px 28px rgba(255, 85, 0, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.18);
    }

    .hud-score span {
      color: #FFD040;
    }

    .combo-badge {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;

      padding: 8px 18px;
      border-radius: 999px;

      background: linear-gradient(180deg,
          rgba(255, 230, 120, 0.45) 0%,
          rgba(255, 190, 40, 0.22) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);

      color: #FFD84A;
      font-size: 0.95rem;
      font-weight: 900;
      letter-spacing: 0.8px;

      border: 1px solid rgba(255, 245, 180, 0.45);

      /* 3D Metallic Effect */
      box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.65),
        inset 0 -3px 0 rgba(160, 110, 0, 0.35),
        0 0 0 2px rgba(255, 210, 70, 0.18),
        0 8px 18px rgba(255, 180, 0, 0.28),
        0 4px 10px rgba(0, 0, 0, 0.18);

      text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.35);

      overflow: hidden;
      transition: transform .2s ease, box-shadow .2s ease;
    }

    /* Glossy highlight */
    .combo-badge::before {
      content: "";
      position: absolute;
      top: 2px;
      left: 8%;
      width: 84%;
      height: 42%;
      border-radius: inherit;

      background: linear-gradient(to bottom,
          rgba(255, 255, 255, 0.75),
          rgba(255, 255, 255, 0));

      pointer-events: none;
    }

    /* Golden glow */
    .combo-badge::after {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: inherit;
      background: radial-gradient(circle,
          rgba(255, 215, 0, 0.2),
          transparent 70%);
      z-index: -1;
    }

    /* Hover effect */
    .combo-badge:hover {
      transform: translateY(-2px) scale(1.04);
      box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -3px 0 rgba(160, 110, 0, 0.4),
        0 0 0 2px rgba(255, 220, 90, 0.25),
        0 12px 24px rgba(255, 190, 0, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.2);
    }

    .shield-indicator {
      background: rgba(0, 150, 255, 0.35);
      backdrop-filter: blur(8px);
      border-radius: 30px;
      padding: 6px 16px;
      color: #a0e0ff;
      font-weight: 800;
      font-size: 0.9rem;
      border: 1px solid rgba(255, 255, 255, 0.4);
    }

    .height-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .height-bar-bg {
      width: 14px;
      height: 120px;
      background: rgba(255, 255, 255, 0.28);
      backdrop-filter: blur(10px);
      border-radius: 7px;
      overflow: hidden;
      border: 1.5px solid rgba(255, 255, 255, 0.5);
      display: flex;
      align-items: flex-end;
    }

    .height-bar-fill {
      width: 100%;
      background: linear-gradient(0deg, #FF4400, #FFD040);
      border-radius: 7px;
      transition: height 0.2s ease;
    }

    .height-label {
      color: #fff;
      font-size: 0.75rem;
      font-weight: 700;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    #jumpBtn {
      position: fixed;
      bottom: 80px;
      right: 20px;
      width: 70px;
      height: 70px;
      background: #1379f5;
      backdrop-filter: blur(10px);
      border: 2px solid #1379f5;
      border-radius: 50%;
      color: white;
      font-size: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 150;
      pointer-events: all;
      cursor: pointer;
      transition: 0.2s;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      opacity: 0;
    }

    #jumpBtn.visible {
      opacity: 1;
    }

    #keyHint {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      pointer-events: none;
      z-index: 100;
      opacity: 0;
      transition: opacity 0.4s;
    }

    #keyHint.visible {
      opacity: 1;
    }

    .key-badge {
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(8px);
      border: 1.5px solid rgba(255, 255, 255, 0.5);
      border-radius: 8px;
      padding: 5px 10px;
      color: #fff;
      font-size: 0.8rem;
      font-weight: 700;
    }

    #gameOver {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 900;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s;
    }

    #gameOver.visible {
      opacity: 1;
      pointer-events: all;
    }

    .go-card {
      background: linear-gradient(145deg, #C8E8FF, #E8F6FF);
      border-radius: 24px;
      padding: 36px 32px;
      max-width: 320px;
      width: 90%;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
      animation: popIn 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
      border: 2px solid rgba(255, 255, 255, 0.6);
    }

    .go-emoji {
      font-size: 3.5rem;
      display: block;
      margin-bottom: 8px;
      animation: shake 0.5s ease;
    }

    .go-card h2 {
      font-size: 2rem;
      font-weight: 900;
      color: #FF5500;
    }

    .go-subtitle {
      color: #666;
      font-size: 0.88rem;
      margin-bottom: 4px;
    }

    .go-score-row {
      display: flex;
      justify-content: space-around;
      margin: 18px 0;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 16px;
      padding: 14px 8px;
    }

    .go-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .go-stat-val {
      font-size: 1.7rem;
      font-weight: 900;
      color: #FF5500;
    }

    .go-stat-label {
      font-size: 0.75rem;
      color: #777;
      font-weight: 700;
    }

    .btn-restart {
      padding: 14px 40px;
      width: 100%;
      background: linear-gradient(135deg, #FF8C00, #FF5500);
      color: #fff;
      font-size: 1.1rem;
      font-weight: 800;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
      letter-spacing: 1px;
      /* 3D Border + Depth */
      box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        /* top highlight */
        inset 0 -3px 0 rgba(150, 40, 0, 0.45),
        /* bottom inner edge */
        0 0 0 2px rgba(255, 170, 90, 0.25),
        /* glowing outer border */
        0 8px 0 #c94700,
        /* solid 3D edge */
        0 12px 24px rgba(255, 85, 0, 0.45);
      /* soft shadow */

      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .collect-pop {
      position: fixed;
      pointer-events: none;
      z-index: 200;
      font-size: 1.4rem;
      font-weight: 900;
      color: #FFD040;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
      animation: floatUp 0.85s ease forwards;
    }

    .shrink-pop {
      position: fixed;
      pointer-events: none;
      z-index: 200;
      font-size: 1.2rem;
      font-weight: 900;
      color: #FF3333;
      animation: floatUp 0.85s ease forwards;
    }

    @keyframes bounceIn {
      0% {
        transform: scale(0) rotate(-10deg)
      }

      70% {
        transform: scale(1.15) rotate(5deg)
      }

      100% {
        transform: scale(1) rotate(0)
      }
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(15px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes popIn {
      from {
        transform: scale(0.85);
        opacity: 0
      }

      to {
        transform: scale(1);
        opacity: 1
      }
    }

    @keyframes shake {

      0%,
      100% {
        transform: rotate(0)
      }

      20% {
        transform: rotate(-8deg)
      }

      40% {
        transform: rotate(8deg)
      }

      60% {
        transform: rotate(-6deg)
      }

      80% {
        transform: rotate(6deg)
      }
    }

    @keyframes floatUp {
      0% {
        opacity: 1;
        transform: translateY(0) scale(1)
      }

      100% {
        opacity: 0;
        transform: translateY(-80px) scale(1.4)
      }
    }
