/* Remove manual @font-face declarations - let Google Fonts handle it */

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    font-family: 'Press Start 2P', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    cursor: default;
}

/* Red cursor for hovering over enemies/asteroids */
body.cursor-red {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="7" fill="none" stroke="red" stroke-width="2"/><circle cx="8" cy="8" r="2" fill="red"/></svg>') 8 8, auto;
}


h2 {
    margin-bottom: 0;
}

canvas {
    display: block;
    background-color: #000;
    /* Debug: Ensure canvas is visible */
    position: relative;
    z-index: 1;
    cursor: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 3V7M12 17V21M3 12H7M17 12H21M12 12H12.01M19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5C15.866 5 19 8.13401 19 12Z" stroke="%230ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') 12 12, crosshair;
}

canvas.asteroid-hover {
    cursor: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 12C21 16.9706 16.9706 21 12 21M21 12C21 7.02944 16.9706 3 12 3M21 12H17M12 21C7.02944 21 3 16.9706 3 12M12 21V17M3 12C3 7.02944 7.02944 3 12 3M3 12H7M12 3V7M12 12H12.01" stroke="%23ff0000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') 12 12, crosshair;
}

.ui-element {
    position: absolute;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    z-index: 10;
}

#score {
    position: absolute;
    top: 30px;
    left: 270px; /* Position to the right of the health bar */
    font-size: 12px;
    color: #FFD700;
    z-index: 10;
    display: none; /* Hidden since money is now rendered on canvas */
}

#game-message-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 50;
    pointer-events: none;
    text-align: center;
}

.message-title {
    font-size: 48px;
    text-shadow: 0 0 15px #f0f;
    animation: pulse 1.5s ease-in-out infinite;
}

.message-subtitle {
    font-size: 20px;
    margin-top: 20px;
    line-height: 1.5;
}

#pause-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    pointer-events: all;
    z-index: 100;
}

#pause-menu {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.pause-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.pause-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    transition: all 0.2s;
}

.pause-tab.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ff00;
}

.pause-tab-content {
    display: none;
    font-size: 16px;
    line-height: 2.5;
    text-align: left;
}

.pause-tab-content.active {
    display: block;
}

.pause-tab-content h2 {
    margin-top: 0;
    font-size: 28px;
    text-align: center;
}

#customize-button {
    display: block;
    margin: 20px auto 0;
    padding: 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: white;
    background: #333;
    border: 2px solid white;
    cursor: pointer;
}

#customize-button:hover {
    background: #555;
}

#scanline-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: linear-gradient( to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50% );
    background-size: 100% 4px;
    animation: scanline 10s linear infinite;
    z-index: 500; /* Above title screen */
}

#mobile-controls {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
}

.control-button {
    position: absolute;
    width: 16vmin;
    height: 16vmin;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8vmin;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all;
    box-sizing: border-box; 
    transition: transform 0.05s ease-out;
}

.control-button:active,
.control-button.pressed {
    background-color: #eee !important;
    color: #333 !important;
    border-color: #bbb !important;
}

.control-symbol {
    font-size: 1.5rem;
}

#joystick-area {
    position: absolute;
    width: 44vmin;
    height: 44vmin;
    left: 5%;
    bottom: 5%;
    pointer-events: all;
    z-index: 201;
}

#joystick-base {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

#joystick-handle {
    position: absolute;
    width: 16vmin;
    height: 16vmin;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

#touch-fire {
    position: absolute;
    right: 18%;
    bottom: 18%;
    width: 20vmin; /* was 16vmin */
    height: 20vmin; /* was 16vmin */
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10vmin; /* was 8vmin */
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all;
    box-sizing: border-box;
    transition: transform 0.05s ease-out;
    z-index: 201;
}
#touch-thrust {
    position: absolute;
    right: 5%;
    bottom: 5%;
    width: 16vmin;
    height: 16vmin;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8vmin;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all;
    box-sizing: border-box;
    transition: transform 0.05s ease-out;
    z-index: 201;
}
#touch-fire:active {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}
#touch-thrust:active {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

