/* ============================================
   Y2K CUTE THEME — Birthday Website for Acel
   Colors: Purple Haze (kept) | Style: Y2K Cute
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

:root {
    /* Same Purple Haze colors */
    --bg-primary: #0a0a12;
    --bg-secondary: #12121f;
    --bg-card: rgba(25, 20, 50, 0.75);
    --purple: #9333ea;
    --purple-light: #a855f7;
    --purple-dark: #7e22ce;
    --magenta: #ec4899;
    --magenta-dark: #be185d;
    --cyan: #67e8f9;
    --text-primary: #f0f0ff;
    --text-secondary: #b8b0d8;
    --text-muted: #7a70a0;
    --glow-purple: 0 0 25px rgba(147, 51, 234, 0.35);
    --glow-magenta: 0 0 25px rgba(236, 72, 153, 0.35);
    --gradient-main: linear-gradient(135deg, var(--purple) 0%, var(--magenta) 100%);
    --gradient-shine: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.1) 50%, rgba(103, 232, 249, 0.08) 100%);

    /* Y2K Fonts */
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Orbitron', monospace;
    --font-cursive: 'Pacifico', cursive;

    /* Y2K Rounded */
    --radius-lg: 24px;
    --radius-xl: 30px;
    --radius-pill: 50px;
}

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

html {
    scrollbar-width: thin;
    scrollbar-color: var(--purple) var(--bg-primary);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}

.hidden {
    display: none !important;
}

/* ======================
   Y2K FLOATING STARS BG
   ====================== */
#y2k-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.y2k-float-star {
    position: absolute;
    color: var(--purple-light);
    opacity: 0;
    animation: floatStar var(--dur) ease-in-out var(--delay) infinite;
    font-size: var(--size);
    pointer-events: none;
}

@keyframes floatStar {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(0deg) scale(0.5);
    }

    20% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
        transform: translateY(-30px) rotate(180deg) scale(1);
    }

    80% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: translateY(-60px) rotate(360deg) scale(0.5);
    }
}

/* ======================
   Y2K DECO ELEMENTS
   ====================== */
.y2k-deco {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.2;
    animation: decoFloat 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.deco-star-1 {
    top: 12%;
    left: 8%;
    color: var(--purple-light);
    animation-delay: 0s;
}

.deco-star-2 {
    top: 8%;
    right: 12%;
    color: var(--magenta);
    animation-delay: 0.5s;
    font-size: 2.2rem;
}

.deco-star-3 {
    bottom: 18%;
    left: 15%;
    color: var(--cyan);
    animation-delay: 1s;
}

.deco-flower-1 {
    top: 25%;
    right: 8%;
    color: var(--magenta);
    animation-delay: 1.5s;
    opacity: 0.15;
}

.deco-heart-1 {
    bottom: 12%;
    right: 18%;
    color: var(--purple-light);
    animation-delay: 2s;
}

.deco-butterfly-1 {
    top: 35%;
    left: 5%;
    animation-delay: 0.8s;
    font-size: 1.5rem;
    opacity: 0.15;
}

.deco-star-4 {
    top: 10%;
    right: 10%;
    color: var(--cyan);
}

.deco-star-5 {
    bottom: 25%;
    left: 10%;
    color: var(--magenta);
    animation-delay: 1.2s;
}

.deco-heart-2 {
    top: 20%;
    left: 18%;
    color: var(--purple-light);
    animation-delay: 0.3s;
}

.deco-star-6 {
    top: 5%;
    right: 8%;
    color: var(--purple-light);
    animation-delay: 0.7s;
    position: fixed;
}

.deco-heart-3 {
    top: 15%;
    left: 6%;
    color: var(--magenta);
    animation-delay: 1.8s;
    position: fixed;
}

@keyframes decoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(5deg);
    }

    50% {
        transform: translateY(-5px) rotate(-3deg);
    }

    75% {
        transform: translateY(-15px) rotate(4deg);
    }
}

