/* ============================================
   SPECTRE REVIVE — Minimalist 3D Carousel
   ============================================ */

:root {
    --color-bg: #050510;
    --color-text: #ffffff;
    --color-text-dim: rgba(255, 255, 255, 0.65);
    --color-text-muted: rgba(255, 255, 255, 0.35);
    --color-border: rgba(255, 255, 255, 0.15);
    --color-border-soft: rgba(255, 255, 255, 0.06);
    --color-accent: #9d4edd;

    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

}

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

html {
    scroll-behavior: smooth;
    background: var(--color-bg);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    min-height: 100dvh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    opacity: 0.15;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 221, 0, 0.08), transparent 20%),
        radial-gradient(circle at 78% 65%, rgba(0, 255, 170, 0.07), transparent 18%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 3px);
    mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 1px solid rgba(184, 255, 224, 0.85);
    outline-offset: 3px;
}

/* ============================================
   3D CAROUSEL — full background
   ============================================ */
.carousel-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.carousel-track {
    position: absolute;
    inset: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transform: scale(1.04) translate3d(0, 0, 0);
    transition:
        opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        transform 7.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.carousel-slide::before,
.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.carousel-slide::before {
    background: radial-gradient(circle at 52% 45%, rgba(255, 255, 255, 0.18), transparent 34%);
    mix-blend-mode: screen;
    transform: scale(0.92);
}

.carousel-slide::after {
    background: linear-gradient(105deg, transparent 0%, rgba(255, 221, 0, 0.16) 44%, rgba(0, 255, 170, 0.1) 52%, transparent 68%);
    transform: translateX(-34%) skewX(-9deg);
    mix-blend-mode: screen;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.01) translate3d(0, 0, 0);
}

.carousel-slide.active::before {
    animation: imageBloom 0.9s ease-out both;
}

.carousel-slide.active::after {
    animation: imageLightSweep 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-slide.is-leaving {
    opacity: 0;
    z-index: 1;
    transform: scale(1.025) translate3d(0, 0, 0);
}

@keyframes imageBloom {
    0% { opacity: 0; transform: scale(0.82); }
    32% { opacity: 0.34; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.16); }
}

@keyframes imageLightSweep {
    0% { opacity: 0; transform: translateX(-34%) skewX(-9deg); }
    36% { opacity: 0.42; }
    100% { opacity: 0; transform: translateX(42%) skewX(-9deg); }
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(5, 5, 16, 0.4) 0%, rgba(5, 5, 16, 0.85) 100%),
        linear-gradient(180deg, rgba(5,5,16,0.5) 0%, transparent 25%, transparent 75%, rgba(5,5,16,0.9) 100%);
}

.cinematic-frame,
.scanline-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.cinematic-frame {
    z-index: 6;
    border: 1px solid rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 170, 0.025), inset 0 0 90px rgba(0, 0, 0, 0.24);
}

.cinematic-frame::before,
.cinematic-frame::after {
    content: '';
    position: absolute;
    width: clamp(52px, 8vw, 112px);
    height: clamp(52px, 8vw, 112px);
    opacity: 0.55;
}

.cinematic-frame::before {
    left: 1.2rem;
    top: 5.6rem;
    border-left: 1px solid rgba(255, 221, 0, 0.28);
    border-top: 1px solid rgba(255, 221, 0, 0.28);
}

.cinematic-frame::after {
    right: 1.2rem;
    bottom: 5.2rem;
    border-right: 1px solid rgba(0, 255, 170, 0.24);
    border-bottom: 1px solid rgba(0, 255, 170, 0.24);
}

.scanline-layer {
    z-index: 7;
    opacity: 0.08;
    background:
        repeating-linear-gradient(180deg, transparent 0, transparent 12px, rgba(255,255,255,0.04) 13px);
    background-size: 100% 14px;
    mix-blend-mode: overlay;
}

@keyframes scanDrift {
    0% { background-position: 180% 0, 0 0; }
    100% { background-position: -80% 0, 0 42px; }
}

.spectre-3d {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: screen;
}

.carousel-dots {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 4;
}