#touch-tractor {
    position: absolute;
    right: 5%;
    bottom: 28%;
    width: 16vmin;
    height: 16vmin;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8vmin;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all;
    box-sizing: border-box;
    transition: transform 0.05s ease-out;
    z-index: 201;
}
#touch-tractor:active,
#touch-tractor.pressed {
    background-color: #eee !important;
    color: #333 !important;
    border-color: #bbb !important;
}



#customization-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 300;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: all;
}

#customization-overlay h2 { 
    font-size: 24px; 
    margin-bottom: 15px; 
}

#customization-overlay p { 
    font-size: 16px; 
    max-width: 80%; 
    margin-bottom: 30px; 
    line-height: 1.5; 
}

#customization-overlay .draggable {
    border: 2px dashed #f0f;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: #f0f; }
    50% { border-color: #0ff; }
    100% { border-color: #f0f; }
}

#save-layout-button {
     margin-top: 30px;
     padding: 15px 30px;
     font-family: 'Press Start 2P',  monospace;
     font-size: 18px;
     color: black;
     background: white;
     border: 2px solid white;
     cursor: pointer;
}

#loading-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000;
    z-index: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Press Start 2P',  monospace;
}

#loading-screen h1 {
    font-size: 8vmin;
    margin-bottom: 60px;
    text-align: center;
    animation: color-cycle 10s linear infinite;
}

#loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#loading-bar {
    width: 300px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

#loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00F, #4B0082, #8A2BE2, #FF00FF, #FF4500, #F00);
    width: 0%;
    transition: width 0.3s ease-out;
    border-radius: 8px;
}

#loading-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

#title-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent for debugging */
    z-index: 400;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#game-title {
    font-size: 10vmin;
    text-align: center;
}

.title-char {
    display: inline-block;
    position: relative;
    animation: color-cycle 10s linear infinite, wave 2s ease-in-out infinite;
}

#start-prompt {
    font-size: 2.5vmin;
    animation: pulse-opacity 2s ease-in-out infinite;
    margin-top: 40px;
}

#high-score-display {
    margin-top: 20px;
    font-size: 2vmin;
    color: #ffd700;
    text-shadow: 0 0 8px #ffd700;
}

#orientation-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    color: #fff;
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

#orientation-overlay p {
    max-width: 80%;
}

.rotate-icon {
    font-size: 64px;
    transform: rotate(-90deg);
    margin-bottom: 20px;
}

#energy-bar-row {
    position: absolute;
    top: 18px;
    left: 24px;
    display: flex;
    align-items: center;
    z-index: 90;
}

#energy-bar-container {
    position: relative;
    width: 220px;
    height: 16px;
    background: rgba(64,64,64,0.5);
    border-radius: 3px;
    margin-left: 45px;
}

#energy-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
}
#energy-value {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1em;
    font-weight: bold;
    color: #00ff00;
    text-shadow: none;
    width: 36px;
    display: block;
    text-align: right;
    transition: color 0.2s;
}
/* Critical/flashing effects removed */

/* Music Info Display */
#music-info {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 250px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 10px;
    z-index: 90;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#track-name {
    height: 30px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

#track-name-text {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Silkscreen', 'Press Start 2P', 'Courier New', monospace;
    font-size: 18px;
    color: #00ff00;
    line-height: 30px;
}

#current-track-name .marquee-text {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 18px;
    color: #00ff00;
    line-height: 30px;
    position: relative;
}



#music-info-progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#music-info-current-time,
#music-info-duration {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    min-width: 35px;
}

#music-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

#music-progress {
    height: 100%;
    background: #0088ff;
    width: 0%;
    transition: width 0.1s;
}

#pause-button {
    position: absolute;
    top: 105px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    z-index: 90;
}

#pause-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Music Player Styles */
#music-player {
    margin-top: 0;
}

#current-track-name {
    margin-bottom: 20px;
    padding: 0 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 30px;
    text-align: center;
    box-sizing: border-box;
}

#music-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#music-player-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

#music-player-progress {
    height: 100%;
    background: #0088ff;
    width: 0%;
    transition: width 0.1s;
}

#music-current-time,
#music-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    min-width: 45px;
}

#music-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.music-main-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.music-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.music-control-btn.large {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.music-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.music-control-btn.active {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
}

.music-control-btn.left {
    margin-right: auto;
}

.music-control-btn.right {
    margin-left: auto;
}