/* ======================
   SCREENS
   ====================== */
.screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: none;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.screen.exit-left {
    animation: exitLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 10;
}

.screen.enter-right {
    animation: enterRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 11;
}

@keyframes exitLeft {
    0% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-60px) scale(0.97);
        filter: blur(4px);
    }
}

@keyframes enterRight {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(60px) scale(0.97);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.screen-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    z-index: 1;
}

.screen-3-layout {
    overflow-y: auto;
    justify-content: flex-start;
    padding: 50px 24px 40px;
    gap: 35px;
}

/* ======================
   ANIM ITEMS
   ====================== */
.anim-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.anim-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ======================
   SCREEN 1 — HERO
   ====================== */
#screen-1 {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(147, 51, 234, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 90%, rgba(103, 232, 249, 0.05) 0%, transparent 40%);
}

.hero-content {
    text-align: center;
}

/* Y2K Badge */
.y2k-badge {
    display: inline-block;
    padding: 6px 22px;
    border-radius: var(--radius-pill);
    background: var(--gradient-shine);
    border: 1px solid rgba(147, 51, 234, 0.3);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--purple-light);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.hero-age {
    margin: 10px 0;
    position: relative;
    display: inline-block;
}

.age-number {
    font-family: var(--font-display);
    font-size: clamp(7rem, 18vw, 13rem);
    font-weight: 700;
    line-height: 0.9;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(147, 51, 234, 0.35));
}

.age-sparkle {
    position: absolute;
    top: 5px;
    right: -25px;
    font-size: 1.5rem;
    color: var(--cyan);
    animation: sparkleRotate 3s ease-in-out infinite;
}

@keyframes sparkleRotate {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: rotate(180deg) scale(1.3);
        opacity: 1;
    }
}

.hero-name-wrapper {
    position: relative;
    display: inline-block;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.25);
}

.hero-line {
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-main);
    margin-top: 8px;
    transform: scaleX(0);
    transition: transform 0.7s ease-out 0.3s;
}

.hero-name-wrapper.show .hero-line {
    transform: scaleX(1);
}

.hero-date {
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    letter-spacing: 5px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.date-star {
    color: var(--magenta);
    font-size: 0.7em;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Mini Countdown — Y2K pill style */
.mini-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    justify-content: center;
}

.cd-pill {
    background: var(--gradient-shine);
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--purple-light);
}

.cd-pill span {
    font-weight: 700;
    font-size: 0.9rem;
}

.cd-pill small {
    color: var(--text-muted);
    font-size: 0.65rem;
    margin-left: 2px;
}

.cd-dot {
    color: var(--magenta);
    font-size: 0.9rem;
    animation: blink 1s step-end infinite;
}

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

/* ======================
   NEXT BUTTON — Y2K Glossy
   ====================== */
.next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: var(--gradient-shine);
    border: 2px solid rgba(147, 51, 234, 0.4);
    border-radius: var(--radius-pill);
    color: var(--purple-light);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    margin-top: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 0 0 0 transparent;
}

.next-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.2), transparent, rgba(236, 72, 153, 0.15), transparent);
    animation: btnShine 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.next-btn:hover::before {
    opacity: 1;
}

@keyframes btnShine {
    to {
        transform: rotate(360deg);
    }
}

.next-btn:hover {
    border-color: var(--purple);
    color: white;
    box-shadow: var(--glow-purple), inset 0 0 20px rgba(147, 51, 234, 0.1);
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
}

.next-btn:active {
    transform: scale(0.97);
}

/* ======================
   SCREEN 2 — ENVELOPE (Y2K Cute)
   ====================== */
#screen-2 {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(236, 72, 153, 0.07) 0%, transparent 60%);
}

.message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.envelope-y2k {
    width: clamp(300px, 85vw, 460px);
    cursor: pointer;
    transition: transform 0.3s;
}

.envelope-y2k:hover {
    transform: scale(1.02);
}

