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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    user-select: none;
}

.title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
    color: #ffd700;
}

.merit-display {
    font-size: 4em;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255,215,0,0.8);
}

.merit-label {
    font-size: 1.2em;
    color: #aaa;
    margin-bottom: 40px;
}

.wooden-fish-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
}

.wooden-fish-container:active {
    transform: scale(0.95);
}

.wooden-fish {
    width: 200px;
    height: 160px;
    background: linear-gradient(145deg, #8B4513, #654321);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 -10px 20px rgba(0,0,0,0.3),
        inset 0 10px 20px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wooden-fish::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(145deg, #A0522D, #8B4513);
    border-radius: 50%;
    top: -30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.wooden-fish::after {
    content: '木';
    font-size: 3em;
    color: #5D3A1A;
    font-weight: bold;
}

.stick {
    position: absolute;
    width: 80px;
    height: 12px;
    background: linear-gradient(90deg, #D2691E, #8B4513);
    border-radius: 6px;
    top: 50%;
    right: -60px;
    transform-origin: left center;
    transform: rotate(-30deg);
    transition: transform 0.1s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.stick::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #D2691E;
    border-radius: 50%;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.wooden-fish-container:active .stick {
    transform: rotate(-10deg);
}

.merit-popup {
    position: absolute;
    color: #ffd700;
    font-size: 2em;
    font-weight: bold;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 0 0 10px rgba(255,215,0,0.8);
}

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

.hint {
    margin-top: 40px;
    color: #666;
    font-size: 0.9em;
}

.auto-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.auto-btn:hover {
    transform: scale(1.05);
}

.auto-btn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}