
/* Shared styles */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    background: linear-gradient(to bottom, #0a0e2a 0%, #1a1a2e 100%);
    min-height: 100vh;
}

/* Night sky with stars */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at bottom, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -2;
}

/* Stars */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, white 1%, transparent 1%),
        radial-gradient(1px 1px at 20% 30%, white 1%, transparent 1%),
        radial-gradient(1px 1px at 30% 40%, white 1%, transparent 1%),
        radial-gradient(1px 1px at 40% 50%, white 1%, transparent 1%),
        radial-gradient(1px 1px at 50% 60%, white 1%, transparent 1%),
        radial-gradient(1px 1px at 60% 70%, white 1%, transparent 1%),
        radial-gradient(1px 1px at 70% 80%, white 1%, transparent 1%),
        radial-gradient(1px 1px at 80% 90%, white 1%, transparent 1%),
        radial-gradient(1px 1px at 90% 10%, white 1%, transparent 1%);
    background-size: 200px 200px;
    animation: twinkle 5s infinite alternate;
    z-index: -1;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Moon */
.moon {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f5f5f5 0%, #d3d3d3 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    z-index: -1;
}

/* Moon craters */
.moon::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 30%;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}
.moon::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

/* Moonlight on ground */
.moonlight {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 50%;
    background: radial-gradient(ellipse at top, rgba(150, 150, 255, 0.05) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}
/* Prevent text selection globally */
* {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}
/* Target styles */
#target {
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.5);
}
/* Make sure game content is above background elements */
main {
    position: relative;
    z-index: 1;
}

/* Axe animation */
@keyframes throwAxe {
    0% {
        transform: translate(0, 0) rotate(var(--rotation-start));
        opacity: 1;
    }
    100% {
        transform: translate(var(--end-x), var(--end-y)) rotate(var(--rotation-end));
        opacity: 0;
    }
}
.axe {
    position: absolute;
    width: 30px;
    height: 30px;
    animation-delay: var(--delay, 0s);
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M12 2L4 12L10 12L12 22L14 12L20 12L12 2Z"/></svg>');
    background-size: contain;
    animation: throwAxe 0.5s forwards;
    z-index: 10;
}

/* Critical hit effect */
.critical {
    animation: critGlow 0.3s;
}

@keyframes critGlow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0); }
}

/* Combo indicator */
.combo-popup {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: gold;
    animation: comboFloat 1s forwards;
    pointer-events: none;
    z-index: 20;
}

@keyframes comboFloat {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -100%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150%) scale(0.8);
        opacity: 0;
    }
}