/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, input, select, button {
    font-family: 'Orbitron', 'Exo 2', 'Arial', sans-serif;
}

body {
    font-family: 'Orbitron', 'Exo 2', 'Arial', sans-serif;
    background: #000 url('public/images/Vaporfuturism_05.jpg') center center / cover no-repeat fixed;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Dark overlay for gameplay readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 0;
}

/* Game Container */
#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    z-index: 1;
}

/* Game Header */
.game-header {
    position: fixed;
    top: 22px;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.game-title {
    position: absolute;
    left: 20px;
}

.header-score {
    display: block;
    font-size: 1.5em;
    font-weight: 900;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.pause-button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(78, 205, 196, 0.2);
    border: 2px solid #4ECDCC;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4ECDCC;
    backdrop-filter: blur(5px);
}

.pause-button:hover {
    background: rgba(78, 205, 196, 0.3);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.pause-button:active {
    transform: translateY(-50%) scale(0.95);
}

.pause-button.hidden {
    display: none;
}

.game-title {
    font-size: 2em;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #00ffff;
    text-shadow: 2px 2px 0px #000;
}

.game-subtitle {
    font-size: 0.8em;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    color: #4ecdc4;
    margin-top: -5px;
}

.game-stats {
    display: none;
}

.game-stats > div {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Start Screen - DDR Style */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000 url('public/images/Vaporfuturism_05.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

/* Dark overlay for readability */
.start-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 0;
}

.ddr-menu-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    position: relative;
    z-index: 1;
}

/* Left Panel */
.menu-left-panel {
    flex: 1;
    max-width: 45%;
    min-width: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    background: linear-gradient(90deg, rgba(0,30,60,0.2) 0%, transparent 100%);
    overflow: hidden;
}

.game-logo h1 {
    font-size: 3em;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 2px 2px 0px #000;
    margin: 0;
    letter-spacing: 4px;
}

.logo-subtitle {
    font-size: 0.7em;
    color: #ff0080;
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 10px;
    text-shadow:
        0 0 5px #ff0080,
        2px 2px 0px #000;
}

.song-details {
    background: rgba(0,0,0,0.4);
    border: 2px solid #00ffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 0 20px rgba(0,255,255,0.3),
        inset 0 0 20px rgba(0,255,255,0.05);
    backdrop-filter: blur(10px);
}

.detail-label {
    font-size: 0.9em;
    color: #ff0080;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.song-title-wrapper {
    overflow: hidden;
    width: 100%;
    margin-bottom: 10px;
}

.selected-song-title {
    font-size: 1.5em;
    color: #fff;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px #000;
    white-space: nowrap;
    display: inline-block;
}

.selected-song-artist {
    font-size: 1.1em;
    color: #00ffff;
    font-weight: 600;
    letter-spacing: 2px;
}

.difficulty-display {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(0,255,255,0.3);
}

.difficulty-label {
    font-size: 0.85em;
    color: #ff0080;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.difficulty-bars {
    display: flex;
    gap: 6px;
}

.difficulty-bars .bar {
    width: 30px;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
}

.difficulty-bars .bar.filled {
    background: linear-gradient(to bottom, #ff00ff 0%, #ff0080 100%);
    border-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255,0,255,0.5);
}

.controls-info-ddr {
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(0,255,255,0.3);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.control-line {
    font-size: 1.1em;
    color: #fff;
    margin: 12px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.arrow-key {
    display: inline-block;
    background: rgba(0,255,255,0.2);
    border: 2px solid #00ffff;
    padding: 4px 12px;
    margin-right: 10px;
    color: #00ffff;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.start-button-ddr {
    background: linear-gradient(to bottom, #ff0080 0%, #ff0040 100%);
    border: 4px solid #fff;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.4em;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow:
        0 0 20px rgba(255,0,128,0.6),
        0 5px 0px #800040,
        0 8px 15px rgba(0,0,0,0.5);
    position: relative;
    text-shadow: 2px 2px 0px #000;
}

.start-button-ddr:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 30px rgba(255,0,128,0.8),
        0 8px 0px #800040,
        0 12px 20px rgba(0,0,0,0.6);
}

.start-button-ddr:active {
    transform: translateY(2px);
    box-shadow:
        0 0 20px rgba(255,0,128,0.6),
        0 2px 0px #800040,
        0 4px 10px rgba(0,0,0,0.5);
}

.credits {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255,255,255,0.6);
}

.credits a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.2s;
}

.credits a:hover {
    color: #ff0080;
}

/* Mobile-only elements - hidden on desktop */
.mobile-song-info,
.mobile-start-button-ddr,
.mobile-credits {
    display: none;
}

/* Right Panel - Song Wheel */
.menu-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: linear-gradient(270deg, rgba(0,30,60,0.2) 0%, transparent 100%);
    position: relative;
}

.song-wheel-container {
    width: 100%;
    height: 500px;
    position: relative;
}

/* Fade masks at top and bottom */
.song-wheel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%); */
    z-index: 20;
    pointer-events: none;
}

