:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-purple: #9900ff;
    --dark-bg: #0a0a12;
    --cabinet-bg: #1a1a2e;
    --screen-bg: #000033;
    --pixel-border: 4px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Press Start 2P", cursive;
    background-color: var(--dark-bg);
    color: white;
    background-image: radial-gradient(var(--neon-purple) 1px, transparent 1px),
      radial-gradient(var(--neon-blue) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    overflow-x: hidden;
    animation: pulseBg 10s infinite;
  }
  @keyframes pulseBg {
    0%, 100% { 
      background-size: 50px 50px, 25px 25px;
      opacity: 1;
    }
    50% { 
      background-size: 51px 51px, 25.5px 25.5px;
      opacity: 0.95; /* Barely noticeable fade */
    }
  }

  section {
    margin: 5vh 0;
  }
  
  /* Audio Control */
  .audio-control {
    position: fixed;
    top: 60px;
    right: 10px;
    z-index: 100;
  }
  
  #audio-toggle {
    background: var(--cabinet-bg);
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  #audio-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--neon-blue);
  }
  
  .audio-icon {
    display: inline-block;
  }
  
  /* Header Styles */
  .arcade-header {
    text-align: center;
    padding: 40px 20px;
  }
  
  .neon-title {
    font-size: clamp(24px, 5vw, 48px);
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink), 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
    margin: 5vh 0;
    animation: flicker 3s infinite alternate;
    letter-spacing: 2px;
    line-height: 1.4;
  }
  
  .glitch-tagline {
    font-size: clamp(12px, 2vw, 18px);
    color: white;
    position: relative;
    animation: glitch 3s infinite;
    line-height: 1.8; /* Increased line spacing */
    letter-spacing: 1px; /* Slightly increased letter spacing */
    padding: 0 10px; /* Add some padding on the sides */
  }
  
  /* Game Rules Section */
  .game-rules {
    max-width: 800px;
    margin: 8vh auto 60px;
    padding: 0 20px;
  }
  
  .screen-container {
    border: var(--pixel-border) solid white;
    padding: 4px;
    background-color: var(--cabinet-bg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
  
  .screen {
    background-color: var(--screen-bg);
    padding: 30px;
    border: 2px solid var(--neon-blue);
    text-align: center;
  }
  
  .screen h2 {
    color: var(--neon-blue);
    margin-bottom: 20px;
    font-size: clamp(18px, 3vw, 24px);
  }
  
  .screen p {
    margin-bottom: 15px;
    font-size: clamp(10px, 2vw, 14px);
    line-height: 1.6;
  }
  
  .rules-list {
    margin: 20px 0;
    text-align: left;
  }
  
  .rule {
    margin-bottom: 12px;
    font-size: clamp(10px, 1.8vw, 14px);
    line-height: 1.6;
    position: relative;
    padding-left: 5px;
  }
  
  .rule:last-child {
    color: var(--neon-pink);
    font-weight: bold;
  }
  
  .hashtag {
    color: var(--neon-pink);
  }
  
  .deadline {
    color: var(--neon-pink);
    font-size: clamp(12px, 2.5vw, 18px);
    margin: 20px 0;
  }
  
  .submit-container {
    margin-top: 30px;
  }
  
  .start-button {
    display: inline-block;
    background-color: var(--neon-purple);
    color: white;
    padding: 15px 30px;
    font-size: clamp(14px, 2.5vw, 20px);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 5px var(--neon-purple), 0 0 10px var(--neon-purple);
  }
  
  .start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
  }
  
  .start-button:active {
    transform: scale(0.98);
  }
  
  /* Arcade Section */
  .arcade-section {
    padding: 20px;
    margin-bottom: 60px;
  }
  
  .arcade-section h2 {
    text-align: center;
    color: var(--neon-blue);
    margin-bottom: 4vh;
    font-size: clamp(18px, 3vw, 28px);
  }
  
  .cabinet-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Cabinet Card Styling */
  .cabinet {
    position: relative;
    grid-column: span 3; /* 4 per row for regular games */
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .cabinet::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.3) 30%,
      rgba(0, 0, 0, 0.3) 70%,
      rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
  }
  
  .cabinet:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-blue), inset 0 0 10px var(--neon-pink);
    filter: brightness(1.2);
  }
  
  .cabinet-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .cabinet-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .cabinet-title {
    font-size: 16px;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    margin-right: 60px; /* Make space for the TOP VIBE badge */
  }
  
  .rank-indicator {
    width: 30px;
    height: 30px;
    background-color: var(--neon-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
  }
  .cabinet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .creator-handle {
    font-size: 12px;
    color: var(--neon-blue);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
  }
  
  .vibe-count {
    align-self: flex-end;
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
  }
  
  .heart-icon {
    color: #ff3366;
    margin-right: 5px;
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    line-height: 1;
  }
  .vibe-number {
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 14px; /* Adjust if needed */
    padding-top: 18px; /* This helps align with the heart */
  }
  
  .heart-icon:hover {
    transform: scale(1.2);
  }

  .random-layout .cabinet {
    grid-column: span 3 !important; /* Force 4 per row */
    aspect-ratio: 4 / 3;
    transform: none !important;
    border: 2px solid var(--cabinet-bg);
    box-shadow: none;
  }
  
  .random-layout .top-vibe {
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 5px var(--neon-purple);
  }
  
  .random-layout .top-vibe .cabinet-title,
  .random-layout .top-vibe .vibe-count,
  .random-layout .top-vibe .rank-indicator {
    /* Reset sizes for random layout */
    font-size: inherit;
  }
  .random-layout .top-vibe .rank-indicator {
    width: 30px;
    height: 30px;
  }
  
  /* For top-vibe in random layout */
  .random-layout .top-vibe-badge {
    transform: rotate(0);
    top: 5px;
    right: 5px;
    font-size: 10px;
    padding: 3px 6px;
  }

  /* Gallery Controls */
.gallery-controls {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
  }

  .controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .sort-controls, .filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .control-label {

    font-size: 14px;
    margin-right: 5px;
  }
  
  .control-button {
    background-color: var(--cabinet-bg);
    color: white;
    border: 2px solid var(--neon-blue);
    padding: 8px 12px;
    font-family: "Press Start 2P", cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .control-button:hover {
    background-color: rgba(0, 255, 255, 0.2);
  }
  
  .control-button.active {
    background-color: var(--neon-blue);
    color: var(--dark-bg);
  }

  .filter-section {
    margin-bottom: 15px;
    margin-left: auto;
  }
  
  .filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--cabinet-bg);
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 8px 12px;
    font-family: "Press Start 2P", cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .filter-toggle:hover {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 8px var(--neon-blue);
  }
  
  .filter-toggle.active {
    background-color: var(--neon-blue);
    color: var(--dark-bg);
  }
  
  .toggle-icon {
    font-size: 10px;
    transition: transform 0.3s;
  }
  
  .filter-toggle.active .toggle-icon {
    transform: rotate(180deg);
  }
  
  .filter-controls {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    clear: both;
  }
  
  .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .tag {
    background-color: var(--cabinet-bg);
    color: white;
    border: 1px solid var(--neon-purple);
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .tag:hover {
    background-color: rgba(153, 0, 255, 0.2);
  }
  
  .tag.active {
    background-color: var(--neon-purple);
    color: white;
  }
  
  .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .active-filter {
    background-color: var(--neon-purple);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .remove-filter {
    cursor: pointer;
    font-weight: bold;
  }

  .badge-container {
    position: absolute;
    bottom: 10px;
    right: 10%;
    display: flex;
    flex-direction: row;
    gap: 5px;
    z-index: 3;
  }
  
  .top-vibe .badge-container {
    right: 100px; /* Move to the left of the TOP VIBE badge */
  }
  
  .game-badge {
    width: 32px;
    height: 32px;
    background-color: var(--cabinet-bg);
    border: 2px solid var(--neon-purple);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 0 5px rgba(153, 0, 255, 0.5);
  }
  
  /* Add a badge sort button */
  .control-button[data-sort="badges"] {
    position: relative;
  }
  
  .control-button[data-sort="badges"]::after {
    content: "🏆";
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 20px;
  }
  
  /* Creator Info in Modal */
  .creator-info {
    margin: 10px 0;
    font-size: 14px;
  }
  
  .creator-info a {
    color: var(--neon-pink);
    text-decoration: none;
    transition: all 0.3s;
  }
  
  .creator-info a:hover {
    text-shadow: 0 0 5px var(--neon-pink);
  }
  


  /* Add this CSS to your styles.css file */
  .vibejam-updates {
    max-width: 1200px;
    margin: 8vh auto 60px;
    padding: 0 20px;
  }

  .twitter-tweet {
    margin-top: 10px;
    font-family: sans-serif !important; /* X's default font */
  }
  
  
  .tweet a:hover {
    text-shadow: 0 0 5px var(--neon-blue);
  }

/* Twitter Feed with Masonry Layout */
#twitter-feed {
  width: 100%;
  margin: 20px 0;
  max-width: 100%; /* Ensure it takes full width of parent */
}

/* Masonry item styling */
.masonry-item {
  width: 32%; /* Slightly wider to fill more space */
  margin-bottom: 20px;
}

/* Tweet container styling */
.tweet {
  padding: 15px;
  background-color: var(--cabinet-bg); /* Keep the background */
  border: none; /* Remove the border */
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: auto;
}

/* Add hover effects to match the cabinet card style */
.tweet:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--neon-blue), inset 0 0 10px var(--neon-pink);
  /* Add subtle glow around the edge instead of border */
  outline: 2px solid transparent;
  outline-offset: -2px;
  background-origin: border-box;
  background-clip: content-box, border-box;
}

