/* 懸浮按鈕樣式 */
.floating-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.7);
    color: #ffc400;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1001; /* 比面板高一層 */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.floating-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

#settingsBtn {
    left: auto;
    right: 20px;
    background: rgba(100, 100, 100, 0.7);
}

/* 隱藏面板樣式 */
.info-panel {
    position: fixed;
    top: 85px; /* 按鈕高度(50) + top(20) + 間距(15) */
    left: 20px;
    width: 280px;
    background: rgba(25, 25, 25, 0.85);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left; /* 防止受到 body 居中的影響 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* 柔和的滑入動畫 */
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.info-panel.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.info-panel h3 {
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
    font-size: 18px;
    color: #ffc400;
}

.info-panel p {
    margin: 8px 0;
    font-size: 14px;
}

/* 新增：敵人資訊項目樣式 */
.enemy-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.enemy-info:last-child {
    margin-bottom: 5px; /* 讓最後一項和邊框有點距離 */
}

.enemy-info img {
    width: 48px;
    height: 48px;
    margin-right: 15px; /* 圖片和文字之間的距離 */
    flex-shrink: 0; /* 防止圖片在空間不足時被壓縮 */
}

.enemy-info p {
    margin: 0; /* 覆寫 .info-panel p 的邊距，讓對齊更完美 */
}

.control-info {
    margin-top: 20px;
    text-align: left;
}

.control-info h4 {
    margin: 10px 0;
    color: #ffd966;
}

.control-info p {
    margin: 6px 0;
    line-height: 1.5;
}

.control-info hr {
    border: 0;
    border-top: 1px solid #555;
    margin: 12px 0;
}

.version{
	margin: 10px 0;
	color: #999999;	
	font-size:12px;
	text-align: center;
}

/* Buff Display */
#buff-container {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 15px;
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buff-icon {
    display: flex;
    align-items: center;
    background: rgba(25, 25, 25, 0.85);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.buff-icon img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.buff-icon .timer {
    color: #ffc400;
    font-size: 16px;
    font-weight: bold;
}

#creditsBtn {
    left: 20px;
    top: 80px;
}

.credits-content {
    text-align: left;
    line-height: 1.8;
    margin-top: 15px;
}