/* ========================================
   右上角游戏状态模块 - 简化版
   包含：等级、体力、金币、渔获
   ======================================== */

/* 左侧功能按钮容器 */
.left-buttons-container {
    position: fixed;
    left: 10px;
    top: 200px;
    transform: translateY(-50%);
    z-index: 8888;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
}

/* 金币加倍按钮 */
.coins-double-btn {
    width: 80px;
    height: 88px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

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

.coins-double-btn:active {
    transform: scale(0.95);
}

/* 金币加倍背景图 */
.coins-double-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* 金币加倍数量 */
.coins-double-count {
    position: absolute;
    bottom: 2px;
    left: 48%;
    transform: translateX(-50%);
    font-family: "varien", Arial, sans-serif;
    pointer-events: none;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

/* 体力恢复按钮 */
.stamina-recovery-btn {
    width: 80px;
    height: 88px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.stamina-recovery-btn:active {
    transform: scale(0.95);
}

/* 体力恢复背景图 */
.stamina-recovery-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

/* 体力恢复数量 */
.stamina-recovery-count {
    position: absolute;
    bottom: 2px;
    left: 48%;
    transform: translateX(-50%);
    font-family: "varien", Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

/* 右上角模块通用定位 */
.level-module,
.resource-row {
    position: fixed;
    right: 10px;
    z-index: 8888;
    pointer-events: auto;
}

/* 资源行容器（体力+金币横向排列） */
.resource-row {
    top: 130px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========================================
   1. 等级模块（经验条+等级徽章横向排列）
   ======================================== */
.level-module {
    top: 45px;
    width: 100%;
    max-width: 350px;
    height: 80px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.level-module:hover {
    transform: scale(1.01);
}


/* 经验条容器 */
.level-exp-bar {
    width: 120px;
    height: 30px;
    flex: 1;
    position: relative;
    margin-right: -100px;
    z-index: 1;
}

/* 经验条背景 */
.level-exp-bg {
    width: 100%;
    height: 100%;
    background-image: url('./images/fishGame/exp_bar_bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

/* 经验条填充 */
.level-exp-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.6) 0%, rgba(139, 195, 74, 0.6) 50%, rgba(205, 220, 57, 0.6) 100%);
    border-radius: 25px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 经验条文字 */
.level-exp-text {
    position: absolute;
    top: 50%;
    left: 46%;
    transform: translate(-50%, -50%);
    font-family: "varien", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    white-space: nowrap;
}

/* 等级徽章容器 */
.level-badge-container {
    width: 100px;
    height: 100px;
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

/* 等级徽章背景 */
.level-badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

/* 等级文字容器 */
.level-content {
    position: absolute;
    top: 48%;
    left: 45%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
}

/* LVL 标签 */
.level-label {
    font-family: "varien", Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1;
    margin-bottom: 4px;

}

/* 等级数字 */
.level-number {
    font-family: "varien", Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
    max-width: 100%;
    text-align: center;
}

/* 两位数等级自动缩小 */
.level-number.two-digit {
    font-size: 22px;
}

/* 三位数等级自动缩小 */
.level-number.three-digit {
    font-size: 18px;
}

/* ========================================
   2. 体力模块（爱心）
   ======================================== */
.stamina-module {
    width: 100px;
    height: 60px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stamina-module:hover {
    transform: scale(1.02);
}

/* 体力背景图（完整的背景+图标） */
.stamina-bg {
    width: 100px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

/* 体力数值容器 */
.stamina-info {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* 体力数值 */
.stamina-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "varien", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

/* 体力倒计时 */
.stamina-timer {
    position: absolute;
    top: 12px;
    right: 5px;
    font-family: "varien", Arial, sans-serif;
    font-size: 10px;
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ========================================
   3. 金币模块
   ======================================== */
.coin-module {
    width: 100px;
    height: 60px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.coin-module:hover {
    transform: scale(1.02);
}

/* 金币背景图（完整的背景+图标） */
.coin-bg {
    width: 100px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

/* 金币数值容器 */
.coin-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 金币数值 */
.coin-value {
    font-family: "varien", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   获得鱼模块
   ======================================== */
.obtain-fish-module {
    top: 185px;
    position: fixed;
    right: 0px;
    z-index: 8888;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: none;
    /* 默认隐藏，钓鱼成功后显示 */
    opacity: 0;
    /* 初始透明 */
}

.obtain-fish-module:hover {
    transform: scale(1.02);
}

/* 获得鱼背景图 */
.obtain-fish-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
    transform: rotate(180deg);
}

/* 获得鱼内容容器 */
.obtain-fish-content {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 鱼图标 */
.fish-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 鱼奖励文字 */
.fish-reward-text {
    font-family: "varien", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
    white-space: nowrap;
}



/* ========================================
   响应式适配
   ======================================== */

/* 小屏幕适配 */
@media (max-width: 414px) {
    #top-right-status {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .level-module {
        max-width: 300px;
        height: 70px;
    }



    .level-exp-text {
        font-size: 13px;
    }

    .level-badge-container {
        width: 100px;
        height: 100px;
    }

    .level-content {
        width: 55px;
    }

    .level-label {
        font-size: 10px;
    }

    .level-number {
        font-size: 22px;
    }

    .level-number.two-digit {
        font-size: 20px;
    }

    .level-number.three-digit {
        font-size: 16px;
    }

    .stamina-module,
    .coin-module {
        width: 100px;
        height: 55px;
    }

    .stamina-value,
    .coin-value {
        font-size: 14px;
    }

    .stamina-timer {
        font-size: 11px;
    }

    .fish-catch-module {
        width: 70px;
        height: 70px;
    }

    .fish-count-badge {
        min-width: 22px;
        height: 22px;
    }

    .fish-count-text {
        font-size: 13px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 375px) {
    #top-right-status {
        top: 5px;
        right: 5px;
        gap: 5px;
    }

    .level-module {
        max-width: 280px;
        height: 65px;
    }



    .level-exp-text {
        font-size: 12px;
    }

    .level-badge-container {
        width: 100px;
        height: 100px;
    }

    .level-content {
        width: 50px;
    }

    .level-number {
        font-size: 20px;
    }

    .level-number.two-digit {
        font-size: 18px;
    }

    .level-number.three-digit {
        font-size: 15px;
    }

    .stamina-module,
    .coin-module {
        width: 100px;
        height: 50px;
    }

    .stamina-value,
    .coin-value {
        font-size: 14px;
    }

    .fish-catch-module {
        width: 65px;
        height: 65px;
    }
}

/* 大屏幕适配 */
@media (min-width: 768px) {
    #top-right-status {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .level-module {
        max-width: 380px;
        height: 90px;
    }



    .level-exp-text {
        font-size: 15px;
    }

    .level-badge-container {
        width: 100px;
        height: 100px;
    }

    .level-content {
        width: 65px;
    }

    .level-label {
        font-size: 12px;
    }

    .level-number {
        font-size: 26px;
    }

    .level-number.two-digit {
        font-size: 24px;
    }

    .level-number.three-digit {
        font-size: 20px;
    }

    .stamina-module,
    .coin-module {
        width: 100px;
        height: 65px;
    }

    .stamina-value,
    .coin-value {
        font-size: 14px;
    }

    .stamina-timer {
        font-size: 13px;
    }

    .fish-catch-module {
        width: 90px;
        height: 90px;
    }

    .fish-count-badge {
        min-width: 26px;
        height: 26px;
    }

    .fish-count-text {
        font-size: 15px;
    }
}

/* 点击动画 */
.level-module:active,
.stamina-module:active,
.coin-module:active,
.fish-catch-module:active {
    transform: scale(0.95);
}
}

/* ========================================
   获得鱼模块动画
   ======================================== */

/* 滑入弹跳动画（快速版，保留备用） */
@keyframes slideInBounce {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }

    60% {
        transform: translateX(-10px) scale(1.05);
        opacity: 1;
    }

    80% {
        transform: translateX(5px) scale(0.98);
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* 缓慢滑入动画（1.5秒） */
@keyframes slideInSlow {
    0% {
        transform: translateX(120%) scale(0.7);
        opacity: 0;
    }

    40% {
        opacity: 0.5;
    }

    70% {
        transform: translateX(-5px) scale(1.02);
        opacity: 1;
    }

    85% {
        transform: translateX(3px) scale(0.99);
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* 淡出上移动画（快速版，保留备用） */
@keyframes fadeOutUp {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(0) translateY(-30px) scale(0.9);
        opacity: 0;
    }
}

/* 缓慢淡出动画（1秒） */
@keyframes fadeOutSlow {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(0) translateY(-15px) scale(0.95);
        opacity: 0.6;
    }

    100% {
        transform: translateX(0) translateY(-40px) scale(0.85);
        opacity: 0;
    }
}

/* 鱼图标脉冲动画（可选） */
@keyframes fishPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* 为鱼图标添加脉冲效果（可选） */
.obtain-fish-module .fish-icon {
    animation: fishPulse 1s ease-in-out infinite;
}