/* Ensure tweets are responsive */
.twitter-tweet {
  width: 100% !important;
  margin: 0 !important;
}

/* Style the #vibejam-buzz header */
.vibejam-updates h2 {
  text-align: center;
  color: var(--neon-blue);
  margin-bottom: 25px;
  font-size: clamp(18px, 3vw, 28px);
  text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
}

/* Make the container take up full width */
.vibejam-updates .updates-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Fill parent container */
.twitter-feed {
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .masonry-item {
    width: 48%; /* Two columns for medium screens with less gutter */
    margin-bottom: 15px;
  }
}

@media (max-width: 600px) {
  .masonry-item {
    width: 100%; /* Single column for small screens */
  }
  
  .tweet {
    padding: 10px;
  }
}

/* Add loading state for tweets */
.tweet.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    var(--cabinet-bg) 0%, 
    rgba(153, 0, 255, 0.1) 50%, 
    var(--cabinet-bg) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}


  
  .updates-container {
    background-color: var(--cabinet-bg);
    border: var(--pixel-border) solid var(--neon-purple);
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(153, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .updates-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    animation: scanline 3s linear infinite;
  }
  
  .updates-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: clamp(12px, 2vw, 16px);
    transition: all 0.3s ease;
  }
  
  .updates-text {
    text-shadow: 0 0 5px var(--neon-blue);
  }
  
  .arrow {
    color: var(--neon-pink);
    font-size: 1.5em;
    transition: transform 0.3s ease;
  }
  
  .updates-link:hover .updates-text {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
  }
  
  .updates-link:hover .arrow {
    transform: translateX(5px);
  }
  
  @keyframes scanline {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }
  
  /* Top Vibes Styling */
  .top-vibe {
    grid-column: span 4; /* 3 per row for top games */
    border: var(--pixel-border) solid var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-blue);
    z-index: 1;
  }
  
  /* Create a separate top vibes container */
  .top-vibes-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 25px;
  }
  
  .top-vibe-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--neon-pink);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    transform: rotate(15deg);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  /* Make top games larger */
  .top-vibe .cabinet-title {
    font-size: 21px; /* Larger title for top games (1.333333 times 16px) */
  }
  
  .top-vibe .rank-indicator {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .top-vibe .vibe-count {
    font-size: 19px; /* Larger count for top games (1.333333 times 14px) */
  }
  
  /* Hall of Judges */
  .hall-of-judges {
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 20px;
    background-color: var(--cabinet-bg);
    border: var(--pixel-border) solid var(--neon-blue);
  }
  
  .hall-of-judges h2 {
    text-align: center;
    color: var(--neon-blue);
    margin-bottom: 20px;
    font-size: clamp(16px, 3vw, 20px);
  }
  
  .high-scores {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .score-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 2px dashed var(--neon-purple);
  }
  
  .rank {
    color: var(--neon-pink);
    width: 50px;
  }
  
  .handle {
    flex-grow: 1;
    text-align: left;
    padding-left: 20px;
  }
  
  .handle a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  .handle a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple);
  }
  
  .score {
    color: var(--neon-blue);
    width: 80px;
    text-align: right;
  }
  
  /* Sponsor Marquee */
  .sponsor-marquee {
    background-color: var(--cabinet-bg);
    padding: 15px 0;
    overflow: hidden;
    border-top: 2px solid var(--neon-purple);
    border-bottom: 2px solid var(--neon-purple);
  }
  
  .marquee-content {
    display: flex;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
  }
  
  .marquee-content span {
    margin: 0 20px;
    font-size: 14px;
  }
  
  .sponsor {
    color: var(--neon-pink);
  }
  
  .sponsor a {
    color: var(--neon-pink);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  .sponsor a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple);
  }
  
  /* Update the marquee to pause on hover */
  .sponsor-marquee:hover .marquee-content {
    animation-play-state: paused;
  }
  
  .glitch {
    color: var(--neon-pink);
    animation: glitch 0.5s infinite;
    position: relative;
  }

  /* Style for each firework pixel */
  .firework-pixel {
    position: absolute;
    width: 4px; /* Default, overridden in JS */
    height: 4px;
    background-color: var(--neon-pink);
    border-radius: 0; /* Square pixels */
    animation: explode 3s ease-out forwards;
  }
  
  @keyframes explode {
    0% {
      transform: translate(0, 0) scale(1);
      opacity: 1;
    }
    50% {
      transform: translate(calc(var(--speed) * cos(var(--angle)) * 0.5), calc(var(--speed) * sin(var(--angle)) * 0.5)) scale(1.5);
      opacity: 1;
    }
    100% {
      transform: translate(calc(var(--speed) * cos(var(--angle))), calc(var(--speed) * sin(var(--angle)))) scale(0);
      opacity: 0;
    }
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
  }
  
  .modal-content {
    background-color: var(--cabinet-bg);
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border: var(--pixel-border) solid var(--neon-blue);
    position: relative;
    animation: modalOpen 0.4s;
  }
  
  .close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--neon-blue);
    z-index: 1000;
  }
  
  .close-button:hover {
    color: white;
  }
  
  .top-vibe-banner {
    display: none;
    background-color: var(--neon-pink);
    color: white;
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    transform: rotate(-2deg);
    font-size: 18px;
  }
  
  .modal-screenshots {
    margin: 20px 0;
    text-align: center;
  }
  
  .modal-screenshots img {
    max-width: 100%;
    border: 2px solid var(--neon-purple);
  }
  
  .modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
  }