.carousel-dot {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.4s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(5, 5, 16, 0.4);
    border-bottom: 1px solid var(--color-border-soft);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.corner-logo {
    display: block;
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 12px rgba(255, 204, 0, 0.4));
    flex-shrink: 0;
}

.corner-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.corner-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.discord-btn {
    --magnet-x: 0px;
    --magnet-y: 0px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid #5865F2;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.discord-btn::before,
.btn-coffee::before {
    content: '';
    position: absolute;
    inset: -40% -70%;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
    transform: translateX(-65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.65s ease;
}

.discord-btn:hover {
    background: #5865F2;
    color: white;
    transform: translate3d(var(--magnet-x), calc(var(--magnet-y) - 2px), 0);
}

.discord-btn:hover::before,
.btn-coffee:hover::before {
    opacity: 1;
    transform: translateX(65%);
}

/* ============================================
   HERO — minimal, full screen
   ============================================ */
.hero {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem;
    text-align: center;
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: heroSettle 0.9s ease both;
}

@keyframes heroSettle {
    0% { opacity: 0.82; transform: translateY(8px) scale(0.995); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.logo-pulse {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 200, 0, 0.4);
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 3s ease-out infinite;
    pointer-events: none;
}

.logo-pulse.delay-1 { animation-delay: 1s; }
.logo-pulse.delay-2 { animation-delay: 2s; }

@keyframes pulseRing {
    0% {
        width: 280px;
        height: 280px;
        opacity: 0.6;
    }
    100% {
        width: 700px;
        height: 700px;
        opacity: 0;
    }
}

.logo-wrapper {
    position: relative;
    z-index: 2;
    --logo-follow-x: 0px;
    --logo-follow-y: 0px;
    --logo-rotate-x: 0deg;
    --logo-rotate-y: 0deg;
    transform: translate3d(var(--logo-follow-x), var(--logo-follow-y), 0)
        perspective(1000px)
        rotateY(var(--logo-rotate-y))
        rotateX(var(--logo-rotate-x))
        scale(1);
    filter: drop-shadow(0 0 25px rgba(255, 200, 0, 0.5))
            drop-shadow(0 0 50px rgba(255, 150, 0, 0.3));
    animation: logoBreath 4s ease-in-out infinite;
    will-change: transform;
}

.logo-wrapper::before,
.logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -2%;
    z-index: -1;
    background: url('assets/logo.png') center / contain no-repeat;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.logo-wrapper::before {
    transform: translate3d(-7px, 2px, 0);
    animation: spectralEchoA 5.8s steps(1, end) infinite;
}

.logo-wrapper::after {
    transform: translate3d(7px, -2px, 0);
    animation: spectralEchoB 6.4s steps(1, end) infinite;
}

@keyframes spectralEchoA {
    0%, 76%, 100% { opacity: 0; }
    77% { opacity: 0.08; }
    78% { opacity: 0; }
    80% { opacity: 0.05; }
    81% { opacity: 0; }
}

@keyframes spectralEchoB {
    0%, 61%, 100% { opacity: 0; }
    62% { opacity: 0.07; }
    63% { opacity: 0; }
    66% { opacity: 0.04; }
    67% { opacity: 0; }
}

@keyframes logoBreath {
    0%, 100% {
        transform: translate3d(var(--logo-follow-x), var(--logo-follow-y), 0)
            perspective(1000px)
            rotateY(var(--logo-rotate-y))
            rotateX(var(--logo-rotate-x))
            scale(1);
    }
    50% {
        transform: translate3d(var(--logo-follow-x), var(--logo-follow-y), 0)
            perspective(1000px)
            rotateY(var(--logo-rotate-y))
            rotateX(var(--logo-rotate-x))
            scale(1.04);
    }
}

.logo-img {
    width: clamp(320px, 55vw, 700px);
    height: auto;
    display: block;
    max-width: 100%;
}

.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    color: var(--color-text);
    animation: comingFlicker 3s ease-in-out infinite;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

@keyframes comingFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.coming-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-text), transparent);
    flex-shrink: 0;
}

