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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('assets/d.webp') repeat;
    background-size: 300px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#start-screen {
    cursor: pointer;
    text-align: center;
}

#start-screen h2 {
    font-size: 2em;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wrapper {
    max-width: 400px;
    padding: 20px;
}

.gif {
    height: 100%;
    width: 100%;
}

h2 {
    text-align: center;
    font-size: 1.5em;
    color: #e94d58;
    margin: 15px 0;
}
.btn-group {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
button {
    position: absolute;
    width: 150px;
    height: inherit;
    color: white;
    font-size: 1.2em;
    border-radius: 30px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 4px gray;
    border: 2px solid #e94d58;
    font-size: 1.2em;
}
button:nth-child(1) {
    margin-left: -200px;
    background: #e94d58;
}
button:nth-child(2) {
    margin-right: -200px;
    background: white;
    color: #e94d58;
}

/* Carousel */
.carousel {
    margin-top: 70px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    aspect-ratio: 4/5;
    border-radius: 12px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding-bottom: 5px;
}

.carousel-btn {
    font-size: 2em;
    color: #e94d58;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.carousel-dots {
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(233, 77, 88, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #e94d58;
}

/* Mini Vinyl */
.mini-vinyl {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-player {
    position: relative;
    width: 70px;
    height: 75px;
}

.vinyl-hint {
    font-size: 0.65em;
    color: #e94d58;
    margin-top: 4px;
    opacity: 0.8;
}

/* Tonearm */
.mini-tonearm {
    position: absolute;
    top: 0;
    right: 2px;
    z-index: 3;
    transform-origin: top right;
    transform: rotate(-25deg);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.mini-tonearm.playing {
    transform: rotate(0deg);
}

.mini-tonearm-base {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
}

.mini-tonearm-arm {
    width: 2px;
    height: 45px;
    background: linear-gradient(to bottom, #bbb, #777);
    position: absolute;
    top: 4px;
    right: 3px;
    transform-origin: top center;
    transform: rotate(20deg);
    border-radius: 1px;
}

.mini-tonearm-head {
    width: 5px;
    height: 8px;
    background: #666;
    position: absolute;
    top: 44px;
    right: -4px;
    transform: rotate(20deg);
    border-radius: 0 0 2px 2px;
}

.mini-disc {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        #333 0%,
        #111 30%,
        #222 31%,
        #111 50%,
        #1a1a1a 51%,
        #111 70%,
        #222 71%,
        #111 90%,
        #333 100%
    );
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    touch-action: none;
    user-select: none;
}

.mini-disc:active {
    cursor: pointer;
}

.mini-disc.spinning {
    animation: mini-spin 2s linear infinite;
}

@keyframes mini-spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.mini-groove {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mini-label {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e94d58;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mini-spindle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #555;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

/* Scattered cute photos */
.scattered-photos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-photo {
    position: absolute;
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: floatIn 0.5s ease forwards;
}

@media (min-width: 500px) {
    .floating-photo {
        width: 80px;
        height: 80px;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        scale: 0;
    }
    to {
        opacity: 0.9;
        scale: 1;
    }
}