/* Modal Tags */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    }
  
  .play-button,
  .vibe-button {
    padding: 12px 25px;
    font-family: "Press Start 2P", cursive;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .play-button {
    background-color: var(--neon-blue);
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
  }
  
  .vibe-button {
    background-color: var(--neon-pink);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .play-button:hover,
  .vibe-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px currentColor;
  }
  
  /* Animations */
  @keyframes flicker {
    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
      opacity: 1;
    }
    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
      opacity: 0.8;
    }
  }
  
  @keyframes glitch {
    0%,
    100% {
      transform: translate(0);
    }
    20% {
      transform: translate(-2px, 2px);
    }
    40% {
      transform: translate(-2px, -2px);
    }
    60% {
      transform: translate(2px, 2px);
    }
    80% {
      transform: translate(2px, -2px);
    }
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  @keyframes modalOpen {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .heart-pulse {
    animation: pulse 0.5s;
  }

  #sprite-container {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  
  .pixel-sprite {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: pointer;
    pointer-events: auto;
    animation: float 2s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 5px var(--neon-blue));
  }
  
  .pixel-sprite svg {
    width: 100%;
    height: 100%;
  }
  
  .pixel-sprite span {
    position: absolute;
    color: var(--neon-pink);
    font-size: 14px;
    white-space: nowrap;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation: float-up 1s forwards;
    pointer-events: none;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-10px);
    }
  }
  
  @keyframes float-up {
    0% {
      opacity: 1;
      transform: translate(-50%, 0);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -30px);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 1100px) {
    .cabinet-grid,
    .top-vibes-container {
      gap: 20px;
    }
  }
  
  @media (max-width: 900px) {
    .cabinet-grid,
    .top-vibes-container {
      grid-template-columns: repeat(8, 1fr);
    }
  
    .cabinet {
      grid-column: span 4; /* 2 per row */
    }
  
    .top-vibe {
      grid-column: span 4; /* 2 per row */
    }
  }
  @media (max-width: 768px) {
    .neon-title {
        /* Reduce glow intensity for better readability on mobile */
        text-shadow: 0 0 3px var(--neon-pink), 0 0 4px var(--neon-pink), 0 0 8px var(--neon-blue);
        letter-spacing: 1px;
        line-height: 1.6;
        padding: 10px;
        border-radius: 4px;
        /* Ensure text doesn't break awkwardly */
        word-spacing: 0.1em;

    }
    .glitch-tagline {
        line-height: 2; /* Even more line spacing on mobile */
        margin-top: 15px; /* Add more space between title and tagline */
        padding: 5px 0; /* Add some vertical padding */
      }
    
    /* Adjust arcade header padding */
    .arcade-header {
        padding: 25px 15px;
    }
  }
  
  @media (max-width: 600px) {
    .cabinet-grid,
    .top-vibes-container {
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
    }
  
    .cabinet {
      grid-column: span 4; /* 1 per row */
    }
  
    .top-vibe {
      grid-column: span 4; /* 1 per row */
    }
    .sort-controls, .filter-controls {
        flex-direction: row;
        align-items: center;
      }
      
      .control-button {
        font-size: 10px;
        padding: 6px 10px;
      }
      .controls-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
      
      .filter-section {
        margin-left: 0;
        width: 100%;
      }
      
      .filter-toggle {
        width: 100%;
        justify-content: space-between;
      }
  }
  
  @media (max-width: 480px) {
    .neon-title {
        font-size: clamp(20px, 4.5vw, 24px);
        /* Further reduce glow for smallest screens */
        text-shadow: 0 0 1px var(--neon-pink), 0 0 3px var(--neon-pink), 0 0 5px var(--neon-blue);
        padding: 8px;
        /* Use a solid color with less glow on smallest screens */
        color: #ff40ff;
      }
      
      /* Break the title into multiple lines if needed */
      .arcade-header h1.neon-title {
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
      }

    .cabinet-grid,
    .top-vibes-container {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  
    .cabinet {
      grid-column: span 1;
    }
  
    .top-vibe {
      grid-column: span 1;
    }
  }
  
  