.envelope-top {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border: 1.5px solid rgba(147, 51, 234, 0.25);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: 1px dashed rgba(147, 51, 234, 0.2);
    transition: all 0.5s ease;
}

.envelope-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    animation: envelopeBounce 2s ease-in-out infinite;
}

@keyframes envelopeBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-6px) rotate(-3deg);
    }

    75% {
        transform: translateY(-4px) rotate(3deg);
    }
}

.envelope-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.envelope-y2k.opened .envelope-top {
    padding: 10px 20px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.envelope-y2k.opened .envelope-emoji {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.envelope-y2k.opened .envelope-label {
    display: none;
}

/* Letter */
.letter-y2k {
    background: var(--bg-secondary);
    border: 1.5px solid rgba(147, 51, 234, 0.2);
    border-top: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.6s ease 0.2s;
}

.envelope-y2k.opened .letter-y2k {
    max-height: 500px;
    padding: 25px 22px;
}

.letter-header {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.typewriter-text {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-primary);
    min-height: 60px;
}

.typewriter-text .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--magenta);
    margin-left: 2px;
    animation: blink 0.7s step-end infinite;
    vertical-align: text-bottom;
}

.letter-sign {
    margin-top: 15px;
    text-align: right;
    font-family: var(--font-cursive);
    font-size: 1rem;
    color: var(--purple-light);
    opacity: 0;
    transition: opacity 0.5s;
}

.letter-sign.show {
    opacity: 1;
}

/* ======================
   SCREEN 3
   ====================== */
#screen-3 {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(147, 51, 234, 0.08) 0%, transparent 50%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.y2k-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 6px;
    opacity: 0.5;
}

/* ======================
   STAR CATCH GAME
   ====================== */
.game-section {
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.game-area {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--gradient-shine);
    border: 1.5px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 8px;
}

.game-score {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--purple-light);
    z-index: 5;
    letter-spacing: 2px;
    background: rgba(10, 10, 18, 0.5);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.score-star {
    color: var(--magenta);
    margin-right: 4px;
}

/* Game Star */
.game-star {
    position: absolute;
    cursor: pointer;
    font-size: var(--star-size, 28px);
    animation: starFloat var(--duration) ease-in-out forwards;
    z-index: 2;
    transition: transform 0.1s;
    user-select: none;
    filter: drop-shadow(0 0 8px var(--star-glow, rgba(168, 85, 247, 0.5)));
}

.game-star:hover {
    transform: scale(1.3);
}

@keyframes starFloat {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.3);
    }

    15% {
        opacity: 1;
        transform: translateY(-30px) rotate(30deg) scale(1);
    }

    50% {
        transform: translateY(-120px) rotate(90deg) scale(1.1);
    }

    85% {
        opacity: 0.8;
        transform: translateY(-230px) rotate(150deg) scale(0.9);
    }

    100% {
        opacity: 0;
        transform: translateY(-350px) rotate(180deg) scale(0.3);
    }
}

/* Catch effect */
.catch-effect {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    font-size: 1.2rem;
    animation: catchPop 0.6s ease-out forwards;
    color: var(--cyan);
    font-family: var(--font-display);
    font-weight: 700;
}

@keyframes catchPop {
    0% {
        transform: scale(0.5) translateY(0);
        opacity: 1;
    }

    50% {
        transform: scale(1.3) translateY(-15px);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.8) translateY(-35px);
        opacity: 0;
    }
}

/* Game Reward */
.game-reward {
    margin-top: 15px;
    animation: fadeInUp 0.8s ease-out;
}

.reward-card {
    background: var(--bg-card);
    border: 1.5px solid rgba(147, 51, 234, 0.25);
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.reward-stars {
    color: var(--magenta);
    letter-spacing: 8px;
    font-size: 1rem;
    margin: 5px 0;
}

.reward-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--magenta);
    margin: 8px 0;
}

.reward-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.reward-wish {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
}

