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

body {
    background-color: #000000;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.woodfish {
    position: relative;
    cursor: pointer;
    transform-origin: center;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.woodfish svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.woodfish.active {
    animation: tap 150ms ease-out;
}

@keyframes tap {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(8px) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.stick {
    position: absolute;
    top: 20%;
    right: 20%;
    width: 120px;
    height: 120px;
    transform-origin: bottom center;
    will-change: transform;
}

.stick svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.stick.active {
    animation: hit 150ms ease-out;
}

@keyframes hit {
    0% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(-30deg);
    }
}

.count-animation {
    position: absolute;
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px);
        opacity: 0;
    }
}

.counter {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 24px;
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.sound-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle button:hover {
    background-color: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.sound-toggle svg {
    width: 28px;
    height: 28px;
    fill: #ffd700;
    transition: all 0.3s ease;
}

.sound-toggle .sound-on {
    display: block;
}

.sound-toggle .sound-off {
    display: none;
}

.sound-toggle button.muted .sound-on {
    display: none;
}

.sound-toggle button.muted .sound-off {
    display: block;
}

.mode-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.mode-selector select {
    padding: 8px 12px;
    font-size: 16px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.mode-selector select:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.02);
}

.mode-selector select option {
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffd700;
    padding: 8px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .woodfish {
        width: 300px;
        height: 300px;
    }

    .stick {
        width: 100px;
        height: 100px;
        top: 15%;
        right: 15%;
    }

    .counter {
        font-size: 20px;
        bottom: 30px;
    }
} 