* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 0;
    background: #0F0F0F;
    color: #f5f5f5;
    min-height: 100vh;
    font-family: "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* 开始前说明面板 */
.start-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.start-box {
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.start-box h2 {
    color: #ffc107;
    margin-bottom: 10px;
    font-weight: bold;
}

.start-box .desc {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.mode-title {
    color: #fff;
    margin: 20px 0 15px;
    font-size: 18px;
}

.mode-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    border: 1px solid #555;
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    background: #ffc107;
    color: #000;
    font-weight: bold;
    border-color: #ffc107;
}

.start-btn {
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 10px;
    background: #28a745;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.start-btn:hover {
    background: #218838;
}

/* 页头均匀分布 + 手机端自适应 */
.stats-row {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: rgba(30, 30, 30, 0.9);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #333;
    z-index: 10;
}

.stat-item {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-item i {
    font-size: 16px;
}

.stat-gold {
    color: #ffc107;
}

.stat-blue {
    color: #4fc3f7;
}

.stat-green {
    color: #81c784;
}

/* 手机小屏自动缩小字体 */
@media (max-width: 480px) {
    .stat-item {
        font-size: 12px !important;
    }

    .stat-item i {
        font-size: 13px !important;
    }

    .stats-row {
        padding: 8px 10px !important;
    }
}

/* 木鱼容器 */
.fish-container {
    position: relative;
    width: 280px;
    height: 300px;
    margin-top: 40px;
}

.fish-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 佛教原木色木鱼 */
.fish {
    width: 220px;
    height: 220px;
    background: #D2B48C;
    border-radius: 50% 50% 40% 40%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: bold;
    color: #3E2723;
    transition: all 0.12s ease;
    z-index: 2;
}

.fish.active {
    transform: scale(0.95);
}

.fish.glow {
    box-shadow: 0 0 40px 15px rgba(255, 193, 7, 0.6);
}

/* 敲棒 —— 水平放置 + 左侧圆形头部 + 敲击向左下敲打 */
.stick {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 35px;
    transform-origin: right center; /* 轴心在右侧，左边向下敲 */
    transition: transform 0.12s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fish.active + .stick {
    transform: translateX(-50%) rotate(-18deg); /* 左边向下敲击 */
}

/* 浮动文字 */
.float-text {
    position: absolute;
    font-size: 26px;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 0 0 15px rgba(255, 193, 7, 1);
    pointer-events: none;
    animation: floatUp 1s forwards;
    z-index: 10;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px);
    }
}

/* 暂停提示居中 */
.pause-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    display: none;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px 35px;
    text-align: center;
}

.pause-tip h3 {
    margin: 0 0 10px;
    color: #ffc107;
}

.pause-tip p {
    margin: 0;
    color: #fff;
}

/* 按钮组 */
.btn-group-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    z-index: 5;
}

.btn-icon {
    width: 52px;
    height: 52px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}