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

    html,
    body {
      height: 100%;
      background: #1a2a3a;
      overflow: hidden;
    }

    #loading-screen {
      position: fixed;
      inset: 0;
      background: linear-gradient(160deg, #0c1c2c 0%, #1a2a3a 100%);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.6s ease-out, visibility 0.6s;
    }

    #loading-screen.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .loader-content {
      width: 100%;
      max-width: 300px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 30px;
    }

    .loader-logo {
      width: 100px;
      height: 100px;
      border-radius: 24px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
      animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    .progress-wrapper {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .progress-bar {
      width: 100%;
      height: 6px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #progress-fill {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, #00ff88, #00d4ff);
      transition: width 0.3s ease-out;
      box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    }

    #progress-text {
      font-family: 'Outfit', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      letter-spacing: 1px;
    }

    .loader-status {
      font-family: 'Outfit', sans-serif;
      font-size: 11px;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.4);
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    /* Keep Ko-fi toggle on top, but don't block the screen */
    #kofi-btn {
      position: absolute;
      top: 74px;
      right: 20px;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 90;
      transition: all 0.3s ease;
      padding: 10px;
    }

    #kofi-btn:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: scale(1.1);
      box-shadow: 0 0 15px rgba(114, 164, 242, 0.4);
      color: #72a4f2;
    }

    #kofi-btn svg {
      width: 100%;
      height: 100%;
    }

    #gw {
      width: 100%;
      height: 100vh;
      min-height: 500px;
      position: relative;
      overflow: hidden;
      background: linear-gradient(160deg,
          #1b3a5c 0%,
          #2a5f7a 40%,
          #1e4060 100%);
      font-family: "Outfit", sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.5s ease, background-image 0.5s ease;
    }

    canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    #score {
      position: absolute;
      top: 24px;
      left: 50%;
      transform: translateX(-50%);
      font-size: clamp(40px, 8vw, 72px);
      font-weight: 600;
      color: rgba(255, 255, 255, 0.92);
      text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
      z-index: 10;
      pointer-events: none;
      letter-spacing: -2px;
    }

    #hint {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 12px;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.35);
      letter-spacing: 2px;
      text-transform: uppercase;
      pointer-events: none;
      z-index: 10;
      white-space: nowrap;
    }

    .mobile-hint {
      display: none;
    }

    @media (max-width: 768px) {
      .mobile-hint {
        display: inline;
      }

      .desktop-hint {
        display: none;
      }
    }

    .glass {
      background: rgba(15, 25, 35, 0.5);
      /* Darker base */
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 24px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    #overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      z-index: 20;
    }

    #card {
      padding: 44px 52px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      text-align: center;
      min-width: 260px;
    }

    #card h2 {
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 3.5px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.45);
    }

    #card .big {
      font-size: clamp(56px, 14vw, 80px);
      font-weight: 600;
      color: #fff;
      line-height: 1;
      letter-spacing: -3px;
    }

    #card .sub {
      font-size: 12px;
      font-weight: 300;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.4);
    }

    #card .tagline {
      font-size: 15px;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.65);
      margin-bottom: 6px;
    }

    #pb-display {
      margin-bottom: 12px;
      text-align: center;
      animation: fadeIn 0.5s ease-out;
    }

    .pb-val {
      font-size: 32px;
      font-weight: 600;
      color: #ffd700;
      text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
      letter-spacing: -1px;
    }

    .new-best-badge {
      background: linear-gradient(135deg, #ffd700, #ff8c00);
      color: #000;
      padding: 4px 12px;
      border-radius: 20px;
      font-weight: 800;
      font-size: 14px;
      letter-spacing: 1px;
      box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
      margin-bottom: 8px;
      animation: pulse 2s infinite;
    }

    .pb-small {
      font-size: 14px;
      font-weight: 500;
      color: rgba(255, 215, 0, 0.82);
      margin-top: -8px;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

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

    #logo {
      width: 90px;
      height: 90px;
      object-fit: cover;
      border-radius: 24px;
      margin-bottom: 8px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #play-btn {
      margin-top: 8px;
      width: 220px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 13px;
      font-weight: 600;
      /* Bolder */
      letter-spacing: 2px;
      text-transform: uppercase;
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 50px;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      cursor: pointer;
      font-family: "Outfit", sans-serif;
      transition: background 0.2s, border-color 0.2s, transform 0.1s;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      /* Readability */
    }

    #shop-btn {
      width: 220px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .btn-icon {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }

    #play-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.6);
    }

    #play-btn:active {
      transform: scale(0.97);
    }

    .secondary-btn {
      margin-top: 4px;
      padding: 10px 32px;
      font-size: 11px;
      font-weight: 600;
      /* Bolder */
      letter-spacing: 1.5px;
      text-transform: uppercase;
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 50px;
      background: rgba(0, 0, 0, 0.15);
      /* Slightly darker */
      color: rgba(255, 255, 255, 0.85);
      cursor: pointer;
      font-family: "Outfit", sans-serif;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
      /* Readability */
    }

    .secondary-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.4);
    }

    .share-row {
      display: flex;
      gap: 12px;
      justify-content: center;
      width: 100%;
      margin: 12px 0 4px 0;
    }

    #share-btn,
    #native-share-btn {
      width: 54px;
      height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    #share-btn {
      background: #000;
      color: #fff;
    }

    #native-share-btn {
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }

    #share-btn .btn-icon,
    #native-share-btn .btn-icon {
      margin: 0;
      width: 22px;
      height: 22px;
    }

    #share-btn:hover,
    #native-share-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    #native-share-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.5);
    }

    /* Toast Notification */
    .toast {
      position: fixed;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: rgba(0, 255, 136, 0.9);
      color: #000;
      padding: 12px 24px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 14px;
      font-family: 'Outfit', sans-serif;
      z-index: 1000;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      pointer-events: none;
    }

    .toast.active {
      transform: translateX(-50%) translateY(0);
    }

    #perfect {
      position: absolute;
      top: 42%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 16px;
      font-weight: 400;
      letter-spacing: 5px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.9);
      pointer-events: none;
      z-index: 15;
      opacity: 0;
      transition: opacity 0.15s;
    }

    /* Rewind Button Styling */
    #revive-btn {
      margin-top: 8px;
      padding: 14px 48px;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      border: none;
      border-radius: 50px;
      background: linear-gradient(135deg, #00ff88, #00bd68);
      color: #000;
      cursor: pointer;
      font-family: "Outfit", sans-serif;
      transition: all 0.2s;
      box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
      animation: pulseGreen 2s infinite;
    }

    #revive-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 25px rgba(0, 255, 136, 0.6);
    }

    #revive-btn:active {
      transform: scale(0.95);
    }

    @keyframes pulseGreen {
      0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
      }

      70% {
        box-shadow: 0 0 0 15px rgba(0, 255, 136, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
      }
    }

    /* Noir Theme Contrast Fix */
    .noir-active h2,
    .noir-active .tagline,
    .noir-active .sub,
    .noir-active #score {
      color: #fff !important;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    }

    .noir-active .glass {
      background: rgba(0, 0, 0, 0.45) !important;
      backdrop-filter: blur(12px) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    #sound-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      color: #fff;
      cursor: pointer;
      z-index: 100;
      transition: background 0.2s, transform 0.1s;
    }

    #sound-btn:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    #sound-btn:active {
      transform: scale(0.95);
    }

    #sound-btn svg {
      width: 20px;
      height: 20px;
      stroke: currentColor;
    }

    #fullscreen-btn {
      position: absolute;
      bottom: 20px;
      right: 20px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      color: #fff;
      cursor: pointer;
      z-index: 100;
      transition: background 0.2s, transform 0.1s;
    }

    #fullscreen-btn:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    #fullscreen-btn:active {
      transform: scale(0.95);
    }

    #fullscreen-btn::before {
      content: "";
      display: none;
    }

    #fullscreen-btn svg {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }

    #fullscreen-btn.active svg {
      stroke: #4cd964;
    }

    /* Coin Counter Styles */
    #coin-counter {
      position: absolute;
      top: 24px;
      left: 24px;
      height: 44px;
      padding: 0 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      color: #fff;
      z-index: 100;
      font-family: "Outfit", sans-serif;
      font-weight: 600;
      font-size: 16px;
      min-width: 90px;
    }

    #active-boost-badge {
      position: absolute;
      top: -12px;
      right: -8px;
      background: linear-gradient(135deg, #ffd700, #ffa500);
      color: #000;
      font-size: 11px;
      padding: 3px 8px;
      border-radius: 20px;
      font-weight: 800;
      box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
      border: 1.5px solid rgba(255, 255, 255, 0.4);
      display: none;
      pointer-events: none;
      z-index: 10;
    }

    #active-boost-badge.active {
      display: block;
      animation: scaleIn 0.3s ease-out;
    }

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

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

    #coin-counter svg {
      width: 20px;
      height: 20px;
    }

    .coin-icon {
      filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
    }

    #gem-counter {
      position: absolute;
      top: 76px;
      left: 24px;
      height: 44px;
      padding: 0 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px;
      color: #fff;
      z-index: 100;
      font-family: "Outfit", sans-serif;
      font-weight: 600;
      font-size: 16px;
      transition: transform 0.2s;
      min-width: 90px;
    }

    .gem-icon {
      width: 20px;
      height: 20px;
      filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.4));
    }

    /* Multiplier UI */
    #multiplier-container {
      position: absolute;
      top: 100px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      z-index: 10;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    #multiplier-container.active {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    #multiplier-badge {
      background: linear-gradient(135deg, #ffd700, #ff8c00);
      color: #000;
      padding: 4px 12px;
      border-radius: 20px;
      font-weight: 800;
      font-size: 14px;
      letter-spacing: 1px;
      box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
      animation: pulse 2s infinite;
    }

    #multiplier-time {
      color: rgba(255, 255, 255, 0.8);
      font-size: 12px;
      font-weight: 400;
      font-variant-numeric: tabular-nums;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.1);
      }

      100% {
        transform: scale(1);
      }
    }

    @keyframes bump {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.3);
      }

      100% {
        transform: scale(1);
      }
    }

    .multiplier-bump {
      animation: bump 0.4s ease-out !important;
    }

    /* Shop Button */
    #shop-btn {
      margin-top: 8px;
      padding: 14px 48px;
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 2px;
      text-transform: uppercase;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 50px;
      background: rgba(255, 255, 255, 0.05);
      color: rgba(255, 255, 255, 0.8);
      cursor: pointer;
      font-family: "Outfit", sans-serif;
      transition: all 0.2s;
    }

    #shop-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.4);
      color: #fff;
    }

    /* Modal Overlay */
    .modal-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
      padding: 20px;
    }

    .modal-overlay.active {
      display: flex;
    }

    #shop-card {
      width: 100%;
      max-width: 400px;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      padding: 32px;
      overflow: hidden;
    }

    .shop-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
    }

    .shop-header h3 {
      font-size: 20px;
      font-weight: 600;
      color: #fff;
      letter-spacing: 1px;
    }

    #close-shop,
    #close-kofi {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.6);
      font-size: 32px;
      cursor: pointer;
      line-height: 1;
      padding: 0;
      transition: color 0.2s;
    }

    #close-shop:hover,
    #close-kofi:hover {
      color: #fff;
    }

    .shop-tabs {
      display: flex;
      gap: 12px;
      margin-bottom: 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding-bottom: 12px;
    }

    .shop-tab {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.4);
      font-size: 14px;
      font-weight: 400;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      cursor: pointer;
      padding: 4px 8px;
      transition: all 0.2s;
      position: relative;
    }

    .shop-tab.active {
      color: #fff;
    }

    .shop-tab.active::after {
      content: "";
      position: absolute;
      bottom: -13px;
      left: 0;
      width: 100%;
      height: 2px;
      background: #00ff88;
      box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    }

    .shop-content {
      flex: 1;
      overflow-y: auto;
      padding-right: 8px;
    }

    .shop-content::-webkit-scrollbar {
      width: 4px;
    }

    .shop-content::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 10px;
    }

    .shop-grid {
      display: none;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .shop-grid.active {
      display: grid;
    }

    .shop-item {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      transition: all 0.2s;
      cursor: pointer;
    }

    .shop-item:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.3);
      transform: translateY(-2px);
    }

    .shop-item.equipped {
      border-color: #00ff88;
      background: rgba(0, 255, 136, 0.08);
      box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
    }

    .item-preview {
      width: 80px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 6px;
      background: rgba(0, 0, 0, 0.2);
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .preview-rect {
      width: 100%;
      height: 12px;
      border-radius: 3px;
    }

    .item-info {
      text-align: center;
    }

    .item-name {
      font-size: 15px;
      font-weight: 500;
      color: #fff;
      display: block;
      margin-bottom: 6px;
    }

    .item-price {
      font-size: 13px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .coin-price {
      color: #ffd700;
    }

    .gem-price {
      color: #00ff88;
    }

    .price-icon {
      width: 14px;
      height: 14px;
    }

    .equipped-badge {
      font-size: 11px;
      color: #00ff88;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      font-weight: 600;
    }

    /* Ko-fi Modal Specifics */
    #kofi-card {
      width: 90%;
      max-width: 440px;
      max-height: 85vh;
      overflow: hidden;
      padding: 25px 20px 20px 20px !important;
    }

    .kofi-frame-container {
      margin-top: 15px;
      border-radius: 12px;
      overflow: hidden;
      background: #f9f9f9;
      height: 650px;
    }

    .support-msg {
      margin-top: 15px;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.7) !important;
      line-height: 1.6;
    }

    .support-msg a {
      color: #72a4f2 !important;
      text-decoration: none;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
      display: block;
      /* Force new line */
    }

    .support-msg a:hover {
      opacity: 1;
      text-decoration: underline;
    }

    /* Anti-Cheat Styling */
    #anticheat-card {
      width: 90%;
      max-width: 360px;
      padding: 32px;
      border: 1px solid rgba(255, 59, 48, 0.3);
      box-shadow: 0 10px 40px rgba(255, 59, 48, 0.15), 0 0 0 1px rgba(255, 59, 48, 0.1);
    }

    /* Phantom Theme */
    .phantom-theme {
      background: radial-gradient(circle at center, #1a0a2e 0%, #000 100%) !important;
      position: relative;
    }

    .phantom-theme::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 50px 160px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 80px 120px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 110px 210px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 150px 150px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 190px 40px, #fff, rgba(0, 0, 0, 0));
      background-repeat: repeat;
      background-size: 250px 250px;
      opacity: 0.3;
      animation: starsMove 150s linear infinite;
      pointer-events: none;
      z-index: 0;
    }

    .phantom-theme::after {
      content: "";
      position: absolute;
      inset: 0;
      /* The "CSS Sun" - A soft, ultra-bright light source */
      background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.15) 0%, rgba(100, 50, 255, 0.05) 30%, transparent 60%);
      pointer-events: none;
      z-index: 10; /* Above the canvas to "light" the slabs */
      mix-blend-mode: screen;
    }

    @keyframes starsMove {
      from { background-position: 0 0; }
      to { background-position: 500px 1000px; }
    }

    .phantom-theme #score {
      text-shadow: 0 0 20px rgba(255, 255, 255, 0.2) !important;
    }

    /* Gold Theme */
    .gold-theme {
      background: radial-gradient(circle at center, #2b2301 0%, #000 100%) !important;
      position: relative;
    }

    .gold-theme::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 75%),
        repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.015) 0px, rgba(212, 175, 55, 0.015) 1px, transparent 1px, transparent 30px);
      background-size: 100% 100%, 60px 60px;
      animation: goldShimmer 10s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes goldShimmer {

      0%,
      100% {
        opacity: 0.4;
      }

      50% {
        opacity: 0.8;
      }
    }

    .gold-theme #score {
      color: #ffd700 !important;
      text-shadow: 0 0 25px rgba(255, 215, 0, 0.5) !important;
    }

    /* Prismatic Theme */
    .prismatic-theme {
      background: #080808 !important;
      position: relative;
    }

    .prismatic-theme::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(125deg,
          rgba(255, 0, 0, 0.12),
          rgba(255, 127, 0, 0.12),
          rgba(255, 255, 0, 0.12),
          rgba(0, 255, 0, 0.12),
          rgba(0, 0, 255, 0.12),
          rgba(75, 0, 130, 0.12),
          rgba(139, 0, 255, 0.12));
      background-size: 400% 400%;
      animation: prismaticMove 10s ease infinite;
      pointer-events: none;
    }

    @keyframes prismaticMove {
      0% {
        background-position: 0% 50%
      }

      50% {
        background-position: 100% 50%
      }

      100% {
        background-position: 0% 50%
      }
    }

    .prismatic-theme #score {
      text-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.6) !important;
      color: #fff !important;
    }

    /* A2HS Prompt Styling */
    #a2hs-card {
      max-width: 320px;
      padding: 32px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 16px;
    }

    .a2hs-icon {
      width: 64px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      color: #00ff88;
      margin-bottom: 8px;
    }

    .a2hs-icon svg {
      width: 32px;
      height: 32px;
    }

    #a2hs-card h3 {
      font-size: 20px;
      font-weight: 600;
      color: #fff;
    }

    #a2hs-card p {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.6);
      line-height: 1.5;
    }

    .a2hs-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      margin-top: 8px;
    }

    #install-btn {
      padding: 14px;
      border: none;
      border-radius: 50px;
      background: linear-gradient(135deg, #00ff88, #00bd68);
      color: #000;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.2s;
    }

    #install-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    }

    #a2hs-ignore {
      margin-top: 0;
      width: 100%;
    }

    #a2hs-opt-out {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.3);
      font-size: 12px;
      cursor: pointer;
      text-decoration: underline;
      transition: color 0.2s;
    }

    #a2hs-opt-out:hover {
      color: rgba(255, 255, 255, 0.6);
    }