/* LOADING BAR — fills to 70% with counter */
.loading-bar-wrapper {
    margin-top: 1.75rem;
    width: clamp(300px, 55%, 440px);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.08);
}

.loading-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 12px,
        rgba(0, 0, 0, 0.4) 12px,
        rgba(0, 0, 0, 0.4) 14px
    );
    z-index: 2;
    pointer-events: none;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88 0%, #00ffaa 50%, #00ff88 100%);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7), inset 0 0 8px rgba(255, 255, 255, 0.3);
    position: relative;
    animation: fillTo70 4s ease-out forwards;
}

.loading-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: shimmer 1.2s linear infinite;
}

@keyframes fillTo70 {
    0% { width: 0%; }
    85% { width: 70%; }
    90% { width: 71%; }
    95% { width: 70%; }
    100% { width: 70%; }
}

@keyframes shimmer {
    0% { transform: translateX(-30px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(30px); opacity: 0; }
}

.loading-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(0, 255, 136, 0.6);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.loading-left {
    display: inline-flex;
    align-items: baseline;
    color: #00ff88;
}

.loading-percent {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.loading-symbol {
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: 1px;
}

.loading-label {
    color: rgba(0, 255, 136, 0.6);
}

.loading-label::before {
    content: '// ';
}

/* HERO CTA — minimal */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-coffee {
    --magnet-x: 0px;
    --magnet-y: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: #FFDD00;
    color: #000000;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-coffee span,
.btn-coffee svg,
.discord-btn span,
.discord-btn svg {
    position: relative;
    z-index: 1;
}

.btn-coffee:hover {
    background: #ffea4d;
    transform: translate3d(var(--magnet-x), calc(var(--magnet-y) - 2px), 0);
    box-shadow: 0 0 30px rgba(255, 221, 0, 0.6);
}

/* ============================================
   FOOTER — minimal
   ============================================ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(5, 5, 16, 0.85) 60%);
    pointer-events: none;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    pointer-events: auto;
}

.footer-powered {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.powered-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
}

.powered-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-text);
}

.powered-sig {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    position: fixed;
    top: 5.25rem;
    right: 2rem;
    z-index: 60;
}

.lang-trigger {
    min-width: 54px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 0.8rem;
    background: rgba(5, 5, 16, 0.62);
    border: 1px solid var(--color-border-soft);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.lang-trigger::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.lang-switcher.open .lang-trigger,
.lang-trigger:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(5, 5, 16, 0.82);
}

.lang-switcher.open .lang-trigger::after {
    transform: translateY(1px) rotate(225deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: 154px;
    padding: 0.35rem;
    background: rgba(5, 5, 16, 0.88);
    border: 1px solid var(--color-border-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.lang-switcher.open .lang-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-align: left;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-option small {
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0;
    font-weight: 400;
}

.lang-option:hover,
.lang-option.active {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
}

.lang-option.active small {
    color: rgba(255, 255, 255, 0.72);
}

/* ============================================
   MUSIC PLAYER
   ============================================ */
.music-player {
    position: fixed;
    right: 0;
    bottom: 7.2rem;
    z-index: 70;
    color: var(--color-text);
}

.music-dock-toggle {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(184, 255, 224, 0.8);
    background: rgba(5, 5, 16, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-right: 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.music-dock-toggle::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(184, 255, 224, 0.28);
}

.music-player.is-playing .music-dock-toggle::before {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 255, 170, 0.9);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.42);
}

.music-dock-toggle:hover,
.music-dock-toggle:focus-visible,
.music-player.is-open .music-dock-toggle {
    color: var(--color-text);
    background: rgba(5, 5, 16, 0.86);
    border-color: rgba(184, 255, 224, 0.28);
}

.music-dock-toggle svg {
    transition: transform 0.25s ease;
}

.music-player.is-open .music-dock-toggle svg {
    transform: rotate(180deg);
}

.music-panel {
    position: absolute;
    right: 42px;
    bottom: 0;
    width: min(270px, calc(100vw - 4.2rem));
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 76px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.58rem;
    background: rgba(5, 5, 16, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.music-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 62%);
    opacity: 0.5;
}

.music-panel::after {
    content: '';
    position: absolute;
    left: 0.58rem;
    right: 0.58rem;
    bottom: 0.22rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 170, 0.62), rgba(255, 255, 255, 0.12));
    transform: scaleX(0.22);
    transform-origin: left;
    opacity: 0.46;
}

