/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    background: repeating-linear-gradient(
        90deg,
        #f8b9cf,
        #f8b9cf 48px,
        #fcd2e1 48px,
        #fcd2e1 96px
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-family: 'DotGothic16', 'Courier New', monospace;
    position: relative;
}

/* STAR BARS - Fixed with Level Up Your Life in middle */
.star-bar {
    width: 100%;
    background: linear-gradient(to right, #d9c6ff, #b8a1ff);
    color: white;
    text-align: center;
    padding: 12px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    height: 60px;
    padding: 0 20px;
}

.star-bar.top {
    margin-bottom: 0;
}

.star-bar.bottom {
    margin-top: 0;
}

/* ALTERNATING STAR SIZES - On left and right of quote */
.star-bar .star {
    display: inline-block;
    text-align: center;
}

.star-bar .star.big {
    font-size: 28px;
    animation: twinkle 3s infinite;
}

.star-bar .star.small {
    font-size: 18px;
    animation: twinkle 3s infinite reverse;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1; 
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
    }
    50% { 
        opacity: 0.7; 
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
    }
}

/* Level Up Your Life in middle of bottom bar */
.tagline-in-bar {
    font-family: 'Press Start 2P', 'DotGothic16', monospace;
    font-size: 16px;
    color: white;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    padding: 0 30px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* CENTER CONTENT - Fit within viewport with proper spacing */
.center-area {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-align: center;
    overflow: visible;
    position: relative;
    z-index: 2;
}

/* LOGO WITH FLOATING ANIMATION AND SHADOW - Calmer animation */
.logo-container {
    position: relative;
    margin-bottom: 30px;
    animation: gentleFloat 6s ease-in-out infinite;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

.logo {
    width: 600px; /* Reduced from 800px */
    max-width: 90%;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    display: block;
}

/* FALLBACK LOGO TEXT - Shows if image doesn't load */
.logo-fallback {
    display: none; /* Hidden by default */
    font-family: 'Press Start 2P', monospace;
    font-size: 80px;
    font-weight: bold;
    color: white;
    text-shadow: 
        3px 3px 0 rgba(123, 104, 238, 0.5),
        6px 6px 0 rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.4);
    letter-spacing: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #7B68EE, #9370DB);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(123, 104, 238, 0.4);
}

.logo-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px; /* Reduced from 700px */
    max-width: 85%;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

/* START BUTTON - Ensure it's fully visible */
.start-btn {
    background: linear-gradient(145deg, #6fd0f0, #9fe8ff, #c2f0ff);
    border: none;
    border-radius: 16px;
    padding: 14px 60px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    box-shadow: 
        0 8px 0 #4aaecf,
        0 15px 25px rgba(106, 208, 240, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.3),
        3px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    border: 3px solid rgba(255, 255, 255, 0.4);
    z-index: 3;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 250px;
}

.start-btn:hover {
    transform: translateY(4px);
    box-shadow: 
        0 4px 0 #4aaecf,
        0 10px 20px rgba(106, 208, 240, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.start-btn:active {
    transform: translateY(8px);
    box-shadow: 
        0 0 0 #4aaecf,
        0 5px 15px rgba(106, 208, 240, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.start-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.start-btn:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

/* HINT - Ensure it's fully visible */
.hint {
    color: rgba(106, 91, 154, 0.95);
    font-size: 18px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 245, 0.95));
    border-radius: 20px 8px 20px 8px;
    font-family: 'DotGothic16', 'Courier New', monospace;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 10px rgba(255, 200, 220, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 3;
    margin-top: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #ffb8d9, #ffd6e7, #ffb8d9);
    border-radius: 28px 12px 28px 12px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(8px);
}

.hint-icon {
    font-size: 20px;
    margin: 0 8px;
    animation: gentleBounce 3s infinite;
    display: inline-block;
}

.hint-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* DECORATIVE ELEMENTS - Calmer animations */
.decorative-element {
    position: absolute;
    animation: calmFloat 15s infinite ease-in-out;
    z-index: 1;
    font-size: 28px;
    text-shadow: 0 0 5px currentColor;
    opacity: 0.6;
    pointer-events: none;
}

.decorative-element:not([data-type]) {
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
    font-size: 30px;
}

.decorative-element[data-type="spiral"] {
    color: rgba(255, 245, 157, 0.8);
    filter: drop-shadow(0 0 6px rgba(255, 245, 157, 0.4));
    font-size: 28px;
}

.decorative-element[data-type="music"] {
    color: rgba(255, 238, 88, 0.8);
    filter: drop-shadow(0 0 8px rgba(255, 238, 88, 0.5));
    font-size: 32px;
}

@keyframes calmFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(5px, -5px) rotate(10deg) scale(1.05);
    }
    50% {
        transform: translate(-3px, 3px) rotate(-5deg) scale(0.98);
    }
    75% {
        transform: translate(3px, 2px) rotate(5deg) scale(1.02);
    }
}

/* RIPPLE EFFECT */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1200px) {
    .logo {
        width: 500px;
    }
    
    .logo-fallback {
        font-size: 60px;
        padding: 15px;
        letter-spacing: 8px;
    }
    
    .logo-shadow {
        width: 450px;
    }
    
    .tagline-in-bar {
        font-size: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .logo {
        width: 400px;
    }
    
    .logo-fallback {
        font-size: 50px;
        letter-spacing: 6px;
        padding: 12px;
    }
    
    .logo-shadow {
        width: 350px;
    }
    
    .star-bar .star.big {
        font-size: 24px;
    }
    
    .star-bar .star.small {
        font-size: 16px;
    }
    
    .tagline-in-bar {
        font-size: 12px;
        padding: 0 15px;
    }
    
    .start-btn {
        font-size: 24px;
        padding: 12px 50px;
        min-width: 220px;
    }
    
    .hint {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .hint-icon {
        font-size: 18px;
    }
    
    .decorative-element {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
    }
    
    .logo {
        width: 320px;
        max-width: 85%;
    }
    
    .logo-fallback {
        font-size: 40px;
        letter-spacing: 5px;
        padding: 10px;
    }
    
    .logo-shadow {
        width: 280px;
        max-width: 80%;
    }
    
    .star-bar {
        height: 50px;
        padding: 0 10px;
    }
    
    .star-bar .star.big {
        font-size: 20px;
    }
    
    .star-bar .star.small {
        font-size: 14px;
    }
    
    .tagline-in-bar {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 0 8px;
    }
    
    .start-btn {
        padding: 10px 40px;
        font-size: 20px;
        letter-spacing: 2px;
        min-width: 200px;
        min-height: 60px;
    }
    
    .hint {
        font-size: 14px;
        padding: 8px 12px;
        width: 95%;
    }
    
    .hint-icon {
        font-size: 16px;
        margin: 0 6px;
    }
    
    .decorative-element {
        font-size: 20px;
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    body {
        background: repeating-linear-gradient(
            90deg,
            #f8b9cf,
            #f8b9cf 32px,
            #fcd2e1 32px,
            #fcd2e1 64px
        );
    }
    
    .logo {
        width: 280px;
    }
    
    .logo-fallback {
        font-size: 32px;
        letter-spacing: 4px;
        padding: 8px;
    }
    
    .logo-shadow {
        width: 250px;
    }
    
    .star-bar {
        height: 45px;
        padding: 0 5px;
    }
    
    .star-bar .star.big {
        font-size: 16px;
    }
    
    .star-bar .star.small {
        font-size: 12px;
    }
    
    .tagline-in-bar {
        font-size: 8px;
        letter-spacing: 1px;
        padding: 0 5px;
    }
    
    .start-btn {
        padding: 8px 30px;
        font-size: 18px;
        min-width: 180px;
        min-height: 55px;
        margin-bottom: 15px;
    }
    
    .hint {
        font-size: 12px;
        width: 95%;
        padding: 6px 10px;
        border-radius: 15px 5px 15px 5px;
    }
    
    .hint-icon {
        font-size: 14px;
        margin: 0 4px;
    }
    
    .hint-text {
        white-space: normal;
        text-align: center;
    }
    
    .decorative-element {
        display: none;
    }
}