/* Playlist Styles */
#playlist-container {
    margin-top: 20px;
}

#playlist-container h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #00ff00;
    text-align: center;
}

#playlist-tracks {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

#playlist-tracks::-webkit-scrollbar {
    width: 8px;
}

#playlist-tracks::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#playlist-tracks::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#playlist-tracks::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.playlist-track {
    padding: 0 15px;
    cursor: pointer;
    font-family: 'Silkscreen', monospace;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s;
    position: relative;
}

.playlist-track.has-marquee {
    text-overflow: clip; /* Remove ellipsis when marquee is active */
}

.playlist-track-content {
    display: inline-block;
    white-space: nowrap;
    transition: none; /* No transition for smooth marquee */
}

.playlist-track:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-track:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.playlist-track:hover {
    background: rgba(0, 136, 255, 0.3);
    color: #fff;
}

.playlist-track.playing {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    font-weight: bold;
}

.playlist-track.playing:not(.has-marquee)::before {
    content: "♪ ";
    margin-right: 5px;
}

#shield-tanks {
    position: absolute;
    top: 40px;
    left: 24px;
    margin-left: 45px;
    display: flex;
    gap: 2px;
    z-index: 90;
}

.shield-tank {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: rgba(0,255,0,0.8);
    transition: background 0.2s;
}

/* Remove duplicate marquee styles */

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    #mobile-controls {
        display: block;
    }
    #score { 
        font-size: 18px; 
    }
    /* Hide music info box on mobile - takes up too much space */
    #music-info {
        display: none;
    }
}

@keyframes scanline {
    from { background-position: 0 0; }
    to { background-position: 0 -40px; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes color-cycle {
    0%   { color: #00F; text-shadow: 0 0 15px #00F; }
    16%  { color: #4B0082; text-shadow: 0 0 15px #4B0082; }
    32%  { color: #8A2BE2; text-shadow: 0 0 15px #8A2BE2; }
    48%  { color: #FF00FF; text-shadow: 0 0 15px #FF00FF; }
    64%  { color: #FF4500; text-shadow: 0 0 15px #FF4500; }
    80%  { color: #F00; text-shadow: 0 0 15px #F00; }
    100% { color: #00F; text-shadow: 0 0 15px #00F; }
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* SFX Volume Slider */
#sfx-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 4px;
    cursor: pointer;
}

#sfx-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ff00;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#sfx-volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ff00;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#sfx-volume-value {
    color: #00ff00;
    font-size: 14px;
}

/* Music Volume Slider */
#music-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 4px;
    cursor: pointer;
}

#music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0088ff;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#music-volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #0088ff;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#music-volume-value {
    color: #0088ff;
    font-size: 14px;
}

/* Sound Effect Toggles */
#sfx-toggles {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

#sfx-toggles::-webkit-scrollbar {
    width: 8px;
}

#sfx-toggles::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#sfx-toggles::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#sfx-toggles::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sfx-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    transition: background 0.2s;
}

.sfx-toggle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.sfx-toggle:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.sfx-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sfx-toggle-label {
    font-family: 'Silkscreen', monospace;
    font-size: 18px;
    text-transform: capitalize;
}

.sfx-toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.sfx-toggle-switch.active {
    background: #00ff00;
}

.sfx-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.sfx-toggle-switch.active::after {
    transform: translateX(20px);
}

.sfx-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfx-test-button,
.sfx-reroll-button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}

.sfx-test-button:hover,
.sfx-reroll-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.sfx-test-button:active,
.sfx-reroll-button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

.sfx-test-button {
    background: rgba(0, 200, 255, 0.2);
    border-color: rgba(0, 200, 255, 0.5);
}

.sfx-test-button:hover {
    background: rgba(0, 200, 255, 0.3);
    border-color: rgba(0, 200, 255, 0.7);
}

.sfx-reroll-button {
    background: rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.5);
}

.sfx-reroll-button:hover {
    background: rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.7);
} 

#music-repeat {
    position: relative;
}

#music-repeat.repeat-one::after {
    content: '1';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: white;
    color: #00ccff;
    border-radius: 50%;
    font-size: 11px;
    font-family: 'Silkscreen', 'Press Start 2P', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    z-index: 2;
    border: 2px solid #00ccff;
    pointer-events: none;
} 