.music-player.is-open .music-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.music-player.is-playing .music-panel::after {
    animation: musicProgress 5.5s ease-in-out infinite;
}

.music-player button,
.music-meta,
.music-volume {
    position: relative;
    z-index: 1;
}

.music-track-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 0.28rem;
}

.music-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(184, 255, 224, 0.26);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(184, 255, 224, 0.92);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.music-play:hover,
.music-play:focus-visible {
    transform: translateY(-1px);
    color: var(--color-text);
    border-color: rgba(184, 255, 224, 0.52);
    background: rgba(255, 255, 255, 0.12);
}

.music-pause-icon {
    display: none;
}

.music-play.is-playing .music-play-icon {
    display: none;
}

.music-play.is-playing .music-pause-icon {
    display: block;
}

.music-meta {
    min-width: 0;
}

.music-label {
    display: block;
    margin-bottom: 0;
    color: rgba(184, 255, 224, 0.58);
    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.music-current {
    width: 100%;
    min-width: 0;
    position: relative;
    display: block;
    padding-right: 0.25rem;
    text-align: left;
}

.music-current span,
.music-current small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-current span {
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 600;
}

.music-current small {
    color: var(--color-text-muted);
    font-size: 0.56rem;
    font-weight: 400;
}

.music-next-mini {
    width: 24px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.58);
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.music-next-mini:hover,
.music-next-mini:focus-visible {
    color: rgba(184, 255, 224, 0.95);
    border-color: rgba(184, 255, 224, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.music-volume {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: center;
    gap: 0.38rem;
    color: rgba(255, 255, 255, 0.52);
}

.music-volume input {
    width: 100%;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    --volume-fill: 6%;
}

.music-volume input::-webkit-slider-runnable-track {
    height: 3px;
    background: linear-gradient(90deg, rgba(184, 255, 224, 0.82) var(--volume-fill), rgba(255, 255, 255, 0.15) var(--volume-fill));
}

.music-volume input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 12px rgba(184, 255, 224, 0.18);
}

.music-volume input::-moz-range-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
}

.music-volume input::-moz-range-progress {
    height: 3px;
    background: rgba(184, 255, 224, 0.82);
}

.music-volume input::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
}

