/* 遊戲整體框架與區域排版 */
.game-container {
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    margin: 0 auto;
    padding: 20px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.main-content {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    height: calc(100vh - 120px);
}

/* 【需求 1 修正】：左側貓咪區域 (z-index: 1 置於底層) */
.character-section {
    flex: 0 0 40%;
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    margin: 0;
    z-index: 1; /* 圖層置於右側選單及下方導覽項目後面 */
}

#catCanvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.22); /* 直接強制放大貓咪主角 22% */
    transform-origin: center center;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
    transition: filter 0.3s ease;
}

#catCanvas:hover {
    filter: drop-shadow(0 20px 30px rgba(212, 175, 55, 0.4));
}

/* 右側課程區 (z-index: 10 遮蓋左貓) */
.courses-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* 底部導覽列 (z-index: 100 最上層) */
.bottom-navbar {
    position: absolute;
    bottom: 20px;
    left: 0%;
    width: 100%;                  /* 畫面寬度 80% */
    background: rgba(45, 26, 14, 0.94);
    backdrop-filter: blur(12px);
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    padding: 12px 20%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.3);
    z-index: 100;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #3a2211 0%, #1f1107 100%);
    border: 1.5px solid #c5a059;
    padding: 10px 22px;
    border-radius: 20px;
    color: #f7e3be;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.nav-item i {
    font-size: 1.2rem;
    color: #e8c87d;
    transition: transform 0.25s ease;
}

.nav-item span {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(180deg, #57361d 0%, #2c1a0c 100%);
    border-color: var(--color-gold-bright);
    box-shadow: 0 8px 20px rgba(232, 200, 125, 0.5);
}

.nav-item:hover i {
    transform: scale(1.2) rotate(-8deg);
    color: #fff;
}

.nav-item .badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid #fff;
}