/* ======================
   TIC TAC TOE — Y2K
   ====================== */
.ttt-section {
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0 auto;
    max-width: 260px;
}

.ttt-cell {
    aspect-ratio: 1;
    background: var(--gradient-shine);
    border: 1.5px solid rgba(147, 51, 234, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    color: var(--text-primary);
}

.ttt-cell:hover:not(.filled) {
    border-color: var(--purple);
    background: rgba(147, 51, 234, 0.12);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.15);
    transform: scale(1.05);
}

.ttt-cell.filled {
    cursor: default;
}

.ttt-cell.player-x {
    color: var(--purple-light);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.ttt-cell.player-o {
    color: var(--magenta);
    text-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.ttt-cell.win-cell {
    background: rgba(147, 51, 234, 0.2);
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
    animation: winPulse 0.6s ease-in-out 2;
}

@keyframes winPulse {

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

    50% {
        transform: scale(1.08);
    }
}

.ttt-status {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.ttt-reset-btn {
    margin-top: 10px;
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(147, 51, 234, 0.3);
    background: transparent;
    color: var(--purple-light);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.ttt-reset-btn:hover {
    border-color: var(--magenta);
    color: var(--magenta);
    background: rgba(236, 72, 153, 0.08);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.15);
}

/* ======================
   MUSIC PLAYER — Y2K Cute
   ====================== */
.music-section {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.music-player-y2k {
    background: var(--bg-card);
    border: 1.5px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    backdrop-filter: blur(12px);
}

.music-disc-y2k {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: conic-gradient(from 0deg, var(--bg-secondary), rgba(147, 51, 234, 0.25), var(--bg-secondary), rgba(236, 72, 153, 0.25), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(147, 51, 234, 0.2);
    position: relative;
}

.music-disc-y2k.spinning {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.disc-inner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    font-size: 1.1rem;
    border: 1px solid rgba(147, 51, 234, 0.15);
}

.music-info {
    margin-bottom: 14px;
}

.music-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.music-artist {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.music-ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(147, 51, 234, 0.3);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.music-ctrl-btn:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    box-shadow: 0 0 12px rgba(147, 51, 234, 0.2);
}

.shuffle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.shuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(147, 51, 234, 0.2);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.3s;
}

.shuffle-btn:hover,
.shuffle-btn.active {
    border-color: var(--magenta);
    color: var(--magenta);
    background: rgba(236, 72, 153, 0.08);
}

.song-counter {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.music-btn-y2k {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--purple);
    background: transparent;
    color: var(--purple-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.music-btn-y2k:hover:not(:disabled) {
    background: var(--gradient-shine);
    border-color: var(--magenta);
    color: white;
    box-shadow: var(--glow-purple);
}

.music-btn-y2k:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.progress-bar-y2k {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill-y2k {
    width: 0%;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 10px;
    transition: width 0.3s linear;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* ======================
   THANK YOU — Y2K
   ====================== */
.thankyou-section {
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.thankyou-card-y2k {
    background: var(--bg-card);
    border: 1.5px solid rgba(147, 51, 234, 0.15);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    text-align: left;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.thankyou-card-y2k::before {
    content: '✧';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.2rem;
    color: var(--purple-light);
    opacity: 0.3;
    animation: sparkleRotate 3s ease-in-out infinite;
}

.thankyou-card-y2k::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 3px 3px 0 0;
}

.thankyou-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-text {
    margin-top: 25px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-bottom: 20px;
    font-family: var(--font-display);
}

.footer-text strong {
    color: var(--purple-light);
}

/* ======================
   ANIMATIONS
   ====================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 480px) {
    .envelope-y2k {
        width: 92vw;
    }

    .game-area {
        height: 250px;
    }

    .next-btn {
        padding: 12px 32px;
        font-size: 0.9rem;
    }

    .y2k-deco {
        font-size: 1.3rem;
    }

    .reward-card {
        padding: 22px 16px;
    }
}