.music-menu {
    position: absolute;
    left: 2.85rem;
    right: 0.58rem;
    bottom: calc(100% + 0.45rem);
    z-index: 2;
    padding: 0.3rem;
    background: rgba(4, 5, 14, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.music-menu[hidden] {
    display: none;
}

.music-menu button {
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.44rem 0.5rem;
    color: var(--color-text-dim);
    text-align: left;
    transition: color 0.2s ease, background 0.2s ease;
}

.music-menu button span,
.music-menu button small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-menu button span {
    font-size: 0.78rem;
    font-weight: 600;
}

.music-menu button small {
    color: var(--color-text-muted);
    font-size: 0.66rem;
}

.music-menu button:hover,
.music-menu button.active {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
}

.music-menu button.active small {
    color: rgba(184, 255, 224, 0.72);
}

@keyframes musicProgress {
    0%, 100% {
        transform: scaleX(0.22);
    }
    50% {
        transform: scaleX(0.96);
    }
}

/* ============================================
   RESPONSIVE — MOBILE FIRST FIX
   ============================================ */
@media (max-width: 768px) {
    /* Remove fixed parallax carrossel — fica estático no mobile */
    .carousel-slide {
        transform: none !important;
        transition: opacity 0.9s ease !important;
    }

    .carousel-slide.active {
        transform: none !important;
    }

    .carousel-slide.is-leaving {
        transform: none !important;
    }

    .carousel-slide.active::before {
        animation-duration: 0.9s;
    }

    .carousel-slide.active::after {
        opacity: 0;
        animation: none;
    }

    /* Top bar compacto */
    .top-bar {
        padding: 0.6rem 0.75rem;
    }

    .top-bar-inner {
        gap: 0.5rem;
    }

    /* Logo canto menor */
    .corner-logo {
        width: 36px;
        height: 36px;
    }

    /* Discord só com ícone no mobile */
    .discord-btn {
        padding: 0.5rem 0.65rem;
        gap: 0;
        font-size: 0;
    }

    .discord-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Hero centralizado, sem efeitos pesados */
    .hero {
        padding: 4rem 1rem 2rem;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }

    .logo-container {
        margin-bottom: 1.5rem;
        gap: 1rem;
        width: 100%;
    }

    .logo-wrapper {
        animation: none; /* Remove breath em mobile pra evitar bug */
        filter: drop-shadow(0 0 20px rgba(255, 200, 0, 0.5));
    }

    .logo-pulse {
        display: none; /* Remove pulse rings em mobile */
    }

    .logo-img {
        width: min(85vw, 400px);
        max-width: 100%;
    }

    .coming-soon {
        font-size: 1rem;
        letter-spacing: 0.3em;
        gap: 0.6rem;
    }

    .coming-line {
        width: 25px;
    }

    .hero-cta {
        width: 100%;
        max-width: 280px;
        margin: 1.5rem auto 0;
    }

    .btn-coffee {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }

    /* Footer fixo em mobile */
    .footer {
        position: fixed;
        padding: 1rem 0.75rem 0.75rem;
        background: linear-gradient(180deg, transparent, rgba(5, 5, 16, 0.95) 50%);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .powered-logo {
        font-size: 0.7rem;
    }

    .powered-label {
        font-size: 0.55rem;
    }

    /* Lang switcher inferior no mobile */
    .lang-switcher {
        top: 4.6rem;
        right: 0.75rem;
    }

    .music-player {
        right: 0;
        bottom: 6.2rem;
    }

    .music-dock-toggle {
        width: 34px;
        height: 50px;
    }

    .music-panel {
        right: 39px;
        width: min(282px, calc(100vw - 3.8rem));
        min-height: 54px;
        grid-template-columns: 36px minmax(0, 1fr) 72px;
        gap: 0.5rem;
        padding: 0.5rem 0.56rem;
    }

    .music-play {
        width: 36px;
        height: 36px;
    }

    .music-current span {
        font-size: 0.8rem;
    }

    .music-current small {
        font-size: 0.62rem;
    }

    .music-menu {
        left: 3.05rem;
        right: 0.62rem;
        bottom: calc(100% + 0.35rem);
    }

    .lang-trigger {
        min-width: 48px;
        height: 30px;
        padding: 0 0.65rem;
        font-size: 0.62rem;
    }

    .lang-menu {
        width: 142px;
    }

    .lang-option {
        min-height: 36px;
        font-size: 0.62rem;
    }

    /* Carousel dots acima do footer */
    .carousel-dots {
        bottom: 3.5rem;
        gap: 0.35rem;
    }

    .carousel-dot {
        width: 20px;
        height: 2px;
    }

    .carousel-dot.active {
        width: 35px;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .logo-img {
        width: 80vw;
    }

    .coming-soon {
        font-size: 0.85rem;
        letter-spacing: 0.25em;
    }

    .coming-line {
        width: 18px;
    }

    .corner-logo {
        width: 32px;
        height: 32px;
    }

    .discord-btn {
        padding: 0.4rem 0.55rem;
    }

    .lang-switcher {
        top: 4.25rem;
    }
}

/* ============================================
   RESPONSIVE — LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 4rem 1rem 1rem;
    }

    .logo-img {
        width: 220px;
    }

    .coming-soon {
        font-size: 0.9rem;
    }

    .hero-cta {
        margin-top: 0.75rem;
    }

    .footer {
        padding: 0.75rem;
    }

    .lang-switcher {
        top: 3.8rem;
    }
}

/* ============================================
   TOUCH OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .corner-logo:hover,
    .discord-btn:hover,
    .btn-coffee:hover,
    .lang-trigger:hover,
    .lang-option:hover {
        transform: none;
    }
}
