@font-face {
      font-family: 'D-DIN Condensed';
      src: url('../fonts/D-DINCondensed-Bold.woff') format('woff'),
           url('https://fonts.cdnfonts.com/s/23112/D-DINCondensed-Bold.woff') format('woff');
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'D-DIN Condensed';
      src: url('../fonts/D-DINCondensed.woff') format('woff'),
           url('https://fonts.cdnfonts.com/s/23112/D-DINCondensed.woff') format('woff');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    /* 
      ===============================================================
      🎥 FULLSCREEN BACKGROUND VIDEO / GIF CONFIGURATION
      ===============================================================
      Place your background.mp4, background.gif, sound effect/Hover.mp3 & sound effect/Click.mp3 here!
      ===============================================================
    */

    :root {
      --font-logo: 'Oswald', 'Kanit', sans-serif;
      --font-mono: 'Space Mono', 'Kanit', monospace;
      --font-sans: 'Inter', 'Kanit', 'Noto Sans Thai', sans-serif;

      /* 🎚️ 1-LINE AUDIO GRAPH SETTINGS: Change numbers directly in CSS */
      --bgm-viz-sensitivity: 0.90;  /* ⚡ Sensitivity / Amplitude (0.5 = subtle, 0.90 = balanced, 1.6 = punchy) */
      --bgm-viz-smoothing: 0.30;    /* 🌊 Smoothing (0.2 = fast/raw transients, 0.30 = balanced, 0.9 = butter smooth) */
      --bgm-viz-max-height: 0.40;   /* 📏 Max height ratio (0.2 to 0.7) */

      /* Premium motion tokens */
      --ease-premium-out: cubic-bezier(0.22, 1, 0.36, 1);
      --ease-premium-in-out: cubic-bezier(0.65, 0, 0.35, 1);
      --ease-spring-soft: cubic-bezier(0.34, 1.18, 0.64, 1);
      --duration-text-in: 0.88s;
    }

    * {
      box-sizing: border-box;
      scroll-behavior: smooth;
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .hero-enter, .soft-entrance, .scroll-reveal, .scroll-reveal-child {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
      }
    }

    /* =============================================
       PREMIUM TEXT & ELEMENT MOTION
    ============================================= */
    @keyframes premiumSoftIn {
      0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.988);

      }
      55% {
        opacity: 1;

      }
      78% {
        transform: translate3d(0, -1px, 0) scale(1.002);
      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);

      }
    }

    @keyframes premiumTextReveal {
      0% {
        opacity: 0;
        transform: translate3d(0, 14px, 0);

        letter-spacing: 0.06em;
      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);

        letter-spacing: inherit;
      }
    }

    .soft-entrance {
      opacity: 0;
      animation: premiumSoftIn var(--duration-text-in) var(--ease-premium-out) forwards;

    }

    .hero-enter {
      opacity: 0;
    }

    @keyframes heroSlideIn {
      0% {
        transform: translate3d(calc(-100% - 100vw), 0, 0);
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
      }
      72% {
        transform: translate3d(10px, 0, 0);
        animation-timing-function: ease-in-out;
      }
      88% {
        transform: translate3d(-3px, 0, 0);
        animation-timing-function: ease-out;
      }
      100% {
        transform: translate3d(0, 0, 0);
      }
    }

    body.motion-ready .hero-enter {
      opacity: 1;
      animation: heroSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    /* Reveal the glass navbar in place, keeping its text and backdrop crisp. */
    @keyframes navbarWipeIn {
      from { clip-path: inset(0 0 100% 0); }
      to { clip-path: inset(0); }
    }

    @keyframes navbarEdgeSweep {
      0% { transform: scaleX(0); opacity: 0; }
      25% { opacity: 0.65; }
      70% { transform: scaleX(1); opacity: 0.45; }
      100% { transform: scaleX(1); opacity: 0; }
    }

    .site-chrome-enter {
      clip-path: inset(0 0 100% 0);
      pointer-events: none;
    }

    body.motion-ready .site-chrome-enter {
      clip-path: none;
      pointer-events: auto;
      animation: navbarWipeIn 0.32s var(--ease-premium-out) backwards;
    }

    .site-chrome-enter::after {
      content: '';
      position: absolute;
      inset: auto 0 -1px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(var(--glow-rgb), 0.8), transparent);
      transform-origin: left;
      opacity: 0;
      pointer-events: none;
    }

    body.motion-ready .site-chrome-enter::after {
      animation: navbarEdgeSweep 0.45s var(--ease-premium-out) both;
    }

    .site-navbar {
      position: fixed;
      inset: 0 0 auto;
      z-index: 50;
      height: 72px;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      background: linear-gradient(180deg, rgba(12, 14, 19, 0.64), rgba(12, 14, 19, 0.38));
      backdrop-filter: blur(20px) saturate(115%);
      -webkit-backdrop-filter: blur(20px) saturate(115%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }

    .navbar-links {
      display: flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-sans);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.76);
    }

    .navbar-links > a {
      padding: 9px 12px;
      border-radius: 8px;
      line-height: 1;
      transition: background-color 160ms ease, color 160ms ease;
    }

    .navbar-links > a:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.06);
    }

    .navbar-home,
    .navbar-theme-controls button {
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, 0.85);
      cursor: pointer;
      transition: background-color 160ms ease, color 160ms ease;
    }

    .navbar-home {
      width: 34px;
      height: 34px;
      flex-shrink: 0;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-home:hover,
    .navbar-theme-controls button:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
    }

    .navbar-theme-wrapper {
      position: relative;
      margin-left: 14px;
      flex-shrink: 0;
    }

    .navbar-theme-controls {
      display: flex;
      align-items: center;
      padding: 2px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.05);
    }

    .navbar-theme-toggle {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      font-size: 12px;
    }

    .navbar-theme-menu {
      width: 24px;
      height: 30px;
      border-radius: 6px 999px 999px 6px;
    }

    .site-navbar a:focus-visible,
    .site-navbar button:focus-visible {
      outline: 2px solid rgba(var(--glow-rgb), 0.9);
      outline-offset: 3px;
    }

    /* =========================================================================
       NAVBAR CENTER LYRICS / VOICEOVER READOUT (FIGMA SPEC)
       ========================================================================= */
    .navbar-center-lyrics {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      align-items: center;
      justify-content: center;
      max-width: 48vw;
      pointer-events: none;
      user-select: none;
      z-index: 55;
    }

    .navbar-lyrics-text {
      font-family: var(--font-mono, 'Space Mono', Consolas, monospace);
      font-size: 14.5px;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: #ffffff;
      white-space: nowrap;
      display: inline-block;
      opacity: 0;
      transform: translate3d(0, 0, 0);
      filter: blur(0px);
      will-change: transform, opacity, filter;
    }

    .navbar-lyrics-text.is-revealing {
      animation: lyricBlurTopToBottom 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .navbar-lyrics-text.is-fading-out {
      animation: lyricFadeOut 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes lyricBlurTopToBottom {
      0% {
        opacity: 0;
        transform: translate3d(0, -16px, 0) scale(0.97);
        filter: blur(10px);
      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0px);
      }
    }

    @keyframes lyricFadeOut {
      0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0px);
      }
      100% {
        opacity: 0;
        transform: translate3d(0, 6px, 0) scale(0.98);
        filter: blur(8px);
      }
    }

    @media (max-width: 768px) {
      .navbar-center-lyrics {
        display: none !important;
      }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
      .navbar-lyrics-text {
        font-size: 12px;
        max-width: 28vw;
      }
    }

    @media (min-width: 1024px) {
      .site-navbar { padding-inline: 64px; }
    }

    @media (max-width: 639px) {
      .site-navbar { height: 64px; padding-inline: 12px; gap: 8px; }
      .navbar-links { gap: 1px; font-size: 9px; letter-spacing: 0.04em; }
      .navbar-links > a { padding-inline: 4px; }
      .navbar-theme-wrapper { margin-left: 4px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .site-chrome-enter,
      body.motion-ready .site-chrome-enter {
        clip-path: none;
        pointer-events: auto;
        animation: none;
      }

      body.motion-ready .site-chrome-enter::after {
        animation: none;
      }
    }

    body.motion-ready .hero-enter.delay-1,
    body.motion-ready .soft-entrance.delay-1 { animation-delay: 0.05s; }
    body.motion-ready .hero-enter.delay-2,
    body.motion-ready .soft-entrance.delay-2 { animation-delay: 0.11s; }
    body.motion-ready .hero-enter.delay-3,
    body.motion-ready .soft-entrance.delay-3 { animation-delay: 0.17s; }
    body.motion-ready .hero-enter.delay-4,
    body.motion-ready .soft-entrance.delay-4 { animation-delay: 0.23s; }
    body.motion-ready .hero-enter.delay-5,
    body.motion-ready .soft-entrance.delay-5 { animation-delay: 0.29s; }
    body.motion-ready .hero-enter.delay-6,
    body.motion-ready .soft-entrance.delay-6 { animation-delay: 0.35s; }
    body.motion-ready .hero-enter.delay-7,
    body.motion-ready .soft-entrance.delay-7 { animation-delay: 0.41s; }
    body.motion-ready .hero-enter.delay-8,
    body.motion-ready .soft-entrance.delay-8 { animation-delay: 0.47s; }
    body.motion-ready .hero-enter.delay-9,
    body.motion-ready .soft-entrance.delay-9 { animation-delay: 0.53s; }
    body.motion-ready .hero-enter.delay-10,
    body.motion-ready .soft-entrance.delay-10 { animation-delay: 0.59s; }
    body.motion-ready .hero-enter.delay-11,
    body.motion-ready .soft-entrance.delay-11 { animation-delay: 0.65s; }
    body.motion-ready .hero-enter.delay-12,
    body.motion-ready .soft-entrance.delay-12 { animation-delay: 0.71s; }
    body.motion-ready .soft-entrance.delay-13 { animation-delay: 0.77s; }

    /* Overlap the curtain exit while keeping the hero's final motion visible. */
    body.motion-ready #home .hero-enter {
      animation-duration: 0.8s;
      animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
      animation-delay: var(--hero-delay, 0ms);
    }
    #home .hero-enter.delay-1 { --hero-delay: 0ms; }
    #home .hero-enter.delay-2 { --hero-delay: 30ms; }
    #home .hero-enter.delay-3 { --hero-delay: 60ms; }
    #home .hero-enter.delay-4 { --hero-delay: 90ms; }
    #home .hero-enter.delay-5 { --hero-delay: 120ms; }
    #home .hero-enter.delay-6 { --hero-delay: 150ms; }
    #home .hero-enter.delay-7 { --hero-delay: 180ms; }
    #home .hero-enter.delay-8 { --hero-delay: 210ms; }

    /* Scrolling content stays visible without entrance animations or extra layers. */
    .scroll-reveal,
    .scroll-reveal-child {
      opacity: 1;
      transform: none;
    }

    body {

      background-color: #0b0c0e;
      color: #e2e8f0;
      font-family: var(--font-sans);
      min-height: 100vh;
      overflow-x: hidden;
      margin: 0;
    }

    /* Fullscreen Media Element */
    .bg-media-element {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(1.15) contrast(1.05);

      will-change: transform;
      backface-visibility: hidden;
    }

    #bg-wrapper {
      position: fixed;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
    }

    /* =============================================
       COLOR WIPE PAGE TRANSITION
       Full-width curtain panels slide like a cinema wipe
    ============================================= */
    #wipe-overlay {
      position: fixed;
      inset: 0;
      z-index: 100002;
      pointer-events: none !important;
    }
    #wipe-overlay.wipe-entering {
      pointer-events: all !important;
    }
    #wipe-overlay.wipe-exiting {
      pointer-events: none !important;
    }

    #wipe-overlay .wipe-panel {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none !important;
      /* Default: panels off-screen so content is always visible */
      transform: translateX(100%);
    }

    #wipe-overlay .wipe-panel:nth-child(1) { background: #f43f5e; z-index: 1; }
    #wipe-overlay .wipe-panel:nth-child(2) { background: #a855f7; z-index: 2; }
    #wipe-overlay .wipe-panel:nth-child(3) { background: #6366f1; z-index: 3; }
    #wipe-overlay .wipe-panel:nth-child(4) { background: #050608; z-index: 4; }

    @keyframes curtainIn {
      0%   { transform: translateX(-100%); }
      100% { transform: translateX(0%); }
    }

    @keyframes curtainOut {
      0%   { transform: translateX(0%); }
      100% { transform: translateX(100%); }
    }

    /* Stagger in: rose first, dark last */
    #wipe-overlay.wipe-entering .wipe-panel:nth-child(1) { animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.00s both; }
    #wipe-overlay.wipe-entering .wipe-panel:nth-child(2) { animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.06s both; }
    #wipe-overlay.wipe-entering .wipe-panel:nth-child(3) { animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.12s both; }
    #wipe-overlay.wipe-entering .wipe-panel:nth-child(4) { animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.18s both; }

    /* Stagger out: dark first, rose last */
    #wipe-overlay.wipe-exiting .wipe-panel:nth-child(4) { animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.00s both; }
    #wipe-overlay.wipe-exiting .wipe-panel:nth-child(3) { animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.06s both; }
    #wipe-overlay.wipe-exiting .wipe-panel:nth-child(2) { animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.12s both; }
    #wipe-overlay.wipe-exiting .wipe-panel:nth-child(1) { animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.18s both; }

    /* Centered Theme Loading Animation (Loading.gif) */
    .wipe-loader-wrap {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.25s ease-in-out;
    }

    #wipe-overlay.wipe-loading .wipe-loader-wrap {
      opacity: 1;
    }

    .wipe-loader-img {
      width: 320px;
      max-width: 82vw;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
      user-select: none;
      pointer-events: none;
    }
    .wipe-loader-text {
      margin-top: 14px;
      font-family: 'JetBrains Mono', 'Space Mono', Consolas, monospace;
      font-size: 13.5px;
      font-weight: 500;
      letter-spacing: 0.3px;
      color: #94a3b8;
      text-align: center;
      user-select: none;
      pointer-events: none;
      opacity: 0.95;
      text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
      transition: opacity 0.2s ease;
      min-height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .wipe-loader-msg {
      display: inline-block;
    }
    .wipe-loader-dots {
      display: inline-flex;
      align-items: baseline;
      margin-left: 2px;
    }
    .wipe-loader-dots .dot {
      display: inline-block;
      opacity: 0.2;
      animation: wipeDotPulse 1.4s infinite ease-in-out;
    }
    .wipe-loader-dots .dot:nth-child(1) { animation-delay: 0s; }
    .wipe-loader-dots .dot:nth-child(2) { animation-delay: 0.22s; }
    .wipe-loader-dots .dot:nth-child(3) { animation-delay: 0.44s; }

    @keyframes wipeDotPulse {
      0%, 100% {
        opacity: 0.2;
        transform: translateY(0);
      }
      35% {
        opacity: 1;
        transform: translateY(-2px);
        color: #f1f5f9;
      }
      70% {
        opacity: 0.2;
        transform: translateY(0);
      }
    }
    /* Tiny Circle Gray Download Icon Animation (Bottom Left) */
    .wipe-download-indicator,
    .loading-download-indicator {
      position: absolute;
      bottom: 24px;
      left: 24px;
      z-index: 20;
      pointer-events: none;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @media (max-width: 640px) {
      .wipe-download-indicator,
      .loading-download-indicator {
        bottom: 16px;
        left: 16px;
      }
    }

    #wipe-overlay.wipe-loading .wipe-download-indicator,
    html.page-transitioning #wipe-overlay .wipe-download-indicator,
    #portal2-loading-screen.opacity-100 .loading-download-indicator {
      opacity: 1 !important;
      transform: translateY(0) !important;
    }

    .download-circle-badge {
      position: relative;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(15, 18, 25, 0.78);
      border: 1px solid rgba(148, 163, 184, 0.32);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .download-spin-ring {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      animation: downloadRingSpin 1.4s linear infinite;
      transform-origin: center;
    }

    .ring-track {
      fill: none;
      stroke: rgba(148, 163, 184, 0.2);
      stroke-width: 2;
    }

    .ring-fill {
      fill: none;
      stroke: #94a3b8;
      stroke-width: 2;
      stroke-dasharray: 24 64;
      stroke-linecap: round;
      transform-origin: center;
    }

    @keyframes downloadRingSpin {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

    .download-arrow-icon {
      width: 13px;
      height: 13px;
      color: #94a3b8;
      position: relative;
      z-index: 2;
      display: block;
    }

    .download-arrow-icon .arrow-stem-head {
      animation: downloadArrowSlide 1.3s ease-in-out infinite;
      transform-origin: center;
    }

    @keyframes downloadArrowSlide {
      0%, 100% {
        transform: translateY(-1.5px);
        opacity: 0.75;
      }
      50% {
        transform: translateY(1.5px);
        opacity: 1;
      }
    }

    /* Theme Changing Mode (Palette Icon) */
    .wipe-download-indicator.mode-theme .download-arrow-icon {
      display: none !important;
    }

    .wipe-download-indicator.mode-theme .theme-palette-icon {
      display: block !important;
    }

    .theme-palette-icon {
      width: 14px;
      height: 14px;
      color: #94a3b8;
      position: relative;
      z-index: 2;
      display: none;
      animation: themePaletteTilt 1.8s ease-in-out infinite;
      transform-origin: center;
    }

    @keyframes themePaletteTilt {
      0%, 100% {
        transform: rotate(-10deg) scale(0.96);
        opacity: 0.75;
      }
      50% {
        transform: rotate(10deg) scale(1.05);
        opacity: 1;
        color: #f1f5f9;
      }
    }

        /* ==========================================================================
       TOP BAR LIVE TIME WIDGET (NEAR HOME BUTTON)
       ========================================================================== */
    .navbar-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .navbar-time {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-mono, 'Space Mono', Consolas, monospace);
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.05em;
      color: #ffffff;
      user-select: none;
      line-height: 1;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
      cursor: pointer;
      padding: 5px 8px;
      border-radius: 8px;
      perspective: 360px;
      animation: slowBlink 3.2s ease-in-out infinite;
      transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
      font-variant-numeric: tabular-nums;
    }

    .navbar-time:hover {
      background: rgba(255, 255, 255, 0.07);
    }

    .navbar-time:active {
      transform: scale(0.96);
    }

    /* Pause blink briefly during mode switch so changer animation is 100% crisp */
    .navbar-time.changer-out,
    .navbar-time.changer-in-start,
    .navbar-time.changer-in-active {
      animation-play-state: paused;
      opacity: 1 !important;
    }

    #nav-time-text,
    .nav-time-icon {
      display: inline-flex;
      align-items: center;
      transform-origin: center center;
      backface-visibility: hidden;
      will-change: transform, opacity, filter;
      transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                  opacity 0.2s ease,
                  filter 0.2s ease;
    }

    /* Changer Animation States (3D Flip + Blur Morph) */
    .navbar-time.changer-out #nav-time-text,
    .navbar-time.changer-out .nav-time-icon {
      transform: translateY(-7px) rotateX(68deg) scale(0.92);
      opacity: 0;
      filter: blur(3px);
      transition: transform 0.14s cubic-bezier(0.4, 0, 1, 1),
                  opacity 0.13s ease,
                  filter 0.13s ease;
    }

    .navbar-time.changer-in-start #nav-time-text,
    .navbar-time.changer-in-start .nav-time-icon {
      transform: translateY(7px) rotateX(-68deg) scale(0.92);
      opacity: 0;
      filter: blur(3px);
      transition: none !important;
    }

    .navbar-time.changer-in-active #nav-time-text,
    .navbar-time.changer-in-active .nav-time-icon {
      transform: translateY(0) rotateX(0deg) scale(1);
      opacity: 1;
      filter: blur(0px);
    }

    .nav-time-icon {
      justify-content: center;
      color: #ffffff;
    }

    /* Digital Timer Mode: show time only, no icon */
    /* Keep icon in both modes */

    @keyframes slowBlink {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0.32;
      }
    }

    @media (max-width: 480px) {
      .navbar-left {
        gap: 7px;
      }
      .navbar-time {
        font-size: 10px;
        gap: 4px;
        padding: 4px 6px;
      }
    }

    .oswald-logo {
      font-family: var(--font-logo);
      font-weight: 700;
      font-size: 3.2rem;
      color: #ffffff;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      user-select: none;
      line-height: 1;
      text-shadow: 0 4px 16px rgba(0, 0, 0, 0.95);
    }

    body.motion-ready #home .oswald-logo.hero-enter {
      animation: heroSlideIn 0.86s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    /* Section Headings with Oswald Font */
    .heading-oswald {
      font-family: var(--font-logo);
      letter-spacing: 0.03em;
    }

    /* Minimalist Numbered Menu */
    .hero-menu-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 10px 0;
      color: rgba(255, 255, 255, 0.8);
      font-family: var(--font-mono);
      font-size: 0.85rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      transition: color 0.45s var(--ease-premium-out), transform 0.5s var(--ease-premium-out), text-shadow 0.45s ease, letter-spacing 0.45s var(--ease-premium-out);
      cursor: pointer;
      text-decoration: none;
      width: fit-content;
      text-shadow: 0 2px 6px rgba(0,0,0,0.9);
      position: relative;
      transform: translate3d(0, 0, 0);
      backface-visibility: hidden;
    }

    .hero-menu-item:hover {
      color: #ffffff;
      transform: translate3d(10px, 0, 0);
      letter-spacing: 0.12em;
      text-shadow: 0 0 14px rgba(255,255,255,0.55), 0 2px 8px rgba(0,0,0,0.85);
    }

    .hero-menu-num {
      color: rgba(255, 255, 255, 0.55);
      font-size: 0.75rem;
      transition: color 0.3s ease;
    }

    .hero-menu-item:hover .hero-menu-num {
      color: #ffffff;
    }

    /* Crisp SVG Vector Play Arrow Icon */
    .hero-menu-arrow {
      opacity: 0;
      transform: translate3d(-8px, 0, 0) scale(0.85);
      transition: opacity 0.4s var(--ease-premium-out), transform 0.45s var(--ease-spring-soft);
      width: 10px;
      height: 10px;
      fill: currentColor;
    }

    .hero-menu-item:hover .hero-menu-arrow {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }

    /* FLY TO THE RIGHT CLICK ANIMATION */
    @keyframes flyRight {
      0% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 4px #ffffff);
      }
      40% {
        transform: translateX(45px) scale(1.5);
        opacity: 0.9;
        filter: drop-shadow(0 0 8px #f43f5e);
      }
      100% {
        transform: translateX(140px) scale(0.4);
        opacity: 0;
        filter: drop-shadow(0 0 16px #a855f7);
      }
    }

    .fly-right {
      animation: flyRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
    }

    /* Border line dividers */
    .menu-rule {
      height: 1px;
      background: rgba(255, 255, 255, 0.25);
      width: 180px;
      margin: 8px 0;
      box-shadow: 0 1px 4px rgba(0,0,0,0.8);
    }

    /* Glass card container styling */
    .glass-card {
      background: rgba(15, 17, 23, 0.82);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .glass-card:hover {
      border-color: rgba(255, 255, 255, 0.3);
      transform: translateY(-2px);
      box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.7);
    }

    /* Expandable About Me Card Transition */
    .about-expandable {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }
    .about-expandable.is-expanded {
      grid-template-rows: 1fr;
      opacity: 1;
    }
    .about-expandable > .expand-inner {
      overflow: hidden;
    }

    /* Terminal Cursor Blink */
    @keyframes termBlink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }
    .term-cursor-blink {
      animation: termBlink 0.9s steps(1) infinite;
    }

    /* Theme-Aware Terminal Badge */
    .theme-terminal-badge {
      background-color: rgba(0, 0, 0, 0.55);
      border: 1px solid rgba(var(--glow-rgb), 0.28);
      box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.08);
      transition: all 0.25s ease;
    }
    .theme-terminal-badge:hover {
      border-color: rgba(var(--glow-rgb), 0.6) !important;
      box-shadow: 0 0 16px rgba(var(--glow-rgb), 0.3) !important;
    }

    /* Theme-Aware Expand/Collapse Button */
    .theme-expand-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(var(--glow-rgb), 0.28);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(var(--glow-rgb), 0.08);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .theme-expand-btn:hover {
      background: rgba(var(--glow-rgb), 0.12) !important;
      border-color: rgba(var(--glow-rgb), 0.65) !important;
      box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.7), 0 0 22px rgba(var(--glow-rgb), 0.35) !important;
      color: #ffffff !important;
      transform: translateY(-1px);
    }

    /* Custom Range Slider (Anti-clipping & Theme-Aware) */
    input[type=range] {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background: transparent;
      --range-color: rgb(var(--glow-rgb));
      --range-progress: 40%;
      height: 22px;
      margin: 0;
      padding: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      overflow: visible !important;
    }
    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none;
      height: 12px;
      width: 12px;
      border-radius: 50%;
      background: #ffffff;
      border: 2px solid var(--range-color);
      cursor: pointer;
      box-shadow: 0 0 10px var(--range-color), 0 0 4px rgba(0,0,0,0.5);
      margin-top: -4px;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    input[type=range]::-webkit-slider-thumb:hover {
      transform: scale(1.25);
      box-shadow: 0 0 14px var(--range-color), 0 0 6px rgba(0,0,0,0.6);
    }
    input[type=range]::-webkit-slider-runnable-track {
      width: 100%;
      height: 4px;
      cursor: pointer;
      background: linear-gradient(to right, var(--range-color) var(--range-progress), rgba(255, 255, 255, 0.2) var(--range-progress));
      border-radius: 2px;
    }
    #bgm-progress {
      --range-color: rgb(var(--glow-rgb));
      --range-progress: 0%;
      height: 22px;
    }
    #bgm-progress::-webkit-slider-thumb {
      height: 14px;
      width: 14px;
      margin-top: -5px;
      background: #ffffff;
      border: 2px solid var(--range-color);
      box-shadow: 0 0 12px var(--range-color), 0 0 4px rgba(0,0,0,0.5);
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
      width: 6px;
    }

    /* =============================================
       TRACK NAME, NUMBER & COVER SWITCH ANIMATION
    ============================================= */

    /* Song title: sweeps in from left with a blur flash */
    @keyframes trackNameIn {
      0%   { opacity: 0; transform: translate3d(-12px, 0, 0) skewX(-3deg); filter: brightness(1.35); }
      50%  { opacity: 1; transform: translate3d(2px, 0, 0) skewX(0.5deg); filter: brightness(1.08); }
      100% { opacity: 1; transform: translate3d(0, 0, 0) skewX(0deg); filter: brightness(1); }
    }

    /* Compact track name: soft fade + slide */
    @keyframes compactTrackFlash {
      0%   { opacity: 0; transform: translate3d(-10px, 0, 0); filter: brightness(1.25); }
      55%  { opacity: 1; transform: translate3d(1px, 0, 0); filter: brightness(1.06); }
      100% { opacity: 1; transform: translate3d(0, 0, 0); filter: brightness(1); }
    }

    /* Cover: scale up from 0.85 with a glow flash */
    @keyframes coverPopIn {
      0%   { opacity: 0; transform: scale(0.82) rotate(-4deg); filter: brightness(1.8); }
      60%  { opacity: 1; transform: scale(1.05) rotate(0.5deg); filter: brightness(1.15); }
      100% { opacity: 1; transform: scale(1)    rotate(0deg);  filter: brightness(1); }
    }

    /* Number roll — next track: sweeps up */
    @keyframes rollUpOut {
      0%   { transform: translateY(0);    opacity: 1;  }
      100% { transform: translateY(-16px); opacity: 0;  }
    }
    @keyframes rollUpIn {
      0%   { transform: translateY(16px); opacity: 0;  }
      100% { transform: translateY(0);    opacity: 1;  }
    }
    /* Number roll — prev track: sweeps down */
    @keyframes rollDownOut {
      0%   { transform: translateY(0);   opacity: 1;  }
      100% { transform: translateY(16px); opacity: 0;  }
    }
    @keyframes rollDownIn {
      0%   { transform: translateY(-16px); opacity: 0;  }
      100% { transform: translateY(0);     opacity: 1;  }
    }

    .track-name-animate {
      animation: trackNameIn 0.52s var(--ease-premium-out) both;

    }
    .compact-track-animate {
      animation: compactTrackFlash 0.48s var(--ease-premium-out) both;

    }
    .cover-animate {
      animation: coverPopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;

    }
    .roll-out      { animation: rollUpOut   0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    .roll-in       { animation: rollUpIn    0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    .roll-down-out { animation: rollDownOut 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
    .roll-down-in  { animation: rollDownIn  0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }


    /* =============================================
       POPOUT PLAYLIST & GRAPH SETTINGS MENUS (SQUARE COMPANION)
    ============================================= */
    #playlist-menu, #settings-menu {
      position: fixed !important;
      bottom: 16px !important;
      left: 364px !important; /* 16px left + 340px player width + 8px gap */
      width: 200px !important;
      height: 200px !important; /* Clean square companion (smaller than 340x260 player) */
      aspect-ratio: 1 / 1 !important;
      max-height: calc(100vh - 32px) !important;
      display: flex !important;
      flex-direction: column !important;
      padding: 10px 10px 8px 10px !important;
      border-radius: 14px !important; /* Modern square curve */
      background: rgba(0, 0, 0, 0.90) !important;
      backdrop-filter: blur(28px) saturate(190%) !important;
      -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
      border: 1px solid rgba(var(--glow-rgb), 0.25) !important;
      box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.85),
                  0 0 0 1px rgba(var(--glow-rgb), 0.2),
                  0 0 20px rgba(var(--glow-rgb), 0.1) !important;
      z-index: 60 !important;
      overflow: hidden !important;

    }

    #playlist-menu.menu-hidden, #settings-menu.menu-hidden {
      opacity: 0 !important;
      pointer-events: none !important;
      visibility: hidden !important;
      transform: translateX(-16px) scale(0.95) !important;

      transition: opacity 0.22s cubic-bezier(0.4, 0, 1, 1), transform 0.22s cubic-bezier(0.4, 0, 1, 1), visibility 0s 0.22s !important;
    }

    #playlist-menu.menu-visible, #settings-menu.menu-visible {
      opacity: 1 !important;
      pointer-events: auto !important;
      visibility: visible !important;
      transform: translateX(0px) scale(1) !important;

      transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.34, 1.35, 0.64, 1), visibility 0s 0s !important;
    }

    @media (max-width: 660px) {
      #playlist-menu, #settings-menu {
        left: 16px !important;
        bottom: 284px !important;
        width: 280px !important;
        max-width: calc(100vw - 32px) !important;
        height: 180px !important;
      }
      #playlist-menu.menu-hidden, #settings-menu.menu-hidden {
        transform: translateY(14px) scale(0.95) !important;
      }
      #playlist-menu.menu-visible, #settings-menu.menu-visible {
        transform: translateY(0px) scale(1) !important;
      }
    }

    /* Staggered entrance cascades */
    @keyframes playlistItemCascade {
      0% {
        opacity: 0;
        transform: translate3d(-10px, 0, 0);

      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);

      }
    }
    #playlist-menu.menu-visible .playlist-item {
      animation: playlistItemCascade 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    #playlist-menu.menu-visible .playlist-item:nth-child(1) { animation-delay: 0.02s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(2) { animation-delay: 0.05s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(3) { animation-delay: 0.08s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(4) { animation-delay: 0.11s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(5) { animation-delay: 0.14s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(6) { animation-delay: 0.17s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(7) { animation-delay: 0.20s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(8) { animation-delay: 0.23s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(9) { animation-delay: 0.26s; }
    #playlist-menu.menu-visible .playlist-item:nth-child(n+10) { animation-delay: 0.29s; }

    @keyframes settingsChildCascade {
      0% {
        opacity: 0;
        transform: translate3d(-8px, 0, 0);

      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);

      }
    }
    #settings-menu.menu-visible .settings-header-row {
      animation: settingsChildCascade 0.28s 0.02s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    #settings-menu.menu-visible .setting-row:nth-of-type(1) {
      animation: settingsChildCascade 0.28s 0.07s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    #settings-menu.menu-visible .setting-row:nth-of-type(2) {
      animation: settingsChildCascade 0.28s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    #settings-menu.menu-visible .setting-row:nth-of-type(3) {
      animation: settingsChildCascade 0.28s 0.17s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    /* Tiny close button in top-right corner */
    .playlist-close-btn {
      position: absolute !important;
      top: 6px !important;
      right: 6px !important;
      width: 18px !important;
      height: 18px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 8.5px !important;
      color: rgba(255,255,255,0.3) !important;
      background: rgba(255,255,255,0.05) !important;
      border: 1px solid rgba(255,255,255,0.08) !important;
      cursor: pointer !important;
      border-radius: 5px !important;
      transition: all 0.2s ease !important;
      padding: 0 !important;
      line-height: 1 !important;
      z-index: 20 !important;
    }
    .playlist-close-btn:hover {
      color: #ffffff !important;
      background: rgba(var(--glow-rgb), 0.25) !important;
      border-color: rgba(var(--glow-rgb), 0.5) !important;
      transform: scale(1.1);
    }

    /* Scrollable track list */
    .playlist-items-scroll, #playlist-items-container {
      overflow-y: auto !important;
      overflow-x: hidden !important;
      flex: 1 1 auto !important;
      max-height: 156px !important;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
      padding-right: 2px !important;
    }
    .playlist-items-scroll::-webkit-scrollbar, #playlist-items-container::-webkit-scrollbar {
      width: 2.5px !important;
    }
    .playlist-items-scroll::-webkit-scrollbar-button, #playlist-items-container::-webkit-scrollbar-button {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }
    .playlist-items-scroll::-webkit-scrollbar-track, #playlist-items-container::-webkit-scrollbar-track {
      background: transparent !important;
    }
    .playlist-items-scroll::-webkit-scrollbar-thumb, #playlist-items-container::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2) !important;
      border-radius: 9999px !important;
    }
    .playlist-items-scroll::-webkit-scrollbar-thumb:hover, #playlist-items-container::-webkit-scrollbar-thumb:hover {
      background: rgba(var(--glow-rgb), 0.6) !important;
    }

    /* Individual track row */
    .playlist-item {
      position: relative;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      padding: 3.5px 6px !important;
      margin-bottom: 2px !important;
      border-radius: 6px !important;
      cursor: pointer !important;
      border: 1px solid transparent !important;
      border-left: 2px solid transparent !important;
      background: transparent !important;
      width: 100% !important;
      text-align: left !important;
      font-size: 11px !important;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
      color: #cbd5e1 !important;
      line-height: 1.25 !important;
      transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease !important;
      overflow: hidden !important;
    }

    .playlist-item:hover {
      background: rgba(var(--glow-rgb), 0.12) !important;
      border-color: rgba(var(--glow-rgb), 0.2) !important;
      border-left-color: rgb(var(--glow-rgb)) !important;
      transform: translateX(2.5px) !important;
    }
    .playlist-item:hover .pl-num,
    .playlist-item:hover .playlist-item-num {
      color: rgba(255, 255, 255, 0.9) !important;
    }
    .playlist-item:hover .pl-name,
    .playlist-item:hover .playlist-track-name {
      color: #ffffff !important;
      text-shadow: 0 0 8px rgba(var(--glow-rgb), 0.4);
    }

    /* Active track */
    .playlist-item.active {
      background: rgba(var(--glow-rgb), 0.22) !important;
      border: 1px solid rgba(var(--glow-rgb), 0.35) !important;
      border-left: 2px solid rgb(var(--glow-rgb)) !important;
    }
    .playlist-item.active .pl-num,
    .playlist-item.active .playlist-item-num {
      color: rgb(var(--glow-rgb)) !important;
      font-weight: bold !important;
    }
    .playlist-item.active .pl-name,
    .playlist-item.active .playlist-track-name {
      color: rgb(var(--glow-rgb)) !important;
      font-weight: 700 !important;
      text-shadow: 0 0 10px rgba(var(--glow-rgb), 0.6);
    }

    /* Title container & Marquee behavior */
    .playlist-title-wrap {
      overflow: hidden !important;
      white-space: nowrap !important;
      flex: 1 !important;
      min-width: 0 !important;
      position: relative !important;
      display: flex !important;
      align-items: center !important;
    }
    .playlist-title-wrap.has-overflow {
      mask-image: linear-gradient(to right, black calc(100% - 14px), transparent 100%);
      -webkit-mask-image: linear-gradient(to right, black calc(100% - 14px), transparent 100%);
    }
    .playlist-track-name, .pl-name {
      display: inline-block !important;
      white-space: nowrap !important;
      transition: transform 0.25s ease-out;
      will-change: transform;
      font-size: 10px !important;
      font-family: monospace !important;
      color: rgba(255, 255, 255, 0.7) !important;
    }
    .pl-num, .playlist-item-num {
      font-size: 8.5px !important;
      color: rgba(255, 255, 255, 0.35) !important;
      font-family: monospace !important;
      min-width: 12px !important;
      flex-shrink: 0 !important;
    }

    /* Compact slider styling in settings menu */
    #settings-menu input[type=range] {
      height: 3px !important;
      margin: 2px 0 !important;
    }
    #settings-menu input[type=range]::-webkit-slider-thumb {
      width: 10px !important;
      height: 10px !important;
    }
    #settings-menu .setting-row {
      margin-bottom: 2px !important;
    }

    /* Slider Value Reactive Pulse */
    @keyframes numberPulse {
      0% { transform: scale(1); filter: brightness(1); }
      50% { transform: scale(1.18); filter: brightness(1.4); text-shadow: 0 0 12px rgba(var(--glow-rgb), 0.8); }
      100% { transform: scale(1); filter: brightness(1); }
    }
    .number-pulse {
      display: inline-block;
      animation: numberPulse 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Reset Button Spin */
    .spin-once {
      animation: resetSpin 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes resetSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(-360deg); }
    }

    #btn-playlist-toggle.active, #btn-settings-toggle.active {
      color: rgb(var(--glow-rgb)) !important;
      text-shadow: 0 0 10px rgba(var(--glow-rgb), 0.6);
      transform: scale(1.15);
    }

    #btn-playlist-toggle {
      transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
    }
    #btn-playlist-toggle:hover {
      transform: scale(1.22);
      color: rgb(var(--glow-rgb)) !important;
    }

    /* Vinyl Disc Spin Animation */
    @keyframes discSpin {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }
    .animate-disc-spin {
      animation: discSpin 3s linear infinite;
      animation-play-state: paused;
    }
    .animate-disc-spin.is-playing {
      animation-play-state: running;
    }

    /* =============================================
       MUSIC PLAYER — PREMIUM EXPAND/COMPACT ANIMS
    ============================================= */

    /* Container hover lift when compact */
    #bgm-player-container.compact:hover {
      transform: translateY(-2px) scale(1.015);
      border-color: rgba(255,255,255,0.22) !important;
      box-shadow: 0 8px 32px -4px rgba(0,0,0,0.7), 0 0 0 1px rgba(var(--glow-rgb),0.18), 0 0 18px rgba(var(--glow-rgb), 0.15) !important;
    }
    /* No active shrink — makes hitting buttons easier */

    /* Compact UI — staggered fade-in when returning from expanded */
    @keyframes compactReveal {
      0%   { opacity: 0; transform: translateX(-8px) scale(0.96);  }
      100% { opacity: 1; transform: translateX(0) scale(1);        }
    }
    #compact-ui.reveal {
      animation: compactReveal 0.38s cubic-bezier(0.16,1,0.3,1) both;
    }

    /* Expanded UI — staggered children fade down */
    @keyframes expandedChildIn {
      0%   { opacity: 0; transform: translateY(10px);  }
      100% { opacity: 1; transform: translateY(0);     }
    }
    #expanded-ui > * {
      animation: none;
    }
    #expanded-ui.animating > *:nth-child(1) { animation: expandedChildIn 0.35s 0.05s cubic-bezier(0.16,1,0.3,1) both; }
    #expanded-ui.animating > *:nth-child(2) { animation: expandedChildIn 0.35s 0.11s cubic-bezier(0.16,1,0.3,1) both; }
    #expanded-ui.animating > *:nth-child(3) { animation: expandedChildIn 0.35s 0.17s cubic-bezier(0.16,1,0.3,1) both; }
    #expanded-ui.animating > *:nth-child(4) { animation: expandedChildIn 0.35s 0.22s cubic-bezier(0.16,1,0.3,1) both; }
    #expanded-ui.animating > *:nth-child(5) { animation: expandedChildIn 0.35s 0.27s cubic-bezier(0.16,1,0.3,1) both; }

    /* Play button in expanded — pulse glow on hover */
    #bgm-toggle-expanded {
      transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
    }
    #bgm-toggle-expanded:hover {
      transform: scale(1.13) !important;
      box-shadow: 0 0 22px rgba(var(--glow-rgb), 0.55), 0 0 6px rgba(var(--glow-rgb), 0.35) !important;
    }
    /* No active shrink on expanded play button */

    /* Prev/Next buttons bounce-spring on hover */
    #btn-prev, #btn-next {
      transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), color 0.18s ease;
    }
    #btn-prev:hover  { transform: scale(1.25) translateX(-2px); }
    #btn-next:hover  { transform: scale(1.25) translateX(2px); }
    /* No active shrink on prev/next */

    /* Close button spin-in on hover */
    #btn-close-expanded {
      transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), color 0.18s ease;
    }
    #btn-close-expanded:hover {
      transform: rotate(90deg) scale(1.15);
      background: rgba(var(--glow-rgb),0.18) !important;
      color: rgb(var(--glow-rgb)) !important;
    }

    /* Compact play button spring */
    #bgm-toggle-compact {
      transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    }
    #bgm-toggle-compact:hover { transform: scale(1.2); }
    /* No active shrink on compact play */


    #bgm-progress {
      filter: drop-shadow(0 0 6px var(--range-color));
    }
    ::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.4);
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.25);
      border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.45);
    }

    /* =============================================
       SPA PHOTOS PANEL
    ============================================= */
    #photos-panel {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: #060608;
      overflow-y: auto;
      transform: translateX(100%);
      transition: none;
      pointer-events: none;
    }

    #photos-panel.panel-visible {
      transform: translateX(0);
      pointer-events: all;
    }

    #photos-panel .panel-header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(18px);
      background: rgba(6, 8, 11, 0.85);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding: 1.25rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    #photos-panel .panel-nav-link {
      color: rgba(255,255,255,0.7);
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-weight: 700;
      text-decoration: none;
      transition: color 0.2s;
    }

    #photos-panel .panel-nav-link:hover,
    #photos-panel .panel-nav-link.active { color: #fff; }

    #photos-panel .photo-card {
      background: rgba(12, 14, 19, 0.78);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 35px 90px -72px rgba(0,0,0,0.9);
      transition: transform 0.35s ease, border-color 0.35s ease;
    }

    #photos-panel .photo-card:hover {
      transform: translateY(-6px);
      border-color: rgba(var(--glow-rgb), 0.4);
    }

    #photos-panel .photo-card img {
      width: 100%;
      height: 18rem;
      object-fit: cover;
      transition: transform 0.45s ease;
      display: block;
    }

    #photos-panel .photo-card:hover img { transform: scale(1.04); }

    #photos-panel .photo-meta {
      display: grid;
      gap: 0.6rem;
      padding: 1rem;
      background: rgba(8,10,15,0.88);
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    #photos-panel .photo-meta span {
      color: rgba(203,213,225,0.86);
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-family: var(--font-mono);
    }

    #photos-panel .photo-meta h3 {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 700;
      color: #f8fafc;
      line-height: 1.25;
    }

    #photos-panel .photo-meta p {
      margin: 0;
      color: rgba(203,213,225,0.75);
      font-size: 0.88rem;
    }

    #photos-panel .panel-badge {
      display: inline-flex;
      align-items: center;
      padding: 0.4rem 0.8rem;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      color: #f8fafc;
      font-size: 0.7rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-family: var(--font-mono);
    }

    #photos-panel .panel-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: rgba(226,232,240,0.74);
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      background: none;
      border: none;
      cursor: pointer;
      transition: color 0.2s;
      padding: 0;
    }

    #photos-panel .panel-back-btn:hover { color: #f8fafc; }

    #photos-panel .panel-hero-title {
      font-family: var(--font-logo);
      letter-spacing: -0.03em;
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 0.96;
      margin: 0;
      color: #f8fafc;
    }

    /* =============================================
       GRASS THEME OVERRIDES (Theme asset/Wavy Grass 4K60FPS.mp4)
    ============================================= */
    body.theme-grass .text-rose-300 { color: #6ee7b7 !important; /* emerald-300 */ }
    body.theme-grass .text-rose-400 { color: #34d399 !important; /* emerald-400 */ }
    body.theme-grass .text-rose-500 { color: #10b981 !important; /* emerald-500 */ }
    body.theme-grass .bg-rose-400 { background-color: #34d399 !important; }
    body.theme-grass .bg-rose-500 { background-color: #10b981 !important; }
    body.theme-grass .border-rose-500 { border-color: #10b981 !important; }
    body.theme-grass .from-rose-500 { --tw-gradient-from: #10b981 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0)) !important; }
    body.theme-grass .to-rose-600 { --tw-gradient-to: #059669 var(--tw-gradient-to-position) !important; }
    body.theme-grass .to-purple-500 { --tw-gradient-to: #059669 var(--tw-gradient-to-position) !important; } /* Fix for play button gradient end */
    body.theme-grass .shadow-\[0_0_15px_rgba\(244\,63\,94\,0\.5\)\] { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important; }
    body.theme-grass .bg-rose-500\/20 { background-color: rgba(16, 185, 129, 0.2) !important; }
    body.theme-grass .bg-rose-500\/10, body.theme-grass #version-link, body.theme-grass .version-badge { background-color: rgba(16, 185, 129, 0.12) !important; color: #34d399 !important; border-color: rgba(16, 185, 129, 0.3) !important; }
    body.theme-grass .border-rose-500\/20 { border-color: rgba(16, 185, 129, 0.3) !important; }
    body.theme-grass .hover\:bg-rose-500\/25:hover, body.theme-grass #version-link:hover, body.theme-grass .version-badge:hover { background-color: rgba(16, 185, 129, 0.25) !important; }
    body.theme-grass .hover\:border-rose-500\/40:hover, body.theme-grass #version-link:hover, body.theme-grass .version-badge:hover { border-color: rgba(16, 185, 129, 0.5) !important; }
    body.theme-grass .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-grass #version-link:hover, body.theme-grass .version-badge:hover { box-shadow: 0 0 12px rgba(16, 185, 129, 0.45) !important; }
    body.theme-grass .group-hover\:text-rose-400:hover { color: #34d399 !important; }
    body.theme-grass .hover\:text-rose-400:hover { color: #34d399 !important; }
    body.theme-grass .focus\:border-rose-500:focus { border-color: #10b981 !important; }

    body.theme-grass #wipe-overlay .wipe-panel:nth-child(1) { background: #10b981 !important; } /* emerald */
    body.theme-grass #wipe-overlay .wipe-panel:nth-child(2) { background: #84cc16 !important; } /* lime */
    body.theme-grass #wipe-overlay .wipe-panel:nth-child(3) { background: #22c55e !important; } /* green */

    body.theme-grass input[type=range] { --range-color: #10b981 !important; }
    body.theme-grass input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important; }
    body.theme-grass #bgm-toggle-expanded { background-image: linear-gradient(to top right, #10b981, #84cc16) !important; box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important; }
    body.theme-grass #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(16, 185, 129, 0.75) !important; }

    /* =============================================
       KLEE THEME OVERRIDES (Theme asset/KleeWP.mp4)
    ============================================= */
    body.theme-klee .text-rose-300 { color: #fdba74 !important; /* orange-300 */ }
    body.theme-klee .text-rose-400 { color: #fb923c !important; /* orange-400 */ }
    body.theme-klee .text-rose-500 { color: #ef4444 !important; /* red-500 */ }
    body.theme-klee .bg-rose-400 { background-color: #fb923c !important; }
    body.theme-klee .bg-rose-500 { background-color: #ef4444 !important; }
    body.theme-klee .border-rose-500 { border-color: #ef4444 !important; }
    body.theme-klee .from-rose-500 { --tw-gradient-from: #ef4444 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0)) !important; }
    body.theme-klee .to-rose-600 { --tw-gradient-to: #dc2626 var(--tw-gradient-to-position) !important; }
    body.theme-klee .to-purple-500 { --tw-gradient-to: #ea580c var(--tw-gradient-to-position) !important; } /* Fix for play button gradient end */
    body.theme-klee .shadow-\[0_0_15px_rgba\(244\,63\,94\,0\.5\)\] { box-shadow: 0 0 15px rgba(239, 68, 68, 0.5) !important; }
    body.theme-klee .bg-rose-500\/20 { background-color: rgba(239, 68, 68, 0.2) !important; }
    body.theme-klee .bg-rose-500\/10, body.theme-klee #version-link, body.theme-klee .version-badge { background-color: rgba(239, 68, 68, 0.12) !important; color: #fb923c !important; border-color: rgba(239, 68, 68, 0.3) !important; }
    body.theme-klee .border-rose-500\/20 { border-color: rgba(239, 68, 68, 0.3) !important; }
    body.theme-klee .hover\:bg-rose-500\/25:hover, body.theme-klee #version-link:hover, body.theme-klee .version-badge:hover { background-color: rgba(239, 68, 68, 0.25) !important; }
    body.theme-klee .hover\:border-rose-500\/40:hover, body.theme-klee #version-link:hover, body.theme-klee .version-badge:hover { border-color: rgba(239, 68, 68, 0.5) !important; }
    body.theme-klee .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-klee #version-link:hover, body.theme-klee .version-badge:hover { box-shadow: 0 0 12px rgba(239, 68, 68, 0.45) !important; }
    body.theme-klee .group-hover\:text-rose-400:hover { color: #fb923c !important; }
    body.theme-klee .hover\:text-rose-400:hover { color: #fb923c !important; }
    body.theme-klee .focus\:border-rose-500:focus { border-color: #ef4444 !important; }

    body.theme-klee #wipe-overlay .wipe-panel:nth-child(1) { background: #ef4444 !important; } /* red */
    body.theme-klee #wipe-overlay .wipe-panel:nth-child(2) { background: #f97316 !important; } /* orange */
    body.theme-klee #wipe-overlay .wipe-panel:nth-child(3) { background: #fbbf24 !important; } /* amber */

    body.theme-klee input[type=range] { --range-color: #ef4444 !important; }
    body.theme-klee input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(239, 68, 68, 0.6) !important; }
    body.theme-klee #bgm-toggle-expanded { background-image: linear-gradient(to top right, #ef4444, #f97316) !important; box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important; }
    body.theme-klee #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(239, 68, 68, 0.75) !important; }

    /* =============================================
       PORSCHE THEME OVERRIDES (Theme asset/porsh hd.mp4)
    ============================================= */
    body.theme-porsche .text-rose-300 { color: #7dd3fc !important; /* sky-300 */ }
    body.theme-porsche .text-rose-400 { color: #38bdf8 !important; /* sky-400 */ }
    body.theme-porsche .text-rose-500 { color: #0ea5e9 !important; /* sky-500 */ }
    body.theme-porsche .bg-rose-400 { background-color: #38bdf8 !important; }
    body.theme-porsche .bg-rose-500 { background-color: #0ea5e9 !important; }
    body.theme-porsche .border-rose-500 { border-color: #0ea5e9 !important; }
    body.theme-porsche .from-rose-500 { --tw-gradient-from: #0ea5e9 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(14, 165, 233, 0)) !important; }
    body.theme-porsche .to-rose-600 { --tw-gradient-to: #0284c7 var(--tw-gradient-to-position) !important; }
    body.theme-porsche .to-purple-500 { --tw-gradient-to: #0369a1 var(--tw-gradient-to-position) !important; } /* Fix for play button gradient end */
    body.theme-porsche .shadow-\[0_0_15px_rgba\(244\,63\,94\,0\.5\)\] { box-shadow: 0 0 15px rgba(14, 165, 233, 0.5) !important; }
    body.theme-porsche .bg-rose-500\/20 { background-color: rgba(14, 165, 233, 0.2) !important; }
    body.theme-porsche .bg-rose-500\/10, body.theme-porsche #version-link, body.theme-porsche .version-badge { background-color: rgba(14, 165, 233, 0.12) !important; color: #38bdf8 !important; border-color: rgba(14, 165, 233, 0.3) !important; }
    body.theme-porsche .border-rose-500\/20 { border-color: rgba(14, 165, 233, 0.3) !important; }
    body.theme-porsche .hover\:bg-rose-500\/25:hover, body.theme-porsche #version-link:hover, body.theme-porsche .version-badge:hover { background-color: rgba(14, 165, 233, 0.25) !important; }
    body.theme-porsche .hover\:border-rose-500\/40:hover, body.theme-porsche #version-link:hover, body.theme-porsche .version-badge:hover { border-color: rgba(14, 165, 233, 0.5) !important; }
    body.theme-porsche .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-porsche #version-link:hover, body.theme-porsche .version-badge:hover { box-shadow: 0 0 12px rgba(14, 165, 233, 0.45) !important; }
    body.theme-porsche .group-hover\:text-rose-400:hover { color: #38bdf8 !important; }
    body.theme-porsche .hover\:text-rose-400:hover { color: #38bdf8 !important; }
    body.theme-porsche .focus\:border-rose-500:focus { border-color: #0ea5e9 !important; }

    body.theme-porsche #wipe-overlay .wipe-panel:nth-child(1) { background: #0ea5e9 !important; } /* sky blue */
    body.theme-porsche #wipe-overlay .wipe-panel:nth-child(2) { background: #3b82f6 !important; } /* blue */
    body.theme-porsche #wipe-overlay .wipe-panel:nth-child(3) { background: #06b6d4 !important; } /* cyan */

    body.theme-porsche input[type=range] { --range-color: #0ea5e9 !important; }
    body.theme-porsche input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(14, 165, 233, 0.6) !important; }
    body.theme-porsche #bgm-toggle-expanded { background-image: linear-gradient(to top right, #0ea5e9, #3b82f6) !important; box-shadow: 0 0 12px rgba(14, 165, 233, 0.4) !important; }
    body.theme-porsche #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(14, 165, 233, 0.75) !important; }

    /* =============================================
       NIGHT THEME OVERRIDES (Theme asset/noire_night_v2.mp4) - Dark Gray / Slate / Silver
    ============================================= */
    body.theme-night .text-rose-300 { color: #cbd5e1 !important; /* slate-300 */ }
    body.theme-night .text-rose-400 { color: #94a3b8 !important; /* slate-400 */ }
    body.theme-night .text-rose-500 { color: #64748b !important; /* slate-500 */ }
    body.theme-night .bg-rose-400 { background-color: #94a3b8 !important; }
    body.theme-night .bg-rose-500 { background-color: #64748b !important; }
    body.theme-night .border-rose-500 { border-color: #64748b !important; }
    body.theme-night .from-rose-500 { --tw-gradient-from: #64748b var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(100, 116, 139, 0)) !important; }
    body.theme-night .to-rose-600 { --tw-gradient-to: #475569 var(--tw-gradient-to-position) !important; }
    body.theme-night .to-purple-500 { --tw-gradient-to: #334155 var(--tw-gradient-to-position) !important; } /* Fix for play button gradient end */
    body.theme-night .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(148, 163, 184, 0.5) !important; }
    body.theme-night .bg-rose-500\/20 { background-color: rgba(148, 163, 184, 0.2) !important; }
    body.theme-night .bg-rose-500\/10, body.theme-night #version-link, body.theme-night .version-badge { background-color: rgba(148, 163, 184, 0.15) !important; color: #cbd5e1 !important; border-color: rgba(148, 163, 184, 0.3) !important; }
    body.theme-night .border-rose-500\/20, body.theme-night .border-rose-500\/10, body.theme-night .border-rose-500\/25, body.theme-night .border-rose-500\/30 { border-color: rgba(148, 163, 184, 0.3) !important; }
    body.theme-night .bg-rose-500\/\[0\.04\] { background-color: rgba(148, 163, 184, 0.05) !important; }
    body.theme-night .hover\:bg-rose-500\/25:hover, body.theme-night #version-link:hover, body.theme-night .version-badge:hover { background-color: rgba(148, 163, 184, 0.28) !important; }
    body.theme-night .hover\:border-rose-500\/40:hover, body.theme-night #version-link:hover, body.theme-night .version-badge:hover { border-color: rgba(148, 163, 184, 0.55) !important; }
    body.theme-night .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-night #version-link:hover, body.theme-night .version-badge:hover { box-shadow: 0 0 12px rgba(148, 163, 184, 0.45) !important; }
    body.theme-night .group\:hover .group-hover\:text-rose-400 { color: #cbd5e1 !important; }
    body.theme-night .hover\:text-rose-400:hover { color: #cbd5e1 !important; }
    body.theme-night .focus\:border-rose-500:focus { border-color: #94a3b8 !important; }

    body.theme-night #wipe-overlay .wipe-panel:nth-child(1) { background: #334155 !important; } /* slate-700 */
    body.theme-night #wipe-overlay .wipe-panel:nth-child(2) { background: #475569 !important; } /* slate-600 */
    body.theme-night #wipe-overlay .wipe-panel:nth-child(3) { background: #64748b !important; } /* slate-500 */

    body.theme-night input[type=range] { --range-color: #94a3b8 !important; }
    body.theme-night input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(148, 163, 184, 0.6) !important; }
    body.theme-night #bgm-toggle-expanded { background-image: linear-gradient(to top right, #64748b, #334155) !important; box-shadow: 0 0 12px rgba(148, 163, 184, 0.4) !important; }
    body.theme-night #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(148, 163, 184, 0.75) !important; }

    /* =============================================
       ARISU THEME OVERRIDES (Theme asset/Arisuwallpaper.mp4) - Electric Cyan & Indigo
    ============================================= */
    body.theme-arisu .text-rose-300 { color: #7dd3fc !important; }
    body.theme-arisu .text-rose-400 { color: #38bdf8 !important; }
    body.theme-arisu .text-rose-500 { color: #0284c7 !important; }
    body.theme-arisu .bg-rose-400 { background-color: #38bdf8 !important; }
    body.theme-arisu .bg-rose-500 { background-color: #0ea5e9 !important; }
    body.theme-arisu .border-rose-500 { border-color: #38bdf8 !important; }
    body.theme-arisu .from-rose-500 { --tw-gradient-from: #38bdf8 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(56, 189, 248, 0)) !important; }
    body.theme-arisu .to-rose-600 { --tw-gradient-to: #0284c7 var(--tw-gradient-to-position) !important; }
    body.theme-arisu .to-purple-500 { --tw-gradient-to: #6366f1 var(--tw-gradient-to-position) !important; }
    body.theme-arisu .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(56, 189, 248, 0.5) !important; }
    body.theme-arisu .bg-rose-500\/20 { background-color: rgba(56, 189, 248, 0.2) !important; }
    body.theme-arisu .bg-rose-500\/10, body.theme-arisu #version-link, body.theme-arisu .version-badge { background-color: rgba(56, 189, 248, 0.12) !important; color: #7dd3fc !important; border-color: rgba(56, 189, 248, 0.3) !important; }
    body.theme-arisu .border-rose-500\/20, body.theme-arisu .border-rose-500\/10, body.theme-arisu .border-rose-500\/25, body.theme-arisu .border-rose-500\/30 { border-color: rgba(56, 189, 248, 0.3) !important; }
    body.theme-arisu .bg-rose-500\/\[0\.04\] { background-color: rgba(56, 189, 248, 0.05) !important; }
    body.theme-arisu .hover\:bg-rose-500\/25:hover, body.theme-arisu #version-link:hover, body.theme-arisu .version-badge:hover { background-color: rgba(56, 189, 248, 0.25) !important; }
    body.theme-arisu .hover\:border-rose-500\/40:hover, body.theme-arisu #version-link:hover, body.theme-arisu .version-badge:hover { border-color: rgba(56, 189, 248, 0.5) !important; }
    body.theme-arisu .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-arisu #version-link:hover, body.theme-arisu .version-badge:hover { box-shadow: 0 0 12px rgba(56, 189, 248, 0.45) !important; }
    body.theme-arisu .group\:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-arisu .hover\:text-rose-400:hover { color: #38bdf8 !important; }
    body.theme-arisu .focus\:border-rose-500:focus { border-color: #38bdf8 !important; }
    body.theme-arisu #wipe-overlay .wipe-panel:nth-child(1) { background: #38bdf8 !important; }
    body.theme-arisu #wipe-overlay .wipe-panel:nth-child(2) { background: #818cf8 !important; }
    body.theme-arisu #wipe-overlay .wipe-panel:nth-child(3) { background: #6366f1 !important; }
    body.theme-arisu input[type=range] { --range-color: #38bdf8 !important; }
    body.theme-arisu input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important; }
    body.theme-arisu #bgm-toggle-expanded { background-image: linear-gradient(to top right, #38bdf8, #6366f1) !important; box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important; }
    body.theme-arisu #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(56, 189, 248, 0.75) !important; }

    /* =============================================
       GAWR GURA THEME OVERRIDES (Theme asset/Gawgura.mp4) - Ocean Cyan & Royal Blue
    ============================================= */
    body.theme-gura .text-rose-300 { color: #67e8f9 !important; }
    body.theme-gura .text-rose-400 { color: #06b6d4 !important; }
    body.theme-gura .text-rose-500 { color: #0891b2 !important; }
    body.theme-gura .bg-rose-400 { background-color: #06b6d4 !important; }
    body.theme-gura .bg-rose-500 { background-color: #0891b2 !important; }
    body.theme-gura .border-rose-500 { border-color: #06b6d4 !important; }
    body.theme-gura .from-rose-500 { --tw-gradient-from: #06b6d4 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(6, 182, 212, 0)) !important; }
    body.theme-gura .to-rose-600 { --tw-gradient-to: #0891b2 var(--tw-gradient-to-position) !important; }
    body.theme-gura .to-purple-500 { --tw-gradient-to: #2563eb var(--tw-gradient-to-position) !important; }
    body.theme-gura .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(6, 182, 212, 0.5) !important; }
    body.theme-gura .bg-rose-500\/20 { background-color: rgba(6, 182, 212, 0.2) !important; }
    body.theme-gura .bg-rose-500\/10, body.theme-gura #version-link, body.theme-gura .version-badge { background-color: rgba(6, 182, 212, 0.12) !important; color: #67e8f9 !important; border-color: rgba(6, 182, 212, 0.3) !important; }
    body.theme-gura .border-rose-500\/20, body.theme-gura .border-rose-500\/10, body.theme-gura .border-rose-500\/25, body.theme-gura .border-rose-500\/30 { border-color: rgba(6, 182, 212, 0.3) !important; }
    body.theme-gura .bg-rose-500\/\[0\.04\] { background-color: rgba(6, 182, 212, 0.05) !important; }
    body.theme-gura .hover\:bg-rose-500\/25:hover, body.theme-gura #version-link:hover, body.theme-gura .version-badge:hover { background-color: rgba(6, 182, 212, 0.25) !important; }
    body.theme-gura .hover\:border-rose-500\/40:hover, body.theme-gura #version-link:hover, body.theme-gura .version-badge:hover { border-color: rgba(6, 182, 212, 0.5) !important; }
    body.theme-gura .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-gura #version-link:hover, body.theme-gura .version-badge:hover { box-shadow: 0 0 12px rgba(6, 182, 212, 0.45) !important; }
    body.theme-gura .group\:hover .group-hover\:text-rose-400 { color: #22d3ee !important; }
    body.theme-gura .hover\:text-rose-400:hover { color: #22d3ee !important; }
    body.theme-gura .focus\:border-rose-500:focus { border-color: #06b6d4 !important; }
    body.theme-gura #wipe-overlay .wipe-panel:nth-child(1) { background: #06b6d4 !important; }
    body.theme-gura #wipe-overlay .wipe-panel:nth-child(2) { background: #3b82f6 !important; }
    body.theme-gura #wipe-overlay .wipe-panel:nth-child(3) { background: #1d4ed8 !important; }
    body.theme-gura input[type=range] { --range-color: #06b6d4 !important; }
    body.theme-gura input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(6, 182, 212, 0.6) !important; }
    body.theme-gura #bgm-toggle-expanded { background-image: linear-gradient(to top right, #06b6d4, #2563eb) !important; box-shadow: 0 0 12px rgba(6, 182, 212, 0.4) !important; }
    body.theme-gura #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(6, 182, 212, 0.75) !important; }

    /* =============================================
       STEAM GIRL THEME OVERRIDES (Theme asset/Steam girl.mp4) - Cyberpunk Fuchsia & Pink
    ============================================= */
    body.theme-steam-girl .text-rose-300 { color: #f0abfc !important; }
    body.theme-steam-girl .text-rose-400 { color: #d946ef !important; }
    body.theme-steam-girl .text-rose-500 { color: #c026d3 !important; }
    body.theme-steam-girl .bg-rose-400 { background-color: #d946ef !important; }
    body.theme-steam-girl .bg-rose-500 { background-color: #c026d3 !important; }
    body.theme-steam-girl .border-rose-500 { border-color: #d946ef !important; }
    body.theme-steam-girl .from-rose-500 { --tw-gradient-from: #d946ef var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(217, 70, 239, 0)) !important; }
    body.theme-steam-girl .to-rose-600 { --tw-gradient-to: #c026d3 var(--tw-gradient-to-position) !important; }
    body.theme-steam-girl .to-purple-500 { --tw-gradient-to: #ec4899 var(--tw-gradient-to-position) !important; }
    body.theme-steam-girl .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(217, 70, 239, 0.5) !important; }
    body.theme-steam-girl .bg-rose-500\/20 { background-color: rgba(217, 70, 239, 0.2) !important; }
    body.theme-steam-girl .bg-rose-500\/10, body.theme-steam-girl #version-link, body.theme-steam-girl .version-badge { background-color: rgba(217, 70, 239, 0.12) !important; color: #f0abfc !important; border-color: rgba(217, 70, 239, 0.3) !important; }
    body.theme-steam-girl .border-rose-500\/20, body.theme-steam-girl .border-rose-500\/10, body.theme-steam-girl .border-rose-500\/25, body.theme-steam-girl .border-rose-500\/30 { border-color: rgba(217, 70, 239, 0.3) !important; }
    body.theme-steam-girl .bg-rose-500\/\[0\.04\] { background-color: rgba(217, 70, 239, 0.05) !important; }
    body.theme-steam-girl .hover\:bg-rose-500\/25:hover, body.theme-steam-girl #version-link:hover, body.theme-steam-girl .version-badge:hover { background-color: rgba(217, 70, 239, 0.25) !important; }
    body.theme-steam-girl .hover\:border-rose-500\/40:hover, body.theme-steam-girl #version-link:hover, body.theme-steam-girl .version-badge:hover { border-color: rgba(217, 70, 239, 0.5) !important; }
    body.theme-steam-girl .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-steam-girl #version-link:hover, body.theme-steam-girl .version-badge:hover { box-shadow: 0 0 12px rgba(217, 70, 239, 0.45) !important; }
    body.theme-steam-girl .group\:hover .group-hover\:text-rose-400 { color: #e879f9 !important; }
    body.theme-steam-girl .hover\:text-rose-400:hover { color: #e879f9 !important; }
    body.theme-steam-girl .focus\:border-rose-500:focus { border-color: #d946ef !important; }
    body.theme-steam-girl #wipe-overlay .wipe-panel:nth-child(1) { background: #d946ef !important; }
    body.theme-steam-girl #wipe-overlay .wipe-panel:nth-child(2) { background: #ec4899 !important; }
    body.theme-steam-girl #wipe-overlay .wipe-panel:nth-child(3) { background: #a855f7 !important; }
    body.theme-steam-girl input[type=range] { --range-color: #d946ef !important; }
    body.theme-steam-girl input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(217, 70, 239, 0.6) !important; }
    body.theme-steam-girl #bgm-toggle-expanded { background-image: linear-gradient(to top right, #d946ef, #ec4899) !important; box-shadow: 0 0 12px rgba(217, 70, 239, 0.4) !important; }
    body.theme-steam-girl #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(217, 70, 239, 0.75) !important; }

    /* =============================================
       SPACEX THEME OVERRIDES (Theme asset/SpaceX.mp4) - Raptor Flame Gold & Fire Red
    ============================================= */
    body.theme-spacex .text-rose-300 { color: #fcd34d !important; }
    body.theme-spacex .text-rose-400 { color: #f59e0b !important; }
    body.theme-spacex .text-rose-500 { color: #d97706 !important; }
    body.theme-spacex .bg-rose-400 { background-color: #f59e0b !important; }
    body.theme-spacex .bg-rose-500 { background-color: #d97706 !important; }
    body.theme-spacex .border-rose-500 { border-color: #f59e0b !important; }
    body.theme-spacex .from-rose-500 { --tw-gradient-from: #f59e0b var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(245, 158, 11, 0)) !important; }
    body.theme-spacex .to-rose-600 { --tw-gradient-to: #ea580c var(--tw-gradient-to-position) !important; }
    body.theme-spacex .to-purple-500 { --tw-gradient-to: #ef4444 var(--tw-gradient-to-position) !important; }
    body.theme-spacex .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(245, 158, 11, 0.5) !important; }
    body.theme-spacex .bg-rose-500\/20 { background-color: rgba(245, 158, 11, 0.2) !important; }
    body.theme-spacex .bg-rose-500\/10, body.theme-spacex #version-link, body.theme-spacex .version-badge { background-color: rgba(245, 158, 11, 0.12) !important; color: #fcd34d !important; border-color: rgba(245, 158, 11, 0.3) !important; }
    body.theme-spacex .border-rose-500\/20, body.theme-spacex .border-rose-500\/10, body.theme-spacex .border-rose-500\/25, body.theme-spacex .border-rose-500\/30 { border-color: rgba(245, 158, 11, 0.3) !important; }
    body.theme-spacex .bg-rose-500\/\[0\.04\] { background-color: rgba(245, 158, 11, 0.05) !important; }
    body.theme-spacex .hover\:bg-rose-500\/25:hover, body.theme-spacex #version-link:hover, body.theme-spacex .version-badge:hover { background-color: rgba(245, 158, 11, 0.25) !important; }
    body.theme-spacex .hover\:border-rose-500\/40:hover, body.theme-spacex #version-link:hover, body.theme-spacex .version-badge:hover { border-color: rgba(245, 158, 11, 0.5) !important; }
    body.theme-spacex .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-spacex #version-link:hover, body.theme-spacex .version-badge:hover { box-shadow: 0 0 12px rgba(245, 158, 11, 0.45) !important; }
    body.theme-spacex .group\:hover .group-hover\:text-rose-400 { color: #fbbf24 !important; }
    body.theme-spacex .hover\:text-rose-400:hover { color: #fbbf24 !important; }
    body.theme-spacex .focus\:border-rose-500:focus { border-color: #f59e0b !important; }
    body.theme-spacex #wipe-overlay .wipe-panel:nth-child(1) { background: #f59e0b !important; }
    body.theme-spacex #wipe-overlay .wipe-panel:nth-child(2) { background: #f97316 !important; }
    body.theme-spacex #wipe-overlay .wipe-panel:nth-child(3) { background: #ef4444 !important; }
    body.theme-spacex input[type=range] { --range-color: #f59e0b !important; }
    body.theme-spacex input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(245, 158, 11, 0.6) !important; }
    body.theme-spacex #bgm-toggle-expanded { background-image: linear-gradient(to top right, #f59e0b, #f97316) !important; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important; }
    body.theme-spacex #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(245, 158, 11, 0.75) !important; }

    /* =============================================
       PINK CUTE THEME OVERRIDES (Theme asset/Pink cute theme.mp4) - Cute Pastel Pink
    ============================================= */
    body.theme-pink .text-rose-300 { color: #fbcfe8 !important; }
    body.theme-pink .text-rose-400 { color: #f472b6 !important; }
    body.theme-pink .text-rose-500 { color: #ec4899 !important; }
    body.theme-pink .bg-rose-400 { background-color: #f472b6 !important; }
    body.theme-pink .bg-rose-500 { background-color: #ec4899 !important; }
    body.theme-pink .border-rose-400, body.theme-pink .border-rose-500 { border-color: #ec4899 !important; }
    body.theme-pink .from-rose-500 { --tw-gradient-from: #ec4899 var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(236, 72, 153, 0)) !important; }
    body.theme-pink .to-rose-600 { --tw-gradient-to: #db2777 var(--tw-gradient-to-position) !important; }
    body.theme-pink .to-purple-500 { --tw-gradient-to: #f472b6 var(--tw-gradient-to-position) !important; }
    body.theme-pink .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(236, 72, 153, 0.5) !important; }
    body.theme-pink .bg-rose-500\/20 { background-color: rgba(236, 72, 153, 0.2) !important; }
    body.theme-pink .bg-rose-500\/10, body.theme-pink #version-link, body.theme-pink .version-badge { background-color: rgba(236, 72, 153, 0.12) !important; color: #fbcfe8 !important; border-color: rgba(236, 72, 153, 0.3) !important; }
    body.theme-pink .border-rose-500\/20, body.theme-pink .border-rose-500\/10, body.theme-pink .border-rose-500\/25, body.theme-pink .border-rose-500\/30 { border-color: rgba(236, 72, 153, 0.3) !important; }
    body.theme-pink .bg-rose-500\/\[0\.04\] { background-color: rgba(236, 72, 153, 0.05) !important; }
    body.theme-pink .hover\:bg-rose-500\/25:hover, body.theme-pink #version-link:hover, body.theme-pink .version-badge:hover { background-color: rgba(236, 72, 153, 0.25) !important; }
    body.theme-pink .hover\:border-rose-500\/40:hover, body.theme-pink #version-link:hover, body.theme-pink .version-badge:hover { border-color: rgba(236, 72, 153, 0.5) !important; }
    body.theme-pink .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-pink #version-link:hover, body.theme-pink .version-badge:hover { box-shadow: 0 0 12px rgba(236, 72, 153, 0.45) !important; }
    body.theme-pink .group\:hover .group-hover\:text-rose-400 { color: #f472b6 !important; }
    body.theme-pink .hover\:text-rose-400:hover { color: #f472b6 !important; }
    body.theme-pink .focus\:border-rose-500:focus { border-color: #ec4899 !important; }
    body.theme-pink #wipe-overlay .wipe-panel:nth-child(1) { background: #ec4899 !important; }
    body.theme-pink #wipe-overlay .wipe-panel:nth-child(2) { background: #f472b6 !important; }
    body.theme-pink #wipe-overlay .wipe-panel:nth-child(3) { background: #fb7185 !important; }
    body.theme-pink input[type=range] { --range-color: #ec4899 !important; }
    body.theme-pink input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(236, 72, 153, 0.6) !important; }
    body.theme-pink #bgm-toggle-expanded { background-image: linear-gradient(to top right, #ec4899, #f472b6) !important; box-shadow: 0 0 12px rgba(236, 72, 153, 0.4) !important; }
    body.theme-pink #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(236, 72, 153, 0.75) !important; }

    /* =============================================
       PORTAL 2 THEME OVERRIDES
    ============================================= */
    body.theme-portal .text-rose-300 { color: #7dd3fc !important; }
    body.theme-portal .text-rose-400 { color: #00a2ff !important; }
    body.theme-portal .text-rose-500 { color: #0284c7 !important; }
    body.theme-portal .bg-rose-400 { background-color: #00a2ff !important; }
    body.theme-portal .bg-rose-500 { background-color: #0284c7 !important; }
    body.theme-portal .border-rose-400, body.theme-portal .border-rose-500 { border-color: #00a2ff !important; }
    body.theme-portal .from-rose-500 { --tw-gradient-from: #00a2ff var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 162, 255, 0)) !important; }
    body.theme-portal .to-rose-600 { --tw-gradient-to: #0284c7 var(--tw-gradient-to-position) !important; }
    body.theme-portal .to-purple-500 { --tw-gradient-to: #f59e0b var(--tw-gradient-to-position) !important; }
    body.theme-portal .shadow-[0_0_15px_rgba(244,63,94,0.5)] { box-shadow: 0 0 15px rgba(0, 162, 255, 0.5) !important; }
    body.theme-portal .bg-rose-500\/20 { background-color: rgba(0, 162, 255, 0.2) !important; }
    body.theme-portal .bg-rose-500\/10, body.theme-portal #version-link, body.theme-portal .version-badge { background-color: rgba(0, 162, 255, 0.12) !important; color: #7dd3fc !important; border-color: rgba(0, 162, 255, 0.3) !important; }
    body.theme-portal .border-rose-500\/20, body.theme-portal .border-rose-500\/10, body.theme-portal .border-rose-500\/25, body.theme-portal .border-rose-500\/30 { border-color: rgba(0, 162, 255, 0.3) !important; }
    body.theme-portal .bg-rose-500\/\[0\.04\] { background-color: rgba(0, 162, 255, 0.05) !important; }
    body.theme-portal .hover\:bg-rose-500\/25:hover, body.theme-portal #version-link:hover, body.theme-portal .version-badge:hover { background-color: rgba(0, 162, 255, 0.25) !important; }
    body.theme-portal .hover\:border-rose-500\/40:hover, body.theme-portal #version-link:hover, body.theme-portal .version-badge:hover { border-color: rgba(0, 162, 255, 0.5) !important; }
    body.theme-portal .hover\:shadow-\[0_0_12px_rgba\(244\,63\,94\,0\.4\)\]:hover, body.theme-portal #version-link:hover, body.theme-portal .version-badge:hover { box-shadow: 0 0 12px rgba(0, 162, 255, 0.45) !important; }
    body.theme-portal .group\:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-portal .hover\:text-rose-400:hover { color: #38bdf8 !important; }
    body.theme-portal .focus\:border-rose-500:focus { border-color: #00a2ff !important; }
    body.theme-portal .filter-btn.active { background: rgba(0, 162, 255, 0.2) !important; border-color: rgba(0, 162, 255, 0.55) !important; color: #7dd3fc !important; box-shadow: 0 0 15px rgba(0, 162, 255, 0.3) !important; }
    body.theme-portal .theme-badge { background-color: rgba(0, 162, 255, 0.12) !important; color: #7dd3fc !important; border-color: rgba(0, 162, 255, 0.3) !important; }
    body.theme-portal .section-dash, body.theme-portal .theme-dash { background-color: #00a2ff !important; box-shadow: 0 0 10px rgba(0, 162, 255, 0.7) !important; }
    body.theme-portal #wipe-overlay .wipe-panel:nth-child(1) { background: #00a2ff !important; }
    body.theme-portal #wipe-overlay .wipe-panel:nth-child(2) { background: #0ea5e9 !important; }
    body.theme-portal #wipe-overlay .wipe-panel:nth-child(3) { background: #f59e0b !important; }
    body.theme-portal input[type=range] { --range-color: #00a2ff !important; }
    body.theme-portal input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 10px rgba(0, 162, 255, 0.6) !important; }
    body.theme-portal #bgm-toggle-expanded { background-image: linear-gradient(to top right, #00a2ff, #f59e0b) !important; box-shadow: 0 0 12px rgba(0, 162, 255, 0.4) !important; }
    body.theme-portal #bgm-toggle-expanded:hover { box-shadow: 0 0 22px rgba(0, 162, 255, 0.75) !important; }

    /* =============================================
       THEME-AWARE PLAYER CONTROLS & GLOW
    ============================================= */
    body                { --glow-rgb: 244, 63, 94;  --glow-sec-rgb: 168, 85, 247; } /* rose to purple */
    body.theme-grass    { --glow-rgb: 16, 185, 129; --glow-sec-rgb: 132, 204, 22;  } /* emerald to lime */
    body.theme-klee     { --glow-rgb: 239, 68, 68;  --glow-sec-rgb: 249, 115, 22;  } /* red to orange */
    body.theme-porsche  { --glow-rgb: 14, 165, 233; --glow-sec-rgb: 59, 130, 246;  } /* sky to blue */
    body.theme-night    { --glow-rgb: 148, 163, 184;--glow-sec-rgb: 71, 85, 105;   } /* slate to dark slate */
    body.theme-arisu    { --glow-rgb: 56, 189, 248; --glow-sec-rgb: 99, 102, 241;  } /* electric cyan to indigo */
    body.theme-gura     { --glow-rgb: 6, 182, 212;  --glow-sec-rgb: 37, 99, 235;   } /* ocean cyan to deep blue */
    body.theme-steam-girl { --glow-rgb: 217, 70, 239; --glow-sec-rgb: 236, 72, 153; } /* cyber fuchsia to neon pink */
    body.theme-spacex   { --glow-rgb: 245, 158, 11; --glow-sec-rgb: 239, 68, 68;   } /* raptor gold to fire red */
    body.theme-pink     { --glow-rgb: 236, 72, 153; --glow-sec-rgb: 244, 114, 182;  } /* sweet pink to cute pink */
    body.theme-portal   { --glow-rgb: 0, 162, 255;  --glow-sec-rgb: 245, 158, 11;  } /* Wheatley Core Blue to Aperture Amber */

    /* Universal Dynamic Theme Accent Rules */

    /* Universal Theme-Aware Version Badge */
    #version-link, .version-badge {
      background-color: rgba(var(--glow-rgb), 0.12) !important;
      color: rgb(var(--glow-rgb)) !important;
      border: 1px solid rgba(var(--glow-rgb), 0.35) !important;
      box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.15) !important;
    }
    #version-link:hover, .version-badge:hover {
      background-color: rgba(var(--glow-rgb), 0.25) !important;
      border-color: rgba(var(--glow-rgb), 0.6) !important;
      color: #ffffff !important;
      box-shadow: 0 0 16px rgba(var(--glow-rgb), 0.5) !important;
    }

    .section-dash, .theme-dash {
      background-color: rgb(var(--glow-rgb)) !important;
      box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.5) !important;
    }
    .theme-text {
      color: rgb(var(--glow-rgb)) !important;
    }
    .theme-badge {
      background-color: rgba(var(--glow-rgb), 0.12) !important;
      color: rgb(var(--glow-rgb)) !important;
      border: 1px solid rgba(var(--glow-rgb), 0.25) !important;
    }
    .theme-music-badge {
      background-color: rgba(var(--glow-rgb), 0.12) !important;
      color: rgb(var(--glow-rgb)) !important;
      border: 1px solid rgba(var(--glow-rgb), 0.3) !important;
    }
    .theme-music-dot {
      background-color: rgb(var(--glow-rgb)) !important;
    }
    .theme-music-live-card {
      background-color: rgba(var(--glow-rgb), 0.08) !important;
      border-color: rgba(var(--glow-rgb), 0.3) !important;
    }
    .theme-music-live-card:hover {
      background-color: rgba(var(--glow-rgb), 0.15) !important;
      border-color: rgba(var(--glow-rgb), 0.5) !important;
    }
    .theme-link {
      color: rgb(var(--glow-rgb)) !important;
      transition: all 0.2s ease;
    }
    .theme-link:hover {
      color: #ffffff !important;
      text-shadow: 0 0 10px rgba(var(--glow-rgb), 0.6);
    }
    .theme-card-hover {
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Theme-Aware Game Collection Card Hover Glow */
    .game-card {
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    }
    .game-card:hover {
      border-color: rgba(var(--glow-rgb), 0.5) !important;
      box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--glow-rgb), 0.45) !important;
    }

    .theme-card-hover:hover {
      border-color: rgba(var(--glow-rgb), 0.5) !important;
      box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(var(--glow-rgb), 0.16) !important;
    }
    .theme-card-hover:hover .theme-card-title {
      color: rgb(var(--glow-rgb)) !important;
    }
    .theme-card-hover:hover .theme-card-arrow {
      background-color: rgba(var(--glow-rgb), 0.22) !important;
      color: rgb(var(--glow-rgb)) !important;
      box-shadow: 0 0 12px rgba(var(--glow-rgb), 0.4) !important;
    }

    /* Crisp Glass "View All Photos" Button */
    #view-more-photos {
      box-shadow: 0 6px 22px -4px rgba(0, 0, 0, 0.55);
      transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #view-more-photos:hover {
      border-color: rgba(var(--glow-rgb), 0.5) !important;
      box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.75), 0 0 22px rgba(var(--glow-rgb), 0.22) !important;
      transform: translateY(-2px);
    }

    /* =============================================
       THEME-AWARE PROFILE ACTION & DRAWER COMPONENTS
    ============================================= */
    #open-dossier-btn {
      transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    #open-dossier-btn i.fa-user {
      color: rgb(var(--glow-rgb)) !important;
    }
    #open-dossier-btn:hover {
      background-color: rgba(var(--glow-rgb), 0.18) !important;
      border-color: rgba(var(--glow-rgb), 0.5) !important;
      box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.65), 0 0 20px rgba(var(--glow-rgb), 0.25) !important;
    }
    #open-dossier-btn:hover i.fa-arrow-right {
      color: rgb(var(--glow-rgb)) !important;
    }

    #profile-drawer i.fa-user,
    #profile-drawer i.fa-wave-square,
    #profile-drawer i.fa-link,
    #profile-drawer #drawer-act-icon,
    #profile-drawer #drawer-act-label,
    #profile-drawer .drawer-yap-title,
    #profile-drawer .drawer-theme-title {
      color: rgb(var(--glow-rgb)) !important;
    }

    #drawer-live-timer {
      background-color: rgba(var(--glow-rgb), 0.12) !important;
      border-color: rgba(var(--glow-rgb), 0.28) !important;
      color: rgb(var(--glow-rgb)) !important;
    }
    #drawer-live-timer i {
      color: rgb(var(--glow-rgb)) !important;
    }

    #drawer-yap-box {
      background: linear-gradient(135deg, rgba(var(--glow-rgb), 0.12), rgba(var(--glow-sec-rgb), 0.08)) !important;
      border-color: rgba(var(--glow-rgb), 0.28) !important;
    }

    #roll-yap-btn {
      background-color: rgba(var(--glow-rgb), 0.18) !important;
      border-color: rgba(var(--glow-rgb), 0.4) !important;
      color: #ffffff !important;
    }
    #roll-yap-btn:hover {
      background-color: rgba(var(--glow-rgb), 0.32) !important;
      border-color: rgba(var(--glow-rgb), 0.65) !important;
      box-shadow: 0 0 14px rgba(var(--glow-rgb), 0.3) !important;
    }

    .hover\:bg-rose-500\/20:hover {
      background-color: rgba(var(--glow-rgb), 0.18) !important;
    }
    .hover\:border-rose-400\/50:hover {
      border-color: rgba(var(--glow-rgb), 0.5) !important;
    }
    .hover\:shadow-rose-500\/20:hover {
      box-shadow: 0 0 18px rgba(var(--glow-rgb), 0.25) !important;
    }
    .group:hover .group-hover\:text-rose-300 {
      color: rgb(var(--glow-rgb)) !important;
    }

    /* Theme-aware Recent Track List Items */
    .recent-track-item {
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .recent-track-item:hover {
      background-color: rgba(var(--glow-rgb), 0.08) !important;
      border-color: rgba(var(--glow-rgb), 0.3) !important;
    }
    .recent-track-item:hover .recent-track-name {
      color: rgb(var(--glow-rgb)) !important;
    }

    /* Fallback theme class overrides for group-hover and Tailwind rose utilities */
    body.theme-grass .hover\:border-rose-400\/50:hover, body.theme-grass .hover\:border-rose-500\/40:hover { border-color: rgba(16, 185, 129, 0.5) !important; box-shadow: 0 0 20px rgba(16, 185, 129, 0.15) !important; }
    body.theme-grass .group:hover .group-hover\:text-rose-400 { color: #34d399 !important; }
    body.theme-grass .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(16, 185, 129, 0.25) !important; color: #34d399 !important; }
    body.theme-grass .w-8.h-\[1px\].bg-rose-400 { background-color: #10b981 !important; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important; }

    body.theme-klee .hover\:border-rose-400\/50:hover, body.theme-klee .hover\:border-rose-500\/40:hover { border-color: rgba(239, 68, 68, 0.5) !important; box-shadow: 0 0 20px rgba(239, 68, 68, 0.15) !important; }
    body.theme-klee .group:hover .group-hover\:text-rose-400 { color: #fb923c !important; }
    body.theme-klee .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(239, 68, 68, 0.25) !important; color: #fb923c !important; }
    body.theme-klee .w-8.h-\[1px\].bg-rose-400 { background-color: #ef4444 !important; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6) !important; }

    body.theme-porsche .hover\:border-rose-400\/50:hover, body.theme-porsche .hover\:border-rose-500\/40:hover { border-color: rgba(14, 165, 233, 0.5) !important; box-shadow: 0 0 20px rgba(14, 165, 233, 0.15) !important; }
    body.theme-porsche .group:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-porsche .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(14, 165, 233, 0.25) !important; color: #38bdf8 !important; }
    body.theme-porsche .w-8.h-\[1px\].bg-rose-400 { background-color: #0ea5e9 !important; box-shadow: 0 0 8px rgba(14, 165, 233, 0.6) !important; }

    body.theme-night .hover\:border-rose-400\/50:hover, body.theme-night .hover\:border-rose-500\/40:hover { border-color: rgba(148, 163, 184, 0.5) !important; box-shadow: 0 0 20px rgba(148, 163, 184, 0.15) !important; }
    body.theme-night .group:hover .group-hover\:text-rose-400 { color: #cbd5e1 !important; }
    body.theme-night .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(148, 163, 184, 0.25) !important; color: #cbd5e1 !important; }
    body.theme-night .w-8.h-\[1px\].bg-rose-400 { background-color: #94a3b8 !important; box-shadow: 0 0 8px rgba(148, 163, 184, 0.6) !important; }

    body.theme-arisu .hover\:border-rose-400\/50:hover, body.theme-arisu .hover\:border-rose-500\/40:hover { border-color: rgba(56, 189, 248, 0.5) !important; box-shadow: 0 0 20px rgba(56, 189, 248, 0.2) !important; }
    body.theme-arisu .group:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-arisu .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(56, 189, 248, 0.25) !important; color: #38bdf8 !important; }
    body.theme-arisu .w-8.h-\[1px\].bg-rose-400 { background-color: #38bdf8 !important; box-shadow: 0 0 8px rgba(56, 189, 248, 0.8) !important; }

    body.theme-gura .hover\:border-rose-400\/50:hover, body.theme-gura .hover\:border-rose-500\/40:hover { border-color: rgba(6, 182, 212, 0.5) !important; box-shadow: 0 0 20px rgba(6, 182, 212, 0.2) !important; }
    body.theme-gura .group:hover .group-hover\:text-rose-400 { color: #22d3ee !important; }
    body.theme-gura .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(6, 182, 212, 0.25) !important; color: #22d3ee !important; }
    body.theme-gura .w-8.h-\[1px\].bg-rose-400 { background-color: #06b6d4 !important; box-shadow: 0 0 8px rgba(6, 182, 212, 0.8) !important; }

    body.theme-steam-girl .hover\:border-rose-400\/50:hover, body.theme-steam-girl .hover\:border-rose-500\/40:hover { border-color: rgba(217, 70, 239, 0.5) !important; box-shadow: 0 0 20px rgba(217, 70, 239, 0.2) !important; }
    body.theme-steam-girl .group:hover .group-hover\:text-rose-400 { color: #e879f9 !important; }
    body.theme-steam-girl .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(217, 70, 239, 0.25) !important; color: #e879f9 !important; }
    body.theme-steam-girl .w-8.h-\[1px\].bg-rose-400 { background-color: #d946ef !important; box-shadow: 0 0 8px rgba(217, 70, 239, 0.8) !important; }

    body.theme-spacex .hover\:border-rose-400\/50:hover, body.theme-spacex .hover\:border-rose-500\/40:hover { border-color: rgba(245, 158, 11, 0.5) !important; box-shadow: 0 0 20px rgba(245, 158, 11, 0.2) !important; }
    body.theme-spacex .group:hover .group-hover\:text-rose-400 { color: #fbbf24 !important; }
    body.theme-spacex .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(245, 158, 11, 0.25) !important; color: #fbbf24 !important; }
    body.theme-spacex .w-8.h-\[1px\].bg-rose-400 { background-color: #f59e0b !important; box-shadow: 0 0 8px rgba(245, 158, 11, 0.8) !important; }

    body.theme-pink .hover\:border-rose-400\/50:hover, body.theme-pink .hover\:border-rose-500\/40:hover { border-color: rgba(236, 72, 153, 0.5) !important; box-shadow: 0 0 20px rgba(236, 72, 153, 0.2) !important; }
    body.theme-pink .group:hover .group-hover\:text-rose-400 { color: #f472b6 !important; }
    body.theme-pink .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(236, 72, 153, 0.25) !important; color: #f472b6 !important; }
    body.theme-pink .w-8.h-\[1px\].bg-rose-400 { background-color: #ec4899 !important; box-shadow: 0 0 8px rgba(236, 72, 153, 0.8) !important; }

    body.theme-portal .hover\:border-rose-400\/50:hover, body.theme-portal .hover\:border-rose-500\/40:hover { border-color: rgba(0, 162, 255, 0.5) !important; box-shadow: 0 0 20px rgba(0, 162, 255, 0.2) !important; }
    body.theme-portal .group:hover .group-hover\:text-rose-400 { color: #38bdf8 !important; }
    body.theme-portal .group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(0, 162, 255, 0.25) !important; color: #38bdf8 !important; }
    body.theme-portal .w-8.h-\[1px\].bg-rose-400 { background-color: #00a2ff !important; box-shadow: 0 0 8px rgba(0, 162, 255, 0.8) !important; }

    /* Compact hover glow — uses theme color */
    #bgm-player-container.compact:hover {
      box-shadow:
        0 8px 32px -4px rgba(0,0,0,0.7),
        0 0 0 1px rgba(var(--glow-rgb), 0.25),
        0 0 20px rgba(var(--glow-rgb), 0.18) !important;
      border-color: rgba(var(--glow-rgb), 0.35) !important;
    }

    /* Main Play/Pause Button — dynamic matching gradient & crisp dark contrast */
    #bgm-toggle-expanded {
      background: linear-gradient(135deg, rgb(var(--glow-rgb)), rgb(var(--glow-sec-rgb))) !important;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(var(--glow-rgb), 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
      border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
    }
    #bgm-toggle-expanded:hover {
      transform: scale(1.12) !important;
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 24px rgba(var(--glow-rgb), 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.55) !important;
      border-color: rgba(255, 255, 255, 0.45) !important;
    }
    /* No active shrink on expanded play */

    /* Compact Play button */
    #bgm-toggle-compact {
      transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    }
    #bgm-toggle-compact:hover {
      transform: scale(1.15);
      box-shadow: 0 0 12px rgba(var(--glow-rgb), 0.5);
    }
    /* No active shrink on compact play */

    /* Close (x) button — theme tint on hover */
    #btn-close-expanded:hover {
      background: rgba(var(--glow-rgb), 0.18) !important;
      color: rgb(var(--glow-rgb)) !important;
    }

    #btn-settings-toggle.active {
      color: rgb(var(--glow-rgb)) !important;
    }

    /* Compact 3-bar visualizer dots — in theme colors */
    .music-bar-compact {
      background-color: rgb(var(--glow-rgb)) !important;
      box-shadow: 0 0 6px rgba(var(--glow-rgb), 0.6);
    }

    /* Full Background Visualizer 32 bars */
    .music-bar-full {
      width: 4px;
      min-height: 2px;
      border-radius: 2px 2px 0 0;
      background: linear-gradient(to top, rgba(var(--glow-rgb), 0.45), rgba(var(--glow-rgb), 0.05)) !important;
      border-top: 1.5px solid rgba(var(--glow-rgb), 0.75);
      box-shadow: 0 -2px 8px rgba(var(--glow-rgb), 0.25);
      transition: height 0.08s ease;
    }

    /* Live Track Indicator — pulsing dot */
    @keyframes livePing {
      0%, 100% { transform: scale(1); opacity: 0.9; }
      50% { transform: scale(1.55); opacity: 0; }
    }
    @keyframes liveDotBreath {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.6; }
    }
    .live-ping { animation: livePing 1.4s ease-out infinite; }
    .live-dot  { animation: liveDotBreath 1.4s ease-in-out infinite; }

    /* =============================================
       MINIMAL SSNMHJJG GIF INITIAL LOADING SCREEN
    ============================================= */
    #app-loading-screen {
      position: fixed;
      inset: 0;
      z-index: 100000;
      background: #050608;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
      user-select: none;
    }

    #app-loading-screen.loaded {
      opacity: 0;
      transform: scale(1.03);
      pointer-events: none;
    }

    .app-boot-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    .app-boot-gif {
      width: 320px;
      max-width: 82vw;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.18));
    }

    .app-boot-corner {
      position: absolute;
      bottom: 24px;
      left: 24px;
      z-index: 20;
      display: flex;
      align-items: center;
      gap: 10px;
      pointer-events: none;
      user-select: none;
    }

    @media (max-width: 640px) {
      .app-boot-corner {
        bottom: 16px;
        left: 16px;
      }
    }

    .app-boot-inner-icon {
      width: 13px;
      height: 13px;
      color: #94a3b8;
      position: relative;
      z-index: 2;
      display: block;
      animation: bootHourglassFlip 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
      transform-origin: center;
    }

    @keyframes bootHourglassFlip {
      0%, 35%   { transform: rotate(0deg); }
      50%, 85%  { transform: rotate(180deg); }
      100%      { transform: rotate(360deg); }
    }

    .app-boot-corner-text {
      font-family: 'JetBrains Mono', 'Space Mono', Consolas, monospace;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.08em;
      color: #94a3b8;
      text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    }

    .terminal-card {
      width: 100%;
      max-width: 820px;
      background: rgba(13, 16, 23, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 1rem;
      box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.95), 0 0 45px rgba(var(--glow-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* MacOS Title Bar */
    .terminal-header {
      height: 44px;
      background: rgba(255, 255, 255, 0.03);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.25rem;
      user-select: none;
    }

    .terminal-buttons {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 60px;
    }

    .term-btn {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      display: inline-block;
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    }
    .term-close { background-color: #ff5f56; }
    .term-min   { background-color: #ffbd2e; }
    .term-max   { background-color: #27c93f; }

    .terminal-title {
      font-family: 'Space Mono', monospace;
      font-size: 12.5px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.75);
      letter-spacing: 0.04em;
    }

    .terminal-header-right {
      width: 60px;
      text-align: right;
      font-family: 'Space Mono', monospace;
      font-size: 10.5px;
      color: rgba(255, 255, 255, 0.35);
    }

    /* Terminal Body */
    .terminal-body {
      padding: 1.5rem 1.75rem 1.75rem;
      font-family: 'Space Mono', monospace;
      display: flex;
      flex-direction: column;
      gap: 1.1rem;
    }

    .terminal-ascii-art {
      font-family: 'Space Mono', monospace;
      font-size: 8px;
      line-height: 1.15;
      font-weight: 700;
      color: #f43f5e;
      text-shadow: 0 0 14px rgba(var(--glow-rgb), 0.5);
      margin: 0;
      padding: 0.3rem 0;
      overflow-x: auto;
      text-align: center;
      user-select: none;
      filter: drop-shadow(0 0 10px rgba(var(--glow-rgb), 0.4));
    }

    @media (min-width: 480px) {
      .terminal-ascii-art { font-size: 10px; }
    }

    @media (min-width: 640px) {
      .terminal-ascii-art { font-size: 11.5px; }
    }

    @media (min-width: 768px) {
      .terminal-ascii-art { font-size: 13px; }
    }

    .terminal-logs-viewport {
      height: 195px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      font-size: 11.5px;
      color: #cbd5e1;
      padding-right: 8px;
      background: rgba(0, 0, 0, 0.35);
      padding: 0.85rem 1rem;
      border-radius: 0.6rem;
      border: 1px solid rgba(255, 255, 255, 0.06);
      scroll-behavior: smooth;
    }

    .terminal-logs-viewport::-webkit-scrollbar {
      width: 5px;
    }
    .terminal-logs-viewport::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.18);
      border-radius: 9999px;
    }

    .term-line {
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
      line-height: 1.45;
      white-space: nowrap;
      animation: termFadeIn 0.28s var(--ease-premium-out) both;
    }

    @keyframes termFadeIn {
      from { opacity: 0; transform: translate3d(0, 4px, 0);  }
      to   { opacity: 1; transform: translate3d(0, 0, 0);  }
    }

    .term-ts { color: #64748b; font-size: 10.5px; }
    .term-tag { color: #f43f5e; font-weight: 700; }
    .term-text { color: #cbd5e1; }
    .term-ok { color: #34d399; font-weight: 700; margin-left: auto; }
    .term-exec { color: #38bdf8; font-weight: 700; }

    .term-cursor {
      display: inline-block;
      color: #f43f5e;
      animation: termBlink 0.8s step-end infinite;
      font-weight: 700;
    }

    @keyframes termBlink {
      50% { opacity: 0; }
    }

    .terminal-progress-wrap {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      padding-top: 0.2rem;
    }

    .terminal-progress-track {
      width: 100%;
      height: 5px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 9999px;
      overflow: hidden;
    }

    .terminal-progress-bar {
      height: 100%;
      width: 0%;
      background: #f43f5e;
      border-radius: 9999px;
      transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 0 10px #f43f5e;
    }

    .terminal-progress-info {
      display: flex;
      justify-content: space-between;
      font-size: 10.5px;
      color: #64748b;
      font-weight: 600;
    }

    /* Theme overrides for macOS terminal loader */
    body.theme-grass .terminal-ascii-art { color: #10b981 !important; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3)) !important; }
    body.theme-grass .term-tag, body.theme-grass .term-cursor { color: #10b981 !important; }
    body.theme-grass .terminal-progress-bar { background: #10b981 !important; box-shadow: 0 0 10px #10b981 !important; }
    body.theme-grass .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(16, 185, 129, 0.12) !important; }

    body.theme-klee .terminal-ascii-art { color: #ef4444 !important; filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3)) !important; }
    body.theme-klee .term-tag, body.theme-klee .term-cursor { color: #ef4444 !important; }
    body.theme-klee .terminal-progress-bar { background: #ef4444 !important; box-shadow: 0 0 10px #ef4444 !important; }
    body.theme-klee .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.12) !important; }

    body.theme-porsche .terminal-ascii-art { color: #0ea5e9 !important; filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.3)) !important; }
    body.theme-porsche .term-tag, body.theme-porsche .term-cursor { color: #0ea5e9 !important; }
    body.theme-porsche .terminal-progress-bar { background: #0ea5e9 !important; box-shadow: 0 0 10px #0ea5e9 !important; }
    body.theme-porsche .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(14, 165, 233, 0.12) !important; }

    body.theme-night .terminal-ascii-art { color: #cbd5e1 !important; filter: drop-shadow(0 0 8px rgba(203, 213, 225, 0.35)) !important; }
    body.theme-night .term-tag, body.theme-night .term-cursor { color: #94a3b8 !important; }
    body.theme-night .terminal-progress-bar { background: #94a3b8 !important; box-shadow: 0 0 10px #94a3b8 !important; }
    body.theme-night .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(148, 163, 184, 0.15) !important; }

    body.theme-arisu .terminal-ascii-art { color: #38bdf8 !important; filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35)) !important; }
    body.theme-arisu .term-tag, body.theme-arisu .term-cursor { color: #38bdf8 !important; }
    body.theme-arisu .terminal-progress-bar { background: #38bdf8 !important; box-shadow: 0 0 10px #38bdf8 !important; }
    body.theme-arisu .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.15) !important; }

    body.theme-gura .terminal-ascii-art { color: #06b6d4 !important; filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.35)) !important; }
    body.theme-gura .term-tag, body.theme-gura .term-cursor { color: #06b6d4 !important; }
    body.theme-gura .terminal-progress-bar { background: #06b6d4 !important; box-shadow: 0 0 10px #06b6d4 !important; }
    body.theme-gura .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(6, 182, 212, 0.15) !important; }

    body.theme-steam-girl .terminal-ascii-art { color: #d946ef !important; filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.35)) !important; }
    body.theme-steam-girl .term-tag, body.theme-steam-girl .term-cursor { color: #d946ef !important; }
    body.theme-steam-girl .terminal-progress-bar { background: #d946ef !important; box-shadow: 0 0 10px #d946ef !important; }
    body.theme-steam-girl .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(217, 70, 239, 0.15) !important; }

    body.theme-spacex .terminal-ascii-art { color: #f59e0b !important; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.35)) !important; }
    body.theme-spacex .term-tag, body.theme-spacex .term-cursor { color: #f59e0b !important; }
    body.theme-spacex .terminal-progress-bar { background: #f59e0b !important; box-shadow: 0 0 10px #f59e0b !important; }
    body.theme-spacex .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.15) !important; }

    body.theme-pink .terminal-ascii-art { color: #ec4899 !important; filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.35)) !important; }
    body.theme-pink .term-tag, body.theme-pink .term-cursor { color: #ec4899 !important; }
    body.theme-pink .terminal-progress-bar { background: #ec4899 !important; box-shadow: 0 0 10px #ec4899 !important; }
    body.theme-pink .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(236, 72, 153, 0.15) !important; }

    body.theme-portal .terminal-ascii-art { color: #00a2ff !important; filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.45)) !important; }
    body.theme-portal .term-tag, body.theme-portal .term-cursor { color: #00a2ff !important; }
    body.theme-portal .terminal-progress-bar { background: #00a2ff !important; box-shadow: 0 0 12px #00a2ff !important; }
    body.theme-portal .terminal-card { box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 162, 255, 0.22) !important; }

    /* 🍰 Portal 2 Hero Menu & Logo Theme Overrides */
    body.theme-portal .default-hero-brand { display: none !important; }
    body.theme-portal .portal-hero-brand {
      display: block !important;
      margin-bottom: 8.5rem !important;
    }
    @media (min-width: 768px) {
      body.theme-portal .portal-hero-brand {
        margin-bottom: 11rem !important;
      }
    }
    body.theme-portal #home {
      justify-content: flex-start !important;
      padding-top: 6rem !important;
      min-height: 94vh !important;
    }
    body.theme-portal .default-label { display: none !important; }
    body.theme-portal .portal-label { display: inline-flex !important; align-items: center; }
    body.theme-portal .menu-rule { display: none !important; }
    body.theme-portal .hero-menu-num { display: none !important; }
    body.theme-portal .hero-menu-item {
      font-family: 'D-DIN Condensed', sans-serif !important;
      font-size: 1.6rem !important;
      font-weight: 700 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
      color: rgba(225, 238, 255, 0.85) !important;
      padding: 6px 0 !important;
      gap: 14px !important;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
    }
    body.theme-portal .hero-menu-item:hover {
      color: #ffffff !important;
      transform: translateX(12px) !important;
      text-shadow: 0 0 16px rgba(0, 162, 255, 0.95), 0 0 32px rgba(0, 162, 255, 0.6) !important;
    }
    body.theme-portal .portal-enrichment-item {
      display: block !important;
      font-family: 'D-DIN Condensed', sans-serif !important;
      font-size: 1.15rem !important;
      font-weight: 700 !important;
      letter-spacing: 0.08em !important;
    }
    body.theme-portal .hero-menu-arrow {
      width: 12px !important;
      height: 12px !important;
      fill: #00a2ff !important;
      filter: drop-shadow(0 0 8px #00a2ff) !important;
    }


    @keyframes musicItemSlideIn {
      0% {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(0.98);

      }
      100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);

      }
    }
    .music-track-entrance {
      animation: musicItemSlideIn 0.42s var(--ease-premium-out) both;

    }
    .music-tab-btn {
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .music-tab-btn.active {
      background: rgba(var(--glow-rgb), 0.18) !important;
      border-color: rgba(var(--glow-rgb), 0.45) !important;
      color: #ffffff !important;
      box-shadow: 0 0 14px rgba(var(--glow-rgb), 0.25);
    }
    .music-tab-btn:not(.active) {
      background: transparent !important;
      border-color: transparent !important;
      color: #94a3b8 !important;
    }
    .music-tab-btn:not(.active):hover {
      background: rgba(255, 255, 255, 0.06) !important;
      color: #f1f5f9 !important;
    }
    #music-tracks-list {
      transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* 🍰 GLaDOS Easter Egg Terminal Resizing & Layout (Instant 0-delay Resizing) */
    #glados-window {
      resize: both;
      overflow: hidden;
      min-width: 360px;
      min-height: 300px;
      max-width: 96vw;
      max-height: 94vh;
      transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    #glados-window::-webkit-resizer {
      background-color: transparent;
      background-image: radial-gradient(circle, rgba(245, 158, 11, 0.6) 1.5px, transparent 1.5px);
      background-size: 4px 4px;
      background-position: bottom right;
    }

    /* =============================================
       🎨 THEME SELECTOR DROPDOWN STYLES
    ============================================= */

    /* Theme selector styles are shared in theme-selector.css. */

    /* --- Custom Sleek Scrollbar for Theme Dropdown & Popups --- */
    #theme-list-items,
    .custom-scrollbar {
      overflow-x: hidden !important;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }
    #theme-list-items::-webkit-scrollbar,
    .custom-scrollbar::-webkit-scrollbar {
      width: 4px !important;
      height: 0px !important;
    }
    #theme-list-items::-webkit-scrollbar-track,
    .custom-scrollbar::-webkit-scrollbar-track {
      background: transparent !important;
    }
    #theme-list-items::-webkit-scrollbar-thumb,
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2) !important;
      border-radius: 9999px !important;
    }
    #theme-list-items::-webkit-scrollbar-thumb:hover,
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
      background: rgba(var(--glow-rgb), 0.7) !important;
    }
    #theme-list-items::-webkit-scrollbar-corner,
    .custom-scrollbar::-webkit-scrollbar-corner {
      background: transparent !important;
    }


    /* ==========================================================================
       🍱 BENTO GRID & PROFILE DRAWER STYLES
       ========================================================================== */
    .bento-tab-btn {
      background: transparent;
      border: 1px solid transparent;
      color: #94a3b8;
    }
    .bento-tab-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.06);
    }
    .bento-tab-btn.active {
      color: #ffffff;
      background: rgba(var(--glow-rgb), 0.18);
      border-color: rgba(var(--glow-rgb), 0.45);
      text-shadow: 0 0 10px rgba(var(--glow-rgb), 0.5);
    }

    .bento-tab-pane {
      animation: bentoFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes bentoFadeIn {
      from {
        opacity: 0;
        transform: translateY(4px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Soundwave Equalizer Dancing Animation */
    .bento-soundwave-bars.is-playing span:nth-child(1) {
      animation: soundwaveBounce 0.8s ease-in-out infinite alternate;
    }
    .bento-soundwave-bars.is-playing span:nth-child(2) {
      animation: soundwaveBounce 0.6s ease-in-out infinite 0.2s alternate;
    }
    .bento-soundwave-bars.is-playing span:nth-child(3) {
      animation: soundwaveBounce 0.9s ease-in-out infinite 0.1s alternate;
    }
    .bento-soundwave-bars.is-playing span:nth-child(4) {
      animation: soundwaveBounce 0.7s ease-in-out infinite 0.3s alternate;
    }
    @keyframes soundwaveBounce {
      0% { height: 3px; }
      100% { height: 14px; }
    }

    /* Profile Drawer Open States */
    #drawer-backdrop.active {
      opacity: 1 !important;
      pointer-events: auto !important;
    }
    #profile-drawer.active {
      transform: translateX(0) !important;
    }
    #discord-copy-toast.show {
      transform: translateY(0) !important;
      opacity: 1 !important;
    }

    /* Random Thoughts Shuffle Text Animation (Show & Gone) */
    #drawer-yap-text {
      overflow: hidden;
      perspective: 300px;
    }
    .yap-quote-inner {
      display: block;
      width: 100%;
    }
    .yap-word {
      display: inline-block;
      will-change: transform, opacity, filter;
      transform-origin: center bottom;
    }
    .yap-word.is-entering {
      opacity: 0;
      animation: yapWordShow 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      animation-delay: calc(var(--word-i, 0) * 22ms);
    }
    .yap-word.is-exiting {
      animation: yapWordGone 0.18s cubic-bezier(0.4, 0, 1, 1) forwards;
      animation-delay: calc(var(--word-i, 0) * 8ms);
    }
    @keyframes yapWordShow {
      0% {
        opacity: 0;
        transform: translateY(10px) scale(0.92);
        filter: blur(4px);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
      }
    }
    @keyframes yapWordGone {
      0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
      }
      100% {
        opacity: 0;
        transform: translateY(-9px) scale(0.92);
        filter: blur(4px);
      }
    }
    #roll-yap-btn.is-shuffling i {
      animation: shuffleIconPop 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes shuffleIconPop {
      0% { transform: rotate(0deg) scale(1); }
      50% { transform: rotate(180deg) scale(1.25); }
      100% { transform: rotate(360deg) scale(1); }
    }

    /* Bento Profile Tab Switcher Text Animation (Show & Gone) */
    .bento-tab-pane {
      animation: none !important;
      perspective: 300px;
    }
    .bento-unit {
      display: inline-block;
      will-change: transform, opacity, filter;
      transform-origin: center bottom;
    }
    .bento-unit.is-entering {
      opacity: 0;
      animation: yapWordShow 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      animation-delay: calc(var(--unit-i, 0) * 11ms);
    }
    .bento-unit.is-exiting {
      animation: yapWordGone 0.16s cubic-bezier(0.4, 0, 1, 1) forwards;
      animation-delay: calc(var(--unit-i, 0) * 4ms);
    }

    /* Actual Label Tag Style for @ssnmhjjg */
    .identity-handle-tag {
      position: relative;
      display: inline-flex;
      align-items: center;
      padding: 1px;
      background: linear-gradient(135deg, rgba(var(--glow-rgb), 0.55), rgba(255, 255, 255, 0.15));
      clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 10px 100%, 0% 50%);
      border-radius: 0 7px 7px 0;
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
    }
    .identity-handle-tag:hover {
      transform: translateY(-1px) scale(1.03);
      filter: drop-shadow(0 4px 12px rgba(var(--glow-rgb), 0.28));
    }
    .identity-handle-tag:active {
      transform: translateY(0) scale(0.98);
    }
    .identity-tag-inner {
      display: inline-flex;
      align-items: center;
      background: #12151e;
      clip-path: polygon(9.5px 0%, 100% 0%, 100% 100%, 9.5px 100%, 0% 50%);
      border-radius: 0 6px 6px 0;
      font-family: var(--font-mono);
      font-size: 11.5px;
      font-weight: 600;
      line-height: 1;
    }
    .identity-tag-cap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 5px 7px 5px 13px;
      background: rgba(var(--glow-rgb), 0.16);
      color: rgb(var(--glow-rgb));
      border-right: 1px dashed rgba(var(--glow-rgb), 0.4);
    }
    .identity-tag-body {
      display: inline-flex;
      align-items: center;
      padding: 5px 9px 5px 7px;
      color: #f1f5f9;
      letter-spacing: 0.02em;
    }

    /* Bold Zine Interactive Alias Switcher */
    #about-zine-primary {
      text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
      will-change: transform, opacity, filter;
    }
    #about-alias-trigger:hover #about-zine-primary {
      text-shadow: 0 0 18px rgba(var(--glow-rgb), 0.45), 0 4px 18px rgba(0, 0, 0, 0.75);
    }
    .zine-alias-gone {
      animation: yapWordGone 0.14s cubic-bezier(0.4, 0, 1, 1) forwards;
    }
    .zine-alias-show {
      animation: yapWordShow 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* =========================================================================
       UNIVERSAL EXTERNAL LINK FLOATING TOOLTIP
       Liquid-smooth Lerp cursor follower with blur, scale & lift transitions
       ========================================================================= */
    #external-link-tooltip {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 999999;
      pointer-events: none;
      visibility: hidden;
      transform: translate3d(-9999px, -9999px, 0);
      transition: visibility 0s linear 0.34s;
      will-change: transform;
      user-select: none;
    }
    #external-link-tooltip.is-visible {
      visibility: visible;
      transition: visibility 0s linear 0s;
    }
    .external-tooltip-inner {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5.5px 10px 5.5px 9px;
      background: rgba(13, 17, 23, 0.88);
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 9px;
      box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
      transform-origin: 0% 0%;
      opacity: 0;
      transform: translate3d(0, 10px, 0) scale(0.86);
      filter: blur(6px);
      transition:
        opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
      max-width: min(340px, calc(100vw - 28px));
      white-space: nowrap;
      will-change: transform, opacity, filter;
    }
    #external-link-tooltip.is-visible .external-tooltip-inner {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0px);
      transition:
        opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .external-tooltip-inner i {
      opacity: 0;
      transform: translate3d(-4px, 4px, 0) scale(0.72);
      transition:
        opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #external-link-tooltip.is-visible .external-tooltip-inner i {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      transition-delay: 0.04s;
    }
    .external-tooltip-tag {
      font-family: var(--font-mono, 'Space Mono', monospace);
      font-size: 9.5px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #94a3b8;
      border-right: 1px solid rgba(255, 255, 255, 0.12);
      padding-right: 6px;
      margin-right: 1px;
      line-height: 1;
    }
    .external-tooltip-url {
      font-family: var(--font-mono, 'Space Mono', monospace);
      font-size: 11px;
      font-weight: 500;
      color: #f1f5f9;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      letter-spacing: -0.01em;
      line-height: 1.2;
      opacity: 0;
      transform: translate3d(0, 4px, 0);
      filter: blur(3px);
      transition:
        opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }
    #external-link-tooltip.is-visible .external-tooltip-inner .external-tooltip-url {
      opacity: 1;
      transform: translate3d(0, 0, 0);
      filter: blur(0px);
      transition-delay: 0.06s;
    }
    .external-tooltip-url.is-swapping {
      opacity: 0 !important;
      transform: translate3d(0, -3px, 0) !important;
      filter: blur(2px) !important;
      transition: opacity 0.09s ease, transform 0.09s ease, filter 0.09s ease !important;
      transition-delay: 0s !important;
    }