/* .song-wheel-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 20;
    pointer-events: none;
} */

.wheel-selector-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 90px;
    transform: translateY(-50%);
    background: rgba(255,0,128,0.08);
    border-top: 2px solid rgba(255,0,128,0.6);
    border-bottom: 2px solid rgba(255,0,128,0.6);
    box-shadow:
        0 0 30px rgba(255,0,128,0.3),
        inset 0 0 30px rgba(255,0,128,0.05);
    z-index: 10;
    pointer-events: none;
}

.song-wheel {
    height: 100%;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to bottom,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%);
}

.song-item {
    position: absolute;
    width: 100%;
    height: 80px;
    left: 0;
    padding: 12px 30px 18px 30px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(0,255,255,0.4);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.song-item:hover {
    background: rgba(0,255,255,0.1);
    border-color: rgba(0,255,255,0.6);
}

.song-item.selected {
    background: rgba(255,0,128,0.15);
    border: 3px solid #ff0080;
    box-shadow:
        0 0 20px rgba(255,0,128,0.6),
        inset 0 0 20px rgba(255,0,128,0.15);
}

.song-item .song-title {
    font-size: 1.2em;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px #000;
    margin-bottom: 4px;
}

.song-item .song-artist {
    font-size: 0.75em;
    color: #00ffff;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Game Area */
.game-area {
    flex: 1;
    display: flex;
    padding-top: 92px;
    position: relative;
    justify-content: center;
    overflow: hidden;
}

/* Left Posts */
.left-posts-container {
    width: 15%;
    height: 100%;
    padding: 20px 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Down Posts */
.down-posts-container {
    width: 15%;
    height: 100%;
    padding: 20px 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Up Posts */
.up-posts-container {
    width: 15%;
    height: 100%;
    padding: 20px 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Right Posts */
.right-posts-container {
    width: 15%;
    height: 100%;
    padding: 20px 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.left-post-card, .down-post-card, .up-post-card, .right-post-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 6px;
    position: absolute;
    width: calc(100% - 20px);
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(5px);
    animation: post-rise-full 3.34s linear forwards;
    will-change: bottom;
    bottom: -300px; /* Start fully below viewport like arrows */
    transition: background 0.2s ease, border-color 0.2s ease;
}

.left-post-card:hover, .down-post-card:hover, .up-post-card:hover, .right-post-card:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.8);
}

.left-post-card .post-author {
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 3px;
    font-size: 0.45em;
    font-family: 'Exo 2', 'Arial', sans-serif;
}

.left-post-card .post-text {
    line-height: 1.2;
    font-size: 0.45em;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-family: 'Exo 2', 'Arial', sans-serif;
}

.left-post-card .post-author {
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 3px;
    font-size: 0.45em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.left-post-card .post-text .keyword {
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    margin: 0 2px;
    font-size: 2em; /* 2x bigger than normal text */
    display: inline-block;
    vertical-align: middle;
}

.left-post-card .post-text .keyword.left {
    background: #ff6b6b;
    color: white;
}

.left-post-card .post-text .keyword.right {
    background: #4ecdc4;
    color: white;
}

.left-post-card .post-text .keyword.up {
    background: #45b7d1;
    color: white;
}

.left-post-card .post-text .keyword.down {
    background: #ffd93d;
    color: black;
}

/* Shared post card text styling for all containers */
.down-post-card .post-author,
.up-post-card .post-author,
.right-post-card .post-author {
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 3px;
    font-size: 0.45em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Exo 2', 'Arial', sans-serif;
}

.down-post-card .post-text,
.up-post-card .post-text,
.right-post-card .post-text {
    line-height: 1.2;
    font-size: 0.45em;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-family: 'Exo 2', 'Arial', sans-serif;
}

.down-post-card .post-text .keyword,
.up-post-card .post-text .keyword,
.right-post-card .post-text .keyword {
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    margin: 0 2px;
    font-size: 2em; /* 2x bigger than normal text */
    display: inline-block;
    vertical-align: middle;
}

.down-post-card .post-text .keyword.left,
.up-post-card .post-text .keyword.left,
.right-post-card .post-text .keyword.left {
    background: #ff6b6b;
    color: white;
}

.down-post-card .post-text .keyword.right,
.up-post-card .post-text .keyword.right,
.right-post-card .post-text .keyword.right {
    background: #4ecdc4;
    color: white;
}

.down-post-card .post-text .keyword.up,
.up-post-card .post-text .keyword.up,
.right-post-card .post-text .keyword.up {
    background: #45b7d1;
    color: white;
}

.down-post-card .post-text .keyword.down,
.up-post-card .post-text .keyword.down,
.right-post-card .post-text .keyword.down {
    background: #ffd93d;
    color: black;
}

.hidden {
    display: none !important;
}

/* Tracks Container - 20% width */
.tracks-container {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    height: 100%;
}

.track {
    width: 100px;
    height: 100%;
    margin: 0 8px;
    position: relative;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px; /* Extra space at top for target zone images */
}

.target-zone {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    /* background: rgba(255, 0, 0, 0.2); */
    /* border: 2px solid rgba(255, 0, 0, 0.5); */
    outline: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    z-index: 10;
    overflow: visible;
}

.arrows-lane {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    overflow: hidden;
}

/* Arrow Styles */
.arrow {
    position: absolute;
    width: 100px;
    height: auto;
    min-height: 100px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    animation:
        arrow-rise 3s linear forwards,
        arrow-fade 3.1s linear forwards;
    transition: none;
    will-change: bottom;
    backface-visibility: hidden;
    image-rendering: crisp-edges;
    bottom: -300px; /* Start fully below viewport - extra space for long arrows */
}

/* Holding state visual feedback */
.arrow.holding {
    filter: brightness(1.5) drop-shadow(0 0 15px rgba(255, 255, 0, 0.8));
    animation:
        arrow-rise 3s linear forwards,
        arrow-fade 3.1s linear forwards,
        hold-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes hold-pulse {
    0% {
        filter: brightness(1.5) drop-shadow(0 0 15px rgba(255, 255, 0, 0.6));
    }
    100% {
        filter: brightness(1.8) drop-shadow(0 0 25px rgba(255, 255, 0, 1));
    }
}

.arrow img {
    width: 70px;
    height: 70px;
    /* Removed glow - clean arrows like original DDR */
}

/* Long Press Arrow Styles */
.arrow.long-press {
    position: relative;
    /* Extend height to accommodate longer trails */
    height: auto;
}

.long-press-container {
    position: relative;
    width: 70px;
    height: auto;
    display: block;
}

.long-press-container .arrow-head {
    position: relative;
    width: 70px;
    height: 70px;
    z-index: 10;
    top: 0;
    display: block;
}

.long-press-container .arrow-trail {
    position: absolute;
    width: 70px;
    height: 70px;
    z-index: 5;
    left: 0;
}

.long-press-container .arrow-tail {
    position: absolute;
    width: 70px;
    height: 70px;
    z-index: 1;
    left: 0;
    opacity: 0.9;
}

/* Hold note styles removed - clean arrows only */
@keyframes arrow-fade {
    0% {

        opacity: 1;
    }

    99% {
        opacity: 1;
    }

    100% {

        opacity: 0;
    }
}

@keyframes arrow-rise {
    0% {
        bottom: -300px; /* Start fully below viewport - extra space for long arrows */
        filter: blur(0px);
        opacity: 1;
    }
    5% {
        filter: blur(0.5px);
    }
    95% {
        filter: blur(0.5px);
        opacity: 1;
    }
    100% {
        bottom: calc(100% - 75px); /* Travel to target zone at top of track */
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes post-rise-full {
    0% {
        bottom: -300px; /* Start fully below viewport - same as arrows */
        filter: blur(0px);
        opacity: 1;
    }

    100% {
        bottom: calc(100% - 5px); /* Same end position as arrows for perfect sync */
        filter: blur(0px);
        opacity: 1;
    }
}

/* Mobile-specific arrow animation */
@keyframes arrow-rise-mobile {
    0% {
        bottom: -300px; /* Start fully below viewport */
        filter: blur(0px);
        opacity: 1;
    }
    5% {
        filter: blur(0.5px);
    }
    95% {
        filter: blur(0.5px);
    }
    100% {
        bottom: calc(100% - 75px); /* Travel to target zone at top of track */
        filter: blur(0px);
        opacity: 1;
    }
}

/* Post Cards (Desktop) */
.post-cards-container {
    width: 300px;
    height: 100%;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.post-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    overflow: hidden;

    margin-bottom: 10px;
    position: absolute;
    right: 20px;
    width: 280px;
    backdrop-filter: blur(5px);
    animation: post-rise 3s linear forwards;
}

.post-card .post-author {
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-family: 'Exo 2', 'Arial', sans-serif;
}

.post-card .post-text {
    line-height: 1.4;
    font-size: 0.9em;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-family: 'Exo 2', 'Arial', sans-serif;
}

.post-card .post-text .keyword {
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    margin: 0 1px;
}

.post-card .post-text .keyword.left {
    background: #ff6b6b;
    color: white;
}

.post-card .post-text .keyword.right {
    background: #4ecdc4;
    color: white;
}

.post-card .post-text .keyword.up {
    background: #45b7d1;
    color: white;
}

.post-card .post-text .keyword.down {
    background: #ffd93d;
    color: black;
}

@keyframes post-rise {
    from {
        bottom: -100px;
    }
    to {
        bottom: calc(100% - 120px);
    }
}

/* Mobile Post Display */
.mobile-post-display {
    position: fixed;
    bottom: 120px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 80;
}

.mobile-post-display.show {
    opacity: 1;
    transform: translateY(-40px);
}

.mobile-post-display .post-author {
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-family: 'Exo 2', 'Arial', sans-serif;
}

.mobile-post-display .post-text {
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-family: 'Exo 2', 'Arial', sans-serif;
}

.mobile-post-display .post-text .keyword {
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    margin: 0 1px;
}

.mobile-post-display .post-text .keyword.left {
    background: #ff6b6b;
    color: white;
}

.mobile-post-display .post-text .keyword.right {
    background: #4ecdc4;
    color: white;
}

.mobile-post-display .post-text .keyword.up {
    background: #45b7d1;
    color: white;
}

.mobile-post-display .post-text .keyword.down {
    background: #ffd93d;
    color: black;
}

/* Mobile Controls */
.mobile-controls {
    position: fixed;
    bottom: 120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    z-index: 100;
}

/* Hide mobile controls when start screen is showing */
.start-screen:not(.hidden) ~ * .mobile-controls,
body:has(.start-screen:not(.hidden)) .mobile-controls {
    display: none !important;
}

.control-btn {
    width: 100px;
    height: 80px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.control-btn:active,
.control-btn.active {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ECDCC;
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
}

.control-arrow {
    width: 50px;
    height: 50px;
    opacity: 0.5;
    transition: opacity 0.1s ease;
    image-rendering: crisp-edges;
    pointer-events: none;
}

.control-btn:active .control-arrow,
.control-btn.active .control-arrow {
    opacity: 0.8;
}

.left-control {
    filter: hue-rotate(0deg);
    transform: rotate(-90deg);
}

.down-control {
    filter: hue-rotate(45deg);
    transform: rotate(180deg);
}

.up-control {
    filter: hue-rotate(180deg);
    transform: rotate(0deg);
}

.right-control {
    filter: hue-rotate(120deg);
    transform: rotate(90deg);
}

/* Feedback Display */
.feedback-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    pointer-events: none;
}

.feedback-text {
    font-size: 3em;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: feedback-pop 0.4s ease-out forwards;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.feedback-text.perfect {
    color: #ffd93d;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.8);
}

.feedback-text.marvelous {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
}

.feedback-text.great {
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
}

.feedback-text.good {
    color: #45b7d1;
    text-shadow: 0 0 20px rgba(69, 183, 209, 0.8);
}

.feedback-text.boo {
    color: #666;
    text-shadow: 0 0 20px rgba(102, 102, 102, 0.8);
}

@keyframes feedback-pop {
    0% {
        transform: scale(0) rotate(-5deg);
        opacity: 0;
    }
    30% {
        transform: scale(1.3) rotate(2deg);
        opacity: 1;
    }
    60% {
        transform: scale(1.1) rotate(-1deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0;
    }
}

/* Score Display - Hidden on desktop, shown on mobile */
.score-display {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Menu Layout */
    .ddr-menu-container {
        flex-direction: column;
        padding-top: 90px;
        padding-bottom: 20px;
    }

    .menu-left-panel {
        display: none;
    }

    /* Mobile Title */
    .ddr-menu-container::before {
        content: 'BBR';
        position: fixed;
        top: 25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2.5em;
        font-weight: 900;
        color: #00ffff;
        text-shadow: 2px 2px 0px #000;
        letter-spacing: 4px;
        z-index: 1001;
    }

    .ddr-menu-container::after {
        content: 'BLUESKY BLUESKY REVOLUTION';
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75em;
        font-weight: 700;
        color: #ff0080;
        text-shadow: 2px 2px 0px #000;
        letter-spacing: 2px;
        z-index: 1001;
        white-space: nowrap;
    }

    .menu-right-panel {
        flex: 1;
        padding: 0 15px 45px 15px;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    .song-wheel-container {
        flex: 1;
        width: 100%;
        max-height: 450px;
        margin-top: 10px;
    }

    .start-button-ddr {
        display: none !important;
    }

    .credits {
        display: none;
    }

    /* Mobile-only elements */
    .mobile-song-info {
        display: block;
        width: 100%;
        max-width: 500px;
        background: rgba(0,0,0,0.4);
        border: 2px solid #00ffff;
        border-radius: 20px;
        padding: 12px 20px;
        backdrop-filter: blur(10px);
        text-align: center;
    }

    .mobile-song-title-wrapper {
        overflow: hidden;
        width: 100%;
        margin-bottom: 10px;
    }

    .mobile-selected-song {
        font-size: 1.3em;
        font-weight: 900;
        color: #fff;
        letter-spacing: 1px;
        text-shadow: 2px 2px 0px #000;
        white-space: nowrap;
        display: inline-block;
    }

    .mobile-length-display {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .mobile-length-label {
        font-size: 0.85em;
        color: #ff0080;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .mobile-difficulty-bars {
        display: flex;
        gap: 4px;
    }

    .mobile-difficulty-bars .bar {
        width: 20px;
        height: 16px;
        background: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.3);
    }

    .mobile-difficulty-bars .bar.filled {
        background: linear-gradient(to bottom, #ff00ff 0%, #ff0080 100%);
        border-color: #ff00ff;
        box-shadow: 0 0 8px rgba(255,0,255,0.5);
    }

    .mobile-start-button-ddr {
        display: block;
        width: 100%;
        max-width: 500px;
        background: linear-gradient(to bottom, #ff0080 0%, #ff0040 100%);
        border: 4px solid #fff;
        border-radius: 50px;
        padding: 20px 40px;
        font-size: 1.5em;
        font-weight: 900;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 3px;
        box-shadow:
            0 0 20px rgba(255,0,128,0.6),
            0 5px 0px #800040,
            0 8px 15px rgba(0,0,0,0.5);
        text-shadow: 2px 2px 0px #000;
    }

    .mobile-start-button-ddr:hover {
        transform: translateY(-3px);
        box-shadow:
            0 0 30px rgba(255,0,128,0.8),
            0 8px 0px #800040,
            0 12px 20px rgba(0,0,0,0.6);
    }

    .mobile-start-button-ddr:active {
        transform: translateY(2px);
        box-shadow:
            0 0 20px rgba(255,0,128,0.6),
            0 2px 0px #800040,
            0 4px 10px rgba(0,0,0,0.5);
    }

    .mobile-credits {
        display: block;
        text-align: center;
        font-size: 0.85em;
        color: rgba(255,255,255,0.6);
        margin-top: 8px;
    }

    .mobile-credits a {
        color: #00ffff;
        text-decoration: none;
        transition: color 0.2s;
    }

    .mobile-credits a:hover {
        color: #ff0080;
    }

    .song-item {
        height: 75px;
        padding: 12px 20px 14px 20px;
        width: 80%;
        left: 10%;
    }

    .song-item .song-title {
        font-size: 1.1em;
        text-align: center;
    }

    .song-item .song-artist {
        font-size: 0.65em;
        text-align: center;
    }

    .game-header {
        padding: 8px 15px;
        justify-content: space-between;
        position: relative;
    }

    .game-title {
        position: absolute;
        left: 15px;
    }

    .header-score {
        display: block;
        font-size: 1.5em;
        font-weight: 900;
        color: #fff;
        font-family: 'Orbitron', sans-serif;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .pause-button {
        width: 40px;
        height: 40px;
        right: 15px;
        font-size: 16px;
    }

    .game-title {
        font-size: 1.5em;
    }

    .game-subtitle {
        font-size: 0.7em;
    }

    .game-stats {
        gap: 10px;
        font-size: 0.9em;
    }

    .game-area {
        padding-top: 60px; /* Reduced from 80px to allow tracks to extend higher */
    }

    .tracks-container {
        padding: 10px;
        padding-bottom: 120px;
        width: 100%;
    }

    .left-posts-container,
    .down-posts-container,
    .up-posts-container,
    .right-posts-container {
        display: none;
    }

    .track {
        width: 75px;
        
        margin: 0 4px;
    }

    .control-btn {
        width: 75px;
        height: 75px;
    }

    .control-arrow {
        width: 50px;
        height: 50px;
    }

    .target-zone {
        height: 100px;
        top: -5px;
        font-size: 1.8em;
        left: 35px;
        right: 3px;
    }

    .arrow {
        width: 55px;
        height: 55px;
        font-size: 1.5em;
        animation: arrow-rise-mobile 3s linear forwards, arrow-fade 3.1s linear forwards;
    }

    /* Mobile long press arrow adjustments */
    .long-press-container {
        width: 55px;
    }

    .long-press-container .arrow-head,
    .long-press-container .arrow-trail,
    .long-press-container .arrow-tail {
        width: 55px;
        height: 55px;
    }

    .post-cards-container {
        display: none;
    }

    .feedback-text {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    /* Mobile Menu for Small Screens */
    .song-wheel-container {
        height: 350px;
    }

    .start-button-ddr {
        padding: 15px 25px;
        font-size: 1.2em;
        bottom: 20px;
    }

    .song-item {
        height: 60px;
        padding: 12px 20px;
    }

    .song-item .song-title {
        font-size: 1em;
    }

    .song-item .song-artist {
        font-size: 0.7em;
    }

    .pause-button {
        width: 35px;
        height: 35px;
        right: 10px;
        font-size: 14px;
    }

    .control-btn {
        width: 65px;
        height: 65px;
    }

    .target-zone {
        height: 62px;
        font-size: 1.8em;
        left: 35px;
        right: 3px;
    }

    .control-arrow {
        width: 45px;
        height: 45px;
    }

    .mobile-controls {
        gap: 6px;
        bottom: 100px;
    }

    .mobile-post-display {
        bottom: 130px;
        left: 5px;
        right: 5px;
        padding: 10px;
    }

    .score-display {
        display: block;
        position: fixed;
        bottom: 0px;
        left: 0px;
        z-index: 100;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 30, 0.95) 100%);
        padding: 8px 12px;
        border-radius: 0;
        border: 3px solid #ffffff;
        border-style: solid;
        box-shadow: 
            0 0 0 2px #000000,
            0 4px 15px rgba(0, 0, 0, 0.8);
        font-family: 'Courier New', 'Monaco', monospace;
        text-transform: uppercase;
        letter-spacing: 2px;
        min-width: 80px;
    }

    .score-display .score {
        font-size: 1em;
        font-weight: bold;
        color: #ffffff;
        text-shadow: 
            1px 1px 0px #000000,
            -1px -1px 0px #000000,
            1px -1px 0px #000000,
            -1px 1px 0px #000000;
        margin-bottom: 0;
        text-align: center;
    }

    .score-display .combo,
    .score-display .timer {
        display: none;
    }

    .track {
        width: 67px;
        margin: 0 5px;
    }

    .arrow {
        width: 45px;
        height: 45px;
        animation: arrow-rise-mobile 3s linear forwards, arrow-fade 3.1s linear forwards;
    }

    /* Small mobile long press arrow adjustments */
    .long-press-container {
        width: 45px;
    }

    .long-press-container .arrow-head,
    .long-press-container .arrow-trail,
    .long-press-container .arrow-tail {
        width: 45px;
        height: 45px;
    }
}



/* Arrow direction-specific styles */
.arrow.left img,
.arrow.left .long-press-container img {
    filter: hue-rotate(0deg);
    transform: rotate(-90deg);
}

.arrow.down img,
.arrow.down .long-press-container img {
    filter: hue-rotate(45deg);
    transform: rotate(180deg);
}

.arrow.up img,
.arrow.up .long-press-container img {
    filter: hue-rotate(180deg);
    transform: rotate(0deg);
}

.arrow.right img,
.arrow.right .long-press-container img {
    filter: hue-rotate(120deg);
    transform: rotate(90deg);
}

/* Hit effects */
.track.hit .target-zone {
    animation: hit-flash 0.15s ease-out;
}

.arrow.hit {
    animation: arrow-hit 0.2s ease-out;
}

@keyframes hit-flash {
    0% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

@keyframes arrow-hit {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.3);
        filter: brightness(2);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(0.5);
        filter: brightness(3);
        opacity: 0;
    }
}

@keyframes combo-pulse {
    0% {
        box-shadow: 0 0 30px rgba(255, 217, 61, 1), 0 0 50px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 217, 61, 1), 0 0 60px rgba(255, 107, 107, 0.8);
    }
}

/* DDR-Style Arrow Shapes */
.arrow-shape {
    width: 40px;
    height: 40px;
    position: relative;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.target-arrow {
    width: 70px;
    height: 70px;
    transition: none;
    image-rendering: crisp-edges;
}

.left-target {
    filter: hue-rotate(0deg);
    transform: rotate(-90deg);
}

.down-target {
    filter: hue-rotate(45deg);
    transform: rotate(180deg);
}

.up-target {
    filter: hue-rotate(180deg);
    transform: rotate(0deg);
}

.right-target {
    filter: hue-rotate(120deg);
    transform: rotate(90deg);
}

/* Loading states */
.loading {
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

/* Pause Modal */
.pause-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease-in-out;
}

.pause-modal.hidden {
    display: none;
}

.pause-modal .modal-content {
    background: rgba(10, 20, 30, 0.9);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
    min-width: 300px;
    max-width: 90vw;
}

.pause-modal h1 {
    color: #00ffff;
    font-size: 3em;
    margin: 0 0 20px 0;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    font-weight: 900;
    letter-spacing: 4px;
}

.pause-info {
    margin: 20px 0 30px 0;
}

.pause-info p {
    color: #ffffff;
    font-size: 1.2em;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.pause-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.pause-stats .stat {
    color: #ffffff;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
}

.pause-stats .stat span {
    color: #4ECDCC;
    font-weight: 700;
}

.pause-controls {
    margin-top: 30px;
}

.pause-hint {
    color: #cccccc;
    font-size: 0.9em;
    margin: 0 0 20px 0;
}

.pause-hint kbd {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ECDCC;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: 'Courier New', monospace;
    color: #00ffff;
    font-weight: bold;
}

.resume-button, .quit-button {
    padding: 12px 30px;
    margin: 0 10px;
    border: 2px solid #00ffff;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-button {
    background: rgba(0, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.resume-button:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.quit-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.2);
}

.quit-button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.3);
    transform: translateY(-2px);
}

/* Game Over Modal */
.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000 url('public/images/Vaporfuturism_05.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
}

.game-over-modal::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    pointer-events: none;
    z-index: -1;
}

.modal-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 30px;
    border-radius: 20px;
    border: 3px solid #00ffff;
    text-align: center;
    max-width: 90vw;
    width: 90%;
    font-family: 'Exo 2', sans-serif;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    margin: 20px 20px 120px 20px;
}

.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #4ECDCC;
}

.modal-content h1 {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 10px;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 4px;
    text-shadow: 2px 2px 0px #000;
}

.modal-hint {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-family: 'Exo 2', sans-serif;
}

.final-stats {
    margin: 20px 0 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
}

.stat-row {
    margin: 15px 0;
}

.final-score-row {
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    margin-bottom: 15px;
}

.stat-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #ff0080;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 900;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 2px 2px 0px #000;
}

.two-columns {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.stat-col {
    flex: 1;
}

.stat-col .stat-value {
    font-size: 2em;
}

/* Arcade Name Entry */
.highscore-section {
    margin: 25px 0;
}

.ranking-display {
    font-size: 1.1em;
    color: #4ECDCC;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid #4ECDCC;
    border-radius: 8px;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.highscore-section h3 {
    font-size: 0.9em;
    color: #ff0080;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.arcade-name-entry {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.letter-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    width: 50px;
    height: 60px;
}

.letter-up, .letter-down {
    display: none;
}

.letter-display {
    font-size: 2.5em;
    font-weight: 900;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    /* text-shadow: 2px 2px 0px #000, 0 0 10px rgba(0, 255, 255, 0.5); */
    position: relative;
}

.letter-slot.active .letter-display {
    background: #00ffff;
    color: #000;
    padding: 10px 5px 7px 7px;
    text-shadow: none;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.arcade-controls-hint {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
    margin: 10px 0;
    font-family: 'Exo 2', sans-serif;
}

.submit-highscore-button {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 2px solid #00ffff;
    padding: 12px 40px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.submit-highscore-button:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

.highscore-result {
    margin-top: 15px;
    font-size: 1.1em;
    color: #00ffff;
    font-weight: 600;
}

/* High Scores Display */
.highscores-display {
    margin: 30px 0;
}

.highscores-display h3 {
    font-size: 1.2em;
    color: #ff0080;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.highscores-list {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7em;
    line-height: 1.8;
    text-align: left;
}

.highscores-list::-webkit-scrollbar {
    width: 10px;
}

.highscores-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.highscores-list::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 5px;
}

.highscores-list::-webkit-scrollbar-thumb:hover {
    background: #ff0080;
}

.score-entry {
    padding: 8px 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.score-entry.user-score {
    color: #ff0080;
    font-weight: bold;
    background: rgba(255, 0, 128, 0.1);
    padding: 10px;
    margin: 5px -10px;
    border-radius: 5px;
    border: 2px solid #ff0080;
}

.score-rank {
    color: #00ffff;
    margin-right: 15px;
}

.score-name {
    flex: 1;
}

.score-value {
    color: #00ffff;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.play-again-button, .back-to-menu-button, .share-button {
    padding: 12px 25px;
    font-size: 0.95em;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    border: 2px solid #00ffff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}

.play-again-button:hover, .back-to-menu-button:hover, .share-button:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

.share-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
}

.share-section h3 {
    font-size: 0.9em;
    color: #ff0080;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.share-text-display {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    font-size: 0.9em;
    line-height: 1.6;
    color: #fff;
    white-space: pre-wrap;
    cursor: pointer;
    user-select: text;
    transition: all 0.2s ease;
    word-break: break-word;
    text-align: center;
}

.share-text-display:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #4ECDCC;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.copy-button, .bluesky-button {
    padding: 10px 20px;
    font-size: 0.85em;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    border: 2px solid #00ffff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}

.bluesky-button {
    background: rgba(0, 133, 255, 0.3);
    border-color: #0085ff;
    color: #0085ff;
}

.copy-button:hover, .bluesky-button:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

.bluesky-button:hover {
    background: rgba(0, 133, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 133, 255, 0.6);
}

.share-result {
    margin-top: 15px;
    padding: 10px;
    font-size: 0.8em;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
}

/* Marquee animation for long song titles */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(0);
    }
    85% {
        transform: translateX(var(--scroll-distance, 0));
    }
    100% {
        transform: translateX(var(--scroll-distance, 0));
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .arrow {
        animation-duration: 5s;
    }

    .feedback-text {
        animation: none;
        opacity: 1;
    }

    .status-indicator {
        animation: none;
    }

    .selected-song-title,
    .mobile-selected-song {
        animation: none !important;
    }
}
